@arcgis/map-components 4.34.0-next.0 → 4.34.0-next.2

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.
Files changed (264) hide show
  1. package/dist/cdn/{66M6PGUD.js → 2DFTJYET.js} +2 -2
  2. package/dist/cdn/2HMQBLGX.js +4 -0
  3. package/dist/cdn/{3LZRPQXQ.js → 2ITL25LA.js} +2 -2
  4. package/dist/cdn/{FO4LJYGB.js → 2Z4KRGOJ.js} +1 -1
  5. package/dist/cdn/{25ZLVJE7.js → 3E5JGS7I.js} +2 -2
  6. package/dist/cdn/{5XI5LA6E.js → 3TIDM52T.js} +2 -2
  7. package/dist/cdn/{PXMI5T6V.js → 3ZGNCN4N.js} +2 -2
  8. package/dist/cdn/{F7THE4DM.js → 42ZLP4TO.js} +2 -2
  9. package/dist/cdn/{2VAIM3FU.js → 47WXI5OV.js} +2 -2
  10. package/dist/cdn/{5RD2D6IR.js → 4B65IRU5.js} +2 -2
  11. package/dist/cdn/{2TL4CO63.js → 4P26B2AA.js} +2 -2
  12. package/dist/cdn/{IUEPX5R7.js → 4WJ66SFY.js} +2 -2
  13. package/dist/cdn/{BAIEVERW.js → 54LBYLM4.js} +2 -2
  14. package/dist/cdn/{EBK2WHJG.js → 5APGWHKF.js} +2 -2
  15. package/dist/cdn/{S2ASRDHO.js → 5IGCHT4A.js} +2 -2
  16. package/dist/cdn/{LL3YO32K.js → 6ESK4QPA.js} +2 -2
  17. package/dist/cdn/{KOSM7A4X.js → 6KAI6YXC.js} +2 -2
  18. package/dist/cdn/{SC6GIUCI.js → 6QZWTGCD.js} +2 -2
  19. package/dist/cdn/{WTHC6CP4.js → 6X652SXL.js} +2 -2
  20. package/dist/cdn/{OUGBZ2II.js → 6YEXM7GA.js} +2 -2
  21. package/dist/cdn/{HIF454A6.js → 76V2F3M5.js} +2 -2
  22. package/dist/cdn/{VGCXVVGF.js → 7CVQJHEU.js} +2 -2
  23. package/dist/cdn/{6BAW6KAD.js → A5THM6EA.js} +2 -2
  24. package/dist/cdn/{SH5QUL2Z.js → AACC3FYE.js} +1 -1
  25. package/dist/cdn/{GDZND6S4.js → ARSEOYQC.js} +2 -2
  26. package/dist/cdn/AX6ZNG7O.js +4 -0
  27. package/dist/cdn/{O3LC2WQB.js → AXKSXWQK.js} +2 -2
  28. package/dist/cdn/{I5LECTBO.js → BBUM7LXZ.js} +2 -2
  29. package/dist/cdn/{5RKPITZX.js → BGVGYLIS.js} +2 -2
  30. package/dist/cdn/{2JDTH6IK.js → BL6FEQUL.js} +1 -1
  31. package/dist/cdn/{47GLP2TH.js → BOWV4BI5.js} +2 -2
  32. package/dist/cdn/{PWKNXSAS.js → BTB5CEYG.js} +2 -2
  33. package/dist/cdn/{4F7FQT3D.js → CUYQCXUJ.js} +2 -2
  34. package/dist/cdn/{ZWQX3SIB.js → D6KJDF5I.js} +2 -2
  35. package/dist/cdn/{SKTZD4WM.js → DH3QB5M5.js} +2 -2
  36. package/dist/cdn/{NCEC5CAZ.js → DHZBSCQC.js} +2 -2
  37. package/dist/cdn/{5FYXGIQ4.js → DKMOPJ25.js} +2 -2
  38. package/dist/cdn/{NCMFPUO5.js → DNMZ4O6N.js} +2 -2
  39. package/dist/cdn/{6IJMEK3V.js → DXPQND6H.js} +2 -2
  40. package/dist/cdn/{JIBEPAIR.js → E6EE4TT7.js} +1 -1
  41. package/dist/cdn/{RWSBSD7S.js → E77FQK43.js} +2 -2
  42. package/dist/cdn/{SWUUXW2V.js → ESEGUX5O.js} +2 -2
  43. package/dist/cdn/{5UCO3IN3.js → FG2UUN5Y.js} +2 -2
  44. package/dist/cdn/{NIIM2WOA.js → FMX5JKGL.js} +2 -2
  45. package/dist/cdn/{TJRBJPVS.js → FPQAF5U2.js} +2 -2
  46. package/dist/cdn/{B7LXRFIO.js → FQM7ZIUE.js} +2 -2
  47. package/dist/cdn/{JO7QIISV.js → FVCCBN6R.js} +2 -2
  48. package/dist/cdn/{OTTU32NZ.js → HDHYECZP.js} +1 -1
  49. package/dist/cdn/HP3N5VUA.js +4 -0
  50. package/dist/cdn/{NPE7BHDN.js → HRAFJUBY.js} +2 -2
  51. package/dist/cdn/{N4L7KK6S.js → HSYMUXB2.js} +2 -2
  52. package/dist/cdn/{5TO53QI5.js → IBKAQQBC.js} +2 -2
  53. package/dist/cdn/{DG5W6DSX.js → IE47QEIE.js} +2 -2
  54. package/dist/cdn/{4RQZABRE.js → JPZTEH2M.js} +2 -2
  55. package/dist/cdn/{BFGKPVUE.js → JSU4NS5T.js} +2 -2
  56. package/dist/cdn/{CCVU7P54.js → JXL7WD2E.js} +2 -2
  57. package/dist/cdn/{SFS5U7ZS.js → L3FVC43E.js} +2 -2
  58. package/dist/cdn/{736XFMFY.js → LE6LUZKM.js} +2 -2
  59. package/dist/cdn/{CIYB362S.js → LG2VTIMN.js} +2 -2
  60. package/dist/cdn/LIRUDJLH.js +4 -0
  61. package/dist/cdn/{3A7WRK6T.js → LLSIG464.js} +2 -2
  62. package/dist/cdn/{6ROAWCRZ.js → LQPNE6GS.js} +2 -2
  63. package/dist/cdn/{5YXWIVA4.js → LQXNDSAI.js} +2 -2
  64. package/dist/cdn/{Z3BQBKLS.js → LRCALZS4.js} +2 -2
  65. package/dist/cdn/{MHQH3W66.js → M67BOC6R.js} +2 -2
  66. package/dist/cdn/{RKWMZSSM.js → M6KBDQ4B.js} +2 -2
  67. package/dist/cdn/{MJZJUHXZ.js → MQJ7XLGK.js} +2 -2
  68. package/dist/cdn/{FFQWILNR.js → MSGRPQLQ.js} +2 -2
  69. package/dist/cdn/{J4HY27HP.js → N762OEGT.js} +2 -2
  70. package/dist/cdn/{K5CTLTAS.js → NBZE6Q5O.js} +1 -1
  71. package/dist/cdn/{UB636O6Q.js → NR7JLVJV.js} +2 -2
  72. package/dist/cdn/NTUHH5NA.js +4 -0
  73. package/dist/cdn/{DPFZ4VRU.js → O24P7Q3C.js} +2 -2
  74. package/dist/cdn/{56AQLE4X.js → O57FJWKG.js} +2 -2
  75. package/dist/cdn/{NQ7N6FPE.js → OBPKMGHI.js} +2 -2
  76. package/dist/cdn/{ADW7VOGC.js → OPRL4XLU.js} +2 -2
  77. package/dist/cdn/{X4YIURGH.js → OSL33XSZ.js} +2 -2
  78. package/dist/cdn/{KS5A6HUA.js → OZTG4AFE.js} +2 -2
  79. package/dist/cdn/{ZT5RGOS7.js → PNN554XV.js} +2 -2
  80. package/dist/cdn/{PPYUT3IU.js → PVCZG5NR.js} +2 -2
  81. package/dist/cdn/{LJR4MIXC.js → QDLWV3GL.js} +2 -2
  82. package/dist/cdn/{ENGHVAXC.js → QGDMGHZ3.js} +2 -2
  83. package/dist/cdn/{IDTLTUPF.js → QS6PLBTH.js} +2 -2
  84. package/dist/cdn/{RYZWSRNE.js → QTUCLDNK.js} +1 -1
  85. package/dist/cdn/{SCPPUTAP.js → QWVS3J6Z.js} +2 -2
  86. package/dist/cdn/{UIQBWX2Y.js → R42MVK6T.js} +2 -2
  87. package/dist/cdn/{LSCO7OIR.js → R63E5IDP.js} +2 -2
  88. package/dist/cdn/{V6BDP64E.js → R6KUTRWE.js} +2 -2
  89. package/dist/cdn/{UJZ676MO.js → RAN4WBBO.js} +2 -2
  90. package/dist/cdn/{BW6G7G3T.js → RKKLVIKS.js} +2 -2
  91. package/dist/cdn/{ZTFFVH7D.js → T356JENG.js} +2 -2
  92. package/dist/cdn/{24QR3GW2.js → T7VRSGAE.js} +2 -2
  93. package/dist/cdn/{UYKN2HMJ.js → TEM46PXT.js} +2 -2
  94. package/dist/cdn/{5EYHMRUQ.js → TV675TMD.js} +2 -2
  95. package/dist/cdn/{SENX6Y7C.js → U7HB3CPN.js} +2 -2
  96. package/dist/cdn/{QUZ4AO22.js → UJWLDNQL.js} +2 -2
  97. package/dist/cdn/{PGTB3MK7.js → V2GGQDQV.js} +2 -2
  98. package/dist/cdn/{OIXDTA7S.js → V4FN65Z4.js} +2 -2
  99. package/dist/cdn/{BQXTNFPW.js → VIU4ZSIY.js} +2 -2
  100. package/dist/cdn/{ZXRZF34O.js → VMDVUG52.js} +1 -1
  101. package/dist/cdn/VRX7IRTW.js +4 -0
  102. package/dist/cdn/{LWPWPSBT.js → WBS3PEXG.js} +2 -2
  103. package/dist/cdn/{7I5S2KDL.js → WIZ7RQYM.js} +2 -2
  104. package/dist/cdn/{7VNTS5KY.js → WXDH6ABX.js} +2 -2
  105. package/dist/cdn/{SIXWPY63.js → X5HMIK3S.js} +2 -2
  106. package/dist/cdn/{UIGI6CIH.js → X7Q6FQWN.js} +2 -2
  107. package/dist/cdn/{326G6F7E.js → XLHDAUF2.js} +2 -2
  108. package/dist/cdn/{NOHKYLD3.js → Y6UM5JRX.js} +2 -2
  109. package/dist/cdn/{OLJWVCJ4.js → YF5TCRIS.js} +2 -2
  110. package/dist/cdn/{WJRFH4BA.js → YL5UD5QK.js} +2 -2
  111. package/dist/cdn/{Z2KDC4K6.js → YM2YPJK6.js} +2 -2
  112. package/dist/cdn/{ZABMSQI7.js → YTQ5WKUI.js} +2 -2
  113. package/dist/cdn/{KDTLXJSX.js → YXIBBCVA.js} +2 -2
  114. package/dist/cdn/{QR2UOWNE.js → YXTLBEV3.js} +2 -2
  115. package/dist/cdn/{5A4SDVWM.js → Z4ZNKWSQ.js} +2 -2
  116. package/dist/cdn/{ZFEVOFXZ.js → Z5VECA2W.js} +2 -2
  117. package/dist/cdn/{INKJLNLE.js → ZB452APZ.js} +2 -2
  118. package/dist/cdn/{SCASOEMH.js → ZF2Y2DMS.js} +2 -2
  119. package/dist/cdn/{EDFKCNAU.js → ZV44DXHW.js} +2 -2
  120. package/dist/cdn/index.js +2 -2
  121. package/dist/chunks/AnalysisViewModel.js +123 -128
  122. package/dist/chunks/async-utils.js +1 -1
  123. package/dist/chunks/basemap-gallery-resources.js +1 -1
  124. package/dist/chunks/component-utils.js +1 -1
  125. package/dist/chunks/createCloseEvent.js +1 -1
  126. package/dist/chunks/globalCss.js +1 -1
  127. package/dist/chunks/heading.js +1 -1
  128. package/dist/chunks/layer-list.js +1 -1
  129. package/dist/chunks/legacyIcon.js +1 -1
  130. package/dist/chunks/maybe.js +1 -1
  131. package/dist/chunks/measurementUtils.js +1 -1
  132. package/dist/chunks/runtime.js +1 -1
  133. package/dist/chunks/useHandles.js +1 -1
  134. package/dist/chunks/useT9n.js +1 -1
  135. package/dist/chunks/useView.js +1 -1
  136. package/dist/chunks/useViewModel.js +1 -1
  137. package/dist/chunks/useWidget.js +1 -1
  138. package/dist/chunks/utils.js +1 -1
  139. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  140. package/dist/components/arcgis-area-measurement-3d/AreaMeasurement3dViewModel.d.ts +2 -8
  141. package/dist/components/arcgis-area-measurement-3d/customElement.js +9 -9
  142. package/dist/components/arcgis-attachments/customElement.js +1 -1
  143. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  144. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  145. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  146. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +1 -0
  147. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  148. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  149. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  150. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  151. package/dist/components/arcgis-compass/customElement.js +1 -1
  152. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  153. package/dist/components/arcgis-daylight/customElement.js +1 -1
  154. package/dist/components/arcgis-direct-line-measurement-3d/DirectLineMeasurement3dViewModel.d.ts +2 -8
  155. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +3 -3
  156. package/dist/components/arcgis-directional-pad/customElement.d.ts +3 -4
  157. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  158. package/dist/components/arcgis-directions/customElement.js +1 -1
  159. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  160. package/dist/components/arcgis-editor/customElement.js +1 -1
  161. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  162. package/dist/components/arcgis-expand/customElement.js +1 -1
  163. package/dist/components/arcgis-feature/customElement.js +1 -1
  164. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  165. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  166. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  167. package/dist/components/arcgis-features/customElement.js +1 -1
  168. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  169. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  170. package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
  171. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  172. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  173. package/dist/components/arcgis-home/customElement.js +1 -1
  174. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  175. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  176. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  177. package/dist/components/arcgis-legend/customElement.js +1 -1
  178. package/dist/components/arcgis-line-of-sight/LineOfSightViewModel.d.ts +2 -3
  179. package/dist/components/arcgis-line-of-sight/customElement.js +15 -15
  180. package/dist/components/arcgis-link-chart/customElement.d.ts +1 -1
  181. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  182. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  183. package/dist/components/arcgis-locate/customElement.d.ts +1 -1
  184. package/dist/components/arcgis-locate/customElement.js +1 -1
  185. package/dist/components/arcgis-map/customElement.d.ts +1 -1
  186. package/dist/components/arcgis-map/customElement.js +1 -1
  187. package/dist/components/arcgis-measurement/customElement.js +1 -1
  188. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  189. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +3 -4
  190. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  191. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  192. package/dist/components/arcgis-placement/customElement.js +1 -1
  193. package/dist/components/arcgis-print/customElement.js +1 -1
  194. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  195. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  196. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  197. package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
  198. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  199. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  200. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  201. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  202. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  203. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  204. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  205. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  206. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  207. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  208. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  209. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  210. package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
  211. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  212. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  213. package/dist/components/arcgis-scene/customElement.d.ts +1 -1
  214. package/dist/components/arcgis-scene/customElement.js +41 -28
  215. package/dist/components/arcgis-search/customElement.js +1 -1
  216. package/dist/components/arcgis-search-result-renderer/customElement.d.ts +1 -1
  217. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  218. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  219. package/dist/components/arcgis-sketch/customElement.js +1 -1
  220. package/dist/components/arcgis-slice/SliceViewModel.d.ts +3 -9
  221. package/dist/components/arcgis-slice/customElement.js +6 -3
  222. package/dist/components/arcgis-slider/customElement.js +1 -1
  223. package/dist/components/arcgis-swipe/customElement.d.ts +3 -1
  224. package/dist/components/arcgis-swipe/customElement.js +1 -1
  225. package/dist/components/arcgis-table-list/customElement.js +1 -1
  226. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  227. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  228. package/dist/components/arcgis-track/customElement.d.ts +1 -1
  229. package/dist/components/arcgis-track/customElement.js +1 -1
  230. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  231. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  232. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  233. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  234. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  235. package/dist/components/arcgis-version-management/customElement.d.ts +1 -1
  236. package/dist/components/arcgis-version-management/customElement.js +1 -1
  237. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  238. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  239. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  240. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  241. package/dist/components/arcgis-video/customElement.js +1 -1
  242. package/dist/components/arcgis-video-player/customElement.js +1 -1
  243. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  244. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  245. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  246. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  247. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  248. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  249. package/dist/components/arcgis-weather/customElement.js +1 -1
  250. package/dist/components/arcgis-zoom/customElement.js +1 -1
  251. package/dist/docs/api.json +36 -24
  252. package/dist/docs/docs.json +28 -18
  253. package/dist/docs/vscode.html-custom-data.json +13 -13
  254. package/dist/docs/web-types.json +18 -18
  255. package/dist/index.js +1 -1
  256. package/dist/loader.js +1 -1
  257. package/dist/support/AnalysisViewModel.d.ts +10 -13
  258. package/package.json +4 -4
  259. package/dist/cdn/4AXKPMRU.js +0 -4
  260. package/dist/cdn/7Y2UYB4A.js +0 -4
  261. package/dist/cdn/KDJUWWOF.js +0 -4
  262. package/dist/cdn/NDZKBR4F.js +0 -4
  263. package/dist/cdn/P3GKA22N.js +0 -4
  264. package/dist/cdn/X4DKUWKA.js +0 -4
