@arcgis/core 5.1.0-next.63 → 5.1.0-next.65

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 (346) hide show
  1. package/Camera.d.ts +1 -1
  2. package/Ground.d.ts +7 -7
  3. package/PopupTemplate.d.ts +8 -8
  4. package/WebDocument2D.js +1 -1
  5. package/WebScene.d.ts +1 -1
  6. package/WebScene.js +1 -1
  7. package/analysis/AreaMeasurementAnalysis.d.ts +1 -1
  8. package/analysis/DirectLineMeasurementAnalysis.d.ts +1 -1
  9. package/analysis/LengthDimension.d.ts +4 -4
  10. package/analysis/ShadowCastAnalysis.d.ts +3 -3
  11. package/analysis/SliceAnalysis.d.ts +1 -1
  12. package/analysis/SlicePlane.d.ts +1 -1
  13. package/applications/Components/featureUtils.d.ts +24 -0
  14. package/applications/Components/featureUtils.js +1 -1
  15. package/arcade/geometry/wkt.js +1 -1
  16. package/assets/esri/core/workers/RemoteClient.js +1 -1
  17. package/assets/esri/core/workers/chunks/{8166ad6bbd7d7a8f91cf.js → 0f3b8a08f843a080af0d.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{354351ab3fc79dedf9a8.js → 4eca871ca51a59f6540a.js} +1 -1
  19. package/assets/esri/core/workers/chunks/7e97684e851274efd11f.js +1 -0
  20. package/assets/esri/core/workers/chunks/86f1aa2c108f5224d8b5.js +1 -0
  21. package/assets/esri/core/workers/chunks/b8acb6c2538053c01cc6.js +1 -0
  22. package/assets/esri/core/workers/chunks/d9d69cf2496ebe76eade.js +1 -0
  23. package/assets/esri/core/workers/chunks/{6c72dbd5275bffde1583.js → e622a23034f055de8b55.js} +1 -1
  24. package/assets/esri/core/workers/chunks/ec9d5dcf2a0a11c85341.js +1 -0
  25. package/config.js +1 -1
  26. package/effects/FocusAreas.d.ts +1 -1
  27. package/form/elements/FieldElement.d.ts +1 -1
  28. package/form/elements/GroupElement.d.ts +1 -1
  29. package/form/elements/TextElement.d.ts +1 -1
  30. package/form/elements/inputs/ComboBoxInput.d.ts +1 -1
  31. package/form/elements/inputs/RadioButtonsInput.d.ts +1 -1
  32. package/form/elements/inputs/SwitchInput.d.ts +1 -1
  33. package/geometry/Mesh.d.ts +7 -7
  34. package/geometry/operators/alphaShapeOperator.d.ts +1 -1
  35. package/geometry/operators/areaOperator.d.ts +1 -1
  36. package/geometry/operators/bufferOperator.d.ts +1 -1
  37. package/geometry/operators/centroidOperator.d.ts +1 -1
  38. package/geometry/operators/clipOperator.d.ts +1 -1
  39. package/geometry/operators/containsOperator.d.ts +1 -1
  40. package/geometry/operators/convexHullOperator.d.ts +1 -1
  41. package/geometry/operators/crossesOperator.d.ts +1 -1
  42. package/geometry/operators/cutOperator.d.ts +1 -1
  43. package/geometry/operators/densifyOperator.d.ts +1 -1
  44. package/geometry/operators/differenceOperator.d.ts +1 -1
  45. package/geometry/operators/disjointOperator.d.ts +1 -1
  46. package/geometry/operators/distanceOperator.d.ts +1 -1
  47. package/geometry/operators/generalizeOperator.d.ts +1 -1
  48. package/geometry/operators/geodesicProximityOperator.d.ts +1 -1
  49. package/geometry/operators/geodeticDistanceOperator.d.ts +1 -1
  50. package/geometry/operators/geodeticUtilsOperator.d.ts +2 -2
  51. package/geometry/operators/graphicBufferOperator.d.ts +1 -1
  52. package/geometry/operators/intersectionOperator.d.ts +1 -1
  53. package/geometry/operators/intersectsOperator.d.ts +1 -1
  54. package/geometry/operators/isNearOperator.d.ts +1 -1
  55. package/geometry/operators/lengthOperator.d.ts +1 -1
  56. package/geometry/operators/locateBetweenOperator.d.ts +1 -1
  57. package/geometry/operators/multiPartToSinglePartOperator.d.ts +1 -1
  58. package/geometry/operators/offsetOperator.d.ts +5 -5
  59. package/geometry/operators/overlapsOperator.d.ts +1 -1
  60. package/geometry/operators/proximityOperator.d.ts +1 -1
  61. package/geometry/operators/simplifyOGCOperator.d.ts +1 -1
  62. package/geometry/operators/simplifyOperator.d.ts +1 -1
  63. package/geometry/operators/support/Transformation.d.ts +6 -6
  64. package/geometry/operators/symmetricDifferenceOperator.d.ts +1 -1
  65. package/geometry/operators/touchesOperator.d.ts +1 -1
  66. package/geometry/operators/unionOperator.d.ts +1 -1
  67. package/geometry/operators/withinOperator.d.ts +1 -1
  68. package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
  69. package/geometry/support/vcsData.js +2 -0
  70. package/geometry/support/vcsLookup.js +2 -0
  71. package/kernel.js +1 -1
  72. package/layers/BuildingSceneLayer.d.ts +4 -4
  73. package/layers/CSVLayer.d.ts +2 -2
  74. package/layers/CatalogLayer.d.ts +2 -2
  75. package/layers/ElevationLayer.d.ts +1 -1
  76. package/layers/FeatureLayer.d.ts +2 -2
  77. package/layers/GeoJSONLayer.d.ts +2 -2
  78. package/layers/GeoRSSLayer.d.ts +1 -1
  79. package/layers/GraphicsLayer.d.ts +2 -2
  80. package/layers/ImageryLayer.d.ts +3 -3
  81. package/layers/ImageryTileLayer.d.ts +2 -2
  82. package/layers/IntegratedMesh3DTilesLayer.d.ts +6 -6
  83. package/layers/IntegratedMeshLayer.d.ts +7 -7
  84. package/layers/MapImageLayer.d.ts +1 -1
  85. package/layers/MediaLayer.d.ts +1 -1
  86. package/layers/OGCFeatureLayer.d.ts +2 -2
  87. package/layers/PointCloudLayer.d.ts +1 -1
  88. package/layers/SceneLayer.d.ts +9 -9
  89. package/layers/StreamLayer.d.ts +2 -2
  90. package/layers/VectorTileLayer.d.ts +2 -2
  91. package/layers/VideoLayer.d.ts +1 -1
  92. package/layers/VoxelLayer.d.ts +8 -8
  93. package/layers/WFSLayer.d.ts +6 -6
  94. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  95. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  96. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  97. package/layers/mixins/ArcGISImageService.js +1 -1
  98. package/layers/mixins/BlendLayer.d.ts +6 -6
  99. package/layers/pointCloudFilters/PointCloudReturnFilter.d.ts +1 -1
  100. package/layers/pointCloudFilters/PointCloudValueFilter.d.ts +1 -1
  101. package/layers/support/DimensionalDefinition.d.ts +2 -2
  102. package/layers/support/FeatureEffect.d.ts +4 -4
  103. package/layers/support/FeatureFilter.d.ts +17 -17
  104. package/layers/support/FeatureReductionBinning.d.ts +1 -1
  105. package/layers/support/FeatureReductionCluster.d.ts +9 -9
  106. package/layers/support/FeatureReductionSelection.d.ts +1 -1
  107. package/layers/support/LabelClass.d.ts +2 -2
  108. package/layers/support/RasterFunction.d.ts +1 -1
  109. package/layers/support/SceneFilter.d.ts +2 -2
  110. package/layers/support/SceneModification.d.ts +3 -3
  111. package/layers/support/capabilities.js +1 -1
  112. package/layers/support/featureLayerUtils.js +1 -1
  113. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  114. package/layers/types.d.ts +6 -0
  115. package/package.json +1 -1
  116. package/popup/Feature.d.ts +6 -6
  117. package/popup/Feature.js +1 -1
  118. package/popup/Features.d.ts +3 -14
  119. package/popup/Features.js +1 -1
  120. package/popup/content/AttachmentsContent.d.ts +1 -1
  121. package/popup/content/BarChartMediaInfo.d.ts +1 -1
  122. package/popup/content/ColumnChartMediaInfo.d.ts +1 -1
  123. package/popup/content/FieldsContent.d.ts +1 -1
  124. package/popup/content/ImageMediaInfo.d.ts +1 -1
  125. package/popup/content/LineChartMediaInfo.d.ts +1 -1
  126. package/popup/content/MediaContent.d.ts +1 -1
  127. package/popup/content/PieChartMediaInfo.d.ts +1 -1
  128. package/popup/content/RelationshipContent.d.ts +1 -1
  129. package/popup/content/TextContent.d.ts +1 -1
  130. package/popup/support/featureUtils.js +1 -1
  131. package/popup/types.d.ts +193 -8
  132. package/portal/schemas/definitions.js +1 -1
  133. package/renderers/ClassBreaksRenderer.d.ts +1 -1
  134. package/renderers/DictionaryRenderer.d.ts +1 -1
  135. package/renderers/DotDensityRenderer.d.ts +3 -3
  136. package/renderers/FlowRenderer.d.ts +5 -5
  137. package/renderers/HeatmapRenderer.d.ts +3 -3
  138. package/renderers/PieChartRenderer.d.ts +1 -1
  139. package/renderers/RasterShadedReliefRenderer.d.ts +1 -1
  140. package/renderers/Renderer.d.ts +4 -4
  141. package/renderers/SimpleRenderer.d.ts +2 -2
  142. package/renderers/UniqueValueRenderer.d.ts +2 -2
  143. package/renderers/VectorFieldRenderer.d.ts +1 -1
  144. package/renderers/mixins/VisualVariablesMixin.d.ts +12 -12
  145. package/renderers/visualVariables/ColorVariable.d.ts +1 -1
  146. package/renderers/visualVariables/OpacityVariable.d.ts +1 -1
  147. package/renderers/visualVariables/RotationVariable.d.ts +1 -1
  148. package/renderers/visualVariables/SizeVariable.d.ts +1 -1
  149. package/renderers/visualVariables/VisualVariable.d.ts +1 -1
  150. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  151. package/rest/support/AttributeBinsQuery.d.ts +8 -8
  152. package/rest/support/AutoIntervalBinParameters.d.ts +1 -1
  153. package/rest/support/DateBinParameters.d.ts +1 -1
  154. package/rest/support/FixedBoundariesBinParameters.d.ts +1 -1
  155. package/rest/support/FixedIntervalBinParameters.d.ts +1 -1
  156. package/rest/support/Query.d.ts +8 -8
  157. package/rest/support/TopFeaturesQuery.d.ts +8 -8
  158. package/smartMapping/labels/clusters.d.ts +1 -1
  159. package/smartMapping/popup/clusters.d.ts +2 -2
  160. package/smartMapping/popup/templates.d.ts +1 -1
  161. package/smartMapping/raster/renderers/flow.d.ts +2 -2
  162. package/smartMapping/renderers/color.d.ts +12 -12
  163. package/smartMapping/renderers/predominance.d.ts +3 -3
  164. package/smartMapping/renderers/relationship.d.ts +15 -15
  165. package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
  166. package/smartMapping/symbology/color.d.ts +4 -4
  167. package/smartMapping/symbology/flow.d.ts +2 -2
  168. package/smartMapping/symbology/types.d.ts +18 -18
  169. package/support/actions/ActionButton.d.ts +1 -1
  170. package/support/revision.js +1 -1
  171. package/symbols/CIMSymbol.d.ts +1 -1
  172. package/symbols/ExtrudeSymbol3DLayer.d.ts +1 -1
  173. package/symbols/FillSymbol3DLayer.d.ts +3 -3
  174. package/symbols/IconSymbol3DLayer.d.ts +1 -1
  175. package/symbols/LabelSymbol3D.d.ts +2 -2
  176. package/symbols/LineStyleMarker3D.d.ts +7 -7
  177. package/symbols/LineSymbol3D.d.ts +2 -2
  178. package/symbols/LineSymbol3DLayer.d.ts +7 -7
  179. package/symbols/LineSymbolMarker.d.ts +6 -6
  180. package/symbols/MarkerSymbol.d.ts +1 -1
  181. package/symbols/MeshSymbol3D.d.ts +2 -2
  182. package/symbols/ObjectSymbol3DLayer.d.ts +1 -1
  183. package/symbols/PathSymbol3DLayer.d.ts +14 -14
  184. package/symbols/PictureFillSymbol.d.ts +1 -1
  185. package/symbols/PictureMarkerSymbol.d.ts +1 -1
  186. package/symbols/PointSymbol3D.d.ts +3 -3
  187. package/symbols/PolygonSymbol3D.d.ts +5 -5
  188. package/symbols/SimpleFillSymbol.d.ts +8 -8
  189. package/symbols/SimpleLineSymbol.d.ts +20 -20
  190. package/symbols/SimpleMarkerSymbol.d.ts +7 -7
  191. package/symbols/Symbol3DLayer.d.ts +16 -16
  192. package/symbols/TextSymbol.d.ts +1 -1
  193. package/symbols/TextSymbol3DLayer.d.ts +1 -1
  194. package/symbols/WaterSymbol3DLayer.d.ts +3 -3
  195. package/symbols/WebStyleSymbol.d.ts +12 -12
  196. package/symbols/callouts/Callout3D.d.ts +1 -1
  197. package/symbols/callouts/LineCallout3D.d.ts +3 -3
  198. package/symbols/cim/types.d.ts +23 -23
  199. package/symbols/edges/Edges3D.d.ts +1 -1
  200. package/symbols/edges/SolidEdges3D.d.ts +1 -1
  201. package/symbols/patterns/LineStylePattern3D.d.ts +11 -11
  202. package/symbols/patterns/StylePattern3D.d.ts +8 -8
  203. package/symbols/support/ElevationInfo.d.ts +2 -2
  204. package/symbols/support/IconSymbol3DLayerResource.d.ts +6 -6
  205. package/symbols/support/ObjectSymbol3DLayerResource.d.ts +7 -7
  206. package/symbols/support/Symbol3DEmissive.d.ts +2 -2
  207. package/symbols/support/Symbol3DVerticalOffset.d.ts +2 -2
  208. package/views/2d/engine/flow/FlowStrategy.js +1 -1
  209. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  210. package/views/2d/engine/flow/styles/Particles.js +1 -1
  211. package/views/2d/engine/flow/styles/Stack.js +1 -1
  212. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  213. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  214. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  215. package/views/2d/layers/BaseLayerViewGL2D.d.ts +1 -1
  216. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  217. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  218. package/views/2d/types.d.ts +3 -3
  219. package/views/3d/FocusAreasView.js +1 -1
  220. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  221. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  222. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  223. package/views/3d/environment/CloudyWeather.d.ts +1 -1
  224. package/views/3d/environment/Environment.d.ts +4 -4
  225. package/views/3d/environment/FoggyWeather.d.ts +1 -1
  226. package/views/3d/environment/RainyWeather.d.ts +1 -1
  227. package/views/3d/environment/SnowyWeather.d.ts +1 -1
  228. package/views/3d/environment/SunLighting.d.ts +1 -1
  229. package/views/3d/environment/SunnyWeather.d.ts +1 -1
  230. package/views/3d/environment/VirtualLighting.d.ts +1 -1
  231. package/views/3d/layers/graphics/extrudeUtils.js +1 -1
  232. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  233. package/views/3d/webgl/RenderNode.d.ts +2 -2
  234. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  235. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  236. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  237. package/views/3d/webgl.d.ts +1 -1
  238. package/views/Magnifier.d.ts +3 -3
  239. package/views/MapView.d.ts +7 -7
  240. package/views/SceneView.d.ts +16 -16
  241. package/views/View.d.ts +17 -3
  242. package/views/View.js +1 -1
  243. package/views/interactive/sketch/SketchLabelOptions.d.ts +1 -1
  244. package/views/interactive/sketch/SketchTooltipOptions.d.ts +1 -1
  245. package/views/interactive/snapping/SnappingOptions.d.ts +7 -7
  246. package/views/layers/LineOfSightLayerView.d.ts +3 -2
  247. package/views/support/HighlightOptions.d.ts +1 -1
  248. package/views/types.d.ts +59 -2
  249. package/views/ui/DefaultUI.d.ts +2 -2
  250. package/webscene/Environment.d.ts +10 -10
  251. package/webscene/Glow.d.ts +1 -1
  252. package/webscene/background/ColorBackground.d.ts +1 -1
  253. package/widgets/AreaMeasurement2D.d.ts +1 -1
  254. package/widgets/AreaMeasurement3D.d.ts +2 -2
  255. package/widgets/Attachments.d.ts +1 -1
  256. package/widgets/Attribution.d.ts +1 -1
  257. package/widgets/BasemapGallery.d.ts +1 -1
  258. package/widgets/BasemapLayerList.d.ts +3 -3
  259. package/widgets/BasemapToggle.d.ts +1 -1
  260. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +1 -1
  261. package/widgets/Bookmarks.d.ts +2 -2
  262. package/widgets/BuildingExplorer.d.ts +1 -1
  263. package/widgets/CatalogLayerList.d.ts +3 -3
  264. package/widgets/Compass.d.ts +2 -2
  265. package/widgets/CoordinateConversion.d.ts +1 -1
  266. package/widgets/Daylight.d.ts +5 -5
  267. package/widgets/DirectLineMeasurement3D.d.ts +2 -2
  268. package/widgets/Directions.d.ts +4 -4
  269. package/widgets/DistanceMeasurement2D.d.ts +1 -1
  270. package/widgets/Editor/CreateFeaturesWorkflow.d.ts +1 -1
  271. package/widgets/Editor.d.ts +8 -8
  272. package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +1 -1
  273. package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +1 -1
  274. package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +1 -1
  275. package/widgets/ElevationProfile.d.ts +3 -3
  276. package/widgets/Expand.d.ts +1 -1
  277. package/widgets/FeatureForm.d.ts +1 -1
  278. package/widgets/FeatureTable/ActionColumn.d.ts +2 -2
  279. package/widgets/FeatureTable/AttachmentsColumn.d.ts +1 -1
  280. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +3 -3
  281. package/widgets/FeatureTable/Grid/GroupColumn.d.ts +1 -1
  282. package/widgets/FeatureTable/RelationshipColumn.d.ts +1 -1
  283. package/widgets/FeatureTable/VisibleElements.d.ts +1 -1
  284. package/widgets/FeatureTable.d.ts +10 -10
  285. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +5 -5
  286. package/widgets/FeatureTemplates.d.ts +8 -8
  287. package/widgets/Features/FeaturesViewModel.d.ts +2 -2
  288. package/widgets/Features/FeaturesVisibleElements.d.ts +2 -2
  289. package/widgets/Features.d.ts +1 -1
  290. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  291. package/widgets/FloorFilter.d.ts +2 -2
  292. package/widgets/Histogram.d.ts +2 -2
  293. package/widgets/HistogramRangeSlider.d.ts +1 -1
  294. package/widgets/Home.d.ts +1 -1
  295. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  296. package/widgets/LayerList.d.ts +4 -4
  297. package/widgets/Legend.d.ts +8 -8
  298. package/widgets/LineOfSight.d.ts +1 -1
  299. package/widgets/Locate.d.ts +2 -2
  300. package/widgets/Measurement.d.ts +1 -1
  301. package/widgets/NavigationToggle/NavigationToggleViewModel.d.ts +1 -1
  302. package/widgets/NavigationToggle.d.ts +3 -3
  303. package/widgets/Popup/PopupVisibleElements.d.ts +2 -2
  304. package/widgets/Popup.d.ts +5 -5
  305. package/widgets/Print/CustomTemplate.d.ts +1 -1
  306. package/widgets/Print/TemplateOptions.d.ts +4 -4
  307. package/widgets/ScaleRangeSlider.d.ts +1 -1
  308. package/widgets/Search/SearchViewModel.d.ts +4 -4
  309. package/widgets/Search.d.ts +5 -5
  310. package/widgets/ShadowCast.d.ts +3 -3
  311. package/widgets/Sketch/SketchViewModel.d.ts +39 -39
  312. package/widgets/Sketch.d.ts +43 -43
  313. package/widgets/Slice.d.ts +2 -2
  314. package/widgets/Slider/SliderViewModel.d.ts +2 -2
  315. package/widgets/Slider.d.ts +9 -9
  316. package/widgets/Swipe/SwipeViewModel.d.ts +1 -1
  317. package/widgets/Swipe.d.ts +2 -2
  318. package/widgets/TableList/ListItemPanel.d.ts +1 -1
  319. package/widgets/TableList.d.ts +1 -1
  320. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +10 -10
  321. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  322. package/widgets/TimeSlider/types.d.ts +1 -1
  323. package/widgets/TimeSlider.d.ts +13 -13
  324. package/widgets/Track.d.ts +2 -2
  325. package/widgets/UtilityNetworkAssociations.d.ts +3 -3
  326. package/widgets/UtilityNetworkTrace.d.ts +4 -4
  327. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
  328. package/widgets/ValuePicker.d.ts +5 -5
  329. package/widgets/VideoPlayer.d.ts +1 -1
  330. package/widgets/smartMapping/ClassedColorSlider.d.ts +1 -1
  331. package/widgets/smartMapping/ClassedSizeSlider.d.ts +1 -1
  332. package/widgets/smartMapping/ColorSizeSlider.d.ts +2 -2
  333. package/widgets/smartMapping/ColorSlider.d.ts +1 -1
  334. package/widgets/smartMapping/HeatmapSlider.d.ts +1 -1
  335. package/widgets/smartMapping/OpacitySlider.d.ts +1 -1
  336. package/widgets/smartMapping/SizeSlider.d.ts +1 -1
  337. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +4 -4
  338. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +6 -6
  339. package/widgets/support/GridControls.d.ts +1 -1
  340. package/widgets/support/SnappingControls/VisibleElements.d.ts +1 -1
  341. package/widgets/support/SnappingControls.d.ts +6 -6
  342. package/assets/esri/core/workers/chunks/2aaeaf022af8493281dc.js +0 -1
  343. package/assets/esri/core/workers/chunks/2d92ba11781a3cfc3a78.js +0 -1
  344. package/assets/esri/core/workers/chunks/5c6e5f22450dd0583074.js +0 -1
  345. package/assets/esri/core/workers/chunks/75f7c1f600c4051bc905.js +0 -1
  346. package/assets/esri/core/workers/chunks/ee8cd91c27e9cdfc3b2e.js +0 -1
@@ -396,7 +396,7 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
396
396
  * Once set, interacting with a table row will select and highlight the corresponding feature in the view.
397
397
  * Multiple selections within the table are turned on by default. To update this behavior, set the [multipleSelectionEnabled](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#multipleSelectionEnabled) property to `false`.
398
398
  *
399
- * ![featuretable-highlightIds](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/selected-features.png)
399
+ * ![featuretable-highlightIds](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/selected-features.avif)
400
400
  *
401
401
  * <details>
402
402
  * <summary>Read More</summary>
@@ -416,7 +416,7 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
416
416
  * });
