@arcgis/map-components 5.1.0-next.1 → 5.1.0-next.11
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/README.md +1 -1
- package/dist/cdn/{NVACRYY6.js → 22EPKDUJ.js} +1 -1
- package/dist/cdn/2AYGSNEO.js +2 -0
- package/dist/cdn/2MTWUJIA.js +2 -0
- package/dist/cdn/{EVRFMTMV.js → 2NOL7QIE.js} +1 -1
- package/dist/cdn/3OVSVCGF.js +2 -0
- package/dist/cdn/{3FSARSVN.js → 4JCY4NHX.js} +1 -1
- package/dist/cdn/5ITF7Q7U.js +2 -0
- package/dist/cdn/5LBJB4MP.js +2 -0
- package/dist/cdn/{EYW7YQF6.js → 63N5ERFL.js} +1 -1
- package/dist/cdn/6CGPJGIB.js +2 -0
- package/dist/cdn/{FQGKKJL7.js → 6F6VOBIA.js} +1 -1
- package/dist/cdn/{BEXRPBHT.js → 6RKD6GFP.js} +1 -1
- package/dist/cdn/{RCWZGU5T.js → 7JQZBAFA.js} +1 -1
- package/dist/cdn/7WLTT4K3.js +2 -0
- package/dist/cdn/A2JO7DWO.js +2 -0
- package/dist/cdn/{TSPKG2WN.js → A44ZCOCX.js} +2 -2
- package/dist/cdn/{KY4FMFIC.js → A7JPWYKR.js} +1 -1
- package/dist/cdn/{H6ILOF27.js → AEYZDEAH.js} +1 -1
- package/dist/cdn/B3ANLEZW.js +2 -0
- package/dist/cdn/{HK6EWWUB.js → BM2JTRBY.js} +1 -1
- package/dist/cdn/{YZ5ZVEPC.js → BUOIT34V.js} +1 -1
- package/dist/cdn/{YC423DBS.js → C24SOTLL.js} +1 -1
- package/dist/cdn/{6ZNO34O5.js → CCKYOWZO.js} +1 -1
- package/dist/cdn/CTSWZC3O.js +2 -0
- package/dist/cdn/CVBNRF34.js +2 -0
- package/dist/cdn/D27YXH3W.js +2 -0
- package/dist/cdn/DINM6JDS.js +2 -0
- package/dist/cdn/{JBJ5NQTI.js → DWW7KAMQ.js} +1 -1
- package/dist/cdn/EGN3YTD6.js +2 -0
- package/dist/cdn/EM7YCHTU.js +2 -0
- package/dist/cdn/EVC4MXIZ.js +2 -0
- package/dist/cdn/FB6YQKF2.js +2 -0
- package/dist/cdn/{NIUIKBRD.js → FYTMMPPG.js} +1 -1
- package/dist/cdn/GXBHOVJY.js +2 -0
- package/dist/cdn/GY5226CJ.js +2 -0
- package/dist/cdn/HB3W3CO5.js +2 -0
- package/dist/cdn/HE6QV4XG.js +2 -0
- package/dist/cdn/{J7ZNOOZ4.js → HEAH7MYD.js} +1 -1
- package/dist/cdn/{QLPUP6A3.js → HHJN3Q6G.js} +1 -1
- package/dist/cdn/IQPGSWSL.js +2 -0
- package/dist/cdn/KY2UAUNI.js +2 -0
- package/dist/cdn/{32K266S4.js → L5EGJLC4.js} +1 -1
- package/dist/cdn/LZQCXN6A.js +2 -0
- package/dist/cdn/{3PQT2S7Z.js → MDCB7SO4.js} +1 -1
- package/dist/cdn/N3BD4UQD.js +2 -0
- package/dist/cdn/NHMOFXEE.js +2 -0
- package/dist/cdn/NRBM3YR6.js +2 -0
- package/dist/cdn/{FC6W37TT.js → NSGDR7V5.js} +1 -1
- package/dist/cdn/OD5DHUHZ.js +2 -0
- package/dist/cdn/{JTFZMNCO.js → PI6UQWTD.js} +1 -1
- package/dist/cdn/PZC5TBXA.js +2 -0
- package/dist/cdn/{KXF2562U.js → QJOQNSYB.js} +1 -1
- package/dist/cdn/{JLK664TB.js → QXUY4FOY.js} +1 -1
- package/dist/cdn/R7BJHEHH.js +2 -0
- package/dist/cdn/{2XSXH4TM.js → RRXH4CSV.js} +1 -1
- package/dist/cdn/RSSYGNJQ.js +2 -0
- package/dist/cdn/S4I3X6AX.js +2 -0
- package/dist/cdn/{CIUAWIL5.js → S4NUCPRQ.js} +2 -2
- package/dist/cdn/{4363SIKC.js → TJG4UE24.js} +1 -1
- package/dist/cdn/TP6I2LJO.js +2 -0
- package/dist/cdn/{52GXKBGP.js → UHFSSX2G.js} +1 -1
- package/dist/cdn/{UVCYUIKZ.js → UNX4CKAF.js} +1 -1
- package/dist/cdn/VNOZYJLP.js +2 -0
- package/dist/cdn/VU3SJK5Z.js +2 -0
- package/dist/cdn/W5T5EBL3.js +2 -0
- package/dist/cdn/{S4XGBADW.js → XCAWRUM6.js} +1 -1
- package/dist/cdn/XE5UPQ5E.js +2 -0
- package/dist/cdn/{FARFUCNU.js → XEOTORJP.js} +1 -1
- package/dist/cdn/XMSGTOUV.js +2 -0
- package/dist/cdn/{ILPNFQWH.js → XW72RT5D.js} +1 -1
- package/dist/cdn/XXZ3CKTX.js +2 -0
- package/dist/cdn/{ZHINQNZ2.js → Y6IN6NEC.js} +1 -1
- package/dist/cdn/{E2JLZZFR.js → YA6FUJR2.js} +1 -1
- package/dist/cdn/{AFU3S7KW.js → YC5JACID.js} +1 -1
- package/dist/cdn/Z4F6DHBB.js +2 -0
- package/dist/cdn/{FJJVAOBW.js → ZD5FJHIQ.js} +1 -1
- package/dist/cdn/{WJ5HD2YN.js → ZM2YXU7Y.js} +1 -1
- package/dist/cdn/assets/elevation-profile/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +106 -99
- package/dist/chunks/feature-utils.js +73 -73
- package/dist/chunks/layer-utils.js +33 -16
- package/dist/chunks/measurementUtils.js +44 -21
- package/dist/chunks/slots.js +20 -20
- package/dist/chunks/time-utils.js +24 -22
- package/dist/chunks/useArcgisViewReadyError.js +7 -7
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +20 -11
- package/dist/components/arcgis-area-measurement-2d/customElement.js +95 -74
- package/dist/components/arcgis-area-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +22 -20
- package/dist/components/arcgis-area-measurement-3d/customElement.js +58 -67
- package/dist/components/arcgis-area-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-attachments/customElement.d.ts +5 -6
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +3 -4
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +16 -16
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +120 -91
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +2 -2
- package/dist/components/arcgis-bookmarks/customElement.d.ts +10 -15
- package/dist/components/arcgis-bookmarks/types.d.ts +13 -6
- package/dist/components/arcgis-building-explorer/customElement.d.ts +14 -73
- package/dist/components/arcgis-building-explorer/customElement.js +3 -3
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +115 -66
- package/dist/components/arcgis-clipboard/customElement.d.ts +1 -1
- package/dist/components/arcgis-compass/customElement.d.ts +2 -3
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +10 -12
- package/dist/components/arcgis-daylight/customElement.d.ts +25 -26
- package/dist/components/arcgis-daylight/customElement.js +120 -120
- package/dist/components/arcgis-daylight/types.d.ts +1 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +22 -20
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +62 -71
- package/dist/components/arcgis-direct-line-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -4
- package/dist/components/arcgis-directions/customElement.d.ts +7 -8
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +24 -11
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +86 -65
- package/dist/components/arcgis-distance-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-editor/customElement.d.ts +15 -16
- package/dist/components/arcgis-editor/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +27 -26
- package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +25 -31
- package/dist/components/arcgis-expand/customElement.d.ts +6 -7
- package/dist/components/arcgis-expand/types.d.ts +1 -0
- package/dist/components/arcgis-feature/customElement.d.ts +32 -33
- package/dist/components/arcgis-feature/customElement.js +35 -35
- package/dist/components/arcgis-feature-fields/customElement.js +28 -27
- package/dist/components/arcgis-feature-form/customElement.d.ts +30 -11
- package/dist/components/arcgis-feature-form/customElement.js +2 -2
- package/dist/components/arcgis-feature-relationship/customElement.js +13 -13
- package/dist/components/arcgis-feature-table/customElement.d.ts +99 -63
- package/dist/components/arcgis-feature-table/customElement.js +12 -12
- package/dist/components/arcgis-feature-templates/customElement.d.ts +14 -12
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +63 -60
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +9 -9
- package/dist/components/arcgis-features/customElement.d.ts +57 -59
- package/dist/components/arcgis-features/customElement.js +43 -43
- package/dist/components/arcgis-floor-filter/customElement.d.ts +7 -10
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -1
- package/dist/components/arcgis-grid-controls/customElement.d.ts +2 -2
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +35 -36
- package/dist/components/arcgis-home/customElement.d.ts +4 -6
- package/dist/components/arcgis-layer-list/customElement.d.ts +40 -41
- package/dist/components/arcgis-legend/customElement.d.ts +29 -30
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +15 -13
- package/dist/components/arcgis-link-chart/customElement.d.ts +59 -49
- package/dist/components/arcgis-link-chart/customElement.js +42 -31
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +1 -2
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +6 -3
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +13 -13
- package/dist/components/arcgis-locate/customElement.d.ts +2 -3
- package/dist/components/arcgis-map/customElement.d.ts +139 -129
- package/dist/components/arcgis-map/customElement.js +24 -13
- package/dist/components/arcgis-measurement/customElement.d.ts +4 -5
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +6 -11
- package/dist/components/arcgis-navigation-toggle/customElement.js +9 -6
- package/dist/components/arcgis-navigation-toggle/types.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +2 -3
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +3 -0
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +18 -6
- package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +264 -120
- package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +115 -114
- package/dist/components/arcgis-paste/customElement.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +6 -7
- package/dist/components/arcgis-popup/customElement.d.ts +54 -55
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -1
- package/dist/components/arcgis-print/customElement.d.ts +29 -18
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +13 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +38 -41
- package/dist/components/arcgis-scale-bar/customElement.d.ts +2 -2
- package/dist/components/arcgis-scale-bar/customElement.js +7 -7
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +7 -8
- package/dist/components/arcgis-scene/customElement.d.ts +155 -150
- package/dist/components/arcgis-scene/customElement.js +20 -9
- package/dist/components/arcgis-search/customElement.d.ts +37 -30
- package/dist/components/arcgis-search/customElement.js +20 -18
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +61 -17
- package/dist/components/arcgis-sketch/customElement.d.ts +55 -36
- package/dist/components/arcgis-sketch/customElement.js +20 -8
- package/dist/components/arcgis-slice/customElement.d.ts +16 -16
- package/dist/components/arcgis-slice/customElement.js +6 -6
- package/dist/components/arcgis-slice/{SliceViewModel.d.ts → types.d.ts} +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +119 -88
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +42 -48
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +44 -51
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +103 -91
- package/dist/components/arcgis-slider-color-legacy/customElement.js +8 -8
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +143 -88
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +9 -12
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +64 -82
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +72 -91
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +1 -2
- package/dist/components/arcgis-swipe/customElement.d.ts +6 -6
- package/dist/components/arcgis-table-list/customElement.d.ts +109 -73
- package/dist/components/arcgis-time-of-day-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-of-day-slider/customElement.js +11 -11
- package/dist/components/arcgis-time-slider/customElement.d.ts +17 -19
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +16 -29
- package/dist/components/arcgis-time-zone-label/customElement.js +19 -58
- package/dist/components/arcgis-time-zone-label/index.js +0 -1
- package/dist/components/arcgis-track/customElement.d.ts +6 -7
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +1 -0
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +5 -6
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +3 -4
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +4 -5
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +48 -49
- package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +30 -25
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +82 -80
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +3 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +52 -49
- package/dist/components/arcgis-utility-network-trace-results/index.js +2 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -2
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +39 -40
- package/dist/components/arcgis-value-picker-legacy/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -3
- package/dist/components/arcgis-video/customElement.d.ts +12 -12
- package/dist/components/arcgis-video-player/customElement.d.ts +5 -5
- package/dist/components/arcgis-video-player/customElement.js +2 -2
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +31 -27
- package/dist/components/arcgis-volume-measurement/customElement.js +211 -211
- package/dist/components/arcgis-volume-measurement/index.js +1 -1
- package/dist/components/arcgis-volume-measurement/types.d.ts +1 -0
- package/dist/components/arcgis-weather/customElement.d.ts +17 -18
- package/dist/components/arcgis-zoom/customElement.d.ts +6 -2
- package/dist/components/types.d.ts +56 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +6 -28
- package/dist/loader.js +18 -18
- package/dist/types/lumina.d.ts +17 -39
- package/dist/types/preact.d.ts +17 -43
- package/dist/types/react.d.ts +17 -47
- package/dist/types/stencil.d.ts +17 -39
- package/package.json +4 -4
- package/dist/cdn/23UYZVTW.js +0 -2
- package/dist/cdn/3GZCJE62.js +0 -2
- package/dist/cdn/4TURMTXA.js +0 -2
- package/dist/cdn/55QGHI47.js +0 -2
- package/dist/cdn/6UX4KWBN.js +0 -2
- package/dist/cdn/7UR4M6PN.js +0 -2
- package/dist/cdn/AGYDL2DX.js +0 -2
- package/dist/cdn/B5XR4LXQ.js +0 -2
- package/dist/cdn/CKNH5OMJ.js +0 -2
- package/dist/cdn/DOLELC6W.js +0 -2
- package/dist/cdn/EYNKJZG3.js +0 -2
- package/dist/cdn/FEQLUSM2.js +0 -2
- package/dist/cdn/HR2OOT3F.js +0 -2
- package/dist/cdn/I2MQQXVU.js +0 -2
- package/dist/cdn/JDZWJLJX.js +0 -2
- package/dist/cdn/KECAR2NZ.js +0 -2
- package/dist/cdn/LZFDWRYI.js +0 -2
- package/dist/cdn/M7VTEC3S.js +0 -2
- package/dist/cdn/MRE5HCIK.js +0 -2
- package/dist/cdn/MW73TE2N.js +0 -2
- package/dist/cdn/MWBGBBXT.js +0 -2
- package/dist/cdn/PNDLNFML.js +0 -2
- package/dist/cdn/PQJAXYJ2.js +0 -2
- package/dist/cdn/RJ76OXB6.js +0 -2
- package/dist/cdn/SKW7HQZ6.js +0 -2
- package/dist/cdn/SRSYUCVL.js +0 -2
- package/dist/cdn/U3LH3AZH.js +0 -2
- package/dist/cdn/UTH3SGAS.js +0 -2
- package/dist/cdn/VJMMA6UX.js +0 -2
- package/dist/cdn/W2E5L6DS.js +0 -2
- package/dist/cdn/WGXSSEAL.js +0 -2
- package/dist/cdn/X6OVNOLQ.js +0 -2
- package/dist/cdn/X7YUU7TS.js +0 -2
- package/dist/cdn/XO6U6OVM.js +0 -2
- package/dist/cdn/Y53D5YAC.js +0 -2
- package/dist/cdn/YGJFZRA4.js +0 -2
- package/dist/cdn/YKTB6AFH.js +0 -2
- package/dist/cdn/YWQGP6MB.js +0 -2
- package/dist/cdn/ZMLRDNKR.js +0 -2
- package/dist/cdn/ZUTQE3OX.js +0 -2
- package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +0 -14
- package/dist/components/arcgis-building-discipline-tree/index.d.ts +0 -1
- package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +0 -20
- package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +0 -93
- package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +0 -24
- package/dist/components/arcgis-building-explorer/support/types.d.ts +0 -11
- package/dist/components/arcgis-building-level-item/customElement.d.ts +0 -25
- package/dist/components/arcgis-building-level-item/index.d.ts +0 -1
- package/dist/components/arcgis-building-level-picker/customElement.d.ts +0 -20
- package/dist/components/arcgis-building-level-picker/index.d.ts +0 -1
- package/dist/components/arcgis-building-phase-picker/customElement.d.ts +0 -19
- package/dist/components/arcgis-building-phase-picker/index.d.ts +0 -1
- package/dist/components/arcgis-daylight/daylight-utils.d.ts +0 -8
- package/dist/components/arcgis-expand/ExpandViewModel.d.ts +0 -44
- package/dist/components/support/goTo.d.ts +0 -37
- package/dist/controllers/useArcgisLoadError.d.ts +0 -9
- package/dist/support/heading.d.ts +0 -1
- package/dist/support/measurementUtils.d.ts +0 -1
- package/dist/utils/action-utils.d.ts +0 -3
- package/dist/utils/component-utils.d.ts +0 -5
- /package/dist/cdn/{UQ7E33T4.js → 2SQUOXWG.js} +0 -0
- /package/dist/cdn/{KAJ3U6DP.js → 3GVHNIXM.js} +0 -0
- /package/dist/cdn/{E2KWMQKQ.js → 3NF4UU3S.js} +0 -0
- /package/dist/cdn/{PHF2XKSK.js → 43UMYTXQ.js} +0 -0
- /package/dist/cdn/{CHDRBZNL.js → 47T624VO.js} +0 -0
- /package/dist/cdn/{X5H6ZUFX.js → 4NBXFFTY.js} +0 -0
- /package/dist/cdn/{DDI363AI.js → 5IPPKC3M.js} +0 -0
- /package/dist/cdn/{LCXF3AKY.js → 6JUTQDKC.js} +0 -0
- /package/dist/cdn/{YMU5IPMP.js → 6QPD32WT.js} +0 -0
- /package/dist/cdn/{M6TJN2I5.js → 7LEGS7EX.js} +0 -0
- /package/dist/cdn/{ORP3ZND2.js → AQG5RIV3.js} +0 -0
- /package/dist/cdn/{W5XM52J7.js → B3I4OKDQ.js} +0 -0
- /package/dist/cdn/{RCD5UKTW.js → BFHBS4MR.js} +0 -0
- /package/dist/cdn/{CRR65TKV.js → D3X7R3GD.js} +0 -0
- /package/dist/cdn/{7FMJZURP.js → DYC6OHKG.js} +0 -0
- /package/dist/cdn/{5OB4E5PR.js → DZG4EA6U.js} +0 -0
- /package/dist/cdn/{W5B5LTGN.js → ELF2SE5K.js} +0 -0
- /package/dist/cdn/{UVZZX6YP.js → FHSXSYA6.js} +0 -0
- /package/dist/cdn/{BQIH5T3S.js → FRWY77LH.js} +0 -0
- /package/dist/cdn/{ZFFBK3VO.js → FYVM32GJ.js} +0 -0
- /package/dist/cdn/{B7IYR676.js → GVW4OIR5.js} +0 -0
- /package/dist/cdn/{FPD3STSJ.js → H6LWU2FC.js} +0 -0
- /package/dist/cdn/{DEOCASGG.js → HEBLEJCT.js} +0 -0
- /package/dist/cdn/{OSRAPPNR.js → IDITPQDC.js} +0 -0
- /package/dist/cdn/{DWZIXPJ4.js → J3F5FPMC.js} +0 -0
- /package/dist/cdn/{YP3JKXC4.js → JMZA4GQB.js} +0 -0
- /package/dist/cdn/{JDPQMOEW.js → JPDYVHUZ.js} +0 -0
- /package/dist/cdn/{PUOWH3YL.js → KNFAPO3C.js} +0 -0
- /package/dist/cdn/{W2Q7NWBG.js → LEC4CIVO.js} +0 -0
- /package/dist/cdn/{JMDNJPNT.js → NCTWDKYG.js} +0 -0
- /package/dist/cdn/{RDW2NJPR.js → PDCUZMSB.js} +0 -0
- /package/dist/cdn/{76ESM6B2.js → RJTABGPK.js} +0 -0
- /package/dist/cdn/{2VC2VUTP.js → RUB6EORR.js} +0 -0
- /package/dist/cdn/{2ZL4CF6P.js → SPXZXKMH.js} +0 -0
- /package/dist/cdn/{HZTWWEVM.js → TRPYDMNK.js} +0 -0
- /package/dist/cdn/{5PRNT4KD.js → U4QW6VHU.js} +0 -0
- /package/dist/cdn/{YHVFARHN.js → UYDFCELQ.js} +0 -0
- /package/dist/cdn/{55VMVXRK.js → V2D4QTRR.js} +0 -0
- /package/dist/cdn/{QAXR4LT6.js → WBZEEY5N.js} +0 -0
- /package/dist/cdn/{YDJGMRV3.js → WG5RPCHL.js} +0 -0
- /package/dist/cdn/{ZLIZCBGT.js → WL4J6REN.js} +0 -0
- /package/dist/cdn/{GB42YXHR.js → XJQRAKJ6.js} +0 -0
- /package/dist/cdn/{L4WRYSKZ.js → YGJ7NPDT.js} +0 -0
- /package/dist/cdn/{V3M37NHT.js → ZJ36DBTH.js} +0 -0
- /package/dist/components/arcgis-locate/{LocateViewModel.d.ts → types.d.ts} +0 -0
- /package/dist/components/arcgis-weather/{WeatherViewModel.d.ts → types.d.ts} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { repeat as
|
|
4
|
-
import { queryAllJSON as
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as b } from "lit/directives/repeat.js";
|
|
4
|
+
import { queryAllJSON as g } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
5
5
|
import c from "@arcgis/core/core/Collection.js";
|
|
6
6
|
import { substitute as k } from "@arcgis/core/intl.js";
|
|
7
7
|
import _ from "@arcgis/core/layers/GraphicsLayer.js";
|
|
8
8
|
import S from "@arcgis/core/networks/support/UNTraceConfiguration.js";
|
|
9
9
|
import T from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
10
|
-
import
|
|
10
|
+
import m from "@arcgis/core/rest/support/FeatureSet.js";
|
|
11
11
|
import h from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
|
|
12
12
|
import C from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
13
13
|
import { LitElement as L, createEvent as l } from "@arcgis/lumina";
|
|
@@ -16,10 +16,11 @@ import { log as u, composeMissingPropertyMessage as $, composeEmptyPropertyMessa
|
|
|
16
16
|
import { css as F, html as s } from "lit";
|
|
17
17
|
import { createRef as E, ref as U } from "lit/directives/ref.js";
|
|
18
18
|
import { u as I } from "../../chunks/useT9n.js";
|
|
19
|
-
import { h as
|
|
19
|
+
import { h as f } from "../../chunks/feature-utils.js";
|
|
20
20
|
import { a as P, i as A } from "../../chunks/layer-utils.js";
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
import { watch as M } from "@arcgis/core/core/reactiveUtils.js";
|
|
22
|
+
const x = F`:host{flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-select,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, w = `utility-network-trace-inputs-sketch-${Date.now()}`, d = `utility-network-trace-inputs-flags-${Date.now()}`, B = 20;
|
|
23
|
+
class V extends L {
|
|
23
24
|
constructor() {
|
|
24
25
|
super(...arguments), this._messages = I({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new c(), this._barriers = new c(), this._stoppingPoints = new c(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
|
|
25
26
|
"subnetwork",
|
|
@@ -33,10 +34,10 @@ class B extends L {
|
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
static {
|
|
36
|
-
this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _state: 16, _activeTraceLocationType: 16, _selectedFeature: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, unTraceConfiguration: 32, referenceElement: 1, mode:
|
|
37
|
+
this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _state: 16, _activeTraceLocationType: 16, _selectedFeature: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, unTraceConfiguration: 32, referenceElement: 1, mode: 3, traceLocations: 32 };
|
|
37
38
|
}
|
|
38
39
|
static {
|
|
39
|
-
this.styles =
|
|
40
|
+
this.styles = x;
|
|
40
41
|
}
|
|
41
42
|
get isSubnetworkNameTraceSelected() {
|
|
42
43
|
const e = this.selectedNamedTraceConfiguration?.traceType;
|
|
@@ -70,7 +71,11 @@ class B extends L {
|
|
|
70
71
|
return this._startingPoints.forEach((i) => t(i)), this._barriers.forEach((i) => t(i)), this._stoppingPoints.forEach((i) => t(i)), e;
|
|
71
72
|
}
|
|
72
73
|
load() {
|
|
73
|
-
this.
|
|
74
|
+
this.manager.onLifecycle(() => [
|
|
75
|
+
M(() => this.view?.map, () => {
|
|
76
|
+
this._setupUtilityNetwork(), this._setupSketchViewModel();
|
|
77
|
+
}, { initial: !0 })
|
|
78
|
+
]);
|
|
74
79
|
}
|
|
75
80
|
willUpdate(e) {
|
|
76
81
|
const { utilityNetworks: t, selectedUtilityNetwork: i } = this;
|
|
@@ -121,7 +126,7 @@ class B extends L {
|
|
|
121
126
|
}
|
|
122
127
|
}
|
|
123
128
|
_initializeSketchViewModel() {
|
|
124
|
-
const { view: e, _unLayers: t } = this, i = this._getGraphicLayer(
|
|
129
|
+
const { view: e, _unLayers: t } = this, i = this._getGraphicLayer(w), a = new c();
|
|
125
130
|
return t?.forEach((r) => a.add(new h({
|
|
126
131
|
layer: r,
|
|
127
132
|
enabled: !0
|
|
@@ -131,7 +136,7 @@ class B extends L {
|
|
|
131
136
|
});
|
|
132
137
|
}
|
|
133
138
|
_setupSketchViewModel() {
|
|
134
|
-
this._createGraphicLayer(
|
|
139
|
+
this._createGraphicLayer(w), this._createGraphicLayer(d), this._sketchViewModel = this._initializeSketchViewModel();
|
|
135
140
|
}
|
|
136
141
|
_clearSubnetworks() {
|
|
137
142
|
this.selectedSubnetworkName = void 0, this.subnetworksTable = void 0, this.compatibleSubnetworkNames = [];
|
|
@@ -145,7 +150,7 @@ class B extends L {
|
|
|
145
150
|
return;
|
|
146
151
|
const t = e.createQuery();
|
|
147
152
|
t.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, t.where = this._getSubnetworkQueryWhereClause(), t.outFields = ["SUBNETWORKNAME"], t.orderByFields = ["SUBNETWORKNAME"];
|
|
148
|
-
const i =
|
|
153
|
+
const i = m.fromJSON(await g(e, t));
|
|
149
154
|
this.compatibleSubnetworkNames = i.features.filter(this._removeDuplicateSubnetworkNames).map((a) => a.getAttribute("SUBNETWORKNAME"));
|
|
150
155
|
}
|
|
151
156
|
_getSubnetworkQueryWhereClause() {
|
|
@@ -223,7 +228,7 @@ class B extends L {
|
|
|
223
228
|
async _queryFeatures(e, t) {
|
|
224
229
|
const i = e.createQuery();
|
|
225
230
|
i.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, i.objectIds = t.map((r) => r.getObjectId()), i.outFields = ["*"];
|
|
226
|
-
const { features: a } =
|
|
231
|
+
const { features: a } = m.fromJSON(await g(e, i));
|
|
227
232
|
return a.forEach((r) => {
|
|
228
233
|
r.layer = e.type === "subtype-group" ? e.findSublayerForFeature(r) : e, r.origin = r.layer;
|
|
229
234
|
}), a;
|
|
@@ -247,10 +252,10 @@ class B extends L {
|
|
|
247
252
|
})), await Promise.all(i.map(async (a) => {
|
|
248
253
|
const r = a.layer;
|
|
249
254
|
if (r && "getFeatureTitle" in r) {
|
|
250
|
-
const o = await r.getFeatureTitle(a) ||
|
|
255
|
+
const o = await r.getFeatureTitle(a) || f(a);
|
|
251
256
|
return { feature: a, label: o };
|
|
252
257
|
}
|
|
253
|
-
return { feature: a, label:
|
|
258
|
+
return { feature: a, label: f(a) };
|
|
254
259
|
}));
|
|
255
260
|
}
|
|
256
261
|
async _handleHitTestComplete(e) {
|
|
@@ -289,13 +294,13 @@ class B extends L {
|
|
|
289
294
|
const { _messages: e, traceConfigurations: t } = this, i = e.labels.traceConfiguration;
|
|
290
295
|
if (t.length === 0)
|
|
291
296
|
return this.renderError(e.errors.noTraceConfigurationError, !0);
|
|
292
|
-
const a =
|
|
297
|
+
const a = b(t, (r) => r.globalId, (r) => s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);
|
|
293
298
|
return s`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(r) => {
|
|
294
299
|
this._selectTraceConfigurationByGuid(r.target.value);
|
|
295
300
|
}}>${a}</calcite-select></calcite-block>`;
|
|
296
301
|
}
|
|
297
302
|
renderUtilityNetworkSelection() {
|
|
298
|
-
const { _messages: e } = this, t = e.labels.utilityNetwork, i =
|
|
303
|
+
const { _messages: e } = this, t = e.labels.utilityNetwork, i = this.utilityNetworks?.map((a) => s`<calcite-option .value=${a.id}>${a.title}</calcite-option>`);
|
|
299
304
|
return s`<calcite-block .heading=${t} .label=${t} expanded><calcite-select .label=${t} .value=${this.selectedUtilityNetwork?.id} @calciteSelectChange=${(a) => {
|
|
300
305
|
this.selectedUtilityNetwork?.id !== a.target.value && (this.selectedUtilityNetwork = this.utilityNetworks?.find((r) => r.id === a.target.value));
|
|
301
306
|
}}>${i}</calcite-select></calcite-block>`;
|
|
@@ -309,7 +314,7 @@ class B extends L {
|
|
|
309
314
|
return s`<calcite-flow-item .selected=${i === "add-spatial-instructions"} .heading=${a} @calciteFlowItemBack=${(r) => this._handleAddSpatialCancelClick(r)}><div class="add-spatial-mode"><div><h5 class="heading">${e.instructions.addSpatial.selectFeature.heading}</h5>${e.instructions.addSpatial.selectFeature.subheading}</div><div><h5 class="heading">${e.instructions.addSpatial.selectAssociatedFeature.heading}</h5>${e.instructions.addSpatial.selectAssociatedFeature.subheading}</div></div></calcite-flow-item>`;
|
|
310
315
|
}
|
|
311
316
|
renderFeaturesList(e) {
|
|
312
|
-
return s`<calcite-list
|
|
317
|
+
return s`<calcite-list label="Feature list">${e.map(this.renderFeatureListItem)}</calcite-list>`;
|
|
313
318
|
}
|
|
314
319
|
renderHitTestResults() {
|
|
315
320
|
const { _messages: e, _activeTraceLocationType: t, _featuresFromHitTest: i, mode: a } = this, r = t === "starting-point" ? e.labels.addSpatial.startingPoint : t === "barrier" ? e.labels.addSpatial.barrier : e.labels.addSpatial.stoppingPoint;
|
|
@@ -320,7 +325,7 @@ class B extends L {
|
|
|
320
325
|
if (!e)
|
|
321
326
|
return this.mode = "default", null;
|
|
322
327
|
const t = this._featuresComponentRef.value, i = t?.selectedFeature ? [t.selectedFeature] : [e];
|
|
323
|
-
return s`<arcgis-features
|
|
328
|
+
return s`<arcgis-features .referenceElement=${this.referenceElement} .features=${i} .view=${this.view} open @arcgisClose=${() => this._handleFeaturesClose()} ${U(this._featuresComponentRef)}></arcgis-features>`;
|
|
324
329
|
}
|
|
325
330
|
renderAddSpatialFooter() {
|
|
326
331
|
const { mode: e, _messages: t, selectedUtilityNetwork: i, _selectedFeature: a } = this, r = k(t.warnings.exceededDisplayLimit, {
|
|
@@ -349,11 +354,11 @@ class B extends L {
|
|
|
349
354
|
}
|
|
350
355
|
renderSubnetworkSelection() {
|
|
351
356
|
const { compatibleSubnetworkNames: e } = this, t = this._messages.labels.subnetworkName;
|
|
352
|
-
return this.isSubnetworkNameTraceSelected ? this._state === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length >
|
|
357
|
+
return this.isSubnetworkNameTraceSelected ? this._state === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length > B ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
|
|
353
358
|
}
|
|
354
359
|
renderSubnetworkInfo() {
|
|
355
360
|
const { _messages: e, selectedNamedTraceConfiguration: t, _unTraceConfiguration: i } = this;
|
|
356
|
-
return i && t?.traceType && this._subnetworkTraceTypes.has(t.traceType) ? s`<calcite-block
|
|
361
|
+
return i && t?.traceType && this._subnetworkTraceTypes.has(t.traceType) ? s`<calcite-block id=subnetwork-info-block expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>` : null;
|
|
357
362
|
}
|
|
358
363
|
renderContent() {
|
|
359
364
|
const { utilityNetworks: e } = this, t = this.selectedNamedTraceConfiguration?.traceConfiguration;
|
|
@@ -364,10 +369,10 @@ class B extends L {
|
|
|
364
369
|
}
|
|
365
370
|
render() {
|
|
366
371
|
const { mode: e } = this;
|
|
367
|
-
return s`<calcite-panel
|
|
372
|
+
return s`<calcite-panel>${e === "add-spatial-feature" ? this.renderSelectedFeature() : s`<calcite-flow>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}${this.renderHitTestResults()}</calcite-flow>`}${e !== "default" ? this.renderAddSpatialFooter() : null}</calcite-panel>`;
|
|
368
373
|
}
|
|
369
374
|
}
|
|
370
|
-
|
|
375
|
+
y("arcgis-utility-network-trace-inputs", V);
|
|
371
376
|
export {
|
|
372
|
-
|
|
377
|
+
V as ArcgisUtilityNetworkTraceInputs
|
|
373
378
|
};
|
|
@@ -120,6 +120,7 @@ export abstract class ArcgisUtilityNetworkTraceLocation extends LitElement {
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
/** @internal */
|
|
123
124
|
export interface FlagInfo {
|
|
124
125
|
traceLocation: TraceLocation;
|
|
125
126
|
flagProperties: {
|
|
@@ -135,8 +136,10 @@ export interface FlagInfo {
|
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
/** @internal */
|
|
138
140
|
export type TraceLocationType = "barrier" | "starting-point" | "stopping-point";
|
|
139
141
|
|
|
142
|
+
/** @internal */
|
|
140
143
|
export interface SelectStartPayload {
|
|
141
144
|
cancelSelect: () => void;
|
|
142
145
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as L } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as k, html as f } from "lit";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _ from "@arcgis/core/geometry/operators/cutOperator.js";
|
|
5
5
|
import * as g from "@arcgis/core/geometry/operators/lengthOperator.js";
|
|
6
6
|
import * as y from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
7
|
-
import
|
|
7
|
+
import v from "@arcgis/core/geometry/Polyline.js";
|
|
8
8
|
import S from "@arcgis/core/geometry/SpatialReference.js";
|
|
9
9
|
import x from "@arcgis/core/Graphic.js";
|
|
10
10
|
import m from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
11
11
|
import b from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
|
|
12
12
|
import { LitElement as A, createEvent as w } from "@arcgis/lumina";
|
|
13
|
-
import { log as
|
|
13
|
+
import { log as c } from "@arcgis/toolkit/log";
|
|
14
14
|
import { u as I } from "../../chunks/useT9n.js";
|
|
15
|
-
const
|
|
16
|
-
class
|
|
15
|
+
const C = k`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
|
|
16
|
+
class F extends A {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this.messages = I({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.arcgisTraceLocationChange = w(), this.arcgisTraceLocationSelectEnd = w(), this.arcgisTraceLocationSelectStart = w();
|
|
19
19
|
}
|
|
@@ -21,13 +21,13 @@ class C extends A {
|
|
|
21
21
|
this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, afterHitTest: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, spatialTolerance: 9, utilityNetwork: 0 };
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
|
-
this.styles =
|
|
24
|
+
this.styles = C;
|
|
25
25
|
}
|
|
26
26
|
async load() {
|
|
27
27
|
y.isLoaded() || await y.load();
|
|
28
28
|
}
|
|
29
29
|
_createPolyline(e, t) {
|
|
30
|
-
return new
|
|
30
|
+
return new v({
|
|
31
31
|
hasZ: !1,
|
|
32
32
|
hasM: !0,
|
|
33
33
|
paths: e,
|
|
@@ -35,25 +35,25 @@ class C extends A {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
_calculatePercentAlong(e, t) {
|
|
38
|
-
const r = e.spatialReference, a = this._createPolyline(e.paths, r.wkid),
|
|
38
|
+
const r = e.spatialReference, a = this._createPolyline(e.paths, r.wkid), s = t.x - 0.5, n = t.x + 0.5, o = t.y - 0.5, i = t.y + 0.5, l = [
|
|
39
39
|
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
40
|
+
[s, o],
|
|
41
|
+
[n, i]
|
|
42
42
|
]
|
|
43
|
-
], u = this._createPolyline(
|
|
43
|
+
], u = this._createPolyline(l, t.spatialReference.wkid), h = y.execute(u, r);
|
|
44
44
|
if (!h)
|
|
45
|
-
return
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
45
|
+
return c("error", this, "Unable to project flag geometry to source geometry spatial reference."), 0.5;
|
|
46
|
+
const d = _.execute(a, h);
|
|
47
|
+
if (d.length > 0) {
|
|
48
48
|
const T = g.execute(a, { unit: "feet" });
|
|
49
|
-
let
|
|
50
|
-
return
|
|
49
|
+
let p;
|
|
50
|
+
return d[0].paths[0][0][0] === a.paths[0][0][0] ? p = g.execute(d[0], { unit: "feet" }) : p = g.execute(d[1], { unit: "feet" }), p / T;
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return c("warn", this, "Unable to cut the source geometry with the flag geometry."), 0.5;
|
|
53
53
|
}
|
|
54
54
|
async _ensureNecessaryAttributes(e) {
|
|
55
|
-
const t = (e.layer?.type === "feature", e.layer), r = t.fieldsIndex?.get("assetgroup") ?? !1, a = t.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup",
|
|
56
|
-
if (o && i &&
|
|
55
|
+
const t = (e.layer?.type === "feature", e.layer), r = t.fieldsIndex?.get("assetgroup") ?? !1, a = t.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", s = t.fieldsIndex?.get("assettype") ?? !1, n = t.fieldsIndex?.get("assettype")?.name ?? "assettype", o = e.getGlobalId(), i = e.getObjectId(), l = r ? !!e.getAttribute(a) : !0, u = s ? !!e.getAttribute(n) : !0;
|
|
56
|
+
if (o && i && l && u)
|
|
57
57
|
return e;
|
|
58
58
|
const h = t.createQuery();
|
|
59
59
|
return h.objectIds = [i], (await t.queryFeatures(h))?.features[0] || null;
|
|
@@ -61,20 +61,20 @@ class C extends A {
|
|
|
61
61
|
async _ensureNecessaryAttributesAndGenerateTraceLocation(e, t) {
|
|
62
62
|
const { view: r } = this;
|
|
63
63
|
if (!r || e.length === 0) {
|
|
64
|
-
|
|
64
|
+
c("error", this, "`view` is unavailable or there are no results to process.");
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
const a = e[0],
|
|
68
|
-
const
|
|
69
|
-
return u.origin =
|
|
70
|
-
}),
|
|
71
|
-
if (!
|
|
72
|
-
|
|
67
|
+
const a = e[0], s = e.map((i) => {
|
|
68
|
+
const l = i, u = l.graphic;
|
|
69
|
+
return u.origin = l.layer, u;
|
|
70
|
+
}), n = this.afterHitTest ? await this.afterHitTest(s).catch(() => (this._resetAfterSketch(!0), null)) : a.graphic;
|
|
71
|
+
if (!n) {
|
|
72
|
+
c("error", this, "No graphic available from hit test results.");
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
const o = await this._ensureNecessaryAttributes(
|
|
75
|
+
const o = await this._ensureNecessaryAttributes(n);
|
|
76
76
|
if (!o) {
|
|
77
|
-
|
|
77
|
+
c("error", this, "Unable to ensure necessary attributes on the selected graphic.");
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
await this._generateTraceLocation(o, t);
|
|
@@ -108,12 +108,12 @@ class C extends A {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
_addFlagGraphic(e, t, r) {
|
|
111
|
-
const { flagLayer: a, view:
|
|
112
|
-
if (!a || !
|
|
113
|
-
return
|
|
114
|
-
const
|
|
115
|
-
if (this.traceLocations?.some((
|
|
116
|
-
return
|
|
111
|
+
const { flagLayer: a, view: s } = this;
|
|
112
|
+
if (!a || !s)
|
|
113
|
+
return c("error", this, "The properties `flagLayer` and `view` are required but either one or both are missing."), null;
|
|
114
|
+
const n = t.geometry?.type;
|
|
115
|
+
if (this.traceLocations?.some((l) => l.traceLocation.globalId === e) && n !== "polyline")
|
|
116
|
+
return c("warn", this, "A flag with the same globalId already exists."), null;
|
|
117
117
|
const o = this._createFlagSymbol(), i = new x({
|
|
118
118
|
geometry: r,
|
|
119
119
|
symbol: o,
|
|
@@ -126,34 +126,34 @@ class C extends A {
|
|
|
126
126
|
return ("getFeatureTitle" in r ? await r.getFeatureTitle(e) : null) || e?.getObjectId()?.toString() || t.labels.unknown;
|
|
127
127
|
}
|
|
128
128
|
async _generateFlagInfo(e, t) {
|
|
129
|
-
const { traceLocationType: r, utilityNetwork: a } = this,
|
|
130
|
-
if (
|
|
131
|
-
const i = a?.getTerminalConfiguration(e),
|
|
129
|
+
const { traceLocationType: r, utilityNetwork: a } = this, s = e.getGlobalId() ?? "", n = e.geometry?.type, o = await this._generateItemTitle(e);
|
|
130
|
+
if (n === "point" || n === "polygon") {
|
|
131
|
+
const i = a?.getTerminalConfiguration(e), l = i ? i.terminals[0].id : 1;
|
|
132
132
|
return {
|
|
133
133
|
traceLocation: new m({
|
|
134
134
|
type: r,
|
|
135
135
|
isFilterBarrier: !1,
|
|
136
|
-
globalId:
|
|
137
|
-
terminalId:
|
|
136
|
+
globalId: s,
|
|
137
|
+
terminalId: l
|
|
138
138
|
}),
|
|
139
139
|
flagProperties: {
|
|
140
140
|
title: o,
|
|
141
141
|
expanded: !1,
|
|
142
142
|
terminalConfiguration: i ?? void 0,
|
|
143
|
-
selectedTerminals: i ? /* @__PURE__ */ new Set([
|
|
143
|
+
selectedTerminals: i ? /* @__PURE__ */ new Set([l]) : void 0
|
|
144
144
|
},
|
|
145
145
|
spatialProperties: {
|
|
146
146
|
mapPoint: t,
|
|
147
147
|
mapGraphic: e
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
} else if (
|
|
150
|
+
} else if (n === "polyline") {
|
|
151
151
|
const i = this._calculatePercentAlong(e.geometry, t);
|
|
152
152
|
return {
|
|
153
153
|
traceLocation: new m({
|
|
154
154
|
type: r,
|
|
155
155
|
isFilterBarrier: !1,
|
|
156
|
-
globalId:
|
|
156
|
+
globalId: s,
|
|
157
157
|
percentAlong: i
|
|
158
158
|
}),
|
|
159
159
|
flagProperties: {
|
|
@@ -165,20 +165,20 @@ class C extends A {
|
|
|
165
165
|
mapGraphic: e
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
|
-
} else if (!
|
|
169
|
-
const i = a?.getTerminalConfiguration(e),
|
|
168
|
+
} else if (!n) {
|
|
169
|
+
const i = a?.getTerminalConfiguration(e), l = i ? i.terminals[0].id : 1;
|
|
170
170
|
return {
|
|
171
171
|
traceLocation: new m({
|
|
172
172
|
type: r,
|
|
173
173
|
isFilterBarrier: !1,
|
|
174
|
-
globalId:
|
|
175
|
-
terminalId:
|
|
174
|
+
globalId: s,
|
|
175
|
+
terminalId: l
|
|
176
176
|
}),
|
|
177
177
|
flagProperties: {
|
|
178
178
|
title: o,
|
|
179
179
|
expanded: !1,
|
|
180
180
|
terminalConfiguration: i ?? void 0,
|
|
181
|
-
selectedTerminals: i ? /* @__PURE__ */ new Set([
|
|
181
|
+
selectedTerminals: i ? /* @__PURE__ */ new Set([l]) : void 0
|
|
182
182
|
},
|
|
183
183
|
spatialProperties: {
|
|
184
184
|
mapPoint: t
|
|
@@ -188,51 +188,43 @@ class C extends A {
|
|
|
188
188
|
return null;
|
|
189
189
|
}
|
|
190
190
|
async _generateTraceLocation(e, t) {
|
|
191
|
-
const { traceLocations: r } = this, a = e.getGlobalId() ?? "",
|
|
192
|
-
if (!
|
|
193
|
-
|
|
191
|
+
const { traceLocations: r } = this, a = e.getGlobalId() ?? "", s = e.geometry?.type, n = await this._generateFlagInfo(e, t);
|
|
192
|
+
if (!n) {
|
|
193
|
+
c("error", this, "Unable to generate flag info for trace location.");
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
const o = r?.filter((i) => i.spatialProperties.mapGraphic?.getGlobalId() === a) ?? [];
|
|
197
|
-
if (o.length === 0 ||
|
|
198
|
-
if (
|
|
199
|
-
|
|
197
|
+
if (o.length === 0 || s === "polyline") {
|
|
198
|
+
if (s === "polyline" && o.length > 0 && o.some((l) => Math.abs(l.traceLocation.percentAlong - n.traceLocation.percentAlong) <= this.spatialTolerance)) {
|
|
199
|
+
c("warn", this, "A flag with the same globalId already exists within tolerance.");
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
const i = this._addFlagGraphic(a, e, t);
|
|
203
203
|
if (!i) {
|
|
204
|
-
|
|
204
|
+
c("warn", this, "Unable to add flag graphic.");
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
|
-
|
|
207
|
+
n.spatialProperties.flagGraphic = i, r?.add(n);
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
210
|
-
|
|
210
|
+
c("warn", this, "A flag with the same globalId already exists.");
|
|
211
211
|
}
|
|
212
212
|
async _hitTest(e) {
|
|
213
213
|
const { view: t, utilityNetwork: r } = this;
|
|
214
|
-
if (!t || !r)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
l("warn", this, "No screen point available for hit test.");
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
const o = (await t.hitTest(n, {
|
|
214
|
+
if (!t || !r)
|
|
215
|
+
return c("error", this, "Either `utilityNetwork` or `view` is unavailable for hit test."), !0;
|
|
216
|
+
const a = e.graphic?.geometry, s = this.view?.toScreen(a);
|
|
217
|
+
if (!s)
|
|
218
|
+
return c("warn", this, "No screen point available for hit test."), !1;
|
|
219
|
+
const o = (await t.hitTest(s, {
|
|
224
220
|
include: this.filterLayers
|
|
225
221
|
})).results.filter((i) => i.type === "graphic" && i?.layer && i.graphic);
|
|
226
|
-
|
|
227
|
-
l("info", this, "No usable hit test results found.");
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
await this._ensureNecessaryAttributesAndGenerateTraceLocation(o, a), this._resetAfterSketch(!0);
|
|
222
|
+
return o.length === 0 ? (c("info", this, "No usable hit test results found."), !1) : (await this._ensureNecessaryAttributesAndGenerateTraceLocation(o, a), this._resetAfterSketch(!0), !0);
|
|
231
223
|
}
|
|
232
224
|
_resetAfterSketch(e = !1) {
|
|
233
225
|
const { view: t } = this;
|
|
234
226
|
if (!t) {
|
|
235
|
-
|
|
227
|
+
c("error", this, "View is not available to reset after sketch.");
|
|
236
228
|
return;
|
|
237
229
|
}
|
|
238
230
|
this._clickHandler?.remove(), this._clickHandler = void 0, "acquireCursor" in t && t.acquireCursor("default"), e && this.arcgisTraceLocationSelectEnd.emit();
|
|
@@ -240,19 +232,29 @@ class C extends A {
|
|
|
240
232
|
_handleSketchComplete(e) {
|
|
241
233
|
const { sketchViewModel: t, view: r } = this;
|
|
242
234
|
if (!t || !r) {
|
|
243
|
-
|
|
235
|
+
c("error", this, "Either `sketchViewModel` or `view` is not available in sketch complete handler.");
|
|
244
236
|
return;
|
|
245
237
|
}
|
|
246
238
|
if (e.state === "complete" && e.graphic) {
|
|
247
|
-
t.layer.remove(e.graphic), this._hitTest(e)
|
|
239
|
+
t.layer.remove(e.graphic), this._hitTest(e).then((s) => {
|
|
240
|
+
s ? this._resetAfterSketch() : this._initiateHitTest();
|
|
241
|
+
});
|
|
248
242
|
return;
|
|
249
243
|
}
|
|
250
244
|
e.state === "cancel" && this._resetAfterSketch(!0);
|
|
251
245
|
}
|
|
246
|
+
async _initiateHitTest() {
|
|
247
|
+
const { view: e, sketchViewModel: t } = this;
|
|
248
|
+
if (!e || !t) {
|
|
249
|
+
c("error", this, "Cannot initiate hit test; either `view` or `sketchViewModel` not found.");
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
this._clickHandler?.remove(), this._clickHandler = t.on("create", this._handleSketchComplete.bind(this)), "acquireCursor" in e && e.acquireCursor("crosshair"), this.sketchViewModel?.create("point");
|
|
253
|
+
}
|
|
252
254
|
async _handleAddButtonClick() {
|
|
253
255
|
const { view: e, sketchViewModel: t } = this;
|
|
254
256
|
if (!(e && t)) {
|
|
255
|
-
|
|
257
|
+
c("error", this, "Cannot add trace location; `view` not found.");
|
|
256
258
|
return;
|
|
257
259
|
}
|
|
258
260
|
if (this.beforeTraceLocationSelectStart) {
|
|
@@ -263,7 +265,7 @@ class C extends A {
|
|
|
263
265
|
this.isSelectWaiting = !1;
|
|
264
266
|
}
|
|
265
267
|
}
|
|
266
|
-
this.arcgisTraceLocationSelectStart.emit({ cancelSelect: () => t.cancel() }).defaultPrevented ||
|
|
268
|
+
this.arcgisTraceLocationSelectStart.emit({ cancelSelect: () => t.cancel() }).defaultPrevented || await this._initiateHitTest();
|
|
267
269
|
}
|
|
268
270
|
_handleClearButtonClick() {
|
|
269
271
|
const { flagLayer: e, traceLocations: t } = this;
|
|
@@ -272,14 +274,14 @@ class C extends A {
|
|
|
272
274
|
}), t?.removeAll();
|
|
273
275
|
}
|
|
274
276
|
renderAddLocationBlock() {
|
|
275
|
-
const { traceLocationType: e, messages: t, traceLocations: r } = this, a = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint,
|
|
276
|
-
return f`<calcite-block .heading=${
|
|
277
|
+
const { traceLocationType: e, messages: t, traceLocations: r } = this, a = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint, s = a.heading, n = a.description, o = a.buttonText;
|
|
278
|
+
return f`<calcite-block .heading=${s} .label=${s} expanded .description=${n}>${r?.length ? f`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>` : null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e}></arcgis-utility-network-trace-location-list><div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${o} @click=${() => this._handleAddButtonClick()}>${o}</calcite-button></div></calcite-block>`;
|
|
277
279
|
}
|
|
278
280
|
render() {
|
|
279
281
|
return f`<div class="root">${this.renderAddLocationBlock()}</div>`;
|
|
280
282
|
}
|
|
281
283
|
}
|
|
282
|
-
L("arcgis-utility-network-trace-location",
|
|
284
|
+
L("arcgis-utility-network-trace-location", F);
|
|
283
285
|
export {
|
|
284
|
-
|
|
286
|
+
F as ArcgisUtilityNetworkTraceLocation
|
|
285
287
|
};
|
|
@@ -6,7 +6,7 @@ import { substitute as g } from "@arcgis/core/intl.js";
|
|
|
6
6
|
import { LitElement as b } from "@arcgis/lumina";
|
|
7
7
|
import { u as f } from "../../chunks/useT9n.js";
|
|
8
8
|
import { log as s, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
|
|
9
|
-
const y = h
|
|
9
|
+
const y = h`:host{margin-block-start:0;padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item [slot=content-bottom]{background-color:transparent;display:none}calcite-list-item[expanded] [slot=content-bottom]{display:unset}.warning{color:var(--calcite-color-status-danger)}.terminals{padding-block:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-xl);padding-inline-end:var(--calcite-spacing-sm);display:flex;flex-direction:column}.filter-barrier-container{display:flex;width:100%;calcite-label{width:100%}}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`;
|
|
10
10
|
class $ extends b {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this._messages = f({ blocking: !0 }), this.traceLocations = new u(), this.traceLocationType = "starting-point";
|
|
@@ -59,7 +59,7 @@ class $ extends b {
|
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
const { _messages: e, traceLocationType: i } = this, t = g(e.labels.list, { traceLocationType: i }), r = this.traceLocations?.map((c) => this._renderListItem(c)).toArray() ?? [];
|
|
62
|
-
return r.length === 0 ? (s("warn", this, v("traceLocations")), null) : n`<div
|
|
62
|
+
return r.length === 0 ? (s("warn", this, v("traceLocations")), null) : n`<div><calcite-list interaction-mode=static selection-mode=none .label=${t}>${r}</calcite-list></div>`;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
p("arcgis-utility-network-trace-location-list", $);
|
|
@@ -9,7 +9,7 @@ import type UtilityNetwork from "@arcgis/core/networks/UtilityNetwork.js";
|
|
|
9
9
|
import type TraceResult from "@arcgis/core/rest/networks/support/TraceResult.js";
|
|
10
10
|
import type MapView from "@arcgis/core/views/MapView";
|
|
11
11
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
12
|
-
import type { ArcgisReferenceElement } from "
|
|
12
|
+
import type { ArcgisReferenceElement } from "../types.js";
|
|
13
13
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -155,8 +155,10 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
/** @internal */
|
|
158
159
|
export type State = "loading" | "ready";
|
|
159
160
|
|
|
161
|
+
/** @internal */
|
|
160
162
|
export interface TraceErrorDetails {
|
|
161
163
|
url?: string;
|
|
162
164
|
raw?: {
|