@arcgis/core 4.27.0-next.20230514 → 4.27.0-next.20230516

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 (419) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  3. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  4. package/arcade/functions/string.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/0618fb0058f39ecd363f.js +1 -0
  7. package/assets/esri/core/workers/chunks/415c326d268b1a8fd03f.js +1 -0
  8. package/assets/esri/core/workers/chunks/5c811527898eb1c04e67.js +1 -0
  9. package/assets/esri/core/workers/chunks/62d9d15f0d00a75da42c.js +1 -0
  10. package/assets/esri/core/workers/chunks/93ad67930aa7d4a4b0ac.js +1 -0
  11. package/assets/esri/core/workers/chunks/953407451813f406fdf1.js +1 -0
  12. package/assets/esri/core/workers/chunks/{27081162d73cdded68ff.js → 9e209c6a2aded37f90fb.js} +1 -1
  13. package/assets/esri/core/workers/chunks/a507135977d83aea4421.js +1 -0
  14. package/assets/esri/core/workers/chunks/abe6c99a1a719543dbe8.js +1 -0
  15. package/assets/esri/core/workers/chunks/b91c155de9a89e4e6971.js +1 -0
  16. package/assets/esri/core/workers/chunks/cbe817e966b57599bafd.js +1 -0
  17. package/assets/esri/core/workers/chunks/d265da47f6c752a40ac1.js +1 -0
  18. package/assets/esri/core/workers/chunks/d95ca50ca7af4c222036.js +1 -0
  19. package/assets/esri/core/workers/chunks/e1e0b3580e2c3098c9f4.js +1 -0
  20. package/assets/esri/core/workers/chunks/ef141014ed21a7fd1ff3.js.LICENSE.txt +1 -1
  21. package/assets/esri/t9n/common_ar.json +1 -1
  22. package/assets/esri/t9n/common_bg.json +1 -1
  23. package/assets/esri/t9n/common_bs.json +1 -1
  24. package/assets/esri/t9n/common_ca.json +1 -1
  25. package/assets/esri/t9n/common_cs.json +1 -1
  26. package/assets/esri/t9n/common_da.json +1 -1
  27. package/assets/esri/t9n/common_de.json +1 -1
  28. package/assets/esri/t9n/common_el.json +1 -1
  29. package/assets/esri/t9n/common_es.json +1 -1
  30. package/assets/esri/t9n/common_et.json +1 -1
  31. package/assets/esri/t9n/common_fi.json +1 -1
  32. package/assets/esri/t9n/common_fr.json +1 -1
  33. package/assets/esri/t9n/common_he.json +1 -1
  34. package/assets/esri/t9n/common_hr.json +1 -1
  35. package/assets/esri/t9n/common_hu.json +1 -1
  36. package/assets/esri/t9n/common_id.json +1 -1
  37. package/assets/esri/t9n/common_it.json +1 -1
  38. package/assets/esri/t9n/common_ja.json +1 -1
  39. package/assets/esri/t9n/common_ko.json +1 -1
  40. package/assets/esri/t9n/common_lt.json +1 -1
  41. package/assets/esri/t9n/common_lv.json +1 -1
  42. package/assets/esri/t9n/common_nb.json +1 -1
  43. package/assets/esri/t9n/common_nl.json +1 -1
  44. package/assets/esri/t9n/common_pl.json +1 -1
  45. package/assets/esri/t9n/common_pt-BR.json +1 -1
  46. package/assets/esri/t9n/common_pt-PT.json +1 -1
  47. package/assets/esri/t9n/common_ro.json +1 -1
  48. package/assets/esri/t9n/common_ru.json +1 -1
  49. package/assets/esri/t9n/common_sk.json +1 -1
  50. package/assets/esri/t9n/common_sl.json +1 -1
  51. package/assets/esri/t9n/common_sr.json +1 -1
  52. package/assets/esri/t9n/common_sv.json +1 -1
  53. package/assets/esri/t9n/common_th.json +1 -1
  54. package/assets/esri/t9n/common_tr.json +1 -1
  55. package/assets/esri/t9n/common_uk.json +1 -1
  56. package/assets/esri/t9n/common_vi.json +1 -1
  57. package/assets/esri/t9n/common_zh-CN.json +1 -1
  58. package/assets/esri/t9n/common_zh-HK.json +1 -1
  59. package/assets/esri/t9n/common_zh-TW.json +1 -1
  60. package/assets/esri/themes/base/_core.scss +2 -0
  61. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +198 -125
  62. package/assets/esri/themes/base/widgets/_Features.scss +57 -0
  63. package/assets/esri/themes/base/widgets/_Popup.scss +3 -0
  64. package/assets/esri/themes/dark/main.css +1 -1
  65. package/assets/esri/themes/light/main.css +1 -1
  66. package/assets/esri/themes/light/view.css +1 -1
  67. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery.json +1 -1
  68. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_en.json +1 -1
  69. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ar.json +1 -1
  70. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bg.json +1 -1
  71. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bs.json +1 -1
  72. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ca.json +1 -1
  73. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_cs.json +1 -1
  74. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_da.json +1 -1
  75. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_de.json +1 -1
  76. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_el.json +1 -1
  77. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_es.json +1 -1
  78. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_et.json +1 -1
  79. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fi.json +1 -1
  80. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fr.json +1 -1
  81. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_he.json +1 -1
  82. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hr.json +1 -1
  83. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hu.json +1 -1
  84. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_id.json +1 -1
  85. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_it.json +1 -1
  86. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ja.json +1 -1
  87. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ko.json +1 -1
  88. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lt.json +1 -1
  89. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lv.json +1 -1
  90. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nb.json +1 -1
  91. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nl.json +1 -1
  92. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pl.json +1 -1
  93. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-BR.json +1 -1
  94. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-PT.json +1 -1
  95. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ro.json +1 -1
  96. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ru.json +1 -1
  97. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sk.json +1 -1
  98. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sl.json +1 -1
  99. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sr.json +1 -1
  100. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sv.json +1 -1
  101. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_th.json +1 -1
  102. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_tr.json +1 -1
  103. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_uk.json +1 -1
  104. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_vi.json +1 -1
  105. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-CN.json +1 -1
  106. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-HK.json +1 -1
  107. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-TW.json +1 -1
  108. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  109. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  110. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  111. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  112. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  113. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  114. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  115. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  116. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  117. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  118. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  119. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  120. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  121. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  122. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  123. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  124. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  125. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  126. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  127. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  128. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  129. package/assets/esri/widgets/Directions/t9n/Directions_nb.json +1 -1
  130. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  131. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  132. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  133. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  134. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  135. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  136. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  137. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  138. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  139. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  140. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  141. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  142. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  143. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  144. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  145. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  146. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  147. package/assets/esri/widgets/Feature/t9n/Feature_ar.json +1 -1
  148. package/assets/esri/widgets/Feature/t9n/Feature_bg.json +1 -1
  149. package/assets/esri/widgets/Feature/t9n/Feature_bs.json +1 -1
  150. package/assets/esri/widgets/Feature/t9n/Feature_ca.json +1 -1
  151. package/assets/esri/widgets/Feature/t9n/Feature_cs.json +1 -1
  152. package/assets/esri/widgets/Feature/t9n/Feature_da.json +1 -1
  153. package/assets/esri/widgets/Feature/t9n/Feature_de.json +1 -1
  154. package/assets/esri/widgets/Feature/t9n/Feature_el.json +1 -1
  155. package/assets/esri/widgets/Feature/t9n/Feature_es.json +1 -1
  156. package/assets/esri/widgets/Feature/t9n/Feature_et.json +1 -1
  157. package/assets/esri/widgets/Feature/t9n/Feature_fi.json +1 -1
  158. package/assets/esri/widgets/Feature/t9n/Feature_fr.json +1 -1
  159. package/assets/esri/widgets/Feature/t9n/Feature_he.json +1 -1
  160. package/assets/esri/widgets/Feature/t9n/Feature_hr.json +1 -1
  161. package/assets/esri/widgets/Feature/t9n/Feature_hu.json +1 -1
  162. package/assets/esri/widgets/Feature/t9n/Feature_id.json +1 -1
  163. package/assets/esri/widgets/Feature/t9n/Feature_it.json +1 -1
  164. package/assets/esri/widgets/Feature/t9n/Feature_ja.json +1 -1
  165. package/assets/esri/widgets/Feature/t9n/Feature_ko.json +1 -1
  166. package/assets/esri/widgets/Feature/t9n/Feature_lt.json +1 -1
  167. package/assets/esri/widgets/Feature/t9n/Feature_lv.json +1 -1
  168. package/assets/esri/widgets/Feature/t9n/Feature_nb.json +1 -1
  169. package/assets/esri/widgets/Feature/t9n/Feature_nl.json +1 -1
  170. package/assets/esri/widgets/Feature/t9n/Feature_pl.json +1 -1
  171. package/assets/esri/widgets/Feature/t9n/Feature_pt-BR.json +1 -1
  172. package/assets/esri/widgets/Feature/t9n/Feature_pt-PT.json +1 -1
  173. package/assets/esri/widgets/Feature/t9n/Feature_ro.json +1 -1
  174. package/assets/esri/widgets/Feature/t9n/Feature_ru.json +1 -1
  175. package/assets/esri/widgets/Feature/t9n/Feature_sk.json +1 -1
  176. package/assets/esri/widgets/Feature/t9n/Feature_sl.json +1 -1
  177. package/assets/esri/widgets/Feature/t9n/Feature_sr.json +1 -1
  178. package/assets/esri/widgets/Feature/t9n/Feature_sv.json +1 -1
  179. package/assets/esri/widgets/Feature/t9n/Feature_th.json +1 -1
  180. package/assets/esri/widgets/Feature/t9n/Feature_tr.json +1 -1
  181. package/assets/esri/widgets/Feature/t9n/Feature_uk.json +1 -1
  182. package/assets/esri/widgets/Feature/t9n/Feature_vi.json +1 -1
  183. package/assets/esri/widgets/Feature/t9n/Feature_zh-CN.json +1 -1
  184. package/assets/esri/widgets/Feature/t9n/Feature_zh-HK.json +1 -1
  185. package/assets/esri/widgets/Feature/t9n/Feature_zh-TW.json +1 -1
  186. package/assets/esri/widgets/LayerList/t9n/LayerList_ar.json +1 -1
  187. package/assets/esri/widgets/LayerList/t9n/LayerList_bg.json +1 -1
  188. package/assets/esri/widgets/LayerList/t9n/LayerList_bs.json +1 -1
  189. package/assets/esri/widgets/LayerList/t9n/LayerList_ca.json +1 -1
  190. package/assets/esri/widgets/LayerList/t9n/LayerList_cs.json +1 -1
  191. package/assets/esri/widgets/LayerList/t9n/LayerList_da.json +1 -1
  192. package/assets/esri/widgets/LayerList/t9n/LayerList_de.json +1 -1
  193. package/assets/esri/widgets/LayerList/t9n/LayerList_el.json +1 -1
  194. package/assets/esri/widgets/LayerList/t9n/LayerList_es.json +1 -1
  195. package/assets/esri/widgets/LayerList/t9n/LayerList_et.json +1 -1
  196. package/assets/esri/widgets/LayerList/t9n/LayerList_fi.json +1 -1
  197. package/assets/esri/widgets/LayerList/t9n/LayerList_fr.json +1 -1
  198. package/assets/esri/widgets/LayerList/t9n/LayerList_he.json +1 -1
  199. package/assets/esri/widgets/LayerList/t9n/LayerList_hr.json +1 -1
  200. package/assets/esri/widgets/LayerList/t9n/LayerList_hu.json +1 -1
  201. package/assets/esri/widgets/LayerList/t9n/LayerList_id.json +1 -1
  202. package/assets/esri/widgets/LayerList/t9n/LayerList_it.json +1 -1
  203. package/assets/esri/widgets/LayerList/t9n/LayerList_ja.json +1 -1
  204. package/assets/esri/widgets/LayerList/t9n/LayerList_ko.json +1 -1
  205. package/assets/esri/widgets/LayerList/t9n/LayerList_lt.json +1 -1
  206. package/assets/esri/widgets/LayerList/t9n/LayerList_lv.json +1 -1
  207. package/assets/esri/widgets/LayerList/t9n/LayerList_nb.json +1 -1
  208. package/assets/esri/widgets/LayerList/t9n/LayerList_nl.json +1 -1
  209. package/assets/esri/widgets/LayerList/t9n/LayerList_pl.json +1 -1
  210. package/assets/esri/widgets/LayerList/t9n/LayerList_pt-BR.json +1 -1
  211. package/assets/esri/widgets/LayerList/t9n/LayerList_pt-PT.json +1 -1
  212. package/assets/esri/widgets/LayerList/t9n/LayerList_ro.json +1 -1
  213. package/assets/esri/widgets/LayerList/t9n/LayerList_ru.json +1 -1
  214. package/assets/esri/widgets/LayerList/t9n/LayerList_sk.json +1 -1
  215. package/assets/esri/widgets/LayerList/t9n/LayerList_sl.json +1 -1
  216. package/assets/esri/widgets/LayerList/t9n/LayerList_sr.json +1 -1
  217. package/assets/esri/widgets/LayerList/t9n/LayerList_sv.json +1 -1
  218. package/assets/esri/widgets/LayerList/t9n/LayerList_th.json +1 -1
  219. package/assets/esri/widgets/LayerList/t9n/LayerList_tr.json +1 -1
  220. package/assets/esri/widgets/LayerList/t9n/LayerList_uk.json +1 -1
  221. package/assets/esri/widgets/LayerList/t9n/LayerList_vi.json +1 -1
  222. package/assets/esri/widgets/LayerList/t9n/LayerList_zh-CN.json +1 -1
  223. package/assets/esri/widgets/LayerList/t9n/LayerList_zh-HK.json +1 -1
  224. package/assets/esri/widgets/LayerList/t9n/LayerList_zh-TW.json +1 -1
  225. package/assets/esri/widgets/Slice/t9n/Slice_ar.json +1 -1
  226. package/assets/esri/widgets/Slice/t9n/Slice_bg.json +1 -1
  227. package/assets/esri/widgets/Slice/t9n/Slice_bs.json +1 -1
  228. package/assets/esri/widgets/Slice/t9n/Slice_ca.json +1 -1
  229. package/assets/esri/widgets/Slice/t9n/Slice_cs.json +1 -1
  230. package/assets/esri/widgets/Slice/t9n/Slice_da.json +1 -1
  231. package/assets/esri/widgets/Slice/t9n/Slice_de.json +1 -1
  232. package/assets/esri/widgets/Slice/t9n/Slice_el.json +1 -1
  233. package/assets/esri/widgets/Slice/t9n/Slice_es.json +1 -1
  234. package/assets/esri/widgets/Slice/t9n/Slice_et.json +1 -1
  235. package/assets/esri/widgets/Slice/t9n/Slice_fi.json +1 -1
  236. package/assets/esri/widgets/Slice/t9n/Slice_fr.json +1 -1
  237. package/assets/esri/widgets/Slice/t9n/Slice_he.json +1 -1
  238. package/assets/esri/widgets/Slice/t9n/Slice_hr.json +1 -1
  239. package/assets/esri/widgets/Slice/t9n/Slice_hu.json +1 -1
  240. package/assets/esri/widgets/Slice/t9n/Slice_id.json +1 -1
  241. package/assets/esri/widgets/Slice/t9n/Slice_it.json +1 -1
  242. package/assets/esri/widgets/Slice/t9n/Slice_ja.json +1 -1
  243. package/assets/esri/widgets/Slice/t9n/Slice_ko.json +1 -1
  244. package/assets/esri/widgets/Slice/t9n/Slice_lt.json +1 -1
  245. package/assets/esri/widgets/Slice/t9n/Slice_lv.json +1 -1
  246. package/assets/esri/widgets/Slice/t9n/Slice_nb.json +1 -1
  247. package/assets/esri/widgets/Slice/t9n/Slice_nl.json +1 -1
  248. package/assets/esri/widgets/Slice/t9n/Slice_pl.json +1 -1
  249. package/assets/esri/widgets/Slice/t9n/Slice_pt-BR.json +1 -1
  250. package/assets/esri/widgets/Slice/t9n/Slice_pt-PT.json +1 -1
  251. package/assets/esri/widgets/Slice/t9n/Slice_ro.json +1 -1
  252. package/assets/esri/widgets/Slice/t9n/Slice_ru.json +1 -1
  253. package/assets/esri/widgets/Slice/t9n/Slice_sk.json +1 -1
  254. package/assets/esri/widgets/Slice/t9n/Slice_sl.json +1 -1
  255. package/assets/esri/widgets/Slice/t9n/Slice_sr.json +1 -1
  256. package/assets/esri/widgets/Slice/t9n/Slice_sv.json +1 -1
  257. package/assets/esri/widgets/Slice/t9n/Slice_th.json +1 -1
  258. package/assets/esri/widgets/Slice/t9n/Slice_tr.json +1 -1
  259. package/assets/esri/widgets/Slice/t9n/Slice_uk.json +1 -1
  260. package/assets/esri/widgets/Slice/t9n/Slice_vi.json +1 -1
  261. package/assets/esri/widgets/Slice/t9n/Slice_zh-CN.json +1 -1
  262. package/assets/esri/widgets/Slice/t9n/Slice_zh-HK.json +1 -1
  263. package/assets/esri/widgets/Slice/t9n/Slice_zh-TW.json +1 -1
  264. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ar.json +1 -1
  265. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bg.json +1 -1
  266. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bs.json +1 -1
  267. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ca.json +1 -1
  268. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_cs.json +1 -1
  269. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_da.json +1 -1
  270. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_de.json +1 -1
  271. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_el.json +1 -1
  272. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_es.json +1 -1
  273. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_et.json +1 -1
  274. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fi.json +1 -1
  275. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fr.json +1 -1
  276. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_he.json +1 -1
  277. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hr.json +1 -1
  278. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hu.json +1 -1
  279. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_id.json +1 -1
  280. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_it.json +1 -1
  281. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ja.json +1 -1
  282. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ko.json +1 -1
  283. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lt.json +1 -1
  284. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lv.json +1 -1
  285. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nb.json +1 -1
  286. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nl.json +1 -1
  287. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pl.json +1 -1
  288. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-BR.json +1 -1
  289. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-PT.json +1 -1
  290. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ro.json +1 -1
  291. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ru.json +1 -1
  292. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sk.json +1 -1
  293. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sl.json +1 -1
  294. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sr.json +1 -1
  295. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sv.json +1 -1
  296. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_th.json +1 -1
  297. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_tr.json +1 -1
  298. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_uk.json +1 -1
  299. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_vi.json +1 -1
  300. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-CN.json +1 -1
  301. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-HK.json +1 -1
  302. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-TW.json +1 -1
  303. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ar.json +1 -1
  304. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_bg.json +1 -1
  305. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_bs.json +1 -1
  306. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ca.json +1 -1
  307. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_cs.json +1 -1
  308. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_da.json +1 -1
  309. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_de.json +1 -1
  310. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_el.json +1 -1
  311. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_es.json +1 -1
  312. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_et.json +1 -1
  313. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_fi.json +1 -1
  314. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_fr.json +1 -1
  315. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_he.json +1 -1
  316. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_hr.json +1 -1
  317. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_hu.json +1 -1
  318. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_id.json +1 -1
  319. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_it.json +1 -1
  320. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ja.json +1 -1
  321. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ko.json +1 -1
  322. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_lt.json +1 -1
  323. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_lv.json +1 -1
  324. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_nb.json +1 -1
  325. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_nl.json +1 -1
  326. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_pl.json +1 -1
  327. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_pt-BR.json +1 -1
  328. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_pt-PT.json +1 -1
  329. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ro.json +1 -1
  330. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ru.json +1 -1
  331. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_sk.json +1 -1
  332. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_sl.json +1 -1
  333. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_sr.json +1 -1
  334. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_sv.json +1 -1
  335. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_th.json +1 -1
  336. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_tr.json +1 -1
  337. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_uk.json +1 -1
  338. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_vi.json +1 -1
  339. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_zh-CN.json +1 -1
  340. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_zh-HK.json +1 -1
  341. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_zh-TW.json +1 -1
  342. package/chunks/languageUtils.js +1 -1
  343. package/core/ReactiveMap.js +5 -0
  344. package/core/ReactiveSet.js +5 -0
  345. package/form/elements/RelationshipElement.js +1 -1
  346. package/geometry/Mesh.js +1 -1
  347. package/geometry/support/meshUtils/External.js +1 -1
  348. package/interfaces.d.ts +102 -54
  349. package/layers/BuildingSceneLayer.js +1 -1
  350. package/layers/KnowledgeGraphLayer.js +1 -1
  351. package/layers/LinkChartLayer.js +1 -1
  352. package/layers/SceneLayer.js +1 -1
  353. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  354. package/layers/graphics/sources/support/uploadAssets.js +1 -1
  355. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  356. package/layers/video/VideoEngine.js +1 -1
  357. package/package.json +2 -2
  358. package/portal/schemas/buildingSceneLayerItem.js +1 -1
  359. package/portal/schemas/definitions.js +1 -1
  360. package/support/basemapUtils.js +1 -1
  361. package/support/revision.js +1 -1
  362. package/symbols/cim/cimAnalyzer.js +1 -1
  363. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  364. package/views/2d/engine/webgl/brushes/WGLGeometryBrushFill.js +1 -1
  365. package/views/2d/engine/webgl/definitions.js +1 -1
  366. package/views/2d/engine/webgl/mesh/templates/WGLDynamicFillTemplate.js +1 -1
  367. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  368. package/views/2d/engine/webgl/painter/RenderPass.js +1 -1
  369. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  370. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  371. package/views/2d/layers/MediaLayerView2D.js +1 -1
  372. package/views/2d/layers/TileLayerView2D.js +1 -1
  373. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  374. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  375. package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
  376. package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
  377. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  378. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  379. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  380. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  381. package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
  382. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  383. package/views/3d/webgl-engine/lib/RenderTargetHelper.js +1 -1
  384. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  385. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  386. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  387. package/views/3d/webgl-engine/lib/textureUtils.js +5 -0
  388. package/views/PopupView.js +1 -1
  389. package/views/ToolViewManager.js +1 -1
  390. package/views/View.js +1 -1
  391. package/views/interactive/InteractiveToolBase.js +1 -1
  392. package/views/interactive/ToolViewManagerManipulatorState.js +1 -1
  393. package/widgets/BasemapGallery/css.js +1 -1
  394. package/widgets/BasemapGallery.js +1 -1
  395. package/widgets/Editor/Edits.js +1 -1
  396. package/widgets/Editor/UpdateWorkflow.js +1 -1
  397. package/widgets/Editor/workflowUtils.js +1 -1
  398. package/widgets/Feature/FeatureRelationship.js +1 -1
  399. package/widgets/FeatureForm/RelationshipInput.js +1 -1
  400. package/widgets/FeatureForm.js +1 -1
  401. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  402. package/widgets/Features/FeaturesViewModel.js +5 -0
  403. package/widgets/Features.js +5 -0
  404. package/widgets/Popup/actionUtils.js +1 -1
  405. package/widgets/Popup/actions.js +1 -1
  406. package/widgets/Popup.js +1 -1
  407. package/assets/esri/core/workers/chunks/08e1453cc3689a0094a6.js +0 -1
  408. package/assets/esri/core/workers/chunks/3a658eb0bc632ff0d01c.js +0 -1
  409. package/assets/esri/core/workers/chunks/43fcc9a3b5a46c3dfd0d.js +0 -1
  410. package/assets/esri/core/workers/chunks/47f721daa1652124c066.js +0 -1
  411. package/assets/esri/core/workers/chunks/544dce9710638d126763.js +0 -1
  412. package/assets/esri/core/workers/chunks/630b3fca46208caf4190.js +0 -1
  413. package/assets/esri/core/workers/chunks/6d2a448fe0dc6ebdbd6d.js +0 -1
  414. package/assets/esri/core/workers/chunks/7e9b173a71beeba8b263.js +0 -1
  415. package/assets/esri/core/workers/chunks/b1976202b918a64357ac.js +0 -1
  416. package/assets/esri/core/workers/chunks/b4d03661d1d8983fc13f.js +0 -1
  417. package/assets/esri/core/workers/chunks/b636581516f2e7342d29.js +0 -1
  418. package/assets/esri/core/workers/chunks/e7e7f6046cf1286365ca.js +0 -1
  419. package/assets/esri/core/workers/chunks/f17a7024dd49abeaa4f3.js +0 -1