417
417
  * });
418
418
  * ```
419
- * ![featuretable-rowHighlightIds](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/rowhighlightids.png)
419
+ * ![featuretable-rowHighlightIds](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/rowhighlightids.avif)
420
420
  *
421
421
  * Additionally, selection and highlight behavior can be enhanced using the feature table's [events](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#FeatureTableEvents). These events are designed to listen for cell interaction and include: [@cell-click](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#event-cell-click), [@cell-keydown](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#event-cell-keydown), [@cell-pointerout](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#event-cell-pointerout), and [@cell-pointerover](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#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.
422
422
  *
@@ -448,7 +448,7 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
448
448
  * ## Editing within the FeatureTable
449
449
  * The FeatureTable provides the ability to edit feature attributes within the table. This is accomplished by setting the [editingEnabled](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#editingEnabled) property to `true`. The editing experience is similar to that of a spreadsheet, where end-users can click into a cell to edit its value. The table automatically saves edits to the layer once navigating away from the cell or `Enter` is pressed. Press the `Esc` key to cancel an edit. The FeatureTable also provides the ability to delete selected records. This is done by selecting the rows to delete and clicking the `Delete Selection` menu item. The `Delete Selection` menu item is only available if the [editingEnabled](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#editingEnabled) property is set to `true` and the feature service supports editing.
450
450
  *
451
- * ![featuretable editing](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/editing.png)
451
+ * ![featuretable editing](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/editing.avif)
452
452
  *
453
453
  * <details>
454
454
  * <summary>Read More</summary>
@@ -475,11 +475,11 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
475
475
  *
476
476
  * | Origin table with related records |
477
477
  * |---------------------------------- |
478
- * | ![Origin table related records](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/relate-table-origin.png) |
478
+ * | ![Origin table related records](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/relate-table-origin.avif) |
479
479
  *
480
480
  * | Destination table with related records |
481
481
  * |-----------------------------------|
482
- * | ![Destination table related records](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/relate-dest-table.png) |
482
+ * | ![Destination table related records](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/relate-dest-table.avif) |
483
483
  *
484
484
  * This is done by setting the [relatedRecordsEnabled](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#relatedRecordsEnabled) property to `true`. When this property is set, the table will contain a field that links to any related records associated with each feature in the table. When clicked, a separate table displays the related records for that feature. The FeatureTable provides the ability to show nested related records, which are related records that contain their own related records. It automatically recognizes if there are any related tables associated a table and, if applicable, displays links to related records for that feature or row. The following example demonstrates how to configure the FeatureTable to display related records:
485
485
  *
@@ -563,7 +563,7 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
563
563
  * <details>
564
564
  * <summary>Read More</summary>
565
565
  *
566
- * [![FeatureTable custom content](https://developers.arcgis.com/javascript/latest/assets/images/guide/whats-new/430/featuretable/table-custom-content.png)](https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-custom-content/)
566
+ * [![FeatureTable custom content](https://developers.arcgis.com/javascript/latest/assets/images/guide/whats-new/430/featuretable/table-custom-content.avif)](https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-custom-content/)
567
567
  *
568
568
  *
569
569
  * ```javascript
