@arcgis/map-components 4.29.0-beta.3 → 4.29.0-beta.30

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 (346) hide show
  1. package/{readme.md → README.md} +1 -1
  2. package/dist/arcgis-map-components/arcgis-map-components.esm.js +1 -1
  3. package/dist/arcgis-map-components/p-0076e605.entry.js +1 -0
  4. package/dist/arcgis-map-components/p-009f057c.entry.js +1 -0
  5. package/dist/arcgis-map-components/p-0127ffba.entry.js +1 -0
  6. package/dist/arcgis-map-components/{p-620959fc.js → p-01e1a2e1.js} +1 -1
  7. package/dist/arcgis-map-components/p-0bb43cd0.entry.js +1 -0
  8. package/dist/arcgis-map-components/p-0d1cd2e8.entry.js +1 -0
  9. package/dist/arcgis-map-components/p-0f14ea76.entry.js +1 -0
  10. package/dist/arcgis-map-components/p-0fcaa85d.entry.js +1 -0
  11. package/dist/arcgis-map-components/p-0fdf755a.entry.js +1 -0
  12. package/dist/arcgis-map-components/p-10572d2b.entry.js +1 -0
  13. package/dist/arcgis-map-components/p-12a52958.entry.js +1 -0
  14. package/dist/arcgis-map-components/p-149ebf01.entry.js +1 -0
  15. package/dist/arcgis-map-components/p-20df3c4e.entry.js +1 -0
  16. package/dist/arcgis-map-components/p-24a675dd.entry.js +1 -0
  17. package/dist/arcgis-map-components/p-2f2e72ee.entry.js +1 -0
  18. package/dist/arcgis-map-components/p-300406b2.entry.js +1 -0
  19. package/dist/arcgis-map-components/p-362072b4.entry.js +1 -0
  20. package/dist/arcgis-map-components/p-3bff45a4.entry.js +1 -0
  21. package/dist/arcgis-map-components/p-4677414a.entry.js +1 -0
  22. package/dist/arcgis-map-components/p-4c57ff19.entry.js +1 -0
  23. package/dist/arcgis-map-components/p-4da9380f.entry.js +1 -0
  24. package/dist/arcgis-map-components/p-4e46d4c9.entry.js +1 -0
  25. package/dist/arcgis-map-components/p-5128f95d.entry.js +1 -0
  26. package/dist/arcgis-map-components/p-5bf9cd80.entry.js +1 -0
  27. package/dist/arcgis-map-components/p-5fc3de02.entry.js +1 -0
  28. package/dist/arcgis-map-components/p-61a2aad6.entry.js +1 -0
  29. package/dist/arcgis-map-components/p-6d23feca.entry.js +1 -0
  30. package/dist/arcgis-map-components/p-7abd0a2e.js +1 -0
  31. package/dist/arcgis-map-components/p-8691e75d.entry.js +1 -0
  32. package/dist/arcgis-map-components/p-88368469.entry.js +1 -0
  33. package/dist/arcgis-map-components/p-89d6dbd8.entry.js +1 -0
  34. package/dist/arcgis-map-components/p-8c600310.entry.js +1 -0
  35. package/dist/arcgis-map-components/p-96b91396.entry.js +1 -0
  36. package/dist/arcgis-map-components/p-a3f21e98.entry.js +1 -0
  37. package/dist/arcgis-map-components/p-a584465f.entry.js +1 -0
  38. package/dist/arcgis-map-components/p-ab8aabdd.entry.js +1 -0
  39. package/dist/arcgis-map-components/p-ab913166.entry.js +1 -0
  40. package/dist/arcgis-map-components/p-ac581e44.entry.js +1 -0
  41. package/dist/arcgis-map-components/p-af78f7b8.js +1 -0
  42. package/dist/arcgis-map-components/p-b1269a65.entry.js +1 -0
  43. package/dist/arcgis-map-components/p-b2eba29e.entry.js +1 -0
  44. package/dist/arcgis-map-components/p-b9195a9c.entry.js +1 -0
  45. package/dist/arcgis-map-components/p-b9c68beb.entry.js +1 -0
  46. package/dist/arcgis-map-components/p-be3c8618.entry.js +1 -0
  47. package/dist/arcgis-map-components/p-ccc17e7b.entry.js +1 -0
  48. package/dist/arcgis-map-components/p-ccfa2c32.entry.js +1 -0
  49. package/dist/arcgis-map-components/p-d59a24e9.entry.js +1 -0
  50. package/dist/arcgis-map-components/p-da88cac1.entry.js +1 -0
  51. package/dist/arcgis-map-components/p-e1665f38.entry.js +1 -0
  52. package/dist/arcgis-map-components/p-e6f8ae2b.entry.js +1 -0
  53. package/dist/arcgis-map-components/p-e9c3edb0.entry.js +1 -0
  54. package/dist/arcgis-map-components/p-ed9f6cfa.js +2 -0
  55. package/dist/arcgis-map-components/p-f55b57a8.entry.js +1 -0
  56. package/dist/arcgis-map-components/p-f6a6f495.entry.js +1 -0
  57. package/dist/arcgis-map-components/p-fa328109.entry.js +1 -0
  58. package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +9 -8
  59. package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +7 -6
  60. package/dist/cjs/arcgis-attachments.cjs.entry.js +6 -5
  61. package/dist/cjs/arcgis-basemap-gallery.cjs.entry.js +9 -8
  62. package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +17 -16
  63. package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +11 -10
  64. package/dist/cjs/arcgis-bookmarks.cjs.entry.js +9 -8
  65. package/dist/cjs/arcgis-building-explorer.cjs.entry.js +7 -6
  66. package/dist/cjs/arcgis-compass.cjs.entry.js +7 -6
  67. package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +9 -8
  68. package/dist/cjs/arcgis-daylight.cjs.entry.js +7 -6
  69. package/dist/cjs/arcgis-directions.cjs.entry.js +22 -10
  70. package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +9 -8
  71. package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +7 -6
  72. package/dist/cjs/arcgis-editor.cjs.entry.js +9 -8
  73. package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +7 -6
  74. package/dist/cjs/arcgis-expand_4.cjs.entry.js +334 -554
  75. package/dist/cjs/arcgis-feature-form.cjs.entry.js +5 -4
  76. package/dist/cjs/arcgis-feature-table.cjs.entry.js +314 -0
  77. package/dist/cjs/arcgis-feature-templates.cjs.entry.js +7 -6
  78. package/dist/cjs/arcgis-feature.cjs.entry.js +7 -6
  79. package/dist/cjs/arcgis-features.cjs.entry.js +13 -12
  80. package/dist/cjs/arcgis-floor-filter.cjs.entry.js +7 -6
  81. package/dist/cjs/arcgis-fullscreen.cjs.entry.js +7 -6
  82. package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +7 -6
  83. package/dist/cjs/arcgis-histogram.cjs.entry.js +5 -4
  84. package/dist/cjs/arcgis-home.cjs.entry.js +7 -6
  85. package/dist/cjs/arcgis-layer-list.cjs.entry.js +9 -8
  86. package/dist/cjs/arcgis-legend.cjs.entry.js +7 -6
  87. package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +9 -8
  88. package/dist/cjs/arcgis-locate.cjs.entry.js +7 -6
  89. package/dist/cjs/arcgis-map-components.cjs.js +2 -2
  90. package/dist/cjs/arcgis-measurement.cjs.entry.js +9 -8
  91. package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +7 -6
  92. package/dist/cjs/arcgis-print.cjs.entry.js +9 -8
  93. package/dist/cjs/arcgis-scale-bar.cjs.entry.js +7 -6
  94. package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +7 -6
  95. package/dist/cjs/arcgis-search.cjs.entry.js +277 -0
  96. package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +7 -6
  97. package/dist/cjs/arcgis-sketch.cjs.entry.js +13 -12
  98. package/dist/cjs/arcgis-slice.cjs.entry.js +9 -8
  99. package/dist/cjs/arcgis-slider.cjs.entry.js +23 -22
  100. package/dist/cjs/arcgis-swipe.cjs.entry.js +7 -6
  101. package/dist/cjs/arcgis-table-list.cjs.entry.js +9 -8
  102. package/dist/cjs/arcgis-time-slider.cjs.entry.js +9 -8
  103. package/dist/cjs/arcgis-track.cjs.entry.js +9 -8
  104. package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +7 -6
  105. package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +7 -6
  106. package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +7 -6
  107. package/dist/cjs/arcgis-value-picker.cjs.entry.js +13 -12
  108. package/dist/cjs/arcgis-weather.cjs.entry.js +7 -6
  109. package/dist/cjs/arcgis-zoom.cjs.entry.js +7 -6
  110. package/dist/cjs/{component-utils-cbd20e88.js → component-utils-54ae1d40.js} +29 -3
  111. package/dist/cjs/{disconnected-306cb220.js → disconnected-86c5cc08.js} +11 -3
  112. package/dist/cjs/{index-6b51d5a0.js → index-b9b7643c.js} +385 -8
  113. package/dist/cjs/loader.cjs.js +2 -2
  114. package/dist/components/arcgis-area-measurement-2d.js +8 -6
  115. package/dist/components/arcgis-area-measurement-3d.js +6 -4
  116. package/dist/components/arcgis-attachments.js +6 -4
  117. package/dist/components/arcgis-basemap-gallery.js +8 -6
  118. package/dist/components/arcgis-basemap-layer-list.js +16 -14
  119. package/dist/components/arcgis-basemap-toggle.js +10 -8
  120. package/dist/components/arcgis-bookmarks.js +8 -6
  121. package/dist/components/arcgis-building-explorer.js +6 -4
  122. package/dist/components/arcgis-compass.js +5 -3
  123. package/dist/components/arcgis-coordinate-conversion.js +8 -6
  124. package/dist/components/arcgis-daylight.js +6 -4
  125. package/dist/components/arcgis-directions.js +21 -8
  126. package/dist/components/arcgis-directline-measurement-3d.js +8 -6
  127. package/dist/components/arcgis-distance-measurement-2d.js +6 -4
  128. package/dist/components/arcgis-editor.js +8 -6
  129. package/dist/components/arcgis-elevation-profile.js +6 -4
  130. package/dist/components/arcgis-expand.js +1 -1
  131. package/dist/components/arcgis-feature-form.js +3 -2
  132. package/dist/components/arcgis-feature-table.js +22 -14
  133. package/dist/components/arcgis-feature-templates.js +6 -4
  134. package/dist/components/arcgis-feature.js +6 -4
  135. package/dist/components/arcgis-features.js +12 -10
  136. package/dist/components/arcgis-floor-filter.js +6 -4
  137. package/dist/components/arcgis-fullscreen.js +5 -3
  138. package/dist/components/arcgis-histogram-range-slider.js +6 -4
  139. package/dist/components/arcgis-histogram.js +3 -2
  140. package/dist/components/arcgis-home.js +5 -3
  141. package/dist/components/arcgis-layer-list.js +8 -6
  142. package/dist/components/arcgis-legend.js +6 -4
  143. package/dist/components/arcgis-line-of-sight.js +8 -6
  144. package/dist/components/arcgis-locate.js +5 -3
  145. package/dist/components/arcgis-map.js +107 -35
  146. package/dist/components/arcgis-measurement.js +8 -6
  147. package/dist/components/arcgis-navigation-toggle.js +5 -3
  148. package/dist/components/arcgis-placement.d.ts +11 -0
  149. package/dist/components/arcgis-placement.js +68 -0
  150. package/dist/components/arcgis-print.js +8 -6
  151. package/dist/components/arcgis-scale-bar.js +6 -4
  152. package/dist/components/arcgis-scale-range-slider.js +6 -4
  153. package/dist/components/arcgis-scene.js +106 -29
  154. package/dist/components/arcgis-search.js +20 -18
  155. package/dist/components/arcgis-shadow-cast.js +6 -4
  156. package/dist/components/arcgis-sketch.js +12 -10
  157. package/dist/components/arcgis-slice.js +8 -6
  158. package/dist/components/arcgis-slider.js +22 -20
  159. package/dist/components/arcgis-swipe.js +5 -3
  160. package/dist/components/arcgis-table-list.js +8 -6
  161. package/dist/components/arcgis-time-slider.js +8 -6
  162. package/dist/components/arcgis-track.js +7 -5
  163. package/dist/components/arcgis-utility-network-associations.js +6 -4
  164. package/dist/components/arcgis-utility-network-trace.js +6 -4
  165. package/dist/components/arcgis-utility-network-validate-topology.js +6 -4
  166. package/dist/components/arcgis-value-picker.js +12 -10
  167. package/dist/components/arcgis-weather.js +6 -4
  168. package/dist/components/arcgis-zoom.js +5 -3
  169. package/dist/components/component-utils.js +119 -0
  170. package/dist/components/disconnected.js +11 -97
  171. package/dist/components/{arcgis-expand2.js → expand.js} +6 -3
  172. package/dist/components/index.d.ts +54 -53
  173. package/dist/components/index.js +1 -0
  174. package/dist/esm/arcgis-area-measurement-2d.entry.js +9 -8
  175. package/dist/esm/arcgis-area-measurement-3d.entry.js +7 -6
  176. package/dist/esm/arcgis-attachments.entry.js +6 -5
  177. package/dist/esm/arcgis-basemap-gallery.entry.js +9 -8
  178. package/dist/esm/arcgis-basemap-layer-list.entry.js +17 -16
  179. package/dist/esm/arcgis-basemap-toggle.entry.js +11 -10
  180. package/dist/esm/arcgis-bookmarks.entry.js +9 -8
  181. package/dist/esm/arcgis-building-explorer.entry.js +7 -6
  182. package/dist/esm/arcgis-compass.entry.js +7 -6
  183. package/dist/esm/arcgis-coordinate-conversion.entry.js +9 -8
  184. package/dist/esm/arcgis-daylight.entry.js +7 -6
  185. package/dist/esm/arcgis-directions.entry.js +22 -10
  186. package/dist/esm/arcgis-directline-measurement-3d.entry.js +9 -8
  187. package/dist/esm/arcgis-distance-measurement-2d.entry.js +7 -6
  188. package/dist/esm/arcgis-editor.entry.js +9 -8
  189. package/dist/esm/arcgis-elevation-profile.entry.js +7 -6
  190. package/dist/esm/arcgis-expand_4.entry.js +333 -553
  191. package/dist/esm/arcgis-feature-form.entry.js +5 -4
  192. package/dist/esm/arcgis-feature-table.entry.js +310 -0
  193. package/dist/esm/arcgis-feature-templates.entry.js +7 -6
  194. package/dist/esm/arcgis-feature.entry.js +7 -6
  195. package/dist/esm/arcgis-features.entry.js +13 -12
  196. package/dist/esm/arcgis-floor-filter.entry.js +7 -6
  197. package/dist/esm/arcgis-fullscreen.entry.js +7 -6
  198. package/dist/esm/arcgis-histogram-range-slider.entry.js +7 -6
  199. package/dist/esm/arcgis-histogram.entry.js +5 -4
  200. package/dist/esm/arcgis-home.entry.js +7 -6
  201. package/dist/esm/arcgis-layer-list.entry.js +9 -8
  202. package/dist/esm/arcgis-legend.entry.js +7 -6
  203. package/dist/esm/arcgis-line-of-sight.entry.js +9 -8
  204. package/dist/esm/arcgis-locate.entry.js +7 -6
  205. package/dist/esm/arcgis-map-components.js +3 -3
  206. package/dist/esm/arcgis-measurement.entry.js +9 -8
  207. package/dist/esm/arcgis-navigation-toggle.entry.js +7 -6
  208. package/dist/esm/arcgis-print.entry.js +9 -8
  209. package/dist/esm/arcgis-scale-bar.entry.js +7 -6
  210. package/dist/esm/arcgis-scale-range-slider.entry.js +7 -6
  211. package/dist/esm/arcgis-search.entry.js +273 -0
  212. package/dist/esm/arcgis-shadow-cast.entry.js +7 -6
  213. package/dist/esm/arcgis-sketch.entry.js +13 -12
  214. package/dist/esm/arcgis-slice.entry.js +9 -8
  215. package/dist/esm/arcgis-slider.entry.js +23 -22
  216. package/dist/esm/arcgis-swipe.entry.js +7 -6
  217. package/dist/esm/arcgis-table-list.entry.js +9 -8
  218. package/dist/esm/arcgis-time-slider.entry.js +9 -8
  219. package/dist/esm/arcgis-track.entry.js +9 -8
  220. package/dist/esm/arcgis-utility-network-associations.entry.js +7 -6
  221. package/dist/esm/arcgis-utility-network-trace.entry.js +7 -6
  222. package/dist/esm/arcgis-utility-network-validate-topology.entry.js +7 -6
  223. package/dist/esm/arcgis-value-picker.entry.js +13 -12
  224. package/dist/esm/arcgis-weather.entry.js +7 -6
  225. package/dist/esm/arcgis-zoom.entry.js +7 -6
  226. package/dist/esm/{component-utils-2ebdae59.js → component-utils-6b40f5ab.js} +28 -4
  227. package/dist/esm/{disconnected-bc5fc8bc.js → disconnected-dc405cac.js} +11 -3
  228. package/dist/esm/{index-c227d296.js → index-307928e0.js} +1 -1
  229. package/dist/esm/{index-eb3ead33.js → index-d73b34b5.js} +385 -8
  230. package/dist/esm/loader.js +3 -3
  231. package/dist/types/components/{arcgis-area-measurement-2d/arcgis-area-measurement-2d.d.ts → area-measurement-2d/area-measurement-2d.d.ts} +1 -0
  232. package/dist/types/components/{arcgis-area-measurement-3d/arcgis-area-measurement-3d.d.ts → area-measurement-3d/area-measurement-3d.d.ts} +1 -0
  233. package/dist/types/components/{arcgis-attachments/arcgis-attachments.d.ts → attachments/attachments.d.ts} +1 -0
  234. package/dist/types/components/{arcgis-basemap-gallery/arcgis-basemap-gallery.d.ts → basemap-gallery/basemap-gallery.d.ts} +1 -0
  235. package/dist/types/components/{arcgis-basemap-layer-list/arcgis-basemap-layer-list.d.ts → basemap-layer-list/basemap-layer-list.d.ts} +1 -0
  236. package/dist/types/components/{arcgis-basemap-toggle/arcgis-basemap-toggle.d.ts → basemap-toggle/basemap-toggle.d.ts} +1 -0
  237. package/dist/types/components/{arcgis-bookmarks/arcgis-bookmarks.d.ts → bookmarks/bookmarks.d.ts} +1 -0
  238. package/dist/types/components/{arcgis-building-explorer/arcgis-building-explorer.d.ts → building-explorer/building-explorer.d.ts} +1 -0
  239. package/dist/types/components/{arcgis-compass/arcgis-compass.d.ts → compass/compass.d.ts} +1 -0
  240. package/dist/types/components/{arcgis-coordinate-conversion/arcgis-coordinate-conversion.d.ts → coordinate-conversion/coordinate-conversion.d.ts} +1 -0
  241. package/dist/types/components/{arcgis-daylight/arcgis-daylight.d.ts → daylight/daylight.d.ts} +1 -0
  242. package/dist/types/components/{arcgis-directions/arcgis-directions.d.ts → directions/directions.d.ts} +2 -1
  243. package/dist/types/components/{arcgis-directline-measurement-3d/arcgis-directline-measurement-3d.d.ts → directline-measurement-3d/directline-measurement-3d.d.ts} +1 -0
  244. package/dist/types/components/{arcgis-distance-measurement-2d/arcgis-distance-measurement-2d.d.ts → distance-measurement-2d/distance-measurement-2d.d.ts} +1 -0
  245. package/dist/types/components/{arcgis-editor/arcgis-editor.d.ts → editor/editor.d.ts} +1 -0
  246. package/dist/types/components/{arcgis-elevation-profile/arcgis-elevation-profile.d.ts → elevation-profile/elevation-profile.d.ts} +1 -0
  247. package/dist/types/components/{arcgis-expand/arcgis-expand.d.ts → expand/expand.d.ts} +1 -0
  248. package/dist/types/components/{arcgis-feature/arcgis-feature.d.ts → feature/feature.d.ts} +1 -0
  249. package/dist/types/components/{arcgis-feature-form/arcgis-feature-form.d.ts → feature-form/feature-form.d.ts} +1 -0
  250. package/dist/types/components/{arcgis-feature-table/arcgis-feature-table.d.ts → feature-table/feature-table.d.ts} +1 -0
  251. package/dist/types/components/{arcgis-feature-templates/arcgis-feature-templates.d.ts → feature-templates/feature-templates.d.ts} +1 -0
  252. package/dist/types/components/{arcgis-features/arcgis-features.d.ts → features/features.d.ts} +1 -0
  253. package/dist/types/components/{arcgis-floor-filter/arcgis-floor-filter.d.ts → floor-filter/floor-filter.d.ts} +1 -0
  254. package/dist/types/components/{arcgis-fullscreen/arcgis-fullscreen.d.ts → fullscreen/fullscreen.d.ts} +1 -0
  255. package/dist/types/components/{arcgis-histogram/arcgis-histogram.d.ts → histogram/histogram.d.ts} +1 -0
  256. package/dist/types/components/{arcgis-histogram-range-slider/arcgis-histogram-range-slider.d.ts → histogram-range-slider/histogram-range-slider.d.ts} +1 -0
  257. package/dist/types/components/{arcgis-home/arcgis-home.d.ts → home/home.d.ts} +1 -0
  258. package/dist/types/components/{arcgis-layer-list/arcgis-layer-list.d.ts → layer-list/layer-list.d.ts} +1 -0
  259. package/dist/types/components/{arcgis-legend/arcgis-legend.d.ts → legend/legend.d.ts} +1 -0
  260. package/dist/types/components/{arcgis-line-of-sight/arcgis-line-of-sight.d.ts → line-of-sight/line-of-sight.d.ts} +1 -0
  261. package/dist/types/components/{arcgis-locate/arcgis-locate.d.ts → locate/locate.d.ts} +1 -0
  262. package/dist/types/components/{arcgis-map/arcgis-map.d.ts → map/map.d.ts} +11 -2
  263. package/dist/types/components/{arcgis-measurement/arcgis-measurement.d.ts → measurement/measurement.d.ts} +1 -0
  264. package/dist/types/components/{arcgis-navigation-toggle/arcgis-navigation-toggle.d.ts → navigation-toggle/navigation-toggle.d.ts} +1 -0
  265. package/dist/types/components/placement/placement.d.ts +18 -0
  266. package/dist/types/components/{arcgis-print/arcgis-print.d.ts → print/print.d.ts} +1 -0
  267. package/dist/types/components/{arcgis-scale-bar/arcgis-scale-bar.d.ts → scale-bar/scale-bar.d.ts} +1 -0
  268. package/dist/types/components/{arcgis-scale-range-slider/arcgis-scale-range-slider.d.ts → scale-range-slider/scale-range-slider.d.ts} +1 -0
  269. package/dist/types/components/{arcgis-scene/arcgis-scene.d.ts → scene/scene.d.ts} +11 -2
  270. package/dist/types/components/{arcgis-search/arcgis-search.d.ts → search/search.d.ts} +1 -0
  271. package/dist/types/components/{arcgis-shadow-cast/arcgis-shadow-cast.d.ts → shadow-cast/shadow-cast.d.ts} +1 -0
  272. package/dist/types/components/{arcgis-sketch/arcgis-sketch.d.ts → sketch/sketch.d.ts} +1 -0
  273. package/dist/types/components/{arcgis-slice/arcgis-slice.d.ts → slice/slice.d.ts} +1 -0
  274. package/dist/types/components/{arcgis-slider/arcgis-slider.d.ts → slider/slider.d.ts} +1 -0
  275. package/dist/types/components/{arcgis-swipe/arcgis-swipe.d.ts → swipe/swipe.d.ts} +1 -0
  276. package/dist/types/components/{arcgis-table-list/arcgis-table-list.d.ts → table-list/table-list.d.ts} +1 -0
  277. package/dist/types/components/{arcgis-time-slider/arcgis-time-slider.d.ts → time-slider/time-slider.d.ts} +1 -0
  278. package/dist/types/components/{arcgis-track/arcgis-track.d.ts → track/track.d.ts} +1 -0
  279. package/dist/types/components/{arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts → utility-network-associations/utility-network-associations.d.ts} +1 -0
  280. package/dist/types/components/{arcgis-utility-network-trace/arcgis-utility-network-trace.d.ts → utility-network-trace/utility-network-trace.d.ts} +1 -0
  281. package/dist/types/components/{arcgis-utility-network-validate-topology/arcgis-utility-network-validate-topology.d.ts → utility-network-validate-topology/utility-network-validate-topology.d.ts} +1 -0
  282. package/dist/types/components/{arcgis-value-picker/arcgis-value-picker.d.ts → value-picker/value-picker.d.ts} +1 -0
  283. package/dist/types/components/{arcgis-weather/arcgis-weather.d.ts → weather/weather.d.ts} +1 -0
  284. package/dist/types/components/{arcgis-zoom/arcgis-zoom.d.ts → zoom/zoom.d.ts} +1 -0
  285. package/dist/types/components.d.ts +75 -51
  286. package/dist/types/utils/component-utils.d.ts +9 -4
  287. package/package.json +15 -15
  288. package/dist/arcgis-map-components/p-01d9efae.entry.js +0 -1
  289. package/dist/arcgis-map-components/p-11e7ce02.entry.js +0 -1
  290. package/dist/arcgis-map-components/p-1435356e.entry.js +0 -1
  291. package/dist/arcgis-map-components/p-174f9d11.entry.js +0 -1
  292. package/dist/arcgis-map-components/p-18c653a4.entry.js +0 -1
  293. package/dist/arcgis-map-components/p-1b5e33ea.entry.js +0 -1
  294. package/dist/arcgis-map-components/p-1c631990.entry.js +0 -1
  295. package/dist/arcgis-map-components/p-1e5e5ed9.js +0 -2
  296. package/dist/arcgis-map-components/p-21721d4b.entry.js +0 -1
  297. package/dist/arcgis-map-components/p-2becbf01.entry.js +0 -1
  298. package/dist/arcgis-map-components/p-2c5be6b0.entry.js +0 -1
  299. package/dist/arcgis-map-components/p-2d3406f7.js +0 -1
  300. package/dist/arcgis-map-components/p-312ff83f.entry.js +0 -1
  301. package/dist/arcgis-map-components/p-3361d81f.entry.js +0 -1
  302. package/dist/arcgis-map-components/p-3587b4d8.entry.js +0 -1
  303. package/dist/arcgis-map-components/p-3b5560bb.entry.js +0 -1
  304. package/dist/arcgis-map-components/p-3e676259.entry.js +0 -1
  305. package/dist/arcgis-map-components/p-47629a4c.entry.js +0 -1
  306. package/dist/arcgis-map-components/p-4b5fa9a2.entry.js +0 -1
  307. package/dist/arcgis-map-components/p-4bb15110.entry.js +0 -1
  308. package/dist/arcgis-map-components/p-4c103777.entry.js +0 -1
  309. package/dist/arcgis-map-components/p-4d5e7ddd.entry.js +0 -1
  310. package/dist/arcgis-map-components/p-4fa3c6fe.entry.js +0 -1
  311. package/dist/arcgis-map-components/p-501861a1.entry.js +0 -1
  312. package/dist/arcgis-map-components/p-535bf289.entry.js +0 -1
  313. package/dist/arcgis-map-components/p-5a91868a.entry.js +0 -1
  314. package/dist/arcgis-map-components/p-5cabdee7.js +0 -1
  315. package/dist/arcgis-map-components/p-5d835456.entry.js +0 -1
  316. package/dist/arcgis-map-components/p-5db2786d.entry.js +0 -1
  317. package/dist/arcgis-map-components/p-5ea3ce11.entry.js +0 -1
  318. package/dist/arcgis-map-components/p-721673c8.entry.js +0 -1
  319. package/dist/arcgis-map-components/p-8c18a99c.entry.js +0 -1
  320. package/dist/arcgis-map-components/p-8d184d92.entry.js +0 -1
  321. package/dist/arcgis-map-components/p-8fde8001.entry.js +0 -1
  322. package/dist/arcgis-map-components/p-927f8748.entry.js +0 -1
  323. package/dist/arcgis-map-components/p-9aad48fe.entry.js +0 -1
  324. package/dist/arcgis-map-components/p-9c1b8e69.entry.js +0 -1
  325. package/dist/arcgis-map-components/p-9e667282.entry.js +0 -1
  326. package/dist/arcgis-map-components/p-a67dda4e.entry.js +0 -1
  327. package/dist/arcgis-map-components/p-acb4a35a.entry.js +0 -1
  328. package/dist/arcgis-map-components/p-b19043d5.entry.js +0 -1
  329. package/dist/arcgis-map-components/p-b813c9e6.js +0 -1
  330. package/dist/arcgis-map-components/p-bb6e5f04.entry.js +0 -1
  331. package/dist/arcgis-map-components/p-bfae0a1f.entry.js +0 -1
  332. package/dist/arcgis-map-components/p-c63a5c7f.entry.js +0 -1
  333. package/dist/arcgis-map-components/p-ce14e49f.entry.js +0 -1
  334. package/dist/arcgis-map-components/p-d3fbbf3f.entry.js +0 -1
  335. package/dist/arcgis-map-components/p-d8be8a46.entry.js +0 -1
  336. package/dist/arcgis-map-components/p-dafb17cf.entry.js +0 -1
  337. package/dist/arcgis-map-components/p-ec2cc024.entry.js +0 -1
  338. package/dist/arcgis-map-components/p-ef0b3818.entry.js +0 -1
  339. package/dist/arcgis-map-components/p-f0e5dcc7.entry.js +0 -1
  340. package/dist/arcgis-map-components/p-f5cc7f2d.entry.js +0 -1
  341. package/dist/arcgis-map-components/p-f7b74cd4.entry.js +0 -1
  342. package/dist/cjs/arcgis-scene.cjs.entry.js +0 -126
  343. package/dist/cjs/mapping-utils-c2c7b994.js +0 -40
  344. package/dist/esm/arcgis-scene.entry.js +0 -122
  345. package/dist/esm/mapping-utils-26beb904.js +0 -38
  346. /package/dist/cjs/{index-bfda1cdc.js → index-c24d722b.js} +0 -0
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,g as h}from"./p-ed9f6cfa.js";import{S as e,a}from"./p-01e1a2e1.js";import{r,c,a as o}from"./p-7abd0a2e.js";import{o as d}from"./p-af78f7b8.js";const l=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.searchBlur=i(this,"searchBlur",7),this.searchClear=i(this,"searchClear",7),this.searchComplete=i(this,"searchComplete",7),this.searchFocus=i(this,"searchFocus",7),this.searchStart=i(this,"searchStart",7),this.selectResult=i(this,"selectResult",7),this.suggestComplete=i(this,"suggestComplete",7),this.suggestStart=i(this,"suggestStart",7),this._watchHandles=[],this.referenceElement=void 0,this.activeMenu=void 0,this.activeSource=void 0,this.activeSourceIndex=void 0,this.allPlaceholder=void 0,this.allSources=void 0,this.autoSelect=void 0,this.defaultSources=void 0,this.includeDefaultSources=void 0,this.locationEnabled=void 0,this.maxResults=void 0,this.maxSuggestions=void 0,this.minSuggestCharacters=void 0,this.popupEnabled=void 0,this.popupTemplate=void 0,this.portal=void 0,this.resultGraphic=void 0,this.resultGraphicEnabled=void 0,this.results=void 0,this.searchAllEnabled=void 0,this.searchTerm=void 0,this.selectedResult=void 0,this.sources=void 0,this.suggestions=void 0,this.suggestionsEnabled=void 0,this.position="top-right",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}activeMenuWatcher(t){void 0!==t&&this.widget&&(this.widget.activeMenu=t)}activeSourceIndexWatcher(t){void 0!==t&&this.widget&&(this.widget.activeSourceIndex=t)}allPlaceholderWatcher(t){void 0!==t&&this.widget&&(this.widget.allPlaceholder=t)}autoSelectWatcher(t){void 0!==t&&this.widget&&(this.widget.autoSelect=t)}includeDefaultSourcesWatcher(t){void 0!==t&&this.widget&&(this.widget.includeDefaultSources=t)}locationEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.locationEnabled=t)}maxResultsWatcher(t){void 0!==t&&this.widget&&(this.widget.maxResults=t)}maxSuggestionsWatcher(t){void 0!==t&&this.widget&&(this.widget.maxSuggestions=t)}minSuggestCharactersWatcher(t){void 0!==t&&this.widget&&(this.widget.minSuggestCharacters=t)}popupEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.popupEnabled=t)}popupTemplateWatcher(t){void 0!==t&&this.widget&&(this.widget.popupTemplate=t)}portalWatcher(t){void 0!==t&&this.widget&&(this.widget.portal=t)}resultGraphicEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.resultGraphicEnabled=t)}searchAllEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.searchAllEnabled=t)}searchTermWatcher(t){void 0!==t&&this.widget&&(this.widget.searchTerm=t)}sourcesWatcher(t){void 0!==t&&this.widget&&(this.widget.sources=t)}suggestionsEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.suggestionsEnabled=t)}referenceElementWatcher(t){r(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async blurSearch(){return this.widget?.blur()}async clearSearch(){return this.widget?.clear()}async focusSearch(){return this.widget?.focus()}async search(t){return this.widget?.search(t)}async suggest(t){return this.widget?.suggest(t)}async componentDidLoad(){const t=this._createParams(),i=await e(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this.widgetReady.emit({widget:this.widget}),c(this)}disconnectedCallback(){d(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await a();o(this,t((()=>this.widget.activeSource),(t=>this.activeSource=t),{initial:!0})),o(this,t((()=>this.widget.activeSourceIndex),(t=>this.activeSourceIndex=t),{initial:!0})),o(this,t((()=>this.widget.allSources),(t=>this.allSources=t),{initial:!0})),o(this,t((()=>this.widget.defaultSources),(t=>this.defaultSources=t),{initial:!0})),o(this,t((()=>this.widget.resultGraphic),(t=>this.resultGraphic=t),{initial:!0})),o(this,t((()=>this.widget.results),(t=>this.results=t),{initial:!0})),o(this,t((()=>this.widget.selectedResult),(t=>this.selectedResult=t),{initial:!0}))}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}_proxyEvents(){this.widget.on("search-blur",(t=>this.searchBlur.emit(t))),this.widget.on("search-clear",(t=>this.searchClear.emit(t))),this.widget.on("search-complete",(t=>this.searchComplete.emit(t))),this.widget.on("search-focus",(t=>this.searchFocus.emit(t))),this.widget.on("search-start",(t=>this.searchStart.emit(t))),this.widget.on("select-result",(t=>this.selectResult.emit(t))),this.widget.on("suggest-complete",(t=>this.suggestComplete.emit(t))),this.widget.on("suggest-start",(t=>this.suggestStart.emit(t)))}get el(){return h(this)}static get watchers(){return{position:["positionWatcher"],activeMenu:["activeMenuWatcher"],activeSourceIndex:["activeSourceIndexWatcher"],allPlaceholder:["allPlaceholderWatcher"],autoSelect:["autoSelectWatcher"],includeDefaultSources:["includeDefaultSourcesWatcher"],locationEnabled:["locationEnabledWatcher"],maxResults:["maxResultsWatcher"],maxSuggestions:["maxSuggestionsWatcher"],minSuggestCharacters:["minSuggestCharactersWatcher"],popupEnabled:["popupEnabledWatcher"],popupTemplate:["popupTemplateWatcher"],portal:["portalWatcher"],resultGraphicEnabled:["resultGraphicEnabledWatcher"],searchAllEnabled:["searchAllEnabledWatcher"],searchTerm:["searchTermWatcher"],sources:["sourcesWatcher"],suggestionsEnabled:["suggestionsEnabledWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};l.style="";export{l as arcgis_search}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,g as e}from"./p-ed9f6cfa.js";import{Z as h,a}from"./p-01e1a2e1.js";import{r,c as o,a as n}from"./p-7abd0a2e.js";import{o as c}from"./p-af78f7b8.js";const l=class{constructor(s){t(this,s),this.triggerAction=i(this,"triggerAction",7),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.multipleSelectionEnabled=!1,this.selectionEnabled=!0,this.selectedItems=void 0,this.tableItems=void 0,this.view=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0}multipleSelectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.multipleSelectionEnabled=t)}selectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.selectionEnabled=t)}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){r(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.map=t.map)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this.widgetReady.emit({widget:this.widget}),o(this),this._hookEvents(this.widget)}disconnectedCallback(){c(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await a();n(this,t((()=>this.widget.selectedItems),(t=>this.selectedItems=t))),n(this,t((()=>this.widget.tableItems),(t=>this.tableItems=t)))}_createParams(){const t={container:this.childElem,multipleSelectionEnabled:this.multipleSelectionEnabled,selectionEnabled:this.selectionEnabled};return this.view&&(t.map=this.view.map),t}_hookEvents(t){const i=t.on("trigger-action",(t=>{this.triggerAction.emit(t)}));t.own(i)}get el(){return e(this)}static get watchers(){return{multipleSelectionEnabled:["multipleSelectionEnabledWatcher"],selectionEnabled:["selectionEnabledWatcher"],position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};l.style="arcgis-table-list{}";export{l as arcgis_table_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,g as i}from"./p-ed9f6cfa.js";import{G as o}from"./p-01e1a2e1.js";const a=class{constructor(i){t(this,i),this.widgetReady=s(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0}async componentDidLoad(){const t={container:this.childElem},s=await o(t);this.widget=s,this.widgetReady.emit({widget:this.widget})}get el(){return i(this)}};a.style="arcgis-histogram{}";export{a as arcgis_histogram}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,g as h}from"./p-ed9f6cfa.js";import{_ as e,a as o}from"./p-01e1a2e1.js";import{r as a,c as r,a as c}from"./p-7abd0a2e.js";import{o as d}from"./p-af78f7b8.js";const n=class{constructor(s){t(this,s),this.triggerAction=i(this,"triggerAction",7),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.actions=void 0,this.effectiveStops=void 0,this.fullTimeExtent=void 0,this.layout=void 0,this.loop=void 0,this.mode=void 0,this.playRate=void 0,this.stops=void 0,this.tickConfigs=void 0,this.timeExtent=void 0,this.timeVisible=void 0,this.view=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0}actionsWatcher(t){void 0!==t&&this.widget&&(this.widget.actions=t)}fullTimeExtentWatcher(t){void 0!==t&&this.widget&&(this.widget.fullTimeExtent=t)}layoutWatcher(t){void 0!==t&&this.widget&&(this.widget.layout=t)}loopWatcher(t){void 0!==t&&this.widget&&(this.widget.loop=t)}modeWatcher(t){void 0!==t&&this.widget&&(this.widget.mode=t)}playRateWatcher(t){void 0!==t&&this.widget&&(this.widget.playRate=t)}stopsWatcher(t){void 0!==t&&this.widget&&(this.widget.stops=t)}tickConfigsWatcher(t){void 0!==t&&this.widget&&(this.widget.tickConfigs=t)}timeExtentWatcher(t){void 0!==t&&this.widget&&(this.widget.timeExtent=t)}timeVisibleWatcher(t){void 0!==t&&this.widget&&(this.widget.timeVisible=t)}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){a(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async next(){return this.widget?.next()}async play(){return this.widget?.play()}async previous(){return this.widget?.previous()}async stop(){return this.widget?.stop()}async componentDidLoad(){const t=this._createParams(),i=await e(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this.widgetReady.emit({widget:this.widget}),r(this)}disconnectedCallback(){d(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await o();c(this,t((()=>this.widget.effectiveStops),(t=>this.effectiveStops=t),{initial:!0}))}_createParams(){const t={container:this.childElem};return void 0!==this.actions&&(t.actions=this.actions),void 0!==this.fullTimeExtent&&(t.fullTimeExtent=this.fullTimeExtent),void 0!==this.layout&&(t.layout=this.layout),void 0!==this.loop&&(t.loop=this.loop),void 0!==this.mode&&(t.mode=this.mode),void 0!==this.playRate&&(t.playRate=this.playRate),void 0!==this.stops&&(t.stops=this.stops),void 0!==this.tickConfigs&&(t.tickConfigs=this.tickConfigs),void 0!==this.timeExtent&&(t.timeExtent=this.timeExtent),void 0!==this.timeVisible&&(t.timeVisible=this.timeVisible),this.view&&(t.view=this.view),t}async _proxyEvents(){this.widget?.on("trigger-action",(t=>this.triggerAction.emit(t)))}get el(){return h(this)}static get watchers(){return{actions:["actionsWatcher"],fullTimeExtent:["fullTimeExtentWatcher"],layout:["layoutWatcher"],loop:["loopWatcher"],mode:["modeWatcher"],playRate:["playRateWatcher"],stops:["stopsWatcher"],tickConfigs:["tickConfigsWatcher"],timeExtent:["timeExtentWatcher"],timeVisible:["timeVisibleWatcher"],position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};n.style="arcgis-time-slider{}";export{n as arcgis_time_slider}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,g as h}from"./p-ed9f6cfa.js";import{s as e,t as a,a as r}from"./p-01e1a2e1.js";import{i as o,r as c,c as n,a as d}from"./p-7abd0a2e.js";import{o as p}from"./p-af78f7b8.js";const m=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.apiKey=void 0,this.routeLayerItemId=void 0,this.lastRoute=void 0,this.layer=void 0,this.maxStops=void 0,this.searchProperties=void 0,this.unit=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}apiKeyWatcher(t){t&&this.widget&&(this.widget.apiKey=t)}routeLayerItemIdWatcher(t){o(t)?(this.view?.map.remove(this.layer),e({}).then((t=>{this.layer=t}))):t&&this.widget&&e({portalItem:{id:t}}).then((t=>{this.layer=t}))}layerWatcher(t,i){t&&this.widget?(this.widget.layer=t,this.view?.map.add(this.layer)):t||(this.view?.map.remove(i),this.widget.layer=null)}maxStopsWatcher(t){t&&this.widget&&(this.widget.maxStops=t)}searchPropertiesWatcher(t){t&&this.widget&&(this.widget.searchProperties=t)}unitWatcher(t){t&&this.widget&&(this.widget.unit=t)}referenceElementWatcher(t){c(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t,this.layer&&this.widget.view.map.add(this.layer))}async getDirections(){return this.widget?.getDirections()}async save(){return this.widget?.save()}async saveAs(t,i){return this.widget?.saveAs(t,i)}async zoomToRoute(){return this.widget?.zoomToRoute()}async componentDidLoad(){const t=await this._createParams(),i=await a(t);this.widget=i,await this._addWatchers(),this.widgetReady.emit({widget:this.widget}),n(this)}disconnectedCallback(){p(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await r();d(this,t((()=>this.widget.lastRoute),(t=>this.lastRoute=t),{initial:!0}))}async _createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),this.apiKey&&(t.apiKey=this.apiKey),this.routeLayerItemId?(t.layer=await e({portalItem:{id:this.routeLayerItemId}}),this.layer=t.layer):this.layer?(t.layer=this.layer,this.layer=t.layer):(t.layer=await e({}),this.layer=t.layer),void 0!==this.layer&&this.view?.map.add(this.layer),void 0!==this.maxStops&&(t.maxStops=this.maxStops),this.searchProperties&&(t.searchProperties=this.searchProperties),this.unit&&(t.unit=this.unit),t}get el(){return h(this)}static get watchers(){return{position:["positionWatcher"],apiKey:["apiKeyWatcher"],routeLayerItemId:["routeLayerItemIdWatcher"],layer:["layerWatcher"],maxStops:["maxStopsWatcher"],searchProperties:["searchPropertiesWatcher"],unit:["unitWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};m.style="";export{m as arcgis_directions}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,g as e}from"./p-ed9f6cfa.js";import{N as a,a as r}from"./p-01e1a2e1.js";import{r as h,c as o,a as n}from"./p-7abd0a2e.js";import{o as c}from"./p-af78f7b8.js";const d=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.activeTool=void 0,this.activeWidget=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}activeToolWatcher(t){void 0!==t&&this.widget&&(this.widget.activeTool=t)}areaUnitWatcher(t){void 0!==t&&this.widget&&(this.widget.areaUnit=t)}linearUnitWatcher(t){void 0!==t&&this.widget&&(this.widget.linearUnit=t)}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async startMeasurement(){return this.widget?.startMeasurement()}async componentDidLoad(){const t=this._createParams(),i=await a(t);this.widget=i,await this._addWatchers(),this.widgetReady.emit({widget:this.widget}),o(this)}disconnectedCallback(){c(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await r();n(this,t((()=>this.widget.activeWidget),(t=>this.activeWidget=t),{initial:!0}))}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{activeTool:["activeToolWatcher"],areaUnit:["areaUnitWatcher"],linearUnit:["linearUnitWatcher"],position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};d.style="arcgis-measurement{}";export{d as arcgis_measurement}
@@ -0,0 +1,2 @@
1
+ let e,t,n=!1,l=!1,o=!1,s=!1;const c={},i=e=>"object"==(e=typeof e)||"function"===e;function r(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const a=(e,t,...n)=>{let l=null,o=null,s=!1,c=!1;const r=[],a=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!i(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?u(null,l):l),c=s)};if(a(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const f=u(e,null);return f.l=t,r.length>0&&(f.o=r),f.i=o,f},u=(e,t)=>({u:0,$:e,t,m:null,o:null,l:null,i:null}),f={},d=e=>J(e).p,$=(e,t,n)=>{const l=d(e);return{emit:e=>m(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},m=(e,t,n)=>{const l=oe.ce(t,n);return e.dispatchEvent(l),l},p=new WeakMap,h=e=>"sc-"+e.h,y=(e,t,n,l,o,s)=>{if(n!==l){let c=X(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=w(n),s=w(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else{const r=i(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&s||o)&&!r&&e.setAttribute(t,l=!0===l?"":l)}}},b=/\s/,w=e=>e?e.split(b):[],v=(e,t,n,l)=>{const o=11===t.m.nodeType&&t.m.host?t.m.host:t.m,s=e&&e.l||c,i=t.l||c;for(l in s)l in i||y(o,l,s[l],void 0,n,t.u);for(l in i)y(o,l,s[l],i[l],n,t.u)},g=(l,s,c)=>{const i=s.o[c];let r,a,u,f=0;if(n||(o=!0,"slot"===i.$&&(i.u|=i.o?2:1)),1&i.u)r=i.m=le.createTextNode("");else if(r=i.m=le.createElement(2&i.u?"slot-fb":i.$),v(null,i,!1),i.o)for(f=0;f<i.o.length;++f)a=g(l,i,f),a&&r.appendChild(a);return r["s-hn"]=t,3&i.u&&(r["s-sr"]=!0,r["s-cr"]=e,r["s-sn"]=i.i||"",u=l&&l.o&&l.o[c],u&&u.$===i.$&&l.m&&S(l.m,!1)),r},S=(e,n)=>{oe.u|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const s=l[e];s["s-hn"]!==t&&s["s-ol"]&&(O(s).insertBefore(s,C(s)),s["s-ol"].remove(),s["s-ol"]=void 0,o=!0),n&&S(s,n)}oe.u&=-2},j=(e,t,n,l,o,s)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(;o<=s;++o)l[o]&&(c=g(null,n,o),c&&(l[o].m=c,i.insertBefore(c,C(t))))},k=(e,t,n,o,s)=>{for(;t<=n;++t)(o=e[t])&&(s=o.m,x(o),l=!0,s["s-ol"]?s["s-ol"].remove():S(s,!0),s.remove())},M=(e,t)=>e.$===t.$&&("slot"!==e.$||e.i===t.i),C=e=>e&&e["s-ol"]||e,O=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,R=(e,t)=>{const n=t.m=e.m,l=e.o,o=t.o;"slot"===t.$||v(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,c=0,i=t.length-1,r=t[0],a=t[i],u=l.length-1,f=l[0],d=l[u];for(;s<=i&&c<=u;)null==r?r=t[++s]:null==a?a=t[--i]:null==f?f=l[++c]:null==d?d=l[--u]:M(r,f)?(R(r,f),r=t[++s],f=l[++c]):M(a,d)?(R(a,d),a=t[--i],d=l[--u]):M(r,d)?("slot"!==r.$&&"slot"!==d.$||S(r.m.parentNode,!1),R(r,d),e.insertBefore(r.m,a.m.nextSibling),r=t[++s],d=l[--u]):M(a,f)?("slot"!==r.$&&"slot"!==d.$||S(a.m.parentNode,!1),R(a,f),e.insertBefore(a.m,r.m),a=t[--i],f=l[++c]):(o=g(t&&t[c],n,c),f=l[++c],o&&O(r.m).insertBefore(o,C(r.m)));s>i?j(e,null==l[u+1]?null:l[u+1].m,n,l,c,u):c>u&&k(t,s,i)})(n,l,t,o):null!==o?j(n,null,t,o,0,o.length-1):null!==l&&k(l,0,l.length-1)},P=e=>{const t=e.childNodes;let n,l,o,s,c,i;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(c=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(i=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==c){if(1===i&&c===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===i||3===i&&""!==t[s].textContent.trim()){n.hidden=!0;break}P(n)}},T=[],L=e=>{let t,n,o,s,c,i,r=0;const a=e.childNodes,u=a.length;for(;r<u;r++){if(t=a[r],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(o=n.parentNode.childNodes,s=t["s-sn"],i=o.length-1;i>=0;i--)n=o[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(N(n,s)?(c=T.find((e=>e.v===n)),l=!0,n["s-sn"]=n["s-sn"]||s,c?c.g=t:T.push({g:t,v:n}),n["s-sr"]&&T.map((e=>{N(e.v,n["s-sn"])&&(c=T.find((e=>e.v===n)),c&&!e.g&&(e.g=c.g))}))):T.some((e=>e.v===n))||T.push({v:n}));1===t.nodeType&&L(t)}},N=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,x=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(x)},E=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},W=(e,t)=>{if(e.u|=16,!(4&e.u))return E(e,e.j),$e((()=>A(e,t)));e.u|=512},A=(e,t)=>{const n=e.k;let l;return t&&(l=H(n,"componentWillLoad")),V(l,(()=>D(e,n,t)))},D=async(e,t,n)=>{const l=e.p,o=l["s-rc"];n&&(e=>{const t=e.M;((e,t)=>{var n;let l=h(t);const o=te.get(l);if(e=11===e.nodeType?e:le,o)if("string"==typeof o){let t,s=p.get(e=e.head||e);if(s||p.set(e,s=new Set),!s.has(l)){{t=le.createElement("style"),t.innerHTML=o;const l=null!==(n=oe.C)&&void 0!==n?n:r(le);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(e.p.getRootNode(),t)})(e);F(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>U(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},F=(s,c)=>{try{c=c.render&&c.render(),s.u&=-17,s.u|=2,((s,c)=>{const i=s.p,r=s.M,d=s.O||u(null,null),$=(e=>e&&e.$===f)(c)?c:a(null,null,c);if(t=i.tagName,r.R&&($.l=$.l||{},r.R.map((([e,t])=>$.l[t]=i[e]))),$.$=null,$.u|=4,s.O=$,$.m=d.m=i,e=i["s-cr"],n=0!=(1&r.u),l=!1,R(d,$),oe.u|=1,o){let e,t,n,l,o,s;L($.m);let c=0;for(;c<T.length;c++)e=T[c],t=e.v,t["s-ol"]||(n=le.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(c=0;c<T.length;c++)if(e=T[c],t=e.v,e.g){for(l=e.g.parentNode,o=e.g.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}l&&P($.m),oe.u&=-2,T.length=0})(s,c)}catch(e){Y(e,s.p)}return null},U=e=>{const t=e.p,n=e.k,l=e.j;H(n,"componentDidRender"),64&e.u||(e.u|=64,_(t),H(n,"componentDidLoad"),e.P(t),l||q()),e.T(t),e.S&&(e.S(),e.S=void 0),512&e.u&&de((()=>W(e,!1))),e.u&=-517},q=()=>{_(le.documentElement),de((()=>m(ne,"appload",{detail:{namespace:"arcgis-map-components"}})))},H=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){Y(e)}},V=(e,t)=>e&&e.then?e.then(t):t(),_=e=>e.setAttribute("hydrated",""),z=(e,t,n)=>{if(t.L){e.watchers&&(t.N=e.watchers);const l=Object.entries(t.L),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>J(this).W.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=J(e),s=o.p,c=o.W.get(t),r=o.u,a=o.k;if(n=((e,t)=>null==e||i(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.L[t][0]),(!(8&r)||void 0===c)&&n!==c&&(!Number.isNaN(c)||!Number.isNaN(n))&&(o.W.set(t,n),a)){if(l.N&&128&r){const e=l.N[t];e&&e.map((e=>{try{a[e](n,c,t)}catch(e){Y(e,s)}}))}2==(18&r)&&W(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=J(this);return n.A.then((()=>n.k[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){oe.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.R.push([e,o]),o}))}}return e},B=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=ne.customElements,c=le.head,i=c.querySelector("meta[charset]"),a=le.createElement("style"),u=[];let f,d=!0;Object.assign(oe,t),oe.D=new URL(t.resourcesUrl||"./",le.baseURI).href,e.map((e=>{e[1].map((t=>{const n={u:t[0],h:t[1],L:t[2],F:t[3]};n.L=t[2],n.R=[],n.N={};const c=n.h,i=class extends HTMLElement{constructor(e){super(e),Q(e=this,n)}connectedCallback(){f&&(clearTimeout(f),f=null),d?u.push(this):oe.jmp((()=>(e=>{if(0==(1&oe.u)){const t=J(e),n=t.M,l=()=>{};if(!(1&t.u)){t.u|=1,12&n.u&&(e=>{const t=e["s-cr"]=le.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.j=n);break}}n.L&&Object.entries(n.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.u)){{if(t.u|=32,(o=ee(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.N=o.watchers,z(o,n,2),o.isProxied=!0);const e=()=>{};t.u|=8;try{new o(t)}catch(e){Y(e)}t.u&=-9,t.u|=128,e()}if(o.style){let e=o.style;const t=h(n);if(!te.has(t)){const l=()=>{};((e,t,n)=>{let l=te.get(e);ce&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,te.set(e,l)})(t,e,!!(1&n.u)),l()}}}const s=t.j,c=()=>W(t,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){oe.jmp((()=>(()=>{0==(1&oe.u)&&H(J(this).k,"disconnectedCallback")})()))}componentOnReady(){return J(this).U}};n.q=e[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,z(i,n,1)))}))}));{a.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",a.setAttribute("data-styles","");const e=null!==(n=oe.C)&&void 0!==n?n:r(le);null!=e&&a.setAttribute("nonce",e),c.insertBefore(a,i?i.nextSibling:c.firstChild)}d=!1,u.length?u.map((e=>e.connectedCallback())):oe.jmp((()=>f=setTimeout(q,30)))},G=e=>oe.C=e,I=new WeakMap,J=e=>I.get(e),K=(e,t)=>I.set(t.k=e,t),Q=(e,t)=>{const n={u:0,p:e,M:t,W:new Map};return n.A=new Promise((e=>n.T=e)),n.U=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],I.set(e,n)},X=(e,t)=>t in e,Y=(e,t)=>(0,console.error)(e,t),Z=new Map,ee=e=>{const t=e.h.replace(/-/g,"_"),n=e.q,l=Z.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Z.set(n,e),e[t])),Y)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},te=new Map,ne="undefined"!=typeof window?window:{},le=ne.document||{head:{}},oe={u:0,D:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},se=e=>Promise.resolve(e),ce=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ie=[],re=[],ae=(e,t)=>n=>{e.push(n),s||(s=!0,t&&4&oe.u?de(fe):oe.raf(fe))},ue=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){Y(e)}e.length=0},fe=()=>{ue(ie),ue(re),(s=ie.length>0)&&oe.raf(fe)},de=e=>se().then(e),$e=ae(re,!0);export{B as b,$ as c,d as g,a as h,se as p,K as r,G as s}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,g as e}from"./p-ed9f6cfa.js";import{$ as h,a}from"./p-01e1a2e1.js";import{r as o,c as r,a as c}from"./p-7abd0a2e.js";import{o as n}from"./p-af78f7b8.js";const d=class{constructor(s){t(this,s),this.trackComplete=i(this,"trackComplete",7),this.trackError=i(this,"trackError",7),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.geolocationOptions=void 0,this.goToLocationEnabled=void 0,this.graphic=void 0,this.scale=void 0,this.tracking=void 0,this.useHeadingEnabled=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}geolocationOptionsWatcher(t){void 0!==t&&this.widget&&(this.widget.geolocationOptions=t)}goToLocationEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.goToLocationEnabled=t)}graphicWatcher(t){void 0!==t&&this.widget&&(this.widget.graphic=t)}scaleWatcher(t){void 0!==t&&this.widget&&(this.widget.scale=t)}useHeadingEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.useHeadingEnabled=t)}referenceElementWatcher(t){o(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this.widgetReady.emit({widget:this.widget}),r(this)}disconnectedCallback(){n(this)}render(){return s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await a();c(this,t((()=>this.widget.tracking),(t=>this.tracking=t),{initial:!0}))}_createParams(){const t={container:this.childElem};return void 0!==this.geolocationOptions&&(t.geolocationOptions=this.geolocationOptions),void 0!==this.goToLocationEnabled&&(t.goToLocationEnabled=this.goToLocationEnabled),void 0!==this.graphic&&(t.graphic=this.graphic),void 0!==this.useHeadingEnabled&&(t.useHeadingEnabled=this.useHeadingEnabled),void 0!==this.scale&&(t.scale=this.scale),this.view&&(t.view=this.view),t}_proxyEvents(){this.widget.on("track",(t=>this.trackComplete.emit(t))),this.widget.on("track-error",(t=>this.trackError.emit(t)))}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],geolocationOptions:["geolocationOptionsWatcher"],goToLocationEnabled:["goToLocationEnabledWatcher"],graphic:["graphicWatcher"],scale:["scaleWatcher"],useHeadingEnabled:["useHeadingEnabledWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};d.style="";export{d as arcgis_track}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,g as s}from"./p-ed9f6cfa.js";import{y as h}from"./p-01e1a2e1.js";import{r as a,c as r}from"./p-7abd0a2e.js";import{o}from"./p-af78f7b8.js";const c=class{constructor(e){t(this,e),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.defaultPopupTemplateEnabled=void 0,this.graphic=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}defaultPopupTemplateEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.defaultPopupTemplateEnabled=t)}graphicWatcher(t){void 0!==t&&this.widget&&(this.widget.graphic=t)}referenceElementWatcher(t){a(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,this.widgetReady.emit({widget:this.widget}),r(this)}disconnectedCallback(){o(this)}render(){return this.expandable?e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t})):e("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return void 0!==this.defaultPopupTemplateEnabled&&(t.defaultPopupTemplateEnabled=this.defaultPopupTemplateEnabled),this.graphic&&(t.graphic=this.graphic),this.view&&(t.view=this.view),t}get el(){return s(this)}static get watchers(){return{position:["positionWatcher"],defaultPopupTemplateEnabled:["defaultPopupTemplateEnabledWatcher"],graphic:["graphicWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_feature}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,g as e}from"./p-ed9f6cfa.js";import{a4 as r}from"./p-01e1a2e1.js";import{r as h,c as a}from"./p-7abd0a2e.js";import{o}from"./p-af78f7b8.js";const c=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this._watchHandles=[],this.referenceElement=void 0,this.position="bottom-left",this.expandable=!1,this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),i=await r(t);this.widget=i,this.widgetReady.emit({widget:this.widget}),a(this)}disconnectedCallback(){o(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_weather}
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisAreaMeasurement2dCss = "";
10
+ const areaMeasurement2dCss = "";
11
11
 
12
12
  const ArcgisAreaMeasurement2d = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.position = "bottom-left";
18
19
  this.expandable = false;
@@ -70,9 +71,9 @@ const ArcgisAreaMeasurement2d = class {
70
71
  //--------------------------------------------------------------------------
71
72
  async _addWatchers() {
72
73
  const { watch } = await index$1.importCoreReactiveUtils();
73
- watch(() => this.widget.unit, (value) => (this.unit = value), {
74
+ componentUtils.addHandles(this, watch(() => this.widget.unit, (value) => (this.unit = value), {
74
75
  initial: true
75
- });
76
+ }));
76
77
  }
77
78
  _createParams() {
78
79
  const params = {
@@ -96,6 +97,6 @@ const ArcgisAreaMeasurement2d = class {
96
97
  "view": ["viewWatcher"]
97
98
  }; }
98
99
  };
99
- ArcgisAreaMeasurement2d.style = arcgisAreaMeasurement2dCss;
100
+ ArcgisAreaMeasurement2d.style = areaMeasurement2dCss;
100
101
 
101
102
  exports.arcgis_area_measurement_2d = ArcgisAreaMeasurement2d;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisAreaMeasurement3dCss = "";
10
+ const areaMeasurement3dCss = "";
11
11
 
12
12
  const ArcgisAreaMeasurement3d = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.position = "bottom-left";
18
19
  this.expandable = false;
@@ -89,6 +90,6 @@ const ArcgisAreaMeasurement3d = class {
89
90
  "view": ["viewWatcher"]
90
91
  }; }
91
92
  };
92
- ArcgisAreaMeasurement3d.style = arcgisAreaMeasurement3dCss;
93
+ ArcgisAreaMeasurement3d.style = areaMeasurement3dCss;
93
94
 
94
95
  exports.arcgis_area_measurement_3d = ArcgisAreaMeasurement3d;
@@ -2,16 +2,17 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const disconnected = require('./disconnected-86c5cc08.js');
8
8
 
9
- const arcgisAttachmentsCss = "";
9
+ const attachmentsCss = "";
10
10
 
11
11
  const ArcgisAttachments = class {
12
12
  constructor(hostRef) {
13
13
  index.registerInstance(this, hostRef);
14
14
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
15
+ this._watchHandles = [];
15
16
  this.referenceElement = undefined;
16
17
  this.position = "bottom-left";
17
18
  this.expandable = false;
@@ -68,6 +69,6 @@ const ArcgisAttachments = class {
68
69
  "graphic": ["graphicWatcher"]
69
70
  }; }
70
71
  };
71
- ArcgisAttachments.style = arcgisAttachmentsCss;
72
+ ArcgisAttachments.style = attachmentsCss;
72
73
 
73
74
  exports.arcgis_attachments = ArcgisAttachments;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisBasemapGalleryCss = "";
10
+ const basemapGalleryCss = "";
11
11
 
12
12
  const ArcgisBasemapGallery = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.activeBasemap = undefined;
18
19
  this.position = "bottom-left";
@@ -73,8 +74,8 @@ const ArcgisBasemapGallery = class {
73
74
  //--------------------------------------------------------------------------
74
75
  async _addWatchers() {
75
76
  const { watch } = await index$1.importCoreReactiveUtils();
76
- watch(() => this.widget.source, () => (this.source = this.widget.source));
77
- watch(() => this.widget.activeBasemap, (basemap) => (this.activeBasemap = basemap));
77
+ componentUtils.addHandles(this, watch(() => this.widget.source, () => (this.source = this.widget.source)));
78
+ componentUtils.addHandles(this, watch(() => this.widget.activeBasemap, (basemap) => (this.activeBasemap = basemap)));
78
79
  }
79
80
  _createParams() {
80
81
  const params = {
@@ -92,6 +93,6 @@ const ArcgisBasemapGallery = class {
92
93
  "view": ["viewWatcher"]
93
94
  }; }
94
95
  };
95
- ArcgisBasemapGallery.style = arcgisBasemapGalleryCss;
96
+ ArcgisBasemapGallery.style = basemapGalleryCss;
96
97
 
97
98
  exports.arcgis_basemap_gallery = ArcgisBasemapGallery;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisBasemapLayerListCss = "";
10
+ const basemapLayerListCss = "";
11
11
 
12
12
  const ArcgisBasemapLayerList = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.basemapTitle = undefined;
18
19
  this.baseItems = undefined;
@@ -112,21 +113,21 @@ const ArcgisBasemapLayerList = class {
112
113
  }
113
114
  async _addWatchers() {
114
115
  const { watch } = await index$1.importCoreReactiveUtils();
115
- watch(() => this.widget.basemapTitle, (value) => (this.basemapTitle = value), {
116
+ componentUtils.addHandles(this, watch(() => this.widget.basemapTitle, (value) => (this.basemapTitle = value), {
116
117
  initial: true
117
- });
118
- watch(() => this.widget.editingEnabled, (value) => (this.editingEnabled = value), {
118
+ }));
119
+ componentUtils.addHandles(this, watch(() => this.widget.editingEnabled, (value) => (this.editingEnabled = value), {
119
120
  initial: true
120
- });
121
- watch(() => this.widget.multipleSelectionEnabled, (value) => (this.mulitpleSelectionEnabled = value), {
121
+ }));
122
+ componentUtils.addHandles(this, watch(() => this.widget.multipleSelectionEnabled, (value) => (this.mulitpleSelectionEnabled = value), {
122
123
  initial: true
123
- });
124
- watch(() => this.widget.referenceItems, (value) => (this.referenceItems = value), {
124
+ }));
125
+ componentUtils.addHandles(this, watch(() => this.widget.referenceItems, (value) => (this.referenceItems = value), {
125
126
  initial: true
126
- });
127
- watch(() => this.widget.selectedItems, (value) => (this.selectedItems = value), {
127
+ }));
128
+ componentUtils.addHandles(this, watch(() => this.widget.selectedItems, (value) => (this.selectedItems = value), {
128
129
  initial: true
129
- });
130
+ }));
130
131
  }
131
132
  get el() { return index.getElement(this); }
132
133
  static get watchers() { return {
@@ -139,6 +140,6 @@ const ArcgisBasemapLayerList = class {
139
140
  "view": ["viewWatcher"]
140
141
  }; }
141
142
  };
142
- ArcgisBasemapLayerList.style = arcgisBasemapLayerListCss;
143
+ ArcgisBasemapLayerList.style = basemapLayerListCss;
143
144
 
144
145
  exports.arcgis_basemap_layer_list = ArcgisBasemapLayerList;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisBasemapToggleCss = "";
10
+ const basemapToggleCss = "";
11
11
 
12
12
  const ArcgisBasemapToggle = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.activeBasemap = undefined;
18
19
  this.nextBasemap = undefined;
@@ -95,12 +96,12 @@ const ArcgisBasemapToggle = class {
95
96
  }
96
97
  async _addWatchers() {
97
98
  const { watch } = await index$1.importCoreReactiveUtils();
98
- watch(() => this.widget.activeBasemap, (value) => (this.activeBasemap = value), {
99
+ componentUtils.addHandles(this, watch(() => this.widget.activeBasemap, (value) => (this.activeBasemap = value), {
99
100
  initial: true
100
- });
101
- watch(() => this.widget.nextBasemap, (value) => (this.nextBasemap = value), {
101
+ }));
102
+ componentUtils.addHandles(this, watch(() => this.widget.nextBasemap, (value) => (this.nextBasemap = value), {
102
103
  initial: true
103
- });
104
+ }));
104
105
  }
105
106
  get el() { return index.getElement(this); }
106
107
  static get watchers() { return {
@@ -110,6 +111,6 @@ const ArcgisBasemapToggle = class {
110
111
  "nextBasemap": ["nextBasemapWatcher"]
111
112
  }; }
112
113
  };
113
- ArcgisBasemapToggle.style = arcgisBasemapToggleCss;
114
+ ArcgisBasemapToggle.style = basemapToggleCss;
114
115
 
115
116
  exports.arcgis_basemap_toggle = ArcgisBasemapToggle;
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisBookmarksCss = "";
10
+ const bookmarksCss = "";
11
11
 
12
12
  const ArcgisBookmarks = class {
13
13
  constructor(hostRef) {
@@ -15,6 +15,7 @@ const ArcgisBookmarks = class {
15
15
  this.bookmarkEdit = index.createEvent(this, "bookmarkEdit", 7);
16
16
  this.bookmarkSelect = index.createEvent(this, "bookmarkSelect", 7);
17
17
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
18
+ this._watchHandles = [];
18
19
  this.referenceElement = undefined;
19
20
  this.bookmarks = undefined;
20
21
  this.defaultCreateOptions = undefined;
@@ -95,9 +96,9 @@ const ArcgisBookmarks = class {
95
96
  //--------------------------------------------------------------------------
96
97
  async _addWatchers() {
97
98
  const { watch } = await index$1.importCoreReactiveUtils();
98
- watch(() => this.widget.editingEnabled, (value) => (this.editingEnabled = value), {
99
+ componentUtils.addHandles(this, watch(() => this.widget.editingEnabled, (value) => (this.editingEnabled = value), {
99
100
  initial: true
100
- });
101
+ }));
101
102
  }
102
103
  _createParams() {
103
104
  const params = {
@@ -135,6 +136,6 @@ const ArcgisBookmarks = class {
135
136
  "view": ["viewWatcher"]
136
137
  }; }
137
138
  };
138
- ArcgisBookmarks.style = arcgisBookmarksCss;
139
+ ArcgisBookmarks.style = bookmarksCss;
139
140
 
140
141
  exports.arcgis_bookmarks = ArcgisBookmarks;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisBuildingExplorerCss = "";
10
+ const buildingExplorerCss = "";
11
11
 
12
12
  const ArcgisBuildingExplorer = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.position = "bottom-left";
18
19
  this.expandable = false;
@@ -75,6 +76,6 @@ const ArcgisBuildingExplorer = class {
75
76
  "view": ["viewWatcher"]
76
77
  }; }
77
78
  };
78
- ArcgisBuildingExplorer.style = arcgisBuildingExplorerCss;
79
+ ArcgisBuildingExplorer.style = buildingExplorerCss;
79
80
 
80
81
  exports.arcgis_building_explorer = ArcgisBuildingExplorer;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisCompassCss = "";
10
+ const compassCss = "";
11
11
 
12
12
  const ArcgisCompass = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.position = "bottom-left";
18
19
  this.widget = undefined;
@@ -85,6 +86,6 @@ const ArcgisCompass = class {
85
86
  "view": ["viewWatcher"]
86
87
  }; }
87
88
  };
88
- ArcgisCompass.style = arcgisCompassCss;
89
+ ArcgisCompass.style = compassCss;
89
90
 
90
91
  exports.arcgis_compass = ArcgisCompass;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisCoordinateConversionCss = "";
10
+ const coordinateConversionCss = "";
11
11
 
12
12
  const ArcgisCoordinateConversion = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.conversions = undefined;
18
19
  this.currentLocation = undefined;
@@ -125,9 +126,9 @@ const ArcgisCoordinateConversion = class {
125
126
  //--------------------------------------------------------------------------
126
127
  async _addWatchers() {
127
128
  const { watch } = await index$1.importCoreReactiveUtils();
128
- watch(() => this.widget.currentLocation, (value) => (this.currentLocation = value), {
129
+ componentUtils.addHandles(this, watch(() => this.widget.currentLocation, (value) => (this.currentLocation = value), {
129
130
  initial: true
130
- });
131
+ }));
131
132
  }
132
133
  _createParams() {
133
134
  const params = {
@@ -153,6 +154,6 @@ const ArcgisCoordinateConversion = class {
153
154
  "view": ["viewWatcher"]
154
155
  }; }
155
156
  };
156
- ArcgisCoordinateConversion.style = arcgisCoordinateConversionCss;
157
+ ArcgisCoordinateConversion.style = coordinateConversionCss;
157
158
 
158
159
  exports.arcgis_coordinate_conversion = ArcgisCoordinateConversion;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisDaylightCss = "";
10
+ const daylightCss = "";
11
11
 
12
12
  const ArcgisDaylight = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.dateOrSeason = undefined;
18
19
  this.playSpeedMultiplier = undefined;
@@ -111,6 +112,6 @@ const ArcgisDaylight = class {
111
112
  "view": ["viewWatcher"]
112
113
  }; }
113
114
  };
114
- ArcgisDaylight.style = arcgisDaylightCss;
115
+ ArcgisDaylight.style = daylightCss;
115
116
 
116
117
  exports.arcgis_daylight = ArcgisDaylight;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6b51d5a0.js');
6
- const index$1 = require('./index-bfda1cdc.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
5
+ const index = require('./index-b9b7643c.js');
6
+ const index$1 = require('./index-c24d722b.js');
7
+ const componentUtils = require('./component-utils-54ae1d40.js');
8
+ const disconnected = require('./disconnected-86c5cc08.js');
9
9
 
10
- const arcgisDirectionsCss = "";
10
+ const directionsCss = "";
11
11
 
12
12
  const ArcgisDirections = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
16
17
  this.referenceElement = undefined;
17
18
  this.apiKey = undefined;
18
19
  this.routeLayerItemId = undefined;
@@ -44,7 +45,14 @@ const ArcgisDirections = class {
44
45
  }
45
46
  }
46
47
  routeLayerItemIdWatcher(value) {
47
- if (value && this.widget) {
48
+ if (componentUtils.isNullOrEmptyString(value)) {
49
+ this.view?.map.remove(this.layer);
50
+ // maintain a default route layer
51
+ index$1.newLayersRouteLayer({}).then((layer) => {
52
+ this.layer = layer;
53
+ });
54
+ }
55
+ else if (value && this.widget) {
48
56
  index$1.newLayersRouteLayer({
49
57
  portalItem: {
50
58
  id: value
@@ -54,11 +62,15 @@ const ArcgisDirections = class {
54
62
  });
55
63
  }
56
64
  }
57
- layerWatcher(value) {
65
+ layerWatcher(value, old) {
58
66
  if (value && this.widget) {
59
67
  this.widget.layer = value;
60
68
  this.view?.map.add(this.layer);
61
69
  }
70
+ else if (!value) {
71
+ this.view?.map.remove(old);
72
+ this.widget.layer = null;
73
+ }
62
74
  }
63
75
  maxStopsWatcher(value) {
64
76
  if (value && this.widget) {
@@ -132,9 +144,9 @@ const ArcgisDirections = class {
132
144
  //--------------------------------------------------------------------------
133
145
  async _addWatchers() {
134
146
  const { watch } = await index$1.importCoreReactiveUtils();
135
- watch(() => this.widget.lastRoute, (value) => (this.lastRoute = value), {
147
+ componentUtils.addHandles(this, watch(() => this.widget.lastRoute, (value) => (this.lastRoute = value), {
136
148
  initial: true
137
- });
149
+ }));
138
150
  }
139
151
  async _createParams() {
140
152
  const params = {
@@ -189,6 +201,6 @@ const ArcgisDirections = class {
189
201
  "view": ["viewWatcher"]
190
202
  }; }
191
203
  };
192
- ArcgisDirections.style = arcgisDirectionsCss;
204
+ ArcgisDirections.style = directionsCss;
193
205
 
194
206
  exports.arcgis_directions = ArcgisDirections;