@arcgis/core 5.1.0-next.94 → 5.1.0-next.96

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 (449) hide show
  1. package/Graphic.d.ts +16 -1
  2. package/Graphic.js +1 -1
  3. package/applications/MapViewer/templateUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/0175098da590a7109539.js +1 -0
  6. package/assets/esri/core/workers/chunks/02aaeaa988e9e7d65a7f.js +1 -0
  7. package/assets/esri/core/workers/chunks/03a4543b94f9adeb1852.js +1 -0
  8. package/assets/esri/core/workers/chunks/05c52e8f187740da9b36.js +1 -0
  9. package/assets/esri/core/workers/chunks/0630ce1975c91ae362d9.js +1 -0
  10. package/assets/esri/core/workers/chunks/{7f0f10946f05a09b5654.js → 07ddf1b1f7602063ceb0.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{f04b49d80f422708d98c.js → 0e6b24e8864940ed9877.js} +1 -1
  12. package/assets/esri/core/workers/chunks/0e6feed31340cf3c1966.js +1 -0
  13. package/assets/esri/core/workers/chunks/11a99ee68409a641810e.js +1 -0
  14. package/assets/esri/core/workers/chunks/11b0d3a825fe50dd1e84.js +1 -0
  15. package/assets/esri/core/workers/chunks/16006dc0cb95f7c291a5.js +1 -0
  16. package/assets/esri/core/workers/chunks/177472a6a9beb1590934.js +1 -0
  17. package/assets/esri/core/workers/chunks/19a9a555365a8363d34b.js +1 -0
  18. package/assets/esri/core/workers/chunks/{43f58604ba4a94a9167c.js → 1f3a676e7a4eae5ad566.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{8875e53097b25655ef67.js → 246253fbbb2ecea48f91.js} +1 -1
  20. package/assets/esri/core/workers/chunks/25d795a1697803d77e56.js +1 -0
  21. package/assets/esri/core/workers/chunks/268ed861c882740c805b.js +1 -0
  22. package/assets/esri/core/workers/chunks/26f28406056ddc0e159c.js +1 -0
  23. package/assets/esri/core/workers/chunks/27d6ad4ca5ab8c9d62cd.js +1 -0
  24. package/assets/esri/core/workers/chunks/{da008d6a3afb30d18392.js → 299b4eecd0288348c971.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{df8a3d3cac454d42e14d.js → 29aba121db7f00e0cf81.js} +1 -1
  26. package/assets/esri/core/workers/chunks/2b00229c238aae70b948.js +1 -0
  27. package/assets/esri/core/workers/chunks/2b52c1c01cf568ba01fb.js +1 -0
  28. package/assets/esri/core/workers/chunks/{9b869a8bda9384f25464.js → 308e1b0aea941958de44.js} +1 -1
  29. package/assets/esri/core/workers/chunks/3116a1c2b67a296ba86e.js +1 -0
  30. package/assets/esri/core/workers/chunks/3241e0ed26aff61ec213.js +1 -0
  31. package/assets/esri/core/workers/chunks/330da3828eefd8d72d3f.js +1 -0
  32. package/assets/esri/core/workers/chunks/34c11e7c8762fe0c19fb.js +1 -0
  33. package/assets/esri/core/workers/chunks/34e026549ba2822b8ebd.js +1 -0
  34. package/assets/esri/core/workers/chunks/359465b9726edcc70c83.js +1 -0
  35. package/assets/esri/core/workers/chunks/36ecb0082b8804b10fbf.js +1 -0
  36. package/assets/esri/core/workers/chunks/389e57aab12d52d72695.js +1 -0
  37. package/assets/esri/core/workers/chunks/38b1d2ffcc318ac0119d.js +1 -0
  38. package/assets/esri/core/workers/chunks/390717f079def83a0d9c.js +1 -0
  39. package/assets/esri/core/workers/chunks/{3397eae416622c64e628.js → 3f0483cbcd893acf240c.js} +1 -1
  40. package/assets/esri/core/workers/chunks/4020f95d8131493f799e.js +1 -0
  41. package/assets/esri/core/workers/chunks/{4378e544687fec4b06fb.js → 40afdb74517a7df59e0d.js} +1 -1
  42. package/assets/esri/core/workers/chunks/40bc7c65b708fcc80fab.js +1 -0
  43. package/assets/esri/core/workers/chunks/{c7b9df9a204f6206364a.js → 40e887e87ae24ace27a5.js} +1 -1
  44. package/assets/esri/core/workers/chunks/4255ad7601c7a7621b71.js +1 -0
  45. package/assets/esri/core/workers/chunks/{747e258f57f0543c836e.js → 43cc82373be791b7cb4c.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{1f141a007b1ef9b069c6.js → 4456bbb4b7dfe80c7477.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{fb75d4bce1e86eed017a.js → 44b5e4640fe547285e0c.js} +6 -6
  48. package/assets/esri/core/workers/chunks/453c3b265481c80fc625.js +1 -0
  49. package/assets/esri/core/workers/chunks/47dd2bfecc5c4b5f10f0.js +1 -0
  50. package/assets/esri/core/workers/chunks/4b19acf8bde5b2e80692.js +1 -0
  51. package/assets/esri/core/workers/chunks/4faaf61d20e20fcf6c18.js +1 -0
  52. package/assets/esri/core/workers/chunks/{82215d7a64b8be02eff1.js → 509beae195c900a85e0b.js} +1 -1
  53. package/assets/esri/core/workers/chunks/5217d676749bca59d90f.js +1 -0
  54. package/assets/esri/core/workers/chunks/{53750e85f3128993a43a.js → 545c38789267e3487dbd.js} +1 -1
  55. package/assets/esri/core/workers/chunks/54dad475dc806a38c287.js +1 -0
  56. package/assets/esri/core/workers/chunks/58579c53be1a44bd08d2.js +1 -0
  57. package/assets/esri/core/workers/chunks/58c15c42e6a618386a2f.js +1 -0
  58. package/assets/esri/core/workers/chunks/5ea0096a282e87a269bd.js +1 -0
  59. package/assets/esri/core/workers/chunks/63378b0b4265a547656b.js +1 -0
  60. package/assets/esri/core/workers/chunks/{3a691f848152e3818a48.js → 642be1619c0e76355cb6.js} +1 -1
  61. package/assets/esri/core/workers/chunks/65b0b4e808479187da00.js +1 -0
  62. package/assets/esri/core/workers/chunks/69a1cbf0af059548f96a.js +1 -0
  63. package/assets/esri/core/workers/chunks/6ae2408ac075b974e887.js +1 -0
  64. package/assets/esri/core/workers/chunks/6b79c254897ece95b7a3.js +1 -0
  65. package/assets/esri/core/workers/chunks/6d59a9cf533ebc590f70.js +1 -0
  66. package/assets/esri/core/workers/chunks/6d66dc77af8d112c33c6.js +1 -0
  67. package/assets/esri/core/workers/chunks/{0981fe06796060e50d40.js → 708bd77e6d723e3f0aa8.js} +1 -1
  68. package/assets/esri/core/workers/chunks/71119398ec91f1b209d7.js +1 -0
  69. package/assets/esri/core/workers/chunks/71e12db99589c98a4357.js +1 -0
  70. package/assets/esri/core/workers/chunks/7485d59d60d61737d662.js +1 -0
  71. package/assets/esri/core/workers/chunks/76589434d573111a8fb4.js +1 -0
  72. package/assets/esri/core/workers/chunks/7c2d2f22df057ba8cb50.js +1 -0
  73. package/assets/esri/core/workers/chunks/7d6299ab7b0db23ab961.js +1 -0
  74. package/assets/esri/core/workers/chunks/7dc9ff66e1eceadbae24.js +1 -0
  75. package/assets/esri/core/workers/chunks/82b2acc6f181927de89c.js +1 -0
  76. package/assets/esri/core/workers/chunks/85a200aecc7a844c9566.js +1 -0
  77. package/assets/esri/core/workers/chunks/89250d268dc2554a9ece.js +1 -0
  78. package/assets/esri/core/workers/chunks/8a23a62cbf1c5b4019c5.js +1 -0
  79. package/assets/esri/core/workers/chunks/8ac8ef856ed9592c433b.js +1 -0
  80. package/assets/esri/core/workers/chunks/{01af2a0611386df64cb1.js → 8f992ff87173a3ca1621.js} +28 -24
  81. package/assets/esri/core/workers/chunks/9954928d6430e2bfdb1a.js +1 -0
  82. package/assets/esri/core/workers/chunks/9a29b7f9e6281ee40c37.js +1 -0
  83. package/assets/esri/core/workers/chunks/9bb2251ba58932f85d13.js +1 -0
  84. package/assets/esri/core/workers/chunks/{d8ccc713c5ad93e7a0c3.js → 9bd713d96502ddc2ce25.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{8351012ceb466f01b8fd.js → 9d8e7839772029d83c93.js} +1 -1
  86. package/assets/esri/core/workers/chunks/9f4a9b193485f88d4461.js +1 -0
  87. package/assets/esri/core/workers/chunks/a001e7e8a39f27284d87.js +1 -0
  88. package/assets/esri/core/workers/chunks/a50fd0e66b01fe205033.js +1 -0
  89. package/assets/esri/core/workers/chunks/{51716e411fad624ac21c.js → a567d001fcfa1f1cdeea.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{3a6b8879702fb247328b.js → a68b5cb66c2c5e6b46e0.js} +1 -1
  91. package/assets/esri/core/workers/chunks/a93a058678c8c8996d54.js +1 -0
  92. package/assets/esri/core/workers/chunks/aad02c7417648d881129.js +1 -0
  93. package/assets/esri/core/workers/chunks/acb8cff06142f828fb78.js +1 -0
  94. package/assets/esri/core/workers/chunks/ad329226c8b579d0964c.js +1 -0
  95. package/assets/esri/core/workers/chunks/afdc6fc453157528cf9b.js +1 -0
  96. package/assets/esri/core/workers/chunks/{baea6f86b2dbe067940e.js → b06cc59068d32baaaa87.js} +1 -1
  97. package/assets/esri/core/workers/chunks/b63cbf6c2c9ec1b02b9a.js +1 -0
  98. package/assets/esri/core/workers/chunks/b7f5d51ac26f37837b3b.js +1 -0
  99. package/assets/esri/core/workers/chunks/b891d95b7858665cd6c1.js +1 -0
  100. package/assets/esri/core/workers/chunks/{359d3acb3953e64e5a78.js → ba7fe21a78ea37a02b7c.js} +1 -1
  101. package/assets/esri/core/workers/chunks/bd17ac2e6f1eb8cf7abf.js +1 -0
  102. package/assets/esri/core/workers/chunks/beba9f2213d8a850ddb6.js +1 -0
  103. package/assets/esri/core/workers/chunks/{d6f03f628ebfc28fdd23.js → bf6c6bc15b0d2d82d1a4.js} +2 -2
  104. package/assets/esri/core/workers/chunks/bf706a5d065a357de51b.js +1 -0
  105. package/assets/esri/core/workers/chunks/bfb417d72d0c90e116fe.js +1 -0
  106. package/assets/esri/core/workers/chunks/c0c693c2e0043ecba4a5.js +1 -0
  107. package/assets/esri/core/workers/chunks/c321bcda8e8893577948.js +1 -0
  108. package/assets/esri/core/workers/chunks/c452c74ba9de218c3e57.js +1 -0
  109. package/assets/esri/core/workers/chunks/{700f7aa9cf7b13acaf5d.js → c514135bf7703ba69a47.js} +1 -1
  110. package/assets/esri/core/workers/chunks/c798a40418e7ff38042a.js +1 -0
  111. package/assets/esri/core/workers/chunks/ca6c128940ddbebcaaab.js +1 -0
  112. package/assets/esri/core/workers/chunks/{268f203d2492a03165ac.js → ce2ed9405ff1b704d35c.js} +1 -1
  113. package/assets/esri/core/workers/chunks/ce3e51c799a80648e46d.js +1 -0
  114. package/assets/esri/core/workers/chunks/{e81afc8a058a8ecc9b24.js → ce4e09b623ebb640c46c.js} +1 -1
  115. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +1 -0
  116. package/assets/esri/core/workers/chunks/{e0b27bceb397482bd0e8.js → d122431f3b0b88dcb488.js} +1 -1
  117. package/assets/esri/core/workers/chunks/d8c4fb66c733ab2f66d3.js +1 -0
  118. package/assets/esri/core/workers/chunks/d8d338665fe00494c826.js +1 -0
  119. package/assets/esri/core/workers/chunks/d93a4ccf8f0208dc6ad7.js +1 -0
  120. package/assets/esri/core/workers/chunks/de11ebcea2b8f9dfe65d.js +1 -0
  121. package/assets/esri/core/workers/chunks/e133840540abf20262a4.js +1 -0
  122. package/assets/esri/core/workers/chunks/{3092184350d66c79f610.js → e5d969214d9eda5c0b4c.js} +1 -1
  123. package/assets/esri/core/workers/chunks/{fa869bfe4366f7f49cca.js → e5f8c73349407c25956b.js} +1 -1
  124. package/assets/esri/core/workers/chunks/e63e24101e7e92c62d98.js +1 -0
  125. package/assets/esri/core/workers/chunks/e8a885b576da3ec145d3.js +1 -0
  126. package/assets/esri/core/workers/chunks/eda51e512eff551ad858.js +1 -0
  127. package/assets/esri/core/workers/chunks/ee635172be7fdea69367.js +1 -0
  128. package/assets/esri/core/workers/chunks/f196ad0c7dbcbf632776.js +1 -0
  129. package/assets/esri/core/workers/chunks/f27397379c6c88bc6ef4.js +1 -0
  130. package/assets/esri/core/workers/chunks/f31deeedb2508e81293b.js +2 -0
  131. package/assets/esri/core/workers/chunks/f618ee43581e8de6ad0c.js +1 -0
  132. package/assets/esri/core/workers/chunks/f66262f8582909157f01.js +1 -0
  133. package/assets/esri/core/workers/chunks/{ea97619a4470f1540b99.js → f6ebec8d2248c719b89f.js} +1 -1
  134. package/assets/esri/core/workers/chunks/f91a2c69a93295cf4de6.js +1 -0
  135. package/assets/esri/core/workers/chunks/f948e4a80a7dbda70f2e.js +1 -0
  136. package/assets/esri/core/workers/chunks/fa9ab152ea785b5e97e0.js +1 -0
  137. package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +1 -0
  138. package/assets/esri/core/workers/chunks/fae79769df54eb4c4154.js +1 -0
  139. package/assets/esri/core/workers/chunks/{5a8fd2fd8a24f9290b7f.js → fd2afff07aaac8203c18.js} +1 -1
  140. package/assets/esri/core/workers/chunks/fdb7851e98e8d2ba48d3.js +1 -0
  141. package/assets/esri/core/workers/chunks/fec3fffcf854a6226df4.js +1 -0
  142. package/assets/esri/core/workers/chunks/ff7708aaa2de720e3a47.js +1 -0
  143. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  144. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  145. package/chunks/GaussianSplat.glsl.js +9 -9
  146. package/chunks/GlobalIllumination.glsl.js +31 -31
  147. package/chunks/NativeLine.glsl.js +4 -4
  148. package/chunks/OITBlend.glsl.js +3 -7
  149. package/chunks/OITBlendEmission.glsl.js +22 -0
  150. package/chunks/{OITDim.glsl.js → OITDimOpaque.glsl.js} +2 -2
  151. package/chunks/RibbonLine.glsl.js +57 -53
  152. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  153. package/chunks/arcgis-knowledge-client-core.js +1 -1
  154. package/config.js +1 -1
  155. package/core/has.js +1 -1
  156. package/geometry/support/heightModelInfoUtils.js +1 -1
  157. package/kernel.js +1 -1
  158. package/layers/DimensionFeatureLayer.d.ts +7 -0
  159. package/layers/DimensionFeatureLayer.js +2 -0
  160. package/layers/SceneLayer.d.ts +59 -32
  161. package/layers/catalog/CatalogFootprintLayer.js +1 -1
  162. package/layers/graphics/OptimizedFeature.js +1 -1
  163. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  164. package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
  165. package/layers/graphics/featureConversionUtils.js +1 -1
  166. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  167. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  168. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  169. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  170. package/layers/mixins/ArcGISImageService.js +1 -1
  171. package/layers/mixins/FeatureReductionLayer.js +1 -1
  172. package/layers/raster/formats/Lerc.js +1 -1
  173. package/layers/raster/formats/RasterCodec.js +1 -1
  174. package/layers/scene/ModelFileInfo.d.ts +6 -2
  175. package/layers/scene/ModelInfo.d.ts +16 -7
  176. package/layers/scene/types.d.ts +2 -0
  177. package/layers/support/ExportImageServiceParameters.js +1 -1
  178. package/layers/support/capabilities.js +1 -1
  179. package/layers/support/layerUtils.js +1 -1
  180. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  181. package/layers/types.d.ts +26 -3
  182. package/networks/support/CircuitPathConnectivityElement.js +1 -1
  183. package/networks/support/networkFieldUtils.js +1 -1
  184. package/package.json +2 -2
  185. package/popup/Features.js +1 -1
  186. package/portal/schemas/definitions.js +1 -1
  187. package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +5 -4
  188. package/rest/knowledgeGraph/ReplicaDefinition.d.ts +0 -3
  189. package/rest/knowledgeGraph/types.d.ts +1 -1
  190. package/rest/knowledgeGraph/wasmInterface/queryToWasmEncodedFactories.js +1 -1
  191. package/rest/knowledgeGraph/wasmInterface/replicaToWasmEncodedFactories.js +1 -1
  192. package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
  193. package/rest/query/operations/queryUtils.js +1 -1
  194. package/rest/support/OutDistance.js +1 -1
  195. package/rest/support/Query.d.ts +39 -1
  196. package/rest/support/Query.js +1 -1
  197. package/support/revision.js +1 -1
  198. package/symbols/cim/CIMEffects.js +1 -1
  199. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  200. package/symbols/cim/CIMSymbolHelper.js +1 -1
  201. package/symbols/cim/defaultCIMValues.js +1 -1
  202. package/symbols/cim/effects/EffectAddControlPoints.js +1 -1
  203. package/symbols/cim/effects/EffectArrow.js +1 -1
  204. package/symbols/cim/effects/EffectBuffer.js +1 -1
  205. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  206. package/symbols/cim/effects/EffectCut.js +1 -1
  207. package/symbols/cim/effects/EffectDashes.js +1 -1
  208. package/symbols/cim/effects/EffectDonut.js +1 -1
  209. package/symbols/cim/effects/EffectEnclosingPolygon.js +1 -1
  210. package/symbols/cim/effects/EffectHelper.js +1 -1
  211. package/symbols/cim/effects/EffectJog.js +1 -1
  212. package/symbols/cim/effects/EffectMove.js +1 -1
  213. package/symbols/cim/effects/EffectOffset.js +1 -1
  214. package/symbols/cim/effects/EffectRadial.js +1 -1
  215. package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
  216. package/symbols/cim/effects/EffectWave.js +1 -1
  217. package/symbols/cim/placements/PlacementAtRatioPositions.js +1 -1
  218. package/symbols/cim/types.d.ts +7 -1
  219. package/symbols/cim/utils.js +1 -1
  220. package/symbols/dimensions/effects/LinearDimensionArrowEffect.js +1 -1
  221. package/symbols/dimensions/effects/LinearDimensionExtensionLineEffect.js +1 -1
  222. package/symbols/dimensions/effects/LinearDimensionLeaderLineEffect.js +1 -1
  223. package/symbols/dimensions/effects/LinearDimensionLineEffect.js +1 -1
  224. package/symbols/dimensions/effects/LinearDimensionPointEffect.js +1 -1
  225. package/symbols/dimensions/effects/LinearDimensionTextEffect.js +1 -1
  226. package/symbols/types.d.ts +1 -1
  227. package/tables/AttributeTableTemplate.d.ts +1 -1
  228. package/tables/elements/AttributeTableGroupElement.d.ts +1 -1
  229. package/tables/support/tablesUtils.d.ts +2 -2
  230. package/tables/support/templateUtils.d.ts +136 -0
  231. package/tables/support/templateUtils.js +2 -0
  232. package/tables/support/types.d.ts +90 -0
  233. package/views/2d/engine/vectorTiles/decluttering/SymbolDeclutterer.js +1 -1
  234. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  235. package/views/2d/engine/webgl/alignmentUtils.js +1 -1
  236. package/views/2d/engine/webgl/definitions.js +1 -1
  237. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  238. package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
  239. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  240. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  241. package/views/2d/engine/webgl/shaderGraph/techniques/animated/attributes.js +1 -1
  242. package/views/2d/engine/webgl/shaderGraph/techniques/fill/AFillMeshWriter.js +1 -1
  243. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  244. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
  245. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  246. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
  247. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js +1 -1
  248. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  249. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapMeshWriter.js +1 -1
  250. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  251. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
  252. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  253. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
  254. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  255. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  256. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartMeshWriter.js +1 -1
  257. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
  258. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  259. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  260. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  261. package/views/2d/layerViewModuleImportUtils.js +1 -1
  262. package/views/2d/layers/BaseLayerView2D.d.ts +2 -2
  263. package/views/2d/layers/BaseLayerViewGL2D.d.ts +2 -2
  264. package/views/2d/layers/DimensionLayerView2D.js +2 -0
  265. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  266. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  267. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +2 -0
  268. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  269. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  270. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  271. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  272. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  273. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  274. package/views/2d/layers/features/schema/SourceSchema.js +1 -1
  275. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  276. package/views/2d/layers/features/sources/strategies/AFeatureTileLoadStrategy.js +1 -1
  277. package/views/2d/layers/features/sources/strategies/FeatureHybridTileLoadStrategy.js +2 -0
  278. package/views/2d/layers/features/sources/strategies/chunks/ByReferenceTileSourceChunk.js +2 -0
  279. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  280. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  281. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  282. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  283. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  284. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  285. package/views/2d/layers/features/support/RefCounted.js +2 -0
  286. package/views/2d/types.d.ts +2 -0
  287. package/views/3d/layerViewModuleImportUtils.js +1 -1
  288. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  289. package/views/3d/support/QualityProfile.js +1 -1
  290. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  291. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  292. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  293. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  294. package/views/3d/types.d.ts +2 -0
  295. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -19
  296. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -1
  297. package/views/3d/webgl-engine/core/shaderLibrary/util/{ComputeCovariance.glsl.js → GaussianSplatCovariance.glsl.js} +15 -9
  298. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +43 -0
  299. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatTextureFetch.glsl.js +36 -0
  300. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  301. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
  302. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  303. package/views/3d/webgl-engine/effects/transparency/OITBlendEmission.glsl.js +2 -0
  304. package/views/3d/webgl-engine/effects/transparency/OITBlendEmissionTechnique.js +2 -0
  305. package/views/3d/webgl-engine/effects/transparency/OITBlendEmissionTechniqueConfiguration.js +2 -0
  306. package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
  307. package/views/3d/webgl-engine/effects/transparency/{OITDim.glsl.js → OITDimOpaque.glsl.js} +1 -1
  308. package/views/3d/webgl-engine/effects/transparency/OITDimOpaqueTechnique.js +2 -0
  309. package/views/3d/webgl-engine/effects/transparency/{OITDimTechniqueConfiguration.js → OITDimOpaqueTechniqueConfiguration.js} +1 -1
  310. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  311. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  312. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
  313. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  314. package/views/PopupView.js +1 -1
  315. package/views/layers/FeatureLikeLayerView.d.ts +2 -1
  316. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +40 -1
  317. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  318. package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
  319. package/widgets/BatchAttributeForm/expressions/types.d.ts +1 -0
  320. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +52 -1
  321. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  322. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +3 -0
  323. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
  324. package/widgets/BatchAttributeForm/inputs/EditableInput.d.ts +2 -0
  325. package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
  326. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  327. package/widgets/BatchAttributeForm/types.d.ts +79 -0
  328. package/widgets/Editor/Edits.js +1 -1
  329. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  330. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +12 -12
  331. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  332. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  333. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  334. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  335. package/widgets/FeatureTable.d.ts +18 -3
  336. package/widgets/FeatureTable.js +1 -1
  337. package/widgets/Features/FeaturesViewModel.js +1 -1
  338. package/assets/esri/core/workers/chunks/015fc0a17b17d69cc3bb.js +0 -1
  339. package/assets/esri/core/workers/chunks/02e8fc598ee09cf1b678.js +0 -1
  340. package/assets/esri/core/workers/chunks/075a1e91a075efe59cd3.js +0 -1
  341. package/assets/esri/core/workers/chunks/0ab1384282afc8731857.js +0 -1
  342. package/assets/esri/core/workers/chunks/146424b5717d0a645ee1.js +0 -1
  343. package/assets/esri/core/workers/chunks/15a070d4ac2087b79e8b.js +0 -1
  344. package/assets/esri/core/workers/chunks/169ca3724053fc046d1b.js +0 -1
  345. package/assets/esri/core/workers/chunks/17445fd8048966617d49.js +0 -1
  346. package/assets/esri/core/workers/chunks/1765dfeac20e34ce25b7.js +0 -1
  347. package/assets/esri/core/workers/chunks/1768f1a7e3caa6074d91.js +0 -1
  348. package/assets/esri/core/workers/chunks/1906416c84bab369bbd6.js +0 -1
  349. package/assets/esri/core/workers/chunks/198864c107fa2b24518c.js +0 -1
  350. package/assets/esri/core/workers/chunks/1a35121a0c2595a41fdb.js +0 -1
  351. package/assets/esri/core/workers/chunks/1f85646936200a399c15.js +0 -1
  352. package/assets/esri/core/workers/chunks/1ff3c15a51c4dc991806.js +0 -1
  353. package/assets/esri/core/workers/chunks/206bdfd868a9ef88f3a8.js +0 -1
  354. package/assets/esri/core/workers/chunks/2343b1105bc4c1b4a086.js +0 -1
  355. package/assets/esri/core/workers/chunks/2387613b855771a3e537.js +0 -1
  356. package/assets/esri/core/workers/chunks/2b0b398180ed98c2c84c.js +0 -1
  357. package/assets/esri/core/workers/chunks/3469df5c4846b0cee012.js +0 -1
  358. package/assets/esri/core/workers/chunks/34b6b5dd415c68f0b0d1.js +0 -1
  359. package/assets/esri/core/workers/chunks/36f6673b23579b88d8f7.js +0 -1
  360. package/assets/esri/core/workers/chunks/384c235d36f32769e32b.js +0 -1
  361. package/assets/esri/core/workers/chunks/38c28189f273636e4017.js +0 -1
  362. package/assets/esri/core/workers/chunks/3a183259805638c25363.js +0 -1
  363. package/assets/esri/core/workers/chunks/3efbb684c0409955186d.js +0 -1
  364. package/assets/esri/core/workers/chunks/3feec3d08424b94e1bcf.js +0 -1
  365. package/assets/esri/core/workers/chunks/460e693ad19fa77ffdc2.js +0 -1
  366. package/assets/esri/core/workers/chunks/47b3a5213539548ff3a6.js +0 -1
  367. package/assets/esri/core/workers/chunks/48549d3d7bf0154c0afa.js +0 -1
  368. package/assets/esri/core/workers/chunks/52b3a11c962810bc6dbe.js +0 -1
  369. package/assets/esri/core/workers/chunks/54c6e870262469d0d702.js +0 -1
  370. package/assets/esri/core/workers/chunks/55fd201ca5e10c6e4761.js +0 -1
  371. package/assets/esri/core/workers/chunks/561d45dc9421f80feca5.js +0 -1
  372. package/assets/esri/core/workers/chunks/566f6319ded0634769e0.js +0 -1
  373. package/assets/esri/core/workers/chunks/56717ff315c6ec874142.js +0 -1
  374. package/assets/esri/core/workers/chunks/56941e8bbd2d49bf2656.js +0 -1
  375. package/assets/esri/core/workers/chunks/5fccb372b4d5ee2f64cc.js +0 -1
  376. package/assets/esri/core/workers/chunks/60cee9a44929decd2474.js +0 -1
  377. package/assets/esri/core/workers/chunks/6124141ac642e4ce1454.js +0 -1
  378. package/assets/esri/core/workers/chunks/61fada8942b65fa0b5e1.js +0 -1
  379. package/assets/esri/core/workers/chunks/64cf18ba2869171a5a7a.js +0 -1
  380. package/assets/esri/core/workers/chunks/65c61171e6c6be5c5c2f.js +0 -1
  381. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +0 -1
  382. package/assets/esri/core/workers/chunks/6d696beddcc5fbed5875.js +0 -1
  383. package/assets/esri/core/workers/chunks/71cfab6305f275cfb04e.js +0 -1
  384. package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +0 -1
  385. package/assets/esri/core/workers/chunks/7531bbcb6613c87a344e.js +0 -1
  386. package/assets/esri/core/workers/chunks/7b505112c7e6d9b7a239.js +0 -1
  387. package/assets/esri/core/workers/chunks/7b6c8be59ed87e386aa4.js +0 -1
  388. package/assets/esri/core/workers/chunks/7c820c5f6f05480d5050.js +0 -1
  389. package/assets/esri/core/workers/chunks/7ef51b0ebd560113ae7e.js +0 -1
  390. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +0 -1
  391. package/assets/esri/core/workers/chunks/81d761c837b7456ec99f.js +0 -1
  392. package/assets/esri/core/workers/chunks/83f1871d04c979fa23b7.js +0 -1
  393. package/assets/esri/core/workers/chunks/85da2987e17b6755a94e.js +0 -1
  394. package/assets/esri/core/workers/chunks/87f7a674957f734b1b42.js +0 -1
  395. package/assets/esri/core/workers/chunks/8a3bff0f58483c1665f9.js +0 -1
  396. package/assets/esri/core/workers/chunks/8a5a827ee557d9f9a66e.js +0 -1
  397. package/assets/esri/core/workers/chunks/8b046e28f879079caada.js +0 -1
  398. package/assets/esri/core/workers/chunks/8d738e9acc2f222235ea.js +0 -1
  399. package/assets/esri/core/workers/chunks/8e1140725a72038627c2.js +0 -1
  400. package/assets/esri/core/workers/chunks/915e2711d3a2cfa402b2.js +0 -1
  401. package/assets/esri/core/workers/chunks/928dac64e6ba401d391a.js +0 -1
  402. package/assets/esri/core/workers/chunks/992525afdf11b2fb16d4.js +0 -1
  403. package/assets/esri/core/workers/chunks/9a5ef33d99a8f89956ff.js +0 -1
  404. package/assets/esri/core/workers/chunks/9c402657f63a4d5668d0.js +0 -1
  405. package/assets/esri/core/workers/chunks/9f51a69b8f1937a8794a.js +0 -1
  406. package/assets/esri/core/workers/chunks/a015c2f54eb91e43a1f4.js +0 -1
  407. package/assets/esri/core/workers/chunks/a232d05c0a055f398c6e.js +0 -1
  408. package/assets/esri/core/workers/chunks/a242ec19a7508de436da.js +0 -1
  409. package/assets/esri/core/workers/chunks/a25acccda8febac71a3d.js +0 -1
  410. package/assets/esri/core/workers/chunks/a432219de6a873f88776.js +0 -1
  411. package/assets/esri/core/workers/chunks/a76e14fe5e8b2f7ef9de.js +0 -2
  412. package/assets/esri/core/workers/chunks/a7f9f478bd1493fc3c76.js +0 -1
  413. package/assets/esri/core/workers/chunks/aac6a57edd7494125204.js +0 -1
  414. package/assets/esri/core/workers/chunks/af074b5b4e1d6baf5219.js +0 -1
  415. package/assets/esri/core/workers/chunks/afc0baf86ece710ef867.js +0 -1
  416. package/assets/esri/core/workers/chunks/b2662bfdbd1e3623ceb9.js +0 -1
  417. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +0 -1
  418. package/assets/esri/core/workers/chunks/b7af0e6b9aadbcaf6a0b.js +0 -1
  419. package/assets/esri/core/workers/chunks/bc78937986854e500b8e.js +0 -1
  420. package/assets/esri/core/workers/chunks/bd10d21545bca9a49de0.js +0 -1
  421. package/assets/esri/core/workers/chunks/bea170f08f5261e22d29.js +0 -1
  422. package/assets/esri/core/workers/chunks/bec3ee5ea945e1e07a35.js +0 -1
  423. package/assets/esri/core/workers/chunks/bf4dd8e50704e4040966.js +0 -1
  424. package/assets/esri/core/workers/chunks/c31ee5617c61a933cb0e.js +0 -1
  425. package/assets/esri/core/workers/chunks/c3e89c7c7b677bd18557.js +0 -1
  426. package/assets/esri/core/workers/chunks/cb81d524f12edcadb9bb.js +0 -1
  427. package/assets/esri/core/workers/chunks/cc0f3b9b153a0c232afe.js +0 -1
  428. package/assets/esri/core/workers/chunks/cd0c232f4e3868d91a05.js +0 -1
  429. package/assets/esri/core/workers/chunks/ce7ef7c4ca14d66d96f6.js +0 -1
  430. package/assets/esri/core/workers/chunks/d55cef8199b8246fea3f.js +0 -1
  431. package/assets/esri/core/workers/chunks/d8decaee2c780e1b5e35.js +0 -1
  432. package/assets/esri/core/workers/chunks/dc54d4a9fe1691862356.js +0 -1
  433. package/assets/esri/core/workers/chunks/de99500b0fcedf2c8a5c.js +0 -1
  434. package/assets/esri/core/workers/chunks/e18badd11f360cc2912b.js +0 -1
  435. package/assets/esri/core/workers/chunks/e6f1ed5e56f1d9862821.js +0 -1
  436. package/assets/esri/core/workers/chunks/e6fe8b5fbe95de01453b.js +0 -1
  437. package/assets/esri/core/workers/chunks/eaab5ac049622986e3bc.js +0 -1
  438. package/assets/esri/core/workers/chunks/ee7e9bca57160694b3c4.js +0 -1
  439. package/assets/esri/core/workers/chunks/ef0085aa743b33cb549f.js +0 -1
  440. package/assets/esri/core/workers/chunks/f0250cecb243b32cdba7.js +0 -1
  441. package/assets/esri/core/workers/chunks/f2beb4267b8d4cddfa3e.js +0 -1
  442. package/assets/esri/core/workers/chunks/f468c6ea2818a1f97e19.js +0 -1
  443. package/assets/esri/core/workers/chunks/f6c8e93ca2987e83f925.js +0 -1
  444. package/assets/esri/core/workers/chunks/fa4265db06e2721754a0.js +0 -1
  445. package/tables/types.d.ts +0 -18
  446. package/views/3d/webgl-engine/effects/transparency/OITDimTechnique.js +0 -2
  447. package/widgets/FeatureTable/support/templateUtils.js +0 -2
  448. /package/assets/esri/core/workers/chunks/{d6f03f628ebfc28fdd23.js.LICENSE.txt → bf6c6bc15b0d2d82d1a4.js.LICENSE.txt} +0 -0
  449. /package/assets/esri/core/workers/chunks/{a76e14fe5e8b2f7ef9de.js.LICENSE.txt → f31deeedb2508e81293b.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{isSome as t}from"../../core/arrayUtils.js";import has from"../../core/has.js";import{curveTypeDict as s}from"../../geometry/support/typeUtils.js";import{isHostedAgolService as e,parse as r}from"./arcgisLayerUrl.js";import{getGltfQueryFormat as p,modelFormatsFromFormatIds as o}from"./infoFor3D.js";import{getRelativeTimeQueryBinWindowSize as u}from"./relativeTimeQueryUtils.js";import{readNumber as i,readBoolean as a}from"../../rest/support/jsonUtils.js";const n={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"},d=["cubic-bezier","circular-arc","elliptic-arc"];function c(t){const s=t?.supportedSpatialAggregationStatistics?.map(t=>t.toLowerCase());return{envelope:!!s?.includes("envelopeaggregate"),centroid:!!s?.includes("centroidaggregate"),convexHull:!!s?.includes("convexhullaggregate")}}function l(t,s){const e=t?.supportedOperationsWithCacheHint?.map(t=>t.toLowerCase());return!!e?.includes(s.toLowerCase())}function y(t){const s=t?.supportedStatisticTypes?.map(t=>t.toLowerCase());return{count:!!s?.includes("count"),sum:!!s?.includes("sum"),min:!!s?.includes("min"),max:!!s?.includes("max"),avg:!!s?.includes("avg"),var:!!s?.includes("var"),stddev:!!s?.includes("stddev"),percentileContinuous:!!s?.includes("percentile_cont"),percentileDiscrete:!!s?.includes("percentile_disc"),envelope:!!s?.includes("envelopeaggregate"),centroid:!!s?.includes("centroidaggregate"),convexHull:!!s?.includes("convexhullaggregate")}}function m(t){const s=t?.supportedNormalizationTypes?.map(t=>t.toLowerCase());return{field:!!s?.includes("field"),log:!!s?.includes("log"),naturalLog:!!s?.includes("naturallog"),percentOfTotal:!!s?.includes("percentoftotal"),squareRoot:!!s?.includes("squareroot")}}function C(t){if(!has("featurelayer-pbf-true-curves"))return!1;return(t.supportedTrueCurvePbfFeatureEncodings??[]).includes("esriDefault")}function v(t,s){return{analytics:g(t),attachment:f(t),data:h(t),metadata:Q(t),operations:A(t.capabilities,t,s),query:F(t,s),queryAttributeBins:x(t),queryRelated:S(t),queryTopFeatures:T(t),editing:R(t)}}function g(t){return{supportsCacheHint:l(t.advancedQueryCapabilities,"queryAnalytics")}}function f(t){const s=t.attachmentProperties,e={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:l(t.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:a(t.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:a(t,"supportsAttachmentsResizing",!1),supportsTypeWildcard:a(t.advancedQueryCapabilities,"supportsQueryAttachmentWithTypeWildcard",!1),supportsCountOnly:a(t.advancedQueryCapabilities,"supportsQueryAttachmentsCountOnly",!1)};return s&&Array.isArray(s)&&s.forEach(t=>{const s=n[t.name];s&&(e[s]=!!t.isEnabled)}),e}function h(t){const s=a(t.advancedQueryCapabilities,"supportsTrueCurve",!1),e=t.infoFor3D,r=e?.supportedFormats??[];return{isVersioned:a(t,"isDataVersioned",!1),isBranchVersioned:a(t,"isDataBranchVersioned",!1),queryFormats:e?o(e.queryFormats,r):void 0,sourceFormats:e?o(e.editFormats,r):void 0,supportsAttachment:a(t,"hasAttachments",!1),supportsM:a(t,"hasM",!1),supportsTrueCurve:s,supportedCurveTypes:B(t,s),supportsZ:a(t,"hasZ",!1)}}function Q(t){return{supportsAdvancedFieldProperties:a(t,"supportsFieldDescriptionProperty",!1)}}function A(t,s,p){const o=e(p),u=t?.toLowerCase().split(",").map(t=>t.trim())??[],i=p?r(p):null,n=u.includes("MapServer"===i?.serverType?"data":"query"),d=u.includes("editing")&&!s.datesInUnknownTimezone&&!(null!=p&&!0===s.uniqueIdInfo?.OIDFieldContainsHashValue);let c=d&&u.includes("create"),l=d&&u.includes("delete"),y=d&&u.includes("update");const m=u.includes("changetracking"),C=s.advancedQueryCapabilities;let v=a(s,"supportsExceedsLimitStatistics",!1);if(!o){a(C,"supportsUseEstimateForExceedsLimit",!1)||(v=!1)}return d&&!(c||l||y)&&(c=l=y=!0),{supportsCalculate:a(s,"supportsCalculate",!1),supportsTruncate:a(s,"supportsTruncate",!1),supportsValidateSql:a(s,"supportsValidateSql",!1),supportsAdd:c,supportsDelete:l,supportsEditing:d,supportsChangeTracking:m,supportsQuery:n,supportsQueryAnalytics:a(C,"supportsQueryAnalytic",!1),supportsQueryAttachments:a(C,"supportsQueryAttachments",!1),supportsQueryBins:a(C,"supportsQueryBins",!1)||!!s.queryBinsCapabilities,supportsQueryPivot:a(C,"supportsQueryPivot",!1),supportsQueryTopFeatures:a(C,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:a(s,"supportsAttachmentsResizing",!1),supportsSync:u.includes("sync"),supportsUpdate:y,supportsExceedsLimitStatistics:v,supportsAsyncConvert3D:a(s,"supportsAsyncConvert3D",!1)}}function F(t,s){const r=t.advancedQueryCapabilities,o=t.ownershipBasedAccessControlForFeatures,n=t.archivingInfo,d=t.currentVersion,y=u(s,t.cacheMaxAge),m=s?.includes("MapServer"),v=!m||d>=has("mapserver-pbf-version-support"),g=e(s),f=new Set((t.supportedQueryFormats??"").split(",").map(t=>t.toLowerCase().trim())),h=v&&C(t);return{maxRecordCount:i(t,"maxRecordCount",void 0),maxRecordCountFactor:i(t,"maxRecordCountFactor",void 0),maxUniqueIDCount:i(t,"maxUniqueIDCount",void 0),relativeTimeBinWindow:y,standardMaxRecordCount:i(t,"standardMaxRecordCount",void 0),standardMaxRecordCountNoGeometry:i(t,"standardMaxRecordCountNoGeometry",void 0),supportedSpatialAggregationStatistics:c(r),supportsAggregateIds:a(t,"supportsAggIds",!1),supportsCacheHint:a(r,"supportsQueryWithCacheHint",!1)||l(r,"query"),supportsCentroid:a(r,"supportsReturningGeometryCentroid",!1),supportsCentroidOnDegeneratedQuantizedGeometry:g||null==s,supportsCompactGeometry:g,supportsCurrentUser:a(r,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:a(r,"supportsDefaultSR",!1),supportsDegeneratedQuantizedGeometry:a(r,"supportsDegeneratedQuantizedGeometry",!1),supportsDisjointSpatialRelationship:a(r,"supportsDisjointSpatialRel",!1),supportsDistance:a(r,"supportsQueryWithDistance",!1),supportsDistinct:a(r,"supportsDistinct",t.supportsAdvancedQueries),supportsExtent:a(r,"supportsReturningQueryExtent",!1),supportsFormatPBF:v&&f.has("pbf"),supportsFormatPBFWithCurves:h,supportsFullTextSearch:a(r,"supportsFullTextSearch",!1),supportsGeometryProperties:a(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:a(r,"supportsHavingClause",!1),supportsHistoricMoment:a(n,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:a(r,"supportsMaxRecordCountFactor",!1),supportsOrderBy:a(r,"supportsOrderBy",t.supportsAdvancedQueries),supportsPagination:a(r,"supportsPagination",!1),supportsPaginationOnAggregatedQueries:a(r,"supportsPaginationOnAggregatedQueries",!1),supportsPercentileStatistics:a(r,"supportsPercentileStatistics",!1),supportsQuantization:a(t,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:a(t,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:a(o,"allowAnonymousToQuery",!0),supportsQueryByOthers:a(o,"allowOthersToQuery",!0),supportsQueryGeometry:a(t,"supportsReturningQueryGeometry",!1),supportsResultType:a(r,"supportsQueryWithResultType",!1),supportsReturnMesh:!!p(t.infoFor3D),supportsSpatialAggregationStatistics:a(r,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:a(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:a(t,"useStandardizedQueries",!1),supportsStatistics:a(r,"supportsStatistics",t.supportsStatistics),supportsTopFeaturesQuery:a(r,"supportsTopFeaturesQuery",!1),supportsTrueCurve:a(r,"supportsTrueCurve",!1),tileMaxRecordCount:i(t,"tileMaxRecordCount",void 0)}}function S(t){const s=t.advancedQueryCapabilities,e=a(s,"supportsAdvancedQueryRelated",!1);return{supportsPagination:a(s,"supportsQueryRelatedPagination",!1),supportsCount:e,supportsOrderBy:e,supportsCacheHint:l(s,"queryRelated")}}function T(t){return{supportsCacheHint:l(t.advancedQueryCapabilities,"queryTopFilter")}}function x(t){const s=t?t.queryBinsCapabilities:void 0;return{supportsDate:a(s,"supportsDateBin",!1),supportsFixedInterval:a(s,"supportsFixedIntervalBin",!1),supportsAutoInterval:a(s,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:a(s,"supportsFixedBoundariesBin",!1),supportsStackBy:a(s,"supportsStackBy",!1),supportsSplitBy:a(s,"supportsSplitBy",!1),supportsSnapToData:a(s,"supportsSnapToData",!1),supportsReturnFullIntervalBin:a(s,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:a(s,"supportsFirstDayOfWeek",!1),supportsNormalization:a(s,"supportsNormalization",!1),supportedStatistics:y(s),supportedNormalizationTypes:m(s)}}function R(t){const s=t.ownershipBasedAccessControlForFeatures,e=t?t.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:a(t,"allowGeometryUpdates",!0),supportsGlobalId:a(t,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:a(t,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:a(t,"supportsRollbackOnFailureParameter",!1),supportsTrueCurveUpdate:a(t,"allowTrueCurvesUpdates",!0),supportsTrueCurveUpdateByTrueCurveClientsOnly:a(t,"onlyAllowTrueCurveUpdatesByTrueCurveClients",!0),supportsUpdateWithoutM:a(t,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:a(t,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:a(s,"allowAnonymousToDelete",!0),supportsDeleteByOthers:a(s,"allowOthersToDelete",!0),supportsUpdateByAnonymous:a(s,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:a(s,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:a(e,"supportsAsyncApplyEdits",!1),zDefault:i(t,"zDefault",void 0)}}function B(e,r){const p=e.supportedCurveTypes??e.advancedQueryCapabilities?.supportedCurveTypes;return Array.isArray(p)?p.map(t=>s.fromJSON(t)).filter(t):r?d:[]}function D(t){return{operations:{supportsAppend:a(t,"supportsAppend",!1),supportsCoverageQuery:t?.playbackInfo?.klv["0601"]??!1,supportsExportClip:a(t,"supportsExportClip",!1),supportsExportFrameset:a(t,"supportsExportFrameset",!1),supportsMensuration:a(t,"supportsMensuration",!1),supportsPreviews:a(t,"supportsPreviews",!1),supportsUpdate:a(t,"supportsUpdate",!1)}}}export{d as allCurveTypes,v as getFeatureLayerCapabilities,D as getVideoLayerCapabilities};
2
+ import{isSome as t}from"../../core/arrayUtils.js";import has from"../../core/has.js";import{curveTypeDict as s}from"../../geometry/support/typeUtils.js";import{isHostedAgolService as e,parse as r}from"./arcgisLayerUrl.js";import{getGltfQueryFormat as p,modelFormatsFromFormatIds as o}from"./infoFor3D.js";import{getRelativeTimeQueryBinWindowSize as u}from"./relativeTimeQueryUtils.js";import{readNumber as i,readBoolean as a}from"../../rest/support/jsonUtils.js";const n={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"},d=["cubic-bezier","circular-arc","elliptic-arc"];function c(t){const s=t?.supportedSpatialAggregationStatistics?.map(t=>t.toLowerCase());return{envelope:!!s?.includes("envelopeaggregate"),centroid:!!s?.includes("centroidaggregate"),convexHull:!!s?.includes("convexhullaggregate")}}function l(t,s){const e=t?.supportedOperationsWithCacheHint?.map(t=>t.toLowerCase());return!!e?.includes(s.toLowerCase())}function y(t){const s=t?.supportedStatisticTypes?.map(t=>t.toLowerCase());return{count:!!s?.includes("count"),sum:!!s?.includes("sum"),min:!!s?.includes("min"),max:!!s?.includes("max"),avg:!!s?.includes("avg"),var:!!s?.includes("var"),stddev:!!s?.includes("stddev"),percentileContinuous:!!s?.includes("percentile_cont"),percentileDiscrete:!!s?.includes("percentile_disc"),envelope:!!s?.includes("envelopeaggregate"),centroid:!!s?.includes("centroidaggregate"),convexHull:!!s?.includes("convexhullaggregate")}}function m(t){const s=t?.supportedNormalizationTypes?.map(t=>t.toLowerCase());return{field:!!s?.includes("field"),log:!!s?.includes("log"),naturalLog:!!s?.includes("naturallog"),percentOfTotal:!!s?.includes("percentoftotal"),squareRoot:!!s?.includes("squareroot")}}function C(t){if(!has("featurelayer-pbf-true-curves"))return!1;return(t.supportedTrueCurvePbfFeatureEncodings??[]).includes("esriDefault")}function v(t,s){return{analytics:g(t),attachment:f(t),data:h(t),metadata:Q(t),operations:A(t.capabilities,t,s),query:S(t,s),queryAttributeBins:x(t),queryRelated:F(t),queryTopFeatures:T(t),editing:R(t)}}function g(t){return{supportsCacheHint:l(t.advancedQueryCapabilities,"queryAnalytics")}}function f(t){const s=t.attachmentProperties,e={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:l(t.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:a(t.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:a(t,"supportsAttachmentsResizing",!1),supportsTypeWildcard:a(t.advancedQueryCapabilities,"supportsQueryAttachmentWithTypeWildcard",!1),supportsCountOnly:a(t.advancedQueryCapabilities,"supportsQueryAttachmentsCountOnly",!1)};return s&&Array.isArray(s)&&s.forEach(t=>{const s=n[t.name];s&&(e[s]=!!t.isEnabled)}),e}function h(t){const s=a(t.advancedQueryCapabilities,"supportsTrueCurve",!1),e=t.infoFor3D,r=e?.supportedFormats??[];return{isVersioned:a(t,"isDataVersioned",!1),isBranchVersioned:a(t,"isDataBranchVersioned",!1),queryFormats:e?o(e.queryFormats,r):void 0,sourceFormats:e?o(e.editFormats,r):void 0,supportsAttachment:a(t,"hasAttachments",!1),supportsM:a(t,"hasM",!1),supportsTrueCurve:s,supportedCurveTypes:D(t,s),supportsZ:a(t,"hasZ",!1)}}function Q(t){return{supportsAdvancedFieldProperties:a(t,"supportsFieldDescriptionProperty",!1)}}function A(t,s,p){const o=e(p),u=t?.toLowerCase().split(",").map(t=>t.trim())??[],i=p?r(p):null,n=u.includes("MapServer"===i?.serverType?"data":"query"),d=u.includes("editing")&&!s.datesInUnknownTimezone&&!(null!=p&&!0===s.uniqueIdInfo?.OIDFieldContainsHashValue);let c=d&&u.includes("create"),l=d&&u.includes("delete"),y=d&&u.includes("update");const m=u.includes("changetracking"),C=s.advancedQueryCapabilities;let v=a(s,"supportsExceedsLimitStatistics",!1);if(!o){a(C,"supportsUseEstimateForExceedsLimit",!1)||(v=!1)}return d&&!(c||l||y)&&(c=l=y=!0),{supportsCalculate:a(s,"supportsCalculate",!1),supportsTruncate:a(s,"supportsTruncate",!1),supportsValidateSql:a(s,"supportsValidateSql",!1),supportsAdd:c,supportsDelete:l,supportsEditing:d,supportsChangeTracking:m,supportsQuery:n,supportsQueryAnalytics:a(C,"supportsQueryAnalytic",!1),supportsQueryAttachments:a(C,"supportsQueryAttachments",!1),supportsQueryBins:a(C,"supportsQueryBins",!1)||!!s.queryBinsCapabilities,supportsQueryPivot:a(C,"supportsQueryPivot",!1),supportsQueryTopFeatures:a(C,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:a(s,"supportsAttachmentsResizing",!1),supportsSync:u.includes("sync"),supportsUpdate:y,supportsExceedsLimitStatistics:v,supportsAsyncConvert3D:a(s,"supportsAsyncConvert3D",!1)}}function S(t,s){const r=t.advancedQueryCapabilities,o=t.ownershipBasedAccessControlForFeatures,n=t.archivingInfo,d=t.currentVersion,y=u(s,t.cacheMaxAge),m=s?.includes("MapServer"),v=!m||d>=has("mapserver-pbf-version-support"),g=e(s),f=new Set((t.supportedQueryFormats??"").split(",").map(t=>t.toLowerCase().trim())),h=v&&C(t);return{maxRecordCount:i(t,"maxRecordCount",void 0),maxRecordCountFactor:i(t,"maxRecordCountFactor",void 0),maxUniqueIDCount:i(t,"maxUniqueIDCount",void 0),relativeTimeBinWindow:y,standardMaxRecordCount:i(t,"standardMaxRecordCount",void 0),standardMaxRecordCountNoGeometry:i(t,"standardMaxRecordCountNoGeometry",void 0),supportedSpatialAggregationStatistics:c(r),supportsStatisticsAggregatedIds:a(t,"supportsAggIds",!1),supportsCacheHint:a(r,"supportsQueryWithCacheHint",!1)||l(r,"query"),supportsCentroid:a(r,"supportsReturningGeometryCentroid",!1),supportsCentroidOnDegeneratedQuantizedGeometry:g||null==s,supportsCompactGeometry:g,supportsCurrentUser:a(r,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:a(r,"supportsDefaultSR",!1),supportsDegeneratedQuantizedGeometry:a(r,"supportsDegeneratedQuantizedGeometry",!1),supportsDisjointSpatialRelationship:a(r,"supportsDisjointSpatialRel",!1),supportsDistance:a(r,"supportsQueryWithDistance",!1),supportsOutDistance:a(r,"supportsOutDistance",!1),supportsDistinct:a(r,"supportsDistinct",t.supportsAdvancedQueries),supportsExtent:a(r,"supportsReturningQueryExtent",!1),supportsFormatPBF:v&&f.has("pbf"),supportsFormatPBFWithCurves:h,supportsFullTextSearch:a(r,"supportsFullTextSearch",!1),supportsGeometryProperties:a(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:a(r,"supportsHavingClause",!1),supportsHistoricMoment:a(n,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:a(r,"supportsMaxRecordCountFactor",!1),supportsOrderBy:a(r,"supportsOrderBy",t.supportsAdvancedQueries),supportsPagination:a(r,"supportsPagination",!1),supportsPaginationOnAggregatedQueries:a(r,"supportsPaginationOnAggregatedQueries",!1),supportsPercentileStatistics:a(r,"supportsPercentileStatistics",!1),supportsQuantization:a(t,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:a(t,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:a(o,"allowAnonymousToQuery",!0),supportsQueryByOthers:a(o,"allowOthersToQuery",!0),supportsQueryGeometry:a(t,"supportsReturningQueryGeometry",!1),supportsResultType:a(r,"supportsQueryWithResultType",!1),supportsReturnMesh:!!p(t.infoFor3D),supportsReturnExceededLimitGeometries:a(t,"supportsReturnExceededLimitGeometries",!1),supportsSpatialAggregationStatistics:a(r,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:a(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:a(t,"useStandardizedQueries",!1),supportsStatistics:a(r,"supportsStatistics",t.supportsStatistics),supportsTopFeaturesQuery:a(r,"supportsTopFeaturesQuery",!1),supportsTrueCurve:a(r,"supportsTrueCurve",!1),tileMaxRecordCount:i(t,"tileMaxRecordCount",void 0)}}function F(t){const s=t.advancedQueryCapabilities,e=a(s,"supportsAdvancedQueryRelated",!1);return{supportsPagination:a(s,"supportsQueryRelatedPagination",!1),supportsCount:e,supportsOrderBy:e,supportsCacheHint:l(s,"queryRelated")}}function T(t){return{supportsCacheHint:l(t.advancedQueryCapabilities,"queryTopFilter")}}function x(t){const s=t?t.queryBinsCapabilities:void 0;return{supportsDate:a(s,"supportsDateBin",!1),supportsFixedInterval:a(s,"supportsFixedIntervalBin",!1),supportsAutoInterval:a(s,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:a(s,"supportsFixedBoundariesBin",!1),supportsStackBy:a(s,"supportsStackBy",!1),supportsSplitBy:a(s,"supportsSplitBy",!1),supportsSnapToData:a(s,"supportsSnapToData",!1),supportsReturnFullIntervalBin:a(s,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:a(s,"supportsFirstDayOfWeek",!1),supportsNormalization:a(s,"supportsNormalization",!1),supportedStatistics:y(s),supportedNormalizationTypes:m(s)}}function R(t){const s=t.ownershipBasedAccessControlForFeatures,e=t?t.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:a(t,"allowGeometryUpdates",!0),supportsGlobalId:a(t,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:a(t,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:a(t,"supportsRollbackOnFailureParameter",!1),supportsTrueCurveUpdate:a(t,"allowTrueCurvesUpdates",!0),supportsTrueCurveUpdateByTrueCurveClientsOnly:a(t,"onlyAllowTrueCurveUpdatesByTrueCurveClients",!0),supportsUpdateWithoutM:a(t,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:a(t,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:a(s,"allowAnonymousToDelete",!0),supportsDeleteByOthers:a(s,"allowOthersToDelete",!0),supportsUpdateByAnonymous:a(s,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:a(s,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:a(e,"supportsAsyncApplyEdits",!1),zDefault:i(t,"zDefault",void 0)}}function D(e,r){const p=e.supportedCurveTypes??e.advancedQueryCapabilities?.supportedCurveTypes;return Array.isArray(p)?p.map(t=>s.fromJSON(t)).filter(t):r?d:[]}function B(t){return{operations:{supportsAppend:a(t,"supportsAppend",!1),supportsCoverageQuery:t?.playbackInfo?.klv["0601"]??!1,supportsExportClip:a(t,"supportsExportClip",!1),supportsExportFrameset:a(t,"supportsExportFrameset",!1),supportsMensuration:a(t,"supportsMensuration",!1),supportsPreviews:a(t,"supportsPreviews",!1),supportsUpdate:a(t,"supportsUpdate",!1)}}}export{d as allCurveTypes,v as getFeatureLayerCapabilities,B as getVideoLayerCapabilities};
package/layers/types.d.ts CHANGED
@@ -33,7 +33,7 @@ import type { TimeZone } from "../time/types.js";
33
33
  * @see [Layer.type](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#type)
34
34
  * @since 5.0
35
35
  */
36
- export type LayerType = "base-dynamic" | "base-elevation" | "base-tile" | "bing-maps" | "building-scene" | "catalog" | "catalog-footprint" | "catalog-dynamic-group" | "csv" | "dimension" | "elevation" | "feature" | "geo-rss" | "geojson" | "parquet" | "gaussian-splat" | "graphics" | "group" | "imagery" | "imagery-tile" | "integrated-mesh" | "integrated-mesh-3dtiles" | "kml" | "knowledge-graph" | "knowledge-graph-sublayer" | "line-of-sight" | "link-chart" | "map-image" | "map-notes" | "media" | "video" | "ogc-feature" | "open-street-map" | "oriented-imagery" | "point-cloud" | "route" | "scene" | "stream" | "subtype-group" | "tile" | "unknown" | "unsupported" | "vector-tile" | "viewshed" | "voxel" | "wcs" | "web-tile" | "wfs" | "wms" | "wmts";
36
+ export type LayerType = "base-dynamic" | "base-elevation" | "base-tile" | "bing-maps" | "building-scene" | "catalog" | "catalog-footprint" | "catalog-dynamic-group" | "csv" | "dimension" | "dimension-feature" | "elevation" | "feature" | "geo-rss" | "geojson" | "parquet" | "gaussian-splat" | "graphics" | "group" | "imagery" | "imagery-tile" | "integrated-mesh" | "integrated-mesh-3dtiles" | "kml" | "knowledge-graph" | "knowledge-graph-sublayer" | "line-of-sight" | "link-chart" | "map-image" | "map-notes" | "media" | "video" | "ogc-feature" | "open-street-map" | "oriented-imagery" | "point-cloud" | "route" | "scene" | "stream" | "subtype-group" | "tile" | "unknown" | "unsupported" | "vector-tile" | "viewshed" | "voxel" | "wcs" | "web-tile" | "wfs" | "wms" | "wmts";
37
37
 
38
38
  /**
39
39
  * Indicates how the layer should display in the [Layer List](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list/) component.
@@ -229,13 +229,19 @@ export interface DataCapabilities {
229
229
  */
230
230
  isBranchVersioned: boolean;
231
231
  /**
232
- * Formats that can be requested by 3D object queries.
232
+ * Formats that can be requested by 3D object model queries such as [SceneLayer.queryModel()](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/#queryModel) and
233
+ * [SceneLayer.queryModels()](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/#queryModels).
234
+ *
235
+ * These values describe formats supported by the service and are not guaranteed to be present for every feature.
233
236
  *
234
237
  * @since 5.1
235
238
  */
236
239
  queryFormats?: string[];
237
240
  /**
238
- * Formats that can be uploaded as source models.
241
+ * Formats that can be uploaded as source models for 3D object features.
242
+ *
243
+ * These values describe source formats supported by the service and are not guaranteed to be present for every
244
+ * feature.
239
245
  *
240
246
  * @since 5.1
241
247
  */
@@ -387,6 +393,16 @@ export interface QueryCapabilities {
387
393
  * @since 5.0
388
394
  */
389
395
  supportedSpatialAggregationStatistics: SupportedSpatialAggregationStatistics;
396
+ /**
397
+ * Indicates if the query operation supports returning an array of unique identifiers (for example, ObjectIds)
398
+ * for the individual features contributing to each [aggregated](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#returnStatisticsAggregatedIds)
399
+ * statistics query result.
400
+ *
401
+ * @since 5.1
402
+ * @see [Query.returnStatisticsAggregatedIds](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#returnStatisticsAggregatedIds)
403
+ * @see [Graphic.statisticsAggregatedIds](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#statisticsAggregatedIds)
404
+ */
405
+ supportsStatisticsAggregatedIds: boolean;
390
406
  /**
391
407
  * Indicates if the query operation supports a [cache hint](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#cacheHint). This is valid only for
392
408
  * [hosted feature services](https://doc.arcgis.com/en/arcgis-online/share-maps/hosted-web-layers.htm).
@@ -414,6 +430,13 @@ export interface QueryCapabilities {
414
430
  * @since 5.0
415
431
  */
416
432
  supportsDistance: boolean;
433
+ /**
434
+ * Indicates if the layer's query operation supports returning distance to each of the
435
+ * layer's feature from input geometries.
436
+ *
437
+ * @since 5.1
438
+ */
439
+ supportsOutDistance: boolean;
417
440
  /**
418
441
  * Indicates if the layer supports queries for distinct values based on fields specified in the [FeatureLayer.outFields](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#outFields).
419
442
  *
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as o,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"../../rest/networks/support/TelecomNetworkElement.js";import{reader as i}from"../../core/accessorSupport/decorators/reader.js";import{writer as d}from"../../core/accessorSupport/decorators/writer.js";let c=class extends t{constructor(e){super(e),this.edgeElement=null,this.junctionElement=null}readEdgeElement(e,t){return new r({networkSourceId:t.edgeNetworkSourceId,globalId:t.edgeGlobalId,objectId:t.edgeObjectId,positionFrom:t.edgePositionFrom,positionTo:t.edgePositionTo,firstUnit:t.edgeFirstUnit,lastUnit:t.edgeLastUnit})}writeEdgeElement(e,t){t.edgeNetworkSourceId=e.networkSourceId,t.edgeGlobalId=e.globalId,t.edgeObjectId=e.objectId,t.edgePositionFrom=e.positionFrom,t.edgePositionTo=e.positionTo,t.edgeFirstUnit=e.firstUnit,t.edgeLastUnit=e.lastUnit}readJunctionElement(e,t){return new r({networkSourceId:t.junctionNetworkSourceId,globalId:t.junctionGlobalId,objectId:t.junctionObjectId,firstUnit:t.junctionFirstUnit,lastUnit:t.junctionLastUnit})}writeJunctionElement(e,t){t.junctionNetworkSourceId=e.networkSourceId,t.junctionGlobalId=e.globalId,t.junctionObjectId=e.objectId,t.junctionFirstUnit=e.firstUnit,t.junctionLastUnit=e.lastUnit}};e([o({type:r,json:{read:{source:["edgeNetworkSourceId","edgeGlobalId","edgeObjectId","edgePositionFrom","edgePositionTo","edgeFirstUnit","edgeLastUnit"]},write:!0}})],c.prototype,"edgeElement",void 0),e([i("edgeElement")],c.prototype,"readEdgeElement",null),e([d("edgeElement")],c.prototype,"writeEdgeElement",null),e([o({type:r,json:{read:{source:["junctionNetworkSourceId","junctionGlobalId","junctionObjectId","junctionFirstUnit","junctionLastUnit"]},write:!0}})],c.prototype,"junctionElement",void 0),e([i("junctionElement")],c.prototype,"readJunctionElement",null),e([d("junctionElement")],c.prototype,"writeJunctionElement",null),c=e([n("esri.networks.support.CircuitPathConnectivityElement")],c);const s=c;export{s as default};
2
+ import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as o,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"../../rest/networks/support/TelecomNetworkElement.js";import{reader as i}from"../../core/accessorSupport/decorators/reader.js";import{writer as d}from"../../core/accessorSupport/decorators/writer.js";let c=class extends t{constructor(e){super(e),this.edgeElement=null,this.junctionElement=null}readEdgeElement(e,t){return new r({networkSourceId:t.edgeSourceId,globalId:t.edgeGlobalId,objectId:t.edgeObjectId,positionFrom:t.edgePositionFrom,positionTo:t.edgePositionTo,firstUnit:t.edgeFirstUnit,lastUnit:t.edgeLastUnit})}writeEdgeElement(e,t){t.edgeSourceId=e.networkSourceId,t.edgeGlobalId=e.globalId,t.edgeObjectId=e.objectId,t.edgePositionFrom=e.positionFrom,t.edgePositionTo=e.positionTo,t.edgeFirstUnit=e.firstUnit,t.edgeLastUnit=e.lastUnit}readJunctionElement(e,t){return new r({networkSourceId:t.junctionSourceId,globalId:t.junctionGlobalId,objectId:t.junctionObjectId,firstUnit:t.junctionFirstUnit,lastUnit:t.junctionLastUnit})}writeJunctionElement(e,t){t.junctionSourceId=e.networkSourceId,t.junctionGlobalId=e.globalId,t.junctionObjectId=e.objectId,t.junctionFirstUnit=e.firstUnit,t.junctionLastUnit=e.lastUnit}};e([o({type:r,json:{read:{source:["edgeSourceId","edgeGlobalId","edgeObjectId","edgePositionFrom","edgePositionTo","edgeFirstUnit","edgeLastUnit"]},write:!0}})],c.prototype,"edgeElement",void 0),e([i("edgeElement")],c.prototype,"readEdgeElement",null),e([d("edgeElement")],c.prototype,"writeEdgeElement",null),e([o({type:r,json:{read:{source:["junctionSourceId","junctionGlobalId","junctionObjectId","junctionFirstUnit","junctionLastUnit"]},write:!0}})],c.prototype,"junctionElement",void 0),e([i("junctionElement")],c.prototype,"readJunctionElement",null),e([d("junctionElement")],c.prototype,"writeJunctionElement",null),c=e([n("esri.networks.support.CircuitPathConnectivityElement")],c);const s=c;export{s as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- function t(t){const e=t?.fieldsIndex,n="fromnetworksourceid",o="fromglobalid",i="fromterminalid",r="fromfirstunit",a="fromlastunit",s="tonetworksourceid",l="toglobalid",m="toterminalid",g="tofirstunit",u="tolastunit",f="status",d="associationtype",c="iscontentvisible",p="percentalong",I="globalid";return{fromNetworkSourceId:e?.get(n)?.name??n,fromGlobalId:e?.get(o)?.name??o,fromTerminalId:e?.get(i)?.name??i,fromFirstUnit:e?.get(r)?.name??r,fromLastUnit:e?.get(a)?.name??a,toNetworkSourceId:e?.get(s)?.name??s,toGlobalId:e?.get(l)?.name??l,toTerminalId:e?.get(m)?.name??m,toFirstUnit:e?.get(g)?.name??g,toLastUnit:e?.get(u)?.name??u,status:e?.get(f)?.name??f,associationType:e?.get(d)?.name??d,isContentVisible:e?.get(c)?.name??c,percentAlong:e?.get(p)?.name??p,globalId:e?.get(t?.globalIdField??I)?.name??I}}function e(t,e){if("feature"!==e.type&&"subtype-group"!==e.type)return[];if(!e.url)return[];const n="utilityNetworks"in t.map?t.map.utilityNetworks??[]:[];for(const o of n)if(o.isUtilityLayer(e)){const t=e.fieldsIndex.get("assetgroup"),n=e.fieldsIndex.get("assettype");return[t?.name,n?.name].filter(t=>null!=t)}return[]}export{t as getAssociationsTableFields,e as getUtilityNetworkFields};
2
+ function t(t){const e=t?.fieldsIndex,n="fromnetworksourceid",o="fromglobalid",i="fromterminalid",r="fromfirstunit",a="fromlastunit",s="tonetworksourceid",l="toglobalid",m="toterminalid",g="tofirstunit",u="tolastunit",f="status",d="associationtype",c="iscontentvisible",p="percentalong",y="globalid";return{fromNetworkSourceId:e?.get(n)?.name??n,fromGlobalId:e?.get(o)?.name??o,fromTerminalId:e?.get(i)?.name??i,fromFirstUnit:e?.get(r)?.name??r,fromLastUnit:e?.get(a)?.name??a,toNetworkSourceId:e?.get(s)?.name??s,toGlobalId:e?.get(l)?.name??l,toTerminalId:e?.get(m)?.name??m,toFirstUnit:e?.get(g)?.name??g,toLastUnit:e?.get(u)?.name??u,status:e?.get(f)?.name??f,associationType:e?.get(d)?.name??d,isContentVisible:e?.get(c)?.name??c,percentAlong:e?.get(p)?.name??p,globalId:e?.get(t?.globalIdField??y)?.name??y}}function e(t,e){if("feature"!==e.type&&"subtype-group"!==e.type&&"dimension-feature"!==e.type)return[];if(!e.url)return[];const n="utilityNetworks"in t.map?t.map.utilityNetworks??[]:[];for(const o of n)if(o.isUtilityLayer(e)){const t=e.fieldsIndex.get("assetgroup"),n=e.fieldsIndex.get("assettype");return[t?.name,n?.name].filter(t=>null!=t)}return[]}export{t as getAssociationsTableFields,e as getUtilityNetworkFields};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "5.1.0-next.94",
3
+ "version": "5.1.0-next.96",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -19,7 +19,7 @@
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "dependencies": {
21
21
  "@amcharts/amcharts5": "~5.17.2",
22
- "@arcgis/toolkit": "^5.1.0-next.96",
22
+ "@arcgis/toolkit": "^5.1.0-next.97",
23
23
  "@esri/arcgis-html-sanitizer": "~4.1.0",
24
24
  "@esri/calcite-components": "^5.1.0-next.45",
25
25
  "@vaadin/grid": "~25.1.2",
package/popup/Features.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{isSome as t}from"../core/arrayUtils.js";import i from"../core/Error.js";import{EventedAccessor as r}from"../core/Evented.js";import s from"../core/Logger.js";import{abortMaybe as n}from"../core/maybe.js";import{debounce as o,isAbortError as a}from"../core/promiseUtils.js";import l from"../core/ReactiveSet.js";import{watch as h,when as u,sync as c}from"../core/reactiveUtils.js";import{addMany as p}from"../core/SetUtils.js";import{property as d,subclass as g}from"../core/accessorSupport/decorators.js";import m from"../geometry/Point.js";import{initializeProjection as f,project as y}from"../geometry/projectionUtils.js";import _ from"../geometry/SpatialReference.js";import{geographicToWebMercator as F}from"../geometry/support/webMercatorUtils.js";import{getGraphicLayer as v}from"../graphic/graphicOriginUtils.js";import{fallbackObjectIDAttribute as w}from"../layers/LayerConstants.js";import{ActionsCollection as C,zoomToAggregatedFeatures as b,browseAggregatedFeatures as I,zoomToFeature as P}from"./actions.js";import{getSelectedTarget as A}from"./actionUtils.js";import L from"./Feature.js";import j from"./support/FeatureAbilities.js";import{getDisplayedSymbol as x}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="location-scale-handle",S=()=>[P.clone()],T=()=>[b.clone(),I.clone()];let H=null;function M(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 D=class extends(O(r)){constructor(e){super(e),this._pendingPromises=new l,this._fetchFeaturesController=null,this._centerAtLocationController=null,this._locationUpdateController=null,this._highlightPromises={"highlight-active-feature":null,"highlight-selected-feature":null},this._defaultFeatureAbilities=new j,this.actions=new C,this.activeFeature=null,this.aggregatedFeaturesEnabled=!1,this.defaultPopupTemplateEnabled=!1,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 e=>{this._cancelLocationUpdate();const t=new AbortController,{signal:i}=t;this._locationUpdateController=t,await this._locationUpdate(e,{signal:i}).catch(()=>{}).finally(()=>{this._locationUpdateController===t&&(this._locationUpdateController=null)})})}initialize(){this.addHandles([h(()=>[this.highlightEnabled,this.selectedFeature,this.open,this.view],()=>this._highlightSelectedFeature()),h(()=>[this.highlightEnabled,this.activeFeature,this.open,this.view],()=>this._highlightActiveFeature()),h(()=>this.location,e=>this._locationChange(e)),h(()=>this.selectedFeature,e=>this._selectedFeatureChange(e)),h(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),h(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureItems],()=>this._setGraphicOnFeatureItems()),h(()=>this.featureItems,()=>this._featureItemsChange()),h(()=>[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()),u(()=>!this.waitingForResult,()=>this._waitingForResultChange(),c),u(()=>!this.open,()=>this.aggregatedFeaturesEnabled=!1)])}destroy(){this._cancelLocationUpdate(),this._cancelFetchingFeatures(),this._cancelCenterAtLocation(),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 C;e.removeAll();const{actions:i,defaultActions:r,defaultPopupTemplateEnabled:s,includeDefaultActions:n,selectedFeature:o}=this,a=n?r.concat(i):i,l=o&&("function"==typeof o.getEffectivePopupTemplate&&o.getEffectivePopupTemplate(s)||o.popupTemplate),h=l?.actions,u=l?.overwriteActions?h:h?.concat(a)??a;return u?.filter(t).forEach(t=>e.add(t)),e}set content(e){this.promises=[],this._set("content",e)}get defaultActions(){const e=this._get("defaultActions")||new C;return e.removeAll(),e.addMany(this.selectedFeature?.isAggregate?T():S()),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 initialDisplayMode(){return this._get("initialDisplayMode")||"feature"}set initialDisplayMode(e){this._set("initialDisplayMode",e),this._syncSelectedFeatureIndex(this.features)}set location(e){let t=e;const i=this.spatialReference?.isWebMercator,r=e?.spatialReference?.isWGS84;r&&i&&(t=F(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(){return this._get("promises")||[]}set promises(e){this._get("promises")!==e&&(this._pendingPromises.clear(),this.features=[],Array.isArray(e)&&e.length?(this._set("promises",e),e=e.slice(),p(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(){const{features:e,selectedFeatureIndex:t}=this;if(-1===t)return null;return e[t]||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(){const{view:e,map:t}=this;return e?e.ready?"ready":"disabled":t?"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._fetchFeaturesController||this.pendingPromisesCount>0)&&0===this.featureCount}zoomTo(e){return this.callGoTo(e)}clear(){this.set({promises:[],features:[],content:null,heading:null,location:null,activeFeature:null})}fetchFeatures(e,t){const{view:r}=this;if(!r||!e)throw new i("fetch-features:invalid-screenpoint-or-view","Cannot fetch features without a screenPoint and view.",{screenPoint:e,view:r});return r.fetchPopupFeatures(e,{pointerType:t?.event?.pointerType,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:t?.signal})}next(){return this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex+1,this.featureCount),this}previous(){return this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex-1,this.featureCount),this}async handleViewClick(e){return this._fetchFeaturesAndOpen(e)}_syncSelectedFeatureIndex(e){const{pendingPromisesCount:t,promiseCount:i,selectedFeatureIndex:r}=this,s=i&&e.length;"list"!==this.initialDisplayMode?s&&t&&-1===r?this.selectedFeatureIndex=0:s&&-1!==r||(this.selectedFeatureIndex=e.length?0:-1):(!s||s&&t===i)&&(this.selectedFeatureIndex=-1)}_centerAtLocation(){const{view:e}=this,t=A(this);this._cancelCenterAtLocation();const r=new AbortController,{signal:n}=r;return this._centerAtLocationController=r,t&&e?this.callGoTo({target:{target:t,scale:e.scale},options:{signal:n}}).catch(e=>{a(e)||s.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:r}=this;r&&!this._locationUpdateController&&i&&e&&(!t||t.geometry)&&this._centerAtLocation()}_selectedFeatureIndexChange(){"list"!==this.initialDisplayMode&&(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 n=((i-1)*r+t)%t,o=Math.min(n+r,s.length);for(let a=n;a<o;a++){const t=s[a];t&&(t.graphic??=e[a])}}async _selectedFeatureChange(e){const{location:t,updateLocationEnabled:i,view:r}=this;if(this.aggregatedFeaturesEnabled=!1,!e||!r)return;const s=v(e)?.type;if("map-image"!==s&&"imagery"!==s&&"imagery-tile"!==s||(e.symbol=await x(e)),(i||!t)&&e.geometry){if("point"===e.geometry.type)return void(this.location=e.geometry);const t=await import("../geometry/operators/labelPointOperator.js");return void(this.location=t.execute(e.geometry))}if(i&&!e.geometry){await this._centerAtLocation();const e=r.center?.clone();e&&(this.location=e)}}_waitingForResultChange(){!this.featureCount&&this.promises&&(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,n=this.map,o=this.timeZone,a=this.location,l=this.featureItemAbilities??this._defaultFeatureAbilities;if(!t?.length)return void this._destroyFeatureItems();const h=[],u=new Map,c=new Set;i.forEach(e=>{const t=e?.graphic;e&&t&&u.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,h[p]=d,void c.add(d);const g=u.get(t);if(g&&!c.has(g))return g.abilities=l,h[p]=g,void c.add(g);const m=new L({abilities:l,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:s,graphic:t===e?t:null,location:a,map:n,view:r,timeZone:o});h[p]=m,c.add(m)}),i.forEach(e=>{!e||c.has(e)||e.destroyed||e.destroy()}),this._set("featureItems",h)}async _getScreenPoint(e,t){const{spatialReference:i,view:r}=this;if(!r)return null;await r.when();const s=e?.spatialReference;return s&&i?(await f(s,i,null,t),r.toScreen(e)):null}_cancelCenterAtLocation(){this._centerAtLocationController=n(this._centerAtLocationController)}_cancelFetchingFeatures(){this._fetchFeaturesController=n(this._fetchFeaturesController)}async _projectScreenPointAndFetchFeatures({mapPoint:e,screenPoint:t,event:i,signal:r}){return this.fetchFeatures(t??await this._getScreenPoint(e??this.location,{signal:r}),{signal:r,event:i})}_fetchFeaturesWithController({mapPoint:e,screenPoint:t,event:i}){this._cancelFetchingFeatures();const r=new AbortController,{signal:s}=r;this._fetchFeaturesController=r;const n=this._projectScreenPointAndFetchFeatures({mapPoint:e,screenPoint:t,signal:s,event:i});return n.catch(()=>{}).finally(()=>{this._fetchFeaturesController===r&&(this._fetchFeaturesController=null)}),n}async _fetchFeaturesAndOpen(e){const{mapPoint:t,screenPoint:i}=e;this.removeHandles(U),this.addHandles([h(()=>this.view?.scale,()=>this._debouncedLocationUpdate(t).catch(e=>{a(e)||s.getLogger(this).error(e)})),u(()=>!this.open,()=>{this.removeHandles(U)},{once:!0})],U);const{pendingFeatures:r}=await this._fetchFeaturesWithController({mapPoint:t,screenPoint:i,event:e});return{location:t??void 0,promises:r}}async _locationUpdate(e,t){const{spatialReference:i}=this,r=this.selectedFeature?.geometry?.type,n=this.location??e;if(r&&"mesh"!==r&&i&&n&&this.selectedFeature){if("point"===r){const e=await import("../geometry/operators/labelPointOperator.js");return void(this.location=e.execute(this.selectedFeature.geometry))}try{const e=this.selectedFeature;let r=e.geometry;const s=this._getHighlightLayer(e),o=e.getObjectId();if(!s||!this.view)return;if(o){const e=this.view?.allLayerViews.find(e=>e.layer.uid===s.uid);if(!e||!("queryFeatures"in e))return;const n=e.createQuery();n.outSpatialReference=i,n.objectIds=[o],n.returnGeometry=!0;const{features:a}=await e.queryFeatures(n,t);r=a[0]?.geometry}if(!r||"mesh"===r.type)return;r=y(r,i),H??=await Promise.all([import("../geometry/operators/intersectsOperator.js"),import("../geometry/operators/proximityOperator.js")]);const[a,l]=H;if(!a.execute(r,n)){const t=l.getNearestCoordinate(r,n).coordinate??n;this.selectedFeature===e&&(this.location=t)}}catch(o){a(o)||s.getLogger(this).error(o)}}}_cancelLocationUpdate(){this._locationUpdateController=n(this._locationUpdateController)}async _getLayerView(e,t){return await e.when(),e.whenLayerView(t)}_getHighlightLayer(e){const t=v(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(M(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||w:null,n=e.attributes;return n&&s&&n[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:n}=this;if(!s||!r||!n)return;const o=this._getHighlightLayer(i);if(!o)return;const a=this._getHighlightLayerView(s,o);if(!a)return;this._highlightPromises[e]=a;const l=await a;if(!(l&&R(l)&&this._highlightPromises[e]===a&&this[t]&&this.highlightEnabled))return;const h=l.highlight(this._getHighlightTarget(i,o,s.type));this.addHandles(h,e)}async _highlightActiveFeature(){return this._highlightFeature("highlight-active-feature","activeFeature")}async _highlightSelectedFeature(){return this._highlightFeature("highlight-selected-feature","selectedFeature")}_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([d()],D.prototype,"_fetchFeaturesController",void 0),e([d({type:C})],D.prototype,"actions",void 0),e([d({readOnly:!0})],D.prototype,"active",null),e([d()],D.prototype,"activeFeature",void 0),e([d({readOnly:!0})],D.prototype,"allActions",null),e([d()],D.prototype,"aggregatedFeaturesEnabled",void 0),e([d({value:null})],D.prototype,"content",null),e([d({type:C,readOnly:!0})],D.prototype,"defaultActions",null),e([d({type:Boolean})],D.prototype,"defaultPopupTemplateEnabled",void 0),e([d({readOnly:!0})],D.prototype,"effectiveHeading",null),e([d({readOnly:!0})],D.prototype,"featureCount",null),e([d()],D.prototype,"featurePage",void 0),e([d({value:[]})],D.prototype,"features",null),e([d()],D.prototype,"featuresPerPage",void 0),e([d()],D.prototype,"featureMenuOpen",void 0),e([d({type:j})],D.prototype,"featureItemAbilities",void 0),e([d({readOnly:!0})],D.prototype,"featureItems",void 0),e([d()],D.prototype,"heading",void 0),e([d()],D.prototype,"highlightEnabled",void 0),e([d()],D.prototype,"includeDefaultActions",void 0),e([d({value:"feature"})],D.prototype,"initialDisplayMode",null),e([d({type:m})],D.prototype,"location",null),e([d()],D.prototype,"map",null),e([d()],D.prototype,"open",void 0),e([d({readOnly:!0})],D.prototype,"pendingPromisesCount",null),e([d({readOnly:!0})],D.prototype,"promiseCount",null),e([d()],D.prototype,"promises",null),e([d({value:null,readOnly:!0})],D.prototype,"selectedFeature",null),e([d({value:-1})],D.prototype,"selectedFeatureIndex",null),e([d({readOnly:!0})],D.prototype,"selectedFeatureItem",null),e([d({type:_})],D.prototype,"spatialReference",null),e([d({readOnly:!0})],D.prototype,"state",null),e([d()],D.prototype,"timeZone",null),e([d()],D.prototype,"updateLocationEnabled",void 0),e([d()],D.prototype,"view",void 0),e([d({readOnly:!0})],D.prototype,"waitingForContents",null),e([d({readOnly:!0})],D.prototype,"waitingForResult",null),e([d()],D.prototype,"zoomFactor",void 0),D=e([g("esri.popup.Features")],D);const V=D;export{V 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 r}from"../core/Evented.js";import s from"../core/Logger.js";import{abortMaybe as n}from"../core/maybe.js";import{debounce as o,isAbortError as a}from"../core/promiseUtils.js";import l from"../core/ReactiveSet.js";import{watch as h,when as u,sync as c}from"../core/reactiveUtils.js";import{addMany as p}from"../core/SetUtils.js";import{property as d,subclass as g}from"../core/accessorSupport/decorators.js";import m from"../geometry/Point.js";import{initializeProjection as f,project as y}from"../geometry/projectionUtils.js";import _ from"../geometry/SpatialReference.js";import{geographicToWebMercator as F}from"../geometry/support/webMercatorUtils.js";import{getGraphicLayer as v}from"../graphic/graphicOriginUtils.js";import{fallbackObjectIDAttribute as w}from"../layers/LayerConstants.js";import{ActionsCollection as C,zoomToAggregatedFeatures as b,browseAggregatedFeatures as I,zoomToFeature as P}from"./actions.js";import{getSelectedTarget as A}from"./actionUtils.js";import L from"./Feature.js";import j from"./support/FeatureAbilities.js";import{getDisplayedSymbol as x}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="location-scale-handle",S=()=>[P.clone()],T=()=>[b.clone(),I.clone()];let H=null;function M(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 D=class extends(O(r)){constructor(e){super(e),this._pendingPromises=new l,this._fetchFeaturesController=null,this._centerAtLocationController=null,this._locationUpdateController=null,this._highlightPromises={"highlight-active-feature":null,"highlight-selected-feature":null},this._defaultFeatureAbilities=new j,this.actions=new C,this.activeFeature=null,this.aggregatedFeaturesEnabled=!1,this.defaultPopupTemplateEnabled=!1,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 e=>{this._cancelLocationUpdate();const t=new AbortController,{signal:i}=t;this._locationUpdateController=t,await this._locationUpdate(e,{signal:i}).catch(()=>{}).finally(()=>{this._locationUpdateController===t&&(this._locationUpdateController=null)})})}initialize(){this.addHandles([h(()=>[this.highlightEnabled,this.selectedFeature,this.open,this.view],()=>this._highlightSelectedFeature()),h(()=>[this.highlightEnabled,this.activeFeature,this.open,this.view],()=>this._highlightActiveFeature()),h(()=>this.location,e=>this._locationChange(e)),h(()=>this.selectedFeature,e=>this._selectedFeatureChange(e)),h(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),h(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureItems],()=>this._setGraphicOnFeatureItems()),h(()=>this.featureItems,()=>this._featureItemsChange()),h(()=>[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()),u(()=>!this.waitingForResult,()=>this._waitingForResultChange(),c),u(()=>!this.open,()=>this.aggregatedFeaturesEnabled=!1)])}destroy(){this._cancelLocationUpdate(),this._cancelFetchingFeatures(),this._cancelCenterAtLocation(),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 C;e.removeAll();const{actions:i,defaultActions:r,defaultPopupTemplateEnabled:s,includeDefaultActions:n,selectedFeature:o}=this,a=n?r.concat(i):i,l=o&&("function"==typeof o.getEffectivePopupTemplate&&o.getEffectivePopupTemplate(s)||o.popupTemplate),h=l?.actions,u=l?.overwriteActions?h:h?.concat(a)??a;return u?.filter(t).forEach(t=>e.add(t)),e}set content(e){this.promises=[],this._set("content",e)}get defaultActions(){const e=this._get("defaultActions")||new C;return e.removeAll(),e.addMany(this.selectedFeature?.isAggregate?T():S()),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 initialDisplayMode(){return this._get("initialDisplayMode")||"feature"}set initialDisplayMode(e){this._set("initialDisplayMode",e),this._syncSelectedFeatureIndex(this.features)}set location(e){let t=e;const i=this.spatialReference?.isWebMercator,r=e?.spatialReference?.isWGS84;r&&i&&(t=F(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(){return this._get("promises")||[]}set promises(e){this._get("promises")!==e&&(this._pendingPromises.clear(),this.features=[],Array.isArray(e)&&e.length?(this._set("promises",e),e=e.slice(),p(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(){const{features:e,selectedFeatureIndex:t}=this;if(-1===t)return null;return e[t]||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(){const{view:e,map:t}=this;return e?e.ready?"ready":"disabled":t?"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._fetchFeaturesController||this.pendingPromisesCount>0)&&0===this.featureCount}zoomTo(e){return this.callGoTo(e)}clear(){this.set({promises:[],features:[],content:null,heading:null,location:null,activeFeature:null})}fetchFeatures(e,t){const{view:r}=this;if(!r||!e)throw new i("fetch-features:invalid-screenpoint-or-view","Cannot fetch features without a screenPoint and view.",{screenPoint:e,view:r});return r.fetchPopupFeaturesLegacy(e,{pointerType:t?.event?.pointerType,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:t?.signal})}next(){return this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex+1,this.featureCount),this}previous(){return this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex-1,this.featureCount),this}async handleViewClick(e){return this._fetchFeaturesAndOpen(e)}_syncSelectedFeatureIndex(e){const{pendingPromisesCount:t,promiseCount:i,selectedFeatureIndex:r}=this,s=i&&e.length;"list"!==this.initialDisplayMode?s&&t&&-1===r?this.selectedFeatureIndex=0:s&&-1!==r||(this.selectedFeatureIndex=e.length?0:-1):(!s||s&&t===i)&&(this.selectedFeatureIndex=-1)}_centerAtLocation(){const{view:e}=this,t=A(this);this._cancelCenterAtLocation();const r=new AbortController,{signal:n}=r;return this._centerAtLocationController=r,t&&e?this.callGoTo({target:{target:t,scale:e.scale},options:{signal:n}}).catch(e=>{a(e)||s.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:r}=this;r&&!this._locationUpdateController&&i&&e&&(!t||t.geometry)&&this._centerAtLocation()}_selectedFeatureIndexChange(){"list"!==this.initialDisplayMode&&(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 n=((i-1)*r+t)%t,o=Math.min(n+r,s.length);for(let a=n;a<o;a++){const t=s[a];t&&(t.graphic??=e[a])}}async _selectedFeatureChange(e){const{location:t,updateLocationEnabled:i,view:r}=this;if(this.aggregatedFeaturesEnabled=!1,!e||!r)return;const s=v(e)?.type;if("map-image"!==s&&"imagery"!==s&&"imagery-tile"!==s||(e.symbol=await x(e)),(i||!t)&&e.geometry){if("point"===e.geometry.type)return void(this.location=e.geometry);const t=await import("../geometry/operators/labelPointOperator.js");return void(this.location=t.execute(e.geometry))}if(i&&!e.geometry){await this._centerAtLocation();const e=r.center?.clone();e&&(this.location=e)}}_waitingForResultChange(){!this.featureCount&&this.promises&&(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,n=this.map,o=this.timeZone,a=this.location,l=this.featureItemAbilities??this._defaultFeatureAbilities;if(!t?.length)return void this._destroyFeatureItems();const h=[],u=new Map,c=new Set;i.forEach(e=>{const t=e?.graphic;e&&t&&u.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,h[p]=d,void c.add(d);const g=u.get(t);if(g&&!c.has(g))return g.abilities=l,h[p]=g,void c.add(g);const m=new L({abilities:l,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:s,graphic:t===e?t:null,location:a,map:n,view:r,timeZone:o});h[p]=m,c.add(m)}),i.forEach(e=>{!e||c.has(e)||e.destroyed||e.destroy()}),this._set("featureItems",h)}async _getScreenPoint(e,t){const{spatialReference:i,view:r}=this;if(!r)return null;await r.when();const s=e?.spatialReference;return s&&i?(await f(s,i,null,t),r.toScreen(e)):null}_cancelCenterAtLocation(){this._centerAtLocationController=n(this._centerAtLocationController)}_cancelFetchingFeatures(){this._fetchFeaturesController=n(this._fetchFeaturesController)}async _projectScreenPointAndFetchFeatures({mapPoint:e,screenPoint:t,event:i,signal:r}){return this.fetchFeatures(t??await this._getScreenPoint(e??this.location,{signal:r}),{signal:r,event:i})}_fetchFeaturesWithController({mapPoint:e,screenPoint:t,event:i}){this._cancelFetchingFeatures();const r=new AbortController,{signal:s}=r;this._fetchFeaturesController=r;const n=this._projectScreenPointAndFetchFeatures({mapPoint:e,screenPoint:t,signal:s,event:i});return n.catch(()=>{}).finally(()=>{this._fetchFeaturesController===r&&(this._fetchFeaturesController=null)}),n}async _fetchFeaturesAndOpen(e){const{mapPoint:t,screenPoint:i}=e;this.removeHandles(U),this.addHandles([h(()=>this.view?.scale,()=>this._debouncedLocationUpdate(t).catch(e=>{a(e)||s.getLogger(this).error(e)})),u(()=>!this.open,()=>{this.removeHandles(U)},{once:!0})],U);const{pendingFeatures:r}=await this._fetchFeaturesWithController({mapPoint:t,screenPoint:i,event:e});return{location:t??void 0,promises:r}}async _locationUpdate(e,t){const{spatialReference:i}=this,r=this.selectedFeature?.geometry?.type,n=this.location??e;if(r&&"mesh"!==r&&i&&n&&this.selectedFeature){if("point"===r){const e=await import("../geometry/operators/labelPointOperator.js");return void(this.location=e.execute(this.selectedFeature.geometry))}try{const e=this.selectedFeature;let r=e.geometry;const s=this._getHighlightLayer(e),o=e.getObjectId();if(!s||!this.view)return;if(o){const e=this.view?.allLayerViews.find(e=>e.layer.uid===s.uid);if(!e||!("queryFeatures"in e))return;const n=e.createQuery();n.outSpatialReference=i,n.objectIds=[o],n.returnGeometry=!0;const{features:a}=await e.queryFeatures(n,t);r=a[0]?.geometry}if(!r||"mesh"===r.type)return;r=y(r,i),H??=await Promise.all([import("../geometry/operators/intersectsOperator.js"),import("../geometry/operators/proximityOperator.js")]);const[a,l]=H;if(!a.execute(r,n)){const t=l.getNearestCoordinate(r,n).coordinate??n;this.selectedFeature===e&&(this.location=t)}}catch(o){a(o)||s.getLogger(this).error(o)}}}_cancelLocationUpdate(){this._locationUpdateController=n(this._locationUpdateController)}async _getLayerView(e,t){return await e.when(),e.whenLayerView(t)}_getHighlightLayer(e){const t=v(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(M(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||w:null,n=e.attributes;return n&&s&&n[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:n}=this;if(!s||!r||!n)return;const o=this._getHighlightLayer(i);if(!o)return;const a=this._getHighlightLayerView(s,o);if(!a)return;this._highlightPromises[e]=a;const l=await a;if(!(l&&R(l)&&this._highlightPromises[e]===a&&this[t]&&this.highlightEnabled))return;const h=l.highlight(this._getHighlightTarget(i,o,s.type));this.addHandles(h,e)}async _highlightActiveFeature(){return this._highlightFeature("highlight-active-feature","activeFeature")}async _highlightSelectedFeature(){return this._highlightFeature("highlight-selected-feature","selectedFeature")}_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([d()],D.prototype,"_fetchFeaturesController",void 0),e([d({type:C})],D.prototype,"actions",void 0),e([d({readOnly:!0})],D.prototype,"active",null),e([d()],D.prototype,"activeFeature",void 0),e([d({readOnly:!0})],D.prototype,"allActions",null),e([d()],D.prototype,"aggregatedFeaturesEnabled",void 0),e([d({value:null})],D.prototype,"content",null),e([d({type:C,readOnly:!0})],D.prototype,"defaultActions",null),e([d({type:Boolean})],D.prototype,"defaultPopupTemplateEnabled",void 0),e([d({readOnly:!0})],D.prototype,"effectiveHeading",null),e([d({readOnly:!0})],D.prototype,"featureCount",null),e([d()],D.prototype,"featurePage",void 0),e([d({value:[]})],D.prototype,"features",null),e([d()],D.prototype,"featuresPerPage",void 0),e([d()],D.prototype,"featureMenuOpen",void 0),e([d({type:j})],D.prototype,"featureItemAbilities",void 0),e([d({readOnly:!0})],D.prototype,"featureItems",void 0),e([d()],D.prototype,"heading",void 0),e([d()],D.prototype,"highlightEnabled",void 0),e([d()],D.prototype,"includeDefaultActions",void 0),e([d({value:"feature"})],D.prototype,"initialDisplayMode",null),e([d({type:m})],D.prototype,"location",null),e([d()],D.prototype,"map",null),e([d()],D.prototype,"open",void 0),e([d({readOnly:!0})],D.prototype,"pendingPromisesCount",null),e([d({readOnly:!0})],D.prototype,"promiseCount",null),e([d()],D.prototype,"promises",null),e([d({value:null,readOnly:!0})],D.prototype,"selectedFeature",null),e([d({value:-1})],D.prototype,"selectedFeatureIndex",null),e([d({readOnly:!0})],D.prototype,"selectedFeatureItem",null),e([d({type:_})],D.prototype,"spatialReference",null),e([d({readOnly:!0})],D.prototype,"state",null),e([d()],D.prototype,"timeZone",null),e([d()],D.prototype,"updateLocationEnabled",void 0),e([d()],D.prototype,"view",void 0),e([d({readOnly:!0})],D.prototype,"waitingForContents",null),e([d({readOnly:!0})],D.prototype,"waitingForResult",null),e([d()],D.prototype,"zoomFactor",void 0),D=e([g("esri.popup.Features")],D);const V=D;export{V as default};