@arcgis/map-components 4.33.0-next.137 → 4.33.0-next.138

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 (284) hide show
  1. package/dist/cdn/{Y2ZWCSMD.js → 2ICV3ZP6.js} +2 -2
  2. package/dist/cdn/{YWWSIRGF.js → 2RYHZPSQ.js} +2 -2
  3. package/dist/cdn/{SN4KOFE3.js → 2TBOD7GJ.js} +2 -2
  4. package/dist/cdn/{KSKJDUME.js → 3F4Z4TXU.js} +2 -2
  5. package/dist/cdn/3HNXL7RL.js +4 -0
  6. package/dist/cdn/{RDUZPE7Y.js → 3MPFDWBN.js} +2 -2
  7. package/dist/cdn/{5VV7ADX2.js → 3PXEJNET.js} +2 -2
  8. package/dist/cdn/{GCOPPRBT.js → 3RYCWP6E.js} +2 -2
  9. package/dist/cdn/{NGHIJ3DC.js → 4KXQH47P.js} +2 -2
  10. package/dist/cdn/{BB56R3VK.js → 4NU2LEDY.js} +2 -2
  11. package/dist/cdn/{WRU5KHFD.js → 54A6QQ5P.js} +2 -2
  12. package/dist/cdn/{3X2SF33Y.js → 5DLF2FRD.js} +2 -2
  13. package/dist/cdn/{VIH4QGPR.js → 5J7OJ4Z6.js} +2 -2
  14. package/dist/cdn/{JQZHJJQU.js → 5KYPK2BL.js} +2 -2
  15. package/dist/cdn/{7HRPGAD5.js → 5PFB6EGX.js} +2 -2
  16. package/dist/cdn/{UHDYIYTO.js → 6Q5DEPLW.js} +2 -2
  17. package/dist/cdn/{HOKANAS6.js → 6VOXDT2D.js} +2 -2
  18. package/dist/cdn/{JJMYT26S.js → 73CNLONW.js} +2 -2
  19. package/dist/cdn/{CSUILAJU.js → 7C6JQ4XM.js} +2 -2
  20. package/dist/cdn/{63PJIGRN.js → 7FFIVQF6.js} +2 -2
  21. package/dist/cdn/{GC24UXEV.js → 7Q2OQGBB.js} +2 -2
  22. package/dist/cdn/{JNS2KI7N.js → A4ZNGLT2.js} +2 -2
  23. package/dist/cdn/{HWHSDZTN.js → A575HHDP.js} +2 -2
  24. package/dist/cdn/A5AIKEDX.js +4 -0
  25. package/dist/cdn/{JOBOKXGE.js → AIYUDCDQ.js} +2 -2
  26. package/dist/cdn/AV6YUXI6.js +4 -0
  27. package/dist/cdn/BNCLTRYH.js +4 -0
  28. package/dist/cdn/{RNC2RI56.js → BQYQ3LTP.js} +2 -2
  29. package/dist/cdn/{T2LDYV3D.js → BZ5KBRTH.js} +2 -2
  30. package/dist/cdn/{WES66GRD.js → C677Z3XS.js} +2 -2
  31. package/dist/cdn/C722QWYO.js +4 -0
  32. package/dist/cdn/{RTDORBQ6.js → CUDJHVRU.js} +2 -2
  33. package/dist/cdn/{SJ2TC3QB.js → CV2IWESX.js} +2 -2
  34. package/dist/cdn/{YN3LDRSF.js → D7MSIIVJ.js} +2 -2
  35. package/dist/cdn/{5LW4P6XZ.js → DJAPPGGB.js} +2 -2
  36. package/dist/cdn/{5BCHGYG7.js → EDORIH5N.js} +2 -2
  37. package/dist/cdn/EL4W5FAJ.js +4 -0
  38. package/dist/cdn/{ATKZUZI2.js → FOVCH7VW.js} +2 -2
  39. package/dist/cdn/{5WBV6YFC.js → FY5ET4WM.js} +2 -2
  40. package/dist/cdn/{HRJOSIMY.js → G7FA2SZX.js} +2 -2
  41. package/dist/cdn/{FV4L6I7H.js → GDRUHH5B.js} +2 -2
  42. package/dist/cdn/{6KRGSMB4.js → GEVMX2UO.js} +2 -2
  43. package/dist/cdn/{YQEPT3W4.js → GURMXFUT.js} +2 -2
  44. package/dist/cdn/{BD5AHAB3.js → GY5GZLXV.js} +2 -2
  45. package/dist/cdn/{5ZFS6JQ5.js → HBVJIRGN.js} +2 -2
  46. package/dist/cdn/{2JYK2CB3.js → HCS23COA.js} +2 -2
  47. package/dist/cdn/{4D3HAR5N.js → HMR3LZEC.js} +2 -2
  48. package/dist/cdn/{UAYKV5JC.js → HT7HVKXJ.js} +2 -2
  49. package/dist/cdn/{ULXMI4MQ.js → HUYGZMDR.js} +2 -2
  50. package/dist/cdn/HXOPYRM2.js +4 -0
  51. package/dist/cdn/{QLBYFGRC.js → IH32IEWT.js} +2 -2
  52. package/dist/cdn/{3DOZMTZY.js → JGCDGP2X.js} +2 -2
  53. package/dist/cdn/JR37HKLZ.js +4 -0
  54. package/dist/cdn/{WNWGJCTZ.js → JYTTN5LU.js} +2 -2
  55. package/dist/cdn/{K6GCCQVK.js → KEI26URD.js} +1 -1
  56. package/dist/cdn/{3MDEYSMH.js → KM5OVC7O.js} +2 -2
  57. package/dist/cdn/{CUAGGML4.js → L5J24G5M.js} +2 -2
  58. package/dist/cdn/L66H2ALJ.js +4 -0
  59. package/dist/cdn/{OQRY5XKR.js → LIQITLFR.js} +2 -2
  60. package/dist/cdn/{WFAFO74Y.js → LNOMQKUY.js} +2 -2
  61. package/dist/cdn/{6I3SCK5W.js → LQEPXN57.js} +2 -2
  62. package/dist/cdn/{L2JGREVD.js → LT4K76AI.js} +2 -2
  63. package/dist/cdn/LUWRRPTC.js +4 -0
  64. package/dist/cdn/{DCF7KPFM.js → MEUUSKT3.js} +2 -2
  65. package/dist/cdn/{P3IHJRIN.js → MNSXEFSD.js} +2 -2
  66. package/dist/cdn/{6HE4J7DX.js → MUPWF5M2.js} +2 -2
  67. package/dist/cdn/{BOFYWT7T.js → N36AOA4W.js} +2 -2
  68. package/dist/cdn/{PWDTZOFW.js → N4JEEG6U.js} +2 -2
  69. package/dist/cdn/{KEX5SMJ4.js → NA7YRW3M.js} +2 -2
  70. package/dist/cdn/{T2FLV2R6.js → NHSTTG5C.js} +1 -1
  71. package/dist/cdn/{XWW3ZCHK.js → NIB3ARH5.js} +2 -2
  72. package/dist/cdn/{2WS23IDT.js → O7YEMKLH.js} +2 -2
  73. package/dist/cdn/{EDDNE2YV.js → P2ORI2MU.js} +2 -2
  74. package/dist/cdn/{AGJQRXUY.js → P4OU64OH.js} +2 -2
  75. package/dist/cdn/{YQNF42PE.js → PRZRGIJO.js} +2 -2
  76. package/dist/cdn/{LGADCTY4.js → Q2G3EZNU.js} +2 -2
  77. package/dist/cdn/{EBIXSEM3.js → Q3DX3LMR.js} +2 -2
  78. package/dist/cdn/{6RDVRAGB.js → QBPIXB5K.js} +2 -2
  79. package/dist/cdn/{DBYBQ4MS.js → QINX3JDV.js} +2 -2
  80. package/dist/cdn/{7ZQFUYMU.js → QXPX2NPW.js} +2 -2
  81. package/dist/cdn/{SE4EPVYX.js → RN2REPX3.js} +2 -2
  82. package/dist/cdn/{A2JY4S6Y.js → RPQOQQSL.js} +2 -2
  83. package/dist/cdn/{VD4DEVXX.js → RSXOP3R5.js} +1 -1
  84. package/dist/cdn/{33TPQFND.js → S7S6ARM2.js} +2 -2
  85. package/dist/cdn/{IXLJCXGC.js → SNF6PQDA.js} +2 -2
  86. package/dist/cdn/{YCIQTPHF.js → SPPQB6HJ.js} +2 -2
  87. package/dist/cdn/{MTF4QZ3G.js → ST2CRGPM.js} +2 -2
  88. package/dist/cdn/{TGV2K4EC.js → SUEDRTNE.js} +2 -2
  89. package/dist/cdn/{5JQTIBKQ.js → SW63GGTX.js} +2 -2
  90. package/dist/cdn/{4SE24INE.js → T5JY4NUR.js} +1 -1
  91. package/dist/cdn/{FCRXZRF7.js → TBKYTCWV.js} +2 -2
  92. package/dist/cdn/{SLR4TFQ3.js → TGOTZ7AI.js} +2 -2
  93. package/dist/cdn/{SDHDA4VU.js → TLXRUB2I.js} +2 -2
  94. package/dist/cdn/{HBEZJNIF.js → TN3WLCHJ.js} +1 -1
  95. package/dist/cdn/{ISJAW7ZJ.js → U2DRGZMR.js} +2 -2
  96. package/dist/cdn/{ROFUMAYO.js → UERCPIN5.js} +2 -2
  97. package/dist/cdn/{N2WMQEE4.js → UFB7UU6E.js} +1 -1
  98. package/dist/cdn/{3EZB7HPE.js → UHZ772ND.js} +2 -2
  99. package/dist/cdn/UT2TU4IE.js +4 -0
  100. package/dist/cdn/{YJAFSXBF.js → UTX6MR4S.js} +2 -2
  101. package/dist/cdn/{I3JQ2C46.js → V7RU2UNT.js} +2 -2
  102. package/dist/cdn/{R56GIOIT.js → VBIWNOWT.js} +2 -2
  103. package/dist/cdn/{FSQWGAQZ.js → VCEXQIAL.js} +2 -2
  104. package/dist/cdn/{4KDIHAZ2.js → VKAIYWB6.js} +2 -2
  105. package/dist/cdn/{V4RREMPI.js → VUGWIA5S.js} +2 -2
  106. package/dist/cdn/{D542S3PL.js → VXE3QTOJ.js} +2 -2
  107. package/dist/cdn/{IVDO3HEB.js → WTLPSGCB.js} +2 -2
  108. package/dist/cdn/{YKGZ2YLZ.js → XDDWEQM3.js} +2 -2
  109. package/dist/cdn/XGAGBN4O.js +4 -0
  110. package/dist/cdn/{KMDCE5JO.js → XJG23KZB.js} +2 -2
  111. package/dist/cdn/{QBWUU6DV.js → XQWUSMGI.js} +2 -2
  112. package/dist/cdn/{C55WACHK.js → XTNP3TJF.js} +2 -2
  113. package/dist/cdn/{OVQESQOK.js → YB6ZBOCX.js} +2 -2
  114. package/dist/cdn/{YP7UOQCO.js → YCQPBKUP.js} +2 -2
  115. package/dist/cdn/{KAGROI4I.js → YXY5RVBB.js} +2 -2
  116. package/dist/cdn/{4HIG2QS5.js → ZBFPM6CM.js} +2 -2
  117. package/dist/cdn/{LMLLRBWA.js → ZD62VL5V.js} +2 -2
  118. package/dist/cdn/ZEX2ON7O.js +4 -0
  119. package/dist/cdn/{HDGUZQRD.js → ZO4WI4NO.js} +2 -2
  120. package/dist/cdn/index.js +2 -2
  121. package/dist/cdn/main.css +1 -1
  122. package/dist/chunks/AnalysisViewModel.js +66 -77
  123. package/dist/chunks/async-utils.js +2 -2
  124. package/dist/chunks/basemap-gallery-resources.js +1 -1
  125. package/dist/chunks/component-utils.js +1 -1
  126. package/dist/chunks/createCloseEvent.js +1 -1
  127. package/dist/chunks/globalCss.js +1 -1
  128. package/dist/chunks/heading.js +1 -1
  129. package/dist/chunks/layer-list.js +1 -1
  130. package/dist/chunks/legacyIcon.js +1 -1
  131. package/dist/chunks/maybe.js +5 -5
  132. package/dist/chunks/measurementUtils.js +50 -0
  133. package/dist/chunks/runtime.js +1 -1
  134. package/dist/chunks/useHandles.js +1 -1
  135. package/dist/chunks/useT9n.js +1 -1
  136. package/dist/chunks/useView.js +1 -1
  137. package/dist/chunks/useViewModel.js +1 -1
  138. package/dist/chunks/useWidget.js +1 -1
  139. package/dist/chunks/utils.js +1 -1
  140. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  141. package/dist/components/arcgis-area-measurement-3d/AreaMeasurement3dViewModel.d.ts +45 -0
  142. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +17 -56
  143. package/dist/components/arcgis-area-measurement-3d/customElement.js +155 -17
  144. package/dist/components/arcgis-area-measurement-3d/index.d.ts +3 -0
  145. package/dist/components/arcgis-area-measurement-3d/index.js +3 -0
  146. package/dist/components/arcgis-attachments/customElement.js +1 -1
  147. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  148. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  149. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  150. package/dist/components/arcgis-basemap-toggle/css.d.ts +1 -0
  151. package/dist/components/arcgis-basemap-toggle/customElement.js +13 -12
  152. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  153. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  154. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  155. package/dist/components/arcgis-compass/customElement.js +1 -1
  156. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  157. package/dist/components/arcgis-daylight/customElement.js +1 -1
  158. package/dist/components/arcgis-direct-line-measurement-3d/DirectLineMeasurement3dViewModel.d.ts +47 -0
  159. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +68 -0
  160. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +194 -0
  161. package/dist/components/arcgis-direct-line-measurement-3d/index.d.ts +4 -0
  162. package/dist/components/arcgis-direct-line-measurement-3d/index.js +4 -0
  163. package/dist/components/arcgis-directional-pad/customElement.js +34 -33
  164. package/dist/components/arcgis-directional-pad/index.d.ts +1 -1
  165. package/dist/components/arcgis-directional-pad/index.js +1 -1
  166. package/dist/components/arcgis-directions/customElement.js +1 -1
  167. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  168. package/dist/components/arcgis-editor/customElement.d.ts +1 -1
  169. package/dist/components/arcgis-editor/customElement.js +1 -1
  170. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  171. package/dist/components/arcgis-expand/customElement.js +1 -1
  172. package/dist/components/arcgis-feature/customElement.js +1 -1
  173. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  174. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  175. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  176. package/dist/components/arcgis-features/customElement.js +1 -1
  177. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  178. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  179. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  180. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  181. package/dist/components/arcgis-home/customElement.js +1 -1
  182. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  183. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  184. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  185. package/dist/components/arcgis-legend/customElement.js +1 -1
  186. package/dist/components/arcgis-line-of-sight/LineOfSightViewModel.d.ts +1 -1
  187. package/dist/components/arcgis-line-of-sight/customElement.d.ts +3 -3
  188. package/dist/components/arcgis-line-of-sight/customElement.js +16 -16
  189. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  190. package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +9 -2
  191. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +33 -25
  192. package/dist/components/arcgis-link-chart-layout-switcher/index.d.ts +3 -0
  193. package/dist/components/arcgis-link-chart-layout-switcher/index.js +3 -0
  194. package/dist/components/arcgis-locate/customElement.js +1 -1
  195. package/dist/components/arcgis-map/customElement.js +1 -1
  196. package/dist/components/arcgis-measurement/customElement.d.ts +1 -1
  197. package/dist/components/arcgis-measurement/customElement.js +1 -1
  198. package/dist/components/arcgis-measurement-content/customElement.d.ts +20 -0
  199. package/dist/components/arcgis-measurement-content/customElement.js +59 -0
  200. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  201. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  202. package/dist/components/arcgis-placement/customElement.js +1 -1
  203. package/dist/components/arcgis-print/customElement.js +1 -1
  204. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  205. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  206. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  207. package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
  208. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  209. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  210. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  211. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  212. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  213. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  214. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  215. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  216. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  217. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  218. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  219. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  220. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  221. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  222. package/dist/components/arcgis-scene/customElement.js +1 -1
  223. package/dist/components/arcgis-search/customElement.js +37 -37
  224. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  225. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  226. package/dist/components/arcgis-sketch/customElement.js +1 -1
  227. package/dist/components/arcgis-slice/customElement.js +1 -1
  228. package/dist/components/arcgis-slider/customElement.js +1 -1
  229. package/dist/components/arcgis-swipe/customElement.js +1 -1
  230. package/dist/components/arcgis-table-list/customElement.js +1 -1
  231. package/dist/components/arcgis-time-slider/customElement.js +14 -8
  232. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  233. package/dist/components/arcgis-track/customElement.js +1 -1
  234. package/dist/components/arcgis-unit-select/customElement.d.ts +3 -4
  235. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  236. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  237. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  238. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  239. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  240. package/dist/components/arcgis-version-management/customElement.js +1 -1
  241. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  242. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  243. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  244. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  245. package/dist/components/arcgis-video/customElement.js +1 -1
  246. package/dist/components/arcgis-video-player/customElement.js +1 -1
  247. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  248. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  249. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  250. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  251. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  252. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  253. package/dist/components/arcgis-weather/customElement.js +1 -1
  254. package/dist/components/arcgis-zoom/customElement.js +1 -1
  255. package/dist/docs/api.json +929 -221
  256. package/dist/docs/docs.json +802 -251
  257. package/dist/docs/vscode.html-custom-data.json +155 -16
  258. package/dist/docs/web-types.json +220 -59
  259. package/dist/index.d.ts +23 -3
  260. package/dist/index.js +1 -1
  261. package/dist/loader.js +6 -4
  262. package/dist/support/AnalysisViewModel.d.ts +26 -39
  263. package/dist/support/maybe.d.ts +2 -2
  264. package/dist/support/measurementUtils.d.ts +19 -0
  265. package/dist/types/lumina.d.ts +11 -4
  266. package/dist/types/preact.d.ts +12 -4
  267. package/dist/types/react.d.ts +13 -4
  268. package/dist/types/stencil.d.ts +11 -4
  269. package/package.json +3 -4
  270. package/dist/cdn/3PRGRMUA.js +0 -4
  271. package/dist/cdn/BK5DJXDM.js +0 -4
  272. package/dist/cdn/CAVMJDKS.js +0 -4
  273. package/dist/cdn/G36X5EQG.js +0 -4
  274. package/dist/cdn/LY6SOGJ3.js +0 -4
  275. package/dist/cdn/MCXTPYW3.js +0 -4
  276. package/dist/cdn/OUPCEZCW.js +0 -4
  277. package/dist/cdn/VQO6TJFP.js +0 -4
  278. package/dist/cdn/VYNXW5CE.js +0 -4
  279. package/dist/cdn/XQUJNALV.js +0 -4
  280. package/dist/cdn/YHGMKVKH.js +0 -4
  281. package/dist/components/arcgis-directline-measurement-3d/customElement.d.ts +0 -98
  282. package/dist/components/arcgis-directline-measurement-3d/customElement.js +0 -37
  283. /package/dist/components/{arcgis-directline-measurement-3d → arcgis-measurement-content}/index.d.ts +0 -0
  284. /package/dist/components/{arcgis-directline-measurement-3d → arcgis-measurement-content}/index.js +0 -0
