@arcgis/map-components 4.32.0-next.85 → 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 (274) 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/{HW7Z4CZB.js → 4ZIFQORV.js} +1 -1
  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/{DBPKJOYW.js → 7JPD33PS.js} +1 -1
  12. package/dist/arcgis-map-components/7WR7N6T3.js +4 -0
  13. package/dist/arcgis-map-components/{564KMD2H.js → A6QXV7MU.js} +2 -2
  14. package/dist/arcgis-map-components/AFIGXVQ3.js +4 -0
  15. package/dist/arcgis-map-components/{VHE6RZA2.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/{MDHKEFLL.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/{ERS4HX5J.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/{Z6JJJVA2.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/{FHOJWHL5.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/{LMOFB4IY.js → VOAP25R5.js} +2 -2
  64. package/dist/arcgis-map-components/{4GMWGCYP.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/{WZV3Y366.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 +1 -1
  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 +5 -4
  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 +37 -36
  91. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +5 -4
  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 +5 -4
  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 +5 -4
  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 +6 -5
  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 +7 -5
  110. package/dist/components/arcgis-directions/customElement.js +28 -31
  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 +5 -4
  116. package/dist/components/arcgis-editor/customElement.js +9 -9
  117. package/dist/components/arcgis-elevation-profile/customElement.d.ts +6 -11
  118. package/dist/components/arcgis-elevation-profile/customElement.js +9 -9
  119. package/dist/components/arcgis-expand/customElement.d.ts +5 -4
  120. package/dist/components/arcgis-expand/customElement.js +9 -9
  121. package/dist/components/arcgis-feature/customElement.d.ts +7 -14
  122. package/dist/components/arcgis-feature/customElement.js +8 -8
  123. package/dist/components/arcgis-feature-form/customElement.d.ts +6 -5
  124. package/dist/components/arcgis-feature-form/customElement.js +9 -9
  125. package/dist/components/arcgis-feature-table/customElement.d.ts +10 -9
  126. package/dist/components/arcgis-feature-table/customElement.js +17 -16
  127. package/dist/components/arcgis-feature-templates/customElement.d.ts +5 -4
  128. package/dist/components/arcgis-feature-templates/customElement.js +10 -10
  129. package/dist/components/arcgis-features/customElement.d.ts +5 -4
  130. package/dist/components/arcgis-features/customElement.js +6 -6
  131. package/dist/components/arcgis-floor-filter/customElement.d.ts +5 -4
  132. package/dist/components/arcgis-floor-filter/customElement.js +10 -10
  133. package/dist/components/arcgis-fullscreen/customElement.d.ts +4 -3
  134. package/dist/components/arcgis-fullscreen/customElement.js +11 -11
  135. package/dist/components/arcgis-histogram/customElement.d.ts +5 -4
  136. package/dist/components/arcgis-histogram/customElement.js +9 -9
  137. package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +5 -4
  138. package/dist/components/arcgis-histogram-range-slider/customElement.js +9 -9
  139. package/dist/components/arcgis-home/customElement.d.ts +6 -5
  140. package/dist/components/arcgis-home/customElement.js +12 -12
  141. package/dist/components/arcgis-layer-list/customElement.d.ts +5 -4
  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 +11 -9
  148. package/dist/components/arcgis-link-chart/customElement.js +27 -27
  149. package/dist/components/arcgis-locate/customElement.d.ts +5 -4
  150. package/dist/components/arcgis-locate/customElement.js +15 -15
  151. package/dist/components/arcgis-map/customElement.d.ts +10 -8
  152. package/dist/components/arcgis-map/customElement.js +27 -27
  153. package/dist/components/arcgis-measurement/customElement.d.ts +5 -4
  154. package/dist/components/arcgis-measurement/customElement.js +9 -9
  155. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +5 -4
  156. package/dist/components/arcgis-navigation-toggle/customElement.js +9 -9
  157. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +7 -6
  158. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +16 -17
  159. package/dist/components/arcgis-placement/customElement.js +1 -1
  160. package/dist/components/arcgis-print/customElement.d.ts +5 -4
  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 +39 -38
  164. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +5 -4
  165. package/dist/components/arcgis-scale-range-slider/customElement.js +12 -12
  166. package/dist/components/arcgis-scene/customElement.d.ts +10 -8
  167. package/dist/components/arcgis-scene/customElement.js +25 -25
  168. package/dist/components/arcgis-search/customElement.d.ts +5 -4
  169. package/dist/components/arcgis-search/customElement.js +8 -8
  170. package/dist/components/arcgis-shadow-cast/customElement.d.ts +5 -4
  171. package/dist/components/arcgis-shadow-cast/customElement.js +12 -12
  172. package/dist/components/arcgis-sketch/customElement.d.ts +7 -5
  173. package/dist/components/arcgis-sketch/customElement.js +11 -12
  174. package/dist/components/arcgis-slice/customElement.d.ts +5 -4
  175. package/dist/components/arcgis-slice/customElement.js +9 -9
  176. package/dist/components/arcgis-slider/customElement.d.ts +5 -4
  177. package/dist/components/arcgis-slider/customElement.js +9 -9
  178. package/dist/components/arcgis-swipe/customElement.d.ts +5 -4
  179. package/dist/components/arcgis-swipe/customElement.js +17 -17
  180. package/dist/components/arcgis-table-list/customElement.d.ts +15 -12
  181. package/dist/components/arcgis-table-list/customElement.js +6 -6
  182. package/dist/components/arcgis-time-slider/customElement.d.ts +5 -4
  183. package/dist/components/arcgis-time-slider/customElement.js +9 -9
  184. package/dist/components/arcgis-track/customElement.d.ts +5 -4
  185. package/dist/components/arcgis-track/customElement.js +15 -15
  186. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +6 -6
  187. package/dist/components/arcgis-utility-network-associations/customElement.js +2 -2
  188. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +1 -1
  189. package/dist/components/arcgis-utility-network-trace/customElement.js +7 -7
  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 +8 -8
  192. package/dist/components/arcgis-value-picker/customElement.d.ts +5 -4
  193. package/dist/components/arcgis-value-picker/customElement.js +9 -9
  194. package/dist/components/arcgis-version-management/customElement.d.ts +1 -1
  195. package/dist/components/arcgis-version-management/customElement.js +96 -97
  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.js +1 -1
  199. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  200. package/dist/components/arcgis-weather/customElement.d.ts +5 -4
  201. package/dist/components/arcgis-weather/customElement.js +9 -9
  202. package/dist/components/arcgis-zoom/customElement.d.ts +4 -3
  203. package/dist/components/arcgis-zoom/customElement.js +8 -8
  204. package/dist/controllers/useViewModel.d.ts +1 -1
  205. package/dist/controllers/useWidget.d.ts +2 -2
  206. package/dist/docs/api.json +304 -305
  207. package/dist/docs/docs.json +172 -172
  208. package/dist/docs/vscode.html-custom-data.json +133 -133
  209. package/dist/docs/web-types.json +303 -304
  210. package/dist/index.js +1 -1
  211. package/dist/loader.js +1 -1
  212. package/package.json +4 -5
  213. package/dist/arcgis-map-components/2TNEAZAF.js +0 -4
  214. package/dist/arcgis-map-components/32WNMGSE.js +0 -4
  215. package/dist/arcgis-map-components/35HPYV25.js +0 -4
  216. package/dist/arcgis-map-components/3LZI4V7A.js +0 -4
  217. package/dist/arcgis-map-components/44SXKBON.js +0 -4
  218. package/dist/arcgis-map-components/4OPF2YIS.js +0 -4
  219. package/dist/arcgis-map-components/5TMK2FY7.js +0 -4
  220. package/dist/arcgis-map-components/6ADYLVHO.js +0 -4
  221. package/dist/arcgis-map-components/6IUOO2CX.js +0 -4
  222. package/dist/arcgis-map-components/7XE2PHMN.js +0 -4
  223. package/dist/arcgis-map-components/AHJ77DDX.js +0 -4
  224. package/dist/arcgis-map-components/BO53EV22.js +0 -4
  225. package/dist/arcgis-map-components/CCYD3GJL.js +0 -4
  226. package/dist/arcgis-map-components/CF5DOP3R.js +0 -4
  227. package/dist/arcgis-map-components/CSHTSK3A.js +0 -4
  228. package/dist/arcgis-map-components/CZMG37KX.js +0 -4
  229. package/dist/arcgis-map-components/D727YOOX.js +0 -4
  230. package/dist/arcgis-map-components/DLEN4ORI.js +0 -4
  231. package/dist/arcgis-map-components/DWMEEDHE.js +0 -4
  232. package/dist/arcgis-map-components/DZF434YD.js +0 -4
  233. package/dist/arcgis-map-components/ELYTB4XJ.js +0 -4
  234. package/dist/arcgis-map-components/FRIJ3FSA.js +0 -4
  235. package/dist/arcgis-map-components/GAAOXAL6.js +0 -4
  236. package/dist/arcgis-map-components/HG2VALA3.js +0 -4
  237. package/dist/arcgis-map-components/HZNRXF47.js +0 -4
  238. package/dist/arcgis-map-components/IKGSM2C2.js +0 -4
  239. package/dist/arcgis-map-components/ITFN6HQK.js +0 -4
  240. package/dist/arcgis-map-components/IUDW2ZVM.js +0 -4
  241. package/dist/arcgis-map-components/IW775SZ3.js +0 -4
  242. package/dist/arcgis-map-components/IXPHHN4Z.js +0 -4
  243. package/dist/arcgis-map-components/J7HGN3TZ.js +0 -4
  244. package/dist/arcgis-map-components/JAQQBKX6.js +0 -4
  245. package/dist/arcgis-map-components/K6PW23T7.js +0 -4
  246. package/dist/arcgis-map-components/K77QPLOY.js +0 -4
  247. package/dist/arcgis-map-components/M6O6GD4O.js +0 -4
  248. package/dist/arcgis-map-components/MAMFUB2L.js +0 -4
  249. package/dist/arcgis-map-components/MP3QQQKU.js +0 -4
  250. package/dist/arcgis-map-components/MSOBY6NR.js +0 -4
  251. package/dist/arcgis-map-components/NCWZPEUO.js +0 -4
  252. package/dist/arcgis-map-components/NVIX6GNC.js +0 -4
  253. package/dist/arcgis-map-components/NYN35UXK.js +0 -4
  254. package/dist/arcgis-map-components/OMIYZ5A3.js +0 -4
  255. package/dist/arcgis-map-components/OYUYZKN2.js +0 -4
  256. package/dist/arcgis-map-components/PFRBRWGY.js +0 -4
  257. package/dist/arcgis-map-components/QBCARJYO.js +0 -4
  258. package/dist/arcgis-map-components/QCYDFQGT.js +0 -4
  259. package/dist/arcgis-map-components/QVOQDJ5B.js +0 -4
  260. package/dist/arcgis-map-components/R3AVBSDU.js +0 -4
  261. package/dist/arcgis-map-components/RBXK5JR3.js +0 -4
  262. package/dist/arcgis-map-components/S3H7IQQP.js +0 -4
  263. package/dist/arcgis-map-components/S76V3WVV.js +0 -4
  264. package/dist/arcgis-map-components/SI357SRE.js +0 -4
  265. package/dist/arcgis-map-components/SPVD3PYB.js +0 -4
  266. package/dist/arcgis-map-components/U6C4ZCMS.js +0 -4
  267. package/dist/arcgis-map-components/VIUD4NSE.js +0 -4
  268. package/dist/arcgis-map-components/VIVRU3Y4.js +0 -4
  269. package/dist/arcgis-map-components/VWEH2LWN.js +0 -4
  270. package/dist/arcgis-map-components/X7EWPPQH.js +0 -4
  271. package/dist/arcgis-map-components/YHASKKJ6.js +0 -4
  272. package/dist/arcgis-map-components/YK5CBUJC.js +0 -4
  273. package/dist/arcgis-map-components/YXSRE3F6.js +0 -4
  274. package/dist/arcgis-map-components/ZVNCPLXY.js +0 -4
@@ -1,17 +1,17 @@
1
1
  import { c as t } from "../../chunks/runtime.js";
2
2
  import { usePropertyChange as e } from "@arcgis/components-controllers";
3
- import { newWidgetsCatalogLayerList as i } from "@arcgis/core-adapter";
4
- import { m as s } from "../../chunks/useWidget.js";
3
+ import { reEmitEvent as i } from "@arcgis/components-controllers/accessor";
4
+ import s from "@arcgis/core/widgets/CatalogLayerList.js";
5
5
  import { LitElement as o, createEvent as a, noShadowRoot as l } from "@arcgis/lumina";
6
- import { reEmitEvent as r } from "@arcgis/components-controllers/accessor";
6
+ import { m as r } from "../../chunks/useWidget.js";
7
7
  import { css as h } from "@lit/reactive-element/css-tag.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.85 */
11
- const d = h`arcgis-catalog-layer-list{display:block}`, n = s(i);
10
+ v4.32.0-next.87 */
11
+ const d = h`arcgis-catalog-layer-list{display:block}`, n = r(s);
12
12
  class c extends o {
13
13
  constructor() {
14
- super(...arguments), this.widget = n(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.catalogLayer = this.widget.catalogLayer, this.collapsed = this.widget.collapsed, this.filterPlaceholder = this.widget.filterPlaceholder, this.filterPredicate = this.widget.filterPredicate, this.filterText = this.widget.filterText, this.headingLevel = this.widget.headingLevel, this.hideFlow = this.widget.visibleElements.flow, this.hideStatusIndicators = this.widget.visibleElements.statusIndicators, this.icon = this.widget.icon, this.label = this.widget.label, this.listItemCreatedFunction = this.widget.listItemCreatedFunction, this.minFilterItems = this.widget.minFilterItems, this.position = "bottom-left", this.selectedItems = this.widget.selectedItems, this.selectionMode = this.widget.selectionMode, this.showCloseButton = this.widget.visibleElements.closeButton, this.showCollapseButton = this.widget.visibleElements.collapseButton, this.showErrors = this.widget.visibleElements.errors, this.showFilter = this.widget.visibleElements.filter, this.showHeading = this.widget.visibleElements.heading, this.showTemporaryLayerIndicators = this.widget.visibleElements.temporaryLayerIndicators, this.state = this.viewModel.state, this.visibilityAppearance = this.widget.visibilityAppearance, this.arcgisPropertyChange = e()("state"), this.arcgisReady = a(), this.arcgisTriggerAction = r(() => this.widget, "trigger-action");
14
+ super(...arguments), this.widget = n(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.catalogLayer = this.widget.catalogLayer, this.collapsed = this.widget.collapsed, this.filterPlaceholder = this.widget.filterPlaceholder, this.filterPredicate = this.widget.filterPredicate, this.filterText = this.widget.filterText, this.headingLevel = this.widget.headingLevel, this.hideFlow = this.widget.visibleElements.flow, this.hideStatusIndicators = this.widget.visibleElements.statusIndicators, this.icon = this.widget.icon, this.label = this.widget.label, this.listItemCreatedFunction = this.widget.listItemCreatedFunction, this.minFilterItems = this.widget.minFilterItems, this.position = "bottom-left", this.selectedItems = this.widget.selectedItems, this.selectionMode = this.widget.selectionMode, this.showCloseButton = this.widget.visibleElements.closeButton, this.showCollapseButton = this.widget.visibleElements.collapseButton, this.showErrors = this.widget.visibleElements.errors, this.showFilter = this.widget.visibleElements.filter, this.showHeading = this.widget.visibleElements.heading, this.showTemporaryLayerIndicators = this.widget.visibleElements.temporaryLayerIndicators, this.state = this.viewModel.state, this.visibilityAppearance = this.widget.visibilityAppearance, this.arcgisPropertyChange = e()("state"), this.arcgisReady = a(), this.arcgisTriggerAction = i(() => this.widget, "trigger-action");
15
15
  }
16
16
  static {
17
17
  this.properties = { autoDestroyDisabled: 5, catalogItems: 32, catalogLayer: 0, collapsed: 7, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, hideFlow: 5, hideStatusIndicators: 5, icon: 1, label: 1, listItemCreatedFunction: 0, minFilterItems: 9, position: 1, referenceElement: 1, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, showTemporaryLayerIndicators: 5, state: 3, visibilityAppearance: 1 };
@@ -2,15 +2,16 @@
2
2
  /// <reference types="../../index.d.ts" />
3
3
  import { Use } from '@arcgis/components-controllers';
4
4
  import { Nil } from '@arcgis/components-utils';
5
- import { ArcgisReferenceElement } from '../../utils/component-utils';
5
+ import { default as CompassViewModel } from '@arcgis/core/widgets/Compass/CompassViewModel.js';
6
6
  import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
8
 
8
9
  declare const useCompassViewModel: (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.CompassViewModel, never> & {
14
+ } & Pick<CompassViewModel, never> & {
14
15
  reactiveUtils?: typeof __esri.reactiveUtils;
15
16
  state?: "rotation" | "disabled" | "compass" | undefined;
16
17
  icon: Nil | string;
@@ -31,7 +32,7 @@ declare const useCompassViewModel: (component: import('@arcgis/components-contro
31
32
  destroy: () => Promise<void>;
32
33
  }, options?: {
33
34
  editConstructorProperties(props: unknown): unknown;
34
- } | undefined) => __esri.CompassViewModel;
35
+ } | undefined) => CompassViewModel;
35
36
  /** The [Compass](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html) indicates where north is in relation to the current view [rotation](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation) or [camera heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading).
36
37
  */
37
38
  export declare class ArcgisCompass extends LitElement {
@@ -2,27 +2,27 @@ import { c } from "../../chunks/runtime.js";
2
2
  import { html as l } from "lit-html";
3
3
  import { usePropertyChange as m } from "@arcgis/components-controllers";
4
4
  import { classes as d } from "@arcgis/components-utils";
5
- import { newWidgetsCompassCompassViewModel as h } from "@arcgis/core-adapter";
6
- import { u as p, m as g } from "../../chunks/useViewModel.js";
7
- import { g as i } from "../../chunks/globalCss.js";
8
- import { LitElement as u, createEvent as f, noShadowRoot as w, safeClassMap as s, nothing as o, safeStyleMap as y } from "@arcgis/lumina";
5
+ import h from "@arcgis/core/widgets/Compass/CompassViewModel.js";
6
+ import { LitElement as p, createEvent as g, noShadowRoot as u, safeClassMap as s, nothing as i, safeStyleMap as f } from "@arcgis/lumina";
7
+ import { u as w, m as y } from "../../chunks/useViewModel.js";
8
+ import { g as o } from "../../chunks/globalCss.js";
9
9
  import { css as $ } from "@lit/reactive-element/css-tag.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- v4.32.0-next.85 */
12
+ v4.32.0-next.87 */
13
13
  const b = $`arcgis-compass{display:block}`, a = "esri-compass", r = {
14
14
  base: a,
15
15
  iconContainer: `${a}__icon-container`
16
- }, v = g(h);
17
- class C extends u {
16
+ }, v = y(h);
17
+ class C extends p {
18
18
  constructor() {
19
- super(...arguments), this.messages = p(), this.viewModel = v(this), this.autoDestroyDisabled = !1, this.orientation = this.viewModel.orientation, this.position = "top-left", this.state = this.viewModel.state, this.arcgisPropertyChange = m()("state", "orientation"), this.arcgisReady = f();
19
+ super(...arguments), this.messages = w(), this.viewModel = v(this), this.autoDestroyDisabled = !1, this.orientation = this.viewModel.orientation, this.position = "top-left", this.state = this.viewModel.state, this.arcgisPropertyChange = m()("state", "orientation"), this.arcgisReady = g();
20
20
  }
21
21
  static {
22
22
  this.properties = { autoDestroyDisabled: 5, icon: 3, label: 1, messageOverrides: 0, orientation: 0, position: 3, referenceElement: 1, state: 3 };
23
23
  }
24
24
  static {
25
- this.shadowRootOptions = w;
25
+ this.shadowRootOptions = u;
26
26
  }
27
27
  static {
28
28
  this.styles = b;
@@ -50,7 +50,7 @@ class C extends u {
50
50
  // #region Rendering
51
51
  render() {
52
52
  const { messages: t, icon: n } = this;
53
- return l`<div class=${s(d(r.base, i.widget))}><calcite-button class=${s(i.widgetButton)} .disabled=${this.state === "disabled"} kind=neutral .label=${t.reset} @click=${this._reset} round scale=s title=${t.reset ?? o}><div aria-hidden=true class=${s(r.iconContainer)} title=${t.reset ?? o}><calcite-icon .icon=${n} style=${y(M(this.orientation))}></calcite-icon></div></calcite-button></div>`;
53
+ return l`<div class=${s(d(r.base, o.widget))}><calcite-button class=${s(o.widgetButton)} .disabled=${this.state === "disabled"} kind=neutral .label=${t.reset} @click=${this._reset} round scale=s title=${t.reset ?? i}><div aria-hidden=true class=${s(r.iconContainer)} title=${t.reset ?? i}><calcite-icon .icon=${n} style=${f(M(this.orientation))}></calcite-icon></div></calcite-button></div>`;
54
54
  }
55
55
  }
56
56
  const M = (e) => ({
@@ -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 CoordinateConversion } from '@arcgis/core/widgets/CoordinateConversion.js';
6
6
  import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
8
 
8
9
  declare const useCoordinateConversionWidget: (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.CoordinateConversion, "orientation" | "label" | "viewModel" | "icon" | "mode" | "headingLevel" | "conversions" | "formats" | "locationSymbol" | "storageType"> & {
14
+ } & Pick<CoordinateConversion, never> & {
14
15
  reactiveUtils?: typeof __esri.reactiveUtils;
15
16
  state?: unknown;
16
17
  viewModel?: __esri.CoordinateConversionViewModel | undefined;
@@ -31,8 +32,8 @@ declare const useCoordinateConversionWidget: (component: import('@arcgis/compone
31
32
  autoDestroyDisabled: boolean;
32
33
  destroy: () => Promise<void>;
33
34
  }, options?: {
34
- editConstructorProperties(props: __esri.CoordinateConversionProperties): __esri.CoordinateConversionProperties | Promise<__esri.CoordinateConversionProperties>;
35
- } | undefined) => __esri.CoordinateConversion;
35
+ editConstructorProperties(props: __esri.CoordinateConversionProperties | undefined): __esri.CoordinateConversionProperties | Promise<__esri.CoordinateConversionProperties | undefined> | undefined;
36
+ } | undefined) => CoordinateConversion;
36
37
  /** [CoordinateConversion](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html) provides a way to display user cursor position either as map coordinates or as any of several popular coordinate notations. Additionally, the component provides a way to convert user input coordinates into a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
37
38
  */
38
39
  export declare class ArcgisCoordinateConversion extends LitElement {
@@ -45,7 +46,7 @@ export declare class ArcgisCoordinateConversion extends LitElement {
45
46
  */
46
47
  autoDestroyDisabled: boolean;
47
48
  conversions: __esri.Collection<__esri.Conversion>;
48
- readonly currentLocation: nullish | __esri.Point;
49
+ readonly currentLocation: __esri.Point | nullish;
49
50
  formats: __esri.Collection<__esri.Format>;
50
51
  headingLevel: number;
51
52
  hideCaptureButton: boolean | undefined;
@@ -1,22 +1,22 @@
1
1
  import { c as i } from "../../chunks/runtime.js";
2
- import { newWidgetsCoordinateConversion as s } from "@arcgis/core-adapter";
3
- import { usePropertyChange as o } from "@arcgis/components-controllers";
4
- import { m as n } from "../../chunks/useWidget.js";
5
- import { LitElement as r, createEvent as a, noShadowRoot as d } from "@arcgis/lumina";
2
+ import { usePropertyChange as s } from "@arcgis/components-controllers";
3
+ import o from "@arcgis/core/widgets/CoordinateConversion.js";
4
+ import { LitElement as n, createEvent as r, noShadowRoot as a } from "@arcgis/lumina";
5
+ 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.32/esri/copyright.txt for details.
9
- v4.32.0-next.85 */
10
- const l = h`arcgis-coordinate-conversion{display:block}`, c = n(s);
11
- class g extends r {
9
+ v4.32.0-next.87 */
10
+ const l = h`arcgis-coordinate-conversion{display:block}`, c = d(o);
11
+ class g extends n {
12
12
  constructor() {
13
- super(...arguments), this.widget = c(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.conversions = this.widget.conversions, this.currentLocation = this.widget.currentLocation, this.formats = this.widget.formats, this.headingLevel = this.widget.headingLevel, this.hideCaptureButton = this.widget.visibleElements.captureButton, this.hideEditButton = this.widget.visibleElements.editButton, this.hideExpandButton = this.widget.visibleElements.expandButton, this.hideSettingsButton = this.widget.visibleElements.settingsButton, this.icon = this.widget.icon, this.label = this.widget.label, this.locationSymbol = this.widget.locationSymbol, this.mode = this.widget.mode, this.multipleConversionsDisabled = this.widget.multipleConversions, this.orientation = this.widget.orientation, this.position = "bottom-left", this.state = this.viewModel.state, this.storageDisabled = this.widget.storageEnabled, this.storageType = this.widget.storageType, this.arcgisPropertyChange = o()("currentLocation", "state"), this.arcgisReady = a();
13
+ super(...arguments), this.widget = c(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.conversions = this.widget.conversions, this.currentLocation = this.widget.currentLocation, this.formats = this.widget.formats, this.headingLevel = this.widget.headingLevel, this.hideCaptureButton = this.widget.visibleElements.captureButton, this.hideEditButton = this.widget.visibleElements.editButton, this.hideExpandButton = this.widget.visibleElements.expandButton, this.hideSettingsButton = this.widget.visibleElements.settingsButton, this.icon = this.widget.icon, this.label = this.widget.label, this.locationSymbol = this.widget.locationSymbol, this.mode = this.widget.mode, this.multipleConversionsDisabled = this.widget.multipleConversions, this.orientation = this.widget.orientation, this.position = "bottom-left", this.state = this.viewModel.state, this.storageDisabled = this.widget.storageEnabled, this.storageType = this.widget.storageType, this.arcgisPropertyChange = s()("currentLocation", "state"), this.arcgisReady = r();
14
14
  }
15
15
  static {
16
16
  this.properties = { autoDestroyDisabled: 5, conversions: 0, currentLocation: 0, formats: 0, headingLevel: 9, hideCaptureButton: 5, hideEditButton: 5, hideExpandButton: 5, hideSettingsButton: 5, icon: 1, label: 1, locationSymbol: 0, mode: 1, multipleConversionsDisabled: 5, orientation: 1, position: 1, referenceElement: 1, state: 3, storageDisabled: 5, storageType: 1 };
17
17
  }
18
18
  static {
19
- this.shadowRootOptions = d;
19
+ this.shadowRootOptions = a;
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 Daylight } from '@arcgis/core/widgets/Daylight.js';
6
6
  import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
+ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
8
 
8
9
  declare const useDaylightWidget: (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.Daylight, "label" | "viewModel" | "icon" | "headingLevel" | "dateOrSeason" | "playSpeedMultiplier" | "timeSliderSteps"> & {
14
+ } & Pick<Daylight, never> & {
14
15
  reactiveUtils?: typeof __esri.reactiveUtils;
15
16
  state?: unknown;
16
17
  viewModel?: __esri.DaylightViewModel | undefined;
@@ -31,8 +32,8 @@ declare const useDaylightWidget: (component: import('@arcgis/components-controll
31
32
  autoDestroyDisabled: boolean;
32
33
  destroy: () => Promise<void>;
33
34
  }, options?: {
34
- editConstructorProperties(props: __esri.DaylightProperties): __esri.DaylightProperties | Promise<__esri.DaylightProperties>;
35
- } | undefined) => __esri.Daylight;
35
+ editConstructorProperties(props: __esri.DaylightProperties | undefined): __esri.DaylightProperties | Promise<__esri.DaylightProperties | undefined> | undefined;
36
+ } | undefined) => Daylight;
36
37
  /** [Daylight](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html) can be used to manipulate the lighting conditions of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
37
38
  */
38
39
  export declare class ArcgisDaylight extends LitElement {
@@ -1,21 +1,21 @@
1
1
  import { c as e } from "../../chunks/runtime.js";
2
- import { newWidgetsDaylight as i } from "@arcgis/core-adapter";
3
- import { m as t } from "../../chunks/useWidget.js";
4
- import { LitElement as s, createEvent as a, noShadowRoot as l } from "@arcgis/lumina";
2
+ import i from "@arcgis/core/widgets/Daylight.js";
3
+ import { LitElement as t, createEvent as s, noShadowRoot as a } from "@arcgis/lumina";
4
+ import { m as l } from "../../chunks/useWidget.js";
5
5
  import { css as h } from "@lit/reactive-element/css-tag.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- v4.32.0-next.85 */
9
- const o = h`arcgis-daylight{display:block}`, d = t(i);
10
- class n extends s {
8
+ v4.32.0-next.87 */
9
+ const o = h`arcgis-daylight{display:block}`, d = l(i);
10
+ class n extends t {
11
11
  constructor() {
12
- super(...arguments), this.widget = d(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.currentSeason = this.viewModel.currentSeason, this.dateOrSeason = this.widget.dateOrSeason, this.dayPlaying = this.viewModel.dayPlaying, this.headingLevel = this.widget.headingLevel, this.hideDatePicker = this.widget.visibleElements.datePicker, this.hideHeader = this.widget.visibleElements.header, this.hidePlayButtons = this.widget.visibleElements.playButtons, this.hideShadowsToggle = this.widget.visibleElements.shadowsToggle, this.hideSunLightingToggle = this.widget.visibleElements.sunLightingToggle, this.hideTimezone = this.widget.visibleElements.timezone, this.icon = this.widget.icon, this.label = this.widget.label, this.playSpeedMultiplier = this.widget.playSpeedMultiplier, this.position = "bottom-left", this.timeSliderSteps = this.widget.timeSliderSteps, this.yearPlaying = this.viewModel.yearPlaying, this.arcgisReady = a();
12
+ super(...arguments), this.widget = d(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.currentSeason = this.viewModel.currentSeason, this.dateOrSeason = this.widget.dateOrSeason, this.dayPlaying = this.viewModel.dayPlaying, this.headingLevel = this.widget.headingLevel, this.hideDatePicker = this.widget.visibleElements.datePicker, this.hideHeader = this.widget.visibleElements.header, this.hidePlayButtons = this.widget.visibleElements.playButtons, this.hideShadowsToggle = this.widget.visibleElements.shadowsToggle, this.hideSunLightingToggle = this.widget.visibleElements.sunLightingToggle, this.hideTimezone = this.widget.visibleElements.timezone, this.icon = this.widget.icon, this.label = this.widget.label, this.playSpeedMultiplier = this.widget.playSpeedMultiplier, this.position = "bottom-left", this.timeSliderSteps = this.widget.timeSliderSteps, this.yearPlaying = this.viewModel.yearPlaying, this.arcgisReady = s();
13
13
  }
14
14
  static {
15
15
  this.properties = { autoDestroyDisabled: 5, currentSeason: 1, dateOrSeason: 1, dayPlaying: 5, headingLevel: 9, hideDatePicker: 5, hideHeader: 5, hidePlayButtons: 5, hideShadowsToggle: 5, hideSunLightingToggle: 5, hideTimezone: 5, icon: 1, label: 1, playSpeedMultiplier: 9, position: 1, referenceElement: 1, timeSliderSteps: 9, yearPlaying: 5 };
16
16
  }
17
17
  static {
18
- this.shadowRootOptions = l;
18
+ this.shadowRootOptions = a;
19
19
  }
20
20
  static {
21
21
  this.styles = o;
@@ -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.85 */
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,8 +34,8 @@ 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 {
@@ -59,7 +61,7 @@ export declare class ArcgisDirections extends LitElement {
59
61
  /** The component's default label. */
60
62
  label: string;
61
63
  readonly lastRoute: nullish | __esri.DirectionsLastRoute;
62
- layer: nullish | __esri.RouteLayer;
64
+ layer: nullish | RouteLayer;
63
65
  maxStops: number;
64
66
  position: __esri.UIPosition;
65
67
  referenceElement: ArcgisReferenceElement | Nil | string;
@@ -1,23 +1,24 @@
1
1
  import { c as a } from "../../chunks/runtime.js";
2
- import { newLayersRouteLayer as o, 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.85 */
11
- const y = u`arcgis-directions{display:block}`, m = d(r), s = "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;
@@ -30,49 +31,45 @@ class g extends l {
30
31
  }
31
32
  async getDirections() {
32
33
  if (this.widget?.viewModel?.state !== "ready")
33
- throw new Error(`${s} - component not ready to get directions`);
34
+ throw new Error(`${i} - component not ready to get directions`);
34
35
  return await this.widget?.getDirections();
35
36
  }
36
37
  async save() {
37
38
  if (this.widget?.viewModel?.state !== "ready")
38
- throw new Error(`${s} - component not ready to save directions`);
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
- throw new Error(`${s} - component not ready to save directions as a Portal Item`);
44
- return await this.widget?.saveAs(t, e);
44
+ throw new Error(`${i} - component not ready to save directions as a Portal Item`);
45
+ return await this.widget?.saveAs(e, t);
45
46
  }
46
47
  async zoomToRoute() {
47
48
  if (this.widget?.viewModel?.state !== "ready")
48
- throw new Error(`${s} - component not ready to zoom to route`);
49
+ throw new Error(`${i} - component not ready to zoom to route`);
49
50
  this.widget?.zoomToRoute();
50
51
  }
51
52
  // #endregion
52
53
  // #region Lifecycle
53
- willUpdate(t) {
54
- if (t.has("routeLayerItemId")) {
55
- const e = this.routeLayerItemId;
56
- if (h(e) && !this.useDefaultRouteLayer) {
57
- const { layer: i } = this;
58
- i && this.widget.view?.map.remove(i), this._setDefaultLayer();
59
- } else e && this.widget && o({
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({
60
61
  portalItem: {
61
- id: e
62
+ id: t
62
63
  }
63
- }).then((i) => {
64
- this.layer = i, this.widget.view?.map.add(this.layer);
65
- }).catch(console.error);
64
+ }), this.widget.view?.map.add(this.layer));
66
65
  }
67
- t.has("useDefaultRouteLayer") && this._setDefaultLayer();
66
+ e.has("useDefaultRouteLayer") && this._setDefaultLayer();
68
67
  }
69
68
  // #endregion
70
69
  // #region Private Methods
71
70
  /** Maintain a default route layer */
72
71
  _setDefaultLayer() {
73
- this.useDefaultRouteLayer && !this.routeLayerItemId && o({}).then((t) => {
74
- this.layer = t, this.widget.view?.map.add(this.layer);
75
- }).catch(console.error);
72
+ this.useDefaultRouteLayer && !this.routeLayerItemId && (this.layer = new o(), this.widget.view?.map.add(this.layer));
76
73
  }
77
74
  }
78
75
  a("arcgis-directions", g);