@arcgis/map-components 4.32.0-next.84 → 4.32.0-next.87

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 (286) hide show
  1. package/dist/arcgis-map-components/2XHX4GRY.js +4 -0
  2. package/dist/arcgis-map-components/32X3ZYOM.js +4 -0
  3. package/dist/arcgis-map-components/35DMTE4K.js +4 -0
  4. package/dist/arcgis-map-components/3JTGHVNB.js +4 -0
  5. package/dist/arcgis-map-components/3ZDFYLLA.js +4 -0
  6. package/dist/arcgis-map-components/4CKEV5R3.js +4 -0
  7. package/dist/arcgis-map-components/4J4AUJFF.js +4 -0
  8. package/dist/arcgis-map-components/4ZIFQORV.js +4 -0
  9. package/dist/arcgis-map-components/6LUZOY5O.js +4 -0
  10. package/dist/arcgis-map-components/7BT4GAVM.js +4 -0
  11. package/dist/arcgis-map-components/{QDTORANP.js → 7JPD33PS.js} +1 -1
  12. package/dist/arcgis-map-components/7WR7N6T3.js +4 -0
  13. package/dist/arcgis-map-components/{LABTBYBR.js → A6QXV7MU.js} +2 -2
  14. package/dist/arcgis-map-components/AFIGXVQ3.js +4 -0
  15. package/dist/arcgis-map-components/{4HWKFVOD.js → AGWGNRMW.js} +2 -2
  16. package/dist/arcgis-map-components/AOZPIV4A.js +4 -0
  17. package/dist/arcgis-map-components/AVGUWUIP.js +4 -0
  18. package/dist/arcgis-map-components/AXIJBJKN.js +4 -0
  19. package/dist/arcgis-map-components/B5NOO6HX.js +4 -0
  20. package/dist/arcgis-map-components/CE62RYPI.js +4 -0
  21. package/dist/arcgis-map-components/CEIGROJD.js +4 -0
  22. package/dist/arcgis-map-components/CLH7HQDS.js +4 -0
  23. package/dist/arcgis-map-components/DAXKVFKC.js +4 -0
  24. package/dist/arcgis-map-components/DBWEC62Z.js +4 -0
  25. package/dist/arcgis-map-components/E2S64U4Z.js +4 -0
  26. package/dist/arcgis-map-components/E3RBXZMD.js +4 -0
  27. package/dist/arcgis-map-components/{ALE6KF3F.js → ETORB2CW.js} +4 -4
  28. package/dist/arcgis-map-components/G2AUFB2V.js +4 -0
  29. package/dist/arcgis-map-components/GFFY2SOD.js +4 -0
  30. package/dist/arcgis-map-components/GGRINU7O.js +4 -0
  31. package/dist/arcgis-map-components/HFOLCVHE.js +4 -0
  32. package/dist/arcgis-map-components/HN2B2WVM.js +4 -0
  33. package/dist/arcgis-map-components/HYBGAIIH.js +4 -0
  34. package/dist/arcgis-map-components/IJ4I2C2Q.js +4 -0
  35. package/dist/arcgis-map-components/ILVOJPYP.js +4 -0
  36. package/dist/arcgis-map-components/IUSB5KZR.js +4 -0
  37. package/dist/arcgis-map-components/{D5YSPPQY.js → KES7H4RV.js} +1 -1
  38. package/dist/arcgis-map-components/KFWRSEL5.js +4 -0
  39. package/dist/arcgis-map-components/KTPXF7QU.js +4 -0
  40. package/dist/arcgis-map-components/LXNOWS2N.js +4 -0
  41. package/dist/arcgis-map-components/MAZ73QH3.js +4 -0
  42. package/dist/arcgis-map-components/MKBRZJPK.js +4 -0
  43. package/dist/arcgis-map-components/{X3DKJFAI.js → MNAEUWGF.js} +2 -2
  44. package/dist/arcgis-map-components/NFID37OS.js +4 -0
  45. package/dist/arcgis-map-components/NH2PJWZN.js +4 -0
  46. package/dist/arcgis-map-components/NINSVERY.js +4 -0
  47. package/dist/arcgis-map-components/OWAZAAPU.js +4 -0
  48. package/dist/arcgis-map-components/{CTCO63FH.js → OXPBMLUL.js} +2 -2
  49. package/dist/arcgis-map-components/OXZIRB5Z.js +4 -0
  50. package/dist/arcgis-map-components/P254GL27.js +4 -0
  51. package/dist/arcgis-map-components/P2PVJ4AF.js +4 -0
  52. package/dist/arcgis-map-components/QAIK42DS.js +4 -0
  53. package/dist/arcgis-map-components/QHZ2NQDS.js +4 -0
  54. package/dist/arcgis-map-components/RIESOZ3J.js +4 -0
  55. package/dist/arcgis-map-components/RN7HCA5M.js +4 -0
  56. package/dist/arcgis-map-components/S732TQFW.js +4 -0
  57. package/dist/arcgis-map-components/SWD2W5AQ.js +4 -0
  58. package/dist/arcgis-map-components/T2IZZQA6.js +4 -0
  59. package/dist/arcgis-map-components/TYHESC7C.js +4 -0
  60. package/dist/arcgis-map-components/TYLB5V7D.js +4 -0
  61. package/dist/arcgis-map-components/U3JMNMD5.js +4 -0
  62. package/dist/arcgis-map-components/U5BKFVZA.js +4 -0
  63. package/dist/arcgis-map-components/{ADHZXMHO.js → VOAP25R5.js} +2 -2
  64. package/dist/arcgis-map-components/{F2U6NY4G.js → VPAITV6T.js} +2 -2
  65. package/dist/arcgis-map-components/VPDLR5PZ.js +4 -0
  66. package/dist/arcgis-map-components/VYAG6QFL.js +4 -0
  67. package/dist/arcgis-map-components/WRLAAWYP.js +4 -0
  68. package/dist/arcgis-map-components/XGMH4FTN.js +4 -0
  69. package/dist/arcgis-map-components/{B2AHBB47.js → XXMI6R5H.js} +2 -2
  70. package/dist/arcgis-map-components/YN7363HF.js +4 -0
  71. package/dist/arcgis-map-components/YWCFGHSS.js +4 -0
  72. package/dist/arcgis-map-components/ZZWXJ7BT.js +4 -0
  73. package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
  74. package/dist/chunks/basemap-gallery-item.js +1 -1
  75. package/dist/chunks/component-utils.js +43 -43
  76. package/dist/chunks/disconnected.js +1 -1
  77. package/dist/chunks/globalCss.js +1 -1
  78. package/dist/chunks/legacyIcon.js +1 -1
  79. package/dist/chunks/runtime.js +1 -1
  80. package/dist/chunks/useViewModel.js +1 -1
  81. package/dist/chunks/useWidget.js +1 -1
  82. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +4 -3
  83. package/dist/components/arcgis-area-measurement-2d/customElement.js +10 -10
  84. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +5 -4
  85. package/dist/components/arcgis-area-measurement-3d/customElement.js +10 -10
  86. package/dist/components/arcgis-attachments/customElement.d.ts +7 -6
  87. package/dist/components/arcgis-attachments/customElement.js +9 -9
  88. package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js +1 -1
  89. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -3
  90. package/dist/components/arcgis-basemap-gallery/customElement.js +38 -37
  91. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +23 -22
  92. package/dist/components/arcgis-basemap-layer-list/customElement.js +6 -6
  93. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +7 -6
  94. package/dist/components/arcgis-basemap-toggle/customElement.js +18 -17
  95. package/dist/components/arcgis-bookmarks/customElement.d.ts +14 -13
  96. package/dist/components/arcgis-bookmarks/customElement.js +9 -9
  97. package/dist/components/arcgis-building-explorer/customElement.d.ts +5 -4
  98. package/dist/components/arcgis-building-explorer/customElement.js +9 -9
  99. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +16 -15
  100. package/dist/components/arcgis-catalog-layer-list/customElement.js +6 -6
  101. package/dist/components/arcgis-compass/customElement.d.ts +4 -3
  102. package/dist/components/arcgis-compass/customElement.js +10 -10
  103. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +8 -7
  104. package/dist/components/arcgis-coordinate-conversion/customElement.js +9 -9
  105. package/dist/components/arcgis-daylight/customElement.d.ts +5 -4
  106. package/dist/components/arcgis-daylight/customElement.js +8 -8
  107. package/dist/components/arcgis-directional-pad/customElement.d.ts +28 -5
  108. package/dist/components/arcgis-directional-pad/customElement.js +37 -36
  109. package/dist/components/arcgis-directions/customElement.d.ts +10 -8
  110. package/dist/components/arcgis-directions/customElement.js +24 -24
  111. package/dist/components/arcgis-directline-measurement-3d/customElement.d.ts +5 -4
  112. package/dist/components/arcgis-directline-measurement-3d/customElement.js +9 -9
  113. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +5 -4
  114. package/dist/components/arcgis-distance-measurement-2d/customElement.js +9 -9
  115. package/dist/components/arcgis-editor/customElement.d.ts +17 -16
  116. package/dist/components/arcgis-editor/customElement.js +9 -9
  117. package/dist/components/arcgis-elevation-profile/customElement.d.ts +16 -21
  118. package/dist/components/arcgis-elevation-profile/customElement.js +9 -9
  119. package/dist/components/arcgis-expand/customElement.d.ts +9 -8
  120. package/dist/components/arcgis-expand/customElement.js +9 -9
  121. package/dist/components/arcgis-feature/customElement.d.ts +10 -17
  122. package/dist/components/arcgis-feature/customElement.js +8 -8
  123. package/dist/components/arcgis-feature-form/customElement.d.ts +8 -7
  124. package/dist/components/arcgis-feature-form/customElement.js +9 -9
  125. package/dist/components/arcgis-feature-table/customElement.d.ts +24 -23
  126. package/dist/components/arcgis-feature-table/customElement.js +17 -16
  127. package/dist/components/arcgis-feature-templates/customElement.d.ts +8 -7
  128. package/dist/components/arcgis-feature-templates/customElement.js +10 -10
  129. package/dist/components/arcgis-features/customElement.d.ts +21 -20
  130. package/dist/components/arcgis-features/customElement.js +6 -6
  131. package/dist/components/arcgis-floor-filter/customElement.d.ts +9 -8
  132. package/dist/components/arcgis-floor-filter/customElement.js +10 -10
  133. package/dist/components/arcgis-fullscreen/customElement.d.ts +5 -4
  134. package/dist/components/arcgis-fullscreen/customElement.js +11 -11
  135. package/dist/components/arcgis-histogram/customElement.d.ts +14 -13
  136. package/dist/components/arcgis-histogram/customElement.js +9 -9
  137. package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +15 -14
  138. package/dist/components/arcgis-histogram-range-slider/customElement.js +9 -9
  139. package/dist/components/arcgis-home/customElement.d.ts +7 -6
  140. package/dist/components/arcgis-home/customElement.js +12 -12
  141. package/dist/components/arcgis-layer-list/customElement.d.ts +21 -20
  142. package/dist/components/arcgis-layer-list/customElement.js +10 -10
  143. package/dist/components/arcgis-legend/customElement.d.ts +5 -4
  144. package/dist/components/arcgis-legend/customElement.js +9 -9
  145. package/dist/components/arcgis-line-of-sight/customElement.d.ts +5 -4
  146. package/dist/components/arcgis-line-of-sight/customElement.js +9 -9
  147. package/dist/components/arcgis-link-chart/customElement.d.ts +20 -18
  148. package/dist/components/arcgis-link-chart/customElement.js +27 -27
  149. package/dist/components/arcgis-locate/customElement.d.ts +7 -6
  150. package/dist/components/arcgis-locate/customElement.js +15 -15
  151. package/dist/components/arcgis-map/customElement.d.ts +19 -17
  152. package/dist/components/arcgis-map/customElement.js +27 -27
  153. package/dist/components/arcgis-measurement/customElement.d.ts +7 -6
  154. package/dist/components/arcgis-measurement/customElement.js +9 -9
  155. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +8 -6
  156. package/dist/components/arcgis-navigation-toggle/customElement.js +11 -11
  157. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +8 -7
  158. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +33 -28
  159. package/dist/components/arcgis-placement/customElement.js +2 -2
  160. package/dist/components/arcgis-print/customElement.d.ts +7 -6
  161. package/dist/components/arcgis-print/customElement.js +9 -9
  162. package/dist/components/arcgis-scale-bar/customElement.d.ts +6 -5
  163. package/dist/components/arcgis-scale-bar/customElement.js +70 -63
  164. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +6 -5
  165. package/dist/components/arcgis-scale-range-slider/customElement.js +12 -12
  166. package/dist/components/arcgis-scene/customElement.d.ts +18 -16
  167. package/dist/components/arcgis-scene/customElement.js +25 -25
  168. package/dist/components/arcgis-search/customElement.d.ts +15 -14
  169. package/dist/components/arcgis-search/customElement.js +8 -8
  170. package/dist/components/arcgis-shadow-cast/customElement.d.ts +11 -10
  171. package/dist/components/arcgis-shadow-cast/customElement.js +12 -12
  172. package/dist/components/arcgis-sketch/customElement.d.ts +30 -28
  173. package/dist/components/arcgis-sketch/customElement.js +11 -12
  174. package/dist/components/arcgis-slice/customElement.d.ts +6 -5
  175. package/dist/components/arcgis-slice/customElement.js +9 -9
  176. package/dist/components/arcgis-slider/customElement.d.ts +15 -14
  177. package/dist/components/arcgis-slider/customElement.js +9 -9
  178. package/dist/components/arcgis-swipe/customElement.d.ts +6 -5
  179. package/dist/components/arcgis-swipe/customElement.js +17 -17
  180. package/dist/components/arcgis-table-list/customElement.d.ts +25 -22
  181. package/dist/components/arcgis-table-list/customElement.js +6 -6
  182. package/dist/components/arcgis-time-slider/customElement.d.ts +10 -9
  183. package/dist/components/arcgis-time-slider/customElement.js +9 -9
  184. package/dist/components/arcgis-track/customElement.d.ts +8 -7
  185. package/dist/components/arcgis-track/customElement.js +15 -15
  186. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +85 -14
  187. package/dist/components/arcgis-utility-network-associations/customElement.js +33 -210
  188. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +1 -1
  189. package/dist/components/arcgis-utility-network-trace/customElement.js +8 -8
  190. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -1
  191. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +11 -11
  192. package/dist/components/arcgis-value-picker/customElement.d.ts +10 -9
  193. package/dist/components/arcgis-value-picker/customElement.js +9 -9
  194. package/dist/components/arcgis-version-management/customElement.d.ts +3 -3
  195. package/dist/components/arcgis-version-management/customElement.js +99 -100
  196. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  197. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  198. package/dist/components/arcgis-version-management-version-list/customElement.d.ts +1 -1
  199. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  200. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  201. package/dist/components/arcgis-weather/customElement.d.ts +6 -5
  202. package/dist/components/arcgis-weather/customElement.js +9 -9
  203. package/dist/components/arcgis-zoom/customElement.d.ts +4 -3
  204. package/dist/components/arcgis-zoom/customElement.js +8 -8
  205. package/dist/controllers/useViewModel.d.ts +2 -2
  206. package/dist/controllers/useWidget.d.ts +2 -2
  207. package/dist/docs/api.json +1105 -462
  208. package/dist/docs/docs.json +823 -345
  209. package/dist/docs/vscode.html-custom-data.json +229 -137
  210. package/dist/docs/web-types.json +582 -374
  211. package/dist/index.js +1 -1
  212. package/dist/loader.js +3 -3
  213. package/dist/testing/commonSpatialReferences.d.ts +8 -0
  214. package/dist/testing/mockServices.d.ts +9 -0
  215. package/dist/testing/setupFile.d.ts +1 -0
  216. package/dist/testing/testUtils.d.ts +49 -0
  217. package/dist/testing/tileInfoUtils.d.ts +10 -0
  218. package/dist/types/lumina.d.ts +6 -6
  219. package/dist/types/preact.d.ts +6 -6
  220. package/dist/types/react.d.ts +6 -6
  221. package/dist/types/stencil.d.ts +6 -6
  222. package/dist/utils/component-utils.d.ts +2 -2
  223. package/package.json +4 -5
  224. package/dist/arcgis-map-components/2LH365WX.js +0 -4
  225. package/dist/arcgis-map-components/6JAD4WKP.js +0 -4
  226. package/dist/arcgis-map-components/7IYUKHGU.js +0 -4
  227. package/dist/arcgis-map-components/7PRXTQ4Y.js +0 -4
  228. package/dist/arcgis-map-components/ASLMMNFG.js +0 -4
  229. package/dist/arcgis-map-components/BCSTA4MD.js +0 -4
  230. package/dist/arcgis-map-components/BMZIKLJT.js +0 -4
  231. package/dist/arcgis-map-components/BVS52H6M.js +0 -4
  232. package/dist/arcgis-map-components/C542LZ3W.js +0 -4
  233. package/dist/arcgis-map-components/CAQQA5ME.js +0 -4
  234. package/dist/arcgis-map-components/CCF5WJQL.js +0 -4
  235. package/dist/arcgis-map-components/CHN4JGNG.js +0 -4
  236. package/dist/arcgis-map-components/CLW7FHWH.js +0 -4
  237. package/dist/arcgis-map-components/CSEA27MX.js +0 -4
  238. package/dist/arcgis-map-components/FTOHM6K7.js +0 -4
  239. package/dist/arcgis-map-components/G6CP2VYU.js +0 -4
  240. package/dist/arcgis-map-components/GHPCV4MN.js +0 -4
  241. package/dist/arcgis-map-components/GP5KXKC6.js +0 -4
  242. package/dist/arcgis-map-components/GUBVA4HI.js +0 -4
  243. package/dist/arcgis-map-components/H3QUUUNO.js +0 -4
  244. package/dist/arcgis-map-components/HNBQDWNV.js +0 -4
  245. package/dist/arcgis-map-components/IF6ICBVD.js +0 -4
  246. package/dist/arcgis-map-components/JDYFIYT3.js +0 -4
  247. package/dist/arcgis-map-components/JG6SSII2.js +0 -4
  248. package/dist/arcgis-map-components/JPFJWSQT.js +0 -4
  249. package/dist/arcgis-map-components/JY2BL6QD.js +0 -4
  250. package/dist/arcgis-map-components/LW4HCA3P.js +0 -4
  251. package/dist/arcgis-map-components/MCAPSEE3.js +0 -4
  252. package/dist/arcgis-map-components/MJBNTJRW.js +0 -4
  253. package/dist/arcgis-map-components/NAN3TPDO.js +0 -4
  254. package/dist/arcgis-map-components/NUF2ZXJB.js +0 -4
  255. package/dist/arcgis-map-components/OF62ZZDT.js +0 -4
  256. package/dist/arcgis-map-components/OODDLGXW.js +0 -4
  257. package/dist/arcgis-map-components/OUTOCGVP.js +0 -4
  258. package/dist/arcgis-map-components/PBYUEHJ2.js +0 -4
  259. package/dist/arcgis-map-components/QWBNGCQZ.js +0 -4
  260. package/dist/arcgis-map-components/QXH6QBCY.js +0 -4
  261. package/dist/arcgis-map-components/RLXPUR6U.js +0 -4
  262. package/dist/arcgis-map-components/S2QUE2PT.js +0 -4
  263. package/dist/arcgis-map-components/S3HVEU43.js +0 -4
  264. package/dist/arcgis-map-components/SBFEI7G7.js +0 -4
  265. package/dist/arcgis-map-components/SDIRYXNN.js +0 -4
  266. package/dist/arcgis-map-components/SDTEUQJF.js +0 -4
  267. package/dist/arcgis-map-components/SJ23WYPX.js +0 -4
  268. package/dist/arcgis-map-components/SM27BTYQ.js +0 -4
  269. package/dist/arcgis-map-components/SV37GYTZ.js +0 -4
  270. package/dist/arcgis-map-components/SZI3EYQQ.js +0 -4
  271. package/dist/arcgis-map-components/TRRQPVCK.js +0 -4
  272. package/dist/arcgis-map-components/UJJUHEQP.js +0 -4
  273. package/dist/arcgis-map-components/USOW5GMA.js +0 -4
  274. package/dist/arcgis-map-components/VCU3GSEE.js +0 -4
  275. package/dist/arcgis-map-components/VHDI7NKV.js +0 -4
  276. package/dist/arcgis-map-components/VIEKXUEC.js +0 -4
  277. package/dist/arcgis-map-components/VQUVK2Z4.js +0 -4
  278. package/dist/arcgis-map-components/VY2AN4QN.js +0 -4
  279. package/dist/arcgis-map-components/WCITYN6U.js +0 -4
  280. package/dist/arcgis-map-components/WOWZWSL5.js +0 -4
  281. package/dist/arcgis-map-components/WZIB63XY.js +0 -4
  282. package/dist/arcgis-map-components/XJ5ZDZD5.js +0 -4
  283. package/dist/arcgis-map-components/XKFVFNRT.js +0 -4
  284. package/dist/arcgis-map-components/XKY2Q5V6.js +0 -4
  285. package/dist/arcgis-map-components/ZANDAN6Q.js +0 -4
  286. package/dist/arcgis-map-components/ZD343J42.js +0 -4
