@arcgis/core 4.32.0-next.20250130 → 4.32.0-next.20250201

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 (531) hide show
  1. package/WebScene.js +1 -1
  2. package/arcade/featureset/support/shared.js +1 -1
  3. package/arcade/geometry/unitConversion.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/{4696278d033907a067c7.js → 085462ba3da7849fc296.js} +1 -1
  6. package/assets/esri/core/workers/chunks/0a19e1aec6a5502e391a.js +1 -0
  7. package/assets/esri/core/workers/chunks/25c8cc30faade043c8dc.js.LICENSE.txt +1 -1
  8. package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
  9. package/assets/esri/core/workers/chunks/34d464dacee52739c98c.js +1 -0
  10. package/assets/esri/core/workers/chunks/39e38aab86dcee3f79be.js +1 -0
  11. package/assets/esri/core/workers/chunks/{149bad940feb0764b350.js → 613db14d698741886753.js} +1 -1
  12. package/assets/esri/core/workers/chunks/6e8905f20101c1f4509d.js.LICENSE.txt +1 -1
  13. package/assets/esri/core/workers/chunks/6ec108bd955e064256b5.js +1 -0
  14. package/assets/esri/core/workers/chunks/72cf9192292e5c85c6df.js.LICENSE.txt +1 -1
  15. package/assets/esri/core/workers/chunks/{9011704b258ecbfb6d9b.js → 7d3a441d2eb18d709ef9.js} +2 -2
  16. package/assets/esri/core/workers/chunks/{9011704b258ecbfb6d9b.js.LICENSE.txt → 7d3a441d2eb18d709ef9.js.LICENSE.txt} +1 -1
  17. package/assets/esri/core/workers/chunks/{0ebdf0d1fd2034b24519.js → af2a70d33afb12bb536f.js} +7 -7
  18. package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
  19. package/assets/esri/core/workers/chunks/bf9bc52a3c559108c19a.js.LICENSE.txt +1 -1
  20. package/assets/esri/core/workers/chunks/c032bcd25e2e7a57ad43.js +1 -0
  21. package/assets/esri/core/workers/chunks/c4b0e3f7dcad6c7ea620.js +314 -0
  22. package/assets/esri/core/workers/chunks/c94ec324ecad77c53a87.js +1 -0
  23. package/assets/esri/core/workers/chunks/{c80507443f896dbfaba6.js → e4b80c8f4c45fd78bde1.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{d4760e583dfac95dc8a1.js → ffa2b9d70830aed03a8f.js} +1 -1
  25. package/assets/esri/themes/base/_core.scss +4 -0
  26. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -2
  27. package/assets/esri/themes/base/widgets/_Editor.scss +31 -0
  28. package/assets/esri/themes/base/widgets/_FilterBuilder.scss +24 -0
  29. package/assets/esri/themes/base/widgets/_FilterCondition.scss +12 -0
  30. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +1 -1
  31. package/assets/esri/themes/dark/main.css +1 -1
  32. package/assets/esri/themes/light/main.css +1 -1
  33. package/assets/esri/themes/light/view.css +1 -1
  34. package/assets/esri/views/interactive/tooltip/t9n/Tooltip.json +1 -1
  35. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ar.json +1 -1
  36. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bg.json +1 -1
  37. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bs.json +1 -1
  38. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ca.json +1 -1
  39. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_cs.json +1 -1
  40. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_da.json +1 -1
  41. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_de.json +1 -1
  42. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_el.json +1 -1
  43. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -1
  44. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_es.json +1 -1
  45. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_et.json +1 -1
  46. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fi.json +1 -1
  47. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fr.json +1 -1
  48. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_he.json +1 -1
  49. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hr.json +1 -1
  50. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hu.json +1 -1
  51. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_id.json +1 -1
  52. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_it.json +1 -1
  53. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ja.json +1 -1
  54. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ko.json +1 -1
  55. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lt.json +1 -1
  56. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lv.json +1 -1
  57. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_nl.json +1 -1
  58. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_no.json +1 -1
  59. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pl.json +1 -1
  60. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-BR.json +1 -1
  61. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-PT.json +1 -1
  62. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ro.json +1 -1
  63. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ru.json +1 -1
  64. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sk.json +1 -1
  65. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sl.json +1 -1
  66. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sr.json +1 -1
  67. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sv.json +1 -1
  68. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_th.json +1 -1
  69. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_tr.json +1 -1
  70. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_uk.json +1 -1
  71. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_vi.json +1 -1
  72. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-CN.json +1 -1
  73. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-HK.json +1 -1
  74. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-TW.json +1 -1
  75. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
  76. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
  77. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
  78. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
  79. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
  80. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
  81. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
  82. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
  83. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
  84. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
  85. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
  86. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
  87. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
  88. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
  89. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
  90. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
  91. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
  92. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
  93. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
  94. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
  95. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
  96. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
  97. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
  110. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
  111. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
  112. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
  113. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
  114. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
  115. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
  116. package/assets/esri/widgets/Directions/t9n/Directions.json +1 -1
  117. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  118. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  119. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  120. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  121. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  122. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  123. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  124. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  125. package/assets/esri/widgets/Directions/t9n/Directions_en.json +1 -1
  126. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  127. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  128. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  129. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  130. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  131. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  132. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  133. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  134. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  135. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  136. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  137. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  138. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  139. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  140. package/assets/esri/widgets/Directions/t9n/Directions_no.json +1 -1
  141. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  142. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  143. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  144. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  145. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  146. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  147. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  148. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  149. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  150. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  151. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  152. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  153. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  154. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  155. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  156. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  157. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  158. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  159. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  160. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  161. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  162. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  163. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  164. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  165. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  166. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  167. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  168. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  169. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  170. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  171. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  172. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  173. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  174. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  175. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  176. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  177. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  178. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  179. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  180. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  181. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  182. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  183. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  184. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  185. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  186. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  187. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  188. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  189. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  190. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  191. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  192. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  193. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  194. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  195. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  196. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  197. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  198. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm.json +1 -1
  199. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
  200. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
  201. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
  202. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
  203. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
  204. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
  205. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
  206. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
  207. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_en.json +1 -1
  208. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
  209. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
  210. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
  211. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
  212. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
  213. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
  214. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
  215. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
  216. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
  217. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
  218. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
  219. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
  220. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
  221. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
  222. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_no.json +1 -1
  223. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
  224. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
  225. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
  226. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
  227. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
  228. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
  229. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
  230. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
  231. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
  232. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
  233. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
  234. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
  235. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
  236. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
  237. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
  238. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
  239. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  240. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  241. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  242. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  243. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  244. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  245. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  246. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  247. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  248. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  249. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  250. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  251. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  252. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  253. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  254. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  255. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  256. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  257. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  258. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  259. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  260. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  261. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  262. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  263. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  264. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  265. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  266. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  267. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  268. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  269. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  270. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  271. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  272. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  273. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  274. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  275. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  276. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  277. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  278. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  279. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  280. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder.json +1 -0
  281. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_en.json +1 -0
  282. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition.json +1 -0
  283. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_en.json +1 -0
  284. package/form/elements/inputs.d.ts +10 -0
  285. package/form/elements.d.ts +6 -0
  286. package/geometry/support/typeUtils.js +1 -1
  287. package/geometry.d.ts +6 -0
  288. package/interfaces.d.ts +262 -62
  289. package/layers/FeatureLayer.js +1 -1
  290. package/layers/graphics/OptimizedGeometry.js +1 -1
  291. package/layers/graphics/dehydratedFeatures.js +1 -1
  292. package/layers/graphics/sources/ParquetSource.js +1 -1
  293. package/layers/orientedImagery/transformations/utils.js +1 -1
  294. package/layers/support/domainUtils.js +1 -1
  295. package/layers/support/parquetLayerUtils.js +1 -1
  296. package/layers/support/rasterFieldUtils.js +1 -1
  297. package/package.json +3 -3
  298. package/pointCloudRenderers.d.ts +4 -0
  299. package/popup/content.d.ts +8 -0
  300. package/popup/support/UtilityNetworkAssociationType.js +1 -1
  301. package/rasterRenderers.d.ts +7 -0
  302. package/renderers.d.ts +7 -0
  303. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  304. package/smartMapping/support/utils.js +1 -1
  305. package/support/basemapDefinitions.js +1 -1
  306. package/support/revision.js +1 -1
  307. package/symbols/cim/animationUtils.js +1 -1
  308. package/symbols/cim/defaultCIMValues.js +1 -1
  309. package/symbols.d.ts +22 -0
  310. package/tables/elements.d.ts +4 -0
  311. package/views/2d/engine/webgl/animations/utils.js +1 -1
  312. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  313. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  314. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  315. package/views/2d/layers/features/layerAdapters/geometryUtils.js +1 -1
  316. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  317. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  318. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  319. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  320. package/views/3d/environment/CloudsComposition.js +1 -1
  321. package/views/3d/environment/CloudsCompositionTechnique.js +1 -1
  322. package/views/3d/environment/CloudsRenderer.js +1 -1
  323. package/views/3d/environment/CloudsTechnique.js +1 -1
  324. package/views/3d/environment/Fog.js +1 -1
  325. package/views/3d/environment/FogTechnique.js +1 -1
  326. package/views/3d/environment/LocalAtmosphere.js +1 -1
  327. package/views/3d/environment/MarsAtmosphere.js +1 -1
  328. package/views/3d/environment/NoiseTextureAtlas.js +1 -1
  329. package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
  330. package/views/3d/environment/Precipitation.js +1 -1
  331. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  332. package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
  333. package/views/3d/interactive/editingTools/media/ControlPointOperations.js +1 -1
  334. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  335. package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
  336. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  337. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  338. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  339. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  340. package/views/3d/terrain/OverlayRenderer.js +1 -1
  341. package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
  342. package/views/3d/terrain/TerrainRenderer.js +1 -1
  343. package/views/3d/terrain/TileCompositor.js +1 -1
  344. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  345. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  346. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  347. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  348. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  349. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  350. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  351. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  352. package/views/3d/webgl-engine/effects/bloom/BloomBlurTechnique.js +1 -1
  353. package/views/3d/webgl-engine/effects/bloom/BloomCompositionTechnique.js +1 -1
  354. package/views/3d/webgl-engine/effects/bloom/BloomDepthAdjustTechnique.js +1 -1
  355. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  356. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  357. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  358. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  359. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  360. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  361. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  362. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  363. package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
  364. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  365. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  366. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  367. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  368. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  369. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  370. package/views/3d/webgl-engine/effects/highlight/SingleHighlightApplyTechnique.js +1 -1
  371. package/views/3d/webgl-engine/effects/highlight/SingleHighlightBlurTechnique.js +1 -1
  372. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  373. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  374. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechnique.js +1 -1
  375. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  376. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  377. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  378. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  379. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  380. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  381. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  382. package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
  383. package/views/3d/webgl-engine/effects/ssao/SSAOTechnique.js +1 -1
  384. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  385. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  386. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  387. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  388. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  389. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  390. package/views/3d/webgl-engine/lib/GLMaterial.js +1 -1
  391. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  392. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  393. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  394. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  395. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  396. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  397. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  398. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  399. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  400. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  401. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  402. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  403. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  404. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  405. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  406. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  407. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  408. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  409. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  410. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  411. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  412. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  413. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  414. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  415. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  416. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  417. package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
  418. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  419. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  420. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  421. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  422. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  423. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  424. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +1 -1
  425. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  426. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  427. package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +1 -1
  428. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  429. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  430. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  431. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  432. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  433. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  434. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  435. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  436. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  437. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  438. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  439. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  440. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  441. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  442. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  443. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  444. package/views/3d/webgl.js +1 -1
  445. package/views/FocusAreas.js +1 -1
  446. package/views/draw/DrawGraphicTool.js +1 -1
  447. package/views/draw/DrawOperation.js +1 -1
  448. package/views/draw/support/Box.js +1 -1
  449. package/views/draw/support/helpMessageUtils.js +1 -1
  450. package/views/draw/support/tooltipUtils.js +1 -1
  451. package/views/interactive/keybindings.js +1 -1
  452. package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
  453. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  454. package/views/interactive/snapping/snappingUtils.js +1 -1
  455. package/views/interactive/tooltip/content/tooltipContentFactory.js +1 -1
  456. package/views/interactive/tooltip/infos/DrawCircleTooltipInfo.js +1 -1
  457. package/views/interactive/tooltip/infos/DrawMultipointTooltipInfo.js +5 -0
  458. package/views/interactive/tooltip/infos/DrawRectangleTooltipInfo.js +1 -1
  459. package/views/layers/FeatureLayerView.js +1 -1
  460. package/views/layers/MediaLayerView.js +1 -1
  461. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  462. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  463. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  464. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  465. package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
  466. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  467. package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
  468. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  469. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  470. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  471. package/widgets/BatchAttributeForm/templates/BatchFormTemplate.js +1 -1
  472. package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
  473. package/widgets/BatchAttributeForm/templates/GroupElementTemplate.js +1 -1
  474. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  475. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  476. package/widgets/BatchAttributeForm.js +1 -1
  477. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  478. package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
  479. package/widgets/Editor/EditorViewModel.js +1 -1
  480. package/widgets/Editor/Edits.js +1 -1
  481. package/widgets/Editor/UpdateWorkflow.js +1 -1
  482. package/widgets/Editor/VisibleElements.js +1 -1
  483. package/widgets/Editor/components/CreateFeaturesPanelContent.js +1 -1
  484. package/widgets/Editor/components/PanelToolbar.js +1 -1
  485. package/widgets/Editor/components/PendingFeatureList.js +5 -0
  486. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  487. package/widgets/Editor/css.js +1 -1
  488. package/widgets/Editor/workflowUtils.js +1 -1
  489. package/widgets/Editor.js +1 -1
  490. package/widgets/Feature.js +1 -1
  491. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/AssociationDetails.js +5 -0
  492. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  493. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationSettings.js +1 -1
  494. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  495. package/widgets/FeatureForm/FieldInput.js +1 -1
  496. package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
  497. package/widgets/FeatureForm.js +1 -1
  498. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.d.ts +4 -0
  499. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.js +1 -1
  500. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  501. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  502. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +5 -0
  503. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  504. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  505. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  506. package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
  507. package/widgets/OrientedImageryViewer.js +1 -1
  508. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  509. package/widgets/Search.js +1 -1
  510. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  511. package/widgets/Sketch/SketchViewModel.js +1 -1
  512. package/widgets/Sketch/VisibleElements.js +1 -1
  513. package/widgets/Sketch.js +1 -1
  514. package/widgets/Swipe/SwipeViewModel.js +1 -1
  515. package/widgets/UtilityNetworkTrace.js +1 -1
  516. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +5 -0
  517. package/widgets/support/FilterBuilder.js +5 -0
  518. package/widgets/support/FilterCondition/FilterConditionViewModel.js +5 -0
  519. package/widgets/support/FilterCondition/conditionUtils.js +5 -0
  520. package/widgets/support/FilterCondition.js +5 -0
  521. package/widgets/support/ItemList.js +1 -1
  522. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  523. package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +1 -1
  524. package/widgets/support/widget.d.ts +9 -0
  525. package/assets/esri/core/workers/chunks/0bafa546602b776caf2f.js +0 -1
  526. package/assets/esri/core/workers/chunks/1891c9aa162c5df1d27c.js +0 -1
  527. package/assets/esri/core/workers/chunks/69ab4b780f7223cfd7dd.js +0 -1
  528. package/assets/esri/core/workers/chunks/6f796f2836f949ab7359.js +0 -1
  529. package/assets/esri/core/workers/chunks/83edac97a52b26ead1ea.js +0 -314
  530. package/assets/esri/core/workers/chunks/97310e6eec87eeaf58f0.js +0 -1
  531. package/assets/esri/core/workers/chunks/9ffa27d0517bad84572e.js +0 -1
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import t from"../PopupTemplate.js";import r from"../request.js";import i from"../core/Clonable.js";import o from"../core/Collection.js";import s from"../core/Error.js";import{clone as a}from"../core/lang.js";import n from"../core/Logger.js";import{MultiOriginJSONMixin as l}from"../core/MultiOriginJSONSupport.js";import{setDeepValue as p}from"../core/object.js";import{debounce as u,throwIfAbortError as d,whenOrAbort as y}from"../core/promiseUtils.js";import{sqlAnd as c}from"../core/sql.js";import{urlToObject as m,join as h}from"../core/urlUtils.js";import f from"../core/Warning.js";import{property as b}from"../core/accessorSupport/decorators/property.js";import{cast as g}from"../core/accessorSupport/decorators/cast.js";import{reader as w}from"../core/accessorSupport/decorators/reader.js";import{subclass as v}from"../core/accessorSupport/decorators/subclass.js";import{writer as j}from"../core/accessorSupport/decorators/writer.js";import{excludeTables as S}from"../core/accessorSupport/layerContainerType.js";import F from"../form/FormTemplate.js";import T from"../geometry/SpatialReference.js";import I from"./Layer.js";import{MemorySource as E}from"./graphics/sources/MemorySource.js";import{APIKeyMixin as L}from"./mixins/APIKeyMixin.js";import{ArcGISService as D}from"./mixins/ArcGISService.js";import{BlendLayer as x}from"./mixins/BlendLayer.js";import{CustomParametersMixin as _}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as P}from"./mixins/DisplayFilteredLayer.js";import{EditBusLayer as M}from"./mixins/EditBusLayer.js";import{FeatureEffectLayer as q}from"./mixins/FeatureEffectLayer.js";import{FeatureLayerBase as C}from"./mixins/FeatureLayerBase.js";import{FeatureReductionLayer as O}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as A}from"./mixins/OperationalLayer.js";import{OrderedLayer as V}from"./mixins/OrderedLayer.js";import{PortalLayer as Q}from"./mixins/PortalLayer.js";import{PublishableLayer as R}from"./mixins/PublishableLayer.js";import{RefreshableLayer as U}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as B}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as N}from"./mixins/TemporalLayer.js";import{TrackableLayer as $}from"./mixins/TrackableLayer.js";import{titleFromUrlAndName as G,parse as J,cleanTitle as W}from"./support/arcgisLayerUrl.js";import{attributeTableTemplate as Z,id as k,labelsVisible as z,opacityDrawingInfo as H,legendEnabled as K,listMode as X,popupEnabled as Y,screenSizePerspectiveEnabled as ee}from"./support/commonProperties.js";import{ensureLayerCredential as te,computeEffectiveEditingEnabled as re,readGlobalIdField as ie,readObjectIdField as oe,createDefaultRenderer as se,addAttachment as ae,updateAttachment as ne,applyEdits as le,uploadAssets as pe,createQuery as ue,deleteAttachments as de,fetchRecomputedExtents as ye,getFeatureType as ce,computeDomainFromSubtypes as me,getFeatureSubtype as he,computeDomainFromTypes as fe,queryAttachments as be,queryObjectIds as ge,queryFeatureCount as we,queryExtent as ve,queryRelatedFeatures as je,queryRelatedFeaturesCount as Se,validateBinsQuery as Fe,hasDataChanged as Te,geometryTypeKebabDict as Ie}from"./support/featureLayerUtils.js";import Ee from"./support/FeatureTemplate.js";import Le from"./support/FeatureType.js";import{defineFieldProperties as De}from"./support/fieldProperties.js";import{fixRendererFields as xe,fixTimeInfoFields as _e}from"./support/fieldUtils.js";import Pe from"./support/LabelClass.js";import{reader as Me}from"./support/labelingInfo.js";import{getFeatureLayerCapabilities as qe}from"./support/serviceCapabilitiesUtils.js";import Ce from"./support/TimeInfo.js";import{serviceSupportsSpatialReference as Oe}from"./support/versionUtils.js";import{DataLayerSource as Ae}from"./support/source/DataLayerSource.js";import{read as Ve}from"../renderers/support/jsonUtils.js";import{loadStyleRenderer as Qe}from"../renderers/support/styleUtils.js";import{rendererTypes as Re,webSceneRendererTypes as Ue}from"../renderers/support/typeUtils.js";import Be from"../rest/support/FeatureSet.js";import Ne from"../rest/support/Query.js";import{isNumber as $e}from"../support/guards.js";import{createPopupTemplate as Ge}from"../support/popupUtils.js";import{symbolTypes as Je}from"../symbols/support/typeUtils.js";import{alphaCutoff as We}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js";import{SaveOperationType as Ze}from"../webdoc/interfaces.js";import{opacityToTransparency as ke}from"../webdoc/support/opacityUtils.js";const ze="FeatureLayer";function He(e,t){return new s("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Ke(e){return e&&e instanceof o}const Xe=De();function Ye(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let et=class extends(C(O(q(R(M(P(x(V(N($(B(U(D(A(Q(l(_(L(i.ClonableMixin(I)))))))))))))))))))){constructor(...e){super(...e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=T.WGS84,this.subtypeCode=null,this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=u((async(e,t,r)=>{const{save:i,saveAs:o}=await import("./save/featureLayerUtils.js");switch(e){case Ze.SAVE:return i(this,t);case Ze.SAVE_AS:return o(this,r,t)}}))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this.initLayerProperties(e)))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},e).catch(d).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new s("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))})).then((()=>te(this,"load",e)));return this.addResolvingPromise(r),Promise.resolve(this)}warnInvisibleDrapedSymbols(){"on-the-ground"===this.elevationInfo?.mode&&"simple"===this.renderer?.type&&"polygon-3d"===this.renderer.symbol?.type&&this.renderer.symbol.symbolLayers.some((e=>"fill"===e.type&&null!=e.material&&((!e.material.color||e.material.color.a*this.opacity<We)&&(this.loadWarnings.push(new f("feature-layer:invisible-draped-symbols","FeatureLayer has fully transparent symbols which will no longer render or highlight",{layer:this})),!0))))}readCapabilities(e,t){return t=t.layerDefinition||t,qe(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}get effectiveEditingEnabled(){return re(this)}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&p(r,e?"Table":"Feature Layer",t)}readGlobalIdField(e,t){return ie(t.layerDefinition||t)}readObjectIdField(e,t){return oe(t.layerDefinition||t)}get parsedUrl(){const e=m(this.url);return null!=e&&(null!=this.dynamicDataSource?e.path=h(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=h(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){xe(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=Ve(i,t,r)??void 0;return e||n.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return se(t,r)}set source(e){const t=this._get("source");t!==e&&(Ke(t)&&this._resetMemorySource(t),Ke(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof o?new E({layer:this,items:e}):e:null}readSource(e,t){const r=Be.fromJSON(t.featureSet);return new E({layer:this,items:r?.features??[]})}readTemplates(e,t){const r=t.editFieldsInfo,i=r?.creatorField,o=r?.editorField;return e=e?.map((e=>Ee.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,o),e}readTitle(e,t){const r=t.layerDefinition?.name??t.name,i=t.title||t.layerDefinition?.title;if(r){const e=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?G(this.url,r):r;let t=r;if(!t&&this.url){const e=J(this.url);null!=e&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),W(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r?.creatorField,o=r?.editorField;return e?.map((e=>(e=Le.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,o),e)))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const r=await ae(this,e,t,ze);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,r){const i=await ne(this,e,t,r,ze);return this.lastEditsEventDate=new Date,i}async applyEdits(e,t){return le(this,e,t)}async uploadAssets(e,t){return pe(this,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return Ge(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await y(import("./graphics/sources/FeatureLayerSource.js"),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=ue(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,r=c(this.definitionExpression,t);return e.where=r||"1=1",e}async deleteAttachments(e,t){const r=await de(this,e,t,ze);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return ye(this,e,ze)}getFeatureType(e){return ce(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=!!this.subtypes?.length;if(i&&!t?.excludeImpliedDomains){const t=me(this,e);if(t)return t}const o=i&&he(this,r);if(o){const t=o?.domains?.[e];return"inherited"===t?.type?this._getLayerDomain(e):t}const s=this.getFeatureType(r),a=this._getLayerDomain(e);if(s){const t=s.domains&&s.domains[e];if(t&&"inherited"!==t?.type)return t}if(a)return a;if(!t?.excludeImpliedDomains){const t=fe(this,e);if(t)return t}return null}async queryAttachments(e,t){return be(this,e,t,ze)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Ne.from(e)??r.createQuery(),t);if(i?.features)for(const o of i.features)o.layer=o.sourceLayer=r;return i}async queryObjectIds(e,t){return(await ge(this,e,t,ze)).filter($e)}async queryFeatureCount(e,t){return we(this,e,t,ze)}async queryExtent(e,t){return ve(this,e,t,ze)}async queryRelatedFeatures(e,t){return je(this,e,t,ze)}async queryRelatedFeaturesCount(e,t){return Se(this,e,t,ze)}async queryTopFeatures(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopFeatures||!i?.query?.supportsTopFeaturesQuery)throw new s(ze,"Layer source does not support queryTopFeatures capability");const o=await import("../rest/support/TopFeaturesQuery.js"),a=await r.queryTopFeatures(o.default.from(e),t);if(a?.features)for(const s of a.features)s.layer=s.sourceLayer=this;return a}async queryAttributeBins(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryAttributeBins||!i?.operations?.supportsQueryBins)throw new s(ze,"Layer source does not support queryAttributeBins capability");Fe(e,i,ze);const o=await import("../rest/support/AttributeBinsQuery.js"),a=await r.queryAttributeBins(o.default.from(e),t);if(a.features)for(const s of a.features)s.layer=s.sourceLayer=this;return a}async queryTopObjectIds(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopObjectIds||!i?.query.supportsTopFeaturesQuery)throw new s(ze,"Layer source does not support queryTopObjectIds capability");const o=await import("../rest/support/TopFeaturesQuery.js");return(await r.queryTopObjectIds(o.default.from(e),t)).filter($e)}async queryTopFeaturesExtent(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopExtents||!i?.query?.supportsTopFeaturesQuery)throw new s(ze,"Layer source does not support queryTopExtents capability");const o=await import("../rest/support/TopFeaturesQuery.js");return r.queryTopExtents(o.default.from(e),t)}async queryTopFeatureCount(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopCount||!i?.query?.supportsTopFeaturesQuery)throw new s(ze,"Layer source does not support queryFeatureCount capability");const o=await import("../rest/support/TopFeaturesQuery.js");return r.queryTopCount(o.default.from(e),t)}read(e,t){const r=e.featureCollection;if((r||"Feature Collection"===e.type)&&(this.resourceInfo=e),r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&"service"===t.origin&&(this.revert(["objectIdField","fields","timeInfo","dateFieldsTimeZone"],"service"),this.spatialReference||this.revert(["spatialReference"],"service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:o}=t;if(this.dynamicDataSource)return o?.push(He(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(("web-map"===r||"web-scene"===r)&&"tables"!==i)return o?.push(He(this,`a table source can only be written to tables, not ${i}`)),null;if(this._hasMemorySource())return o?.push(He(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&("web-map"===r||"web-scene"===r)&&"tables"===i)return o?.push(He(this,"using a non-table source cannot be written to tables in web maps or web scenes")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new s(ze,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||Oe(this,e))}async save(e){return this._debouncedSaveOperations(Ze.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(Ze.SAVE_AS,t,e)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&"web-map"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";p("layerDefinition.capabilities",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstValidLayerId(e){return r(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return this.findFirstValidLayerId(t)}))}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),xe(this.renderer,this.fieldsIndex),_e(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),Qe(this,{origin:"service"})}async hasDataChanged(){return Te(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype?.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new s("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new s("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this.addHandles([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return Array.isArray(e.layers)&&e.layers.length>0?e.layers[0].id:Array.isArray(e.tables)&&e.tables.length>0?e.tables[0].id:void 0}};e([b(Z)],et.prototype,"attributeTableTemplate",void 0),e([w("service","capabilities")],et.prototype,"readCapabilities",null),e([b({json:{origins:{"web-scene":{write:!1}},write:!0}})],et.prototype,"charts",void 0),e([b({readOnly:!0})],et.prototype,"createQueryVersion",null),e([b({json:{read:{source:"layerDefinition.copyrightText"}}})],et.prototype,"copyright",void 0),e([b({json:{read:{source:"layerDefinition.displayField"}}})],et.prototype,"displayField",void 0),e([b({types:Je,readOnly:!0})],et.prototype,"defaultSymbol",void 0),e([b({type:Ae})],et.prototype,"dynamicDataSource",void 0),e([b({type:Boolean})],et.prototype,"editingEnabled",null),e([w(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],et.prototype,"readEditingEnabled",null),e([w("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],et.prototype,"readEditingEnabledFromWebMap",null),e([j(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],et.prototype,"writeEditingEnabled",null),e([j("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],et.prototype,"writeEditingEnabledToWebMap",null),e([b({readOnly:!0})],et.prototype,"effectiveEditingEnabled",null),e([b({...Xe.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ye}}}}})],et.prototype,"fields",void 0),e([b(Xe.fieldsIndex)],et.prototype,"fieldsIndex",void 0),e([b({type:F,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],et.prototype,"formTemplate",void 0),e([b({json:{read:{source:"layerDefinition.extent"}}})],et.prototype,"fullExtent",void 0),e([b({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ye,writer(e,t,r){const i=e?Ie.toJSON(e):null;i&&p(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:Ie.read}}})],et.prototype,"geometryType",void 0),e([b({json:{read:{source:"layerDefinition.hasM"}}})],et.prototype,"hasM",void 0),e([b({json:{read:{source:"layerDefinition.hasZ"}}})],et.prototype,"hasZ",void 0),e([b(k)],et.prototype,"id",void 0),e([b({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],et.prototype,"infoFor3D",void 0),e([b({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],et.prototype,"isTable",void 0),e([w("service","isTable",["type","geometryType"]),w("isTable",["layerDefinition.type","layerDefinition.geometryType"])],et.prototype,"readIsTable",null),e([j("web-map","isTable")],et.prototype,"writeIsTable",null),e([b(z)],et.prototype,"labelsVisible",void 0),e([b({type:[Pe],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:Me,write:!1},"web-scene":{name:"layerDefinition.drawingInfo.labelingInfo",read:Me,write:{enabled:!0,layerContainerTypes:S}}},name:"layerDefinition.drawingInfo.labelingInfo",read:Me,write:!0}})],et.prototype,"labelingInfo",void 0),e([b((()=>{const e=a(H);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,r){p(r,ke(e),t)}}},e})())],et.prototype,"opacity",void 0),e([b(K)],et.prototype,"legendEnabled",void 0),e([b({type:["show","hide"],json:(()=>{const e=a(X.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],et.prototype,"listMode",void 0),e([w("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],et.prototype,"readGlobalIdField",null),e([b({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ye}}}}})],et.prototype,"objectIdField",void 0),e([w("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],et.prototype,"readObjectIdField",null),e([b({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],et.prototype,"operationalLayerType",void 0),e([b(Xe.outFields)],et.prototype,"outFields",void 0),e([b({readOnly:!0})],et.prototype,"parsedUrl",null),e([b({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],et.prototype,"path",void 0),e([b(Y)],et.prototype,"popupEnabled",void 0),e([b({type:t,json:{name:"popupInfo",write:!0}})],et.prototype,"popupTemplate",void 0),e([b({readOnly:!0})],et.prototype,"defaultPopupTemplate",null),e([b({types:Re,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:Ue,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:S,overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}})],et.prototype,"renderer",null),e([w("service","renderer",["drawingInfo.renderer","defaultSymbol"]),w("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],et.prototype,"readRenderer",null),e([b()],et.prototype,"resourceInfo",void 0),e([b((()=>{const e=a(ee);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],et.prototype,"screenSizePerspectiveEnabled",void 0),e([b({clonable:!1})],et.prototype,"source",null),e([g("source")],et.prototype,"castSource",null),e([w("portal-item","source",["featureSet"]),w("web-map","source",["featureSet"])],et.prototype,"readSource",null),e([b({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],et.prototype,"spatialReference",void 0),e([b({type:Number})],et.prototype,"subtypeCode",void 0),e([b({type:[Ee]})],et.prototype,"templates",void 0),e([w("templates",["editFieldsInfo","creatorField","editorField","templates"])],et.prototype,"readTemplates",null),e([b({type:Ce})],et.prototype,"timeInfo",void 0),e([b()],et.prototype,"title",void 0),e([w("service","title",["name"]),w("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],et.prototype,"readTitle",null),e([w("web-map","title",["layerDefinition.name","title"])],et.prototype,"readTitleFromWebMap",null),e([b({type:String})],et.prototype,"sublayerTitleMode",void 0),e([b({json:{read:!1}})],et.prototype,"type",void 0),e([b({type:String})],et.prototype,"typeIdField",void 0),e([w("service","typeIdField"),w("typeIdField",["layerDefinition.typeIdField"])],et.prototype,"readTypeIdField",null),e([b({type:[Le]})],et.prototype,"types",void 0),e([w("service","types",["types"]),w("types",["layerDefinition.types"])],et.prototype,"readTypes",null),e([b({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],et.prototype,"visible",void 0),e([w("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],et.prototype,"readVisible",null),et=e([v("esri.layers.FeatureLayer")],et);const tt=et;export{tt as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import t from"../PopupTemplate.js";import r from"../request.js";import i from"../core/Clonable.js";import o from"../core/Collection.js";import s from"../core/Error.js";import{clone as a}from"../core/lang.js";import n from"../core/Logger.js";import{MultiOriginJSONMixin as l}from"../core/MultiOriginJSONSupport.js";import{setDeepValue as p}from"../core/object.js";import{debounce as u,throwIfAbortError as d,whenOrAbort as y}from"../core/promiseUtils.js";import{sqlAnd as c}from"../core/sql.js";import{urlToObject as m,join as f}from"../core/urlUtils.js";import{property as h}from"../core/accessorSupport/decorators/property.js";import{cast as b}from"../core/accessorSupport/decorators/cast.js";import{reader as g}from"../core/accessorSupport/decorators/reader.js";import{subclass as w}from"../core/accessorSupport/decorators/subclass.js";import{writer as v}from"../core/accessorSupport/decorators/writer.js";import{excludeTables as j}from"../core/accessorSupport/layerContainerType.js";import S from"../form/FormTemplate.js";import F from"../geometry/SpatialReference.js";import T from"./Layer.js";import{MemorySource as I}from"./graphics/sources/MemorySource.js";import{APIKeyMixin as E}from"./mixins/APIKeyMixin.js";import{ArcGISService as D}from"./mixins/ArcGISService.js";import{BlendLayer as L}from"./mixins/BlendLayer.js";import{CustomParametersMixin as x}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as _}from"./mixins/DisplayFilteredLayer.js";import{EditBusLayer as P}from"./mixins/EditBusLayer.js";import{FeatureEffectLayer as M}from"./mixins/FeatureEffectLayer.js";import{FeatureLayerBase as q}from"./mixins/FeatureLayerBase.js";import{FeatureReductionLayer as C}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as O}from"./mixins/OperationalLayer.js";import{OrderedLayer as A}from"./mixins/OrderedLayer.js";import{PortalLayer as V}from"./mixins/PortalLayer.js";import{PublishableLayer as Q}from"./mixins/PublishableLayer.js";import{RefreshableLayer as R}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as U}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as B}from"./mixins/TemporalLayer.js";import{TrackableLayer as N}from"./mixins/TrackableLayer.js";import{titleFromUrlAndName as $,parse as G,cleanTitle as J}from"./support/arcgisLayerUrl.js";import{attributeTableTemplate as W,id as Z,labelsVisible as k,opacityDrawingInfo as z,legendEnabled as H,listMode as K,popupEnabled as X,screenSizePerspectiveEnabled as Y}from"./support/commonProperties.js";import{ensureLayerCredential as ee,computeEffectiveEditingEnabled as te,readGlobalIdField as re,readObjectIdField as ie,createDefaultRenderer as oe,addAttachment as se,updateAttachment as ae,applyEdits as ne,uploadAssets as le,createQuery as pe,deleteAttachments as ue,fetchRecomputedExtents as de,getFeatureType as ye,computeDomainFromSubtypes as ce,getFeatureSubtype as me,computeDomainFromTypes as fe,queryAttachments as he,queryObjectIds as be,queryFeatureCount as ge,queryExtent as we,queryRelatedFeatures as ve,queryRelatedFeaturesCount as je,validateBinsQuery as Se,hasDataChanged as Fe,geometryTypeKebabDict as Te}from"./support/featureLayerUtils.js";import Ie from"./support/FeatureTemplate.js";import Ee from"./support/FeatureType.js";import{defineFieldProperties as De}from"./support/fieldProperties.js";import{fixRendererFields as Le,fixTimeInfoFields as xe}from"./support/fieldUtils.js";import _e from"./support/LabelClass.js";import{reader as Pe}from"./support/labelingInfo.js";import{getFeatureLayerCapabilities as Me}from"./support/serviceCapabilitiesUtils.js";import qe from"./support/TimeInfo.js";import{serviceSupportsSpatialReference as Ce}from"./support/versionUtils.js";import{DataLayerSource as Oe}from"./support/source/DataLayerSource.js";import{read as Ae}from"../renderers/support/jsonUtils.js";import{loadStyleRenderer as Ve}from"../renderers/support/styleUtils.js";import{rendererTypes as Qe,webSceneRendererTypes as Re}from"../renderers/support/typeUtils.js";import Ue from"../rest/support/FeatureSet.js";import Be from"../rest/support/Query.js";import{isNumber as Ne}from"../support/guards.js";import{createPopupTemplate as $e}from"../support/popupUtils.js";import{symbolTypes as Ge}from"../symbols/support/typeUtils.js";import{SaveOperationType as Je}from"../webdoc/interfaces.js";import{opacityToTransparency as We}from"../webdoc/support/opacityUtils.js";const Ze="FeatureLayer";function ke(e,t){return new s("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function ze(e){return e&&e instanceof o}const He=De();function Ke(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let Xe=class extends(q(C(M(Q(P(_(L(A(B(N(U(R(D(O(V(l(x(E(i.ClonableMixin(T)))))))))))))))))))){constructor(...e){super(...e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=F.WGS84,this.subtypeCode=null,this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=u((async(e,t,r)=>{const{save:i,saveAs:o}=await import("./save/featureLayerUtils.js");switch(e){case Je.SAVE:return i(this,t);case Je.SAVE_AS:return o(this,r,t)}}))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this.initLayerProperties(e)))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},e).catch(d).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new s("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))})).then((()=>ee(this,"load",e)));return this.addResolvingPromise(r),Promise.resolve(this)}readCapabilities(e,t){return t=t.layerDefinition||t,Me(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}get effectiveEditingEnabled(){return te(this)}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&p(r,e?"Table":"Feature Layer",t)}readGlobalIdField(e,t){return re(t.layerDefinition||t)}readObjectIdField(e,t){return ie(t.layerDefinition||t)}get parsedUrl(){const e=m(this.url);return null!=e&&(null!=this.dynamicDataSource?e.path=f(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=f(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){Le(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=Ae(i,t,r)??void 0;return e||n.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return oe(t,r)}set source(e){const t=this._get("source");t!==e&&(ze(t)&&this._resetMemorySource(t),ze(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof o?new I({layer:this,items:e}):e:null}readSource(e,t){const r=Ue.fromJSON(t.featureSet);return new I({layer:this,items:r?.features??[]})}readTemplates(e,t){const r=t.editFieldsInfo,i=r?.creatorField,o=r?.editorField;return e=e?.map((e=>Ie.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,o),e}readTitle(e,t){const r=t.layerDefinition?.name??t.name,i=t.title||t.layerDefinition?.title;if(r){const e=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?$(this.url,r):r;let t=r;if(!t&&this.url){const e=G(this.url);null!=e&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),J(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r?.creatorField,o=r?.editorField;return e?.map((e=>(e=Ee.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,o),e)))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const r=await se(this,e,t,Ze);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,r){const i=await ae(this,e,t,r,Ze);return this.lastEditsEventDate=new Date,i}async applyEdits(e,t){return ne(this,e,t)}async uploadAssets(e,t){return le(this,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return $e(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await y(import("./graphics/sources/FeatureLayerSource.js"),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=pe(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,r=c(this.definitionExpression,t);return e.where=r||"1=1",e}async deleteAttachments(e,t){const r=await ue(this,e,t,Ze);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return de(this,e,Ze)}getFeatureType(e){return ye(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=!!this.subtypes?.length;if(i&&!t?.excludeImpliedDomains){const t=ce(this,e);if(t)return t}const o=i&&me(this,r);if(o){const t=o?.domains?.[e];return"inherited"===t?.type?this._getLayerDomain(e):t}const s=this.getFeatureType(r),a=this._getLayerDomain(e);if(s){const t=s.domains&&s.domains[e];if(t&&"inherited"!==t?.type)return t}if(a)return a;if(!t?.excludeImpliedDomains){const t=fe(this,e);if(t)return t}return null}async queryAttachments(e,t){return he(this,e,t,Ze)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Be.from(e)??r.createQuery(),t);if(i?.features)for(const o of i.features)o.layer=o.sourceLayer=r;return i}async queryObjectIds(e,t){return(await be(this,e,t,Ze)).filter(Ne)}async queryFeatureCount(e,t){return ge(this,e,t,Ze)}async queryExtent(e,t){return we(this,e,t,Ze)}async queryRelatedFeatures(e,t){return ve(this,e,t,Ze)}async queryRelatedFeaturesCount(e,t){return je(this,e,t,Ze)}async queryTopFeatures(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopFeatures||!i?.query?.supportsTopFeaturesQuery)throw new s(Ze,"Layer source does not support queryTopFeatures capability");const o=await import("../rest/support/TopFeaturesQuery.js"),a=await r.queryTopFeatures(o.default.from(e),t);if(a?.features)for(const s of a.features)s.layer=s.sourceLayer=this;return a}async queryAttributeBins(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryAttributeBins||!i?.operations?.supportsQueryBins)throw new s(Ze,"Layer source does not support queryAttributeBins capability");Se(e,i,Ze);const o=await import("../rest/support/AttributeBinsQuery.js"),a=await r.queryAttributeBins(o.default.from(e),t);if(a.features)for(const s of a.features)s.layer=s.sourceLayer=this;return a}async queryTopObjectIds(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopObjectIds||!i?.query.supportsTopFeaturesQuery)throw new s(Ze,"Layer source does not support queryTopObjectIds capability");const o=await import("../rest/support/TopFeaturesQuery.js");return(await r.queryTopObjectIds(o.default.from(e),t)).filter(Ne)}async queryTopFeaturesExtent(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopExtents||!i?.query?.supportsTopFeaturesQuery)throw new s(Ze,"Layer source does not support queryTopExtents capability");const o=await import("../rest/support/TopFeaturesQuery.js");return r.queryTopExtents(o.default.from(e),t)}async queryTopFeatureCount(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopCount||!i?.query?.supportsTopFeaturesQuery)throw new s(Ze,"Layer source does not support queryFeatureCount capability");const o=await import("../rest/support/TopFeaturesQuery.js");return r.queryTopCount(o.default.from(e),t)}read(e,t){const r=e.featureCollection;if((r||"Feature Collection"===e.type)&&(this.resourceInfo=e),r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&"service"===t.origin&&(this.revert(["objectIdField","fields","timeInfo","dateFieldsTimeZone"],"service"),this.spatialReference||this.revert(["spatialReference"],"service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:o}=t;if(this.dynamicDataSource)return o?.push(ke(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(("web-map"===r||"web-scene"===r)&&"tables"!==i)return o?.push(ke(this,`a table source can only be written to tables, not ${i}`)),null;if(this._hasMemorySource())return o?.push(ke(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&("web-map"===r||"web-scene"===r)&&"tables"===i)return o?.push(ke(this,"using a non-table source cannot be written to tables in web maps or web scenes")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new s(Ze,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||Ce(this,e))}async save(e){return this._debouncedSaveOperations(Je.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(Je.SAVE_AS,t,e)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&"web-map"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";p("layerDefinition.capabilities",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstValidLayerId(e){return r(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return this.findFirstValidLayerId(t)}))}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),Le(this.renderer,this.fieldsIndex),xe(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),Ve(this,{origin:"service"})}async hasDataChanged(){return Fe(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype?.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new s("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new s("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this.addHandles([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return Array.isArray(e.layers)&&e.layers.length>0?e.layers[0].id:Array.isArray(e.tables)&&e.tables.length>0?e.tables[0].id:void 0}};e([h(W)],Xe.prototype,"attributeTableTemplate",void 0),e([g("service","capabilities")],Xe.prototype,"readCapabilities",null),e([h({json:{origins:{"web-scene":{write:!1}},write:!0}})],Xe.prototype,"charts",void 0),e([h({readOnly:!0})],Xe.prototype,"createQueryVersion",null),e([h({json:{read:{source:"layerDefinition.copyrightText"}}})],Xe.prototype,"copyright",void 0),e([h({json:{read:{source:"layerDefinition.displayField"}}})],Xe.prototype,"displayField",void 0),e([h({types:Ge,readOnly:!0})],Xe.prototype,"defaultSymbol",void 0),e([h({type:Oe})],Xe.prototype,"dynamicDataSource",void 0),e([h({type:Boolean})],Xe.prototype,"editingEnabled",null),e([g(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Xe.prototype,"readEditingEnabled",null),e([g("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Xe.prototype,"readEditingEnabledFromWebMap",null),e([v(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Xe.prototype,"writeEditingEnabled",null),e([v("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Xe.prototype,"writeEditingEnabledToWebMap",null),e([h({readOnly:!0})],Xe.prototype,"effectiveEditingEnabled",null),e([h({...He.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ke}}}}})],Xe.prototype,"fields",void 0),e([h(He.fieldsIndex)],Xe.prototype,"fieldsIndex",void 0),e([h({type:S,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Xe.prototype,"formTemplate",void 0),e([h({json:{read:{source:"layerDefinition.extent"}}})],Xe.prototype,"fullExtent",void 0),e([h({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ke,writer(e,t,r){const i=e?Te.toJSON(e):null;i&&p(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:Te.read}}})],Xe.prototype,"geometryType",void 0),e([h({json:{read:{source:"layerDefinition.hasM"}}})],Xe.prototype,"hasM",void 0),e([h({json:{read:{source:"layerDefinition.hasZ"}}})],Xe.prototype,"hasZ",void 0),e([h(Z)],Xe.prototype,"id",void 0),e([h({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Xe.prototype,"infoFor3D",void 0),e([h({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Xe.prototype,"isTable",void 0),e([g("service","isTable",["type","geometryType"]),g("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Xe.prototype,"readIsTable",null),e([v("web-map","isTable")],Xe.prototype,"writeIsTable",null),e([h(k)],Xe.prototype,"labelsVisible",void 0),e([h({type:[_e],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:Pe,write:!1},"web-scene":{name:"layerDefinition.drawingInfo.labelingInfo",read:Pe,write:{enabled:!0,layerContainerTypes:j}}},name:"layerDefinition.drawingInfo.labelingInfo",read:Pe,write:!0}})],Xe.prototype,"labelingInfo",void 0),e([h((()=>{const e=a(z);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,r){p(r,We(e),t)}}},e})())],Xe.prototype,"opacity",void 0),e([h(H)],Xe.prototype,"legendEnabled",void 0),e([h({type:["show","hide"],json:(()=>{const e=a(K.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],Xe.prototype,"listMode",void 0),e([g("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],Xe.prototype,"readGlobalIdField",null),e([h({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ke}}}}})],Xe.prototype,"objectIdField",void 0),e([g("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],Xe.prototype,"readObjectIdField",null),e([h({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],Xe.prototype,"operationalLayerType",void 0),e([h(He.outFields)],Xe.prototype,"outFields",void 0),e([h({readOnly:!0})],Xe.prototype,"parsedUrl",null),e([h({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Xe.prototype,"path",void 0),e([h(X)],Xe.prototype,"popupEnabled",void 0),e([h({type:t,json:{name:"popupInfo",write:!0}})],Xe.prototype,"popupTemplate",void 0),e([h({readOnly:!0})],Xe.prototype,"defaultPopupTemplate",null),e([h({types:Qe,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:Re,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:j,overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}})],Xe.prototype,"renderer",null),e([g("service","renderer",["drawingInfo.renderer","defaultSymbol"]),g("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Xe.prototype,"readRenderer",null),e([h()],Xe.prototype,"resourceInfo",void 0),e([h((()=>{const e=a(Y);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Xe.prototype,"screenSizePerspectiveEnabled",void 0),e([h({clonable:!1})],Xe.prototype,"source",null),e([b("source")],Xe.prototype,"castSource",null),e([g("portal-item","source",["featureSet"]),g("web-map","source",["featureSet"])],Xe.prototype,"readSource",null),e([h({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],Xe.prototype,"spatialReference",void 0),e([h({type:Number})],Xe.prototype,"subtypeCode",void 0),e([h({type:[Ie]})],Xe.prototype,"templates",void 0),e([g("templates",["editFieldsInfo","creatorField","editorField","templates"])],Xe.prototype,"readTemplates",null),e([h({type:qe})],Xe.prototype,"timeInfo",void 0),e([h()],Xe.prototype,"title",void 0),e([g("service","title",["name"]),g("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Xe.prototype,"readTitle",null),e([g("web-map","title",["layerDefinition.name","title"])],Xe.prototype,"readTitleFromWebMap",null),e([h({type:String})],Xe.prototype,"sublayerTitleMode",void 0),e([h({json:{read:!1}})],Xe.prototype,"type",void 0),e([h({type:String})],Xe.prototype,"typeIdField",void 0),e([g("service","typeIdField"),g("typeIdField",["layerDefinition.typeIdField"])],Xe.prototype,"readTypeIdField",null),e([h({type:[Ee]})],Xe.prototype,"types",void 0),e([g("service","types",["types"]),g("types",["layerDefinition.types"])],Xe.prototype,"readTypes",null),e([h({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],Xe.prototype,"visible",void 0),e([g("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Xe.prototype,"readVisible",null),Xe=e([w("esri.layers.FeatureLayer")],Xe);const Ye=Xe;export{Ye 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.32/esri/copyright.txt for details.
4
4
  */
5
- import{estimateNumberArrayMemory as t}from"../../core/memoryEstimations.js";import{quantizeX as s,quantizeY as e}from"../../geometry/support/quantizationUtils.js";const o=2;class r{constructor(t=[],s=[]){this.lengths=t??[],this.coords=s??[]}static fromJSON(t){return new r(t.lengths,t.coords)}static fromRect(t){const[s,e,o,n]=t,h=o-s,c=n-e;return new r([5],[s,e,h,0,0,c,-h,0,0,-c])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((t,s)=>t+s))}get usedMemory(){return 64+t(this.lengths,this.coords)}forEachVertex(t){let s=0;this.lengths.length||t(this.coords[0],this.coords[1]);for(let e=0;e<this.lengths.length;e++){const r=this.lengths[e];for(let e=0;e<r;e++){t(this.coords[o*(e+s)],this.coords[o*(e+s)+1])}s+=r}}quantize(t){const r=this.clone();let n=0;if(!this.lengths.length){const[o,n]=r.coords;r.coords[0]=s(t,o),r.coords[1]=e(t,n)}for(let h=0;h<r.lengths.length;h++){const c=r.lengths[h];for(let h=0;h<c;h++){const c=r.coords[o*(h+n)],i=r.coords[o*(h+n)+1];r.coords[o*(h+n)]=s(t,c),r.coords[o*(h+n)+1]=e(t,i)}n+=c}return r}deltaDecode(){const t=this.clone(),{coords:s,lengths:e}=t;let o=0;for(const r of e){for(let t=1;t<r;t++)s[2*(o+t)]+=s[2*(o+t)-2],s[2*(o+t)+1]+=s[2*(o+t)-1];o+=r}return t}clone(t){if(0===this.lengths.length)return new r([],[this.coords[0],this.coords[1]]);const s=(0===this.lengths.length?1:this.lengths.reduce(((t,s)=>t+s)))*o,e=this.coords.slice(0,s);return t?(t.set(e),new r(this.lengths,t)):new r(Array.from(this.lengths),Array.from(e))}}export{r as default};
5
+ import{estimateNumberArrayMemory as t}from"../../core/memoryEstimations.js";import{quantizeX as s,quantizeY as e}from"../../geometry/support/quantizationUtils.js";const o=2;class r{constructor(t=[],s=[]){this.lengths=t??[],this.coords=s??[]}static fromJSON(t){return new r(t.lengths,t.coords)}static fromRect(t){const[s,e,o,n]=t,h=o-s,i=n-e;return new r([5],[s,e,h,0,0,i,-h,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((t,s)=>t+s))}get usedMemory(){return 64+t(this.lengths,this.coords)}area(){let t=0,s=0;if(!this.lengths.length)return 0;for(let e=0;e<this.lengths.length;e++){const r=this.lengths[e];if(r<3)continue;let n=this.coords[o*s],h=this.coords[o*s+1];for(let e=1;e<r;e+=1){const r=this.coords[o*(e+s)],i=this.coords[o*(e+s)+1];t+=-.5*(r-n)*(i+h),n=r,h=i}s+=r}return t}forEachVertex(t){let s=0;this.lengths.length||t(this.coords[0],this.coords[1]);for(let e=0;e<this.lengths.length;e++){const r=this.lengths[e];for(let e=0;e<r;e++){t(this.coords[o*(e+s)],this.coords[o*(e+s)+1])}s+=r}}quantize(t){const r=this.clone();let n=0;if(!this.lengths.length){const[o,n]=r.coords;r.coords[0]=s(t,o),r.coords[1]=e(t,n)}for(let h=0;h<r.lengths.length;h++){const i=r.lengths[h];for(let h=0;h<i;h++){const i=r.coords[o*(h+n)],c=r.coords[o*(h+n)+1];r.coords[o*(h+n)]=s(t,i),r.coords[o*(h+n)+1]=e(t,c)}n+=i}return r}deltaDecode(){const t=this.clone(),{coords:s,lengths:e}=t;let o=0;for(const r of e){for(let t=1;t<r;t++)s[2*(o+t)]+=s[2*(o+t)-2],s[2*(o+t)+1]+=s[2*(o+t)-1];o+=r}return t}clone(t){if(0===this.lengths.length)return new r([],[this.coords[0],this.coords[1]]);const s=(0===this.lengths.length?1:this.lengths.reduce(((t,s)=>t+s)))*o,e=this.coords.slice(0,s);return t?(t.set(e),new r(this.lengths,t)):new r(Array.from(this.lengths),Array.from(e))}}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.32/esri/copyright.txt for details.
4
4
  */
5
- import"../../core/has.js";import{baseObjectMemory as e,estimateNumberArrayMemory as t,estimateAttributesMemory as s}from"../../core/memoryEstimations.js";import{generateUID as n}from"../../core/uid.js";import r from"../../geometry/SpatialReference.js";import{empty as i,expandWithNestedArray as o}from"../../geometry/support/aaBoundingBox.js";import{empty as a,expandWithNestedArray as l}from"../../geometry/support/aaBoundingRect.js";import{unquantizePolyline as u,unquantizePolygon as c,unquantizeMultipoint as p,unquantizePoint as m}from"../../geometry/support/quantizationUtils.js";import{featureGeometryTypeKebabDictionary as h}from"../../geometry/support/typeUtils.js";import f from"../support/Field.js";import{getApproximateMaxDensificationSegments as g}from"../../views/2d/layers/graphics/densificationConstants.js";export{equals}from"./dehydratedFeatureComparison.js";class y{constructor(e,t,s){this.uid=e,this.geometry=t,this.attributes=s,this.visible=!0,this.objectId=null,this.centroid=null}}function d(e){return null!=e.geometry}class b{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}function x(e,t){const s=h.fromJSON(e.geometryType),n=r.fromJSON(e.spatialReference),i=e.transform,o=e.objectIdFieldName,a=t?.maxStringAttributeLength,l=t?.maxStringAttributeFields;let g;const y=e.features.map((t=>{const r=j(t,s,n,e.objectIdFieldName),h=r.geometry;if(R(r.attributes,l,a,(e=>{g??=[];const t=z(r,o);null!=t&&g.push({objectId:t,attribute:e})})),null!=h&&i)switch(h.type){case"point":r.geometry=m(i,h,h);break;case"multipoint":r.geometry=p(i,h,h);break;case"polygon":r.geometry=c(i,h,h);break;case"polyline":r.geometry=u(i,h,h);break;case"extent":case"mesh":r.geometry=h}return r}));return{geometryType:s,features:y,spatialReference:n,fields:e.fields?.map((e=>f.fromJSON(e)))??[],objectIdFieldName:e.objectIdFieldName,globalIdFieldName:e.globalIdFieldName,geohashFieldName:e.geohashFieldName,geometryProperties:e.geometryProperties,hasZ:e.hasZ,hasM:e.hasM,exceededTransferLimit:e.exceededTransferLimit,transform:null,missingAttributes:g}}function j(e,t,s,r){return{uid:n(),objectId:r&&e.attributes?e.attributes[r]:null,attributes:e.attributes,geometry:Z(e.geometry,t,s),visible:!0}}function Z(e,t,s){if(null==e)return null;switch(t){case"point":{const t=e;return{x:t.x,y:t.y,z:t.z,m:t.m,hasZ:null!=t.z,hasM:null!=t.m,type:"point",spatialReference:s}}case"polyline":{const t=e;return{paths:t.paths,hasZ:!!t.hasZ,hasM:!!t.hasM,type:"polyline",spatialReference:s}}case"polygon":{const t=e;return{rings:t.rings,hasZ:!!t.hasZ,hasM:!!t.hasM,type:"polygon",spatialReference:s}}case"multipoint":{const t=e;return{points:t.points,hasZ:!!t.hasZ,hasM:!!t.hasM,type:"multipoint",spatialReference:s}}}}function N(s){if(null==s)return 0;switch(s.type){case"point":return e+10+8+24;case"polyline":case"polygon":{let t=0;const n=2+(s.hasZ?1:0)+(s.hasM?1:0),r="polyline"===s.type?s.paths:s.rings,i="polyline"===s.type?s.curvePaths:s.curveRings;if(i?.length)t+=3*g();else for(const e of r)t+=e.length;return e+8*t*n+64+128*t+34+32*(r.length+1)}case"multipoint":{const t=2+(s.hasZ?1:0)+(s.hasM?1:0),n=s.points.length;return e+8*n*t+64+128*n+34+32}case"extent":return e+10+64+34;case"mesh":{const n=s.vertexAttributes;return e+t(n.position,n.normal,n.uv,n.tangent)}default:return e}}function F(e){let t=32;return t+=s(e.attributes),t+=3,t+=8+N(e.geometry),t}function I(e){if(null==e)return 0;switch(e.type){case"point":return 1;case"polyline":{let t=0;for(const s of e.paths)t+=s.length;return t}case"polygon":{let t=0;for(const s of e.rings)t+=s.length;return t}case"multipoint":return e.points.length;case"extent":return 2;case"mesh":{const t=e.vertexAttributes&&e.vertexAttributes.position;return t?t.length/3:0}default:return}}function k(e){if(null==e)return!1;switch(e.type){case"extent":case"point":return!0;case"polyline":for(const t of e.paths)if(t.length>0)return!0;return!1;case"polygon":for(const t of e.rings)if(t.length>0)return!0;return!1;case"multipoint":return e.points.length>0;case"mesh":return!e.loaded||e.vertexAttributes.position.length>0}}function M(e,t){switch(i(t),"mesh"===e.type&&(e=e.extent),e.type){case"point":t[0]=t[3]=e.x,t[1]=t[4]=e.y,e.hasZ&&(t[2]=t[5]=e.z);break;case"polyline":for(let s=0;s<e.paths.length;s++)o(t,e.paths[s],!!e.hasZ);break;case"polygon":for(let s=0;s<e.rings.length;s++)o(t,e.rings[s],!!e.hasZ);break;case"multipoint":o(t,e.points,!!e.hasZ);break;case"extent":t[0]=e.xmin,t[1]=e.ymin,t[3]=e.xmax,t[4]=e.ymax,null!=e.zmin&&(t[2]=e.zmin),null!=e.zmax&&(t[5]=e.zmax)}}function v(e,t){switch(a(t),"mesh"===e.type&&(e=e.extent),e.type){case"point":t[0]=t[2]=e.x,t[1]=t[3]=e.y;break;case"polyline":for(let s=0;s<e.paths.length;s++)l(t,e.paths[s]);break;case"polygon":for(let s=0;s<e.rings.length;s++)l(t,e.rings[s]);break;case"multipoint":l(t,e.points);break;case"extent":t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax}}function z(e,t){return null!=e.objectId?e.objectId:e.attributes&&t?e.attributes[t]:null}function R(e,t,s,n){if(t?.size&&null!=s&&e)for(const r in e){if(!t.has(r))continue;const i=e[r];"string"==typeof i&&i.length>s&&(n(r),e[r]="")}}export{y as DehydratedFeatureClass,b as DehydratedFeatureSetClass,M as computeAABB,v as computeAABR,N as estimateGeometryMemory,F as estimateSize,x as fromFeatureSetJSON,Z as fromJSONGeometry,z as getObjectId,d as hasGeometry,k as hasVertices,I as numVertices,R as removeLargeStringAttributes};
5
+ import"../../core/has.js";import{baseObjectMemory as e,estimateNumberArrayMemory as t,estimateNestedObjectMemory as s,estimateAttributesMemory as n}from"../../core/memoryEstimations.js";import{generateUID as r}from"../../core/uid.js";import i from"../../geometry/SpatialReference.js";import{empty as o,expandWithNestedArray as a}from"../../geometry/support/aaBoundingBox.js";import{empty as l,expandWithNestedArray as u}from"../../geometry/support/aaBoundingRect.js";import{unquantizePolyline as c,unquantizePolygon as p,unquantizeMultipoint as m,unquantizePoint as h}from"../../geometry/support/quantizationUtils.js";import{featureGeometryTypeKebabDictionary as f}from"../../geometry/support/typeUtils.js";import y from"../support/Field.js";import{getApproximateMaxDensificationSegments as g}from"../../views/2d/layers/graphics/densificationConstants.js";export{equals}from"./dehydratedFeatureComparison.js";class d{constructor(e,t,s){this.uid=e,this.geometry=t,this.attributes=s,this.visible=!0,this.objectId=null,this.centroid=null}}function b(e){return null!=e.geometry}class x{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}function j(e,t){const s=f.fromJSON(e.geometryType),n=i.fromJSON(e.spatialReference),r=e.transform,o=e.objectIdFieldName,a=t?.maxStringAttributeLength,l=t?.maxStringAttributeFields;let u;const g=e.features.map((t=>{const i=N(t,s,n,e.objectIdFieldName),f=i.geometry;if(w(i.attributes,l,a,(e=>{u??=[];const t=R(i,o);null!=t&&u.push({objectId:t,attribute:e})})),null!=f&&r)switch(f.type){case"point":i.geometry=h(r,f,f);break;case"multipoint":i.geometry=m(r,f,f);break;case"polygon":i.geometry=p(r,f,f);break;case"polyline":i.geometry=c(r,f,f);break;case"extent":case"mesh":i.geometry=f}return i}));return{geometryType:s,features:g,spatialReference:n,fields:e.fields?.map((e=>y.fromJSON(e)))??[],objectIdFieldName:e.objectIdFieldName,globalIdFieldName:e.globalIdFieldName,geohashFieldName:e.geohashFieldName,geometryProperties:e.geometryProperties,hasZ:e.hasZ,hasM:e.hasM,exceededTransferLimit:e.exceededTransferLimit,transform:null,missingAttributes:u}}function N(e,t,s,n){return{uid:r(),objectId:n&&e.attributes?e.attributes[n]:null,attributes:e.attributes,geometry:Z(e.geometry,t,s),visible:!0}}function Z(e,t,s){if(null==e)return null;switch(t){case"point":{const t=e;return{x:t.x,y:t.y,z:t.z,m:t.m,hasZ:null!=t.z,hasM:null!=t.m,type:"point",spatialReference:s}}case"polyline":{const t=e;return{paths:t.paths,hasZ:!!t.hasZ,hasM:!!t.hasM,type:"polyline",spatialReference:s}}case"polygon":{const t=e;return{rings:t.rings,hasZ:!!t.hasZ,hasM:!!t.hasM,type:"polygon",spatialReference:s}}case"multipoint":{const t=e;return{points:t.points,hasZ:!!t.hasZ,hasM:!!t.hasM,type:"multipoint",spatialReference:s}}}}function F(n){if(null==n)return 0;switch(n.type){case"point":return e+10+8+24;case"polyline":case"polygon":{let t=0;const r=2+(n.hasZ?1:0)+(n.hasM?1:0),i="polyline"===n.type?n.paths:n.rings,o="polyline"===n.type?n.curvePaths:n.curveRings;if(o?.length){const e=3*g()*128;t=8*e*r+128*e+32*(i.length+1)}else t=s(i);return e+64+t+34}case"multipoint":{const t=s(n.points);return e+t+64+34+32}case"extent":return e+10+64+34;case"mesh":{const s=n.vertexAttributes;return e+t(s.position,s.normal,s.uv,s.tangent)}default:return e}}function I(e){let t=32;return t+=n(e.attributes),t+=3,t+=8+F(e.geometry),t}function k(e){if(null==e)return 0;switch(e.type){case"point":return 1;case"polyline":{let t=0;for(const s of e.paths)t+=s.length;return t}case"polygon":{let t=0;for(const s of e.rings)t+=s.length;return t}case"multipoint":return e.points.length;case"extent":return 2;case"mesh":{const t=e.vertexAttributes&&e.vertexAttributes.position;return t?t.length/3:0}default:return}}function M(e){if(null==e)return!1;switch(e.type){case"extent":case"point":return!0;case"polyline":for(const t of e.paths)if(t.length>0)return!0;return!1;case"polygon":for(const t of e.rings)if(t.length>0)return!0;return!1;case"multipoint":return e.points.length>0;case"mesh":return!e.loaded||e.vertexAttributes.position.length>0}}function v(e,t){switch(o(t),"mesh"===e.type&&(e=e.extent),e.type){case"point":t[0]=t[3]=e.x,t[1]=t[4]=e.y,e.hasZ&&(t[2]=t[5]=e.z);break;case"polyline":for(let s=0;s<e.paths.length;s++)a(t,e.paths[s],!!e.hasZ);break;case"polygon":for(let s=0;s<e.rings.length;s++)a(t,e.rings[s],!!e.hasZ);break;case"multipoint":a(t,e.points,!!e.hasZ);break;case"extent":t[0]=e.xmin,t[1]=e.ymin,t[3]=e.xmax,t[4]=e.ymax,null!=e.zmin&&(t[2]=e.zmin),null!=e.zmax&&(t[5]=e.zmax)}}function z(e,t){switch(l(t),"mesh"===e.type&&(e=e.extent),e.type){case"point":t[0]=t[2]=e.x,t[1]=t[3]=e.y;break;case"polyline":for(let s=0;s<e.paths.length;s++)u(t,e.paths[s]);break;case"polygon":for(let s=0;s<e.rings.length;s++)u(t,e.rings[s]);break;case"multipoint":u(t,e.points);break;case"extent":t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax}}function R(e,t){return null!=e.objectId?e.objectId:e.attributes&&t?e.attributes[t]:null}function w(e,t,s,n){if(t?.size&&null!=s&&e)for(const r in e){if(!t.has(r))continue;const i=e[r];"string"==typeof i&&i.length>s&&(n(r),e[r]="")}}export{d as DehydratedFeatureClass,x as DehydratedFeatureSetClass,v as computeAABB,z as computeAABR,F as estimateGeometryMemory,I as estimateSize,j as fromFeatureSetJSON,Z as fromJSONGeometry,R as getObjectId,b as hasGeometry,M as hasVertices,k as numVertices,w as removeLargeStringAttributes};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Error.js";import r from"../../../core/Loadable.js";import o from"../../../core/Logger.js";import{throwIfAborted as i}from"../../../core/promiseUtils.js";import{getFilename as s}from"../../../core/urlUtils.js";import{property as a}from"../../../core/accessorSupport/decorators/property.js";import{subclass as n}from"../../../core/accessorSupport/decorators/subclass.js";import l from"../../../geometry/SpatialReference.js";import{createDrawingInfo as p}from"./support/clientSideDefaults.js";import{inferGeometrySource as m}from"../../support/parquetLayerUtils.js";import{ParquetMetadata as c}from"../../../libs/parquet/parquet.js";import{toJSONGeometryType as u}from"../../../views/2d/layers/support/util.js";const d=["parquet"];let y=class extends r{constructor(e){super(e),this.type="parquet"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._initialize(t)),Promise.resolve(this)}async _initialize(e){const r=this.loadOptions.url;if(null==r)throw new t("missing-metadata","Unable to create parquet source: no url specified",this.loadOptions);const o=this.loadOptions.metadata??await c.create(r,(()=>this.customParameters));i(e);const a=this._createGeometrySource(o,this.loadOptions);if(null==a)throw new t("missing-metadata","Unable to create parquet source: cannot infer geometrySource",this.loadOptions);const n=[...o.fields];this.loadOptions.objectIdField||n.push({name:"__OBJECTID",type:"esriFieldTypeOID",alias:"__OBJECTID"}),this.geometryInfo=a,this.sourceJSON={name:s(r,d)||"parquet",drawingInfo:p(u(a.geometryType)),geometryType:u(a.geometryType),spatialReference:a.spatialReference,objectIdField:this.loadOptions.objectIdField??"__OBJECTID",fields:n}}_createGeometrySource(e,t){const r=t.geometrySourceInfo??m(e);if(!r)return null;switch(r.type){case"location":return this._createLocationInfo(r);case"geometry":return this._createGeometryInfo(r)}}_createLocationInfo(e){if(null==e.latitudeFieldName)throw new t("missing-metadata","Missing latitudeFieldName",e);if(null==e.longitudeFieldName)throw new t("missing-metadata","Missing longitudeFieldName",e);return{type:"location",latitudeFieldName:e.latitudeFieldName,longitudeFieldName:e.longitudeFieldName,geometryType:"point",spatialReference:e.spatialReference??l.WGS84}}_createGeometryInfo(e){if(null==e.geometryType)throw new t("missing-metadata","Missing geometryType",e);let r=e.spatialReference;if(null==r)throw new t("missing-metadata","Missing spatialReference",e);if(r.wkid!==l.WGS84.wkid){const i=l.fromJSON(r);if(!i.isGeographic&&!i.isWebMercator)throw new t("unsupported-spatial-reference","Only WGS84 and WebMercator are currently supported",e);o.getLogger("parquet-support").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",e),r=l.WGS84}if(null==e.primaryFieldName)throw new t("missing-metadata","Missing primaryFieldName",e);if("WKB"!==e.format)throw new t("unsupported","Geometry encoding must be 'WKB'",e);return{type:"geometry",format:"WKB",spatialReference:r,primaryFieldName:e.primaryFieldName,geometryType:e.geometryType,multiscale:e.multiscale}}};e([a()],y.prototype,"type",void 0),e([a()],y.prototype,"loadOptions",void 0),e([a()],y.prototype,"sourceJSON",void 0),e([a()],y.prototype,"geometryInfo",void 0),e([a()],y.prototype,"customParameters",void 0),y=e([n("esri.layers.graphics.sources.ParquetSource")],y);export{y as ParquetSource};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Error.js";import r from"../../../core/Loadable.js";import o from"../../../core/Logger.js";import{throwIfAborted as i}from"../../../core/promiseUtils.js";import{getFilename as a}from"../../../core/urlUtils.js";import{property as s}from"../../../core/accessorSupport/decorators/property.js";import{subclass as n}from"../../../core/accessorSupport/decorators/subclass.js";import l from"../../../geometry/SpatialReference.js";import{createDrawingInfo as p}from"./support/clientSideDefaults.js";import{inferGeometrySource as m}from"../../support/parquetLayerUtils.js";import{ParquetMetadata as c}from"../../../libs/parquet/parquet.js";import{toJSONGeometryType as u}from"../../../views/2d/layers/support/util.js";const d=["parquet"];let f=class extends r{constructor(e){super(e),this.type="parquet"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._initialize(t)),Promise.resolve(this)}async _initialize(e){const r=this.loadOptions.url;if(null==r)throw new t("missing-metadata","Unable to create parquet source: no url specified",this.loadOptions);const o=this.loadOptions.metadata??await c.create(r,(()=>this.customParameters));i(e);const s=this._createGeometrySource(o,this.loadOptions);if(null==s)throw new t("missing-metadata","Unable to create parquet source: cannot infer geometrySource",this.loadOptions);const n=[...o.fields];this.loadOptions.objectIdField||n.push({name:"__OBJECTID",type:"esriFieldTypeOID",alias:"__OBJECTID"}),this.geometryInfo=s,this.sourceJSON={name:a(r,d)||"parquet",drawingInfo:p(u(s.geometryType)),geometryType:u(s.geometryType),spatialReference:s.spatialReference,objectIdField:this.loadOptions.objectIdField??"__OBJECTID",fields:n}}_createGeometrySource(e,t){const r=t.geometrySourceInfo??m(e);if(!r)return null;switch(r.type){case"location":return this._createLocationInfo(r);case"geometry":return this._createGeometryInfo(r)}}_createLocationInfo(e){if(null==e.latitudeFieldName)throw new t("missing-metadata","Missing latitudeFieldName",e);if(null==e.longitudeFieldName)throw new t("missing-metadata","Missing longitudeFieldName",e);return{type:"location",latitudeFieldName:e.latitudeFieldName,longitudeFieldName:e.longitudeFieldName,geometryType:"point",spatialReference:e.spatialReference??l.WGS84}}_createGeometryInfo(e){if(null==e.geometryType)throw new t("missing-metadata","Missing geometryType",e);const r=e.spatialReference;if(null==r)throw new t("missing-metadata","Missing spatialReference",e);let i="toJSON"in r?e.spatialReference:l.fromJSON(e.spatialReference);if(i.wkid!==l.WGS84.wkid){if(!i.isGeographic&&!i.isWebMercator)throw new t("unsupported-spatial-reference","Only WGS84 and WebMercator are currently supported",e);o.getLogger("parquet-support").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",e),i=l.WGS84}if(null==e.primaryFieldName)throw new t("missing-metadata","Missing primaryFieldName",e);if("WKB"!==e.format)throw new t("unsupported","Geometry encoding must be 'WKB'",e);return{type:"geometry",format:"WKB",spatialReference:i,primaryFieldName:e.primaryFieldName,geometryType:e.geometryType,multiscale:e.multiscale}}};e([s()],f.prototype,"type",void 0),e([s()],f.prototype,"loadOptions",void 0),e([s()],f.prototype,"sourceJSON",void 0),e([s()],f.prototype,"geometryInfo",void 0),e([s()],f.prototype,"customParameters",void 0),f=e([n("esri.layers.graphics.sources.ParquetSource")],f);export{f as ParquetSource};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import t from"../../../core/Error.js";import n from"../../../core/JSONSupport.js";import{deg2rad as a,rad2deg as i}from"../../../core/mathUtils.js";import{create as e}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{create as o,fromValues as r}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{fromArray as c}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{zeros as s}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{multiply as l,transpose as f}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{invertOrIdentity as h,mul as u}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{a as m,g as p}from"../../../chunks/vec32.js";import M from"../../../geometry/Point.js";import{projectWithZConversion as g}from"../../../geometry/projection.js";import{earth as v}from"../../../geometry/support/Ellipsoid.js";import{isWebMercator as d}from"../../../geometry/support/spatialReferenceUtils.js";import{a as x}from"../../../chunks/vec3.js";import{isElevationSource as w,isConstantElevation as y,ConstantElevation as O}from"../core/ElevationSourceDefinitions.js";import{getElevationSampler as b}from"./updateElevationUtils.js";import{isNumber as j}from"../../../support/guards.js";import{defaultImageSphereSize as E}from"../../../widgets/PanoramicViewer/constants.js";function S(t,n,a){const[i,e,r,c]=n,[s,l,f,m]=a;F(i,e,r,c);const p=F(s,l,f,m),M=V(i,e,r,c),g=V(s,l,f,m),v=h(o(),M),d=u(o(),v,g),[x,w,y,O]=P(t,d);return[x/O,w/O,p?0:y/O]}function F(t,n,a,i){return 0===t[2]&&0===n[2]&&0===a[2]&&0===i[2]&&(t[2]=n[2]=a[2]=i[2]=1,!0)}function z(t){return 0===t?1:t}function P(t,n){const[a,i,e]=t,o=[0,0,0,0];return o[0]=a*n[0]+i*n[1]+e*n[2]+n[3],o[1]=a*n[4]+i*n[5]+e*n[6]+n[7],o[2]=a*n[8]+i*n[9]+e*n[10]+n[11],o[3]=z(a*n[12]+i*n[13]+e*n[14]+n[15]),o}function V(t,n,a,i){const e=D(c([...i,1]),h(new Array(16),r(t[0],n[0],a[0],0,t[1],n[1],a[1],0,t[2],n[2],a[2],0,1,1,1,1))),s=e[0],l=e[1],f=e[2],u=o();return u[0]=s*t[0],u[1]=l*n[0],u[2]=f*a[0],u[3]=0,u[4]=s*t[1],u[5]=l*n[1],u[6]=f*a[1],u[7]=0,u[8]=s*t[2],u[9]=l*n[2],u[10]=f*a[2],u[11]=0,u[12]=s,u[13]=l,u[14]=f,u[15]=1,u}function C(t,n,a,i,e=s()){return e[0]=t[0]+n[0]*a,e[1]=t[1]+n[1]*a,e[2]=t[2]+n[2]*(a/i),e}function R(t,n,a){const i=s();return i[0]=t[0]*n,i[1]=t[1]*n,i[2]=t[2]*(n/a),i}function L(t,n){const[a,i,e]=t,o=s();return o[0]=a*n[0]+i*n[3]+e*n[6],o[1]=a*n[1]+i*n[4]+e*n[7],o[2]=a*n[2]+i*n[5]+e*n[8],o}function D(t,n){const[a,i,e,o]=t,r=new Array(4);return r[0]=a*n[0]+i*n[1]+e*n[2]+o*n[3],r[1]=a*n[4]+i*n[5]+e*n[6]+o*n[7],r[2]=a*n[8]+i*n[9]+e*n[10]+o*n[11],r[3]=a*n[12]+i*n[13]+e*n[14]+o*n[15],r}function I(n,i,o,r=!0){if(!Number.isFinite(n))throw new t("InvalidRotationAngle","Please specify a valid angle for rotation");const c=o*(r?a(n):n),s=Math.cos(c),l=Math.sin(c),f=e();switch(i){case 0:f[4]=s,f[5]=-l,f[7]=l,f[8]=s;break;case 1:f[0]=s,f[2]=l,f[6]=-l,f[8]=s;break;case 2:f[0]=s,f[1]=-l,f[3]=l,f[4]=s;break;default:throw new t("InvalidRotationAxis","Please specify either 0, 1 or 2 for X, Y or Z axis respectively")}return f}const N={HPR:[[2,-1],[0,1],[2,-1]],OPK:[[0,1],[1,1],[2,1]]};function H(n,a,i=!0){if(3!==n?.length||3!==a?.length)throw new t("InvalidRotationAngles","Please specify three angles with config for rotation");const o=e();for(let t=0;t<3;t++){const[e,r]=a[t],c=I(n[t],e,r,i);l(o,c,o)}return o}function q(t,n=!0){return H(t,N.OPK,n)}function k(t,n=!0){return H(t,N.HPR,n)}function A(t,n,i){const e=Math.sin(a(i)),o=Math.cos(a(i)),r=[[t,0],[t,n],[0,n]];r.forEach(((t,n)=>{r[n]=[o*t[0]-e*t[1],e*t[0]+o*t[1]]}));const c={xmin:Math.min(0,r[0][0],r[1][0],r[2][0]),xmax:Math.max(0,r[0][0],r[1][0],r[2][0]),ymin:Math.min(0,r[0][1],r[1][1],r[2][1]),ymax:Math.max(0,r[0][1],r[1][1],r[2][1])};return{hfov:Math.abs(c.xmax-c.xmin),vfov:Math.abs(c.ymax-c.ymin)}}function K(t,n){const i=a(t[1]),e=a(t[0]),o=t[2],[r,c,s,l]=n,f=a(r),h=a(c),u=s/Math.sqrt(1-l*Math.sin(f)**2),m=e-h,p=s/Math.sqrt(1-l*Math.sin(f)**2),M=l*(u*Math.sin(f)-p*Math.sin(i));return[(p+o)*Math.cos(i)*Math.sin(m),(p+o)*(Math.sin(i)*Math.cos(f)-Math.sin(f)*Math.cos(f)*Math.cos(m))+M*Math.cos(f),(p+o)*(Math.sin(i)*Math.sin(f)+Math.cos(f)*Math.cos(i)*Math.cos(m))-u+M*Math.sin(f)]}function W(t,n){const e=Number(t[0]),o=Number(t[1]),r=Number(t[2]),[c,s,l,f]=n,h=a(c),u=a(s),m=l/Math.sqrt(1-f*Math.sin(h)**2),p=e/m,M=o/m,g=r/m,v=Math.cos(h)-Math.sin(h)*M+Math.cos(h)*g,d=Math.sin(h)+Math.cos(h)*M+Math.sin(h)*g,x=Math.sqrt(v**2+p**2),w=f*m*Math.sin(h),y=(t,n=5)=>{if(0===n)return t;const a=y(t,n-1);return Math.atan(d/x-(w-f*(l/Math.sqrt(1-f*Math.sin(a)**2))*Math.sin(a))/(m*x))},O=y(h),b=Math.atan(e/(m*v))+u,j=i(O);return[i(b),j,e/(Math.cos(O)*Math.sin(b-u))-l/Math.sqrt(1-f*Math.sin(O)**2)]}function U(t,n,a){const i=360/n,e=180/a;return{heading:(t.x-n/2)*i,pitch:90-(t.y-a/2)*e}}function T(t,n,a,i=E/2){const{heading:e,pitch:o}=X(t,i);return J(e,o,n,a)}function J(t,n,a,i){return{x:a/2+t/(360/a),y:i-n/(180/i),heading:t,pitch:n}}function X(t,n){const a=i(Math.acos(-t.z/n));return{heading:i(Math.atan2(t.x,t.y)),pitch:a}}function Y(t,n,i=E/2){return[i*(Math.sin(a(t))*Math.sin(a(n))),i*(Math.cos(a(t))*Math.sin(a(n))),i*Math.cos(a(180-n))]}async function Z(t,n,a){const e=await g(n,t.spatialReference,a);let o=i(Math.atan2(e.y-t.y,e.x-t.x));return o=o>=0&&o<=90?90-o:o>90&&o<=180?360-o+90:90+Math.abs(o),o}function $(t,n,a){const i=Math.cos(a),e=Math.sin(a),o=[1,0,0,1,0,0],r=o[0]*i+o[2]*e,c=o[1]*i+o[3]*e,s=-o[0]*e+o[2]*i,l=-o[1]*e+o[3]*i;o[0]=r,o[1]=c,o[2]=s,o[3]=l;return[t*o[0]+n*o[2]+o[4],t*o[1]+n*o[3]+o[5]]}const B=t=>t.toArray(),G=(...t)=>t.some((t=>t));function Q(t,n){if(G(0===t.length,t.some((({x:t,y:n})=>G(null==t,null==n))),!n.hasZ))throw new Error("Input pixels must have x, y and camera location must have z value")}function _(t,n){if(t.some((t=>null==t.z))||null==n.z)throw new Error("Input points and camera location must have z value")}function tt(t){if(9!==t?.length)throw new Error("Rotation matrix is not provided or is not a valid 3x3 matrix")}function nt(t,n){return d(n)?1/Math.cos(Math.PI/2-2*Math.atan(Math.exp(-1*t/v.radius))):1}const at=t=>n=>new M(n,t),it=t=>null!=t&&"queryExtent"in t;function et(t,n,a,i){return[[-n,-n],[+n,-n],[+n,+n],[-n,+n]].map((([n,e])=>S(x(s(),a,[n,e,0]),i,t)))}function ot({a0:t,a1:n,a2:a,b0:i,b1:e,b2:o},r,c,s){const l=[t??r/2-.5,n,a??0,i??c/2-.5,e??0,o].map(rt);return null!=s&&ct(l)?{affines:l,focalLength:s}:{affines:[r/2-.5,1,0,c/2-.5,0,-1]}}function rt(t,n){if(null==t)return null;const a=parseFloat(`${t}`);return isNaN(a)?null:a}function ct(t){return null!=t[1]&&null!=t[5]}function st(t,n,a){const{cameraHeight:i,cameraPitch:e,cameraRoll:o,elevation:r,farDistance:c,horizontalFieldOfView:s,location:l,verticalFieldOfView:f}=t,h=r??(l.z??0)-i;return{...ht(t,n,a),averageElevation:h,cameraPitch:e,cameraRoll:o??0,farDistance:c,horizontalFieldOfView:s,verticalFieldOfView:f}}function lt(t,n,a,i){return xt(i)?q([i.omega,i.phi,i.kappa]):wt(i)?k([i.heading,i.pitch,i.roll]):k([t,n,a??0])}function ft(t,n,a){const{cameraHeading:i,cameraHeight:e,elevation:o,farDistance:r,horizontalFieldOfView:c,location:s,verticalFieldOfView:l}=t;return{averageElevation:o??(s.z??0)-e,cameraLocation:s,cameraHeading:i,farDistance:r,horizontalFieldOfView:c,imageHeight:a,imageWidth:n,verticalFieldOfView:l}}function ht(t,n,a){const{a0:i,a1:e,a2:o,b0:r,b1:c,b2:s,cameraHeading:l,cameraOrientation:f,cameraPitch:h,cameraRoll:u,focalLength:m,horizontalFieldOfView:p,location:M,matrix:g,principalX:v,principalY:d,radial:x,tangential:w,verticalFieldOfView:y}=t,{affines:O,focalLength:b}=ot({a0:i,a1:e,a2:o,b0:r,b1:c,b2:s},n,a,m),j=g??lt(l,h,u,f),E=null!=v&&null!=d?[v,d]:void 0;return{affineTransformations:f?.affineTransformations??O,cameraLocation:M.clone(),focalLength:f?.focalLength??b,horizontalFieldOfView:p,imageHeight:a,imageWidth:n,principalOffsetPoint:f?.principalOffsetPoint??E,radialDistortionCoefficients:f?.radialDistortionCoefficients??x,rotationMatrix:j,tangentialDistortionCoefficients:f?.tangentialDistortionCoefficients??w,verticalFieldOfView:y}}const ut=t=>null!=t&&"elevationSample"in t&&null!=t.elevationSample,mt=t=>w(t?.elevationSource)&&null!=t?.extent,pt=t=>y(t?.elevationSource),Mt=async(t,a)=>null!=a&&(ut(a)||pt(a))?a:mt(a)?{elevationSample:await b({...n.isSerializable(a.elevationSource)?a.elevationSource.toJSON():a.elevationSource,extent:a.extent}),elevationSource:new O({constantElevation:t})}:{elevationSource:new O({constantElevation:t})},gt=t=>j(t?.heading)&&j(t?.pitch),vt=(t,n)=>[[-t,-n],[t,-n],[t,n],[-t,n]];function dt(t){const{cameraLocation:n,farDistance:i,horizontalFieldOfView:o,rotationMatrix:r,scalingFactor:c,verticalFieldOfView:l}=t,h=e();f(h,r);const u=2*Math.tan(a(l)/2)*i*c,M=2*Math.tan(a(o)/2)*i*c,g=L([0,0,-1],h),v=C([n.x,n.y,n.z],g,t.farDistance*c,c),d=L([0,1,0],h),x=L([1,0,0],h),w=R(d,u/2,c),y=R(x,M/2,c),O=m(s(),w,y),b=p(s(),w,y);return[p(s(),v,O),p(s(),v,b),m(s(),v,O),m(s(),v,b)]}const xt=t=>2===t?.type,wt=t=>1===t?.type;var yt;!function(t){t[t.CLOCKWISE=-1]="CLOCKWISE",t[t.COUNTERCLOCKWISE=1]="COUNTERCLOCKWISE"}(yt||(yt={}));export{dt as computeFarplaneVertices,A as computeHFOVAndVFOV,et as computeNewReferenceCoordinates,Y as convertHeadingPitchToSphereVertex,J as convertOrientationToPixelLocation,U as convertPixelToHeadingPitch,X as convertSphereVertexToOrientation,T as convertSphereVertexToPixelLocation,H as createRotationMatrix,k as createRotationMatrixFromHPR,q as createRotationMatrixFromOPK,K as geographicToLTP,ot as getAffinesAndFocalLength,ft as getImageToWorldPanoramicProperties,st as getImageToWorldProperties,Z as getInitialAngle,Mt as getUpdateElevationProps,nt as getWebMercatorScalingFactor,ht as getWorldToImageProperties,gt as hasAngles,wt as hasHeadingPitchRoll,xt as hasOmegaPhiKappa,it as isElevationSampler,ut as isUpdateElevationWithElevationSampler,mt as isUpdateElevationWithElevationSource,pt as isUpdateUsingConstantElevation,ct as isValidAffines,V as linearEquationSolve,W as ltpToGeographic,G as or,B as pointToArray,S as projectiveTransform,vt as reducerFn,$ as rotatePixel,C as scaleAndAddWithFactor,R as scaleWithFactor,L as transformMat3,D as transformMat4,Q as validatePixelsToTransform,_ as validatePointsToTransform,tt as validateRotationMatrix,at as vecToPoint};
5
+ import t from"../../../core/Error.js";import n from"../../../core/JSONSupport.js";import{deg2rad as a,rad2deg as i}from"../../../core/mathUtils.js";import{create as e}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{create as o,fromValues as r}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{fromArray as c}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{zeros as s}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{multiply as l,transpose as f}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{invertOrIdentity as h,mul as u}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{a as m,g as p}from"../../../chunks/vec32.js";import M from"../../../geometry/Point.js";import{projectWithZConversion as g}from"../../../geometry/projection.js";import{earth as v}from"../../../geometry/support/Ellipsoid.js";import{isWebMercator as d}from"../../../geometry/support/spatialReferenceUtils.js";import{a as x}from"../../../chunks/vec3.js";import{isElevationSource as w,isConstantElevation as y,ConstantElevation as O}from"../core/ElevationSourceDefinitions.js";import{getElevationSampler as b}from"./updateElevationUtils.js";import{isNumber as j}from"../../../support/guards.js";import{defaultImageSphereSize as E}from"../../../widgets/PanoramicViewer/constants.js";function S(t,n,a){const[i,e,r,c]=n,[s,l,f,m]=a;z(i,e,r,c);const p=z(s,l,f,m),M=V(i,e,r,c),g=V(s,l,f,m),v=h(o(),M),d=u(o(),v,g),[x,w,y,O]=P(t,d);return[x/O,w/O,p?0:y/O]}function z(t,n,a,i){return 0===t[2]&&0===n[2]&&0===a[2]&&0===i[2]&&(t[2]=n[2]=a[2]=i[2]=1,!0)}function F(t){return 0===t?1:t}function P(t,n){const[a,i,e]=t,o=[0,0,0,0];return o[0]=a*n[0]+i*n[1]+e*n[2]+n[3],o[1]=a*n[4]+i*n[5]+e*n[6]+n[7],o[2]=a*n[8]+i*n[9]+e*n[10]+n[11],o[3]=F(a*n[12]+i*n[13]+e*n[14]+n[15]),o}function V(t,n,a,i){const e=D(c([...i,1]),h(new Array(16),r(t[0],n[0],a[0],0,t[1],n[1],a[1],0,t[2],n[2],a[2],0,1,1,1,1))),s=e[0],l=e[1],f=e[2],u=o();return u[0]=s*t[0],u[1]=l*n[0],u[2]=f*a[0],u[3]=0,u[4]=s*t[1],u[5]=l*n[1],u[6]=f*a[1],u[7]=0,u[8]=s*t[2],u[9]=l*n[2],u[10]=f*a[2],u[11]=0,u[12]=s,u[13]=l,u[14]=f,u[15]=1,u}function C(t,n,a,i,e=s()){return e[0]=t[0]+n[0]*a,e[1]=t[1]+n[1]*a,e[2]=t[2]+n[2]*(a/i),e}function R(t,n,a){const i=s();return i[0]=t[0]*n,i[1]=t[1]*n,i[2]=t[2]*(n/a),i}function L(t,n){const[a,i,e]=t,o=s();return o[0]=a*n[0]+i*n[3]+e*n[6],o[1]=a*n[1]+i*n[4]+e*n[7],o[2]=a*n[2]+i*n[5]+e*n[8],o}function D(t,n){const[a,i,e,o]=t,r=new Array(4);return r[0]=a*n[0]+i*n[1]+e*n[2]+o*n[3],r[1]=a*n[4]+i*n[5]+e*n[6]+o*n[7],r[2]=a*n[8]+i*n[9]+e*n[10]+o*n[11],r[3]=a*n[12]+i*n[13]+e*n[14]+o*n[15],r}function I(n,i,o,r=!0){if(!Number.isFinite(n))throw new t("InvalidRotationAngle","Please specify a valid angle for rotation");const c=o*(r?a(n):n),s=Math.cos(c),l=Math.sin(c),f=e();switch(i){case 0:f[4]=s,f[5]=-l,f[7]=l,f[8]=s;break;case 1:f[0]=s,f[2]=l,f[6]=-l,f[8]=s;break;case 2:f[0]=s,f[1]=-l,f[3]=l,f[4]=s;break;default:throw new t("InvalidRotationAxis","Please specify either 0, 1 or 2 for X, Y or Z axis respectively")}return f}const N={HPR:[[2,-1],[0,1],[2,-1]],OPK:[[0,1],[1,1],[2,1]]};function H(n,a,i=!0){if(3!==n?.length||3!==a?.length)throw new t("InvalidRotationAngles","Please specify three angles with config for rotation");const o=e();for(let t=0;t<3;t++){const[e,r]=a[t],c=I(n[t],e,r,i);l(o,c,o)}return o}function q(t,n=!0){return H(t,N.OPK,n)}function k(t,n=!0){return H(t,N.HPR,n)}function A(t,n,i){const e=Math.sin(a(i)),o=Math.cos(a(i)),r=[[t,0],[t,n],[0,n]];r.forEach(((t,n)=>{r[n]=[o*t[0]-e*t[1],e*t[0]+o*t[1]]}));const c={xmin:Math.min(0,r[0][0],r[1][0],r[2][0]),xmax:Math.max(0,r[0][0],r[1][0],r[2][0]),ymin:Math.min(0,r[0][1],r[1][1],r[2][1]),ymax:Math.max(0,r[0][1],r[1][1],r[2][1])};return{hfov:Math.abs(c.xmax-c.xmin),vfov:Math.abs(c.ymax-c.ymin)}}function K(t,n){const i=a(t[1]),e=a(t[0]),o=t[2],[r,c,s,l]=n,f=a(r),h=a(c),u=s/Math.sqrt(1-l*Math.sin(f)**2),m=e-h,p=s/Math.sqrt(1-l*Math.sin(f)**2),M=l*(u*Math.sin(f)-p*Math.sin(i));return[(p+o)*Math.cos(i)*Math.sin(m),(p+o)*(Math.sin(i)*Math.cos(f)-Math.sin(f)*Math.cos(f)*Math.cos(m))+M*Math.cos(f),(p+o)*(Math.sin(i)*Math.sin(f)+Math.cos(f)*Math.cos(i)*Math.cos(m))-u+M*Math.sin(f)]}function W(t,n){const e=Number(t[0]),o=Number(t[1]),r=Number(t[2]),[c,s,l,f]=n,h=a(c),u=a(s),m=l/Math.sqrt(1-f*Math.sin(h)**2),p=e/m,M=o/m,g=r/m,v=Math.cos(h)-Math.sin(h)*M+Math.cos(h)*g,d=Math.sin(h)+Math.cos(h)*M+Math.sin(h)*g,x=Math.sqrt(v**2+p**2),w=f*m*Math.sin(h),y=(t,n=5)=>{if(0===n)return t;const a=y(t,n-1);return Math.atan(d/x-(w-f*(l/Math.sqrt(1-f*Math.sin(a)**2))*Math.sin(a))/(m*x))},O=y(h),b=Math.atan(e/(m*v))+u,j=i(O);return[i(b),j,e/(Math.cos(O)*Math.sin(b-u))-l/Math.sqrt(1-f*Math.sin(O)**2)]}function U(t,n,a){const i=360/n,e=180/a;return{heading:(t.x-n/2)*i,pitch:90-(t.y-a/2)*e}}function T(t,n,a,i=E/2){const{heading:e,pitch:o}=X(t,i);return J(e,o,n,a)}function J(t,n,a,i){return{x:a/2+t/(360/a),y:i-n/(180/i),heading:t,pitch:n}}function X(t,n){const a=i(Math.acos(-t.z/n));return{heading:i(Math.atan2(t.x,t.y)),pitch:a}}function Y(t,n,i=E/2){return[i*(Math.sin(a(t))*Math.sin(a(n))),i*(Math.cos(a(t))*Math.sin(a(n))),i*Math.cos(a(180-n))]}async function Z(t,n,a){const e=await g(n,t.spatialReference,a);let o=i(Math.atan2(e.y-t.y,e.x-t.x));return o=o>=0&&o<=90?90-o:o>90&&o<=180?360-o+90:90+Math.abs(o),o}function $(t,n,a){const i=Math.cos(a),e=Math.sin(a),o=[1,0,0,1,0,0],r=o[0]*i+o[2]*e,c=o[1]*i+o[3]*e,s=-o[0]*e+o[2]*i,l=-o[1]*e+o[3]*i;o[0]=r,o[1]=c,o[2]=s,o[3]=l;return[t*o[0]+n*o[2]+o[4],t*o[1]+n*o[3]+o[5]]}const B=t=>t.toArray(),G=(...t)=>t.some((t=>t));function Q(t,n){if(G(0===t.length,t.some((({x:t,y:n})=>G(null==t,null==n))),!n.hasZ))throw new Error("Input pixels must have x, y and camera location must have z value")}function _(t,n){if(t.some((t=>null==t.z))||null==n.z)throw new Error("Input points and camera location must have z value")}function tt(t){if(9!==t?.length)throw new Error("Rotation matrix is not provided or is not a valid 3x3 matrix")}function nt(t,n){return d(n)?1/Math.cos(Math.PI/2-2*Math.atan(Math.exp(-1*t/v.radius))):1}const at=t=>n=>new M(n,t),it=t=>null!=t&&"queryExtent"in t;function et(t,n,a,i){return[[-n,-n],[+n,-n],[+n,+n],[-n,+n]].map((([n,e])=>S(x(s(),a,[n,e,0]),i,t)))}function ot({a0:t,a1:n,a2:a,b0:i,b1:e,b2:o},r,c,s){const l=[t??r/2-.5,n,a??0,i??c/2-.5,e??0,o].map(rt);return null!=s&&ct(l)?{affines:l,focalLength:s}:{affines:[r/2-.5,1,0,c/2-.5,0,-1]}}function rt(t,n){if(null==t)return null;const a=parseFloat(`${t}`);return isNaN(a)?null:a}function ct(t){return null!=t[1]&&null!=t[5]}function st(t,n,a){const{cameraHeight:i,cameraPitch:e,cameraRoll:o,elevation:r,farDistance:c,horizontalFieldOfView:s,location:l,verticalFieldOfView:f}=t,h=r??(l.z??0)-i;return{...ht(t,n,a),averageElevation:h,cameraPitch:e,cameraRoll:o??0,farDistance:c,horizontalFieldOfView:s,verticalFieldOfView:f}}function lt(t,n,a,i){return xt(i)?q([i.omega,i.phi,i.kappa]):wt(i)?k([i.heading,i.pitch,i.roll]):k([t,n,a??0])}function ft(t,n,a){const{cameraHeading:i,cameraHeight:e,elevation:o,farDistance:r,horizontalFieldOfView:c,location:s,verticalFieldOfView:l}=t;return{averageElevation:o??(s.z??0)-e,cameraLocation:s,cameraHeading:i,farDistance:r,horizontalFieldOfView:c,imageHeight:a,imageWidth:n,verticalFieldOfView:l}}function ht(t,n,a){const{a0:i,a1:e,a2:o,b0:r,b1:c,b2:s,cameraHeading:l,cameraOrientation:f,cameraPitch:h,cameraRoll:u,focalLength:m,horizontalFieldOfView:p,location:M,matrix:g,principalX:v,principalY:d,radial:x,tangential:w,verticalFieldOfView:y}=t,{affines:O,focalLength:b}=ot({a0:i,a1:e,a2:o,b0:r,b1:c,b2:s},n,a,m),j=g??lt(l,h,u,f),E=null!=v&&null!=d?[v,d]:void 0;return{affineTransformations:f?.affineTransformations??O,cameraLocation:M.clone(),focalLength:f?.focalLength??b,horizontalFieldOfView:p,imageHeight:a,imageWidth:n,principalOffsetPoint:f?.principalOffsetPoint??E,radialDistortionCoefficients:f?.radialDistortionCoefficients??x,rotationMatrix:j,tangentialDistortionCoefficients:f?.tangentialDistortionCoefficients??w,verticalFieldOfView:y}}const ut=t=>null!=t&&"elevationSample"in t&&null!=t.elevationSample,mt=t=>w(t?.elevationSource)&&null!=t?.extent,pt=t=>y(t?.elevationSource),Mt=async(t,a)=>null!=a&&(ut(a)||pt(a))?a:mt(a)?{elevationSample:await b({...n.isSerializable(a.elevationSource)?a.elevationSource.toJSON():a.elevationSource,extent:a.extent}),elevationSource:new O({constantElevation:t})}:{elevationSource:new O({constantElevation:t})},gt=t=>j(t?.heading)&&j(t?.pitch),vt=(t,n)=>[[-t,-n],[t,-n],[t,n],[-t,n]];function dt(t){const{cameraLocation:n,farDistance:i,horizontalFieldOfView:o,rotationMatrix:r,scalingFactor:c,verticalFieldOfView:l}=t,h=e();f(h,r);const u=2*Math.tan(a(l)/2)*i*c,M=2*Math.tan(a(o)/2)*i*c,g=L([0,0,-1],h),v=C([n.x,n.y,n.z],g,t.farDistance*c,c),d=L([0,1,0],h),x=L([1,0,0],h),w=R(d,u/2,c),y=R(x,M/2,c),O=m(s(),w,y),b=p(s(),w,y);return[p(s(),v,O),p(s(),v,b),m(s(),v,O),m(s(),v,b)]}const xt=t=>2===t?.type,wt=t=>1===t?.type;function yt(t,n,a){if("panoramic"===t){const[t,i]=a;return T({x:n.x,y:n.y,z:n.z},t,i)}return{x:n.x+.5,y:.5-n.y}}var Ot;!function(t){t[t.CLOCKWISE=-1]="CLOCKWISE",t[t.COUNTERCLOCKWISE=1]="COUNTERCLOCKWISE"}(Ot||(Ot={}));export{dt as computeFarplaneVertices,A as computeHFOVAndVFOV,et as computeNewReferenceCoordinates,Y as convertHeadingPitchToSphereVertex,J as convertOrientationToPixelLocation,U as convertPixelToHeadingPitch,X as convertSphereVertexToOrientation,T as convertSphereVertexToPixelLocation,H as createRotationMatrix,k as createRotationMatrixFromHPR,q as createRotationMatrixFromOPK,K as geographicToLTP,ot as getAffinesAndFocalLength,ft as getImageToWorldPanoramicProperties,st as getImageToWorldProperties,Z as getInitialAngle,Mt as getUpdateElevationProps,nt as getWebMercatorScalingFactor,ht as getWorldToImageProperties,gt as hasAngles,wt as hasHeadingPitchRoll,xt as hasOmegaPhiKappa,it as isElevationSampler,ut as isUpdateElevationWithElevationSampler,mt as isUpdateElevationWithElevationSource,pt as isUpdateUsingConstantElevation,ct as isValidAffines,V as linearEquationSolve,W as ltpToGeographic,G as or,B as pointToArray,S as projectiveTransform,vt as reducerFn,$ as rotatePixel,C as scaleAndAddWithFactor,R as scaleWithFactor,yt as transformGraphicCoordinatesToPixel,L as transformMat3,D as transformMat4,Q as validatePixelsToTransform,_ as validatePointsToTransform,tt as validateRotationMatrix,at as vecToPoint};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{dateOnlyToDateTime as e,timeOnlyToDateTime as n,timestampOffsetToDateTime as i}from"../../support/dateUtils.js";var l;!function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"}(l||(l={}));const t=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]);function r(e){return null!=e&&t.has(e.type)}function a(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function u(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function o(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function s(e,n,i){const t=i??e?.domain;if(!t)return null;switch(t.type){case"range":{const{min:i,max:r}=m(e,t);if(null!=i&&+n<i||null!=r&&+n>r)return l.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==t.codedValues||t.codedValues.every((e=>null==e||e.code!==n)))return l.INVALID_CODED_VALUE}return null}function m(e,n){const i=n??e?.domain;if(!i||"range"!==i.type)return;const l="range"in i?i.range[0]:i.minValue,t="range"in i?i.range[1]:i.maxValue,s=r(e);return a(e)||o(e)||u(e)?{...d(e,t,l),isInteger:s}:{min:null!=l&&"number"==typeof l?l:null,max:null!=t&&"number"==typeof t?t:null,rawMin:l,rawMax:t,isInteger:s}}function d(l,t,r){return a(l)?{min:e(r)?.toMillis(),max:e(t)?.toMillis(),rawMin:r,rawMax:t}:o(l)?{min:n(r)?.toMillis(),max:n(t)?.toMillis(),rawMin:r,rawMax:t}:u(l)?{min:i(r)?.toMillis(),max:i(t)?.toMillis(),rawMin:r,rawMax:t}:{max:null,min:null}}export{l as DomainValidationError,d as dateTimeFieldValuesToNumericRange,m as getDomainRange,s as validateDomainValue};
5
+ import{union as e}from"../../core/SetUtils.js";import{dateOnlyToDateTime as n,timeOnlyToDateTime as i,timestampOffsetToDateTime as t}from"../../support/dateUtils.js";var r;!function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"}(r||(r={}));const l=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]);function u(e){return null!=e&&l.has(e.type)}function a(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function o(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function s(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const m=new Set([...["single","double"],...["esriFieldTypeSingle","esriFieldTypeDouble"]]),c=e(l,m);function d(e){return null!=e&&c.has(e.type)}function p(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function y(e,n,i){const t=i??e?.domain;if(!t)return null;switch(t.type){case"range":{const{min:i,max:l}=f(e,t);if(null!=i&&+n<i||null!=l&&+n>l)return r.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==t.codedValues||t.codedValues.every((e=>null==e||e.code!==n)))return r.INVALID_CODED_VALUE}return null}function f(e,n){const i=n??e?.domain;if(!i||"range"!==i.type)return;const t="range"in i?i.range[0]:i.minValue,r="range"in i?i.range[1]:i.maxValue,l=u(e);return a(e)||s(e)||o(e)?{...M(e,r,t),isInteger:l}:{min:null!=t&&"number"==typeof t?t:null,max:null!=r&&"number"==typeof r?r:null,rawMin:t,rawMax:r,isInteger:l}}function g(e,n){switch(n.type){case"range":{const{min:i,max:t}=f(e,n);return a(e)||s(e)||o(e)?!!i&&!!t:"number"==typeof i&&Number.isFinite(i)&&"number"==typeof t&&Number.isFinite(t)}case"codedValue":case"coded-value":{const i=typeof n.codedValues[0].code;if("string"===i&&p(e)||"number"===i&&d(e))return!0}}return!1}function M(e,r,l){return a(e)?{min:n(l)?.toMillis(),max:n(r)?.toMillis(),rawMin:l,rawMax:r}:s(e)?{min:i(l)?.toMillis(),max:i(r)?.toMillis(),rawMin:l,rawMax:r}:o(e)?{min:t(l)?.toMillis(),max:t(r)?.toMillis(),rawMin:l,rawMax:r}:{max:null,min:null}}export{r as DomainValidationError,M as dateTimeFieldValuesToNumericRange,f as getDomainRange,g as isDomainValidForField,y as validateDomainValue};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{JSONMap as e}from"../../core/jsonMap.js";import t from"../../geometry/SpatialReference.js";import{inferLocationInfo as o}from"./locationUtils.js";import{ParquetMetadata as i}from"../../libs/parquet/parquet.js";const n=new e({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"});function r(e){return n.toJSON(e)}function l(e){return"location"===e.type?{type:"location",geometryType:"esriGeometryPoint",spatialReference:e.spatialReference.toJSON(),latitudeFieldName:e.latitudeFieldName,longitudeFieldName:e.longitudeFieldName}:{type:"geometry",geometryType:r(e.geometryType),spatialReference:e.spatialReference.toJSON(),format:e.format,primaryFieldName:e.primaryFieldName,multiscale:e.multiscale??null}}async function a(e){const t=await i.create(e,(()=>null));return{objectIdField:null,url:e,geometrySourceInfo:u(t),metadata:t}}function m(e){switch(e){case"Point":return"point";case"Polygon":case"MultiPolygon":return"polygon";case"LineString":return"polyline";case"MultiPoint":return"multipoint";default:return null}}function u(e){const i=e.tryReadEsriMetadata()?.multiscale,n=e.tryReadGeoMetadata();if(null!=n){const e=n.primary_column,o=n.columns[e],{geometry_types:r,encoding:l,orientation:a,crs:u}=o,c=1===r.length?m(r[0]):null,p=u?.id?.code;return{type:"geometry",format:l,geometryType:c,orientation:a??null,primaryFieldName:e,spatialReference:p&&"number"==typeof p?new t({wkid:p}):null,multiscale:i}}const r=o(e.fields.map((e=>e.name)));return{type:"location",latitudeFieldName:r.latitudeFieldName,longitudeFieldName:r.longitudeFieldName,spatialReference:t.WGS84}}export{u as inferGeometrySource,a as inferParquetLoadOptions,n as parquetGeometryTypeKebabDict,l as toParquetGeometryInfoJSON,r as toParquetJSONGeometryType};
5
+ import e from"../../core/Error.js";import{JSONMap as t}from"../../core/jsonMap.js";import o from"../../geometry/SpatialReference.js";import{inferLocationInfo as r}from"./locationUtils.js";import{ParquetMetadata as i}from"../../libs/parquet/parquet.js";const n=new t({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"});function l(e){return n.toJSON(e)}function a(e){return"location"===e.type?{type:"location",geometryType:"esriGeometryPoint",spatialReference:"toJSON"in e.spatialReference?e.spatialReference.toJSON():e.spatialReference,latitudeFieldName:e.latitudeFieldName,longitudeFieldName:e.longitudeFieldName}:{type:"geometry",geometryType:l(e.geometryType),spatialReference:e.spatialReference.toJSON(),format:e.format,primaryFieldName:e.primaryFieldName,multiscale:e.multiscale??null}}async function m(e){const t=await i.create(e,(()=>null));return{objectIdField:null,url:e,geometrySourceInfo:s(t),metadata:t}}function u(e){switch(e){case"Point":return"point";case"Polygon":case"MultiPolygon":return"polygon";case"LineString":return"polyline";case"MultiPoint":return"multipoint";default:return null}}function s(t){const i=t.tryReadEsriMetadata()?.multiscale,n=t.tryReadGeoMetadata();if(null!=n){const t=n.primary_column,r=n.columns[t],{geometry_types:l,encoding:a,orientation:m,crs:s}=r,p=new Set;for(const e of l){const t=u(e);t&&p.add(t)}if(p.size>1)throw new e("unsupported","Parquet mixed geometry types are not support",{geometryTypes:p});const c=1===p.size?p.values().next().value:null,y=s?.id?.code;return{type:"geometry",format:a,geometryType:c,orientation:m??null,primaryFieldName:t,spatialReference:y&&"number"==typeof y?new o({wkid:y}):null,multiscale:i}}const l=r(t.fields.map((e=>e.name)));return{type:"location",latitudeFieldName:l.latitudeFieldName,longitudeFieldName:l.longitudeFieldName,spatialReference:o.WGS84}}export{s as inferGeometrySource,m as inferParquetLoadOptions,n as parquetGeometryTypeKebabDict,a as toParquetGeometryInfoJSON,l as toParquetJSONGeometryType};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import e from"./Field.js";const n="Raster.",a="Raster.Dim.",i=".Max",t={servicePixelValue:"Raster.ServicePixelValue",rawServicePixelValue:"Raster.ServicePixelValue.Raw",itemPixelValue:"Raster.ItemPixelValue",magnitude:"Raster.Magnitude",direction:"Raster.Direction",variable:"Raster.Variable"},r=new Map([["quarters","Quarter"],["months","Month"],["weeks","Week of the year"],["days","Day of the year"]]);function l(n,a){return new e({name:n,alias:a,domain:null,editable:!1,length:50,type:"string"})}function s(n,a){return new e({name:n,alias:a,domain:null,editable:!1,type:"double"})}function u(n,a){return new e({name:n,alias:a,domain:null,editable:!1,type:"date"})}function o(e){return l(t.servicePixelValue,e??"Service Pixel Value")}function c(e){return l(t.rawServicePixelValue,e??"Raw Service Pixel Value")}function m(){return l(t.itemPixelValue,"Item Pixel Value")}function f(e){return l(`${t.servicePixelValue}.${e}`,e)}function d(e){return s(`${t.magnitude}`,"Magnitude"+(e?` (${e})`:""))}function $(){return s(`${t.direction}`,"Direction (°)")}function v(e){return e.fields.filter((e=>"oid"!==e.type&&"value"!==e.name.toLowerCase())).map((e=>{const a=e.clone();return a.name=`${n}${e.name}`,a}))}function p(e){const n=new Set,r=new Set,o=new Map;e.variables.forEach((({dimensions:e})=>{e.forEach((e=>{if(e.recurring)o.set(e.name,e.intervalUnit);else{const a="ISO8601"===e.unit?.trim()?n:r;a.add(e.name),e.hasRanges&&a.add(`${e.name}${i}`)}}))}));return[l(t.variable,"Variable"),...[...n].map((e=>u(`${a}${e}`,x(e)))),...[...r].map((e=>s(`${a}${e}`,x(e)))),...[...o].map((([e,n])=>s(`${a}${e}`,h(e,n))))]}function h(e,n){return n=n?.toLowerCase(),n&&r.has(n)?r.get(n):x(e)}function x(e){const n=e.endsWith(i),a=n?e.slice(0,-4):e,t="StdTime"===a?"Standard Time":"StdZ"===a?"Standard Z":a;return n?`${t} Max`:t}function w(e,n){return n?new Date(e):e}function V(e,n,r){r?.length&&(n[t.variable]=r[0].variableName,r.forEach((({dimensionName:t,values:r})=>{if(t&&r?.length){const l=`${a}${t}`,s=e.find((({name:e})=>e===l));if(!s)return;const u="date"===s.type,o=r[0];if(Array.isArray(o)){if(n[`${a}${t}`]=w(o[0],u),null!=o[1]){const r=`${a}${t}${i}`;if(e.some((({name:e})=>e===r))){const e=w(o[1],u);n[r]=e}}}else n[`${a}${t}`]=w(o,u)}})))}function b(e,n){if(n.pixelType.startsWith("f")&&e.forEach((({format:e,fieldName:n})=>{e&&n&&/^raster\.(item|service)pixelvalue/i.test(n)&&(e.places=2)})),n.multidimensionalInfo){const t=n.multidimensionalInfo.variables.flatMap((({dimensions:e})=>e));e.forEach((({format:e,fieldName:n})=>{if(e&&n?.startsWith(a)){const r=n.slice(a.length),l=`${r}${i}`,s=t.find((({name:e})=>e===r||e===l));s?.values?.every((e=>Number.isInteger(e)))&&(e.places=0)}}))}}export{V as addMultidimensionalFieldValues,t as commonRasterFieldNames,$ as getDirectionField,m as getItemPixelValueField,d as getMagnitudeField,p as getMultidimensionalFields,f as getProcessedServicePixelValueField,v as getRasterAttributeTableFields,c as getRawServicePixelValueField,o as getServicePixelValueField,a as rasterDimensionFieldPrefix,n as rasterFieldPrefix,b as setDefaultRasterFieldFormats};
5
+ import e from"./Field.js";const n="Raster.",a="Raster.Dim.",i=".Max",t={servicePixelValue:"Raster.ServicePixelValue",rawServicePixelValue:"Raster.ServicePixelValue.Raw",itemPixelValue:"Raster.ItemPixelValue",magnitude:"Raster.Magnitude",direction:"Raster.Direction",variable:"Raster.Variable"},r=new Map([["quarters","Quarter"],["months","Month"],["weeks","Week of the year"],["days","Day of the year"]]);function l(n,a){return new e({name:n,alias:a,domain:null,editable:!1,length:50,type:"string"})}function s(n,a){return new e({name:n,alias:a,domain:null,editable:!1,type:"double"})}function u(n,a){return new e({name:n,alias:a,domain:null,editable:!1,type:"date"})}function o(e){return l(t.servicePixelValue,e??"Service Pixel Value")}function c(e){return l(t.rawServicePixelValue,e??"Raw Service Pixel Value")}function m(){return l(t.itemPixelValue,"Item Pixel Value")}function f(e){return l(`${t.servicePixelValue}.${e}`,e)}function d(e){return s(`${t.magnitude}`,"Magnitude"+(e?` (${e})`:""))}function $(){return s(`${t.direction}`,"Direction (°)")}function v(e){return e.fields.filter((e=>"oid"!==e.type&&"value"!==e.name.toLowerCase())).map((e=>{const a=e.clone();return a.name=`${n}${e.name}`,a}))}function p(e){const n=new Set,r=new Set,o=new Map;e.variables.forEach((({dimensions:e})=>{e.forEach((e=>{if(e.recurring)o.set(e.name,e.unit);else{const a="ISO8601"===e.unit?.trim()?n:r;a.add(e.name),e.hasRanges&&a.add(`${e.name}${i}`)}}))}));return[l(t.variable,"Variable"),...[...n].map((e=>u(`${a}${e}`,x(e)))),...[...r].map((e=>s(`${a}${e}`,x(e)))),...[...o].map((([e,n])=>s(`${a}${e}`,h(e,n))))]}function h(e,n){return n=n?.toLowerCase(),n&&r.has(n)?r.get(n):x(e)}function x(e){const n=e.endsWith(i),a=n?e.slice(0,-4):e,t="StdTime"===a?"Standard Time":"StdZ"===a?"Standard Z":a;return n?`${t} Max`:t}function w(e,n){return n?new Date(e):e}function V(e,n,r){r?.length&&(n[t.variable]=r[0].variableName,r.forEach((({dimensionName:t,values:r})=>{if(t&&r?.length){const l=`${a}${t}`,s=e.find((({name:e})=>e===l));if(!s)return;const u="date"===s.type,o=r[0];if(Array.isArray(o)){if(n[`${a}${t}`]=w(o[0],u),null!=o[1]){const r=`${a}${t}${i}`;if(e.some((({name:e})=>e===r))){const e=w(o[1],u);n[r]=e}}}else n[`${a}${t}`]=w(o,u)}})))}function b(e,n){if(n.pixelType.startsWith("f")&&e.forEach((({format:e,fieldName:n})=>{e&&n&&/^raster\.(item|service)pixelvalue/i.test(n)&&(e.places=2)})),n.multidimensionalInfo){const t=n.multidimensionalInfo.variables.flatMap((({dimensions:e})=>e));e.forEach((({format:e,fieldName:n})=>{if(e&&n?.startsWith(a)){const r=n.slice(a.length),l=`${r}${i}`,s=t.find((({name:e})=>e===r||e===l));s?.values?.every((e=>Number.isInteger(e)))&&(e.places=0)}}))}}export{V as addMultidimensionalFieldValues,t as commonRasterFieldNames,$ as getDirectionField,m as getItemPixelValueField,d as getMagnitudeField,p as getMultidimensionalFields,f as getProcessedServicePixelValueField,v as getRasterAttributeTableFields,c as getRawServicePixelValueField,o as getServicePixelValueField,a as rasterDimensionFieldPrefix,n as rasterFieldPrefix,b as setDefaultRasterFieldFormats};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "4.32.0-next.20250130",
3
+ "version": "4.32.0-next.20250201",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@esri/arcgis-html-sanitizer": "~4.1.0",
29
- "@esri/calcite-components": "~3.0.0-next.122",
29
+ "@esri/calcite-components": "~3.0.0-next.123",
30
30
  "@vaadin/grid": "~24.6.3",
31
- "@zip.js/zip.js": "~2.7.54",
31
+ "@zip.js/zip.js": "~2.7.56",
32
32
  "luxon": "~3.5.0",
33
33
  "marked": "~15.0.6",
34
34
  "sortablejs": "~1.15.6"
@@ -1,7 +1,11 @@
1
1
  import "./interfaces";
2
2
 
3
3
  export type PointCloudRenderer = __esri.pointCloudRenderers.PointCloudRenderer;
4
+ export type PointCloudClassBreaksRenderer = __esri.pointCloudRenderers.PointCloudClassBreaksRenderer;
4
5
  export const PointCloudClassBreaksRenderer: typeof __esri.pointCloudRenderers.PointCloudClassBreaksRenderer;
6
+ export type PointCloudRGBRenderer = __esri.pointCloudRenderers.PointCloudRGBRenderer;
5
7
  export const PointCloudRGBRenderer: typeof __esri.pointCloudRenderers.PointCloudRGBRenderer;
8
+ export type PointCloudStretchRenderer = __esri.pointCloudRenderers.PointCloudStretchRenderer;
6
9
  export const PointCloudStretchRenderer: typeof __esri.pointCloudRenderers.PointCloudStretchRenderer;
10
+ export type PointCloudUniqueValueRenderer = __esri.pointCloudRenderers.PointCloudUniqueValueRenderer;
7
11
  export const PointCloudUniqueValueRenderer: typeof __esri.pointCloudRenderers.PointCloudUniqueValueRenderer;
@@ -1,11 +1,19 @@
1
1
  import "../interfaces";
2
2
 
3
3
  export type Content = __esri.content.Content;
4
+ export type TextContent = __esri.content.TextContent;
4
5
  export const TextContent: typeof __esri.content.TextContent;
6
+ export type MediaContent = __esri.content.MediaContent;
5
7
  export const MediaContent: typeof __esri.content.MediaContent;
8
+ export type FieldsContent = __esri.content.FieldsContent;
6
9
  export const FieldsContent: typeof __esri.content.FieldsContent;
10
+ export type AttachmentsContent = __esri.content.AttachmentsContent;
7
11
  export const AttachmentsContent: typeof __esri.content.AttachmentsContent;
12
+ export type CustomContent = __esri.content.CustomContent;
8
13
  export const CustomContent: typeof __esri.content.CustomContent;
14
+ export type ExpressionContent = __esri.content.ExpressionContent;
9
15
  export const ExpressionContent: typeof __esri.content.ExpressionContent;
16
+ export type RelationshipContent = __esri.content.RelationshipContent;
10
17
  export const RelationshipContent: typeof __esri.content.RelationshipContent;
18
+ export type UtilityNetworkAssociationsContent = __esri.content.UtilityNetworkAssociationsContent;
11
19
  export const UtilityNetworkAssociationsContent: typeof __esri.content.UtilityNetworkAssociationsContent;
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../chunks/tslib.es6.js";import o from"../../core/Clonable.js";import e from"../../core/JSONSupport.js";import{property as s}from"../../core/accessorSupport/decorators/property.js";import{Integer as r}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";let i=class extends(o.ClonableMixin(e)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.open=!1,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};t([s({type:String,json:{write:!0}})],i.prototype,"title",void 0),t([s({type:String,json:{write:!0}})],i.prototype,"description",void 0),t([s({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],i.prototype,"type",void 0),t([s({type:Boolean,json:{read:!1}})],i.prototype,"open",void 0),t([s({type:Number,json:{type:r,write:!0}})],i.prototype,"associatedNetworkSourceId",void 0),t([s({type:Number,json:{type:r,write:!0}})],i.prototype,"associatedAssetGroup",void 0),t([s({type:Number,json:{type:r,write:!0}})],i.prototype,"associatedAssetType",void 0),i=t([p("esri.popup.support.UtilityNetworkAssociationType")],i);const c=i;export{c as default};
5
+ import{_ as t}from"../../chunks/tslib.es6.js";import o from"../../core/Clonable.js";import e from"../../core/JSONSupport.js";import{property as s}from"../../core/accessorSupport/decorators/property.js";import{Integer as r}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";let i=class extends(o.ClonableMixin(e)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};t([s({type:String,json:{write:!0}})],i.prototype,"title",void 0),t([s({type:String,json:{write:!0}})],i.prototype,"description",void 0),t([s({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],i.prototype,"type",void 0),t([s({type:Number,json:{type:r,write:!0}})],i.prototype,"associatedNetworkSourceId",void 0),t([s({type:Number,json:{type:r,write:!0}})],i.prototype,"associatedAssetGroup",void 0),t([s({type:Number,json:{type:r,write:!0}})],i.prototype,"associatedAssetType",void 0),i=t([p("esri.popup.support.UtilityNetworkAssociationType")],i);const c=i;export{c as default};
@@ -1,9 +1,16 @@
1
1
  import "./interfaces";
2
2
 
3
+ export type FlowRenderer = __esri.rasterRenderers.FlowRenderer;
3
4
  export const FlowRenderer: typeof __esri.rasterRenderers.FlowRenderer;
5
+ export type ClassBreaksRenderer = __esri.rasterRenderers.ClassBreaksRenderer;
4
6
  export const ClassBreaksRenderer: typeof __esri.rasterRenderers.ClassBreaksRenderer;
7
+ export type UniqueValueRenderer = __esri.rasterRenderers.UniqueValueRenderer;
5
8
  export const UniqueValueRenderer: typeof __esri.rasterRenderers.UniqueValueRenderer;
9
+ export type RasterColormapRenderer = __esri.rasterRenderers.RasterColormapRenderer;
6
10
  export const RasterColormapRenderer: typeof __esri.rasterRenderers.RasterColormapRenderer;
11
+ export type RasterStretchRenderer = __esri.rasterRenderers.RasterStretchRenderer;
7
12
  export const RasterStretchRenderer: typeof __esri.rasterRenderers.RasterStretchRenderer;
13
+ export type VectorFieldRenderer = __esri.rasterRenderers.VectorFieldRenderer;
8
14
  export const VectorFieldRenderer: typeof __esri.rasterRenderers.VectorFieldRenderer;
15
+ export type RasterShadedReliefRenderer = __esri.rasterRenderers.RasterShadedReliefRenderer;
9
16
  export const RasterShadedReliefRenderer: typeof __esri.rasterRenderers.RasterShadedReliefRenderer;
package/renderers.d.ts CHANGED
@@ -1,11 +1,18 @@
1
1
  import "./interfaces";
2
2
 
3
+ export type DictionaryRenderer = __esri.renderers.DictionaryRenderer;
3
4
  export const DictionaryRenderer: typeof __esri.renderers.DictionaryRenderer;
5
+ export type SimpleRenderer = __esri.renderers.SimpleRenderer;
4
6
  export const SimpleRenderer: typeof __esri.renderers.SimpleRenderer;
7
+ export type ClassBreaksRenderer = __esri.renderers.ClassBreaksRenderer;
5
8
  export const ClassBreaksRenderer: typeof __esri.renderers.ClassBreaksRenderer;
9
+ export type UniqueValueRenderer = __esri.renderers.UniqueValueRenderer;
6
10
  export const UniqueValueRenderer: typeof __esri.renderers.UniqueValueRenderer;
11
+ export type DotDensityRenderer = __esri.renderers.DotDensityRenderer;
7
12
  export const DotDensityRenderer: typeof __esri.renderers.DotDensityRenderer;
13
+ export type PieChartRenderer = __esri.renderers.PieChartRenderer;
8
14
  export const PieChartRenderer: typeof __esri.renderers.PieChartRenderer;
9
15
  export type RendererWithVisualVariables = __esri.renderers.RendererWithVisualVariables;
16
+ export type HeatmapRenderer = __esri.renderers.HeatmapRenderer;
10
17
  export const HeatmapRenderer: typeof __esri.renderers.HeatmapRenderer;
11
18
  export type Renderer = __esri.renderers.Renderer;
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../Graphic.js";import{pickRandom as r}from"../../../core/arrayUtils.js";import i from"../../../core/Error.js";import{throwIfAborted as s}from"../../../core/promiseUtils.js";import{property as a}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{isHostedAgolService as n}from"../../../layers/support/arcgisLayerUrl.js";import{isTimeOnlyField as l,isNumericField as u}from"../../../layers/support/fieldUtils.js";import{generateRenderer as m}from"../../../rest/generateRenderer.js";import c from"../../../rest/support/GenerateRendererParameters.js";import h from"../../../rest/support/StatisticDefinition.js";import p from"../../../rest/support/UniqueValueDefinition.js";import{getArcadeForPredominantCategory as d,getSQLForPredominantCategoryName as f}from"../../statistics/support/predominanceUtils.js";import{mergeWhereClauses as y,getSQLFilterForNormalization as F,getRangeExpr as S}from"../../statistics/support/utils.js";import{WorkerClient as g}from"../../statistics/support/WorkerClient.js";import{isAnyDateField as w,fieldDelimiter as v}from"../utils.js";import _ from"./InMemoryLayerAdapter.js";import{getQueryParamsForExpr as x,getDataRange as q,getAttributeBinsQuery as z,processQueryAttributeBinsResult as V,binParamsFromGenRend as E}from"./support/histogramUtils.js";import{ensureFeaturesJSON as L,getSummaryStatsQuery as T,getSummaryStatisticsFromFeatureSet as j,getUVQuery as Q,getUniqueValuesFromFeatureSet as b,defaultNumBins as N,updateQueryWithFeatureFilter as C,getHistogramFromFeatureSet as B,getFieldExpr as M,getDomainsForFields as R,getBins as I,getPredominantCategoriesFromUVInfos as $,getMissingFields as O}from"./support/utils.js";import{processSummaryStatisticsResult as k,createUVResult as A,getEqualIntervalBins as D,createClassBreaksDefinition as G,resolveCBResult as U}from"../../../statistics/utils.js";import{getScaleToResolutionFactor as J}from"../../../views/2d/viewpointUtils.js";const P=5,W=2e4,H=4e5;let Z=class extends _{constructor(){super(...arguments),this.adapterName="feature-layer-adapter"}_isStatsSupportedOnService(){const e=this.layer;if(!e.capabilities?.query?.supportsStatistics||"multipatch"===this.geometryType&&!n(e.url)&&e.version<10.5)throw new i(`${this.adapterName}:not-supported`,"Layer does not support statistics query");return Promise.resolve()}_fetchFeaturesFromService(e,t){return this.layer.queryFeatures(e,{signal:t}).then((e=>e.features))}_fetchFeaturesJSONFromService(e,t){return this._fetchFeaturesFromService(e,t).then(L)}_summaryStatsFromGenRend(e){const t=e.normalizationType,r=e.normalizationField;return this.classBreaks({field:e.field,numClasses:P,classificationMethod:"standard-deviation",standardDeviationInterval:.25,normalizationType:t,normalizationField:"field"===t?r:void 0,minValue:e.minValue,maxValue:e.maxValue,filter:e.filter,signal:e.signal}).then((t=>{let r,i,s;if(t.classBreakInfos?.some((e=>(e.hasAvg&&(r=e),!!r))),r){const e=r.maxValue-r.minValue;i=r.minValue+e/2,s=4*e}const a={min:t.minValue,max:t.maxValue,avg:i,stddev:s};return k(a,e.outStatisticTypes)}))}async _summaryStatsFromServiceQuery(e,t){await this._isStatsSupportedOnService(),"percent-of-total"===e.normalizationType&&(e.normalizationTotal=await this._getNormalizationTotal(e.field,e.normalizationType,e.filter));const r=w(t)||l(t),i=T(this,e,t),s=await this.layer.queryFeatures(i,{signal:e.signal}),a=j(s,r);return k(a,e.outStatisticTypes)}_uvFromGenRenderer(e,t){const r=e.field??void 0,i=new p({attributeField:r}),s=new c({classificationDefinition:i});return this.generateRenderer(s,e.signal).then((e=>{const t={},i=this.getField(r);return e.uniqueValues.forEach((e=>{let r=e.value;null!=r&&""!==r&&("string"!=typeof r||""!==r.trim()&&"<null>"!==r.toLowerCase())||(r=null),null==t[r]?t[r]={count:e.count,data:u(i)&&r?Number(r):r}:t[r].count=t[r].count+e.count})),{count:t}})).then((r=>A(r,[t],e.returnAllCodedValues)))}async _uvFromServiceQuery(e,t){return this._isStatsSupportedOnService().then((()=>this.layer.queryFeatures(Q(this,e),{signal:e.signal}))).then((t=>b(t,{layer:this,field:e.field,field2:e.field2,field3:e.field3,fieldDelimiter:v,view:e.view,signal:e.signal}))).then((r=>A(r,t,e.returnAllCodedValues,v)))}_getNormalizationTotal(e,t,r,i){return e&&"percent-of-total"===t?this.summaryStatistics({field:e,outStatisticTypes:{include:["sum"]},filter:r,signal:i}).then((e=>e.sum)):Promise.resolve(null)}_histogramForExpr(e){return this._getNormalizationTotal(e.field,e.normalizationType,e.filter,e.signal).then((t=>{const r=x(e,this,t);return q(r,this,e.minValue,e.maxValue).then((i=>{const s=i.min,a=i.max;if(null==s||null==a)return{bins:[],minValue:s,maxValue:a,normalizationTotal:t};const o=e.numBins||N,n=D(s,a,o),l=K(r.sqlExpression,n,null!=e.minValue&&null!=e.maxValue),u=new h({statisticType:"count",outStatisticFieldName:"countOFExpr",onStatisticField:"1"}),m=this.layer.createQuery();return m.where=y(m.where,r.sqlWhere),m.sqlFormat="standard",m.outStatistics=[u],m.groupByFieldsForStatistics=[l],m.orderByFields=[l],C(m,e.filter),this._isStatsSupportedOnService().then((()=>this.layer.queryFeatures(m,{signal:r.signal}))).then((e=>B(e,s,a,o,t)))}))}))}async _histogramFromQueryAttributeBins(e){const{field:t,normalizationType:r,filter:i,signal:s}=e,a=await this._getNormalizationTotal(t,r,i,s),o=this.layer.createQuery(),{query:n,min:l,max:u}=await z(e,this,a,o?.where);if(!n)return{bins:[],minValue:l,maxValue:u,normalizationTotal:a};const m=await this.layer.queryAttributeBins(n,{signal:s});return V(m,t?this.getField(t):null,{minValue:l,maxValue:u,normalizationTotal:a})}_classBreaksFromGenRend(e){const{field:t,normalizationType:r,normalizationField:i,normalizationTotal:s,signal:a}=e,o=F({field:t,normalizationType:r,normalizationField:i}),n=M({field:t,normalizationType:r,normalizationField:i,normalizationTotal:s,layer:this}),l=S(n,e.minValue,e.maxValue),u=G({field:t,normalizationType:r,normalizationField:i,classificationMethod:e.classificationMethod,standardDeviationInterval:e.standardDeviationInterval,breakCount:e.numClasses||P}),m=new c({classificationDefinition:u});return m.where=y(o,l),this.generateRenderer(m,a).then((t=>U(t,e.classificationMethod)))}async summaryStatistics(e){const{field:t,normalizationType:r,sqlExpression:a,view:o,features:n,useFeaturesInView:u}=e,m=t?this.getField(t):null,c=w(m)||l(m),h=e.valueExpression||a,p=h&&!a,d=this._hasLocalSource||n||u,f=o&&"3d"===o.type;if(d||p)return p||n||u||f?this._summaryStatsFromMemory(e,m):this._summaryStatsFromClientQuery(e,m);if(!this.supportsSQLExpression&&(c||h||"natural-log"===r||"square-root"===r))throw new i(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return(r&&!this.supportsSQLExpression?this._summaryStatsFromGenRend(e):this._summaryStatsFromServiceQuery(e,m)).catch((()=>(s(e.signal),this._summaryStatsFromMemory(e,m))))}async uniqueValues(e){const{valueExpression:t,sqlExpression:r,features:i,useFeaturesInView:a,signal:o}=e,n=t&&(!r||!this.supportsSQLExpression),l=this._hasLocalSource||i||a||n,u=e.view,m=u&&"3d"===u.type,c=await R(e,this);return l?n||i||a||m?this._uvFromMemory(e,c):this._uvFromClientQuery(e,c):this._uvFromServiceQuery(e,c).catch((t=>(s(o),!e.field||e.field2||e.field3||e.filter?t:this._uvFromGenRenderer(e,c[0])))).catch((()=>(s(o),m?this._uvFromMemory(e,c):this._uvFromClientQuery(e,c))))}async histogram(e){const{field:t,normalizationType:r,normalizationField:a,classificationMethod:o,view:n,filter:u,signal:m}=e,c=t?this.getField(t):null,h=w(c)||l(c),p=e.valueExpression||e.sqlExpression,d=p&&!e.sqlExpression,f=this._hasLocalSource||e.features||e.useFeaturesInView||d,y=this.supportsSQLExpression,F=!o||"equal-interval"===o,g=e.minValue,v=e.maxValue,_=null!=g&&null!=v,x=e.numBins||N;if(f)return this._histogramFromMemory(e);if(this.layer.capabilities?.operations?.supportsQueryBins&&e.useQueryAttributeBins)try{return await this._histogramFromQueryAttributeBins(e)}catch{return s(m),this._histogramFromQueryAttributeBinsFromMemory(e)}if((p||y)&&F){if(!y&&(p||"natural-log"===r||"square-root"===r))throw new i(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return this._histogramForExpr(e)}if(h&&F)throw new i(`${this.adapterName}:not-supported`,"Normalization and date field are not allowed when layer does not support standardized SQL expression for queries");return r||!F?E(e,this).then((s=>{if(!_)return I(this,s,t,x,n,u,m);if(g>s.max||v<s.min)throw new i(`${this.adapterName}:insufficient-data`,"Range defined by 'minValue' and 'maxValue' does not intersect available data range of the field");if(F)return I(this,{min:g,max:v,sqlExpr:s.sqlExpr,excludeZerosExpr:s.excludeZerosExpr},t,x,n,u,m);{const i={field:t,normalizationType:r,normalizationField:a,normalizationTotal:s.normTotal,layer:this},o=M(i),l=S(o,g,v);return E(e,this,l).then((e=>I(this,e,t,x,n,u,m)))}})):this._histogramForField(e)}async classBreaks(e){const t=!1!==e.analyzeData,r=this._hasLocalSource||e.features||e.useFeaturesInView||e.valueExpression||e.filter;if(t&&r)return this._classBreaksFromMemory(e);return(t?this._classBreaksFromGenRend(e):this._classBreaksFromInterpolation(e)).catch((()=>(s(e.signal),this._classBreaksFromMemory(e))))}async queryFeatureCount(e){if(this._hasLocalSource)throw new i(`${this.adapterName}:not-supported`,"Layer does not support count query");const t=this.layer,r=t.createQuery();return r.where=y(r.where,e.whereClause),C(r,e.filter),t.queryFeatureCount(r,{signal:e.signal})}async generateRenderer(e,t){const r=this.layer;if(this._hasLocalSource||r.version<10.1)throw new i(`${this.adapterName}:not-supported`,"Layer does not support generateRenderer operation (requires ArcGIS Server version 10.1+)");const s=r.createQuery();return e.where=y(e.where,s.where),m(r.parsedUrl?.path??"",{source:r.dynamicDataSource??void 0,gdbVersion:r.gdbVersion??void 0},e,{signal:t})}async predominantCategories(e){if(!this._hasLocalSource&&!this.supportsSQLExpression)throw new i(`${this.adapterName}:not-supported`,"Layer does not support advanced SQL expressions and standardized queries");const{fields:t,view:r,signal:s,filter:a}=e,o=d(t),n=f(t),l=r&&this._hasLocalSource?await this._uvFromMemory({valueExpression:o,view:r,signal:s,filter:a}):await this._uvFromServiceQuery({sqlExpression:n.expression,valueExpression:o,signal:s,filter:a});return $(l.uniqueValueInfos,t)}async getSampleFeatures(e,i){const{view:a,requiredFields:o,returnGeometry:n,filter:l,signal:u}=e,m=e.sampleSize;if(null==m||0===m)return[];const c=this.layer.createQuery(),h=1,p="json"===i;c.outSpatialReference=a?.spatialReference,c.returnGeometry=!!n,c.outFields=o,C(c,l);let d=[],f=!1;if(a)try{const s=await a.whenLayerView(this.layer);if(f=!O(this,o,s).length,f){if(m>=1&&!e.filter&&"getSampleFeatures"in s){await this._waitForLayerViewUpdate(s);const e=await s.getSampleFeatures({minFeatureCount:m,sampleSize:m});if(null!=e)return p?e:e.map((e=>t.fromJSON(e)))}if(d=await this._fetchFeaturesFromMemory(s,c,u,i),d.length>=m&&m>0)return r(d,m,h)}}catch(y){s(u)}try{if(this._hasLocalSource)return f?d:p?await this._fetchFeaturesJSONFromService(c,u):await this._fetchFeaturesFromService(c,u);const t=await this.queryFeatureCount({view:a,filter:l,signal:u}),i=this.layer.capabilities.query.maxRecordCount;let s=-1===m?t:m;if(s=i&&s>i?i:s,t<=d.length||d.length>=i)return d;if(c.maxAllowableOffset=e.resolution||(a?a.extent.width/a.width/a.scale:J(this.layer.spatialReference))*H,t<=s)return p?await this._fetchFeaturesJSONFromService(c,u):await this._fetchFeaturesFromService(c,u);if(t<=W){const e=this.layer.createQuery();C(e,l);const t=await this.layer.queryObjectIds();return c.objectIds=r(t,s,h),p?await this._fetchFeaturesJSONFromService(c,u):await this._fetchFeaturesFromService(c,u)}return this.layer.capabilities?.query?.supportsPagination&&(c.num=Math.min(s,W)),p?await this._fetchFeaturesJSONFromService(c,u):await this._fetchFeaturesFromService(c,u)}catch(y){return s(u),d}}load(e){const t=this.layer.load(e).then((async t=>{this.geometryType=t.geometryType,this.objectIdField=t.objectIdField,this.supportsSQLExpression=t.capabilities?.query?.supportsSqlExpression,this._hasLocalSource=!t.url&&!!t.source,this.hasQueryEngine=this._hasLocalSource,this.minScale=t.minScale,this.maxScale=t.maxScale,this.fullExtent=t.fullExtent,this.workerClient=g.getInstance(),await this.workerClient.open(e.signal)}));return this.addResolvingPromise(t),Promise.resolve(this)}};function K(e,t,r){const i=[],s=t.length;return t.forEach(((t,a)=>{const[o,n]=t;let l=null;l=0!==a||r?a!==s-1||r?y(`${e} >= ${o}`,`${e} ${a===s-1?" <= ":" < "} ${n}`):`${e} >= ${o}`:`${e} < ${n}`,i.push("WHEN ("+l+") THEN "+(a+1))})),["CASE",i.join(" "),"ELSE 0","END"].join(" ")}e([a({readOnly:!0})],Z.prototype,"adapterName",void 0),e([a({constructOnly:!0})],Z.prototype,"layer",void 0),Z=e([o("esri.smartMapping.support.adapters.FeatureLayerAdapter")],Z);const X=Z;export{X as default};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../Graphic.js";import{pickRandom as r}from"../../../core/arrayUtils.js";import i from"../../../core/Error.js";import{throwIfAborted as s}from"../../../core/promiseUtils.js";import{property as a}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{isHostedAgolService as n}from"../../../layers/support/arcgisLayerUrl.js";import{isTimeOnlyField as l,isNumericField as u}from"../../../layers/support/fieldUtils.js";import{generateRenderer as m}from"../../../rest/generateRenderer.js";import c from"../../../rest/support/GenerateRendererParameters.js";import h from"../../../rest/support/StatisticDefinition.js";import p from"../../../rest/support/UniqueValueDefinition.js";import{getArcadeForPredominantCategory as d,getSQLForPredominantCategoryName as f}from"../../statistics/support/predominanceUtils.js";import{mergeWhereClauses as y,getSQLFilterForNormalization as F,getRangeExpr as S}from"../../statistics/support/utils.js";import{WorkerClient as g}from"../../statistics/support/WorkerClient.js";import{isAnyDateField as w,fieldDelimiter as v}from"../utils.js";import x from"./InMemoryLayerAdapter.js";import{getQueryParamsForExpr as _,getDataRange as E,getAttributeBinsQuery as q,processQueryAttributeBinsResult as z,binParamsFromGenRend as V}from"./support/histogramUtils.js";import{ensureFeaturesJSON as L,getSummaryStatsQuery as T,getSummaryStatisticsFromFeatureSet as Q,getUVQuery as j,getUniqueValuesFromFeatureSet as b,defaultNumBins as N,updateQueryWithFeatureFilter as C,getHistogramFromFeatureSet as B,getFieldExpr as M,getDomainsForFields as R,getBins as I,getPredominantCategoriesFromUVInfos as $,getMissingFields as O}from"./support/utils.js";import{processSummaryStatisticsResult as k,createUVResult as A,getEqualIntervalBins as D,createClassBreaksDefinition as G,resolveCBResult as U}from"../../../statistics/utils.js";import{getScaleToResolutionFactor as J}from"../../../views/2d/viewpointUtils.js";const P=5,W=2e4,H=4e5;let Z=class extends x{constructor(){super(...arguments),this.adapterName="feature-layer-adapter"}_isStatsSupportedOnService(){const e=this.layer;if(!e.capabilities?.query?.supportsStatistics||"multipatch"===this.geometryType&&!n(e.url)&&e.version<10.5)throw new i(`${this.adapterName}:not-supported`,"Layer does not support statistics query");return Promise.resolve()}_fetchFeaturesFromService(e,t){return this.layer.queryFeatures(e,{signal:t}).then((e=>e.features))}_fetchFeaturesJSONFromService(e,t){return this._fetchFeaturesFromService(e,t).then(L)}_summaryStatsFromGenRend(e){const t=e.normalizationType,r=e.normalizationField;return this.classBreaks({field:e.field,numClasses:P,classificationMethod:"standard-deviation",standardDeviationInterval:.25,normalizationType:t,normalizationField:"field"===t?r:void 0,minValue:e.minValue,maxValue:e.maxValue,filter:e.filter,signal:e.signal}).then((t=>{let r,i,s;if(t.classBreakInfos?.some((e=>(e.hasAvg&&(r=e),!!r))),r){const e=r.maxValue-r.minValue;i=r.minValue+e/2,s=4*e}const a={min:t.minValue,max:t.maxValue,avg:i,stddev:s};return k(a,e.outStatisticTypes)}))}async _summaryStatsFromServiceQuery(e,t){await this._isStatsSupportedOnService(),"percent-of-total"===e.normalizationType&&(e.normalizationTotal=await this._getNormalizationTotal(e.field,e.normalizationType,e.filter));const r=w(t)||l(t),i=T(this,e,t),s=await this.layer.queryFeatures(i,{signal:e.signal}),a=Q(s,r);return k(a,e.outStatisticTypes)}_uvFromGenRenderer(e,t){const r=e.field??void 0,i=new p({attributeField:r}),s=new c({classificationDefinition:i});return this.generateRenderer(s,e.signal).then((e=>{const t={},i=this.getField(r);return e.uniqueValues.forEach((e=>{let r=e.value;null!=r&&""!==r&&("string"!=typeof r||""!==r.trim()&&"<null>"!==r.toLowerCase())||(r=null),null==t[r]?t[r]={count:e.count,data:u(i)&&r?Number(r):r}:t[r].count=t[r].count+e.count})),{count:t}})).then((r=>A(r,[t],e.returnAllCodedValues)))}async _uvFromServiceQuery(e,t){return this._isStatsSupportedOnService().then((()=>this.layer.queryFeatures(j(this,e),{signal:e.signal}))).then((t=>b(t,{layer:this,field:e.field,field2:e.field2,field3:e.field3,fieldDelimiter:v,view:e.view,signal:e.signal}))).then((r=>A(r,t,e.returnAllCodedValues,v)))}_getNormalizationTotal(e,t,r,i){return e&&"percent-of-total"===t?this.summaryStatistics({field:e,outStatisticTypes:{include:["sum"]},filter:r,signal:i}).then((e=>e.sum)):Promise.resolve(null)}_histogramForExpr(e){return this._getNormalizationTotal(e.field,e.normalizationType,e.filter,e.signal).then((t=>{const r=_(e,this,t);return E(r,this,e.minValue,e.maxValue).then((i=>{const s=i.min,a=i.max;if(null==s||null==a)return{bins:[],minValue:s,maxValue:a,normalizationTotal:t};const o=e.numBins||N,n=D(s,a,o),l=K(r.sqlExpression,n,null!=e.minValue&&null!=e.maxValue),u=new h({statisticType:"count",outStatisticFieldName:"countOFExpr",onStatisticField:"1"}),m=this.layer.createQuery();return m.where=y(m.where,r.sqlWhere),m.sqlFormat="standard",m.outStatistics=[u],m.groupByFieldsForStatistics=[l],m.orderByFields=[l],C(m,e.filter),this._isStatsSupportedOnService().then((()=>this.layer.queryFeatures(m,{signal:r.signal}))).then((e=>B(e,s,a,o,t)))}))}))}async _histogramFromQueryAttributeBins(e){const{field:t,normalizationType:r,filter:i,signal:s}=e,a=await this._getNormalizationTotal(t,r,i,s),o=this.layer.createQuery(),{query:n,min:l,max:u}=await q(e,this,a,o?.where);if(!n)return{bins:[],minValue:l,maxValue:u,normalizationTotal:a};const m=await this.layer.queryAttributeBins(n,{signal:s});return z(m,t?this.getField(t):null,{minValue:l,maxValue:u,normalizationTotal:a})}_classBreaksFromGenRend(e){const{field:t,normalizationType:r,normalizationField:i,normalizationTotal:s,signal:a}=e,o=F({field:t,normalizationType:r,normalizationField:i}),n=M({field:t,normalizationType:r,normalizationField:i,normalizationTotal:s,layer:this}),l=S(n,e.minValue,e.maxValue),u=G({field:t,normalizationType:r,normalizationField:i,classificationMethod:e.classificationMethod,standardDeviationInterval:e.standardDeviationInterval,breakCount:e.numClasses||P}),m=new c({classificationDefinition:u});return m.where=y(o,l),this.generateRenderer(m,a).then((t=>U(t,e.classificationMethod)))}async summaryStatistics(e){const{field:t,normalizationType:r,valueExpression:a,sqlExpression:o,view:n,features:u,useFeaturesInView:m}=e,c=t?this.getField(t):null,h=w(c)||l(c),p=a&&!(o&&this.supportsSQLExpression),d=this._hasLocalSource||u||m,f=n&&"3d"===n.type;if(d||p)return p||u||m||f?this._summaryStatsFromMemory(e,c):this._summaryStatsFromClientQuery(e,c);if(!this.supportsSQLExpression&&(h||o||"natural-log"===r||"square-root"===r))throw new i(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return(r&&!this.supportsSQLExpression?this._summaryStatsFromGenRend(e):this._summaryStatsFromServiceQuery(e,c)).catch((()=>(s(e.signal),this._summaryStatsFromMemory(e,c))))}async uniqueValues(e){const{valueExpression:t,sqlExpression:r,features:i,useFeaturesInView:a,signal:o}=e,n=t&&!(r&&this.supportsSQLExpression),l=this._hasLocalSource||i||a||n,u=e.view,m=u&&"3d"===u.type,c=await R(e,this);return l?n||i||a||m?this._uvFromMemory(e,c):this._uvFromClientQuery(e,c):this._uvFromServiceQuery(e,c).catch((t=>(s(o),!e.field||e.field2||e.field3||e.filter?t:this._uvFromGenRenderer(e,c[0])))).catch((()=>(s(o),m?this._uvFromMemory(e,c):this._uvFromClientQuery(e,c))))}async histogram(e){const{field:t,normalizationType:r,normalizationField:a,classificationMethod:o,view:n,filter:u,signal:m}=e,c=t?this.getField(t):null,h=w(c)||l(c),p=e.valueExpression||e.sqlExpression,d=e.valueExpression&&!(e.sqlExpression&&this.supportsSQLExpression),f=this._hasLocalSource||e.features||e.useFeaturesInView||d,y=this.supportsSQLExpression,F=!o||"equal-interval"===o,g=e.minValue,v=e.maxValue,x=null!=g&&null!=v,_=e.numBins||N;if(f)return this._histogramFromMemory(e);if(this.layer.capabilities?.operations?.supportsQueryBins&&e.useQueryAttributeBins)try{return await this._histogramFromQueryAttributeBins(e)}catch{return s(m),this._histogramFromQueryAttributeBinsFromMemory(e)}if((p||y)&&F){if(!y&&(p||"natural-log"===r||"square-root"===r))throw new i(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return this._histogramForExpr(e)}if(h&&F)throw new i(`${this.adapterName}:not-supported`,"Normalization and date field are not allowed when layer does not support standardized SQL expression for queries");return r||!F?V(e,this).then((s=>{if(!x)return I(this,s,t,_,n,u,m);if(g>s.max||v<s.min)throw new i(`${this.adapterName}:insufficient-data`,"Range defined by 'minValue' and 'maxValue' does not intersect available data range of the field");if(F)return I(this,{min:g,max:v,sqlExpr:s.sqlExpr,excludeZerosExpr:s.excludeZerosExpr},t,_,n,u,m);{const i={field:t,normalizationType:r,normalizationField:a,normalizationTotal:s.normTotal,layer:this},o=M(i),l=S(o,g,v);return V(e,this,l).then((e=>I(this,e,t,_,n,u,m)))}})):this._histogramForField(e)}async classBreaks(e){const t=!1!==e.analyzeData,r=this._hasLocalSource||e.features||e.useFeaturesInView||e.valueExpression||e.filter;if(t&&r)return this._classBreaksFromMemory(e);return(t?this._classBreaksFromGenRend(e):this._classBreaksFromInterpolation(e)).catch((()=>(s(e.signal),this._classBreaksFromMemory(e))))}async queryFeatureCount(e){if(this._hasLocalSource)throw new i(`${this.adapterName}:not-supported`,"Layer does not support count query");const t=this.layer,r=t.createQuery();return r.where=y(r.where,e.whereClause),C(r,e.filter),t.queryFeatureCount(r,{signal:e.signal})}async generateRenderer(e,t){const r=this.layer;if(this._hasLocalSource||r.version<10.1)throw new i(`${this.adapterName}:not-supported`,"Layer does not support generateRenderer operation (requires ArcGIS Server version 10.1+)");const s=r.createQuery();return e.where=y(e.where,s.where),m(r.parsedUrl?.path??"",{source:r.dynamicDataSource??void 0,gdbVersion:r.gdbVersion??void 0},e,{signal:t})}async predominantCategories(e){if(!this._hasLocalSource&&!this.supportsSQLExpression)throw new i(`${this.adapterName}:not-supported`,"Layer does not support advanced SQL expressions and standardized queries");const{fields:t,view:r,signal:s,filter:a}=e,o=d(t),n=f(t),l=r&&this._hasLocalSource?await this._uvFromMemory({valueExpression:o,view:r,signal:s,filter:a}):await this._uvFromServiceQuery({sqlExpression:n.expression,valueExpression:o,signal:s,filter:a});return $(l.uniqueValueInfos,t)}async getSampleFeatures(e,i){const{view:a,requiredFields:o,returnGeometry:n,filter:l,signal:u}=e,m=e.sampleSize;if(null==m||0===m)return[];const c=this.layer.createQuery(),h=1,p="json"===i;c.outSpatialReference=a?.spatialReference,c.returnGeometry=!!n,c.outFields=o,C(c,l);let d=[],f=!1;if(a)try{const s=await a.whenLayerView(this.layer);if(f=!O(this,o,s).length,f){if(m>=1&&!e.filter&&"getSampleFeatures"in s){await this._waitForLayerViewUpdate(s);const e=await s.getSampleFeatures({minFeatureCount:m,sampleSize:m});if(null!=e)return p?e:e.map((e=>t.fromJSON(e)))}if(d=await this._fetchFeaturesFromMemory(s,c,u,i),d.length>=m&&m>0)return r(d,m,h)}}catch(y){s(u)}try{if(this._hasLocalSource)return f?d:p?await this._fetchFeaturesJSONFromService(c,u):await this._fetchFeaturesFromService(c,u);const t=await this.queryFeatureCount({view:a,filter:l,signal:u}),i=this.layer.capabilities.query.maxRecordCount;let s=-1===m?t:m;if(s=i&&s>i?i:s,t<=d.length||d.length>=i)return d;if(c.maxAllowableOffset=e.resolution||(a?a.extent.width/a.width/a.scale:J(this.layer.spatialReference))*H,t<=s)return p?await this._fetchFeaturesJSONFromService(c,u):await this._fetchFeaturesFromService(c,u);if(t<=W){const e=this.layer.createQuery();C(e,l);const t=await this.layer.queryObjectIds();return c.objectIds=r(t,s,h),p?await this._fetchFeaturesJSONFromService(c,u):await this._fetchFeaturesFromService(c,u)}return this.layer.capabilities?.query?.supportsPagination&&(c.num=Math.min(s,W)),p?await this._fetchFeaturesJSONFromService(c,u):await this._fetchFeaturesFromService(c,u)}catch(y){return s(u),d}}load(e){const t=this.layer.load(e).then((async t=>{this.geometryType=t.geometryType,this.objectIdField=t.objectIdField,this.supportsSQLExpression=t.capabilities?.query?.supportsSqlExpression,this._hasLocalSource=!t.url&&!!t.source,this.hasQueryEngine=this._hasLocalSource,this.minScale=t.minScale,this.maxScale=t.maxScale,this.fullExtent=t.fullExtent,this.workerClient=g.getInstance(),await this.workerClient.open(e.signal)}));return this.addResolvingPromise(t),Promise.resolve(this)}};function K(e,t,r){const i=[],s=t.length;return t.forEach(((t,a)=>{const[o,n]=t;let l=null;l=0!==a||r?a!==s-1||r?y(`${e} >= ${o}`,`${e} ${a===s-1?" <= ":" < "} ${n}`):`${e} >= ${o}`:`${e} < ${n}`,i.push("WHEN ("+l+") THEN "+(a+1))})),["CASE",i.join(" "),"ELSE 0","END"].join(" ")}e([a({readOnly:!0})],Z.prototype,"adapterName",void 0),e([a({constructOnly:!0})],Z.prototype,"layer",void 0),Z=e([o("esri.smartMapping.support.adapters.FeatureLayerAdapter")],Z);const X=Z;export{X 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.32/esri/copyright.txt for details.
4
4
  */
5
- import{convertDateFormatToIntlOptions as t,formatDate as e,formatTimestamp as r,formatTimeOnly as i,formatDateOnly as n}from"../../intl/date.js";import{isDateField as s,isDateOnlyField as o,isTimestampOffsetField as a}from"../../layers/support/fieldUtils.js";import{loadArcade as c}from"../../support/arcadeOnDemand.js";import{getWellKnownBasemapId as l}from"../../support/basemapUtils.js";import{getTimeZoneFormattingOptions as g,utc as d}from"../../time/timeZoneUtils.js";const m=",",u={light:["streets","gray","topo","terrain","oceans","osm","gray-vector","streets-vector","topo-vector","streets-relief-vector","streets-navigation-vector","topo-3d","navigation-3d","streets-3d","osm-3d","gray-3d","arcgis-light-gray","arcgis-navigation","arcgis-streets","arcgis-streets-relief","arcgis-topographic","arcgis-oceans","osm-standard","osm-standard-relief","osm-streets","osm-streets-relief","osm-light-gray","arcgis-terrain","arcgis-charted-territory","arcgis-community","arcgis-colored-pencil","arcgis-modern-antique","arcgis-midcentury","arcgis-newspaper","arcgis-hillshade-light"],dark:["satellite","hybrid","dark-gray","dark-gray-vector","streets-night-vector","navigation-dark-3d","streets-dark-3d","dark-gray-3d","arcgis-imagery","arcgis-imagery-standard","arcgis-dark-gray","arcgis-navigation-night","arcgis-streets-night","osm-dark-gray","arcgis-nova","arcgis-hillshade-dark"]},f="percent-of-total",p="field",y={exclude:["median"]},h={years:365,months:30,days:1,hours:1/24,minutes:1/1440,seconds:1/86400,milliseconds:1/864e5},v=new Set(["integer","small-integer"]);let T=null;const Z=["date","date-only","timestamp-offset"];function $(t){return s(t)||o(t)||a(t)}async function w(t){const{field:e,field2:r,field3:i,normalizationField:n,valueExpression:s}=t;let o=[];if(s){if(!T){const{arcadeUtils:t}=await c();T=t}o=T.extractFieldNames(s)}return e&&o.push(e),r&&o.push(r),i&&o.push(i),n&&o.push(n),o}function U(t){let e=t.normalizationType;return e||(t.normalizationField?e=p:null!=t.normalizationTotal&&(e=f)),e??void 0}function k(t){return String(t).padStart(2,"0")}function D(t,e,r){let i;if("date"===e||"number"===e){"number"===e&&(t=new Date(t));i=`TIMESTAMP'${r?t.getFullYear():t.getUTCFullYear()}-${k((r?t.getMonth():t.getUTCMonth())+1)}-${k(r?t.getDate():t.getUTCDate())} ${k(r?t.getHours():t.getUTCHours())}:${k(r?t.getMinutes():t.getUTCMinutes())}:${k(r?t.getSeconds():t.getUTCSeconds())}'`}else i=t;return i}function S(t,e,r,i){const{hasQueryEngine:n}=t,s=`(${D(r,C(t,r),n)} - ${D(e,C(t,e),n)})`;let o=h[i],a="/";o<1&&(o=1/o,a="*");return{sqlExpression:1===o?s:`(${s} ${a} ${o})`,sqlWhere:null}}function C(t,e){if(e instanceof Date)return"date";if("number"==typeof e)return"number";if("string"==typeof e){const r=t.getField(e);if("<now>"===e.toLowerCase())return;if(s(r))return"field"}}function F(t,e=u){for(const r in e)if(e[r].includes(t))return r}function b(t,e,r=!0){let i=null;return t&&("string"==typeof t?e.includes(t)&&(i=t):i=l(t)),r?i||"gray":i}function M(t,e){const r=e&&t.getField(e);return!!r&&v.has(r.type)}function N(t){return`cast(${t} as float)`}function j(s,o){const{format:a,timeZoneOptions:c,fieldType:l}=o??{};let m,u;if(c&&({timeZone:m,timeZoneName:u}=g(c.layerTimeZone,c.datesInUnknownTimezone,c.viewTimeZone,t(a||"short-date-short-time"),l)),"string"==typeof s&&isNaN(Date.parse("time-only"===l?`1970-01-01T${s}Z`:s)))return s;switch(l){case"date-only":{const r=t(a||"short-date");return"string"==typeof s?n(s,{...r}):e(s,{...r,timeZone:d})}case"time-only":{const r=t(a||"short-time");return"string"==typeof s?i(s,r):e(s,{...r,timeZone:d})}case"timestamp-offset":{if(!m&&"string"==typeof s&&new Date(s).toISOString()!==s)return s;const i=a||c?t(a||"short-date-short-time"):void 0,n=i?{...i,timeZone:m,timeZoneName:u}:void 0;return"string"==typeof s?r(s,n):e(s,n)}default:{const r=a||c?t(a||"short-date-short-time"):void 0;return e("string"==typeof s?new Date(s):s,r?{...r,timeZone:m,timeZoneName:u}:void 0)}}}export{N as castIntegerFieldToFloat,Z as dateTypes,u as defaultBasemapGroups,y as defaultStatisticTypes,m as fieldDelimiter,j as formatAnyDate,F as getBasemapGroup,b as getBasemapId,S as getDateDiffSQL,C as getDateType,w as getFieldsList,U as getNormalizationType,$ as isAnyDateField,M as isIntegerField,h as unitValueInDays};
5
+ import{convertDateFormatToIntlOptions as t,formatDate as e,formatTimestamp as n,formatTimeOnly as r,formatDateOnly as o}from"../../intl/date.js";import{isDateField as i,isDateOnlyField as s,isTimestampOffsetField as a}from"../../layers/support/fieldUtils.js";import{loadArcade as l}from"../../support/arcadeOnDemand.js";import{getWellKnownBasemapId as u}from"../../support/basemapUtils.js";import{getTimeZoneFormattingOptions as d,utc as m}from"../../time/timeZoneUtils.js";const f=",",c={light:["streets","gray","topo","terrain","oceans","osm","gray-vector","streets-vector","topo-vector","streets-relief-vector","streets-navigation-vector","topo-3d","navigation-3d","streets-3d","osm-3d","gray-3d"],dark:["satellite","hybrid","dark-gray","dark-gray-vector","streets-night-vector","navigation-dark-3d","streets-dark-3d","dark-gray-3d"]},p="percent-of-total",g="field",y={exclude:["median"]},h={years:365,months:30,days:1,hours:1/24,minutes:1/1440,seconds:1/86400,milliseconds:1/864e5},v=new Set(["integer","small-integer"]);let T=null;const Z=["date","date-only","timestamp-offset"];function $(t){return i(t)||s(t)||a(t)}async function U(t){const{field:e,field2:n,field3:r,normalizationField:o,valueExpression:i}=t;let s=[];if(i){if(!T){const{arcadeUtils:t}=await l();T=t}s=T.extractFieldNames(i)}return e&&s.push(e),n&&s.push(n),r&&s.push(r),o&&s.push(o),s}function w(t){let e=t.normalizationType;return e||(t.normalizationField?e=g:null!=t.normalizationTotal&&(e=p)),e??void 0}function D(t){return String(t).padStart(2,"0")}function S(t,e,n){let r;if("date"===e||"number"===e){"number"===e&&(t=new Date(t));r=`TIMESTAMP'${n?t.getFullYear():t.getUTCFullYear()}-${D((n?t.getMonth():t.getUTCMonth())+1)}-${D(n?t.getDate():t.getUTCDate())} ${D(n?t.getHours():t.getUTCHours())}:${D(n?t.getMinutes():t.getUTCMinutes())}:${D(n?t.getSeconds():t.getUTCSeconds())}'`}else r=t;return r}function k(t,e,n,r){const{hasQueryEngine:o}=t,i=`(${S(n,C(t,n),o)} - ${S(e,C(t,e),o)})`;let s=h[r],a="/";s<1&&(s=1/s,a="*");return{sqlExpression:1===s?i:`(${i} ${a} ${s})`,sqlWhere:null}}function C(t,e){if(e instanceof Date)return"date";if("number"==typeof e)return"number";if("string"==typeof e){const n=t.getField(e);if("<now>"===e.toLowerCase())return;if(i(n))return"field"}}function F(t,e=c){for(const n in e)if(e[n].includes(t))return n}function b(t,e,n=!0){let r=null;return t&&("string"==typeof t?e.includes(t)&&(r=t):r=u(t)),n?r||"gray":r}function M(t,e){const n=e&&t.getField(e);return!!n&&v.has(n.type)}function N(t){return`cast(${t} as float)`}function j(i,s){const{format:a,timeZoneOptions:l,fieldType:u}=s??{};let f,c;if(l&&({timeZone:f,timeZoneName:c}=d(l.layerTimeZone,l.datesInUnknownTimezone,l.viewTimeZone,t(a||"short-date-short-time"),u)),"string"==typeof i&&isNaN(Date.parse("time-only"===u?`1970-01-01T${i}Z`:i)))return i;switch(u){case"date-only":{const n=t(a||"short-date");return"string"==typeof i?o(i,{...n}):e(i,{...n,timeZone:m})}case"time-only":{const n=t(a||"short-time");return"string"==typeof i?r(i,n):e(i,{...n,timeZone:m})}case"timestamp-offset":{if(!f&&"string"==typeof i&&new Date(i).toISOString()!==i)return i;const r=a||l?t(a||"short-date-short-time"):void 0,o=r?{...r,timeZone:f,timeZoneName:c}:void 0;return"string"==typeof i?n(i,o):e(i,o)}default:{const n=a||l?t(a||"short-date-short-time"):void 0;return e("string"==typeof i?new Date(i):i,n?{...n,timeZone:f,timeZoneName:c}:void 0)}}}export{N as castIntegerFieldToFloat,Z as dateTypes,c as defaultBasemapGroups,y as defaultStatisticTypes,f as fieldDelimiter,j as formatAnyDate,F as getBasemapGroup,b as getBasemapId,k as getDateDiffSQL,C as getDateType,U as getFieldsList,w as getNormalizationType,$ as isAnyDateField,M as isIntegerField,h as unitValueInDays};