@@ -1642,7 +1642,7 @@
1642
1642
  },
1643
1643
  {
1644
1644
  "name": "icon",
1645
- "description": "Icon which represents the component. It is typically used when the\ncomponent is controlled by another one (e.g. in the arcgis-expand\ncomponent).",
1645
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
1646
1646
  "values": []
1647
1647
  },
1648
1648
  {
@@ -3890,7 +3890,7 @@
3890
3890
  },
3891
3891
  {
3892
3892
  "name": "arcgis-grid-controls",
3893
- "description": "The Grid Controls component provides a user interface (UI) for configuring and displaying a two-dimensional grid.\nThe grid displayed provides a network of horizontal and vertical lines used to divide the view into equal cells.\nWith support for snapping, the grid lines can be used as a reference when drawing features.\nNote: grid controls are embedded in snapping controls for Sketch and Editor by default.\n\n**Known limitations**\n\n- Grid Controls is only supported in 2D/arcgis-map.\n- The grid spacing does not correspond to real world measurements. Distortion will be minimized when used in conjunction with an equal area basemap.\n- The grid spacing input will be hidden when working with Web Mercator and Geographic Coordinate Systems.\n--\n\n### Events\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `trySetDisplayEnabled(enabled: boolean): void` - Call this to turn the grid on/off.",
3893
+ "description": "The Grid Controls component provides a user interface (UI) for configuring and displaying a two-dimensional grid.\nThe grid displayed provides a network of horizontal and vertical lines used to divide the view into equal cells.\nWith support for snapping, the grid lines can be used as a reference when drawing features.\nNote: grid controls are embedded in snapping controls for Sketch and Editor by default.\n\n**Known limitations**\n\n- Grid Controls is only supported in a 2D Map component.\n- The grid spacing does not correspond to real world measurements. Distortion will be minimized when used in conjunction with an equal area basemap.\n- The grid spacing input will be hidden when working with Web Mercator and Geographic Coordinate Systems.\n--\n\n### Events\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `trySetDisplayEnabled(enabled: boolean): void` - Call this to turn the grid on/off.",
3894
3894
  "attributes": [
3895
3895
  {
3896
3896
  "name": "auto-destroy-disabled",
@@ -4741,7 +4741,7 @@
4741
4741
  },
4742
4742
  {
4743
4743
  "name": "item-id",
4744
- "description": "The ID of a WebLinkChart from an ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the `arcgis-linkchart` component loads.",
4744
+ "description": "The ID of a WebLinkChart from an ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the Link Chart component loads.",
4745
4745
  "values": []
4746
4746
  },
4747
4747
  {
@@ -4925,7 +4925,7 @@
4925
4925
  },
4926
4926
  {
4927
4927
  "name": "arcgis-locate",
4928
- "description": "The Locate component animates the `arcgis-map` or `arcgis-scene` to the user's current location.\n--\n\n### Events\n- **arcgisError**\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisSuccess**\n\n### Methods\n- `cancelLocate(): Promise<void>` - This function provides the ability to interrupt and cancel the process of\nprogrammatically obtaining the location of the user's device.\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `locate(): Promise<GeolocationPosition | null>`",
4928
+ "description": "The Locate component animates the Map or Scene to the user's current location.\n--\n\n### Events\n- **arcgisError**\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisSuccess**\n\n### Methods\n- `cancelLocate(): Promise<void>` - This function provides the ability to interrupt and cancel the process of\nprogrammatically obtaining the location of the user's device.\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `locate(): Promise<GeolocationPosition | null>`",
4929
4929
  "attributes": [
4930
4930
  {
4931
4931
  "name": "auto-destroy-disabled",
@@ -5055,7 +5055,7 @@
5055
5055
  },
5056
5056
  {
5057
5057
  "name": "item-id",
5058
- "description": "The ID of a WebMap from ArcGIS Online or ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the `arcgis-map` component loads.",
5058
+ "description": "The ID of a WebMap from ArcGIS Online or ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the Map component loads.",
5059
5059
  "values": []
5060
5060
  },
5061
5061
  {
@@ -5334,7 +5334,7 @@
5334
5334
  "attributes": [
5335
5335
  {
5336
5336
  "name": "icon",
5337
- "description": "Icon which represents the component. It is typically used when the\ncomponent is controlled by another one (e.g. in the arcgis-expand\ncomponent).",
5337
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
5338
5338
  "values": []
5339
5339
  },
5340
5340
  {
@@ -5757,7 +5757,7 @@
5757
5757
  },
5758
5758
  {
5759
5759
  "name": "arcgis-scale-bar",
5760
- "description": "The Scale Bar component displays a scale bar representing the scale of the map.\nIt respects various coordinate systems and displays units in metric or imperial values.\nMetric values show either kilometers, meters, centimeters, or millimeters depending on the scale, and likewise, imperial values show miles, feet, or inches depending on the scale.\nWhen working with Web Mercator or geographic coordinate systems the scale bar takes into account projection distortion and dynamically adjusts the scale bar.\n\nWhen the scale bar is inside the map, the actual location of the scale bar is used to calculate the scale.\nOtherwise, the center of the map is used to calculate the scale.\n\n**Known Limitations**\n\n- This component is not currently supported within an `arcgis-scene` component.\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
5760
+ "description": "The Scale Bar component displays a scale bar representing the scale of the map.\nIt respects various coordinate systems and displays units in metric or imperial values.\nMetric values show either kilometers, meters, centimeters, or millimeters depending on the scale, and likewise, imperial values show miles, feet, or inches depending on the scale.\nWhen working with Web Mercator or geographic coordinate systems the scale bar takes into account projection distortion and dynamically adjusts the scale bar.\n\nWhen the scale bar is inside the map, the actual location of the scale bar is used to calculate the scale.\nOtherwise, the center of the map is used to calculate the scale.\n\n**Known Limitations**\n\n- This component is not currently supported within a Scene component.\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
5761
5761
  "attributes": [
5762
5762
  {
5763
5763
  "name": "auto-destroy-disabled",
@@ -5975,7 +5975,7 @@
5975
5975
  "url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scale-range-slider/"
5976
5976
  },
5977
5977
  {
5978
- "name": "Scale Range Slider",
5978
+ "name": "Demo",
5979
5979
  "url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-scale-range-slider--demo&singleStory=true"
5980
5980
  }
5981
5981
  ]
@@ -6270,7 +6270,7 @@
6270
6270
  },
6271
6271
  {
6272
6272
  "name": "arcgis-search-result-renderer",
6273
- "description": "The `SearchResultRenderer` renders the Search component results and allows expanding a DOM element to show alternative matches.\nThese alternative matches appear in the Show more results link.\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
6273
+ "description": "The Search Result Renderer renders the Search component results and allows expanding a DOM element to show alternative matches.\nThese alternative matches appear in the Show more results link.\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
6274
6274
  "attributes": [
6275
6275
  {
6276
6276
  "name": "auto-destroy-disabled",
@@ -7002,7 +7002,7 @@
7002
7002
  },
7003
7003
  {
7004
7004
  "name": "arcgis-swipe",
7005
- "description": "The Swipe component provides a tool to show a portion of a layer or layers\non top of a map. Layers can be swiped vertically or horizontally to easily\ncompare two layers or see what is underneath a layer.\n\nTo use the Swipe component, set the `leadingLayers` and `trailingLayers`\nproperties to determine what will be compared on either side of the component. If one of these properties\nis not set, then the Swipe component will overlay the existing map.\n\n**Known Limitations**\n\n- This component is not currently supported within an `arcgis-scene` component.\n--\n\n### Events\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
7005
+ "description": "The Swipe component provides a tool to show a portion of a layer or layers\non top of a map. Layers can be swiped vertically or horizontally to easily\ncompare two layers or see what is underneath a layer.\n\nTo use the Swipe component, set the `leadingLayers` and `trailingLayers`\nproperties to determine what will be compared on either side of the component. If one of these properties\nis not set, then the Swipe component will overlay the existing map.\n\n**Known Limitations**\n\n- This component is not currently supported within a Scene component.\n--\n\n### Events\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
7006
7006
  "attributes": [
7007
7007
  {
7008
7008
  "name": "auto-destroy-disabled",
@@ -7038,7 +7038,7 @@
7038
7038
  },
7039
7039
  {
7040
7040
  "name": "icon",
7041
- "description": "Icon which represents the component.",
7041
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
7042
7042
  "values": []
7043
7043
  },
7044
7044
  {
@@ -7511,7 +7511,7 @@
7511
7511
  },
7512
7512
  {
7513
7513
  "name": "arcgis-track",
7514
- "description": "The Track component is a button that animates the map or scene to the user's location when clicked.\nThe view rotates based on device heading.\nThe default heading symbol will display when speed is greater than zero and the browser provides heading information.\n\n**Known Limitations**\n\n- The heading symbol is not currently supported within an `arcgis-scene` component.\n--\n\n### Events\n- **arcgisComplete**\n- **arcgisError**\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `start(): Promise<void>`\n- `stop(): Promise<void>`",
7514
+ "description": "The Track component is a button that animates the map or scene to the user's location when clicked.\nThe view rotates based on device heading.\nThe default heading symbol will display when speed is greater than zero and the browser provides heading information.\n\n**Known Limitations**\n\n- The heading symbol is not currently supported within a Scene component.\n--\n\n### Events\n- **arcgisComplete**\n- **arcgisError**\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `start(): Promise<void>`\n- `stop(): Promise<void>`",
7515
7515
  "attributes": [
7516
7516
  {
7517
7517
  "name": "auto-destroy-disabled",
@@ -8171,7 +8171,7 @@
8171
8171
  },
8172
8172
  {
8173
8173
  "name": "arcgis-version-management",
8174
- "description": "The Version Management component allows users to view available versions, change versions, delete versions, and alter versions.\nThe [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) will update to match the features on the selected version.\nTo learn more about version management please visit the [versioning guide doc](https://developers.arcgis.com/javascript/latest/utility-network/version-management-service/).\n\n> The VersionManagement Component does not support proxied feature services or feature services that utilize stored credentials.\n\nNote: Sign in to access the data in this sample, U/P: `viewer01`/`I68VGU^nMurF`\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisVersioningStateChanged**\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
8174
+ "description": "The Version Management component allows users to view available versions, change versions, delete versions, and alter versions.\nThe [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) will update to match the features on the selected version.\nTo learn more about version management please visit the [versioning guide doc](https://developers.arcgis.com/javascript/latest/utility-network/version-management-service/).\n\n> The Version Management component does not support proxied feature services or feature services that utilize stored credentials.\n\nNote: Sign in to access the data in this sample, U/P: `viewer01`/`I68VGU^nMurF`\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisVersioningStateChanged**\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
8175
8175
  "attributes": [
8176
8176
  {
8177
8177
  "name": "allow-editing-disabled",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@arcgis/map-components",
4
- "version": "4.34.0-next.0",
4
+ "version": "4.34.0-next.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -2961,7 +2961,7 @@
2961
2961
  },
2962
2962
  {
2963
2963
  "name": "icon",
2964
- "description": "Icon which represents the component. It is typically used when the\ncomponent is controlled by another one (e.g. in the arcgis-expand\ncomponent).",
2964
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
2965
2965
  "default": "\"move\"",
2966
2966
  "value": {
2967
2967
  "type": "string"
@@ -3068,7 +3068,7 @@
3068
3068
  },
3069
3069
  {
3070
3070
  "name": "icon",
3071
- "description": "Icon which represents the component. It is typically used when the\ncomponent is controlled by another one (e.g. in the arcgis-expand\ncomponent).",
3071
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
3072
3072
  "type": "string"
3073
3073
  },
3074
3074
  {
@@ -7077,7 +7077,7 @@
7077
7077
  },
7078
7078
  {
7079
7079
  "name": "arcgis-grid-controls",
7080
- "description": "The Grid Controls component provides a user interface (UI) for configuring and displaying a two-dimensional grid.\nThe grid displayed provides a network of horizontal and vertical lines used to divide the view into equal cells.\nWith support for snapping, the grid lines can be used as a reference when drawing features.\nNote: grid controls are embedded in snapping controls for Sketch and Editor by default.\n\n**Known limitations**\n\n- Grid Controls is only supported in 2D/arcgis-map.\n- The grid spacing does not correspond to real world measurements. Distortion will be minimized when used in conjunction with an equal area basemap.\n- The grid spacing input will be hidden when working with Web Mercator and Geographic Coordinate Systems.\n--\n\n### Events\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `trySetDisplayEnabled(enabled: boolean): void` - Call this to turn the grid on/off.",
7080
+ "description": "The Grid Controls component provides a user interface (UI) for configuring and displaying a two-dimensional grid.\nThe grid displayed provides a network of horizontal and vertical lines used to divide the view into equal cells.\nWith support for snapping, the grid lines can be used as a reference when drawing features.\nNote: grid controls are embedded in snapping controls for Sketch and Editor by default.\n\n**Known limitations**\n\n- Grid Controls is only supported in a 2D Map component.\n- The grid spacing does not correspond to real world measurements. Distortion will be minimized when used in conjunction with an equal area basemap.\n- The grid spacing input will be hidden when working with Web Mercator and Geographic Coordinate Systems.\n--\n\n### Events\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `trySetDisplayEnabled(enabled: boolean): void` - Call this to turn the grid on/off.",
7081
7081
  "doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-grid-controls/",
7082
7082
  "attributes": [
7083
7083
  {
@@ -8712,7 +8712,7 @@
8712
8712
  },
8713
8713
  {
8714
8714
  "name": "item-id",
8715
- "description": "The ID of a WebLinkChart from an ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the `arcgis-linkchart` component loads.",
8715
+ "description": "The ID of a WebLinkChart from an ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the Link Chart component loads.",
8716
8716
  "value": {
8717
8717
  "type": "string"
8718
8718
  }
@@ -8948,7 +8948,7 @@
8948
8948
  },
8949
8949
  {
8950
8950
  "name": "itemId",
8951
- "description": "The ID of a WebLinkChart from an ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the `arcgis-linkchart` component loads.",
8951
+ "description": "The ID of a WebLinkChart from an ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the Link Chart component loads.",
8952
8952
  "type": "string"
8953
8953
  },
8954
8954
  {
@@ -9351,7 +9351,7 @@
9351
9351
  },
9352
9352
  {
9353
9353
  "name": "arcgis-locate",
9354
- "description": "The Locate component animates the `arcgis-map` or `arcgis-scene` to the user's current location.\n--\n\n### Events\n- **arcgisError**\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisSuccess**\n\n### Methods\n- `cancelLocate(): Promise<void>` - This function provides the ability to interrupt and cancel the process of\nprogrammatically obtaining the location of the user's device.\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `locate(): Promise<GeolocationPosition | null>`",
9354
+ "description": "The Locate component animates the Map or Scene to the user's current location.\n--\n\n### Events\n- **arcgisError**\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisSuccess**\n\n### Methods\n- `cancelLocate(): Promise<void>` - This function provides the ability to interrupt and cancel the process of\nprogrammatically obtaining the location of the user's device.\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `locate(): Promise<GeolocationPosition | null>`",
9355
9355
  "doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-locate/",
9356
9356
  "attributes": [
9357
9357
  {
@@ -9584,7 +9584,7 @@
9584
9584
  },
9585
9585
  {
9586
9586
  "name": "item-id",
9587
- "description": "The ID of a WebMap from ArcGIS Online or ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the `arcgis-map` component loads.",
9587
+ "description": "The ID of a WebMap from ArcGIS Online or ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the Map component loads.",
9588
9588
  "value": {
9589
9589
  "type": "string"
9590
9590
  }
@@ -9845,7 +9845,7 @@
9845
9845
  },
9846
9846
  {
9847
9847
  "name": "itemId",
9848
- "description": "The ID of a WebMap from ArcGIS Online or ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the `arcgis-map` component loads.",
9848
+ "description": "The ID of a WebMap from ArcGIS Online or ArcGIS Enterprise portal.\n\nTo configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the Map component loads.",
9849
9849
  "type": "string"
9850
9850
  },
9851
9851
  {
@@ -10274,7 +10274,7 @@
10274
10274
  "attributes": [
10275
10275
  {
10276
10276
  "name": "icon",
10277
- "description": "Icon which represents the component. It is typically used when the\ncomponent is controlled by another one (e.g. in the arcgis-expand\ncomponent).",
10277
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
10278
10278
  "value": {
10279
10279
  "type": "string"
10280
10280
  }
@@ -10359,7 +10359,7 @@
10359
10359
  "properties": [
10360
10360
  {
10361
10361
  "name": "icon",
10362
- "description": "Icon which represents the component. It is typically used when the\ncomponent is controlled by another one (e.g. in the arcgis-expand\ncomponent).",
10362
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
10363
10363
  "type": "string"
10364
10364
  },
10365
10365
  {
@@ -11033,7 +11033,7 @@
11033
11033
  },
11034
11034
  {
11035
11035
  "name": "arcgis-scale-bar",
11036
- "description": "The Scale Bar component displays a scale bar representing the scale of the map.\nIt respects various coordinate systems and displays units in metric or imperial values.\nMetric values show either kilometers, meters, centimeters, or millimeters depending on the scale, and likewise, imperial values show miles, feet, or inches depending on the scale.\nWhen working with Web Mercator or geographic coordinate systems the scale bar takes into account projection distortion and dynamically adjusts the scale bar.\n\nWhen the scale bar is inside the map, the actual location of the scale bar is used to calculate the scale.\nOtherwise, the center of the map is used to calculate the scale.\n\n**Known Limitations**\n\n- This component is not currently supported within an `arcgis-scene` component.\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
11036
+ "description": "The Scale Bar component displays a scale bar representing the scale of the map.\nIt respects various coordinate systems and displays units in metric or imperial values.\nMetric values show either kilometers, meters, centimeters, or millimeters depending on the scale, and likewise, imperial values show miles, feet, or inches depending on the scale.\nWhen working with Web Mercator or geographic coordinate systems the scale bar takes into account projection distortion and dynamically adjusts the scale bar.\n\nWhen the scale bar is inside the map, the actual location of the scale bar is used to calculate the scale.\nOtherwise, the center of the map is used to calculate the scale.\n\n**Known Limitations**\n\n- This component is not currently supported within a Scene component.\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
11037
11037
  "doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scale-bar/",
11038
11038
  "attributes": [
11039
11039
  {
@@ -12437,7 +12437,7 @@
12437
12437
  },
12438
12438
  {
12439
12439
  "name": "arcgis-search-result-renderer",
12440
- "description": "The `SearchResultRenderer` renders the Search component results and allows expanding a DOM element to show alternative matches.\nThese alternative matches appear in the Show more results link.\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
12440
+ "description": "The Search Result Renderer renders the Search component results and allows expanding a DOM element to show alternative matches.\nThese alternative matches appear in the Show more results link.\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
12441
12441
  "doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-search-result-renderer/",
12442
12442
  "attributes": [
12443
12443
  {
@@ -13980,7 +13980,7 @@
13980
13980
  },
13981
13981
  {
13982
13982
  "name": "arcgis-swipe",
13983
- "description": "The Swipe component provides a tool to show a portion of a layer or layers\non top of a map. Layers can be swiped vertically or horizontally to easily\ncompare two layers or see what is underneath a layer.\n\nTo use the Swipe component, set the `leadingLayers` and `trailingLayers`\nproperties to determine what will be compared on either side of the component. If one of these properties\nis not set, then the Swipe component will overlay the existing map.\n\n**Known Limitations**\n\n- This component is not currently supported within an `arcgis-scene` component.\n--\n\n### Events\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
13983
+ "description": "The Swipe component provides a tool to show a portion of a layer or layers\non top of a map. Layers can be swiped vertically or horizontally to easily\ncompare two layers or see what is underneath a layer.\n\nTo use the Swipe component, set the `leadingLayers` and `trailingLayers`\nproperties to determine what will be compared on either side of the component. If one of these properties\nis not set, then the Swipe component will overlay the existing map.\n\n**Known Limitations**\n\n- This component is not currently supported within a Scene component.\n--\n\n### Events\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
13984
13984
  "doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-swipe/",
13985
13985
  "attributes": [
13986
13986
  {
@@ -14028,7 +14028,7 @@
14028
14028
  },
14029
14029
  {
14030
14030
  "name": "icon",
14031
- "description": "Icon which represents the component.",
14031
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
14032
14032
  "default": "\"compare\"",
14033
14033
  "value": {
14034
14034
  "type": "string"
@@ -14126,7 +14126,7 @@
14126
14126
  },
14127
14127
  {
14128
14128
  "name": "icon",
14129
- "description": "Icon which represents the component.",
14129
+ "description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
14130
14130
  "type": "string"
14131
14131
  },
14132
14132
  {
@@ -14942,7 +14942,7 @@
14942
14942
  },
14943
14943
  {
14944
14944
  "name": "arcgis-track",
14945
- "description": "The Track component is a button that animates the map or scene to the user's location when clicked.\nThe view rotates based on device heading.\nThe default heading symbol will display when speed is greater than zero and the browser provides heading information.\n\n**Known Limitations**\n\n- The heading symbol is not currently supported within an `arcgis-scene` component.\n--\n\n### Events\n- **arcgisComplete**\n- **arcgisError**\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `start(): Promise<void>`\n- `stop(): Promise<void>`",
14945
+ "description": "The Track component is a button that animates the map or scene to the user's location when clicked.\nThe view rotates based on device heading.\nThe default heading symbol will display when speed is greater than zero and the browser provides heading information.\n\n**Known Limitations**\n\n- The heading symbol is not currently supported within a Scene component.\n--\n\n### Events\n- **arcgisComplete**\n- **arcgisError**\n- **arcgisPropertyChange** - Emitted when the value of a property is changed. Use this to listen to changes to properties.\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `start(): Promise<void>`\n- `stop(): Promise<void>`",
14946
14946
  "doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-track/",
14947
14947
  "attributes": [
14948
14948
  {
@@ -16348,7 +16348,7 @@
16348
16348
  },
16349
16349
  {
16350
16350
  "name": "arcgis-version-management",
16351
- "description": "The Version Management component allows users to view available versions, change versions, delete versions, and alter versions.\nThe [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) will update to match the features on the selected version.\nTo learn more about version management please visit the [versioning guide doc](https://developers.arcgis.com/javascript/latest/utility-network/version-management-service/).\n\n> The VersionManagement Component does not support proxied feature services or feature services that utilize stored credentials.\n\nNote: Sign in to access the data in this sample, U/P: `viewer01`/`I68VGU^nMurF`\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisVersioningStateChanged**\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
16351
+ "description": "The Version Management component allows users to view available versions, change versions, delete versions, and alter versions.\nThe [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) will update to match the features on the selected version.\nTo learn more about version management please visit the [versioning guide doc](https://developers.arcgis.com/javascript/latest/utility-network/version-management-service/).\n\n> The Version Management component does not support proxied feature services or feature services that utilize stored credentials.\n\nNote: Sign in to access the data in this sample, U/P: `viewer01`/`I68VGU^nMurF`\n--\n\n### Events\n- **arcgisReady** - Emitted when the component associated with a map or scene view is is ready to be interacted with.\n- **arcgisVersioningStateChanged**\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.",
16352
16352
  "doc-url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-version-management/",
16353
16353
  "attributes": [
16354
16354
  {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { s, g as t } from "./chunks/runtime.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.0 */
4
+ v4.34.0-next.2 */
5
5
  const a = s, A = t;
6
6
  export {
7
7
  A as getArcgisAssetPath,
package/dist/loader.js CHANGED
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
2
2
  import { makeDefineCustomElements as t } from "@arcgis/lumina";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
5
- v4.34.0-next.0 */
5
+ v4.34.0-next.2 */
6
6
  const a = t(e, {
7
7
  "arcgis-area-measurement-2d": [() => import("./components/arcgis-area-measurement-2d/customElement.js"), "autoDestroyDisabled,icon,label,position,referenceElement,snappingOptions:,state,unit,unitOptions:;clear,destroy,start"],
8
8
  "arcgis-area-measurement-3d": [() => import("./components/arcgis-area-measurement-3d/customElement.js"), "analysis:,autoDestroyDisabled,icon,label,position,referenceElement,state,unit,unitOptions:;clear,destroy,start"],
@@ -2,11 +2,6 @@
2
2
  import { default as Accessor } from '@arcgis/core/core/Accessor.js';
3
3
  import { AnalysisUnion, AnalysisViewUnion } from '@arcgis/core/unionTypes.js';
4
4
  import { default as SceneView } from '@arcgis/core/views/SceneView';
5
- export interface ConstructProperties<ViewType extends SceneView, AnalysisType extends AnalysisUnion> {
6
- analysis?: AnalysisType;
7
- view?: ViewType;
8
- visible: boolean;
9
- }
10
5
  export type AnalysisMap = {
11
6
  [Key in AnalysisUnion["type"]]: Extract<AnalysisUnion, {
12
7
  type: Key;
@@ -21,9 +16,8 @@ export type AnalysisViewMap = {
21
16
  };
22
17
  export type AnalysisViewFor<Analysis extends AnalysisUnion> = AnalysisViewMap[Analysis["type"]];
23
18
  type OperationState = "active" | "inactive";
24
- export declare abstract class AnalysisViewModel<IViewType extends SceneView, AnalysisType extends __esri.AnalysisUnion> extends Accessor implements ConstructProperties<IViewType, AnalysisType> {
25
- constructor(properties?: Partial<ConstructProperties<IViewType, AnalysisType>>);
26
- protected normalizeCtorArgs(properties: Partial<ConstructProperties<IViewType, AnalysisType>>): HashMap<unknown>;
19
+ export declare abstract class AnalysisViewModel<IViewType extends SceneView, AnalysisType extends __esri.AnalysisUnion> extends Accessor {
20
+ constructor();
27
21
  protected initialize(): void;
28
22
  destroy(): void;
29
23
  get supported(): boolean;
@@ -40,9 +34,12 @@ export declare abstract class AnalysisViewModel<IViewType extends SceneView, Ana
40
34
  get ready(): boolean;
41
35
  get connectingToView(): boolean;
42
36
  /**
43
- * If the viewmodel owns the analysis, it will remove and destroy it when the view model is destroyed.
37
+ * Whether the viewmodel owns the analysis. In that case, it will remove and destroy the analysis when it is is
38
+ * destroyed. An analysis is initially created by the view model if none is provided and the view model owns it until
39
+ * it is moved to a layer or removed from the view.
44
40
  */
45
- get isAnalysisOwner(): boolean;
41
+ private _ownsAnalysis;
42
+ private get _viewHasAnalysis();
46
43
  private _reconnectViewTask?;
47
44
  private _forceInteractiveHandle?;
48
45
  private _operationState;
@@ -52,12 +49,12 @@ export declare abstract class AnalysisViewModel<IViewType extends SceneView, Ana
52
49
  private _loggedUnsupportedErrorMessage;
53
50
  /**
54
51
  * Breaks the loop of:
55
- * analysis.parent change event
52
+ * Analysis move event
56
53
  * -> reconnect
57
54
  * -> remove analysis from view.analyses in disconnect
58
- * -> analysis.parent change event
55
+ * -> Analysis move event
59
56
  */
60
- private _parentChangeFromReconnect;
57
+ private _changeFromReconnect;
61
58
  private _startUserOperation;
62
59
  protected abstract constructAnalysis(): AnalysisType;
63
60
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
- "version": "4.34.0-next.0",
3
+ "version": "4.34.0-next.2",
4
4
  "description": "ArcGIS Map Components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -42,12 +42,12 @@
42
42
  ],
43
43
  "license": "SEE LICENSE IN LICENSE.md",
44
44
  "dependencies": {
45
- "@arcgis/components-utils": "4.34.0-next.0",
46
- "@arcgis/lumina": "4.34.0-next.0",
45
+ "@arcgis/components-utils": "4.34.0-next.2",
46
+ "@arcgis/lumina": "4.34.0-next.2",
47
47
  "tslib": "^2.8.1"
48
48
  },
49
49
  "peerDependencies": {
50
- "@arcgis/core": ">=4.33.0-next <4.34",
50
+ "@arcgis/core": ">=4.34.0-next <4.35",
51
51
  "@esri/calcite-components": "^3.2.0"
52
52
  },
53
53
  "css.customData": [
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.0 */
4
- import{b as h,c}from"./SH5QUL2Z.js";import j from"./NDZKBR4F.js";import i from"./LSCO7OIR.js";import"./K5CTLTAS.js";import e from"./UJZ676MO.js";import{a as $}from"./5FYXGIQ4.js";import{a as p}from"./FO4LJYGB.js";import d from"./326G6F7E.js";import a from"./EBK2WHJG.js";import{e as M}from"./66M6PGUD.js";import"./56AQLE4X.js";import"./ZXRZF34O.js";import{A as w,D as f,O as D,P as b,R as O,T as m,i as g,j as v}from"./OTTU32NZ.js";export default $arcgis.t(([z,{isAboveGeodesicDistanceThreshold:A},{getDefaultUnitForView:S},{property:o,subclass:_},{watch:V},,,U,,L])=>{var x=g`@layer{arcgis-directline-measurement-3d,arcgis-direct-line-measurement-3d{display:block}.arcgis-direct-line-measurement-3d{position:relative;padding:var(--esri-widget-padding);overflow-y:auto}}`,C=Object.defineProperty,E=Object.getOwnPropertyDescriptor,n=(e,t,s,r)=>{for(var a=r>1?void 0:r?E(t,s):t,l=e.length-1,d;l>=0;l--)(d=e[l])&&(a=(r?d(t,s,a):d(a))||a);return r&&a&&C(t,s,a),a},i=class extends L{constructor(e){super(e),this.supportedViewType="3d",this.unsupportedErrorMessage="The Direct Line Measurement 3D component is only supported in 3D views."}initialize(){this.addHandles(V(()=>({analysis:this.analysis,unit:this.unit}),({analysis:e,unit:t})=>{e!=null&&(e.unit=t)},{sync:!0,initial:!0}))}get state(){return this.disabled||!this.ready?"disabled":this.operationState==="inactive"?this.analysis.valid?"measured":"ready":"measuring"}get displayState(){if(!this.supported)return"unsupported";switch(this.state){case"disabled":case"ready":return"ready";case"measuring":return this.analysis.startPoint==null?"measuring":"measured";case"measured":return"measured"}}get measurement(){let e=this.analysisView?.result,t=e?.mode??"euclidean";if(!this.analysis.valid)return{mode:t,directDistance:c(void 0),horizontalDistance:c(void 0),verticalDistance:c(void 0)};let s=e?.directDistance,r=s!=null&&A(s);return{mode:t??"euclidean",directDistance:c(r?void 0:s),horizontalDistance:c(e?.horizontalDistance),verticalDistance:c(e?.verticalDistance)}}get unitOptions(){let e=this._userUnitOptions?.filter(t=>h.includes(t));return e&&e.length>0?e:h.slice()}set unitOptions(e){this._userUnitOptions=e}get unit(){let e=this._userUnit,t=this.unitOptions;if(e&&t.includes(e))return e;let s=this.defaultUnit;return s&&t.includes(s)?s:t[0]}set unit(e){this._userUnit=e}get defaultUnit(){return this.view?S(this.view):void 0}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.startPoint=null,this.analysis.endPoint=null}constructAnalysis(){return new z}};n([o({readOnly:!0})],i.prototype,"state",1);n([o({readOnly:!0})],i.prototype,"displayState",1);n([o({readOnly:!0})],i.prototype,"measurement",1);n([o()],i.prototype,"unitOptions",1);n([o()],i.prototype,"_userUnitOptions",2);n([o()],i.prototype,"unit",1);n([o()],i.prototype,"_userUnit",2);n([o({readOnly:!0})],i.prototype,"defaultUnit",1);i=n([_("components.direct-line-measurement-3d.DirectLineMeasurement3dViewModel")],i);var R="arcgis-direct-line-measurement-3d",T={base:R},k=U(i),u=class extends D{constructor(){super(...arguments),this.viewModel=k(this),this.messages=$({name:"directline-measurement-3d",blocking:!0}),this.autoDestroyDisabled=!1,this.icon="measure-line",this.position="bottom-left",this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=M()("analysis","state"),this.arcgisReady=w()}static{this.properties={analysis:32,autoDestroyDisabled:5,icon:3,label:1,position:1,referenceElement:1,state:1,unit:1,unitOptions:0}}static{this.shadowRootOptions=f}static{this.styles=x}get analysis(){return this.viewModel.analysis}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){await this.viewModel.start()}render(){let{messages:t,unit:s,unitOptions:r,viewModel:a}=this,{measurement:l,state:d}=a;return v`<div aria-label=${t.componentLabel??O} class=${b({[T.base]:!0,[p.widget]:!0,[p.panel]:!0})} role=presentation><arcgis-measurement-content .state=${a.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[{title:t.direct,measurement:l.directDistance},{title:t.horizontal,measurement:l.horizontalDistance},{title:t.vertical,measurement:l.verticalDistance}]}><arcgis-unit-select slot=settings .options=${r} .selectLabel=${t.unit} .value=${s} @arcgisUnitSelectChange=${P=>{this.unit=P.detail}}></arcgis-unit-select><calcite-button slot=actions .disabled=${d==="disabled"} @click=${()=>{this.viewModel.clear(),this.viewModel.start()}}>${t.newMeasurement}</calcite-button></arcgis-measurement-content></div>`}},y=class extends u{constructor(){super(),console.warn('arcgis-directline-measurement-3d - this component is deprecated. Use the "arcgis-direct-line-measurement-3d" component instead.')}};m("arcgis-direct-line-measurement-3d",u);m("arcgis-directline-measurement-3d",y);return{ArcgisDirectLineMeasurement3d:u,DeprecatedArcgisDirectLineMeasurement3d:y}},"analysis/DirectLineMeasurementAnalysis","applications/Components/analysisUtils","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils",a,d,e,i,j)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.0 */
4
- import b from"./326G6F7E.js";import"./56AQLE4X.js";import{d as r,e as v,f as l,g}from"./ZXRZF34O.js";import{A as a,D as w,O as c,T as m,i as o}from"./OTTU32NZ.js";export default $arcgis.t(([{watch:h},u,y,V,{a:t,b:s,f:p}])=>{var f=o`@layer{arcgis-scene{display:block;height:100%;.esri-view{height:100%;width:100%}}}`,b=s(y,{}),E=s(u,{}),n=class extends c{constructor(){super(),this._map=b(this),this.view=E(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.updating=this.view.updating,this.viewingMode=this.view.viewingMode,this.visibleArea=this.view.visibleArea,this.arcgisViewChange=a(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=a(),this.view.ui={components:["attribution"]}}static{this.properties={_map:16,view:32,allLayerViews:0,alphaCompositingEnabled:5,analyses:0,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,gamepad:32,graphics:0,ground:1,groundView:0,highlights:0,highlightOptions:0,interacting:32,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,performanceInfo:32,popup:0,popupDisabled:5,qualityProfile:1,ready:4,resolution:32,scale:9,spatialReference:0,stationary:32,suspended:7,theme:0,timeExtent:0,updating:4,viewingMode:1,viewpoint:0,visibleArea:0,zoom:9}}static{this.shadowRootOptions=w}static{this.styles=f}get camera(){return this.view.camera}set camera(i){r(this.camera,i)||(this.view.camera=i)}get cameraFov(){return this.view.camera?.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){return this.view.camera?.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){return this.view.camera?.position}set cameraPosition(i){let e=g(this.view.camera?.position,i);e&&this._mutateCamera(d=>{d.position=e})}get cameraTilt(){return this.view.camera?.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){let e=l(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get gamepad(){return this.view.input.gamepad}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){p(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get resolution(){return this.view.resolution}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){v(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,e){this.map.add(i,e)}async addLayers(i,e){this.map.addMany(i,e)}async addTable(i){this.map.tables.add(i)}async addTables(i,e){this.map.tables.addMany(i,e)}async closePopup(){this.view.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){await this.view.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}load(){let i=this;i.el.childElem=document.createElement("div"),i.el.append(i.el.childElem),this.view.container=i.el.childElem}loaded(){this.map||=this._map,this.manager.onLifecycle(()=>[h(()=>this.map,()=>this._map=this.map,{initial:!0,sync:!0}),h(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),h(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready})])}_mutateCamera(i){this.view.camera??=new V;let e=this.view.camera;i(e),r(this.view.camera,e)||(this.view.camera=e)}};m("arcgis-scene",n);return n},"core/reactiveUtils","views/SceneView","WebScene","Camera",b)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.0 */
4
- import{a as d,c as m}from"./SH5QUL2Z.js";import j from"./NDZKBR4F.js";import i from"./LSCO7OIR.js";import"./K5CTLTAS.js";import e from"./UJZ676MO.js";import{a as $}from"./5FYXGIQ4.js";import{a as p}from"./FO4LJYGB.js";import c from"./326G6F7E.js";import a from"./EBK2WHJG.js";import{e as M}from"./66M6PGUD.js";import"./56AQLE4X.js";import"./ZXRZF34O.js";import{A as g,D as w,O as f,P as v,R as b,T as O,i as h,j as y}from"./OTTU32NZ.js";export default $arcgis.t(([L,{getDefaultUnitForView:S},{property:o,subclass:V},{watch:_},{hasValidAreaResult:C},,,U,,A])=>{var E=h`@layer{arcgis-area-measurement-3d{display:block}.arcgis-area-measurement-3d{position:relative;padding:var(--esri-widget-padding);overflow-y:auto}}`,P=Object.defineProperty,R=Object.getOwnPropertyDescriptor,n=(e,t,s,r)=>{for(var a=r>1?void 0:r?R(t,s):t,l=e.length-1,u;l>=0;l--)(u=e[l])&&(a=(r?u(t,s,a):u(a))||a);return r&&a&&P(t,s,a),a},i=class extends A{constructor(e){super(e),this.supportedViewType="3d",this.unsupportedErrorMessage="The Area Measurement 3D component is only supported in 3D views."}initialize(){this.addHandles(_(()=>({analysis:this.analysis,unit:this.unit}),({analysis:e,unit:t})=>{e!=null&&(e.unit=t)},{sync:!0,initial:!0}))}get state(){return this.disabled||!this.ready?"disabled":this.operationState==="inactive"?this.analysis.valid?"measured":"ready":"measuring"}get displayState(){if(!this.supported)return"unsupported";switch(this.state){case"disabled":case"ready":return"ready";case"measuring":return this.analysis.geometry==null?"measuring":"measured";case"measured":return"measured"}}get measurement(){let{analysisView:e}=this,t=e?.result,s=t?.mode??"euclidean",r=e!=null&&C(e);return{mode:s,area:m(t?.area,r),perimeter:m(t?.perimeter,r)}}get unitOptions(){let e=this._userUnitOptions?.filter(t=>d.includes(t));return e&&e.length>0?e:d.slice()}set unitOptions(e){this._userUnitOptions=e}get unit(){let e=this._userUnit,t=this.unitOptions;if(e&&t.includes(e))return e;let s=this.defaultUnit;return s&&t.includes(s)?s:t[0]}set unit(e){this._userUnit=e}get defaultUnit(){return this.view?S(this.view):void 0}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new L}};n([o({readOnly:!0})],i.prototype,"state",1);n([o({readOnly:!0})],i.prototype,"displayState",1);n([o({readOnly:!0})],i.prototype,"measurement",1);n([o()],i.prototype,"unitOptions",1);n([o()],i.prototype,"_userUnitOptions",2);n([o()],i.prototype,"unit",1);n([o()],i.prototype,"_userUnit",2);n([o({readOnly:!0})],i.prototype,"defaultUnit",1);i=n([V("components.area-measurement-3d.AreaMeasurement3dViewModel")],i);var x="arcgis-area-measurement-3d",k={base:x},T=U(i),c=class extends f{constructor(){super(...arguments),this.viewModel=T(this),this.messages=$({blocking:!0}),this.autoDestroyDisabled=!1,this.icon="measure-area",this.position="bottom-left",this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=M()("analysis","state"),this.arcgisReady=g()}static{this.properties={analysis:32,autoDestroyDisabled:5,icon:3,label:1,position:1,referenceElement:1,state:3,unit:1,unitOptions:0}}static{this.shadowRootOptions=w}static{this.styles=E}get analysis(){return this.viewModel.analysis}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){this.viewModel.start()}render(){let{messages:t,unit:s,unitOptions:r,viewModel:a}=this,{measurement:l,state:u}=a;return y`<div aria-label=${t.componentLabel??b} class=${v({[k.base]:!0,[p.widget]:!0,[p.panel]:!0})} role=presentation><arcgis-measurement-content .state=${a.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[{title:t.area,measurement:l.area},{title:t.perimeterLength,measurement:l.perimeter}]}><arcgis-unit-select slot=settings .options=${r} .selectLabel=${t.unit} .value=${s} @arcgisUnitSelectChange=${D=>{this.unit=D.detail}}></arcgis-unit-select><calcite-button slot=actions .disabled=${u==="disabled"} @click=${()=>{this.viewModel.clear(),this.viewModel.start()}}>${t.newMeasurement}</calcite-button></arcgis-measurement-content></div>`}};O("arcgis-area-measurement-3d",c);return c},"analysis/AreaMeasurementAnalysis","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,e,i,j)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.0 */
4
- import a from"./LSCO7OIR.js";import{a as l,b as p}from"./K5CTLTAS.js";export default $arcgis.t(([{forceInteractive:V},g,{property:a,subclass:m},{ignoreAbortErrors:O},{watch:w,whenOnce:f},{a:_,b:d,c:u,d:y}])=>{var A=Object.defineProperty,b=Object.getOwnPropertyDescriptor,n=(t,s,e,o)=>{for(var r=o>1?void 0:o?b(s,e):s,h=t.length-1,c;h>=0;h--)(c=t[h])&&(r=(o?c(s,e,r):c(r))||r);return o&&r&&A(s,e,r),r},i=class extends g{constructor(t={}){super(t),this._operationState="inactive",this._loggedUnsupportedErrorMessage=!1,this._parentChangeFromReconnect=!1,this._startUserOperation=null;let s=t?.analysis;s!=null?this.analysis=s:(this._set("analysis",this.constructAnalysis()),this._set("isAnalysisOwner",!0)),t?.visible!=null&&(this.visible=t.visible)}normalizeCtorArgs(t){let{analysis:s,...e}=t;return e}initialize(){this.addHandles([w(()=>({readyAndNotSupported:this.view!=null&&this.view.ready&&!this.supported}),({readyAndNotSupported:t})=>{t&&!this._loggedUnsupportedErrorMessage&&console.error(this.unsupportedErrorMessage)},{sync:!0,initial:!0}),w(()=>this.analysis?.parent,t=>{!this._parentChangeFromReconnect&&t!==this.view&&this._set("isAnalysisOwner",!1);let s=!this._parentChangeFromReconnect;this._parentChangeFromReconnect=!1,s&&this._scheduleViewReconnect()},{sync:!0}),w(()=>({view:this.view,ready:!!this.view?.ready,supported:this.supported}),({view:t},s)=>{let e=s?.view;t!==e&&(this._startUserOperation=l(this._startUserOperation),this._disconnectFromView(e)),this._scheduleViewReconnect()},{sync:!0,initial:!0})])}destroy(){this._reconnectViewTask=l(this._reconnectViewTask),this._startUserOperation=l(this._startUserOperation),this._analysisView!=null&&(this._analysisView.visible=void 0),this._disconnectFromView(this.view),this._set("view",null),this.isAnalysisOwner&&this.analysis?.destroy()}get supported(){return this.view==null||this.view.type===this.supportedViewType}set visible(t){this._set("visible",t),this._analysisView!=null&&(this._analysisView.visible=t)}get active(){return this._startUserOperation?.state===2}get disabled(){return this.view==null||!this.view.ready||!this.supported}set analysis(t){t!==this._get("analysis")&&(this._startUserOperation=l(this._startUserOperation),this._disconnectFromView(this.view),this._setExternalAnalysis(t),this._scheduleViewReconnect())}get analysisView(){return this._analysisView}get ready(){return this._analysisView!=null&&!this.connectingToView}get connectingToView(){return this._reconnectViewTask!=null}get isAnalysisOwner(){return this._get("isAnalysisOwner")}get operationState(){return this._operationState}clear(){this.clearAnalysis(),this._startUserOperation=l(this._startUserOperation)}async start(t){if(!this.visible){console.warn("Cannot start analysis when not visible");return}let s={task:null,abort:null,state:0},e=y(async o=>{if(s.state=1,await f(()=>this.ready,o),s.state=2,this._analysisView==null||this.view==null)return;this._operationState="active";let r=t?.({signal:o})??this.place({signal:o});await O(r)});return e.promise.finally(()=>{(this._startUserOperation===s||this._startUserOperation==null)&&(this._operationState="inactive")}),s.task=e,s.abort=()=>e.abort(),this._startUserOperation=s,await e.promise}async startNewAnalysis(){this.clear(),await this.start()}async continue(){await this.start()}stop(){this._startUserOperation=l(this._startUserOperation)}onConnectToAnalysisView(t){}onDisconnectFromAnalysisView(){}_scheduleViewReconnect(){this._reconnectViewTask=l(this._reconnectViewTask);let t=y(async s=>{try{await this._reconnectView(s)}catch(e){if(_(s),!u(e)){console.warn("Failed to use analysis in view model",e);return}throw e}finally{t===this._reconnectViewTask&&(this._reconnectViewTask=void 0)}});this._reconnectViewTask=t}async _reconnectView(t){let{view:s}=this,e=s!=null&&s.ready&&this.supported,o=this.analysis;if(this._startUserOperation=v(this._startUserOperation),this._disconnectFromView(s),!e||s==null||o==null)return;if(this.isAnalysisOwner){if(o.parent!=null){console.error("expected owned analysis to have null parent when connecting to view");return}this._parentChangeFromReconnect=!0,s.analyses.add(o)}let r=await s.whenAnalysisView(o);if(this._analysisView=r,d(t)){this._startUserOperation=v(this._startUserOperation);return}r.visible=this.visible,this._forceInteractiveHandle=V(r),this.addHandles(this._forceInteractiveHandle),this.onConnectToAnalysisView(r)}_disconnectFromView(t){t!=null&&this.isAnalysisOwner&&t.analyses.includes(this.analysis)&&(this._parentChangeFromReconnect=!0,this.analysis.clear(),t.analyses.remove(this.analysis)),this.onDisconnectFromAnalysisView(),this._forceInteractiveHandle=p(this._forceInteractiveHandle),this._analysisView=void 0}_setExternalAnalysis(t){this._analysisView!=null&&!this.isAnalysisOwner&&(this._analysisView.visible=void 0,this._forceInteractiveHandle=p(this._forceInteractiveHandle)),this._analysisView=void 0,this._set("isAnalysisOwner",!1),this._set("analysis",t),this._parentChangeFromReconnect=!1}};n([a()],i.prototype,"supported",1);n([a()],i.prototype,"view",2);n([a({type:Boolean,value:!0})],i.prototype,"visible",1);n([a()],i.prototype,"active",1);n([a()],i.prototype,"disabled",1);n([a()],i.prototype,"analysis",1);n([a()],i.prototype,"_analysisView",2);n([a()],i.prototype,"analysisView",1);n([a()],i.prototype,"ready",1);n([a()],i.prototype,"connectingToView",1);n([a({readOnly:!0})],i.prototype,"isAnalysisOwner",1);n([a()],i.prototype,"_reconnectViewTask",2);n([a()],i.prototype,"_forceInteractiveHandle",2);n([a()],i.prototype,"_operationState",2);n([a()],i.prototype,"operationState",1);i=n([m("esri.components.support.AnalysisViewModel")],i);function v(t){return t!=null&&t.state>=2?(t.abort(),null):t}return i},"applications/Components/analysisUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","core/reactiveUtils",a)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.0 */
4
- import e from"./NDZKBR4F.js";import d from"./LSCO7OIR.js";import"./K5CTLTAS.js";import c from"./UJZ676MO.js";import{a as $}from"./5FYXGIQ4.js";import{a as p}from"./FO4LJYGB.js";import b from"./326G6F7E.js";import a from"./EBK2WHJG.js";import{e as w}from"./66M6PGUD.js";import"./56AQLE4X.js";import"./ZXRZF34O.js";import{A as m,D as f,O as v,P as t,T as _,i as y,j as l}from"./OTTU32NZ.js";export default $arcgis.t(([A,{property:O,subclass:C},,,b,,x])=>{var k=y`@layer{arcgis-line-of-sight{display:block}.arcgis-line-of-sight__container{display:flex;position:relative;flex-flow:column;gap:var(--calcite-spacing-md);padding:var(--esri-widget-padding);overflow-y:auto}.arcgis-line-of-sight__error{color:var(--calcite-color-status-danger)}.arcgis-line-of-sight__hint{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.arcgis-line-of-sight__error,.arcgis-line-of-sight__hint{overflow:hidden;animation:arcgis-line-of-sight-fade-in .25s ease-in-out;p{margin:0;padding:0}}.arcgis-line-of-sight__actions{display:flex;flex-flow:column;gap:var(--calcite-spacing-xxs);justify-content:center}@keyframes arcgis-line-of-sight-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}}`,r="arcgis-line-of-sight",n={base:r,actions:`${r}__actions`,container:`${r}__container`,error:`${r}__error`,hint:`${r}__hint`,hintText:`${r}__hint-text`,newAnalysisButton:`${r}__new-analysis-button`},D=Object.defineProperty,S=Object.getOwnPropertyDescriptor,M=(e,s,a,o)=>{for(var i=o>1?void 0:o?S(s,a):s,d=e.length-1,h;d>=0;d--)(h=e[d])&&(i=(o?h(s,a,i):h(i))||i);return o&&i&&D(s,a,i),i},c=class extends x{constructor(e){super(e),this.supportedViewType="3d",this.unsupportedErrorMessage="The Line Of Sight component is only supported in 3D views."}get state(){return this.disabled||!this.ready?"disabled":this.operationState==="active"?"creating":this.analysis.valid?"created":"ready"}constructAnalysis(){return new A}clearAnalysis(){this.analysis.observer=null,this.analysis.targets.removeAll()}async place(e){return await this.analysisView?.place(e)}};M([O({readOnly:!0})],c.prototype,"state",1);c=M([C("esri.components.LineOfSight.LineOfSightViewModel")],c);var L=b(c),u=class extends v{constructor(){super(...arguments),this.viewModel=L(this),this._messages=$({blocking:!0}),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.icon="line-of-sight",this.position="bottom-left",this.arcgisPropertyChange=w()("analysis","state"),this.arcgisReady=m()}static{this.properties={analysis:32,autoDestroyDisabled:5,icon:3,label:1,messageOverrides:0,position:1,referenceElement:1,state:32,_supported:16}}static{this.shadowRootOptions=f}static{this.styles=k}get analysis(){return this.viewModel.analysis}get state(){return this.viewModel.state}get _supported(){return this.view==null||this.view.type==="3d"}async clear(){this.viewModel.clear()}async continue(){this.viewModel.start()}async destroy(){await this.manager.destroy()}async start(){this.viewModel.startNewAnalysis()}async stop(){this.viewModel.stop()}render(){return l`<div class=${t({[n.base]:!0,[p.widget]:!0,[p.panel]:!0})} role=presentation>${this._renderContainerNode()}</div>`}_renderContainerNode(){if(!this._supported)return l`<div class=${t(n.error)}><p>${this._messages.unsupported}</p></div>`;let s=this.viewModel.state,a=s==="creating";return l`<div class=${t(n.container)}>${a?l`<div class=${t(n.hint)}><p class=${t(n.hintText)}>${this._messages.hint}</p></div>`:null}<div class=${t(n.actions)}>${s==="creating"?g({onClick:()=>{this.stop()},children:this._messages.done}):null}${s==="created"?g({onClick:()=>{this.continue()},children:this._messages.continueAnalysis}):null}${g({className:n.newAnalysisButton,onClick:()=>{this.start()},primary:!0,disabled:s==="disabled",children:this._messages.newAnalysis})}</div></div>`}};function g({className:e,onClick:s,primary:a,disabled:o,children:i}){return l`<calcite-button .appearance=${a?"solid":"outline-fill"} class=${t(e)} .disabled=${o} @click=${s}>${i}</calcite-button>`}_("arcgis-line-of-sight",u);return u},"analysis/LineOfSightAnalysis","core/accessorSupport/decorators",a,b,c,d,e)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.0 */
4
- import h from"./NDZKBR4F.js";import e from"./LSCO7OIR.js";import"./K5CTLTAS.js";import{a as C}from"./V6BDP64E.js";import"./OUGBZ2II.js";import d from"./UJZ676MO.js";import{a as S}from"./5FYXGIQ4.js";import{a as g}from"./FO4LJYGB.js";import c from"./326G6F7E.js";import a from"./EBK2WHJG.js";import{e as M}from"./66M6PGUD.js";import"./56AQLE4X.js";import"./ZXRZF34O.js";import{A as f,D as $,O as L,P as s,R as b,T as w,i as v,j as l}from"./OTTU32NZ.js";export default $arcgis.t(([V,{property:d,subclass:B},{ignoreAbortErrors:D},{watch:H},,,k,,E])=>{var O=v`@layer{arcgis-slice{display:block}.arcgis-slice__container{display:flex;padding:var(--esri-widget-padding-y) var(--esri-widget-padding-x);overflow-y:auto;--layer-item-background: var(--calcite-color-foreground-2)}.arcgis-slice__error{color:var(--calcite-color-status-danger)}.arcgis-slice__container,.arcgis-slice__hint{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.arcgis-slice__error,.arcgis-slice__hint{overflow:hidden;animation:arcgis-slice-fade-in .25s ease-in-out}.arcgis-slice__error p,.arcgis-slice__hint p{margin:0;padding:0}.arcgis-slice__hint:not(:has(*)){display:none}.arcgis-slice__layer-item{--calcite-color-foreground-2: var(--layer-item-background);--calcite-color-foreground-1: var(--layer-item-background)}.arcgis-slice__actions{display:flex;flex-flow:column;gap:var(--calcite-spacing-xxs);justify-content:center}.arcgis-slice__actions:not(:has(*)){display:none}@keyframes arcgis-slice-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}}`,I=Object.defineProperty,P=Object.getOwnPropertyDescriptor,o=(e,i,t,u)=>{for(var c=u>1?void 0:u?P(i,t):i,y=e.length-1,h;y>=0;y--)(h=e[y])&&(c=(u?h(i,t,c):h(c))||c);return u&&c&&I(i,t,c),c},x=new Set,n=class extends E{constructor(e){super(e),this.supportedViewType="3d",this.unsupportedErrorMessage="SliceViewModel is only supported in 3D views.",x.add(this)}async pickLayerToExclude(){let e=this.analysisView;if(e){let i=super.start(t=>e.pickLayerToExclude(t));this._excludingLayers=i,i.finally(()=>{this._excludingLayers===i&&(this._excludingLayers=void 0)}),await i.catch()}}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.shape=null}destroy(){x.delete(this)}get state(){return this.disabled||!this.ready?"disabled":this.operationState==="active"?"slicing":this.layersMode==="exclude"?"excludingLayer":this.analysis.valid?"sliced":"ready"}get shape(){return this.analysis.shape}set shape(e){this.analysis.shape=e}get tiltEnabled(){return this.analysis.tiltEnabled}set tiltEnabled(e){this.analysis.tiltEnabled=e}get layersMode(){return this._excludingLayers?"exclude":"none"}get excludedLayers(){return this.analysis.excludedLayers}set excludedLayers(e){this.analysis.excludedLayers=e}get excludeGroundSurface(){return this.analysis.excludeGroundSurface}set excludeGroundSurface(e){this.analysis.excludeGroundSurface=e}async start(){x.forEach(e=>{e.view===this.view&&e!==this&&e.clear()}),this.clear(),await super.start()}onConnectToAnalysisView(e){e.active=!0}constructAnalysis(){return new V}};o([d()],n.prototype,"_excludingLayers",2);o([d({readOnly:!0})],n.prototype,"state",1);o([d()],n.prototype,"shape",1);o([d()],n.prototype,"tiltEnabled",1);o([d()],n.prototype,"layersMode",1);o([d()],n.prototype,"excludedLayers",1);o([d()],n.prototype,"excludeGroundSurface",1);n=o([B("esri.components.Slice.SliceViewModel")],n);var r="arcgis-slice",a={base:r,actions:`${r}__actions`,cancelButton:`${r}__cancel-button`,container:`${r}__container`,error:`${r}__error`,excludeButton:`${r}__exclude-button`,hint:`${r}__hint`,hintText:`${r}__hint-text`,layerItem:`${r}__layer-item`,layerList:`${r}__layer-list`,layerListHeading:`${r}__layer-list-title`,newSliceButton:`${r}__clear-button`},j=k(n),m=class extends L{constructor(){super(...arguments),this.viewModel=j(this),this._messages=S(),this._onNewSliceClick=()=>{D(this.viewModel.start())},this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.excludeGroundSurface=this.viewModel.excludeGroundSurface,this.excludedLayers=this.viewModel.excludedLayers,this.headingLevel=3,this.icon="slice",this.position="bottom-left",this.shape=this.viewModel.shape,this.state=this.viewModel.state,this.tiltEnabled=this.viewModel.tiltEnabled,this.arcgisPropertyChange=M()("analysis","state"),this.arcgisReady=f()}static{this.properties={_hasVoxelLayers:16,analysis:0,autoDestroyDisabled:5,excludeGroundSurface:5,excludedLayers:0,headingLevel:9,icon:3,label:1,messageOverrides:0,position:1,referenceElement:1,shape:0,state:3,tiltEnabled:5}}static{this.shadowRootOptions=$}static{this.styles=O}get _hasVoxelLayers(){let i=this.viewModel?.view;return i!=null?i.allLayerViews.some(t=>t.type==="voxel-3d"):!1}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){this.viewModel.start()}load(){this.manager.onLifecycle(()=>[H(()=>this._renderContainerNode(),()=>this.requestUpdate())])}render(){return l`<div class=${s({[a.base]:!0,[g.widget]:!0,[g.panel]:!0})} role=presentation>${this._renderContainerNode()}</div>`}_renderContainerNode(){let i=this._messages,{state:t,visible:u,supported:c}=this.viewModel,y=t==="slicing"||t==="excludingLayer";if(!u||!c)return null;c||l`<div class=${s(a.container)}><div class=${s(a.error)}><p>${this._messages.unsupported}</p></div></div>`;let{excludedLayers:h}=this.viewModel,_=this.excludeGroundSurface,T=h.length>0||_,p=t==="disabled";return l`<div class=${s(a.container)}><div class=${s(a.hint)}>${t==="excludingLayer"?l`<p class=${s(a.hintText)}>${i.excludeHint}</p>`:null}${t==="slicing"?l`<p class=${s(a.hintText)}>${this._hasVoxelLayers?i.voxelHint:i.hint}</p><p class=${s(a.hintText)}>${i.verticalHint}</p>`:null}</div>${!y&&T?l`<div class=${s(a.layerList)}>${C({class:a.layerListHeading,level:this.headingLevel,children:i.excludedLayers})}${N({layers:h.toArray(),excludeGroundSurface:_,onLayerClick:A=>{this.excludedLayers.remove(A)},onGroundClick:()=>{this.excludeGroundSurface=!1},listLabel:i.excludedLayers,layerActionLabel:i.includeLayer,groundItemTitle:i.ground})}</div>`:null}<div class=${s(a.actions)}>${y?null:l`<calcite-button class=${s(a.newSliceButton)} .disabled=${p} @click=${this._onNewSliceClick}>${i.newSlice}</calcite-button>`}${t==="sliced"?l`<calcite-button appearance=outline-fill class=${s(a.excludeButton)} .disabled=${p} @click=${()=>this.viewModel.pickLayerToExclude()}>${i.excludeLayer}</calcite-button>`:null}${t==="excludingLayer"?l`<calcite-button appearance=outline-fill class=${s(a.cancelButton)} .disabled=${p} @click=${()=>{this.viewModel.layersMode==="exclude"&&this.viewModel.stop()}}>${i.cancel}</calcite-button>`:null}</div></div>`}};function G(e){return l`<calcite-list-item class=${s(a.layerItem)} data-testid=${`list-item-${e.uid}`} .label=${e.title??""}><calcite-action icon=x @click=${e.onClick} scale=s slot=actions-end .text=${e.actionLabel} title=${e.actionLabel??b}></calcite-action></calcite-list-item>`}function N(e){let i=e.layers.map(t=>G({uid:t.uid,title:t.title??"",onClick:()=>e.onLayerClick(t),actionLabel:e.layerActionLabel}));return e.excludeGroundSurface&&i.push(G({uid:"ground",title:e.groundItemTitle,onClick:e.onGroundClick,actionLabel:e.layerActionLabel})),l`<calcite-list .label=${e.listLabel} selection-mode=none>${i}</calcite-list>`}w("arcgis-slice",m);return m},"analysis/SliceAnalysis","core/accessorSupport/decorators","core/promiseUtils","core/reactiveUtils",a,c,d,e,h)