@@ -1,16 +1,17 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
2
  /// <reference types="../../index.d.ts" />
3
- import { ArcgisReferenceElement } from '../../utils/component-utils';
4
- import { Nil } from '@arcgis/components-utils';
5
3
  import { Use } from '@arcgis/components-controllers';
4
+ import { Nil } from '@arcgis/components-utils';
5
+ import { default as DirectionalPadViewModel } from '@arcgis/core/widgets/DirectionalPad/DirectionalPadViewModel.js';
6
6
  import { JsxNode, ToElement, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
8
 
8
9
  declare const useDirectionalPadViewModel: (component: import('@arcgis/components-controllers').StencilLifecycles & {
9
10
  manager: import('@arcgis/components-controllers').ControllerManager;
10
11
  el: HTMLElement;
11
12
  autoDestroyDisabled?: boolean;
12
13
  destroy?: () => Promise<void>;
13
- } & Pick<__esri.DirectionalPadViewModel, never> & {
14
+ } & Pick<DirectionalPadViewModel, never> & {
14
15
  reactiveUtils?: typeof __esri.reactiveUtils;
15
16
  state?: "ready" | "disabled" | "moving" | undefined;
16
17
  icon: Nil | string;
@@ -25,13 +26,35 @@ declare const useDirectionalPadViewModel: (component: import('@arcgis/components
25
26
  childElem?: HTMLElement & {
26
27
  ownedBy?: HTMLElement;
27
28
  };
28
- view?: __esri.MapView | __esri.SceneView | undefined;
29
+ view
30
+ /**
31
+ * A directional pad (D-Pad) component can be used to control the position and
32
+ * rotation of the map. The D-Pad provides eight directions of movement, a small
33
+ * compass which indicates the current orientation of the map and a slider for
34
+ * rotating the map.
35
+ *
36
+ * It is also possible to disable the map's rotation controls or change the size
37
+ * of the component.
38
+ *
39
+ * The DirectionalPad component is not supported in 3d.
40
+ */
41
+ ? /**
42
+ * A directional pad (D-Pad) component can be used to control the position and
43
+ * rotation of the map. The D-Pad provides eight directions of movement, a small
44
+ * compass which indicates the current orientation of the map and a slider for
45
+ * rotating the map.
46
+ *
47
+ * It is also possible to disable the map's rotation controls or change the size
48
+ * of the component.
49
+ *
50
+ * The DirectionalPad component is not supported in 3d.
51
+ */: __esri.MapView | __esri.SceneView | undefined;
29
52
  };
30
53
  autoDestroyDisabled: boolean;
31
54
  destroy: () => Promise<void>;
32
55
  }, options?: {
33
56
  editConstructorProperties(props: unknown): unknown;
34
- } | undefined) => __esri.DirectionalPadViewModel;
57
+ } | undefined) => DirectionalPadViewModel;
35
58
  /**
36
59
  * A directional pad (D-Pad) component can be used to control the position and
37
60
  * rotation of the map. The D-Pad provides eight directions of movement, a small
@@ -1,17 +1,18 @@
1
1
  import { c as u } from "../../chunks/runtime.js";
2
2
  import { html as o } from "lit-html";
3
3
  import { ref as p } from "lit-html/directives/ref.js";
4
+ import { usePropertyChange as m } from "@arcgis/components-controllers";
5
+ import { focusElement as b } from "@arcgis/components-utils";
6
+ import { watch as g } from "@arcgis/core/core/reactiveUtils.js";
7
+ import _ from "@arcgis/core/widgets/DirectionalPad/DirectionalPadViewModel.js";
8
+ import { LitElement as v, createEvent as f, noShadowRoot as $, safeClassMap as n, nothing as l, safeStyleMap as w } from "@arcgis/lumina";
9
+ import { u as R, m as C } from "../../chunks/useViewModel.js";
4
10
  import { g as d } from "../../chunks/globalCss.js";
5
- import { u as m, m as b } from "../../chunks/useViewModel.js";
6
- import { focusElement as g } from "@arcgis/components-utils";
7
- import { load as v, usePropertyChange as _ } from "@arcgis/components-controllers";
8
- import { importCoreReactiveUtils as f, newWidgetsDirectionalPadDirectionalPadViewModel as $ } from "@arcgis/core-adapter";
9
- import { LitElement as w, createEvent as R, noShadowRoot as C, safeClassMap as a, nothing as l, safeStyleMap as x } from "@arcgis/lumina";
10
- import { css as y } from "@lit/reactive-element/css-tag.js";
11
+ import { css as x } from "@lit/reactive-element/css-tag.js";
11
12
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
13
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- v4.32.0-next.84 */
14
- const h = [-45, 0, 45, -90, 90, -135, 180, 135], M = {
14
+ v4.32.0-next.87 */
15
+ const h = [-45, 0, 45, -90, 90, -135, 180, 135], y = {
15
16
  0: { label: "north", iconName: "chevron-up" },
16
17
  45: { label: "northEast", iconName: "chevron-up-right" },
17
18
  90: { label: "east", iconName: "chevron-right" },
@@ -20,16 +21,16 @@ const h = [-45, 0, 45, -90, 90, -135, 180, 135], M = {
20
21
  "-135": { label: "southWest", iconName: "chevron-down-left" },
21
22
  "-90": { label: "west", iconName: "chevron-left" },
22
23
  "-45": { label: "northWest", iconName: "chevron-up-left" }
23
- }, n = "arcgis-directional-pad", s = {
24
- base: n,
25
- buttonsContainer: `${n}__buttons-container`,
26
- button: `${n}__button`,
27
- compassButton: `${n}__compass`,
28
- rotationContainer: `${n}__rotation-container`,
29
- rotationSliderContainer: `${n}__rotation-slider-container`,
30
- rotationReset: `${n}__rotation-reset-button`,
31
- error: `${n}__error`
32
- };
24
+ }, a = "arcgis-directional-pad", s = {
25
+ base: a,
26
+ buttonsContainer: `${a}__buttons-container`,
27
+ button: `${a}__button`,
28
+ compassButton: `${a}__compass`,
29
+ rotationContainer: `${a}__rotation-container`,
30
+ rotationSliderContainer: `${a}__rotation-slider-container`,
31
+ rotationReset: `${a}__rotation-reset-button`,
32
+ error: `${a}__error`
33
+ }, M = x`.arcgis-directional-pad{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);outline:none;box-shadow:none!important;background:transparent;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.arcgis-directional-pad__buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;--calcite-action-group-padding: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media (hover: none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.arcgis-directional-pad__rotation-container{display:block;width:100%;calcite-action{flex:.3}}.arcgis-directional-pad__rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`;
33
34
  function S(c) {
34
35
  const { x: t, y: e, width: i, height: r } = c.getBoundingClientRect();
35
36
  return { x: t + i / 2, y: e + r / 2 };
@@ -37,19 +38,19 @@ function S(c) {
37
38
  function B(c) {
38
39
  return c?.spatialReference?.isWebMercator || c?.spatialReference?.isGeographic || !1;
39
40
  }
40
- const E = y`.arcgis-directional-pad{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);outline:none;box-shadow:none!important;background:transparent;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.arcgis-directional-pad__buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;--calcite-action-group-padding: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media (hover: none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.arcgis-directional-pad__rotation-container{display:block;width:100%;calcite-action{flex:.3}}.arcgis-directional-pad__rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`, D = b($);
41
- class P extends w {
41
+ const E = C(_);
42
+ class D extends v {
42
43
  constructor() {
43
- super(...arguments), this.messages = m({}), this._onContextMenu = (t) => t.preventDefault(), this._buttons = {}, this.reactiveUtils = v(f), this.viewModel = D(this), this.angle = this.viewModel.angle, this.rotation = this.viewModel.rotation, this.autoDestroyDisabled = !1, this.disabled = this.viewModel.disabled, this.hideDirectionalButtons = !1, this.icon = "move", this.position = "bottom-left", this.showRotationResetButton = !1, this.showRotationSlider = !1, this.state = this.viewModel.state, this.visualScale = "s", this.arcgisPropertyChange = _()("state"), this.arcgisReady = R();
44
+ super(...arguments), this.messages = R({}), this._onContextMenu = (t) => t.preventDefault(), this._buttons = {}, this.viewModel = E(this), this.angle = this.viewModel.angle, this.rotation = this.viewModel.rotation, this.autoDestroyDisabled = !1, this.disabled = this.viewModel.disabled, this.hideDirectionalButtons = !1, this.icon = "move", this.position = "bottom-left", this.showRotationResetButton = !1, this.showRotationSlider = !1, this.state = this.viewModel.state, this.visualScale = "s", this.arcgisPropertyChange = m()("state"), this.arcgisReady = f();
44
45
  }
45
46
  static {
46
47
  this.properties = { _rotationEnabled: 16, angle: 16, rotation: 16, autoDestroyDisabled: 5, disabled: 5, hideDirectionalButtons: 5, icon: 3, label: 1, messageOverrides: 0, position: 3, referenceElement: 1, showRotationResetButton: 5, showRotationSlider: 5, state: 3, visualScale: 1 };
47
48
  }
48
49
  static {
49
- this.shadowRootOptions = C;
50
+ this.shadowRootOptions = $;
50
51
  }
51
52
  static {
52
- this.styles = E;
53
+ this.styles = M;
53
54
  }
54
55
  // #endregion
55
56
  // #region State Properties
@@ -71,8 +72,8 @@ class P extends w {
71
72
  loaded() {
72
73
  this.manager.onLifecycle(() => [
73
74
  // Move focus when movement angle changed by touch/mouse (not keyboard!)
74
- this.reactiveUtils.watch(() => this.viewModel.angle, () => {
75
- this._buttonsContainer?.contains(document.activeElement) && (this.viewModel.angle == null ? this.el.childElem?.focus() : g(this._buttons[this.viewModel.angle]));
75
+ g(() => this.viewModel.angle, () => {
76
+ this._buttonsContainer?.contains(document.activeElement) && (this.viewModel.angle == null ? this.el.childElem?.focus() : b(this._buttons[this.viewModel.angle]));
76
77
  })
77
78
  ]);
78
79
  }
@@ -120,10 +121,10 @@ class P extends w {
120
121
  // #region Rendering
121
122
  render() {
122
123
  const { label: t, disabled: e } = this, i = this.el.view == null || this.el.view.type === "2d";
123
- return o`<div .ariaLabel=${t ?? void 0} class=${a({ [s.base]: !0, [d.widget]: !0, [d.disabled]: e })} tabindex=-1>${i ? this._renderContent() : this._renderUnsupportedMessage()}</div>`;
124
+ return o`<div .ariaLabel=${t ?? void 0} class=${n({ [s.base]: !0, [d.widget]: !0, [d.disabled]: e })} tabindex=-1>${i ? this._renderContent() : this._renderUnsupportedMessage()}</div>`;
124
125
  }
125
126
  _renderUnsupportedMessage() {
126
- return o`<section class=${a(s.error)}><p>${this.messages.unsupported}</p></section>`;
127
+ return o`<section class=${n(s.error)}><p>${this.messages.unsupported}</p></section>`;
127
128
  }
128
129
  _renderContent() {
129
130
  return [
@@ -132,31 +133,31 @@ class P extends w {
132
133
  ];
133
134
  }
134
135
  _renderDirectionalButtons() {
135
- return o`<calcite-action-pad expand-disabled layout=grid><calcite-action-group class=${a(s.buttonsContainer)} dir=ltr @contextmenu=${{
136
+ return o`<calcite-action-pad expand-disabled layout=grid><calcite-action-group class=${n(s.buttonsContainer)} dir=ltr @contextmenu=${{
136
137
  handleEvent: this._onContextMenu,
137
138
  capture: !0
138
139
  }} ${p(this._setButtonContainerRef)}>${h.slice(0, 4).map(this._renderButton, this)}${this._renderCompass()}${h.slice(4).map(this._renderButton, this)}</calcite-action-group></calcite-action-pad>`;
139
140
  }
140
141
  _renderButton(t) {
141
- const { label: e, iconName: i } = M[t], r = this.messages[e];
142
- return o`<calcite-action .active=${this.angle === t} alignment=center class=${a(s.button)} data-angle=${t ?? l} .disabled=${this.disabled} @click=${this._onClick.bind(this, t)} @pointerdown=${this._onButtonPointerDown} .scale=${this.visualScale} .text=${r ?? ""} title=${r ?? l}><calcite-icon .icon=${i} .scale=${this.visualScale}></calcite-icon></calcite-action>`;
142
+ const { label: e, iconName: i } = y[t], r = this.messages[e];
143
+ return o`<calcite-action .active=${this.angle === t} alignment=center class=${n(s.button)} data-angle=${t ?? l} .disabled=${this.disabled} @click=${this._onClick.bind(this, t)} @pointerdown=${this._onButtonPointerDown} .scale=${this.visualScale} .text=${r ?? ""} title=${r ?? l}><calcite-icon .icon=${i} .scale=${this.visualScale}></calcite-icon></calcite-action>`;
143
144
  }
144
145
  _renderCompass() {
145
146
  const t = this.disabled || B(this.el.view) ? "compass-needle" : "arrow-up", e = this.rotation === 0, i = this.messages.resetHeading;
146
- return o`<calcite-action alignment=center class=${a(s.compassButton)} .disabled=${this.disabled || !this._rotationEnabled || e} @click=${this._onRotationReset} .scale=${this.visualScale} style=${x(this._rotateIcon(this.rotation))} .text=${i ?? ""} title=${i ?? l}>${!e && o`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>` || ""}</calcite-action>`;
147
+ return o`<calcite-action alignment=center class=${n(s.compassButton)} .disabled=${this.disabled || !this._rotationEnabled || e} @click=${this._onRotationReset} .scale=${this.visualScale} style=${w(this._rotateIcon(this.rotation))} .text=${i ?? ""} title=${i ?? l}>${!e && o`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>` || ""}</calcite-action>`;
147
148
  }
148
149
  _renderRotation() {
149
- return o`<calcite-action-pad expand-disabled layout=horizontal><calcite-action-group class=${a(s.rotationContainer)}>${this.showRotationResetButton ? this._renderRotationResetButton() : null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-pad>`;
150
+ return o`<calcite-action-pad expand-disabled layout=horizontal><calcite-action-group class=${n(s.rotationContainer)}>${this.showRotationResetButton ? this._renderRotationResetButton() : null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-pad>`;
150
151
  }
151
152
  _renderRotationResetButton() {
152
153
  const t = this.messages.resetHeading;
153
- return o`<calcite-action alignment=center class=${a(s.rotationReset)} .disabled=${this.disabled || !this._rotationEnabled} @click=${this._onRotationReset} .scale=${this.visualScale} .text=${t ?? ""} title=${t ?? l}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`;
154
+ return o`<calcite-action alignment=center class=${n(s.rotationReset)} .disabled=${this.disabled || !this._rotationEnabled} @click=${this._onRotationReset} .scale=${this.visualScale} .text=${t ?? ""} title=${t ?? l}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`;
154
155
  }
155
156
  _renderRotationSlider() {
156
- return o`<div class=${a(s.rotationSliderContainer)}><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled || !this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`;
157
+ return o`<div class=${n(s.rotationSliderContainer)}><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled || !this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`;
157
158
  }
158
159
  }
159
- u("arcgis-directional-pad", P);
160
+ u("arcgis-directional-pad", D);
160
161
  export {
161
- P as ArcgisDirectionalPad
162
+ D as ArcgisDirectionalPad
162
163
  };
@@ -1,17 +1,19 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
2
  /// <reference types="../../index.d.ts" />
3
- import { ArcgisReferenceElement } from '../../utils/component-utils';
4
3
  import { Use } from '@arcgis/components-controllers';
5
4
  import { Nil } from '@arcgis/components-utils';
5
+ import { default as RouteLayer } from '@arcgis/core/layers/RouteLayer.js';
6
+ import { default as Directions } from '@arcgis/core/widgets/Directions.js';
6
7
  import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
8
  import { PropertyValues } from 'lit';
9
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
8
10
 
9
11
  declare const useDirectionsWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
10
12
  manager: import('@arcgis/components-controllers').ControllerManager;
11
13
  el: HTMLElement;
12
14
  autoDestroyDisabled?: boolean;
13
15
  destroy?: () => Promise<void>;
14
- } & Pick<__esri.Directions, "label" | "viewModel" | "icon" | "headingLevel" | "layer" | "unit" | "apiKey" | "maxStops" | "searchProperties"> & {
16
+ } & Pick<Directions, never> & {
15
17
  reactiveUtils?: typeof __esri.reactiveUtils;
16
18
  state?: unknown;
17
19
  viewModel?: __esri.DirectionsViewModel | undefined;
@@ -32,12 +34,12 @@ declare const useDirectionsWidget: (component: import('@arcgis/components-contro
32
34
  autoDestroyDisabled: boolean;
33
35
  destroy: () => Promise<void>;
34
36
  }, options?: {
35
- editConstructorProperties(props: __esri.DirectionsProperties): __esri.DirectionsProperties | Promise<__esri.DirectionsProperties>;
36
- } | undefined) => __esri.Directions;
37
+ editConstructorProperties(props: __esri.DirectionsProperties | undefined): __esri.DirectionsProperties | Promise<__esri.DirectionsProperties | undefined> | undefined;
38
+ } | undefined) => Directions;
37
39
  /** [Directions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html) provides a way to calculate directions, between two or more input locations with a [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html), using ArcGIS Online and custom Network Analysis Route services.
38
40
  */
39
41
  export declare class ArcgisDirections extends LitElement {
40
- apiKey: string;
42
+ apiKey: string | nullish;
41
43
  /**
42
44
  * If true, the component will not be destroyed automatically when it is
43
45
  * disconnected from the document. This is useful when you want to move the
@@ -58,13 +60,13 @@ export declare class ArcgisDirections extends LitElement {
58
60
  icon: string;
59
61
  /** The component's default label. */
60
62
  label: string;
61
- readonly lastRoute: __esri.DirectionsLastRoute;
62
- layer: __esri.RouteLayer;
63
+ readonly lastRoute: nullish | __esri.DirectionsLastRoute;
64
+ layer: nullish | RouteLayer;
63
65
  maxStops: number;
64
66
  position: __esri.UIPosition;
65
67
  referenceElement: ArcgisReferenceElement | Nil | string;
66
68
  routeLayerItemId?: string;
67
- searchProperties: __esri.DirectionsSearchProperties;
69
+ searchProperties: nullish | __esri.DirectionsSearchProperties;
68
70
  readonly state: "ready" | "disabled" | "error" | "initializing" | "routing" | "unauthenticated";
69
71
  unit: __esri.SystemOrLengthUnit;
70
72
  useDefaultRouteLayer: boolean;
@@ -1,23 +1,24 @@
1
1
  import { c as a } from "../../chunks/runtime.js";
2
- import { newLayersRouteLayer as s, newWidgetsDirections as r } from "@arcgis/core-adapter";
3
- import { f as h } from "../../chunks/component-utils.js";
4
- import { usePropertyChange as n } from "@arcgis/components-controllers";
5
- import { m as d } from "../../chunks/useWidget.js";
6
- import { LitElement as l, createEvent as c, noShadowRoot as w } from "@arcgis/lumina";
2
+ import { usePropertyChange as r } from "@arcgis/components-controllers";
3
+ import o from "@arcgis/core/layers/RouteLayer.js";
4
+ import h from "@arcgis/core/widgets/Directions.js";
5
+ import { LitElement as n, createEvent as d, noShadowRoot as l } from "@arcgis/lumina";
6
+ import { m as w } from "../../chunks/useWidget.js";
7
+ import { f as m } from "../../chunks/component-utils.js";
7
8
  import { css as u } from "@lit/reactive-element/css-tag.js";
8
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
10
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.84 */
11
- const y = u`arcgis-directions{display:block}`, m = d(r), i = "map-components:arcgis-directions";
12
- class g extends l {
11
+ v4.32.0-next.87 */
12
+ const y = u`arcgis-directions{display:block}`, c = w(h), i = "map-components:arcgis-directions";
13
+ class g extends n {
13
14
  constructor() {
14
- super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, this.apiKey = this.widget.apiKey, this.autoDestroyDisabled = !1, this.headingLevel = this.widget.headingLevel, this.hideLayerDetails = this.widget.visibleElements.layerDetails, this.hideSaveAsButton = this.widget.visibleElements.saveAsButton, this.hideSaveButton = this.widget.visibleElements.saveButton, this.icon = this.widget.icon, this.label = this.widget.label, this.lastRoute = this.widget.lastRoute, this.layer = this.widget.layer, this.maxStops = this.widget.maxStops, this.position = "bottom-left", this.searchProperties = this.widget.searchProperties, this.state = this.viewModel.state, this.unit = this.widget.unit, this.useDefaultRouteLayer = !1, this.arcgisPropertyChange = n()("lastRoute", "state"), this.arcgisReady = c();
15
+ super(...arguments), this.widget = c(this), this.viewModel = this.widget.viewModel, this.apiKey = this.widget.apiKey, this.autoDestroyDisabled = !1, this.headingLevel = this.widget.headingLevel, this.hideLayerDetails = this.widget.visibleElements.layerDetails, this.hideSaveAsButton = this.widget.visibleElements.saveAsButton, this.hideSaveButton = this.widget.visibleElements.saveButton, this.icon = this.widget.icon, this.label = this.widget.label, this.lastRoute = this.widget.lastRoute, this.layer = this.widget.layer, this.maxStops = this.widget.maxStops, this.position = "bottom-left", this.searchProperties = this.widget.searchProperties, this.state = this.viewModel.state, this.unit = this.widget.unit, this.useDefaultRouteLayer = !1, this.arcgisPropertyChange = r()("lastRoute", "state"), this.arcgisReady = d();
15
16
  }
16
17
  static {
17
18
  this.properties = { apiKey: 1, autoDestroyDisabled: 5, headingLevel: 9, hideLayerDetails: 5, hideSaveAsButton: 5, hideSaveButton: 5, icon: 1, label: 1, lastRoute: 0, layer: 0, maxStops: 9, position: 1, referenceElement: 1, routeLayerItemId: 1, searchProperties: 0, state: 0, unit: 1, useDefaultRouteLayer: 5 };
18
19
  }
19
20
  static {
20
- this.shadowRootOptions = w;
21
+ this.shadowRootOptions = l;
21
22
  }
22
23
  static {
23
24
  this.styles = y;
@@ -38,10 +39,10 @@ class g extends l {
38
39
  throw new Error(`${i} - component not ready to save directions`);
39
40
  return await this.widget?.save();
40
41
  }
41
- async saveAs(t, e) {
42
+ async saveAs(e, t) {
42
43
  if (this.widget?.viewModel?.state !== "ready")
43
44
  throw new Error(`${i} - component not ready to save directions as a Portal Item`);
44
- return await this.widget?.saveAs(t, e);
45
+ return await this.widget?.saveAs(e, t);
45
46
  }
46
47
  async zoomToRoute() {
47
48
  if (this.widget?.viewModel?.state !== "ready")
@@ -50,26 +51,25 @@ class g extends l {
50
51
  }
51
52
  // #endregion
52
53
  // #region Lifecycle
53
- willUpdate(t) {
54
- if (t.has("routeLayerItemId")) {
55
- const e = this.routeLayerItemId;
56
- h(e) && !this.useDefaultRouteLayer ? (this.widget.view?.map.remove(this.layer), this._setDefaultLayer()) : e && this.widget && s({
54
+ willUpdate(e) {
55
+ if (e.has("routeLayerItemId")) {
56
+ const t = this.routeLayerItemId;
57
+ if (m(t) && !this.useDefaultRouteLayer) {
58
+ const { layer: s } = this;
59
+ s && this.widget.view?.map.remove(s), this._setDefaultLayer();
60
+ } else t && this.widget && (this.layer = new o({
57
61
  portalItem: {
58
- id: e
62
+ id: t
59
63
  }
60
- }).then((o) => {
61
- this.layer = o, this.widget.view?.map.add(this.layer);
62
- }).catch(console.error);
64
+ }), this.widget.view?.map.add(this.layer));
63
65
  }
64
- t.has("useDefaultRouteLayer") && this._setDefaultLayer();
66
+ e.has("useDefaultRouteLayer") && this._setDefaultLayer();
65
67
  }
66
68
  // #endregion
67
69
  // #region Private Methods
68
70
  /** Maintain a default route layer */
69
71
  _setDefaultLayer() {
70
- this.useDefaultRouteLayer && !this.routeLayerItemId && s({}).then((t) => {
71
- this.layer = t, this.widget.view?.map.add(this.layer);
72
- }).catch(console.error);
72
+ this.useDefaultRouteLayer && !this.routeLayerItemId && (this.layer = new o(), this.widget.view?.map.add(this.layer));
73
73
  }
74
74
  }
75
75
  a("arcgis-directions", g);
@@ -1,16 +1,17 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
2
  /// <reference types="../../index.d.ts" />
3
- import { ArcgisReferenceElement } from '../../utils/component-utils';
4
3
  import { Use } from '@arcgis/components-controllers';
5
4
  import { Nil } from '@arcgis/components-utils';
5
+ import { default as DirectLineMeasurement3D } from '@arcgis/core/widgets/DirectLineMeasurement3D.js';
6
6
  import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
8
 
8
9
  declare const useDirectLineMeasurement3dWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
9
10
  manager: import('@arcgis/components-controllers').ControllerManager;
10
11
  el: HTMLElement;
11
12
  autoDestroyDisabled?: boolean;
12
13
  destroy?: () => Promise<void>;
13
- } & Pick<__esri.DirectLineMeasurement3D, "label" | "viewModel" | "icon" | "analysis" | "unit" | "unitOptions"> & {
14
+ } & Pick<DirectLineMeasurement3D, never> & {
14
15
  reactiveUtils?: typeof __esri.reactiveUtils;
15
16
  state?: unknown;
16
17
  viewModel?: __esri.DirectLineMeasurement3DViewModel | undefined;
@@ -31,8 +32,8 @@ declare const useDirectLineMeasurement3dWidget: (component: import('@arcgis/comp
31
32
  autoDestroyDisabled: boolean;
32
33
  destroy: () => Promise<void>;
33
34
  }, options?: {
34
- editConstructorProperties(props: __esri.DirectLineMeasurement3DProperties): __esri.DirectLineMeasurement3DProperties | Promise<__esri.DirectLineMeasurement3DProperties>;
35
- } | undefined) => __esri.DirectLineMeasurement3D;
35
+ editConstructorProperties(props: __esri.DirectLineMeasurement3DProperties | undefined): __esri.DirectLineMeasurement3DProperties | Promise<__esri.DirectLineMeasurement3DProperties | undefined> | undefined;
36
+ } | undefined) => DirectLineMeasurement3D;
36
37
  /** [DirectLineMeasurement3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html) 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.
37
38
  */
38
39
  export declare class ArcgisDirectLineMeasurement3d extends LitElement {
@@ -1,22 +1,22 @@
1
1
  import { c as t } from "../../chunks/runtime.js";
2
- import { newWidgetsDirectLineMeasurement3D as e } from "@arcgis/core-adapter";
3
- import { usePropertyChange as i } from "@arcgis/components-controllers";
4
- import { m as s } from "../../chunks/useWidget.js";
5
- import { LitElement as a, createEvent as o, noShadowRoot as r } from "@arcgis/lumina";
2
+ import { usePropertyChange as e } from "@arcgis/components-controllers";
3
+ import i from "@arcgis/core/widgets/DirectLineMeasurement3D.js";
4
+ import { LitElement as s, createEvent as a, noShadowRoot as o } from "@arcgis/lumina";
5
+ import { m as r } from "../../chunks/useWidget.js";
6
6
  import { css as n } 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.32/esri/copyright.txt for details.
9
- v4.32.0-next.84 */
10
- const l = n`arcgis-directline-measurement-3d{display:block}`, c = s(e);
11
- class d extends a {
9
+ v4.32.0-next.87 */
10
+ const l = n`arcgis-directline-measurement-3d{display:block}`, c = r(i);
11
+ class d extends s {
12
12
  constructor() {
13
- super(...arguments), this.widget = c(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 = i()("analysis", "state"), this.arcgisReady = o();
13
+ super(...arguments), this.widget = c(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();
14
14
  }
15
15
  static {
16
16
  this.properties = { analysis: 0, autoDestroyDisabled: 5, icon: 1, label: 1, position: 1, referenceElement: 1, state: 3, unit: 1, unitOptions: 0 };
17
17
  }
18
18
  static {
19
- this.shadowRootOptions = r;
19
+ this.shadowRootOptions = o;
20
20
  }
21
21
  static {
22
22
  this.styles = l;
@@ -1,16 +1,17 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
2
  /// <reference types="../../index.d.ts" />
3
- import { ArcgisReferenceElement } from '../../utils/component-utils';
4
3
  import { Use } from '@arcgis/components-controllers';
5
4
  import { Nil } from '@arcgis/components-utils';
5
+ import { default as DistanceMeasurement2D } from '@arcgis/core/widgets/DistanceMeasurement2D.js';
6
6
  import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
8
 
8
9
  declare const useDistanceMeasurement2dWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
9
10
  manager: import('@arcgis/components-controllers').ControllerManager;
10
11
  el: HTMLElement;
11
12
  autoDestroyDisabled?: boolean;
12
13
  destroy?: () => Promise<void>;
13
- } & Pick<__esri.DistanceMeasurement2D, "label" | "viewModel" | "icon" | "unit" | "unitOptions"> & {
14
+ } & Pick<DistanceMeasurement2D, never> & {
14
15
  reactiveUtils?: typeof __esri.reactiveUtils;
15
16
  state?: unknown;
16
17
  viewModel?: __esri.DistanceMeasurement2DViewModel | undefined;
@@ -31,8 +32,8 @@ declare const useDistanceMeasurement2dWidget: (component: import('@arcgis/compon
31
32
  autoDestroyDisabled: boolean;
32
33
  destroy: () => Promise<void>;
33
34
  }, options?: {
34
- editConstructorProperties(props: __esri.DistanceMeasurement2DProperties): __esri.DistanceMeasurement2DProperties | Promise<__esri.DistanceMeasurement2DProperties>;
35
- } | undefined) => __esri.DistanceMeasurement2D;
35
+ editConstructorProperties(props: __esri.DistanceMeasurement2DProperties | undefined): __esri.DistanceMeasurement2DProperties | Promise<__esri.DistanceMeasurement2DProperties | undefined> | undefined;
36
+ } | undefined) => DistanceMeasurement2D;
36
37
  /** [DistanceMeasurement2D](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html) calculates and displays the distance between two or more points in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
37
38
  */
38
39
  export declare class ArcgisDistanceMeasurement2d extends LitElement {
@@ -1,22 +1,22 @@
1
1
  import { c as t } from "../../chunks/runtime.js";
2
- import { newWidgetsDistanceMeasurement2D as e } from "@arcgis/core-adapter";
3
- import { usePropertyChange as s } from "@arcgis/components-controllers";
4
- import { m as i } from "../../chunks/useWidget.js";
5
- import { LitElement as o, createEvent as a, noShadowRoot as r } from "@arcgis/lumina";
2
+ import { usePropertyChange as e } from "@arcgis/components-controllers";
3
+ import s from "@arcgis/core/widgets/DistanceMeasurement2D.js";
4
+ import { LitElement as i, createEvent as o, noShadowRoot as a } from "@arcgis/lumina";
5
+ import { m as r } from "../../chunks/useWidget.js";
6
6
  import { css as n } 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.32/esri/copyright.txt for details.
9
- v4.32.0-next.84 */
10
- const c = n`arcgis-distance-measurement-2d{display:block}`, m = i(e);
11
- class d extends o {
9
+ v4.32.0-next.87 */
10
+ const c = n`arcgis-distance-measurement-2d{display:block}`, m = r(s);
11
+ class d extends i {
12
12
  constructor() {
13
- super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, 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 = s()("state"), this.arcgisReady = a();
13
+ super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, 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()("state"), this.arcgisReady = o();
14
14
  }
15
15
  static {
16
16
  this.properties = { autoDestroyDisabled: 5, icon: 1, label: 1, position: 1, referenceElement: 1, state: 3, unit: 1, unitOptions: 0 };
17
17
  }
18
18
  static {
19
- this.shadowRootOptions = r;
19
+ this.shadowRootOptions = a;
20
20
  }
21
21
  static {
22
22
  this.styles = c;
@@ -1,16 +1,17 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
2
  /// <reference types="../../index.d.ts" />
3
- import { ArcgisReferenceElement } from '../../utils/component-utils';
4
3
  import { Use } from '@arcgis/components-controllers';
5
4
  import { Nil } from '@arcgis/components-utils';
5
+ import { default as Editor } from '@arcgis/core/widgets/Editor.js';
6
6
  import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
8
 
8
9
  declare const useEditorWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
9
10
  manager: import('@arcgis/components-controllers').ControllerManager;
10
11
  el: HTMLElement;
11
12
  autoDestroyDisabled?: boolean;
12
13
  destroy?: () => Promise<void>;
13
- } & Pick<__esri.Editor, "label" | "viewModel" | "icon" | "headingLevel" | "labelOptions" | "snappingOptions" | "tooltipOptions" | "layerInfos" | "allowedWorkflows" | "supportingWidgetDefaults"> & {
14
+ } & Pick<Editor, never> & {
14
15
  reactiveUtils?: typeof __esri.reactiveUtils;
15
16
  state?: unknown;
16
17
  viewModel?: __esri.EditorViewModel | undefined;
@@ -31,12 +32,12 @@ declare const useEditorWidget: (component: import('@arcgis/components-controller
31
32
  autoDestroyDisabled: boolean;
32
33
  destroy: () => Promise<void>;
33
34
  }, options?: {
34
- editConstructorProperties(props: __esri.EditorProperties): __esri.EditorProperties | Promise<__esri.EditorProperties>;
35
- } | undefined) => __esri.Editor;
35
+ editConstructorProperties(props: __esri.EditorProperties | undefined): __esri.EditorProperties | Promise<__esri.EditorProperties | undefined> | undefined;
36
+ } | undefined) => Editor;
36
37
  /** The [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) provides an out-of-the-box editing experience to help streamline editing within a web application.
37
38
  */
38
39
  export declare class ArcgisEditor extends LitElement {
39
- readonly activeWorkflow: __esri.CreateFeaturesWorkflow | __esri.UpdateWorkflow;
40
+ readonly activeWorkflow: nullish | __esri.CreateFeaturesWorkflow | __esri.UpdateWorkflow;
40
41
  allowedWorkflows: ("update" | "create-features" | "update-feature" | "update-table-record")[];
41
42
  /**
42
43
  * If true, the component will not be destroyed automatically when it is
@@ -47,14 +48,14 @@ export declare class ArcgisEditor extends LitElement {
47
48
  */
48
49
  autoDestroyDisabled: boolean;
49
50
  headingLevel: number;
50
- hideCreateFeaturesSection: boolean | undefined;
51
- hideEditFeaturesSection: boolean | undefined;
52
- hideLabelsToggle: boolean | undefined;
53
- hideSnappingControlsElementsEnabledToggle: boolean | undefined;
54
- hideSnappingControlsElementsFeatureEnabledToggle: boolean | undefined;
55
- hideSnappingControlsElementsLayerList: boolean | undefined;
56
- hideSnappingControlsElementsSelfEnabledToggle: boolean | undefined;
57
- hideTooltipsToggle: boolean | undefined;
51
+ hideCreateFeaturesSection: boolean;
52
+ hideEditFeaturesSection: boolean;
53
+ hideLabelsToggle: boolean;
54
+ hideSnappingControlsElementsEnabledToggle: boolean;
55
+ hideSnappingControlsElementsFeatureEnabledToggle: boolean;
56
+ hideSnappingControlsElementsLayerList: boolean;
57
+ hideSnappingControlsElementsSelfEnabledToggle: boolean;
58
+ hideTooltipsToggle: boolean;
58
59
  /**
59
60
  * Icon which represents the component.
60
61
  * Typically used when the component is controlled by another component (e.g. by the Expand component).
@@ -64,13 +65,13 @@ export declare class ArcgisEditor extends LitElement {
64
65
  /** The component's default label. */
65
66
  label: string;
66
67
  labelOptions: __esri.SketchLabelOptions;
67
- layerInfos: __esri.EditorLayerInfo[];
68
+ layerInfos: nullish | __esri.EditorLayerInfo[];
68
69
  position: __esri.UIPosition;
69
70
  referenceElement: ArcgisReferenceElement | Nil | string;
70
- showSnappingControlsElementsHeader: boolean | undefined;
71
+ showSnappingControlsElementsHeader: boolean;
71
72
  snappingOptions: __esri.SnappingOptions;
72
73
  readonly state: "ready" | "disabled" | "adding-attachment" | "awaiting-feature-creation-info" | "awaiting-feature-to-create" | "awaiting-feature-to-update" | "awaiting-update-feature-candidate" | "creating-features" | "editing-attributes" | "editing-attachment" | "editing-existing-feature" | "editing-new-feature";
73
- supportingWidgetDefaults: __esri.SupportingWidgetDefaults;
74
+ supportingWidgetDefaults: nullish | __esri.SupportingWidgetDefaults;
74
75
  tooltipOptions: __esri.SketchTooltipOptions;
75
76
  cancelWorkflow(): Promise<void>;
76
77
  deleteFeatureFromWorkflow(): Promise<void>;
@@ -1,22 +1,22 @@
1
1
  import { c as t } from "../../chunks/runtime.js";
2
- import { newWidgetsEditor as i } from "@arcgis/core-adapter";
3
- import { usePropertyChange as s } from "@arcgis/components-controllers";
4
- import { m as o } from "../../chunks/useWidget.js";
5
- import { LitElement as l, createEvent as a, noShadowRoot as n } from "@arcgis/lumina";
2
+ import { usePropertyChange as i } from "@arcgis/components-controllers";
3
+ import s from "@arcgis/core/widgets/Editor.js";
4
+ import { LitElement as o, createEvent as l, noShadowRoot as a } from "@arcgis/lumina";
5
+ import { m as n } 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.32/esri/copyright.txt for details.
9
- v4.32.0-next.84 */
10
- const d = r`arcgis-editor{display:block}`, g = o(i);
11
- class h extends l {
9
+ v4.32.0-next.87 */
10
+ const d = r`arcgis-editor{display:block}`, g = n(s);
11
+ class h extends o {
12
12
  constructor() {
13
- super(...arguments), this.widget = g(this), this.viewModel = this.widget.viewModel, this.activeWorkflow = this.widget.activeWorkflow, this.allowedWorkflows = this.widget.allowedWorkflows, this.autoDestroyDisabled = !1, this.headingLevel = this.widget.headingLevel, this.hideCreateFeaturesSection = this.widget.visibleElements.createFeaturesSection, this.hideEditFeaturesSection = this.widget.visibleElements.editFeaturesSection, this.hideLabelsToggle = this.widget.visibleElements.labelsToggle, this.hideSnappingControlsElementsEnabledToggle = this.widget.visibleElements.snappingControlsElements.enabledToggle, this.hideSnappingControlsElementsFeatureEnabledToggle = this.widget.visibleElements.snappingControlsElements.featureEnabledToggle, this.hideSnappingControlsElementsLayerList = this.widget.visibleElements.snappingControlsElements.layerList, this.hideSnappingControlsElementsSelfEnabledToggle = this.widget.visibleElements.snappingControlsElements.selfEnabledToggle, this.hideTooltipsToggle = this.widget.visibleElements.tooltipsToggle, this.icon = this.widget.icon, this.label = this.widget.label, this.labelOptions = this.widget.labelOptions, this.layerInfos = this.widget.layerInfos, this.position = "bottom-left", this.showSnappingControlsElementsHeader = this.widget.visibleElements.snappingControlsElements.header, this.snappingOptions = this.widget.snappingOptions, this.state = this.viewModel.state, this.supportingWidgetDefaults = this.widget.supportingWidgetDefaults, this.tooltipOptions = this.widget.tooltipOptions, this.arcgisPropertyChange = s()("activeWorkflow", "state"), this.arcgisReady = a();
13
+ super(...arguments), this.widget = g(this), this.viewModel = this.widget.viewModel, this.activeWorkflow = this.widget.activeWorkflow, this.allowedWorkflows = this.widget.allowedWorkflows, this.autoDestroyDisabled = !1, this.headingLevel = this.widget.headingLevel, this.hideCreateFeaturesSection = this.widget.visibleElements.createFeaturesSection, this.hideEditFeaturesSection = this.widget.visibleElements.editFeaturesSection, this.hideLabelsToggle = this.widget.visibleElements.labelsToggle, this.hideSnappingControlsElementsEnabledToggle = this.widget.visibleElements.snappingControlsElements.enabledToggle, this.hideSnappingControlsElementsFeatureEnabledToggle = this.widget.visibleElements.snappingControlsElements.featureEnabledToggle, this.hideSnappingControlsElementsLayerList = this.widget.visibleElements.snappingControlsElements.layerList, this.hideSnappingControlsElementsSelfEnabledToggle = this.widget.visibleElements.snappingControlsElements.selfEnabledToggle, this.hideTooltipsToggle = this.widget.visibleElements.tooltipsToggle, this.icon = this.widget.icon, this.label = this.widget.label, this.labelOptions = this.widget.labelOptions, this.layerInfos = this.widget.layerInfos, this.position = "bottom-left", this.showSnappingControlsElementsHeader = this.widget.visibleElements.snappingControlsElements.header, this.snappingOptions = this.widget.snappingOptions, this.state = this.viewModel.state, this.supportingWidgetDefaults = this.widget.supportingWidgetDefaults, this.tooltipOptions = this.widget.tooltipOptions, this.arcgisPropertyChange = i()("activeWorkflow", "state"), this.arcgisReady = l();
14
14
  }
15
15
  static {
16
16
  this.properties = { activeWorkflow: 0, allowedWorkflows: 0, autoDestroyDisabled: 5, headingLevel: 9, hideCreateFeaturesSection: 5, hideEditFeaturesSection: 5, hideLabelsToggle: 5, hideSnappingControlsElementsEnabledToggle: 5, hideSnappingControlsElementsFeatureEnabledToggle: 5, hideSnappingControlsElementsLayerList: 5, hideSnappingControlsElementsSelfEnabledToggle: 5, hideTooltipsToggle: 5, icon: 1, label: 1, labelOptions: 0, layerInfos: 0, position: 1, referenceElement: 1, showSnappingControlsElementsHeader: 5, snappingOptions: 0, state: 3, supportingWidgetDefaults: 0, tooltipOptions: 0 };
17
17
  }
18
18
  static {
19
- this.shadowRootOptions = n;
19
+ this.shadowRootOptions = a;
20
20
  }
21
21
  static {
22
22
  this.styles = d;