@arcgis/core 5.2.0-next.120 → 5.2.0-next.121

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 (348) hide show
  1. package/arcade/containerUtils.js +1 -1
  2. package/arcade/functions/feature.js +1 -1
  3. package/arcade/functions/featuresetstring.js +1 -1
  4. package/arcade/languageUtils.js +1 -1
  5. package/arcgisGlobal.d.ts +7 -0
  6. package/assets/components/assets/icon/addCellAbove16.json +1 -0
  7. package/assets/components/assets/icon/addCellAbove24.json +1 -0
  8. package/assets/components/assets/icon/addCellAbove32.json +1 -0
  9. package/assets/components/assets/icon/addCellBelow16.json +1 -0
  10. package/assets/components/assets/icon/addCellBelow24.json +1 -0
  11. package/assets/components/assets/icon/addCellBelow32.json +1 -0
  12. package/assets/components/assets/icon/linkedChart16.json +1 -0
  13. package/assets/components/assets/icon/linkedChart24.json +1 -0
  14. package/assets/components/assets/icon/linkedChart32.json +1 -0
  15. package/assets/components/assets/icon/polygonFromFeature16.json +1 -0
  16. package/assets/components/assets/icon/polygonFromFeature24.json +1 -0
  17. package/assets/components/assets/icon/polygonFromFeature32.json +1 -0
  18. package/assets/esri/core/workers/RemoteClient.js +1 -1
  19. package/assets/esri/core/workers/chunks/015cb790262a59857c5f.js +1 -0
  20. package/assets/esri/core/workers/chunks/025da54eef112d7e8f66.js +1 -0
  21. package/assets/esri/core/workers/chunks/033debcbf6b3683dc4fe.js +2 -0
  22. package/assets/esri/core/workers/chunks/064445e6f9512817ac87.js +2 -0
  23. package/assets/esri/core/workers/chunks/{304462b049116f59accc.js → 09676cfa99b90fe0cc63.js} +1 -1
  24. package/assets/esri/core/workers/chunks/0aadee0437fa061e4ff5.js +1 -0
  25. package/assets/esri/core/workers/chunks/{b0058619e0363002ad86.js → 0e9f54d7f158195bd203.js} +1 -1
  26. package/assets/esri/core/workers/chunks/1086f190f94c715bbfe4.js +1 -0
  27. package/assets/esri/core/workers/chunks/1846296be959e28c42bb.js +1 -0
  28. package/assets/esri/core/workers/chunks/{ea9e770efc85594e4dd2.js → 216d8cb86548e92a8196.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{d629708bf23da24ee523.js → 298f234f11a10c5120a2.js} +1 -1
  30. package/assets/esri/core/workers/chunks/29ae19206bbeb480be0f.js +1 -0
  31. package/assets/esri/core/workers/chunks/{dc1944a7601b518a9c48.js → 2ca49fb4590cc34a02bd.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{f890359d972cce54459e.js → 2f829321bfbd3bacd64f.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{7232fc11b23777b6be94.js → 369012c032ea6882607c.js} +1 -1
  34. package/assets/esri/core/workers/chunks/39c5e0f6262f69a62c66.js +1 -0
  35. package/assets/esri/core/workers/chunks/{9f760dc4492a03e0504c.js → 45d87af48a21644590c2.js} +1 -1
  36. package/assets/esri/core/workers/chunks/463d69f596d1d34ef275.js +2 -0
  37. package/assets/esri/core/workers/chunks/49affbed22e201f7c32b.js +1 -0
  38. package/assets/esri/core/workers/chunks/4adad3312caa24af98ac.js +1 -0
  39. package/assets/esri/core/workers/chunks/{8f0ecf4d06ec7b67d4ed.js → 52744dfd430cd0c0edfb.js} +1 -1
  40. package/assets/esri/core/workers/chunks/58a17fb3c0dd07c63d57.js +2 -0
  41. package/assets/esri/core/workers/chunks/5993db944b9e7825e0bc.js +1 -0
  42. package/assets/esri/core/workers/chunks/{090c9c2dbf92f2cac0b8.js → 770ca70d363184e39d60.js} +1 -1
  43. package/assets/esri/core/workers/chunks/83c7c4218bc6ba2f16ee.js +1 -0
  44. package/assets/esri/core/workers/chunks/{cfd8317ecd2e63af7c40.js → 8a103b6e9534516421e2.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{49e8ff5ed079a9e3be4b.js → 91a51d959ee5c6123c46.js} +1 -1
  46. package/assets/esri/core/workers/chunks/92f35b2c3c5f13778308.js +1 -0
  47. package/assets/esri/core/workers/chunks/97cd4145c016cf379120.js +1 -0
  48. package/assets/esri/core/workers/chunks/99ebc99e8d1bca105b5e.js +1 -0
  49. package/assets/esri/core/workers/chunks/{e18b8646c7378213b618.js → 9b3813e39992b1b99941.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{32fc7d1db4b311f6b880.js → 9e5b30b907102bc0c201.js} +1 -1
  51. package/assets/esri/core/workers/chunks/a005efcde3ca9def4e6b.js +1 -0
  52. package/assets/esri/core/workers/chunks/a3c1a5a5c5cbf27b376d.js +1 -0
  53. package/assets/esri/core/workers/chunks/a70c59129ea808857d07.js +1 -0
  54. package/assets/esri/core/workers/chunks/b5b30c8447a0f967fa79.js +1 -0
  55. package/assets/esri/core/workers/chunks/bb5ed2a796a45c41b0b4.js +1 -0
  56. package/assets/esri/core/workers/chunks/bcb06a0643b4c83535ee.js +1 -0
  57. package/assets/esri/core/workers/chunks/{066b7f6866d602f963e0.js → c3008b20cb5fd38bd900.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{22e85819e23202a8ba90.js → c39ebd8d469f1e8bb61e.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{7f2ac03efaa4a4898ba2.js → c3b96d1d43afccd23e45.js} +2 -2
  60. package/assets/esri/core/workers/chunks/{cb983f65995e57fff7a1.js → c44cbe04efddbbbaec13.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{8ce14dd209462f88b163.js → c70a32ac0fa49f4493ca.js} +1 -1
  62. package/assets/esri/core/workers/chunks/ce08e3369641da0d7a27.js +2 -0
  63. package/assets/esri/core/workers/chunks/d1b5be1aeab16d36d4b1.js +1 -0
  64. package/assets/esri/core/workers/chunks/{da6583e8d88441a1c02a.js → d38252956c3d9e2168f7.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{1742dbc6a827cfda471b.js → d3d48401462ef3bf0ad9.js} +1 -1
  66. package/assets/esri/core/workers/chunks/d9b761104ab6e4acaf91.js +1 -0
  67. package/assets/esri/core/workers/chunks/{723478607badcde5706b.js → d9d5f50af047ee7af129.js} +87 -86
  68. package/assets/esri/core/workers/chunks/{354912041363502c6a89.js → da161f8cbe1cfc5fcf7c.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{862e1acd80c4e43831dc.js → dc923e50958b68a50014.js} +1 -1
  70. package/assets/esri/core/workers/chunks/e86f83a6514a35255f64.js +1 -0
  71. package/assets/esri/core/workers/chunks/ea49721fdd2172d1c799.js +1 -0
  72. package/assets/esri/core/workers/chunks/{98a5327fd96d9542b39f.js → f90cad9f007a11154c0d.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{f18ee2eaa96d103627a6.js → fa3f824c874f29d24953.js} +1 -1
  74. package/assets/esri/core/workers/chunks/fbb390c0d92d1536fce3.js +1 -0
  75. package/assets/esri/core/workers/chunks/fbc5f275c4e5e6bfffaa.js +1 -0
  76. package/assets/esri/core/workers/chunks/{6ab7bb3834841834f839.js → fd5e61cb6f936eadcfe3.js} +1 -1
  77. package/assets/esri/themes/dark/main.css +1 -1
  78. package/assets/esri/themes/light/main.css +1 -1
  79. package/assets/esri/themes/light/view.css +1 -1
  80. package/basemaps/BasemapCollection.d.ts +148 -0
  81. package/basemaps/BasemapCollection.js +2 -0
  82. package/basemaps/BasemapsSource.d.ts +39 -0
  83. package/basemaps/BasemapsSource.js +2 -0
  84. package/basemaps/LocalBasemapsSource.d.ts +55 -0
  85. package/basemaps/LocalBasemapsSource.js +2 -0
  86. package/basemaps/PortalBasemapsSource.d.ts +98 -0
  87. package/basemaps/PortalBasemapsSource.js +2 -0
  88. package/basemaps/support/BasemapItem.d.ts +74 -0
  89. package/basemaps/support/BasemapItem.js +2 -0
  90. package/basemaps/support/basemapCompatibilityUtils.js +2 -0
  91. package/basemaps/types.d.ts +42 -0
  92. package/chunks/CheckerBoard.glsl.js +1 -1
  93. package/chunks/ColorMaterial.glsl.js +1 -1
  94. package/chunks/Component.glsl.js +11 -11
  95. package/chunks/DeepSky.glsl.js +1 -1
  96. package/chunks/DefaultMaterial.glsl.js +4 -4
  97. package/chunks/EdgeShader.glsl.js +1 -1
  98. package/chunks/FocusArea.glsl.js +1 -1
  99. package/chunks/GaussianSplat.glsl.js +9 -9
  100. package/chunks/HUDMaterial.glsl.js +1 -1
  101. package/chunks/ImageMaterial.glsl.js +1 -1
  102. package/chunks/LineCallout.glsl.js +1 -1
  103. package/chunks/LineMarker.glsl.js +97 -89
  104. package/chunks/NativeLine.glsl.js +1 -1
  105. package/chunks/Path.glsl.js +8 -7
  106. package/chunks/Pattern.glsl.js +1 -1
  107. package/chunks/PointRenderer.glsl.js +1 -1
  108. package/chunks/RealisticTree.glsl.js +4 -4
  109. package/chunks/RibbonLine.glsl.js +58 -56
  110. package/chunks/ShadowCastAccumulate.glsl.js +3 -3
  111. package/chunks/ShadowHighlight.glsl.js +4 -4
  112. package/chunks/ShadowHighlightBuffer.glsl.js +3 -3
  113. package/chunks/Terrain.glsl.js +12 -14
  114. package/chunks/Viewshed.glsl.js +1 -1
  115. package/chunks/Water.glsl.js +3 -3
  116. package/chunks/languageUtils.js +1 -1
  117. package/config.js +1 -1
  118. package/core/Accessor.d.ts +10 -0
  119. package/kernel.js +1 -1
  120. package/layers/CSVLayer.js +1 -1
  121. package/layers/GeoJSONLayer.d.ts +1 -1
  122. package/layers/GeoJSONLayer.js +1 -1
  123. package/layers/OGCFeatureLayer.js +1 -1
  124. package/layers/StreamLayer.js +1 -1
  125. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  126. package/layers/mixins/FeatureLayerBase.js +1 -1
  127. package/layers/support/LabelClass.d.ts +13 -4
  128. package/layers/support/LabelClass.js +1 -1
  129. package/layers/support/commonProperties.js +1 -1
  130. package/legend/ActiveLayerInfo.d.ts +130 -0
  131. package/legend/ActiveLayerInfo.js +2 -0
  132. package/legend/LegendContent.d.ts +118 -0
  133. package/legend/LegendContent.js +2 -0
  134. package/legend/support/clusterUtils.js +2 -0
  135. package/legend/support/colorRampUtils.js +2 -0
  136. package/legend/support/heatmapRampUtils.js +2 -0
  137. package/legend/support/relationshipRampUtils.js +2 -0
  138. package/legend/support/sizeRampUtils.js +2 -0
  139. package/legend/support/utils.js +2 -0
  140. package/legend/types.d.ts +403 -0
  141. package/libs/i3s/I3SModule.js +1 -1
  142. package/package.json +5 -5
  143. package/support/revision.js +1 -1
  144. package/support/userTypeGuards/isBasemapsSource.js +2 -0
  145. package/symbols/cim/CIMOperators.js +1 -1
  146. package/symbols/cim/callouts/effects/BackgroundCallout.js +2 -0
  147. package/symbols/cim/callouts/effects/BalloonCallout.js +2 -0
  148. package/symbols/cim/callouts/effects/PointSymbolCallout.js +2 -0
  149. package/symbols/cim/callouts/effects/SimpleLineCallout.js +2 -0
  150. package/symbols/cim/callouts/effects/calloutUtils.js +2 -0
  151. package/symbols/cim/cimAnalyzer.js +1 -1
  152. package/symbols/cim/utils.js +1 -1
  153. package/symbols/support/typeUtils.js +1 -1
  154. package/views/2d/LabelManager.js +1 -1
  155. package/views/2d/engine/AFeatureContainer.js +1 -1
  156. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  157. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  158. package/views/2d/engine/webgl/FeatureTile.js +1 -1
  159. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  160. package/views/2d/engine/webgl/TileCpuState.js +1 -1
  161. package/views/2d/engine/webgl/TileGpuState.js +1 -1
  162. package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
  163. package/views/2d/engine/webgl/collisions/LabelStore.js +2 -0
  164. package/views/2d/engine/webgl/cpuMapped/CpuBuffer.js +1 -1
  165. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
  166. package/views/2d/engine/webgl/cpuMapped/GpuMeshState.js +1 -1
  167. package/views/2d/engine/webgl/definitions.js +1 -1
  168. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  169. package/views/2d/engine/webgl/mesh/MultiTileMeshData.js +1 -1
  170. package/views/2d/engine/webgl/mesh/factories/CalloutMeshWriterCoordinator.js +2 -0
  171. package/views/2d/engine/webgl/mesh/factories/FeatureMeshFactory.js +1 -1
  172. package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +2 -0
  173. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  174. package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
  175. package/views/2d/engine/webgl/shaderGraph/techniques/FeatureInstanceStore.js +1 -1
  176. package/views/2d/engine/webgl/shaderGraph/techniques/GraphicInstanceStore.js +1 -1
  177. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueInstance.js +1 -1
  178. package/views/2d/engine/webgl/shaderGraph/techniques/TestDisplayObject.js +1 -1
  179. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +1 -1
  180. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  181. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  182. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  183. package/views/2d/engine/webgl/shaderGraph/techniques/createGraphicSymbolMeshSchemas.js +1 -1
  184. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  185. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  186. package/views/2d/engine/webgl/shaderGraph/techniques/fill/AFillMeshWriter.js +1 -1
  187. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  188. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
  189. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  190. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  191. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  192. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  193. package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
  194. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  195. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  196. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +2 -0
  197. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  198. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterReferences.js +2 -0
  199. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
  200. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/dataViewUtils.js +1 -1
  201. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
  202. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  203. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  204. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  205. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  206. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  207. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  208. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  209. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  210. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  211. package/views/2d/engine/webgl/util/AnnotationMatcher.js +1 -1
  212. package/views/2d/engine/webgl/util/DimensionMatcher.js +1 -1
  213. package/views/2d/engine/webgl/util/IntervalMatcher.js +1 -1
  214. package/views/2d/engine/webgl/util/LabelMatcher.js +1 -1
  215. package/views/2d/engine/webgl/util/MapMatcher.js +1 -1
  216. package/views/2d/engine/webgl/util/Matcher.js +1 -1
  217. package/views/2d/engine/webgl/util/MatcherContext.js +1 -1
  218. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  219. package/views/2d/layers/MediaLayerView2D.js +1 -1
  220. package/views/2d/layers/TileLayerView2D.js +1 -1
  221. package/views/2d/layers/features/FeatureContainer.js +1 -1
  222. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  223. package/views/2d/layers/features/RenderState.js +1 -1
  224. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  225. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  226. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  227. package/views/2d/layers/graphics/AGraphicContainer.js +1 -1
  228. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  229. package/views/2d/layers/support/annodime/MatcherGeometryOverride.js +1 -1
  230. package/views/2d/layers/support/annodime/PrivateMatcherGeometryOverrideEffect.js +1 -1
  231. package/views/2d/layers/support/annodime/annotationGraphic.js +1 -1
  232. package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
  233. package/views/2d/layers/support/annodime/debugUtils.js +1 -1
  234. package/views/2d/layers/support/annodime/virtualFields.js +1 -1
  235. package/views/3d/input/SceneInputManager.js +1 -1
  236. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +2 -0
  237. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  238. package/views/3d/layers/SceneLayerWorker.js +1 -1
  239. package/views/3d/support/MemoryController.js +1 -1
  240. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
  241. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  242. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +1 -3
  243. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
  244. package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +1 -1
  245. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +8 -8
  246. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +6 -6
  247. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
  248. package/views/3d/webgl-engine/core/shaderLibrary/forwardLinearDepthToReadShadow.glsl.js +4 -0
  249. package/views/3d/webgl-engine/core/shaderLibrary/{ForwardLinearDepthToWriteShadowMap.glsl.js → forwardLinearDepthToWriteShadow.glsl.js} +5 -5
  250. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +1 -1
  251. package/views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadow.glsl.js +3 -4
  252. package/views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadowFromDepth.glsl.js +2 -2
  253. package/views/3d/webgl-engine/core/shaderLibrary/shading/readFragmentShadow.glsl.js +5 -0
  254. package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +24 -0
  255. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +1 -1
  256. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  257. package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
  258. package/views/3d/webgl-engine/effects/focusArea/FocusArea.js +1 -1
  259. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  260. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.glsl.js +1 -1
  261. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.glsl.js +1 -1
  262. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  263. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
  264. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +1 -1
  265. package/views/3d/webgl-engine/lib/LineMaterial.js +1 -1
  266. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  267. package/views/3d/webgl-engine/materials/DrawParameters.js +1 -1
  268. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  269. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  270. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  271. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  272. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  273. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  274. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  275. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +1 -1
  276. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  277. package/views/3d/webgl-engine/shaders/LineTechniqueConfiguration.js +1 -1
  278. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  279. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  280. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  281. package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -1
  282. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  283. package/views/3d/webgl-engine/shaders/{AnimatedLine.glsl.js → animatedAlpha.glsl.js} +11 -17
  284. package/views/ToolViewManager.js +1 -1
  285. package/views/VideoView.js +1 -1
  286. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +3 -0
  287. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -0
  288. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -0
  289. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -0
  290. package/widgets/BasemapGallery/types.d.ts +6 -1
  291. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +2 -0
  292. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  293. package/widgets/Editor/EditorViewModel.d.ts +2 -1
  294. package/widgets/Editor/EditorViewModel.js +1 -1
  295. package/widgets/Editor/legacy/CreateFeaturesWorkflow.js +1 -1
  296. package/widgets/Editor.d.ts +2 -1
  297. package/widgets/Editor.js +1 -1
  298. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.d.ts +1 -0
  299. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.js +1 -1
  300. package/widgets/HistogramRangeSlider.js +1 -1
  301. package/widgets/Legend/LegendViewModel.d.ts +1 -0
  302. package/widgets/Legend/LegendViewModel.js +1 -1
  303. package/widgets/Legend/styles/card/CardView.d.ts +1 -0
  304. package/widgets/Legend/styles/card/CardView.js +1 -1
  305. package/widgets/Legend/styles/classic/ClassicView.d.ts +1 -0
  306. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  307. package/widgets/Legend/support/ActiveLayerInfo.d.ts +2 -0
  308. package/widgets/Legend.js +1 -1
  309. package/assets/esri/core/workers/chunks/03918a862455191a8910.js +0 -1
  310. package/assets/esri/core/workers/chunks/1630913399384030d0b9.js +0 -1
  311. package/assets/esri/core/workers/chunks/1a39335aa2dce6d564d9.js +0 -1
  312. package/assets/esri/core/workers/chunks/25bb07d3c32b16a08813.js +0 -1
  313. package/assets/esri/core/workers/chunks/25cc6d7178a52f2f46b7.js +0 -1
  314. package/assets/esri/core/workers/chunks/2e999b05ce179dd9fa08.js +0 -1
  315. package/assets/esri/core/workers/chunks/36792b8a85e88044cb49.js +0 -1
  316. package/assets/esri/core/workers/chunks/3acc1299c1382c3b034d.js +0 -1
  317. package/assets/esri/core/workers/chunks/430802108b63194b7ddd.js +0 -2
  318. package/assets/esri/core/workers/chunks/4396ef5ab3eb9e9a7df2.js +0 -1
  319. package/assets/esri/core/workers/chunks/4efe5827a5c61db3b19d.js +0 -2
  320. package/assets/esri/core/workers/chunks/5938d5f6e37f49867d5a.js +0 -1
  321. package/assets/esri/core/workers/chunks/70347d25968975126fa7.js +0 -1
  322. package/assets/esri/core/workers/chunks/8628c027198982baed7c.js +0 -1
  323. package/assets/esri/core/workers/chunks/8c521caf050a486b6548.js +0 -1
  324. package/assets/esri/core/workers/chunks/a6d4132a16c51323a38a.js +0 -1
  325. package/assets/esri/core/workers/chunks/add834f867900a7091d2.js +0 -1
  326. package/assets/esri/core/workers/chunks/b56c5883a5468b18b122.js +0 -1
  327. package/assets/esri/core/workers/chunks/b5a102cf9f4377fb9842.js +0 -1
  328. package/assets/esri/core/workers/chunks/b6409d89914030d5854a.js +0 -1
  329. package/assets/esri/core/workers/chunks/c118b88a7c4359e68d9b.js +0 -1
  330. package/assets/esri/core/workers/chunks/c5e288d57bacb8451e2d.js +0 -2
  331. package/assets/esri/core/workers/chunks/ce3fb992f6c6ae7378a3.js +0 -1
  332. package/assets/esri/core/workers/chunks/ceda1e08c9ff26248db0.js +0 -1
  333. package/assets/esri/core/workers/chunks/d5e3f8e5b8d2576d3cb3.js +0 -2
  334. package/assets/esri/core/workers/chunks/ddb5d29a8998d0a76fd4.js +0 -1
  335. package/assets/esri/core/workers/chunks/de8a3a0796bd115426c0.js +0 -1
  336. package/assets/esri/core/workers/chunks/e707534a700a2de687ca.js +0 -1
  337. package/assets/esri/core/workers/chunks/f465fb26541372fdc908.js +0 -2
  338. package/assets/esri/core/workers/chunks/f5423006fb07db7dd6ee.js +0 -1
  339. package/assets/esri/core/workers/chunks/fdad31bbe8aee68a6eaf.js +0 -1
  340. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepthToReadShadowMap.glsl.js +0 -4
  341. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +0 -18
  342. package/views/3d/webgl-engine/core/shaderLibrary/shading/ShadowmapFiltering.glsl.js +0 -4
  343. /package/assets/esri/core/workers/chunks/{430802108b63194b7ddd.js.LICENSE.txt → 033debcbf6b3683dc4fe.js.LICENSE.txt} +0 -0
  344. /package/assets/esri/core/workers/chunks/{4efe5827a5c61db3b19d.js.LICENSE.txt → 064445e6f9512817ac87.js.LICENSE.txt} +0 -0
  345. /package/assets/esri/core/workers/chunks/{c5e288d57bacb8451e2d.js.LICENSE.txt → 463d69f596d1d34ef275.js.LICENSE.txt} +0 -0
  346. /package/assets/esri/core/workers/chunks/{d5e3f8e5b8d2576d3cb3.js.LICENSE.txt → 58a17fb3c0dd07c63d57.js.LICENSE.txt} +0 -0
  347. /package/assets/esri/core/workers/chunks/{7f2ac03efaa4a4898ba2.js.LICENSE.txt → c3b96d1d43afccd23e45.js.LICENSE.txt} +0 -0
  348. /package/assets/esri/core/workers/chunks/{f465fb26541372fdc908.js.LICENSE.txt → ce08e3369641da0d7a27.js.LICENSE.txt} +0 -0
@@ -0,0 +1,118 @@
1
+ import type Accessor from "../core/Accessor.js";
2
+ import type Collection from "../core/Collection.js";
3
+ import type ActiveLayerInfo from "./ActiveLayerInfo.js";
4
+ import type LinkChartView from "../views/LinkChartView.js";
5
+ import type { LayerInfo, LegendContentState } from "./types.js";
6
+ import type { MapViewOrSceneView } from "../views/MapViewOrSceneView.js";
7
+ import type { ActiveLayerInfoProperties } from "./ActiveLayerInfo.js";
8
+ import type { ReadonlyArrayOrCollection } from "../core/Collection.js";
9
+
10
+ export interface LegendContentProperties extends Partial<Pick<LegendContent, "basemapLegendVisible" | "groundLegendVisible" | "hideLayersNotInCurrentView" | "keepCacheOnDestroy" | "layerInfos" | "respectLayerDefinitionExpression" | "respectLayerVisibility" | "view">> {
11
+ /**
12
+ * Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) objects used by the legend view to
13
+ * display data in the legend. Use this property to hide or display the layer's symbols in the legend when
14
+ * an [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) is removed from or added to this collection.
15
+ */
16
+ activeLayerInfos?: ReadonlyArrayOrCollection<ActiveLayerInfoProperties>;
17
+ }
18
+
19
+ /**
20
+ * Manages the reactive content displayed by the [Legend component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-legend/)
21
+ * and by custom legends. It tracks supported layer views, maintains the hierarchy of
22
+ * [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) objects, and coordinates legend element generation as the view changes.
23
+ *
24
+ * @since 5.2
25
+ * @example
26
+ * const legendContent = new LegendContent({
27
+ * view,
28
+ * layerInfos: [{ layer: map.allLayers.getItemAt(0) }],
29
+ * });
30
+ */
31
+ export default class LegendContent extends Accessor {
32
+ constructor(properties?: LegendContentProperties);
33
+ /**
34
+ * Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) objects used by the legend view to
35
+ * display data in the legend. Use this property to hide or display the layer's symbols in the legend when
36
+ * an [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) is removed from or added to this collection.
37
+ */
38
+ get activeLayerInfos(): Collection<ActiveLayerInfo>;
39
+ set activeLayerInfos(value: ReadonlyArrayOrCollection<ActiveLayerInfoProperties>);
40
+ /**
41
+ * Indicates whether to show the [Basemap](https://developers.arcgis.com/javascript/latest/references/core/Basemap/) layers in the legend.
42
+ *
43
+ * @default false
44
+ */
45
+ accessor basemapLegendVisible: boolean;
46
+ /**
47
+ * Indicates whether to include [Ground](https://developers.arcgis.com/javascript/latest/references/core/Ground/) layers in the legend.
48
+ *
49
+ * @default false
50
+ */
51
+ accessor groundLegendVisible: boolean;
52
+ /**
53
+ * When `true`, layers will only be shown in the legend if
54
+ * they are visible in the view's extent. When data from a layer
55
+ * is not visible in the view, the layer's legend information
56
+ * will be hidden.
57
+ *
58
+ * To hide layers completely
59
+ * from the legend, you should set the `legendEnabled` property of
60
+ * the layer to `false`.
61
+ *
62
+ * @default false
63
+ * @see [respectLayerVisibility](https://developers.arcgis.com/javascript/latest/references/core/legend/LegendContent/#respectLayerVisibility)
64
+ */
65
+ accessor hideLayersNotInCurrentView: boolean;
66
+ /**
67
+ * Indicates whether cached legend responses should be preserved when active layer info objects are destroyed.
68
+ * Preserving the cache can avoid repeating legend requests when rebuilding legend content.
69
+ *
70
+ * @default false
71
+ */
72
+ accessor keepCacheOnDestroy: boolean;
73
+ /**
74
+ * Defines which layers and sublayers are shown in the legend, including any [basemap layers](https://developers.arcgis.com/javascript/latest/references/core/legend/LegendContent/#basemapLegendVisible) you want visible.
75
+ * If not set, all layers in the map are displayed in the legend by default, including basemap layers when
76
+ * [basemapLegendVisible](https://developers.arcgis.com/javascript/latest/references/core/legend/LegendContent/#basemapLegendVisible) is `true`.
77
+ */
78
+ accessor layerInfos: LayerInfo[];
79
+ /** Indicates whether one or more active layer info objects are currently generating legend elements. */
80
+ get loading(): boolean;
81
+ /**
82
+ * If a layer uses a unique value renderer, only features that satisfy the layer's
83
+ * [definition expression](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/FeatureLayerBase/#definitionExpression)
84
+ * will be displayed in the legend when set to true.
85
+ *
86
+ * @default false
87
+ * @see [FeatureLayerBase.definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/FeatureLayerBase/#definitionExpression)
88
+ */
89
+ accessor respectLayerDefinitionExpression: boolean;
90
+ /**
91
+ * Determines whether to respect the properties of the layers in the map that
92
+ * control the legend's visibility (`minScale`, `maxScale`, `legendEnabled`).
93
+ * By default, a layer's legend elements **will
94
+ * not render** in the legend given the following conditions:
95
+ *
96
+ * - The [FeatureLayer.legendEnabled](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#legendEnabled) property
97
+ * is set to `false`.
98
+ * - If the view's scale is outside the visibility range
99
+ * defined by the [ScaleRangeLayer.minScale](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/ScaleRangeLayer/#minScale) and
100
+ * [ScaleRangeLayer.maxScale](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/ScaleRangeLayer/#maxScale) properties.
101
+ *
102
+ * When the `respectLayerVisibility` property of the legend is set to `false`, the legend elements for each
103
+ * layer in the map will always display, thus disregarding the `minScale`, `maxScale`,
104
+ * and `legendEnabled` properties for each layer in the map.
105
+ *
106
+ * @default true
107
+ * @see [hideLayersNotInCurrentView](https://developers.arcgis.com/javascript/latest/references/core/legend/LegendContent/#hideLayersNotInCurrentView)
108
+ */
109
+ accessor respectLayerVisibility: boolean;
110
+ /**
111
+ * The current state of the legend content.
112
+ *
113
+ * @default "disabled"
114
+ */
115
+ get state(): LegendContentState;
116
+ /** The map, scene, or link chart view whose layer views supply the legend content. */
117
+ accessor view: MapViewOrSceneView | LinkChartView | null | undefined;
118
+ }
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{__decorate as e}from"tslib";import{onLocaleChange as i}from"../intl.js";import r from"../core/Accessor.js";import t from"../core/Collection.js";import{watch as s,initial as a,when as n}from"../core/reactiveUtils.js";import{property as o,subclass as l}from"../core/accessorSupport/decorators.js";import{get as y}from"../core/accessorSupport/get.js";import d from"./ActiveLayerInfo.js";import{getEffectiveFeatureReduction as h}from"../views/2d/layers/features/layerAdapters/featureReductionUtils.js";const c={state:"state",view:"view",allLayerViews:"all-layer-views",legendProperties:"legend-properties"},L=t.ofType(d),f=new Set(["esri.layers.BuildingSceneLayer","esri.layers.CatalogLayer","esri.layers.CSVLayer","esri.layers.FeatureLayer","esri.layers.GeoJSONLayer","esri.layers.GeoRSSLayer","esri.layers.GroupLayer","esri.layers.HeatmapLayer","esri.layers.ImageryLayer","esri.layers.ImageryTileLayer","esri.layers.MapImageLayer","esri.layers.OGCFeatureLayer","esri.layers.OrientedImageryLayer","esri.layers.ParquetLayer","esri.layers.PointCloudLayer","esri.layers.StreamLayer","esri.layers.SceneLayer","esri.layers.SubtypeGroupLayer","esri.layers.TileLayer","esri.layers.VoxelLayer","esri.layers.WFSLayer","esri.layers.WMSLayer","esri.layers.WMTSLayer","esri.layers.WCSLayer","esri.layers.LinkChartLayer","esri.layers.catalog.CatalogFootprintLayer","esri.layers.catalog.CatalogDynamicGroupLayer","esri.layers.knowledgeGraph.KnowledgeGraphSublayer","esri.layers.KnowledgeGraphLayer"]),u="view.basemapView.baseLayerViews",p="view.groundView.layerViews",v="view.basemapView.referenceLayerViews",w=[u,p,"view.layerViews",v];let _=class extends r{constructor(e){super(e),this._layerViewByLayerId={},this._layerInfosByLayerViewId={},this._activeLayerInfosByLayerViewId={},this._activeLayerInfosWithNoParent=new t,this._activeLayerInfosPromises=new WeakMap,this.activeLayerInfos=new L,this.basemapLegendVisible=!1,this.groundLegendVisible=!1,this.hideLayersNotInCurrentView=!1,this.keepCacheOnDestroy=!1,this.layerInfos=[],this.respectLayerDefinitionExpression=!1,this.respectLayerVisibility=!0,this.view=null}initialize(){this.addHandles(s(()=>this.view,()=>this._viewHandles(),a),c.view),this.addHandles(i(()=>this._refresh()))}destroy(){this._destroyViewActiveLayerInfos(),this.view=null}get loading(){return this.activeLayerInfos.some(e=>e.loading)}get state(){return this.view?.ready?"ready":"disabled"}_viewHandles(){this.removeHandles(c.state),this.view&&this.addHandles(s(()=>this.state,()=>this._stateHandles(),a),c.state)}_stateHandles(){this._resetAll(),"ready"===this.state&&this._watchPropertiesAndAllLayerViews()}_resetAll(){this.removeHandles([c.allLayerViews,c.legendProperties]),this._destroyViewActiveLayerInfos(),this.activeLayerInfos.removeAll()}_destroyViewActiveLayerInfos(){Object.keys(this._activeLayerInfosByLayerViewId).forEach(this._destroyViewActiveLayerInfo,this)}_destroyViewActiveLayerInfo(e){this.removeHandles(e);const i=this._activeLayerInfosByLayerViewId[e];i&&this._activeLayerInfosPromises.delete(i),delete this._activeLayerInfosByLayerViewId[e],i?.parent?.children.remove(i)}_watchPropertiesAndAllLayerViews(){const{view:e}=this;if(!e)return;const{allLayerViews:i}=e;i.length&&this._refresh(),this.addHandles(i.on("change",e=>this._allLayerViewsChangeHandle(e)),c.allLayerViews),this.addHandles(s(()=>[this.basemapLegendVisible,this.groundLegendVisible,this.hideLayersNotInCurrentView,this.keepCacheOnDestroy,this.layerInfos,this.respectLayerDefinitionExpression,this.respectLayerVisibility],()=>this._refresh()),c.legendProperties)}_allLayerViewsChangeHandle(e){if(e.added.length&&this._generateActiveLayerInfosForLayerViews(e.added),e.moved.length)return this._destroyViewActiveLayerInfos(),void this._refresh();if(e.removed.length){for(const{uid:i}of e.removed)this._destroyViewActiveLayerInfo(i);this._refresh()}}_refresh(){this._layerInfosByLayerViewId={},this.activeLayerInfos.drain(e=>this._activeLayerInfosPromises.delete(e)),this._generateActiveLayerInfosForLayerViews(this._generateLayerViews())}_generateActiveLayerInfosForLayerViews(e){e.filter(this._filterBasemapLayerViews,this).filter(this._filterLayerViewsByLayerInfos,this).filter(this._isLayerViewSupported,this).forEach(this._generateActiveLayerInfo,this)}_filterBasemapLayerViews(e){if(!this.view?.basemapView)return!0;const{baseLayerViews:i,groundLayerViews:r,referenceLayerViews:t}=this.view.basemapView,s=i.some(i=>{const r="layerViews"in i?i.layerViews:null;return r?r.includes(e):i===e}),a=!this.basemapLegendVisible&&(s||t?.includes(e)),n=!this.groundLegendVisible&&r?.includes(e);return!a&&!n}_sortActiveLayerInfos(e){const i=this.view;if(e.length<2||!i)return;const r=[];e.forEach(i=>{if(!i.parent){const t=i.layer.parent,s=t&&"uid"in t&&this._layerViewByLayerId[t.uid],a=s&&this._activeLayerInfosByLayerViewId[s.uid];a&&e.includes(a)&&(r.push(i),i.parent=a,a.children.add(i),this._sortActiveLayerInfos(a.children))}}),e.removeMany(r);const t={};i.allLayerViews.forEach((e,i)=>t[e.layer.uid]=i),e.sort((e,i)=>{const r=t[e.layer.uid]||0;return(t[i.layer.uid]||0)-r})}_generateLayerViews(){const e=[];return w.filter(this._filterLayerViews,this).map(e=>y(this,e)).filter(e=>null!=e).forEach(this._collectLayerViews("layerViews",e)),e}_filterLayerViews(e){const i=!this.basemapLegendVisible&&(e===u||e===v),r=!this.groundLegendVisible&&e===p;return!i&&!r}_collectLayerViews(e,i){const r=t=>(t&&t.forEach(t=>{i.push(t),r(t[e])}),i);return r}_filterLayerViewsByLayerInfos(e){const i=this.layerInfos;return!i||!i.length||i.some(i=>this._hasLayerInfo(i,e))}_hasLayerInfo(e,i){const r=this._isLayerUIDMatching(e.layer,i.layer.uid);return r&&(this._layerInfosByLayerViewId[i.uid]=e),r}_isLayerUIDMatching(e,i){return e&&(e.uid===i||this._hasLayerUID(e.layers,i))}_hasLayerUID(e,i){return e&&e.some(e=>this._isLayerUIDMatching(e,i))}_isLayerViewSupported(e){return!!f.has(e.layer.declaredClass)&&(this._layerViewByLayerId[e.layer.uid]=e,!0)}_generateActiveLayerInfo(e){this._isLayerActive(e)?this._buildActiveLayerInfo(e):(this.removeHandles(e.uid),this.addHandles(s(()=>[e.legendEnabled,e.layer?.legendEnabled],()=>this._layerActiveHandle(e)),e.uid))}_layerActiveHandle(e){this._isLayerActive(e)&&(this.removeHandles(e.uid),this._buildActiveLayerInfo(e))}_isLayerActive(e){return!this.respectLayerVisibility||e.legendEnabled&&e.layer?.legendEnabled}async _buildActiveLayerInfo(e){const i=e.layer,r=e.uid,t=this._layerInfosByLayerViewId[r];let s=this._activeLayerInfosByLayerViewId[r];s||(s=new d({keepCacheOnDestroy:this.keepCacheOnDestroy,layer:i,layerView:e,view:this.view??void 0}),this._activeLayerInfosByLayerViewId[r]=s);const a=void 0!==t?.title&&t.layer.uid===i.uid;s.title=a?t.title:i.title,s.respectLayerDefinitionExpression=this.respectLayerDefinitionExpression,s.respectLayerVisibility=this.respectLayerVisibility,s.hideLayersNotInCurrentView=this.hideLayersNotInCurrentView,s.sublayerIds=t?.sublayerIds||[];const n=i.parent&&"uid"in i.parent?this._layerViewByLayerId[i.parent?.uid]:null;s.parent=this._activeLayerInfosByLayerViewId[n?.uid],this._addActiveLayerInfo(s),this._constructLegendElements(s),this._attachHandlesToActiveLayerInfo(s)}_attachHandlesToActiveLayerInfo(e){const{layer:i,layerView:r}=e,t=r.uid;this.removeHandles(t),this.addHandles([s(()=>i.title,i=>this._titleHandle(i,e)),s(()=>[i.opacity,"renderer"in i&&i.renderer,"pointSymbol"in i&&i.pointSymbol,"lineSymbol"in i&&i.lineSymbol,"polygonSymbol"in i&&i.polygonSymbol,"effect"in i&&i.effect,"featureReduction"in i&&h(i,r.view),this.view?.timeZone],()=>this._constructLegendElements(e)),s(()=>"filter"in r&&r.filter,()=>{null!=h(r.layer,r.view)&&this._constructLegendElements(e)}),n(()=>!!this.view?.stationary,()=>this._scaleHandle(e)),s(()=>e.loading,()=>this.notifyChange("loading"),a)],t),this.respectLayerVisibility&&this.addHandles([s(()=>i.legendEnabled,i=>this._legendEnabledHandle(i,e)),s(()=>r.legendEnabled,i=>{this.view?.suspended||this._legendEnabledHandle(i,e)})],t),this.respectLayerDefinitionExpression&&"definitionExpression"in i&&this.addHandles(s(()=>i.definitionExpression,()=>this._constructLegendElements(e)),t)}_titleHandle(e,i){i.title=e,this._constructLegendElements(i)}_legendEnabledHandle(e,i){e?this._addActiveLayerInfo(i):this._removeActiveLayerInfo(i)}_scaleHandle(e){(e.isScaleDriven||e.hideLayersNotInCurrentView)&&this._constructLegendElements(e)}_addActiveLayerInfo(e){const{layerView:i,layer:r}=e;if(this._isLayerActive(i)&&!this.activeLayerInfos.includes(e)){const i=e.parent;if(i)i.children.includes(e)||i.children.push(e),this._sortActiveLayerInfos(i.children);else{const i=this.layerInfos?.some(e=>e.layer.uid===r.uid),t=r.parent;(t&&"uid"in t?this._layerViewByLayerId[t.uid]:null)&&!i?this._activeLayerInfosWithNoParent.add(e):(this.activeLayerInfos.add(e),this._sortActiveLayerInfos(this.activeLayerInfos))}if(this._activeLayerInfosWithNoParent.length){const e=[];this._activeLayerInfosWithNoParent.forEach(i=>{const r=i.layer.parent,t=r&&"uid"in r?this._layerViewByLayerId[r?.uid]:null,s=this._activeLayerInfosByLayerViewId[t?.uid];s&&(e.push(i),i.parent=s)}),e.length&&(this._activeLayerInfosWithNoParent.removeMany(e),e.forEach(e=>this._addActiveLayerInfo(e)))}}}_removeActiveLayerInfo(e){const i=e.parent;i?i.children.remove(e):this.activeLayerInfos.remove(e)}async _getBuildLegendPromise(e){const{layer:i}=e;if("featureCollections"in i&&i.featureCollections)return e.buildLegendElementsForFeatureCollections(i.featureCollections);if("featureReduction"in i&&i.featureReduction&&"renderer"in i.featureReduction&&("binning"===i.featureReduction.type||"cluster"===i.featureReduction.type)&&(!this.view||i.featureReduction.maxScale<=this.view.scale))return e.buildLegendElementsForFeatureReduction(i.featureReduction);if("renderer"in i&&i.renderer&&!("sublayers"in i))return e.buildLegendElementsForRenderer(i.renderer);if("url"in i&&i.url&&"catalog"!==i.type&&"knowledge-graph"!==i.type)return e.buildLegendElementsForTools();const r=e.children.map(e=>this._constructLegendElements(e));return Promise.all(r).then(()=>{})}async _constructLegendElements(e){const i=this._activeLayerInfosPromises.get(e);i&&await i.catch(()=>{});const r=this._getBuildLegendPromise(e);this._activeLayerInfosPromises.set(e,r),r.finally(()=>{this._activeLayerInfosPromises.delete(e)})}};e([o({type:L})],_.prototype,"activeLayerInfos",void 0),e([o()],_.prototype,"basemapLegendVisible",void 0),e([o()],_.prototype,"groundLegendVisible",void 0),e([o()],_.prototype,"hideLayersNotInCurrentView",void 0),e([o()],_.prototype,"keepCacheOnDestroy",void 0),e([o()],_.prototype,"layerInfos",void 0),e([o({readOnly:!0})],_.prototype,"loading",null),e([o()],_.prototype,"respectLayerDefinitionExpression",void 0),e([o()],_.prototype,"respectLayerVisibility",void 0),e([o({readOnly:!0})],_.prototype,"state",null),e([o()],_.prototype,"view",void 0),_=e([l("esri.legend.LegendContent")],_);const I=_;export{I as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import e from"../../renderers/visualVariables/SizeVariable.js";function l(l,i,s){const a=l.effectiveClusterRenderer;if(!a||!("visualVariables"in a)||!a.visualVariables)return null;const n=a.visualVariables.find(e=>"size"===e.type);if(!("stops"in n)||!n.stops)return null;const t=n.stops.find(e=>e.useMinValue),u=n.stops.find(e=>e.useMaxValue);if(null==t||null==u)return null;const r=s.featuresTilingScheme.getClosestInfoForScale(s.scale).level,f=n.field,o=i.getDisplayStatistics(r,f);return o?new e({field:n.field,minSize:l.clusterMinSize,minDataValue:o.minValue,maxSize:l.clusterMaxSize,maxDataValue:o.maxValue}):null}export{l as getEffectiveClusterSizeVariable};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import l from"../../Color.js";import{isSome as e}from"../../core/arrayUtils.js";import{createStopLabel as o}from"./utils.js";const r=new l([64,64,64]);function n(l,e){const r=[],n=l.length-1;return 5===l.length?r.push(0,2,4):r.push(0,n),l.map((l,t)=>r.includes(t)?o(l,t,n,e):null)}async function t(l,o,r){let t=!1,u=[],s=[];if(l.stops){const e=l.stops;u=e.map(l=>l.value),t=e.some(l=>!!l.label),t&&(s=e.map(l=>l.label))}const i=u[0],c=u[u.length-1];if(null==i&&null==c)return null;const p=t?null:n(u,r);return(await Promise.all(u.map(async(e,r)=>{const n="opacity"===l.type?await a(e,l,o):(await(import("../../renderers/visualVariables/support/visualVariableUtils.js"))).getColor(l,e),u=t?s[r]:p?.[r]??"";return null==n?null:{value:e,color:n,label:u}}))).filter(e).reverse()}async function a(e,o,n){const t=new l(n??r),a=(await(import("../../renderers/visualVariables/support/visualVariableUtils.js"))).getOpacity(o,e);return null!=a&&(t.a=a),t}function u(l){let e=!1,o=[],r=[];o=l.map(l=>l.value),e=l.some(l=>!!l.label),e&&(r=l.map(l=>l.label??""));const t=o[0],a=o[o.length-1];if(null==t&&null==a)return null;const u=e?null:n(o);return o.map((o,n)=>({value:o,color:s(o,l),label:e?r[n]:u?.[n]??""})).reverse()}function s(e,o){const{startIndex:r,endIndex:n,weight:t}=i(e,o);if(r===n)return o[r].color;const a=l.blendColors(o[r].color,o[n].color,t);return new l(a)}function i(l,e){let o=0,r=e.length-1;return e.some((e,n)=>l<e.value?(r=n,!0):(o=n,!1)),{startIndex:o,endIndex:r,weight:(l-e[o].value)/(e[r].value-e[o].value)}}function c(e,o){let r=[];if("multipart"===e?.type)e.colorRamps.reverse().forEach((n,t)=>{0===t?r.push({value:o.max,color:new l(n.toColor),label:"high"}):r.push({value:null,color:new l(n.toColor),label:""}),t===e.colorRamps.length-1?r.push({value:o.min,color:new l(n.fromColor),label:"low"}):r.push({value:null,color:new l(n.fromColor),label:""})});else{let n,t;"algorithmic"===e?.type?(n=e.fromColor,t=e.toColor):(n=[0,0,0,1],t=[255,255,255,1]),r=[{value:o.max,color:new l(t),label:"high"},{value:o.min,color:new l(n),label:"low"}]}return r}export{s as getColorFromPointCloudStops,t as getRampStops,u as getRampStopsForPointCloud,c as getStretchRampStops};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import o from"../../renderers/support/HeatmapColorStop.js";function r(r){if(!r.colorStops)return[];const e=r.colorStops.filter(o=>o.color?.a>0);let t=e.length-1;if(e&&e[0]){const r=e[t];r&&1!==r.ratio&&(e.push(new o({ratio:1,color:r.color})),t++)}return e.map((o,e)=>{let l="";return 0===e?l=r.legendOptions?.minLabel||"low":e===t&&(l=r.legendOptions?.maxLabel||"high"),{color:o.color,label:l,ratio:o.ratio}}).reverse()}export{r as getHeatmapRampStops};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{getStroke as t,getFill as o}from"../../symbols/support/gfxUtils.js";import{getSymbolLayerFill as e}from"../../symbols/support/previewSymbol3D.js";const l={HH:315,HL:45,LL:135,LH:225},r={2:[["HL","HH"],["LL","LH"]],3:[["HL","HM","HH"],["ML","MM","MH"],["LL","LM","LH"]],4:[["HL","HM1","HM2","HH"],["M2L","M2M1","M2M2","M2H"],["M1L","M1M1","M1M2","M1H"],["LL","LM1","LM2","LH"]]};function s(l){if(!l)return;const{type:r}=l;if(r.includes("3d"))return e(l.symbolLayers.at(0));if("simple-line"===r){const o=t(l);return o&&o.color}if("simple-marker"===l.type&&("x"===l.style||"cross"===l.style)){const o=t(l);return o&&o.color}return o(l)}function n(t,o){const e=o.HH.label,l=o.LL.label,r=o.HL.label,s=o.LH.label;switch(t){case"HH":default:return{top:e,bottom:l,left:r,right:s};case"HL":return{top:r,bottom:s,left:l,right:e};case"LL":return{top:l,bottom:e,left:s,right:r};case"LH":return{top:s,bottom:r,left:e,right:l}}}function H(t){const{focus:o,infos:e,numClasses:l}=t,H=r[l],i={};e.forEach(t=>{i[t.value]={label:t.label,fill:s(t.symbol)}});const u=[];for(let r=0;r<l;r++){const t=[];for(let o=0;o<l;o++){const e=i[H[r][o]];t.push(e.fill)}u.push(t)}return{type:"relationship-ramp",numClasses:l,focus:o,colors:u,labels:n(o,i),rotation:L(o)}}function L(t){let o=l[t];return t&&null==o&&(o=l.HH),o||0}export{H as getRelationshipRampElement,L as getRotationAngleForFocus};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import e from"../../Color.js";import{getColorLuminance as t}from"../../core/colorUtils.js";import{getAuthoringInfoVisualVariableByTheme as l,getSymbolForFlowRenderer as i,createStopLabel as o}from"./utils.js";import{round as r,numDigits as s,percentChange as n}from"../../renderers/support/numberUtils.js";import{updateReferenceSizeSymbol as a}from"../../smartMapping/renderers/support/referenceSizeUtils.js";import{updateSpikeSymbol as u}from"../../smartMapping/renderers/support/spikeUtils.js";import{isDarkMode as m}from"../../support/modeUtils.js";import c from"../../symbols/SimpleLineSymbol.js";import p from"../../symbols/SimpleMarkerSymbol.js";import{applyCIMSymbolColor as f}from"../../symbols/support/cimSymbolUtils.js";import{getCIMSymbolPreviewSize as y}from"../../symbols/support/previewCIMSymbol.js";import{isSymbol3D as b}from"../../symbols/support/typeUtils.js";import{isVolumetricSymbol as d,getSymbolOutlineSize as h}from"../../symbols/support/utils.js";const S=30,w=12,g=24,v=[255,255,255],z=[200,200,200],k=[128,128,128],j=20,V=5;function x(e){return"esri.symbols.SimpleMarkerSymbol"===e.declaredClass}function I(e){return"esri.symbols.PictureMarkerSymbol"===e.declaredClass}function M(e){return"esri.symbols.SimpleLineSymbol"===e.declaredClass}function C(e){return"esri.symbols.TextSymbol"===e.declaredClass}function U(e,t,l=!1){const i=e.length-1;return e.map((e,r)=>o(e,r,i,t,l))}async function L(e,t,i,o,s,n,a){const u=t.legendOptions,m=u?.customValues,c=a||await E(e,i),p=t.stops,f=!!c,b=!!m,S=null!=t.minSize&&null!=t.maxSize,w=p&&p.length>1,v=!!t.target;if(!f||!b&&!(S||w&&!v))return;const z=d(c);let k=!1,j=null,V=null;j=z&&!w?r([t.minDataValue,t.maxDataValue]):m??await H(t,c,o,s?.type);const x=e?.authoringInfo,I="univariate-color-size"===x?.type,M=I&&"above-and-below"===x?.univariateTheme,C=l(e,"reference-size"),L=!!C,T=!!l(e,"spike");if(!j&&w&&(j=p.map(e=>e.value),k=p.some(e=>!!e.label),"flow"===e.type&&(j=r(j)),k&&(V=p.map(e=>e.label))),z&&null!=j&&j?.length>2&&!M&&(j=[j[0],j[j.length-1]]),!j)return null;I&&5!==j?.length&&(j=O({minSize:j[0],maxSize:j[j.length-1]}));const P=z?D(e,j):null,q=h(c),B=L&&C?.minSliderValue===j[0],R=k?null:U(j,n,B),A=await Promise.all(j.map(async(l,i)=>{let r=z?P[i]:await F(t,c,l,o,s?.type),n=r;L&&(r*=g/t.maxSize||1,n=g);const a=G(c,r,e,i);T&&"cim"===a.type&&(n=await y(a));return{value:l,symbol:a,label:k?V[i]:R[i],size:n,outlineSize:q}}));return A.reverse()}function D(e,t){const l=e?.authoringInfo,i="univariate-color-size"===l?.type;let o=[w,S];if(i){const e=t[0],l=t[t.length-1],i=w,r=S;o=t.map(t=>i+(t-e)/(l-e)*(r-i))}return i&&"below"===l?.univariateTheme&&o.reverse(),o}function T(e,t){const l=e.classBreakInfos,i=l.length,o=i<2||!(t>=2)?l[0].symbol.clone():l[i-1].symbol.clone(),r=e.visualVariables?.some(e=>"color"===e.type);return r&&(o.type.includes("3d")?q(o):B(o)),o}async function E(o,r){if("flow"===o.type)return i(o,r);if("pie-chart"===o.type)return new p({color:null,outline:o.outline?.width?o.outline:new c});let s=null,n=null;if("simple"===o.type)s=o.symbol;else if("class-breaks"===o.type){const e=o.classBreakInfos;s=e&&e[0]&&e[0].symbol,n=e.length>1}else if("unique-value"===o.type){const e=o.uniqueValueInfos;s=e?.[0]?.symbol,n=null!=e&&e.length>1}if(!s||P(s))return null;if(s=s.clone(),r||n)if(s.type.includes("3d"))q(s);else if(l(o,"reference-size")&&"cim"===s.type)a(s,{color:r??("class-breaks"!==o.type?new e(z):null)});else if(l(o,"spike")&&"cim"===s.type){const l=new e(z),i=new e(k),o="CIMPointSymbol"===s.data.symbol?.type?s.data.symbol:null,n=!!o?.symbolLayers?.find(({type:e})=>"CIMSolidStroke"===e)?.colorLocked;let a,c=r??void 0;if(c){const e=t(c),o=m();(!o&&e>225||o&&e<25)&&(c=l,a=n?i:l)}else c=l,a=n?i:l;u(s,{color:c,strokeColor:a})}else B(s);return s}function P(e){return b(e)?e.symbolLayers?.some(e=>"fill"===e?.type)??!1:e?.type.includes("fill")??!1}function q(e){"line-3d"===e.type?e.symbolLayers.forEach(e=>{e.material={color:k}}):e.symbolLayers.forEach(e=>{"icon"!==e.type||e.resource?.href?e.material={color:z}:(e.material={color:v},e.outline={color:k,size:1.5})})}function B(t){const l=m();if("cim"===t.type)f(t,new e(z));else if(t.type.includes("line"))t.color=k;else if(t.color=l?k:v,"simple-marker"===t.type)if(t.outline){const e=t.outline?.color?.toHex();"#ffffff"===e&&(t.outline.color=k)}else t.outline={color:k,width:1.5}}async function H(e,t,l,i){const o=(await(import("../../renderers/visualVariables/support/visualVariableUtils.js"))).getSizeRangeAtScale(e,l,i),s=o&&O(o);if(!o||!s)return;let n=s.map(t=>R(t,e,o));n=r(n);for(let r=1;r<n.length-1;r++){const o=await A(e,t,n[r],n[r-1],l,i);o&&(n[r]=o[0],s[r]=o[1])}return n}function O(e){const t=e.minSize,l=e.maxSize,i=V,o=(l-t)/(i-1),r=[];for(let s=0;s<i;s++)r.push(t+o*s);return r}function R(e,t,l){const i=l.minSize,o=l.maxSize,r=t.minDataValue,s=t.maxDataValue;let n;if(e<=i)n=r;else if(e>=o)n=s;else{n=(e-i)/(o-i)*(s-r)+r}return n}async function A(e,t,l,i,o,a){const u=await F(e,t,l,o,a),m=await F(e,t,i,o,a),c=s(l),p=c.fractional,f=j;let y=c.integer,b=null,d=null;l>0&&l<1&&(b=10**p,y=s(l*=b).integer);for(let s=y-1;s>=0;s--){const i=10**s;let c=Math.floor(l/i)*i,p=Math.ceil(l/i)*i;null!=b&&(c/=b,p/=b);let y=(c+p)/2;[,y]=r([c,y,p],{indexes:[1]});const h=await F(e,t,c,o,a),S=await F(e,t,p,o,a),w=await F(e,t,y,o,a),g=n(u,h,m,null),v=n(u,S,m,null),z=n(u,w,m,null);let k=g.previous<=f,j=v.previous<=f;if(k&&j&&(g.previous<=v.previous?(k=!0,j=!1):(j=!0,k=!1)),k?d=[c,h]:j?d=[p,S]:z.previous<=f&&(d=[y,w]),d)break}return d}async function F(e,t,l,i,o){const{getSize:r}=await(import("../../renderers/visualVariables/support/visualVariableUtils.js"));return r(e,l,{scale:i,view:o,shape:"simple-marker"===t.type?t.style:null})}function G(e,t,i,o){"univariate-color-size"===i?.authoringInfo?.type&&"above-and-below"===i?.authoringInfo?.univariateTheme&&"class-breaks"===i.type&&(e=T(i,o));const r=e.clone();if(b(r))d(r)||r.symbolLayers.forEach(e=>{"fill"!==e.type&&(e.size=t)});else if(x(r))r.size=t;else if(I(r)){const e=r.width,l=r.height;r.height=t,r.width=t*(e/l)}else M(r)?r.width=t:C(r)?r.font&&(r.font.size=t):"cim"===r.type&&l(i,"reference-size")?a(r,{innerDotSize:t,outerRingSize:g}):"cim"===r.type&&l(i,"spike")&&u(r,{defaultHeight:t,primitiveOverrides:null});return r}export{L as getRampStops,S as realWorldMaxSize,w as realWorldMinSize};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{convertNumberFieldFormatToIntlOptions as t,convertNumberFormatToIntlOptions as e,formatNumber as n}from"../../intl.js";import{millisecondsPerTimeUnit as i}from"../../core/timeUtils.js";import o from"../../layers/support/DateTimeFieldFormat.js";import{getFieldConfigurationsContainer as r}from"../../layers/support/layerUtils.js";import l from"../../popup/support/FieldInfoFormat.js";import{format as a}from"../../renderers/support/numberUtils.js";import{formatAnyDate as A}from"../../smartMapping/support/utils.js";import s from"../../symbols/SimpleLineSymbol.js";const u="<",f=">";function m(t,e,n,i,o=!1){let r="";0!==e||o?e===n&&(r=`${f} `):r=`${u} `;const l=d(t,i);return null==l?"":r+l}function p(t){const{format:e,fieldFormat:n}=t||{};return"number"===n?.type||!!e&&null==e.dateFormat&&(null!=e.places||null!=e.digitSeparator)}function d(i,o){if(null==i)return i;const{fieldType:r,format:l,fieldFormat:s,timeZoneOptions:u}=o||{};if(U(r))return A(i,{fieldType:r,format:l?.dateFormat,fieldFormat:"date-time"===s?.type?s:void 0,timeZoneOptions:u});if("string"==typeof i&&p(o)){const t=Number(i);isNaN(t)||(i=t)}if("string"==typeof i)return i;const f="number"===s?.type?t(s):l?e(l):void 0;return f?n(i,f):a(i)}const c=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwcdIkqhiWn5fHwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu6JrzFUAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwaeIkqhiWl5/HwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu6sKxboAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwadJEqhiWl5fPwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu75+IUcAAAAASUVORK5CYII="];async function g(t){if(!("visualVariables"in t)||!t.visualVariables)return null;const e=t.visualVariables.find(t=>"color"===t.type);if(!e)return null;let n=null,i=null;if(e.stops){if(1===e.stops.length)return e.stops[0].color;n=e.stops[0].value,i=e.stops[e.stops.length-1].value}const o=null!=n&&null!=i?n+(i-n)/2:0,{getColor:r}=await(import("../../renderers/visualVariables/support/visualVariableUtils.js"));return r(e,o)??null}async function w(t,e){const n=t.trailCap,i=t.trailWidth||1,o=e||await g(t)||t.color;return new s({cap:n,color:o,width:i})}function y(t,e){if(!e)return null;if("featureReduction"in t)switch(t.featureReduction?.type){case"cluster":case"binning":{const n=t.featureReduction.fields.find(({name:t})=>t.toLowerCase()===e.toLowerCase());return n?.type?n:n&&"getField"in t?t.getField(n.onStatisticField):null}}return"getField"in t?t.getField?.(e):null}function I(t,e){const n="popupTemplate"in t?t.popupTemplate?.fieldInfos:null;if(n?.length&&e)return n.find(t=>t.fieldName?.toLowerCase()===e.toLowerCase())}function F(t){let e=0,n=0;return t.stops?(e=t.stops?.at(0)?.value??e,n=t.stops?.at(-1)?.value??n):"minDataValue"in t&&"maxDataValue"in t&&(e=t.minDataValue??e,n=t.maxDataValue??n),n-e>2*i.days?"short-date":"short-date-short-time"}function U(t){return["date","date-only","time-only","timestamp-offset"].includes(t||"")}function h(t,e,n){const i=C(t,e.field,n);return i?(U(i.fieldType)&&(i.fieldConfigurationsContainer?i.fieldFormat??=new o({dateStyle:"short",timeStyle:"short-date-short-time"===F(e)?"short":null}):i.format??=new l({dateFormat:F(e)})),i):null}function C(t,e,n){const i=y(t,e),o=i?.name;if(!o)return null;const l=i?.type,a=r(t,{checkFeatureReduction:!0});return{fieldType:l,format:a?null:I(t,o)?.format,fieldFormat:a?a.getFieldConfiguration(o)?.fieldFormat:null,fieldConfigurationsContainer:a,timeZoneOptions:U(l)?{layerTimeZone:"preferredTimeZone"in t?t.preferredTimeZone:null,viewTimeZone:n,datesInUnknownTimezone:"datesInUnknownTimezone"in t&&t.datesInUnknownTimezone}:null}}function V(t,e){if("authoringInfo"in t)return t.authoringInfo?.visualVariables?.find(({theme:t})=>t===e)}function j(t,e){let n=null!=t?t:"";return null!=e&&e&&(n=n?"("+n+") AND ("+e+")":e),n}export{m as createStopLabel,d as formatValue,V as getAuthoringInfoVisualVariableByTheme,C as getFormatOptions,h as getFormatOptionsForVisualVariable,g as getMedianColor,w as getSymbolForFlowRenderer,j as mergeWhereClauses,c as rgbImgSource,f as specialCharsGreaterThan,u as specialCharsLessThan};
@@ -0,0 +1,403 @@
1
+ /**
2
+ * Public types used to configure [LegendContent](https://developers.arcgis.com/javascript/latest/references/core/legend/LegendContent/) and describe the legend elements generated by
3
+ * [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/).
4
+ *
5
+ * These types can be used when rendering a custom legend independently of the Legend component.
6
+ *
7
+ * @since 5.2
8
+ */
9
+ import type Color from "../Color.js";
10
+ import type Layer from "../layers/Layer.js";
11
+ import type Sublayer from "../layers/support/Sublayer.js";
12
+ import type { RelationshipFocus } from "../renderers/support/types.js";
13
+ import type { SymbolUnion } from "../symbols/types.js";
14
+
15
+ /** Describes the schema of the ClusterTitle element. */
16
+ export interface ClusterTitle {
17
+ /** Whether to show the count. */
18
+ showCount: boolean;
19
+ }
20
+
21
+ /** Describes the schema of the ColorRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
22
+ export interface ColorRampElement {
23
+ /** The type of this element is always `color-ramp`. */
24
+ type: "color-ramp";
25
+ /** The title of the color ramp as displayed in the legend. */
26
+ title?: RampTitle | string | null;
27
+ /**
28
+ * The
29
+ * individual color stops rendered in the legend that correspond to the color visual variable in the renderer.
30
+ */
31
+ infos: ColorRampStop[];
32
+ /** A preview of the element as displayed in the legend. */
33
+ preview?: HTMLElement | null;
34
+ }
35
+
36
+ /**
37
+ * Describes the schema of the ColorRampStop element. Each ColorRampStop represents a single stop of the
38
+ * [ColorVariable](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/ColorVariable/) referenced in the renderer.
39
+ */
40
+ export interface ColorRampStop {
41
+ /** The value of the color visual variable [stop](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/ColorVariable/#stops). */
42
+ value: number | string | null;
43
+ /** The color of the visual variable [stop](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/ColorVariable/#stops). */
44
+ color: Color;
45
+ /** The label in the legend describing features with the given `color` and `value`. */
46
+ label: string | null;
47
+ }
48
+
49
+ /** Describes the schema of the DotDensityTitle element. */
50
+ export interface DotDensityTitle {
51
+ /** The value. */
52
+ value: number;
53
+ /** The unit. */
54
+ unit?: string | null;
55
+ }
56
+
57
+ /** Describes the schema of the HeatmapRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
58
+ export interface HeatmapRampElement {
59
+ /** The type of this element is always `heatmap-ramp`. */
60
+ type: "heatmap-ramp";
61
+ /** The title of the heatmap ramp as displayed in the legend. */
62
+ title?: RendererTitle | string | null;
63
+ /**
64
+ * The
65
+ * individual color stops rendered in the legend that correspond to the heatmap colorStops in the renderer.
66
+ */
67
+ infos: HeatmapRampStop[];
68
+ /** A preview of the element as displayed in the legend. */
69
+ preview?: HTMLElement | null;
70
+ }
71
+
72
+ /**
73
+ * Describes the schema of the HeatmapRampStop element. Each HeatmapRampStop represents a single `colorStop` of the
74
+ * [Heatmap color stops](https://developers.arcgis.com/javascript/latest/references/core/renderers/HeatmapRenderer/#colorStops) referenced in the renderer.
75
+ */
76
+ export interface HeatmapRampStop {
77
+ /**
78
+ * The color of the pixel corresponding to the appropriate pixel `ratio`. This value is typically
79
+ * between `0` and `1`.
80
+ */
81
+ color: Color;
82
+ /**
83
+ * The ratio of a pixel's intensity value to the minPixelIntensity of the renderer.
84
+ * The ratio of each pixel is matched to the corresponding color.
85
+ */
86
+ ratio: number;
87
+ /**
88
+ * The label of the color stop displayed in the legend. Typically only the first and last
89
+ * stops have labels.
90
+ */
91
+ label: string;
92
+ }
93
+
94
+ /**
95
+ * Properties defining the scheme of an ImageSymbolTableElementInfo. This applies only to
96
+ * ImageryLayer renderers.
97
+ */
98
+ export interface ImageSymbolTableElementInfo {
99
+ /** The label of the category corresponding to the given image. */
100
+ label?: StretchMultibandTitle | string | null;
101
+ /** The data URI of the image representing a colored pixel in the renderer. */
102
+ src: string;
103
+ /** A preview of the image as displayed in the legend. */
104
+ preview?: HTMLElement | null;
105
+ /** The aria-label for the preview element. */
106
+ previewAriaLabel?: RendererTitle | DotDensityTitle | string | null;
107
+ /** The opacity of the image (`0` to `1`). */
108
+ opacity?: number | null;
109
+ /** The width of the image in pixels. */
110
+ width?: number | null;
111
+ /** The height of the image in pixels. */
112
+ height?: number | null;
113
+ }
114
+
115
+ /**
116
+ * An object that defines a layer, optional sublayer IDs, and a custom title for legend display.
117
+ * Use this to specify which layers and sublayers appear in the legend and how they are labeled with
118
+ * [layerInfos](https://developers.arcgis.com/javascript/latest/references/core/legend/LegendContent/#layerInfos).
119
+ */
120
+ export interface LayerInfo {
121
+ /** A layer to display in the legend. */
122
+ layer: Layer | Sublayer;
123
+ /**
124
+ * Specifies a title for the layer to display above its symbols and descriptions.
125
+ * If no title is specified the service name is used.
126
+ */
127
+ title: string;
128
+ /**
129
+ * The IDs of the sublayers for which to display legend information.
130
+ * Only applicable if the `layer` is a [MapImageLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/), [SubtypeGroupLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/)
131
+ * or [WMSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WMSLayer/).
132
+ */
133
+ sublayerIds?: number[];
134
+ }
135
+
136
+ /** The allowed color names used in multilayer stretch legends. */
137
+ export type LegendColorName = "red" | "green" | "blue";
138
+
139
+ /** Represents the allowed values for the [LegendContent.state](https://developers.arcgis.com/javascript/latest/references/core/legend/LegendContent/#state) property. */
140
+ export type LegendContentState = "ready" | "disabled";
141
+
142
+ /** Properties defining the scheme of each supported [legend element](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
143
+ export type LegendElement = SymbolTableElement | ColorRampElement | StretchRampElement | OpacityRampElement | SizeRampElement | HeatmapRampElement | RelationshipRampElement | UnivariateColorSizeRampElement | PieChartRampElement;
144
+
145
+ /** Describes the schema of the OpacityRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
146
+ export interface OpacityRampElement {
147
+ /** The type of this element is always `opacity-ramp`. */
148
+ type: "opacity-ramp";
149
+ /** The title of the opacity ramp as displayed in the legend. */
150
+ title?: RampTitle | string | null;
151
+ /**
152
+ * The
153
+ * individual opacity stops rendered in the legend that correspond to the opacity visual variable in the renderer.
154
+ */
155
+ infos: OpacityRampStop[];
156
+ /** A preview of the element as displayed in the legend. */
157
+ preview?: HTMLElement | null;
158
+ }
159
+
160
+ /**
161
+ * Describes the schema of the OpacityRampStop element. Each OpacityRampStop represents a single stop of the
162
+ * [OpacityVariable](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/OpacityVariable/) referenced in the renderer. The opacity value of
163
+ * each stop is indicated in the [alpha](https://developers.arcgis.com/javascript/latest/references/core/Color/#a) property of the `color` object.
164
+ */
165
+ export interface OpacityRampStop {
166
+ /** The value of the opacity visual variable [stop](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/OpacityVariable/#stops). */
167
+ value: number;
168
+ /**
169
+ * The color of the visual variable [stop](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/OpacityVariable/#stops).
170
+ * The opacity corresponding to the given `value` is indicated in the [alpha](https://developers.arcgis.com/javascript/latest/references/core/Color/#a) property of the color object.
171
+ */
172
+ color: Color;
173
+ /** The label in the legend describing features with the given `color` and `value`. */
174
+ label: string;
175
+ }
176
+
177
+ /** Describes the schema of the PieChartRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
178
+ export interface PieChartRampElement {
179
+ /** The type of this element is always `pie-chart-ramp`. */
180
+ type: "pie-chart-ramp";
181
+ /** The title of the color ramp as displayed in the legend. */
182
+ title?: RendererTitle | string | null;
183
+ /**
184
+ * The
185
+ * individual color stops rendered in the legend that correspond to the color visual variable in the renderer.
186
+ */
187
+ infos: SymbolTableElementInfo[];
188
+ /** A preview of the element as displayed in the legend. */
189
+ preview?: HTMLElement | null;
190
+ }
191
+
192
+ /**
193
+ * Describes the schema of the RelationshipLabels element. These labels are rendered in the corners of the square
194
+ * that represent the relationship renderer in the legend.
195
+ */
196
+ export interface RelationshipLabels {
197
+ /**
198
+ * The label corresponding with the top corner of the legend if the focus
199
+ * is set to `HH`. This
200
+ * describes values that are considered high in both field 1 and field 2 (HH).
201
+ */
202
+ top: string;
203
+ /**
204
+ * The label corresponding with the bottom corner of the legend if the focus is
205
+ * set to `HH`. This
206
+ * describes values that are considered low in both field 1 and field 2 (LL).
207
+ */
208
+ bottom: string;
209
+ /**
210
+ * The label corresponding with the left corner of the legend (if the focus
211
+ * is set to `HH`). This describes features where the value of field 1 is high and the value of field 2 is low (HL).
212
+ */
213
+ left: string;
214
+ /** The label corresponding with the right corner of the legend. */
215
+ right: string;
216
+ }
217
+
218
+ /** Describes the schema of the RelationshipRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
219
+ export interface RelationshipRampElement {
220
+ /** The type of this element is always `relationship-ramp`. */
221
+ type: "relationship-ramp";
222
+ /**
223
+ * The number of classes for each field comprising the renderer. Can either
224
+ * be 2, 3, or 4.
225
+ */
226
+ numClasses: number;
227
+ /** Determines the orientation of the Legend. Values can be `HH`, `HL`, `LH`, `LL`. */
228
+ focus: RelationshipFocus;
229
+ /** A 2-dimensional array of colors as displayed in the legend grid. */
230
+ colors: Color[][];
231
+ /**
232
+ * The labels for
233
+ * each corner of the legend.
234
+ */
235
+ labels: RelationshipLabels;
236
+ /**
237
+ * The rotation of the legend in degrees (0-360). `0` degrees displays the legend
238
+ * as a square with the `LL` cell in the bottom left corner of the legend and the `HH` cell in the top right corner.
239
+ */
240
+ rotation: number;
241
+ /** The title of the renderer as displayed in the legend. */
242
+ title?: string | null;
243
+ /** Info objects associated with the relationship renderer. */
244
+ infos?: any[] | null;
245
+ }
246
+
247
+ /** Describes the schema of the RampTitle element. */
248
+ export interface RampTitle {
249
+ /**
250
+ * The field name used in a visual variable of a renderer. This is used in the
251
+ * generated title of the corresponding ramp in the legend.
252
+ */
253
+ field?: string | null;
254
+ /**
255
+ * If provided, the normalization field name used in a visual variable of a renderer.
256
+ * This is used in the generated title of the corresponding ramp in the legend.
257
+ */
258
+ normField?: string | null;
259
+ /** If `true`, the legend formats to display the field and normalization field as a ratio. */
260
+ ratio: boolean;
261
+ /** If `true`, the legend formats to display the field and normalization field as a percentage. */
262
+ ratioPercent: boolean;
263
+ /** If `true`, the legend formats to display the field and normalization field as a percentage of total. */
264
+ ratioPercentTotal: boolean;
265
+ }
266
+
267
+ /** Describes the schema of the RendererTitle element. */
268
+ export interface RendererTitle {
269
+ /** The title of the renderer as displayed in the legend. */
270
+ title?: string | null;
271
+ /**
272
+ * The field name used in the renderer. This is used in the
273
+ * generated title of the renderer in the legend.
274
+ */
275
+ field?: string | null;
276
+ /**
277
+ * If a normalization field is provided to the renderer, this field
278
+ * is also used in the generated title for the renderer in the legend.
279
+ */
280
+ normField?: string | null;
281
+ /**
282
+ * Indicates if a percentage is used in the normalization of the
283
+ * renderer. This is used to create a more readable legend for that scenario.
284
+ */
285
+ normByPct?: boolean | null;
286
+ }
287
+
288
+ /** Describes the schema of the SizeRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
289
+ export interface SizeRampElement {
290
+ /** The type of this element is always `size-ramp`. */
291
+ type: "size-ramp";
292
+ /** The title of the size ramp as displayed in the legend. */
293
+ title?: ClusterTitle | RampTitle | string | null;
294
+ /**
295
+ * The
296
+ * individual size stops rendered in the legend that correspond to the size visual variable in the renderer.
297
+ */
298
+ infos: SizeRampStop[];
299
+ /** The theme of this element. */
300
+ theme?: "spike" | null;
301
+ }
302
+
303
+ /**
304
+ * Describes the schema of the SizeRampStop element. Each SizeRampStop represents a single stop of the
305
+ * [SizeVariable](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/SizeVariable/) referenced in the renderer.
306
+ */
307
+ export interface SizeRampStop {
308
+ /** The label in the legend describing features with the given `symbol` and `value`. */
309
+ label: string;
310
+ /** The value of the size visual variable [stop](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/SizeVariable/#stops). */
311
+ value?: any | null;
312
+ /** The symbol corresponding to the value of the stop in the renderer. */
313
+ symbol: SymbolUnion;
314
+ /** The size of the visual variable [stop](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/SizeVariable/#stops) in points. */
315
+ size?: number | {
316
+ width: number;
317
+ height: number;
318
+ } | null;
319
+ /** The width of the outline in points. */
320
+ outlineSize?: number | null;
321
+ /** The HTML element rendered in the legend representing features with the given value. */
322
+ preview?: HTMLElement | null;
323
+ }
324
+
325
+ /** Describes the schema of the StretchMultibandTitle element. */
326
+ export interface StretchMultibandTitle {
327
+ /** The color name. */
328
+ colorName: string;
329
+ /** The band name. */
330
+ bandName: string;
331
+ }
332
+
333
+ /** Describes the schema of the StretchRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
334
+ export interface StretchRampElement {
335
+ /** The type of this element is always `stretch-ramp`. */
336
+ type: "stretch-ramp";
337
+ /** The title of the color ramp as displayed in the legend. */
338
+ title?: RampTitle | string | null;
339
+ /**
340
+ * The
341
+ * individual color stops rendered in the legend that correspond to the color visual variable in the renderer.
342
+ */
343
+ infos: ColorRampStop[];
344
+ /** A preview of the element as displayed in the legend. */
345
+ preview?: HTMLElement | null;
346
+ }
347
+
348
+ /**
349
+ * Describes the schema of the SymbolTableElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). This
350
+ * legend element is used for [UniqueValueRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/UniqueValueRenderer/) and
351
+ * [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/).
352
+ */
353
+ export interface SymbolTableElement {
354
+ /** The type of this element is always `symbol-table`. */
355
+ type: "symbol-table";
356
+ /** The title of the renderer as displayed in the legend. */
357
+ title?: RendererTitle | DotDensityTitle | string | null;
358
+ /**
359
+ * An
360
+ * array of each symbol/category/break rendered for the symbol table. For example, this may be individual
361
+ * breaks for a ClassBreaksRenderer, or unique values for a UniqueValueRenderer.
362
+ */
363
+ infos: SymbolTableElementType[];
364
+ /**
365
+ * Only used for renderers set to ImageryLayers. Indicates the type of
366
+ * renderer set on the layer (e.g. `stretched` or `Unique Values`).
367
+ */
368
+ legendType?: string | null;
369
+ }
370
+
371
+ /** Properties defining the scheme of the SymbolTableElementInfo. */
372
+ export interface SymbolTableElementInfo {
373
+ /** The symbol for the corresponding `value` in the legend. */
374
+ symbol: SymbolUnion;
375
+ /** The label of the symbol element as displayed in the legend. */
376
+ label?: RampTitle | string | null;
377
+ /** The value corresponding with the given `symbol` in the legend. */
378
+ value?: any;
379
+ /** The size of the symbol in points. */
380
+ size?: number | null;
381
+ /** A preview of the symbol element as displayed in the legend. */
382
+ preview?: HTMLElement | null;
383
+ /** The aria-label for the preview element. */
384
+ previewAriaLabel?: RendererTitle | DotDensityTitle | string | null;
385
+ }
386
+
387
+ /** Represents the allowed element types in a [legend element](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements) symbol table. */
388
+ export type SymbolTableElementType = ImageSymbolTableElementInfo | SymbolTableElementInfo | LegendElement;
389
+
390
+ /** Describes the schema of the UnivariateColorSizeRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/#legendElements). */
391
+ export interface UnivariateColorSizeRampElement {
392
+ /** The type of this element is `univariate-above-and-below-ramp` or `univariate-color-size-ramp`. */
393
+ type: "univariate-above-and-below-ramp" | "univariate-color-size-ramp";
394
+ /** The title of the color ramp as displayed in the legend. */
395
+ title?: ClusterTitle | RampTitle | string | null;
396
+ /**
397
+ * The
398
+ * individual color stops rendered in the legend that correspond to the color visual variable in the renderer.
399
+ */
400
+ infos: (SizeRampElement | ColorRampElement)[];
401
+ /** A preview of the element as displayed in the legend. */
402
+ preview?: HTMLElement | null;
403
+ }
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{getAssetUrl as t}from"../../assets.js";function s(){return n??=(async()=>{const s=await(import("../../chunks/i3s.js"));return await s.default({locateFile:s=>t(`esri/libs/i3s/${s}`)})})(),n}function i(){n=null}let n;export{i as cleanup,s as get};
2
+ import{getAssetUrl as t}from"../../assets.js";function s(){return r??=(async()=>{try{const s=await(import("../../chunks/i3s.js"));return await s.default({locateFile:s=>t(`esri/libs/i3s/${s}`)})}catch(s){throw i(),s}})(),r}function i(){r=null}let r;export{i as cleanup,s as get};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "5.2.0-next.120",
3
+ "version": "5.2.0-next.121",
4
4
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -20,13 +20,13 @@
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
22
  "@amcharts/amcharts5": "~5.20.7",
23
- "@arcgis/toolkit": "5.2.0-next.120",
23
+ "@arcgis/toolkit": "5.2.0-next.121",
24
24
  "@esri/arcgis-html-sanitizer": "~4.1.0",
25
- "@esri/calcite-components": "^5.2.0-next.73",
26
- "@vaadin/grid": "~25.2.11",
25
+ "@esri/calcite-components": "^5.2.0-next.80",
26
+ "@vaadin/grid": "~25.3.0",
27
27
  "@zip.js/zip.js": "~2.17.0",
28
28
  "luxon": "~3.7.2",
29
- "marked": "~18.0.13",
29
+ "marked": "~18.0.14",
30
30
  "tslib": "^2.8.1"
31
31
  }
32
32
  }