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

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 (213) hide show
  1. package/analysis/ShadowCast/DiscreteOptions.d.ts +12 -6
  2. package/analysis/ShadowCast/MinDurationOptions.d.ts +17 -9
  3. package/analysis/ShadowCast/TotalDurationOptions.d.ts +10 -6
  4. package/analysis/ShadowCastAnalysis.d.ts +23 -17
  5. package/analysis/Viewshed.js +1 -1
  6. package/arcade/arcadeAsyncRuntime.js +1 -1
  7. package/arcade/arcadeCompiler.js +1 -1
  8. package/arcade/arcadeRuntime.js +1 -1
  9. package/arcade/compilerUtils.js +1 -1
  10. package/arcade/debug.d.ts +10 -1
  11. package/arcade.js +1 -1
  12. package/assets/components/assets/combobox/t9n/messages.fr.json +1 -1
  13. package/assets/esri/core/workers/RemoteClient.js +1 -1
  14. package/assets/esri/core/workers/chunks/01af2a0611386df64cb1.js +636 -0
  15. package/assets/esri/core/workers/chunks/031ea31bbdb7f1be791e.js +1 -0
  16. package/assets/esri/core/workers/chunks/{9c09097e390985bbac58.js → 075a1e91a075efe59cd3.js} +1 -1
  17. package/assets/esri/core/workers/chunks/0981fe06796060e50d40.js +1 -0
  18. package/assets/esri/core/workers/chunks/0ab1384282afc8731857.js +1 -0
  19. package/assets/esri/core/workers/chunks/1523883460874c352e36.js +1 -0
  20. package/assets/esri/core/workers/chunks/{de3e5d82502ee15b7eae.js → 15a070d4ac2087b79e8b.js} +1 -1
  21. package/assets/esri/core/workers/chunks/198864c107fa2b24518c.js +1 -0
  22. package/assets/esri/core/workers/chunks/1f141a007b1ef9b069c6.js +1 -0
  23. package/assets/esri/core/workers/chunks/268f203d2492a03165ac.js +1 -0
  24. package/assets/esri/core/workers/chunks/{f52443cd203e687551da.js → 2fda38219d778f0447b5.js} +1 -1
  25. package/assets/esri/core/workers/chunks/2ffffc1931b2e27c6617.js +1 -0
  26. package/assets/esri/core/workers/chunks/{394812e19b6915d560b0.js → 3a691f848152e3818a48.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{ceff78c9e31e3572a082.js → 3a6b8879702fb247328b.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{41cbde4738ae4adf973d.js → 4142d5232c99d8aa943d.js} +5 -5
  29. package/assets/esri/core/workers/chunks/4378e544687fec4b06fb.js +1 -0
  30. package/assets/esri/core/workers/chunks/{4b9b9e6136c11d5d7901.js → 460e693ad19fa77ffdc2.js} +1 -1
  31. package/assets/esri/core/workers/chunks/4df19e670b6ed76c1dea.js +2 -0
  32. package/assets/esri/core/workers/chunks/{a169d9fe66b5865911d9.js → 503439246250d9e1cbd5.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{1e3fe89970c57a883fe5.js → 53ff47c06ccfc0be885c.js} +1 -1
  34. package/assets/esri/core/workers/chunks/561d45dc9421f80feca5.js +1 -0
  35. package/assets/esri/core/workers/chunks/598271956c46e21e5c09.js +1 -0
  36. package/assets/esri/core/workers/chunks/{d82da31dc702b8fd6a07.js → 59a64d72eed8c40c63cf.js} +1 -1
  37. package/assets/esri/core/workers/chunks/5a8fd2fd8a24f9290b7f.js +1 -0
  38. package/assets/esri/core/workers/chunks/64cf18ba2869171a5a7a.js +1 -0
  39. package/assets/esri/core/workers/chunks/{fade7b878a9498382bb2.js → 700f7aa9cf7b13acaf5d.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{4c97cc922eece3a91b6b.js → 7531bbcb6613c87a344e.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{6f67c9f68101a084b683.js → 765bc49e58e9d0caa496.js} +6 -6
  42. package/assets/esri/core/workers/chunks/8042e001545e2782499c.js +1 -0
  43. package/assets/esri/core/workers/chunks/{bb8d596f15fd3a0d783a.js → 82215d7a64b8be02eff1.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{d3d9d40556c847bba1a7.js → 87f7a674957f734b1b42.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{5409369d0d637cb30257.js → 8875e53097b25655ef67.js} +1 -1
  46. package/assets/esri/core/workers/chunks/8e1140725a72038627c2.js +1 -0
  47. package/assets/esri/core/workers/chunks/8e374ce47256a567ae11.js +1 -0
  48. package/assets/esri/core/workers/chunks/{127cd8fee3717a473fc5.js → 928dac64e6ba401d391a.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{d7e7f3efd1d28617b808.js → 92e7067960549733f8e6.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{0a6df243b18acae471be.js → 992525afdf11b2fb16d4.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{f1673e723b336204ad77.js → 9b23d999db902d25ba58.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{f2c11f54255fd506655e.js → 9b869a8bda9384f25464.js} +1 -1
  53. package/assets/esri/core/workers/chunks/a76e14fe5e8b2f7ef9de.js +2 -0
  54. package/assets/esri/core/workers/chunks/{46b16501db6681dc467b.js → af074b5b4e1d6baf5219.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{75c09a2fa4c34b4844c5.js → be0eab592db0e651b023.js} +6 -6
  56. package/assets/esri/core/workers/chunks/{2dcfc4d7e76c922bcbf9.js → c7b9df9a204f6206364a.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{969f58a2de4ebe63619d.js → c88fd4f69cb2b53b48ec.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{ee057c85cdf6beb5b012.js → d1ba118ddd0390c07f35.js} +2 -2
  59. package/assets/esri/core/workers/chunks/d6f03f628ebfc28fdd23.js +2 -0
  60. package/assets/esri/core/workers/chunks/{577cbc131b21c351fae5.js → d87e504082e293640ece.js} +2 -2
  61. package/assets/esri/core/workers/chunks/{54c035cdc171998d0776.js → de99500b0fcedf2c8a5c.js} +1 -1
  62. package/assets/esri/core/workers/chunks/e54ad3683ad992682deb.js +1 -0
  63. package/assets/esri/core/workers/chunks/e6f1ed5e56f1d9862821.js +1 -0
  64. package/assets/esri/core/workers/chunks/e7e7c7cbfd8542bd7a46.js +1 -0
  65. package/assets/esri/core/workers/chunks/{27f67a3828b78d4c1413.js → e81afc8a058a8ecc9b24.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{aefeb5a17bb481c95da3.js → eeb847bfea558566adf6.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{90a8dfb03a437fe8a6e7.js → f04b49d80f422708d98c.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{d11de13537b623739e14.js → f14e3693cd644265f909.js} +1 -1
  69. package/assets/esri/core/workers/chunks/f2beb4267b8d4cddfa3e.js +1 -0
  70. package/assets/esri/core/workers/chunks/{2fd4220131bfc3f5e2dd.js → f635a8e3b0bfeda99ed5.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{aa6808146c76b2d49b64.js → f68c12e0c1eda7f73a17.js} +1 -1
  72. package/assets/esri/core/workers/chunks/f69c44479ee3fd8c831d.js +1 -0
  73. package/assets/esri/core/workers/chunks/fa3138dd8139008b430d.js +1 -0
  74. package/assets/esri/core/workers/chunks/fa4265db06e2721754a0.js +1 -0
  75. package/assets/esri/core/workers/chunks/{adfa5c136c72c1e65770.js → fb75d4bce1e86eed017a.js} +28 -22
  76. package/chunks/GlobalIllumination.glsl.js +24 -18
  77. package/chunks/GlowBlur.glsl.js +11 -11
  78. package/chunks/GlowComposition.glsl.js +4 -4
  79. package/chunks/RibbonLine.glsl.js +91 -51
  80. package/chunks/ShadowCastVisualize.glsl.js +18 -15
  81. package/config.js +1 -1
  82. package/geometry/support/geometryUtils.js +1 -1
  83. package/kernel.js +1 -1
  84. package/layers/FeatureLayer.d.ts +27 -1
  85. package/layers/FeatureLayer.js +1 -1
  86. package/layers/graphics/sources/MemorySource.js +1 -1
  87. package/layers/mixins/PortalLayer.js +1 -1
  88. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  89. package/layers/raster/datasets/InMemoryRaster.js +1 -1
  90. package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
  91. package/layers/raster/formats/RasterCodec.js +1 -1
  92. package/layers/support/RasterJobHandler.js +1 -1
  93. package/networks/support/UNTraceConfiguration.d.ts +19 -2
  94. package/networks/support/UNTraceConfiguration.js +1 -1
  95. package/networks/support/jsonTypes.d.ts +9 -1
  96. package/package.json +4 -4
  97. package/popup/Feature.d.ts +4 -4
  98. package/popup/Feature.js +1 -1
  99. package/portal/schemas/definitions.js +1 -1
  100. package/portal/support/layersLoader.js +1 -1
  101. package/rest/knowledgeGraph/GraphApplyEditsResult.d.ts +13 -1
  102. package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
  103. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.d.ts +9 -1
  104. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
  105. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
  106. package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
  107. package/rest/networks/support/NetworkElement.d.ts +13 -1
  108. package/rest/networks/support/NetworkElement.js +1 -1
  109. package/rest/versionManagement/gdbVersion/support/ConflictsParameters.js +1 -1
  110. package/rest/versionManagement/gdbVersion/support/DifferencesParameters.js +1 -1
  111. package/rest/versionManagement/gdbVersion/support/DifferencesResult.d.ts +25 -0
  112. package/rest/versionManagement/gdbVersion/support/InspectConflictsParameters.js +1 -1
  113. package/rest/versionManagement/gdbVersion/support/ReconcileParameters.d.ts +3 -5
  114. package/rest/versionManagement/gdbVersion/support/ReconcileParameters.js +1 -1
  115. package/support/revision.js +1 -1
  116. package/symbols/cim/types.d.ts +27 -0
  117. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  118. package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
  119. package/views/2d/engine/webgl/definitions.js +1 -1
  120. package/views/2d/engine/webgl/shaderGraph/graph/GlslGraphWriter.js +1 -1
  121. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
  122. package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
  123. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  124. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  125. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  126. package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +6 -5
  127. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  128. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  129. package/views/3d/support/QualityProfile.js +1 -1
  130. package/views/3d/support/QualitySettings.js +1 -1
  131. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +11 -12
  132. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +5 -5
  133. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -1
  134. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
  135. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  136. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  137. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
  138. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  139. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
  140. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  141. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  142. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  143. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  144. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  145. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  146. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  147. package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
  148. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  149. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  150. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  151. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +1 -1
  152. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  153. package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
  154. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  155. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  156. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  157. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  158. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  159. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  160. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  161. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  162. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  163. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  164. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +1 -1
  165. package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +1 -1
  166. package/views/SceneView.d.ts +3 -3
  167. package/views/layers/FeatureLikeLayerView.js +1 -1
  168. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  169. package/widgets/FeatureTable/Grid/Column.d.ts +2 -17
  170. package/widgets/FeatureTable/Grid/Column.js +1 -1
  171. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  172. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  173. package/widgets/FeatureTable/Grid/GroupColumn.d.ts +1 -7
  174. package/widgets/FeatureTable/Grid/GroupColumn.js +1 -1
  175. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -9
  176. package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
  177. package/widgets/FeatureTable/support/types.d.ts +0 -8
  178. package/widgets/FeatureTable.js +1 -1
  179. package/widgets/Search/support/layerSearchUtils.js +1 -1
  180. package/widgets/Search/support/locatorUtils.js +1 -1
  181. package/assets/esri/core/workers/chunks/00e9e25269d5776f8645.js +0 -1
  182. package/assets/esri/core/workers/chunks/014a5fad55f97b9b5166.js +0 -1
  183. package/assets/esri/core/workers/chunks/06003996a378c45bc605.js +0 -1
  184. package/assets/esri/core/workers/chunks/0840e7dd62643c56ae9e.js +0 -1
  185. package/assets/esri/core/workers/chunks/0cc4b3100a7a453bd058.js +0 -1
  186. package/assets/esri/core/workers/chunks/1e4e7111d43f01c149b3.js +0 -1
  187. package/assets/esri/core/workers/chunks/3d9032217347dadcbe41.js +0 -1
  188. package/assets/esri/core/workers/chunks/4b79ebfb3328f9483147.js +0 -1
  189. package/assets/esri/core/workers/chunks/4dbbf59c79d9e72f20ee.js +0 -1
  190. package/assets/esri/core/workers/chunks/4e206957b28253ddc1a3.js +0 -1
  191. package/assets/esri/core/workers/chunks/53ef72edc3ed80bf558c.js +0 -1
  192. package/assets/esri/core/workers/chunks/6dac8dfcd63fc757ae2d.js +0 -1
  193. package/assets/esri/core/workers/chunks/73af4c947e8151d411c1.js +0 -2
  194. package/assets/esri/core/workers/chunks/752f4e0e2961fc315dca.js +0 -1
  195. package/assets/esri/core/workers/chunks/7ba67f1d7831a5576a5a.js +0 -1
  196. package/assets/esri/core/workers/chunks/a508104179e08f0f268c.js +0 -2
  197. package/assets/esri/core/workers/chunks/a6b75576d598ec161cc4.js +0 -1
  198. package/assets/esri/core/workers/chunks/b4bac22467e96be7a974.js +0 -1
  199. package/assets/esri/core/workers/chunks/bb5f909a2f26fc6a21b0.js +0 -2
  200. package/assets/esri/core/workers/chunks/bea2fd831d7a864e5995.js +0 -596
  201. package/assets/esri/core/workers/chunks/c8ef80a7c46d7d2c5172.js +0 -1
  202. package/assets/esri/core/workers/chunks/dd5b362bded458afa2d6.js +0 -1
  203. package/assets/esri/core/workers/chunks/dde94664110ff231a52d.js +0 -1
  204. package/assets/esri/core/workers/chunks/f1e5626a0cc1631a1efb.js +0 -1
  205. package/assets/esri/core/workers/chunks/f36345ebb9851ab92453.js +0 -1
  206. package/assets/esri/core/workers/chunks/f7531aa69a87814c60d1.js +0 -1
  207. package/assets/esri/core/workers/chunks/f971dcfd04af1fd652b4.js +0 -1
  208. package/assets/esri/themes/base/fonts/cdn.scss +0 -3
  209. /package/assets/esri/core/workers/chunks/{bb5f909a2f26fc6a21b0.js.LICENSE.txt → 4df19e670b6ed76c1dea.js.LICENSE.txt} +0 -0
  210. /package/assets/esri/core/workers/chunks/{a508104179e08f0f268c.js.LICENSE.txt → a76e14fe5e8b2f7ef9de.js.LICENSE.txt} +0 -0
  211. /package/assets/esri/core/workers/chunks/{73af4c947e8151d411c1.js.LICENSE.txt → d1ba118ddd0390c07f35.js.LICENSE.txt} +0 -0
  212. /package/assets/esri/core/workers/chunks/{ee057c85cdf6beb5b012.js.LICENSE.txt → d6f03f628ebfc28fdd23.js.LICENSE.txt} +0 -0
  213. /package/assets/esri/core/workers/chunks/{577cbc131b21c351fae5.js.LICENSE.txt → d87e504082e293640ece.js.LICENSE.txt} +0 -0
@@ -932,7 +932,7 @@ export interface PropagatorJSON {
932
932
  }
933
933
 
934
934
  /**
935
- * ResultTypeJSON specifies the type of results to return after running a trace.
935
+ * Specifies the type of results to return after running a trace.
936
936
  *
937
937
  * @since 5.0
938
938
  * @example
@@ -969,6 +969,14 @@ export interface ResultType {
969
969
  * @since 5.0
970
970
  */
971
971
  type: "elements" | "aggregatedGeometry" | "paths" | "circuits";
972
+ /**
973
+ * Specifies whether to return flow directions for network edges.
974
+ * Intended for use with subnetwork based traces where flow is modeled using subnetwork controllers.
975
+ *
976
+ * @since 5.1
977
+ * @see [NetworkElement.flowDirection](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/NetworkElement/#flowDirection)
978
+ */
979
+ includeFlowDirections?: boolean;
972
980
  /**
973
981
  * Specifies whether to return geometry values in resultTypes.
974
982
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "5.1.0-next.92",
3
+ "version": "5.1.0-next.94",
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,13 +19,13 @@
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.90",
22
+ "@arcgis/toolkit": "^5.1.0-next.96",
23
23
  "@esri/arcgis-html-sanitizer": "~4.1.0",
24
- "@esri/calcite-components": "^5.1.0-next.42",
24
+ "@esri/calcite-components": "^5.1.0-next.45",
25
25
  "@vaadin/grid": "~25.1.2",
26
26
  "@zip.js/zip.js": "~2.8.26",
27
27
  "luxon": "~3.7.2",
28
- "marked": "~18.0.2",
28
+ "marked": "~18.0.3",
29
29
  "tslib": "^2.8.1"
30
30
  },
31
31
  "type": "module"
@@ -249,11 +249,11 @@ export default class Feature extends FeatureSuperclass {
249
249
  /** Indicates whether the feature is currently waiting for all of its content to finish loading. */
250
250
  get waitingForContent(): boolean;
251
251
  /**
252
- * Fetches the geometry of the [graphic](#graphic) if the geometry does not exist.
253
- * This method can be called to ensure the [graphic](#graphic)'s geometry is available when the geometry is necessary
254
- * to take action such as calling [View2D.goTo()](https://developers.arcgis.com/javascript/latest/references/core/views/View2D/#goTo) with the graphic as the `target`.
252
+ * Fetches and updates the geometry of the [graphic](#graphic).
253
+ * This method can be called to refresh the [graphic](#graphic)'s geometry before taking actions such as calling
254
+ * [View2D.goTo()](https://developers.arcgis.com/javascript/latest/references/core/views/View2D/#goTo) with the graphic as the `target`.
255
255
  *
256
- * @returns A promise that resolves when the geometry has been updated.
256
+ * @returns A promise that resolves when the geometry update attempt has completed.
257
257
  */
258
258
  updateGeometry(): Promise<void>;
259
259
  }
package/popup/Feature.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import e from"../Graphic.js";import{FeatureSetQueryInterceptor as i}from"../arcade/featureset/support/FeatureSetQueryInterceptor.js";import r from"../core/Accessor.js";import{isSome as s}from"../core/arrayUtils.js";import{createTask as o}from"../core/asyncUtils.js";import{IdentifiableMixin as a}from"../core/Identifiable.js";import n from"../core/Logger.js";import{abortMaybe as l}from"../core/maybe.js";import{eachAlways as p,isAbortError as h,throwIfAborted as c}from"../core/promiseUtils.js";import{watch as u,initial as d,when as f}from"../core/reactiveUtils.js";import{throttle as m}from"../core/throttle.js";import{property as g,subclass as y}from"../core/accessorSupport/decorators.js";import _ from"../geometry/Point.js";import b from"../geometry/SpatialReference.js";import{getGraphicLayer as v}from"../graphic/graphicOriginUtils.js";import T from"./content/TextContent.js";import{compileExpressionInfos as I,formatArcadeValue as A}from"./support/arcadeFeatureUtils.js";import x from"./support/FeatureAbilities.js";import{preLayerQueryCallback as C,preRequestCallback as E,createFieldInfoMap as w,getAllFieldInfos as F,querySourceLayer as k,queryUpdatedFeature as j,isRelatableFeatureSupportedLayer as P,isAssociatedFeatureSupportedLayer as R,formatEditInfo as O,substituteFieldsInLinksAndAttributes as M,graphicCallback as Z,formatAttributes as U,isRelatedField as L}from"./support/featureUtils.js";import{queryLayerInfos as N,queryRelatedFeatures as S,setRelatedFeatures as H,getRelatedFieldInfo as G,createRelatedInfo as q,updateRelatedInfo as z}from"./support/relatedFeatureUtils.js";import{system as B}from"../time/constants.js";var Q;const D=1;let J=class extends(a(r)){static{Q=this}constructor(t){super(t),this._error=null,this._graphicChangedTask=null,this._evaluateExpressionAttributesTask=null,this._graphicExpressionAttributes=null,this.abilities=new x,this.content=null,this.description=null,this.defaultPopupTemplateEnabled=!1,this.expressionAttributes=null,this.formattedAttributes=null,this.graphic=null,this.lastEditInfo=null,this.location=null,this.relatedInfos=new Map,this.heading="",this.view=null,this._graphicChangedThrottled=m(this._graphicChanged,()=>this.notifyChange("waitingForContent"),D,this),this._isAllowedContentType=t=>{const{abilities:e}=this;return"attachments"===t.type&&!!e.attachmentsContent||"custom"===t.type&&!!e.customContent||"fields"===t.type&&!!e.fieldsContent||"media"===t.type&&!!e.mediaContent||"text"===t.type&&!!e.textContent||"expression"===t.type&&!!e.expressionContent||"relationship"===t.type&&!!e.relationshipContent||"utility-network-associations"===t.type&&!!e.utilityNetworkAssociationsContent},this._evaluateExpressionAttributesThrottled=m(this._evaluateExpressionAttributes,()=>this.notifyChange("waitingForContent"),D,this),this.addHandles([u(()=>[this._effectivePopupTemplate,this.abilities.attachmentsContent,this.abilities.chartAnimation,this.abilities.customContent,this.abilities.expressionContent,this.abilities.fieldsContent,this.abilities.mediaContent,this.abilities.relationshipContent,this.abilities.textContent,this.abilities.utilityNetworkAssociationsContent,this.graphic,this.timeZone],()=>this._graphicChangedThrottled(),d),f(()=>{if(!this._graphicChangedTask?.finished||null==this._graphicChangedTask.value)return null;const t=this._graphicChangedTask.value,e=t?.expressionInfos?.dependencies;return[t,e?.has("view-scale")?this.view?.scale:null,e?.has("view-time-extent")?this.view?.timeExtent?.start:null,e?.has("view-time-extent")?this.view?.timeExtent?.end:null]},([t])=>this._evaluateExpressionAttributesThrottled(t))])}initialize(){this.addHandles([this._graphicChangedThrottled,this._evaluateExpressionAttributesThrottled])}destroy(){this._clear(),this._graphicChangedTask=l(this._graphicChangedTask),this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._error=null,this.graphic=null,this.relatedInfos.clear()}static{this.interceptor=new i(C,E)}get _effectivePopupTemplate(){return null!=this.graphic?this.graphic.getEffectivePopupTemplate(this.defaultPopupTemplateEnabled):null}get _fieldInfoMap(){return w(F(this._effectivePopupTemplate),this._layer)}get _layer(){const{graphic:t}=this;return t?v(t):void 0}get isFeatureFromTable(){return this._layer?.isTable||!1}get state(){return this.graphic?this._error?"error":this.waitingForContent?"loading":"ready":"disabled"}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(t){this._override("spatialReference",t)}get timeZone(){return this.view?.timeZone??B}set timeZone(t){this._overrideIfSome("timeZone",t)}get map(){return this.view?.map||null}set map(t){this._override("map",t)}get waitingForContent(){const{_graphicChangedThrottled:t,_evaluateExpressionAttributesThrottled:e,_graphicChangedTask:i,_evaluateExpressionAttributesTask:r}=this;return t.hasPendingUpdates()||e.hasPendingUpdates()||null!=i&&!i.finished||null!=r&&!r.finished}async updateGeometry(){const{graphic:t,spatialReference:e,_layer:i}=this;await(i?.load());const r=i?.objectIdField;if(!r||!t||!i)return;const s=t?.attributes?.[r];if(null==s)return;const o=[s];if(!t.geometry){const r=await k({layer:i,graphic:t,outFields:[],objectIds:o,returnGeometry:!0,spatialReference:e}),s=r?.geometry;s&&(t.geometry=s)}}_clear(){this._set("heading",""),this._set("content",null),this._set("formattedAttributes",null),this._set("expressionAttributes",null)}_graphicChanged(){this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._graphicChangedTask=l(this._graphicChangedTask),this._graphicChangedTask=o(async t=>{this._error=null,this._clear();const{graphic:e}=this;try{if(!e)return null;const{_layer:i,_effectivePopupTemplate:r}=this,s=this.spatialReference;await j({graphic:e,popupTemplate:r,layer:i,spatialReference:s},{signal:t});const[{value:o},{value:a}]=await p([this._getContent(),this._getTitle()]),[,{value:n}]=await p([this._checkForRelatedFeatures({signal:t}),I(r?.expressionInfos,e)]);return{expressionInfos:n,content:o,heading:a}}catch(i){throw h(i)||(this._error=i,n.getLogger(this).error("error","The popupTemplate could not be displayed for this feature.",{error:i,graphic:e,popupTemplate:this._effectivePopupTemplate})),i}})}_compileContentElement(t){return"relationship"===t.type?P(this._layer)?t:void 0:"utility-network-associations"===t.type?R(this._layer)?t:void 0:t}_compileContent(t){if(this.graphic)return Array.isArray(t)?t.filter(this._isAllowedContentType).map(t=>this._compileContentElement(t)).filter(s):"string"==typeof t?new T({text:t}).text:t}_compileLastEditInfo(){const{_effectivePopupTemplate:t,_layer:e,graphic:i,timeZone:r}=this;if(!t)return;const{lastEditInfoEnabled:s}=t,o=e?.editFieldsInfo;return s&&o?O(o,i?.attributes,r,e):void 0}_compileHeading(t){const{_fieldInfoMap:e,_layer:i,graphic:r,expressionAttributes:s}=this,o=r?.attributes??{},a=this.formattedAttributes?.global??{};return M({attributes:o,fieldInfoMap:e,globalAttributes:a,expressionAttributes:s,layer:i,text:t})}async _getTitle(){const{_effectivePopupTemplate:t,graphic:e}=this;return e?Z({type:"title",value:t?.title,event:{graphic:e}}):null}async _getContent(){const{_effectivePopupTemplate:t,graphic:e}=this;return e?Z({type:"content",value:t?.content,event:{graphic:e}}):null}_evaluateExpressionAttributes({heading:t,content:e,expressionInfos:i}){this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._evaluateExpressionAttributesTask=o(async r=>{const{graphic:s,map:o,view:a,spatialReference:l,location:p}=this;try{if(!s)return;let n;if(null!=i){const t=[];for(const[e,n]of i.expressions.entries())null!=n?t.push(n.evaluate({graphic:s,interceptor:Q.interceptor,location:p,map:o,options:{signal:r},spatialReference:l,view:a}).then(t=>[e,"string"==typeof t?A(t):t]).catch(()=>[e,void 0])):t.push(Promise.resolve([e,void 0]));n=Object.fromEntries(await Promise.all(t)),c(r)}this._set("expressionAttributes",n??null),this._graphicExpressionAttributes={...s.attributes,...n},this._set("formattedAttributes",this._createFormattedAttributes(e)),this._set("heading",this._compileHeading(t)),this._set("lastEditInfo",this._compileLastEditInfo()||null),this._set("content",this._compileContent(e)||null)}catch(u){h(u)||(this._error=u,n.getLogger(this).error("error","The popupTemplate could not be displayed for this feature.",{error:u,graphic:s,popupTemplate:this._effectivePopupTemplate}))}})}_createMediaFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:i}){const{_effectivePopupTemplate:r,graphic:s,relatedInfos:o,_layer:a,_fieldInfoMap:n,_graphicExpressionAttributes:l,timeZone:p}=this;i.content[e]=U({attributes:{...l,...t.attributes},fieldInfoMap:n,fieldInfos:r?.fieldInfos,graphic:s,layer:a,relatedInfos:o,timeZone:p})}_createFieldsFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:i}){if(t.fieldInfos){const{graphic:r,relatedInfos:s,_layer:o,_fieldInfoMap:a,_graphicExpressionAttributes:n,timeZone:l}=this;i.content[e]=U({attributes:{...n,...t.attributes},fieldInfoMap:a,fieldInfos:t.fieldInfos,graphic:r,isContentFieldInfos:!0,layer:o,relatedInfos:s,timeZone:l})}}_createFormattedAttributes(t){const{_effectivePopupTemplate:e,graphic:i,relatedInfos:r,_layer:s,_fieldInfoMap:o,_graphicExpressionAttributes:a,timeZone:n}=this,l=e?.fieldInfos,p={global:U({attributes:a,fieldInfoMap:o,fieldInfos:l,graphic:i,layer:s,relatedInfos:r,timeZone:n}),content:[]};return Array.isArray(t)&&t.forEach((t,e)=>{"fields"===t.type&&this._createFieldsFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:p}),"media"===t.type&&this._createMediaFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:p})}),p}_checkForRelatedFeatures(t){const{graphic:e,_effectivePopupTemplate:i}=this;return this._queryRelatedInfos(e,F(i),t)}async _queryRelatedInfos(t,e,i){const{relatedInfos:r,_layer:s}=this;r.clear();const o=null!=s?.associatedLayer?await(s?.associatedLayer.load(i)):s;if(!o||!t)return;const a=e.filter(t=>!!t.fieldName&&L(t.fieldName));if(!a?.length)return;e.forEach(t=>this._configureRelatedInfo(t,o));const n=await N({relatedInfos:r,layer:o},i);Object.keys(n).forEach(t=>{const e=r.get(t.toString()),i=n[t]?.value;e&&i&&(e.layerInfo=i.data)});const l=await S({graphic:t,relatedInfos:r,layer:o},i);Object.keys(l).forEach(t=>{H(l[t]?.value,r.get(t.toString()))})}_configureRelatedInfo(t,e){const{relatedInfos:i}=this,r=G(t.fieldName||"");if(!r)return;const{layerId:s,fieldName:o}=r;if(!s)return;const a=i.get(s.toString())||q(s,e);a&&(z({relatedInfo:a,fieldName:o,fieldInfo:t}),this.relatedInfos.set(s,a))}};t([g()],J.prototype,"_error",void 0),t([g()],J.prototype,"_graphicChangedTask",void 0),t([g()],J.prototype,"_evaluateExpressionAttributesTask",void 0),t([g({readOnly:!0})],J.prototype,"_effectivePopupTemplate",null),t([g({readOnly:!0})],J.prototype,"_fieldInfoMap",null),t([g({readOnly:!0})],J.prototype,"_layer",null),t([g({type:x})],J.prototype,"abilities",void 0),t([g({readOnly:!0})],J.prototype,"content",void 0),t([g()],J.prototype,"description",void 0),t([g({type:Boolean})],J.prototype,"defaultPopupTemplateEnabled",void 0),t([g({readOnly:!0})],J.prototype,"expressionAttributes",void 0),t([g({readOnly:!0})],J.prototype,"isFeatureFromTable",null),t([g({readOnly:!0})],J.prototype,"state",null),t([g({readOnly:!0})],J.prototype,"formattedAttributes",void 0),t([g({type:e})],J.prototype,"graphic",void 0),t([g({readOnly:!0})],J.prototype,"lastEditInfo",void 0),t([g({type:_})],J.prototype,"location",void 0),t([g({readOnly:!0})],J.prototype,"relatedInfos",void 0),t([g({type:b})],J.prototype,"spatialReference",null),t([g()],J.prototype,"timeZone",null),t([g({readOnly:!0})],J.prototype,"heading",void 0),t([g()],J.prototype,"map",null),t([g({readOnly:!0})],J.prototype,"waitingForContent",null),t([g()],J.prototype,"view",void 0),J=Q=t([y("esri.popup.Feature")],J);const K=J;export{K as default};
2
+ import{__decorate as t}from"tslib";import e from"../Graphic.js";import{FeatureSetQueryInterceptor as i}from"../arcade/featureset/support/FeatureSetQueryInterceptor.js";import r from"../core/Accessor.js";import{isSome as s}from"../core/arrayUtils.js";import{createTask as o}from"../core/asyncUtils.js";import{IdentifiableMixin as a}from"../core/Identifiable.js";import n from"../core/Logger.js";import{abortMaybe as l}from"../core/maybe.js";import{eachAlways as p,isAbortError as h,throwIfAborted as c}from"../core/promiseUtils.js";import{watch as u,initial as d,when as f}from"../core/reactiveUtils.js";import{throttle as m}from"../core/throttle.js";import{property as g,subclass as y}from"../core/accessorSupport/decorators.js";import _ from"../geometry/Point.js";import b from"../geometry/SpatialReference.js";import{getGraphicLayer as v}from"../graphic/graphicOriginUtils.js";import T from"./content/TextContent.js";import{compileExpressionInfos as I,formatArcadeValue as A}from"./support/arcadeFeatureUtils.js";import x from"./support/FeatureAbilities.js";import{preLayerQueryCallback as C,preRequestCallback as E,createFieldInfoMap as w,getAllFieldInfos as F,querySourceLayer as k,queryUpdatedFeature as j,isRelatableFeatureSupportedLayer as P,isAssociatedFeatureSupportedLayer as R,formatEditInfo as O,substituteFieldsInLinksAndAttributes as M,graphicCallback as Z,formatAttributes as U,isRelatedField as L}from"./support/featureUtils.js";import{queryLayerInfos as N,queryRelatedFeatures as S,setRelatedFeatures as H,getRelatedFieldInfo as G,createRelatedInfo as q,updateRelatedInfo as z}from"./support/relatedFeatureUtils.js";import{system as B}from"../time/constants.js";var Q;const D=1;let J=class extends(a(r)){static{Q=this}constructor(t){super(t),this._error=null,this._graphicChangedTask=null,this._evaluateExpressionAttributesTask=null,this._graphicExpressionAttributes=null,this.abilities=new x,this.content=null,this.description=null,this.defaultPopupTemplateEnabled=!1,this.expressionAttributes=null,this.formattedAttributes=null,this.graphic=null,this.lastEditInfo=null,this.location=null,this.relatedInfos=new Map,this.heading="",this.view=null,this._graphicChangedThrottled=m(this._graphicChanged,()=>this.notifyChange("waitingForContent"),D,this),this._isAllowedContentType=t=>{const{abilities:e}=this;return"attachments"===t.type&&!!e.attachmentsContent||"custom"===t.type&&!!e.customContent||"fields"===t.type&&!!e.fieldsContent||"media"===t.type&&!!e.mediaContent||"text"===t.type&&!!e.textContent||"expression"===t.type&&!!e.expressionContent||"relationship"===t.type&&!!e.relationshipContent||"utility-network-associations"===t.type&&!!e.utilityNetworkAssociationsContent},this._evaluateExpressionAttributesThrottled=m(this._evaluateExpressionAttributes,()=>this.notifyChange("waitingForContent"),D,this),this.addHandles([u(()=>[this._effectivePopupTemplate,this.abilities.attachmentsContent,this.abilities.chartAnimation,this.abilities.customContent,this.abilities.expressionContent,this.abilities.fieldsContent,this.abilities.mediaContent,this.abilities.relationshipContent,this.abilities.textContent,this.abilities.utilityNetworkAssociationsContent,this.graphic,this.timeZone],()=>this._graphicChangedThrottled(),d),f(()=>{if(!this._graphicChangedTask?.finished||null==this._graphicChangedTask.value)return null;const t=this._graphicChangedTask.value,e=t?.expressionInfos?.dependencies;return[t,e?.has("view-scale")?this.view?.scale:null,e?.has("view-time-extent")?this.view?.timeExtent?.start:null,e?.has("view-time-extent")?this.view?.timeExtent?.end:null]},([t])=>this._evaluateExpressionAttributesThrottled(t))])}initialize(){this.addHandles([this._graphicChangedThrottled,this._evaluateExpressionAttributesThrottled])}destroy(){this._clear(),this._graphicChangedTask=l(this._graphicChangedTask),this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._error=null,this.graphic=null,this.relatedInfos.clear()}static{this.interceptor=new i(C,E)}get _effectivePopupTemplate(){return null!=this.graphic?this.graphic.getEffectivePopupTemplate(this.defaultPopupTemplateEnabled):null}get _fieldInfoMap(){return w(F(this._effectivePopupTemplate),this._layer)}get _layer(){const{graphic:t}=this;return t?v(t):void 0}get isFeatureFromTable(){return this._layer?.isTable||!1}get state(){return this.graphic?this._error?"error":this.waitingForContent?"loading":"ready":"disabled"}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(t){this._override("spatialReference",t)}get timeZone(){return this.view?.timeZone??B}set timeZone(t){this._overrideIfSome("timeZone",t)}get map(){return this.view?.map||null}set map(t){this._override("map",t)}get waitingForContent(){const{_graphicChangedThrottled:t,_evaluateExpressionAttributesThrottled:e,_graphicChangedTask:i,_evaluateExpressionAttributesTask:r}=this;return t.hasPendingUpdates()||e.hasPendingUpdates()||null!=i&&!i.finished||null!=r&&!r.finished}async updateGeometry(){const{graphic:t,spatialReference:e,_layer:i}=this;await(i?.load());const r=i?.objectIdField;if(!r||!t||!i)return;const s=t?.attributes?.[r];if(null==s)return;const o=[s],a=await k({layer:i,graphic:t,outFields:[],objectIds:o,returnGeometry:!0,spatialReference:e}),n=a?.geometry;n&&(t.geometry=n)}_clear(){this._set("heading",""),this._set("content",null),this._set("formattedAttributes",null),this._set("expressionAttributes",null)}_graphicChanged(){this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._graphicChangedTask=l(this._graphicChangedTask),this._graphicChangedTask=o(async t=>{this._error=null,this._clear();const{graphic:e}=this;try{if(!e)return null;const{_layer:i,_effectivePopupTemplate:r}=this,s=this.spatialReference;await j({graphic:e,popupTemplate:r,layer:i,spatialReference:s},{signal:t});const[{value:o},{value:a}]=await p([this._getContent(),this._getTitle()]),[,{value:n}]=await p([this._checkForRelatedFeatures({signal:t}),I(r?.expressionInfos,e)]);return{expressionInfos:n,content:o,heading:a}}catch(i){throw h(i)||(this._error=i,n.getLogger(this).error("error","The popupTemplate could not be displayed for this feature.",{error:i,graphic:e,popupTemplate:this._effectivePopupTemplate})),i}})}_compileContentElement(t){return"relationship"===t.type?P(this._layer)?t:void 0:"utility-network-associations"===t.type?R(this._layer)?t:void 0:t}_compileContent(t){if(this.graphic)return Array.isArray(t)?t.filter(this._isAllowedContentType).map(t=>this._compileContentElement(t)).filter(s):"string"==typeof t?new T({text:t}).text:t}_compileLastEditInfo(){const{_effectivePopupTemplate:t,_layer:e,graphic:i,timeZone:r}=this;if(!t)return;const{lastEditInfoEnabled:s}=t,o=e?.editFieldsInfo;return s&&o?O(o,i?.attributes,r,e):void 0}_compileHeading(t){const{_fieldInfoMap:e,_layer:i,graphic:r,expressionAttributes:s}=this,o=r?.attributes??{},a=this.formattedAttributes?.global??{};return M({attributes:o,fieldInfoMap:e,globalAttributes:a,expressionAttributes:s,layer:i,text:t})}async _getTitle(){const{_effectivePopupTemplate:t,graphic:e}=this;return e?Z({type:"title",value:t?.title,event:{graphic:e}}):null}async _getContent(){const{_effectivePopupTemplate:t,graphic:e}=this;return e?Z({type:"content",value:t?.content,event:{graphic:e}}):null}_evaluateExpressionAttributes({heading:t,content:e,expressionInfos:i}){this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._evaluateExpressionAttributesTask=o(async r=>{const{graphic:s,map:o,view:a,spatialReference:l,location:p}=this;try{if(!s)return;let n;if(null!=i){const t=[];for(const[e,n]of i.expressions.entries())null!=n?t.push(n.evaluate({graphic:s,interceptor:Q.interceptor,location:p,map:o,options:{signal:r},spatialReference:l,view:a}).then(t=>[e,"string"==typeof t?A(t):t]).catch(()=>[e,void 0])):t.push(Promise.resolve([e,void 0]));n=Object.fromEntries(await Promise.all(t)),c(r)}this._set("expressionAttributes",n??null),this._graphicExpressionAttributes={...s.attributes,...n},this._set("formattedAttributes",this._createFormattedAttributes(e)),this._set("heading",this._compileHeading(t)),this._set("lastEditInfo",this._compileLastEditInfo()||null),this._set("content",this._compileContent(e)||null)}catch(u){h(u)||(this._error=u,n.getLogger(this).error("error","The popupTemplate could not be displayed for this feature.",{error:u,graphic:s,popupTemplate:this._effectivePopupTemplate}))}})}_createMediaFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:i}){const{_effectivePopupTemplate:r,graphic:s,relatedInfos:o,_layer:a,_fieldInfoMap:n,_graphicExpressionAttributes:l,timeZone:p}=this;i.content[e]=U({attributes:{...l,...t.attributes},fieldInfoMap:n,fieldInfos:r?.fieldInfos,graphic:s,layer:a,relatedInfos:o,timeZone:p})}_createFieldsFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:i}){if(t.fieldInfos){const{graphic:r,relatedInfos:s,_layer:o,_fieldInfoMap:a,_graphicExpressionAttributes:n,timeZone:l}=this;i.content[e]=U({attributes:{...n,...t.attributes},fieldInfoMap:a,fieldInfos:t.fieldInfos,graphic:r,isContentFieldInfos:!0,layer:o,relatedInfos:s,timeZone:l})}}_createFormattedAttributes(t){const{_effectivePopupTemplate:e,graphic:i,relatedInfos:r,_layer:s,_fieldInfoMap:o,_graphicExpressionAttributes:a,timeZone:n}=this,l=e?.fieldInfos,p={global:U({attributes:a,fieldInfoMap:o,fieldInfos:l,graphic:i,layer:s,relatedInfos:r,timeZone:n}),content:[]};return Array.isArray(t)&&t.forEach((t,e)=>{"fields"===t.type&&this._createFieldsFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:p}),"media"===t.type&&this._createMediaFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:p})}),p}_checkForRelatedFeatures(t){const{graphic:e,_effectivePopupTemplate:i}=this;return this._queryRelatedInfos(e,F(i),t)}async _queryRelatedInfos(t,e,i){const{relatedInfos:r,_layer:s}=this;r.clear();const o=null!=s?.associatedLayer?await(s?.associatedLayer.load(i)):s;if(!o||!t)return;const a=e.filter(t=>!!t.fieldName&&L(t.fieldName));if(!a?.length)return;e.forEach(t=>this._configureRelatedInfo(t,o));const n=await N({relatedInfos:r,layer:o},i);Object.keys(n).forEach(t=>{const e=r.get(t.toString()),i=n[t]?.value;e&&i&&(e.layerInfo=i.data)});const l=await S({graphic:t,relatedInfos:r,layer:o},i);Object.keys(l).forEach(t=>{H(l[t]?.value,r.get(t.toString()))})}_configureRelatedInfo(t,e){const{relatedInfos:i}=this,r=G(t.fieldName||"");if(!r)return;const{layerId:s,fieldName:o}=r;if(!s)return;const a=i.get(s.toString())||q(s,e);a&&(z({relatedInfo:a,fieldName:o,fieldInfo:t}),this.relatedInfos.set(s,a))}};t([g()],J.prototype,"_error",void 0),t([g()],J.prototype,"_graphicChangedTask",void 0),t([g()],J.prototype,"_evaluateExpressionAttributesTask",void 0),t([g({readOnly:!0})],J.prototype,"_effectivePopupTemplate",null),t([g({readOnly:!0})],J.prototype,"_fieldInfoMap",null),t([g({readOnly:!0})],J.prototype,"_layer",null),t([g({type:x})],J.prototype,"abilities",void 0),t([g({readOnly:!0})],J.prototype,"content",void 0),t([g()],J.prototype,"description",void 0),t([g({type:Boolean})],J.prototype,"defaultPopupTemplateEnabled",void 0),t([g({readOnly:!0})],J.prototype,"expressionAttributes",void 0),t([g({readOnly:!0})],J.prototype,"isFeatureFromTable",null),t([g({readOnly:!0})],J.prototype,"state",null),t([g({readOnly:!0})],J.prototype,"formattedAttributes",void 0),t([g({type:e})],J.prototype,"graphic",void 0),t([g({readOnly:!0})],J.prototype,"lastEditInfo",void 0),t([g({type:_})],J.prototype,"location",void 0),t([g({readOnly:!0})],J.prototype,"relatedInfos",void 0),t([g({type:b})],J.prototype,"spatialReference",null),t([g()],J.prototype,"timeZone",null),t([g({readOnly:!0})],J.prototype,"heading",void 0),t([g()],J.prototype,"map",null),t([g({readOnly:!0})],J.prototype,"waitingForContent",null),t([g()],J.prototype,"view",void 0),J=Q=t([y("esri.popup.Feature")],J);const K=J;export{K as default};