@arcgis/map-components 4.29.0-beta.2 → 4.29.0-beta.20

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 (338) 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-0adc450b.entry.js +1 -0
  4. package/dist/arcgis-map-components/p-0c74ff98.entry.js +1 -0
  5. package/dist/arcgis-map-components/p-0d9e9d6a.entry.js +1 -0
  6. package/dist/arcgis-map-components/p-1464da83.js +1 -0
  7. package/dist/arcgis-map-components/p-1d1df08c.entry.js +1 -0
  8. package/dist/arcgis-map-components/p-23a946ff.entry.js +1 -0
  9. package/dist/arcgis-map-components/p-2819c845.entry.js +1 -0
  10. package/dist/arcgis-map-components/p-287dbb28.entry.js +1 -0
  11. package/dist/arcgis-map-components/p-2b530f54.entry.js +1 -0
  12. package/dist/arcgis-map-components/p-33b4a092.entry.js +1 -0
  13. package/dist/arcgis-map-components/p-4064f028.entry.js +1 -0
  14. package/dist/arcgis-map-components/p-41070a7c.entry.js +1 -0
  15. package/dist/arcgis-map-components/p-45fd4f76.entry.js +1 -0
  16. package/dist/arcgis-map-components/p-4d8bc802.entry.js +1 -0
  17. package/dist/arcgis-map-components/{p-620959fc.js → p-4e01cbff.js} +1 -1
  18. package/dist/arcgis-map-components/p-55206cea.entry.js +1 -0
  19. package/dist/arcgis-map-components/p-569ef1c7.entry.js +1 -0
  20. package/dist/arcgis-map-components/p-56efb6d2.entry.js +1 -0
  21. package/dist/arcgis-map-components/p-5a9ea278.entry.js +1 -0
  22. package/dist/arcgis-map-components/p-5b74cd3d.entry.js +1 -0
  23. package/dist/arcgis-map-components/p-61557a57.entry.js +1 -0
  24. package/dist/arcgis-map-components/p-61ba38a9.entry.js +1 -0
  25. package/dist/arcgis-map-components/p-68e79f08.entry.js +1 -0
  26. package/dist/arcgis-map-components/p-704daaee.entry.js +1 -0
  27. package/dist/arcgis-map-components/p-72ce2a6e.entry.js +1 -0
  28. package/dist/arcgis-map-components/p-7330a10a.js +1 -0
  29. package/dist/arcgis-map-components/p-7d9bcc42.entry.js +1 -0
  30. package/dist/arcgis-map-components/p-7e0a2e8e.entry.js +1 -0
  31. package/dist/arcgis-map-components/p-8617e4d1.entry.js +1 -0
  32. package/dist/arcgis-map-components/p-8d37ccc8.entry.js +1 -0
  33. package/dist/arcgis-map-components/p-8f656eff.entry.js +1 -0
  34. package/dist/arcgis-map-components/p-950d17a0.entry.js +1 -0
  35. package/dist/arcgis-map-components/p-97d6f3e7.entry.js +1 -0
  36. package/dist/arcgis-map-components/p-ab3dc9ad.entry.js +1 -0
  37. package/dist/arcgis-map-components/p-b202b1aa.entry.js +1 -0
  38. package/dist/arcgis-map-components/p-b3658283.entry.js +1 -0
  39. package/dist/arcgis-map-components/p-b92055ca.entry.js +1 -0
  40. package/dist/arcgis-map-components/p-c81a5e03.entry.js +1 -0
  41. package/dist/arcgis-map-components/p-c9946f2e.entry.js +1 -0
  42. package/dist/arcgis-map-components/p-d06df52b.entry.js +1 -0
  43. package/dist/arcgis-map-components/p-d7145fd7.entry.js +1 -0
  44. package/dist/arcgis-map-components/p-d7b80bdc.entry.js +1 -0
  45. package/dist/arcgis-map-components/p-da099e3b.entry.js +1 -0
  46. package/dist/arcgis-map-components/p-da7b4f86.entry.js +1 -0
  47. package/dist/arcgis-map-components/p-e542a72e.entry.js +1 -0
  48. package/dist/arcgis-map-components/p-e616a1fd.entry.js +1 -0
  49. package/dist/arcgis-map-components/p-e765deec.entry.js +1 -0
  50. package/dist/arcgis-map-components/p-e7f5fad9.entry.js +1 -0
  51. package/dist/arcgis-map-components/p-e8c0be13.entry.js +1 -0
  52. package/dist/arcgis-map-components/p-f86f779d.entry.js +1 -0
  53. package/dist/arcgis-map-components/p-faee52eb.entry.js +1 -0
  54. package/dist/arcgis-map-components/p-fcf0c05c.entry.js +1 -0
  55. package/dist/arcgis-map-components/p-ff2a451c.entry.js +1 -0
  56. package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +8 -7
  57. package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +6 -5
  58. package/dist/cjs/arcgis-attachments.cjs.entry.js +5 -4
  59. package/dist/cjs/arcgis-basemap-gallery.cjs.entry.js +8 -7
  60. package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +16 -15
  61. package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +10 -9
  62. package/dist/cjs/arcgis-bookmarks.cjs.entry.js +8 -7
  63. package/dist/cjs/arcgis-building-explorer.cjs.entry.js +6 -5
  64. package/dist/cjs/arcgis-compass.cjs.entry.js +6 -5
  65. package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +8 -7
  66. package/dist/cjs/arcgis-daylight.cjs.entry.js +6 -5
  67. package/dist/cjs/arcgis-directions.cjs.entry.js +8 -7
  68. package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +8 -7
  69. package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +6 -5
  70. package/dist/cjs/arcgis-editor.cjs.entry.js +8 -7
  71. package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +6 -5
  72. package/dist/cjs/arcgis-expand_4.cjs.entry.js +321 -481
  73. package/dist/cjs/arcgis-feature-form.cjs.entry.js +4 -3
  74. package/dist/cjs/arcgis-feature-table.cjs.entry.js +308 -0
  75. package/dist/cjs/arcgis-feature-templates.cjs.entry.js +6 -5
  76. package/dist/cjs/arcgis-feature.cjs.entry.js +6 -5
  77. package/dist/cjs/arcgis-features.cjs.entry.js +12 -11
  78. package/dist/cjs/arcgis-floor-filter.cjs.entry.js +6 -5
  79. package/dist/cjs/arcgis-fullscreen.cjs.entry.js +6 -5
  80. package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +6 -5
  81. package/dist/cjs/arcgis-histogram.cjs.entry.js +4 -3
  82. package/dist/cjs/arcgis-home.cjs.entry.js +6 -5
  83. package/dist/cjs/arcgis-layer-list.cjs.entry.js +8 -7
  84. package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +8 -7
  85. package/dist/cjs/arcgis-locate.cjs.entry.js +6 -5
  86. package/dist/cjs/arcgis-map-components.cjs.js +1 -1
  87. package/dist/cjs/arcgis-measurement.cjs.entry.js +8 -7
  88. package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +6 -5
  89. package/dist/cjs/arcgis-print.cjs.entry.js +8 -7
  90. package/dist/cjs/arcgis-scale-bar.cjs.entry.js +6 -5
  91. package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +6 -5
  92. package/dist/cjs/arcgis-search.cjs.entry.js +277 -0
  93. package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +6 -5
  94. package/dist/cjs/arcgis-sketch.cjs.entry.js +12 -11
  95. package/dist/cjs/arcgis-slice.cjs.entry.js +8 -7
  96. package/dist/cjs/arcgis-slider.cjs.entry.js +22 -21
  97. package/dist/cjs/arcgis-swipe.cjs.entry.js +6 -5
  98. package/dist/cjs/arcgis-table-list.cjs.entry.js +8 -7
  99. package/dist/cjs/arcgis-time-slider.cjs.entry.js +8 -7
  100. package/dist/cjs/arcgis-track.cjs.entry.js +8 -7
  101. package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +6 -5
  102. package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +6 -5
  103. package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +6 -5
  104. package/dist/cjs/arcgis-value-picker.cjs.entry.js +12 -11
  105. package/dist/cjs/arcgis-weather.cjs.entry.js +6 -5
  106. package/dist/cjs/arcgis-zoom.cjs.entry.js +6 -5
  107. package/dist/cjs/{component-utils-cbd20e88.js → component-utils-17140a1b.js} +23 -1
  108. package/dist/cjs/{disconnected-306cb220.js → disconnected-62af3ef1.js} +9 -1
  109. package/dist/cjs/index-6b51d5a0.js +6 -6
  110. package/dist/cjs/loader.cjs.js +1 -1
  111. package/dist/components/arcgis-area-measurement-2d.js +7 -6
  112. package/dist/components/arcgis-area-measurement-3d.js +4 -3
  113. package/dist/components/arcgis-attachments.js +5 -4
  114. package/dist/components/arcgis-basemap-gallery.js +7 -6
  115. package/dist/components/arcgis-basemap-layer-list.js +15 -14
  116. package/dist/components/arcgis-basemap-toggle.js +9 -8
  117. package/dist/components/arcgis-bookmarks.js +7 -6
  118. package/dist/components/arcgis-building-explorer.js +4 -3
  119. package/dist/components/arcgis-compass.js +3 -2
  120. package/dist/components/arcgis-coordinate-conversion.js +7 -6
  121. package/dist/components/arcgis-daylight.js +4 -3
  122. package/dist/components/arcgis-directions.js +7 -6
  123. package/dist/components/arcgis-directline-measurement-3d.js +7 -6
  124. package/dist/components/arcgis-distance-measurement-2d.js +4 -3
  125. package/dist/components/arcgis-editor.js +7 -6
  126. package/dist/components/arcgis-elevation-profile.js +4 -3
  127. package/dist/components/arcgis-expand.js +1 -1
  128. package/dist/components/arcgis-feature-form.js +3 -2
  129. package/dist/components/arcgis-feature-table.js +14 -13
  130. package/dist/components/arcgis-feature-templates.js +4 -3
  131. package/dist/components/arcgis-feature.js +4 -3
  132. package/dist/components/arcgis-features.js +11 -10
  133. package/dist/components/arcgis-floor-filter.js +4 -3
  134. package/dist/components/arcgis-fullscreen.js +3 -2
  135. package/dist/components/arcgis-histogram-range-slider.js +4 -3
  136. package/dist/components/arcgis-histogram.js +3 -2
  137. package/dist/components/arcgis-home.js +3 -2
  138. package/dist/components/arcgis-layer-list.js +7 -6
  139. package/dist/components/arcgis-legend.js +4 -3
  140. package/dist/components/arcgis-line-of-sight.js +7 -6
  141. package/dist/components/arcgis-locate.js +3 -2
  142. package/dist/components/arcgis-map.js +86 -33
  143. package/dist/components/arcgis-measurement.js +7 -6
  144. package/dist/components/arcgis-navigation-toggle.js +3 -2
  145. package/dist/components/arcgis-print.js +7 -6
  146. package/dist/components/arcgis-scale-bar.js +4 -3
  147. package/dist/components/arcgis-scale-range-slider.js +4 -3
  148. package/dist/components/arcgis-scene.js +86 -28
  149. package/dist/components/arcgis-search.js +19 -18
  150. package/dist/components/arcgis-shadow-cast.js +4 -3
  151. package/dist/components/arcgis-sketch.js +11 -10
  152. package/dist/components/arcgis-slice.js +7 -6
  153. package/dist/components/arcgis-slider.js +21 -20
  154. package/dist/components/arcgis-swipe.js +3 -2
  155. package/dist/components/arcgis-table-list.js +7 -6
  156. package/dist/components/arcgis-time-slider.js +7 -6
  157. package/dist/components/arcgis-track.js +6 -5
  158. package/dist/components/arcgis-utility-network-associations.js +4 -3
  159. package/dist/components/arcgis-utility-network-trace.js +4 -3
  160. package/dist/components/arcgis-utility-network-validate-topology.js +4 -3
  161. package/dist/components/arcgis-value-picker.js +11 -10
  162. package/dist/components/arcgis-weather.js +4 -3
  163. package/dist/components/arcgis-zoom.js +3 -2
  164. package/dist/components/disconnected.js +31 -2
  165. package/dist/components/{arcgis-expand2.js → expand.js} +4 -2
  166. package/dist/components/index.d.ts +53 -53
  167. package/dist/esm/arcgis-area-measurement-2d.entry.js +8 -7
  168. package/dist/esm/arcgis-area-measurement-3d.entry.js +6 -5
  169. package/dist/esm/arcgis-attachments.entry.js +5 -4
  170. package/dist/esm/arcgis-basemap-gallery.entry.js +8 -7
  171. package/dist/esm/arcgis-basemap-layer-list.entry.js +16 -15
  172. package/dist/esm/arcgis-basemap-toggle.entry.js +10 -9
  173. package/dist/esm/arcgis-bookmarks.entry.js +8 -7
  174. package/dist/esm/arcgis-building-explorer.entry.js +6 -5
  175. package/dist/esm/arcgis-compass.entry.js +6 -5
  176. package/dist/esm/arcgis-coordinate-conversion.entry.js +8 -7
  177. package/dist/esm/arcgis-daylight.entry.js +6 -5
  178. package/dist/esm/arcgis-directions.entry.js +8 -7
  179. package/dist/esm/arcgis-directline-measurement-3d.entry.js +8 -7
  180. package/dist/esm/arcgis-distance-measurement-2d.entry.js +6 -5
  181. package/dist/esm/arcgis-editor.entry.js +8 -7
  182. package/dist/esm/arcgis-elevation-profile.entry.js +6 -5
  183. package/dist/esm/arcgis-expand_4.entry.js +320 -480
  184. package/dist/esm/arcgis-feature-form.entry.js +4 -3
  185. package/dist/esm/arcgis-feature-table.entry.js +304 -0
  186. package/dist/esm/arcgis-feature-templates.entry.js +6 -5
  187. package/dist/esm/arcgis-feature.entry.js +6 -5
  188. package/dist/esm/arcgis-features.entry.js +12 -11
  189. package/dist/esm/arcgis-floor-filter.entry.js +6 -5
  190. package/dist/esm/arcgis-fullscreen.entry.js +6 -5
  191. package/dist/esm/arcgis-histogram-range-slider.entry.js +6 -5
  192. package/dist/esm/arcgis-histogram.entry.js +4 -3
  193. package/dist/esm/arcgis-home.entry.js +6 -5
  194. package/dist/esm/arcgis-layer-list.entry.js +8 -7
  195. package/dist/esm/arcgis-line-of-sight.entry.js +8 -7
  196. package/dist/esm/arcgis-locate.entry.js +6 -5
  197. package/dist/esm/arcgis-map-components.js +1 -1
  198. package/dist/esm/arcgis-measurement.entry.js +8 -7
  199. package/dist/esm/arcgis-navigation-toggle.entry.js +6 -5
  200. package/dist/esm/arcgis-print.entry.js +8 -7
  201. package/dist/esm/arcgis-scale-bar.entry.js +6 -5
  202. package/dist/esm/arcgis-scale-range-slider.entry.js +6 -5
  203. package/dist/esm/arcgis-search.entry.js +273 -0
  204. package/dist/esm/arcgis-shadow-cast.entry.js +6 -5
  205. package/dist/esm/arcgis-sketch.entry.js +12 -11
  206. package/dist/esm/arcgis-slice.entry.js +8 -7
  207. package/dist/esm/arcgis-slider.entry.js +22 -21
  208. package/dist/esm/arcgis-swipe.entry.js +6 -5
  209. package/dist/esm/arcgis-table-list.entry.js +8 -7
  210. package/dist/esm/arcgis-time-slider.entry.js +8 -7
  211. package/dist/esm/arcgis-track.entry.js +8 -7
  212. package/dist/esm/arcgis-utility-network-associations.entry.js +6 -5
  213. package/dist/esm/arcgis-utility-network-trace.entry.js +6 -5
  214. package/dist/esm/arcgis-utility-network-validate-topology.entry.js +6 -5
  215. package/dist/esm/arcgis-value-picker.entry.js +12 -11
  216. package/dist/esm/arcgis-weather.entry.js +6 -5
  217. package/dist/esm/arcgis-zoom.entry.js +6 -5
  218. package/dist/esm/{component-utils-2ebdae59.js → component-utils-b2132dc6.js} +23 -2
  219. package/dist/esm/{disconnected-bc5fc8bc.js → disconnected-b4c94753.js} +9 -1
  220. package/dist/esm/{index-c227d296.js → index-793aa630.js} +1 -1
  221. package/dist/esm/index-eb3ead33.js +6 -6
  222. package/dist/esm/loader.js +1 -1
  223. package/dist/types/components/{arcgis-area-measurement-2d/arcgis-area-measurement-2d.d.ts → area-measurement-2d/area-measurement-2d.d.ts} +1 -0
  224. package/dist/types/components/{arcgis-area-measurement-3d/arcgis-area-measurement-3d.d.ts → area-measurement-3d/area-measurement-3d.d.ts} +1 -0
  225. package/dist/types/components/{arcgis-attachments/arcgis-attachments.d.ts → attachments/attachments.d.ts} +1 -0
  226. package/dist/types/components/{arcgis-basemap-gallery/arcgis-basemap-gallery.d.ts → basemap-gallery/basemap-gallery.d.ts} +1 -0
  227. package/dist/types/components/{arcgis-basemap-layer-list/arcgis-basemap-layer-list.d.ts → basemap-layer-list/basemap-layer-list.d.ts} +1 -0
  228. package/dist/types/components/{arcgis-basemap-toggle/arcgis-basemap-toggle.d.ts → basemap-toggle/basemap-toggle.d.ts} +1 -0
  229. package/dist/types/components/{arcgis-bookmarks/arcgis-bookmarks.d.ts → bookmarks/bookmarks.d.ts} +1 -0
  230. package/dist/types/components/{arcgis-building-explorer/arcgis-building-explorer.d.ts → building-explorer/building-explorer.d.ts} +1 -0
  231. package/dist/types/components/{arcgis-compass/arcgis-compass.d.ts → compass/compass.d.ts} +1 -0
  232. package/dist/types/components/{arcgis-coordinate-conversion/arcgis-coordinate-conversion.d.ts → coordinate-conversion/coordinate-conversion.d.ts} +1 -0
  233. package/dist/types/components/{arcgis-daylight/arcgis-daylight.d.ts → daylight/daylight.d.ts} +1 -0
  234. package/dist/types/components/{arcgis-directions/arcgis-directions.d.ts → directions/directions.d.ts} +1 -0
  235. package/dist/types/components/{arcgis-directline-measurement-3d/arcgis-directline-measurement-3d.d.ts → directline-measurement-3d/directline-measurement-3d.d.ts} +1 -0
  236. package/dist/types/components/{arcgis-distance-measurement-2d/arcgis-distance-measurement-2d.d.ts → distance-measurement-2d/distance-measurement-2d.d.ts} +1 -0
  237. package/dist/types/components/{arcgis-editor/arcgis-editor.d.ts → editor/editor.d.ts} +1 -0
  238. package/dist/types/components/{arcgis-elevation-profile/arcgis-elevation-profile.d.ts → elevation-profile/elevation-profile.d.ts} +1 -0
  239. package/dist/types/components/{arcgis-expand/arcgis-expand.d.ts → expand/expand.d.ts} +1 -0
  240. package/dist/types/components/{arcgis-feature/arcgis-feature.d.ts → feature/feature.d.ts} +1 -0
  241. package/dist/types/components/{arcgis-feature-form/arcgis-feature-form.d.ts → feature-form/feature-form.d.ts} +1 -0
  242. package/dist/types/components/{arcgis-feature-table/arcgis-feature-table.d.ts → feature-table/feature-table.d.ts} +1 -0
  243. package/dist/types/components/{arcgis-feature-templates/arcgis-feature-templates.d.ts → feature-templates/feature-templates.d.ts} +1 -0
  244. package/dist/types/components/{arcgis-features/arcgis-features.d.ts → features/features.d.ts} +1 -0
  245. package/dist/types/components/{arcgis-floor-filter/arcgis-floor-filter.d.ts → floor-filter/floor-filter.d.ts} +1 -0
  246. package/dist/types/components/{arcgis-fullscreen/arcgis-fullscreen.d.ts → fullscreen/fullscreen.d.ts} +1 -0
  247. package/dist/types/components/{arcgis-histogram/arcgis-histogram.d.ts → histogram/histogram.d.ts} +1 -0
  248. package/dist/types/components/{arcgis-histogram-range-slider/arcgis-histogram-range-slider.d.ts → histogram-range-slider/histogram-range-slider.d.ts} +1 -0
  249. package/dist/types/components/{arcgis-home/arcgis-home.d.ts → home/home.d.ts} +1 -0
  250. package/dist/types/components/{arcgis-layer-list/arcgis-layer-list.d.ts → layer-list/layer-list.d.ts} +1 -0
  251. package/dist/types/components/{arcgis-legend/arcgis-legend.d.ts → legend/legend.d.ts} +1 -0
  252. package/dist/types/components/{arcgis-line-of-sight/arcgis-line-of-sight.d.ts → line-of-sight/line-of-sight.d.ts} +1 -0
  253. package/dist/types/components/{arcgis-locate/arcgis-locate.d.ts → locate/locate.d.ts} +1 -0
  254. package/dist/types/components/{arcgis-map/arcgis-map.d.ts → map/map.d.ts} +10 -2
  255. package/dist/types/components/{arcgis-measurement/arcgis-measurement.d.ts → measurement/measurement.d.ts} +1 -0
  256. package/dist/types/components/{arcgis-navigation-toggle/arcgis-navigation-toggle.d.ts → navigation-toggle/navigation-toggle.d.ts} +1 -0
  257. package/dist/types/components/{arcgis-print/arcgis-print.d.ts → print/print.d.ts} +1 -0
  258. package/dist/types/components/{arcgis-scale-bar/arcgis-scale-bar.d.ts → scale-bar/scale-bar.d.ts} +1 -0
  259. package/dist/types/components/{arcgis-scale-range-slider/arcgis-scale-range-slider.d.ts → scale-range-slider/scale-range-slider.d.ts} +1 -0
  260. package/dist/types/components/{arcgis-scene/arcgis-scene.d.ts → scene/scene.d.ts} +10 -2
  261. package/dist/types/components/{arcgis-search/arcgis-search.d.ts → search/search.d.ts} +1 -0
  262. package/dist/types/components/{arcgis-shadow-cast/arcgis-shadow-cast.d.ts → shadow-cast/shadow-cast.d.ts} +1 -0
  263. package/dist/types/components/{arcgis-sketch/arcgis-sketch.d.ts → sketch/sketch.d.ts} +1 -0
  264. package/dist/types/components/{arcgis-slice/arcgis-slice.d.ts → slice/slice.d.ts} +1 -0
  265. package/dist/types/components/{arcgis-slider/arcgis-slider.d.ts → slider/slider.d.ts} +1 -0
  266. package/dist/types/components/{arcgis-swipe/arcgis-swipe.d.ts → swipe/swipe.d.ts} +1 -0
  267. package/dist/types/components/{arcgis-table-list/arcgis-table-list.d.ts → table-list/table-list.d.ts} +1 -0
  268. package/dist/types/components/{arcgis-time-slider/arcgis-time-slider.d.ts → time-slider/time-slider.d.ts} +1 -0
  269. package/dist/types/components/{arcgis-track/arcgis-track.d.ts → track/track.d.ts} +1 -0
  270. package/dist/types/components/{arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts → utility-network-associations/utility-network-associations.d.ts} +1 -0
  271. package/dist/types/components/{arcgis-utility-network-trace/arcgis-utility-network-trace.d.ts → utility-network-trace/utility-network-trace.d.ts} +1 -0
  272. 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
  273. package/dist/types/components/{arcgis-value-picker/arcgis-value-picker.d.ts → value-picker/value-picker.d.ts} +1 -0
  274. package/dist/types/components/{arcgis-weather/arcgis-weather.d.ts → weather/weather.d.ts} +1 -0
  275. package/dist/types/components/{arcgis-zoom/arcgis-zoom.d.ts → zoom/zoom.d.ts} +1 -0
  276. package/dist/types/components.d.ts +51 -51
  277. package/dist/types/utils/component-utils.d.ts +3 -1
  278. package/package.json +13 -12
  279. package/dist/arcgis-map-components/p-01d9efae.entry.js +0 -1
  280. package/dist/arcgis-map-components/p-11e7ce02.entry.js +0 -1
  281. package/dist/arcgis-map-components/p-1435356e.entry.js +0 -1
  282. package/dist/arcgis-map-components/p-174f9d11.entry.js +0 -1
  283. package/dist/arcgis-map-components/p-18c653a4.entry.js +0 -1
  284. package/dist/arcgis-map-components/p-1b5e33ea.entry.js +0 -1
  285. package/dist/arcgis-map-components/p-1c631990.entry.js +0 -1
  286. package/dist/arcgis-map-components/p-21721d4b.entry.js +0 -1
  287. package/dist/arcgis-map-components/p-2becbf01.entry.js +0 -1
  288. package/dist/arcgis-map-components/p-2c5be6b0.entry.js +0 -1
  289. package/dist/arcgis-map-components/p-2d3406f7.js +0 -1
  290. package/dist/arcgis-map-components/p-312ff83f.entry.js +0 -1
  291. package/dist/arcgis-map-components/p-3361d81f.entry.js +0 -1
  292. package/dist/arcgis-map-components/p-3587b4d8.entry.js +0 -1
  293. package/dist/arcgis-map-components/p-3b5560bb.entry.js +0 -1
  294. package/dist/arcgis-map-components/p-3e676259.entry.js +0 -1
  295. package/dist/arcgis-map-components/p-47629a4c.entry.js +0 -1
  296. package/dist/arcgis-map-components/p-4b5fa9a2.entry.js +0 -1
  297. package/dist/arcgis-map-components/p-4bb15110.entry.js +0 -1
  298. package/dist/arcgis-map-components/p-4c103777.entry.js +0 -1
  299. package/dist/arcgis-map-components/p-4d5e7ddd.entry.js +0 -1
  300. package/dist/arcgis-map-components/p-4fa3c6fe.entry.js +0 -1
  301. package/dist/arcgis-map-components/p-501861a1.entry.js +0 -1
  302. package/dist/arcgis-map-components/p-535bf289.entry.js +0 -1
  303. package/dist/arcgis-map-components/p-5a91868a.entry.js +0 -1
  304. package/dist/arcgis-map-components/p-5cabdee7.js +0 -1
  305. package/dist/arcgis-map-components/p-5d835456.entry.js +0 -1
  306. package/dist/arcgis-map-components/p-5db2786d.entry.js +0 -1
  307. package/dist/arcgis-map-components/p-5ea3ce11.entry.js +0 -1
  308. package/dist/arcgis-map-components/p-721673c8.entry.js +0 -1
  309. package/dist/arcgis-map-components/p-8c18a99c.entry.js +0 -1
  310. package/dist/arcgis-map-components/p-8d184d92.entry.js +0 -1
  311. package/dist/arcgis-map-components/p-8fde8001.entry.js +0 -1
  312. package/dist/arcgis-map-components/p-927f8748.entry.js +0 -1
  313. package/dist/arcgis-map-components/p-9aad48fe.entry.js +0 -1
  314. package/dist/arcgis-map-components/p-9c1b8e69.entry.js +0 -1
  315. package/dist/arcgis-map-components/p-9e667282.entry.js +0 -1
  316. package/dist/arcgis-map-components/p-a67dda4e.entry.js +0 -1
  317. package/dist/arcgis-map-components/p-acb4a35a.entry.js +0 -1
  318. package/dist/arcgis-map-components/p-b19043d5.entry.js +0 -1
  319. package/dist/arcgis-map-components/p-b813c9e6.js +0 -1
  320. package/dist/arcgis-map-components/p-bb6e5f04.entry.js +0 -1
  321. package/dist/arcgis-map-components/p-bfae0a1f.entry.js +0 -1
  322. package/dist/arcgis-map-components/p-c63a5c7f.entry.js +0 -1
  323. package/dist/arcgis-map-components/p-ce14e49f.entry.js +0 -1
  324. package/dist/arcgis-map-components/p-d3fbbf3f.entry.js +0 -1
  325. package/dist/arcgis-map-components/p-d8be8a46.entry.js +0 -1
  326. package/dist/arcgis-map-components/p-dafb17cf.entry.js +0 -1
  327. package/dist/arcgis-map-components/p-ec2cc024.entry.js +0 -1
  328. package/dist/arcgis-map-components/p-ef0b3818.entry.js +0 -1
  329. package/dist/arcgis-map-components/p-f0e5dcc7.entry.js +0 -1
  330. package/dist/arcgis-map-components/p-f5cc7f2d.entry.js +0 -1
  331. package/dist/arcgis-map-components/p-f7b74cd4.entry.js +0 -1
  332. package/dist/cjs/arcgis-legend.cjs.entry.js +0 -146
  333. package/dist/cjs/arcgis-scene.cjs.entry.js +0 -126
  334. package/dist/cjs/mapping-utils-c2c7b994.js +0 -40
  335. package/dist/esm/arcgis-legend.entry.js +0 -142
  336. package/dist/esm/arcgis-scene.entry.js +0 -122
  337. package/dist/esm/mapping-utils-26beb904.js +0 -38
  338. /package/dist/cjs/{index-bfda1cdc.js → index-6439ae43.js} +0 -0