@@ -1,43 +1,21 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
2
  /// <reference types="../../index.d.ts" />
3
+ import { default as AreaMeasurementAnalysis } from '@arcgis/core/analysis/AreaMeasurementAnalysis.js';
4
+ import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
3
5
  import { Use } from '@arcgis/lumina/controllers';
4
- import { default as AreaMeasurement3D } from '@arcgis/core/widgets/AreaMeasurement3D.js';
5
- import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
6
6
  import { ArcgisReferenceElement } from '../../utils/component-utils';
7
+ import { default as AreaMeasurement3dViewModel } from './AreaMeasurement3dViewModel';
7
8
 
8
- declare const useAreaMeasurement3dWidget: (component: LitElement & Pick<AreaMeasurement3D, "icon" | "label" | "viewModel" | "analysis" | "unit" | "unitOptions"> & {
9
- state?: unknown;
10
- viewModel?: __esri.AreaMeasurement3DViewModel | undefined;
11
- closed?: boolean;
12
- icon: import('@arcgis/components-utils').Nil | string;
13
- label: import('@arcgis/components-utils').Nil | string;
14
- referenceElement?: ArcgisReferenceElement | string;
15
- position: __esri.UIPosition;
16
- arcgisReady: import('@arcgis/lumina').EventEmitter;
17
- arcgisPropertyChange: import('@arcgis/lumina').EventEmitter<{
18
- name: string;
19
- }> | undefined;
20
- el: HTMLElement & {
21
- childElem?: HTMLElement & {
22
- ownedBy?: HTMLElement;
23
- };
24
- view?: __esri.LinkChartView | __esri.MapView | __esri.SceneView;
25
- };
26
- autoDestroyDisabled: boolean;
27
- destroy: () => Promise<void>;
28
- }) => AreaMeasurement3D;
9
+ declare const useViewModel: (component: LitElement & Pick<AreaMeasurement3dViewModel, never> & import('../../controllers/useViewModel').ViewModelControllerUses<AreaMeasurement3dViewModel>) => AreaMeasurement3dViewModel;
29
10
  /**
30
- * The Area Measurement 3D component calculates and displays the area and perimeter of a polygon. This component can be used in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) to measure the area and perimeter of a polygon.
11
+ * The Area Measurement 3D component calculates and displays the area and perimeter of a polygon.
12
+ * This component can be used in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html)
13
+ * to measure the area and perimeter of a polygon.
31
14
  *
32
15
  * [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-area-measurement-3d/)
33
16
  */
