@arcgis/core 5.0.0-next.70 → 5.0.0-next.72

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 (636) hide show
  1. package/Ground.js +1 -1
  2. package/analysis/Dimension/types.d.ts +5 -1
  3. package/analysis/DistanceMeasurementAnalysis.d.ts +22 -3
  4. package/analysis/ElevationProfile/types.d.ts +10 -2
  5. package/analysis/ShadowCast/DiscreteOptions.d.ts +4 -0
  6. package/analysis/ShadowCast/MinDurationOptions.d.ts +7 -0
  7. package/analysis/ShadowCast/TotalDurationOptions.d.ts +4 -0
  8. package/analysis/ShadowCastAnalysis.d.ts +51 -8
  9. package/analysis/Slice/types.d.ts +5 -1
  10. package/analysis/VolumeMeasurement/types.d.ts +5 -1
  11. package/analysis/VolumeMeasurement/volumeMeasurementConfiguration.js +1 -1
  12. package/analysis/types.d.ts +39 -7
  13. package/applications/Components/QuantityFormatter.js +1 -1
  14. package/applications/Components/analysisUtils.d.ts +1 -2
  15. package/applications/Components/analysisUtils.js +1 -1
  16. package/applications/Components/imageryUtils.d.ts +2 -2
  17. package/applications/Components/testUtils.d.ts +2 -0
  18. package/applications/KnowledgeStudio/dataModelVisualization.d.ts +1 -0
  19. package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +59 -13
  20. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +1 -1
  21. package/applications/PortalApp/layerUtils.d.ts +1 -0
  22. package/applications/Urban/LineImagePattern3D.d.ts +2 -0
  23. package/applications/Urban/imagePatternUtils.d.ts +4 -0
  24. package/arcade.d.ts +20 -11
  25. package/assets/esri/core/workers/RemoteClient.js +1 -1
  26. package/assets/esri/core/workers/chunks/00631252e8bd4a456253.js +1 -0
  27. package/assets/esri/core/workers/chunks/{322085d63719da6e443c.js → 0c02b084ae30ba138c5d.js} +1 -1
  28. package/assets/esri/core/workers/chunks/0f2f1731543ed21db0a8.js +1 -0
  29. package/assets/esri/core/workers/chunks/1b201d83e9ba7d8615c0.js +1 -0
  30. package/assets/esri/core/workers/chunks/1b284a6f32effe28aafc.js +1 -0
  31. package/assets/esri/core/workers/chunks/1bd5b421152fb0f46aa5.js +37 -0
  32. package/assets/esri/core/workers/chunks/{2e2c47f8a80ee9234350.js → 1d8fc0239c907ff5d1e8.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{b4f944ef6c174b20b619.js → 23545a9adc75564ecf6e.js} +1 -1
  34. package/assets/esri/core/workers/chunks/261b5a5db022ef580a1b.js +1 -0
  35. package/assets/esri/core/workers/chunks/2bd59ece927b5c1c9f80.js +1 -0
  36. package/assets/esri/core/workers/chunks/{37e46461da3000949a26.js → 2d8b8880e6bff4414e95.js} +1 -1
  37. package/assets/esri/core/workers/chunks/2fba74bae99ece15706c.js +1 -0
  38. package/assets/esri/core/workers/chunks/2fc64404bc42b7250086.js +1 -0
  39. package/assets/esri/core/workers/chunks/33cbfc34d5e2fc1a1a4f.js +1 -0
  40. package/assets/esri/core/workers/chunks/35887be3e4a218268d99.js +1 -0
  41. package/assets/esri/core/workers/chunks/3596ae4cb2bd2f3f35d9.js +1 -0
  42. package/assets/esri/core/workers/chunks/37814bf052ab59a5fb9e.js +1 -0
  43. package/assets/esri/core/workers/chunks/4e0d299054da075e5103.js +1 -0
  44. package/assets/esri/core/workers/chunks/50186162cd6d7c2ef0f9.js +1 -0
  45. package/assets/esri/core/workers/chunks/543ea1a0e7a6f1d267d1.js +1 -0
  46. package/assets/esri/core/workers/chunks/{dbfb00fb28b8b9f687a1.js → 5bbf20135c87a1cc8a18.js} +1 -1
  47. package/assets/esri/core/workers/chunks/5ed31ec0f53c1d55c4ea.js +1 -0
  48. package/assets/esri/core/workers/chunks/{c448540065690cac0744.js → 6087d5dc40bb62ec48c8.js} +1 -1
  49. package/assets/esri/core/workers/chunks/6309e8beedf5e7f2a50f.js +1 -0
  50. package/assets/esri/core/workers/chunks/{1a45b4b4803337f4b99f.js → 64985e9b6e2edb3ceb37.js} +38 -38
  51. package/assets/esri/core/workers/chunks/65475370cc4ebe2aa657.js +1 -0
  52. package/assets/esri/core/workers/chunks/65d9f3bc88472008443a.js +1 -0
  53. package/assets/esri/core/workers/chunks/6ab0f16f5c8806855c47.js +1 -0
  54. package/assets/esri/core/workers/chunks/7e37a3005f2ad2c0a918.js +1 -0
  55. package/assets/esri/core/workers/chunks/7f2496a59379e1a61ee5.js +1 -0
  56. package/assets/esri/core/workers/chunks/88379cd8e8e1c7ae3c7c.js +1 -0
  57. package/assets/esri/core/workers/chunks/{244006d4b0547d574401.js → 935a6dccb88557f98189.js} +143 -140
  58. package/assets/esri/core/workers/chunks/{a808be466812db51813d.js → 9382af94bf6bf1b09c8c.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{8e83c133b201b9b61e70.js → 979bc762ccc0d3fc2467.js} +1 -1
  60. package/assets/esri/core/workers/chunks/9c417f4dfb19e4c4bd71.js +1 -0
  61. package/assets/esri/core/workers/chunks/a554ad74be03b1ed1a72.js +1 -0
  62. package/assets/esri/core/workers/chunks/{e6e837e43b9348050832.js → a67c86f4254807eb6a05.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{1ec1a1997b5577619040.js → b211b53aa7616a093b90.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{866477acdf03b8a40bc9.js → bd1d159dce4094694c93.js} +1 -1
  65. package/assets/esri/core/workers/chunks/c31babdb59382b6bc007.js +1 -0
  66. package/assets/esri/core/workers/chunks/c8182c2cbb0ead202af6.js +1 -0
  67. package/assets/esri/core/workers/chunks/ce218c10b209b58e04fd.js +1 -0
  68. package/assets/esri/core/workers/chunks/ceef586d8cc8adc4d249.js +1 -0
  69. package/assets/esri/core/workers/chunks/d13e8ce9270dc0662b87.js +1 -0
  70. package/assets/esri/core/workers/chunks/db28d00171240b4fffac.js +1 -0
  71. package/assets/esri/core/workers/chunks/{8d6641d0f7c93f83c414.js → db9c7182847e8f96ffe3.js} +1 -1
  72. package/assets/esri/core/workers/chunks/dbd382546837aa7709e2.js +1 -0
  73. package/assets/esri/core/workers/chunks/{6c9dac4a869742cc2718.js → e246b256347a281c13fd.js} +1 -1
  74. package/assets/esri/core/workers/chunks/ea6f897f21b4f30e8e99.js +1 -0
  75. package/assets/esri/core/workers/chunks/{a10c6dd3bb8b3602de68.js → ee175fd4ec706f7878c0.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{e8a3ad00936f2ccaf362.js → f0a667d8d33bc51c795d.js} +1 -1
  77. package/assets/esri/core/workers/chunks/f65b27fc0bc2f242aac7.js +1 -0
  78. package/assets/esri/core/workers/chunks/{29b09db309ff75fb3e97.js → f65d26588d2d80680a26.js} +1 -1
  79. package/assets/esri/core/workers/chunks/f72e6c903f55ce95a6c5.js +1 -0
  80. package/assets/esri/core/workers/chunks/{5dd5be91038df8902dc4.js → f7dfbf24859f4ac2421b.js} +1 -1
  81. package/assets/esri/core/workers/chunks/f893e10d660e819cca45.js +1 -0
  82. package/assets/esri/core/workers/chunks/{878010ca23da0bca9405.js → fb1ed5ef2f95ab093346.js} +1 -1
  83. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  84. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  85. package/chunks/lyr3DMain.js +1 -1
  86. package/config.js +1 -1
  87. package/core/Version.d.ts +11 -2
  88. package/core/accessorSupport/types.d.ts +35 -5
  89. package/core/quantityFormatUtils.js +1 -1
  90. package/core/sql/types.d.ts +226 -31
  91. package/core/types.d.ts +24 -4
  92. package/core/workers/registry.js +1 -1
  93. package/editing/sharedTemplates/types.d.ts +1 -0
  94. package/editing/types.d.ts +2 -0
  95. package/effects/types.d.ts +1 -0
  96. package/form/ExpressionInfo.d.ts +1 -1
  97. package/form/FormTemplate.d.ts +4 -4
  98. package/form/elements/GroupElement.d.ts +1 -1
  99. package/form/elements/RelationshipElement.d.ts +3 -3
  100. package/form/elements/inputs/attachments/AttachmentInput.d.ts +2 -1
  101. package/form/elements/inputs/attachments/AudioInput.d.ts +1 -0
  102. package/form/elements/inputs/attachments/DocumentInput.d.ts +1 -0
  103. package/form/elements/inputs/attachments/ImageInput.d.ts +1 -0
  104. package/form/elements/inputs/attachments/Input.d.ts +5 -1
  105. package/form/elements/inputs/attachments/SignatureInput.d.ts +1 -0
  106. package/form/elements/inputs/attachments/VideoInput.d.ts +1 -0
  107. package/form/elements/inputs/attachments/types.d.ts +12 -3
  108. package/form/elements/inputs.d.ts +2 -2
  109. package/form/types.d.ts +3 -0
  110. package/geometry/geometryEngineTypes.d.ts +49 -9
  111. package/geometry/operators/types.d.ts +29 -4
  112. package/geometry/spatialReferenceEllipsoidUtils.js +1 -1
  113. package/geometry/support/MeshVertexAttributes.d.ts +21 -2
  114. package/geometry/support/meshUtils/types.d.ts +126 -18
  115. package/geometry/types.d.ts +37 -6
  116. package/ground/NavigationConstraint.d.ts +3 -0
  117. package/identity/IdentityManagerBase.d.ts +153 -27
  118. package/interfaces.d.ts +27 -27
  119. package/intl/date.d.ts +5 -0
  120. package/intl/locale.d.ts +1 -0
  121. package/intl/messages.d.ts +12 -2
  122. package/intl/number.d.ts +5 -0
  123. package/intl/substitute.d.ts +28 -5
  124. package/intl/t9n.d.ts +13 -2
  125. package/kernel.js +1 -1
  126. package/layers/GaussianSplatLayer.d.ts +87 -6
  127. package/layers/ImageryTileLayer.d.ts +8 -8
  128. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  129. package/layers/LinkChartLayer.d.ts +1 -1
  130. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  131. package/layers/RouteLayer.d.ts +3 -3
  132. package/layers/buildingSublayers/utils.d.ts +1 -0
  133. package/layers/effects/types.d.ts +12 -2
  134. package/layers/graphics/editingSupport.d.ts +202 -38
  135. package/layers/graphics/sources/ParquetSource.d.ts +23 -4
  136. package/layers/knowledgeGraph/IdTypePair.d.ts +15 -3
  137. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.d.ts +61 -9
  138. package/layers/knowledgeGraph/LayoutMode.d.ts +1 -0
  139. package/layers/knowledgeGraph/dataModelVisualizationUtils.d.ts +6 -0
  140. package/layers/media/types.d.ts +25 -4
  141. package/layers/mixins/ArcGISImageService.d.ts +8 -9
  142. package/layers/mixins/ArcGISMapService.d.ts +5 -1
  143. package/layers/mixins/EditBusLayer.d.ts +3 -5
  144. package/layers/mixins/ImageryTileMixin.d.ts +2 -4
  145. package/layers/mixins/RasterJobHandlerMixin.js +1 -1
  146. package/layers/mixins/ScaleRange.d.ts +11 -2
  147. package/layers/mixins/properties/ILayerWithGetFeatureTitle.d.ts +11 -2
  148. package/layers/mixins/properties/ILayerWithGetField.d.ts +6 -1
  149. package/layers/ogc/ogcFeatureUtils.d.ts +2 -0
  150. package/layers/ogc/types.d.ts +55 -10
  151. package/layers/ogc/wcsUtils.d.ts +1 -0
  152. package/layers/ogc/wfsUtils.d.ts +8 -17
  153. package/layers/orientedImagery/core/ElevationSourceDefinitions.d.ts +6 -1
  154. package/layers/orientedImagery/transformations/types.d.ts +117 -21
  155. package/layers/orientedImagery/types.d.ts +37 -6
  156. package/layers/pointCloudFilters/typeUtils.d.ts +1 -0
  157. package/layers/raster/datasets/TIFFRaster.js +1 -1
  158. package/layers/raster/datasets/pixelReader.d.ts +2 -0
  159. package/layers/raster/datasets/types.d.ts +1 -0
  160. package/layers/raster/datasets/wcsCapabilitiesParser.d.ts +86 -17
  161. package/layers/raster/datasets/wcsCoverageParser.d.ts +601 -115
  162. package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
  163. package/layers/raster/formats/JpgPlus.js +1 -1
  164. package/layers/raster/formats/RasterCodec.js +1 -1
  165. package/layers/raster/formats/Raw.js +1 -1
  166. package/layers/raster/formats/TiffDecoder.js +1 -1
  167. package/layers/raster/functions/changeDetectionUtils.d.ts +1 -0
  168. package/layers/raster/functions/creators/createAppearenceFunctions.d.ts +82 -15
  169. package/layers/raster/functions/creators/createBandIndexFunctions.d.ts +380 -70
  170. package/layers/raster/functions/creators/createChangeFunctions.d.ts +11 -2
  171. package/layers/raster/functions/creators/createConversionFunctions.d.ts +18 -3
  172. package/layers/raster/functions/creators/createDataManagementFunctions.d.ts +179 -35
  173. package/layers/raster/functions/creators/createLocalFunctions.d.ts +47 -9
  174. package/layers/raster/functions/creators/createMultiRasterAnalysisFunctions.d.ts +47 -9
  175. package/layers/raster/functions/creators/createStatisticsFunctions.d.ts +42 -8
  176. package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +72 -11
  177. package/layers/raster/functions/focalStatUtils.d.ts +1 -0
  178. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  179. package/layers/raster/functions/types.d.ts +29 -5
  180. package/layers/raster/types.d.ts +498 -6
  181. package/layers/support/BuildingFilterBlock.d.ts +19 -3
  182. package/layers/support/BuildingFilterMode.d.ts +1 -0
  183. package/layers/support/BuildingFilterModeSolid.d.ts +7 -1
  184. package/layers/support/BuildingFilterModeWireFrame.d.ts +17 -3
  185. package/layers/support/BuildingFilterModeXRay.d.ts +7 -1
  186. package/layers/support/CodedValue.d.ts +16 -3
  187. package/layers/support/ControlPoint.d.ts +17 -3
  188. package/layers/support/EditFieldsInfo.d.ts +21 -4
  189. package/layers/support/EditingCapabilities.d.ts +36 -7
  190. package/layers/support/ElevationQuery.js +1 -1
  191. package/layers/support/ElevationTileData.d.ts +25 -5
  192. package/layers/support/FieldFormat.d.ts +1 -0
  193. package/layers/support/GeometryDescriptor.js +1 -1
  194. package/layers/support/GeoreferenceBase.d.ts +1 -0
  195. package/layers/support/KMLMapImage.d.ts +13 -2
  196. package/layers/support/LabelExpressionInfo.d.ts +9 -1
  197. package/layers/support/MosaicRule.d.ts +41 -1
  198. package/layers/support/ParquetGeometryEncodingLocation.d.ts +13 -2
  199. package/layers/support/ParquetGeometryEncodingWkb.d.ts +7 -0
  200. package/layers/support/PixelBlock.d.ts +9 -4
  201. package/layers/support/PurgeOptions.d.ts +15 -2
  202. package/layers/support/RasterInfo.d.ts +1 -2
  203. package/layers/support/RasterJobHandler.js +1 -1
  204. package/layers/support/RasterWorker.js +1 -1
  205. package/layers/support/SpriteSource.d.ts +28 -6
  206. package/layers/support/layerUtils.d.ts +4 -0
  207. package/layers/support/rasterFunctionConstants.d.ts +39 -0
  208. package/layers/support/types.d.ts +423 -227
  209. package/layers/types.d.ts +771 -196
  210. package/layers/video/types.d.ts +72 -14
  211. package/layers/voxel/VoxelColorStop.d.ts +17 -3
  212. package/layers/voxel/VoxelFormat.d.ts +15 -2
  213. package/layers/voxel/VoxelIsosurface.d.ts +17 -2
  214. package/layers/voxel/VoxelOpacityStop.d.ts +8 -1
  215. package/layers/voxel/VoxelRangeFilter.d.ts +12 -2
  216. package/layers/voxel/VoxelUniqueValue.d.ts +19 -3
  217. package/layers/wms/types.d.ts +104 -19
  218. package/layers/wmts/types.d.ts +1 -0
  219. package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
  220. package/linkChart/OrganicLayoutSettings.d.ts +1 -1
  221. package/linkChart/types.d.ts +2 -0
  222. package/networks/UtilityNetworkTraceAnalysis.d.ts +61 -10
  223. package/networks/support/jsonTypes.d.ts +373 -71
  224. package/networks/support/typeUtils.d.ts +10 -0
  225. package/networks/support/utils.d.ts +30 -6
  226. package/package.json +1 -1
  227. package/popup/content/types.d.ts +1 -0
  228. package/popup/types.d.ts +33 -5
  229. package/portal/jsonTypes.d.ts +231 -39
  230. package/portal/support/resourceUtils.d.ts +49 -9
  231. package/portal/types.d.ts +98 -14
  232. package/renderers/FlowRenderer.js +1 -1
  233. package/renderers/RasterStretchRenderer.d.ts +1 -1
  234. package/renderers/support/AuthoringInfoClassBreakInfo.d.ts +4 -0
  235. package/renderers/support/AuthoringInfoFieldInfo.d.ts +15 -2
  236. package/renderers/support/DotDensityLegendOptions.d.ts +4 -0
  237. package/renderers/support/HeatmapLegendOptions.d.ts +8 -0
  238. package/renderers/support/OthersCategory.d.ts +6 -0
  239. package/renderers/support/RendererLegendOptions.d.ts +14 -2
  240. package/renderers/support/pointCloud/ColorClassBreakInfo.d.ts +13 -1
  241. package/renderers/support/pointCloud/ColorModulation.d.ts +6 -0
  242. package/renderers/support/pointCloud/ColorUniqueValueInfo.d.ts +19 -3
  243. package/renderers/support/pointCloud/PointSizeAlgorithm.d.ts +1 -0
  244. package/renderers/support/pointCloud/PointSizeFixedSizeAlgorithm.d.ts +14 -2
  245. package/renderers/support/pointCloud/PointSizeSplatAlgorithm.d.ts +9 -1
  246. package/renderers/support/pointCloud/types.d.ts +7 -1
  247. package/renderers/support/raster/types.d.ts +22 -2
  248. package/renderers/support/types.d.ts +29 -2
  249. package/renderers/types.d.ts +47 -4
  250. package/renderers/visualVariables/support/SizeVariableLegendOptions.d.ts +4 -0
  251. package/renderers/visualVariables/support/VisualVariableLegendOptions.d.ts +9 -1
  252. package/request/types.d.ts +152 -24
  253. package/rest/featureService/FeatureService.d.ts +1 -1
  254. package/rest/featureService/types.d.ts +426 -80
  255. package/rest/geometryService/types.d.ts +23 -1
  256. package/rest/geoprocessor/GPOptions.d.ts +5 -5
  257. package/rest/geoprocessor/execute.d.ts +6 -0
  258. package/rest/imageService.d.ts +5 -5
  259. package/rest/knowledgeGraph/DataModel.d.ts +2 -2
  260. package/rest/knowledgeGraph/GraphAnyValue.d.ts +1 -0
  261. package/rest/knowledgeGraph/GraphDataModelSingletonOperationResult.d.ts +12 -2
  262. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.d.ts +1 -1
  263. package/rest/knowledgeGraph/GraphDeletePropertyResult.d.ts +1 -1
  264. package/rest/knowledgeGraph/GraphQuery.d.ts +1 -1
  265. package/rest/knowledgeGraph/GraphSearch.d.ts +3 -3
  266. package/rest/knowledgeGraph/GraphSearchStreaming.d.ts +3 -3
  267. package/rest/knowledgeGraph/SearchIndex.d.ts +1 -1
  268. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsPathFilter.d.ts +3 -3
  269. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsResultJSON.d.ts +151 -29
  270. package/rest/knowledgeGraph/toolService/findPaths/CIMKGTraversalDirection.d.ts +1 -1
  271. package/rest/knowledgeGraph/wasmInterface/KnowledgeWasmInterface.d.ts +1 -0
  272. package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.d.ts +9 -0
  273. package/rest/knowledgeGraphService.d.ts +4 -4
  274. package/rest/lastMileDelivery/types.d.ts +5 -0
  275. package/rest/layerSources/DynamicDataLayer.d.ts +14 -2
  276. package/rest/layerSources/DynamicMapLayer.d.ts +14 -2
  277. package/rest/layerSources/JoinTableDataSource.d.ts +21 -2
  278. package/rest/layerSources/QueryTableDataSource.d.ts +33 -6
  279. package/rest/layerSources/RasterDataSource.d.ts +17 -3
  280. package/rest/layerSources/TableDataSource.d.ts +22 -4
  281. package/rest/networks/circuits/support/ExportCircuitsParameters.d.ts +8 -1
  282. package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +18 -3
  283. package/rest/networks/support/QueryNamedTraceConfigurationsParameters.d.ts +22 -4
  284. package/rest/print.d.ts +1 -1
  285. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  286. package/rest/support/AddressToLocationsParameters.d.ts +39 -3
  287. package/rest/support/AddressesToLocationsParameters.d.ts +14 -0
  288. package/rest/support/BaseImageMeasureResultValue.d.ts +21 -4
  289. package/rest/support/ClosestFacilityParameters.d.ts +3 -3
  290. package/rest/support/ClosestFacilitySolveResult.d.ts +2 -2
  291. package/rest/support/DirectionsString.d.ts +16 -3
  292. package/rest/support/ImageMeasureResultAngleValue.d.ts +12 -2
  293. package/rest/support/ImageMeasureResultAreaValue.d.ts +12 -2
  294. package/rest/support/ImageMeasureResultLengthValue.d.ts +12 -2
  295. package/rest/support/LocateSetting.d.ts +12 -2
  296. package/rest/support/LocateSettingBase.d.ts +14 -2
  297. package/rest/support/LocateSettingSource.d.ts +12 -2
  298. package/rest/support/LocateSettings.d.ts +22 -4
  299. package/rest/support/LocateSettingsOverrides.d.ts +42 -8
  300. package/rest/support/LocationToAddressParameters.d.ts +7 -0
  301. package/rest/support/NetworkAttribute.d.ts +11 -2
  302. package/rest/support/NetworkServiceDescription.d.ts +20 -4
  303. package/rest/support/QuantizationParameters.d.ts +9 -0
  304. package/rest/support/Query.d.ts +2 -2
  305. package/rest/support/RouteParameters.d.ts +2 -5
  306. package/rest/support/RouteResult.d.ts +1 -1
  307. package/rest/support/ServiceAreaParameters.d.ts +1 -1
  308. package/rest/support/ServiceAreaSolveResult.d.ts +2 -2
  309. package/rest/support/SuggestLocationsParameters.d.ts +10 -0
  310. package/rest/support/SuggestionCandidate.d.ts +14 -2
  311. package/rest/support/types.d.ts +54 -4
  312. package/rest/symbolService.d.ts +2 -2
  313. package/rest/types.d.ts +50 -5
  314. package/rest/versionManagement/gdbVersion/support/AlterVersionParameters.d.ts +22 -4
  315. package/rest/versionManagement/gdbVersion/support/PostResult.d.ts +6 -1
  316. package/rest/versionManagement/gdbVersion/support/ReconcileParameters.d.ts +10 -1
  317. package/rest/versionManagement/gdbVersion/support/ReconcileResult.d.ts +8 -1
  318. package/rest/versionManagement/support/CreateVersionParameters.d.ts +13 -2
  319. package/rest/versionManagement/support/GetVersionInfosParameters.d.ts +8 -1
  320. package/smartMapping/heuristics/types.d.ts +50 -6
  321. package/smartMapping/popup/types.d.ts +29 -5
  322. package/smartMapping/raster/renderers/types.d.ts +12 -1
  323. package/smartMapping/raster/support/adapters/types.d.ts +1 -0
  324. package/smartMapping/renderers/color.d.ts +9 -3
  325. package/smartMapping/renderers/dotDensity.d.ts +3 -1
  326. package/smartMapping/renderers/heatmap.d.ts +3 -1
  327. package/smartMapping/renderers/location.d.ts +3 -1
  328. package/smartMapping/renderers/opacity.d.ts +3 -1
  329. package/smartMapping/renderers/pieChart.d.ts +3 -1
  330. package/smartMapping/renderers/predominance.d.ts +3 -1
  331. package/smartMapping/renderers/relationship.d.ts +3 -1
  332. package/smartMapping/renderers/size.d.ts +23 -7
  333. package/smartMapping/renderers/support/rendererUtils.d.ts +3 -1
  334. package/smartMapping/renderers/type.d.ts +3 -1
  335. package/smartMapping/renderers/univariateColorSize.d.ts +3 -1
  336. package/smartMapping/statistics/types.d.ts +16 -4
  337. package/smartMapping/symbology/type.d.ts +5 -1
  338. package/smartMapping/symbology/types.d.ts +1303 -241
  339. package/smartMapping/types.d.ts +5 -0
  340. package/statistics/types.d.ts +13 -2
  341. package/support/revision.js +1 -1
  342. package/symbols/callouts/LineCallout3DBorder.d.ts +4 -0
  343. package/symbols/cim/types.d.ts +764 -111
  344. package/symbols/patterns/LinePattern3D.d.ts +1 -0
  345. package/symbols/patterns/Pattern3D.d.ts +1 -0
  346. package/symbols/support/IconSymbol3DLayerResource.d.ts +7 -0
  347. package/symbols/support/ObjectSymbol3DLayerResource.d.ts +7 -0
  348. package/symbols/support/OccludedVisibility.d.ts +3 -0
  349. package/symbols/support/Symbol3DAnchorPosition2D.d.ts +4 -0
  350. package/symbols/support/Symbol3DAnchorPosition3D.d.ts +5 -0
  351. package/symbols/support/Symbol3DFillMaterial.d.ts +4 -0
  352. package/symbols/support/Symbol3DHalo.d.ts +10 -0
  353. package/symbols/support/Symbol3DIconOutline.d.ts +10 -0
  354. package/symbols/support/Symbol3DMaterial.d.ts +6 -0
  355. package/symbols/support/Symbol3DOutline.d.ts +21 -2
  356. package/symbols/support/Symbol3DTextBackground.d.ts +12 -2
  357. package/symbols/support/symbolUtils.d.ts +5 -1
  358. package/symbols/support/types.d.ts +4 -0
  359. package/symbols/types.d.ts +67 -7
  360. package/tables/AttributeTableTemplate.d.ts +2 -2
  361. package/tables/elements/AttributeTableAttachmentElement.d.ts +1 -1
  362. package/tables/elements/AttributeTableElement.d.ts +2 -2
  363. package/tables/elements/AttributeTableFieldElement.d.ts +1 -1
  364. package/tables/elements/AttributeTableGroupElement.d.ts +1 -1
  365. package/tables/elements/AttributeTableRelationshipElement.d.ts +1 -1
  366. package/tables/support/FieldOrder.d.ts +16 -3
  367. package/tables/support/tablesUtils.d.ts +1 -0
  368. package/time/types.d.ts +4 -0
  369. package/versionManagement/VersionManagementService.d.ts +3 -6
  370. package/versionManagement/VersionManager.d.ts +126 -23
  371. package/versionManagement/VersioningState.d.ts +1 -1
  372. package/versionManagement/support/jsonTypes.d.ts +152 -30
  373. package/versionManagement/support/type.d.ts +2 -0
  374. package/versionManagement/versionAdapters/types.d.ts +25 -5
  375. package/views/2d/MapViewConstraints.d.ts +37 -5
  376. package/views/2d/analysis/AnalysisView2D.d.ts +5 -1
  377. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +28 -4
  378. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +28 -4
  379. package/views/2d/analysis/types.d.ts +5 -1
  380. package/views/2d/engine/flow/BrushFlow.js +1 -1
  381. package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
  382. package/views/2d/engine/flow/FlowStrategy.js +1 -1
  383. package/views/2d/engine/flow/FlowView2D.js +1 -1
  384. package/views/2d/engine/flow/ProcessingTimeEstimate.js +5 -0
  385. package/views/2d/engine/flow/animatedValues.js +5 -0
  386. package/views/2d/engine/flow/dataUtils.js +1 -1
  387. package/views/2d/engine/flow/flowPathsIO.js +5 -0
  388. package/views/2d/engine/flow/styles/AFlowResources.js +5 -0
  389. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  390. package/views/2d/engine/flow/styles/Particles.js +1 -1
  391. package/views/2d/engine/flow/styles/Stack.js +1 -1
  392. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  393. package/views/2d/engine/flow/utils.js +1 -1
  394. package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
  395. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  396. package/views/2d/layers/support/MediaLayerInteractionOptions.d.ts +1 -0
  397. package/views/2d/layers/types.d.ts +1 -0
  398. package/views/2d/types.d.ts +93 -6
  399. package/views/3d/analysis/AnalysisView3D.d.ts +5 -1
  400. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementController.js +1 -1
  401. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  402. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  403. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  404. package/views/3d/analysis/DirectLineMeasurement/types.d.ts +24 -4
  405. package/views/3d/analysis/LineOfSight/types.d.ts +1 -0
  406. package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +19 -3
  407. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  408. package/views/3d/analysis/VolumeMeasurement/types.d.ts +5 -1
  409. package/views/3d/analysis/support/measurementUtils.js +1 -1
  410. package/views/3d/analysis/types.d.ts +25 -3
  411. package/views/3d/constraints/AltitudeConstraint.d.ts +5 -0
  412. package/views/3d/constraints/ClipDistanceConstraint.d.ts +13 -2
  413. package/views/3d/constraints/Constraints.d.ts +26 -4
  414. package/views/3d/constraints/TiltConstraint.d.ts +5 -0
  415. package/views/3d/environment/SceneViewEnvironment.d.ts +9 -0
  416. package/views/3d/environment/types.d.ts +3 -0
  417. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  418. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  419. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  420. package/views/3d/interactive/visualElements/support/Segment.js +1 -1
  421. package/views/3d/layers/ImageryLayerView3D.js +1 -1
  422. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  423. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  424. package/views/3d/layers/support/MediaLayerInteractionOptions.d.ts +15 -2
  425. package/views/3d/layers/support/MediaLayerInteractionReshapeOptions.d.ts +3 -0
  426. package/views/3d/types.d.ts +52 -0
  427. package/views/3d/webgl/ManagedColorAttachment.d.ts +2 -0
  428. package/views/3d/webgl/ManagedDepthAttachment.d.ts +2 -0
  429. package/views/3d/webgl/ManagedFBO.d.ts +4 -0
  430. package/views/3d/webgl/ManagedFBOAttachment.d.ts +1 -0
  431. package/views/3d/webgl/ManagedFBOResource.d.ts +5 -0
  432. package/views/3d/webgl/types.d.ts +32 -6
  433. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +20 -22
  434. package/views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js +9 -5
  435. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +8 -6
  436. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  437. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  438. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  439. package/views/3d/webgl-engine/lib/Material.js +1 -1
  440. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  441. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  442. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  443. package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
  444. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  445. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  446. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +9 -8
  447. package/views/MapViewOrSceneView.d.ts +1 -0
  448. package/views/SceneView.d.ts +59 -0
  449. package/views/SceneView.js +1 -1
  450. package/views/View.d.ts +2 -2
  451. package/views/View2D.d.ts +37 -0
  452. package/views/View2D.js +1 -1
  453. package/views/Viewport2DMixin.d.ts +9 -6
  454. package/views/analysis/AnalysisView.d.ts +2 -0
  455. package/views/analysis/AreaMeasurement/types.d.ts +18 -3
  456. package/views/analysis/DistanceMeasurement/types.d.ts +13 -2
  457. package/views/analysis/ElevationProfile/ElevationProfileLineGroundComputation.js +1 -1
  458. package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
  459. package/views/analysis/types.d.ts +7 -1
  460. package/views/animation/easing.js +1 -1
  461. package/views/animation/types.d.ts +3 -4
  462. package/views/draw/CursorUpdateEvent.d.ts +24 -4
  463. package/views/draw/DrawAction.d.ts +4 -6
  464. package/views/draw/DrawCompleteEvent.d.ts +18 -3
  465. package/views/draw/VertexAddEvent.d.ts +19 -3
  466. package/views/draw/VertexRemoveEvent.d.ts +19 -3
  467. package/views/draw/types.d.ts +4 -0
  468. package/views/input/types.d.ts +371 -57
  469. package/views/interactive/sketch/SketchTooltipVisibleElements.d.ts +19 -1
  470. package/views/interactive/sketch/Units.d.ts +5 -0
  471. package/views/interactive/tooltip/types.d.ts +2 -0
  472. package/views/layers/HighlightLayerViewMixin.d.ts +59 -1
  473. package/views/layers/HighlightLayerViewMixin.js +1 -1
  474. package/views/layers/ImageryLayerViewMixin.d.ts +60 -2
  475. package/views/layers/ImageryTileLayerViewMixin.d.ts +2 -0
  476. package/views/layers/LayerView.d.ts +6 -0
  477. package/views/layers/MediaLayerViewMixin.d.ts +8 -1
  478. package/views/layers/types.d.ts +3 -0
  479. package/views/navigation/types.d.ts +6 -1
  480. package/views/support/AttributionItem.d.ts +10 -2
  481. package/views/support/MeasurementWorker.js +5 -0
  482. package/views/support/MeasurementWorkerHandle.js +5 -0
  483. package/views/support/automaticAreaMeasurementUtils.js +1 -1
  484. package/views/support/geodesicAreaMeasurementUtils.js +1 -1
  485. package/views/support/geodesicLengthMeasurementUtils.js +1 -1
  486. package/views/types.d.ts +306 -53
  487. package/views/ui/types.d.ts +42 -6
  488. package/webdoc/Widgets.d.ts +26 -5
  489. package/webdoc/geotriggersInfo/support/typeUtils.d.ts +3 -0
  490. package/webdoc/support/SlideThumbnail.d.ts +4 -0
  491. package/webdoc/support/types.d.ts +11 -2
  492. package/webdoc/support/webdocSaveUtils.d.ts +6 -0
  493. package/webdoc/widgets/FloorFilter.d.ts +25 -4
  494. package/webmap/Version.d.ts +1 -0
  495. package/webscene/Version.d.ts +1 -0
  496. package/webscene/support/Description.d.ts +3 -0
  497. package/webscene/support/SlideEnvironment.d.ts +6 -0
  498. package/webscene/support/SlideGround.d.ts +7 -1
  499. package/webscene/support/SlideVisibleLayer.d.ts +5 -0
  500. package/webscene/support/Title.d.ts +3 -0
  501. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  502. package/widgets/Attachments/types.d.ts +32 -6
  503. package/widgets/BasemapGallery/types.d.ts +3 -0
  504. package/widgets/BasemapLayerList/BasemapLayerListVisibleElements.d.ts +14 -0
  505. package/widgets/BasemapLayerList/types.d.ts +1 -0
  506. package/widgets/BatchAttributeForm/VisibleElements.d.ts +7 -1
  507. package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.d.ts +2 -0
  508. package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +14 -2
  509. package/widgets/BatchAttributeForm/inputs/types.d.ts +2 -0
  510. package/widgets/BatchAttributeForm/types.d.ts +75 -14
  511. package/widgets/BatchAttributeForm.d.ts +2 -2
  512. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +30 -9
  513. package/widgets/Bookmarks/types.d.ts +32 -10
  514. package/widgets/CatalogLayerList/CatalogLayerListVisibleElements.d.ts +11 -0
  515. package/widgets/CatalogLayerList/types.d.ts +1 -0
  516. package/widgets/Daylight/VisibleElements.d.ts +11 -1
  517. package/widgets/Daylight/types.d.ts +8 -2
  518. package/widgets/DirectionalPad/VisibleElements.d.ts +6 -0
  519. package/widgets/DirectionalPad/types.d.ts +13 -2
  520. package/widgets/Directions/DirectionsViewModel.d.ts +2 -2
  521. package/widgets/Directions/DirectionsVisibleElements.d.ts +8 -0
  522. package/widgets/Editor/CreateFeaturesWorkflowData.d.ts +3 -3
  523. package/widgets/Editor/EditorViewModel.d.ts +2 -3
  524. package/widgets/Editor/Edits.d.ts +1 -2
  525. package/widgets/Editor/SplitFeatureWorkflow.d.ts +2 -2
  526. package/widgets/Editor/VisibleElements.d.ts +46 -13
  527. package/widgets/Editor/support/EditorEditingCapabilities.d.ts +46 -9
  528. package/widgets/Editor/types.d.ts +149 -24
  529. package/widgets/ElevationProfile/ElevationProfileVisibleElements.d.ts +13 -1
  530. package/widgets/ElevationProfile/types.d.ts +87 -14
  531. package/widgets/Expand.d.ts +2 -2
  532. package/widgets/Feature/types.d.ts +105 -18
  533. package/widgets/FeatureForm/GroupInput.d.ts +1 -1
  534. package/widgets/FeatureForm/RelationshipInput.d.ts +1 -1
  535. package/widgets/FeatureForm/TextElementInput.d.ts +3 -5
  536. package/widgets/FeatureForm/UtilityNetworkAssociationInput.d.ts +1 -1
  537. package/widgets/FeatureForm/VisibleElements.d.ts +7 -1
  538. package/widgets/FeatureForm/types.d.ts +3 -0
  539. package/widgets/FeatureForm.d.ts +1 -1
  540. package/widgets/FeatureTable/ColumnMenuVisibleElements.d.ts +4 -0
  541. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +14 -4
  542. package/widgets/FeatureTable/Grid/Column.d.ts +1 -1
  543. package/widgets/FeatureTable/Grid/GridViewModel.d.ts +2 -0
  544. package/widgets/FeatureTable/Grid/types.d.ts +137 -24
  545. package/widgets/FeatureTable/TableMenuVisibleElements.d.ts +10 -0
  546. package/widgets/FeatureTable/VisibleElements.d.ts +16 -2
  547. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -1
  548. package/widgets/FeatureTable/support/types.d.ts +155 -27
  549. package/widgets/FeatureTable.d.ts +3 -3
  550. package/widgets/FeatureTemplates/VisibleElements.d.ts +4 -0
  551. package/widgets/FeatureTemplates/types.d.ts +17 -2
  552. package/widgets/Features/FeaturesVisibleElements.d.ts +12 -0
  553. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  554. package/widgets/Histogram/types.d.ts +14 -2
  555. package/widgets/HistogramRangeSlider/types.d.ts +1 -0
  556. package/widgets/LayerList/LayerListVisibleElements.d.ts +10 -0
  557. package/widgets/LayerList/types.d.ts +8 -0
  558. package/widgets/Legend/styles/card/CardView.d.ts +13 -2
  559. package/widgets/Legend/styles/classic/ClassicView.d.ts +11 -2
  560. package/widgets/Measurement/types.d.ts +3 -0
  561. package/widgets/OrientedImageryViewer/types.d.ts +15 -3
  562. package/widgets/Popup/PopupVisibleElements.d.ts +11 -0
  563. package/widgets/Popup/types.d.ts +64 -7
  564. package/widgets/Print/FileLink.d.ts +36 -6
  565. package/widgets/Print/types.d.ts +77 -13
  566. package/widgets/ScaleRangeSlider/types.d.ts +4 -0
  567. package/widgets/ScaleRangeSlider.d.ts +5 -1
  568. package/widgets/Search/SearchResultRenderer.d.ts +0 -2
  569. package/widgets/Search/SearchSource.d.ts +2 -2
  570. package/widgets/Search/SearchViewModel.d.ts +6 -7
  571. package/widgets/Search/types.d.ts +4 -4
  572. package/widgets/ShadowCast/ShadowCastVisibleElements.d.ts +15 -1
  573. package/widgets/ShadowCast/types.d.ts +8 -2
  574. package/widgets/Sketch/CreateToolVisibilityMap.d.ts +19 -4
  575. package/widgets/Sketch/SelectionToolVisibilityMap.d.ts +4 -0
  576. package/widgets/Sketch/VisibleElements.d.ts +38 -6
  577. package/widgets/Sketch/types.d.ts +364 -60
  578. package/widgets/Slider/types.d.ts +249 -46
  579. package/widgets/Swipe/types.d.ts +6 -0
  580. package/widgets/TableList/TableListVisibleElements.d.ts +11 -0
  581. package/widgets/TableList/types.d.ts +5 -0
  582. package/widgets/TimeSlider/types.d.ts +45 -7
  583. package/widgets/Track/types.d.ts +4 -1
  584. package/widgets/UtilityNetworkAssociations/VisibleElements.d.ts +23 -4
  585. package/widgets/UtilityNetworkAssociations/VisibleElementsSettingsPane.d.ts +7 -0
  586. package/widgets/UtilityNetworkTrace/types.d.ts +26 -5
  587. package/widgets/ValuePicker/ValuePickerBaseComponent.d.ts +2 -0
  588. package/widgets/ValuePicker/ValuePickerSliderVisibleElements.d.ts +7 -1
  589. package/widgets/ValuePicker/ValuePickerVisibleElements.d.ts +9 -1
  590. package/widgets/ValuePicker/types.d.ts +8 -0
  591. package/widgets/Weather/VisibleElements.d.ts +6 -1
  592. package/widgets/Weather/types.d.ts +1 -0
  593. package/widgets/smartMapping/types.d.ts +63 -6
  594. package/widgets/support/GridControls/VisibleElements.d.ts +11 -0
  595. package/widgets/support/GridControls/types.d.ts +1 -0
  596. package/widgets/support/SnappingControls/VisibleElements.d.ts +26 -4
  597. package/widgets/support/forms/types.d.ts +2 -0
  598. package/widgets/support/types.d.ts +19 -3
  599. package/widgets/types.d.ts +549 -89
  600. package/assets/esri/core/workers/chunks/0367a8580fede8f804f9.js +0 -1
  601. package/assets/esri/core/workers/chunks/14f4f5b7549cea7b5a6a.js +0 -1
  602. package/assets/esri/core/workers/chunks/1b475593c80d7bccdda5.js +0 -1
  603. package/assets/esri/core/workers/chunks/27ec8688f72130239b98.js +0 -1
  604. package/assets/esri/core/workers/chunks/2dd347aa2a061d536e69.js +0 -1
  605. package/assets/esri/core/workers/chunks/2f6fa33692478e99d24b.js +0 -1
  606. package/assets/esri/core/workers/chunks/329b10897c6965948b84.js +0 -1
  607. package/assets/esri/core/workers/chunks/35593a9790818b689455.js +0 -1
  608. package/assets/esri/core/workers/chunks/3e7ea06b342e33bc48a5.js +0 -1
  609. package/assets/esri/core/workers/chunks/401ce5cb98fa14c1a725.js +0 -1
  610. package/assets/esri/core/workers/chunks/4387aaf9d5e8f6d1833d.js +0 -1
  611. package/assets/esri/core/workers/chunks/668a868fe2dcb6384ac9.js +0 -1
  612. package/assets/esri/core/workers/chunks/6acfa51b81e6f4255118.js +0 -1
  613. package/assets/esri/core/workers/chunks/6f8098f9fe233833245a.js +0 -1
  614. package/assets/esri/core/workers/chunks/76dbaef0d0794913f36f.js +0 -1
  615. package/assets/esri/core/workers/chunks/7c5218eae13d3bd30598.js +0 -1
  616. package/assets/esri/core/workers/chunks/7fc09382f934e9223a9b.js +0 -1
  617. package/assets/esri/core/workers/chunks/822ef6a043c7e147b4b6.js +0 -1
  618. package/assets/esri/core/workers/chunks/980313a6c35e79812d17.js +0 -1
  619. package/assets/esri/core/workers/chunks/98d68b145226e7527c84.js +0 -33
  620. package/assets/esri/core/workers/chunks/9c157c0eeadb824ad01e.js +0 -1
  621. package/assets/esri/core/workers/chunks/a39ac9127a215d14d412.js +0 -1
  622. package/assets/esri/core/workers/chunks/a893f8db2477cf677ac8.js +0 -1
  623. package/assets/esri/core/workers/chunks/a95e28ade258b144cbb5.js +0 -1
  624. package/assets/esri/core/workers/chunks/abcee7cfd53cfe1d91e9.js +0 -1
  625. package/assets/esri/core/workers/chunks/b9f0d313f59fc7c43560.js +0 -1
  626. package/assets/esri/core/workers/chunks/bbe2eaef7edfa33b6eea.js +0 -1
  627. package/assets/esri/core/workers/chunks/bfdf646d4c8f175a4236.js +0 -1
  628. package/assets/esri/core/workers/chunks/d749aa62ad694147aebe.js +0 -1
  629. package/assets/esri/core/workers/chunks/d7d9656b990ce8be2152.js +0 -1
  630. package/assets/esri/core/workers/chunks/df92239eefff04471a0b.js +0 -1
  631. package/assets/esri/core/workers/chunks/ee2ca25048a920e43743.js +0 -1
  632. package/assets/esri/core/workers/chunks/eeb24a4ab4993f1f4e8e.js +0 -1
  633. package/assets/esri/core/workers/chunks/fe5d2735f057c7789f4b.js +0 -1
  634. package/views/2d/engine/flow/FlowDisplayData.js +0 -5
  635. package/views/support/GeodesicMeasurementWorker.js +0 -5
  636. package/views/support/GeodesicMeasurementWorkerHandle.js +0 -5
@@ -24,29 +24,65 @@ import type { FieldValue } from "../../../layers/support/fieldUtils.js";
24
24
  import type { ObjectId } from "../../../views/types.js";
25
25
  import type { CellValue, Direction } from "../Grid/types.js";
26
26
 
27
+ /** @since 5.0 */
27
28
  export interface FieldValueFormatFunctionParameters extends FormatFunctionParameters {}
28
29
 
30
+ /** @since 5.0 */
29
31
  export interface FormatFunctionParameters {
30
- /** _(Since 4.31)_ A reference to attachments for the associated feature. */
32
+ /**
33
+ * _(Since 4.31)_ A reference to attachments for the associated feature.
34
+ *
35
+ * @since 5.0
36
+ */
31
37
  attachments?: AttachmentInfo[] | null;
32
- /** A reference to this specific Column. */
38
+ /**
39
+ * A reference to this specific Column.
40
+ *
41
+ * @since 5.0
42
+ */
33
43
  column: Column;
34
- /** A reference to the feature represented by the associated row. */
44
+ /**
45
+ * A reference to the feature represented by the associated row.
46
+ *
47
+ * @since 5.0
48
+ */
35
49
  feature: Graphic;
36
- /** The field associated with the column. */
50
+ /**
51
+ * The field associated with the column.
52
+ *
53
+ * @since 5.0
54
+ */
37
55
  field?: Field | null;
38
- /** Index of the associated row being rendered. */
56
+ /**
57
+ * Index of the associated row being rendered.
58
+ *
59
+ * @since 5.0
60
+ */
39
61
  index: number;
40
- /** _(Since 4.31)_ A reference to related records for the associated feature. */
62
+ /**
63
+ * _(Since 4.31)_ A reference to related records for the associated feature.
64
+ *
65
+ * @since 5.0
66
+ */
41
67
  relatedRecords?: RelatedRecordInfo[] | null;
42
- /** Current projected value of the cell. */
68
+ /**
69
+ * Current projected value of the cell.
70
+ *
71
+ * @since 5.0
72
+ */
43
73
  value: CellValue;
44
- /** _(Since 4.31)_ Virtual index of the associated row being rendered. Unlike `index`, a row's `virtualIndex` changes as the table scrolls. The first row in the DOM has a `virtualIndex` of 0. As rows are added/removed from the DOM, the virtual index adjusts before it renders. This can help with performance when rendering large datasets. */
74
+ /**
75
+ * _(Since 4.31)_ Virtual index of the associated row being rendered. Unlike `index`, a row's `virtualIndex` changes as the table scrolls. The first row in the DOM has a `virtualIndex` of 0. As rows are added/removed from the DOM, the virtual index adjusts before it renders. This can help with performance when rendering large datasets.
76
+ *
77
+ * @since 5.0
78
+ */
45
79
  virtualIndex: number;
46
80
  }
47
81
 
82
+ /** @since 5.0 */
48
83
  export type FeatureTableSupportedLayer = CatalogFootprintLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | KnowledgeGraphSublayer | SceneLayer | WFSLayer | OrientedImageryLayer | ParquetLayer | Sublayer;
49
84
 
85
+ /** @since 5.0 */
50
86
  export type FeatureTableSupportedColumn = Column;
51
87
 
52
88
  /**
@@ -54,6 +90,7 @@ export type FeatureTableSupportedColumn = Column;
54
90
  *
55
91
  * @param params - An object containing information about the associated row and feature.
56
92
  * @returns Formatted content to be displayed in the cell.
93
+ * @since 5.0
57
94
  */
58
95
  export type FormatFunction = (params: FormatFunctionParameters) => CellValue | HTMLElement;
59
96
 
@@ -62,46 +99,72 @@ export type FormatFunction = (params: FormatFunctionParameters) => CellValue | H
62
99
  *
63
100
  * @param params - An object containing information about the associated row and feature.
64
101
  * @returns Formatted content to be displayed in the cell.
102
+ * @since 5.0
65
103
  */
66
104
  export type FieldValueFormatFunction = (params: FieldValueFormatFunctionParameters) => FieldValue | HTMLElement;
67
105
 
106
+ /** @since 5.0 */
68
107
  export type FeatureTableSupportedFilters = GeometryFilter | SelectionFilter;
69
108
 
70
109
  /**
71
110
  * Use this for spatial filtering, it is the [Geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html) used to filter out data within the table.
72
111
  *
112
+ * @since 5.0
73
113
  * @see [FeatureTableViewModel#filterGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#filterGeometry)
74
114
  * @see [FeatureTableViewModel#activeFilters](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#activeFilters)
75
115
  * @see [Sample - FeatureTable using a map](https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-map/)
76
116
  */
77
117
  export interface GeometryFilter extends TableFilter {
78
- /** The geometry used to filter out the table's data. */
118
+ /**
119
+ * The geometry used to filter out the table's data.
120
+ *
121
+ * @since 5.0
122
+ */
79
123
  geometry: GeometryUnion;
80
- /** The type of the filter used. This will always read as `"geometry"`. */
124
+ /**
125
+ * The type of the filter used. This will always read as `"geometry"`.
126
+ *
127
+ * @since 5.0
128
+ */
81
129
  type: "geometry";
82
130
  }
83
131
 
84
132
  /**
85
133
  * Use this for selecting rows within the table based off of their object ID.
86
134
  *
135
+ * @since 5.0
87
136
  * @see [FeatureTableViewModel#filterBySelection()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#filterBySelection)
88
137
  * @see [FeatureTableViewModel#activeFilters](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#activeFilters)
89
138
  */
90
139
  export interface SelectionFilter extends TableFilter {
91
- /** An array of numbers indicating the row's object IDs. */
140
+ /**
141
+ * An array of numbers indicating the row's object IDs.
142
+ *
143
+ * @since 5.0
144
+ */
92
145
  objectIds: ObjectId[];
93
- /** The type of the filter used. This will always read as `"selection"`. */
146
+ /**
147
+ * The type of the filter used. This will always read as `"selection"`.
148
+ *
149
+ * @since 5.0
150
+ */
94
151
  type: "selection";
95
152
  }
96
153
 
154
+ /** @since 5.0 */
97
155
  export interface TableFilter {
98
- /** The type of the filter used. */
156
+ /**
157
+ * The type of the filter used.
158
+ *
159
+ * @since 5.0
160
+ */
99
161
  type: string;
100
162
  }
101
163
 
102
164
  /**
103
165
  * An array of objects containing a column's name and sort direction. This is used in conjunction with [FeatureTableViewModel#activeSortOrders](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#activeSortOrders) to help retain a column's sort order while querying.
104
166
  *
167
+ * @since 5.0
105
168
  * @see [FeatureTableViewModel#activeSortOrders](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#activeSortOrders)
106
169
  */
107
170
  export interface ColumnSortOrder {
@@ -113,18 +176,37 @@ export interface ColumnSortOrder {
113
176
  * asc | Sorts the column in ascending order.
114
177
  * desc | Sorts the column in descending order.
115
178
  * null | No sort is applied to the column.
179
+ *
180
+ * @since 5.0
116
181
  */
117
182
  direction: Direction;
118
- /** The field name as defined by the layer. Set this property to indicate which column to sort. This should match the field name as defined at the feature service level. */
183
+ /**
184
+ * The field name as defined by the layer. Set this property to indicate which column to sort. This should match the field name as defined at the feature service level.
185
+ *
186
+ * @since 5.0
187
+ */
119
188
  fieldName: string;
120
189
  }
121
190
 
191
+ /** @since 5.0 */
122
192
  export interface ActionColumnCallbackParameters {
123
- /** A reference to the associated feature. */
193
+ /**
194
+ * A reference to the associated feature.
195
+ *
196
+ * @since 5.0
197
+ */
124
198
  feature: Graphic;
125
- /** The index of the associated row. */
199
+ /**
200
+ * The index of the associated row.
201
+ *
202
+ * @since 5.0
203
+ */
126
204
  index: number;
127
- /** A reference to the interaction event. */
205
+ /**
206
+ * A reference to the interaction event.
207
+ *
208
+ * @since 5.0
209
+ */
128
210
  native: MouseEvent | KeyboardEvent;
129
211
  }
130
212
 
@@ -132,12 +214,14 @@ export interface ActionColumnCallbackParameters {
132
214
  * Function called when an action is clicked or pressed.
133
215
  *
134
216
  * @param params - An object containing information about the associated row and feature.
217
+ * @since 5.0
135
218
  */
136
219
  export type ActionColumnCallback = (params: ActionColumnCallbackParameters) => void;
137
220
 
138
221
  /**
139
222
  * Configuration for the [FeatureTable's actionColumn](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#actionColumn).
140
223
  *
224
+ * @since 5.0
141
225
  * @example
142
226
  * // The following snippet demonstrates how to configure an action column that adds a button to each row which allows the user to zoom to the associated row's feature within the view.
143
227
  * featureTable.viewModel.actionColumnConfig = {
@@ -149,22 +233,51 @@ export type ActionColumnCallback = (params: ActionColumnCallbackParameters) => v
149
233
  * }
150
234
  */
151
235
  export interface ActionColumnConfig {
152
- /** Callback function invoked when the action is clicked or activated via the keyboard. */
236
+ /**
237
+ * Callback function invoked when the action is clicked or activated via the keyboard.
238
+ *
239
+ * @since 5.0
240
+ */
153
241
  callback: ActionColumnCallback;
154
- /** Indicates if a specific action should be conditionally disabled. */
242
+ /**
243
+ * Indicates if a specific action should be conditionally disabled.
244
+ *
245
+ * @since 5.0
246
+ */
155
247
  disabled?: ActionColumnDisabledFunction | boolean;
156
- /** Indicates the column should be frozen to the end of the table. */
248
+ /**
249
+ * Indicates the column should be frozen to the end of the table.
250
+ *
251
+ * @since 5.0
252
+ */
157
253
  frozenToEnd?: boolean;
158
- /** The string value indicating the [Calcite icon](https://developers.arcgis.com/calcite-design-system/icons/) displayed for the action. */
254
+ /**
255
+ * The string value indicating the [Calcite icon](https://developers.arcgis.com/calcite-design-system/icons/) displayed for the action.
256
+ *
257
+ * @since 5.0
258
+ */
159
259
  icon?: Icon["icon"];
160
- /** The accessible label to display when hovering over the action. */
260
+ /**
261
+ * The accessible label to display when hovering over the action.
262
+ *
263
+ * @since 5.0
264
+ */
161
265
  label: string;
162
266
  }
163
267
 
268
+ /** @since 5.0 */
164
269
  export interface ActionColumnDisabledParameters {
165
- /** The feature to use when determining if the action should be disabled. */
270
+ /**
271
+ * The feature to use when determining if the action should be disabled.
272
+ *
273
+ * @since 5.0
274
+ */
166
275
  feature: Graphic;
167
- /** The row's index position when determining if the action should be disabled. */
276
+ /**
277
+ * The row's index position when determining if the action should be disabled.
278
+ *
279
+ * @since 5.0
280
+ */
168
281
  index: number;
169
282
  }
170
283
 
@@ -173,17 +286,32 @@ export interface ActionColumnDisabledParameters {
173
286
  *
174
287
  * @param params - An object containing information about an associated row and feature.
175
288
  * @returns Indicates whether the action should be disabled.
289
+ * @since 5.0
176
290
  */
177
291
  export type ActionColumnDisabledFunction = (params: ActionColumnDisabledParameters) => boolean;
178
292
 
179
- /** The related records for the associated feature used in the [Columns's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#formatFunction) and [FieldColumn's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-types.html#FieldValueFormatFunction) `formatFunction`. */
293
+ /**
294
+ * The related records for the associated feature used in the [Columns's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#formatFunction) and [FieldColumn's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-types.html#FieldValueFormatFunction) `formatFunction`.
295
+ *
296
+ * @since 5.0
297
+ */
180
298
  export interface RelatedRecordInfo {
181
- /** The number of related records associated with the feature. */
299
+ /**
300
+ * The number of related records associated with the feature.
301
+ *
302
+ * @since 5.0
303
+ */
182
304
  count: number;
183
- /** The ID of the relationship defined in the data source. */
305
+ /**
306
+ * The ID of the relationship defined in the data source.
307
+ *
308
+ * @since 5.0
309
+ */
184
310
  relationshipId: number;
185
311
  }
186
312
 
313
+ /** @since 5.0 */
187
314
  export type SupportedColumnTemplates = ColumnTemplate | FieldColumnTemplate | GroupColumnTemplate | AttachmentsColumnTemplate | RelationshipColumnTemplate;
188
315
 
316
+ /** @since 5.0 */
189
317
  export type GroupColumnSupportedTemplates = Exclude<SupportedColumnTemplates, GroupColumnTemplate>;
@@ -414,7 +414,7 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
414
414
  * ```
415
415
  * ![featuretable-rowHighlightIds](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/featuretable/rowhighlightids.png)
416
416
  *
417
- * Additionally, selection and highlight behavior can be enhanced using the feature table's [events](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#FeatureTableEvents). These events are designed to listen for cell interaction and include: [@cell-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-cell-click), {@link widgets/FeatureTable#event-cell-keyDown}, [@cell-pointerout](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-cell-pointerout), and [@cell-pointerover](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-cell-pointerover). The latter two events are especially useful for tasks such as highlighting a feature in the view while hovering over a cell, all doing so without requiring the end-user to select the row. For example, these events can be used to display cell information in a tooltip that is attached to the mouse cursor.
417
+ * Additionally, selection and highlight behavior can be enhanced using the feature table's [events](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#FeatureTableEvents). These events are designed to listen for cell interaction and include: [@cell-click](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-cell-click), [@cell-keydown](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-cell-keydown), [@cell-pointerout](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-cell-pointerout), and [@cell-pointerover](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-cell-pointerover). The latter two events are especially useful for tasks such as highlighting a feature in the view while hovering over a cell, all doing so without requiring the end-user to select the row. For example, these events can be used to display cell information in a tooltip that is attached to the mouse cursor.
418
418
  *
419
419
  * > In short, the [highlightIds](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#highlightIds) property is used to control and synchronize selections between the FeatureTable and other components of the SDK, whereas [rowHighlightIds](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#rowHighlightIds) is for adding a highlight to some rows, based on some other interaction within the application. It allows the ability to select specific rows based on actions performed in the application, such as hovering over a feature on the map or applying a filter through another widget.
420
420
  *
@@ -432,7 +432,7 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
432
432
  * * **Filtering by time**- To achieve this, configure the [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#timeExtent) property to a time extent. Once configured, the table will exclusively show rows corresponding to features that are within the defined time extent.
433
433
  * **Filtering by selection and geometry**- This is accomplished by setting both the [objectIds](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#objectIds) and [filterGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#filterGeometry) properties. When set, the table will only display rows for features that match the corresponding object ID and and intersect the geometry.
434
434
  *
435
- * It is possible to control sort order individually per column or on multiple columns. The latter is accomplished by setting the [multiSortEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled) property to `true`. When set, the table will allow sorting on multiple columns. The table's [sortColumn()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#sortColumn) method is used to sort columns. This method takes the field name and sort order as parameters. The sort order can be set to either `asc` or `desc`. The priority of columns and their sort order can be set using {@link widgets/support/FieldColumnTemplate#initialSortPriority}. This property is used to set the initial sort priority for a column.
435
+ * It is possible to control sort order individually per column or on multiple columns. The latter is accomplished by setting the [multiSortEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled) property to `true`. When set, the table will allow sorting on multiple columns. The table's [sortColumn()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#sortColumn) method is used to sort columns. This method takes the field name and sort order as parameters. The sort order can be set to either `asc` or `desc`. The priority of columns and their sort order can be set using [FieldColumnTemplate#initialSortPriority](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#initialSortPriority). This property is used to set the initial sort priority for a column.
436
436
  *
437
437
  * > [!WARNING]
438
438
  * >
@@ -721,7 +721,7 @@ export default class FeatureTable extends Widget<FeatureTableProperties> {
721
721
  */
722
722
  get activeFilters(): Collection<FeatureTableSupportedFilters>;
723
723
  /**
724
- * Use this read-only property if needing to query features while retaining a column's sort order. It returns an array of [ColumnSortOrder](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-types.html#ColumnSortOrder) which contains a column's name and its sort direction. The sort priority is honored in the returned [ColumnSortOrder](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-types.html#ColumnSortOrder) if [multiSortEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled) is `true` with a set {@link widgets/FeatureTable#initialSortPriority}.
724
+ * Use this read-only property if needing to query features while retaining a column's sort order. It returns an array of [ColumnSortOrder](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-types.html#ColumnSortOrder) which contains a column's name and its sort direction. The sort priority is honored in the returned [ColumnSortOrder](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-types.html#ColumnSortOrder) if [multiSortEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled) is `true` with a set [FieldColumnTemplate#initialSortPriority](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#initialSortPriority).
725
725
  *
726
726
  * @default []
727
727
  * @since 4.25
@@ -1,16 +1,20 @@
1
1
  import type Accessor from "../../core/Accessor.js";
2
2
 
3
+ /** @since 5.0 */
3
4
  export interface VisibleElementsProperties extends Partial<Pick<VisibleElements, "filter">> {}
4
5
 
5
6
  /**
6
7
  * The visible elements that are displayed within the widget.
7
8
  * This provides the ability to turn individual elements of the widget's display on/off.
9
+ *
10
+ * @since 5.0
8
11
  */
9
12
  export default abstract class VisibleElements extends Accessor {
10
13
  /**
11
14
  * Indicates whether the [templates filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#visibleElements) displays.
12
15
  *
13
16
  * @default true
17
+ * @since 5.0
14
18
  */
15
19
  accessor filter: boolean;
16
20
  }
@@ -11,6 +11,7 @@ import type { LayerWithFeatureTemplatesUnion } from "../../layers/types.js";
11
11
  * @returns Groups consist of a group `key` and `label`. These are shown in the UI. If both
12
12
  * the `key` and `label` are identical, return a `string`. Otherwise, return an `object` with
13
13
  * `key/name` properties. This gives finer control of the groups.
14
+ * @since 5.0
14
15
  * @example
15
16
  * // This example shows using a function to check if
16
17
  * // the layer title contains the word 'military'. If so,
@@ -51,13 +52,23 @@ import type { LayerWithFeatureTemplatesUnion } from "../../layers/types.js";
51
52
  */
52
53
  export type GroupByFunction<T = any> = (grouping: GroupByFunctionGrouping) => object;
53
54
 
55
+ /** @since 5.0 */
54
56
  export interface GroupByFunctionGrouping {
55
- /** [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) instance referenced in [FeatureTemplates#layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#layers) property. */
57
+ /**
58
+ * [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) instance referenced in [FeatureTemplates#layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#layers) property.
59
+ *
60
+ * @since 5.0
61
+ */
56
62
  layer: LayerWithFeatureTemplatesUnion;
57
- /** [FeatureTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html) associated with the `layer`. */
63
+ /**
64
+ * [FeatureTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html) associated with the `layer`.
65
+ *
66
+ * @since 5.0
67
+ */
58
68
  template: AnyEditingTemplateInfo;
59
69
  }
60
70
 
71
+ /** @since 5.0 */
61
72
  export type GroupByType = "none" | "layer" | "geometry" | GroupByFunction;
62
73
 
63
74
  /**
@@ -70,6 +81,7 @@ export type GroupByType = "none" | "layer" | "geometry" | GroupByFunction;
70
81
  * @returns Function is a predicate, to test each element of the array.
71
82
  * Return `true` to keep [item](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) in the template widget, otherwise, `false`
72
83
  * to remove it.
84
+ * @since 5.0
73
85
  * @example
74
86
  * // Filter and display templates only if their labels contain the word `Street`
75
87
  * function myFilterFunction(filter) {
@@ -89,10 +101,13 @@ export type GroupByType = "none" | "layer" | "geometry" | GroupByFunction;
89
101
  */
90
102
  export type Filter = (filterName: FilterFilterName) => boolean;
91
103
 
104
+ /** @since 5.0 */
92
105
  export interface FilterFilterName {
93
106
  /**
94
107
  * The [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#label)
95
108
  * of the [template item](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) to filter.
109
+ *
110
+ * @since 5.0
96
111
  */
97
112
  label?: string | null;
98
113
  }
@@ -1,5 +1,6 @@
1
1
  import type Accessor from "../../core/Accessor.js";
2
2
 
3
+ /** @since 5.0 */
3
4
  export interface FeaturesVisibleElementsProperties extends Partial<Pick<FeaturesVisibleElements, "actionBar" | "closeButton" | "collapseButton" | "featureListLayerTitle" | "featureMenuHeading" | "featureNavigation" | "flow" | "heading" | "spinner">> {}
4
5
 
5
6
  /**
@@ -8,24 +9,29 @@ export interface FeaturesVisibleElementsProperties extends Partial<Pick<Features
8
9
  * Disabling all `visibleElements` on the Features widget allows the look and feel of the [Feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html) widget, while supporting related record browsing and clustering.
9
10
  *
10
11
  * ![popup-visibleElements](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/popup/popup-visible-elements.png)
12
+ *
13
+ * @since 5.0
11
14
  */
12
15
  export default abstract class FeaturesVisibleElements extends Accessor {
13
16
  /**
14
17
  * Indicates whether to display the action bar that holds the feature's [FeaturesViewModel#actions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Features-FeaturesViewModel.html#actions) will be displayed.
15
18
  *
16
19
  * @default true
20
+ * @since 5.0
17
21
  */
18
22
  accessor actionBar: boolean;
19
23
  /**
20
24
  * Indicates whether to display a close button on the widget dialog.
21
25
  *
22
26
  * @default true
27
+ * @since 5.0
23
28
  */
24
29
  accessor closeButton: boolean;
25
30
  /**
26
31
  * **Since 4.28.** Indicates whether to display the collapse button on the widget dialog.
27
32
  *
28
33
  * @default false
34
+ * @since 5.0
29
35
  */
30
36
  accessor collapseButton: boolean;
31
37
  /**
@@ -34,18 +40,21 @@ export default abstract class FeaturesVisibleElements extends Accessor {
34
40
  * ![popup-visibleElements-featureListLayerTitle](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/popup/popup-listlayertitle-true2.png)
35
41
  *
36
42
  * @default true
43
+ * @since 5.0
37
44
  */
38
45
  accessor featureListLayerTitle: boolean;
39
46
  /**
40
47
  * **Since 4.32.** Indicates whether to display a heading and description on the widget feature menu list.
41
48
  *
42
49
  * @default true
50
+ * @since 5.0
43
51
  */
44
52
  accessor featureMenuHeading: boolean;
45
53
  /**
46
54
  * Indicates whether pagination for feature navigation will be displayed. This allows the user to scroll through various [selected features](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Features.html#features) using pagination arrows.
47
55
  *
48
56
  * @default true
57
+ * @since 5.0
49
58
  */
50
59
  accessor featureNavigation: boolean;
51
60
  /**
@@ -55,18 +64,21 @@ export default abstract class FeaturesVisibleElements extends Accessor {
55
64
  * To place the widget into an existing Calcite flow component, set this property to `false`.
56
65
  *
57
66
  * @default true
67
+ * @since 5.0
58
68
  */
59
69
  accessor flow: boolean;
60
70
  /**
61
71
  * Indicates whether to display the widget heading.
62
72
  *
63
73
  * @default true
74
+ * @since 5.0
64
75
  */
65
76
  accessor heading: boolean;
66
77
  /**
67
78
  * Indicates whether to display the widget's loading spinner.
68
79
  *
69
80
  * @default true
81
+ * @since 5.0
70
82
  */
71
83
  accessor spinner: boolean;
72
84
  }
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{createTask as i}from"../../core/asyncUtils.js";import l from"../../core/Collection.js";import s from"../../core/Error.js";import{throwIfAborted as r}from"../../core/promiseUtils.js";import{watch as o,initial as a,syncAndInitial as n}from"../../core/reactiveUtils.js";import{Milliseconds as h}from"../../core/time.js";import{property as d,subclass as c}from"../../core/accessorSupport/decorators.js";import u from"../../webdoc/Widgets.js";import f from"../../webdoc/widgets/FloorFilter.js";import{isWebMap as p}from"../../webmap/utils.js";import{GoTo as y}from"../support/GoTo.js";function v(e){return"esri.WebScene"===e.declaredClass}let m=class extends(y(t)){constructor(e){super(e),this.filterMenuOpen=!1,this.filterMenuType="site",this.filterMode="base-floors",this.levelsExpanded=!0,this.searchTerm=null,this.view=null,this._updateFloorFilterTask=null,this._viewHeightBreakpoint=null,this._viewWidthBreakpoint=null}initialize(){this.addHandles([o(()=>this.view?.map,e=>{null!=this._updateFloorFilterTask&&(this._updateFloorFilterTask.abort(),this._updateFloorFilterTask=null),this._updateFloorFilterTask=i(async t=>{await this._updateFloorFilterFromMap(e),r(t),this._setInitialViewState(e)})},a),o(()=>this.view,(e,t)=>{this._unregisterWidget(t),this._registerWidget(e),this._watchSearchResults(e)},n),o(()=>this.view?.widthBreakpoint??null,e=>{this._viewWidthBreakpoint=e}),o(()=>this.view?.heightBreakpoint??null,e=>{this._viewHeightBreakpoint=e})])}destroy(){this._unregisterWidget(this.view),this.view=null,null!=this._updateFloorFilterTask&&(this._updateFloorFilterTask.abort(),this._updateFloorFilterTask=null)}set enabled(e){this._callOverride("enabled",e)}set facility(e){if(e&&this._isOverridden("facility")){const t=this.getFacility(e);this.hasMultipleSites&&(this.site=t?.siteId||null)}this._callOverride("facility",e)}set filterFeatures(e){this._callOverride("filterFeatures",e)}set filterLayers(e){this._callOverride("filterLayers",e)}get hasFacilities(){return null!=this.filterLayers?.facilityLayer&&this.filterFeatures?.facilities?.facilitiesInfo?.length>0}get hasLevels(){return null!=this.filterLayers?.levelLayer&&this.filterFeatures?.levels?.levelsInfo?.length>0}get hasMultipleSites(){return null!=this.filterLayers?.siteLayer&&this.filterFeatures?.sites?.sitesInfo?.length>1}get isNormalMode(){let e=!0;const t=this._viewWidthBreakpoint;return"xsmall"!==this._viewHeightBreakpoint&&"xsmall"!==t||(e=!1),e}set level(e){if(!e)return this._callOverride("level",e),this.facility=null,this.site=null,void this.setFloors(null);let t=null,i=null;const l=e?.split("--");if(l?.length>1&&"all"===l[0]?(i=l[1],t={id:e,facilityId:i,shortName:null,longName:null,levelNumber:null,verticalOrder:null}):(t=this.getLevel(e),i=t?.facilityId??null),this.level!==e||this.isNormalMode||this.levelsExpanded)t&&this.hasFacilities&&this.hasLevels?(this.facility=i,this.hasMultipleSites&&(this.site=this.getFacility(i)?.siteId||null),this.setFloors(t)):this._isOverridden("level")&&(this.facility=null,this.site=null,this.hasMultipleSites&&(this.filterMenuType="site"),this.setFloors(null)),this._callOverride("level",e);else{const e=this.getFacilityLevels(i);e?.length>1&&(this.levelsExpanded=!0)}}set longNames(e){this._callOverride("longNames",e)}set minimized(e){this._callOverride("minimized",e)}set pinnedLevels(e){this._callOverride("pinnedLevels",e)}get selectedVerticalOrder(){if(p(this.view?.map)){const e=this.view.map.resourceInfo;return e?.widgets?.floorFilter?.selectedVerticalOrder??null}return null}set site(e){this._callOverride("site",e)}get state(){return this.view&&this.filterFeatures&&this.hasFacilities&&this.hasLevels?"ready":this.view&&!this.filterFeatures?"loading":"disabled"}get useVerticalOrder(){if(p(this.view?.map)){const e=this.view.map.resourceInfo;return e?.widgets?.floorFilter?.useVerticalOrder??!1}return!1}filterFacilities(e){let t=e;this.searchTerm&&(this.searchTerm=this.searchTerm.trim(),t=e.filter(e=>{const{name:t}=e;return t.toLowerCase().includes(this.searchTerm?.toLowerCase())})),this.site&&(t=t.filter(e=>e.siteId===this.site));return t.sort((e,t)=>{const i=e.name,l=t.name;return i.localeCompare(l,void 0,{sensitivity:"base"})})}filterSites(e){let t=e;this.searchTerm&&(this.searchTerm=this.searchTerm.trim(),t=e.filter(e=>{const{name:t}=e;return t.toLowerCase().includes(this.searchTerm?.toLowerCase())}));return t.sort((e,t)=>{const i=e.name,l=t.name;return i.localeCompare(l,void 0,{sensitivity:"base"})})}getBaseLevel(e){const t=this.filterFeatures?.levels?.levelsInfo;let i=null;if(e){const{id:l}=e;if(t&&t.length>0&&(t.forEach(e=>{0===e.verticalOrder&&e.facilityId===l&&(i=e)}),!i)){let e=null;t.forEach(t=>{t.facilityId===l&&(e?(t.verticalOrder??0)>=0?null!=e.verticalOrder&&(e.verticalOrder<0||(t.verticalOrder??0)<e.verticalOrder)&&(e=t):null!=e.verticalOrder&&null!=t.verticalOrder&&e.verticalOrder<0&&t.verticalOrder>e.verticalOrder&&(e=t):e=t)}),e&&(i=e)}}return i}getFacility(e){return this.filterFeatures?.facilities?.facilitiesInfo?.find(t=>t.id===e)??null}getFacilityLevels(e){if(!e||!this.filterFeatures?.levels?.levelsInfo)return[];return this.filterFeatures.levels.levelsInfo.filter(t=>t.facilityId===e).sort((e,t)=>{const i=e.verticalOrder??0,l=t.verticalOrder??0;return i>l?-1:i===l?0:1})}getLevel(e){return this.filterFeatures?.levels?.levelsInfo?.find(t=>t.id===e)??null}getSite(e){return this.filterFeatures?.sites?.sitesInfo?.find(t=>t.id===e)??null}goTo(e){const{view:t}=this;if(!t||!e)return;const{geometry:i}=e;i&&i.extent&&this.callGoTo({target:i.extent,options:{duration:h(1e3),easing:"quad-in-out"}})}setFloors(e){const{view:t}=this;t&&(t?.map?.allLayers?.forEach(e=>{"feature"===e.type&&this._computeViewAllModeFloors(e)}),t.floors=new l(this._computeFloors(e)))}updateWebDocument(e){if(p(e)){const t=new f({enabled:this.enabled,longNames:this.longNames,minimized:this.minimized,pinnedLevels:this.pinnedLevels,site:this.site??null,facility:this.facility??null,level:this.level??null,useVerticalOrder:this.useVerticalOrder,selectedVerticalOrder:this.selectedVerticalOrder});e.widgets?e.widgets.floorFilter=t:e.widgets=new u({floorFilter:t})}}_computeFloors(e){if("single-floor"===this.filterMode)this._computeSingleFloor(e);else if("base-floors"===this.filterMode)return"3d"===this.view?.type?this._computeBaseFloors3D(e):this._computeBaseFloors(e);return this._computeEmptyFloors()}_computeSingleFloor(e){if(!e)return this._computeEmptyFloors();const t=[];if("all"===e?.id){this.getFacilityLevels(e.facilityId).forEach(e=>{e.id&&t.push(e.id)})}else e&&t.push(e.id);return t}_computeBaseFloors(e){const t=this.filterFeatures?.levels?.levelsInfo;if(!t?.length)return this._computeEmptyFloors();const i=[];if("all"===e?.id){this.getFacilityLevels(e.facilityId).forEach(e=>{e.id&&i.push(e.id)})}else e&&i.push(e.id);const l=e?.facilityId,s=e?.verticalOrder,r=(e,t)=>{0===e&&i.push(t)};return t.forEach(e=>{const{id:t,facilityId:o,verticalOrder:a}=e;l||i.includes(t)?o===l||i.includes(t)||(this.useVerticalOrder?a===s&&i.push(t):r(a,t)):r(a,t)}),i}_computeBaseFloors3D(e){const t=this.filterFeatures?.levels?.levelsInfo;if(!t?.length)return this._computeEmptyFloors();const i=[],l=e?.id.split("--")??[];if(l?.length>1&&"all"===l[0]){this.getFacilityLevels(e?.facilityId).forEach(e=>{e.id&&i.push(e.id)})}else e&&i.push(e.id);const s=e?.facilityId;return t.forEach(e=>{const{id:t,facilityId:l}=e;(s||i.includes(t))&&(l===s||i.includes(t))||i.push(t)}),i}_computeEmptyFloors(){return[]}async _setFilterLayers(){const{view:e}=this;if(e&&!this._isOverridden("filterLayers")){if(!p(e.map)&&!v(e.map))throw new s("floorfilter:unsupported-map","Map must be a webmap or webscene");{const t=e.map,i=t?.allLayers;if(i?.items?.length>0){const e={siteLayer:null,facilityLayer:null,levelLayer:null},l=t.floorInfo?.siteLayer?.layerId,s=t.floorInfo?.facilityLayer?.layerId,r=t.floorInfo?.levelLayer?.layerId,o=t.floorInfo?.siteLayer?.sublayerId||t.floorInfo?.facilityLayer?.sublayerId||t.floorInfo?.levelLayer?.sublayerId;if(!s||!r)return;const a=i.items.filter(e=>"feature"===e.type||"scene"===e.type),n=i.items.filter(e=>"map-image"===e.type);if(n?.length>0&&o){await Promise.all(n.map(e=>e.load()));const i=t.floorInfo?.siteLayer?.sublayerId,o=t.floorInfo?.facilityLayer?.sublayerId,a=t.floorInfo?.levelLayer?.sublayerId;n.forEach(t=>{const n=t.id,h=t?.allSublayers,d=h?.items;(n===l||n===s||n===r)&&d?.length>0&&h.items.forEach(t=>{const s=t.id;n===l&&s===i?e.siteLayer=t:s===o?e.facilityLayer=t:s===a&&(e.levelLayer=t)})})}a?.length>0&&a.forEach(t=>{const i=t.id;i===l?e.siteLayer=t:i===s?e.facilityLayer=t:i===r&&(e.levelLayer=t)}),this.filterLayers=e}}}}async _getFilterFeatures(){if(this._isOverridden("filterFeatures"))return this.filterFeatures;const[e,t,i]=await Promise.all([this._getSites(),this._getFacilities(),this._getLevels()]);return{sites:e,facilities:t,levels:i}}async _getSites(){const e={sitesInfo:[]},{filterLayers:t,view:i}=this,l=i?.map,{siteLayer:s}=t;if(!s||!l?.floorInfo?.siteLayer)return e;const r=s.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0,"type"in s&&"scene"===s.type&&(r.multipatchOption="xyFootprint");const{siteIdField:o,nameField:a}=l.floorInfo.siteLayer,n=await s.queryFeatures(r);if(n?.features?.length>0){const t=n.features,i=s?.fieldsIndex.get(o)?.name||o,l=s?.fieldsIndex.get(a)?.name||a;null!=i&&null!=l&&t.forEach(t=>{const s=t.attributes,r=t.geometry,o=s[i],a=s[l];o&&a&&e.sitesInfo.push({id:o,name:a,geometry:r})})}return e}async _getFacilities(){const{filterLayers:e,view:t}=this,i=t?.map,{facilityLayer:l}=e,s={facilitiesInfo:[]};if(!l||!i?.floorInfo?.facilityLayer)return s;const r=l.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0,"type"in l&&"scene"===l.type&&(r.multipatchOption="xyFootprint");const{facilityIdField:o,siteIdField:a,nameField:n}=i.floorInfo.facilityLayer,h=await l.queryFeatures(r);if(h?.features?.length>0){const e=h.features,t=l?.fieldsIndex.get(o)?.name||o,i=l?.fieldsIndex.get(a)?.name||a,r=l?.fieldsIndex.get(n)?.name||n;t&&i&&r&&e.forEach(e=>{const l=e.attributes,o=e.geometry,a=l[t],n=l[i],h=l[r];a&&h&&s.facilitiesInfo.push({id:a,siteId:n,name:h,geometry:o})})}return s}async _getLevels(){const{filterLayers:e,view:t}=this,i=t?.map,{levelLayer:l}=e,s={levelsInfo:[]};if(!l||!i?.floorInfo?.levelLayer)return s;const r=l.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0;const{levelIdField:o,facilityIdField:a,longNameField:n,shortNameField:h,levelNumberField:d,verticalOrderField:c}=i.floorInfo.levelLayer,u=await l.queryFeatures(r);if(u?.features?.length>0){const e=u.features,t=l?.fieldsIndex.get(o)?.name||o,i=l?.fieldsIndex.get(a)?.name||a,r=l?.fieldsIndex.get(n)?.name||n,f=l?.fieldsIndex.get(h)?.name||h,p=l?.fieldsIndex.get(d)?.name||d,y=l?.fieldsIndex.get(c)?.name||c;t&&i&&r&&f&&p&&y&&e.forEach(e=>{const l=e.attributes,o=l[t],a=l[i],n=l[r],h=l[f],d=l[p],c=l[y];o&&a&&n&&h&&"number"==typeof d&&"number"==typeof c&&s.levelsInfo.push({id:o,facilityId:a,longName:n,shortName:h,levelNumber:d,verticalOrder:c})})}return s}_registerWidget(e){const t=e?.persistableViewModels.includes(this);t||e?.persistableViewModels.add(this)}_unregisterWidget(e){e?.persistableViewModels.remove(this)}_watchSearchResults(e){e?.on("select-result-floor",e=>{const t=this.getLevel(e);t&&this.level!==e&&(this.level=e,this.setFloors(t))})}async _setInitialViewState(e){if(this.view)try{await this.view.when(),await this._setFilterLayers();const t=await this._getFilterFeatures();if(!t)return;if(this.filterFeatures=t,!this.hasFacilities||!this.hasLevels)return void console.error("Facilities and Levels are required for the Floor Filter widget");if(this.hasMultipleSites||(this.filterMenuType="facility"),this.facility&&this.level){this.filterMenuType="facility";const e=this.getFacility(this.facility),t=this.getLevel(this.level);this.site||(this.site=e?.siteId||void 0),this.setFloors(t)}else if(this.facility&&!this.level){this.filterMenuType="facility";const e=this.getFacility(this.facility),t=this.getBaseLevel(e);this.site||(this.site=e?.siteId||void 0),this.level=t?.id||void 0,this.setFloors(t)}else if(!this.facility&&this.level){this.filterMenuType="facility";const e=this.getLevel(this.level),t=this.getFacility(e?.facilityId);this.facility=t?.id||void 0,this.site||(this.site=t?.siteId||void 0),this.setFloors(e)}else if(!this.site||this.facility||this.level){if(!e||!p(e))return void this.setFloors(null);const t=e?.widgets?.floorFilter;if(!t)return void this.setFloors(null);t.site&&!this.site&&(this.site=t.site,this.filterMenuType="facility"),this.setFloors(null)}else this.filterMenuType="site",this.setFloors(null)}catch(t){console.error("Couldn't retrieve sites, facilities, and levels",t)}}_callOverride(e,t){this._override(e,t)}async _updateFloorFilterFromMap(e){if(!e||!p(e))return;const t=e?.widgets?.floorFilter;t&&(this._isOverridden("enabled")||(this.enabled=t.enabled),this._isOverridden("longNames")||(this.longNames=t.longNames),this._isOverridden("minimized")||(this.minimized=t.minimized),this._isOverridden("pinnedLevels")||(this.pinnedLevels=t.pinnedLevels),this._isOverridden("site")||(this.site=t.site),this._isOverridden("facility")||(this.facility=t.facility),this._isOverridden("level")||(this.level=t.level))}_computeViewAllModeFloors(e){const{filterFeatures:t}=this;if(e.floorInfo?.viewAllMode&&this.hasLevels&&this.hasFacilities&&"base-floors"===this.filterMode){const{level:i,facility:s}=this,r=[];t.levels.levelsInfo.forEach(e=>{const{id:t,facilityId:l}=e;s&&l===s?i&&t===i&&r.push(t):r.push(t)}),e.floorInfo.viewAllLevelIds=new l(r)}}};e([d({value:!1})],m.prototype,"enabled",null),e([d({value:void 0})],m.prototype,"facility",null),e([d({value:null})],m.prototype,"filterFeatures",null),e([d({value:null})],m.prototype,"filterLayers",null),e([d()],m.prototype,"filterMenuOpen",void 0),e([d()],m.prototype,"filterMenuType",void 0),e([d()],m.prototype,"filterMode",void 0),e([d()],m.prototype,"hasFacilities",null),e([d()],m.prototype,"hasLevels",null),e([d()],m.prototype,"hasMultipleSites",null),e([d({readOnly:!0})],m.prototype,"isNormalMode",null),e([d({value:void 0})],m.prototype,"level",null),e([d({value:!1})],m.prototype,"longNames",null),e([d()],m.prototype,"levelsExpanded",void 0),e([d({value:!1})],m.prototype,"minimized",null),e([d({value:!1})],m.prototype,"pinnedLevels",null),e([d()],m.prototype,"searchTerm",void 0),e([d({readOnly:!0})],m.prototype,"selectedVerticalOrder",null),e([d({value:void 0})],m.prototype,"site",null),e([d({readOnly:!0})],m.prototype,"state",null),e([d({readOnly:!0,value:!1})],m.prototype,"useVerticalOrder",null),e([d()],m.prototype,"view",void 0),e([d()],m.prototype,"_viewHeightBreakpoint",void 0),e([d()],m.prototype,"_viewWidthBreakpoint",void 0),e([d()],m.prototype,"updateWebDocument",null),m=e([c("esri.widgets.FloorFilter.FloorFilterViewModel")],m);const F=m;export{F as default};
5
+ import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{createTask as i}from"../../core/asyncUtils.js";import l from"../../core/Collection.js";import s from"../../core/Error.js";import{throwIfAborted as r}from"../../core/promiseUtils.js";import{watch as o,initial as a,syncAndInitial as n}from"../../core/reactiveUtils.js";import{Milliseconds as h}from"../../core/time.js";import{property as d,subclass as c}from"../../core/accessorSupport/decorators.js";import u from"../../webdoc/Widgets.js";import f from"../../webdoc/widgets/FloorFilter.js";import{isWebMap as p}from"../../webmap/utils.js";import{GoTo as y}from"../support/GoTo.js";function v(e){return"esri.WebScene"===e.declaredClass}let m=class extends(y(t)){constructor(e){super(e),this.filterMenuOpen=!1,this.filterMenuType="site",this.filterMode="base-floors",this.levelsExpanded=!0,this.searchTerm=null,this.view=null,this._updateFloorFilterTask=null,this._viewHeightBreakpoint=null,this._viewWidthBreakpoint=null}initialize(){this.addHandles([o(()=>this.view?.map,e=>{null!=this._updateFloorFilterTask&&(this._updateFloorFilterTask.abort(),this._updateFloorFilterTask=null),this._updateFloorFilterTask=i(async t=>{await this._updateFloorFilterFromMap(e),r(t),this._setInitialViewState(e)})},a),o(()=>this.view,(e,t)=>{this._unregisterWidget(t),this._registerWidget(e),this._watchSearchResults(e)},n),o(()=>this.view?.widthBreakpoint??null,e=>{this._viewWidthBreakpoint=e}),o(()=>this.view?.heightBreakpoint??null,e=>{this._viewHeightBreakpoint=e})])}destroy(){this._unregisterWidget(this.view),this.view=null,null!=this._updateFloorFilterTask&&(this._updateFloorFilterTask.abort(),this._updateFloorFilterTask=null)}set enabled(e){this._callOverride("enabled",e)}set facility(e){if(e&&this._isOverridden("facility")){const t=this.getFacility(e);this.hasMultipleSites&&(this.site=t?.siteId||null)}this._callOverride("facility",e)}set filterFeatures(e){this._callOverride("filterFeatures",e)}set filterLayers(e){this._callOverride("filterLayers",e)}get hasFacilities(){return null!=this.filterLayers?.facilityLayer&&this.filterFeatures?.facilities?.facilitiesInfo?.length>0}get hasLevels(){return null!=this.filterLayers?.levelLayer&&this.filterFeatures?.levels?.levelsInfo?.length>0}get hasMultipleSites(){return null!=this.filterLayers?.siteLayer&&this.filterFeatures?.sites?.sitesInfo?.length>1}get isNormalMode(){let e=!0;const t=this._viewWidthBreakpoint;return"xsmall"!==this._viewHeightBreakpoint&&"xsmall"!==t||(e=!1),e}set level(e){if(!e)return this._callOverride("level",e),this.facility=null,this.site=null,void this.setFloors(null);let t=null,i=null;const l=e?.split("--");if(l?.length>1&&"all"===l[0]?(i=l[1],t={id:e,facilityId:i,shortName:null,longName:null,levelNumber:null,verticalOrder:null}):(t=this.getLevel(e),i=t?.facilityId??null),this.level!==e||this.isNormalMode||this.levelsExpanded)t&&this.hasFacilities&&this.hasLevels?(this.facility=i,this.hasMultipleSites&&(this.site=this.getFacility(i)?.siteId||null),this.setFloors(t)):this._isOverridden("level")&&(this.facility=null,this.site=null,this.hasMultipleSites&&(this.filterMenuType="site"),this.setFloors(null)),this._callOverride("level",e);else{const e=this.getFacilityLevels(i);e?.length>1&&(this.levelsExpanded=!0)}}set longNames(e){this._callOverride("longNames",e)}set minimized(e){this._callOverride("minimized",e)}set pinnedLevels(e){this._callOverride("pinnedLevels",e)}get selectedVerticalOrder(){if(p(this.view?.map)){const e=this.view.map.resourceInfo;return e?.widgets?.floorFilter?.selectedVerticalOrder??null}return null}set site(e){this._callOverride("site",e)}get state(){return this.view&&this.filterFeatures&&this.hasFacilities&&this.hasLevels?"ready":this.view&&!this.filterFeatures?"loading":"disabled"}get useVerticalOrder(){if(p(this.view?.map)){const e=this.view.map.resourceInfo;return e?.widgets?.floorFilter?.useVerticalOrder??!1}return!1}filterFacilities(e){let t=e;this.searchTerm&&(this.searchTerm=this.searchTerm.trim(),t=e.filter(e=>{const{name:t}=e;return t.toLowerCase().includes(this.searchTerm?.toLowerCase())})),this.site&&(t=t.filter(e=>e.siteId===this.site));return t.sort((e,t)=>{const i=e.name,l=t.name;return i.localeCompare(l,void 0,{sensitivity:"base"})})}filterSites(e){let t=e;this.searchTerm&&(this.searchTerm=this.searchTerm.trim(),t=e.filter(e=>{const{name:t}=e;return t.toLowerCase().includes(this.searchTerm?.toLowerCase())}));return t.sort((e,t)=>{const i=e.name,l=t.name;return i.localeCompare(l,void 0,{sensitivity:"base"})})}getBaseLevel(e){const t=this.filterFeatures?.levels?.levelsInfo;let i=null;if(e){const{id:l}=e;if(t&&t.length>0&&(t.forEach(e=>{0===e.verticalOrder&&e.facilityId===l&&(i=e)}),!i)){let e=null;t.forEach(t=>{t.facilityId===l&&(e?(t.verticalOrder??0)>=0?null!=e.verticalOrder&&(e.verticalOrder<0||(t.verticalOrder??0)<e.verticalOrder)&&(e=t):null!=e.verticalOrder&&null!=t.verticalOrder&&e.verticalOrder<0&&t.verticalOrder>e.verticalOrder&&(e=t):e=t)}),e&&(i=e)}}return i}getFacility(e){return this.filterFeatures?.facilities?.facilitiesInfo?.find(t=>t.id===e)??null}getFacilityLevels(e){if(!e||!this.filterFeatures?.levels?.levelsInfo)return[];return this.filterFeatures.levels.levelsInfo.filter(t=>t.facilityId===e).sort((e,t)=>{const i=e.verticalOrder??0,l=t.verticalOrder??0;return i>l?-1:i===l?0:1})}getLevel(e){return this.filterFeatures?.levels?.levelsInfo?.find(t=>t.id===e)??null}getSite(e){return this.filterFeatures?.sites?.sitesInfo?.find(t=>t.id===e)??null}goTo(e){const{view:t}=this;if(!t||!e)return;const{geometry:i}=e;i&&i.extent&&this.callGoTo({target:i.extent,options:{duration:h(1e3),easing:"quad-in-out-coast"}})}setFloors(e){const{view:t}=this;t&&(t?.map?.allLayers?.forEach(e=>{"feature"===e.type&&this._computeViewAllModeFloors(e)}),t.floors=new l(this._computeFloors(e)))}updateWebDocument(e){if(p(e)){const t=new f({enabled:this.enabled,longNames:this.longNames,minimized:this.minimized,pinnedLevels:this.pinnedLevels,site:this.site??null,facility:this.facility??null,level:this.level??null,useVerticalOrder:this.useVerticalOrder,selectedVerticalOrder:this.selectedVerticalOrder});e.widgets?e.widgets.floorFilter=t:e.widgets=new u({floorFilter:t})}}_computeFloors(e){if("single-floor"===this.filterMode)this._computeSingleFloor(e);else if("base-floors"===this.filterMode)return"3d"===this.view?.type?this._computeBaseFloors3D(e):this._computeBaseFloors(e);return this._computeEmptyFloors()}_computeSingleFloor(e){if(!e)return this._computeEmptyFloors();const t=[];if("all"===e?.id){this.getFacilityLevels(e.facilityId).forEach(e=>{e.id&&t.push(e.id)})}else e&&t.push(e.id);return t}_computeBaseFloors(e){const t=this.filterFeatures?.levels?.levelsInfo;if(!t?.length)return this._computeEmptyFloors();const i=[];if("all"===e?.id){this.getFacilityLevels(e.facilityId).forEach(e=>{e.id&&i.push(e.id)})}else e&&i.push(e.id);const l=e?.facilityId,s=e?.verticalOrder,r=(e,t)=>{0===e&&i.push(t)};return t.forEach(e=>{const{id:t,facilityId:o,verticalOrder:a}=e;l||i.includes(t)?o===l||i.includes(t)||(this.useVerticalOrder?a===s&&i.push(t):r(a,t)):r(a,t)}),i}_computeBaseFloors3D(e){const t=this.filterFeatures?.levels?.levelsInfo;if(!t?.length)return this._computeEmptyFloors();const i=[],l=e?.id.split("--")??[];if(l?.length>1&&"all"===l[0]){this.getFacilityLevels(e?.facilityId).forEach(e=>{e.id&&i.push(e.id)})}else e&&i.push(e.id);const s=e?.facilityId;return t.forEach(e=>{const{id:t,facilityId:l}=e;(s||i.includes(t))&&(l===s||i.includes(t))||i.push(t)}),i}_computeEmptyFloors(){return[]}async _setFilterLayers(){const{view:e}=this;if(e&&!this._isOverridden("filterLayers")){if(!p(e.map)&&!v(e.map))throw new s("floorfilter:unsupported-map","Map must be a webmap or webscene");{const t=e.map,i=t?.allLayers;if(i?.items?.length>0){const e={siteLayer:null,facilityLayer:null,levelLayer:null},l=t.floorInfo?.siteLayer?.layerId,s=t.floorInfo?.facilityLayer?.layerId,r=t.floorInfo?.levelLayer?.layerId,o=t.floorInfo?.siteLayer?.sublayerId||t.floorInfo?.facilityLayer?.sublayerId||t.floorInfo?.levelLayer?.sublayerId;if(!s||!r)return;const a=i.items.filter(e=>"feature"===e.type||"scene"===e.type),n=i.items.filter(e=>"map-image"===e.type);if(n?.length>0&&o){await Promise.all(n.map(e=>e.load()));const i=t.floorInfo?.siteLayer?.sublayerId,o=t.floorInfo?.facilityLayer?.sublayerId,a=t.floorInfo?.levelLayer?.sublayerId;n.forEach(t=>{const n=t.id,h=t?.allSublayers,d=h?.items;(n===l||n===s||n===r)&&d?.length>0&&h.items.forEach(t=>{const s=t.id;n===l&&s===i?e.siteLayer=t:s===o?e.facilityLayer=t:s===a&&(e.levelLayer=t)})})}a?.length>0&&a.forEach(t=>{const i=t.id;i===l?e.siteLayer=t:i===s?e.facilityLayer=t:i===r&&(e.levelLayer=t)}),this.filterLayers=e}}}}async _getFilterFeatures(){if(this._isOverridden("filterFeatures"))return this.filterFeatures;const[e,t,i]=await Promise.all([this._getSites(),this._getFacilities(),this._getLevels()]);return{sites:e,facilities:t,levels:i}}async _getSites(){const e={sitesInfo:[]},{filterLayers:t,view:i}=this,l=i?.map,{siteLayer:s}=t;if(!s||!l?.floorInfo?.siteLayer)return e;const r=s.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0,"type"in s&&"scene"===s.type&&(r.multipatchOption="xyFootprint");const{siteIdField:o,nameField:a}=l.floorInfo.siteLayer,n=await s.queryFeatures(r);if(n?.features?.length>0){const t=n.features,i=s?.fieldsIndex.get(o)?.name||o,l=s?.fieldsIndex.get(a)?.name||a;null!=i&&null!=l&&t.forEach(t=>{const s=t.attributes,r=t.geometry,o=s[i],a=s[l];o&&a&&e.sitesInfo.push({id:o,name:a,geometry:r})})}return e}async _getFacilities(){const{filterLayers:e,view:t}=this,i=t?.map,{facilityLayer:l}=e,s={facilitiesInfo:[]};if(!l||!i?.floorInfo?.facilityLayer)return s;const r=l.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0,"type"in l&&"scene"===l.type&&(r.multipatchOption="xyFootprint");const{facilityIdField:o,siteIdField:a,nameField:n}=i.floorInfo.facilityLayer,h=await l.queryFeatures(r);if(h?.features?.length>0){const e=h.features,t=l?.fieldsIndex.get(o)?.name||o,i=l?.fieldsIndex.get(a)?.name||a,r=l?.fieldsIndex.get(n)?.name||n;t&&i&&r&&e.forEach(e=>{const l=e.attributes,o=e.geometry,a=l[t],n=l[i],h=l[r];a&&h&&s.facilitiesInfo.push({id:a,siteId:n,name:h,geometry:o})})}return s}async _getLevels(){const{filterLayers:e,view:t}=this,i=t?.map,{levelLayer:l}=e,s={levelsInfo:[]};if(!l||!i?.floorInfo?.levelLayer)return s;const r=l.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0;const{levelIdField:o,facilityIdField:a,longNameField:n,shortNameField:h,levelNumberField:d,verticalOrderField:c}=i.floorInfo.levelLayer,u=await l.queryFeatures(r);if(u?.features?.length>0){const e=u.features,t=l?.fieldsIndex.get(o)?.name||o,i=l?.fieldsIndex.get(a)?.name||a,r=l?.fieldsIndex.get(n)?.name||n,f=l?.fieldsIndex.get(h)?.name||h,p=l?.fieldsIndex.get(d)?.name||d,y=l?.fieldsIndex.get(c)?.name||c;t&&i&&r&&f&&p&&y&&e.forEach(e=>{const l=e.attributes,o=l[t],a=l[i],n=l[r],h=l[f],d=l[p],c=l[y];o&&a&&n&&h&&"number"==typeof d&&"number"==typeof c&&s.levelsInfo.push({id:o,facilityId:a,longName:n,shortName:h,levelNumber:d,verticalOrder:c})})}return s}_registerWidget(e){const t=e?.persistableViewModels.includes(this);t||e?.persistableViewModels.add(this)}_unregisterWidget(e){e?.persistableViewModels.remove(this)}_watchSearchResults(e){e?.on("select-result-floor",e=>{const t=this.getLevel(e);t&&this.level!==e&&(this.level=e,this.setFloors(t))})}async _setInitialViewState(e){if(this.view)try{await this.view.when(),await this._setFilterLayers();const t=await this._getFilterFeatures();if(!t)return;if(this.filterFeatures=t,!this.hasFacilities||!this.hasLevels)return void console.error("Facilities and Levels are required for the Floor Filter widget");if(this.hasMultipleSites||(this.filterMenuType="facility"),this.facility&&this.level){this.filterMenuType="facility";const e=this.getFacility(this.facility),t=this.getLevel(this.level);this.site||(this.site=e?.siteId||void 0),this.setFloors(t)}else if(this.facility&&!this.level){this.filterMenuType="facility";const e=this.getFacility(this.facility),t=this.getBaseLevel(e);this.site||(this.site=e?.siteId||void 0),this.level=t?.id||void 0,this.setFloors(t)}else if(!this.facility&&this.level){this.filterMenuType="facility";const e=this.getLevel(this.level),t=this.getFacility(e?.facilityId);this.facility=t?.id||void 0,this.site||(this.site=t?.siteId||void 0),this.setFloors(e)}else if(!this.site||this.facility||this.level){if(!e||!p(e))return void this.setFloors(null);const t=e?.widgets?.floorFilter;if(!t)return void this.setFloors(null);t.site&&!this.site&&(this.site=t.site,this.filterMenuType="facility"),this.setFloors(null)}else this.filterMenuType="site",this.setFloors(null)}catch(t){console.error("Couldn't retrieve sites, facilities, and levels",t)}}_callOverride(e,t){this._override(e,t)}async _updateFloorFilterFromMap(e){if(!e||!p(e))return;const t=e?.widgets?.floorFilter;t&&(this._isOverridden("enabled")||(this.enabled=t.enabled),this._isOverridden("longNames")||(this.longNames=t.longNames),this._isOverridden("minimized")||(this.minimized=t.minimized),this._isOverridden("pinnedLevels")||(this.pinnedLevels=t.pinnedLevels),this._isOverridden("site")||(this.site=t.site),this._isOverridden("facility")||(this.facility=t.facility),this._isOverridden("level")||(this.level=t.level))}_computeViewAllModeFloors(e){const{filterFeatures:t}=this;if(e.floorInfo?.viewAllMode&&this.hasLevels&&this.hasFacilities&&"base-floors"===this.filterMode){const{level:i,facility:s}=this,r=[];t.levels.levelsInfo.forEach(e=>{const{id:t,facilityId:l}=e;s&&l===s?i&&t===i&&r.push(t):r.push(t)}),e.floorInfo.viewAllLevelIds=new l(r)}}};e([d({value:!1})],m.prototype,"enabled",null),e([d({value:void 0})],m.prototype,"facility",null),e([d({value:null})],m.prototype,"filterFeatures",null),e([d({value:null})],m.prototype,"filterLayers",null),e([d()],m.prototype,"filterMenuOpen",void 0),e([d()],m.prototype,"filterMenuType",void 0),e([d()],m.prototype,"filterMode",void 0),e([d()],m.prototype,"hasFacilities",null),e([d()],m.prototype,"hasLevels",null),e([d()],m.prototype,"hasMultipleSites",null),e([d({readOnly:!0})],m.prototype,"isNormalMode",null),e([d({value:void 0})],m.prototype,"level",null),e([d({value:!1})],m.prototype,"longNames",null),e([d()],m.prototype,"levelsExpanded",void 0),e([d({value:!1})],m.prototype,"minimized",null),e([d({value:!1})],m.prototype,"pinnedLevels",null),e([d()],m.prototype,"searchTerm",void 0),e([d({readOnly:!0})],m.prototype,"selectedVerticalOrder",null),e([d({value:void 0})],m.prototype,"site",null),e([d({readOnly:!0})],m.prototype,"state",null),e([d({readOnly:!0,value:!1})],m.prototype,"useVerticalOrder",null),e([d()],m.prototype,"view",void 0),e([d()],m.prototype,"_viewHeightBreakpoint",void 0),e([d()],m.prototype,"_viewWidthBreakpoint",void 0),e([d()],m.prototype,"updateWebDocument",null),m=e([c("esri.widgets.FloorFilter.FloorFilterViewModel")],m);const F=m;export{F as default};
@@ -1,4 +1,5 @@
1
1
 
2
+ /** @since 5.0 */
2
3
  export type HistogramState = "disabled" | "ready";
3
4
 
4
5
  /**
@@ -9,6 +10,7 @@ export type HistogramState = "disabled" | "ready";
9
10
  * @param index - The index of the histogram bar. This directly corresponds
10
11
  * to the index of the associated [bin](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#bins).
11
12
  * @param element - The histogram bar element to style.
13
+ * @since 5.0
12
14
  */
13
15
  export type BarCreatedFunction = (index: number, element: SVGElement) => void;
14
16
 
@@ -22,12 +24,22 @@ export type BarCreatedFunction = (index: number, element: SVGElement) => void;
22
24
  * @param labelElement - The SVG element representing the label
23
25
  * rendered on the histogram for the associated line element.
24
26
  * @param index - The index of the data line.
27
+ * @since 5.0
25
28
  */
26
29
  export type DataLineCreatedFunction = (lineElement: SVGElement, labelElement?: SVGElement | null | undefined, index?: number | null | undefined) => void;
27
30
 
31
+ /** @since 5.0 */
28
32
  export interface DataLineInfos {
29
- /** The label associated with the line. */
33
+ /**
34
+ * The label associated with the line.
35
+ *
36
+ * @since 5.0
37
+ */
30
38
  label?: string | number | null;
31
- /** The value on the data axis of the histogram where a line will be rendered. */
39
+ /**
40
+ * The value on the data axis of the histogram where a line will be rendered.
41
+ *
42
+ * @since 5.0
43
+ */
32
44
  value: number;
33
45
  }
@@ -1,2 +1,3 @@
1
1
 
2
+ /** @since 5.0 */
2
3
  export type RangeType = "equal" | "not-equal" | "less-than" | "greater-than" | "at-most" | "at-least" | "between" | "not-between";