@@ -1,15 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { n as newWidgetsExpand, a as newLayersFeatureLayer, b as newWidgetsFeatureTable, i as importCoreReactiveUtils, c as importConfig, d as newWebMap, e as newViewsMapView, f as newWidgetsSearch } from './index-c227d296.js';
3
- import { r as referenceElementHelper, c as checkForView } from './component-utils-2ebdae59.js';
4
- import { o as onDisconnectedHelper } from './disconnected-bc5fc8bc.js';
5
- import { d as disableNavigation } from './mapping-utils-26beb904.js';
2
+ import { n as newWidgetsExpand, a as newWidgetsLegend, i as importConfig, b as importCoreReactiveUtils, c as newWebMap, d as newViewsMapView, e as newWebScene, f as newViewsSceneView } from './index-793aa630.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-b2132dc6.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
6
5
 
7
- const arcgisExpandCss = "arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";
6
+ const expandCss = "arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";
8
7
 
9
8
  const ArcgisExpand = class {
10
9
  constructor(hostRef) {
11
10
  registerInstance(this, hostRef);
12
11
  this.widgetReady = createEvent(this, "widgetReady", 7);
12
+ this._watchHandles = [];
13
13
  this.referenceElement = undefined;
14
14
  this.position = "top-right";
15
15
  this.view = undefined;
@@ -70,6 +70,7 @@ const ArcgisExpand = class {
70
70
  }
71
71
  else if (viewRef) {
72
72
  const handler = () => {
73
+ viewRef.removeEventListener("viewReady", handler, false);
73
74
  this.view = viewRef.view;
74
75
  this.view.ui.add(this.childElem, this.position);
75
76
  this.widgetReady.emit({ widget: this.widget });
@@ -84,37 +85,24 @@ const ArcgisExpand = class {
84
85
  "view": ["viewWatcher"]
85
86
  }; }
86
87
  };
87
- ArcgisExpand.style = arcgisExpandCss;
88
+ ArcgisExpand.style = expandCss;
88
89
 
89
- const arcgisFeatureTableCss = ".arcgis-feature-table{width:100%;height:100%}";
90
+ const legendCss = "";
90
91
 
91
- const ArcgisFeatureTable = class {
92
+ const ArcgisLegend = class {
92
93
  constructor(hostRef) {
93
94
  registerInstance(this, hostRef);
94
- this.rowSelectionChange = createEvent(this, "rowSelectionChange", 7);
95
95
  this.widgetReady = createEvent(this, "widgetReady", 7);
96
+ this._watchHandles = [];
96
97
  this.referenceElement = undefined;
97
- this.activeFilters = undefined;
98
- this.activeSortOrders = undefined;
99
- this.attachmentsEnabled = undefined;
100
- this.autoRefreshEnabled = undefined;
101
- this.columnReorderingEnabled = undefined;
102
- this.columns = undefined;
103
- this.editingEnabled = undefined;
104
- this.filterGeometry = undefined;
105
- this.hiddenFields = undefined;
106
- this.highlightEnabled = undefined;
107
- this.highlightIds = undefined;
108
- this.layer = undefined;
109
- this.menu = undefined;
110
- this.menuConfig = undefined;
111
- this.multiSortEnabled = undefined;
112
- this.pageSize = undefined;
113
- this.state = undefined;
114
- this.tableTemplate = undefined;
115
- this.itemId = undefined;
98
+ this.activeLayerInfos = undefined;
99
+ this.basemapLegendVisible = undefined;
100
+ this.hideLayersNotInCurrentView = undefined;
101
+ this.layerInfos = undefined;
102
+ this.respectLayerVisibility = undefined;
103
+ this.legendStyle = undefined;
116
104
  this.position = "bottom-left";
117
- this.url = undefined;
105
+ this.expandable = false;
118
106
  this.view = undefined;
119
107
  this.widget = undefined;
120
108
  }
@@ -130,85 +118,34 @@ const ArcgisFeatureTable = class {
130
118
  }
131
119
  }
132
120
  }
133
- attachmentsEnabledWatcher(value) {
134
- if (value && this.widget) {
135
- this.widget.attachmentsEnabled = value;
136
- }
137
- }
138
- autoRefreshEnabledWatcher(value) {
139
- if (value && this.widget) {
140
- this.widget.autoRefreshEnabled = value;
141
- }
142
- }
143
- columnReorderingEnabledWatcher(value) {
144
- if (value && this.widget) {
145
- this.widget.columnReorderingEnabled = value;
146
- }
147
- }
148
- editingEnabledWatcher(value) {
149
- if (value && this.widget) {
150
- this.widget.editingEnabled = value;
151
- }
152
- }
153
- filterGeometryWatcher(value) {
154
- if (value && this.widget) {
155
- this.widget.filterGeometry = value;
156
- }
157
- }
158
- hiddenFieldsWatcher(value) {
159
- if (value && this.widget) {
160
- this.widget.hiddenFields = value;
161
- }
162
- }
163
- highlightEnabledWatcher(value) {
164
- if (value && this.widget) {
165
- this.widget.highlightEnabled = value;
166
- }
167
- }
168
- highlightIdsWatcher(value) {
169
- if (value && this.widget) {
170
- this.widget.highlightIds = value;
171
- }
172
- }
173
- menuConfigWatcher(value) {
174
- if (value && this.widget) {
175
- this.widget.menuConfig = value;
176
- }
177
- }
178
- multiSortEnabledWatcher(value) {
179
- if (value && this.widget) {
180
- this.widget.multiSortEnabled = value;
121
+ activeLayerInfosWatcher(newValue) {
122
+ if (newValue !== undefined && this.widget) {
123
+ this.widget.activeLayerInfos = newValue;
181
124
  }
182
125
  }
183
- pageSizeWatcher(value) {
184
- if (value && this.widget) {
185
- this.widget.pageSize = value;
126
+ basemapLegendVisibleWatcher(newValue) {
127
+ if (newValue !== undefined && this.widget) {
128
+ this.widget.basemapLegendVisible = newValue;
186
129
  }
187
130
  }
188
- tableTemplateWatcher(value) {
189
- if (value && this.widget) {
190
- this.widget.tableTemplate = value;
131
+ hideLayersNotInCurrentViewWatcher(newValue) {
132
+ if (newValue !== undefined && this.widget) {
133
+ this.widget.hideLayersNotInCurrentView = newValue;
191
134
  }
192
135
  }
193
- async itemIdWatcher(value, old) {
194
- if (value && value !== old) {
195
- const layer = await newLayersFeatureLayer({
196
- portalItem: {
197
- id: value
198
- }
199
- });
200
- this.layer = layer;
136
+ layerInfosWatcher(newValue) {
137
+ if (newValue !== undefined && this.widget) {
138
+ this.widget.layerInfos = newValue;
201
139
  }
202
140
  }
203
- layerWatcher(value) {
204
- if (value && this.widget) {
205
- this.widget.layer = value;
141
+ respectLayerVisibilityWatcher(newValue) {
142
+ if (newValue !== undefined && this.widget) {
143
+ this.widget.respectLayerVisibility = newValue;
206
144
  }
207
145
  }
208
- async urlWatcher(value, old) {
209
- if (value && value !== old) {
210
- const layer = await newLayersFeatureLayer({ url: value });
211
- this.layer = layer;
146
+ styleWatcher(newValue) {
147
+ if (newValue !== undefined && this.widget) {
148
+ this.widget.style = newValue;
212
149
  }
213
150
  }
214
151
  referenceElementWatcher(newValue) {
@@ -221,50 +158,13 @@ const ArcgisFeatureTable = class {
221
158
  }
222
159
  //--------------------------------------------------------------------------
223
160
  //
224
- // Methods
225
- //
226
- //--------------------------------------------------------------------------
227
- async clearSelectionFilter() {
228
- return this.widget?.clearSelectionFilter();
229
- }
230
- async deleteSelection(showWarningPrompt) {
231
- return this.widget?.deleteSelection(showWarningPrompt);
232
- }
233
- async filterBySelection() {
234
- return this.widget?.filterBySelection();
235
- }
236
- async findColumn(fieldName) {
237
- return this.widget?.findColumn(fieldName);
238
- }
239
- async hideColumn(fieldName) {
240
- return this.widget?.hideColumn(fieldName);
241
- }
242
- async refresh() {
243
- return this.widget?.refresh();
244
- }
245
- async scrollToIndex(index) {
246
- return this.widget?.scrollToIndex(index);
247
- }
248
- async showAllColumns() {
249
- return this.widget?.showAllColumns();
250
- }
251
- async showColumn(fieldName) {
252
- return this.widget?.showColumn(fieldName);
253
- }
254
- async sortColumn(path, direction) {
255
- return this.widget?.sortColumn(path, direction);
256
- }
257
- //--------------------------------------------------------------------------
258
- //
259
161
  // Lifecycle
260
162
  //
261
163
  //--------------------------------------------------------------------------
262
164
  async componentDidLoad() {
263
- const params = await this._createParams();
264
- const widget = await newWidgetsFeatureTable(params);
165
+ const params = this._createParams();
166
+ const widget = await newWidgetsLegend(params);
265
167
  this.widget = widget;
266
- await this._addWatchers();
267
- this._proxyEvents();
268
168
  this.widgetReady.emit({ widget: this.widget });
269
169
  checkForView(this);
270
170
  }
@@ -272,123 +172,102 @@ const ArcgisFeatureTable = class {
272
172
  onDisconnectedHelper(this);
273
173
  }
274
174
  render() {
275
- return h("div", { class: "arcgis-feature-table", ref: (el) => (this.childElem = el) });
175
+ if (this.expandable) {
176
+ return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
177
+ }
178
+ return h("div", { ref: (el) => (this.childElem = el) });
276
179
  }
277
180
  //--------------------------------------------------------------------------
278
181
  //
279
182
  // Private Methods
280
183
  //
281
184
  //--------------------------------------------------------------------------
282
- async _addWatchers() {
283
- const { watch } = await importCoreReactiveUtils();
284
- watch(() => this.widget.activeFilters, (value) => (this.activeFilters = value), {
285
- initial: true
286
- });
287
- watch(() => this.widget.activeSortOrders, (value) => (this.activeSortOrders = value), {
288
- initial: true
289
- });
290
- watch(() => this.widget.columns, (value) => (this.columns = value), {
291
- initial: true
292
- });
293
- watch(() => this.widget.menu, (value) => (this.menu = value), {
294
- initial: true
295
- });
296
- watch(() => this.widget.state, (value) => (this.state = value), {
297
- initial: true
298
- });
299
- }
300
- async _createParams() {
185
+ _createParams() {
301
186
  const params = {
302
187
  container: this.childElem
303
188
  };
304
- if (this.view) {
305
- params.view = this.view;
306
- }
307
- if (this.attachmentsEnabled !== undefined) {
308
- params.attachmentsEnabled = this.attachmentsEnabled;
189
+ if (this.activeLayerInfos) {
190
+ params.activeLayerInfos = this.activeLayerInfos;
309
191
  }
310
- if (this.autoRefreshEnabled !== undefined) {
311
- params.autoRefreshEnabled = this.autoRefreshEnabled;
192
+ if (this.basemapLegendVisible !== undefined) {
193
+ params.basemapLegendVisible = this.basemapLegendVisible;
312
194
  }
313
- if (this.columnReorderingEnabled !== undefined) {
314
- params.columnReorderingEnabled = this.columnReorderingEnabled;
195
+ if (this.hideLayersNotInCurrentView !== undefined) {
196
+ params.hideLayersNotInCurrentView = this.hideLayersNotInCurrentView;
315
197
  }
316
- if (this.editingEnabled !== undefined) {
317
- params.editingEnabled = this.editingEnabled;
198
+ if (this.layerInfos) {
199
+ params.layerInfos = this.layerInfos;
318
200
  }
319
- if (this.filterGeometry !== undefined) {
320
- params.filterGeometry = this.filterGeometry;
201
+ if (this.respectLayerVisibility !== undefined) {
202
+ params.respectLayerVisibility = this.respectLayerVisibility;
321
203
  }
322
- if (this.hiddenFields !== undefined) {
323
- params.hiddenFields = this.hiddenFields;
204
+ if (this.legendStyle) {
205
+ params.style = this.legendStyle;
324
206
  }
325
- if (this.highlightEnabled !== undefined) {
326
- params.highlightEnabled = this.highlightEnabled;
327
- }
328
- if (this.highlightIds !== undefined) {
329
- params.highlightIds = this.highlightIds;
330
- }
331
- if (this.menuConfig !== undefined) {
332
- params.menuConfig = this.menuConfig;
333
- }
334
- if (this.multiSortEnabled !== undefined) {
335
- params.multiSortEnabled = this.multiSortEnabled;
336
- }
337
- if (this.pageSize !== undefined) {
338
- params.pageSize = this.pageSize;
339
- }
340
- if (this.tableTemplate !== undefined) {
341
- params.tableTemplate = this.tableTemplate;
342
- }
343
- // Handle loading a layer, url, or itemId
344
- if (this.layer !== undefined) {
345
- params.layer = this.layer;
346
- }
347
- else if (this.url) {
348
- params.layer = await newLayersFeatureLayer({ url: this.url });
349
- }
350
- else if (this.itemId) {
351
- params.layer = await newLayersFeatureLayer({
352
- portalItem: {
353
- id: this.itemId
354
- }
355
- });
207
+ if (this.view) {
208
+ params.view = this.view;
356
209
  }
357
210
  return params;
358
211
  }
359
- async _proxyEvents() {
360
- this.widget?.highlightIds.on("change", (e) => this.rowSelectionChange.emit(e));
361
- }
362
212
  get el() { return getElement(this); }
363
213
  static get watchers() { return {
364
214
  "position": ["positionWatcher"],
365
- "attachmentsEnabled": ["attachmentsEnabledWatcher"],
366
- "autoRefreshEnabled": ["autoRefreshEnabledWatcher"],
367
- "columnReorderingEnabled": ["columnReorderingEnabledWatcher"],
368
- "editingEnabled": ["editingEnabledWatcher"],
369
- "filterGeometry": ["filterGeometryWatcher"],
370
- "hiddenFields": ["hiddenFieldsWatcher"],
371
- "highlightEnabled": ["highlightEnabledWatcher"],
372
- "highlightIds": ["highlightIdsWatcher"],
373
- "menuConfig": ["menuConfigWatcher"],
374
- "multiSortEnabled": ["multiSortEnabledWatcher"],
375
- "pageSize": ["pageSizeWatcher"],
376
- "tableTemplate": ["tableTemplateWatcher"],
377
- "itemId": ["itemIdWatcher"],
378
- "layer": ["layerWatcher"],
379
- "url": ["urlWatcher"],
215
+ "activeLayerInfos": ["activeLayerInfosWatcher"],
216
+ "basemapLegendVisible": ["basemapLegendVisibleWatcher"],
217
+ "hideLayersNotInCurrentView": ["hideLayersNotInCurrentViewWatcher"],
218
+ "layerInfos": ["layerInfosWatcher"],
219
+ "respectLayerVisibility": ["respectLayerVisibilityWatcher"],
220
+ "legendStyle": ["styleWatcher"],
380
221
  "referenceElement": ["referenceElementWatcher"],
381
222
  "view": ["viewWatcher"]
382
223
  }; }
383
224
  };
384
- ArcgisFeatureTable.style = arcgisFeatureTableCss;
225
+ ArcgisLegend.style = legendCss;
385
226
 
386
- const arcgisMapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
227
+ function disableNavigation(view) {
228
+ if (view.type === '2d') {
229
+ view.constraints.rotationEnabled = false;
230
+ }
231
+ view.popup.dockEnabled = true;
232
+ // Removes the zoom action on the popup
233
+ view.popup.actions.removeAll();
234
+ view.popup.viewModel.includeDefaultActions = false;
235
+ // stops propagation of default behavior when an event fires
236
+ function stopEvtPropagation(event) {
237
+ event.stopPropagation();
238
+ }
239
+ // exlude the zoom widget from the default UI
240
+ view.ui.components = ['attribution'];
241
+ // disable mouse wheel scroll zooming on the view
242
+ view.on('mouse-wheel', stopEvtPropagation);
243
+ // disable zooming via double-click on the view
244
+ view.on('double-click', stopEvtPropagation);
245
+ // disable zooming out via double-click + Control on the view
246
+ view.on('double-click', ['Control'], stopEvtPropagation);
247
+ // disables pinch-zoom and panning on the view
248
+ view.on('drag', stopEvtPropagation);
249
+ // disable the view's zoom box to prevent the Shift + drag
250
+ // and Shift + Control + drag zoom gestures.
251
+ view.on('drag', ['Shift'], stopEvtPropagation);
252
+ view.on('drag', ['Shift', 'Control'], stopEvtPropagation);
253
+ // prevents zooming with the + and - keys
254
+ view.on('key-down', event => {
255
+ const prohibitedKeys = ['+', '-', 'Shift', '_', '=', 'ArrowUp', 'ArrowDown', 'ArrowRight', 'ArrowLeft'];
256
+ const keyPressed = event.key;
257
+ if (prohibitedKeys.indexOf(keyPressed) !== -1) {
258
+ event.stopPropagation();
259
+ }
260
+ });
261
+ return view;
262
+ }
263
+
264
+ const mapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
387
265
 
388
266
  const ArcgisMap = class {
389
267
  constructor(hostRef) {
390
268
  registerInstance(this, hostRef);
391
269
  this.viewReady = createEvent(this, "viewReady", 7);
270
+ this._watchHandles = [];
392
271
  this.apiKey = undefined;
393
272
  this.basemap = undefined;
394
273
  this.backgroundColor = undefined;
@@ -410,7 +289,32 @@ const ArcgisMap = class {
410
289
  }
411
290
  itemIdWatcher(value, old) {
412
291
  if (value && value !== old) {
413
- this.loadMap();
292
+ if (this.view?.map) {
293
+ this._updateMap();
294
+ }
295
+ else {
296
+ this._loadMap();
297
+ }
298
+ }
299
+ }
300
+ portalUrlWatcher(value, old) {
301
+ if (value && value !== old) {
302
+ if (this.view?.map) {
303
+ this._updateMap();
304
+ }
305
+ else {
306
+ this._loadMap();
307
+ }
308
+ }
309
+ }
310
+ scaleWatcher(value, old) {
311
+ if (value != null && value !== old) {
312
+ this.view.scale = value;
313
+ }
314
+ }
315
+ zoomWatcher(value, old) {
316
+ if (value != null && value !== old) {
317
+ this.view.zoom = value;
414
318
  }
415
319
  }
416
320
  //--------------------------------------------------------------------------
@@ -423,13 +327,17 @@ const ArcgisMap = class {
423
327
  if (this.apiKey) {
424
328
  this.config.apiKey = this.apiKey;
425
329
  }
426
- this.loadMap();
330
+ this._loadMap();
427
331
  }
428
332
  componentDidRender() {
429
333
  if (this.view) {
430
334
  this.view.container = this.el;
431
335
  }
432
336
  }
337
+ disconnectedCallback() {
338
+ this._clearWatchHandles();
339
+ this.view.destroy();
340
+ }
433
341
  render() {
434
342
  return h("div", { class: "arcgis-map", ref: (el) => (this.el = el) });
435
343
  }
@@ -438,7 +346,28 @@ const ArcgisMap = class {
438
346
  // Private Methods
439
347
  //
440
348
  //--------------------------------------------------------------------------
441
- async loadMap() {
349
+ _clearWatchHandles() {
350
+ this._watchHandles.forEach((handle) => handle.remove());
351
+ this._watchHandles = [];
352
+ }
353
+ async _addWatchers() {
354
+ const { watch, when } = await importCoreReactiveUtils();
355
+ this._watchHandles.push(watch(() => this.view.center, (center) => {
356
+ const value = `${center.longitude},${center.latitude}`;
357
+ this.center = value;
358
+ }));
359
+ this._watchHandles.push(when(() => this.view.updating, () => {
360
+ when(() => !this.view.updating, () => {
361
+ if (this.zoom !== this.view.zoom) {
362
+ this.zoom = this.view.zoom;
363
+ }
364
+ if (this.scale !== this.view.scale) {
365
+ this.scale = this.view.scale;
366
+ }
367
+ }, { once: true });
368
+ }));
369
+ }
370
+ async _createMap() {
442
371
  const mapParams = {};
443
372
  if (this.itemId) {
444
373
  mapParams.portalItem = this._createPortalItem();
@@ -447,31 +376,7 @@ const ArcgisMap = class {
447
376
  mapParams.basemap = this.basemap;
448
377
  }
449
378
  const map = await newWebMap(mapParams);
450
- const params = this._createViewParams();
451
- const view = await newViewsMapView({
452
- map,
453
- ...params
454
- });
455
- this.view = view;
456
- this._addWatchers();
457
- if (this.disableNavigation) {
458
- disableNavigation(this.view);
459
- }
460
- this.view.when(() => this.viewReady.emit({ view: this.view }));
461
- }
462
- //--------------------------------------------------------------------------
463
- //
464
- // Private Methods
465
- //
466
- //--------------------------------------------------------------------------
467
- async _addWatchers() {
468
- const { watch } = await importCoreReactiveUtils();
469
- watch(() => this.view.center, (center) => {
470
- const value = `${center.longitude},${center.latitude}`;
471
- this.center = value;
472
- });
473
- watch(() => this.view.zoom, (value) => (this.zoom = value));
474
- watch(() => this.view.scale, (value) => (this.scale = value));
379
+ return map;
475
380
  }
476
381
  _createPortalItem() {
477
382
  const item = {};
@@ -508,279 +413,214 @@ const ArcgisMap = class {
508
413
  }
509
414
  return params;
510
415
  }
511
- get hostElem() { return getElement(this); }
416
+ async _loadMap() {
417
+ const map = await this._createMap();
418
+ const params = this._createViewParams();
419
+ const view = await newViewsMapView({
420
+ map,
421
+ ...params
422
+ });
423
+ this.view = view;
424
+ this._addWatchers();
425
+ if (this.disableNavigation) {
426
+ disableNavigation(this.view);
427
+ }
428
+ this.view.when(() => {
429
+ this.viewReady.emit({ view: this.view });
430
+ });
431
+ }
432
+ async _updateMap() {
433
+ if (this.view?.map) {
434
+ this.view.map.destroy();
435
+ const map = await this._createMap();
436
+ this.view.map = map;
437
+ }
438
+ }
439
+ get _hostElement() { return getElement(this); }
512
440
  static get watchers() { return {
513
441
  "apiKey": ["apiKeyWatcher"],
514
442
  "backgroundColor": ["backgroundColorWatcher"],
515
- "itemId": ["itemIdWatcher"]
443
+ "itemId": ["itemIdWatcher"],
444
+ "portalUrl": ["portalUrlWatcher"],
445
+ "scale": ["scaleWatcher"],
446
+ "zoom": ["zoomWatcher"]
516
447
  }; }
517
448
  };
518
- ArcgisMap.style = arcgisMapCss;
449
+ ArcgisMap.style = mapCss;
519
450
 
520
- const arcgisSearchCss = "";
451
+ const sceneCss = ".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";
521
452
 
522
- const ArcgisSearch = class {
453
+ const ArcgisScene = class {
523
454
  constructor(hostRef) {
524
455
  registerInstance(this, hostRef);
525
- this.widgetReady = createEvent(this, "widgetReady", 7);
526
- this.searchBlur = createEvent(this, "searchBlur", 7);
527
- this.searchClear = createEvent(this, "searchClear", 7);
528
- this.searchComplete = createEvent(this, "searchComplete", 7);
529
- this.searchFocus = createEvent(this, "searchFocus", 7);
530
- this.searchStart = createEvent(this, "searchStart", 7);
531
- this.selectResult = createEvent(this, "selectResult", 7);
532
- this.suggestComplete = createEvent(this, "suggestComplete", 7);
533
- this.suggestStart = createEvent(this, "suggestStart", 7);
534
- this.referenceElement = undefined;
535
- this.activeMenu = undefined;
536
- this.activeSource = undefined;
537
- this.activeSourceIndex = undefined;
538
- this.allPlaceholder = undefined;
539
- this.allSources = undefined;
540
- this.autoSelect = undefined;
541
- this.defaultSources = undefined;
542
- this.includeDefaultSources = undefined;
543
- this.locationEnabled = undefined;
544
- this.maxResults = undefined;
545
- this.maxSuggestions = undefined;
546
- this.minSuggestCharacters = undefined;
547
- this.popupEnabled = undefined;
548
- this.popupTemplate = undefined;
549
- this.portal = undefined;
550
- this.resultGraphic = undefined;
551
- this.resultGraphicEnabled = undefined;
552
- this.results = undefined;
553
- this.searchAllEnabled = undefined;
554
- this.searchTerm = undefined;
555
- this.selectedResult = undefined;
556
- this.sources = undefined;
557
- this.suggestions = undefined;
558
- this.suggestionsEnabled = undefined;
559
- this.position = "top-right";
560
- this.expandable = false;
456
+ this.viewReady = createEvent(this, "viewReady", 7);
457
+ this._watchHandles = [];
458
+ this.apiKey = undefined;
459
+ this.basemap = undefined;
460
+ this.itemId = undefined;
461
+ this.portalUrl = undefined;
462
+ this.scale = undefined;
463
+ this.zoom = undefined;
464
+ this.center = undefined;
561
465
  this.view = undefined;
562
- this.widget = undefined;
563
- }
564
- //--------------------------------------------------------------------------
565
- //
566
- // Watchers
567
- //
568
- //--------------------------------------------------------------------------
569
- positionWatcher(newValue) {
570
- if (newValue !== undefined && this.widget) {
571
- if (typeof this.view !== "string") {
572
- this.view.ui.move(this.childElem, newValue);
573
- }
574
- }
575
- }
576
- activeMenuWatcher(newValue) {
577
- if (newValue !== undefined && this.widget) {
578
- this.widget.activeMenu = newValue;
579
- }
466
+ this.disableNavigation = false;
580
467
  }
581
- activeSourceIndexWatcher(newValue) {
582
- if (newValue !== undefined && this.widget) {
583
- this.widget.activeSourceIndex = newValue;
584
- }
468
+ apiKeyWatcher(value) {
469
+ this.config.apiKey = value;
585
470
  }
586
- allPlaceholderWatcher(newValue) {
587
- if (newValue !== undefined && this.widget) {
588
- this.widget.allPlaceholder = newValue;
471
+ itemIdWatcher(value, old) {
472
+ if (value && value !== old) {
473
+ if (this.view?.map) {
474
+ this._updateMap();
475
+ }
476
+ else {
477
+ this._loadMap();
478
+ }
589
479
  }
590
480
  }
591
- autoSelectWatcher(newValue) {
592
- if (newValue !== undefined && this.widget) {
593
- this.widget.autoSelect = newValue;
481
+ portalUrlWatcher(value, old) {
482
+ if (value && value !== old) {
483
+ if (this.view?.map) {
484
+ this._updateMap();
485
+ }
486
+ else {
487
+ this._loadMap();
488
+ }
594
489
  }
595
490
  }
596
- includeDefaultSourcesWatcher(newValue) {
597
- if (newValue !== undefined && this.widget) {
598
- this.widget.includeDefaultSources = newValue;
491
+ scaleWatcher(value, old) {
492
+ if (value != null && value !== old) {
493
+ this.view.scale = value;
599
494
  }
600
495
  }
601
- locationEnabledWatcher(newValue) {
602
- if (newValue !== undefined && this.widget) {
603
- this.widget.locationEnabled = newValue;
496
+ zoomWatcher(value, old) {
497
+ if (value != null && value !== old) {
498
+ this.view.zoom = value;
604
499
  }
605
500
  }
606
- maxResultsWatcher(newValue) {
607
- if (newValue !== undefined && this.widget) {
608
- this.widget.maxResults = newValue;
501
+ //--------------------------------------------------------------------------
502
+ //
503
+ // Lifecycle
504
+ //
505
+ //--------------------------------------------------------------------------
506
+ async componentWillLoad() {
507
+ this.config = await importConfig();
508
+ if (this.apiKey) {
509
+ this.config.apiKey = this.apiKey;
609
510
  }
511
+ this._loadMap();
610
512
  }
611
- maxSuggestionsWatcher(newValue) {
612
- if (newValue !== undefined && this.widget) {
613
- this.widget.maxSuggestions = newValue;
513
+ componentDidRender() {
514
+ if (this.view) {
515
+ this.view.container = this.el;
614
516
  }
615
517
  }
616
- minSuggestCharactersWatcher(newValue) {
617
- if (newValue !== undefined && this.widget) {
618
- this.widget.minSuggestCharacters = newValue;
619
- }
518
+ disconnectedCallback() {
519
+ this._clearWatchHandles();
520
+ this.view.destroy();
620
521
  }
621
- popupEnabledWatcher(newValue) {
622
- if (newValue !== undefined && this.widget) {
623
- this.widget.popupEnabled = newValue;
624
- }
522
+ render() {
523
+ return h("div", { class: "arcgis-scene", ref: (el) => (this.el = el) });
625
524
  }
626
- popupTemplateWatcher(newValue) {
627
- if (newValue !== undefined && this.widget) {
628
- this.widget.popupTemplate = newValue;
629
- }
525
+ //--------------------------------------------------------------------------
526
+ //
527
+ // Private Methods
528
+ //
529
+ //--------------------------------------------------------------------------
530
+ _clearWatchHandles() {
531
+ this._watchHandles.forEach((handle) => handle.remove());
532
+ this._watchHandles = [];
630
533
  }
631
- portalWatcher(newValue) {
632
- if (newValue !== undefined && this.widget) {
633
- this.widget.portal = newValue;
634
- }
534
+ async _addWatchers() {
535
+ const { watch, when } = await importCoreReactiveUtils();
536
+ this._watchHandles.push(watch(() => this.view.center, (center) => {
537
+ const value = `${center.longitude},${center.latitude}`;
538
+ this.center = value;
539
+ }));
540
+ this._watchHandles.push(when(() => this.view.updating, () => {
541
+ when(() => !this.view.updating, () => {
542
+ if (this.zoom !== this.view.zoom) {
543
+ this.zoom = this.view.zoom;
544
+ }
545
+ if (this.scale !== this.view.scale) {
546
+ this.scale = this.view.scale;
547
+ }
548
+ }, { once: true });
549
+ }));
635
550
  }
636
- resultGraphicEnabledWatcher(newValue) {
637
- if (newValue !== undefined && this.widget) {
638
- this.widget.resultGraphicEnabled = newValue;
551
+ async _createMap() {
552
+ const mapParams = {};
553
+ if (this.itemId) {
554
+ mapParams.portalItem = this._createPortalItem();
639
555
  }
640
- }
641
- searchAllEnabledWatcher(newValue) {
642
- if (newValue !== undefined && this.widget) {
643
- this.widget.searchAllEnabled = newValue;
556
+ if (this.basemap) {
557
+ mapParams.basemap = this.basemap;
644
558
  }
559
+ const map = await newWebScene(mapParams);
560
+ return map;
645
561
  }
646
- searchTermWatcher(newValue) {
647
- if (newValue !== undefined && this.widget) {
648
- this.widget.searchTerm = newValue;
562
+ _createPortalItem() {
563
+ const item = {};
564
+ if (this.itemId) {
565
+ item.id = this.itemId;
649
566
  }
650
- }
651
- sourcesWatcher(newValue) {
652
- if (newValue !== undefined && this.widget) {
653
- this.widget.sources = newValue;
567
+ if (this.portalUrl) {
568
+ item.portal = {
569
+ url: this.portalUrl
570
+ };
654
571
  }
572
+ return item;
655
573
  }
656
- suggestionsEnabledWatcher(newValue) {
657
- if (newValue !== undefined && this.widget) {
658
- this.widget.suggestionsEnabled = newValue;
574
+ _createViewParams() {
575
+ const params = {};
576
+ if (this.zoom !== undefined) {
577
+ params.zoom = this.zoom;
659
578
  }
660
- }
661
- referenceElementWatcher(newValue) {
662
- referenceElementHelper(this, newValue);
663
- }
664
- viewWatcher(newValue) {
665
- if (newValue !== undefined && this.widget) {
666
- this.widget.view = newValue;
579
+ if (this.scale !== undefined) {
580
+ params.scale = this.scale;
667
581
  }
668
- }
669
- //--------------------------------------------------------------------------
670
- //
671
- // Methods
672
- //
673
- //--------------------------------------------------------------------------
674
- async blurSearch() {
675
- return this.widget?.blur();
676
- }
677
- async clearSearch() {
678
- return this.widget?.clear();
679
- }
680
- async focusSearch() {
681
- return this.widget?.focus();
682
- }
683
- async search(term) {
684
- return this.widget?.search(term);
685
- }
686
- async suggest(term) {
687
- return this.widget?.suggest(term);
688
- }
689
- //--------------------------------------------------------------------------
690
- //
691
- // Lifecycle
692
- //
693
- //--------------------------------------------------------------------------
694
- async componentDidLoad() {
695
- const params = this._createParams();
696
- const widget = await newWidgetsSearch(params);
697
- this.widget = widget;
698
- await this._addWatchers();
699
- this._proxyEvents();
700
- this.widgetReady.emit({ widget: this.widget });
701
- checkForView(this);
702
- }
703
- disconnectedCallback() {
704
- onDisconnectedHelper(this);
705
- }
706
- render() {
707
- if (this.expandable) {
708
- return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
582
+ if (this.center) {
583
+ if (typeof this.center === "string") {
584
+ params.center = this.center.split(",").map((x) => Number(x));
585
+ }
586
+ else {
587
+ params.center = this.center;
588
+ }
709
589
  }
710
- return h("div", { ref: (el) => (this.childElem = el) });
590
+ return params;
711
591
  }
712
- //--------------------------------------------------------------------------
713
- //
714
- // Private Interal Methods
715
- //
716
- //--------------------------------------------------------------------------
717
- async _addWatchers() {
718
- const { watch } = await importCoreReactiveUtils();
719
- watch(() => this.widget.activeSource, (value) => (this.activeSource = value), {
720
- initial: true
721
- });
722
- watch(() => this.widget.activeSourceIndex, (value) => (this.activeSourceIndex = value), {
723
- initial: true
724
- });
725
- watch(() => this.widget.allSources, (value) => (this.allSources = value), {
726
- initial: true
727
- });
728
- watch(() => this.widget.defaultSources, (value) => (this.defaultSources = value), {
729
- initial: true
730
- });
731
- watch(() => this.widget.resultGraphic, (value) => (this.resultGraphic = value), {
732
- initial: true
733
- });
734
- watch(() => this.widget.results, (value) => (this.results = value), {
735
- initial: true
592
+ async _loadMap() {
593
+ const map = await this._createMap();
594
+ const params = this._createViewParams();
595
+ const view = await newViewsSceneView({
596
+ map,
597
+ ...params
736
598
  });
737
- watch(() => this.widget.selectedResult, (value) => (this.selectedResult = value), {
738
- initial: true
599
+ this.view = view;
600
+ this._addWatchers();
601
+ if (this.disableNavigation) {
602
+ disableNavigation(this.view);
603
+ }
604
+ this.view.when(() => {
605
+ this.viewReady.emit({ view: this.view });
739
606
  });
740
607
  }
741
- _createParams() {
742
- const params = {
743
- container: this.childElem
744
- };
745
- if (this.view) {
746
- params.view = this.view;
608
+ async _updateMap() {
609
+ if (this.view?.map) {
610
+ this.view.map.destroy();
611
+ const map = await this._createMap();
612
+ this.view.map = map;
747
613
  }
748
- return params;
749
- }
750
- _proxyEvents() {
751
- this.widget.on("search-blur", (e) => this.searchBlur.emit(e));
752
- this.widget.on("search-clear", (e) => this.searchClear.emit(e));
753
- this.widget.on("search-complete", (e) => this.searchComplete.emit(e));
754
- this.widget.on("search-focus", (e) => this.searchFocus.emit(e));
755
- this.widget.on("search-start", (e) => this.searchStart.emit(e));
756
- this.widget.on("select-result", (e) => this.selectResult.emit(e));
757
- this.widget.on("suggest-complete", (e) => this.suggestComplete.emit(e));
758
- this.widget.on("suggest-start", (e) => this.suggestStart.emit(e));
759
614
  }
760
- get el() { return getElement(this); }
615
+ get _hostElement() { return getElement(this); }
761
616
  static get watchers() { return {
762
- "position": ["positionWatcher"],
763
- "activeMenu": ["activeMenuWatcher"],
764
- "activeSourceIndex": ["activeSourceIndexWatcher"],
765
- "allPlaceholder": ["allPlaceholderWatcher"],
766
- "autoSelect": ["autoSelectWatcher"],
767
- "includeDefaultSources": ["includeDefaultSourcesWatcher"],
768
- "locationEnabled": ["locationEnabledWatcher"],
769
- "maxResults": ["maxResultsWatcher"],
770
- "maxSuggestions": ["maxSuggestionsWatcher"],
771
- "minSuggestCharacters": ["minSuggestCharactersWatcher"],
772
- "popupEnabled": ["popupEnabledWatcher"],
773
- "popupTemplate": ["popupTemplateWatcher"],
774
- "portal": ["portalWatcher"],
775
- "resultGraphicEnabled": ["resultGraphicEnabledWatcher"],
776
- "searchAllEnabled": ["searchAllEnabledWatcher"],
777
- "searchTerm": ["searchTermWatcher"],
778
- "sources": ["sourcesWatcher"],
779
- "suggestionsEnabled": ["suggestionsEnabledWatcher"],
780
- "referenceElement": ["referenceElementWatcher"],
781
- "view": ["viewWatcher"]
617
+ "apiKey": ["apiKeyWatcher"],
618
+ "itemId": ["itemIdWatcher"],
619
+ "portalUrl": ["portalUrlWatcher"],
620
+ "scale": ["scaleWatcher"],
621
+ "zoom": ["zoomWatcher"]
782
622
  }; }
783
623
  };
784
- ArcgisSearch.style = arcgisSearchCss;
624
+ ArcgisScene.style = sceneCss;
785
625
 
786
- export { ArcgisExpand as arcgis_expand, ArcgisFeatureTable as arcgis_feature_table, ArcgisMap as arcgis_map, ArcgisSearch as arcgis_search };
626
+ export { ArcgisExpand as arcgis_expand, ArcgisLegend as arcgis_legend, ArcgisMap as arcgis_map, ArcgisScene as arcgis_scene };