@arcgis/map-components 5.0.0-next.3 → 5.0.0-next.30
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/22PBEW6E.js +4 -0
- package/dist/cdn/25PCEBHD.js +4 -0
- package/dist/cdn/{PT4SB4F4.js → 27WBIJ7W.js} +2 -2
- package/dist/cdn/{5Y726H3N.js → 2CJC5LPR.js} +2 -2
- package/dist/cdn/2CRWDE5K.js +4 -0
- package/dist/cdn/{2Y7DD43B.js → 2S7NPB67.js} +2 -2
- package/dist/cdn/{XS57JNBV.js → 374IBN5E.js} +2 -2
- package/dist/cdn/{XSHK3IHW.js → 3OVNUSGR.js} +2 -2
- package/dist/cdn/{JMEUEYO3.js → 3PNHYPR5.js} +2 -2
- package/dist/cdn/3Q4TZZN5.js +9 -0
- package/dist/cdn/{V2SEO7LF.js → 3TDUGLWP.js} +2 -2
- package/dist/cdn/3U4M6EMC.js +4 -0
- package/dist/cdn/3ZCQG6W2.js +4 -0
- package/dist/cdn/425YBS5O.js +4 -0
- package/dist/cdn/{U5AQM4PG.js → 42EAA7ZK.js} +2 -2
- package/dist/cdn/{7CNGYGTJ.js → 4EURR2HO.js} +2 -2
- package/dist/cdn/{5KLSEZXC.js → 4I6KXDCS.js} +2 -2
- package/dist/cdn/4KAVQQCL.js +4 -0
- package/dist/cdn/{6NDFRLCI.js → 4S63FYIQ.js} +2 -2
- package/dist/cdn/{FJ2ODCZO.js → 4ZDH3LUI.js} +2 -2
- package/dist/cdn/{WM6PZMMT.js → 5622NXQG.js} +2 -2
- package/dist/cdn/{ZIEJSM2I.js → 56LJCIRJ.js} +2 -2
- package/dist/cdn/5CCZDJS6.js +4 -0
- package/dist/cdn/5I77EKDP.js +4 -0
- package/dist/cdn/{GHJ24W6Y.js → 5MBPCAXE.js} +2 -2
- package/dist/cdn/5RXPN4ZA.js +4 -0
- package/dist/cdn/{E6NGXE4D.js → 5T4NERJA.js} +2 -2
- package/dist/cdn/6264Y6OB.js +4 -0
- package/dist/cdn/{5BGXROFC.js → 63P5OPEW.js} +2 -2
- package/dist/cdn/{NZU4NUKA.js → 66XSUGOO.js} +2 -2
- package/dist/cdn/6JOMTTMO.js +4 -0
- package/dist/cdn/6LLHP446.js +4 -0
- package/dist/cdn/6QMZX7TX.js +4 -0
- package/dist/cdn/6YGA3ZTW.js +4 -0
- package/dist/cdn/74D735ZE.js +4 -0
- package/dist/cdn/{OQ4DWZRX.js → 76PSKS56.js} +2 -2
- package/dist/cdn/7BW7BEKS.js +4 -0
- package/dist/cdn/{SPSIJZKA.js → 7BZ6ZZWG.js} +2 -2
- package/dist/cdn/7LW2MJ34.js +4 -0
- package/dist/cdn/{CAGCLXVW.js → 7N7RFZDC.js} +2 -2
- package/dist/cdn/7R25WXBY.js +4 -0
- package/dist/cdn/{YGN7CXIS.js → A7WF3SII.js} +2 -2
- package/dist/cdn/AJVA5KJZ.js +4 -0
- package/dist/cdn/{4XLFNXAU.js → AUBNL7NN.js} +1 -1
- package/dist/cdn/AYDYS5XP.js +4 -0
- package/dist/cdn/B5J2VO23.js +4 -0
- package/dist/cdn/{KHBODFWE.js → BBF2UUMF.js} +1 -1
- package/dist/cdn/{V7Z2OLGJ.js → BCB3OHT5.js} +1 -1
- package/dist/cdn/BFGOCVTQ.js +4 -0
- package/dist/cdn/{H7M3PSWM.js → BGIPXNCI.js} +2 -2
- package/dist/cdn/BID2IGTA.js +4 -0
- package/dist/cdn/BP3EIAXM.js +4 -0
- package/dist/cdn/BPZWPZSL.js +4 -0
- package/dist/cdn/{QQEDG3FQ.js → BYDZCBXS.js} +1 -1
- package/dist/cdn/CKWHFRUK.js +4 -0
- package/dist/cdn/{OTAT274C.js → CLULAXQD.js} +2 -2
- package/dist/cdn/CNTHUZWZ.js +4 -0
- package/dist/cdn/CUG6PNIA.js +4 -0
- package/dist/cdn/{IFCRROLM.js → CYBCIT4Y.js} +1 -1
- package/dist/cdn/{MJ33XVNW.js → CZJ42KVB.js} +2 -2
- package/dist/cdn/DCVY57UJ.js +4 -0
- package/dist/cdn/DDTFGXJB.js +4 -0
- package/dist/cdn/DGTCJPUJ.js +4 -0
- package/dist/cdn/DKQDFHBQ.js +4 -0
- package/dist/cdn/{QLRG2ZV7.js → DNH555Q6.js} +2 -2
- package/dist/cdn/{VYJLK7NT.js → DVMZQU3S.js} +2 -2
- package/dist/cdn/{JY4X6DI4.js → DX7CIW2P.js} +2 -2
- package/dist/cdn/{2NLU5P6Z.js → DZMHLJTL.js} +2 -2
- package/dist/cdn/E47J5GZF.js +4 -0
- package/dist/cdn/E57VVYYO.js +4 -0
- package/dist/cdn/E6LAZTCZ.js +4 -0
- package/dist/cdn/E7LECLZS.js +4 -0
- package/dist/cdn/{UOB52WH7.js → EANAURQW.js} +2 -2
- package/dist/cdn/EIA2HRVX.js +4 -0
- package/dist/cdn/{ZVMC7KNO.js → EJNPIPYI.js} +2 -2
- package/dist/cdn/{G7HJYLTI.js → EK2C6MIA.js} +2 -2
- package/dist/cdn/EL2VJ6RS.js +4 -0
- package/dist/cdn/{PH5CV2LM.js → EYVOMZXY.js} +1 -1
- package/dist/cdn/EZRA4T3B.js +4 -0
- package/dist/cdn/FDJQS7A5.js +4 -0
- package/dist/cdn/FJSDHTDE.js +4 -0
- package/dist/cdn/FKA23U6F.js +4 -0
- package/dist/cdn/FN2HVGXN.js +4 -0
- package/dist/cdn/{FGL64TB3.js → FN45TY5U.js} +2 -2
- package/dist/cdn/{VUH7USVP.js → FOLKGWCG.js} +2 -2
- package/dist/cdn/FRHKHEQC.js +4 -0
- package/dist/cdn/{TIKIHUXB.js → FWUUE67P.js} +2 -2
- package/dist/cdn/{XOR2JIKE.js → FZ5UYVXE.js} +2 -2
- package/dist/cdn/{E3GEOJL3.js → GHB4S7FZ.js} +2 -2
- package/dist/cdn/GJULE3KX.js +4 -0
- package/dist/cdn/{IRVVFCPI.js → GKBYAVVU.js} +2 -2
- package/dist/cdn/GRCCF7NK.js +4 -0
- package/dist/cdn/{E3PFF3QO.js → GSPGZZIN.js} +2 -2
- package/dist/cdn/GW4QU3CW.js +4 -0
- package/dist/cdn/GX5MB57E.js +4 -0
- package/dist/cdn/HBEKTKXB.js +4 -0
- package/dist/cdn/HKSFUMS2.js +4 -0
- package/dist/cdn/{NSSQHGXK.js → HLYYV5IJ.js} +2 -2
- package/dist/cdn/{O6EPJYM3.js → HT3PGW7M.js} +2 -2
- package/dist/cdn/HWBYBOFO.js +4 -0
- package/dist/cdn/I4VWHCEV.js +4 -0
- package/dist/cdn/{LYJ4UH2R.js → I5KPSSMS.js} +2 -2
- package/dist/cdn/{QEP5NFEU.js → I5OZYAAG.js} +2 -2
- package/dist/cdn/{FKYZEDOJ.js → I656AJFF.js} +2 -2
- package/dist/cdn/{A3762FET.js → I7DVVSQ5.js} +2 -2
- package/dist/cdn/{YTHR4NZ6.js → IAEK5W65.js} +2 -2
- package/dist/cdn/{AYNMHQEJ.js → IDCRXCZH.js} +2 -2
- package/dist/cdn/IRAFVG6N.js +4 -0
- package/dist/cdn/IT3NFXVO.js +4 -0
- package/dist/cdn/{PL6UYYNH.js → IUZBJNIT.js} +2 -2
- package/dist/cdn/IUZRROGZ.js +4 -0
- package/dist/cdn/J3ZLMJL7.js +4 -0
- package/dist/cdn/{OXFFB6Y3.js → J5IGACIV.js} +2 -2
- package/dist/cdn/{X6KL6BYF.js → J5JIUE4E.js} +2 -2
- package/dist/cdn/{UU6DUHJ7.js → J75FAWOX.js} +1 -1
- package/dist/cdn/JC3Y3H2J.js +4 -0
- package/dist/cdn/{D4LXLZZW.js → JC6BPG6L.js} +2 -2
- package/dist/cdn/JD3UYAHR.js +4 -0
- package/dist/cdn/{WLZJRN6C.js → JD6SZBTI.js} +1 -1
- package/dist/cdn/JNHWTLF5.js +4 -0
- package/dist/cdn/{H37YYHYW.js → K4HH7Q7F.js} +2 -2
- package/dist/cdn/KHN4WS5O.js +4 -0
- package/dist/cdn/{T25TCQNP.js → KWO4P6X3.js} +2 -2
- package/dist/cdn/L2S6UPIL.js +4 -0
- package/dist/cdn/LG3E3FEI.js +4 -0
- package/dist/cdn/LG6IQO74.js +4 -0
- package/dist/cdn/LGRVJOKM.js +4 -0
- package/dist/cdn/LHKVE7QW.js +4 -0
- package/dist/cdn/LMHRSVIK.js +4 -0
- package/dist/cdn/{IPSS2ZMH.js → LTRRBRH6.js} +2 -2
- package/dist/cdn/{IHZK6TIX.js → LUPWZHEN.js} +2 -2
- package/dist/cdn/LXMJA6SN.js +4 -0
- package/dist/cdn/{Y4JZGJBR.js → MEK3PSMR.js} +2 -2
- package/dist/cdn/MGSBWHU6.js +4 -0
- package/dist/cdn/{NQG5ZLHV.js → MIWATNX7.js} +2 -2
- package/dist/cdn/{7UZQHGLP.js → MPGBF2CR.js} +2 -2
- package/dist/cdn/MROF6ZLY.js +4 -0
- package/dist/cdn/{L7F3QWKO.js → MW27JFII.js} +2 -2
- package/dist/cdn/MYHT3FNL.js +4 -0
- package/dist/cdn/{36DL5HXP.js → N4IBOVID.js} +2 -2
- package/dist/cdn/{V4QJNRPL.js → NB6FYZSP.js} +1 -1
- package/dist/cdn/{SUC4EKIE.js → NGRN6PRP.js} +2 -2
- package/dist/cdn/NIVNICTN.js +4 -0
- package/dist/cdn/NUWJO552.js +4 -0
- package/dist/cdn/{MY5DKMMJ.js → NVQTDJG4.js} +2 -2
- package/dist/cdn/{HYX7CRNH.js → OCLQXJGF.js} +2 -2
- package/dist/cdn/{HDI3Z2HD.js → OF5TKTLJ.js} +2 -2
- package/dist/cdn/OISWBYPZ.js +4 -0
- package/dist/cdn/OLIVWOUG.js +4 -0
- package/dist/cdn/OLTPA66L.js +4 -0
- package/dist/cdn/ONNIQKMO.js +4 -0
- package/dist/cdn/OP7UWDJC.js +4 -0
- package/dist/cdn/OQPWIH5D.js +4 -0
- package/dist/cdn/PCLAY3FC.js +4 -0
- package/dist/cdn/PDDWIQ7N.js +4 -0
- package/dist/cdn/PP47N6OQ.js +4 -0
- package/dist/cdn/PPG44XNA.js +4 -0
- package/dist/cdn/PSXK4TAG.js +4 -0
- package/dist/cdn/PZJX66WF.js +4 -0
- package/dist/cdn/Q5KRWXQZ.js +4 -0
- package/dist/cdn/Q7MP7GCA.js +4 -0
- package/dist/cdn/QUIRGW73.js +4 -0
- package/dist/cdn/QYWKUYX6.js +4 -0
- package/dist/cdn/{V2J3UBB6.js → R3XM3W55.js} +2 -2
- package/dist/cdn/{SLM4KEUZ.js → R4UWGEKU.js} +2 -2
- package/dist/cdn/{O7JOBF3W.js → RBQBAWXT.js} +2 -2
- package/dist/cdn/REGCZKJO.js +4 -0
- package/dist/cdn/{HQL6HUHP.js → RGDYDUVM.js} +2 -2
- package/dist/cdn/{24FW7BG5.js → RNHHSJBN.js} +2 -2
- package/dist/cdn/RXKG57HU.js +4 -0
- package/dist/cdn/{PAQHYLRL.js → RYEBGC2T.js} +2 -2
- package/dist/cdn/{PHBC5D77.js → S5SBZVDO.js} +2 -2
- package/dist/cdn/S6TGNN5K.js +4 -0
- package/dist/cdn/SBWVZPEI.js +4 -0
- package/dist/cdn/{JIWHI7EW.js → SCZ6FM7D.js} +2 -2
- package/dist/cdn/SGL4GRLW.js +4 -0
- package/dist/cdn/SKUATZL2.js +4 -0
- package/dist/cdn/{ALNZYXRY.js → SNEAUADR.js} +2 -2
- package/dist/cdn/{SK3UKEH4.js → SNFN2BKO.js} +2 -2
- package/dist/cdn/{J74HR7ZS.js → SQ5KXPKM.js} +2 -2
- package/dist/cdn/SSN4WU5P.js +4 -0
- package/dist/cdn/{USMO52IS.js → SZCYMTSH.js} +2 -2
- package/dist/cdn/{TG7X24CK.js → T36L76YW.js} +2 -2
- package/dist/cdn/{7PEEU67P.js → TEGTWZFB.js} +2 -2
- package/dist/cdn/TFZ4RUW2.js +4 -0
- package/dist/cdn/{LTI2QYVU.js → TGAFLU6F.js} +2 -2
- package/dist/cdn/{AQ2NPWC6.js → TI47WRKB.js} +2 -2
- package/dist/cdn/TJXNZQ6E.js +4 -0
- package/dist/cdn/{BL7YER2G.js → TNU7CJYU.js} +2 -2
- package/dist/cdn/U3Y4NEIU.js +4 -0
- package/dist/cdn/UA3NEZD2.js +4 -0
- package/dist/cdn/{XCUKO2A2.js → UHRRVA5A.js} +2 -2
- package/dist/cdn/{T352QWFP.js → UIEHONGS.js} +2 -2
- package/dist/cdn/{4SGPWL6P.js → UNJHMZ3F.js} +2 -2
- package/dist/cdn/UV6BXD7O.js +4 -0
- package/dist/cdn/V2HPTG5E.js +4 -0
- package/dist/cdn/V4GYQU7T.js +4 -0
- package/dist/cdn/VTBJGFMG.js +4 -0
- package/dist/cdn/{UDPPDKXD.js → VVG7FBHC.js} +2 -2
- package/dist/cdn/VWNSIY3Z.js +4 -0
- package/dist/cdn/VX7XHWH3.js +4 -0
- package/dist/cdn/W4OV7AC2.js +4 -0
- package/dist/cdn/W4RATWQC.js +4 -0
- package/dist/cdn/WFFXOIVG.js +4 -0
- package/dist/cdn/{JNRTXRIA.js → WOZWBFU3.js} +2 -2
- package/dist/cdn/{RQGY47DP.js → WSDNUWO4.js} +2 -2
- package/dist/cdn/{SSTOK5YE.js → WXL3L2FD.js} +2 -2
- package/dist/cdn/X2P5ZICY.js +4 -0
- package/dist/cdn/{FJHYJ3NL.js → XCXSBECM.js} +2 -2
- package/dist/cdn/XDXAENM3.js +4 -0
- package/dist/cdn/XGIGLVS7.js +5 -0
- package/dist/cdn/XJZXQDR2.js +4 -0
- package/dist/cdn/XOKCQ5UG.js +4 -0
- package/dist/cdn/Y3U2JDPE.js +4 -0
- package/dist/cdn/Y7H7Z7BU.js +4 -0
- package/dist/cdn/YRSPO3RH.js +4 -0
- package/dist/cdn/YSBP4YU4.js +4 -0
- package/dist/cdn/{NIQUPN4E.js → Z5MMZXMP.js} +2 -2
- package/dist/cdn/{QWNJRMAQ.js → ZI2HBMIO.js} +2 -2
- package/dist/cdn/ZQY6XVS2.js +4 -0
- package/dist/cdn/ZUOJPC77.js +4 -0
- package/dist/cdn/{4UP6FMTP.js → ZWSRYLIE.js} +2 -2
- package/dist/cdn/ZYOD4BBB.js +4 -0
- package/dist/cdn/{HHFFCMML.js → ZZ5AKBHE.js} +1 -1
- package/dist/cdn/assets/elevation-profile-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-subnetwork-info/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +40 -36
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +80 -62
- 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/createCloseEvent.js +1 -1
- package/dist/chunks/esri-main.js +2 -2
- package/dist/chunks/feature-utils.js +152 -107
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/handle.js +14 -0
- 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 +7 -7
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +91 -0
- 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 +11 -16
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +4 -4
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/AreaMeasurement3dViewModel.d.ts +8 -9
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +3 -3
- package/dist/components/arcgis-area-measurement-3d/customElement.js +30 -31
- package/dist/components/arcgis-attachments/customElement.d.ts +5 -5
- package/dist/components/arcgis-attachments/customElement.js +6 -6
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +2 -2
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +4 -4
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +3 -3
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +2 -2
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +16 -6
- package/dist/components/arcgis-bookmarks/customElement.js +57 -55
- package/dist/components/arcgis-building-explorer/customElement.d.ts +3 -3
- package/dist/components/arcgis-building-explorer/customElement.js +6 -6
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +3 -3
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.d.ts +2 -2
- package/dist/components/arcgis-compass/customElement.js +6 -6
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +53 -54
- package/dist/components/arcgis-coordinate-conversion/customElement.js +91 -82
- package/dist/components/arcgis-daylight/customElement.d.ts +116 -57
- package/dist/components/arcgis-daylight/customElement.js +154 -157
- package/dist/components/arcgis-daylight/index.d.ts +1 -0
- package/dist/components/arcgis-daylight/index.js +1 -0
- package/dist/components/arcgis-direct-line-measurement-3d/DirectLineMeasurement3dViewModel.d.ts +9 -10
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +3 -13
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +50 -58
- package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -2
- package/dist/components/arcgis-directional-pad/customElement.js +2 -2
- package/dist/components/arcgis-directions/customElement.d.ts +3 -3
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +4 -4
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.d.ts +14 -6
- package/dist/components/arcgis-editor/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +6 -6
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.d.ts +5 -2
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +11 -11
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.d.ts +5 -2
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +18 -15
- package/dist/components/arcgis-elevation-profile-next/ElevationProfileViewModel.d.ts +17 -6
- package/dist/components/arcgis-elevation-profile-next/customElement.d.ts +5 -5
- package/dist/components/arcgis-elevation-profile-next/customElement.js +212 -163
- package/dist/components/arcgis-elevation-profile-next/geometryUtils.d.ts +1 -1
- package/dist/components/arcgis-elevation-profile-next/interfaces.d.ts +2 -11
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.d.ts +3 -2
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +6 -6
- package/dist/components/arcgis-expand/customElement.d.ts +10 -9
- package/dist/components/arcgis-expand/customElement.js +33 -39
- package/dist/components/arcgis-feature/customElement.d.ts +18 -22
- package/dist/components/arcgis-feature/customElement.js +90 -77
- package/dist/components/arcgis-feature/index.d.ts +1 -0
- package/dist/components/arcgis-feature/index.js +1 -0
- package/dist/components/arcgis-feature-attachments/customElement.d.ts +2 -0
- package/dist/components/arcgis-feature-attachments/customElement.js +8 -8
- package/dist/components/arcgis-feature-content/customElement.js +2 -2
- 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.d.ts +4 -0
- package/dist/components/arcgis-feature-fields/customElement.js +36 -32
- package/dist/components/arcgis-feature-form/customElement.d.ts +4 -4
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.d.ts +1 -2
- package/dist/components/arcgis-feature-media/customElement.js +179 -178
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.d.ts +8 -7
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- 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.d.ts +23 -0
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +123 -0
- package/dist/components/arcgis-feature-utility-network-association-list/index.d.ts +8 -0
- package/dist/components/arcgis-feature-utility-network-association-list/index.js +8 -0
- package/dist/components/arcgis-feature-utility-network-associations/customElement.d.ts +73 -0
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +506 -0
- package/dist/components/arcgis-feature-utility-network-associations/index.d.ts +8 -0
- package/dist/components/arcgis-feature-utility-network-associations/index.js +8 -0
- package/dist/components/arcgis-features/customElement.d.ts +26 -11
- package/dist/components/arcgis-features/customElement.js +7 -7
- package/dist/components/arcgis-floor-filter/customElement.d.ts +3 -3
- package/dist/components/arcgis-floor-filter/customElement.js +7 -7
- package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +2 -2
- package/dist/components/arcgis-grid-controls/customElement.d.ts +2 -2
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +3 -3
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.d.ts +3 -3
- package/dist/components/arcgis-home/customElement.js +2 -2
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +3 -3
- 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 +18 -3
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +12 -12
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +9 -9
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +10 -10
- 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 +5 -5
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +9 -9
- 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 +4 -4
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +2 -2
- package/dist/components/arcgis-line-of-sight/customElement.js +28 -27
- package/dist/components/arcgis-link-chart/customElement.d.ts +70 -4
- package/dist/components/arcgis-link-chart/customElement.js +20 -22
- package/dist/components/arcgis-link-chart/index.d.ts +2 -0
- package/dist/components/arcgis-link-chart/index.js +2 -0
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +2 -2
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.d.ts +2 -2
- package/dist/components/arcgis-locate/customElement.js +2 -2
- package/dist/components/arcgis-map/customElement.d.ts +477 -61
- package/dist/components/arcgis-map/customElement.js +29 -31
- package/dist/components/arcgis-map/index.d.ts +2 -0
- package/dist/components/arcgis-map/index.js +2 -0
- package/dist/components/arcgis-measurement/customElement.d.ts +6 -6
- 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 -2
- package/dist/components/arcgis-navigation-toggle/customElement.js +5 -5
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +4 -4
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
- package/dist/components/arcgis-placement/customElement.d.ts +2 -2
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +48 -18
- package/dist/components/arcgis-popup/customElement.js +72 -72
- package/dist/components/arcgis-print/customElement.d.ts +2 -2
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print/utils.d.ts +1 -2
- 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-exported-link/customElement.js +38 -48
- package/dist/components/arcgis-print-exports-panel/customElement.js +4 -4
- 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 +17 -15
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.d.ts +2 -2
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +4 -3
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +46 -6
- package/dist/components/arcgis-scene/customElement.js +27 -29
- package/dist/components/arcgis-scene/index.d.ts +2 -0
- package/dist/components/arcgis-scene/index.js +2 -0
- package/dist/components/arcgis-search/customElement.d.ts +17 -19
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.d.ts +2 -0
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +4 -4
- package/dist/components/arcgis-shadow-cast/customElement.js +2 -2
- package/dist/components/arcgis-sketch/customElement.d.ts +16 -8
- package/dist/components/arcgis-sketch/customElement.js +15 -7
- package/dist/components/arcgis-slice/customElement.d.ts +2 -2
- package/dist/components/arcgis-slice/customElement.js +14 -15
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +2 -2
- package/dist/components/arcgis-swipe/customElement.js +2 -2
- package/dist/components/arcgis-table-list/customElement.d.ts +6 -4
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.d.ts +4 -4
- package/dist/components/arcgis-time-slider/customElement.js +2 -2
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +12 -13
- package/dist/components/arcgis-time-zone-label/customElement.js +41 -49
- package/dist/components/arcgis-track/customElement.d.ts +2 -2
- package/dist/components/arcgis-track/customElement.js +2 -2
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.d.ts +27 -0
- package/dist/components/arcgis-utility-network-association-list/customElement.js +110 -0
- package/dist/components/arcgis-utility-network-association-list/index.d.ts +4 -0
- package/dist/components/arcgis-utility-network-association-list/index.js +4 -0
- package/dist/components/arcgis-utility-network-association-list/types.d.ts +2 -0
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +69 -25
- package/dist/components/arcgis-utility-network-associations/customElement.js +3 -3
- package/dist/components/arcgis-utility-network-result-feature-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.d.ts +20 -0
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +36 -0
- package/dist/components/arcgis-utility-network-subnetwork-info/index.d.ts +1 -0
- package/dist/components/arcgis-utility-network-subnetwork-info/index.js +1 -0
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +5 -3
- package/dist/components/arcgis-utility-network-trace/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +2 -48
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +30 -51
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +7 -8
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +214 -56
- package/dist/components/arcgis-utility-network-trace-inputs/index.d.ts +7 -2
- package/dist/components/arcgis-utility-network-trace-inputs/index.js +7 -2
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +44 -0
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +194 -0
- package/dist/components/arcgis-utility-network-trace-location/index.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-location/index.js +3 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +3 -3
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +2 -2
- package/dist/components/arcgis-value-picker/customElement.d.ts +3 -3
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +1 -1
- package/dist/components/arcgis-version-management/customElement.js +2 -2
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +42 -27
- package/dist/components/arcgis-version-management-version-list/index.d.ts +2 -1
- package/dist/components/arcgis-version-management-version-list/index.js +2 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.d.ts +9 -2
- package/dist/components/arcgis-video/customElement.js +15 -9
- package/dist/components/arcgis-video-player/customElement.d.ts +3 -3
- package/dist/components/arcgis-video-player/customElement.js +4 -4
- package/dist/components/arcgis-video-player-action-bar/customElement.js +18 -18
- package/dist/components/arcgis-video-player-actions-group/customElement.js +13 -12
- package/dist/components/arcgis-video-player-controls-group/customElement.js +23 -23
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +19 -18
- package/dist/components/arcgis-video-player-slider/customElement.js +2 -2
- package/dist/components/arcgis-weather/customElement.d.ts +2 -2
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.d.ts +2 -2
- package/dist/components/arcgis-zoom/customElement.js +2 -2
- package/dist/components/support/utility-components/component-wrapper.d.ts +1 -1
- package/dist/controllers/uiController.d.ts +11 -1
- package/dist/controllers/useArcgisLoadError.d.ts +27 -0
- package/dist/controllers/useArcgisViewReadyError.d.ts +17 -0
- package/dist/docs/api.json +2168 -1599
- package/dist/docs/docs.json +1986 -1346
- package/dist/docs/vscode.css-custom-data.json +16 -16
- package/dist/docs/vscode.html-custom-data.json +208 -290
- package/dist/docs/web-types.json +619 -517
- package/dist/index.d.ts +33 -20
- package/dist/index.js +1 -1
- package/dist/loader.js +23 -20
- package/dist/support/AnalysisViewModel.d.ts +1 -0
- package/dist/support/handle.d.ts +1 -1
- package/dist/support/measurementUtils.d.ts +2 -2
- package/dist/support/slots.d.ts +1 -1
- package/dist/types/lumina.d.ts +31 -18
- package/dist/types/preact.d.ts +33 -19
- package/dist/types/preact10.d.ts +35 -20
- package/dist/types/react.d.ts +35 -20
- package/dist/types/stencil.d.ts +31 -18
- package/dist/utils/async-utils.d.ts +19 -0
- package/dist/utils/feature-utils.d.ts +16 -1
- package/dist/utils/highlight-utils.d.ts +22 -0
- package/dist/utils/layer-utils.d.ts +4 -0
- package/package.json +5 -5
- package/dist/cdn/2AZHLSAM.js +0 -4
- package/dist/cdn/2QRPRZG7.js +0 -4
- package/dist/cdn/2TIHIEKF.js +0 -4
- package/dist/cdn/34BYMZKN.js +0 -4
- package/dist/cdn/34UFWCNP.js +0 -4
- package/dist/cdn/37KDGILU.js +0 -4
- package/dist/cdn/3R2IE2EP.js +0 -4
- package/dist/cdn/3TNLQA2F.js +0 -4
- package/dist/cdn/44N6D3WC.js +0 -4
- package/dist/cdn/4CPDJQ27.js +0 -4
- package/dist/cdn/53D5QJFX.js +0 -4
- package/dist/cdn/5UJK4YHX.js +0 -4
- package/dist/cdn/63KJYSZ6.js +0 -4
- package/dist/cdn/6G2XDWMZ.js +0 -4
- package/dist/cdn/6VRVCX3L.js +0 -4
- package/dist/cdn/7BGZFWPA.js +0 -4
- package/dist/cdn/7C2OVYAI.js +0 -4
- package/dist/cdn/7CTFDRQC.js +0 -4
- package/dist/cdn/7DC3PGD2.js +0 -4
- package/dist/cdn/7HSMTM2G.js +0 -4
- package/dist/cdn/7KIRVDDY.js +0 -4
- package/dist/cdn/AFYGKVBX.js +0 -4
- package/dist/cdn/AH3BVTCT.js +0 -4
- package/dist/cdn/ALENT5NF.js +0 -4
- package/dist/cdn/ATKMD43D.js +0 -5
- package/dist/cdn/BG77QJIW.js +0 -4
- package/dist/cdn/CKCTJ6CW.js +0 -4
- package/dist/cdn/CNLBDFHY.js +0 -4
- package/dist/cdn/CTZ7P2ON.js +0 -4
- package/dist/cdn/CV57WMBL.js +0 -9
- package/dist/cdn/CVMDCLGB.js +0 -4
- package/dist/cdn/DRLSZQDU.js +0 -4
- package/dist/cdn/DV2N434J.js +0 -4
- package/dist/cdn/EESASTEL.js +0 -4
- package/dist/cdn/EIB4B7NM.js +0 -4
- package/dist/cdn/EJ6NO5NK.js +0 -4
- package/dist/cdn/EQ5LPNFG.js +0 -4
- package/dist/cdn/ESWN44C2.js +0 -4
- package/dist/cdn/FGMLBVRU.js +0 -4
- package/dist/cdn/FMG27I4G.js +0 -4
- package/dist/cdn/G7HMCSFT.js +0 -4
- package/dist/cdn/GF6IWOJL.js +0 -4
- package/dist/cdn/GKKACUDU.js +0 -4
- package/dist/cdn/GNUO5PT5.js +0 -4
- package/dist/cdn/GO3GNQWU.js +0 -4
- package/dist/cdn/GTX63LFG.js +0 -4
- package/dist/cdn/IJ7RAUIP.js +0 -4
- package/dist/cdn/IXQV54AH.js +0 -4
- package/dist/cdn/IYKN5PO5.js +0 -4
- package/dist/cdn/J3J6R74M.js +0 -4
- package/dist/cdn/J775FRFE.js +0 -4
- package/dist/cdn/JCD5KEV5.js +0 -4
- package/dist/cdn/JO6R7FAD.js +0 -4
- package/dist/cdn/JULFSLDD.js +0 -4
- package/dist/cdn/KA2OECP3.js +0 -4
- package/dist/cdn/KQ3JBLDT.js +0 -4
- package/dist/cdn/KT3EUEKF.js +0 -4
- package/dist/cdn/L3AGPAN7.js +0 -4
- package/dist/cdn/LUBY2O7T.js +0 -4
- package/dist/cdn/LWWUKKLM.js +0 -4
- package/dist/cdn/MJIHMPZU.js +0 -4
- package/dist/cdn/MNLAUE2R.js +0 -4
- package/dist/cdn/MSCH74JK.js +0 -4
- package/dist/cdn/N3ZZQIYY.js +0 -4
- package/dist/cdn/NFNK7YME.js +0 -4
- package/dist/cdn/NNJWJUAD.js +0 -4
- package/dist/cdn/NXFS5VZC.js +0 -4
- package/dist/cdn/NYJOUGGN.js +0 -4
- package/dist/cdn/O7ICRTC5.js +0 -4
- package/dist/cdn/OH55X5ST.js +0 -4
- package/dist/cdn/OHXEZHUF.js +0 -4
- package/dist/cdn/OULH6KEN.js +0 -4
- package/dist/cdn/OXCYD67R.js +0 -4
- package/dist/cdn/P4GL7TQJ.js +0 -4
- package/dist/cdn/PK5EPYTE.js +0 -4
- package/dist/cdn/Q26RMW45.js +0 -4
- package/dist/cdn/Q7CX6235.js +0 -4
- package/dist/cdn/QMRZYMIJ.js +0 -4
- package/dist/cdn/QPXLDAZR.js +0 -4
- package/dist/cdn/QREJFC5Z.js +0 -4
- package/dist/cdn/QRPZEJLW.js +0 -4
- package/dist/cdn/QUFHIUYU.js +0 -4
- package/dist/cdn/R35F7LSR.js +0 -4
- package/dist/cdn/RAUOWG2P.js +0 -4
- package/dist/cdn/RBLUJIEM.js +0 -4
- package/dist/cdn/RD4WHUHX.js +0 -4
- package/dist/cdn/RPYAAT7A.js +0 -4
- package/dist/cdn/RQUX2H7R.js +0 -4
- package/dist/cdn/RXHQCPJY.js +0 -4
- package/dist/cdn/RYXSSH5D.js +0 -4
- package/dist/cdn/SBYAAEWD.js +0 -4
- package/dist/cdn/SSEBMECL.js +0 -4
- package/dist/cdn/SZABV557.js +0 -4
- package/dist/cdn/T6XWFHOM.js +0 -4
- package/dist/cdn/TF2524IM.js +0 -4
- package/dist/cdn/TUHJKFNY.js +0 -4
- package/dist/cdn/TWK4M5TM.js +0 -4
- package/dist/cdn/TWZ6WRUM.js +0 -4
- package/dist/cdn/U5HMRSJG.js +0 -4
- package/dist/cdn/UBXMRMPS.js +0 -4
- package/dist/cdn/V25AJNHD.js +0 -4
- package/dist/cdn/V3KSNGDN.js +0 -4
- package/dist/cdn/V54CMZHN.js +0 -4
- package/dist/cdn/V5SM3QEH.js +0 -4
- package/dist/cdn/VLS7CPMI.js +0 -4
- package/dist/cdn/VSIBQFUQ.js +0 -4
- package/dist/cdn/VWFDTLYA.js +0 -4
- package/dist/cdn/X74EKXT7.js +0 -4
- package/dist/cdn/XAPWGYND.js +0 -4
- package/dist/cdn/XCKB43CS.js +0 -4
- package/dist/cdn/YAJHM6HT.js +0 -4
- package/dist/cdn/Z25G3SCO.js +0 -4
- package/dist/cdn/Z4Z7YFNR.js +0 -4
- package/dist/cdn/ZKKZT5GI.js +0 -4
- package/dist/cdn/ZR4UXKJK.js +0 -4
- package/dist/chunks/uiController.js +0 -45
- package/dist/components/arcgis-version-management-version-item/customElement.d.ts +0 -22
- package/dist/components/arcgis-version-management-version-item/customElement.js +0 -30
- package/dist/components/arcgis-version-management-version-item/index.d.ts +0 -5
- package/dist/components/arcgis-version-management-version-item/index.js +0 -5
|
@@ -1,103 +1,261 @@
|
|
|
1
|
-
import { c } from "../../chunks/runtime.js";
|
|
2
|
-
import { repeat as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { c as b } from "../../chunks/runtime.js";
|
|
2
|
+
import { repeat as h } from "lit/directives/repeat.js";
|
|
3
|
+
import { queryAllJSON as m } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
4
|
+
import n from "@arcgis/core/core/Collection.js";
|
|
5
|
+
import f from "@arcgis/core/layers/GraphicsLayer.js";
|
|
6
|
+
import d from "@arcgis/core/networks/support/UNTraceConfiguration.js";
|
|
7
|
+
import _ from "@arcgis/core/rest/support/FeatureSet.js";
|
|
8
|
+
import u from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
|
|
9
|
+
import S from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
10
|
+
import { LitElement as T, createEvent as g, safeClassMap as p } from "@arcgis/lumina";
|
|
11
|
+
import { css as N, html as s } from "lit";
|
|
12
|
+
import { u as $ } from "../../chunks/useT9n.js";
|
|
6
13
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
14
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
8
|
-
v5.0.0-next.
|
|
9
|
-
const
|
|
10
|
-
|
|
15
|
+
v5.0.0-next.30 */
|
|
16
|
+
const L = N`:host{min-width:300px}.arcgis-utility-network-trace-inputs calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-inputs calcite-block-group{padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.arcgis-utility-network-trace-inputs calcite-block calcite-select{padding:0 var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}.arcgis-utility-network-trace-inputs calcite-notice{padding:var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs .inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs__add-spatial-mode{display:flex;padding:var(--calcite-spacing-xxl) var(--calcite-spacing-sm);flex-direction:column;justify-content:center;align-items:center;gap:var(--calcite-spacing-md);align-self:stretch}.arcgis-utility-network-trace-inputs .subnetwork-info-block{padding-top:var(--calcite-spacing-md);padding-left:var(--calcite-spacing-md);padding-right:var(--calcite-spacing-md)}`, w = "arcgis-utility-network-trace-inputs", k = {
|
|
17
|
+
// popup renderer
|
|
18
|
+
base: w,
|
|
19
|
+
// containers and content
|
|
20
|
+
addSpatialMode: `${w}__add-spatial-mode`
|
|
21
|
+
}, c = "map-components:utility-network-trace-inputs", y = `utility-network-trace-inputs-sketch-${Date.now()}`, l = `utility-network-trace-inputs-flags-${Date.now()}`;
|
|
22
|
+
class C extends T {
|
|
11
23
|
constructor() {
|
|
12
|
-
super(...arguments), this.
|
|
24
|
+
super(...arguments), this._messages = $({ blocking: !0 }), this._startingPoints = new n(), this._barriers = new n(), this._stoppingPoints = new n(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
|
|
25
|
+
"subnetwork",
|
|
26
|
+
"subnetwork-controller",
|
|
27
|
+
"upstream",
|
|
28
|
+
"downstream",
|
|
29
|
+
"isolation"
|
|
30
|
+
]), this._removeDuplicateSubnetworkNames = (e, t, i) => t === 0 || e.getAttribute("SUBNETWORKNAME") !== i[t - 1].getAttribute("SUBNETWORKNAME"), this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this._mode = "default", this.arcgisTraceInputsChange = g(), this.arcgisUtilityNetworkChange = g();
|
|
13
31
|
}
|
|
14
32
|
static {
|
|
15
|
-
this.properties = { traceConfigurations: 16, utilityNetworks: 16, _state: 16, view: 0, selectedUtilityNetwork: 0, selectedTraceConfiguration: 0, referenceElement: 1 };
|
|
33
|
+
this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _state: 16, _mode: 16, _activeTraceLocationType: 16, view: 0, selectedSubnetworkName: 1, selectedUtilityNetwork: 0, selectedTraceConfiguration: 0, referenceElement: 1, traceLocations: 32 };
|
|
16
34
|
}
|
|
17
35
|
static {
|
|
18
|
-
this.styles =
|
|
36
|
+
this.styles = L;
|
|
37
|
+
}
|
|
38
|
+
get _allLayers() {
|
|
39
|
+
const { view: e } = this;
|
|
40
|
+
return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
|
|
41
|
+
}
|
|
42
|
+
get traceLocations() {
|
|
43
|
+
const e = this._startingPoints.toArray().map((a) => a.traceLocation), t = this._barriers.toArray().map((a) => a.traceLocation), i = this._stoppingPoints.toArray().map((a) => a.traceLocation);
|
|
44
|
+
return [...e, ...t, ...i];
|
|
19
45
|
}
|
|
20
46
|
load() {
|
|
21
|
-
this._setupUtilityNetwork();
|
|
47
|
+
this._setupUtilityNetwork(), this._setupSketchViewModel();
|
|
22
48
|
}
|
|
23
|
-
willUpdate(
|
|
24
|
-
const { utilityNetworks:
|
|
25
|
-
(
|
|
49
|
+
willUpdate(e) {
|
|
50
|
+
const { utilityNetworks: t, selectedUtilityNetwork: i } = this;
|
|
51
|
+
(e.has("utilityNetworks") || !t || t.length === 0 || !i || !t?.includes(i)) && this._handleUtilityNetworksChange(), e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this._handleSelectedUtilityNetworkChange()), e.has("selectedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this._handleTraceConfigChange()), e.has("selectedSubnetworkName") && this.arcgisTraceInputsChange.emit();
|
|
26
52
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
53
|
+
_clearTraceLocations() {
|
|
54
|
+
this._getGraphicLayer(l)?.removeAll(), this._startingPoints.removeAll(), this._barriers.removeAll(), this._stoppingPoints.removeAll();
|
|
55
|
+
}
|
|
56
|
+
_addUniqueLayer(e, t, i) {
|
|
57
|
+
if (!t || !e?.map)
|
|
30
58
|
return;
|
|
59
|
+
const { map: a } = e, r = a.layers.find((o) => o === t);
|
|
60
|
+
r || a.add(t, i), r && i != null && a.layers.reorder(r, i);
|
|
61
|
+
}
|
|
62
|
+
_createGraphicLayer(e) {
|
|
63
|
+
const { map: t } = this.view;
|
|
64
|
+
if (!t?.findLayerById(e)) {
|
|
65
|
+
const a = new f({
|
|
66
|
+
id: e,
|
|
67
|
+
listMode: "hide",
|
|
68
|
+
title: e
|
|
69
|
+
});
|
|
70
|
+
this._addUniqueLayer(this.view, a);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
_getGraphicLayer(e) {
|
|
74
|
+
const { map: t } = this.view;
|
|
75
|
+
if (t) {
|
|
76
|
+
const i = t.findLayerById(e);
|
|
77
|
+
if (i && i.type === "graphics")
|
|
78
|
+
return i;
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
_setSnappingOption() {
|
|
83
|
+
const { _sketchViewModel: e, _unLayers: t } = this;
|
|
84
|
+
if (e && t && t.length > 0) {
|
|
85
|
+
const i = new n();
|
|
86
|
+
t.forEach((a) => {
|
|
87
|
+
a.type === "subtype-group" ? a.sublayers.forEach((r) => {
|
|
88
|
+
i.add(new u({
|
|
89
|
+
layer: r,
|
|
90
|
+
enabled: !0
|
|
91
|
+
}));
|
|
92
|
+
}) : i.add(new u({
|
|
93
|
+
layer: a,
|
|
94
|
+
enabled: !0
|
|
95
|
+
}));
|
|
96
|
+
}), e.snappingOptions = {
|
|
97
|
+
enabled: !0,
|
|
98
|
+
featureEnabled: !0,
|
|
99
|
+
featureSources: i
|
|
100
|
+
};
|
|
31
101
|
}
|
|
32
102
|
}
|
|
33
|
-
|
|
34
|
-
const e = this.
|
|
35
|
-
|
|
36
|
-
|
|
103
|
+
_initializeSketchViewModel() {
|
|
104
|
+
const { view: e, _unLayers: t } = this, i = this._getGraphicLayer(y), a = new n();
|
|
105
|
+
return t?.forEach((r) => a.add(new u({
|
|
106
|
+
layer: r,
|
|
107
|
+
enabled: !0
|
|
108
|
+
}))), new S({
|
|
109
|
+
layer: i,
|
|
110
|
+
view: e
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
_setupSketchViewModel() {
|
|
114
|
+
this._createGraphicLayer(y), this._createGraphicLayer(l), this._sketchViewModel = this._initializeSketchViewModel();
|
|
115
|
+
}
|
|
116
|
+
_clearSubnetworks() {
|
|
117
|
+
this.selectedSubnetworkName = void 0, this.subnetworksTable = void 0, this.compatibleSubnetworkNames = [];
|
|
118
|
+
}
|
|
119
|
+
async _loadSubnetworksTable() {
|
|
120
|
+
this.subnetworksTable || (this.subnetworksTable = await this.selectedUtilityNetwork?.loadSubnetworksTable());
|
|
121
|
+
}
|
|
122
|
+
async _querySubnetworks() {
|
|
123
|
+
const { subnetworksTable: e } = this;
|
|
124
|
+
if (!e)
|
|
125
|
+
return;
|
|
126
|
+
const t = e.createQuery();
|
|
127
|
+
t.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, t.where = this._getSubnetworkQueryWhereClause(), t.outFields = ["SUBNETWORKNAME"], t.orderByFields = ["SUBNETWORKNAME"];
|
|
128
|
+
const i = _.fromJSON(await m(e, t));
|
|
129
|
+
this.compatibleSubnetworkNames = i.features.filter(this._removeDuplicateSubnetworkNames).map((a) => a.getAttribute("SUBNETWORKNAME"));
|
|
130
|
+
}
|
|
131
|
+
_getSubnetworkQueryWhereClause() {
|
|
132
|
+
const e = this.selectedTraceConfiguration?.traceConfiguration, t = `DOMAINNETWORKNAME = '${e.domainNetworkName}'`, i = `TIERNAME = '${e.tierName}'`;
|
|
133
|
+
return [t, i].join(" AND ");
|
|
134
|
+
}
|
|
135
|
+
async _handleSubnetworkTraceConfigChange(e) {
|
|
136
|
+
const { traceConfiguration: t } = e;
|
|
137
|
+
if (!(t instanceof d)) {
|
|
138
|
+
console.error(`${c} - Trace configuration not found`);
|
|
37
139
|
return;
|
|
38
140
|
}
|
|
39
|
-
this.
|
|
141
|
+
await this._loadSubnetworksTable(), await this._querySubnetworks(), this.selectedSubnetworkName = this.compatibleSubnetworkNames.find((i) => i === t.subnetworkName) ?? this.compatibleSubnetworkNames.at(0);
|
|
142
|
+
}
|
|
143
|
+
_selectTraceConfigurationByGuid(e) {
|
|
144
|
+
const t = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === e);
|
|
145
|
+
if (!t) {
|
|
146
|
+
console.error(`${c} - Trace configuration not found`);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this.selectedTraceConfiguration = t;
|
|
40
150
|
}
|
|
41
151
|
_handleTraceConfigChange() {
|
|
42
|
-
const { selectedTraceConfiguration:
|
|
43
|
-
if (
|
|
44
|
-
switch (
|
|
152
|
+
const { selectedTraceConfiguration: e } = this;
|
|
153
|
+
if (e)
|
|
154
|
+
switch (e.traceType) {
|
|
45
155
|
case "subnetwork":
|
|
46
|
-
this._handleSubnetworkTraceConfigChange(
|
|
156
|
+
this._handleSubnetworkTraceConfigChange(e);
|
|
47
157
|
break;
|
|
48
158
|
default:
|
|
49
|
-
console.error(`${
|
|
159
|
+
console.error(`${c} - Unknown trace configuration type`);
|
|
50
160
|
}
|
|
51
161
|
}
|
|
52
|
-
async
|
|
53
|
-
await this.selectedUtilityNetwork?.load(), this.
|
|
162
|
+
async _handleSelectedUtilityNetworkChange() {
|
|
163
|
+
await this.selectedUtilityNetwork?.load(), this._clearSubnetworks(), this._setupTraceConfigurations(), this._filterUnLayers(), this._clearTraceLocations();
|
|
164
|
+
}
|
|
165
|
+
_setupTraceConfigurations() {
|
|
166
|
+
this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations || [], this.selectedTraceConfiguration = this.traceConfigurations.at(0);
|
|
167
|
+
}
|
|
168
|
+
_filterUnLayers() {
|
|
169
|
+
const { selectedUtilityNetwork: e } = this;
|
|
170
|
+
this._unLayers = new n(this._allLayers.filter((t) => e?.isUtilityLayer(t))), this._setSnappingOption();
|
|
54
171
|
}
|
|
55
172
|
_handleUtilityNetworksChange() {
|
|
56
|
-
const { utilityNetworks:
|
|
57
|
-
if (!
|
|
58
|
-
this._state = "error", console.error(`${
|
|
173
|
+
const { utilityNetworks: e } = this;
|
|
174
|
+
if (!e || e.length === 0) {
|
|
175
|
+
this._state = "error", console.error(`${c} - No utility networks found in the map`);
|
|
59
176
|
return;
|
|
60
177
|
}
|
|
61
|
-
(!this.selectedUtilityNetwork || !
|
|
178
|
+
(!this.selectedUtilityNetwork || !e.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = e.at(0));
|
|
62
179
|
}
|
|
63
180
|
async _setupUtilityNetwork() {
|
|
64
181
|
if (this.view?.map) {
|
|
65
|
-
const
|
|
66
|
-
await
|
|
182
|
+
const e = this.view.map;
|
|
183
|
+
await e.load(), this.utilityNetworks = e.utilityNetworks || void 0;
|
|
67
184
|
} else
|
|
68
|
-
this._state = "disabled", console.error(`${
|
|
185
|
+
this._state = "disabled", console.error(`${c} - No view or map available to load utility networks`);
|
|
69
186
|
}
|
|
70
|
-
|
|
71
|
-
|
|
187
|
+
_handleTraceLocationSelectStart(e) {
|
|
188
|
+
this._activeTraceLocationType = e?.target?.traceLocationType, this._mode = "add-spatial";
|
|
189
|
+
}
|
|
190
|
+
_handleTraceLocationSelectEnd() {
|
|
191
|
+
this._activeTraceLocationType = void 0, this._mode = "default";
|
|
192
|
+
}
|
|
193
|
+
_handleFlowItemBack() {
|
|
194
|
+
this._mode = "default", this._activeTraceLocationType = void 0, this._sketchViewModel?.cancel();
|
|
195
|
+
}
|
|
196
|
+
renderError(e, t = !1, i) {
|
|
197
|
+
return s`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`;
|
|
72
198
|
}
|
|
73
199
|
renderLoader() {
|
|
74
200
|
return s`<calcite-loader label=loading></calcite-loader>`;
|
|
75
201
|
}
|
|
76
202
|
renderTraceSelection() {
|
|
77
|
-
const {
|
|
78
|
-
if (
|
|
79
|
-
return this.renderError(
|
|
80
|
-
const
|
|
81
|
-
return s`<calcite-label
|
|
82
|
-
this._selectTraceConfigurationByGuid(
|
|
83
|
-
}}>${
|
|
203
|
+
const { _messages: e, traceConfigurations: t } = this, i = e.labels.traceConfiguration;
|
|
204
|
+
if (t.length === 0)
|
|
205
|
+
return this.renderError(e.errors.noTraceConfigurationError, !0);
|
|
206
|
+
const a = h(t, (r) => r.globalId, (r) => s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);
|
|
207
|
+
return s`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(r) => {
|
|
208
|
+
this._selectTraceConfigurationByGuid(r.target.value);
|
|
209
|
+
}}>${a}</calcite-select></calcite-block>`;
|
|
84
210
|
}
|
|
85
211
|
renderUtilityNetworkSelection() {
|
|
86
|
-
const {
|
|
87
|
-
return s`<calcite-label
|
|
88
|
-
this.selectedUtilityNetwork?.id !==
|
|
89
|
-
}}>${i}</calcite-select></calcite-
|
|
212
|
+
const { _messages: e } = this, t = e.labels.utilityNetwork, i = h(this.utilityNetworks, (a) => a.id, (a) => s`<calcite-option .value=${a.id}>${a.title}</calcite-option>`);
|
|
213
|
+
return s`<calcite-block .heading=${t} .label=${t} expanded><calcite-select .label=${t} .value=${this.selectedUtilityNetwork?.id} @calciteSelectChange=${(a) => {
|
|
214
|
+
this.selectedUtilityNetwork?.id !== a.target.value && (this.selectedUtilityNetwork = this.utilityNetworks?.find((r) => r.id === a.target.value));
|
|
215
|
+
}}>${i}</calcite-select></calcite-block>`;
|
|
216
|
+
}
|
|
217
|
+
renderDefaultMode() {
|
|
218
|
+
const { _messages: e, _state: t, _mode: i } = this;
|
|
219
|
+
return s`<calcite-flow-item .selected=${i === "default"}>${t === "disabled" ? this.renderError(e.errors.noMapError) : this.renderContent()}</calcite-flow-item>`;
|
|
220
|
+
}
|
|
221
|
+
renderAddSpatialMode() {
|
|
222
|
+
const { _messages: e, _activeTraceLocationType: t } = this, i = t === "starting-point" ? e.labels.addSpatial.startingPoint : t === "barrier" ? e.labels.addSpatial.barrier : e.labels.addSpatial.stoppingPoint;
|
|
223
|
+
return s`<calcite-flow-item selected .heading=${i} @calciteFlowItemBack=${() => this._handleFlowItemBack()}><div class=${p(k.addSpatialMode)}><calcite-icon icon=pin-plus scale=l></calcite-icon>${e.instructions.addSpatial}</div></calcite-flow-item>`;
|
|
224
|
+
}
|
|
225
|
+
renderStartingPointSelection() {
|
|
226
|
+
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point @arcgisTraceLocationSelectStart=${(e) => this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${() => this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._startingPoints}></arcgis-utility-network-trace-location>`;
|
|
227
|
+
}
|
|
228
|
+
renderStoppingPointSelection() {
|
|
229
|
+
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point @arcgisTraceLocationSelectStart=${(e) => this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${() => this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._stoppingPoints}></arcgis-utility-network-trace-location>`;
|
|
230
|
+
}
|
|
231
|
+
renderBarrierSelection() {
|
|
232
|
+
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier @arcgisTraceLocationSelectStart=${(e) => this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${() => this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._barriers}></arcgis-utility-network-trace-location>`;
|
|
233
|
+
}
|
|
234
|
+
renderSubnetworkSelectList() {
|
|
235
|
+
const { compatibleSubnetworkNames: e, selectedSubnetworkName: t, _messages: i } = this, a = i.labels.subnetworkName, r = e.map((o) => s`<calcite-option .value=${o}>${o}</calcite-option>`);
|
|
236
|
+
return s`<calcite-block .heading=${a} .label=${a} expanded><calcite-select .label=${a} .value=${t} @calciteSelectChange=${(o) => this.selectedSubnetworkName = o.target.value}>${r}</calcite-select></calcite-block>`;
|
|
237
|
+
}
|
|
238
|
+
renderSubnetworkSelection() {
|
|
239
|
+
const { compatibleSubnetworkNames: e, _messages: t, selectedTraceConfiguration: i } = this;
|
|
240
|
+
return i?.traceConfiguration instanceof d && i.traceType === "subnetwork" && i.traceConfiguration.subnetworkName ? this.subnetworksTable?.loaded ? e.length ? this.renderSubnetworkSelectList() : this.renderError(t.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : null;
|
|
241
|
+
}
|
|
242
|
+
renderSubnetworkInfo() {
|
|
243
|
+
const { _messages: e, selectedTraceConfiguration: t } = this;
|
|
244
|
+
return t?.traceConfiguration instanceof d && t.traceType && this._subnetworkTraceTypes.has(t.traceType) ? s`<calcite-block class="subnetwork-info-block" expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>` : null;
|
|
90
245
|
}
|
|
91
246
|
renderContent() {
|
|
92
|
-
const {
|
|
93
|
-
|
|
247
|
+
const { _messages: e, utilityNetworks: t } = this;
|
|
248
|
+
if (!t || t.length === 0)
|
|
249
|
+
return this.renderError(e.errors.noUtilityNetworkError);
|
|
250
|
+
const i = s`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`;
|
|
251
|
+
return s`<calcite-block-group .label=${e.labels.traceInputs}>${t.length > 1 ? this.renderUtilityNetworkSelection() : null}${this.selectedUtilityNetwork?.loaded ? i : this.renderLoader()}${this.selectedTraceConfiguration ? this.renderStartingPointSelection() : null}${this.selectedTraceConfiguration ? this.renderStoppingPointSelection() : null}${this.selectedTraceConfiguration ? this.renderBarrierSelection() : null}</calcite-block-group>`;
|
|
94
252
|
}
|
|
95
253
|
render() {
|
|
96
|
-
const {
|
|
97
|
-
return s`<div class
|
|
254
|
+
const { _mode: e } = this;
|
|
255
|
+
return s`<div class=${p(k.base)}><calcite-flow>${this.renderDefaultMode()}${e === "add-spatial" ? this.renderAddSpatialMode() : null}</calcite-flow></div>`;
|
|
98
256
|
}
|
|
99
257
|
}
|
|
100
|
-
|
|
258
|
+
b("arcgis-utility-network-trace-inputs", C);
|
|
101
259
|
export {
|
|
102
|
-
|
|
260
|
+
C as ArcgisUtilityNetworkTraceInputs
|
|
103
261
|
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-notice";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-loader";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-option";
|
|
4
|
-
import "@esri/calcite-components/components/calcite-label";
|
|
5
|
-
import "@esri/calcite-components/components/calcite-select";
|
|
6
4
|
import "@esri/calcite-components/components/calcite-block";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-select";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-flow-item";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
8
|
+
import "../arcgis-utility-network-trace-location/index.js";
|
|
9
|
+
import "../arcgis-utility-network-subnetwork-info/index.js";
|
|
10
|
+
import "@esri/calcite-components/components/calcite-block-group";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-flow";
|
|
7
12
|
export * from "./customElement.js";
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-notice";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-loader";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-option";
|
|
4
|
-
import "@esri/calcite-components/components/calcite-label";
|
|
5
|
-
import "@esri/calcite-components/components/calcite-select";
|
|
6
4
|
import "@esri/calcite-components/components/calcite-block";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-select";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-flow-item";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
8
|
+
import "../arcgis-utility-network-trace-location/index.js";
|
|
9
|
+
import "../arcgis-utility-network-subnetwork-info/index.js";
|
|
10
|
+
import "@esri/calcite-components/components/calcite-block-group";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-flow";
|
|
7
12
|
export * from "./customElement.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { default as Collection } from '@arcgis/core/core/Collection.js';
|
|
3
|
+
import { default as GraphicsLayer } from '@arcgis/core/layers/GraphicsLayer.js';
|
|
4
|
+
import { default as Layer } from '@arcgis/core/layers/Layer.js';
|
|
5
|
+
import { default as MapView } from '@arcgis/core/views/MapView.js';
|
|
6
|
+
import { default as SketchViewModel } from '@arcgis/core/widgets/Sketch/SketchViewModel.js';
|
|
7
|
+
import { PublicLitElement as LitElement, TargetedEvent, JsxNode } from '@arcgis/lumina';
|
|
8
|
+
import { default as UtilityNetwork } from '@arcgis/core/networks/UtilityNetwork.js';
|
|
9
|
+
import { default as TraceLocation } from '@arcgis/core/rest/networks/support/TraceLocation.js';
|
|
10
|
+
import { default as Point } from '@arcgis/core/geometry/Point.js';
|
|
11
|
+
import { default as Graphic } from '@arcgis/core/Graphic.js';
|
|
12
|
+
export interface FlagProperty {
|
|
13
|
+
traceLocation: TraceLocation;
|
|
14
|
+
mapPoint?: Point | null;
|
|
15
|
+
mapGraphic?: Graphic | null;
|
|
16
|
+
details?: Graphic | null;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This is a sub-component used by the **ArcgisUtilityNetworkTraceAnalysis** component.
|
|
21
|
+
*
|
|
22
|
+
* This sub-component takes a map view as an input.
|
|
23
|
+
* It allows users to select locations on the map to use as trace inputs.
|
|
24
|
+
*
|
|
25
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-utility-network-trace-location/)
|
|
26
|
+
*
|
|
27
|
+
* @since 4.34
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare class ArcgisUtilityNetworkTraceLocation extends LitElement {
|
|
31
|
+
/** @required */
|
|
32
|
+
view?: MapView;
|
|
33
|
+
/** @default "starting-point" */
|
|
34
|
+
traceLocationType: "barrier" | "starting-point" | "stopping-point";
|
|
35
|
+
traceLocations?: Collection<FlagProperty>;
|
|
36
|
+
filterLayers?: Collection<Layer>;
|
|
37
|
+
sketchViewModel?: SketchViewModel;
|
|
38
|
+
flagLayer?: GraphicsLayer;
|
|
39
|
+
/** @required The utility network to perform the trace on. */
|
|
40
|
+
utilityNetwork?: UtilityNetwork;
|
|
41
|
+
readonly arcgisTraceLocationChange: TargetedEvent<this, void>;
|
|
42
|
+
readonly arcgisTraceLocationSelectEnd: TargetedEvent<this, void>;
|
|
43
|
+
readonly arcgisTraceLocationSelectStart: TargetedEvent<this, void>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { c as $ } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as T, html as b } from "lit";
|
|
3
|
+
import v from "@arcgis/core/geometry/Polyline.js";
|
|
4
|
+
import x from "@arcgis/core/geometry/SpatialReference.js";
|
|
5
|
+
import { LitElement as C, createEvent as w, safeClassMap as y } from "@arcgis/lumina";
|
|
6
|
+
import { u as A } from "../../chunks/useT9n.js";
|
|
7
|
+
import _ from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
8
|
+
import F from "@arcgis/core/Graphic.js";
|
|
9
|
+
import { SimpleMarkerSymbol as S } from "@arcgis/core/symbols.js";
|
|
10
|
+
import * as k from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
11
|
+
import * as N from "@arcgis/core/geometry/operators/cutOperator.js";
|
|
12
|
+
import * as L from "@arcgis/core/geometry/operators/lengthOperator.js";
|
|
13
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
14
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
15
|
+
v5.0.0-next.30 */
|
|
16
|
+
const R = T`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`, g = "arcgis-utility-network-trace-location", f = {
|
|
17
|
+
// popup renderer
|
|
18
|
+
base: g,
|
|
19
|
+
// containers and content
|
|
20
|
+
buttonContainer: `${g}__button-container`,
|
|
21
|
+
clearButton: `${g}__clear-button`,
|
|
22
|
+
addLocationButton: `${g}__add-location-button`
|
|
23
|
+
}, n = "map-components:utility-network-trace-location";
|
|
24
|
+
class B extends C {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments), this.messages = A({ blocking: !0 }), this.traceLocationType = "starting-point", this.arcgisTraceLocationChange = w(), this.arcgisTraceLocationSelectEnd = w(), this.arcgisTraceLocationSelectStart = w();
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.properties = { view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, utilityNetwork: 0 };
|
|
30
|
+
}
|
|
31
|
+
static {
|
|
32
|
+
this.styles = R;
|
|
33
|
+
}
|
|
34
|
+
async load() {
|
|
35
|
+
k.isLoaded() || await k.load();
|
|
36
|
+
}
|
|
37
|
+
_createPolyline(t, e) {
|
|
38
|
+
return new v({
|
|
39
|
+
hasZ: !1,
|
|
40
|
+
hasM: !0,
|
|
41
|
+
paths: t,
|
|
42
|
+
spatialReference: new x({ wkid: e })
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
_calculatePercentAlong(t, e) {
|
|
46
|
+
const o = t.spatialReference, r = this._createPolyline(t.paths, o.wkid), a = e.x - 0.5, s = e.x + 0.5, i = e.y - 0.5, c = e.y + 0.5, l = [
|
|
47
|
+
[
|
|
48
|
+
[a, i],
|
|
49
|
+
[s, c]
|
|
50
|
+
]
|
|
51
|
+
], p = this._createPolyline(l, e.spatialReference.wkid), d = k.execute(p, o);
|
|
52
|
+
if (!d)
|
|
53
|
+
return console.error(`${n} - Unable to project flag geometry to source geometry spatial reference.`), 0.5;
|
|
54
|
+
const u = N.execute(r, d);
|
|
55
|
+
if (u.length > 0) {
|
|
56
|
+
const h = L.execute(r, { unit: "feet" });
|
|
57
|
+
let m;
|
|
58
|
+
return u[0].paths[0][0][0] === r.paths[0][0][0] ? m = L.execute(u[0], { unit: "feet" }) : m = L.execute(u[1], { unit: "feet" }), m / h;
|
|
59
|
+
}
|
|
60
|
+
return console.warn(`${n} - Unable to cut the source geometry with the flag geometry.`), 0.5;
|
|
61
|
+
}
|
|
62
|
+
async _ensureNecessaryAttributes(t) {
|
|
63
|
+
const e = (t.layer?.type === "feature", t.layer), o = e.fieldsIndex?.get("assetgroup") ?? !1, r = e.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", a = e.fieldsIndex?.get("assettype") ?? !1, s = e.fieldsIndex?.get("assettype")?.name ?? "assettype", i = t.getGlobalId(), c = t.getObjectId(), l = o ? !!t.getAttribute(r) : !0, p = a ? !!t.getAttribute(s) : !0;
|
|
64
|
+
if (i && c && l && p)
|
|
65
|
+
return t;
|
|
66
|
+
const d = e.createQuery();
|
|
67
|
+
return d.objectIds = [c], (await e.queryFeatures(d))?.features[0] || null;
|
|
68
|
+
}
|
|
69
|
+
async _ensureNecessaryAttributesAndGenerateTraceLocation(t, e) {
|
|
70
|
+
const { view: o } = this;
|
|
71
|
+
if (!o || t.length === 0) {
|
|
72
|
+
console.log(`${n} - No view or results to process.`);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const a = t[0].graphic, s = await this._ensureNecessaryAttributes(a);
|
|
76
|
+
if (!s) {
|
|
77
|
+
console.error(`${n} - Unable to get necessary attributes for trace location.`);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
this._generateTraceLocation(s, e);
|
|
81
|
+
}
|
|
82
|
+
_addFlagGraphic(t, e, o) {
|
|
83
|
+
const { flagLayer: r, view: a, traceLocationType: s } = this;
|
|
84
|
+
if (!r || !a)
|
|
85
|
+
return console.error(`${n} - Flag layer or view is not available.`), null;
|
|
86
|
+
const i = e.geometry?.type;
|
|
87
|
+
if (this.traceLocations?.some((h) => h.traceLocation.globalId === t) && i !== "polyline")
|
|
88
|
+
return console.warn(`${n} - A flag with the same globalId already exists.`), null;
|
|
89
|
+
const p = s === "starting-point" ? [21, 244, 21, 0.6] : [227, 27, 21, 0.6], d = new S({
|
|
90
|
+
color: p,
|
|
91
|
+
size: 12,
|
|
92
|
+
outline: {
|
|
93
|
+
color: p,
|
|
94
|
+
width: 0
|
|
95
|
+
}
|
|
96
|
+
}), u = new F({
|
|
97
|
+
geometry: o,
|
|
98
|
+
symbol: d,
|
|
99
|
+
attributes: e.attributes
|
|
100
|
+
});
|
|
101
|
+
return r.add(u), u;
|
|
102
|
+
}
|
|
103
|
+
_generateTraceLocation(t, e) {
|
|
104
|
+
const { traceLocationType: o, traceLocations: r, utilityNetwork: a } = this, s = t.getGlobalId() ?? "", i = t.geometry?.type, c = this._addFlagGraphic(s, t, e);
|
|
105
|
+
if (!c) {
|
|
106
|
+
console.warn(`${n} - Unable to add flag graphic.`);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (i === "point" || i === "polygon") {
|
|
110
|
+
const l = a?.getTerminalConfiguration(t);
|
|
111
|
+
r?.add({
|
|
112
|
+
traceLocation: new _({
|
|
113
|
+
type: o,
|
|
114
|
+
isFilterBarrier: !1,
|
|
115
|
+
globalId: s,
|
|
116
|
+
terminalId: l ? l.terminals[0].id || void 0 : 1
|
|
117
|
+
}),
|
|
118
|
+
mapPoint: e,
|
|
119
|
+
details: t,
|
|
120
|
+
mapGraphic: c
|
|
121
|
+
});
|
|
122
|
+
} else if (i === "polyline") {
|
|
123
|
+
const l = this._calculatePercentAlong(t.geometry, e);
|
|
124
|
+
r?.add({
|
|
125
|
+
traceLocation: new _({
|
|
126
|
+
type: o,
|
|
127
|
+
isFilterBarrier: !1,
|
|
128
|
+
globalId: s,
|
|
129
|
+
percentAlong: l
|
|
130
|
+
}),
|
|
131
|
+
mapPoint: e,
|
|
132
|
+
details: t,
|
|
133
|
+
mapGraphic: c
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
async _hitTest(t) {
|
|
138
|
+
const { view: e, utilityNetwork: o } = this;
|
|
139
|
+
if (!e || !o) {
|
|
140
|
+
console.error(`${n} - View or utility network is not available for hit test.`);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const r = t.graphic?.geometry, a = this.view?.toScreen(r);
|
|
144
|
+
if (!a) {
|
|
145
|
+
console.warn(`${n} - No screen point available for hit test.`);
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
const i = (await e.hitTest(a, {
|
|
149
|
+
include: this.filterLayers
|
|
150
|
+
})).results.filter((c) => c.type === "graphic" && c?.layer && c.graphic);
|
|
151
|
+
if (i.length === 0) {
|
|
152
|
+
console.log(`${n} - No usable hit test results found.`);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
this._ensureNecessaryAttributesAndGenerateTraceLocation(i, r);
|
|
156
|
+
}
|
|
157
|
+
_resetAfterSketch() {
|
|
158
|
+
const { view: t } = this;
|
|
159
|
+
if (!t) {
|
|
160
|
+
console.error(`${n} - View is not available to reset after sketch.`);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this._clickHandler?.remove(), this._clickHandler = void 0, "acquireCursor" in t && t.acquireCursor("default"), this.arcgisTraceLocationSelectEnd.emit();
|
|
164
|
+
}
|
|
165
|
+
_handleSketchComplete(t) {
|
|
166
|
+
const { sketchViewModel: e, view: o } = this;
|
|
167
|
+
if (!e || !o) {
|
|
168
|
+
console.error(`${n} - SketchViewModel or view is not available on sketch complete.`);
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
t.state === "complete" && t.graphic && (e.layer.remove(t.graphic), this._hitTest(t)), (t.state === "cancel" || t.state === "complete") && this._resetAfterSketch();
|
|
172
|
+
}
|
|
173
|
+
_handleAddButtonClick() {
|
|
174
|
+
const { view: t, sketchViewModel: e } = this;
|
|
175
|
+
t && e && (this._clickHandler?.remove(), this._clickHandler = e.on("create", this._handleSketchComplete.bind(this)), "acquireCursor" in t && t.acquireCursor("crosshair"), this.sketchViewModel?.create("point"), this.arcgisTraceLocationSelectStart.emit());
|
|
176
|
+
}
|
|
177
|
+
_handleClearButtonClick() {
|
|
178
|
+
const { flagLayer: t, traceLocations: e } = this;
|
|
179
|
+
e?.forEach((o) => {
|
|
180
|
+
o.mapGraphic && t && t.remove(o.mapGraphic);
|
|
181
|
+
}), e?.removeAll();
|
|
182
|
+
}
|
|
183
|
+
renderAddLocationBlock() {
|
|
184
|
+
const { traceLocationType: t, messages: e, traceLocations: o } = this, r = t === "starting-point" ? e.types.startingPoint : t === "barrier" ? e.types.barrier : e.types.stoppingPoint, a = r.heading, s = r.description, i = r.buttonText;
|
|
185
|
+
return b`<calcite-block .heading=${a} .label=${a} expanded .description=${s}>${o?.length ? b`<calcite-button class=${y(f.clearButton)} slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${() => this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button>` : null}<div class=${y(f.buttonContainer)}><calcite-button class=${y(f.addLocationButton)} icon-start=select appearance=outline .label=${i} @click=${() => this._handleAddButtonClick()}>${i}</calcite-button></div></calcite-block>`;
|
|
186
|
+
}
|
|
187
|
+
render() {
|
|
188
|
+
return b`<div class=${y(f.base)}>${this.renderAddLocationBlock()}</div>`;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
$("arcgis-utility-network-trace-location", B);
|
|
192
|
+
export {
|
|
193
|
+
B as ArcgisUtilityNetworkTraceLocation
|
|
194
|
+
};
|
|
@@ -5,8 +5,8 @@ import { createRef as u, ref as d } from "lit/directives/ref.js";
|
|
|
5
5
|
import { u as g } from "../../chunks/useT9n.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
8
|
-
v5.0.0-next.
|
|
9
|
-
const h = o`:host{min-height:300px}.results-heading{display:flex;flex-direction:column;padding:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`;
|
|
8
|
+
v5.0.0-next.30 */
|
|
9
|
+
const h = o`:host{max-height:calc(100vh - 150px);min-height:300px}.results-heading{display:flex;flex-direction:column;padding:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`;
|
|
10
10
|
class m extends a {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this._resultFeatureListRef = u(), this._messages = g({ blocking: !0 }), this._clearSelectedResultType = () => this._selectedResultType = void 0, this.layers = [], this.arcgisSelectedResultTypeChange = r(), this._renderResultListItems = (t) => {
|