@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
@@ -2,18 +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');
9
- const mappingUtils = require('./mapping-utils-c2c7b994.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');
10
9
 
11
- const arcgisExpandCss = "arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";
10
+ const expandCss = "arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";
12
11
 
13
12
  const ArcgisExpand = class {
14
13
  constructor(hostRef) {
15
14
  index.registerInstance(this, hostRef);
16
15
  this.widgetReady = index.createEvent(this, "widgetReady", 7);
16
+ this._watchHandles = [];
17
17
  this.referenceElement = undefined;
18
18
  this.position = "top-right";
19
19
  this.view = undefined;
@@ -74,6 +74,7 @@ const ArcgisExpand = class {
74
74
  }
75
75
  else if (viewRef) {
76
76
  const handler = () => {
77
+ viewRef.removeEventListener("viewReady", handler, false);
77
78
  this.view = viewRef.view;
78
79
  this.view.ui.add(this.childElem, this.position);
79
80
  this.widgetReady.emit({ widget: this.widget });
@@ -88,311 +89,52 @@ const ArcgisExpand = class {
88
89
  "view": ["viewWatcher"]
89
90
  }; }
90
91
  };
91
- ArcgisExpand.style = arcgisExpandCss;
92
+ ArcgisExpand.style = expandCss;
92
93
 
93
- const arcgisFeatureTableCss = ".arcgis-feature-table{width:100%;height:100%}";
94
+ function disableNavigation(view) {
95
+ if (view.type === '2d') {
96
+ view.constraints.rotationEnabled = false;
97
+ }
98
+ view.popup.dockEnabled = true;
99
+ // Removes the zoom action on the popup
100
+ view.popup.actions.removeAll();
101
+ view.popup.viewModel.includeDefaultActions = false;
102
+ // stops propagation of default behavior when an event fires
103
+ function stopEvtPropagation(event) {
104
+ event.stopPropagation();
105
+ }
106
+ // exlude the zoom widget from the default UI
107
+ view.ui.components = ['attribution'];
108
+ // disable mouse wheel scroll zooming on the view
109
+ view.on('mouse-wheel', stopEvtPropagation);
110
+ // disable zooming via double-click on the view
111
+ view.on('double-click', stopEvtPropagation);
112
+ // disable zooming out via double-click + Control on the view
113
+ view.on('double-click', ['Control'], stopEvtPropagation);
114
+ // disables pinch-zoom and panning on the view
115
+ view.on('drag', stopEvtPropagation);
116
+ // disable the view's zoom box to prevent the Shift + drag
117
+ // and Shift + Control + drag zoom gestures.
118
+ view.on('drag', ['Shift'], stopEvtPropagation);
119
+ view.on('drag', ['Shift', 'Control'], stopEvtPropagation);
120
+ // prevents zooming with the + and - keys
121
+ view.on('key-down', event => {
122
+ const prohibitedKeys = ['+', '-', 'Shift', '_', '=', 'ArrowUp', 'ArrowDown', 'ArrowRight', 'ArrowLeft'];
123
+ const keyPressed = event.key;
124
+ if (prohibitedKeys.indexOf(keyPressed) !== -1) {
125
+ event.stopPropagation();
126
+ }
127
+ });
128
+ return view;
129
+ }
94
130
 
95
- const ArcgisFeatureTable = class {
96
- constructor(hostRef) {
97
- index.registerInstance(this, hostRef);
98
- this.rowSelectionChange = index.createEvent(this, "rowSelectionChange", 7);
99
- this.widgetReady = index.createEvent(this, "widgetReady", 7);
100
- this.referenceElement = undefined;
101
- this.activeFilters = undefined;
102
- this.activeSortOrders = undefined;
103
- this.attachmentsEnabled = undefined;
104
- this.autoRefreshEnabled = undefined;
105
- this.columnReorderingEnabled = undefined;
106
- this.columns = undefined;
107
- this.editingEnabled = undefined;
108
- this.filterGeometry = undefined;
109
- this.hiddenFields = undefined;
110
- this.highlightEnabled = undefined;
111
- this.highlightIds = undefined;
112
- this.layer = undefined;
113
- this.menu = undefined;
114
- this.menuConfig = undefined;
115
- this.multiSortEnabled = undefined;
116
- this.pageSize = undefined;
117
- this.state = undefined;
118
- this.tableTemplate = undefined;
119
- this.itemId = undefined;
120
- this.position = "bottom-left";
121
- this.url = undefined;
122
- this.view = undefined;
123
- this.widget = undefined;
124
- }
125
- //--------------------------------------------------------------------------
126
- //
127
- // Watchers
128
- //
129
- //--------------------------------------------------------------------------
130
- positionWatcher(newValue) {
131
- if (newValue !== undefined && this.widget) {
132
- if (typeof this.view !== "string") {
133
- this.view.ui.move(this.childElem, newValue);
134
- }
135
- }
136
- }
137
- attachmentsEnabledWatcher(value) {
138
- if (value && this.widget) {
139
- this.widget.attachmentsEnabled = value;
140
- }
141
- }
142
- autoRefreshEnabledWatcher(value) {
143
- if (value && this.widget) {
144
- this.widget.autoRefreshEnabled = value;
145
- }
146
- }
147
- columnReorderingEnabledWatcher(value) {
148
- if (value && this.widget) {
149
- this.widget.columnReorderingEnabled = value;
150
- }
151
- }
152
- editingEnabledWatcher(value) {
153
- if (value && this.widget) {
154
- this.widget.editingEnabled = value;
155
- }
156
- }
157
- filterGeometryWatcher(value) {
158
- if (value && this.widget) {
159
- this.widget.filterGeometry = value;
160
- }
161
- }
162
- hiddenFieldsWatcher(value) {
163
- if (value && this.widget) {
164
- this.widget.hiddenFields = value;
165
- }
166
- }
167
- highlightEnabledWatcher(value) {
168
- if (value && this.widget) {
169
- this.widget.highlightEnabled = value;
170
- }
171
- }
172
- highlightIdsWatcher(value) {
173
- if (value && this.widget) {
174
- this.widget.highlightIds = value;
175
- }
176
- }
177
- menuConfigWatcher(value) {
178
- if (value && this.widget) {
179
- this.widget.menuConfig = value;
180
- }
181
- }
182
- multiSortEnabledWatcher(value) {
183
- if (value && this.widget) {
184
- this.widget.multiSortEnabled = value;
185
- }
186
- }
187
- pageSizeWatcher(value) {
188
- if (value && this.widget) {
189
- this.widget.pageSize = value;
190
- }
191
- }
192
- tableTemplateWatcher(value) {
193
- if (value && this.widget) {
194
- this.widget.tableTemplate = value;
195
- }
196
- }
197
- async itemIdWatcher(value, old) {
198
- if (value && value !== old) {
199
- const layer = await index$1.newLayersFeatureLayer({
200
- portalItem: {
201
- id: value
202
- }
203
- });
204
- this.layer = layer;
205
- }
206
- }
207
- layerWatcher(value) {
208
- if (value && this.widget) {
209
- this.widget.layer = value;
210
- }
211
- }
212
- async urlWatcher(value, old) {
213
- if (value && value !== old) {
214
- const layer = await index$1.newLayersFeatureLayer({ url: value });
215
- this.layer = layer;
216
- }
217
- }
218
- referenceElementWatcher(newValue) {
219
- componentUtils.referenceElementHelper(this, newValue);
220
- }
221
- viewWatcher(newValue) {
222
- if (newValue !== undefined && this.widget) {
223
- this.widget.view = newValue;
224
- }
225
- }
226
- //--------------------------------------------------------------------------
227
- //
228
- // Methods
229
- //
230
- //--------------------------------------------------------------------------
231
- async clearSelectionFilter() {
232
- return this.widget?.clearSelectionFilter();
233
- }
234
- async deleteSelection(showWarningPrompt) {
235
- return this.widget?.deleteSelection(showWarningPrompt);
236
- }
237
- async filterBySelection() {
238
- return this.widget?.filterBySelection();
239
- }
240
- async findColumn(fieldName) {
241
- return this.widget?.findColumn(fieldName);
242
- }
243
- async hideColumn(fieldName) {
244
- return this.widget?.hideColumn(fieldName);
245
- }
246
- async refresh() {
247
- return this.widget?.refresh();
248
- }
249
- async scrollToIndex(index) {
250
- return this.widget?.scrollToIndex(index);
251
- }
252
- async showAllColumns() {
253
- return this.widget?.showAllColumns();
254
- }
255
- async showColumn(fieldName) {
256
- return this.widget?.showColumn(fieldName);
257
- }
258
- async sortColumn(path, direction) {
259
- return this.widget?.sortColumn(path, direction);
260
- }
261
- //--------------------------------------------------------------------------
262
- //
263
- // Lifecycle
264
- //
265
- //--------------------------------------------------------------------------
266
- async componentDidLoad() {
267
- const params = await this._createParams();
268
- const widget = await index$1.newWidgetsFeatureTable(params);
269
- this.widget = widget;
270
- await this._addWatchers();
271
- this._proxyEvents();
272
- this.widgetReady.emit({ widget: this.widget });
273
- componentUtils.checkForView(this);
274
- }
275
- disconnectedCallback() {
276
- disconnected.onDisconnectedHelper(this);
277
- }
278
- render() {
279
- return index.h("div", { class: "arcgis-feature-table", ref: (el) => (this.childElem = el) });
280
- }
281
- //--------------------------------------------------------------------------
282
- //
283
- // Private Methods
284
- //
285
- //--------------------------------------------------------------------------
286
- async _addWatchers() {
287
- const { watch } = await index$1.importCoreReactiveUtils();
288
- watch(() => this.widget.activeFilters, (value) => (this.activeFilters = value), {
289
- initial: true
290
- });
291
- watch(() => this.widget.activeSortOrders, (value) => (this.activeSortOrders = value), {
292
- initial: true
293
- });
294
- watch(() => this.widget.columns, (value) => (this.columns = value), {
295
- initial: true
296
- });
297
- watch(() => this.widget.menu, (value) => (this.menu = value), {
298
- initial: true
299
- });
300
- watch(() => this.widget.state, (value) => (this.state = value), {
301
- initial: true
302
- });
303
- }
304
- async _createParams() {
305
- const params = {
306
- container: this.childElem
307
- };
308
- if (this.view) {
309
- params.view = this.view;
310
- }
311
- if (this.attachmentsEnabled !== undefined) {
312
- params.attachmentsEnabled = this.attachmentsEnabled;
313
- }
314
- if (this.autoRefreshEnabled !== undefined) {
315
- params.autoRefreshEnabled = this.autoRefreshEnabled;
316
- }
317
- if (this.columnReorderingEnabled !== undefined) {
318
- params.columnReorderingEnabled = this.columnReorderingEnabled;
319
- }
320
- if (this.editingEnabled !== undefined) {
321
- params.editingEnabled = this.editingEnabled;
322
- }
323
- if (this.filterGeometry !== undefined) {
324
- params.filterGeometry = this.filterGeometry;
325
- }
326
- if (this.hiddenFields !== undefined) {
327
- params.hiddenFields = this.hiddenFields;
328
- }
329
- if (this.highlightEnabled !== undefined) {
330
- params.highlightEnabled = this.highlightEnabled;
331
- }
332
- if (this.highlightIds !== undefined) {
333
- params.highlightIds = this.highlightIds;
334
- }
335
- if (this.menuConfig !== undefined) {
336
- params.menuConfig = this.menuConfig;
337
- }
338
- if (this.multiSortEnabled !== undefined) {
339
- params.multiSortEnabled = this.multiSortEnabled;
340
- }
341
- if (this.pageSize !== undefined) {
342
- params.pageSize = this.pageSize;
343
- }
344
- if (this.tableTemplate !== undefined) {
345
- params.tableTemplate = this.tableTemplate;
346
- }
347
- // Handle loading a layer, url, or itemId
348
- if (this.layer !== undefined) {
349
- params.layer = this.layer;
350
- }
351
- else if (this.url) {
352
- params.layer = await index$1.newLayersFeatureLayer({ url: this.url });
353
- }
354
- else if (this.itemId) {
355
- params.layer = await index$1.newLayersFeatureLayer({
356
- portalItem: {
357
- id: this.itemId
358
- }
359
- });
360
- }
361
- return params;
362
- }
363
- async _proxyEvents() {
364
- this.widget?.highlightIds.on("change", (e) => this.rowSelectionChange.emit(e));
365
- }
366
- get el() { return index.getElement(this); }
367
- static get watchers() { return {
368
- "position": ["positionWatcher"],
369
- "attachmentsEnabled": ["attachmentsEnabledWatcher"],
370
- "autoRefreshEnabled": ["autoRefreshEnabledWatcher"],
371
- "columnReorderingEnabled": ["columnReorderingEnabledWatcher"],
372
- "editingEnabled": ["editingEnabledWatcher"],
373
- "filterGeometry": ["filterGeometryWatcher"],
374
- "hiddenFields": ["hiddenFieldsWatcher"],
375
- "highlightEnabled": ["highlightEnabledWatcher"],
376
- "highlightIds": ["highlightIdsWatcher"],
377
- "menuConfig": ["menuConfigWatcher"],
378
- "multiSortEnabled": ["multiSortEnabledWatcher"],
379
- "pageSize": ["pageSizeWatcher"],
380
- "tableTemplate": ["tableTemplateWatcher"],
381
- "itemId": ["itemIdWatcher"],
382
- "layer": ["layerWatcher"],
383
- "url": ["urlWatcher"],
384
- "referenceElement": ["referenceElementWatcher"],
385
- "view": ["viewWatcher"]
386
- }; }
387
- };
388
- ArcgisFeatureTable.style = arcgisFeatureTableCss;
389
-
390
- const arcgisMapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
131
+ const mapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
391
132
 
392
133
  const ArcgisMap = class {
393
134
  constructor(hostRef) {
394
135
  index.registerInstance(this, hostRef);
395
136
  this.viewReady = index.createEvent(this, "viewReady", 7);
137
+ this._watchHandles = [];
396
138
  this.apiKey = undefined;
397
139
  this.basemap = undefined;
398
140
  this.backgroundColor = undefined;
@@ -407,14 +149,53 @@ const ArcgisMap = class {
407
149
  apiKeyWatcher(value) {
408
150
  this.config.apiKey = value;
409
151
  }
152
+ basemapWatcher(value) {
153
+ if (this.view?.map) {
154
+ this.view.map.basemap = value;
155
+ }
156
+ }
410
157
  backgroundColorWatcher(value) {
411
158
  this.view.background = {
412
159
  color: value
413
160
  };
414
161
  }
415
162
  itemIdWatcher(value, old) {
416
- if (value && value !== old) {
417
- this.loadMap();
163
+ // NOTE: there is an issue when users set the value to undefined.
164
+ // https://github.com/ionic-team/stencil/issues/2814
165
+ // If user sets `itemid` to `undefined`, Stencil 2 will log the following warning:
166
+ // `The state/prop "${propName}" changed during rendering.`
167
+ // `This can potentially lead to infinite-loops and other bugs.`
168
+ //
169
+ // It appears consumer setting the value to null does not cause this warning.
170
+ // In Stencil 4, if a user sets property to undefined, will trigger change, but
171
+ // will not remove attribute from DOM.
172
+ if (value !== old) {
173
+ if (this.view?.map) {
174
+ this._updateMap();
175
+ }
176
+ else {
177
+ this._loadMap();
178
+ }
179
+ }
180
+ }
181
+ portalUrlWatcher(value, old) {
182
+ if (value !== old) {
183
+ if (this.view?.map) {
184
+ this._updateMap();
185
+ }
186
+ else {
187
+ this._loadMap();
188
+ }
189
+ }
190
+ }
191
+ scaleWatcher(value, old) {
192
+ if (value != null && value !== old) {
193
+ this.view.scale = value;
194
+ }
195
+ }
196
+ zoomWatcher(value, old) {
197
+ if (value != null && value !== old) {
198
+ this.view.zoom = value;
418
199
  }
419
200
  }
420
201
  //--------------------------------------------------------------------------
@@ -427,13 +208,17 @@ const ArcgisMap = class {
427
208
  if (this.apiKey) {
428
209
  this.config.apiKey = this.apiKey;
429
210
  }
430
- this.loadMap();
211
+ this._loadMap();
431
212
  }
432
213
  componentDidRender() {
433
214
  if (this.view) {
434
215
  this.view.container = this.el;
435
216
  }
436
217
  }
218
+ disconnectedCallback() {
219
+ this._clearWatchHandles();
220
+ this.view.destroy();
221
+ }
437
222
  render() {
438
223
  return index.h("div", { class: "arcgis-map", ref: (el) => (this.el = el) });
439
224
  }
@@ -442,7 +227,28 @@ const ArcgisMap = class {
442
227
  // Private Methods
443
228
  //
444
229
  //--------------------------------------------------------------------------
445
- async loadMap() {
230
+ _clearWatchHandles() {
231
+ this._watchHandles.forEach((handle) => handle.remove());
232
+ this._watchHandles = [];
233
+ }
234
+ async _addWatchers() {
235
+ const { watch, when } = await index$1.importCoreReactiveUtils();
236
+ this._watchHandles.push(watch(() => this.view.center, (center) => {
237
+ const value = `${center.longitude},${center.latitude}`;
238
+ this.center = value;
239
+ }));
240
+ this._watchHandles.push(when(() => this.view.updating, () => {
241
+ when(() => !this.view.updating, () => {
242
+ if (this.zoom !== this.view.zoom) {
243
+ this.zoom = this.view.zoom;
244
+ }
245
+ if (this.scale !== this.view.scale) {
246
+ this.scale = this.view.scale;
247
+ }
248
+ }, { once: true });
249
+ }));
250
+ }
251
+ async _createMap() {
446
252
  const mapParams = {};
447
253
  if (this.itemId) {
448
254
  mapParams.portalItem = this._createPortalItem();
@@ -450,32 +256,11 @@ const ArcgisMap = class {
450
256
  if (this.basemap) {
451
257
  mapParams.basemap = this.basemap;
452
258
  }
453
- const map = await index$1.newWebMap(mapParams);
454
- const params = this._createViewParams();
455
- const view = await index$1.newViewsMapView({
456
- map,
457
- ...params
458
- });
459
- this.view = view;
460
- this._addWatchers();
461
- if (this.disableNavigation) {
462
- mappingUtils.disableNavigation(this.view);
259
+ else if (componentUtils.isNullOrEmptyString(this.itemId)) {
260
+ mapParams.basemap = "topo-vector";
463
261
  }
464
- this.view.when(() => this.viewReady.emit({ view: this.view }));
465
- }
466
- //--------------------------------------------------------------------------
467
- //
468
- // Private Methods
469
- //
470
- //--------------------------------------------------------------------------
471
- async _addWatchers() {
472
- const { watch } = await index$1.importCoreReactiveUtils();
473
- watch(() => this.view.center, (center) => {
474
- const value = `${center.longitude},${center.latitude}`;
475
- this.center = value;
476
- });
477
- watch(() => this.view.zoom, (value) => (this.zoom = value));
478
- watch(() => this.view.scale, (value) => (this.scale = value));
262
+ const map = await index$1.newWebMap(mapParams);
263
+ return map;
479
264
  }
480
265
  _createPortalItem() {
481
266
  const item = {};
@@ -512,282 +297,277 @@ const ArcgisMap = class {
512
297
  }
513
298
  return params;
514
299
  }
515
- get hostElem() { return index.getElement(this); }
300
+ async _loadMap() {
301
+ const map = await this._createMap();
302
+ const params = this._createViewParams();
303
+ const view = await index$1.newViewsMapView({
304
+ map,
305
+ ...params
306
+ });
307
+ this.view = view;
308
+ this._addWatchers();
309
+ if (this.disableNavigation) {
310
+ disableNavigation(this.view);
311
+ }
312
+ this.view.when(() => {
313
+ this.viewReady.emit({ view: this.view });
314
+ });
315
+ }
316
+ async _updateMap() {
317
+ if (this.view?.map) {
318
+ this.view.map.destroy();
319
+ const map = await this._createMap();
320
+ this.view.map = map;
321
+ }
322
+ }
323
+ get _hostElement() { return index.getElement(this); }
516
324
  static get watchers() { return {
517
325
  "apiKey": ["apiKeyWatcher"],
326
+ "basemap": ["basemapWatcher"],
518
327
  "backgroundColor": ["backgroundColorWatcher"],
519
- "itemId": ["itemIdWatcher"]
328
+ "itemId": ["itemIdWatcher"],
329
+ "portalUrl": ["portalUrlWatcher"],
330
+ "scale": ["scaleWatcher"],
331
+ "zoom": ["zoomWatcher"]
520
332
  }; }
521
333
  };
522
- ArcgisMap.style = arcgisMapCss;
334
+ ArcgisMap.style = mapCss;
523
335
 
524
- const arcgisSearchCss = "";
336
+ const placementCss = "arcgis-placement{}";
525
337
 
526
- const ArcgisSearch = class {
338
+ const ArcgisPlacement = class {
527
339
  constructor(hostRef) {
528
340
  index.registerInstance(this, hostRef);
529
- this.widgetReady = index.createEvent(this, "widgetReady", 7);
530
- this.searchBlur = index.createEvent(this, "searchBlur", 7);
531
- this.searchClear = index.createEvent(this, "searchClear", 7);
532
- this.searchComplete = index.createEvent(this, "searchComplete", 7);
533
- this.searchFocus = index.createEvent(this, "searchFocus", 7);
534
- this.searchStart = index.createEvent(this, "searchStart", 7);
535
- this.selectResult = index.createEvent(this, "selectResult", 7);
536
- this.suggestComplete = index.createEvent(this, "suggestComplete", 7);
537
- this.suggestStart = index.createEvent(this, "suggestStart", 7);
341
+ this.placementReady = index.createEvent(this, "placementReady", 7);
538
342
  this.referenceElement = undefined;
539
- this.activeMenu = undefined;
540
- this.activeSource = undefined;
541
- this.activeSourceIndex = undefined;
542
- this.allPlaceholder = undefined;
543
- this.allSources = undefined;
544
- this.autoSelect = undefined;
545
- this.defaultSources = undefined;
546
- this.includeDefaultSources = undefined;
547
- this.locationEnabled = undefined;
548
- this.maxResults = undefined;
549
- this.maxSuggestions = undefined;
550
- this.minSuggestCharacters = undefined;
551
- this.popupEnabled = undefined;
552
- this.popupTemplate = undefined;
553
- this.portal = undefined;
554
- this.resultGraphic = undefined;
555
- this.resultGraphicEnabled = undefined;
556
- this.results = undefined;
557
- this.searchAllEnabled = undefined;
558
- this.searchTerm = undefined;
559
- this.selectedResult = undefined;
560
- this.sources = undefined;
561
- this.suggestions = undefined;
562
- this.suggestionsEnabled = undefined;
563
- this.position = "top-right";
564
- this.expandable = false;
565
343
  this.view = undefined;
566
- this.widget = undefined;
344
+ this.position = "bottom-left";
345
+ }
346
+ referenceElementWatcher(newValue) {
347
+ componentUtils.referenceElementHelper(this, newValue);
348
+ }
349
+ positionWatcher(newValue) {
350
+ if (newValue !== undefined) {
351
+ this.view.ui.move(this.childElem, newValue);
352
+ }
567
353
  }
568
354
  //--------------------------------------------------------------------------
569
355
  //
570
- // Watchers
356
+ // Lifecycle
571
357
  //
572
358
  //--------------------------------------------------------------------------
573
- positionWatcher(newValue) {
574
- if (newValue !== undefined && this.widget) {
575
- if (typeof this.view !== "string") {
576
- this.view.ui.move(this.childElem, newValue);
577
- }
578
- }
579
- }
580
- activeMenuWatcher(newValue) {
581
- if (newValue !== undefined && this.widget) {
582
- this.widget.activeMenu = newValue;
583
- }
584
- }
585
- activeSourceIndexWatcher(newValue) {
586
- if (newValue !== undefined && this.widget) {
587
- this.widget.activeSourceIndex = newValue;
588
- }
589
- }
590
- allPlaceholderWatcher(newValue) {
591
- if (newValue !== undefined && this.widget) {
592
- this.widget.allPlaceholder = newValue;
593
- }
594
- }
595
- autoSelectWatcher(newValue) {
596
- if (newValue !== undefined && this.widget) {
597
- this.widget.autoSelect = newValue;
598
- }
599
- }
600
- includeDefaultSourcesWatcher(newValue) {
601
- if (newValue !== undefined && this.widget) {
602
- this.widget.includeDefaultSources = newValue;
603
- }
604
- }
605
- locationEnabledWatcher(newValue) {
606
- if (newValue !== undefined && this.widget) {
607
- this.widget.locationEnabled = newValue;
608
- }
609
- }
610
- maxResultsWatcher(newValue) {
611
- if (newValue !== undefined && this.widget) {
612
- this.widget.maxResults = newValue;
613
- }
614
- }
615
- maxSuggestionsWatcher(newValue) {
616
- if (newValue !== undefined && this.widget) {
617
- this.widget.maxSuggestions = newValue;
618
- }
619
- }
620
- minSuggestCharactersWatcher(newValue) {
621
- if (newValue !== undefined && this.widget) {
622
- this.widget.minSuggestCharacters = newValue;
623
- }
359
+ async componentDidLoad() {
360
+ this.placementReady.emit({ ready: true });
361
+ componentUtils.checkForView(this);
624
362
  }
625
- popupEnabledWatcher(newValue) {
626
- if (newValue !== undefined && this.widget) {
627
- this.widget.popupEnabled = newValue;
628
- }
363
+ disconnectedCallback() {
364
+ disconnected.onDisconnectedHelper(this);
629
365
  }
630
- popupTemplateWatcher(newValue) {
631
- if (newValue !== undefined && this.widget) {
632
- this.widget.popupTemplate = newValue;
633
- }
366
+ render() {
367
+ return (index.h("div", { ref: (el) => (this.childElem = el) }, index.h("slot", null)));
634
368
  }
635
- portalWatcher(newValue) {
636
- if (newValue !== undefined && this.widget) {
637
- this.widget.portal = newValue;
638
- }
369
+ get el() { return index.getElement(this); }
370
+ static get watchers() { return {
371
+ "referenceElement": ["referenceElementWatcher"],
372
+ "position": ["positionWatcher"]
373
+ }; }
374
+ };
375
+ ArcgisPlacement.style = placementCss;
376
+
377
+ const sceneCss = ".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";
378
+
379
+ const ArcgisScene = class {
380
+ constructor(hostRef) {
381
+ index.registerInstance(this, hostRef);
382
+ this.viewReady = index.createEvent(this, "viewReady", 7);
383
+ this._watchHandles = [];
384
+ this.apiKey = undefined;
385
+ this.basemap = undefined;
386
+ this.itemId = undefined;
387
+ this.portalUrl = undefined;
388
+ this.scale = undefined;
389
+ this.zoom = undefined;
390
+ this.center = undefined;
391
+ this.view = undefined;
392
+ this.disableNavigation = false;
639
393
  }
640
- resultGraphicEnabledWatcher(newValue) {
641
- if (newValue !== undefined && this.widget) {
642
- this.widget.resultGraphicEnabled = newValue;
643
- }
394
+ apiKeyWatcher(value) {
395
+ this.config.apiKey = value;
644
396
  }
645
- searchAllEnabledWatcher(newValue) {
646
- if (newValue !== undefined && this.widget) {
647
- this.widget.searchAllEnabled = newValue;
397
+ basemapWatcher(value) {
398
+ if (this.view?.map) {
399
+ this.view.map.basemap = value;
648
400
  }
649
401
  }
650
- searchTermWatcher(newValue) {
651
- if (newValue !== undefined && this.widget) {
652
- this.widget.searchTerm = newValue;
402
+ itemIdWatcher(value, old) {
403
+ // NOTE: there is an issue when users set the value to undefined.
404
+ // https://github.com/ionic-team/stencil/issues/2814
405
+ // If user sets `itemid` to `undefined`, Stencil 2 will log the following warning:
406
+ // `The state/prop "${propName}" changed during rendering.`
407
+ // `This can potentially lead to infinite-loops and other bugs.`
408
+ //
409
+ // It appears consumer setting the value to null does not cause this warning.
410
+ // In Stencil 4, if a user sets property to undefined, will trigger change, but
411
+ // will not remove attribute from DOM.
412
+ if (value !== old) {
413
+ if (this.view?.map) {
414
+ this._updateMap();
415
+ }
416
+ else {
417
+ this._loadMap();
418
+ }
653
419
  }
654
420
  }
655
- sourcesWatcher(newValue) {
656
- if (newValue !== undefined && this.widget) {
657
- this.widget.sources = newValue;
421
+ portalUrlWatcher(value, old) {
422
+ if (value && value !== old) {
423
+ if (this.view?.map) {
424
+ this._updateMap();
425
+ }
426
+ else {
427
+ this._loadMap();
428
+ }
658
429
  }
659
430
  }
660
- suggestionsEnabledWatcher(newValue) {
661
- if (newValue !== undefined && this.widget) {
662
- this.widget.suggestionsEnabled = newValue;
431
+ scaleWatcher(value, old) {
432
+ if (value != null && value !== old) {
433
+ this.view.scale = value;
663
434
  }
664
435
  }
665
- referenceElementWatcher(newValue) {
666
- componentUtils.referenceElementHelper(this, newValue);
667
- }
668
- viewWatcher(newValue) {
669
- if (newValue !== undefined && this.widget) {
670
- this.widget.view = newValue;
436
+ zoomWatcher(value, old) {
437
+ if (value != null && value !== old) {
438
+ this.view.zoom = value;
671
439
  }
672
440
  }
673
441
  //--------------------------------------------------------------------------
674
442
  //
675
- // Methods
443
+ // Lifecycle
676
444
  //
677
445
  //--------------------------------------------------------------------------
678
- async blurSearch() {
679
- return this.widget?.blur();
680
- }
681
- async clearSearch() {
682
- return this.widget?.clear();
446
+ async componentWillLoad() {
447
+ this.config = await index$1.importConfig();
448
+ if (this.apiKey) {
449
+ this.config.apiKey = this.apiKey;
450
+ }
451
+ this._loadMap();
683
452
  }
684
- async focusSearch() {
685
- return this.widget?.focus();
453
+ componentDidRender() {
454
+ if (this.view) {
455
+ this.view.container = this.el;
456
+ }
686
457
  }
687
- async search(term) {
688
- return this.widget?.search(term);
458
+ disconnectedCallback() {
459
+ this._clearWatchHandles();
460
+ this.view.destroy();
689
461
  }
690
- async suggest(term) {
691
- return this.widget?.suggest(term);
462
+ render() {
463
+ return index.h("div", { class: "arcgis-scene", ref: (el) => (this.el = el) });
692
464
  }
693
465
  //--------------------------------------------------------------------------
694
466
  //
695
- // Lifecycle
467
+ // Private Methods
696
468
  //
697
469
  //--------------------------------------------------------------------------
698
- async componentDidLoad() {
699
- const params = this._createParams();
700
- const widget = await index$1.newWidgetsSearch(params);
701
- this.widget = widget;
702
- await this._addWatchers();
703
- this._proxyEvents();
704
- this.widgetReady.emit({ widget: this.widget });
705
- componentUtils.checkForView(this);
470
+ _clearWatchHandles() {
471
+ this._watchHandles.forEach((handle) => handle.remove());
472
+ this._watchHandles = [];
706
473
  }
707
- disconnectedCallback() {
708
- disconnected.onDisconnectedHelper(this);
474
+ async _addWatchers() {
475
+ const { watch, when } = await index$1.importCoreReactiveUtils();
476
+ this._watchHandles.push(watch(() => this.view.center, (center) => {
477
+ const value = `${center.longitude},${center.latitude}`;
478
+ this.center = value;
479
+ }));
480
+ this._watchHandles.push(when(() => this.view.updating, () => {
481
+ when(() => !this.view.updating, () => {
482
+ if (this.zoom !== this.view.zoom) {
483
+ this.zoom = this.view.zoom;
484
+ }
485
+ if (this.scale !== this.view.scale) {
486
+ this.scale = this.view.scale;
487
+ }
488
+ }, { once: true });
489
+ }));
709
490
  }
710
- render() {
711
- if (this.expandable) {
712
- return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
491
+ async _createMap() {
492
+ const mapParams = {};
493
+ if (this.itemId) {
494
+ mapParams.portalItem = this._createPortalItem();
713
495
  }
714
- return index.h("div", { ref: (el) => (this.childElem = el) });
496
+ if (this.basemap) {
497
+ mapParams.basemap = this.basemap;
498
+ }
499
+ else if (componentUtils.isNullOrEmptyString(this.itemId)) {
500
+ mapParams.basemap = "topo-vector";
501
+ }
502
+ const map = await index$1.newWebScene(mapParams);
503
+ return map;
715
504
  }
716
- //--------------------------------------------------------------------------
717
- //
718
- // Private Interal Methods
719
- //
720
- //--------------------------------------------------------------------------
721
- async _addWatchers() {
722
- const { watch } = await index$1.importCoreReactiveUtils();
723
- watch(() => this.widget.activeSource, (value) => (this.activeSource = value), {
724
- initial: true
725
- });
726
- watch(() => this.widget.activeSourceIndex, (value) => (this.activeSourceIndex = value), {
727
- initial: true
728
- });
729
- watch(() => this.widget.allSources, (value) => (this.allSources = value), {
730
- initial: true
731
- });
732
- watch(() => this.widget.defaultSources, (value) => (this.defaultSources = value), {
733
- initial: true
734
- });
735
- watch(() => this.widget.resultGraphic, (value) => (this.resultGraphic = value), {
736
- initial: true
737
- });
738
- watch(() => this.widget.results, (value) => (this.results = value), {
739
- initial: true
740
- });
741
- watch(() => this.widget.selectedResult, (value) => (this.selectedResult = value), {
742
- initial: true
743
- });
505
+ _createPortalItem() {
506
+ const item = {};
507
+ if (this.itemId) {
508
+ item.id = this.itemId;
509
+ }
510
+ if (this.portalUrl) {
511
+ item.portal = {
512
+ url: this.portalUrl
513
+ };
514
+ }
515
+ return item;
744
516
  }
745
- _createParams() {
746
- const params = {
747
- container: this.childElem
748
- };
749
- if (this.view) {
750
- params.view = this.view;
517
+ _createViewParams() {
518
+ const params = {};
519
+ if (this.zoom !== undefined) {
520
+ params.zoom = this.zoom;
521
+ }
522
+ if (this.scale !== undefined) {
523
+ params.scale = this.scale;
524
+ }
525
+ if (this.center) {
526
+ if (typeof this.center === "string") {
527
+ params.center = this.center.split(",").map((x) => Number(x));
528
+ }
529
+ else {
530
+ params.center = this.center;
531
+ }
751
532
  }
752
533
  return params;
753
534
  }
754
- _proxyEvents() {
755
- this.widget.on("search-blur", (e) => this.searchBlur.emit(e));
756
- this.widget.on("search-clear", (e) => this.searchClear.emit(e));
757
- this.widget.on("search-complete", (e) => this.searchComplete.emit(e));
758
- this.widget.on("search-focus", (e) => this.searchFocus.emit(e));
759
- this.widget.on("search-start", (e) => this.searchStart.emit(e));
760
- this.widget.on("select-result", (e) => this.selectResult.emit(e));
761
- this.widget.on("suggest-complete", (e) => this.suggestComplete.emit(e));
762
- this.widget.on("suggest-start", (e) => this.suggestStart.emit(e));
535
+ async _loadMap() {
536
+ const map = await this._createMap();
537
+ const params = this._createViewParams();
538
+ const view = await index$1.newViewsSceneView({
539
+ map,
540
+ ...params
541
+ });
542
+ this.view = view;
543
+ this._addWatchers();
544
+ if (this.disableNavigation) {
545
+ disableNavigation(this.view);
546
+ }
547
+ this.view.when(() => {
548
+ this.viewReady.emit({ view: this.view });
549
+ });
763
550
  }
764
- get el() { return index.getElement(this); }
551
+ async _updateMap() {
552
+ if (this.view?.map) {
553
+ this.view.map.destroy();
554
+ const map = await this._createMap();
555
+ this.view.map = map;
556
+ }
557
+ }
558
+ get _hostElement() { return index.getElement(this); }
765
559
  static get watchers() { return {
766
- "position": ["positionWatcher"],
767
- "activeMenu": ["activeMenuWatcher"],
768
- "activeSourceIndex": ["activeSourceIndexWatcher"],
769
- "allPlaceholder": ["allPlaceholderWatcher"],
770
- "autoSelect": ["autoSelectWatcher"],
771
- "includeDefaultSources": ["includeDefaultSourcesWatcher"],
772
- "locationEnabled": ["locationEnabledWatcher"],
773
- "maxResults": ["maxResultsWatcher"],
774
- "maxSuggestions": ["maxSuggestionsWatcher"],
775
- "minSuggestCharacters": ["minSuggestCharactersWatcher"],
776
- "popupEnabled": ["popupEnabledWatcher"],
777
- "popupTemplate": ["popupTemplateWatcher"],
778
- "portal": ["portalWatcher"],
779
- "resultGraphicEnabled": ["resultGraphicEnabledWatcher"],
780
- "searchAllEnabled": ["searchAllEnabledWatcher"],
781
- "searchTerm": ["searchTermWatcher"],
782
- "sources": ["sourcesWatcher"],
783
- "suggestionsEnabled": ["suggestionsEnabledWatcher"],
784
- "referenceElement": ["referenceElementWatcher"],
785
- "view": ["viewWatcher"]
560
+ "apiKey": ["apiKeyWatcher"],
561
+ "basemap": ["basemapWatcher"],
562
+ "itemId": ["itemIdWatcher"],
563
+ "portalUrl": ["portalUrlWatcher"],
564
+ "scale": ["scaleWatcher"],
565
+ "zoom": ["zoomWatcher"]
786
566
  }; }
787
567
  };
788
- ArcgisSearch.style = arcgisSearchCss;
568
+ ArcgisScene.style = sceneCss;
789
569
 
790
570
  exports.arcgis_expand = ArcgisExpand;
791
- exports.arcgis_feature_table = ArcgisFeatureTable;
792
571
  exports.arcgis_map = ArcgisMap;
793
- exports.arcgis_search = ArcgisSearch;
572
+ exports.arcgis_placement = ArcgisPlacement;
573
+ exports.arcgis_scene = ArcgisScene;