package/geometry/Mesh.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.27/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import t from"../core/Error.js";import{HandleOwnerMixin as o}from"../core/HandleOwner.js";import r from"../core/Loadable.js";import n from"../core/Logger.js";import{EsriPromiseMixin as s}from"../core/Promise.js";import{whenOrAbort as i}from"../core/promiseUtils.js";import{watch as a}from"../core/reactiveUtils.js";import{property as c}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import"../core/arrayUtils.js";import"../core/has.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import{c as p}from"../chunks/vec3f64.js";import m from"./Extent.js";import h from"./Geometry.js";import u from"./Point.js";import d from"./Polygon.js";import{composeAxes as f,create as g}from"./support/axisAngleDegrees.js";import x from"./support/MeshComponent.js";import y from"./support/MeshTransform.js";import{MeshVertexAttributes as b}from"./support/MeshVertexAttributes.js";import{triangulate as w}from"./support/triangulationUtils.js";import{centerAt as j}from"./support/meshUtils/centerAt.js";import{loadExternal as v}from"./support/meshUtils/loadExternal.js";import{Metadata as M}from"./support/meshUtils/Metadata.js";import{offset as L}from"./support/meshUtils/offset.js";import{convertUnitGeometry as P,createUnitSizeBox as S,extractSingleFaceOfBox as F,createUnitSizeSphere as A,createUnitSizeCylinder as R,convertPlaneSizeParameter as z,createUnitSizePlane as U}from"./support/meshUtils/primitives.js";import{rotate as C}from"./support/meshUtils/rotate.js";import{scale as O}from"./support/meshUtils/scale.js";var E;const T="esri.geometry.Mesh";let _=E=class extends(o(r.LoadableMixin(s(h)))){constructor(e){super(e),this.components=null,this.transform=null,this.metadata=new M,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new b,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add(a((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((e=>e.clone()))})),(()=>this._clearSources()),{once:!0,sync:!0}))}))}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _boundingInfo(){const e=this.vertexAttributes.position,t=this.spatialReference;if(0===e.length||this.components&&0===this.components.length)return{extent:new m({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:t}),center:new u({x:0,y:0,z:0,spatialReference:t})};const o=null!=this.transform?this.transform.project(e,t):e;let r=1/0,n=1/0,s=1/0,i=-1/0,a=-1/0,c=-1/0,l=0,p=0,h=0;const d=o.length,f=1/(d/3);let g=0;for(;g<d;){const e=o[g++],t=o[g++],m=o[g++];r=Math.min(r,e),n=Math.min(n,t),s=Math.min(s,m),i=Math.max(i,e),a=Math.max(a,t),c=Math.max(c,m),l+=f*e,p+=f*t,h+=f*m}return{extent:new m({xmin:r,ymin:n,zmin:s,xmax:i,ymax:a,zmax:c,spatialReference:t}),center:new u({x:l,y:p,z:h,spatialReference:t})}}get anchor(){if(null!=this.transform)return this.transform.getOriginPoint(this.spatialReference);const e=this._boundingInfo;return new u({x:e.center.x,y:e.center.y,z:e.extent.zmin,spatialReference:this.spatialReference})}get origin(){return null!=this.transform?this.transform.getOriginPoint(this.spatialReference):this._boundingInfo.center}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._boundingInfo.extent:this.metadata.displaySource.extent.clone()}addComponent(e){this.loaded?(this.components||(this.components=[]),this.components.push(x.from(e)),this.notifyChange("components")):n.getLogger(this).error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(e){if(this.loaded){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}n.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}else n.getLogger(this).error("removeComponent()","Mesh must be loaded before applying operations")}rotate(e,t,o,r){return f(e,t,o,I),C(this,I,r),this}offset(e,t,o,r){return this.loaded?(G[0]=e,G[1]=t,G[2]=o,L(this,G,r),this):(n.getLogger(this).error("offset()","Mesh must be loaded before applying operations"),this)}scale(e,t){return this.loaded?(O(this,e,t),this):(n.getLogger(this).error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(e,t){return this.loaded?(j(this,e,t),this):(n.getLogger(this).error("centerAt()","Mesh must be loaded before applying operations"),this)}load(e){const{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(v(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(){let e=null;if(this.components){const t=new Map,o=new Map;e=this.components.map((e=>e.cloneWithDeduplication(t,o)))}const t={components:e,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:null!=this.transform?this.transform.clone():null,metadata:this.metadata.clone()};return new E(t)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const t=import("./support/meshUtils/exporters/gltf/gltfexport.js"),o=this.load(),r=await Promise.all([t,o]),{toBinaryGLTF:n}=r[0];return n(this,e)}_clearSources(){this.metadata.clearSources()}static createBox(e,t){if(!(e instanceof u))return n.getLogger(T).error(".createBox()","expected location to be a Point instance"),null;const o=new E(P(S(),e,t));return t&&t.imageFace&&"all"!==t.imageFace?F(o,t.imageFace):o}static createSphere(e,t){return e instanceof u?new E(P(A(t&&t.densificationFactor||0),e,t)):(n.getLogger(T).error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(e,t){return e instanceof u?new E(P(R(t&&t.densificationFactor||0),e,t)):(n.getLogger(T).error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(e,t){if(!(e instanceof u))return n.getLogger(T).error(".createPlane()","expected location to be a Point instance"),null;const o=t?.facing??"up",r=z(o,t?.size);return new E(P(U(o),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof d))return n.getLogger(T).error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const o=w(e);return new E({vertexAttributes:new b({position:o.position}),components:[new x({faces:o.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference})}static async createFromGLTF(e,o,r){if(!(e instanceof u))throw n.getLogger(T).error(".createfromGLTF()","expected location to be a Point instance"),new t("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:s}=await i(import("./support/meshUtils/loadGLTFMesh.js"),r);return new E(await s(e,o,r))}static async createFromFiles(e,o,r){if(!(e instanceof u)){const e="Expected location to be a Point instance";throw n.getLogger(T).error(".createFromFiles()",e),new t("invalid-input",e)}const s=E.createWithExternalSource(e,o),i=r?.layer;if(!i){const e="A layer is needed to convert the files";throw n.getLogger(T).error(".createFromFiles()",e),new t("invalid-input",e)}const[a]=await i.uploadAssets([s],r);return a}static createWithExternalSource(e,t,o){const r=o?.extent??null,n=o?.transform?.clone()??new y;n.origin=[e.x,e.y,e.z??0];const s=e.spatialReference,i={source:t,extent:r},a=new M;return a.externalSources.push(i),new E({metadata:a,transform:n,spatialReference:s})}static createIncomplete(e,o){const r=o?.transform?.clone()??new y;r.origin=[e.x,e.y,e.z??0];const n=e.spatialReference,s=new E({transform:r,spatialReference:n});return s.addResolvingPromise(Promise.reject(new t("mesh-incomplete","Mesh resources are not complete"))),s}};e([c({type:[x],json:{write:!0}})],_.prototype,"components",void 0),e([c({type:y,json:{write:!0}})],_.prototype,"transform",void 0),e([c({constructOnly:!0})],_.prototype,"metadata",void 0),e([c({readOnly:!0})],_.prototype,"hasExtent",null),e([c({readOnly:!0})],_.prototype,"_boundingInfo",null),e([c({readOnly:!0})],_.prototype,"anchor",null),e([c({readOnly:!0})],_.prototype,"origin",null),e([c({readOnly:!0,json:{read:!1}})],_.prototype,"extent",null),e([c({readOnly:!0,json:{read:!1,write:!0,default:!0}})],_.prototype,"hasZ",void 0),e([c({readOnly:!0,json:{read:!1,write:!0,default:!1}})],_.prototype,"hasM",void 0),e([c({type:b,nonNullable:!0,json:{write:!0}})],_.prototype,"vertexAttributes",void 0),_=E=e([l(T)],_);const G=p(),I=g(),B=_;export{B as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import t from"../core/Error.js";import{HandleOwnerMixin as o}from"../core/HandleOwner.js";import r from"../core/Loadable.js";import n from"../core/Logger.js";import{EsriPromiseMixin as s}from"../core/Promise.js";import{whenOrAbort as i}from"../core/promiseUtils.js";import{watch as a}from"../core/reactiveUtils.js";import{property as c}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import"../core/arrayUtils.js";import"../core/has.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import{c as p}from"../chunks/vec3f64.js";import m from"./Extent.js";import h from"./Geometry.js";import u from"./Point.js";import d from"./Polygon.js";import{composeAxes as f,create as g}from"./support/axisAngleDegrees.js";import x from"./support/MeshComponent.js";import y from"./support/MeshTransform.js";import{MeshVertexAttributes as b}from"./support/MeshVertexAttributes.js";import{triangulate as w}from"./support/triangulationUtils.js";import{centerAt as j}from"./support/meshUtils/centerAt.js";import{loadExternal as v}from"./support/meshUtils/loadExternal.js";import{Metadata as M}from"./support/meshUtils/Metadata.js";import{offset as L}from"./support/meshUtils/offset.js";import{convertUnitGeometry as P,createUnitSizeBox as S,extractSingleFaceOfBox as A,createUnitSizeSphere as R,createUnitSizeCylinder as F,convertPlaneSizeParameter as z,createUnitSizePlane as U}from"./support/meshUtils/primitives.js";import{rotate as C}from"./support/meshUtils/rotate.js";import{scale as O}from"./support/meshUtils/scale.js";var E;const T="esri.geometry.Mesh";let _=E=class extends(o(r.LoadableMixin(s(h)))){constructor(e){super(e),this.components=null,this.transform=null,this.metadata=new M,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new b,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add(a((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((e=>e.clone()))})),(()=>this._clearSources()),{once:!0,sync:!0}))}))}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _boundingInfo(){const e=this.vertexAttributes.position,t=this.spatialReference;if(0===e.length||this.components&&0===this.components.length)return{extent:new m({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:t}),center:new u({x:0,y:0,z:0,spatialReference:t})};const o=null!=this.transform?this.transform.project(e,t):e;let r=1/0,n=1/0,s=1/0,i=-1/0,a=-1/0,c=-1/0,l=0,p=0,h=0;const d=o.length,f=1/(d/3);let g=0;for(;g<d;){const e=o[g++],t=o[g++],m=o[g++];r=Math.min(r,e),n=Math.min(n,t),s=Math.min(s,m),i=Math.max(i,e),a=Math.max(a,t),c=Math.max(c,m),l+=f*e,p+=f*t,h+=f*m}return{extent:new m({xmin:r,ymin:n,zmin:s,xmax:i,ymax:a,zmax:c,spatialReference:t}),center:new u({x:l,y:p,z:h,spatialReference:t})}}get anchor(){if(null!=this.transform)return this.transform.getOriginPoint(this.spatialReference);const e=this._boundingInfo;return new u({x:e.center.x,y:e.center.y,z:e.extent.zmin,spatialReference:this.spatialReference})}get origin(){return null!=this.transform?this.transform.getOriginPoint(this.spatialReference):this._boundingInfo.center}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._boundingInfo.extent:this.metadata.displaySource.extent.clone()}addComponent(e){this.loaded?(this.components||(this.components=[]),this.components.push(x.from(e)),this.notifyChange("components")):n.getLogger(this).error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(e){if(this.loaded){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}n.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}else n.getLogger(this).error("removeComponent()","Mesh must be loaded before applying operations")}rotate(e,t,o,r){return f(e,t,o,I),C(this,I,r),this}offset(e,t,o,r){return this.loaded?(G[0]=e,G[1]=t,G[2]=o,L(this,G,r),this):(n.getLogger(this).error("offset()","Mesh must be loaded before applying operations"),this)}scale(e,t){return this.loaded?(O(this,e,t),this):(n.getLogger(this).error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(e,t){return this.loaded?(j(this,e,t),this):(n.getLogger(this).error("centerAt()","Mesh must be loaded before applying operations"),this)}load(e){const{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(v(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(){let e=null;if(this.components){const t=new Map,o=new Map;e=this.components.map((e=>e.cloneWithDeduplication(t,o)))}const t={components:e,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:null!=this.transform?this.transform.clone():null,metadata:this.metadata.clone()};return new E(t)}cloneShallow(){return new E({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const t=import("./support/meshUtils/exporters/gltf/gltfexport.js"),o=this.load(),r=await Promise.all([t,o]),{toBinaryGLTF:n}=r[0];return n(this,e)}_clearSources(){this.metadata.clearSources()}static createBox(e,t){if(!(e instanceof u))return n.getLogger(T).error(".createBox()","expected location to be a Point instance"),null;const o=new E(P(S(),e,t));return t&&t.imageFace&&"all"!==t.imageFace?A(o,t.imageFace):o}static createSphere(e,t){return e instanceof u?new E(P(R(t&&t.densificationFactor||0),e,t)):(n.getLogger(T).error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(e,t){return e instanceof u?new E(P(F(t&&t.densificationFactor||0),e,t)):(n.getLogger(T).error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(e,t){if(!(e instanceof u))return n.getLogger(T).error(".createPlane()","expected location to be a Point instance"),null;const o=t?.facing??"up",r=z(o,t?.size);return new E(P(U(o),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof d))return n.getLogger(T).error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const o=w(e);return new E({vertexAttributes:new b({position:o.position}),components:[new x({faces:o.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference})}static async createFromGLTF(e,o,r){if(!(e instanceof u))throw n.getLogger(T).error(".createfromGLTF()","expected location to be a Point instance"),new t("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:s}=await i(import("./support/meshUtils/loadGLTFMesh.js"),r);return new E(await s(e,o,r))}static async createFromFiles(e,o,r){if(!(e instanceof u)){const e="Expected location to be a Point instance";throw n.getLogger(T).error(".createFromFiles()",e),new t("invalid-input",e)}const s=E.createWithExternalSource(e,o),i=r?.layer;if(!i){const e="A layer is needed to convert the files";throw n.getLogger(T).error(".createFromFiles()",e),new t("invalid-input",e)}const[a]=await i.uploadAssets([s],r);return a}static createWithExternalSource(e,t,o){const r=o?.extent??null,n=o?.transform?.clone()??new y;n.origin=[e.x,e.y,e.z??0];const s=e.spatialReference,i={source:t,extent:r},a=new M;return a.externalSources.push(i),new E({metadata:a,transform:n,spatialReference:s})}static createIncomplete(e,o){const r=o?.transform?.clone()??new y;r.origin=[e.x,e.y,e.z??0];const n=e.spatialReference,s=new E({transform:r,spatialReference:n});return s.addResolvingPromise(Promise.reject(new t("mesh-incomplete","Mesh resources are not complete"))),s}};e([c({type:[x],json:{write:!0}})],_.prototype,"components",void 0),e([c({type:y,json:{write:!0}})],_.prototype,"transform",void 0),e([c({constructOnly:!0})],_.prototype,"metadata",void 0),e([c({readOnly:!0})],_.prototype,"hasExtent",null),e([c({readOnly:!0})],_.prototype,"_boundingInfo",null),e([c({readOnly:!0})],_.prototype,"anchor",null),e([c({readOnly:!0})],_.prototype,"origin",null),e([c({readOnly:!0,json:{read:!1}})],_.prototype,"extent",null),e([c({readOnly:!0,json:{read:!1,write:!0,default:!0}})],_.prototype,"hasZ",void 0),e([c({readOnly:!0,json:{read:!1,write:!0,default:!1}})],_.prototype,"hasM",void 0),e([c({type:b,nonNullable:!0,json:{write:!0}})],_.prototype,"vertexAttributes",void 0),_=E=e([l(T)],_);const G=p(),I=g(),B=_;export{B as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.27/esri/copyright.txt for details.
4
4
  */
5
- import t from"../../../request.js";import{equals as r}from"../../../core/arrayUtils.js";import{throwIfAborted as e}from"../../../core/promiseUtils.js";import{getFilenameFormatId as s,getMimeTypeFormatId as n}from"../../../layers/support/infoFor3D.js";class a{constructor(t,r,e){this.assetName=t,this.assetMimeType=r,this.parts=e}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&r(this.parts,t.parts,((t,r)=>t.equals(r)))}isOnService(t){return this.parts.every((r=>r.isOnService(t)))}async toBlob(t){const{parts:r}=this;if(1===r.length)return r[0].toBlob(t);const s=await Promise.all(r.map((r=>r.toBlob(t))));return e(t),new Blob(s)}}class i{constructor(t,r){this.partUrl=t,this.partHash=r}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(r){const{data:s}=await t(this.partUrl,{responseType:"blob"});return e(r),s}}function o(t){return l(t?.source)}function u(t){if(!Array.isArray(t))return!1;return t.every((t=>t instanceof a))}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function l(t){if(!t)return!1;if(Array.isArray(t)){return t.some(p)}return p(t)}function p(t){if(t instanceof File){const{type:r,name:e}=t;return c.test(r)||f.test(e)}return c.test(t.assetMimeType)||f.test(t.assetName)}function m(t,r){if(!t)return!1;const{source:e}=t;return y(e,r)}function h(t,r){if(t===r)return!0;const{source:e}=t,{source:s}=r;if(e===s)return!0;if(u(e)&&u(s)){if(e.length!==s.length)return!1;const t=(t,r)=>t.assetName<r.assetName?-1:t.assetName>r.assetName?1:0,r=[...e].sort(t),n=[...s].sort(t);for(let e=0;e<r.length;++e)if(!r[e].equals(n[e]))return!1;return!0}return!1}function y(t,r){if(Array.isArray(t)){return t.every((t=>b(t,r)))}return b(t,r)}function b(t,r){return t instanceof a&&t.isOnService(r)}function N(t,r){return t instanceof File?s(t.name,r)??n(t.type,r):n(t.assetMimeType,r)??s(t.assetName,r)}function g(t){return Array.isArray(t)?t:[t]}export{a as ServiceAsset,i as ServiceAssetPart,N as assetFormatId,b as assetIsOnService,m as externalIsOnService,g as externalSourceToMultiPart,h as externalSourcesAreEqual,p as isDisplayAsset,o as isDisplayExternal,l as isDisplaySource,y as sourceIsOnService};
5
+ import t from"../../../request.js";import{equals as r}from"../../../core/arrayUtils.js";import{throwIfAborted as e}from"../../../core/promiseUtils.js";import{getFilenameFormatId as s,getMimeTypeFormatId as n}from"../../../layers/support/infoFor3D.js";class i{constructor(t,r,e){this.assetName=t,this.assetMimeType=r,this.parts=e}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&r(this.parts,t.parts,((t,r)=>t.equals(r)))}isOnService(t){return this.parts.every((r=>r.isOnService(t)))}async toBlob(t){const{parts:r}=this;if(1===r.length)return r[0].toBlob(t);const s=await Promise.all(r.map((r=>r.toBlob(t))));return e(t),new Blob(s)}}class a{constructor(t,r){this.partUrl=t,this.partHash=r}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(r){const{data:s}=await t(this.partUrl,{responseType:"blob"});return e(r),s}}function o(t){return l(t?.source)}function u(t){if(!Array.isArray(t))return!1;return t.every((t=>t instanceof i))}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function l(t){if(!t)return!1;if(Array.isArray(t)){return t.some(p)}return p(t)}function p(t){if(t instanceof File){const{type:r,name:e}=t;return c.test(r)||f.test(e)}return c.test(t.assetMimeType)||f.test(t.assetName)}function m(t,r){if(!t)return!1;const{source:e}=t;return y(e,r)}function h(t,r){if(t===r)return!0;const{source:e}=t,{source:s}=r;if(e===s)return!0;if(u(e)&&u(s)){if(e.length!==s.length)return!1;const t=(t,r)=>t.assetName<r.assetName?-1:t.assetName>r.assetName?1:0,r=[...e].sort(t),n=[...s].sort(t);for(let e=0;e<r.length;++e)if(!r[e].equals(n[e]))return!1;return!0}return!1}function y(t,r){if(Array.isArray(t)){return t.every((t=>b(t,r)))}return b(t,r)}function b(t,r){return t instanceof i&&t.isOnService(r)}function g(t,r){return t instanceof File?s(t.name,r)??n(t.type,r):n(t.assetMimeType,r)??s(t.assetName,r)}function N(t){return Array.isArray(t)?t:[t]}function A(t){return!!t.original}export{i as ServiceAsset,a as ServiceAssetPart,g as assetFormatId,b as assetIsOnService,m as externalIsOnService,N as externalSourceToMultiPart,h as externalSourcesAreEqual,p as isDisplayAsset,o as isDisplayExternal,l as isDisplaySource,A as isOriginalExternal,y as sourceIsOnService};
package/interfaces.d.ts CHANGED
@@ -9449,6 +9449,14 @@ declare namespace __esri {
9449
9449
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#filters)
9450
9450
  */
9451
9451
  filters: Collection<BuildingFilter>;
9452
+ /**
9453
+ * Indicates whether the layer will be included in the legend.
9454
+ *
9455
+ * @default true
9456
+ *
9457
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#legendEnabled)
9458
+ */
9459
+ legendEnabled: boolean;
9452
9460
  /**
9453
9461
  * An array of field names from the service to include with each feature in all sublayers.
9454
9462
  *
@@ -9507,6 +9515,14 @@ declare namespace __esri {
9507
9515
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#filters)
9508
9516
  */
9509
9517
  filters?: CollectionProperties<BuildingFilterProperties>;
9518
+ /**
9519
+ * Indicates whether the layer will be included in the legend.
9520
+ *
9521
+ * @default true
9522
+ *
9523
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#legendEnabled)
9524
+ */
9525
+ legendEnabled?: boolean;
9510
9526
  /**
9511
9527
  * An array of field names from the service to include with each feature in all sublayers.
9512
9528
  *
@@ -22054,9 +22070,6 @@ declare namespace __esri {
22054
22070
  | "long"
22055
22071
  | "string"
22056
22072
  | "date"
22057
- | "date-only"
22058
- | "time-only"
22059
- | "timestamp-offset"
22060
22073
  | "oid"
22061
22074
  | "geometry"
22062
22075
  | "blob"
@@ -22173,9 +22186,6 @@ declare namespace __esri {
22173
22186
  | "long"
22174
22187
  | "string"
22175
22188
  | "date"
22176
- | "date-only"
22177
- | "time-only"
22178
- | "timestamp-offset"
22179
22189
  | "oid"
22180
22190
  | "geometry"
22181
22191
  | "blob"
@@ -46123,11 +46133,29 @@ declare namespace __esri {
46123
46133
  }
46124
46134
 
46125
46135
  /**
46126
- * to-doc
46136
+ * Find [places](/documentation/mapping-apis-and-services/places/) within a search distance of a geographic point or within an extent, or find more information about specific places.
46127
46137
  *
46128
46138
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html)
46129
46139
  */
46130
46140
  interface places {
46141
+ /**
46142
+ * Get place details, including name, address, description, and other attributes.
46143
+ *
46144
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#fetchPlace)
46145
+ */
46146
+ fetchPlace(params: FetchPlaceParameters, requestOptions?: any): Promise<any>;
46147
+ /**
46148
+ * A nearby search that finds places within a given radius of a location.
46149
+ *
46150
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesNearPoint)
46151
+ */
46152
+ queryPlacesNearPoint(params: PlacesQueryParameters, requestOptions?: any): Promise<PlacesQueryResult>;
46153
+ /**
46154
+ * A search that finds places within a given extent.
46155
+ *
46156
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesWithinExtent)
46157
+ */
46158
+ queryPlacesWithinExtent(params: PlacesQueryParameters, requestOptions?: any): Promise<PlacesQueryResult>;
46131
46159
  }
46132
46160
 
46133
46161
  export const places: places;
@@ -48970,19 +48998,19 @@ declare namespace __esri {
48970
48998
 
48971
48999
  export class FetchPlaceParameters extends PlacesParameters {
48972
49000
  /**
48973
- * to-doc valud required
49001
+ * The Id of the place that you want to fetch additional details.
48974
49002
  *
48975
49003
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FetchPlaceParameters.html#placeId)
48976
49004
  */
48977
49005
  placeId: string;
48978
49006
  /**
48979
- * to-doc value required
49007
+ * The array of fields that define the attributes to return for a place.
48980
49008
  *
48981
49009
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FetchPlaceParameters.html#requestedFields)
48982
49010
  */
48983
49011
  requestedFields: string[];
48984
49012
  /**
48985
- * to-doc
49013
+ * The following properties define the parameters for the [fetchPlace()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#fetchPlace) method pointing to a [url](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FetchPlaceParameters.html#url) that represents a places service.
48986
49014
  *
48987
49015
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FetchPlaceParameters.html)
48988
49016
  */
@@ -48994,13 +49022,13 @@ declare namespace __esri {
48994
49022
 
48995
49023
  interface FetchPlaceParametersProperties extends PlacesParametersProperties {
48996
49024
  /**
48997
- * to-doc valud required
49025
+ * The Id of the place that you want to fetch additional details.
48998
49026
  *
48999
49027
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FetchPlaceParameters.html#placeId)
49000
49028
  */
49001
49029
  placeId?: string;
49002
49030
  /**
49003
- * to-doc value required
49031
+ * The array of fields that define the attributes to return for a place.
49004
49032
  *
49005
49033
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FetchPlaceParameters.html#requestedFields)
49006
49034
  */
@@ -51936,37 +51964,37 @@ declare namespace __esri {
51936
51964
 
51937
51965
  export class PlaceResult extends Accessor {
51938
51966
  /**
51939
- * to-doc
51967
+ * An arrary of category objects for a place.
51940
51968
  *
51941
51969
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#categories)
51942
51970
  */
51943
- categories: any;
51971
+ categories: Category[];
51944
51972
  /**
51945
- * to-doc only set/valid/used when returned from `queryPlacesNearPoint`
51973
+ * The distance, in meters, from the place to the search point.
51946
51974
  *
51947
51975
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#distance)
51948
51976
  */
51949
51977
  distance: number;
51950
51978
  /**
51951
- * to-doc
51979
+ * A location defined by X and Y coordinates in WGS84.
51952
51980
  *
51953
51981
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#location)
51954
51982
  */
51955
51983
  location: Point;
51956
51984
  /**
51957
- * to-doc
51985
+ * The name of the place, or point of interest.
51958
51986
  *
51959
51987
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#name)
51960
51988
  */
51961
51989
  name: string;
51962
51990
  /**
51963
- * to-doc
51991
+ * The unique Id of this place.
51964
51992
  *
51965
51993
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#placeId)
51966
51994
  */
51967
51995
  placeId: string;
51968
51996
  /**
51969
- * to-doc
51997
+ * The `PlaceResult` object includes a single place that satisfies the search and either: the distance from the [search point](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#point) in meters, or falls within the [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#extent) of the search.
51970
51998
  *
51971
51999
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html)
51972
52000
  */
@@ -51978,46 +52006,66 @@ declare namespace __esri {
51978
52006
 
51979
52007
  interface PlaceResultProperties {
51980
52008
  /**
51981
- * to-doc
52009
+ * An arrary of category objects for a place.
51982
52010
  *
51983
52011
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#categories)
51984
52012
  */
51985
- categories?: any;
52013
+ categories?: Category[];
51986
52014
  /**
51987
- * to-doc only set/valid/used when returned from `queryPlacesNearPoint`
52015
+ * The distance, in meters, from the place to the search point.
51988
52016
  *
51989
52017
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#distance)
51990
52018
  */
51991
52019
  distance?: number;
51992
52020
  /**
51993
- * to-doc
52021
+ * A location defined by X and Y coordinates in WGS84.
51994
52022
  *
51995
52023
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#location)
51996
52024
  */
51997
52025
  location?: PointProperties;
51998
52026
  /**
51999
- * to-doc
52027
+ * The name of the place, or point of interest.
52000
52028
  *
52001
52029
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#name)
52002
52030
  */
52003
52031
  name?: string;
52004
52032
  /**
52005
- * to-doc
52033
+ * The unique Id of this place.
52006
52034
  *
52007
52035
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#placeId)
52008
52036
  */
52009
52037
  placeId?: string;
52010
52038
  }
52011
52039
 
52040
+ /**
52041
+ * Each category object has a categoryId and a label.
52042
+ *
52043
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#Category)
52044
+ */
52045
+ export interface Category {
52046
+ /**
52047
+ * The Id of the category of the place.
52048
+ *
52049
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlaceResult.html#Category)
52050
+ */
52051
+ categoryId: number;
52052
+ /**
52053
+ * The name of the the category.
52054
+ *
52055
+ * [Read more...](global.html)
52056
+ */
52057
+ label: string;
52058
+ }
52059
+
52012
52060
  export class PlacesParameters extends Accessor {
52013
52061
  /**
52014
- * to-doc
52062
+ * An authorization string used to access a resource or service.
52015
52063
  *
52016
52064
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesParameters.html#apiKey)
52017
52065
  */
52018
52066
  apiKey: string;
52019
52067
  /**
52020
- * to-doc
52068
+ * URL to the places service.
52021
52069
  *
52022
52070
  * @default "https://places-api.arcgis.com/arcgis/rest/services/places-service/v1"
52023
52071
  *
@@ -52025,7 +52073,7 @@ declare namespace __esri {
52025
52073
  */
52026
52074
  url: string;
52027
52075
  /**
52028
- * to-doc
52076
+ * The following properties define common properties for use with [places](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html).
52029
52077
  *
52030
52078
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesParameters.html)
52031
52079
  */
@@ -52037,13 +52085,13 @@ declare namespace __esri {
52037
52085
 
52038
52086
  interface PlacesParametersProperties {
52039
52087
  /**
52040
- * to-doc
52088
+ * An authorization string used to access a resource or service.
52041
52089
  *
52042
52090
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesParameters.html#apiKey)
52043
52091
  */
52044
52092
  apiKey?: string;
52045
52093
  /**
52046
- * to-doc
52094
+ * URL to the places service.
52047
52095
  *
52048
52096
  * @default "https://places-api.arcgis.com/arcgis/rest/services/places-service/v1"
52049
52097
  *
@@ -52054,19 +52102,19 @@ declare namespace __esri {
52054
52102
 
52055
52103
  export class PlacesQueryParameters extends PlacesParameters {
52056
52104
  /**
52057
- * to-doc
52105
+ * Filters places to those that match the category Ids.
52058
52106
  *
52059
52107
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#categoryIds)
52060
52108
  */
52061
52109
  categoryIds: string[];
52062
52110
  /**
52063
- * to-doc required when calling `places.queryPlacesWithinExtent`
52111
+ * The extent of the bounding box to be searched inside.
52064
52112
  *
52065
52113
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#extent)
52066
52114
  */
52067
52115
  extent: Extent;
52068
52116
  /**
52069
- * to-doc
52117
+ * Request results starting from the given offset.
52070
52118
  *
52071
52119
  * @default 0
52072
52120
  *
@@ -52074,7 +52122,7 @@ declare namespace __esri {
52074
52122
  */
52075
52123
  offset: number;
52076
52124
  /**
52077
- * to-doc
52125
+ * The number of places that should be sent in the response for a single request.
52078
52126
  *
52079
52127
  * @default 10
52080
52128
  *
@@ -52082,13 +52130,13 @@ declare namespace __esri {
52082
52130
  */
52083
52131
  pageSize: number;
52084
52132
  /**
52085
- * to-doc required when calling `places.queryPlacesNearPoint`
52133
+ * A location defined by X and Y coordinates.
52086
52134
  *
52087
52135
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#point)
52088
52136
  */
52089
52137
  point: Point;
52090
52138
  /**
52091
- * to-doc only used when calling `places.queryPlacesNearPoint`
52139
+ * The radius in meters to search for places, measured from the supplied [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#point).
52092
52140
  *
52093
52141
  * @default 1000
52094
52142
  *
@@ -52096,13 +52144,13 @@ declare namespace __esri {
52096
52144
  */
52097
52145
  radius: number;
52098
52146
  /**
52099
- * to-doc
52147
+ * Free search text for places against names, categories, etc.
52100
52148
  *
52101
52149
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#searchText)
52102
52150
  */
52103
52151
  searchText: string;
52104
52152
  /**
52105
- * to-doc
52153
+ * The following properties define the parameters for the [queryPlacesNearPoint()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesNearPoint) and [queryPlacesWithinExtent()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesWithinExtent) methods pointing to a [url](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#url) that represents a places service.
52106
52154
  *
52107
52155
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html)
52108
52156
  */
@@ -52120,19 +52168,19 @@ declare namespace __esri {
52120
52168
 
52121
52169
  interface PlacesQueryParametersProperties extends PlacesParametersProperties {
52122
52170
  /**
52123
- * to-doc
52171
+ * Filters places to those that match the category Ids.
52124
52172
  *
52125
52173
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#categoryIds)
52126
52174
  */
52127
52175
  categoryIds?: string[];
52128
52176
  /**
52129
- * to-doc required when calling `places.queryPlacesWithinExtent`
52177
+ * The extent of the bounding box to be searched inside.
52130
52178
  *
52131
52179
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#extent)
52132
52180
  */
52133
52181
  extent?: ExtentProperties;
52134
52182
  /**
52135
- * to-doc
52183
+ * Request results starting from the given offset.
52136
52184
  *
52137
52185
  * @default 0
52138
52186
  *
@@ -52140,7 +52188,7 @@ declare namespace __esri {
52140
52188
  */
52141
52189
  offset?: number;
52142
52190
  /**
52143
- * to-doc
52191
+ * The number of places that should be sent in the response for a single request.
52144
52192
  *
52145
52193
  * @default 10
52146
52194
  *
@@ -52148,13 +52196,13 @@ declare namespace __esri {
52148
52196
  */
52149
52197
  pageSize?: number;
52150
52198
  /**
52151
- * to-doc required when calling `places.queryPlacesNearPoint`
52199
+ * A location defined by X and Y coordinates.
52152
52200
  *
52153
52201
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#point)
52154
52202
  */
52155
52203
  point?: PointProperties;
52156
52204
  /**
52157
- * to-doc only used when calling `places.queryPlacesNearPoint`
52205
+ * The radius in meters to search for places, measured from the supplied [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#point).
52158
52206
  *
52159
52207
  * @default 1000
52160
52208
  *
@@ -52162,7 +52210,7 @@ declare namespace __esri {
52162
52210
  */
52163
52211
  radius?: number;
52164
52212
  /**
52165
- * to-doc
52213
+ * Free search text for places against names, categories, etc.
52166
52214
  *
52167
52215
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryParameters.html#searchText)
52168
52216
  */
@@ -52171,31 +52219,31 @@ declare namespace __esri {
52171
52219
 
52172
52220
  export class PlacesQueryResult extends Accessor {
52173
52221
  /**
52174
- * to-doc
52222
+ * Property indicating whether the query resulted in more than **200** places.
52175
52223
  *
52176
52224
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html#maxResultsExceeded)
52177
52225
  */
52178
52226
  maxResultsExceeded: boolean;
52179
52227
  /**
52180
- * to-doc
52228
+ * The query parameters for the next set of results.
52181
52229
  *
52182
52230
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html#nextQueryParams)
52183
52231
  */
52184
52232
  nextQueryParams: PlacesQueryParameters;
52185
52233
  /**
52186
- * to-doc
52234
+ * The query parameters for the previous set of results.
52187
52235
  *
52188
52236
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html#previousQueryParams)
52189
52237
  */
52190
52238
  previousQueryParams: PlacesQueryParameters;
52191
52239
  /**
52192
- * to-doc
52240
+ * An array of results from searching for places using the [queryPlacesNearPoint()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesNearPoint) and [queryPlacesWithinExtent()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesWithinExtent) methods.
52193
52241
  *
52194
52242
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html#results)
52195
52243
  */
52196
52244
  results: PlaceResult[];
52197
52245
  /**
52198
- * to-doc
52246
+ * The `PlacesQueryResult` object includes the results from the [queryPlacesNearPoint()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesNearPoint) and [queryPlacesWithinExtent()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesWithinExtent) methods.
52199
52247
  *
52200
52248
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html)
52201
52249
  */
@@ -52207,25 +52255,25 @@ declare namespace __esri {
52207
52255
 
52208
52256
  interface PlacesQueryResultProperties {
52209
52257
  /**
52210
- * to-doc
52258
+ * Property indicating whether the query resulted in more than **200** places.
52211
52259
  *
52212
52260
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html#maxResultsExceeded)
52213
52261
  */
52214
52262
  maxResultsExceeded?: boolean;
52215
52263
  /**
52216
- * to-doc
52264
+ * The query parameters for the next set of results.
52217
52265
  *
52218
52266
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html#nextQueryParams)
52219
52267
  */
52220
52268
  nextQueryParams?: PlacesQueryParametersProperties;
52221
52269
  /**
52222
- * to-doc
52270
+ * The query parameters for the previous set of results.
52223
52271
  *
52224
52272
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html#previousQueryParams)
52225
52273
  */
52226
52274
  previousQueryParams?: PlacesQueryParametersProperties;
52227
52275
  /**
52228
- * to-doc
52276
+ * An array of results from searching for places using the [queryPlacesNearPoint()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesNearPoint) and [queryPlacesWithinExtent()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html#queryPlacesWithinExtent) methods.
52229
52277
  *
52230
52278
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PlacesQueryResult.html#results)
52231
52279
  */
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.27/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import r from"../core/Collection.js";import t from"../core/CollectionFlattener.js";import s from"../core/Error.js";import{clone as i}from"../core/lang.js";import{loadAll as o}from"../core/loadAll.js";import a from"../core/Logger.js";import{MultiOriginJSONMixin as l}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as n}from"../core/promiseUtils.js";import{join as p}from"../core/urlUtils.js";import{property as y}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{reader as u}from"../core/accessorSupport/decorators/reader.js";import{subclass as d}from"../core/accessorSupport/decorators/subclass.js";import c from"../geometry/SpatialReference.js";import m from"./Layer.js";import h from"./buildingSublayers/BuildingComponentSublayer.js";import b from"./buildingSublayers/BuildingGroupSublayer.js";import{APIKeyMixin as f}from"./mixins/APIKeyMixin.js";import{ArcGISService as v}from"./mixins/ArcGISService.js";import{OperationalLayer as g}from"./mixins/OperationalLayer.js";import{PortalLayer as S}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{SceneService as w,SaveOperationType as O}from"./mixins/SceneService.js";import I from"./support/BuildingFilter.js";import _ from"./support/BuildingSummaryStatistics.js";import{sceneLayerFullExtent as L,readOnlyService as x,elevationInfo as T}from"./support/commonProperties.js";import{FetchAssociatedFeatureLayer as A}from"./support/FetchAssociatedFeatureLayer.js";const E=r.ofType(I),F=i(b.sublayersProperty),B=F.json?.origins;B&&(B["web-scene"]={type:[h],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},B["portal-item"]={type:[h],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let P=class extends(w(v(g(S(j(l(f(m)))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new t({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._sublayerOverrides=null,this.filters=new E,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,r,t){const s=b.readSublayers(e,r,t);return b.forEachSublayer(s,(e=>e.layer=this)),this._sublayerOverrides&&(this.applySublayerOverrides(s,this._sublayerOverrides),this._sublayerOverrides=null),s}applySublayerOverrides(e,{overrides:r,context:t}){b.forEachSublayer(e,(e=>e.read(r.get(e.id),t)))}readSublayerOverrides(e,r){const t=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?t.set(i.id,i):r.messages?.push(new s("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:t,context:r}}writeSublayerOverrides(e,r,t){const s=[];b.forEachSublayer(this.sublayers,(e=>{const r=e.write({},t);Object.keys(r).length>1&&s.push(r)})),s.length>0&&(r.sublayers=s)}writeUnappliedOverrides(e,r){r.sublayers=[],e.overrides.forEach((e=>{r.sublayers.push(i(e))}))}write(e,r){return e=super.write(e,r),!r||"web-scene"!==r.origin&&"portal-item"!==r.origin||(this.sublayers?this.writeSublayerOverrides(this.sublayers,e,r):this._sublayerOverrides&&this.writeUnappliedOverrides(this._sublayerOverrides,e)),e}read(e,r){if(super.read(e,r),r&&("web-scene"===r.origin||"portal-item"===r.origin)&&null!=e&&Array.isArray(e.sublayers)){const t=this.readSublayerOverrides(e.sublayers,r);this.sublayers?this.applySublayerOverrides(this.sublayers,t):this._sublayerOverrides=t}}readSummaryStatistics(e,r){if("string"==typeof r.statisticsHRef){const e=p(this.parsedUrl?.path,r.statisticsHRef);return new _({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const r=null!=e?e.signal:null,t=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(n).then((()=>this._fetchService(r))).then((()=>this._fetchAssociatedFeatureService(r)));return this.addResolvingPromise(t),Promise.resolve(this)}loadAll(){return o(this,(e=>{b.forEachSublayer(this.sublayers,(r=>{"building-group"!==r.type&&e(r)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,r){return this._debouncedSaveOperations(O.SAVE_AS,{...r,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(O.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new s("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}_validateElevationInfo(){const e=this.elevationInfo;e&&("absolute-height"!==e.mode&&a.getLogger(this).warn(".elevationInfo=","Building scene layers only support absolute-height elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&a.getLogger(this).warn(".elevationInfo=","Building scene layers do not support featureExpressionInfo"))}async _fetchAssociatedFeatureService(e){const r=new A(this.parsedUrl,this.portalItem,this.apiKey,e);try{this.associatedFeatureServiceItem=await r.fetchPortalItem()}catch(t){a.getLogger(this).warn("Associated feature service item could not be loaded",t)}}};e([y({type:["BuildingSceneLayer"]})],P.prototype,"operationalLayerType",void 0),e([y({readOnly:!0})],P.prototype,"allSublayers",void 0),e([y(F)],P.prototype,"sublayers",void 0),e([u("service","sublayers")],P.prototype,"readSublayers",null),e([y({type:E,nonNullable:!0,json:{write:!0}})],P.prototype,"filters",void 0),e([y({type:String,json:{write:!0}})],P.prototype,"activeFilterId",void 0),e([y({readOnly:!0,type:_})],P.prototype,"summaryStatistics",void 0),e([u("summaryStatistics",["statisticsHRef"])],P.prototype,"readSummaryStatistics",null),e([y({type:[String],json:{read:!1}})],P.prototype,"outFields",void 0),e([y(L)],P.prototype,"fullExtent",void 0),e([y({type:["show","hide","hide-children"]})],P.prototype,"listMode",void 0),e([y(x(c))],P.prototype,"spatialReference",void 0),e([y(T)],P.prototype,"elevationInfo",null),e([y({json:{read:!1},readOnly:!0})],P.prototype,"type",void 0),e([y()],P.prototype,"associatedFeatureServiceItem",void 0),P=e([d("esri.layers.BuildingSceneLayer")],P);const K=P;export{K as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import r from"../core/Collection.js";import t from"../core/CollectionFlattener.js";import s from"../core/Error.js";import{clone as i}from"../core/lang.js";import{loadAll as o}from"../core/loadAll.js";import a from"../core/Logger.js";import{MultiOriginJSONMixin as l}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as n}from"../core/promiseUtils.js";import{join as p}from"../core/urlUtils.js";import{property as y}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{reader as u}from"../core/accessorSupport/decorators/reader.js";import{subclass as d}from"../core/accessorSupport/decorators/subclass.js";import c from"../geometry/SpatialReference.js";import m from"./Layer.js";import h from"./buildingSublayers/BuildingComponentSublayer.js";import b from"./buildingSublayers/BuildingGroupSublayer.js";import{APIKeyMixin as f}from"./mixins/APIKeyMixin.js";import{ArcGISService as v}from"./mixins/ArcGISService.js";import{OperationalLayer as g}from"./mixins/OperationalLayer.js";import{PortalLayer as S}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{SceneService as w,SaveOperationType as O}from"./mixins/SceneService.js";import I from"./support/BuildingFilter.js";import _ from"./support/BuildingSummaryStatistics.js";import{sceneLayerFullExtent as L,legendEnabled as x,readOnlyService as E,elevationInfo as T}from"./support/commonProperties.js";import{FetchAssociatedFeatureLayer as A}from"./support/FetchAssociatedFeatureLayer.js";const F=r.ofType(I),B=i(b.sublayersProperty),P=B.json?.origins;P&&(P["web-scene"]={type:[h],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},P["portal-item"]={type:[h],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let K=class extends(w(v(g(S(j(l(f(m)))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new t({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._sublayerOverrides=null,this.filters=new F,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,r,t){const s=b.readSublayers(e,r,t);return b.forEachSublayer(s,(e=>e.layer=this)),this._sublayerOverrides&&(this.applySublayerOverrides(s,this._sublayerOverrides),this._sublayerOverrides=null),s}applySublayerOverrides(e,{overrides:r,context:t}){b.forEachSublayer(e,(e=>e.read(r.get(e.id),t)))}readSublayerOverrides(e,r){const t=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?t.set(i.id,i):r.messages?.push(new s("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:t,context:r}}writeSublayerOverrides(e,r,t){const s=[];b.forEachSublayer(this.sublayers,(e=>{const r=e.write({},t);Object.keys(r).length>1&&s.push(r)})),s.length>0&&(r.sublayers=s)}writeUnappliedOverrides(e,r){r.sublayers=[],e.overrides.forEach((e=>{r.sublayers.push(i(e))}))}write(e,r){return e=super.write(e,r),!r||"web-scene"!==r.origin&&"portal-item"!==r.origin||(this.sublayers?this.writeSublayerOverrides(this.sublayers,e,r):this._sublayerOverrides&&this.writeUnappliedOverrides(this._sublayerOverrides,e)),e}read(e,r){if(super.read(e,r),r&&("web-scene"===r.origin||"portal-item"===r.origin)&&null!=e&&Array.isArray(e.sublayers)){const t=this.readSublayerOverrides(e.sublayers,r);this.sublayers?this.applySublayerOverrides(this.sublayers,t):this._sublayerOverrides=t}}readSummaryStatistics(e,r){if("string"==typeof r.statisticsHRef){const e=p(this.parsedUrl?.path,r.statisticsHRef);return new _({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const r=null!=e?e.signal:null,t=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(n).then((()=>this._fetchService(r))).then((()=>this._fetchAssociatedFeatureService(r)));return this.addResolvingPromise(t),Promise.resolve(this)}loadAll(){return o(this,(e=>{b.forEachSublayer(this.sublayers,(r=>{"building-group"!==r.type&&e(r)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,r){return this._debouncedSaveOperations(O.SAVE_AS,{...r,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(O.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new s("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}_validateElevationInfo(){const e=this.elevationInfo;e&&("absolute-height"!==e.mode&&a.getLogger(this).warn(".elevationInfo=","Building scene layers only support absolute-height elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&a.getLogger(this).warn(".elevationInfo=","Building scene layers do not support featureExpressionInfo"))}async _fetchAssociatedFeatureService(e){const r=new A(this.parsedUrl,this.portalItem,this.apiKey,e);try{this.associatedFeatureServiceItem=await r.fetchPortalItem()}catch(t){a.getLogger(this).warn("Associated feature service item could not be loaded",t)}}};e([y({type:["BuildingSceneLayer"]})],K.prototype,"operationalLayerType",void 0),e([y({readOnly:!0})],K.prototype,"allSublayers",void 0),e([y(B)],K.prototype,"sublayers",void 0),e([u("service","sublayers")],K.prototype,"readSublayers",null),e([y({type:F,nonNullable:!0,json:{write:!0}})],K.prototype,"filters",void 0),e([y({type:String,json:{write:!0}})],K.prototype,"activeFilterId",void 0),e([y({readOnly:!0,type:_})],K.prototype,"summaryStatistics",void 0),e([u("summaryStatistics",["statisticsHRef"])],K.prototype,"readSummaryStatistics",null),e([y({type:[String],json:{read:!1}})],K.prototype,"outFields",void 0),e([y(L)],K.prototype,"fullExtent",void 0),e([y(x)],K.prototype,"legendEnabled",void 0),e([y({type:["show","hide","hide-children"]})],K.prototype,"listMode",void 0),e([y(E(c))],K.prototype,"spatialReference",void 0),e([y(T)],K.prototype,"elevationInfo",null),e([y({json:{read:!1},readOnly:!0})],K.prototype,"type",void 0),e([y()],K.prototype,"associatedFeatureServiceItem",void 0),K=e([d("esri.layers.BuildingSceneLayer")],K);const R=K;export{R as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.27/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import i from"../core/Collection.js";import t from"../core/Error.js";import o from"../core/Logger.js";import{property as n}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import"../core/arrayUtils.js";import"../core/has.js";import{subclass as s}from"../core/accessorSupport/decorators/subclass.js";import a from"./Layer.js";import{KnowledgeGraphLayerDataManager as r}from"./knowledgeGraph/KnowledgeGraphLayerDataManager.js";import p from"./knowledgeGraph/KnowledgeGraphSubLayer.js";import{BlendLayer as l}from"./mixins/BlendLayer.js";import{ScaleRangeLayer as d}from"./mixins/ScaleRangeLayer.js";import{fetchKnowledgeGraph as h}from"../rest/knowledgeGraphService.js";import y from"../rest/knowledgeGraph/EntityType.js";import m from"../rest/knowledgeGraph/RelationshipType.js";let c=class extends(l(d(a))){constructor(e){super(e),this.layers=new i,this.sublayerIdsCache=new Map,this.tables=new i,this.type="knowledge-graph",this._originalInclusionList=e.inclusionModeDefinition}normalizeCtorArgs(e){return{url:e.url,title:e.title}}_initializeLayerProperties(e){const i=new Set,n=new Map;let s=[],a=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new t("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.inclusionModeDefinition?.generateAllSublayers?(s=e.knowledgeGraph.dataModel.entityTypes??[],a=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?(e.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&n.set(e.name,e)})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&n.set(e.name,e)})),e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((t,r)=>{if(!n.get(r))return o.getLogger(this).warn(`A named type, ${r}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(r);n.get(r)instanceof m||"strictOrigin"in n.get(r)?i.has(r)||(i.add(r),a.push(n.get(r))):n.get(r)instanceof y||"properties"in n.get(r)?i.has(r)||(i.add(r),s.push(n.get(r))):(o.getLogger(this).warn(`A named type, ${r}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(r))}))):(s=e.knowledgeGraph.dataModel.entityTypes??[],a=e.knowledgeGraph.dataModel.relationshipTypes??[]);const p=new r({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=s,this.memberRelationshipTypes=a,this.dataManager=p}load(){return this.addResolvingPromise(h(this.url).then((e=>{this._initializeLayerProperties({knowledgeGraph:e,inclusionModeDefinition:this._originalInclusionList}),this.loadLayerAssumingLocalCache()}))),Promise.resolve(this)}loadLayerAssumingLocalCache(){this.memberEntityTypes.forEach((e=>{const i=new p({objectType:e,parentCompositeLayer:this,graphType:"entity",title:e.name});i.geometryType?this.layers.push(i):this.tables.push(i),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.memberRelationshipTypes.forEach((e=>{const i=new p({objectType:e,parentCompositeLayer:this,graphType:"relationship",title:e.name});i.geometryType?this.layers.push(i):this.tables.push(i),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,i)=>{e.members?.forEach((e=>{this.sublayerIdsCache.has(i)?this.sublayerIdsCache.get(i)?.push(e.id):this.sublayerIdsCache.set(i,[e.id])}))})),Array.from(this.sublayerIdsCache.values()).forEach((e=>e.sort()))}};e([n()],c.prototype,"dataManager",void 0),e([n()],c.prototype,"knowledgeGraph",void 0),e([n()],c.prototype,"layers",void 0),e([n()],c.prototype,"memberEntityTypes",void 0),e([n()],c.prototype,"memberRelationshipTypes",void 0),e([n()],c.prototype,"sublayerIdsCache",void 0),e([n()],c.prototype,"tables",void 0),e([n({json:{read:!1}})],c.prototype,"type",void 0),c=e([s("esri.layers.KnowledgeGraphLayer")],c);const g=c;export{g as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import i from"../core/Collection.js";import t from"../core/Error.js";import o from"../core/Logger.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import"../core/arrayUtils.js";import"../core/has.js";import{subclass as s}from"../core/accessorSupport/decorators/subclass.js";import n from"./Layer.js";import{KnowledgeGraphLayerDataManager as r}from"./knowledgeGraph/KnowledgeGraphLayerDataManager.js";import p from"./knowledgeGraph/KnowledgeGraphSubLayer.js";import{BlendLayer as h}from"./mixins/BlendLayer.js";import{ScaleRangeLayer as d}from"./mixins/ScaleRangeLayer.js";import{fetchKnowledgeGraph as l}from"../rest/knowledgeGraphService.js";import y from"../rest/knowledgeGraph/EntityType.js";import c from"../rest/knowledgeGraph/RelationshipType.js";const m=(e,i,t)=>(e.has(i)||e.set(i,t()),e.get(i));let g=class extends(h(d(n))){constructor(e){super(e),this._graphTypeLookup=new Map,this.layers=new i,this.sublayerIdsCache=new Map,this.tables=new i,this.type="knowledge-graph",this._originalInclusionList=e.inclusionModeDefinition}normalizeCtorArgs(e){return{url:e.url,title:e.title}}_initializeLayerProperties(e){const i=new Set;let a=[],s=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new t("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),e.inclusionModeDefinition?.generateAllSublayers?(a=e.knowledgeGraph.dataModel.entityTypes??[],s=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((t,n)=>{if(!this._graphTypeLookup.get(n))return o.getLogger(this).warn(`A named type, ${n}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(n);this._graphTypeLookup.get(n)instanceof c||"strictOrigin"in this._graphTypeLookup.get(n)?i.has(n)||(i.add(n),s.push(this._graphTypeLookup.get(n))):this._graphTypeLookup.get(n)instanceof y||"properties"in this._graphTypeLookup.get(n)?i.has(n)||(i.add(n),a.push(this._graphTypeLookup.get(n))):(o.getLogger(this).warn(`A named type, ${n}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(n))})):(a=e.knowledgeGraph.dataModel.entityTypes??[],s=e.knowledgeGraph.dataModel.relationshipTypes??[]);const n=new r({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=a,this.memberRelationshipTypes=s,this.dataManager=n}load(){return this.addResolvingPromise(l(this.url).then((e=>{this._initializeLayerProperties({knowledgeGraph:e,inclusionModeDefinition:this._originalInclusionList}),this.loadLayerAssumingLocalCache()}))),Promise.resolve(this)}async _handleNewRecords(e){const i=[];this.dataManager.addToLayerInclusionSet(e);for(const t of e)this.sublayerIdsCache.has(t.typeName)||(this.sublayerIdsCache.set(t.typeName,new Set),i.push(t.typeName)),this.sublayerIdsCache.get(t.typeName).add(t.id);for(const t of i)if(this._graphTypeLookup.has(t)){const e=this._graphTypeLookup.get(t),i="endPoints"in e?"relationship":"entity",o=new p({objectType:e,parentCompositeLayer:this,graphType:i,title:t});"entity"===i?this.dataManager.entityTypeNames.add(t):this.dataManager.relationshipTypeNames.add(t),o.geometryType?this.layers.push(o):this.tables.push(o),this.dataManager.sublayerCaches.set(t,new Map)}this.layers.forEach((e=>{e.emit("refresh",{dataChanged:!0})}))}loadLayerAssumingLocalCache(){this.memberEntityTypes.forEach((e=>{const i=new p({objectType:e,parentCompositeLayer:this,graphType:"entity",title:e.name});i.geometryType?this.layers.push(i):this.tables.push(i),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.memberRelationshipTypes.forEach((e=>{const i=new p({objectType:e,parentCompositeLayer:this,graphType:"relationship",title:e.name});i.geometryType?this.layers.push(i):this.tables.push(i),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,i)=>{const t=m(this.sublayerIdsCache,i,(()=>new Set));e.members?.forEach((e=>{t.add(e.id)}))}))}async addRecords(e){await this._handleNewRecords(e)}};e([a()],g.prototype,"dataManager",void 0),e([a()],g.prototype,"knowledgeGraph",void 0),e([a()],g.prototype,"layers",void 0),e([a()],g.prototype,"memberEntityTypes",void 0),e([a()],g.prototype,"memberRelationshipTypes",void 0),e([a()],g.prototype,"sublayerIdsCache",void 0),e([a()],g.prototype,"tables",void 0),e([a({json:{read:!1}})],g.prototype,"type",void 0),g=e([s("esri.layers.KnowledgeGraphLayer")],g);const u=g;export{u as default};