@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,35 +1,35 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as _ } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as f, html as
|
|
3
|
+
import { css as f, html as g } from "lit";
|
|
4
4
|
import { LitElement as w, createEvent as v, nothing as b, safeClassMap as x } from "@arcgis/lumina";
|
|
5
5
|
import { usePropertyChange as y } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { classes as z } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { u as D } from "../../chunks/useT9n.js";
|
|
8
8
|
import { m as k } from "../../chunks/useViewModel.js";
|
|
9
9
|
import { b as M } from "../../chunks/async-utils.js";
|
|
10
|
-
import { g } from "../../chunks/globalCss.js";
|
|
10
|
+
import { g as u } from "../../chunks/globalCss.js";
|
|
11
11
|
import { V as p } from "../../chunks/visible-element.js";
|
|
12
12
|
import O from "@arcgis/core/analysis/DirectLineMeasurementAnalysis.js";
|
|
13
13
|
import { isAboveGeodesicDistanceThreshold as U } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
14
14
|
import { getDefaultUnitForView as V } from "@arcgis/core/applications/Components/getDefaultUnits.js";
|
|
15
|
-
import { property as
|
|
16
|
-
import { watch as
|
|
17
|
-
import { A as
|
|
18
|
-
import { g as
|
|
19
|
-
const
|
|
20
|
-
var
|
|
21
|
-
for (var
|
|
22
|
-
(
|
|
23
|
-
return
|
|
15
|
+
import { property as l, subclass as $ } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
16
|
+
import { watch as S } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
|
+
import { A as L } from "../../chunks/AnalysisViewModel.js";
|
|
18
|
+
import { g as C, a as E, b as d, c as m } from "../../chunks/measurementUtils.js";
|
|
19
|
+
const P = f`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{width:300px}`;
|
|
20
|
+
var A = Object.defineProperty, j = Object.getOwnPropertyDescriptor, a = (e, t, i, n) => {
|
|
21
|
+
for (var r = n > 1 ? void 0 : n ? j(t, i) : t, s = e.length - 1, c; s >= 0; s--)
|
|
22
|
+
(c = e[s]) && (r = (n ? c(t, i, r) : c(r)) || r);
|
|
23
|
+
return n && r && A(t, i, r), r;
|
|
24
24
|
};
|
|
25
|
-
let
|
|
25
|
+
let o = class extends L {
|
|
26
26
|
constructor() {
|
|
27
27
|
super(...arguments), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Direct Line Measurement 3D component is only supported in 3D views.";
|
|
28
28
|
}
|
|
29
29
|
initialize() {
|
|
30
30
|
this.addHandles(
|
|
31
31
|
// Make sure the analysis and view model units are in sync.
|
|
32
|
-
|
|
32
|
+
S(
|
|
33
33
|
() => ({
|
|
34
34
|
analysis: this.analysis,
|
|
35
35
|
unit: this.unit
|
|
@@ -42,36 +42,27 @@ let r = class extends S {
|
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
get state() {
|
|
45
|
-
|
|
45
|
+
const { analysis: e, disabled: t, operationState: i, ready: n, supported: r } = this, { valid: s } = e;
|
|
46
|
+
return C({ supported: r, disabled: t, ready: n, operationState: i, valid: s });
|
|
46
47
|
}
|
|
47
48
|
get displayState() {
|
|
48
|
-
|
|
49
|
-
return "unsupported";
|
|
50
|
-
switch (this.state) {
|
|
51
|
-
case "disabled":
|
|
52
|
-
case "ready":
|
|
53
|
-
return "ready";
|
|
54
|
-
case "measuring":
|
|
55
|
-
return this.analysis.startPoint == null ? "measuring" : "measured";
|
|
56
|
-
case "measured":
|
|
57
|
-
return "measured";
|
|
58
|
-
}
|
|
49
|
+
return E(this.state, !!this.analysis.startPoint);
|
|
59
50
|
}
|
|
60
51
|
get measurement() {
|
|
61
52
|
const e = this.analysisView?.result, t = e?.mode ?? "euclidean";
|
|
62
53
|
if (!this.analysis.valid)
|
|
63
54
|
return {
|
|
64
55
|
mode: t,
|
|
65
|
-
directDistance:
|
|
66
|
-
horizontalDistance:
|
|
67
|
-
verticalDistance:
|
|
56
|
+
directDistance: d(void 0),
|
|
57
|
+
horizontalDistance: d(void 0),
|
|
58
|
+
verticalDistance: d(void 0)
|
|
68
59
|
};
|
|
69
|
-
const i = e?.directDistance,
|
|
60
|
+
const i = e?.directDistance, n = i != null && U(i);
|
|
70
61
|
return {
|
|
71
62
|
mode: t,
|
|
72
|
-
directDistance:
|
|
73
|
-
horizontalDistance:
|
|
74
|
-
verticalDistance:
|
|
63
|
+
directDistance: d(n ? void 0 : i),
|
|
64
|
+
horizontalDistance: d(e?.horizontalDistance),
|
|
65
|
+
verticalDistance: d(e?.verticalDistance)
|
|
75
66
|
};
|
|
76
67
|
}
|
|
77
68
|
get unitOptions() {
|
|
@@ -104,43 +95,43 @@ let r = class extends S {
|
|
|
104
95
|
return new O();
|
|
105
96
|
}
|
|
106
97
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
],
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
],
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
],
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
],
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
],
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
],
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
],
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
],
|
|
131
|
-
|
|
98
|
+
a([
|
|
99
|
+
l({ readOnly: !0 })
|
|
100
|
+
], o.prototype, "state", 1);
|
|
101
|
+
a([
|
|
102
|
+
l({ readOnly: !0 })
|
|
103
|
+
], o.prototype, "displayState", 1);
|
|
104
|
+
a([
|
|
105
|
+
l({ readOnly: !0 })
|
|
106
|
+
], o.prototype, "measurement", 1);
|
|
107
|
+
a([
|
|
108
|
+
l()
|
|
109
|
+
], o.prototype, "unitOptions", 1);
|
|
110
|
+
a([
|
|
111
|
+
l()
|
|
112
|
+
], o.prototype, "_userUnitOptions", 2);
|
|
113
|
+
a([
|
|
114
|
+
l()
|
|
115
|
+
], o.prototype, "unit", 1);
|
|
116
|
+
a([
|
|
117
|
+
l()
|
|
118
|
+
], o.prototype, "_userUnit", 2);
|
|
119
|
+
a([
|
|
120
|
+
l({ readOnly: !0 })
|
|
121
|
+
], o.prototype, "_defaultUnit", 1);
|
|
122
|
+
o = a([
|
|
132
123
|
$("components.direct-line-measurement-3d.DirectLineMeasurement3dViewModel")
|
|
133
|
-
],
|
|
134
|
-
const
|
|
135
|
-
class
|
|
124
|
+
], o);
|
|
125
|
+
const B = k(o);
|
|
126
|
+
class T extends w {
|
|
136
127
|
constructor() {
|
|
137
|
-
super(...arguments), this.viewModel =
|
|
128
|
+
super(...arguments), this.viewModel = B(this), this.messages = D({ name: "directline-measurement-3d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-line", this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = y()("analysis", "state"), this.arcgisReady = v();
|
|
138
129
|
}
|
|
139
130
|
static {
|
|
140
131
|
this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, referenceElement: 1, state: 32, unit: 1, unitOptions: 0 };
|
|
141
132
|
}
|
|
142
133
|
static {
|
|
143
|
-
this.styles =
|
|
134
|
+
this.styles = P;
|
|
144
135
|
}
|
|
145
136
|
async clear() {
|
|
146
137
|
this.viewModel.clear();
|
|
@@ -152,26 +143,26 @@ class j extends w {
|
|
|
152
143
|
M(this.viewModel.start());
|
|
153
144
|
}
|
|
154
145
|
render() {
|
|
155
|
-
const { messages: t, unit: i, unitOptions:
|
|
156
|
-
return
|
|
146
|
+
const { messages: t, unit: i, unitOptions: n, viewModel: r } = this, { measurement: s, state: c } = r;
|
|
147
|
+
return g`<div aria-label=${t.componentLabel ?? b} class=${x(z("root", u.widget, u.panel))} role=presentation><arcgis-measurement-content .state=${r.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[
|
|
157
148
|
{
|
|
158
149
|
title: t.direct,
|
|
159
|
-
measurement:
|
|
150
|
+
measurement: s.directDistance
|
|
160
151
|
},
|
|
161
152
|
{
|
|
162
153
|
title: t.horizontal,
|
|
163
|
-
measurement:
|
|
154
|
+
measurement: s.horizontalDistance
|
|
164
155
|
},
|
|
165
156
|
{
|
|
166
157
|
title: t.vertical,
|
|
167
|
-
measurement:
|
|
158
|
+
measurement: s.verticalDistance
|
|
168
159
|
}
|
|
169
|
-
]}>${p({ hidden: this.hideUnitSelect, children:
|
|
160
|
+
]}>${p({ hidden: this.hideUnitSelect, children: g`<arcgis-unit-select slot=settings .options=${n} .selectLabel=${t.unit} .value=${i} @arcgisUnitSelectChange=${(h) => {
|
|
170
161
|
this.unit = h.detail;
|
|
171
|
-
}}></arcgis-unit-select>` })}${p({ hidden: this.hideStartButton, children:
|
|
162
|
+
}}></arcgis-unit-select>` })}${p({ hidden: this.hideStartButton, children: g`<calcite-button slot=actions .disabled=${c === "disabled" || c === "unsupported"} @click=${this.start}>${t.newMeasurement}</calcite-button>` })}</arcgis-measurement-content></div>`;
|
|
172
163
|
}
|
|
173
164
|
}
|
|
174
|
-
_("arcgis-direct-line-measurement-3d",
|
|
165
|
+
_("arcgis-direct-line-measurement-3d", T);
|
|
175
166
|
export {
|
|
176
|
-
|
|
167
|
+
T as ArcgisDirectLineMeasurement3d
|
|
177
168
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DirectLineMeasurement3DState = "disabled" | "measured" | "measuring" | "ready" | "unsupported";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
|
-
import type { ArcgisReferenceElement } from "
|
|
4
|
+
import type { ArcgisReferenceElement } from "../types.js";
|
|
5
5
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
6
6
|
import type { DirectionalPadViewModelState } from "@arcgis/core/widgets/DirectionalPad/DirectionalPadViewModel.js";
|
|
7
7
|
import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
|
|
@@ -31,9 +31,7 @@ export abstract class ArcgisDirectionalPad extends LitElement {
|
|
|
31
31
|
*/
|
|
32
32
|
accessor autoDestroyDisabled: boolean;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* this property sets the component to a disabled state to disable any user
|
|
36
|
-
* interaction.
|
|
34
|
+
* When true, the component is visually withdrawn and cannot receive user interaction.
|
|
37
35
|
*
|
|
38
36
|
* @default false
|
|
39
37
|
*/
|
|
@@ -3,8 +3,7 @@ import type RouteLayer from "@arcgis/core/layers/RouteLayer.js";
|
|
|
3
3
|
import type PortalItem from "@arcgis/core/portal/PortalItem";
|
|
4
4
|
import type PortalFolder from "@arcgis/core/portal/PortalFolder";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
|
-
import type { ArcgisReferenceElement } from "
|
|
7
|
-
import type { IconName } from "../../utils/action-utils.js";
|
|
6
|
+
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
8
7
|
import type { RouteLayerSolveResult } from "@arcgis/core/layers/types";
|
|
9
8
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
10
9
|
import type { GoToOverride, HeadingLevel } from "@arcgis/core/widgets/support/types.js";
|
|
@@ -15,7 +14,7 @@ import type { State } from "@arcgis/core/widgets/Directions/DirectionsViewModel.
|
|
|
15
14
|
import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
|
-
* The Directions component provides a way to calculate directions, between two or more input locations with a [RouteLayer](https://developers.arcgis.com/javascript/latest/
|
|
17
|
+
* The Directions component provides a way to calculate directions, between two or more input locations with a [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/), using ArcGIS Online and custom Network Analysis Route services.
|
|
19
18
|
*
|
|
20
19
|
* @since 4.28
|
|
21
20
|
*/
|
|
@@ -25,7 +24,7 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
25
24
|
* [API keys](https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/) are generated
|
|
26
25
|
* and managed in the portal. An API key is tied
|
|
27
26
|
* explicitly to an ArcGIS account; it is also used to monitor service usage.
|
|
28
|
-
* Setting a fine-grained API key on a specific class overrides the [global API key](https://developers.arcgis.com/javascript/latest/
|
|
27
|
+
* Setting a fine-grained API key on a specific class overrides the [global API key](https://developers.arcgis.com/javascript/latest/references/core/config/#ConfigWithApiKey).
|
|
29
28
|
*
|
|
30
29
|
* By default, the following URLs will be used (unless overwritten in the app, or if using different defaults from a portal):
|
|
31
30
|
*
|
|
@@ -119,14 +118,14 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
119
118
|
*/
|
|
120
119
|
accessor label: string;
|
|
121
120
|
/**
|
|
122
|
-
* The most recent route result. Returns a [RouteLayerSolveResult](https://developers.arcgis.com/javascript/latest/
|
|
121
|
+
* The most recent route result. Returns a [RouteLayerSolveResult](https://developers.arcgis.com/javascript/latest/references/core/layers/types/#RouteLayerSolveResult)
|
|
123
122
|
* object containing properties for barriers (if any), stops, and directions.
|
|
124
123
|
*
|
|
125
|
-
* @see [RouteLayer#solve()](https://developers.arcgis.com/javascript/latest/
|
|
124
|
+
* @see [RouteLayer#solve()](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/#solve)
|
|
126
125
|
*/
|
|
127
126
|
get lastRoute(): RouteLayerSolveResult2 | null | undefined;
|
|
128
127
|
/**
|
|
129
|
-
* The [RouteLayer](https://developers.arcgis.com/javascript/latest/
|
|
128
|
+
* The [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/) associated with the Directions component.
|
|
130
129
|
* This property is required.
|
|
131
130
|
* The RouteLayer contains stops and barriers and will be used to display and solve routes.
|
|
132
131
|
*
|
|
@@ -149,7 +148,7 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
149
148
|
/**
|
|
150
149
|
* Controls the default properties used when searching.
|
|
151
150
|
* Note that the default `searchProperties` differ slightly from
|
|
152
|
-
* the [Search component](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-search/).
|
|
151
|
+
* the [Search component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/).
|
|
153
152
|
*
|
|
154
153
|
* @default { popupEnabled: false, resultGraphicEnabled: false }
|
|
155
154
|
*/
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
3
|
import type DistanceMeasurementAnalysis from "@arcgis/core/analysis/DistanceMeasurementAnalysis.js";
|
|
4
|
+
import type SnappingOptions from "@arcgis/core/views/interactive/snapping/SnappingOptions.js";
|
|
4
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
|
-
import type { ArcgisReferenceElement } from "
|
|
6
|
+
import type { ArcgisReferenceElement } from "../types.js";
|
|
7
|
+
import type { DistanceMeasurement2DState } from "./types.js";
|
|
6
8
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
7
9
|
import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
8
|
-
import type { MeasurementState } from "../../support/measurementUtils.js";
|
|
9
10
|
import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
|
-
* The Distance Measurement 2D component can be added to
|
|
13
|
+
* The Distance Measurement 2D component can be added to an [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/)
|
|
13
14
|
* component to calculate and display the length of a polyline.
|
|
14
15
|
*
|
|
15
16
|
* How distances are computed depends on the scene's spatial reference.
|
|
@@ -22,13 +23,13 @@ import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
|
22
23
|
*/
|
|
23
24
|
export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
24
25
|
/**
|
|
25
|
-
* The [DistanceMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/
|
|
26
|
+
* The [DistanceMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/DistanceMeasurementAnalysis/)
|
|
26
27
|
* created or modified by the component.
|
|
27
28
|
*
|
|
28
|
-
* When connecting the Distance Measurement 2D component to the [
|
|
29
|
+
* When connecting the Distance Measurement 2D component to the [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/)
|
|
29
30
|
* component, it automatically creates an empty analysis and adds it to the Map's
|
|
30
|
-
* [analyses](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#analyses) collection.
|
|
31
|
-
* You can then wait for the [DistanceMeasurementAnalysisView2D](https://developers.arcgis.com/javascript/latest/
|
|
31
|
+
* [arcgis-map.analyses](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#analyses) collection.
|
|
32
|
+
* You can then wait for the [DistanceMeasurementAnalysisView2D](https://developers.arcgis.com/javascript/latest/references/core/views/2d/analysis/DistanceMeasurementAnalysisView2D/)
|
|
32
33
|
* to be created before accessing the analysis results.
|
|
33
34
|
*
|
|
34
35
|
* ```js
|
|
@@ -52,7 +53,7 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
|
52
53
|
* ```
|
|
53
54
|
* Whenever the component is destroyed, the analysis is automatically removed from the collection.
|
|
54
55
|
*
|
|
55
|
-
* Alternatively, a programmatically created [DistanceMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/
|
|
56
|
+
* Alternatively, a programmatically created [DistanceMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/DistanceMeasurementAnalysis/)
|
|
56
57
|
* can be provided to the component.
|
|
57
58
|
* Then, the application itself needs to add it to and later remove it from the analyses collection of the Map component.
|
|
58
59
|
*
|
|
@@ -82,6 +83,8 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
|
82
83
|
* // Connect the analysis to the measurement component:
|
|
83
84
|
* distanceMeasurement2dElement.analysis = distanceMeasurementAnalysis;
|
|
84
85
|
* ```
|
|
86
|
+
*
|
|
87
|
+
* @since 5.0
|
|
85
88
|
*/
|
|
86
89
|
accessor analysis: DistanceMeasurementAnalysis;
|
|
87
90
|
/**
|
|
@@ -98,18 +101,21 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
|
98
101
|
* If true, the button that starts a new measurement will be hidden.
|
|
99
102
|
*
|
|
100
103
|
* @default false
|
|
104
|
+
* @since 5.0
|
|
101
105
|
*/
|
|
102
106
|
accessor hideStartButton: boolean;
|
|
103
107
|
/**
|
|
104
108
|
* If true, the unit selection dropdown will be hidden.
|
|
105
109
|
*
|
|
106
110
|
* @default false
|
|
111
|
+
* @since 5.0
|
|
107
112
|
*/
|
|
108
113
|
accessor hideUnitSelect: boolean;
|
|
109
114
|
/**
|
|
110
115
|
* Indicates whether the component's visualization is hidden in the view.
|
|
111
116
|
*
|
|
112
117
|
* @default false
|
|
118
|
+
* @since 5.0
|
|
113
119
|
*/
|
|
114
120
|
accessor hideVisualization: boolean;
|
|
115
121
|
/**
|
|
@@ -156,6 +162,13 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
|
156
162
|
* @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
|
|
157
163
|
*/
|
|
158
164
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html}
|
|
167
|
+
* for sketching.
|
|
168
|
+
*
|
|
169
|
+
* @since 4.28
|
|
170
|
+
*/
|
|
171
|
+
accessor snappingOptions: SnappingOptions;
|
|
159
172
|
/**
|
|
160
173
|
* The component's state. The values mean the following:
|
|
161
174
|
*
|
|
@@ -164,16 +177,16 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
|
164
177
|
* * `measuring` - currently measuring
|
|
165
178
|
* * `measured` - measuring has finished
|
|
166
179
|
*/
|
|
167
|
-
get state():
|
|
180
|
+
get state(): DistanceMeasurement2DState;
|
|
168
181
|
/**
|
|
169
182
|
* Unit system (imperial, metric) or specific unit used for displaying the distance values. Possible values are listed in
|
|
170
|
-
* [unitOptions](
|
|
183
|
+
* [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/#unitOptions).
|
|
171
184
|
*/
|
|
172
185
|
accessor unit: SystemOrLengthUnit;
|
|
173
186
|
/**
|
|
174
187
|
* List of available units and unit systems (imperial, metric) that are shown in the component's dropdown.
|
|
175
188
|
* By default, the following units are included: `metric`, `imperial`, `inches`, `feet`, `us-feet`, `yards`, `miles`, `nautical-miles`, `meters`, `kilometers`.
|
|
176
|
-
* Possible [unit](
|
|
189
|
+
* Possible [unit](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/#unit) values can only be a subset of this list.
|
|
177
190
|
*/
|
|
178
191
|
accessor unitOptions: Array<SystemOrLengthUnit>;
|
|
179
192
|
/**
|