@arcgis/core 5.2.0-next.156 → 5.2.0-next.158

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 (417) hide show
  1. package/analysis/LineOfSightAnalysis.d.ts +49 -32
  2. package/analysis/LineOfSightAnalysisObserver.d.ts +19 -3
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +19 -3
  4. package/analysis/Viewshed.d.ts +23 -3
  5. package/analysis/ViewshedAnalysis.d.ts +33 -13
  6. package/arcade/geometry/operatorsWorkerConnection.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{820c8aaf3632edb0150c.js → 0a5a9885ee6f5b5f99f0.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{7bcedf479b07a4b4a234.js → 1419bf346978b81b08cc.js} +1 -1
  10. package/assets/esri/core/workers/chunks/2cb209bc51a19487692d.js +2 -0
  11. package/assets/esri/core/workers/chunks/2e66c969bf4209c957b5.js +2 -0
  12. package/assets/esri/core/workers/chunks/{925271bb763607a326ae.js → 2f04b8679c9f15390517.js} +1 -1
  13. package/assets/esri/core/workers/chunks/31640b41e0ecdff892fa.js +2 -0
  14. package/assets/esri/core/workers/chunks/{2ef5237e4c876d6a4ee0.js → 340256866f524cb069f6.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{6079d27f4ab319fb8f0c.js → 377595b23379b0c8fe95.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{be5f92e98d09d6e6e38e.js → 4bb1bb3ffb1b71bc43c8.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{c5ed67fdf261cbb1624b.js → 4be559c53fe5ac0d0d2e.js} +1 -1
  18. package/assets/esri/core/workers/chunks/4e6656a5f29e31902fca.js +2 -0
  19. package/assets/esri/core/workers/chunks/{1aa4f5394a596e544aeb.js → 4eae066673484986d4c1.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5f4feca26102088ea565.js → 60737732ce495bbdd0fc.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{67ebc5a3d46b254b725c.js → 612345f17f5eeb99ea8f.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{544070198d2ca556103a.js → 6a0ec102962d2c7b4368.js} +1 -1
  23. package/assets/esri/core/workers/chunks/6a2562cc00727155fc01.js +1 -0
  24. package/assets/esri/core/workers/chunks/784d6c6949284ed6e10b.js +1 -0
  25. package/assets/esri/core/workers/chunks/{916b363c342b61ba5461.js → 787c1a8bda7d745633f2.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js → 844eedda8f749972f707.js} +2 -2
  27. package/assets/esri/core/workers/chunks/{acfa03c65ba3ca6c5685.js → 8715661a838361d4211a.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{d2347d6aa1c57fd57029.js → 8ff23ac0abeea0073b47.js} +1 -1
  29. package/assets/esri/core/workers/chunks/9215b59c5ccecf9add58.js +1 -0
  30. package/assets/esri/core/workers/chunks/{fafb92ca2c5e4b0b2c23.js → a09d2e1e2540921e4717.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{ec8b7476eac4718eb0ac.js → a504a5e06cb89a620799.js} +1 -1
  32. package/assets/esri/core/workers/chunks/a53823cf03dbdce1aecd.js +1 -0
  33. package/assets/esri/core/workers/chunks/{a556dd4e9e6d35e33a2c.js → a546ec82ba149e12f7bf.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{4a640548032355e57acd.js → ab6506a3c16f8717fc00.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{de6081df29183bf80787.js → ade5fdcd08dcbac74740.js} +1 -1
  36. package/assets/esri/core/workers/chunks/ba38231193919e093917.js +1 -0
  37. package/assets/esri/core/workers/chunks/{3f776d9fd2ab68b21fca.js → bbd44ac63d2a317d8ed9.js} +1 -1
  38. package/assets/esri/core/workers/chunks/be308db5b61a7246edfe.js +1 -0
  39. package/assets/esri/core/workers/chunks/cb4be68cc5085d421615.js +1 -0
  40. package/assets/esri/core/workers/chunks/{10445313d0d57b34511b.js → d53cc574a21031436c45.js} +1 -1
  41. package/assets/esri/core/workers/chunks/d6cd0039d6e9c40961e3.js +1 -0
  42. package/assets/esri/core/workers/chunks/dc51dcaa4e2f9a90f5bd.js +2 -0
  43. package/assets/esri/core/workers/chunks/f63686735e4e52f5b54e.js +1 -0
  44. package/assets/esri/core/workers/chunks/{b573df59391ca41ee5a7.js → fc73737b41e086f0ce0b.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{3914d96147642a9d4b01.js → ffbcb816b611049a6276.js} +1 -1
  46. package/assets/esri/themes/base/widgets/_Weather.scss +1 -0
  47. package/assets/esri/themes/dark/main.css +1 -1
  48. package/assets/esri/themes/light/main.css +1 -1
  49. package/assets/esri/themes/light/view.css +1 -1
  50. package/assets/esri/views/interactive/tooltip/t9n/messages.ar.json +1 -1
  51. package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
  52. package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
  53. package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
  54. package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
  55. package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
  56. package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
  57. package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
  58. package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
  59. package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
  60. package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
  61. package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
  62. package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
  63. package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
  64. package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
  65. package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
  66. package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
  67. package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
  68. package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
  69. package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
  70. package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
  71. package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
  72. package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
  73. package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
  74. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
  75. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
  76. package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
  77. package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
  78. package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
  79. package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
  80. package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
  81. package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
  82. package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
  83. package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
  84. package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
  85. package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
  86. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
  87. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
  88. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
  89. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  90. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  91. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  92. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  93. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  94. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  95. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  96. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  97. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  110. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  111. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  112. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  113. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  114. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  115. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  116. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  117. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  118. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  119. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  120. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  121. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  122. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  123. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  124. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  125. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  126. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  127. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  128. package/assets/esri/widgets/Editor/t9n/messages.ar.json +1 -1
  129. package/assets/esri/widgets/Editor/t9n/messages.bg.json +1 -1
  130. package/assets/esri/widgets/Editor/t9n/messages.bs.json +1 -1
  131. package/assets/esri/widgets/Editor/t9n/messages.ca.json +1 -1
  132. package/assets/esri/widgets/Editor/t9n/messages.cs.json +1 -1
  133. package/assets/esri/widgets/Editor/t9n/messages.da.json +1 -1
  134. package/assets/esri/widgets/Editor/t9n/messages.de.json +1 -1
  135. package/assets/esri/widgets/Editor/t9n/messages.el.json +1 -1
  136. package/assets/esri/widgets/Editor/t9n/messages.es.json +1 -1
  137. package/assets/esri/widgets/Editor/t9n/messages.et.json +1 -1
  138. package/assets/esri/widgets/Editor/t9n/messages.fi.json +1 -1
  139. package/assets/esri/widgets/Editor/t9n/messages.fr.json +1 -1
  140. package/assets/esri/widgets/Editor/t9n/messages.he.json +1 -1
  141. package/assets/esri/widgets/Editor/t9n/messages.hr.json +1 -1
  142. package/assets/esri/widgets/Editor/t9n/messages.hu.json +1 -1
  143. package/assets/esri/widgets/Editor/t9n/messages.id.json +1 -1
  144. package/assets/esri/widgets/Editor/t9n/messages.it.json +1 -1
  145. package/assets/esri/widgets/Editor/t9n/messages.ja.json +1 -1
  146. package/assets/esri/widgets/Editor/t9n/messages.ko.json +1 -1
  147. package/assets/esri/widgets/Editor/t9n/messages.lt.json +1 -1
  148. package/assets/esri/widgets/Editor/t9n/messages.lv.json +1 -1
  149. package/assets/esri/widgets/Editor/t9n/messages.nl.json +1 -1
  150. package/assets/esri/widgets/Editor/t9n/messages.no.json +1 -1
  151. package/assets/esri/widgets/Editor/t9n/messages.pl.json +1 -1
  152. package/assets/esri/widgets/Editor/t9n/messages.pt-BR.json +1 -1
  153. package/assets/esri/widgets/Editor/t9n/messages.pt-PT.json +1 -1
  154. package/assets/esri/widgets/Editor/t9n/messages.ro.json +1 -1
  155. package/assets/esri/widgets/Editor/t9n/messages.ru.json +1 -1
  156. package/assets/esri/widgets/Editor/t9n/messages.sk.json +1 -1
  157. package/assets/esri/widgets/Editor/t9n/messages.sl.json +1 -1
  158. package/assets/esri/widgets/Editor/t9n/messages.sr.json +1 -1
  159. package/assets/esri/widgets/Editor/t9n/messages.sv.json +1 -1
  160. package/assets/esri/widgets/Editor/t9n/messages.th.json +1 -1
  161. package/assets/esri/widgets/Editor/t9n/messages.tr.json +1 -1
  162. package/assets/esri/widgets/Editor/t9n/messages.uk.json +1 -1
  163. package/assets/esri/widgets/Editor/t9n/messages.vi.json +1 -1
  164. package/assets/esri/widgets/Editor/t9n/messages.zh-CN.json +1 -1
  165. package/assets/esri/widgets/Editor/t9n/messages.zh-HK.json +1 -1
  166. package/assets/esri/widgets/Editor/t9n/messages.zh-TW.json +1 -1
  167. package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
  168. package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
  169. package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
  170. package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
  171. package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
  172. package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
  173. package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
  174. package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
  175. package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
  176. package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
  177. package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
  178. package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
  179. package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
  180. package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
  181. package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
  182. package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
  183. package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
  184. package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
  185. package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
  186. package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
  187. package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
  188. package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
  189. package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
  190. package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
  191. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
  192. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
  193. package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
  194. package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
  195. package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
  196. package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
  197. package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
  198. package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
  199. package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
  200. package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
  201. package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
  202. package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
  203. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
  204. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
  205. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
  206. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
  207. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
  208. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
  209. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
  210. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
  211. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
  212. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
  213. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
  214. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
  215. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
  216. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
  217. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
  218. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
  219. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
  220. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
  221. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
  222. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
  223. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
  224. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
  225. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
  226. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
  227. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
  228. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
  229. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
  230. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
  231. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
  232. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
  233. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
  234. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
  235. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
  236. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
  237. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
  238. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
  239. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
  240. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
  241. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
  242. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
  243. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
  244. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
  245. package/assets/esri/widgets/Sketch/t9n/messages.ar.json +1 -1
  246. package/assets/esri/widgets/Sketch/t9n/messages.bg.json +1 -1
  247. package/assets/esri/widgets/Sketch/t9n/messages.bs.json +1 -1
  248. package/assets/esri/widgets/Sketch/t9n/messages.ca.json +1 -1
  249. package/assets/esri/widgets/Sketch/t9n/messages.cs.json +1 -1
  250. package/assets/esri/widgets/Sketch/t9n/messages.da.json +1 -1
  251. package/assets/esri/widgets/Sketch/t9n/messages.de.json +1 -1
  252. package/assets/esri/widgets/Sketch/t9n/messages.el.json +1 -1
  253. package/assets/esri/widgets/Sketch/t9n/messages.es.json +1 -1
  254. package/assets/esri/widgets/Sketch/t9n/messages.et.json +1 -1
  255. package/assets/esri/widgets/Sketch/t9n/messages.fi.json +1 -1
  256. package/assets/esri/widgets/Sketch/t9n/messages.fr.json +1 -1
  257. package/assets/esri/widgets/Sketch/t9n/messages.he.json +1 -1
  258. package/assets/esri/widgets/Sketch/t9n/messages.hr.json +1 -1
  259. package/assets/esri/widgets/Sketch/t9n/messages.hu.json +1 -1
  260. package/assets/esri/widgets/Sketch/t9n/messages.id.json +1 -1
  261. package/assets/esri/widgets/Sketch/t9n/messages.it.json +1 -1
  262. package/assets/esri/widgets/Sketch/t9n/messages.ja.json +1 -1
  263. package/assets/esri/widgets/Sketch/t9n/messages.ko.json +1 -1
  264. package/assets/esri/widgets/Sketch/t9n/messages.lt.json +1 -1
  265. package/assets/esri/widgets/Sketch/t9n/messages.lv.json +1 -1
  266. package/assets/esri/widgets/Sketch/t9n/messages.nl.json +1 -1
  267. package/assets/esri/widgets/Sketch/t9n/messages.no.json +1 -1
  268. package/assets/esri/widgets/Sketch/t9n/messages.pl.json +1 -1
  269. package/assets/esri/widgets/Sketch/t9n/messages.pt-BR.json +1 -1
  270. package/assets/esri/widgets/Sketch/t9n/messages.pt-PT.json +1 -1
  271. package/assets/esri/widgets/Sketch/t9n/messages.ro.json +1 -1
  272. package/assets/esri/widgets/Sketch/t9n/messages.ru.json +1 -1
  273. package/assets/esri/widgets/Sketch/t9n/messages.sk.json +1 -1
  274. package/assets/esri/widgets/Sketch/t9n/messages.sl.json +1 -1
  275. package/assets/esri/widgets/Sketch/t9n/messages.sr.json +1 -1
  276. package/assets/esri/widgets/Sketch/t9n/messages.sv.json +1 -1
  277. package/assets/esri/widgets/Sketch/t9n/messages.th.json +1 -1
  278. package/assets/esri/widgets/Sketch/t9n/messages.tr.json +1 -1
  279. package/assets/esri/widgets/Sketch/t9n/messages.uk.json +1 -1
  280. package/assets/esri/widgets/Sketch/t9n/messages.vi.json +1 -1
  281. package/assets/esri/widgets/Sketch/t9n/messages.zh-CN.json +1 -1
  282. package/assets/esri/widgets/Sketch/t9n/messages.zh-HK.json +1 -1
  283. package/assets/esri/widgets/Sketch/t9n/messages.zh-TW.json +1 -1
  284. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ar.json +1 -1
  285. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.bg.json +1 -1
  286. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.bs.json +1 -1
  287. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ca.json +1 -1
  288. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.cs.json +1 -1
  289. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.da.json +1 -1
  290. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.de.json +1 -1
  291. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.el.json +1 -1
  292. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.es.json +1 -1
  293. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.et.json +1 -1
  294. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.fi.json +1 -1
  295. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.fr.json +1 -1
  296. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.he.json +1 -1
  297. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.hr.json +1 -1
  298. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.hu.json +1 -1
  299. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.id.json +1 -1
  300. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.it.json +1 -1
  301. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ja.json +1 -1
  302. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ko.json +1 -1
  303. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.lt.json +1 -1
  304. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.lv.json +1 -1
  305. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.nl.json +1 -1
  306. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.no.json +1 -1
  307. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pl.json +1 -1
  308. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pt-BR.json +1 -1
  309. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pt-PT.json +1 -1
  310. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ro.json +1 -1
  311. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ru.json +1 -1
  312. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sk.json +1 -1
  313. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sl.json +1 -1
  314. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sr.json +1 -1
  315. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sv.json +1 -1
  316. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.th.json +1 -1
  317. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.tr.json +1 -1
  318. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.uk.json +1 -1
  319. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.vi.json +1 -1
  320. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-CN.json +1 -1
  321. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-HK.json +1 -1
  322. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-TW.json +1 -1
  323. package/config.js +1 -1
  324. package/core/workers/WorkerOwner.js +1 -1
  325. package/core/workers/workerFactory.js +1 -1
  326. package/core/workers/workers.js +2 -2
  327. package/core/workers.d.ts +9 -0
  328. package/form/elements.d.ts +46 -8
  329. package/form/elements.js +1 -1
  330. package/geometry/Mesh.js +1 -1
  331. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  332. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  333. package/geometry/support/meshUtils/rotate.js +1 -1
  334. package/kernel.js +1 -1
  335. package/layers/GeoJSONLayer.d.ts +1 -1
  336. package/layers/ImageryTileLayer.js +1 -1
  337. package/layers/LineOfSightLayer.d.ts +10 -8
  338. package/layers/ViewshedLayer.d.ts +1 -1
  339. package/layers/graphics/data/QueryEngineResult.js +1 -1
  340. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  341. package/layers/raster/datasets/BaseRaster.js +1 -1
  342. package/layers/raster/datasets/ImageAuxRaster.js +2 -2
  343. package/layers/raster/datasets/InMemoryRaster.js +1 -1
  344. package/layers/support/kmlUtils.js +1 -1
  345. package/layers/support/layerOriginUtils.js +1 -1
  346. package/package.json +3 -3
  347. package/popup/FeaturesModel.js +1 -1
  348. package/smartMapping/statistics/support/statsWorker.js +1 -1
  349. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  350. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  351. package/smartMapping/support/adapters/OGCFeatureLayerAdapter.js +1 -1
  352. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  353. package/smartMapping/support/adapters/support/utils.js +1 -1
  354. package/symbols/support/ElevationInfo.d.ts +4 -3
  355. package/time/TimeExtent.d.ts +1 -1
  356. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  357. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  358. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  359. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  360. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  361. package/views/3d/analysis/LineOfSight/types.d.ts +14 -3
  362. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +39 -13
  363. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  364. package/views/3d/analysis/Viewshed/types.d.ts +7 -0
  365. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +43 -15
  366. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  367. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  368. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  369. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  370. package/views/View.js +1 -1
  371. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  372. package/views/interactive/options/TooltipOptions.d.ts +2 -0
  373. package/views/interactive/sketch/SketchTooltipOptions.d.ts +2 -0
  374. package/views/interactive/snapping/SnappingManagerPool.js +1 -1
  375. package/views/interactive/snapping/allLayerSnapping.js +1 -1
  376. package/views/layers/LineOfSightLayerView.d.ts +35 -13
  377. package/views/layers/SketchLayerView.d.ts +1 -0
  378. package/views/layers/ViewshedLayerView.d.ts +36 -12
  379. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +2 -1
  380. package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +2 -0
  381. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +2 -1
  382. package/widgets/Expand/ExpandViewModel.d.ts +2 -0
  383. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  384. package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -1
  385. package/widgets/Home/HomeViewModel.d.ts +2 -0
  386. package/widgets/ScaleRangeSlider/ScaleRanges.d.ts +3 -0
  387. package/widgets/ScaleRangeSlider/types.d.ts +3 -3
  388. package/widgets/Sketch/SketchViewModel.js +1 -1
  389. package/widgets/Swipe/SwipeViewModel.d.ts +2 -0
  390. package/widgets/Swipe/types.d.ts +9 -2
  391. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +9 -5
  392. package/widgets/TimeSlider/types.d.ts +7 -0
  393. package/widgets/TimeSlider.d.ts +2 -3
  394. package/widgets/TimeSlider.js +1 -1
  395. package/widgets/Track/TrackViewModel.d.ts +4 -0
  396. package/widgets/Track/types.d.ts +1 -0
  397. package/widgets/support/Selector3D/selectorUtils.js +1 -1
  398. package/assets/esri/core/workers/chunks/1b946714ca4a1a7359d4.js +0 -2
  399. package/assets/esri/core/workers/chunks/22b01fe31bbf0bdc48db.js +0 -1
  400. package/assets/esri/core/workers/chunks/27c2da2e779def2ee08b.js +0 -1
  401. package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +0 -2
  402. package/assets/esri/core/workers/chunks/34570e6bbf559f18c1a5.js +0 -1
  403. package/assets/esri/core/workers/chunks/5566f14afb63065e438f.js +0 -1
  404. package/assets/esri/core/workers/chunks/68d8ae42ab71d01a70a5.js +0 -2
  405. package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +0 -1
  406. package/assets/esri/core/workers/chunks/8dc1c3042267618fd710.js +0 -2
  407. package/assets/esri/core/workers/chunks/96c50a0dda0f1503ef92.js +0 -2
  408. package/assets/esri/core/workers/chunks/bac8c32665e982896ecc.js +0 -1
  409. package/assets/esri/core/workers/chunks/d9b1aed88b205689cec6.js +0 -1
  410. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
  411. package/assets/esri/core/workers/chunks/f4f9d08b2df856e3b694.js +0 -1
  412. /package/assets/esri/core/workers/chunks/{1b946714ca4a1a7359d4.js.LICENSE.txt → 2cb209bc51a19487692d.js.LICENSE.txt} +0 -0
  413. /package/assets/esri/core/workers/chunks/{8dc1c3042267618fd710.js.LICENSE.txt → 2e66c969bf4209c957b5.js.LICENSE.txt} +0 -0
  414. /package/assets/esri/core/workers/chunks/{96c50a0dda0f1503ef92.js.LICENSE.txt → 31640b41e0ecdff892fa.js.LICENSE.txt} +0 -0
  415. /package/assets/esri/core/workers/chunks/{2a1ec30f9ad305763f81.js.LICENSE.txt → 4e6656a5f29e31902fca.js.LICENSE.txt} +0 -0
  416. /package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js.LICENSE.txt → 844eedda8f749972f707.js.LICENSE.txt} +0 -0
  417. /package/assets/esri/core/workers/chunks/{68d8ae42ab71d01a70a5.js.LICENSE.txt → dc51dcaa4e2f9a90f5bd.js.LICENSE.txt} +0 -0
@@ -90,6 +90,8 @@ export interface TooltipOptionsProperties extends Partial<Pick<TooltipOptions, "
90
90
  * `Esc` | Closes the input mode but keeps any applied constraints. |
91
91
  * Left-click-drag (on tooltip header) | Allows to change the position of the tooltip in input mode. |
92
92
  *
93
+ * Numeric inputs accept simple math expressions with two values and one operator: `+`, `-`, `*`, or `/`.
94
+ *
93
95
  * @since 5.2
94
96
  * @see [LabelOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/LabelOptions/)
95
97
  * @see [ValueOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ValueOptions/)
@@ -69,6 +69,8 @@ export interface SketchTooltipOptionsProperties extends TooltipOptionsProperties
69
69
  * `Esc` | Closes the input mode but keeps any applied constraints. |
70
70
  * Left-click-drag (on tooltip header) | Allows to change the position of the tooltip in input mode. |
71
71
  *
72
+ * Numeric inputs accept simple math expressions with two values and one operator: `+`, `-`, `*`, or `/`.
73
+ *
72
74
  * @deprecated since 5.2. Use [TooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/TooltipOptions/) instead.
73
75
  * @since 4.24
74
76
  * @see [Sketch](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{makeHandle as e}from"../../../core/handleUtils.js";import{nextTick as t}from"../../../core/nextTick.js";import{watch as n,syncAndInitial as r}from"../../../core/reactiveUtils.js";import{makeAllLayerSnappingOptions as i}from"./allLayerSnapping.js";import{SnappingManager as a}from"./SnappingManager.js";import o from"./SnappingOptions.js";const s=new Map;function c(t){if(!s.has(t)){let e=i(t,{distance:10,excludeInternal:!0}),c=new o,l=n(()=>{let n=t.options.snapping,r=e.options,i=n.featureSources;return{...r.toJSON(),...n.toJSON({origin:`service`}),featureSources:n.originOf(`featureSources`)===`defaults`?r.featureSources:i}},e=>c.set(e),r),u=new a({view:t,options:c});s.set(t,{referenceCount:0,snappingManager:u,remove:()=>{l.remove(),e.remove(),u.destroy()}})}let c=s.get(t);c.referenceCount++;let u=e(()=>l(t,c));return{snappingManager:c.snappingManager,...u}}function l(e,n){n.referenceCount--,!(n.referenceCount>0)&&t(()=>{n.referenceCount===0&&(n.remove(),s.delete(e))})}export{c as acquire};
2
+ import{makeHandle as e}from"../../../core/handleUtils.js";import{nextTick as t}from"../../../core/nextTick.js";import{makeAllLayerSnappingOptions as n,makePointPlacementSnappingOptions as r}from"./allLayerSnapping.js";import{SnappingManager as i}from"./SnappingManager.js";const a=new Map,o=new Map;function s(e){return l(e,a,r)}function c(e){return l(e,o,n)}function l(t,n,r){if(!n.has(t)){let e=r(t),a=new i({view:t,options:e.options});n.set(t,{referenceCount:0,snappingManager:a,remove:()=>{e.remove(),a.destroy()}})}let a=n.get(t);return a.referenceCount++,{snappingManager:a.snappingManager,...e(()=>u(t,n,a))}}function u(e,n,r){r.referenceCount--,!(r.referenceCount>0)&&t(()=>{r.referenceCount===0&&(r.remove(),n.delete(e))})}export{s as acquireForFeaturePlacement,c as acquireForViewOptions};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../../../core/Collection.js";import{makeHandle as t,destroyHandle as n}from"../../../core/handleUtils.js";import{mapCollection as r}from"../../../core/mapCollectionUtils.js";import{watch as i,syncAndInitial as a}from"../../../core/reactiveUtils.js";import o from"./FeatureSnappingLayerSource.js";import{defaults as s}from"./Settings.js";import c from"./SnappingOptions.js";const l=e.ofType(o);function u(e,u){let d=u?.excludeInternal?()=>e.map?.allLayers.filter(e=>!(`internal`in e)||!e.internal):()=>e.map?.allLayers,f=r(d,e=>new o({layer:e}),{recycleItems:!0,createCollection:()=>new l}),p=new c({enabled:!0,selfEnabled:u?.selfEnabled??!1,featureEnabled:!0,featureSources:f,distance:u?.distance??s.distance,touchSensitivityMultiplier:u?.touchSensitivityMultiplier??s.touchSensitivityMultiplier}),m=new c,h=i(()=>{let t=e.options.snapping;return{...p.toJSON(),...t.toJSON({origin:`service`}),featureSources:t.originOf(`featureSources`)===`defaults`?f:t.featureSources}},e=>m.set(e),a);return{...t(()=>{h.remove(),n(f).remove()}),options:m}}export{u as makeAllLayerSnappingOptions};
2
+ import e from"../../../core/Collection.js";import{makeHandle as t,destroyHandle as n}from"../../../core/handleUtils.js";import{mapCollection as r}from"../../../core/mapCollectionUtils.js";import{watch as i,syncAndInitial as a}from"../../../core/reactiveUtils.js";import o from"../options/SnappingOptions.js";import s from"./FeatureSnappingLayerSource.js";const c=e.ofType(s);function l(e){return f(e)}function u(e){return f(e,{enabled:!0})}function d(e){return f(e,{enabled:!0,selfEnabled:!1,distance:10})}function f(e,l){let u=r(()=>e.map?.allLayers.filter(e=>!(`internal`in e)||!e.internal),e=>new s({layer:e}),{recycleItems:!0,createCollection:()=>new c}),d=l?new o(l):null,f=new o,p=i(()=>{let t=e.options.snapping,n=t.featureSources;return{...d?.toJSON(),...d?t.toJSON({origin:`service`}):t.toJSON(),featureSources:t.originOf(`featureSources`)===`defaults`?u:n}},e=>f.set(e),a);return{...t(()=>{p.remove(),n(u).remove()}),options:f}}export{l as makeAllLayerSnappingOptions,u as makeGeometryAnalysisSnappingOptions,d as makePointPlacementSnappingOptions};
@@ -28,23 +28,35 @@ export interface LineOfSightLayerViewProperties extends LayerViewProperties, Par
28
28
  * const layerView = await view.whenLayerView(lineOfSightLayer);
29
29
  * ```
30
30
  *
31
+ * > [!WARNING]
32
+ * >
33
+ * > **Things to consider:**
34
+ * > * Snapping, tooltips, display units, and input units used during interactive placement and editing are inherited from
35
+ * [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
36
+ * > * Snapping is enabled by default. This can be temporarily disabled by holding the `CTRL` key.
37
+ * > * Layer types currently supported for snapping are: [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/), [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/) (except Mesh geometries),
38
+ * > [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
39
+ * > [3D Object SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/), and [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/BuildingSceneLayer/).
40
+ *
31
41
  * @see [LineOfSightLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/LineOfSightLayer/)
32
42
  * @see [LineOfSightAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/LineOfSightAnalysis/)
33
43
  * @see [LineOfSightAnalysisTarget](https://developers.arcgis.com/javascript/latest/references/core/analysis/LineOfSightAnalysisTarget/)
34
44
  * @see [LineOfSightAnalysisObserver](https://developers.arcgis.com/javascript/latest/references/core/analysis/LineOfSightAnalysisObserver/)
35
45
  * @see [LineOfSightAnalysisView3D](https://developers.arcgis.com/javascript/latest/references/core/views/3d/analysis/LineOfSightAnalysisView3D/)
46
+ * @see [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/)
36
47
  * @see [Line Of Sight component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-line-of-sight/)
37
48
  * @see [Async cancellation with AbortController](https://developers.arcgis.com/javascript/latest/async-cancellation-with-abortcontroller/)
38
49
  */
39
50
  export default abstract class LineOfSightLayerView extends LayerView {
40
51
  /**
41
- * Enables interactivity for the [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LineOfSightLayerView/#layer). When set to `true`, manipulators will be displayed,
42
- * allowing users to click and drag to edit the layer's
43
- * [LineOfSightLayer.analysis](https://developers.arcgis.com/javascript/latest/references/core/layers/LineOfSightLayer/#analysis) if it has a valid
44
- * [LineOfSightAnalysis.observer](https://developers.arcgis.com/javascript/latest/references/core/analysis/LineOfSightAnalysis/#observer) and
45
- * [LineOfSightAnalysis.targets](https://developers.arcgis.com/javascript/latest/references/core/analysis/LineOfSightAnalysis/#targets). Right-clicking a target will remove it.
52
+ * Enables interactivity for the [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LineOfSightLayerView/#layer).
53
+ * When set to `true`, and the layer includes a valid [LineOfSightLayer.observer](https://developers.arcgis.com/javascript/latest/references/core/layers/LineOfSightLayer/#observer) and any
54
+ * [LineOfSightLayer.targets](https://developers.arcgis.com/javascript/latest/references/core/layers/LineOfSightLayer/#targets), they become selectable and editable and the manipulators will be displayed.
55
+ *
56
+ * Targets can be removed by right-clicking on them or with the `Delete` key.
57
+ * The observer and the last target cannot be deleted interactively.
46
58
  *
47
- * This property is automatically set to `true` when the analysis is assigned to a
59
+ * This property is automatically set to `true` when the [LineOfSightLayer.analysis](https://developers.arcgis.com/javascript/latest/references/core/layers/LineOfSightLayer/#analysis) is assigned to a
48
60
  * [Line Of Sight component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-line-of-sight/).
49
61
  *
50
62
  * @default false
@@ -72,20 +84,26 @@ export default abstract class LineOfSightLayerView extends LayerView {
72
84
  */
73
85
  get results(): Collection<LineOfSightAnalysisResult | null | undefined>;
74
86
  /**
75
- * Starts the interactive placement of an observer and/or targets on the [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LineOfSightLayerView/#layer)'s
87
+ * Starts the interactive placement of an observer and targets on the [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LineOfSightLayerView/#layer)'s
76
88
  * [LineOfSightLayer.analysis](https://developers.arcgis.com/javascript/latest/references/core/layers/LineOfSightLayer/#analysis).
77
89
  *
78
- * If the analysis does not have a valid observer yet, this method will allow placing an observer, which can be followed
79
- * by zero or more targets. Otherwise, if it already has a valid observer, it will allow placing targets.
90
+ * If the layer does not have a valid [LineOfSightLayer.observer](https://developers.arcgis.com/javascript/latest/references/core/layers/LineOfSightLayer/#observer) yet, this method will allow placing an observer,
91
+ * which can be followed by zero or more targets. Otherwise, if it already has a valid observer, it will allow placing targets.
92
+ * An observer is valid when it has a position. Placing an observer without any targets is a productive operation.
80
93
  *
81
- * The placement operation will finish when the user presses the escape key.
94
+ * The placement operation will finish when the user presses the escape key. Pressing escape after placing an observer
95
+ * or target finalizes a productive operation. Pressing escape before a valid observer is placed rejects the promise.
82
96
  * To stop the placing programmatically, pass an abort signal as an argument when calling the method.
83
- * The promise resolves when the operation is productive, i.e. an oberver or any targets were added.
97
+ * The promise resolves when the operation is productive, i.e. an observer or any targets were added.
84
98
  * Otherwise, if nothing was added or signal was aborted, the promise is rejected.
85
99
  *
100
+ * By default, the observer and targets are created at absolute height.
101
+ * Optionally, by specifying the options of the method,
102
+ * you can change the [elevation info](https://developers.arcgis.com/javascript/latest/references/core/symbols/support/ElevationInfo/).
103
+ *
86
104
  * Calling this method sets [interactive](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LineOfSightLayerView/#interactive) to `true`.
87
105
  *
88
- * @param options - Additional placement options, including elevation information and an abort signal.
106
+ * @param options - An object specifying additional placement options, including elevation information and an abort signal.
89
107
  * @returns A promise
90
108
  * which resolves when the operation is completed successfully - i.e. the user places an observer and/or target(s),
91
109
  * leaving the analysis in a valid state. Otherwise, the promise is rejected.
@@ -94,7 +112,11 @@ export default abstract class LineOfSightLayerView extends LayerView {
94
112
  * const abortController = new AbortController();
95
113
  *
96
114
  * try {
97
- * await layerView.place({ signal: abortController.signal });
115
+ * await layerView.place({
116
+ * signal: abortController.signal,
117
+ * // optional elevation info
118
+ * elevationInfo: { mode: "relative-to-ground", offset: 1.5 },
119
+ * });
98
120
  * } catch (error) {
99
121
  * if (error.name === "AbortError") {
100
122
  * console.log("Placement operation was cancelled.");
@@ -10,6 +10,7 @@ import type { LayerViewHighlightOptions } from "./types.js";
10
10
  * Represents the view of a [SketchLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SketchLayer/) in a [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/).
11
11
  *
12
12
  * @since 5.2
13
+ * @beta
13
14
  * @see [SketchLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SketchLayer/)
14
15
  */
15
16
  export default abstract class SketchLayerView extends LayerView {
@@ -15,7 +15,7 @@ export interface ViewshedLayerViewProperties extends LayerViewProperties, Partia
15
15
  *
16
16
  * It allows to create new viewsheds interactively using the [place()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#place) method,
17
17
  * or to make existing viewsheds selectable and editable by enabling the [interactive](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#interactive) property.
18
- * To select a viewshed, hover and click on any of its manipulators.
18
+ * To select a viewshed, hover and click on its observer.
19
19
  *
20
20
  * The view for the layer can be retrieved using [SceneView.whenLayerView()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#whenLayerView).
21
21
  *
@@ -28,6 +28,16 @@ export interface ViewshedLayerViewProperties extends LayerViewProperties, Partia
28
28
  * const layerView = await view.whenLayerView(viewshedLayer);
29
29
  * ```
30
30
  *
31
+ * > [!WARNING]
32
+ * >
33
+ * > **Things to consider:**
34
+ * > * Snapping, tooltips, display units, and input units used during interactive placement and editing are inherited from
35
+ * [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
36
+ * > * Snapping is enabled by default. This can be temporarily disabled by holding the `CTRL` key.
37
+ * > * Layer types currently supported for snapping are: [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/), [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/) (except Mesh geometries),
38
+ * > [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
39
+ * > [3D Object SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/), and [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/BuildingSceneLayer/).
40
+ *
31
41
  * @since 4.31
32
42
  * @see [ViewshedLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ViewshedLayer/)
33
43
  * @see [Viewshed](https://developers.arcgis.com/javascript/latest/references/core/analysis/Viewshed/)
@@ -39,8 +49,10 @@ export interface ViewshedLayerViewProperties extends LayerViewProperties, Partia
39
49
  export default abstract class ViewshedLayerView extends LayerView {
40
50
  /**
41
51
  * Enables interactivity for the [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#layer). When set to `true` and the layer's
42
- * [ViewshedLayer.source](https://developers.arcgis.com/javascript/latest/references/core/layers/ViewshedLayer/#source) includes any
43
- * valid [ViewshedAnalysis.viewsheds](https://developers.arcgis.com/javascript/latest/references/core/analysis/ViewshedAnalysis/#viewsheds), they become selectable and editable.
52
+ * [ViewshedLayer.source](https://developers.arcgis.com/javascript/latest/references/core/layers/ViewshedLayer/#source) includes any valid [viewsheds](https://developers.arcgis.com/javascript/latest/references/core/analysis/Viewshed/),
53
+ * they become selectable and editable.
54
+ *
55
+ * Viewsheds can be removed with the `Delete` key.
44
56
  *
45
57
  * @default false
46
58
  */
@@ -55,19 +67,23 @@ export default abstract class ViewshedLayerView extends LayerView {
55
67
  */
56
68
  accessor selectedViewshed: Viewshed | null | undefined;
57
69
  /**
58
- * Starts the interactive creation of new viewsheds and adds them to the layer
59
- * [ViewshedLayer.source](https://developers.arcgis.com/javascript/latest/references/core/layers/ViewshedLayer/#source).
70
+ * Starts the interactive creation of new viewsheds and adds them to the
71
+ * [ViewshedLayer.source](https://developers.arcgis.com/javascript/latest/references/core/layers/ViewshedLayer/#source) of the associated [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#layer).
60
72
  *
61
- * The first click in the scene places the observer point and the second sets the viewshed's orientation.
73
+ * The first click in the scene places the observer point and the second sets the viewshed's orientation and distance.
62
74
  *
63
75
  * The creation process will finish when the user double-clicks the mouse or presses the escape key.
64
76
  * To stop the creation programmatically, pass an abort signal as an argument when calling the method.
65
77
  *
66
78
  * This method is similar to the [place()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#place) method, but it allows to create multiple viewsheds in a row.
67
79
  *
80
+ * By default, the observer is created at absolute height.
81
+ * Optionally, by specifying the options of the method,
82
+ * you can change the [elevation info](https://developers.arcgis.com/javascript/latest/references/core/symbols/support/ElevationInfo/).
83
+ *
68
84
  * Calling this method sets [interactive](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#interactive) to `true`.
69
85
  *
70
- * @param options - Additional placement options, including elevation information and an abort signal.
86
+ * @param options - An object specifying additional placement options, including elevation information and an abort signal.
71
87
  * @returns A promise which resolves when creation is completed successfully or rejected if it is
72
88
  * canceled.
73
89
  * @example
@@ -86,17 +102,21 @@ export default abstract class ViewshedLayerView extends LayerView {
86
102
  */
87
103
  createViewsheds(options?: ViewshedPlacementOptions | null | undefined): Promise<void>;
88
104
  /**
89
- * Starts the interactive placement of a single viewshed, adding it to the [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#layer)'s
90
- * [ViewshedLayer.source](https://developers.arcgis.com/javascript/latest/references/core/layers/ViewshedLayer/#source).
105
+ * Starts the interactive placement of a single viewshed, adding it to the
106
+ * [ViewshedLayer.source](https://developers.arcgis.com/javascript/latest/references/core/layers/ViewshedLayer/#source) of the associated [layer](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#layer).
91
107
  *
92
- * The first click in the scene places the observer point and the second sets the viewshed's orientation.
108
+ * The first click in the scene places the observer point and the second sets the viewshed's orientation and distance.
93
109
  *
94
110
  * The placement operation will finish when the user presses the escape key.
95
111
  * To stop the placing programmatically, pass an abort signal as an argument when calling the method.
96
112
  *
113
+ * By default, the observer is created at absolute height.
114
+ * Optionally, by specifying the options of the method,
115
+ * you can change the [elevation info](https://developers.arcgis.com/javascript/latest/references/core/symbols/support/ElevationInfo/).
116
+ *
97
117
  * Calling this method sets [interactive](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/#interactive) to `true`.
98
118
  *
99
- * @param options - Additional placement options, including elevation information and an abort signal.
119
+ * @param options - An object specifying additional placement options, including elevation information and an abort signal.
100
120
  * @returns A promise which
101
121
  * resolves when the operation is completed successfully or rejected if it is canceled.
102
122
  * @since 4.33
@@ -104,7 +124,11 @@ export default abstract class ViewshedLayerView extends LayerView {
104
124
  * const abortController = new AbortController();
105
125
  *
106
126
  * try {
107
- * await viewshedLayerView.place({ signal: abortController.signal });
127
+ * await layerView.place({
128
+ * signal: abortController.signal,
129
+ * // optional elevation info
130
+ * elevationInfo: { mode: "relative-to-ground", offset: 1.5 },
131
+ * });
108
132
  * } catch (error) {
109
133
  * if (error.name === "AbortError") {
110
134
  * console.log("Placement operation was cancelled.");
@@ -5,6 +5,7 @@ import type { SystemOrAreaUnit } from "../../core/units.js";
5
5
  import type { AreaMeasurement, AreaMeasurementLabel, MeasurementState } from "../types.js";
6
6
  import type { SnappingOptionsProperties } from "../../views/interactive/snapping/SnappingOptions.js";
7
7
 
8
+ /** @deprecated since 5.2. Use the [Area Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-2d/) directly or [AreaMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/AreaMeasurementAnalysis/) instead. */
8
9
  export interface AreaMeasurement2DViewModelProperties extends Partial<Pick<AreaMeasurement2DViewModel, "view">> {
9
10
  /**
10
11
  * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/snapping/SnappingOptions/) for sketching.
@@ -47,7 +48,7 @@ export interface AreaMeasurement2DViewModelProperties extends Partial<Pick<AreaM
47
48
  }
48
49
 
49
50
  /**
50
- * Provides the logic for the [AreaMeasurement2D](https://developers.arcgis.com/javascript/latest/references/core/widgets/AreaMeasurement2D/) widget and [component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-2d/).
51
+ * Provides the logic for the [AreaMeasurement2D](https://developers.arcgis.com/javascript/latest/references/core/widgets/AreaMeasurement2D/) widget.
51
52
  *
52
53
  * @deprecated since version 5.2. Use the [Area Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-2d/) directly or [AreaMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/AreaMeasurementAnalysis/) instead.
53
54
  * @since 4.10
@@ -3,6 +3,7 @@ import type Accessor from "../../core/Accessor.js";
3
3
  import type { BasemapProperties } from "../../Basemap.js";
4
4
  import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
5
5
 
6
+ /** @deprecated since 5.2. Use the Basemap Toggle component's [`nextBasemap`](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-basemap-toggle/#nextBasemap) and [`view`](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-basemap-toggle/#view) properties instead. */
6
7
  export interface BasemapToggleViewModelProperties extends Partial<Pick<BasemapToggleViewModel, "view">> {
7
8
  /**
8
9
  * The next basemap for toggling. One of the following values may be set to this property:
@@ -13,6 +14,7 @@ export interface BasemapToggleViewModelProperties extends Partial<Pick<BasemapTo
13
14
  nextBasemap?: BasemapProperties | string | null;
14
15
  }
15
16
 
17
+ /** @deprecated since 5.2. Use the Basemap Toggle component's [`state`](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-basemap-toggle/#state) property instead. */
16
18
  export type BasemapToggleViewModelState = "ready" | "incompatible-next-basemap" | "loading" | "disabled";
17
19
 
18
20
  /**
@@ -5,6 +5,7 @@ import type { SystemOrLengthUnit } from "../../core/units.js";
5
5
  import type { LinearMeasurement, MeasurementState } from "../types.js";
6
6
  import type { SnappingOptionsProperties } from "../../views/interactive/snapping/SnappingOptions.js";
7
7
 
8
+ /** @deprecated since 5.2. Use the [Distance Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/) directly or [DistanceMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/DistanceMeasurementAnalysis/) instead. */
8
9
  export interface DistanceMeasurement2DViewModelProperties extends Partial<Pick<DistanceMeasurement2DViewModel, "view">> {
9
10
  /**
10
11
  * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/snapping/SnappingOptions/) for sketching.
@@ -47,7 +48,7 @@ export interface DistanceMeasurement2DViewModelProperties extends Partial<Pick<D
47
48
  }
48
49
 
49
50
  /**
50
- * Provides the logic for the [DistanceMeasurement2D](https://developers.arcgis.com/javascript/latest/references/core/widgets/DistanceMeasurement2D/) widget and [component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/).
51
+ * Provides the logic for the [DistanceMeasurement2D](https://developers.arcgis.com/javascript/latest/references/core/widgets/DistanceMeasurement2D/) widget.
51
52
  *
52
53
  * @deprecated since version 5.2. Use the [Distance Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/) directly or [DistanceMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/DistanceMeasurementAnalysis/) instead.
53
54
  * @since 4.10
@@ -1,8 +1,10 @@
1
1
  import type Accessor from "../../core/Accessor.js";
2
2
  import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
3
3
 
4
+ /** @deprecated since 5.2. Use the [Expand component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-expand/) instead. */
4
5
  export interface ExpandViewModelProperties extends Partial<Pick<ExpandViewModel, "autoCollapse" | "expanded" | "group" | "view">> {}
5
6
 
7
+ /** @deprecated since 5.2. Use the Expand component's [`state`](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-expand/#state) property instead. */
6
8
  export type ExpandViewModelState = "ready" | "disabled";
7
9
 
8
10
  /**
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../Graphic.js";import n from"../../../core/Accessor.js";import{equals as r,isSome as i}from"../../../core/arrayUtils.js";import{createTask as a}from"../../../core/asyncUtils.js";import o from"../../../core/Collection.js";import s from"../../../core/Error.js";import{clone as c}from"../../../core/lang.js";import l from"../../../core/Logger.js";import{getOrCreateMapValue as u}from"../../../core/MapUtils.js";import{removeMaybe as d,abortMaybe as f}from"../../../core/maybe.js";import{debounce as p,ignoreAbortErrors as m,throwIfAborted as h}from"../../../core/promiseUtils.js";import g from"../../../core/ReactiveMap.js";import{watch as _,when as v,syncAndInitial as y,sync as b}from"../../../core/reactiveUtils.js";import{property as x,subclass as S}from"../../../core/accessorSupport/decorators.js";import{isInEffectiveScaleRange as C}from"../../../geometry/support/scaleUtils.js";import{geometryTypes as w}from"../../../geometry/support/typeUtils.js";import{isFeatureLayer as T,isSubtypeGroupLayer as E,isSubtypeSublayer as D}from"../../../layers/support/layerUtils.js";import{combineTimeExtent as O}from"../../../layers/support/timeSupport.js";import k from"../../../rest/support/AttachmentQuery.js";import A from"../../../rest/support/RelationshipQuery.js";import j from"../../../time/TimeExtent.js";import M from"../../../views/SelectionManager.js";import{temporaryHighlightName as N}from"../../../views/support/HighlightDefaults.js";import{highlightsSupported as P}from"../../../views/support/layerViewUtils.js";import{isSelectableLayerWithObjectIds as F,isSelectableLayer as I}from"../../../views/support/selectionUtils.js";import{isIFeatureTableSupportedLayerWithAttachments as L,isIFeatureTableSupportedLayerWithAttachmentsEditing as R,isIFeatureTableSupportedLayerWithEditing as z,isIFeatureTableSupportedLayerWithRelationships as B,isPageIndexValid as V,findRelatedLayer as H}from"./tableUtils.js";import{ContingentValuesManager as U}from"../../support/ContingentValuesManager.js";let W=class extends n{constructor(e){super(e),this._attachmentsOperationQueue=new o,this._contingentValuesManager=new U,this._defaultOutFields=[`*`],this._editOperationQueue=new o,this.featureTitleMap=new g,this._loaded=!1,this._loadController=null,this._loadDebounced=p(()=>this._load()),this._loadError=!1,this._objectIdCache=new o,this._pendingEditsCache=new g,this._queryOperationInfos=new g,this._refreshDebounced=p(()=>this._refresh()),this._size=0,this._temporaryHighlight=null,this._temporaryHighlightAbortController=null,this.attachmentsEnabled=!1,this.autoSaveEnabled=!0,this.defaultSelectionManager=new M,this.editingEnabled=!1,this.failures=new o,this.filterByViewExtent=!1,this.filterByLayerScaleRange=!1,this.filterGeometry=null,this.highlightEnabled=!0,this.initialSize=null,this.layer=null,this.maxSize=null,this.objectIds=null,this.outFields=null,this.pageCache=new g,this.pageSize=50,this.paginationEnabled=!1,this.relationshipConfig=null,this.relatedRecordsEnabled=!1,this.returnGeometry=!1,this.returnZ=!1,this.returnM=!1,this.selectionManager=null,this.sortOrders=[],this.syncViewSelection=!1,this.temporaryHighlightId=void 0,this.timeExtent=null,this.timeZone=null,this.view=null,this.viewTimeEnabled=!1,this.where=null}initialize(){this.addHandles([_(()=>[this.effectiveTimeExtent,this.effectiveWhere,this.filterGeometry,this.layer,this.objectIds,this.outFields,this.pageSize,this.relationshipConfig,this.returnGeometry,this.returnM,this.returnZ,this.visibleAtCurrentScale],()=>this._reset()),_(()=>this.orderByFields,()=>this._clearCaches(),{equals:r}),v(()=>this.attachmentsEnabled,()=>this._reset()),v(()=>this.relatedRecordsEnabled,()=>this._reset()),_(()=>this._layerWithContingentValues,e=>{let t=this._contingentValuesManager;e&&!t.layers.includes(e)&&t.layers.add(e)}),_(()=>[this.view?.extent,this.view?.stationary,this.filterByViewExtent],([e,t,n])=>{n&&(e?t&&(this.filterGeometry=e):this.filterGeometry=null)},y),_(()=>this.maxSize,(e,t)=>{t===0&&this._reset()}),_(()=>[this.layer,this.view],()=>this.syncSelectionSources(),y),_(()=>this.highlightEnabled,e=>this.defaultSelectionManager.highlightEnabled=e,y),_(()=>this.temporaryHighlightId,e=>{this._temporaryHighlight=d(this._temporaryHighlight?.handle),this._temporaryHighlightAbortController?.abort(),this._temporaryHighlightAbortController=new AbortController;let t=this._syncTemporaryHighlight(e,this._temporaryHighlightAbortController.signal);m(this.view?.addUpdatingPromise(t)??t)},b)])}destroy(){this.layer=null,this.itemCache.destroy(),this.failures.destroy(),this.defaultSelectionManager.destroy(),this._temporaryHighlight=d(this._temporaryHighlight?.handle),this._temporaryHighlightAbortController=f(this._temporaryHighlightAbortController)}get _capabilities(){let{layer:e}=this;return e?.effectiveCapabilities??e?.capabilities}get _canSavePendingEdits(){return this.supportsEditing&&this.hasPendingEdits&&!this.hasInvalidPendingEdits}get _effectiveReturnZ(){return this.returnZ&&this.supportsZ}get _effectiveReturnM(){return this.returnM&&this.supportsM}get _layerWithAttachments(){let{layer:e}=this;return!e||!this._capabilities||!this.attachmentsEnabled||!this.supportsAttachments||!L(e)?null:e}get _layerWithAttachmentsEditing(){let{_layerWithAttachments:e}=this;return!e||!R(e)||!this.supportsEditing?null:e}get _layerWithContingentValues(){let{layer:e}=this;return T(e)||E(e)?e:null}get _layerWithEditing(){let e=this.layer;return z(e)&&this.supportsEditing?e:null}get _layerWithRelationships(){let e=this.layer;return B(e)&&this.supportsQueryRelated?e:null}get _pendingEditsAreInvalid(){let e=this._pendingEditsCache,t=this._layerWithContingentValues;if(!t)return!1;for(let n of e.keys()){let r=e.get(n),i=this._getFeatureWithPendingEdits(n,r);for(let e of r.changes.keys())if(this._contingentValuesManager.getViolationForField(t,i,e))return!0}return!1}get _relatedLayer(){return this.relationshipConfig?.relatedLayer}get _relatedLayerCapabilities(){let{_relatedLayer:e}=this;return e?.effectiveCapabilities??e?.capabilities}get _relatedLayerSupportsCacheHint(){return!!this._relatedLayerCapabilities?.queryRelated?.supportsCacheHint}get _relatedLayerSupportsQuery(){return!!this._relatedLayerCapabilities?.operations.supportsQuery}get _relatedLayerSupportsQueryRelated(){let{_relatedLayerCapabilities:e}=this;return!!e?.queryRelated?.supportsCount&&!!e?.queryRelated?.supportsPagination}get _sortedFieldNames(){return this.sortOrders.map(({fieldName:e})=>e)}get _subtypeCode(){return this.layer?.subtypeCode??null}get _subtypeField(){let{layer:e}=this;return E(e?.parent)?e.subtypeField:null}get _canUseRelatedLayer(){return!!(this._relatedLayerSupportsQuery&&this._relatedLayerSupportsQueryRelated)}get cachedPageCount(){return this.pageCache.size}get canAddRelatedFeature(){let{state:e,relationship:t,supportsAdd:n,supportsEditing:r}=this;if(e!==`loaded`||!t||!n||!r)return!1;let{cardinality:i,role:a}=t,o=this.size>0;return!(i===`one-to-one`&&o||i===`one-to-many`&&a===`origin`&&o)}get effectiveFilterByLayerScaleRange(){return!!(this.view&&this.filterByLayerScaleRange)}get effectiveOutFields(){let{layer:e,outFields:t}=this;if(!e||!t?.length)return this._defaultOutFields;let n=[];t.forEach(t=>{let r=e.fieldsIndex.normalizeFieldName(t);r&&n.push(r)});let{objectIdField:r}=e,i=e.fieldsIndex.normalizeFieldName(r)??r;return i&&!n.includes(i)&&n.unshift(i),n}get effectiveSelectionManager(){let{layer:e,view:t}=this;return e&&this.syncViewSelection&&F(e)&&t?.selectionManager?.sources.includes(e)?t.selectionManager:this.selectionManager??this.defaultSelectionManager}get effectiveSize(){let{_size:e,maxSize:t}=this;return t==null?e:Math.min(t,e)}get effectiveTimeExtent(){let{layer:e,timeExtent:t,view:n,viewTimeEnabled:r}=this;return t||!e?t??void 0:!n||!r?e.timeExtent??void 0:O({datesInUnknownTimezone:e.datesInUnknownTimezone??void 0,timeExtent:e.timeExtent,timeInfo:e.timeInfo,timeOffset:e.timeOffset,useViewTime:e.useViewTime},n.timeExtent,this._get(`effectiveTimeExtent`))??void 0}get effectiveWhere(){let{layer:e,where:t}=this;return t!=null&&t!==``?t:D(e)&&e.parent?.definitionExpression?e.parent.definitionExpression:e?.definitionExpression||`1=1`}get fieldsWithContingentValues(){return this._contingentValuesManager.getFieldsWithContingentValues(this.layer)}get hasContingentValues(){return this.fieldsWithContingentValues.size>0}get hasInvalidPendingEdits(){return this.hasPendingEdits&&this._pendingEditsAreInvalid}get hasPendingEdits(){return this.pendingEditsCount>0}get highlightableLayerView(){let e=this.layerView;return P(e)?e:null}get isQuerying(){return this._queryOperationInfos.size>0}get isSyncing(){return this.isSyncingFeatureEdits||this.isSyncingAttachmentEdits}get isSyncingAttachmentEdits(){return this._attachmentsOperationQueue.length>0}get isSyncingFeatureEdits(){return this._editOperationQueue.length>0}get itemCache(){return new o({items:[...this.pageCache.values()].flat()})}get layerView(){let{layer:e,view:t}=this;if(!e||!t)return null;let n=e.type===`sublayer`||D(e)?e.parent:e;return t.allLayerViews.find(e=>e.layer===n)}get orderByFields(){let{_sortedFieldNames:e,layer:t,sortOrders:n}=this,r=n.filter(({fieldName:t,direction:n},r)=>e.indexOf(t)===r&&n!=null).map(({fieldName:e,direction:t})=>`${e} ${t?.toUpperCase()}`);if(t&&!r.length&&!t.objectIdField&&t.fields?.length){let e=t.fields.find(e=>e.name);if(e){let n=t.fieldsIndex.normalizeFieldName(e.name);n&&r.push(`${n} ASC`)}}return r}get pageCount(){let{effectiveSize:e,pageSize:t}=this;return e===0||t===0?1:Math.ceil(e/t)}get pageIndex(){return this._get(`pageIndex`)||0}set pageIndex(e){let{pageCount:t}=this;V(e,t)&&this._set(`pageIndex`,e)}get pendingEditsCount(){let e=0;return this._pendingEditsCache.forEach(t=>e+=t.changes.size),e}get relationship(){let{relationshipConfig:e}=this;return e?.relationshipId==null?null:this.relationships?.find(t=>t.id===e.relationshipId)}get relationshipIds(){return this.relationships?.map(e=>e.id)??[]}get relationshipInfos(){let{_layerWithRelationships:e,relatedRecordsEnabled:t,relationships:n,view:r}=this,i=[];return!t||!e?.loaded||!r?.map||!n?.length||n.forEach(t=>{let n=H(e,r,t);n&&(n.load().catch(()=>{}),i.push({layer:e,relatedLayer:n,relationshipId:t.id}))}),i}get relationships(){return this._layerWithRelationships?.relationships}get size(){return this._size}get state(){let{layer:e,_loaded:t,_loadError:n}=this;return!e||e.destroyed?`disabled`:n||e.loadError?`error`:this._loadController?`loading`:e.loadStatus===`loaded`&&t?`loaded`:`ready`}get supportsAdd(){return!!this._capabilities?.operations.supportsAdd}get supportsAddAttachments(){return!!(this._layerWithAttachmentsEditing&&(this.supportsAdd||this.supportsUpdate))}get supportsAttachments(){let{_capabilities:e}=this;return!!(e?.data?.supportsAttachment&&e?.operations.supportsQueryAttachments)}get supportsCacheHint(){return!!this._capabilities?.query?.supportsCacheHint}get supportsCacheHintQueryRelated(){return!!this._capabilities?.queryRelated?.supportsCacheHint}get supportsDelete(){return!!this._capabilities?.operations.supportsDelete}get supportsEditing(){return!!this._capabilities?.operations.supportsEditing}get supportsM(){return!!this.layer?.hasM&&!!this._capabilities?.data?.supportsM}get supportsOrderBy(){return!!this._capabilities?.query?.supportsOrderBy}get supportsPagination(){return!!this._capabilities?.query?.supportsPagination}get supportsQuery(){return!!this._capabilities?.operations.supportsQuery}get supportsQueryRelated(){let{_capabilities:e}=this;return!!e?.queryRelated?.supportsCount&&!!e?.queryRelated?.supportsPagination}get supportsResizeAttachments(){let{_capabilities:e}=this;return!!(this.supportsAttachments&&e?.attachment?.supportsResize)}get supportsUpdate(){return!!this._capabilities?.operations.supportsUpdate}get supportsUpdateAttachments(){return!!(this._layerWithAttachmentsEditing&&(this.supportsAdd||this.supportsUpdate))}get supportsZ(){return!!this.layer?.hasZ&&!!this._capabilities?.data?.supportsZ}get visibleAtCurrentScale(){let{layer:e}=this;return!e||!this.effectiveFilterByLayerScaleRange?!1:C(e.effectiveScaleRange,this.view?.scale)}async addAttachment(e,t){let{_layerWithAttachmentsEditing:n}=this;if(!n||!this.supportsAddAttachments)return{};let r=await this._queueAttachmentsOperation(e,()=>n.addAttachment(this._createBaseGraphic(n,e),t));return this._ensureArrayContent(r)}addPendingEdits(e){let t=this._ensureLayerAndUpdateSupport();if(!this.editingEnabled){this._logWarning(`store:editing-disabled`,`Editing is disabled.`);return}this.autoSaveEnabled&&this._logWarning(`store:pending-edit`,`Edit will be cached, but 'autoSaveEnabled' is true.`,!0),this._stashPendingEdits(t,e)}async deleteAttachments(e,t){let{_layerWithAttachmentsEditing:n}=this;if(!n||!this.supportsUpdateAttachments||!t.length)return[];let r=await this._queueAttachmentsOperation(e,()=>n.deleteAttachments(this._createBaseGraphic(n,e),t));return this._ensureArray(r)}async deleteRowsByObjectId(e){let{_layerWithEditing:t}=this;if(!this.supportsDelete||!t)throw new s(`store:delete-error`,`Delete is not supported.`);let n=e.map(e=>this.getItemByObjectId(e)?.feature).filter(i),r=this._queueEditOperation(()=>t.applyEdits({deleteFeatures:n}));return e.forEach(e=>{this.featureTitleMap.delete(e),this._discardPendingEdit({objectId:e})}),r}discardPendingEdits(e){if(e?.length){e.forEach(e=>this._discardPendingEdit(e));return}for(let[e,t]of this._pendingEditsCache){let n=this.getItemByObjectId(e);n&&(n.feature=t.originalFeature)}this._pendingEditsCache.clear(),this._clearOptionsAndViolations()}itemHasInvalidPendingEdits(e,t){if(!this.hasInvalidPendingEdits)return!1;let n=this._layerWithContingentValues,r=this._pendingEditsCache.get(e);if(!n||!r)return!1;let i=this._getFeatureWithPendingEdits(e,r),a=this._contingentValuesManager;return t?!!a.getViolationForField(n,i,t):!!a.getAllViolations(n,i)}itemHasPendingEdits(e,t){let n=this._pendingEditsCache.get(e);return n?!t||n.changes.has(t):!1}async getAttachmentsByObjectId(e,t){let n=this.getItemByObjectId(e)?.attachments??[];return!n.length&&t?(await this._queryAttachments([e]))[e]??[]:n}getCachedFeaturesByPageIndex(e){return this.pageCache.get(e)}getFieldValueOptions(e){return this._contingentValuesManager.getFieldValueOptions(e)}async getFeatureTitle(e,n=!1){let{layer:r}=this,i=this.featureTitleMap.get(e),a=`${e}`;if(!r)return i||a;if(i&&!n)return i;if(!(`getFeatureTitle`in r)||!r.getFeatureTitle)return a;let o=this.getItemByObjectId(e)?.feature;o||=new t({attributes:{[r.objectIdField]:e},origin:r.graphicOrigin});let s=await r.getFeatureTitle(o,{fetchMissingFields:!0,removeHTML:!0});return s?(this.featureTitleMap.set(e,s),s):a}getItemByObjectId(e){for(let t of this.pageCache.values())for(let n of t)if(n.objectId===e)return n}getItemIndexByObjectId(e){let{pageCache:t,pageSize:n}=this,r=t.entries(),i=-1;for(let[t,a]of r)if(a.some((r,a)=>{let o=r.objectId===e;return o&&(i=t*n+a),o}),i>-1)break;return i}async load(){await m(this._loadDebounced())}async queryPage(e){let{layer:t,state:n}=this;if(!t||n!==`loaded`||!this.supportsQuery||this.size===0||this.maxSize===0)return[];let{pageIndex:r}=e;if(!V(r,this.pageCount))return[];let i=e.pageSize??this.pageSize,a=r*i,o=a+i;return await m(this._query({layer:t,start:a,num:o,pageIndex:r,pageSize:i}))??[]}async refresh(){await m(this._refreshDebounced())}reset(){this._reset()}async savePendingEdits(){let e=this._ensureLayerAndUpdateSupport();if(!this.editingEnabled){this._logWarning(`store:editing-disabled`,`Editing is disabled.`);return}if(this.autoSaveEnabled&&this._logWarning(`store:pending-edit`,`Edit will be cached, but 'autoSaveEnabled' is true.`,!0),!this._canSavePendingEdits){this._logError(`store:update-error`,`An error occurred. Unable to save pending edits.`);return}let t=[];for(let[e]of this._pendingEditsCache){let n=this.getItemByObjectId(e);n?.feature&&t.push(n.feature)}(await this._update(e,t,!0)).updateFeatureResults.find(e=>e.error)&&this.discardPendingEdits(),this._clearOptionsAndViolations()}syncSelectionSources(){let{defaultSelectionManager:e,layer:t,view:n}=this;e.view=n,e.sources.removeAll(),I(t)&&(e.sources.items=[t])}async updateAttachment(e,t,n){let{_layerWithAttachmentsEditing:r}=this;if(!r||!this.supportsUpdateAttachments)return{};let i=await this._queueAttachmentsOperation(e,()=>r.updateAttachment(this._createBaseGraphic(r,e),t,n));return this._ensureArrayContent(i)}async updateItem(e){let t=this._ensureLayerAndUpdateSupport();if(!this.editingEnabled){this._logWarning(`store:editing-disabled`,`Editing is disabled.`);return}if(this.hasContingentValues){let t=e.updates.some(e=>this.fieldsWithContingentValues.has(e.fieldName)),n=this.itemHasPendingEdits(e.objectId);if(n||t){let t=this._layerWithContingentValues,r=this.getItemByObjectId(e.objectId)?.feature?.clone();if(r){let i=this._contingentValuesManager.getAllViolations(t,r);if(e.updates.forEach(({fieldName:e,value:n})=>{let i=t.getField(e);i&&(r.attributes[i.name]=n)}),this._contingentValuesManager.validateContingencyConstraints(t,r).length||i.length||n){this._stashPendingEdits(t,[e]),this._contingentValuesManager.resetOptionsForLayer(t);return}}}}if(!this.autoSaveEnabled){this._stashPendingEdits(t,[e]);return}let{_sortedFieldNames:n}=this,r=e.updates.map(({fieldName:e})=>e),i=this._prepareEditsForUpdate([e]);!(await this._update(t,i)).updateFeatureResults.find(e=>e.error)&&r.some(e=>n.includes(e))&&this._clearCaches()}async verifyFeaturesByObjectId(e){let{layer:t,state:n}=this;if(!t||n!==`loaded`)return[];let{objectIdField:r}=t,i=await this._queryFeaturesByObjectId(e);return e.map(e=>i.some(t=>e===(t.getObjectId()??t.attributes[r])))}async _load(){let{layer:e}=this;if(this._reset(),!e)return;let t=new AbortController;this._loadController=t;try{if(await e.load(),e.parent&&E(e.parent)&&await e.parent.loadAll(),await e.when(),t.signal.aborted)return;let n=this.initialSize;if(this.initialSize=null,this.effectiveFilterByLayerScaleRange&&(this.visibleAtCurrentScale||(n=0)),await m(this._refresh(t,n)),t.signal.aborted){this._loadController=null;return}this._loaded=!0,this._loadController=null}catch(e){throw this._reset(),this._loadError=!0,this._logError(`store:load-error`,`An error occurred.`),e}}async _refresh(e,t){this._clearCaches();let n=e?.signal,r=await this._getSize(n,t),i=await this._queryAllObjectIds(n);n?.aborted||(this._size=r,this._objectIdCache.removeAll(),i?.length&&this._objectIdCache.addMany(i),this._syncPendingEdits())}async _queryAllObjectIds(e){return this.supportsPagination?void 0:await this._queryObjectIds(e)}_clearCaches(){this.pageCache.clear(),this._objectIdCache.removeAll()}_createBaseGraphic(e,n){let r=new t({attributes:{[e.objectIdField]:n}});return this._subtypeField&&this._subtypeCode!=null&&(r.attributes[this._subtypeField]=this._subtypeCode),r}_ensureArray(e){return Array.isArray(e)?e:[e]}_ensureArrayContent(e){return Array.isArray(e)?e[0]:e}_getObjectIdsForFeatures(e,t){return e.map(e=>e.getObjectId()??e.attributes[t.objectIdField])}_getObjectIdsForPage(e,t){let n=this._objectIdCache.toArray();return n.length>=e+t?n.slice(e,e+t):n.slice(e)}_logError(e,t){l.getLogger(this).error(e,t)}_logWarning(e,t,n=!1){n?l.getLogger(this).warnOnce(e,t):l.getLogger(this).warn(e,t)}_reset(){this._clearCaches(),this._pendingEditsCache.clear(),this.failures.removeAll(),this._attachmentsOperationQueue.removeAll(),this._editOperationQueue.removeAll(),this.featureTitleMap.clear(),this._loadController=f(this._loadController),this._queryOperationInfos.forEach(e=>e.controller.abort()),this._queryOperationInfos.clear(),this._temporaryHighlight=d(this._temporaryHighlight?.handle),this._temporaryHighlightAbortController=f(this._temporaryHighlightAbortController),this._loaded=!1,this._loadError=!1,this._size=0}async _getSize(e,t){return this.maxSize===0?0:t??await this._queryCount(e)}async _queryFeaturesByObjectId(e){let{layer:t}=this;if(!t||!this.supportsQuery)throw new s(`store:query-error`,`Layer does not support query operation.`);let{effectiveTimeExtent:n,effectiveWhere:r,orderByFields:i,supportsCacheHint:a,supportsOrderBy:o}=this,c=t.createQuery();return c.where=r,c.timeExtent=n,c.returnGeometry=!1,c.objectIds=e.length?e:void 0,c.outFields=[t.objectIdField],o&&(c.orderByFields=i),a&&(c.cacheHint=!0),(await t.queryFeatures(c)).features}async _syncTemporaryHighlight(e,t){let{highlightEnabled:n,highlightableLayerView:r}=this;r&&n&&e!=null&&(h(t),this._temporaryHighlight={id:e,handle:r.highlight(e,{name:N})})}_ensureLayerAndUpdateSupport(){let e=this._layerWithEditing;if(!e||!this.supportsUpdate)throw new s(`store:update-error`,`Update is not supported.`);return e}_stashPendingEdits(e,t){t.forEach(({objectId:t,updates:n})=>{let r=this.getItemByObjectId(t)?.feature;if(!r)throw new s(`store:update-error`,`Feature with provided 'objectId' not found.`);let i=r.clone(),a=u(this._pendingEditsCache,t,()=>({originalFeature:i,changes:new g}));n.forEach(({fieldName:t,value:n})=>{let i=e.getField(t);i?(a.changes.set(i.name,n),r.attributes[i.name]=n):this._logWarning(`store:pending-edit-unknown-field`,`The provided field does not belong to this layer.`)}),a.changes.size>0&&this._pendingEditsCache.set(t,a)})}_syncPendingEdits(){for(let[e,t]of this._pendingEditsCache){let n=this.getItemByObjectId(e)?.feature;if(n){let e=n.clone();for(let[e,r]of t.changes)n.attributes[e]=r;t.originalFeature=e}}}_getFeatureWithPendingEdits(e,t){let n=this.getItemByObjectId(e)?.feature;if(!n){n=t.originalFeature.clone();for(let[e,r]of t.changes)n.attributes[e]=r}return n}_discardPendingEdit({objectId:e,fieldName:t}){let n=this._pendingEditsCache.get(e);if(!n){this._logWarning(`store:pending-edit-not-found`,`Could not find a pending edit with the given information`);return}let r=this.getItemByObjectId(e);t?(r&&(r.feature.attributes[t]=n.originalFeature.attributes[t]),n.changes.delete(t),n.changes.size===0&&this._pendingEditsCache.delete(e)):(r&&(r.feature=n.originalFeature),this._pendingEditsCache.delete(e))}_clearOptionsAndViolations(){let{_layerWithContingentValues:e,_contingentValuesManager:t}=this;e&&(t.resetOptionsForLayer(e),t.resetViolationsForLayer(e))}_prepareEditsForUpdate(e){let n=[];return e.forEach(({objectId:e,updates:r})=>{let i=this.getItemByObjectId(e)?.feature;if(!i)return;let a=c(i.attributes);r.forEach(({fieldName:e,value:t})=>a[e]=t),n.push(new t({attributes:a,sourceLayer:i.sourceLayer}))}),n}_update(e,t,n=!1){let r=e.applyEdits({updateFeatures:t}).then(n=>{let{updateFeatureResults:r}=n,i=r.find(e=>!!e.error);if(i)throw i.error;return t.forEach(t=>{let n=t.getObjectId()??t.attributes[e.objectIdField],r=this.getItemByObjectId(n)?.feature;r&&(r.attributes=t.attributes),this.featureTitleMap.has(n)&&this.getFeatureTitle(n,!0)}),n});return this._queueEditOperation(()=>r,n)}_createFeatureStoreItems(e){let{attachments:t,features:n,layer:r,relatedRecords:i}=e,a=r.objectIdField;return n.map(e=>{let n=e.getObjectId()??e.attributes[a],o=[];!e.layer&&!e.sourceLayer&&(e.layer=r,e.sourceLayer=r);let s=this._pendingEditsCache.get(n);if(s){let t=e.clone(),n=s.changes;for(let[t,r]of n)e.attributes[t]=r;s.originalFeature=t}return i.forEach((e,t)=>{o.push({relationshipId:t,count:e[n]??0})}),{objectId:n,feature:e,attachments:t[n]??null,relatedRecords:o}})}async _query(e){let{pageIndex:t,refresh:n}=e;n===!0&&await this._refresh();let r=this.pageCache.get(t);if(r)return r;let i=this._queryOperationInfos.get(t);if(i)return i.task.promise;let a=new AbortController,o=await this._queryPage(e,a);return a.signal.aborted||this.pageCache.set(t,o),o}_queryAttachments(e,t){let{_layerWithAttachments:n,effectiveWhere:r}=this;return n?e.some(e=>typeof e!=`number`)?Promise.reject(new s(`invalid-object-id`,`Only numeric object ids are valid to query attachments`)):n.queryAttachments(new k({objectIds:e,where:r,returnMetadata:!0}),{signal:t}):Promise.resolve({})}async _queryCount(e){let{_relatedLayerSupportsCacheHint:t,layer:n,relationshipConfig:r,supportsCacheHint:i}=this;if(!n)return 0;if(r&&this._canUseRelatedLayer){let{objectId:n,relatedLayer:i,relationshipId:a}=r;return(await i.queryRelatedFeaturesCount(new A({cacheHint:t,relationshipId:a,objectIds:[n]}),{signal:e}))[n]??0}let{effectiveTimeExtent:a,effectiveWhere:o,filterGeometry:s,objectIds:c}=this,l=n.createQuery();return l.geometry=s,l.returnGeometry=!1,l.where=o,l.timeExtent=a,l.objectIds=c?.length?c:void 0,i&&(l.cacheHint=!0),n.queryFeatureCount(l,{signal:e})}async _queryFeatures(e,t){let{relationshipConfig:n}=this;if(n&&this._canUseRelatedLayer)return this._queryRelatedFeatures(e,n);let{_effectiveReturnM:r,_effectiveReturnZ:i,effectiveOutFields:a,effectiveTimeExtent:o,effectiveWhere:s,filterGeometry:c,objectIds:l,orderByFields:u,pageSize:d,returnGeometry:f,supportsCacheHint:p,supportsOrderBy:m,supportsPagination:h}=this,{layer:g,start:_}=e,v=l?.length,y=g.createQuery();return y.returnGeometry=f,y.outFields=a,y.returnM=r,y.returnZ=i,h?(y.start=_,y.num=d,y.where=s,y.timeExtent=o,y.objectIds=v?l:void 0):y.objectIds=v?l:this._getObjectIdsForPage(_,d??0),m&&(y.orderByFields=u),c&&(y.geometry=c),p&&(y.cacheHint=!0),(await g.queryFeatures(y,{signal:t})).features}_queryObjectIds(e){let{effectiveTimeExtent:t,effectiveWhere:n,filterGeometry:r,layer:i,objectIds:a,orderByFields:o,supportsCacheHint:s,supportsOrderBy:c}=this;if(!i)return Promise.resolve([]);let l=i.createQuery();return l.geometry=r,l.outFields=[i.objectIdField],l.returnGeometry=!1,l.where=n,l.timeExtent=t,l.objectIds=a?.length?a:void 0,c&&(l.orderByFields=o),s&&(l.cacheHint=!0),i.queryObjectIds(l,{signal:e})}async _queryPage(e,t){return this._queueQueryOperation(e.pageIndex,{controller:t,task:a(async()=>this._queryPageData(e,t))})}async _queryPageData(e,t){let{layer:n}=e,{signal:r}=t,i=await this._queryFeatures(e,r);if(r.aborted)return[];let a=this._getObjectIdsForFeatures(i,n),[o,s]=await Promise.all([this._queryAttachments(a,r),this._queryRelatedCounts(a,r)]);return t.signal.aborted?[]:this._createFeatureStoreItems({layer:n,features:i,attachments:o,relatedRecords:s})||[]}async _queryRelatedCounts(e,t){let{_layerWithRelationships:n,relationshipIds:r,supportsCacheHintQueryRelated:i}=this,a=new Map;return!n||!e?.length||!r.length||await Promise.allSettled(r.map(async r=>{let o=await n.queryRelatedFeaturesCount(new A({cacheHint:i,relationshipId:r,objectIds:e}),{signal:t});a.set(r,o)})),a}async _queryRelatedFeatures(e,t){let{_defaultOutFields:n,_effectiveReturnM:r,_effectiveReturnZ:i,orderByFields:a,pageSize:o,returnGeometry:s,supportsCacheHint:c}=this,{layer:l,start:u}=e,{objectId:d,relatedLayer:f,relationshipId:p}=t,m=l.createQuery(),h=new A({cacheHint:c,num:o,objectIds:[d],orderByFields:a,outFields:n,relationshipId:p,returnGeometry:s,returnM:r,returnZ:i,start:u,where:m.where??void 0});return(await f.queryRelatedFeatures(h))[d]?.features||[]}_queueAttachmentsOperation(e,t){return this._attachmentsOperationQueue.push(t),t().then(async n=>{this._attachmentsOperationQueue.remove(t);let r=this._ensureArray(n),i=r.some(e=>e.error),a=this.getItemByObjectId(e);return a&&(!i||r.length>1)&&(a.attachments=(await this._queryAttachments([e]))[e]),n}).catch(async n=>{this._logError(`store:attachment-error`,`An error occurred.`);let r={error:n,retry:()=>{this.failures.remove(r),this._queueAttachmentsOperation(e,t)},cancel:()=>this.failures.remove(r)};throw this.failures.add(r),this._attachmentsOperationQueue.remove(t),n})}_queueEditOperation(e,t=!1){return this._editOperationQueue.push(e),e().then(n=>(this._editOperationQueue.remove(e),t&&this._pendingEditsCache.clear(),n)).catch(t=>{this._logError(`store:edit-error`,`An error occurred.`);let n={error:t,retry:()=>{this.failures.remove(n),this._queueEditOperation(e)},cancel:()=>this.failures.remove(n)};throw this.failures.add(n),this._editOperationQueue.remove(e),t})}async _queueQueryOperation(e,t){this._queryOperationInfos.set(e,t);let n=await t.task.promise;return this._queryOperationInfos.delete(e),n}};e([x()],W.prototype,`_attachmentsOperationQueue`,void 0),e([x({readOnly:!0})],W.prototype,`_capabilities`,null),e([x()],W.prototype,`_canSavePendingEdits`,null),e([x()],W.prototype,`_contingentValuesManager`,void 0),e([x()],W.prototype,`_defaultOutFields`,void 0),e([x()],W.prototype,`_editOperationQueue`,void 0),e([x()],W.prototype,`_effectiveReturnZ`,null),e([x()],W.prototype,`_effectiveReturnM`,null),e([x()],W.prototype,`featureTitleMap`,void 0),e([x({readOnly:!0})],W.prototype,`_layerWithAttachments`,null),e([x({readOnly:!0})],W.prototype,`_layerWithAttachmentsEditing`,null),e([x()],W.prototype,`_layerWithContingentValues`,null),e([x({readOnly:!0})],W.prototype,`_layerWithEditing`,null),e([x({readOnly:!0})],W.prototype,`_layerWithRelationships`,null),e([x()],W.prototype,`_loaded`,void 0),e([x()],W.prototype,`_loadController`,void 0),e([x()],W.prototype,`_loadError`,void 0),e([x()],W.prototype,`_objectIdCache`,void 0),e([x()],W.prototype,`_pendingEditsCache`,void 0),e([x()],W.prototype,`_pendingEditsAreInvalid`,null),e([x()],W.prototype,`_queryOperationInfos`,void 0),e([x({readOnly:!0})],W.prototype,`_relatedLayer`,null),e([x({readOnly:!0})],W.prototype,`_relatedLayerCapabilities`,null),e([x({readOnly:!0})],W.prototype,`_relatedLayerSupportsCacheHint`,null),e([x()],W.prototype,`_relatedLayerSupportsQuery`,null),e([x()],W.prototype,`_relatedLayerSupportsQueryRelated`,null),e([x()],W.prototype,`_size`,void 0),e([x()],W.prototype,`_sortedFieldNames`,null),e([x()],W.prototype,`_subtypeCode`,null),e([x()],W.prototype,`_subtypeField`,null),e([x()],W.prototype,`_canUseRelatedLayer`,null),e([x()],W.prototype,`attachmentsEnabled`,void 0),e([x()],W.prototype,`autoSaveEnabled`,void 0),e([x()],W.prototype,`cachedPageCount`,null),e([x()],W.prototype,`canAddRelatedFeature`,null),e([x()],W.prototype,`defaultSelectionManager`,void 0),e([x()],W.prototype,`editingEnabled`,void 0),e([x()],W.prototype,`effectiveFilterByLayerScaleRange`,null),e([x()],W.prototype,`effectiveOutFields`,null),e([x()],W.prototype,`effectiveSelectionManager`,null),e([x()],W.prototype,`effectiveSize`,null),e([x()],W.prototype,`effectiveTimeExtent`,null),e([x()],W.prototype,`effectiveWhere`,null),e([x({readOnly:!0})],W.prototype,`failures`,void 0),e([x()],W.prototype,`fieldsWithContingentValues`,null),e([x()],W.prototype,`filterByViewExtent`,void 0),e([x()],W.prototype,`filterByLayerScaleRange`,void 0),e([x({types:w})],W.prototype,`filterGeometry`,void 0),e([x()],W.prototype,`hasContingentValues`,null),e([x()],W.prototype,`hasInvalidPendingEdits`,null),e([x()],W.prototype,`hasPendingEdits`,null),e([x()],W.prototype,`highlightEnabled`,void 0),e([x()],W.prototype,`highlightableLayerView`,null),e([x()],W.prototype,`initialSize`,void 0),e([x({readOnly:!0})],W.prototype,`isQuerying`,null),e([x({readOnly:!0})],W.prototype,`isSyncing`,null),e([x({readOnly:!0})],W.prototype,`isSyncingAttachmentEdits`,null),e([x({readOnly:!0})],W.prototype,`isSyncingFeatureEdits`,null),e([x({readOnly:!0})],W.prototype,`itemCache`,null),e([x()],W.prototype,`layer`,void 0),e([x()],W.prototype,`layerView`,null),e([x()],W.prototype,`maxSize`,void 0),e([x()],W.prototype,`objectIds`,void 0),e([x()],W.prototype,`orderByFields`,null),e([x()],W.prototype,`outFields`,void 0),e([x({readOnly:!0})],W.prototype,`pageCache`,void 0),e([x()],W.prototype,`pageCount`,null),e([x()],W.prototype,`pageIndex`,null),e([x()],W.prototype,`pageSize`,void 0),e([x()],W.prototype,`paginationEnabled`,void 0),e([x()],W.prototype,`pendingEditsCount`,null),e([x()],W.prototype,`relationship`,null),e([x()],W.prototype,`relationshipConfig`,void 0),e([x()],W.prototype,`relationshipIds`,null),e([x()],W.prototype,`relationshipInfos`,null),e([x()],W.prototype,`relationships`,null),e([x()],W.prototype,`relatedRecordsEnabled`,void 0),e([x()],W.prototype,`returnGeometry`,void 0),e([x()],W.prototype,`returnZ`,void 0),e([x()],W.prototype,`returnM`,void 0),e([x()],W.prototype,`selectionManager`,void 0),e([x({readOnly:!0})],W.prototype,`size`,null),e([x()],W.prototype,`sortOrders`,void 0),e([x({readOnly:!0})],W.prototype,`state`,null),e([x()],W.prototype,`supportsAdd`,null),e([x()],W.prototype,`supportsAddAttachments`,null),e([x()],W.prototype,`supportsAttachments`,null),e([x()],W.prototype,`supportsCacheHint`,null),e([x()],W.prototype,`supportsCacheHintQueryRelated`,null),e([x()],W.prototype,`supportsDelete`,null),e([x()],W.prototype,`supportsEditing`,null),e([x()],W.prototype,`supportsM`,null),e([x()],W.prototype,`supportsOrderBy`,null),e([x()],W.prototype,`supportsPagination`,null),e([x()],W.prototype,`supportsQuery`,null),e([x()],W.prototype,`supportsQueryRelated`,null),e([x()],W.prototype,`supportsResizeAttachments`,null),e([x()],W.prototype,`supportsUpdate`,null),e([x()],W.prototype,`supportsUpdateAttachments`,null),e([x()],W.prototype,`supportsZ`,null),e([x()],W.prototype,`syncViewSelection`,void 0),e([x()],W.prototype,`temporaryHighlightId`,void 0),e([x({type:j})],W.prototype,`timeExtent`,void 0),e([x()],W.prototype,`timeZone`,void 0),e([x()],W.prototype,`view`,void 0),e([x()],W.prototype,`viewTimeEnabled`,void 0),e([x()],W.prototype,`visibleAtCurrentScale`,null),e([x()],W.prototype,`where`,void 0),W=e([S(`esri.widgets.FeatureTable.support.FeatureStore`)],W);const G=W;export{G as default};
2
+ import{__decorate as e}from"tslib";import t from"../../../Graphic.js";import n from"../../../core/Accessor.js";import{equals as r,isSome as i}from"../../../core/arrayUtils.js";import{createTask as a}from"../../../core/asyncUtils.js";import o from"../../../core/Collection.js";import s from"../../../core/Error.js";import{clone as c}from"../../../core/lang.js";import l from"../../../core/Logger.js";import{getOrCreateMapValue as u}from"../../../core/MapUtils.js";import{removeMaybe as d,abortMaybe as f}from"../../../core/maybe.js";import{debounce as p,ignoreAbortErrors as m,throwIfAborted as h}from"../../../core/promiseUtils.js";import g from"../../../core/ReactiveMap.js";import{watch as _,when as v,syncAndInitial as y,sync as b}from"../../../core/reactiveUtils.js";import{property as x,subclass as S}from"../../../core/accessorSupport/decorators.js";import{isInEffectiveScaleRange as C}from"../../../geometry/support/scaleUtils.js";import{geometryTypes as w}from"../../../geometry/support/typeUtils.js";import{isFeatureLayer as T,isSubtypeGroupLayer as E,isSubtypeSublayer as D}from"../../../layers/support/layerUtils.js";import{combineTimeExtent as O}from"../../../layers/support/timeSupport.js";import k from"../../../rest/support/AttachmentQuery.js";import A from"../../../rest/support/RelationshipQuery.js";import j from"../../../time/TimeExtent.js";import M from"../../../views/SelectionManager.js";import{temporaryHighlightName as N}from"../../../views/support/HighlightDefaults.js";import{highlightsSupported as P}from"../../../views/support/layerViewUtils.js";import{isSelectableLayerWithObjectIds as F,isSelectableLayer as I}from"../../../views/support/selectionUtils.js";import{isIFeatureTableSupportedLayerWithAttachments as L,isIFeatureTableSupportedLayerWithAttachmentsEditing as R,isIFeatureTableSupportedLayerWithEditing as z,isIFeatureTableSupportedLayerWithRelationships as B,isPageIndexValid as V,findRelatedLayer as H}from"./tableUtils.js";import{ContingentValuesManager as U}from"../../support/ContingentValuesManager.js";let W=class extends n{constructor(e){super(e),this._attachmentsOperationQueue=new o,this._contingentValuesManager=new U,this._defaultOutFields=[`*`],this._editOperationQueue=new o,this.featureTitleMap=new g,this._loaded=!1,this._loadController=null,this._loadDebounced=p(()=>this._load()),this._loadError=!1,this._objectIdCache=new o,this._pendingEditsCache=new g,this._queryOperationInfos=new g,this._refreshDebounced=p(()=>this._refresh()),this._size=0,this._temporaryHighlight=null,this._temporaryHighlightAbortController=null,this.attachmentsEnabled=!1,this.autoSaveEnabled=!0,this.defaultSelectionManager=new M,this.editingEnabled=!1,this.failures=new o,this.filterByViewExtent=!1,this.filterByLayerScaleRange=!1,this.filterGeometry=null,this.highlightEnabled=!0,this.initialSize=null,this.layer=null,this.maxSize=null,this.objectIds=null,this.outFields=null,this.pageCache=new g,this.pageSize=50,this.paginationEnabled=!1,this.relationshipConfig=null,this.relatedRecordsEnabled=!1,this.returnGeometry=!1,this.returnZ=!1,this.returnM=!1,this.selectionManager=null,this.sortOrders=[],this.syncViewSelection=!1,this.temporaryHighlightId=void 0,this.timeExtent=null,this.timeZone=null,this.view=null,this.viewTimeEnabled=!1,this.where=null}initialize(){this.addHandles([_(()=>[this.effectiveWhere,this.filterGeometry,this.layer,this.objectIds,this.outFields,this.pageSize,this.relationshipConfig,this.returnGeometry,this.returnM,this.returnZ,this.visibleAtCurrentScale],()=>this._reset()),_(()=>this.orderByFields,()=>this._clearCaches(),{equals:r}),v(()=>this.attachmentsEnabled,()=>this._reset()),v(()=>this.relatedRecordsEnabled,()=>this._reset()),_(()=>this._layerWithContingentValues,e=>{let t=this._contingentValuesManager;e&&!t.layers.includes(e)&&t.layers.add(e)}),_(()=>[this.view?.extent,this.view?.stationary,this.filterByViewExtent],([e,t,n])=>{n&&(e?t&&(this.filterGeometry=e):this.filterGeometry=null)},y),_(()=>this.maxSize,(e,t)=>{t===0&&this._reset()}),_(()=>[this.layer,this.view],()=>this.syncSelectionSources(),y),_(()=>this.highlightEnabled,e=>this.defaultSelectionManager.highlightEnabled=e,y),_(()=>this.temporaryHighlightId,e=>{this._temporaryHighlight=d(this._temporaryHighlight?.handle),this._temporaryHighlightAbortController?.abort(),this._temporaryHighlightAbortController=new AbortController;let t=this._syncTemporaryHighlight(e,this._temporaryHighlightAbortController.signal);m(this.view?.addUpdatingPromise(t)??t)},b)])}destroy(){this.layer=null,this.itemCache.destroy(),this.failures.destroy(),this.defaultSelectionManager.destroy(),this._temporaryHighlight=d(this._temporaryHighlight?.handle),this._temporaryHighlightAbortController=f(this._temporaryHighlightAbortController)}get _capabilities(){let{layer:e}=this;return e?.effectiveCapabilities??e?.capabilities}get _canSavePendingEdits(){return this.supportsEditing&&this.hasPendingEdits&&!this.hasInvalidPendingEdits}get _effectiveReturnZ(){return this.returnZ&&this.supportsZ}get _effectiveReturnM(){return this.returnM&&this.supportsM}get _layerWithAttachments(){let{layer:e}=this;return!e||!this._capabilities||!this.attachmentsEnabled||!this.supportsAttachments||!L(e)?null:e}get _layerWithAttachmentsEditing(){let{_layerWithAttachments:e}=this;return!e||!R(e)||!this.supportsEditing?null:e}get _layerWithContingentValues(){let{layer:e}=this;return T(e)||E(e)?e:null}get _layerWithEditing(){let e=this.layer;return z(e)&&this.supportsEditing?e:null}get _layerWithRelationships(){let e=this.layer;return B(e)&&this.supportsQueryRelated?e:null}get _pendingEditsAreInvalid(){let e=this._pendingEditsCache,t=this._layerWithContingentValues;if(!t)return!1;for(let n of e.keys()){let r=e.get(n),i=this._getFeatureWithPendingEdits(n,r);for(let e of r.changes.keys())if(this._contingentValuesManager.getViolationForField(t,i,e))return!0}return!1}get _relatedLayer(){return this.relationshipConfig?.relatedLayer}get _relatedLayerCapabilities(){let{_relatedLayer:e}=this;return e?.effectiveCapabilities??e?.capabilities}get _relatedLayerSupportsCacheHint(){return!!this._relatedLayerCapabilities?.queryRelated?.supportsCacheHint}get _relatedLayerSupportsQuery(){return!!this._relatedLayerCapabilities?.operations.supportsQuery}get _relatedLayerSupportsQueryRelated(){let{_relatedLayerCapabilities:e}=this;return!!e?.queryRelated?.supportsCount&&!!e?.queryRelated?.supportsPagination}get _sortedFieldNames(){return this.sortOrders.map(({fieldName:e})=>e)}get _subtypeCode(){return this.layer?.subtypeCode??null}get _subtypeField(){let{layer:e}=this;return E(e?.parent)?e.subtypeField:null}get _canUseRelatedLayer(){return!!(this._relatedLayerSupportsQuery&&this._relatedLayerSupportsQueryRelated)}get cachedPageCount(){return this.pageCache.size}get canAddRelatedFeature(){let{state:e,relationship:t,supportsAdd:n,supportsEditing:r}=this;if(e!==`loaded`||!t||!n||!r)return!1;let{cardinality:i,role:a}=t,o=this.size>0;return!(i===`one-to-one`&&o||i===`one-to-many`&&a===`origin`&&o)}get effectiveFilterByLayerScaleRange(){return!!(this.view&&this.filterByLayerScaleRange)}get effectiveOutFields(){let{layer:e,outFields:t}=this;if(!e||!t?.length)return this._defaultOutFields;let n=[];t.forEach(t=>{let r=e.fieldsIndex.normalizeFieldName(t);r&&n.push(r)});let{objectIdField:r}=e,i=e.fieldsIndex.normalizeFieldName(r)??r;return i&&!n.includes(i)&&n.unshift(i),n}get effectiveSelectionManager(){let{layer:e,view:t}=this;return e&&this.syncViewSelection&&F(e)&&t?.selectionManager?.sources.includes(e)?t.selectionManager:this.selectionManager??this.defaultSelectionManager}get effectiveSize(){let{_size:e,maxSize:t}=this;return t==null?e:Math.min(t,e)}get effectiveTimeExtent(){let{layer:e,timeExtent:t,view:n,viewTimeEnabled:r}=this;return t||!e?t??void 0:!n||!r?e.timeExtent??void 0:O({datesInUnknownTimezone:e.datesInUnknownTimezone??void 0,timeExtent:e.timeExtent,timeInfo:e.timeInfo,timeOffset:e.timeOffset,useViewTime:e.useViewTime},n.timeExtent,this._get(`effectiveTimeExtent`))??void 0}get effectiveWhere(){let{layer:e,where:t}=this;return t!=null&&t!==``?t:D(e)&&e.parent?.definitionExpression?e.parent.definitionExpression:e?.definitionExpression||`1=1`}get fieldsWithContingentValues(){return this._contingentValuesManager.getFieldsWithContingentValues(this.layer)}get hasContingentValues(){return this.fieldsWithContingentValues.size>0}get hasInvalidPendingEdits(){return this.hasPendingEdits&&this._pendingEditsAreInvalid}get hasPendingEdits(){return this.pendingEditsCount>0}get highlightableLayerView(){let e=this.layerView;return P(e)?e:null}get isQuerying(){return this._queryOperationInfos.size>0}get isSyncing(){return this.isSyncingFeatureEdits||this.isSyncingAttachmentEdits}get isSyncingAttachmentEdits(){return this._attachmentsOperationQueue.length>0}get isSyncingFeatureEdits(){return this._editOperationQueue.length>0}get itemCache(){return new o({items:[...this.pageCache.values()].flat()})}get layerView(){let{layer:e,view:t}=this;if(!e||!t)return null;let n=e.type===`sublayer`||D(e)?e.parent:e;return t.allLayerViews.find(e=>e.layer===n)}get orderByFields(){let{_sortedFieldNames:e,layer:t,sortOrders:n}=this,r=n.filter(({fieldName:t,direction:n},r)=>e.indexOf(t)===r&&n!=null).map(({fieldName:e,direction:t})=>`${e} ${t?.toUpperCase()}`);if(t&&!r.length&&!t.objectIdField&&t.fields?.length){let e=t.fields.find(e=>e.name);if(e){let n=t.fieldsIndex.normalizeFieldName(e.name);n&&r.push(`${n} ASC`)}}return r}get pageCount(){let{effectiveSize:e,pageSize:t}=this;return e===0||t===0?1:Math.ceil(e/t)}get pageIndex(){return this._get(`pageIndex`)||0}set pageIndex(e){let{pageCount:t}=this;V(e,t)&&this._set(`pageIndex`,e)}get pendingEditsCount(){let e=0;return this._pendingEditsCache.forEach(t=>e+=t.changes.size),e}get relationship(){let{relationshipConfig:e}=this;return e?.relationshipId==null?null:this.relationships?.find(t=>t.id===e.relationshipId)}get relationshipIds(){return this.relationships?.map(e=>e.id)??[]}get relationshipInfos(){let{_layerWithRelationships:e,relatedRecordsEnabled:t,relationships:n,view:r}=this,i=[];return!t||!e?.loaded||!r?.map||!n?.length||n.forEach(t=>{let n=H(e,r,t);n&&(n.load().catch(()=>{}),i.push({layer:e,relatedLayer:n,relationshipId:t.id}))}),i}get relationships(){return this._layerWithRelationships?.relationships}get size(){return this._size}get state(){let{layer:e,_loaded:t,_loadError:n}=this;return!e||e.destroyed?`disabled`:n||e.loadError?`error`:this._loadController?`loading`:e.loadStatus===`loaded`&&t?`loaded`:`ready`}get supportsAdd(){return!!this._capabilities?.operations.supportsAdd}get supportsAddAttachments(){return!!(this._layerWithAttachmentsEditing&&(this.supportsAdd||this.supportsUpdate))}get supportsAttachments(){let{_capabilities:e}=this;return!!(e?.data?.supportsAttachment&&e?.operations.supportsQueryAttachments)}get supportsCacheHint(){return!!this._capabilities?.query?.supportsCacheHint}get supportsCacheHintQueryRelated(){return!!this._capabilities?.queryRelated?.supportsCacheHint}get supportsDelete(){return!!this._capabilities?.operations.supportsDelete}get supportsEditing(){return!!this._capabilities?.operations.supportsEditing}get supportsM(){return!!this.layer?.hasM&&!!this._capabilities?.data?.supportsM}get supportsOrderBy(){return!!this._capabilities?.query?.supportsOrderBy}get supportsPagination(){return!!this._capabilities?.query?.supportsPagination}get supportsQuery(){return!!this._capabilities?.operations.supportsQuery}get supportsQueryRelated(){let{_capabilities:e}=this;return!!e?.queryRelated?.supportsCount&&!!e?.queryRelated?.supportsPagination}get supportsResizeAttachments(){let{_capabilities:e}=this;return!!(this.supportsAttachments&&e?.attachment?.supportsResize)}get supportsUpdate(){return!!this._capabilities?.operations.supportsUpdate}get supportsUpdateAttachments(){return!!(this._layerWithAttachmentsEditing&&(this.supportsAdd||this.supportsUpdate))}get supportsZ(){return!!this.layer?.hasZ&&!!this._capabilities?.data?.supportsZ}get visibleAtCurrentScale(){let{layer:e}=this;return!e||!this.effectiveFilterByLayerScaleRange?!1:C(e.effectiveScaleRange,this.view?.scale)}async addAttachment(e,t){let{_layerWithAttachmentsEditing:n}=this;if(!n||!this.supportsAddAttachments)return{};let r=await this._queueAttachmentsOperation(e,()=>n.addAttachment(this._createBaseGraphic(n,e),t));return this._ensureArrayContent(r)}addPendingEdits(e){let t=this._ensureLayerAndUpdateSupport();if(!this.editingEnabled){this._logWarning(`store:editing-disabled`,`Editing is disabled.`);return}this.autoSaveEnabled&&this._logWarning(`store:pending-edit`,`Edit will be cached, but 'autoSaveEnabled' is true.`,!0),this._stashPendingEdits(t,e)}async deleteAttachments(e,t){let{_layerWithAttachmentsEditing:n}=this;if(!n||!this.supportsUpdateAttachments||!t.length)return[];let r=await this._queueAttachmentsOperation(e,()=>n.deleteAttachments(this._createBaseGraphic(n,e),t));return this._ensureArray(r)}async deleteRowsByObjectId(e){let{_layerWithEditing:t}=this;if(!this.supportsDelete||!t)throw new s(`store:delete-error`,`Delete is not supported.`);let n=e.map(e=>this.getItemByObjectId(e)?.feature).filter(i),r=this._queueEditOperation(()=>t.applyEdits({deleteFeatures:n}));return e.forEach(e=>{this.featureTitleMap.delete(e),this._discardPendingEdit({objectId:e})}),r}discardPendingEdits(e){if(e?.length){e.forEach(e=>this._discardPendingEdit(e));return}for(let[e,t]of this._pendingEditsCache){let n=this.getItemByObjectId(e);n&&(n.feature=t.originalFeature)}this._pendingEditsCache.clear(),this._clearOptionsAndViolations()}itemHasInvalidPendingEdits(e,t){if(!this.hasInvalidPendingEdits)return!1;let n=this._layerWithContingentValues,r=this._pendingEditsCache.get(e);if(!n||!r)return!1;let i=this._getFeatureWithPendingEdits(e,r),a=this._contingentValuesManager;return t?!!a.getViolationForField(n,i,t):!!a.getAllViolations(n,i)}itemHasPendingEdits(e,t){let n=this._pendingEditsCache.get(e);return n?!t||n.changes.has(t):!1}async getAttachmentsByObjectId(e,t){let n=this.getItemByObjectId(e)?.attachments??[];return!n.length&&t?(await this._queryAttachments([e]))[e]??[]:n}getCachedFeaturesByPageIndex(e){return this.pageCache.get(e)}getFieldValueOptions(e){return this._contingentValuesManager.getFieldValueOptions(e)}async getFeatureTitle(e,n=!1){let{layer:r}=this,i=this.featureTitleMap.get(e),a=`${e}`;if(!r)return i||a;if(i&&!n)return i;if(!(`getFeatureTitle`in r)||!r.getFeatureTitle)return a;let o=this.getItemByObjectId(e)?.feature;o||=new t({attributes:{[r.objectIdField]:e},origin:r.graphicOrigin});let s=await r.getFeatureTitle(o,{fetchMissingFields:!0,removeHTML:!0});return s?(this.featureTitleMap.set(e,s),s):a}getItemByObjectId(e){for(let t of this.pageCache.values())for(let n of t)if(n.objectId===e)return n}getItemIndexByObjectId(e){let{pageCache:t,pageSize:n}=this,r=t.entries(),i=-1;for(let[t,a]of r)if(a.some((r,a)=>{let o=r.objectId===e;return o&&(i=t*n+a),o}),i>-1)break;return i}async load(){await m(this._loadDebounced())}async queryPage(e){let{layer:t,state:n}=this;if(!t||n!==`loaded`||!this.supportsQuery||this.size===0||this.maxSize===0)return[];let{pageIndex:r}=e;if(!V(r,this.pageCount))return[];let i=e.pageSize??this.pageSize,a=r*i,o=a+i;return await m(this._query({layer:t,start:a,num:o,pageIndex:r,pageSize:i}))??[]}async refresh(){await m(this._refreshDebounced())}reset(){this._reset()}async savePendingEdits(){let e=this._ensureLayerAndUpdateSupport();if(!this.editingEnabled){this._logWarning(`store:editing-disabled`,`Editing is disabled.`);return}if(this.autoSaveEnabled&&this._logWarning(`store:pending-edit`,`Edit will be cached, but 'autoSaveEnabled' is true.`,!0),!this._canSavePendingEdits){this._logError(`store:update-error`,`An error occurred. Unable to save pending edits.`);return}let t=[];for(let[e]of this._pendingEditsCache){let n=this.getItemByObjectId(e);n?.feature&&t.push(n.feature)}(await this._update(e,t,!0)).updateFeatureResults.find(e=>e.error)&&this.discardPendingEdits(),this._clearOptionsAndViolations()}syncSelectionSources(){let{defaultSelectionManager:e,layer:t,view:n}=this;e.view=n,e.sources.removeAll(),I(t)&&(e.sources.items=[t])}async updateAttachment(e,t,n){let{_layerWithAttachmentsEditing:r}=this;if(!r||!this.supportsUpdateAttachments)return{};let i=await this._queueAttachmentsOperation(e,()=>r.updateAttachment(this._createBaseGraphic(r,e),t,n));return this._ensureArrayContent(i)}async updateItem(e){let t=this._ensureLayerAndUpdateSupport();if(!this.editingEnabled){this._logWarning(`store:editing-disabled`,`Editing is disabled.`);return}if(this.hasContingentValues){let t=e.updates.some(e=>this.fieldsWithContingentValues.has(e.fieldName)),n=this.itemHasPendingEdits(e.objectId);if(n||t){let t=this._layerWithContingentValues,r=this.getItemByObjectId(e.objectId)?.feature?.clone();if(r){let i=this._contingentValuesManager.getAllViolations(t,r);if(e.updates.forEach(({fieldName:e,value:n})=>{let i=t.getField(e);i&&(r.attributes[i.name]=n)}),this._contingentValuesManager.validateContingencyConstraints(t,r).length||i.length||n){this._stashPendingEdits(t,[e]),this._contingentValuesManager.resetOptionsForLayer(t);return}}}}if(!this.autoSaveEnabled){this._stashPendingEdits(t,[e]);return}let{_sortedFieldNames:n}=this,r=e.updates.map(({fieldName:e})=>e),i=this._prepareEditsForUpdate([e]);!(await this._update(t,i)).updateFeatureResults.find(e=>e.error)&&r.some(e=>n.includes(e))&&this._clearCaches()}async verifyFeaturesByObjectId(e){let{layer:t,state:n}=this;if(!t||n!==`loaded`)return[];let{objectIdField:r}=t,i=await this._queryFeaturesByObjectId(e);return e.map(e=>i.some(t=>e===(t.getObjectId()??t.attributes[r])))}async _load(){let{layer:e}=this;if(this._reset(),!e)return;let t=new AbortController;this._loadController=t;try{if(await e.load(),e.parent&&E(e.parent)&&await e.parent.loadAll(),await e.when(),t.signal.aborted)return;let n=this.initialSize;if(this.initialSize=null,this.effectiveFilterByLayerScaleRange&&(this.visibleAtCurrentScale||(n=0)),await m(this._refresh(t,n)),t.signal.aborted){this._loadController=null;return}this._loaded=!0,this._loadController=null}catch(e){throw this._reset(),this._loadError=!0,this._logError(`store:load-error`,`An error occurred.`),e}}async _refresh(e,t){this._clearCaches();let n=e?.signal,r=await this._getSize(n,t),i=await this._queryAllObjectIds(n);n?.aborted||(this._size=r,this._objectIdCache.removeAll(),i?.length&&this._objectIdCache.addMany(i),this._syncPendingEdits())}async _queryAllObjectIds(e){return this.supportsPagination?void 0:await this._queryObjectIds(e)}_clearCaches(){this.pageCache.clear(),this._objectIdCache.removeAll()}_createBaseGraphic(e,n){let r=new t({attributes:{[e.objectIdField]:n}});return this._subtypeField&&this._subtypeCode!=null&&(r.attributes[this._subtypeField]=this._subtypeCode),r}_ensureArray(e){return Array.isArray(e)?e:[e]}_ensureArrayContent(e){return Array.isArray(e)?e[0]:e}_getObjectIdsForFeatures(e,t){return e.map(e=>e.getObjectId()??e.attributes[t.objectIdField])}_getObjectIdsForPage(e,t){let n=this._objectIdCache.toArray();return n.length>=e+t?n.slice(e,e+t):n.slice(e)}_logError(e,t){l.getLogger(this).error(e,t)}_logWarning(e,t,n=!1){n?l.getLogger(this).warnOnce(e,t):l.getLogger(this).warn(e,t)}_reset(){this._clearCaches(),this._pendingEditsCache.clear(),this.failures.removeAll(),this._attachmentsOperationQueue.removeAll(),this._editOperationQueue.removeAll(),this.featureTitleMap.clear(),this._loadController=f(this._loadController),this._queryOperationInfos.forEach(e=>e.controller.abort()),this._queryOperationInfos.clear(),this._temporaryHighlight=d(this._temporaryHighlight?.handle),this._temporaryHighlightAbortController=f(this._temporaryHighlightAbortController),this._loaded=!1,this._loadError=!1,this._size=0}async _getSize(e,t){return this.maxSize===0?0:t??await this._queryCount(e)}async _queryFeaturesByObjectId(e){let{layer:t}=this;if(!t||!this.supportsQuery)throw new s(`store:query-error`,`Layer does not support query operation.`);let{effectiveTimeExtent:n,effectiveWhere:r,orderByFields:i,supportsCacheHint:a,supportsOrderBy:o}=this,c=t.createQuery();return c.where=r,c.timeExtent=n,c.returnGeometry=!1,c.objectIds=e.length?e:void 0,c.outFields=[t.objectIdField],o&&(c.orderByFields=i),a&&(c.cacheHint=!0),(await t.queryFeatures(c)).features}async _syncTemporaryHighlight(e,t){let{highlightEnabled:n,highlightableLayerView:r}=this;r&&n&&e!=null&&(h(t),this._temporaryHighlight={id:e,handle:r.highlight(e,{name:N})})}_ensureLayerAndUpdateSupport(){let e=this._layerWithEditing;if(!e||!this.supportsUpdate)throw new s(`store:update-error`,`Update is not supported.`);return e}_stashPendingEdits(e,t){t.forEach(({objectId:t,updates:n})=>{let r=this.getItemByObjectId(t)?.feature;if(!r)throw new s(`store:update-error`,`Feature with provided 'objectId' not found.`);let i=r.clone(),a=u(this._pendingEditsCache,t,()=>({originalFeature:i,changes:new g}));n.forEach(({fieldName:t,value:n})=>{let i=e.getField(t);i?(a.changes.set(i.name,n),r.attributes[i.name]=n):this._logWarning(`store:pending-edit-unknown-field`,`The provided field does not belong to this layer.`)}),a.changes.size>0&&this._pendingEditsCache.set(t,a)})}_syncPendingEdits(){for(let[e,t]of this._pendingEditsCache){let n=this.getItemByObjectId(e)?.feature;if(n){let e=n.clone();for(let[e,r]of t.changes)n.attributes[e]=r;t.originalFeature=e}}}_getFeatureWithPendingEdits(e,t){let n=this.getItemByObjectId(e)?.feature;if(!n){n=t.originalFeature.clone();for(let[e,r]of t.changes)n.attributes[e]=r}return n}_discardPendingEdit({objectId:e,fieldName:t}){let n=this._pendingEditsCache.get(e);if(!n){this._logWarning(`store:pending-edit-not-found`,`Could not find a pending edit with the given information`);return}let r=this.getItemByObjectId(e);t?(r&&(r.feature.attributes[t]=n.originalFeature.attributes[t]),n.changes.delete(t),n.changes.size===0&&this._pendingEditsCache.delete(e)):(r&&(r.feature=n.originalFeature),this._pendingEditsCache.delete(e))}_clearOptionsAndViolations(){let{_layerWithContingentValues:e,_contingentValuesManager:t}=this;e&&(t.resetOptionsForLayer(e),t.resetViolationsForLayer(e))}_prepareEditsForUpdate(e){let n=[];return e.forEach(({objectId:e,updates:r})=>{let i=this.getItemByObjectId(e)?.feature;if(!i)return;let a=c(i.attributes);r.forEach(({fieldName:e,value:t})=>a[e]=t),n.push(new t({attributes:a,sourceLayer:i.sourceLayer}))}),n}_update(e,t,n=!1){let r=e.applyEdits({updateFeatures:t}).then(n=>{let{updateFeatureResults:r}=n,i=r.find(e=>!!e.error);if(i)throw i.error;return t.forEach(t=>{let n=t.getObjectId()??t.attributes[e.objectIdField],r=this.getItemByObjectId(n)?.feature;r&&(r.attributes=t.attributes),this.featureTitleMap.has(n)&&this.getFeatureTitle(n,!0)}),n});return this._queueEditOperation(()=>r,n)}_createFeatureStoreItems(e){let{attachments:t,features:n,layer:r,relatedRecords:i}=e,a=r.objectIdField;return n.map(e=>{let n=e.getObjectId()??e.attributes[a],o=[];!e.layer&&!e.sourceLayer&&(e.layer=r,e.sourceLayer=r);let s=this._pendingEditsCache.get(n);if(s){let t=e.clone(),n=s.changes;for(let[t,r]of n)e.attributes[t]=r;s.originalFeature=t}return i.forEach((e,t)=>{o.push({relationshipId:t,count:e[n]??0})}),{objectId:n,feature:e,attachments:t[n]??null,relatedRecords:o}})}async _query(e){let{pageIndex:t,refresh:n}=e;n===!0&&await this._refresh();let r=this.pageCache.get(t);if(r)return r;let i=this._queryOperationInfos.get(t);if(i)return i.task.promise;let a=new AbortController,o=await this._queryPage(e,a);return a.signal.aborted||this.pageCache.set(t,o),o}_queryAttachments(e,t){let{_layerWithAttachments:n,effectiveWhere:r}=this;return n?e.some(e=>typeof e!=`number`)?Promise.reject(new s(`invalid-object-id`,`Only numeric object ids are valid to query attachments`)):n.queryAttachments(new k({objectIds:e,where:r,returnMetadata:!0}),{signal:t}):Promise.resolve({})}async _queryCount(e){let{_relatedLayerSupportsCacheHint:t,layer:n,relationshipConfig:r,supportsCacheHint:i}=this;if(!n)return 0;if(r&&this._canUseRelatedLayer){let{objectId:n,relatedLayer:i,relationshipId:a}=r;return(await i.queryRelatedFeaturesCount(new A({cacheHint:t,relationshipId:a,objectIds:[n]}),{signal:e}))[n]??0}let{effectiveTimeExtent:a,effectiveWhere:o,filterGeometry:s,objectIds:c}=this,l=n.createQuery();return l.geometry=s,l.returnGeometry=!1,l.where=o,l.timeExtent=a,l.objectIds=c?.length?c:void 0,i&&(l.cacheHint=!0),n.queryFeatureCount(l,{signal:e})}async _queryFeatures(e,t){let{relationshipConfig:n}=this;if(n&&this._canUseRelatedLayer)return this._queryRelatedFeatures(e,n);let{_effectiveReturnM:r,_effectiveReturnZ:i,effectiveOutFields:a,effectiveTimeExtent:o,effectiveWhere:s,filterGeometry:c,objectIds:l,orderByFields:u,pageSize:d,returnGeometry:f,supportsCacheHint:p,supportsOrderBy:m,supportsPagination:h}=this,{layer:g,start:_}=e,v=l?.length,y=g.createQuery();return y.returnGeometry=f,y.outFields=a,y.returnM=r,y.returnZ=i,h?(y.start=_,y.num=d,y.where=s,y.timeExtent=o,y.objectIds=v?l:void 0):y.objectIds=v?l:this._getObjectIdsForPage(_,d??0),m&&(y.orderByFields=u),c&&(y.geometry=c),p&&(y.cacheHint=!0),(await g.queryFeatures(y,{signal:t})).features}_queryObjectIds(e){let{effectiveTimeExtent:t,effectiveWhere:n,filterGeometry:r,layer:i,objectIds:a,orderByFields:o,supportsCacheHint:s,supportsOrderBy:c}=this;if(!i)return Promise.resolve([]);let l=i.createQuery();return l.geometry=r,l.outFields=[i.objectIdField],l.returnGeometry=!1,l.where=n,l.timeExtent=t,l.objectIds=a?.length?a:void 0,c&&(l.orderByFields=o),s&&(l.cacheHint=!0),i.queryObjectIds(l,{signal:e})}async _queryPage(e,t){return this._queueQueryOperation(e.pageIndex,{controller:t,task:a(async()=>this._queryPageData(e,t))})}async _queryPageData(e,t){let{layer:n}=e,{signal:r}=t,i=await this._queryFeatures(e,r);if(r.aborted)return[];let a=this._getObjectIdsForFeatures(i,n),[o,s]=await Promise.all([this._queryAttachments(a,r),this._queryRelatedCounts(a,r)]);return t.signal.aborted?[]:this._createFeatureStoreItems({layer:n,features:i,attachments:o,relatedRecords:s})||[]}async _queryRelatedCounts(e,t){let{_layerWithRelationships:n,relationshipIds:r,supportsCacheHintQueryRelated:i}=this,a=new Map;return!n||!e?.length||!r.length||await Promise.allSettled(r.map(async r=>{let o=await n.queryRelatedFeaturesCount(new A({cacheHint:i,relationshipId:r,objectIds:e}),{signal:t});a.set(r,o)})),a}async _queryRelatedFeatures(e,t){let{_defaultOutFields:n,_effectiveReturnM:r,_effectiveReturnZ:i,orderByFields:a,pageSize:o,returnGeometry:s,supportsCacheHint:c}=this,{layer:l,start:u}=e,{objectId:d,relatedLayer:f,relationshipId:p}=t,m=l.createQuery(),h=new A({cacheHint:c,num:o,objectIds:[d],orderByFields:a,outFields:n,relationshipId:p,returnGeometry:s,returnM:r,returnZ:i,start:u,where:m.where??void 0});return(await f.queryRelatedFeatures(h))[d]?.features||[]}_queueAttachmentsOperation(e,t){return this._attachmentsOperationQueue.push(t),t().then(async n=>{this._attachmentsOperationQueue.remove(t);let r=this._ensureArray(n),i=r.some(e=>e.error),a=this.getItemByObjectId(e);return a&&(!i||r.length>1)&&(a.attachments=(await this._queryAttachments([e]))[e]),n}).catch(async n=>{this._logError(`store:attachment-error`,`An error occurred.`);let r={error:n,retry:()=>{this.failures.remove(r),this._queueAttachmentsOperation(e,t)},cancel:()=>this.failures.remove(r)};throw this.failures.add(r),this._attachmentsOperationQueue.remove(t),n})}_queueEditOperation(e,t=!1){return this._editOperationQueue.push(e),e().then(n=>(this._editOperationQueue.remove(e),t&&this._pendingEditsCache.clear(),n)).catch(t=>{this._logError(`store:edit-error`,`An error occurred.`);let n={error:t,retry:()=>{this.failures.remove(n),this._queueEditOperation(e)},cancel:()=>this.failures.remove(n)};throw this.failures.add(n),this._editOperationQueue.remove(e),t})}async _queueQueryOperation(e,t){this._queryOperationInfos.set(e,t);let n=await t.task.promise;return this._queryOperationInfos.delete(e),n}};e([x()],W.prototype,`_attachmentsOperationQueue`,void 0),e([x({readOnly:!0})],W.prototype,`_capabilities`,null),e([x()],W.prototype,`_canSavePendingEdits`,null),e([x()],W.prototype,`_contingentValuesManager`,void 0),e([x()],W.prototype,`_defaultOutFields`,void 0),e([x()],W.prototype,`_editOperationQueue`,void 0),e([x()],W.prototype,`_effectiveReturnZ`,null),e([x()],W.prototype,`_effectiveReturnM`,null),e([x()],W.prototype,`featureTitleMap`,void 0),e([x({readOnly:!0})],W.prototype,`_layerWithAttachments`,null),e([x({readOnly:!0})],W.prototype,`_layerWithAttachmentsEditing`,null),e([x()],W.prototype,`_layerWithContingentValues`,null),e([x({readOnly:!0})],W.prototype,`_layerWithEditing`,null),e([x({readOnly:!0})],W.prototype,`_layerWithRelationships`,null),e([x()],W.prototype,`_loaded`,void 0),e([x()],W.prototype,`_loadController`,void 0),e([x()],W.prototype,`_loadError`,void 0),e([x()],W.prototype,`_objectIdCache`,void 0),e([x()],W.prototype,`_pendingEditsCache`,void 0),e([x()],W.prototype,`_pendingEditsAreInvalid`,null),e([x()],W.prototype,`_queryOperationInfos`,void 0),e([x({readOnly:!0})],W.prototype,`_relatedLayer`,null),e([x({readOnly:!0})],W.prototype,`_relatedLayerCapabilities`,null),e([x({readOnly:!0})],W.prototype,`_relatedLayerSupportsCacheHint`,null),e([x()],W.prototype,`_relatedLayerSupportsQuery`,null),e([x()],W.prototype,`_relatedLayerSupportsQueryRelated`,null),e([x()],W.prototype,`_size`,void 0),e([x()],W.prototype,`_sortedFieldNames`,null),e([x()],W.prototype,`_subtypeCode`,null),e([x()],W.prototype,`_subtypeField`,null),e([x()],W.prototype,`_canUseRelatedLayer`,null),e([x()],W.prototype,`attachmentsEnabled`,void 0),e([x()],W.prototype,`autoSaveEnabled`,void 0),e([x()],W.prototype,`cachedPageCount`,null),e([x()],W.prototype,`canAddRelatedFeature`,null),e([x()],W.prototype,`defaultSelectionManager`,void 0),e([x()],W.prototype,`editingEnabled`,void 0),e([x()],W.prototype,`effectiveFilterByLayerScaleRange`,null),e([x()],W.prototype,`effectiveOutFields`,null),e([x()],W.prototype,`effectiveSelectionManager`,null),e([x()],W.prototype,`effectiveSize`,null),e([x()],W.prototype,`effectiveTimeExtent`,null),e([x()],W.prototype,`effectiveWhere`,null),e([x({readOnly:!0})],W.prototype,`failures`,void 0),e([x()],W.prototype,`fieldsWithContingentValues`,null),e([x()],W.prototype,`filterByViewExtent`,void 0),e([x()],W.prototype,`filterByLayerScaleRange`,void 0),e([x({types:w})],W.prototype,`filterGeometry`,void 0),e([x()],W.prototype,`hasContingentValues`,null),e([x()],W.prototype,`hasInvalidPendingEdits`,null),e([x()],W.prototype,`hasPendingEdits`,null),e([x()],W.prototype,`highlightEnabled`,void 0),e([x()],W.prototype,`highlightableLayerView`,null),e([x()],W.prototype,`initialSize`,void 0),e([x({readOnly:!0})],W.prototype,`isQuerying`,null),e([x({readOnly:!0})],W.prototype,`isSyncing`,null),e([x({readOnly:!0})],W.prototype,`isSyncingAttachmentEdits`,null),e([x({readOnly:!0})],W.prototype,`isSyncingFeatureEdits`,null),e([x({readOnly:!0})],W.prototype,`itemCache`,null),e([x()],W.prototype,`layer`,void 0),e([x()],W.prototype,`layerView`,null),e([x()],W.prototype,`maxSize`,void 0),e([x()],W.prototype,`objectIds`,void 0),e([x()],W.prototype,`orderByFields`,null),e([x()],W.prototype,`outFields`,void 0),e([x({readOnly:!0})],W.prototype,`pageCache`,void 0),e([x()],W.prototype,`pageCount`,null),e([x()],W.prototype,`pageIndex`,null),e([x()],W.prototype,`pageSize`,void 0),e([x()],W.prototype,`paginationEnabled`,void 0),e([x()],W.prototype,`pendingEditsCount`,null),e([x()],W.prototype,`relationship`,null),e([x()],W.prototype,`relationshipConfig`,void 0),e([x()],W.prototype,`relationshipIds`,null),e([x()],W.prototype,`relationshipInfos`,null),e([x()],W.prototype,`relationships`,null),e([x()],W.prototype,`relatedRecordsEnabled`,void 0),e([x()],W.prototype,`returnGeometry`,void 0),e([x()],W.prototype,`returnZ`,void 0),e([x()],W.prototype,`returnM`,void 0),e([x()],W.prototype,`selectionManager`,void 0),e([x({readOnly:!0})],W.prototype,`size`,null),e([x()],W.prototype,`sortOrders`,void 0),e([x({readOnly:!0})],W.prototype,`state`,null),e([x()],W.prototype,`supportsAdd`,null),e([x()],W.prototype,`supportsAddAttachments`,null),e([x()],W.prototype,`supportsAttachments`,null),e([x()],W.prototype,`supportsCacheHint`,null),e([x()],W.prototype,`supportsCacheHintQueryRelated`,null),e([x()],W.prototype,`supportsDelete`,null),e([x()],W.prototype,`supportsEditing`,null),e([x()],W.prototype,`supportsM`,null),e([x()],W.prototype,`supportsOrderBy`,null),e([x()],W.prototype,`supportsPagination`,null),e([x()],W.prototype,`supportsQuery`,null),e([x()],W.prototype,`supportsQueryRelated`,null),e([x()],W.prototype,`supportsResizeAttachments`,null),e([x()],W.prototype,`supportsUpdate`,null),e([x()],W.prototype,`supportsUpdateAttachments`,null),e([x()],W.prototype,`supportsZ`,null),e([x()],W.prototype,`syncViewSelection`,void 0),e([x()],W.prototype,`temporaryHighlightId`,void 0),e([x({type:j})],W.prototype,`timeExtent`,void 0),e([x()],W.prototype,`timeZone`,void 0),e([x()],W.prototype,`view`,void 0),e([x()],W.prototype,`viewTimeEnabled`,void 0),e([x()],W.prototype,`visibleAtCurrentScale`,null),e([x()],W.prototype,`where`,void 0),W=e([S(`esri.widgets.FeatureTable.support.FeatureStore`)],W);const G=W;export{G as default};
@@ -1,17 +1,19 @@
1
1
  import type Accessor from "../../core/Accessor.js";
2
2
  import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
3
3
 
4
+ /** @deprecated since 5.2. Use the [Fullscreen component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-fullscreen/) instead. */
4
5
  export interface FullscreenViewModelProperties extends Partial<Pick<FullscreenViewModel, "view">> {
5
6
  /** The [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement) to present in fullscreen mode. */
6
7
  element?: HTMLElement | null;
7
8
  }
8
9
 
10
+ /** @deprecated since 5.2. Use the Fullscreen component's [`state`](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-fullscreen/#state) property instead. The component uses `"unsupported"` where this type uses `"feature-unsupported"`. */
9
11
  export type FullscreenViewModelState = "active" | "disabled" | "feature-unsupported" | "ready";
10
12
 
11
13
  /**
12
14
  * Provides the logic for the [Fullscreen](https://developers.arcgis.com/javascript/latest/references/core/widgets/Fullscreen/) widget.
13
15
  *
14
- * @deprecated since version 4.33. Use the JavaScript [Fullscreen API](https://developer.mozilla.org/docs/Web/API/Fullscreen_API) directly instead.
16
+ * @deprecated since version 4.33. Use the JavaScript [Fullscreen API](https://developer.mozilla.org/docs/Web/API/Fullscreen_API) directly or the [Fullscreen component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-fullscreen/) for map UI instead.
15
17
  * @since 4.6
16
18
  * @see [Fullscreen](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-fullscreen/) component
17
19
  * @see [Fullscreen](https://developers.arcgis.com/javascript/latest/references/core/widgets/Fullscreen/) widget - _Deprecated since 4.32. Use the [Fullscreen component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-fullscreen/) instead._
@@ -4,6 +4,7 @@ import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
4
4
  import type { GoTo, GoToProperties } from "../support/GoTo.js";
5
5
  import type { ViewpointProperties } from "../../Viewpoint.js";
6
6
 
7
+ /** @deprecated since 5.2. Use the [Home component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-home/) instead. */
7
8
  export interface HomeViewModelProperties extends GoToProperties, Partial<Pick<HomeViewModel, "view">> {
8
9
  /**
9
10
  * The [Viewpoint](https://developers.arcgis.com/javascript/latest/references/core/Viewpoint/), or point of view, to zoom to when
@@ -26,6 +27,7 @@ export interface HomeViewModelProperties extends GoToProperties, Partial<Pick<Ho
26
27
  viewpoint?: ViewpointProperties | null;
27
28
  }
28
29
 
30
+ /** @deprecated since 5.2. Use the Home component's [`state`](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-home/#state) property instead. */
29
31
  export type HomeViewModelState = "disabled" | "going-home" | "ready";
30
32
 
31
33
  /** @deprecated since 5.0. Use the [Home component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-home/) directly instead. */
@@ -1,6 +1,7 @@
1
1
  import type Accessor from "../../core/Accessor.js";
2
2
  import type { ScaleRange } from "../../layers/types.js";
3
3
 
4
+ /** @deprecated since 5.2. Use the [arcgis-slider-scale-range](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/) component directly instead. */
4
5
  export interface ScaleRangesProperties {}
5
6
 
6
7
  /** Lists the recommended scales for each named scale range. */
@@ -56,9 +57,11 @@ export interface NamedScaleRange extends ScaleRange {
56
57
  * The ScaleRanges class represents the ranges of scales for the
57
58
  * [ScaleRangeSlider](https://developers.arcgis.com/javascript/latest/references/core/widgets/ScaleRangeSlider/) widget.
58
59
  *
60
+ * @deprecated since 5.2. Use the [arcgis-slider-scale-range](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/) component directly instead.
59
61
  * @since 4.13
60
62
  * @see [ScaleRangeSlider](https://developers.arcgis.com/javascript/latest/references/core/widgets/ScaleRangeSlider/)
61
63
  * @see [ScaleRangeSliderViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel/)
64
+ * @see [Scale Range Slider component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/)
62
65
  */
63
66
  export default class ScaleRanges extends Accessor {
64
67
  /** The recommended scales at each of the named scale ranges. */
@@ -77,19 +77,19 @@
77
77
  * | `VI` | U.S. Virgin Islands|
78
78
  * | `ZA` | South Africa|
79
79
  *
80
- * @deprecated since 5.2. Use the [Scale Range Slider](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/) component instead.
80
+ * @deprecated since 5.2. Use the [Scale Range Slider component SupportedRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/spriteSheetsUtils/#SupportedRegion) instead.
81
81
  * @since 5.0
82
82
  */
83
83
  export type SupportedRegion = LowerCaseRegion | UpperCaseRegion;
84
84
 
85
85
  /**
86
- * @deprecated since 5.2. Use the [Scale Range Slider](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/) component instead.
86
+ * @deprecated since 5.2. Use the [Scale Range Slider component LowerCaseRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/spriteSheetsUtils/#LowerCaseRegion) instead.
87
87
  * @since 5.0
88
88
  */
89
89
  export type LowerCaseRegion = "ae" | "ar" | "at" | "au" | "be" | "bg" | "bo" | "br" | "ca" | "ch" | "ci" | "cl" | "cn" | "co" | "cr" | "cz" | "de" | "dk" | "ee" | "eg" | "es" | "fi" | "fr" | "gb" | "gl" | "gr" | "gt" | "hk" | "id" | "ie" | "il" | "in" | "iq" | "is" | "it" | "jp" | "ke" | "kr" | "kw" | "li" | "lt" | "lu" | "lv" | "ma" | "mg" | "ml" | "mo" | "mx" | "my" | "ni" | "nl" | "no" | "nz" | "pe" | "pl" | "pr" | "pt" | "ro" | "ru" | "rw" | "se" | "sg" | "sk" | "sr" | "sv" | "th" | "tn" | "tw" | "us" | "ve" | "vi" | "za";
90
90
 
91
91
  /**
92
- * @deprecated since 5.2. Use the [Scale Range Slider](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/) component instead.
92
+ * @deprecated since 5.2. Use the [Scale Range Slider component UpperCaseRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/spriteSheetsUtils/#UpperCaseRegion) instead.
93
93
  * @since 5.0
94
94
  */
95
95
  export type UpperCaseRegion = Uppercase<LowerCaseRegion>;