34
17
  export declare class ArcgisAreaMeasurement3d extends LitElement {
35
- /**
36
- * The area measurement analysis object being created or modified by the widget.
37
- *
38
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#analysis)
39
- */
40
- readonly analysis: __esri.AreaMeasurementAnalysis;
18
+ get analysis(): AreaMeasurementAnalysis;
41
19
  /**
42
20
  * If true, the component will not be destroyed automatically when it is
43
21
  * disconnected from the document. This is useful when you want to move the
@@ -49,40 +27,23 @@ export declare class ArcgisAreaMeasurement3d extends LitElement {
49
27
  */
50
28
  autoDestroyDisabled: boolean;
51
29
  /**
52
- * Icon which represents the widget.
30
+ * Icon which represents the component.
31
+ * Typically used when the component is controlled by another component (e.g. by the Expand component).
53
32
  *
54
33
  * @see [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)
55
34
  * @default "measure-area"
56
35
  */
57
- icon: string;
58
- /**
59
- * The widget's default label.
60
- *
61
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#label)
62
- */
63
- label: string;
36
+ icon?: HTMLCalciteIconElement["icon"];
37
+ /** The component's default label. */
38
+ label?: string;
64
39
  /** @default "bottom-left" */
65
40
  position: __esri.UIPosition;
66
41
  referenceElement?: ArcgisReferenceElement | string;
67
- /**
68
- * The view model's state.
69
- *
70
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#state)
71
- *
72
- * @default "disabled"
73
- */
74
- readonly state: "ready" | "disabled" | "measuring" | "measured";
75
- /**
76
- * Unit system (imperial, metric) or specific unit used for displaying the area values.
77
- *
78
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#unit)
79
- */
42
+ /** The current state of the component. */
43
+ state: "ready" | "disabled" | "measuring" | "measured";
44
+ /** Unit system (imperial, metric) or specific unit used for displaying the distance values. */
80
45
  unit: __esri.SystemOrAreaUnit;
81
- /**
82
- * List of available units and unit systems (imperial, metric) for displaying the area values.
83
- *
84
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#unitOptions)
85
- */
46
+ /** List of unit systems (imperial, metric) and specific units for displaying the distance values. */
86
47
  unitOptions: __esri.SystemOrAreaUnit[];
87
48
  clear(): Promise<void>;
88
49
  /** Permanently destroy the component. */
@@ -1,37 +1,175 @@
1
- import { c as t } from "../../chunks/runtime.js";
2
- import { usePropertyChange as e } from "@arcgis/lumina/controllers";
3
- import s from "@arcgis/core/widgets/AreaMeasurement3D.js";
4
- import { LitElement as i, createEvent as a, noShadowRoot as o } from "@arcgis/lumina";
5
- import { m as r } from "../../chunks/useWidget.js";
6
- import { css as n } from "@lit/reactive-element/css-tag.js";
1
+ import { c as h } from "../../chunks/runtime.js";
2
+ import { html as y } from "lit-html";
3
+ import { LitElement as g, createEvent as f, noShadowRoot as w, nothing as v, safeClassMap as b } from "@arcgis/lumina";
4
+ import { usePropertyChange as M } from "@arcgis/lumina/controllers";
5
+ import { u as O } from "../../chunks/useT9n.js";
6
+ import { m as $ } from "../../chunks/useViewModel.js";
7
+ import { g as p } from "../../chunks/globalCss.js";
8
+ import { css as U } from "@lit/reactive-element/css-tag.js";
9
+ import A from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
10
+ import { getDefaultUnitForView as _ } from "@arcgis/core/applications/Components/getDefaultUnits.js";
11
+ import { property as n, subclass as V } from "@arcgis/core/core/accessorSupport/decorators.js";
12
+ import { watch as D } from "@arcgis/core/core/reactiveUtils.js";
13
+ import { A as C } from "../../chunks/AnalysisViewModel.js";
14
+ import { g as m, a as c } from "../../chunks/measurementUtils.js";
7
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
16
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
9
- v4.33.0-next.137 */
10
- const l = n`@layer{arcgis-area-measurement-3d{display:block}}`, h = r(s);
11
- class d extends i {
17
+ v4.33.0-next.138 */
18
+ const S = U`@layer{arcgis-area-measurement-3d{display:block}.arcgis-area-measurement-3d{position:relative;padding:var(--esri-widget-padding);overflow-y:auto}}`;
19
+ var L = Object.defineProperty, P = Object.getOwnPropertyDescriptor, a = (e, t, s, o) => {
20
+ for (var r = o > 1 ? void 0 : o ? P(t, s) : t, l = e.length - 1, u; l >= 0; l--)
21
+ (u = e[l]) && (r = (o ? u(t, s, r) : u(r)) || r);
22
+ return o && r && L(t, s, r), r;
23
+ };
24
+ let i = class extends C {
25
+ constructor(e) {
26
+ super(e), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Area Measurement 3D component is only supported in 3D views.";
27
+ }
28
+ initialize() {
29
+ this.addHandles(
30
+ // Make sure the analysis and view model units are in sync.
31
+ D(
32
+ () => ({
33
+ analysis: this.analysis,
34
+ unit: this.unit
35
+ }),
36
+ ({ analysis: e, unit: t }) => {
37
+ e != null && (e.unit = t);
38
+ },
39
+ { sync: !0, initial: !0 }
40
+ )
41
+ );
42
+ }
43
+ get state() {
44
+ return this.disabled || !this.ready ? "disabled" : this.operationState === "inactive" ? this.analysis.valid ? "measured" : "ready" : "measuring";
45
+ }
46
+ get displayState() {
47
+ if (!this.supported)
48
+ return "unsupported";
49
+ switch (this.state) {
50
+ case "disabled":
51
+ case "ready":
52
+ return "ready";
53
+ case "measuring":
54
+ return this.analysis.geometry == null ? "measuring" : "measured";
55
+ case "measured":
56
+ return "measured";
57
+ }
58
+ }
59
+ get measurement() {
60
+ const e = this.analysisView?.result, t = e?.mode ?? "euclidean", s = this.analysisView?.viewData.intersectingSegments?.size === 0;
61
+ return {
62
+ mode: t,
63
+ area: m(e?.area, s),
64
+ perimeter: m(e?.perimeter, s)
65
+ };
66
+ }
67
+ get unitOptions() {
68
+ const e = this._userUnitOptions?.filter((t) => c.includes(t));
69
+ return e && e.length > 0 ? e : c.slice();
70
+ }
71
+ set unitOptions(e) {
72
+ this._userUnitOptions = e;
73
+ }
74
+ get unit() {
75
+ const e = this._userUnit, t = this.unitOptions;
76
+ if (e && t.includes(e))
77
+ return e;
78
+ const s = this.defaultUnit;
79
+ return s && t.includes(s) ? s : t[0];
80
+ }
81
+ set unit(e) {
82
+ this._userUnit = e;
83
+ }
84
+ get defaultUnit() {
85
+ return this.view ? _(this.view) : void 0;
86
+ }
87
+ async place(e) {
88
+ await this.analysisView?.place(e);
89
+ }
90
+ clearAnalysis() {
91
+ this.analysis.geometry = null;
92
+ }
93
+ constructAnalysis() {
94
+ return new A();
95
+ }
96
+ };
97
+ a([
98
+ n({ readOnly: !0 })
99
+ ], i.prototype, "state", 1);
100
+ a([
101
+ n({ readOnly: !0 })
102
+ ], i.prototype, "displayState", 1);
103
+ a([
104
+ n({ readOnly: !0 })
105
+ ], i.prototype, "measurement", 1);
106
+ a([
107
+ n()
108
+ ], i.prototype, "unitOptions", 1);
109
+ a([
110
+ n()
111
+ ], i.prototype, "_userUnitOptions", 2);
112
+ a([
113
+ n()
114
+ ], i.prototype, "unit", 1);
115
+ a([
116
+ n()
117
+ ], i.prototype, "_userUnit", 2);
118
+ a([
119
+ n({ readOnly: !0 })
120
+ ], i.prototype, "defaultUnit", 1);
121
+ i = a([
122
+ V("components.area-measurement-3d.AreaMeasurement3dViewModel")
123
+ ], i);
124
+ const E = "arcgis-area-measurement-3d", x = { base: E }, R = $(i);
125
+ class T extends g {
12
126
  constructor() {
13
- super(...arguments), this.widget = h(this), this.viewModel = this.widget.viewModel, this.analysis = this.widget.analysis, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.position = "bottom-left", this.state = this.viewModel.state, this.unit = this.widget.unit, this.unitOptions = this.widget.unitOptions, this.arcgisPropertyChange = e()("analysis", "state"), this.arcgisReady = a();
127
+ super(...arguments), this.viewModel = R(this), this.messages = O({ 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 = f();
14
128
  }
15
129
  static {
16
- this.properties = { analysis: 0, autoDestroyDisabled: 5, icon: 1, label: 1, position: 1, referenceElement: 1, state: 3, unit: 1, unitOptions: 0 };
130
+ this.properties = { analysis: 32, autoDestroyDisabled: 5, icon: 3, label: 1, position: 1, referenceElement: 1, state: 3, unit: 1, unitOptions: 0 };
17
131
  }
18
132
  static {
19
- this.shadowRootOptions = o;
133
+ this.shadowRootOptions = w;
20
134
  }
21
135
  static {
22
- this.styles = l;
136
+ this.styles = S;
137
+ }
138
+ get analysis() {
139
+ return this.viewModel.analysis;
23
140
  }
24
141
  async clear() {
25
- this.widget?.viewModel.clear();
142
+ this.viewModel.clear();
26
143
  }
27
144
  async destroy() {
28
145
  await this.manager.destroy();
29
146
  }
30
147
  async start() {
31
- this.widget?.viewModel.start();
148
+ this.viewModel.start();
149
+ }
150
+ render() {
151
+ const { messages: t, unit: s, unitOptions: o, viewModel: r } = this, { measurement: l, state: u } = r;
152
+ return y`<div aria-label=${t.componentLabel ?? v} class=${b({
153
+ [x.base]: !0,
154
+ [p.widget]: !0,
155
+ [p.panel]: !0
156
+ })} role=presentation><arcgis-measurement-content .state=${r.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[
157
+ {
158
+ title: t.area,
159
+ measurement: l.area
160
+ },
161
+ {
162
+ title: t.perimeterLength,
163
+ measurement: l.perimeter
164
+ }
165
+ ]}><arcgis-unit-select slot=settings .options=${o} .selectLabel=${t.unit} .value=${s} @arcgisUnitSelectChange=${(d) => {
166
+ this.unit = d.detail;
167
+ }}></arcgis-unit-select><calcite-button slot=actions .disabled=${u === "disabled"} @click=${() => {
168
+ this.viewModel.clear(), this.viewModel.start();
169
+ }}>${t.newMeasurement}</calcite-button></arcgis-measurement-content></div>`;
32
170
  }
33
171
  }
34
- t("arcgis-area-measurement-3d", d);
172
+ h("arcgis-area-measurement-3d", T);
35
173
  export {
36
- d as ArcgisAreaMeasurement3d
174
+ T as ArcgisAreaMeasurement3d
37
175
  };
@@ -1 +1,4 @@
1
+ import "../arcgis-measurement-content/index.js";
2
+ import "../arcgis-unit-select/index.js";
3
+ import "@esri/calcite-components/components/calcite-button";
1
4
  export * from "./customElement.js";
@@ -1 +1,4 @@
1
+ import "../arcgis-measurement-content/index.js";
2
+ import "../arcgis-unit-select/index.js";
3
+ import "@esri/calcite-components/components/calcite-button";
1
4
  export * from "./customElement.js";
@@ -6,7 +6,7 @@ import { m as o } from "../../chunks/useWidget.js";
6
6
  import { css as h } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
9
- v4.33.0-next.137 */
9
+ v4.33.0-next.138 */
10
10
  const n = h`@layer{arcgis-attachments{display:block}}`, r = o(i);
11
11
  class l extends s {
12
12
  constructor() {
@@ -13,7 +13,7 @@ import { c as a } from "../../chunks/basemap-gallery-resources.js";
13
13
  import { css as L } from "@lit/reactive-element/css-tag.js";
14
14
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
15
15
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
16
- v4.33.0-next.137 */
16
+ v4.33.0-next.138 */
17
17
  const D = L`@layer{arcgis-basemap-gallery{display:block}}`, A = B(f), m = {
18
18
  // Below this width, items are displayed as a single column and the thumbnail is placed above the title.
19
19
  small: 200,
@@ -8,7 +8,7 @@ import { c as i } from "../../chunks/basemap-gallery-resources.js";
8
8
  import { g as A } from "../../chunks/component-utils.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
11
- v4.33.0-next.137 */
11
+ v4.33.0-next.138 */
12
12
  function _(e) {
13
13
  return e.portalItem?.type === "Web Scene" || e.referenceLayers.some((t) => t.type === "scene");
14
14
  }
@@ -8,7 +8,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
8
8
  import { c as d } from "../../chunks/createCloseEvent.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
11
- v4.33.0-next.137 */
11
+ v4.33.0-next.138 */
12
12
  const n = h`@layer{arcgis-basemap-layer-list{display:block}}`, c = o(s);
13
13
  class g extends r {
14
14
  constructor() {
@@ -6,5 +6,6 @@ export declare const css: {
6
6
  readonly imageLoading: "esri-basemap-toggle__image--loading";
7
7
  readonly overlay: "esri-basemap-thumbnail__overlay esri-basemap-toggle__image-overlay";
8
8
  readonly title: "esri-basemap-thumbnail__title esri-basemap-toggle__title";
9
+ readonly titleWrap: "esri-basemap-toggle__title-wrap";
9
10
  readonly overlayScrim: "esri-basemap-thumbnail__overlay-scrim";
10
11
  };
@@ -1,18 +1,18 @@
1
1
  import { c as f } from "../../chunks/runtime.js";
2
2
  import { html as l } from "lit-html";
3
3
  import { usePropertyChange as B } from "@arcgis/lumina/controllers";
4
- import { classes as m } from "@arcgis/components-utils";
5
- import { getBasemapThumbnailUrl as S } from "@arcgis/core/applications/Components/basemapUtils.js";
6
- import x from "@arcgis/core/widgets/BasemapToggle/BasemapToggleViewModel.js";
7
- import { LitElement as T, createEvent as M, noShadowRoot as k, safeClassMap as a, nothing as r, safeStyleMap as b } from "@arcgis/lumina";
4
+ import { classes as r } from "@arcgis/components-utils";
5
+ import { getBasemapThumbnailUrl as x } from "@arcgis/core/applications/Components/basemapUtils.js";
6
+ import S from "@arcgis/core/widgets/BasemapToggle/BasemapToggleViewModel.js";
7
+ import { LitElement as T, createEvent as M, noShadowRoot as k, safeClassMap as a, nothing as c, safeStyleMap as b } from "@arcgis/lumina";
8
8
  import { u as I } from "../../chunks/useT9n.js";
9
9
  import { m as C } from "../../chunks/useViewModel.js";
10
- import { g as u } from "../../chunks/globalCss.js";
10
+ import { g as $ } from "../../chunks/globalCss.js";
11
11
  import { css as L } from "@lit/reactive-element/css-tag.js";
12
12
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
13
13
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
14
- v4.33.0-next.137 */
15
- const A = L`@layer{arcgis-basemap-toggle{display:block}}`, s = "esri-basemap-toggle", o = "esri-basemap-thumbnail", e = {
14
+ v4.33.0-next.138 */
15
+ const A = L`@layer{arcgis-basemap-toggle{display:block}.esri-basemap-toggle__title-wrap{text-wrap:wrap}}`, s = "esri-basemap-toggle", o = "esri-basemap-thumbnail", e = {
16
16
  base: s,
17
17
  secondaryBasemapImage: `${s}__image--secondary`,
18
18
  container: `${o} ${s}__container`,
@@ -20,8 +20,9 @@ const A = L`@layer{arcgis-basemap-toggle{display:block}}`, s = "esri-basemap-tog
20
20
  imageLoading: `${s}__image--loading`,
21
21
  overlay: `${o}__overlay ${s}__image-overlay`,
22
22
  title: `${o}__title ${s}__title`,
23
+ titleWrap: `${s}__title-wrap`,
23
24
  overlayScrim: `${o}__overlay-scrim`
24
- }, D = C(x);
25
+ }, D = C(S);
25
26
  class E extends T {
26
27
  constructor() {
27
28
  super(...arguments), this.messages = I(), this.viewModel = D(this), this.activeBasemap = this.viewModel.activeBasemap, this.autoDestroyDisabled = !1, this.icon = "layer-basemap", this.nextBasemap = this.viewModel.nextBasemap, this.position = "top-left", this.showTitle = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = B()("nextBasemap", "state"), this.arcgisReady = M();
@@ -42,14 +43,14 @@ class E extends T {
42
43
  return await this.viewModel.toggle();
43
44
  }
44
45
  _getThumbnailStyles(t) {
45
- const n = S(t);
46
+ const n = x(t);
46
47
  return n ? { backgroundImage: `url(${n})` } : { backgroundImage: "" };
47
48
  }
48
49
  render() {
49
- const t = this.viewModel, n = t.state === "disabled" ? null : t.activeBasemap, i = t.state === "disabled" ? null : t.nextBasemap, $ = t.state === "loading", d = t.state === "incompatible-next-basemap", c = i?.title ?? "", p = i && i.loadStatus !== "loaded";
50
+ const t = this.viewModel, n = t.state === "disabled" ? null : t.activeBasemap, i = t.state === "disabled" ? null : t.nextBasemap, u = t.state === "loading", p = t.state === "incompatible-next-basemap", m = i?.title ?? "", d = i && i.loadStatus !== "loaded";
50
51
  let g;
51
- const h = this.showTitle && c, v = d, y = h || v, w = this._getThumbnailStyles(n), _ = this._getThumbnailStyles(i);
52
- return y && (g = l`<div class=${a(e.overlay)}>${h ? l`<span class=${a(e.title)} title=${c ?? r}>${c}</span>` : null}${v ? l`<calcite-scrim class=${a(e.overlayScrim)} title=${this.messages.incompatibleSpatialReference ?? r}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>` : null}</div>`), l`<div class=${a(m(e.base, u.widget))}><calcite-button appearance=transparent data-basemap-id=${(i ? i.id : "") ?? r} .disabled=${d} kind=neutral .label=${this.label ?? void 0} @click=${() => void this.toggle()} title=${this.label ?? void 0 ?? r}><div class=${a(m(e.container, e.secondaryBasemapImage))}><div class=${a(e.image)} style=${b(w)}></div></div><div class=${a(e.container)}><div class=${a(m(e.image, p ? e.imageLoading : null))} style=${b(_)}>${p || $ ? l`<calcite-scrim><span aria-hidden=true class=${a(u.loaderAnimation)} role=presentation></span></calcite-scrim>` : null}</div>${g}</div></calcite-button></div>`;
52
+ const h = this.showTitle && m, v = p, y = h || v, w = this._getThumbnailStyles(n), _ = this._getThumbnailStyles(i);
53
+ return y && (g = l`<div class=${a(e.overlay)}>${h ? l`<span class=${a(r(e.title, e.titleWrap))} title=${m ?? c}>${m}</span>` : null}${v ? l`<calcite-scrim class=${a(e.overlayScrim)} title=${this.messages.incompatibleSpatialReference ?? c}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>` : null}</div>`), l`<div class=${a(r(e.base, $.widget))}><calcite-button appearance=transparent data-basemap-id=${(i ? i.id : "") ?? c} .disabled=${p} kind=neutral .label=${this.label ?? void 0} @click=${() => void this.toggle()} title=${this.label ?? void 0 ?? c}><div class=${a(r(e.container, e.secondaryBasemapImage))}><div class=${a(e.image)} style=${b(w)}></div></div><div class=${a(e.container)}><div class=${a(r(e.image, d ? e.imageLoading : null))} style=${b(_)}>${d || u ? l`<calcite-scrim><span aria-hidden=true class=${a($.loaderAnimation)} role=presentation></span></calcite-scrim>` : null}</div>${g}</div></calcite-button></div>`;
53
54
  }
54
55
  }
55
56
  f("arcgis-basemap-toggle", E);
@@ -8,7 +8,7 @@ import { css as r } from "@lit/reactive-element/css-tag.js";
8
8
  import { c as d } from "../../chunks/createCloseEvent.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
11
- v4.33.0-next.137 */
11
+ v4.33.0-next.138 */
12
12
  const n = r`@layer{arcgis-bookmarks{display:block}}`, m = h(s);
13
13
  class g extends o {
14
14
  constructor() {
@@ -6,7 +6,7 @@ import { m as h } from "../../chunks/useWidget.js";
6
6
  import { css as r } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
9
- v4.33.0-next.137 */
9
+ v4.33.0-next.138 */
10
10
  const a = r`@layer{arcgis-building-explorer{display:block}}`, d = h(s);
11
11
  class n extends t {
12
12
  constructor() {
@@ -8,7 +8,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
8
8
  import { c as d } from "../../chunks/createCloseEvent.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
11
- v4.33.0-next.137 */
11
+ v4.33.0-next.138 */
12
12
  const c = h`@layer{arcgis-catalog-layer-list{display:block}}`, n = r(s);
13
13
  class g extends o {
14
14
  constructor() {
@@ -10,7 +10,7 @@ import { g as i } from "../../chunks/globalCss.js";
10
10
  import { css as y } from "@lit/reactive-element/css-tag.js";
11
11
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
12
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
13
- v4.33.0-next.137 */
13
+ v4.33.0-next.138 */
14
14
  const $ = y`@layer{arcgis-compass{display:block}}`, r = "esri-compass", a = {
15
15
  base: r,
16
16
  iconContainer: `${r}__icon-container`
@@ -6,7 +6,7 @@ import { m as d } from "../../chunks/useWidget.js";
6
6
  import { css as h } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
9
- v4.33.0-next.137 */
9
+ v4.33.0-next.138 */
10
10
  const l = h`@layer{arcgis-coordinate-conversion{display:block}}`, g = d(o);
11
11
  class c extends n {
12
12
  constructor() {
@@ -6,7 +6,7 @@ import { css as l } from "@lit/reactive-element/css-tag.js";
6
6
  import { reEmitEvent as o } from "@arcgis/lumina/controllers/accessor";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
9
- v4.33.0-next.137 */
9
+ v4.33.0-next.138 */
10
10
  const d = l`@layer{arcgis-daylight{display:block}}`, r = h(i);
11
11
  class n extends t {
12
12
  constructor() {
@@ -0,0 +1,47 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import { default as DirectLineMeasurementAnalysis } from '@arcgis/core/analysis/DirectLineMeasurementAnalysis.js';
3
+ import { default as SceneView } from '@arcgis/core/views/SceneView';
4
+ import { ConstructProperties as AnalysisViewModelConstructProperties, AnalysisViewModel } from '../../support/AnalysisViewModel';
5
+ import { MeasurementModeString, MeasurementState, MeasurementValue } from '../../support/measurementUtils';
6
+ interface ConstructProperties extends AnalysisViewModelConstructProperties<SceneView, DirectLineMeasurementAnalysis> {
7
+ unitOptions: __esri.SystemOrLengthUnit[];
8
+ unit: __esri.SystemOrLengthUnit;
9
+ }
10
+ export interface Measurement {
11
+ readonly mode: MeasurementModeString;
12
+ readonly directDistance: MeasurementValue<__esri.Length>;
13
+ readonly horizontalDistance: MeasurementValue<__esri.Length>;
14
+ readonly verticalDistance: MeasurementValue<__esri.Length>;
15
+ }
16
+ export type State = "disabled" | "measured" | "measuring" | "ready";
17
+ export default class DirectLineMeasurement3DViewModel extends AnalysisViewModel<SceneView, DirectLineMeasurementAnalysis> implements ConstructProperties {
18
+ constructor(properties?: Partial<ConstructProperties>);
19
+ initialize(): void;
20
+ get state(): Exclude<MeasurementState, "unsupported">;
21
+ get displayState(): MeasurementState;
22
+ /**
23
+ * The current measurement calculated between the two points.
24
+ */
25
+ get measurement(): Measurement;
26
+ /**
27
+ * List of unit systems (imperial, metric) and specific units for displaying the distance values.
28
+ */
29
+ get unitOptions(): __esri.SystemOrLengthUnit[];
30
+ set unitOptions(units: __esri.SystemOrLengthUnit[] | undefined);
31
+ private _userUnitOptions?;
32
+ /**
33
+ * Unit system (imperial, metric) or specific unit used for displaying the distance values.
34
+ */
35
+ get unit(): __esri.SystemOrLengthUnit;
36
+ set unit(unit: __esri.SystemOrLengthUnit | undefined);
37
+ private _userUnit?;
38
+ get defaultUnit(): __esri.MeasurementSystem | undefined;
39
+ place(options?: {
40
+ signal?: AbortSignal;
41
+ }): Promise<void>;
42
+ protected clearAnalysis(): void;
43
+ protected readonly supportedViewType = "3d";
44
+ protected readonly unsupportedErrorMessage = "The Direct Line Measurement 3D component is only supported in 3D views.";
45
+ protected constructAnalysis(): DirectLineMeasurementAnalysis;
46
+ }
47
+ export {};
@@ -0,0 +1,68 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ /// <reference types="../../index.d.ts" />
3
+ import { default as DirectLineMeasurementAnalysis } from '@arcgis/core/analysis/DirectLineMeasurementAnalysis';
4
+ import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
5
+ import { Use } from '@arcgis/lumina/controllers';
6
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
+ import { default as DirectLineMeasurement3DViewModel } from './DirectLineMeasurement3dViewModel';
8
+
9
+ declare const useViewModel: (component: LitElement & Pick<DirectLineMeasurement3DViewModel, never> & import('../../controllers/useViewModel').ViewModelControllerUses<DirectLineMeasurement3DViewModel>) => DirectLineMeasurement3DViewModel;
10
+ /**
11
+ * The Direct Line Measurement 3D component calculates and displays the 3D distance between two points. This component
12
+ * can be used in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html)
13
+ * to measure the vertical, horizontal, and direct distance between two points.
14
+ *
15
+ * [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-direct-line-measurement-3d/)
16
+ */
17
+ export declare class ArcgisDirectLineMeasurement3d extends LitElement {
18
+ get analysis(): DirectLineMeasurementAnalysis;
19
+ /**
20
+ * If true, the component will not be destroyed automatically when it is
21
+ * disconnected from the document. This is useful when you want to move the
22
+ * component to a different place on the page, or temporarily hide it. If this
23
+ * is set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-direct-line-measurement-3d/#destroy) method when you are done to
24
+ * prevent memory leaks.
25
+ *
26
+ * @default false
27
+ */
28
+ autoDestroyDisabled: boolean;
29
+ /**
30
+ * Icon which represents the component.
31
+ * Typically used when the component is controlled by another component (e.g. by the Expand component).
32
+ *
33
+ * @see [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)
34
+ * @default "measure-line"
35
+ */
36
+ icon?: HTMLCalciteIconElement["icon"];
37
+ /** The component's default label. */
38
+ label?: string;
39
+ /** @default "bottom-left" */
40
+ position: __esri.UIPosition;
41
+ referenceElement?: ArcgisReferenceElement | string;
42
+ state: "ready" | "disabled" | "measuring" | "measured";
43
+ /** Unit system (imperial, metric) or specific unit used for displaying the distance values. */
44
+ unit: __esri.SystemOrLengthUnit;
45
+ /** List of unit systems (imperial, metric) and specific units for displaying the distance values. */
46
+ unitOptions: __esri.SystemOrLengthUnit[];
47
+ clear(): Promise<void>;
48
+ /** Permanently destroy the component. */
49
+ destroy(): Promise<void>;
50
+ start(): Promise<void>;
51
+ /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
52
+ readonly arcgisPropertyChange: TargetedEvent<this, {
53
+ name: "state" | "analysis";
54
+ }>;
55
+ /** Emitted when the component associated with a map or scene view is is ready to be interacted with. */
56
+ readonly arcgisReady: TargetedEvent<this, void>;
57
+ }
58
+ /**
59
+ * The Direct Line Measurement 3D component calculates and displays the 3D distance between two points. This component can be used in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) to measure the vertical, horizontal, and direct distance between two points.
60
+ *
61
+ * [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-directline-measurement-3d/)
62
+ *
63
+ * @internal
64
+ * @deprecated
65
+ */
66
+ export declare class DeprecatedArcgisDirectLineMeasurement3d extends ArcgisDirectLineMeasurement3d {
67
+ }
68
+ export {};