@@ -601,7 +601,7 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
601
601
  *
602
602
  * | Default column menu items | Configured column menu items |
603
603
  * |--------|------|
604
- * | ![Default column menu items](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/column-menu-items.png) | ![Configured column menu items](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/column-menu-items-config.png)) |
604
+ * | ![Default column menu items](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/column-menu-items.avif) | ![Configured column menu items](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/column-menu-items-config.avif)) |
605
605
  *
606
606
  * ```javascript
607
607
  * featureTable.menuConfig = {
@@ -629,7 +629,7 @@ export interface FeatureTableEvents extends FeatureTableViewModelEvents {}
629
629
  *
630
630
  * | Default table menu items | Configured table menu items |
631
631
  * |--------|------|
632
- * | ![Default table menu items](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/table-menu-items.png) | ![Configured table menu items](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/table-menu-items-config.png)) |
632
+ * | ![Default table menu items](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/table-menu-items.avif) | ![Configured table menu items](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/table-menu-items-config.avif)) |
633
633
  *
634
634
  * ```javascript
635
635
  * const columnTemplate = new FieldColumnTemplate({
@@ -700,7 +700,7 @@ export default class FeatureTable extends Widget<FeatureTableProperties> {
700
700
  * viewing additional information about a feature. This column is displayed as the
701
701
  * last column in the table and is only displayed if this property is set.
702
702
  *
703
- * ![featuretable action column](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/action-column.png)
703
+ * ![featuretable action column](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/action-column.avif)
704
704
  *
705
705
  * @since 4.30
706
706
  * @see [actionColumn](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#actionColumn)
@@ -760,7 +760,7 @@ export default class FeatureTable extends Widget<FeatureTableProperties> {
760
760
  /**
761
761
  * Indicates whether to display the `Attachments` field in the table. It displays the count of attachments per feature and is only applicable if the feature layer [supports attachments](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#capabilities).
762
762
  *
763
- * ![featuretable attachmentsEnabled](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/attachments-enabled.png)
763
+ * ![featuretable attachmentsEnabled](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featuretable/attachments-enabled.avif)
764
764
  *
765
765
  * @default false
766
766
  * @see [FeatureLayer.capabilities.data.supportsAttachment](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#capabilities)
@@ -104,7 +104,7 @@ export default class FeatureTemplatesViewModel extends EventedAccessor {
104
104
  * an object containing a [name](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTemplates/TemplateItem/#label)
105
105
  * property of the [template item](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTemplates/TemplateItem/).
106
106
  *
107
- * ![featureTemplatesFilterFunction](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplatesFilterFunction.png)
107
+ * ![featureTemplatesFilterFunction](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplatesFilterFunction.avif)
108
108
  *
109
109
  * @example
110
110
  * // Filter and display templates only if their names contain the word `Street`
@@ -130,10 +130,10 @@ export default class FeatureTemplatesViewModel extends EventedAccessor {
130
130
  *
131
131
  * Type | Description | Example
132
132
  * ----- | ----------- | -------
133
- * layer | This is the *default* grouping. Groups template items by layers. | ![featureTemplatesGroupByLayer](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByLayers.png)
134
- * geometry | Groups template items by geometry type. | ![FeatureTemplatesGroupByGeometry](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByGeometry.png)
135
- * none | The widget displays everything in one list with no grouping. | ![featureTemplatesGroupByLayer](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByNone.png)
136
- * [GroupByFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTemplates/types/#GroupByFunction) | Custom function that takes an object containing a [FeatureTemplate](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureTemplate/) and [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/). | ![FeatureTemplatesGroupByCustomGroupFunction](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupCustomGroup.png)
133
+ * layer | This is the *default* grouping. Groups template items by layers. | ![featureTemplatesGroupByLayer](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByLayers.avif)
134
+ * geometry | Groups template items by geometry type. | ![FeatureTemplatesGroupByGeometry](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByGeometry.avif)
135
+ * none | The widget displays everything in one list with no grouping. | ![featureTemplatesGroupByLayer](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByNone.avif)
136
+ * [GroupByFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTemplates/types/#GroupByFunction) | Custom function that takes an object containing a [FeatureTemplate](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureTemplate/) and [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/). | ![FeatureTemplatesGroupByCustomGroupFunction](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupCustomGroup.avif)
137
137
  *
138
138
  * @default "layer"
139
139
  * @example
@@ -36,7 +36,7 @@ export interface FeatureTemplatesProperties extends WidgetProperties, Partial<Pi
36
36
  * The visible elements that are displayed within the widget.
37
37
  * This property provides the ability to turn individual elements of the widget's display on/off.
38
38
  *
39
- * ![featureTemplatesFilter](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplatesFilter.png)
39
+ * ![featureTemplatesFilter](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplatesFilter.avif)
40
40
  *
41
41
  * @since 4.15
42
42
  * @example
@@ -59,7 +59,7 @@ export interface FeatureTemplatesEvents extends FeatureTemplatesViewModelEvents
59
59
  * [FeatureLayer.applyEdits()](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#applyEdits) to enable an end user to
60
60
  * update one of its feature layers.
61
61
  *
62
- * [![featureTemplates](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplates.png)](https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/)
62
+ * [![featureTemplates](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplates.avif)](https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/)
63
63
  *
64
64
  * @deprecated since version 5.0. Use the [Feature Templates (Legacy)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature-templates-legacy/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
65
65
  * @since 4.10
@@ -115,7 +115,7 @@ export default class FeatureTemplates extends Widget {
115
115
  * an object containing a [name](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTemplates/TemplateItem/#label)
116
116
  * property of the [template item](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTemplates/TemplateItem/).
117
117
  *
118
- * ![featureTemplatesFilterFunction](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplatesFilterFunction.png)
118
+ * ![featureTemplatesFilterFunction](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplatesFilterFunction.avif)
119
119
  *
120
120
  * @example
121
121
  * // Filter and display templates only if their labels contain the word `Street`
@@ -147,10 +147,10 @@ export default class FeatureTemplates extends Widget {
147
147
  *
148
148
  * Type | Description | Example
149
149
  * ----- | ----------- | -------
150
- * layer | This is the *default* grouping. Groups template items by layers. | ![featureTemplatesGroupByLayer](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByLayers.png)
151
- * geometry | Groups template items by geometry type. | ![FeatureTemplatesGroupByGeometry](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByGeometry.png)
152
- * none | The widget displays everything in one list with no grouping. | ![featureTemplatesGroupByLayer](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByNone.png)
153
- * [GroupByFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTemplates/types/#GroupByFunction) | Custom function that takes an object containing a [FeatureTemplate](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureTemplate/) and [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/). | ![FeatureTemplatesGroupByCustomGroupFunction](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupCustomGroup.png)
150
+ * layer | This is the *default* grouping. Groups template items by layers. | ![featureTemplatesGroupByLayer](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByLayers.avif)
151
+ * geometry | Groups template items by geometry type. | ![FeatureTemplatesGroupByGeometry](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByGeometry.avif)
152
+ * none | The widget displays everything in one list with no grouping. | ![featureTemplatesGroupByLayer](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupByNone.avif)
153
+ * [GroupByFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTemplates/types/#GroupByFunction) | Custom function that takes an object containing a [FeatureTemplate](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureTemplate/) and [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/). | ![FeatureTemplatesGroupByCustomGroupFunction](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/groupCustomGroup.avif)
154
154
  *
155
155
  * @default "layer"
156
156
  * @example
@@ -254,7 +254,7 @@ export default class FeatureTemplates extends Widget {
254
254
  * The visible elements that are displayed within the widget.
255
255
  * This property provides the ability to turn individual elements of the widget's display on/off.
256
256
  *
257
- * ![featureTemplatesFilter](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplatesFilter.png)
257
+ * ![featureTemplatesFilter](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/featureTemplatesFilter.avif)
258
258
  *
259
259
  * @since 4.15
260
260
  * @example
@@ -24,7 +24,7 @@ export interface FeaturesViewModelProperties extends GoToProperties, Partial<Pic
24
24
  /**
25
25
  * [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/) of [action](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or [action toggle](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionToggle/) objects.
26
26
  * Each action may be executed by clicking the icon or image symbolizing them.
27
- * By default, every popup and Features widget has a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.png).
27
+ * By default, every popup and Features widget has a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.avif).
28
28
  * When this icon is clicked, the view zooms in four LODs and centers on the selected feature.
29
29
  *
30
30
  * You may remove this default action by setting [includeDefaultActions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Features/FeaturesViewModel/#includeDefaultActions) to `false`, or by setting the
@@ -213,7 +213,7 @@ export default class FeaturesViewModel extends FeaturesViewModelSuperclass {
213
213
  /**
214
214
  * [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/) of [action](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or [action toggle](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionToggle/) objects.
215
215
  * Each action may be executed by clicking the icon or image symbolizing them.
216
- * By default, every popup and Features widget has a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.png).
216
+ * By default, every popup and Features widget has a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.avif).
217
217
  * When this icon is clicked, the view zooms in four LODs and centers on the selected feature.
218
218
  *
219
219
  * You may remove this default action by setting [includeDefaultActions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Features/FeaturesViewModel/#includeDefaultActions) to `false`, or by setting the
@@ -8,7 +8,7 @@ export interface FeaturesVisibleElementsProperties extends Partial<Pick<Features
8
8
  * This provides the ability to turn individual elements of the widget's display on/off.
9
9
  * Disabling all `visibleElements` on the Features widget allows the look and feel of the [Feature](https://developers.arcgis.com/javascript/latest/references/core/widgets/Feature/) widget, while supporting related record browsing and clustering.
10
10
  *
11
- * ![popup-visibleElements](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-visible-elements.png)
11
+ * ![popup-visibleElements](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-visible-elements.avif)
12
12
  *
13
13
  * @deprecated since 5.0, use the [Features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features) component instead.
14
14
  * @since 5.0
@@ -39,7 +39,7 @@ export default class FeaturesVisibleElements extends Accessor {
39
39
  /**
40
40
  * Indicates whether to display the group heading for a list of multiple features.
41
41
  *
42
- * ![popup-visibleElements-featureListLayerTitle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-listlayertitle-true2.png)
42
+ * ![popup-visibleElements-featureListLayerTitle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-listlayertitle-true2.avif)
43
43
  *
44
44
  * @default true
45
45
  * @since 5.0
@@ -82,7 +82,7 @@ export interface FeaturesEvents extends FeaturesViewModelEvents {}
82
82
  * a HTML div within a Calcite Design System
83
83
  * [Shell Panel](https://developers.arcgis.com/calcite-design-system/components/shell-panel/).
84
84
  *
85
- * [![features-widget-image](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/features-widget.png)](https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-features)
85
+ * [![features-widget-image](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/features-widget.avif)](https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-features)
86
86
  *
87
87
  * In the image above, a Calcite shell panel displays the Features widget along with a MapView in a separate div.
88
88
  * A generic `title` and `content` property can be set directly on the Features widget or
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{createTask as i}from"../../core/asyncUtils.js";import s from"../../core/Collection.js";import l 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 v}from"../support/GoTo.js";function y(e){return"esri.WebScene"===e.declaredClass}let m=class extends(v(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 s=e?.split("--");if(s?.length>1&&"all"===s[0]?(i=s[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,s=t.name;return i.localeCompare(s,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,s=t.name;return i.localeCompare(s,void 0,{sensitivity:"base"})})}getBaseLevel(e){const t=this.filterFeatures?.levels?.levelsInfo;let i=null;if(e){const{id:s}=e;if(t&&t.length>0&&(t.forEach(e=>{0===e.verticalOrder&&e.facilityId===s&&(i=e)}),!i)){let e=null;t.forEach(t=>{t.facilityId===s&&(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,s=t.verticalOrder??0;return i>s?-1:i===s?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}async goTo(e){const{view:t}=this;if(!t||!e)return;const{geometry:i}=e;if(i?.extent){const e=e=>{this.callGoTo({target:e,options:{duration:h(1e3),easing:"quad-in-out-coast"}})};if(i.hasZ&&i.spatialReference?.vcsWkid!==t.spatialReference?.vcsWkid){const s=await import("../../geometry/operators/projectOperator.js");s.isLoaded()||await s.load();const l=s.execute(i.extent,t.spatialReference.clone(),{zConversionDisabled:!0});l&&e(l)}else e(i.extent)}}setFloors(e){const{view:t}=this;t&&(t?.map?.allLayers?.forEach(e=>{"feature"===e.type&&this._computeViewAllModeFloors(e)}),t.floors=new s(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 s=e?.facilityId,l=e?.verticalOrder,r=(e,t)=>{0===e&&i.push(t)};return t.forEach(e=>{const{id:t,facilityId:o,verticalOrder:a}=e;s||i.includes(t)?o===s||i.includes(t)||(this.useVerticalOrder?a===l&&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=[],s=e?.id.split("--")??[];if(s?.length>1&&"all"===s[0]){this.getFacilityLevels(e?.facilityId).forEach(e=>{e.id&&i.push(e.id)})}else e&&i.push(e.id);const l=e?.facilityId;return t.forEach(e=>{const{id:t,facilityId:s}=e;(l||i.includes(t))&&(s===l||i.includes(t))||i.push(t)}),i}_computeEmptyFloors(){return[]}async _setFilterLayers(){const{view:e}=this;if(e&&!this._isOverridden("filterLayers")){if(!p(e.map)&&!y(e.map))throw new l("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},s=t.floorInfo?.siteLayer?.layerId,l=t.floorInfo?.facilityLayer?.layerId,r=t.floorInfo?.levelLayer?.layerId,o=t.floorInfo?.siteLayer?.sublayerId||t.floorInfo?.facilityLayer?.sublayerId||t.floorInfo?.levelLayer?.sublayerId;if(!l||!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===s||n===l||n===r)&&d?.length>0&&h.items.forEach(t=>{const l=t.id;n===s&&l===i?e.siteLayer=t:l===o?e.facilityLayer=t:l===a&&(e.levelLayer=t)})})}a?.length>0&&a.forEach(t=>{const i=t.id;i===s?e.siteLayer=t:i===l?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,s=i?.map,{siteLayer:l}=t;if(!l||!s?.floorInfo?.siteLayer)return e;const r=l.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0,"type"in l&&"scene"===l.type&&(r.multipatchOption="xyFootprint");const{siteIdField:o,nameField:a}=s.floorInfo.siteLayer,n=await l.queryFeatures(r);if(n?.features?.length>0){const t=n.features,i=l?.fieldsIndex.get(o)?.name||o,s=l?.fieldsIndex.get(a)?.name||a;null!=i&&null!=s&&t.forEach(t=>{const l=t.attributes,r=t.geometry,o=l[i],a=l[s];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:s}=e,l={facilitiesInfo:[]};if(!s||!i?.floorInfo?.facilityLayer)return l;const r=s.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0,"type"in s&&"scene"===s.type&&(r.multipatchOption="xyFootprint");const{facilityIdField:o,siteIdField:a,nameField:n}=i.floorInfo.facilityLayer,h=await s.queryFeatures(r);if(h?.features?.length>0){const e=h.features,t=s?.fieldsIndex.get(o)?.name||o,i=s?.fieldsIndex.get(a)?.name||a,r=s?.fieldsIndex.get(n)?.name||n;t&&i&&r&&e.forEach(e=>{const s=e.attributes,o=e.geometry,a=s[t],n=s[i],h=s[r];a&&h&&l.facilitiesInfo.push({id:a,siteId:n,name:h,geometry:o})})}return l}async _getLevels(){const{filterLayers:e,view:t}=this,i=t?.map,{levelLayer:s}=e,l={levelsInfo:[]};if(!s||!i?.floorInfo?.levelLayer)return l;const r=s.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 s.queryFeatures(r);if(u?.features?.length>0){const e=u.features,t=s?.fieldsIndex.get(o)?.name||o,i=s?.fieldsIndex.get(a)?.name||a,r=s?.fieldsIndex.get(n)?.name||n,f=s?.fieldsIndex.get(h)?.name||h,p=s?.fieldsIndex.get(d)?.name||d,v=s?.fieldsIndex.get(c)?.name||c;t&&i&&r&&f&&p&&v&&e.forEach(e=>{const s=e.attributes,o=s[t],a=s[i],n=s[r],h=s[f],d=s[p],c=s[v];o&&a&&n&&h&&"number"==typeof d&&"number"==typeof c&&l.levelsInfo.push({id:o,facilityId:a,longName:n,shortName:h,levelNumber:d,verticalOrder:c})})}return l}_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;await(this.view?.when());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:l}=this,r=[];t.levels.levelsInfo.forEach(e=>{const{id:t,facilityId:s}=e;l&&s===l?i&&t===i&&r.push(t):r.push(t)}),e.floorInfo.viewAllLevelIds=new s(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};
2
+ import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{createTask as i}from"../../core/asyncUtils.js";import s from"../../core/Collection.js";import l 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 s=e?.split("--");if(s?.length>1&&"all"===s[0]?(i=s[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,s=t.name;return i.localeCompare(s,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,s=t.name;return i.localeCompare(s,void 0,{sensitivity:"base"})})}getBaseLevel(e){const t=this.filterFeatures?.levels?.levelsInfo;let i=null;if(e){const{id:s}=e;if(t&&t.length>0&&(t.forEach(e=>{0===e.verticalOrder&&e.facilityId===s&&(i=e)}),!i)){let e=null;t.forEach(t=>{t.facilityId===s&&(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,s=t.verticalOrder??0;return i>s?-1:i===s?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}async goTo(e){const{view:t}=this;if(!t||!e)return;const{geometry:i}=e;if(i?.extent){const e=e=>{this.callGoTo({target:e,options:{duration:h(1e3),easing:"quad-in-out-coast"}})};if(i.hasZ&&i.spatialReference?.vcsWkid!==t.spatialReference?.vcsWkid){const s=await import("../../geometry/operators/projectOperator.js");s.isLoaded()||await s.load();const l=s.execute(i.extent,t.spatialReference.clone(),{zConversionDisabled:!0});l&&e(l)}else e(i.extent)}}setFloors(e){const{view:t}=this;t&&(t?.map?.allLayers?.forEach(e=>{"feature"===e.type&&this._computeViewAllModeFloors(e)}),t.floors=new s(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??=new u,e.widgets.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 s=e?.facilityId,l=e?.verticalOrder,r=(e,t)=>{0===e&&i.push(t)};return t.forEach(e=>{const{id:t,facilityId:o,verticalOrder:a}=e;s||i.includes(t)?o===s||i.includes(t)||(this.useVerticalOrder?a===l&&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=[],s=e?.id.split("--")??[];if(s?.length>1&&"all"===s[0]){this.getFacilityLevels(e?.facilityId).forEach(e=>{e.id&&i.push(e.id)})}else e&&i.push(e.id);const l=e?.facilityId;return t.forEach(e=>{const{id:t,facilityId:s}=e;(l||i.includes(t))&&(s===l||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 l("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},s=t.floorInfo?.siteLayer?.layerId,l=t.floorInfo?.facilityLayer?.layerId,r=t.floorInfo?.levelLayer?.layerId,o=t.floorInfo?.siteLayer?.sublayerId||t.floorInfo?.facilityLayer?.sublayerId||t.floorInfo?.levelLayer?.sublayerId;if(!l||!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===s||n===l||n===r)&&d?.length>0&&h.items.forEach(t=>{const l=t.id;n===s&&l===i?e.siteLayer=t:l===o?e.facilityLayer=t:l===a&&(e.levelLayer=t)})})}a?.length>0&&a.forEach(t=>{const i=t.id;i===s?e.siteLayer=t:i===l?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,s=i?.map,{siteLayer:l}=t;if(!l||!s?.floorInfo?.siteLayer)return e;const r=l.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0,"type"in l&&"scene"===l.type&&(r.multipatchOption="xyFootprint");const{siteIdField:o,nameField:a}=s.floorInfo.siteLayer,n=await l.queryFeatures(r);if(n?.features?.length>0){const t=n.features,i=l?.fieldsIndex.get(o)?.name||o,s=l?.fieldsIndex.get(a)?.name||a;null!=i&&null!=s&&t.forEach(t=>{const l=t.attributes,r=t.geometry,o=l[i],a=l[s];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:s}=e,l={facilitiesInfo:[]};if(!s||!i?.floorInfo?.facilityLayer)return l;const r=s.createQuery();r.returnGeometry=!0,r.outFields=["*"],r.returnZ=!0,"type"in s&&"scene"===s.type&&(r.multipatchOption="xyFootprint");const{facilityIdField:o,siteIdField:a,nameField:n}=i.floorInfo.facilityLayer,h=await s.queryFeatures(r);if(h?.features?.length>0){const e=h.features,t=s?.fieldsIndex.get(o)?.name||o,i=s?.fieldsIndex.get(a)?.name||a,r=s?.fieldsIndex.get(n)?.name||n;t&&i&&r&&e.forEach(e=>{const s=e.attributes,o=e.geometry,a=s[t],n=s[i],h=s[r];a&&h&&l.facilitiesInfo.push({id:a,siteId:n,name:h,geometry:o})})}return l}async _getLevels(){const{filterLayers:e,view:t}=this,i=t?.map,{levelLayer:s}=e,l={levelsInfo:[]};if(!s||!i?.floorInfo?.levelLayer)return l;const r=s.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 s.queryFeatures(r);if(u?.features?.length>0){const e=u.features,t=s?.fieldsIndex.get(o)?.name||o,i=s?.fieldsIndex.get(a)?.name||a,r=s?.fieldsIndex.get(n)?.name||n,f=s?.fieldsIndex.get(h)?.name||h,p=s?.fieldsIndex.get(d)?.name||d,y=s?.fieldsIndex.get(c)?.name||c;t&&i&&r&&f&&p&&y&&e.forEach(e=>{const s=e.attributes,o=s[t],a=s[i],n=s[r],h=s[f],d=s[p],c=s[y];o&&a&&n&&h&&"number"==typeof d&&"number"==typeof c&&l.levelsInfo.push({id:o,facilityId:a,longName:n,shortName:h,levelNumber:d,verticalOrder:c})})}return l}_registerWidget(e){e?.registerComponent(this)}_unregisterWidget(e){e?.unregisterComponent(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;await(this.view?.when());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:l}=this,r=[];t.levels.levelsInfo.forEach(e=>{const{id:t,facilityId:s}=e;l&&s===l?i&&t===i&&r.push(t):r.push(t)}),e.floorInfo.viewAllLevelIds=new s(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,4 @@
1
- import type WebMap from "../WebMap.js";
1
+ import type WebDocument2D from "../WebDocument2D.js";
2
2
  import type WebScene from "../WebScene.js";
3
3
  import type Widget from "./Widget.js";
4
4
  import type FloorFilterViewModel from "./FloorFilter/FloorFilterViewModel.js";
@@ -121,5 +121,5 @@ export default class FloorFilter extends Widget {
121
121
  * @param webmap - The webmap to be updated.
122
122
  * @since 4.19
123
123
  */
124
- updateWebDocument(webmap: WebMap | WebScene): void;
124
+ updateWebDocument(webmap: WebDocument2D | WebScene): void;
125
125
  }
@@ -68,12 +68,12 @@ export type Layout = "vertical" | "horizontal";
68
68
  * <span id="image-annotations"></span>
69
69
  * See the image below for a summary of the configurable options available on this slider.
70
70
  *
71
- * ![Histogram with annotations](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/histogram-basic-labels.png "Histogram with annotations")
71
+ * ![Histogram with annotations](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/histogram-basic-labels.avif "Histogram with annotations")
72
72
  *
73
73
  * The [barCreatedFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/Histogram/#barCreatedFunction) property may be used to style the histogram bins based on the color
74
74
  * of features in the renderer of a layer associated with the histogram.
75
75
  *
76
- * ![Histogram with color](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/histogram-colors.png "Histogram with color")
76
+ * ![Histogram with color](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/histogram-colors.avif "Histogram with color")
77
77
  *
78
78
  * @deprecated since version 5.0. Use the [Histogram component](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
79
79
  * @since 4.12
@@ -79,7 +79,7 @@ export interface HistogramRangeSliderEvents extends CommonSliderEvents {}
79
79
  * <span id="image-annotations"></span>
80
80
  * See the image below for a summary of the configurable options available on this slider.
81
81
  *
82
- * ![HistogramRangeSlider with annotations](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sliders/histogramrangeslider-labels.png "HistogramRangeSlider with annotations")
82
+ * ![HistogramRangeSlider with annotations](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/sliders/histogramrangeslider-labels.avif "HistogramRangeSlider with annotations")
83
83
  *
84
84
  * At a minimum, the slider's [container](https://developers.arcgis.com/javascript/latest/references/core/widgets/HistogramRangeSlider/#container) or parent container must have a `width` set in css for it to render.
85
85
  *
package/widgets/Home.d.ts CHANGED
@@ -59,7 +59,7 @@ export interface HomeEvents extends HomeViewModelEvents {}
59
59
  * initial [Viewpoint](https://developers.arcgis.com/javascript/latest/references/core/Viewpoint/) or a previously defined [viewpoint](https://developers.arcgis.com/javascript/latest/references/core/widgets/Home/#viewpoint).
60
60
  * By default this button looks like the following:
61
61
  *
62
- * ![home-button](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/widgets-home.png)
62
+ * ![home-button](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/widgets-home.avif)
63
63
  *
64
64
  * You can use the view's [DefaultUI](https://developers.arcgis.com/javascript/latest/references/core/views/ui/DefaultUI/) to add widgets
65
65
  * to the view's user interface via the `ui` property on the view.
@@ -148,7 +148,7 @@ export default class ListItemPanel extends ListItemPanelSuperclass {
148
148
  * The URL or data URI of an image used to represent the panel.
149
149
  * This property will be used as a background image for the node.
150
150
  * If neither `image` nor `icon` are specified, a default icon
151
- * ![default icon](https://developers.arcgis.com/javascript/latest/assets/images/guide/whats-new/41/default-action.png) will display.
151
+ * ![default icon](https://developers.arcgis.com/javascript/latest/assets/images/guide/whats-new/41/default-action.avif) will display.
152
152
  */
153
153
  accessor image: string | null | undefined;
154
154
  /** The panel's parent ListItem that represents a layer in the map. */
@@ -135,7 +135,7 @@ export default class LayerList extends LayerListSuperclass {
135
135
  * This list item will only be displayed when catalog layers are loaded in the map and will be displayed as a child of the catalog layer.
136
136
  * This property is useful for listening to the [CatalogLayerList.@trigger-action](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/#event-trigger-action) event and managing selections in catalog layers.
137
137
  *
138
- * ![CatalogLayerList](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/catalog-layer-list.png)
138
+ * ![CatalogLayerList](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/catalog-layer-list.avif)
139
139
  *
140
140
  * @since 4.30
141
141
  * @see [catalogOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/#catalogOptions)
@@ -438,7 +438,7 @@ export default class LayerList extends LayerListSuperclass {
438
438
  * This list item will only be displayed when knowledge graph layers with tables are loaded in the map and will be displayed as a child of the knowledge graph layer.
439
439
  * This property is useful for listening to the [TableList.@trigger-action](https://developers.arcgis.com/javascript/latest/references/core/widgets/TableList/#event-trigger-action) event and managing selections in knowledge graph tables.
440
440
  *
441
- * ![tableList](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/layer-list-tableList.png)
441
+ * ![tableList](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/layer-list-tableList.avif)
442
442
  *
443
443
  * @since 4.30
444
444
  * @see [knowledgeGraphOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/#knowledgeGraphOptions)
@@ -484,8 +484,8 @@ export default class LayerList extends LayerListSuperclass {
484
484
  *
485
485
  * | Value | Description | Example |
486
486
  * | ----- | ----------- | ------- |
487
- * | default | Displays view icons on the far side. Icons are hidden except on hover or if they have keyboard focus. See [view-visible](https://developers.arcgis.com/calcite-design-system/icons/?icon=view-visible&library=Calcite%20UI&query=view) and [view-hide](https://developers.arcgis.com/calcite-design-system/icons/?icon=view-hide&library=Calcite%20UI&query=view) calcite icons. | ![visibilityAppearance-default](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/layer-list/visibilityAppearance-default.png) |
488
- * | checkbox | Displays checkbox icons on the near side. See [check-square-f](https://developers.arcgis.com/calcite-design-system/icons/?icon=check-square-f&library=Calcite%20UI&query=check) and [square](https://developers.arcgis.com/calcite-design-system/icons/?icon=square&library=Calcite%20UI&query=square) calcite icons. | ![visibilityAppearance-checkbox](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/layer-list/visibilityAppearance-checkbox.png) |
487
+ * | default | Displays view icons on the far side. Icons are hidden except on hover or if they have keyboard focus. See [view-visible](https://developers.arcgis.com/calcite-design-system/icons/?icon=view-visible&library=Calcite%20UI&query=view) and [view-hide](https://developers.arcgis.com/calcite-design-system/icons/?icon=view-hide&library=Calcite%20UI&query=view) calcite icons. | ![visibilityAppearance-default](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/layer-list/visibilityAppearance-default.avif) |
488
+ * | checkbox | Displays checkbox icons on the near side. See [check-square-f](https://developers.arcgis.com/calcite-design-system/icons/?icon=check-square-f&library=Calcite%20UI&query=check) and [square](https://developers.arcgis.com/calcite-design-system/icons/?icon=square&library=Calcite%20UI&query=square) calcite icons. | ![visibilityAppearance-checkbox](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/layer-list/visibilityAppearance-checkbox.avif) |
489
489
  *
490
490
  * @default "default"
491
491
  * @since 4.29
@@ -130,35 +130,35 @@ export type LegendStyle = CardView | ClassicView;
130
130
  *
131
131
  * ### Unique values
132
132
  *
133
- * [![Unique values](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-unique-values.png)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-location-types/)
133
+ * [![Unique values](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-unique-values.avif)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-location-types/)
134
134
  *
135
135
  * ### Continuous color
136
136
  *
137
- * [![Continuous color](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-color-vv.png)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-vv-color/)
137
+ * [![Continuous color](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-color-vv.avif)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-vv-color/)
138
138
  *
139
139
  * ### Classed color
140
140
  *
141
- * [![Classed color](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-class-breaks.png)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-classbreaks/)
141
+ * [![Classed color](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-class-breaks.avif)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-classbreaks/)
142
142
  *
143
143
  * ### Continuous size
144
144
  *
145
- * [![Continuous size](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-size.png)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-size/)
145
+ * [![Continuous size](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-size.avif)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-size/)
146
146
  *
147
147
  * ### Size - above and below
148
148
  *
149
- * [![Size - above and below](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-size-themes.png)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-size-themes/)
149
+ * [![Size - above and below](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-size-themes.avif)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-size-themes/)
150
150
  *
151
151
  * ### Dot density
152
152
  *
153
- * [![Dot density](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-dot-density.png)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-dot-density/)
153
+ * [![Dot density](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-dot-density.avif)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-dot-density/)
154
154
  *
155
155
  * ### Predominance
156
156
  *
157
- * [![Predominance](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-predominance.png)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-arcade/)
157
+ * [![Predominance](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-predominance.avif)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-arcade/)
158
158
  *
159
159
  * ### Relationship
160
160
  *
161
- * [![Relationship](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-relationship.png)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-relationship/)
161
+ * [![Relationship](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/legend/legend-relationship.avif)](https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-relationship/)
162
162
  *
163
163
  * </details>
164
164
  *
@@ -88,7 +88,7 @@ export interface LineOfSightProperties extends WidgetProperties, Partial<Pick<Li
88
88
  * it will be displayed with a gray color. This happens when either the target or the observer
89
89
  * are not in the view, or when neither of them are in the view.
90
90
  *
91
- * ![line-of-sight](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/line-of-sight.png)
91
+ * ![line-of-sight](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/line-of-sight.avif)
92
92
  *
93
93
  * To use the widget, instantiate it and add it to the view:
94
94
  * ```js
@@ -55,11 +55,11 @@ export interface LocateEvents extends LocateViewModelEvents {}
55
55
  * to the user's current location. The view rotates according to the direction
56
56
  * where the tracked device is heading towards. By default the widget looks like the following:
57
57
  *
58
- * ![locate-button](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/widgets-locate.png)
58
+ * ![locate-button](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/widgets-locate.avif)
59
59
  *
60
60
  * The default heading symbol will display if the device has a speed greater than zero and the browser provides heading information:
61
61
  *
62
- * ![heading-indicator](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/widgets-track-heading.png)
62
+ * ![heading-indicator](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/widgets-track-heading.avif)
63
63
  *
64
64
  * > [!WARNING]
65
65
  * >
@@ -65,7 +65,7 @@ export type MeasurementWidget = AreaMeasurement | DistanceMeasurement;
65
65
  * interfaces or other customized UI. See the [Measurement widget sample](https://developers.arcgis.com/javascript/latest/sample-code/widgets-measurement/)
66
66
  * for an example of this flexibility.
67
67
  *
68
- * [![measurement-widget](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/measurement_widget_2D_distance_3D_area.png)](https://developers.arcgis.com/javascript/latest/sample-code/widgets-measurement/)
68
+ * [![measurement-widget](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/measurement_widget_2D_distance_3D_area.avif)](https://developers.arcgis.com/javascript/latest/sample-code/widgets-measurement/)
69
69
  *
70
70
  * How distances, areas, and perimeters are computed depends on the view type and its spatial reference.
71
71
  *
@@ -12,7 +12,7 @@ export type NavigationToggleViewModelMode = "pan" | "rotate";
12
12
  * toggling the [navigation mode](https://developers.arcgis.com/javascript/latest/references/core/widgets/NavigationToggle/NavigationToggleViewModel/#navigationMode) of a [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/). Note that this is not
13
13
  * designed for 2D mouse interaction in a [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/), nor for touch navigation.
14
14
  *
15
- * ![navigation-toggle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/navigation-toggle.png)
15
+ * ![navigation-toggle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/navigation-toggle.avif)
16
16
  *
17
17
  * The default [navigation mode](https://developers.arcgis.com/javascript/latest/references/core/widgets/NavigationToggle/NavigationToggleViewModel/#navigationMode) of the [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/) is always
18
18
  * `pan`. The various mouse interactions of this mode are outlined
@@ -29,7 +29,7 @@ export type NavigationToggleLayoutMode = "vertical" | "horizontal";
29
29
  * [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/). It has no effect on touch navigation and it should not be used
30
30
  * with 2D mouse interaction in a [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/).
31
31
  *
32
- * ![navigation-toggle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/navigation-toggle.png)
32
+ * ![navigation-toggle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/navigation-toggle.avif)
33
33
  *
34
34
  * The default navigation mode of the [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/) is always
35
35
  * `pan`. The various mouse interactions of this mode are outlined
@@ -78,8 +78,8 @@ export default class NavigationToggle extends Widget {
78
78
  *
79
79
  * Possible Value | Example
80
80
  * ---------------|--------
81
- * vertical | ![navigation-toggle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/navigation-toggle.png)
82
- * horizontal | ![navigation-toggle-horizontal](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/navigation-toggle-horizontal.png)
81
+ * vertical | ![navigation-toggle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/navigation-toggle.avif)
82
+ * horizontal | ![navigation-toggle-horizontal](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/navigation-toggle-horizontal.avif)
83
83
  *
84
84
  * @default "vertical"
85
85
  * @example
@@ -7,7 +7,7 @@ export interface PopupVisibleElementsProperties extends Partial<Pick<PopupVisibl
7
7
  * The visible elements that are displayed within the widget.
8
8
  * This provides the ability to turn individual elements of the widget's display on/off.
9
9
  *
10
- * ![popup-visibleElements](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-visible-elements.png)
10
+ * ![popup-visibleElements](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-visible-elements.avif)
11
11
  *
12
12
  * @deprecated since 5.0, use the [Popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup) component instead.
13
13
  * @since 5.0
@@ -38,7 +38,7 @@ export default class PopupVisibleElements extends Accessor {
38
38
  /**
39
39
  * Indicates whether to display the group heading for a list of multiple features.
40
40
  *
41
- * ![popup-visibleElements-featureListLayerTitle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-listlayertitle-true2.png)
41
+ * ![popup-visibleElements-featureListLayerTitle](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-listlayertitle-true2.avif)
42
42
  *
43
43
  * @default true
44
44
  * @since 5.0
@@ -24,7 +24,7 @@ export interface PopupProperties extends WidgetProperties, Partial<Pick<Popup, "
24
24
  /**
25
25
  * [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/) of [action](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or [action toggle](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionToggle/) objects.
26
26
  * Each action may be executed by clicking the icon or image symbolizing them.
27
- * By default, popups have a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.png).
27
+ * By default, popups have a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.avif).
28
28
  * When this icon is clicked, the view zooms in four LODs and centers on the selected feature.
29
29
  *
30
30
  * You may remove this default action by setting [PopupViewModel.includeDefaultActions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/PopupViewModel/#includeDefaultActions) to `false`, or by setting the
@@ -211,16 +211,16 @@ export interface PopupEvents extends FeaturesViewModelEvents {}
211
211
  * and [content](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#content) properties.
212
212
  * When content is set directly on the Popup instance it is not tied to a specific feature or layer.
213
213
  *
214
- * [![popup-basic-example](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-basic.png)](https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=intro-popup)
214
+ * [![popup-basic-example](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-basic.avif)](https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=intro-popup)
215
215
  *
216
216
  * In the image above, the text "Marriage in New York County Census Tract 8" is the popup's `title`. The remaining text is
217
- * its `content`. A dock button ![popup-dock-btn](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-dock.png) may also be available in the
217
+ * its `content`. A dock button ![popup-dock-btn](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popup-dock.avif) may also be available in the
218
218
  * top right corner of the popup. This allows the user to dock the popup to one of the sides or corners of the view.
219
219
  * The options for docking may be set in the [dockOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#dockOptions) property.
220
220
  *
221
221
  * Popups can also contain [actions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#actions) that act like buttons,
222
222
  * which execute a function defined by the developer when clicked.
223
- * By default, every popup has a "Zoom to" action ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.png)
223
+ * By default, every popup has a "Zoom to" action ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.avif)
224
224
  * that allows users to zoom to the selected feature. See the [actions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#actions)
225
225
  * property for information about adding custom actions to a popup.
226
226
  *
@@ -267,7 +267,7 @@ export default class Popup extends Widget {
267
267
  /**
268
268
  * [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/) of [action](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or [action toggle](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionToggle/) objects.
269
269
  * Each action may be executed by clicking the icon or image symbolizing them.
270
- * By default, popups have a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.png).
270
+ * By default, popups have a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/popup/popuptemplate-zoom-action.avif).
271
271
  * When this icon is clicked, the view zooms in four LODs and centers on the selected feature.
272
272
  *
273
273
  * You may remove this default action by setting [PopupViewModel.includeDefaultActions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/PopupViewModel/#includeDefaultActions) to `false`, or by setting the