@arcgis/core 5.2.0-next.125 → 5.2.0-next.127

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 (472) hide show
  1. package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +3 -2
  2. package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +1 -0
  3. package/applications/Components/basemapToggleUtils.d.ts +53 -0
  4. package/applications/Components/basemapToggleUtils.js +2 -0
  5. package/arcgisGlobal.d.ts +2 -0
  6. package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
  7. package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/{e35eb93c0fb1f6de8db0.js → 00d9e41deecf5828975c.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{fe9582bc2244667e40ab.js → 05afa8c2b5929ce0545a.js} +1 -1
  11. package/assets/esri/core/workers/chunks/0a20f84b5f004a77a9f9.js +1 -0
  12. package/assets/esri/core/workers/chunks/{cfd56e0a716baf95e17b.js → 0a2b7c691a577cb3d189.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{6cf34cfdd063a1b6fe3e.js → 0ccd4200c5a2a5de6e16.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{ab8a1140bf31f46f8ebf.js → 1262918b2161d79851c0.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{bdf012e591a8476db467.js → 1406a884241809b62bff.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{d3ef23923424ad8c5048.js → 1c2723f9630e7d597843.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{378bdb4e5cd1ebada1f4.js → 1c33aa349beea9a3792f.js} +1 -1
  18. package/assets/esri/core/workers/chunks/1d040aa8951fff3141d9.js +1 -0
  19. package/assets/esri/core/workers/chunks/{54eeb4cac4fa092359ab.js → 2226c20c38e20713bcb5.js} +2 -2
  20. package/assets/esri/core/workers/chunks/{54eeb4cac4fa092359ab.js.LICENSE.txt → 2226c20c38e20713bcb5.js.LICENSE.txt} +2 -2
  21. package/assets/esri/core/workers/chunks/26995de0c18bef8db590.js +1 -0
  22. package/assets/esri/core/workers/chunks/2c7fc24649d91552e68a.js +1 -0
  23. package/assets/esri/core/workers/chunks/{f05becec0952a61bc654.js → 2ebad7e588b26e74cefe.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{2f52ad525744b8793d49.js → 3b7dff15a0058ea29886.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{4716693eca44e8f89f5c.js → 3bf56c33876ba56c4b21.js} +1 -1
  26. package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +1 -0
  27. package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +1 -0
  28. package/assets/esri/core/workers/chunks/{5b9b76e180cf206a8a0c.js → 4327d2c39a660bd89da7.js} +1 -1
  29. package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +1 -0
  30. package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +1 -0
  31. package/assets/esri/core/workers/chunks/{26bc509a031788bfa678.js → 4f464047c6f6c9486efd.js} +1 -1
  32. package/assets/esri/core/workers/chunks/50c29d10ec53f0e48e8a.js +1 -0
  33. package/assets/esri/core/workers/chunks/{58528ccb7f72ae76d52b.js → 540f60e31b19d85e9371.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{44857a76be2c0ac65bb9.js → 55a560fd872f7463b33d.js} +1 -1
  35. package/assets/esri/core/workers/chunks/58fb92775d668cfd295c.js +1 -0
  36. package/assets/esri/core/workers/chunks/{f0901f9c7135b708434f.js → 5adf2792416b22cd602f.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{b013b70e40dfb6ce013e.js → 668ec0bdfb2095e90c9e.js} +1 -1
  38. package/assets/esri/core/workers/chunks/67678054342178b601cf.js +1 -0
  39. package/assets/esri/core/workers/chunks/67dcf9b873cb037b2647.js +1 -0
  40. package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +1 -0
  41. package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +1 -0
  42. package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +1 -0
  43. package/assets/esri/core/workers/chunks/7dd94567833386dc74de.js +1 -0
  44. package/assets/esri/core/workers/chunks/{24673aac70d6c949b6fa.js → 86d7a3ae672a51b75fcc.js} +1 -1
  45. package/assets/esri/core/workers/chunks/88e11b645a1361f1bdbe.js +1 -0
  46. package/assets/esri/core/workers/chunks/{f0709c48daca93e759c8.js → 8b0d6205ceeec1ab446f.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{1f55701d23a5e5a0c70c.js → 8cb216404a6254bc695c.js} +123 -122
  48. package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +1 -0
  49. package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +1 -0
  50. package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +1 -0
  51. package/assets/esri/core/workers/chunks/{b96358d475dc98034aa4.js → a15ed056e7493ddf3b4c.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{25e212fe9a2ea37c9e81.js → a3a33ffa34f4d645ddfe.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{e22a013ec38989caf9de.js → a790fc6b22acf651574b.js} +1 -1
  54. package/assets/esri/core/workers/chunks/af0704494398f33aa315.js +1 -0
  55. package/assets/esri/core/workers/chunks/{813dd84933b407c8fe86.js → b34305474a861aaf6ccb.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{ce1ccf9ec90b786591e5.js → b396c4b4bb144200acc7.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{bbaaebe1774a22dba39b.js → bbfb80a6983574007ce5.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{3f082329a544c2c1d62d.js → bcf2e5cf6b9c6d0442bb.js} +1 -1
  59. package/assets/esri/core/workers/chunks/c35e9dee87937f483a3d.js +1 -0
  60. package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +1 -0
  61. package/assets/esri/core/workers/chunks/{4f7e8e4ddf52b5245ea4.js → c77496c350004ee66eb2.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{85739ed6af0f0a3cb302.js → c94bdfed831c775e04c0.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{2e3fd81653dc0d86456c.js → cfeba0ffb7fdc2a9af05.js} +1 -1
  64. package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +1 -0
  65. package/assets/esri/core/workers/chunks/d5f0fed415b5b155d57c.js +1 -0
  66. package/assets/esri/core/workers/chunks/d6e914f6ed45ea59034e.js +1 -0
  67. package/assets/esri/core/workers/chunks/{0fba5c0e89b057da548d.js → dc92710a8fdfb9135e55.js} +1 -1
  68. package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +1 -0
  69. package/assets/esri/core/workers/chunks/{df79c00b5ddbef7148a0.js → eaa7cb3ffa8c11706a09.js} +1 -1
  70. package/assets/esri/core/workers/chunks/eebbc86a15ae3adb5f38.js +1 -0
  71. package/assets/esri/core/workers/chunks/f479b4a4cee4bb2e046c.js +1 -0
  72. package/assets/esri/core/workers/chunks/{78abd6c42f39e6f6ffbb.js → f983296b6f4a62a911eb.js} +1 -1
  73. package/assets/esri/images/portal/gaussiansplatlayer16.png +0 -0
  74. package/assets/esri/images/portal/knowledgegraphlayer16.png +0 -0
  75. package/assets/esri/images/portal/propresentation16.png +0 -0
  76. package/assets/esri/images/portal/urbanproject16.png +0 -0
  77. package/assets/esri/images/support/loading-throb.gif +0 -0
  78. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  79. package/assets/esri/libs/pdfjs/pdf.worker.mjs +4 -63051
  80. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-arabic.woff2 +0 -0
  81. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-cyrillic.woff2 +0 -0
  82. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-ext.woff2 +0 -0
  83. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-georgian.woff2 +0 -0
  84. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-greek.woff2 +0 -0
  85. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-hebrew.woff2 +0 -0
  86. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-math.woff2 +0 -0
  87. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-thai.woff2 +0 -0
  88. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-vietnamese.woff2 +0 -0
  89. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02.woff2 +0 -0
  90. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-arabic.woff2 +0 -0
  91. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-cyrillic.woff2 +0 -0
  92. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-ext.woff2 +0 -0
  93. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-georgian.woff2 +0 -0
  94. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-greek.woff2 +0 -0
  95. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-hebrew.woff2 +0 -0
  96. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-math.woff2 +0 -0
  97. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-thai.woff2 +0 -0
  98. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-vietnamese.woff2 +0 -0
  99. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7.woff2 +0 -0
  100. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-arabic.woff2 +0 -0
  101. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-cyrillic.woff2 +0 -0
  102. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-ext.woff2 +0 -0
  103. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-georgian.woff2 +0 -0
  104. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-greek.woff2 +0 -0
  105. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-hebrew.woff2 +0 -0
  106. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-math.woff2 +0 -0
  107. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-thai.woff2 +0 -0
  108. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-vietnamese.woff2 +0 -0
  109. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688.woff2 +0 -0
  110. package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
  111. package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
  112. package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
  113. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-arabic.woff2 +0 -0
  114. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-cyrillic.woff2 +0 -0
  115. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-ext.woff2 +0 -0
  116. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-georgian.woff2 +0 -0
  117. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-greek.woff2 +0 -0
  118. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-hebrew.woff2 +0 -0
  119. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-math.woff2 +0 -0
  120. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-thai.woff2 +0 -0
  121. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-vietnamese.woff2 +0 -0
  122. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939.woff2 +0 -0
  123. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-cyrillic.woff2 +0 -0
  124. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-ext.woff2 +0 -0
  125. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-greek.woff2 +0 -0
  126. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-hebrew.woff2 +0 -0
  127. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-math.woff2 +0 -0
  128. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-vietnamese.woff2 +0 -0
  129. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d.woff2 +0 -0
  130. package/assets/esri/themes/base/fonts/fonts.scss +0 -0
  131. package/assets/esri/themes/base/icons/style.scss +0 -0
  132. package/assets/esri/themes/base/icons/variables.scss +0 -0
  133. package/assets/esri/themes/base/images/files/archive-32.svg +0 -0
  134. package/assets/esri/themes/base/images/files/cad-32.svg +0 -0
  135. package/assets/esri/themes/base/images/files/code-32.svg +0 -0
  136. package/assets/esri/themes/base/images/files/csv-32.svg +0 -0
  137. package/assets/esri/themes/base/images/files/excel-32.svg +0 -0
  138. package/assets/esri/themes/base/images/files/generic-32.svg +0 -0
  139. package/assets/esri/themes/base/images/files/gpx-32.svg +0 -0
  140. package/assets/esri/themes/base/images/files/image-32.svg +0 -0
  141. package/assets/esri/themes/base/images/files/pdf-32.svg +0 -0
  142. package/assets/esri/themes/base/images/files/report-32.svg +0 -0
  143. package/assets/esri/themes/base/images/files/sound-32.svg +0 -0
  144. package/assets/esri/themes/base/images/files/text-32.svg +0 -0
  145. package/assets/esri/themes/base/images/files/video-32.svg +0 -0
  146. package/assets/esri/themes/base/images/files/word-32.svg +0 -0
  147. package/assets/esri/themes/base/images/files/zip-32.svg +0 -0
  148. package/assets/esri/themes/base/images/loading-throb.gif +0 -0
  149. package/assets/esri/themes/base/widgets/_Bookmarks.scss +0 -0
  150. package/assets/esri/themes/base/widgets/_Tooltip.scss +37 -0
  151. package/assets/esri/themes/dark/main.css +1 -1
  152. package/assets/esri/themes/light/main.css +1 -1
  153. package/assets/esri/themes/light/view.css +1 -1
  154. package/assets/esri/views/interactive/tooltip/t9n/messages.en.json +1 -1
  155. package/assets/esri/widgets/Editor/t9n/messages.ar.json +1 -1
  156. package/assets/esri/widgets/Editor/t9n/messages.bg.json +1 -1
  157. package/assets/esri/widgets/Editor/t9n/messages.bs.json +1 -1
  158. package/assets/esri/widgets/Editor/t9n/messages.ca.json +1 -1
  159. package/assets/esri/widgets/Editor/t9n/messages.cs.json +1 -1
  160. package/assets/esri/widgets/Editor/t9n/messages.da.json +1 -1
  161. package/assets/esri/widgets/Editor/t9n/messages.de.json +1 -1
  162. package/assets/esri/widgets/Editor/t9n/messages.el.json +1 -1
  163. package/assets/esri/widgets/Editor/t9n/messages.es.json +1 -1
  164. package/assets/esri/widgets/Editor/t9n/messages.et.json +1 -1
  165. package/assets/esri/widgets/Editor/t9n/messages.fi.json +1 -1
  166. package/assets/esri/widgets/Editor/t9n/messages.fr.json +1 -1
  167. package/assets/esri/widgets/Editor/t9n/messages.he.json +1 -1
  168. package/assets/esri/widgets/Editor/t9n/messages.hr.json +1 -1
  169. package/assets/esri/widgets/Editor/t9n/messages.hu.json +1 -1
  170. package/assets/esri/widgets/Editor/t9n/messages.id.json +1 -1
  171. package/assets/esri/widgets/Editor/t9n/messages.it.json +1 -1
  172. package/assets/esri/widgets/Editor/t9n/messages.ja.json +1 -1
  173. package/assets/esri/widgets/Editor/t9n/messages.ko.json +1 -1
  174. package/assets/esri/widgets/Editor/t9n/messages.lt.json +1 -1
  175. package/assets/esri/widgets/Editor/t9n/messages.lv.json +1 -1
  176. package/assets/esri/widgets/Editor/t9n/messages.nl.json +1 -1
  177. package/assets/esri/widgets/Editor/t9n/messages.no.json +1 -1
  178. package/assets/esri/widgets/Editor/t9n/messages.pl.json +1 -1
  179. package/assets/esri/widgets/Editor/t9n/messages.pt-BR.json +1 -1
  180. package/assets/esri/widgets/Editor/t9n/messages.pt-PT.json +1 -1
  181. package/assets/esri/widgets/Editor/t9n/messages.ro.json +1 -1
  182. package/assets/esri/widgets/Editor/t9n/messages.ru.json +1 -1
  183. package/assets/esri/widgets/Editor/t9n/messages.sk.json +1 -1
  184. package/assets/esri/widgets/Editor/t9n/messages.sl.json +1 -1
  185. package/assets/esri/widgets/Editor/t9n/messages.sr.json +1 -1
  186. package/assets/esri/widgets/Editor/t9n/messages.sv.json +1 -1
  187. package/assets/esri/widgets/Editor/t9n/messages.th.json +1 -1
  188. package/assets/esri/widgets/Editor/t9n/messages.tr.json +1 -1
  189. package/assets/esri/widgets/Editor/t9n/messages.uk.json +1 -1
  190. package/assets/esri/widgets/Editor/t9n/messages.vi.json +1 -1
  191. package/assets/esri/widgets/Editor/t9n/messages.zh-CN.json +1 -1
  192. package/assets/esri/widgets/Editor/t9n/messages.zh-HK.json +1 -1
  193. package/assets/esri/widgets/Editor/t9n/messages.zh-TW.json +1 -1
  194. package/chunks/GlobalIllumination.glsl.js +10 -9
  195. package/chunks/GlobalIlluminationBlur.glsl.js +8 -8
  196. package/chunks/HeatmapDensity.glsl.js +5 -5
  197. package/chunks/Pattern.glsl.js +30 -30
  198. package/chunks/RibbonLine.glsl.js +19 -19
  199. package/config.js +1 -1
  200. package/core/Accessor.d.ts +1 -1
  201. package/core/accessorSupport/types.d.ts +5 -1
  202. package/core/lang.js +1 -1
  203. package/interfaces.d.ts +3 -0
  204. package/kernel.js +1 -1
  205. package/layers/ParquetLayer.d.ts +24 -15
  206. package/layers/ParquetLayer.js +1 -1
  207. package/layers/SceneLayer.js +1 -1
  208. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  209. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
  210. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  211. package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
  212. package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
  213. package/layers/geospatialPDF/geospatialPDFParserUtils.js +2 -0
  214. package/layers/geospatialPDF/projectionToWKTUtils.js +2 -0
  215. package/layers/geospatialPDF/renderExtentUtils.js +1 -1
  216. package/layers/geospatialPDF/sharedUtils.js +1 -1
  217. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  218. package/layers/graphics/dehydratedFeatures.js +1 -1
  219. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  220. package/layers/orientedImagery/transformations/utils.js +1 -1
  221. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  222. package/layers/raster/types.d.ts +6 -0
  223. package/layers/support/TimeSeriesCalculation.d.ts +32 -0
  224. package/layers/support/TimeSeriesCalculation.js +2 -0
  225. package/layers/support/TimeSeriesInfo.d.ts +19 -0
  226. package/layers/support/TimeSeriesInfo.js +1 -1
  227. package/layers/support/commonProperties.js +1 -1
  228. package/layers/support/timeSeriesUtils.d.ts +25 -1
  229. package/layers/support/timeSeriesUtils.js +1 -1
  230. package/layers/types.d.ts +1 -0
  231. package/package.json +3 -3
  232. package/popup/FeatureContentCollection.d.ts +19 -26
  233. package/popup/FeatureContentCollection.js +1 -1
  234. package/popup/types.d.ts +14 -3
  235. package/portal/schemas/definitions.js +1 -1
  236. package/portal/schemas/sceneLayerItem.js +1 -1
  237. package/renderers/support/AuthoringInfo.d.ts +8 -1
  238. package/renderers/support/AuthoringInfo.js +1 -1
  239. package/renderers/support/AuthoringInfoVisualVariable.d.ts +8 -1
  240. package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
  241. package/rest/imageService/fetchRasterInfo.js +1 -1
  242. package/rest/knowledgeGraph/DataModel.js +1 -1
  243. package/smartMapping/renderers/color.d.ts +12 -0
  244. package/smartMapping/renderers/color.js +1 -1
  245. package/smartMapping/renderers/opacity.d.ts +6 -0
  246. package/smartMapping/renderers/opacity.js +1 -1
  247. package/smartMapping/renderers/size.d.ts +12 -0
  248. package/smartMapping/renderers/size.js +1 -1
  249. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  250. package/smartMapping/renderers/support/rendererUtils.js +1 -1
  251. package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
  252. package/smartMapping/renderers/type.d.ts +6 -0
  253. package/smartMapping/renderers/type.js +1 -1
  254. package/smartMapping/renderers/univariateColorSize.d.ts +6 -0
  255. package/smartMapping/renderers/univariateColorSize.js +1 -1
  256. package/support/revision.js +1 -1
  257. package/symbols/cim/callouts/calloutAnalysisUtils.js +2 -0
  258. package/symbols/cim/callouts/effects/BackgroundCallout.js +1 -1
  259. package/symbols/cim/callouts/effects/BalloonCallout.js +1 -1
  260. package/symbols/cim/callouts/effects/PointSymbolCallout.js +1 -1
  261. package/symbols/cim/callouts/effects/SimpleLineCallout.js +1 -1
  262. package/symbols/cim/callouts/effects/calloutUtils.js +1 -1
  263. package/symbols/cim/cimAnalyzer.js +1 -1
  264. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  265. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +8 -0
  266. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  267. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  268. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +8 -0
  269. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  270. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +3 -2
  271. package/views/2d/engine/webgl/ClipMesh.js +1 -1
  272. package/views/2d/engine/webgl/mesh/factories/CalloutMeshWriterCoordinator.js +1 -1
  273. package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
  274. package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
  275. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  276. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  277. package/views/2d/engine/webgl/shaderGraph/techniques/fill/AFillMeshWriter.js +1 -1
  278. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  279. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  280. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
  281. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js +1 -1
  282. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  283. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  284. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
  285. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  286. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
  287. package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
  288. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  289. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +1 -1
  290. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  291. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterReferences.js +1 -1
  292. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  293. package/views/2d/engine/webgl/util/AnnotationMatcher.js +1 -1
  294. package/views/2d/engine/webgl/util/Matcher.js +1 -1
  295. package/views/2d/layers/LayerView2D.js +1 -1
  296. package/views/2d/layers/support/annodime/MatcherGeometryOverride.js +1 -1
  297. package/views/2d/layers/support/annodime/PrivateMatcherGeometryOverrideEffect.js +1 -1
  298. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  299. package/views/3d/analysis/Dimension/DimensionController.js +1 -1
  300. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  301. package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +3 -2
  302. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  303. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  304. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  305. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  306. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  307. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  308. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  309. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  310. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +5 -3
  311. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  312. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  313. package/views/3d/analysis/Viewshed/ViewshedPlacementRootPlugin.js +1 -1
  314. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  315. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +1 -0
  316. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  317. package/views/3d/input/handlers/DragRotate.js +1 -1
  318. package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
  319. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  320. package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
  321. package/views/3d/interactive/editingTools/manipulatedObjectUtils.js +1 -1
  322. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  323. package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
  324. package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
  325. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  326. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  327. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  328. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  329. package/views/3d/layers/support/FeatureMemory.js +2 -0
  330. package/views/3d/layers/support/FeatureTile.js +1 -1
  331. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  332. package/views/3d/layers/support/featureReference.js +1 -1
  333. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  334. package/views/3d/state/Constraints.js +1 -1
  335. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  336. package/views/3d/state/controllers/RotateController.js +1 -1
  337. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  338. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  339. package/views/3d/support/engineContent/line.js +1 -1
  340. package/views/3d/support/planarDistanceToGroundRatio.js +2 -0
  341. package/views/3d/support/popupHitTest.js +1 -1
  342. package/views/3d/terrain/OverlayManager.js +1 -1
  343. package/views/3d/terrain/OverlayRenderer.js +1 -1
  344. package/views/3d/terrain/TerrainSurface.js +1 -1
  345. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -13
  346. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +2 -2
  347. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  348. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  349. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  350. package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
  351. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  352. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  353. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  354. package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
  355. package/views/DOMContainer.d.ts +2 -2
  356. package/views/DOMContainer.js +1 -1
  357. package/views/PopupView.d.ts +1 -1
  358. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  359. package/views/analysis/LengthDimensionResult.d.ts +4 -1
  360. package/views/draw/support/managers/TooltipManager.js +1 -1
  361. package/views/interactive/options/SnappingOptions.d.ts +4 -2
  362. package/views/interactive/options/SnappingOptions.js +1 -1
  363. package/views/interactive/options/ViewOptions.d.ts +18 -0
  364. package/views/interactive/options/bindViewToolOptions.js +2 -0
  365. package/views/interactive/snapping/SnappingManagerPool.js +1 -1
  366. package/views/interactive/snapping/allLayerSnapping.js +1 -1
  367. package/views/interactive/tooltip/components/ElevationModeSelect.js +2 -0
  368. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  369. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  370. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  371. package/views/interactive/tooltip/infos/SketchTooltipInfo.js +1 -1
  372. package/views/overlay/FocusRegionOverlayItem.js +1 -1
  373. package/views/selection/SelectionOperation.d.ts +27 -1
  374. package/views/selection/types.d.ts +8 -20
  375. package/views/support/hitTestSelectUtils.js +1 -1
  376. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +1 -0
  377. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  378. package/widgets/AreaMeasurement2D.js +1 -1
  379. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -0
  380. package/widgets/BasemapLayerList.d.ts +1 -0
  381. package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +1 -0
  382. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  383. package/widgets/BasemapToggle.js +1 -1
  384. package/widgets/BatchAttributeForm/expressions/types.d.ts +1 -0
  385. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +9 -1
  386. package/widgets/BatchAttributeForm/types.d.ts +5 -1
  387. package/widgets/BatchAttributeForm.d.ts +1 -0
  388. package/widgets/Bookmarks/BookmarksViewModel.d.ts +1 -0
  389. package/widgets/Bookmarks.d.ts +1 -0
  390. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -0
  391. package/widgets/CatalogLayerList.d.ts +1 -0
  392. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +1 -0
  393. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  394. package/widgets/DirectionalPad.js +1 -1
  395. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +1 -0
  396. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  397. package/widgets/DistanceMeasurement2D.js +1 -1
  398. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  399. package/widgets/Editor/legacy/UpdateFeatureWorkflow.js +1 -1
  400. package/widgets/Editor/workflowUtils.js +1 -1
  401. package/widgets/Editor.d.ts +1 -0
  402. package/widgets/FeatureForm.d.ts +1 -0
  403. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +14 -0
  404. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  405. package/widgets/FeatureTable/support/FeatureStore.d.ts +14 -0
  406. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  407. package/widgets/FeatureTable.d.ts +1 -0
  408. package/widgets/FeatureTemplates.d.ts +1 -0
  409. package/widgets/Features/FeaturesViewModel.d.ts +1 -0
  410. package/widgets/Features.d.ts +2 -1
  411. package/widgets/HistogramRangeSlider.d.ts +1 -0
  412. package/widgets/Home/HomeViewModel.d.ts +1 -0
  413. package/widgets/Home.d.ts +1 -0
  414. package/widgets/LayerList/LayerListViewModel.d.ts +1 -0
  415. package/widgets/LayerList.d.ts +1 -0
  416. package/widgets/Locate/LocateViewModel.d.ts +1 -0
  417. package/widgets/Locate.d.ts +1 -0
  418. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  419. package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +1 -1
  420. package/widgets/OrientedImageryViewer/types.d.ts +4 -1
  421. package/widgets/OrientedImageryViewer.d.ts +4 -1
  422. package/widgets/Popup/types.d.ts +0 -7
  423. package/widgets/Popup.d.ts +8 -7
  424. package/widgets/Print/PrintViewModel.d.ts +1 -0
  425. package/widgets/Print.d.ts +1 -0
  426. package/widgets/Search.d.ts +1 -0
  427. package/widgets/Sketch.d.ts +1 -0
  428. package/widgets/Slider.d.ts +4 -0
  429. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +2 -0
  430. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  431. package/widgets/TimeSlider.d.ts +1 -0
  432. package/widgets/TimeSlider.js +1 -1
  433. package/widgets/Track/TrackViewModel.d.ts +1 -0
  434. package/widgets/Track.d.ts +1 -0
  435. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +1 -0
  436. package/widgets/UtilityNetworkTrace.d.ts +1 -0
  437. package/widgets/ValuePicker/types.d.ts +1 -0
  438. package/widgets/ValuePicker.d.ts +1 -0
  439. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +1 -0
  440. package/widgets/support/SelectionList/types.d.ts +2 -0
  441. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +2 -1
  442. package/assets/esri/core/workers/chunks/0148cb611bf7c8c5fe8a.js +0 -1
  443. package/assets/esri/core/workers/chunks/0a4a5ed831a4e4d8e0fc.js +0 -1
  444. package/assets/esri/core/workers/chunks/0acc754907395e83bbc6.js +0 -1
  445. package/assets/esri/core/workers/chunks/0f8ff964461cf8e0673b.js +0 -1
  446. package/assets/esri/core/workers/chunks/1e46703cb566c25458ad.js +0 -1
  447. package/assets/esri/core/workers/chunks/25c90092def215949db9.js +0 -1
  448. package/assets/esri/core/workers/chunks/2a34760b3f0c134898ec.js +0 -1
  449. package/assets/esri/core/workers/chunks/38890ac5917942374ab8.js +0 -1
  450. package/assets/esri/core/workers/chunks/3b4ceaf21be540cb3499.js +0 -1
  451. package/assets/esri/core/workers/chunks/4c4ba466e23159991322.js +0 -1
  452. package/assets/esri/core/workers/chunks/5afc12671a9a1bb6c56c.js +0 -1
  453. package/assets/esri/core/workers/chunks/606ac9358f508bda94f2.js +0 -1
  454. package/assets/esri/core/workers/chunks/6c3535aa7250c08b9e5b.js +0 -1
  455. package/assets/esri/core/workers/chunks/6c4def0faaef861a09c9.js +0 -1
  456. package/assets/esri/core/workers/chunks/7285a37cd5359aa4bac5.js +0 -1
  457. package/assets/esri/core/workers/chunks/753d1ff177ecee8e2377.js +0 -1
  458. package/assets/esri/core/workers/chunks/8a8e94b5d7d153361b0b.js +0 -1
  459. package/assets/esri/core/workers/chunks/923c45ebcf45d9ce8ae0.js +0 -1
  460. package/assets/esri/core/workers/chunks/9af36ee6a0df224859bc.js +0 -1
  461. package/assets/esri/core/workers/chunks/a7ce5b958dfeb240c4a5.js +0 -1
  462. package/assets/esri/core/workers/chunks/aed479c14d93955f4798.js +0 -1
  463. package/assets/esri/core/workers/chunks/be52c319a0a81ce1ba36.js +0 -1
  464. package/assets/esri/core/workers/chunks/c0ec87800faf99cbd8bd.js +0 -1
  465. package/assets/esri/core/workers/chunks/ca5a4f62b09cc8579dc0.js +0 -1
  466. package/assets/esri/core/workers/chunks/d090baaa974e1e83fa44.js +0 -1
  467. package/assets/esri/core/workers/chunks/e9f8325a4cf89ae816cc.js +0 -1
  468. package/assets/esri/core/workers/chunks/ed7d4e8725aaa0ca4589.js +0 -1
  469. package/assets/esri/core/workers/chunks/f4572ad25712d204f258.js +0 -1
  470. package/layers/geospatialPDF/GeospatialPDFParserUtils.js +0 -2
  471. package/layers/geospatialPDF/Projection.js +0 -2
  472. package/views/2d/engine/webgl/mesh/bufcut.js +0 -2
@@ -20,7 +20,7 @@ import type { ReadonlyArrayOrCollection } from "../core/Collection.js";
20
20
  import type { FeatureAbilitiesProperties } from "./support/FeatureAbilities.js";
21
21
  import type { PointProperties } from "../geometry/Point.js";
22
22
 
23
- export interface FeatureContentCollectionProperties extends GoToProperties, Partial<Pick<FeatureContentCollection, "activeFeature" | "aggregatedFeaturesEnabled" | "content" | "defaultPopupTemplateEnabled" | "diagnostics" | "featurePage" | "features" | "featuresPerPage" | "featureStream" | "heading" | "highlightEnabled" | "includeDefaultActions" | "initialDisplayMode" | "map" | "open" | "promises" | "selectedFeatureIndex" | "updateLocationEnabled" | "view" | "zoomFactor">> {
23
+ export interface FeatureContentCollectionProperties extends GoToProperties, Partial<Pick<FeatureContentCollection, "activeFeature" | "aggregatedFeaturesEnabled" | "content" | "defaultPopupTemplateEnabled" | "featurePage" | "features" | "featuresPerPage" | "featureStream" | "heading" | "highlightEnabled" | "includeDefaultActions" | "initialDisplayMode" | "map" | "open" | "selectedFeatureIndex" | "updateLocationEnabled" | "view" | "zoomFactor">> {
24
24
  /**
25
25
  * [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/) of [action](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or [action toggle](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionToggle/) objects.
26
26
  * Each action may be executed by clicking the icon or image symbolizing them.
@@ -179,7 +179,7 @@ export default class FeatureContentCollection extends FeatureContentCollectionSu
179
179
  *
180
180
  * @since 5.2
181
181
  */
182
- accessor diagnostics: FetchPopupFeaturesDiagnostics | null | undefined;
182
+ get diagnostics(): FetchPopupFeaturesDiagnostics | null | undefined;
183
183
  /**
184
184
  * The heading currently displayed for the selected feature item.
185
185
  *
@@ -286,7 +286,10 @@ export default class FeatureContentCollection extends FeatureContentCollectionSu
286
286
  * featureContentCollection.includeDefaultActions = false;
287
287
  */
288
288
  accessor includeDefaultActions: boolean;
289
- /** Indicates whether to initially display a list of features, or the content for one feature. */
289
+ /**
290
+ * Indicates whether to initially display a list of features, or the content for one feature.
291
+ * By default, a list is displayed when the associated view has `focusRegionEnabled` enabled; otherwise, the content for one feature is displayed.
292
+ */
290
293
  accessor initialDisplayMode: InitialDisplayOptions;
291
294
  /**
292
295
  * Geometry used to show the location of the feature. This is automatically set when selecting a feature. If displaying content not related to features in the map, such as the results from a task, then you must set this property before setting [open](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#open) to `true`.
@@ -322,28 +325,6 @@ export default class FeatureContentCollection extends FeatureContentCollectionSu
322
325
  * @see [waitingForResult](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#waitingForResult)
323
326
  */
324
327
  accessor open: boolean;
325
- /**
326
- * The number of pending promises remaining to be resolved.
327
- *
328
- * @internal
329
- * @see [promises property](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#promises)
330
- */
331
- get pendingPromisesCount(): number;
332
- /**
333
- * The number of selected [promises](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#promises) available.
334
- *
335
- * @internal
336
- */
337
- get promiseCount(): number;
338
- /**
339
- * An array of pending Promises that have not yet been fulfilled. If there are
340
- * no pending Promises, the value is `null`. When the pending Promises are
341
- * resolved they are removed from this array and the features they return
342
- * are pushed into the [features](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#features) array.
343
- *
344
- * @internal
345
- */
346
- accessor promises: Promise<Graphic[]>[];
347
328
  /**
348
329
  * The selected feature accessed. The [content](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#content) is
349
330
  * determined based on the [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) assigned to
@@ -376,7 +357,7 @@ export default class FeatureContentCollection extends FeatureContentCollectionSu
376
357
  *
377
358
  * @since 5.2
378
359
  */
379
- get streamingFeatures(): false;
360
+ get streamingFeatures(): boolean;
380
361
  /**
381
362
  * Dates and times will be displayed in this time zone. By default this time zone is
382
363
  * inherited from the associated [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#timeZone) or [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#timeZone) if the [view](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#view) property is set. When a view is not associated, then the property will fallback to the `system` time zone.
@@ -444,6 +425,18 @@ export default class FeatureContentCollection extends FeatureContentCollectionSu
444
425
  * @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#selectedFeatureIndex)
445
426
  */
446
427
  next(): void;
428
+ /**
429
+ * Opens the collection with a location and a feature stream. While waiting, the collection remains at its current location and becomes active when the first feature is available.
430
+ * If the location is `null` or `undefined`, the first feature's geometry determines the location. If no features become available, the collection closes without changing its location.
431
+ *
432
+ * @param options - The feature source and location used to open the collection.
433
+ * @internal
434
+ */
435
+ openFeatureStream(options: {
436
+ featureStream: AsyncGenerator<Graphic>;
437
+ diagnostics?: FetchPopupFeaturesDiagnostics;
438
+ location: Point | null | undefined;
439
+ }): void;
447
440
  /**
448
441
  * Selects the feature at the previous index in relation to the selected feature.
449
442
  *
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{isSome as t}from"../core/arrayUtils.js";import{deprecatedProperty as i}from"../core/deprecate.js";import r from"../core/Error.js";import{EventedAccessor as s}from"../core/Evented.js";import a from"../core/Logger.js";import{abortMaybe as n}from"../core/maybe.js";import{debounce as o,logOnError as l,isAbortError as u}from"../core/promiseUtils.js";import h from"../core/ReactiveSet.js";import{watch as c,when as p,sync as d}from"../core/reactiveUtils.js";import{addMany as g}from"../core/SetUtils.js";import{property as m,subclass as f}from"../core/accessorSupport/decorators.js";import y from"../geometry/Point.js";import{project as _}from"../geometry/projectionUtils.js";import F from"../geometry/SpatialReference.js";import{geographicToWebMercator as v}from"../geometry/support/webMercatorUtils.js";import{getGraphicLayer as w}from"../graphic/graphicOriginUtils.js";import{fallbackObjectIDAttribute as b}from"../layers/LayerConstants.js";import{ActionsCollection as I,zoomToAggregatedFeatures as C,browseAggregatedFeatures as P,zoomToFeature as S}from"./actions.js";import{getSelectedTarget as A}from"./actionUtils.js";import L from"./FeatureContent.js";import x from"./support/FeatureAbilities.js";import{getDisplayedSymbol as j}from"../symbols/support/symbolUtils.js";import{system as E}from"../time/constants.js";import{highlightsSupported as R}from"../views/support/layerViewUtils.js";import{GoTo as O}from"../widgets/support/GoTo.js";const U=()=>[S.clone()],T=()=>[C.clone(),P.clone()];let M=null;function H(e,t){switch(e){case"building-scene":case"map-image":case"tile":case"imagery":return!0;case"imagery-tile":return"2d"===t;default:return!1}}let V=class extends(O(s)){constructor(e){super(e),this._pendingPromises=new h,this._centerAtLocationController=null,this._locationUpdateController=null,this._highlightPromises={"highlight-active-feature":null,"highlight-selected-feature":null},this._defaultFeatureAbilities=new x,this._featureStreamVersion=0,this._activeFeatureStream=null,this.actions=new I,this.activeFeature=null,this.aggregatedFeaturesEnabled=!1,this.defaultPopupTemplateEnabled=!1,this.diagnostics=null,this.featurePage=null,this.featuresPerPage=20,this.featureMenuOpen=!1,this.featureItemAbilities=null,this.featureItems=[],this.heading=null,this.highlightEnabled=!0,this.includeDefaultActions=!0,this.open=!1,this.streamingFeatures=!1,this.updateLocationEnabled=!1,this.view=null,this.zoomFactor=4,this._debouncedLocationUpdate=o(async()=>{this._cancelLocationUpdate();const e=new AbortController,{signal:t}=e;this._locationUpdateController=e,await this._locationUpdate({signal:t}).catch(()=>{}).finally(()=>{this._locationUpdateController===e&&(this._locationUpdateController=null)})})}initialize(){this.addHandles([c(()=>this.view?.scale,()=>{this.open&&l(this._debouncedLocationUpdate(),a.getLogger(this))}),c(()=>[this.highlightEnabled,this.selectedFeature,this.open,this.view],()=>this._highlightSelectedFeature()),c(()=>[this.highlightEnabled,this.activeFeature,this.open,this.view],()=>this._highlightActiveFeature()),c(()=>this.location,e=>this._locationChange(e)),c(()=>this.selectedFeature,e=>this._selectedFeatureChange(e)),c(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),c(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureItems],()=>this._setGraphicOnFeatureItems()),c(()=>this.featureItems,()=>this._featureItemsChange()),c(()=>[this.featureItemAbilities?.attachmentsContent,this.featureItemAbilities?.chartAnimation,this.featureItemAbilities?.customContent,this.featureItemAbilities?.expressionContent,this.featureItemAbilities?.fieldsContent,this.featureItemAbilities?.mediaContent,this.featureItemAbilities?.relationshipContent,this.featureItemAbilities?.textContent,this.featureItemAbilities?.utilityNetworkAssociationsContent,this.features,this.map,this.spatialReference,this.timeZone],()=>this._updateFeatureItems()),p(()=>!this.waitingForResult,()=>this._waitingForResultChange(),d),p(()=>!this.open,()=>this.aggregatedFeaturesEnabled=!1)])}destroy(){this._cancelLocationUpdate(),this._cancelCenterAtLocation(),this._cancelFeatureStream(),this._pendingPromises.clear(),this.aggregatedFeaturesEnabled=!1,this.view=null,this.map=null,this.spatialReference=null,this.timeZone=null}get active(){return this.open&&!this.waitingForResult}get allActions(){const e=this._get("allActions")||new I;e.removeAll();const{actions:i,defaultActions:r,defaultPopupTemplateEnabled:s,includeDefaultActions:a,selectedFeature:n}=this,o=a?r.concat(i):i,l=n&&("function"==typeof n.getEffectivePopupTemplate&&n.getEffectivePopupTemplate(s)||n.popupTemplate),u=l?.actions,h=l?.overwriteActions?u:u?.concat(o)??o;return h?.filter(t).forEach(t=>e.add(t)),e}set content(e){this.promises=[],this.diagnostics=null,this.featureStream=null,this._set("content",e)}get defaultActions(){const e=this._get("defaultActions")||new I;return e.removeAll(),e.addMany(this.selectedFeature?.isAggregate?T():U()),e}get effectiveHeading(){return this.selectedFeatureItem?.heading??this.heading}get featureCount(){return this.features.length}set features(e){if(this._get("features")===e)return;const t=e||[];this._set("features",t),this._syncSelectedFeatureIndex(t)}get featureStream(){return this._get("featureStream")||null}set featureStream(e){if(this._get("featureStream")===e)return;if(this.diagnostics=null,this._set("featureStream",e),this._cancelFeatureStream(),!e)return;this.promises=[];const t=this._featureStreamVersion;this._activeFeatureStream=e,this._setStreamingFeatures(!0),this._consumeFeatureStream(e,t).catch(()=>{})}get initialDisplayMode(){return this._get("initialDisplayMode")??(this.view?.focusRegionEnabled?"list":"feature")}set initialDisplayMode(e){this._set("initialDisplayMode",e),this._syncSelectedFeatureIndex(this.features)}set location(e){const t=e?.spatialReference?.isWGS84&&this.spatialReference?.isWebMercator?v(e):e;this._set("location",t)}get map(){return this.view?.map??null}set map(e){this._override("map",e)}get pendingPromisesCount(){return this._pendingPromises.size}get promiseCount(){return this.promises.length}get promises(){const e=this._get("promises")||[];return e.length>0&&i(a.getLogger(this),"promises",{replacement:"featureStream",warnOnce:!0}),e}set promises(e){Array.isArray(e)&&e.length>0&&i(a.getLogger(this),"promises",{replacement:"featureStream",warnOnce:!0}),this._get("promises")!==e&&(this._cancelFeatureStream(),this._pendingPromises.clear(),this.features=[],Array.isArray(e)&&e.length?(this._set("promises",e),e=e.slice(),g(this._pendingPromises,e),e.reduce((e,t)=>e.finally(()=>t.then(e=>{this._pendingPromises.has(t)&&this._updateFeatures(e)}).finally(()=>this._pendingPromises.delete(t)).catch(()=>{})),Promise.resolve())):this._set("promises",[]))}get selectedFeature(){return-1===this.selectedFeatureIndex?null:this.features[this.selectedFeatureIndex]??null}get selectedFeatureIndex(){const e=this._get("selectedFeatureIndex");return"number"==typeof e?e:-1}set selectedFeatureIndex(e){const{featureCount:t}=this;(isNaN(e)||e<0||!t)&&(e=-1),this.activeFeature=null,this._set("selectedFeatureIndex",e)}get selectedFeatureItem(){return this.featureItems[this.selectedFeatureIndex]||null}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(e){this._override("spatialReference",e)}get state(){return this.view?this.view.ready?"ready":"disabled":this.map?"ready":"disabled"}get timeZone(){return this.view?.timeZone??E}set timeZone(e){this._overrideIfSome("timeZone",e)}get waitingForContents(){return this.featureItems.some(e=>e.waitingForContent)}get waitingForResult(){return(this.streamingFeatures||this.pendingPromisesCount>0)&&0===this.featureCount}zoomTo(e){return this.callGoTo(e)}clear(){this._cancelFeatureStream(),this.set({diagnostics:null,featureStream:null,promises:[],features:[],content:null,heading:null,location:null,activeFeature:null})}async fetchFeatures(e,t){const{view:i}=this;if(!i||!e)throw new r("fetch-features:invalid-screenpoint-or-view","Cannot fetch features without a screen point/screen area and view.",{screenPoint:e,view:i});const s={},a=i.fetchPopupFeatures(e,{diagnostics:s,pointerType:t?.event?.pointerType,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:t?.signal});this.featureStream=a,this.diagnostics=s}next(){this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex+1,this.featureCount)}previous(){this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex-1,this.featureCount)}_syncSelectedFeatureIndex(e){const{pendingPromisesCount:t,promiseCount:i,selectedFeatureIndex:r}=this,s=i>0&&e.length>0,a=null!=this._activeFeatureStream&&e.length>0,n=s||a;"list"!==this.initialDisplayMode?n&&-1===r?this.selectedFeatureIndex=0:n&&-1!==r||(this.selectedFeatureIndex=e.length?0:-1):(!n||s&&t===i)&&(this.selectedFeatureIndex=-1)}_centerAtLocation(){const{view:e}=this,t=A(this);this._cancelCenterAtLocation();const i=new AbortController,{signal:s}=i;return this._centerAtLocationController=i,t&&e?this.callGoTo({target:{target:t,scale:e.scale},options:{signal:s}}).catch(e=>{u(e)||a.getLogger(this).error(e)}):Promise.reject(new r("center-at-location:invalid-target-or-view","Cannot center at a location without a target and view.",{target:t,view:e}))}_getRoundRobinIndex(e,t){return(e+t)%t}_locationChange(e){const{selectedFeature:t,updateLocationEnabled:i,view:r}=this;r&&!this._locationUpdateController&&i&&e&&(!t||t.geometry)&&this._centerAtLocation()}_selectedFeatureIndexChange(){-1!==this.selectedFeatureIndex&&(this.featurePage=this.featureCount>0?Math.floor(this.selectedFeatureIndex/this.featuresPerPage)+1:null)}_featureItemsChange(){this.featurePage=this.featureCount>0?1:null}_setGraphicOnFeatureItems(){const{features:e,featureCount:t,featurePage:i,featuresPerPage:r,featureItems:s}=this;if(null==i)return;const a=((i-1)*r+t)%t,n=Math.min(a+r,s.length);for(let o=a;o<n;o++){const t=s[o];t&&(t.graphic??=e[o])}}async _selectedFeatureChange(e){const{location:t,updateLocationEnabled:i,view:r}=this;if(this.aggregatedFeaturesEnabled=!1,!e||!r)return;const s=w(e)?.type;if("map-image"!==s&&"imagery"!==s&&"imagery-tile"!==s||(e.symbol=await j(e)),(i||!t)&&e.geometry){if("point"===e.geometry.type)return void(this.location=e.geometry);const{labelPointExecute:t}=await(import("../geometry/operators/labelPointOperator.js"));return void(this.location=t(e.geometry))}if(i&&!e.geometry){await this._centerAtLocation();const e=r.center?.clone();e&&(this.location=e)}}_waitingForResultChange(){!this.featureCount&&(this.promises.length>0||this.featureStream)&&(this.open=!1)}_destroyFeatureItems(){this.featureItems.forEach(e=>e&&!e.destroyed&&e.destroy()),this._set("featureItems",[])}_updateFeatureItems(){const e=this.selectedFeature,t=this.features,i=this.featureItems,r=this.view,s=this.spatialReference,a=this.map,n=this.timeZone,o=this.location,l=this.featureItemAbilities??this._defaultFeatureAbilities;if(!t?.length)return void this._destroyFeatureItems();const u=[],h=new Map,c=new Set;i.forEach(e=>{const t=e?.graphic;e&&t&&h.set(t,e)}),t.forEach((t,p)=>{if(!t)return;const d=i[p];if(d&&!c.has(d)&&(null==d.graphic||d.graphic===t))return d.abilities=l,u[p]=d,void c.add(d);const g=h.get(t);if(g&&!c.has(g))return g.abilities=l,u[p]=g,void c.add(g);const m=new L({abilities:l,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:s,graphic:t===e?t:null,location:o,map:a,view:r,timeZone:n});u[p]=m,c.add(m)}),i.forEach(e=>{!e||c.has(e)||e.destroyed||e.destroy()}),this._set("featureItems",u)}_cancelCenterAtLocation(){this._centerAtLocationController=n(this._centerAtLocationController)}_cancelFeatureStream(){this._featureStreamVersion++,this._setStreamingFeatures(!1);const e=this._activeFeatureStream;this._activeFeatureStream=null,this._get("featureStream")===e&&this._set("featureStream",null),e?.return&&e.return(void 0).catch(()=>{})}async _locationUpdate(e){const{spatialReference:t}=this,i=this.selectedFeature,r=i?.geometry?.type,s=this.location;if(r&&"mesh"!==r&&t&&s&&i){if("point"===r){const{labelPointExecute:t}=await(import("../geometry/operators/labelPointOperator.js"));if(e?.signal?.aborted||this.selectedFeature!==i||!i.geometry)return;return void(this.location=t(i.geometry))}try{let r=i.geometry;const a=this._getHighlightLayer(i),n=i.getObjectId();if(!a||!this.view)return;if(null!=n){const i=this.view?.allLayerViews.find(e=>e.layer.uid===a.uid);if(!i||!("queryFeatures"in i))return;const s=i.createQuery();s.outSpatialReference=t,s.objectIds=[n],s.returnGeometry=!0;const{features:o}=await i.queryFeatures(s,e);if(e?.signal?.aborted)return;r=o[0]?.geometry}if(!r||"mesh"===r.type)return;r=_(r,t),M??=await Promise.all([import("../geometry/operators/intersectsOperator.js"),import("../geometry/operators/proximityOperator.js")]);const[{intersectsExecute:o},{proximityGetNearestCoordinate:l}]=M;if(!o(r,s)){const e=l(r,s).coordinate??s;this.selectedFeature===i&&(this.location=e)}}catch(n){u(n)||a.getLogger(this).error(n)}}}_cancelLocationUpdate(){this._locationUpdateController=n(this._locationUpdateController)}async _getLayerView(e,t){return await e.when(),e.whenLayerView(t)}_getHighlightLayer(e){const t=w(e),{layer:i}=e;return t&&"layer"in t&&t.layer?t.layer:"map-notes"===t?.type||"subtype-group"===t?.type?t:i??t}_getHighlightLayerView(e,t){return"subtype-sublayer"===t.type&&t.parent&&this._mapIncludesLayer(t.parent)?this._getLayerView(e,t.parent):t&&this._mapIncludesLayer(t)?this._getLayerView(e,t):null}_getHighlightTarget(e,t,i){if(H(t.type,i))return e;const r=e.getObjectId();if(null!=r)return r;const s="imagery"===t.type?void 0:"objectIdField"in t?t.objectIdField||b:null,a=e.attributes;return a&&s&&a[s]||e}_mapIncludesLayer(e){return!!this.map?.allLayers?.includes(e)}async _highlightFeature(e,t){this.removeHandles(e);const i=this[t];if(!i)return;const{highlightEnabled:r,view:s,open:a}=this;if(!s||!r||!a)return;const n=this._getHighlightLayer(i);if(!n)return;const o=this._getHighlightLayerView(s,n);if(!o)return;this._highlightPromises[e]=o;const l=await o;if(!(l&&R(l)&&this._highlightPromises[e]===o&&this[t]&&this.highlightEnabled))return;const u=l.highlight(this._getHighlightTarget(i,n,s.type));this.addHandles(u,e)}async _highlightActiveFeature(){return this._highlightFeature("highlight-active-feature","activeFeature")}async _highlightSelectedFeature(){return this._highlightFeature("highlight-selected-feature","selectedFeature")}async _consumeFeatureStream(e,t){try{for await(const i of e){if(t!==this._featureStreamVersion)return;this._updateFeatures([i])}}finally{this._activeFeatureStream===e&&(this._activeFeatureStream=null,this._setStreamingFeatures(!1),this._waitingForResultChange())}}_setStreamingFeatures(e){this._set("streamingFeatures",e)}_updateFeatures(e){const{features:t}=this,i=new Set(t),r=e.filter(e=>!i.has(e));r?.length&&(this.features=t.concat(r))}};e([m({type:I})],V.prototype,"actions",void 0),e([m({readOnly:!0})],V.prototype,"active",null),e([m()],V.prototype,"activeFeature",void 0),e([m({readOnly:!0})],V.prototype,"allActions",null),e([m()],V.prototype,"aggregatedFeaturesEnabled",void 0),e([m({value:null})],V.prototype,"content",null),e([m({type:I,readOnly:!0})],V.prototype,"defaultActions",null),e([m({type:Boolean})],V.prototype,"defaultPopupTemplateEnabled",void 0),e([m()],V.prototype,"diagnostics",void 0),e([m({readOnly:!0})],V.prototype,"effectiveHeading",null),e([m({readOnly:!0})],V.prototype,"featureCount",null),e([m()],V.prototype,"featurePage",void 0),e([m({value:[]})],V.prototype,"features",null),e([m()],V.prototype,"featureStream",null),e([m()],V.prototype,"featuresPerPage",void 0),e([m()],V.prototype,"featureMenuOpen",void 0),e([m({type:x})],V.prototype,"featureItemAbilities",void 0),e([m({readOnly:!0})],V.prototype,"featureItems",void 0),e([m()],V.prototype,"heading",void 0),e([m()],V.prototype,"highlightEnabled",void 0),e([m()],V.prototype,"includeDefaultActions",void 0),e([m()],V.prototype,"initialDisplayMode",null),e([m({type:y})],V.prototype,"location",null),e([m()],V.prototype,"map",null),e([m()],V.prototype,"open",void 0),e([m({readOnly:!0})],V.prototype,"streamingFeatures",void 0),e([m({readOnly:!0})],V.prototype,"pendingPromisesCount",null),e([m({readOnly:!0})],V.prototype,"promiseCount",null),e([m()],V.prototype,"promises",null),e([m({value:null,readOnly:!0})],V.prototype,"selectedFeature",null),e([m({value:-1})],V.prototype,"selectedFeatureIndex",null),e([m({readOnly:!0})],V.prototype,"selectedFeatureItem",null),e([m({type:F})],V.prototype,"spatialReference",null),e([m({readOnly:!0})],V.prototype,"state",null),e([m()],V.prototype,"timeZone",null),e([m()],V.prototype,"updateLocationEnabled",void 0),e([m()],V.prototype,"view",void 0),e([m({readOnly:!0})],V.prototype,"waitingForContents",null),e([m({readOnly:!0})],V.prototype,"waitingForResult",null),e([m()],V.prototype,"zoomFactor",void 0),V=e([f("esri.popup.FeatureContentCollection")],V);const D=V;export{D as default};
2
+ import{__decorate as e}from"tslib";import{isSome as t}from"../core/arrayUtils.js";import i from"../core/Error.js";import{EventedAccessor as a}from"../core/Evented.js";import r from"../core/Logger.js";import{abortMaybe as s}from"../core/maybe.js";import{debounce as o,logOnError as n,isAbortError as l}from"../core/promiseUtils.js";import{watch as u,when as h,sync as c}from"../core/reactiveUtils.js";import{property as p,subclass as d}from"../core/accessorSupport/decorators.js";import g from"../geometry/Point.js";import{project as m}from"../geometry/projectionUtils.js";import f from"../geometry/SpatialReference.js";import{geographicToWebMercator as y}from"../geometry/support/webMercatorUtils.js";import{getGraphicLayer as _}from"../graphic/graphicOriginUtils.js";import{fallbackObjectIDAttribute as F}from"../layers/LayerConstants.js";import{ActionsCollection as v,zoomToAggregatedFeatures as w,browseAggregatedFeatures as b,zoomToFeature as I}from"./actions.js";import{getSelectedTarget as C}from"./actionUtils.js";import A from"./FeatureContent.js";import S from"./support/FeatureAbilities.js";import{getDisplayedSymbol as P}from"../symbols/support/symbolUtils.js";import{system as x}from"../time/constants.js";import{highlightsSupported as L}from"../views/support/layerViewUtils.js";import{GoTo as E}from"../widgets/support/GoTo.js";const j=()=>[I.clone()],R=()=>[w.clone(),b.clone()];let O=null;function U(e,t){switch(e){case"building-scene":case"map-image":case"tile":case"imagery":return!0;case"imagery-tile":return"2d"===t;default:return!1}}let T=class extends(E(a)){constructor(e){super(e),this._centerAtLocationController=null,this._locationUpdateController=null,this._highlightPromises={"highlight-active-feature":null,"highlight-selected-feature":null},this._defaultFeatureAbilities=new S,this._activeFeatureStream=null,this.actions=new v,this.activeFeature=null,this.aggregatedFeaturesEnabled=!1,this.defaultPopupTemplateEnabled=!1,this.diagnostics=null,this.featurePage=null,this.featuresPerPage=20,this.featureMenuOpen=!1,this.featureItemAbilities=null,this.featureItems=[],this.heading=null,this.highlightEnabled=!0,this.includeDefaultActions=!0,this.open=!1,this.updateLocationEnabled=!1,this.view=null,this.zoomFactor=4,this._debouncedLocationUpdate=o(async()=>{this._cancelLocationUpdate();const e=new AbortController,{signal:t}=e;this._locationUpdateController=e,await this._locationUpdate({signal:t}).catch(()=>{}).finally(()=>{this._locationUpdateController===e&&(this._locationUpdateController=null)})})}initialize(){this.addHandles([u(()=>this.view?.scale,()=>{this.open&&n(this._debouncedLocationUpdate(),r.getLogger(this))}),u(()=>[this.highlightEnabled,this.selectedFeature,this.open,this.view],()=>this._highlightSelectedFeature()),u(()=>[this.highlightEnabled,this.activeFeature,this.open,this.view],()=>this._highlightActiveFeature()),u(()=>this.location,e=>this._locationChange(e)),u(()=>this.selectedFeature,e=>this._selectedFeatureChange(e)),u(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),u(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureItems],()=>this._setGraphicOnFeatureItems()),u(()=>this.featureItems,()=>this._featureItemsChange()),u(()=>[this.featureItemAbilities?.attachmentsContent,this.featureItemAbilities?.chartAnimation,this.featureItemAbilities?.customContent,this.featureItemAbilities?.expressionContent,this.featureItemAbilities?.fieldsContent,this.featureItemAbilities?.mediaContent,this.featureItemAbilities?.relationshipContent,this.featureItemAbilities?.textContent,this.featureItemAbilities?.utilityNetworkAssociationsContent,this.features,this.map,this.spatialReference,this.timeZone],()=>this._updateFeatureItems()),h(()=>!this.waitingForResult,()=>this._waitingForResultChange(),c),h(()=>!this.open,()=>this.aggregatedFeaturesEnabled=!1)])}destroy(){this._cancelLocationUpdate(),this._cancelCenterAtLocation(),this._cancelFeatureStream(),this.aggregatedFeaturesEnabled=!1,this.view=null,this.map=null,this.spatialReference=null,this.timeZone=null}get active(){return this.open&&!this.waitingForResult}get allActions(){const e=this._get("allActions")||new v;e.removeAll();const{actions:i,defaultActions:a,defaultPopupTemplateEnabled:r,includeDefaultActions:s,selectedFeature:o}=this,n=s?a.concat(i):i,l=o&&("function"==typeof o.getEffectivePopupTemplate&&o.getEffectivePopupTemplate(r)||o.popupTemplate),u=l?.actions,h=l?.overwriteActions?u:u?.concat(n)??n;return h?.filter(t).forEach(t=>e.add(t)),e}set content(e){this.featureStream=null,this._set("diagnostics",null),this.features=[],this._set("content",e)}get defaultActions(){const e=this._get("defaultActions")||new v;return e.removeAll(),e.addMany(this.selectedFeature?.isAggregate?R():j()),e}get effectiveHeading(){return this.selectedFeatureItem?.heading??this.heading}get featureCount(){return this.features.length}set features(e){if(this._get("features")===e)return;const t=e||[];this._set("features",t),this._syncSelectedFeatureIndex(t)}get featureStream(){return this._get("featureStream")||null}set featureStream(e){this._setFeatureStream(e)}_setFeatureStream(e,t,i){this._set("diagnostics",i??null),this._get("featureStream")!==e&&(this._set("featureStream",e),this._cancelFeatureStream(),e&&(this.features=[],this._activeFeatureStream=e,this._consumeFeatureStream(e,t).catch(()=>{})))}get initialDisplayMode(){return this._initialDisplayMode??(this.view?.focusRegionEnabled?"list":"feature")}set initialDisplayMode(e){this._initialDisplayMode=e,this._syncSelectedFeatureIndex(this.features)}set location(e){const t=e?.spatialReference?.isWGS84&&this.spatialReference?.isWebMercator?y(e):e;this._set("location",t)}get map(){return this.view?.map??null}set map(e){this._override("map",e)}get streamingFeatures(){return null!=this._activeFeatureStream}get selectedFeature(){return-1===this.selectedFeatureIndex?null:this.features[this.selectedFeatureIndex]??null}get selectedFeatureIndex(){const e=this._get("selectedFeatureIndex");return"number"==typeof e?e:-1}set selectedFeatureIndex(e){const{featureCount:t}=this;(isNaN(e)||e<0||!t)&&(e=-1),this.activeFeature=null,this._set("selectedFeatureIndex",e)}get selectedFeatureItem(){return this.featureItems[this.selectedFeatureIndex]||null}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(e){this._override("spatialReference",e)}get state(){return this.view?this.view.ready?"ready":"disabled":this.map?"ready":"disabled"}get timeZone(){return this.view?.timeZone??x}set timeZone(e){this._overrideIfSome("timeZone",e)}get waitingForContents(){return this.featureItems.some(e=>e.waitingForContent)}get waitingForResult(){return this.streamingFeatures&&0===this.featureCount}zoomTo(e){return this.callGoTo(e)}clear(){this._cancelFeatureStream(),this._set("diagnostics",null),this.set({featureStream:null,features:[],content:null,heading:null,location:null,activeFeature:null})}openFeatureStream(e){this._setFeatureStream(e.featureStream,e.location??null,e.diagnostics),this.open=!0}async fetchFeatures(e,t){const{view:a}=this;if(!a||!e)throw new i("fetch-features:invalid-screenpoint-or-view","Cannot fetch features without a screen point/screen area and view.",{screenPoint:e,view:a});const r={},s=a.fetchPopupFeatures(e,{diagnostics:r,pointerType:t?.event?.pointerType,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:t?.signal});this._setFeatureStream(s,void 0,r)}next(){this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex+1,this.featureCount)}previous(){this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex-1,this.featureCount)}_syncSelectedFeatureIndex(e){const{selectedFeatureIndex:t}=this,i=null!=this._activeFeatureStream&&e.length>0;"list"!==this.initialDisplayMode?i&&-1===t?this.selectedFeatureIndex=0:i&&-1!==t||(this.selectedFeatureIndex=e.length?0:-1):i||(this.selectedFeatureIndex=-1)}_centerAtLocation(){const{view:e}=this,t=C(this);this._cancelCenterAtLocation();const a=new AbortController,{signal:s}=a;return this._centerAtLocationController=a,t&&e?this.callGoTo({target:{target:t,scale:e.scale},options:{signal:s}}).catch(e=>{l(e)||r.getLogger(this).error(e)}):Promise.reject(new i("center-at-location:invalid-target-or-view","Cannot center at a location without a target and view.",{target:t,view:e}))}_getRoundRobinIndex(e,t){return(e+t)%t}_locationChange(e){const{selectedFeature:t,updateLocationEnabled:i,view:a}=this;a&&!this._locationUpdateController&&i&&e&&(!t||t.geometry)&&this._centerAtLocation()}_selectedFeatureIndexChange(){-1!==this.selectedFeatureIndex&&(this.featurePage=this.featureCount>0?Math.floor(this.selectedFeatureIndex/this.featuresPerPage)+1:null)}_featureItemsChange(){this.featurePage=this.featureCount>0?1:null}_setGraphicOnFeatureItems(){const{features:e,featureCount:t,featurePage:i,featuresPerPage:a,featureItems:r}=this;if(null==i)return;const s=((i-1)*a+t)%t,o=Math.min(s+a,r.length);for(let n=s;n<o;n++){const t=r[n];t&&(t.graphic??=e[n])}}async _selectedFeatureChange(e){const{location:t,updateLocationEnabled:i,view:a}=this;if(this.aggregatedFeaturesEnabled=!1,!e||!a)return;const r=_(e)?.type;if("map-image"!==r&&"imagery"!==r&&"imagery-tile"!==r||(e.symbol=await P(e)),(i||!t)&&e.geometry){if("point"===e.geometry.type)return void(this.location=e.geometry);const{labelPointExecute:t}=await(import("../geometry/operators/labelPointOperator.js"));return void(this.location=t(e.geometry))}if(i&&!e.geometry){await this._centerAtLocation();const e=a.center?.clone();e&&(this.location=e)}}_waitingForResultChange(){!this.featureCount&&this.featureStream&&(this.open=!1)}_destroyFeatureItems(){this.featureItems.forEach(e=>e&&!e.destroyed&&e.destroy()),this._set("featureItems",[])}_updateFeatureItems(){const e=this.selectedFeature,t=this.features,i=this.featureItems,a=this.view,r=this.spatialReference,s=this.map,o=this.timeZone,n=this.location,l=this.featureItemAbilities??this._defaultFeatureAbilities;if(!t?.length)return void this._destroyFeatureItems();const u=[],h=new Map,c=new Set;i.forEach(e=>{const t=e?.graphic;e&&t&&h.set(t,e)}),t.forEach((t,p)=>{if(!t)return;const d=i[p];if(d&&!c.has(d)&&(null==d.graphic||d.graphic===t))return d.abilities=l,u[p]=d,void c.add(d);const g=h.get(t);if(g&&!c.has(g))return g.abilities=l,u[p]=g,void c.add(g);const m=new A({abilities:l,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:r,graphic:t===e?t:null,location:n,map:s,view:a,timeZone:o});u[p]=m,c.add(m)}),i.forEach(e=>{!e||c.has(e)||e.destroyed||e.destroy()}),this._set("featureItems",u)}_cancelCenterAtLocation(){this._centerAtLocationController=s(this._centerAtLocationController)}_cancelFeatureStream(){const e=this._activeFeatureStream;this._activeFeatureStream=null,this._get("featureStream")===e&&this._set("featureStream",null),e?.return&&e.return(void 0).catch(()=>{})}async _locationUpdate(e){const{spatialReference:t}=this,i=this.selectedFeature,a=i?.geometry?.type,s=this.location;if(a&&"mesh"!==a&&t&&s&&i){if("point"===a){const{labelPointExecute:t}=await(import("../geometry/operators/labelPointOperator.js"));if(e?.signal?.aborted||this.selectedFeature!==i||!i.geometry)return;return void(this.location=t(i.geometry))}try{let a=i.geometry;const r=this._getHighlightLayer(i),o=i.getObjectId();if(!r||!this.view)return;if(null!=o){const i=this.view?.allLayerViews.find(e=>e.layer.uid===r.uid);if(!i||!("queryFeatures"in i))return;const s=i.createQuery();s.outSpatialReference=t,s.objectIds=[o],s.returnGeometry=!0;const{features:n}=await i.queryFeatures(s,e);if(e?.signal?.aborted)return;a=n[0]?.geometry}if(!a||"mesh"===a.type)return;a=m(a,t),O??=await Promise.all([import("../geometry/operators/intersectsOperator.js"),import("../geometry/operators/proximityOperator.js")]);const[{intersectsExecute:n},{proximityGetNearestCoordinate:l}]=O;if(!n(a,s)){const e=l(a,s).coordinate??s;this.selectedFeature===i&&(this.location=e)}}catch(o){l(o)||r.getLogger(this).error(o)}}}_cancelLocationUpdate(){this._locationUpdateController=s(this._locationUpdateController)}async _getLayerView(e,t){return await e.when(),e.whenLayerView(t)}_getHighlightLayer(e){const t=_(e),{layer:i}=e;return t&&"layer"in t&&t.layer?t.layer:"map-notes"===t?.type||"subtype-group"===t?.type?t:i??t}_getHighlightLayerView(e,t){return"subtype-sublayer"===t.type&&t.parent&&this._mapIncludesLayer(t.parent)?this._getLayerView(e,t.parent):t&&this._mapIncludesLayer(t)?this._getLayerView(e,t):null}_getHighlightTarget(e,t,i){if(U(t.type,i))return e;const a=e.getObjectId();if(null!=a)return a;const r="imagery"===t.type?void 0:"objectIdField"in t?t.objectIdField||F:null,s=e.attributes;return s&&r&&s[r]||e}_mapIncludesLayer(e){return!!this.map?.allLayers?.includes(e)}async _highlightFeature(e,t){this.removeHandles(e);const i=this[t];if(!i)return;const{highlightEnabled:a,view:r,open:s}=this;if(!r||!a||!s)return;const o=this._getHighlightLayer(i);if(!o)return;const n=this._getHighlightLayerView(r,o);if(!n)return;this._highlightPromises[e]=n;const l=await n;if(!(l&&L(l)&&this._highlightPromises[e]===n&&this[t]&&this.highlightEnabled))return;const u=l.highlight(this._getHighlightTarget(i,o,r.type));this.addHandles(u,e)}async _highlightActiveFeature(){return this._highlightFeature("highlight-active-feature","activeFeature")}async _highlightSelectedFeature(){return this._highlightFeature("highlight-selected-feature","selectedFeature")}async _consumeFeatureStream(e,t){try{for await(const i of e){if(e!==this._activeFeatureStream)return;void 0!==t&&(this.location=t,t=void 0),this._addFeature(i)}}finally{this._activeFeatureStream===e&&(this._activeFeatureStream=null,this._waitingForResultChange())}}_addFeature(e){const{features:t}=this;t.includes(e)||(this.features=t.concat(e))}};e([p()],T.prototype,"_initialDisplayMode",void 0),e([p()],T.prototype,"_activeFeatureStream",void 0),e([p({type:v})],T.prototype,"actions",void 0),e([p({readOnly:!0})],T.prototype,"active",null),e([p()],T.prototype,"activeFeature",void 0),e([p({readOnly:!0})],T.prototype,"allActions",null),e([p()],T.prototype,"aggregatedFeaturesEnabled",void 0),e([p({value:null})],T.prototype,"content",null),e([p({type:v,readOnly:!0})],T.prototype,"defaultActions",null),e([p({type:Boolean})],T.prototype,"defaultPopupTemplateEnabled",void 0),e([p({readOnly:!0})],T.prototype,"diagnostics",void 0),e([p({readOnly:!0})],T.prototype,"effectiveHeading",null),e([p({readOnly:!0})],T.prototype,"featureCount",null),e([p()],T.prototype,"featurePage",void 0),e([p({value:[]})],T.prototype,"features",null),e([p()],T.prototype,"featureStream",null),e([p()],T.prototype,"featuresPerPage",void 0),e([p()],T.prototype,"featureMenuOpen",void 0),e([p({type:S})],T.prototype,"featureItemAbilities",void 0),e([p({readOnly:!0})],T.prototype,"featureItems",void 0),e([p()],T.prototype,"heading",void 0),e([p()],T.prototype,"highlightEnabled",void 0),e([p()],T.prototype,"includeDefaultActions",void 0),e([p()],T.prototype,"initialDisplayMode",null),e([p({type:g})],T.prototype,"location",null),e([p()],T.prototype,"map",null),e([p()],T.prototype,"open",void 0),e([p({readOnly:!0})],T.prototype,"streamingFeatures",null),e([p({value:null,readOnly:!0})],T.prototype,"selectedFeature",null),e([p({value:-1})],T.prototype,"selectedFeatureIndex",null),e([p({readOnly:!0})],T.prototype,"selectedFeatureItem",null),e([p({type:f})],T.prototype,"spatialReference",null),e([p({readOnly:!0})],T.prototype,"state",null),e([p()],T.prototype,"timeZone",null),e([p()],T.prototype,"updateLocationEnabled",void 0),e([p()],T.prototype,"view",void 0),e([p({readOnly:!0})],T.prototype,"waitingForContents",null),e([p({readOnly:!0})],T.prototype,"waitingForResult",null),e([p()],T.prototype,"zoomFactor",void 0),T=e([d("esri.popup.FeatureContentCollection")],T);const M=T;export{M as default};
package/popup/types.d.ts CHANGED
@@ -45,11 +45,22 @@ export interface DockOptionsBreakpoint {
45
45
  height?: number;
46
46
  }
47
47
 
48
- /** @since 5.0 */
48
+ /**
49
+ * @deprecated since 5.2. Only for internal use
50
+ * @since 5.0
51
+ */
49
52
  export interface FetchFeaturesOptions {
50
- /** The view click event that is passed into the fetchFeatures method. */
53
+ /**
54
+ * The view click event that is passed into the fetchFeatures method.
55
+ *
56
+ * @deprecated since 5.2. Only for internal use
57
+ */
51
58
  event?: ClickEvent;
52
- /** An AbortSignal to cancel the fetch operation. */
59
+ /**
60
+ * An AbortSignal to cancel the fetch operation.
61
+ *
62
+ * @deprecated since 5.2. Only for internal use
63
+ */
53
64
  signal?: AbortSignal;
54
65
  }
55
66