@arcgis/core 4.31.0-next.20240920 → 4.31.0-next.20240921

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 (173) hide show
  1. package/WebDocument2D.js +1 -1
  2. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  3. package/arcade/featureset/actions/Adapted.js +1 -1
  4. package/arcade/featureset/support/StatsField.js +1 -1
  5. package/arcade/featureset/support/errorsupport.js +1 -1
  6. package/arcade/featureset/support/sqlUtils.js +1 -1
  7. package/arcade/functions/maths.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/24d45530fe47b3114daf.js +1 -0
  10. package/assets/esri/core/workers/chunks/35f92652df2561845d47.js +1 -0
  11. package/assets/esri/core/workers/chunks/736e0c5cb9010ca818d8.js +1 -0
  12. package/assets/esri/core/workers/chunks/757b83799555958e059c.js +1 -0
  13. package/assets/esri/core/workers/chunks/76d8192015ce46dbf92a.js +1 -0
  14. package/assets/esri/core/workers/chunks/884cd0bd036c65567929.js +1 -0
  15. package/assets/esri/core/workers/chunks/{da3a4eb3fbb9dd509b4b.js → 98e872da08203455a5b6.js} +1 -1
  16. package/assets/esri/core/workers/chunks/d9c34e07627d93d4670b.js +1 -0
  17. package/assets/esri/core/workers/chunks/f7c96d34c70ed36da7c2.js +1 -0
  18. package/assets/esri/themes/base/_functions.scss +6 -2
  19. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +4 -0
  20. package/assets/esri/themes/dark/main.css +1 -1
  21. package/assets/esri/themes/light/main.css +1 -1
  22. package/assets/esri/themes/light/view.css +1 -1
  23. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ar.json +1 -1
  24. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bg.json +1 -1
  25. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bs.json +1 -1
  26. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ca.json +1 -1
  27. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_cs.json +1 -1
  28. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_da.json +1 -1
  29. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_de.json +1 -1
  30. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_el.json +1 -1
  31. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_es.json +1 -1
  32. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_et.json +1 -1
  33. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fi.json +1 -1
  34. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fr.json +1 -1
  35. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_he.json +1 -1
  36. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hr.json +1 -1
  37. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hu.json +1 -1
  38. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_id.json +1 -1
  39. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_it.json +1 -1
  40. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ja.json +1 -1
  41. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ko.json +1 -1
  42. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lt.json +1 -1
  43. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lv.json +1 -1
  44. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nb.json +1 -1
  45. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nl.json +1 -1
  46. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pl.json +1 -1
  47. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-BR.json +1 -1
  48. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-PT.json +1 -1
  49. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ro.json +1 -1
  50. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ru.json +1 -1
  51. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sk.json +1 -1
  52. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sl.json +1 -1
  53. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sr.json +1 -1
  54. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sv.json +1 -1
  55. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_th.json +1 -1
  56. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_tr.json +1 -1
  57. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_uk.json +1 -1
  58. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_vi.json +1 -1
  59. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-CN.json +1 -1
  60. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-HK.json +1 -1
  61. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-TW.json +1 -1
  62. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  63. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  64. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  65. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  66. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  67. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  68. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  69. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  70. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  71. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  72. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  73. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  74. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  75. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  76. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  77. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  78. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  79. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  80. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  81. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  82. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  83. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nb.json +1 -1
  84. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  85. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  86. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  87. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  88. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  89. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  90. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  91. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  92. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  93. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  94. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  95. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  96. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  97. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  98. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  99. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  100. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  101. package/chunks/Bufferer-93RDFIRm.js +5 -0
  102. package/chunks/GeodeticDistanceCalculator-CN7xMqrJ.js +1 -1
  103. package/chunks/OperatorGeodeticArea.js +1 -1
  104. package/chunks/Polyline.js +1 -1
  105. package/chunks/Theme.js +1 -1
  106. package/core/mathUtils.js +1 -1
  107. package/core/sql/AggregateFunctions.js +1 -1
  108. package/core/sql/SqlInterval.js +1 -1
  109. package/core/sql/StandardizedFunctions.js +1 -1
  110. package/core/sql/WhereClause.js +1 -1
  111. package/core/sql/WhereGrammar.js +1 -1
  112. package/core/sql/errorSupport.js +5 -0
  113. package/core/sql/sqlArithmeticUtils.js +1 -1
  114. package/core/sql/sqlCompareUtils.js +1 -1
  115. package/core/sql/sqlDateParsingUtils.js +1 -1
  116. package/geometry/operators/crossesOperator.js +1 -1
  117. package/geometry/operators/equalsOperator.js +1 -1
  118. package/geometry/operators/graphicBufferOperator.js +5 -0
  119. package/geometry/operators/gx/operatorBuffer.js +1 -1
  120. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  121. package/geometry/operators/gx/operatorCut.js +1 -1
  122. package/geometry/operators/gx/operatorGraphicBuffer.js +5 -0
  123. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  124. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  125. package/geometry/operators/gx/operatorOffset.js +1 -1
  126. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  127. package/geometry/operators/intersectsOperator.js +1 -1
  128. package/geometry/operators/overlapsOperator.js +1 -1
  129. package/geometry/operators/proximityOperator.d.ts +4 -0
  130. package/geometry/operators/proximityOperator.js +1 -1
  131. package/geometry/operators/relateOperator.js +1 -1
  132. package/geometry/operators/reshapeOperator.js +1 -1
  133. package/geometry/operators/touchesOperator.js +1 -1
  134. package/geometry/operators/withinOperator.js +1 -1
  135. package/interfaces.d.ts +306 -24
  136. package/layers/mixins/ArcGISMapService.js +1 -1
  137. package/package.json +1 -1
  138. package/support/revision.js +1 -1
  139. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  140. package/views/2d/layers/LayerView2D.js +1 -1
  141. package/views/2d/support/highlightGroupUtils.js +1 -1
  142. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  143. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  144. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  145. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  146. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  147. package/views/View.js +1 -1
  148. package/views/View2D.js +1 -1
  149. package/views/draw/DrawGraphicTool.js +1 -1
  150. package/views/draw/support/Box.js +1 -1
  151. package/views/draw/support/Reshape.js +1 -1
  152. package/views/interactive/Tooltip.d.ts +4 -0
  153. package/views/interactive/Tooltip.js +5 -0
  154. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  155. package/webdoc/widgets/TimeSlider.js +1 -1
  156. package/webmap/InitialViewProperties.js +1 -1
  157. package/widgets/BasemapLayerList/css.js +1 -1
  158. package/widgets/BasemapLayerList.js +1 -1
  159. package/widgets/CatalogLayerList.js +1 -1
  160. package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
  161. package/widgets/LayerList/LayerListItem.js +1 -1
  162. package/widgets/LayerList.js +1 -1
  163. package/widgets/Sketch/SketchViewModel.js +1 -1
  164. package/widgets/Sketch.js +1 -1
  165. package/assets/esri/core/workers/chunks/3cb1de0b9bf9a25112e0.js +0 -1
  166. package/assets/esri/core/workers/chunks/41205645790e5f2bdaf7.js +0 -1
  167. package/assets/esri/core/workers/chunks/59833b27d8413b6d9312.js +0 -1
  168. package/assets/esri/core/workers/chunks/6d668f7696f280ec9588.js +0 -1
  169. package/assets/esri/core/workers/chunks/907e74abb4a85a76e3b5.js +0 -1
  170. package/assets/esri/core/workers/chunks/a6c3c1827d2e8bbfcd9e.js +0 -1
  171. package/assets/esri/core/workers/chunks/df9daac7ea581e9e5ca4.js +0 -1
  172. package/assets/esri/core/workers/chunks/ef7dcb8758e7f21d30bc.js +0 -1
  173. package/views/interactive/tooltip/Tooltip.js +0 -5
package/interfaces.d.ts CHANGED
@@ -3450,7 +3450,7 @@ declare namespace __esri {
3450
3450
  }
3451
3451
 
3452
3452
  /**
3453
- * A node that contains `CURRENT_TIME` or `CURRENT_DATE` functions.
3453
+ * A node that contains `CURRENT_TIMESTAMP`, `CURRENT_TIME`, or `CURRENT_DATE` functions.
3454
3454
  *
3455
3455
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#CurrentTimeNode)
3456
3456
  */
@@ -3462,7 +3462,7 @@ declare namespace __esri {
3462
3462
  *
3463
3463
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#CurrentTimeNode)
3464
3464
  */
3465
- mode: "timestamp" | "date";
3465
+ mode: "timestamp" | "date" | "time";
3466
3466
  }
3467
3467
 
3468
3468
  /**
@@ -7906,6 +7906,72 @@ declare namespace __esri {
7906
7906
 
7907
7907
  export const overlapsOperator: overlapsOperator;
7908
7908
 
7909
+ /**
7910
+ * Find the closest vertices of the 2D geometry.
7911
+ *
7912
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html)
7913
+ */
7914
+ interface proximityOperator {
7915
+ /**
7916
+ * Returns the nearest coordinate on the geometry to the given input point.
7917
+ *
7918
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestCoordinate)
7919
+ */
7920
+ getNearestCoordinate(geom: Geometry, inputPoint: Point, testPolygonInterior?: boolean, calculateLeftRightSide?: boolean): ProximityResult;
7921
+ /**
7922
+ * Returns the nearest vertex on the geometry.
7923
+ *
7924
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertex)
7925
+ */
7926
+ getNearestVertex(geom: Geometry, inputPoint: Point): ProximityResult;
7927
+ /**
7928
+ * Returns vertices of the geometry that are closer to the given point than the given radius.
7929
+ *
7930
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertices)
7931
+ */
7932
+ getNearestVertices(geom: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): ProximityResult[];
7933
+ }
7934
+
7935
+ export const proximityOperator: proximityOperator;
7936
+
7937
+ /**
7938
+ * Object returned from the [getNearestCoordinate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestCoordinate), [getNearestVertex()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#nearestVegetNearestVertex), and [getNearestVertices()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertices) methods.
7939
+ *
7940
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#ProximityResult)
7941
+ */
7942
+ export interface ProximityResult {
7943
+ /**
7944
+ * The nearest coordinate on the geometry to the given input point.
7945
+ *
7946
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#ProximityResult)
7947
+ */
7948
+ coordinate: Point;
7949
+ /**
7950
+ * The planar distance between the input point and the nearest coordinate on the geometry.
7951
+ *
7952
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#ProximityResult)
7953
+ */
7954
+ distance: number;
7955
+ /**
7956
+ * Indicates if the result is empty.
7957
+ *
7958
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#ProximityResult)
7959
+ */
7960
+ isEmpty: boolean;
7961
+ /**
7962
+ * Indicates if the nearest coordinate is on the right side or left side of the input point.
7963
+ *
7964
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#ProximityResult)
7965
+ */
7966
+ rightSide?: boolean;
7967
+ /**
7968
+ * The index of the vertex on the geometry that is closest to the input point.
7969
+ *
7970
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#ProximityResult)
7971
+ */
7972
+ vertexIndex?: number;
7973
+ }
7974
+
7909
7975
  /**
7910
7976
  * Performs a relational operation between two 2D geometries using the DE-9IM matrix encoded as a string.
7911
7977
  *
@@ -20625,7 +20691,7 @@ declare namespace __esri {
20625
20691
 
20626
20692
  export class FeatureReductionLayer {
20627
20693
  /**
20628
- * Configures the method for reducing the number of point features in the view.
20694
+ * Configures the method for reducing the number of features in the view.
20629
20695
  *
20630
20696
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureReductionLayer.html#featureReduction)
20631
20697
  */
@@ -20634,7 +20700,7 @@ declare namespace __esri {
20634
20700
 
20635
20701
  interface FeatureReductionLayerProperties {
20636
20702
  /**
20637
- * Configures the method for reducing the number of point features in the view.
20703
+ * Configures the method for reducing the number of features in the view.
20638
20704
  *
20639
20705
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureReductionLayer.html#featureReduction)
20640
20706
  */
@@ -26022,7 +26088,7 @@ declare namespace __esri {
26022
26088
  */
26023
26089
  type: "binning";
26024
26090
  /**
26025
- * This class configures binning as a means of reducing and summarizing point features in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html), or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html).
26091
+ * Aggregates and summarizes dense features in a layer to bins in geographic space based on predefined [geohashes](https://en.wikipedia.org/wiki/Geohash).
26026
26092
  *
26027
26093
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html)
26028
26094
  */
@@ -26122,7 +26188,7 @@ declare namespace __esri {
26122
26188
  */
26123
26189
  clusterMinSize: number;
26124
26190
  /**
26125
- * Defines the radius in points (or pixels if specified) of the area in which multiple points will be grouped and visualized as a single cluster.
26191
+ * Defines the radius in points (or pixels if specified) of the area in which multiple features will be grouped and visualized as a single cluster.
26126
26192
  *
26127
26193
  * @default 60
26128
26194
  *
@@ -26190,7 +26256,7 @@ declare namespace __esri {
26190
26256
  */
26191
26257
  type: "cluster";
26192
26258
  /**
26193
- * This class configures clustering as a means of reducing and summarizing point features in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html), or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html).
26259
+ * Aggregates and summarizes dense features in a layer to clusters defined in screen space.
26194
26260
  *
26195
26261
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html)
26196
26262
  */
@@ -26222,7 +26288,7 @@ declare namespace __esri {
26222
26288
  */
26223
26289
  clusterMinSize?: number | string;
26224
26290
  /**
26225
- * Defines the radius in points (or pixels if specified) of the area in which multiple points will be grouped and visualized as a single cluster.
26291
+ * Defines the radius in points (or pixels if specified) of the area in which multiple features will be grouped and visualized as a single cluster.
26226
26292
  *
26227
26293
  * @default 60
26228
26294
  *
@@ -89536,6 +89602,24 @@ declare namespace __esri {
89536
89602
  selfEnabled?: boolean;
89537
89603
  }
89538
89604
 
89605
+ export class Tooltip extends Accessor {
89606
+ /**
89607
+ * The current mode the tooltip is in.
89608
+ *
89609
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-Tooltip.html#mode)
89610
+ */
89611
+ readonly mode: "feedback" | "input";
89612
+ /**
89613
+ * Object which represents a tooltip that is shown while sketching and editing.
89614
+ *
89615
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-Tooltip.html)
89616
+ */
89617
+ constructor(properties?: TooltipProperties);
89618
+ }
89619
+
89620
+ interface TooltipProperties {
89621
+ }
89622
+
89539
89623
  export class BuildingComponentSublayerView extends Accessor {
89540
89624
  /**
89541
89625
  * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#renderer) and additional fields defined on the [BuildingComponentSublayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#outFields) or [BuildingSceneLayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#outFields).
@@ -95298,6 +95382,12 @@ declare namespace __esri {
95298
95382
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#spatialReference)
95299
95383
  */
95300
95384
  spatialReference: SpatialReference;
95385
+ /**
95386
+ * The initial [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-time-TimeExtent.html) of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
95387
+ *
95388
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#timeExtent)
95389
+ */
95390
+ timeExtent: TimeExtent;
95301
95391
  /**
95302
95392
  * The initial time zone of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
95303
95393
  *
@@ -95333,6 +95423,12 @@ declare namespace __esri {
95333
95423
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#spatialReference)
95334
95424
  */
95335
95425
  spatialReference?: SpatialReferenceProperties;
95426
+ /**
95427
+ * The initial [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-time-TimeExtent.html) of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
95428
+ *
95429
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#timeExtent)
95430
+ */
95431
+ timeExtent?: TimeExtentProperties;
95336
95432
  /**
95337
95433
  * The initial time zone of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
95338
95434
  *
@@ -97958,14 +98054,6 @@ declare namespace __esri {
97958
98054
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#multipleSelectionEnabled)
97959
98055
  */
97960
98056
  multipleSelectionEnabled: boolean;
97961
- /**
97962
- * This property manages the visibility of the [tableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#tableList).
97963
- *
97964
- * @default null
97965
- *
97966
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#openTableListItem)
97967
- */
97968
- openTableListItem: ListItem;
97969
98057
  /**
97970
98058
  * The value of the filter input text string if [visibleElements.filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#visibleElements) is true.
97971
98059
  *
@@ -98152,14 +98240,6 @@ declare namespace __esri {
98152
98240
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#multipleSelectionEnabled)
98153
98241
  */
98154
98242
  multipleSelectionEnabled?: boolean;
98155
- /**
98156
- * This property manages the visibility of the [tableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#tableList).
98157
- *
98158
- * @default null
98159
- *
98160
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#openTableListItem)
98161
- */
98162
- openTableListItem?: ListItemProperties;
98163
98243
  /**
98164
98244
  * The value of the filter input text string if [visibleElements.filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#visibleElements) is true.
98165
98245
  *
@@ -99594,6 +99674,22 @@ declare namespace __esri {
99594
99674
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogLayer)
99595
99675
  */
99596
99676
  catalogLayer: CatalogLayer;
99677
+ /**
99678
+ * The [CatalogLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html) widget instance that displays a catalog layer's [dynamic group layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html#dynamicGroupLayer).
99679
+ *
99680
+ * @default null
99681
+ *
99682
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogLayerList)
99683
+ */
99684
+ readonly catalogLayerList: CatalogLayerList;
99685
+ /**
99686
+ * [CatalogLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html) specific properties.
99687
+ *
99688
+ * @default null
99689
+ *
99690
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
99691
+ */
99692
+ catalogOptions: CatalogLayerListCatalogOptions;
99597
99693
  /**
99598
99694
  * Indicates whether the widget is collapsed.
99599
99695
  *
@@ -99626,6 +99722,14 @@ declare namespace __esri {
99626
99722
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#headingLevel)
99627
99723
  */
99628
99724
  headingLevel: number;
99725
+ /**
99726
+ * [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html) specific properties.
99727
+ *
99728
+ * @default null
99729
+ *
99730
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
99731
+ */
99732
+ knowledgeGraphOptions: CatalogLayerListKnowledgeGraphOptions;
99629
99733
  /**
99630
99734
  * A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) is created.
99631
99735
  *
@@ -99656,6 +99760,14 @@ declare namespace __esri {
99656
99760
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#selectionMode)
99657
99761
  */
99658
99762
  selectionMode: "multiple" | "none" | "single" | "single-persist";
99763
+ /**
99764
+ * The [TableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html) widget instance that displays the tables associated with a [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html).
99765
+ *
99766
+ * @default null
99767
+ *
99768
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#tableList)
99769
+ */
99770
+ readonly tableList: TableList;
99659
99771
  /**
99660
99772
  * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
99661
99773
  *
@@ -99708,6 +99820,14 @@ declare namespace __esri {
99708
99820
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogLayer)
99709
99821
  */
99710
99822
  catalogLayer?: CatalogLayerProperties;
99823
+ /**
99824
+ * [CatalogLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html) specific properties.
99825
+ *
99826
+ * @default null
99827
+ *
99828
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
99829
+ */
99830
+ catalogOptions?: CatalogLayerListCatalogOptions;
99711
99831
  /**
99712
99832
  * Indicates whether the widget is collapsed.
99713
99833
  *
@@ -99740,6 +99860,14 @@ declare namespace __esri {
99740
99860
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#headingLevel)
99741
99861
  */
99742
99862
  headingLevel?: number;
99863
+ /**
99864
+ * [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html) specific properties.
99865
+ *
99866
+ * @default null
99867
+ *
99868
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
99869
+ */
99870
+ knowledgeGraphOptions?: CatalogLayerListKnowledgeGraphOptions;
99743
99871
  /**
99744
99872
  * A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) is created.
99745
99873
  *
@@ -99904,6 +100032,148 @@ declare namespace __esri {
99904
100032
  item: ListItem;
99905
100033
  }
99906
100034
 
100035
+ export interface CatalogLayerListCatalogOptions {
100036
+ /**
100037
+ * Placeholder text used in the filter input box.
100038
+ *
100039
+ * @default ""
100040
+ *
100041
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100042
+ */
100043
+ filterPlaceholder?: string;
100044
+ /**
100045
+ * A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) is created.
100046
+ *
100047
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100048
+ */
100049
+ listItemCreatedFunction?: CatalogLayerListListItemCreatedHandler;
100050
+ /**
100051
+ * The minimum number of list items required to display the filter input box.
100052
+ *
100053
+ * @default 10
100054
+ *
100055
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100056
+ */
100057
+ minFilterItems?: number;
100058
+ /**
100059
+ * The selection mode for the catalog layer list.
100060
+ *
100061
+ * @default "none"
100062
+ *
100063
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100064
+ */
100065
+ selectionMode?: string;
100066
+ /**
100067
+ * Determines the icons used to indicate visibility.
100068
+ *
100069
+ * @default "default"
100070
+ *
100071
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100072
+ */
100073
+ visibilityAppearance?: string;
100074
+ /**
100075
+ * The visible elements that are displayed within the catalog layer list.
100076
+ *
100077
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100078
+ */
100079
+ visibleElements?: CatalogLayerListCatalogOptionsVisibleElements;
100080
+ }
100081
+
100082
+ export interface CatalogLayerListCatalogOptionsVisibleElements {
100083
+ /**
100084
+ * Indicates whether to display errors in the catalog layer list.
100085
+ *
100086
+ * @default true
100087
+ *
100088
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100089
+ */
100090
+ errors?: boolean;
100091
+ /**
100092
+ * Indicates whether to display the filter input box in the catalog layer list.
100093
+ *
100094
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100095
+ */
100096
+ filter?: boolean;
100097
+ /**
100098
+ * Indicates whether to display status indicators in the catalog layer list.
100099
+ *
100100
+ * @default true
100101
+ *
100102
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100103
+ */
100104
+ statusIndicators?: boolean;
100105
+ /**
100106
+ * Indicates whether temporary layer indicators will be displayed.
100107
+ *
100108
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#catalogOptions)
100109
+ */
100110
+ temporaryLayerIndicators?: boolean;
100111
+ }
100112
+
100113
+ export interface CatalogLayerListKnowledgeGraphOptions {
100114
+ /**
100115
+ * Placeholder text used in the filter input box.
100116
+ *
100117
+ * @default ""
100118
+ *
100119
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
100120
+ */
100121
+ filterPlaceholder?: string;
100122
+ /**
100123
+ * A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html) is created.
100124
+ *
100125
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
100126
+ */
100127
+ listItemCreatedFunction?: TableListListItemCreatedHandler;
100128
+ /**
100129
+ * The minimum number of list items required to display the filter input box.
100130
+ *
100131
+ * @default 10
100132
+ *
100133
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
100134
+ */
100135
+ minFilterItems?: number;
100136
+ /**
100137
+ * The selection mode for the table list.
100138
+ *
100139
+ * @default "none"
100140
+ *
100141
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
100142
+ */
100143
+ selectionMode?: string;
100144
+ /**
100145
+ * The visible elements that are displayed within the table list.
100146
+ *
100147
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
100148
+ */
100149
+ visibleElements?: CatalogLayerListKnowledgeGraphOptionsVisibleElements;
100150
+ }
100151
+
100152
+ export interface CatalogLayerListKnowledgeGraphOptionsVisibleElements {
100153
+ /**
100154
+ * Indicates whether to display errors in the table list.
100155
+ *
100156
+ * @default true
100157
+ *
100158
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
100159
+ */
100160
+ errors?: boolean;
100161
+ /**
100162
+ * Indicates whether to display the filter input box in the table list.
100163
+ *
100164
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
100165
+ */
100166
+ filter?: boolean;
100167
+ /**
100168
+ * Indicates whether to display status indicators in the table list.
100169
+ *
100170
+ * @default true
100171
+ *
100172
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html#knowledgeGraphOptions)
100173
+ */
100174
+ statusIndicators?: boolean;
100175
+ }
100176
+
99907
100177
  export type CatalogLayerListListItemCreatedHandler = (event: any) => void;
99908
100178
 
99909
100179
  export interface CatalogLayerListTriggerActionEvent {
@@ -119477,6 +119747,12 @@ declare namespace __esri {
119477
119747
  | "reshape"
119478
119748
  | "rectangle-selection"
119479
119749
  | "lasso-selection";
119750
+ /**
119751
+ * The tooltip currently being displayed for the [activeTool](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeTool).
119752
+ *
119753
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#activeTooltip)
119754
+ */
119755
+ readonly activeTooltip: Tooltip;
119480
119756
  /**
119481
119757
  * Property controlling the visibility and order of create tool buttons.
119482
119758
  *
@@ -119752,6 +120028,12 @@ declare namespace __esri {
119752
120028
  | "move"
119753
120029
  | "transform"
119754
120030
  | "reshape";
120031
+ /**
120032
+ * The tooltip currently being displayed for the [activeTool](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeTool).
120033
+ *
120034
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeTooltip)
120035
+ */
120036
+ readonly activeTooltip: Tooltip;
119755
120037
  /**
119756
120038
  * The graphic that is being created.
119757
120039
  *
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../chunks/tslib.es6.js";import r from"../../request.js";import{getOrCreateMapValue as t}from"../../core/MapUtils.js";import{throwIfAborted as s}from"../../core/promiseUtils.js";import{join as o}from"../../core/urlUtils.js";import{Version as i}from"../../core/Version.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{reader as p}from"../../core/accessorSupport/decorators/reader.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import{OriginId as n}from"../../core/accessorSupport/PropertyOrigin.js";import c from"../../geometry/Extent.js";import u from"../../geometry/SpatialReference.js";import{parse as y}from"../support/arcgisLayerUrl.js";import{id as m,popupEnabled as d}from"../support/commonProperties.js";import{isHostedLayer as h}from"../../portal/support/portalItemUtils.js";const f=f=>{let b=class extends f{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesMap=null}readCapabilities(e,r){const t=r.capabilities&&r.capabilities.split(",").map((e=>e.toLowerCase().trim()));if(!t)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null};const s=this.type,o="tile"!==s&&!!r.supportsDynamicLayers,a=t.includes("query"),p=t.includes("map"),l=!!r.exportTilesAllowed,n=t.includes("tilemap"),c=t.includes("data"),u="tile"!==s&&(!r.tileInfo||o),y="tile"!==s&&(!r.tileInfo||o),m="tile"!==s,d=r.cimVersion&&i.parse(r.cimVersion),h=d?.since(1,4)??!1,f=d?.since(2,0)??!1;return{operations:{supportsExportMap:p,supportsExportTiles:l,supportsIdentify:a,supportsQuery:c,supportsTileMap:n},exportMap:p?{supportsArcadeExpressionForLabeling:h,supportsSublayersChanges:m,supportsDynamicLayers:o,supportsSublayerVisibility:u,supportsSublayerDefinitionExpression:y,supportsCIMSymbols:f}:null,exportTiles:l?{maxExportTilesCount:+r.maxExportTilesCount}:null}}readVersion(e,r){let t=r.currentVersion;return t||(t=r.hasOwnProperty("capabilities")||r.hasOwnProperty("tables")?10:r.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3),t}async fetchRelatedService(e){const r=this.portalItem;if(!r||!h(r))return null;this._relatedFeatureServicePromise||(this._relatedFeatureServicePromise=r.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},e).then((e=>e.find((e=>"Feature Service"===e.type))??null),(()=>null)));const t=await this._relatedFeatureServicePromise;return s(e),t?{itemId:t.id,url:t.url}:null}async fetchSublayerInfo(e,t){const{source:s}=e;if(this?.portalItem&&"tile"===this.type&&"map-layer"===s?.type&&h(this.portalItem)&&e.originIdOf("url")<n.SERVICE){const r=await this.fetchRelatedService(t);r&&(e.url=o(r.url,s.mapLayerId.toString()),e.layerItemId=r.itemId)}const{url:i}=e;let a;if("data-layer"===s.type){a=(await r(i,{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey},...t})).data}else if(i&&e.originIdOf("url")>n.SERVICE)try{const e=await this._fetchAllLayersAndTablesFromService(i),r=y(i)?.sublayer??s.mapLayerId;a=e.get(r)}catch{}else{let r=e.id;"map-layer"===s?.type&&(r=s.mapLayerId);try{a=(await this.fetchAllLayersAndTables(t)).get(r)}catch{}}return a}async fetchAllLayersAndTables(e){return this._fetchAllLayersAndTablesFromService(this.parsedUrl?.path,e)}async _fetchAllLayersAndTablesFromService(e,i){await this.load(i),this._allLayersAndTablesMap||=new Map;const a=y(e),p=t(this._allLayersAndTablesMap,a?.url.path,(()=>r(o(a?.url.path,"/layers"),{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey}}).then((e=>{const r=new Map,{layers:t,tables:s}=e.data,o=[...t??[],...s??[]];for(const i of o)r.set(i.id,i);return{result:r}}),(e=>({error:e}))))),l=await p;if(s(i),"result"in l)return l.result;throw l.error}};return e([a({readOnly:!0})],b.prototype,"capabilities",void 0),e([p("service","capabilities",["capabilities","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],b.prototype,"readCapabilities",null),e([a({json:{read:{source:"copyrightText"}}})],b.prototype,"copyright",void 0),e([a({type:c})],b.prototype,"fullExtent",void 0),e([a(m)],b.prototype,"id",void 0),e([a({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],b.prototype,"legendEnabled",void 0),e([a(d)],b.prototype,"popupEnabled",void 0),e([a({type:u})],b.prototype,"spatialReference",void 0),e([a({readOnly:!0})],b.prototype,"version",void 0),e([p("version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],b.prototype,"readVersion",null),b=e([l("esri.layers.mixins.ArcGISMapService")],b),b};export{f as ArcGISMapService};
5
+ import{_ as e}from"../../chunks/tslib.es6.js";import r from"../../request.js";import{getOrCreateMapValue as t}from"../../core/MapUtils.js";import{throwIfAborted as s}from"../../core/promiseUtils.js";import{join as o}from"../../core/urlUtils.js";import{Version as i}from"../../core/Version.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{reader as p}from"../../core/accessorSupport/decorators/reader.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import{OriginId as n}from"../../core/accessorSupport/PropertyOrigin.js";import c from"../../geometry/Extent.js";import u from"../../geometry/SpatialReference.js";import{parse as y}from"../support/arcgisLayerUrl.js";import{id as m,popupEnabled as d}from"../support/commonProperties.js";import{isHostedLayer as h}from"../../portal/support/portalItemUtils.js";const f=f=>{let b=class extends f{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesMap=null}readCapabilities(e,r){const t=r.capabilities&&r.capabilities.split(",").map((e=>e.toLowerCase().trim()));if(!t)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null};const s=this.type,o="tile"!==s&&!!r.supportsDynamicLayers,a=t.includes("query"),p=t.includes("map"),l=!!r.exportTilesAllowed,n=t.includes("tilemap"),c=t.includes("data"),u="tile"!==s&&(!r.tileInfo||o),y="tile"!==s&&(!r.tileInfo||o),m="tile"!==s,d=r.cimVersion&&i.parse(r.cimVersion),h=d?.since(1,4)??!1,f=d?.since(2,0)??!1;return{operations:{supportsExportMap:p,supportsExportTiles:l,supportsIdentify:a,supportsQuery:c,supportsTileMap:n},exportMap:p?{supportsArcadeExpressionForLabeling:h,supportsSublayersChanges:m,supportsDynamicLayers:o,supportsSublayerVisibility:u,supportsSublayerDefinitionExpression:y,supportsCIMSymbols:f}:null,exportTiles:l?{maxExportTilesCount:+r.maxExportTilesCount}:null}}readVersion(e,r){let t=r.currentVersion;return t||(t=r.hasOwnProperty("capabilities")||r.hasOwnProperty("tables")?10:r.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3),t}async fetchRelatedService(e){const r=this.portalItem;if(!r||!h(r))return null;this._relatedFeatureServicePromise||(this._relatedFeatureServicePromise=r.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},e).then((e=>e.find((e=>"Feature Service"===e.type))??null),(()=>null)));const t=await this._relatedFeatureServicePromise;return s(e),t?{itemId:t.id,url:t.url}:null}async fetchSublayerInfo(e,t){const{source:s}=e;if(this?.portalItem&&"tile"===this.type&&"map-layer"===s?.type&&h(this.portalItem)&&e.originIdOf("url")<n.SERVICE){const r=await this.fetchRelatedService(t);r&&(e.url=o(r.url,s.mapLayerId.toString()),e.layerItemId=r.itemId)}const{url:i}=e;let a;if("data-layer"===s.type){a=(await r(i,{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey},...t})).data}else if(i&&e.originIdOf("url")>n.SERVICE)try{const e=await this._fetchAllLayersAndTablesFromService(i),r=y(i)?.sublayer??s.mapLayerId;a=e.get(r)}catch{}else{let r=e.id;"map-layer"===s?.type&&(r=s.mapLayerId);try{a=(await this.fetchAllLayersAndTables(t)).get(r)}catch{}}return a}async fetchAllLayersAndTables(e){return this._fetchAllLayersAndTablesFromService(this.parsedUrl?.path,e)}async _fetchAllLayersAndTablesFromService(e,i){await this.load(i),this._allLayersAndTablesMap||=new Map;const a=y(e),p=t(this._allLayersAndTablesMap,a?.url.path,(()=>r(o(a?.url.path,"/layers"),{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey}}).then((e=>{const r=new Map,{layers:t,tables:s}=e.data,o=[...t??[],...s??[]];for(const i of o)r.set(i.id,i);return{result:r}}),(e=>({error:e}))))),l=await p;if(s(i),"result"in l)return l.result;throw l.error}};return e([a({readOnly:!0})],b.prototype,"capabilities",void 0),e([p("service","capabilities",["capabilities","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],b.prototype,"readCapabilities",null),e([a({json:{read:{source:"copyrightText"}}})],b.prototype,"copyright",void 0),e([a({type:c})],b.prototype,"fullExtent",void 0),e([a(m)],b.prototype,"id",void 0),e([a({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],b.prototype,"legendEnabled",void 0),e([a(d)],b.prototype,"popupEnabled",void 0),e([a({type:u})],b.prototype,"spatialReference",void 0),e([a({readOnly:!0})],b.prototype,"version",void 0),e([p("service","version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],b.prototype,"readVersion",null),b=e([l("esri.layers.mixins.ArcGISMapService")],b),b};export{f as ArcGISMapService};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "4.31.0-next.20240920",
3
+ "version": "4.31.0-next.20240921",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- const a="20240920",b="b890dcbf3ea910e62888d650b312a61ac79738f7";export{a as buildDate,b as commitHash};
5
+ const a="20240921",c="7a2168859a2cbc136ee3503e46fa34d4f7e1acca";export{a as buildDate,c as commitHash};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{_ as i}from"../../../chunks/tslib.es6.js";import t from"../../../Graphic.js";import{isSome as e}from"../../../core/arrayUtils.js";import r from"../../../core/Collection.js";import{makeHandle as s}from"../../../core/handleUtils.js";import{destroyMaybe as h}from"../../../core/maybe.js";import{property as a}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{LayerView2DMixin as p}from"./LayerView2D.js";import g from"./graphics/GraphicContainer.js";import c from"./graphics/GraphicsView2D.js";import{HighlightCounter as l}from"./support/HighlightCounter.js";import n from"../../layers/LayerView.js";let d=class extends(p(n)){constructor(){super(...arguments),this._highlightCounter=new l}attach(){this.graphicsView=new c({requestUpdateCallback:()=>this.requestUpdate(),view:this.view,graphics:this.layer.graphics,container:new g(this.view.featuresTilingScheme),layerId:this.layer.id}),this.container.addChild(this.graphicsView.container),this.addAttachHandles([this.layer.on("graphic-update",this.graphicsView.graphicUpdateHandler),this.watch("layer.visible",(i=>{i&&(this.graphicsView.update({state:this.view.state}),this.graphicsView.pushUpdate())}))]),this._updateHighlight()}detach(){this.container.removeAllChildren(),this.graphicsView=h(this.graphicsView)}async hitTest(i){return this.graphicsView?this.graphicsView.hitTest(i).map((t=>({type:"graphic",graphic:t,mapPoint:i,layer:this.layer}))):null}queryGraphics(){return Promise.resolve(this.graphicsView.graphics)}update(i){this.graphicsView.processUpdate(i)}viewChange(){this.graphicsView.viewChange()}moveEnd(){}isUpdating(){return!this.graphicsView||this.graphicsView.updating}highlight(i,h="default"){let a;"number"==typeof i?a=[i]:i instanceof t?a=[i.uid]:Array.isArray(i)&&i.length>0?a="number"==typeof i[0]?i:i.map((i=>i&&i.uid)):r.isCollection(i)&&i.length>0&&(a=i.map((i=>i&&i.uid)).toArray());const o=a?.filter(e);return o?.length?(this._addHighlight(o,h),s((()=>this._removeHighlight(o,h)))):s()}_addHighlight(i,t){this._highlightCounter.addGroup(i,t),this._updateHighlight()}_removeHighlight(i,t){this._highlightCounter.deleteGroup(i,t),this._updateHighlight()}_updateHighlight(){const i=[];for(const t of this._highlightCounter.ids()){const e=this._highlightCounter.getHighlightGroups(t),r=this._getHighlightBits(e);i.push({objectId:t,highlightFlags:r})}this.graphicsView?.setHighlight(i)}};i([a()],d.prototype,"graphicsView",void 0),d=i([o("esri.views.2d.layers.GraphicsLayerView2D")],d);const u=d;export{u as default};
5
+ import{_ as i}from"../../../chunks/tslib.es6.js";import t from"../../../Graphic.js";import{isSome as e}from"../../../core/arrayUtils.js";import r from"../../../core/Collection.js";import{makeHandle as s}from"../../../core/handleUtils.js";import{destroyMaybe as h}from"../../../core/maybe.js";import{property as a}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{LayerView2DMixin as p}from"./LayerView2D.js";import g from"./graphics/GraphicContainer.js";import c from"./graphics/GraphicsView2D.js";import{HighlightCounter as l}from"./support/HighlightCounter.js";import n from"../../layers/LayerView.js";let d=class extends(p(n)){constructor(){super(...arguments),this._highlightCounter=new l}attach(){this.graphicsView=new c({requestUpdateCallback:()=>this.requestUpdate(),view:this.view,graphics:this.layer.graphics,container:new g(this.view.featuresTilingScheme),layerId:this.layer.id}),this.container.addChild(this.graphicsView.container),this.addAttachHandles([this.layer.on("graphic-update",this.graphicsView.graphicUpdateHandler),this.watch("layer.visible",(i=>{i&&(this.graphicsView.update({state:this.view.state}),this.graphicsView.pushUpdate())}))]),this._updateHighlights()}detach(){this.container.removeAllChildren(),this.graphicsView=h(this.graphicsView)}async hitTest(i){return this.graphicsView?this.graphicsView.hitTest(i).map((t=>({type:"graphic",graphic:t,mapPoint:i,layer:this.layer}))):null}queryGraphics(){return Promise.resolve(this.graphicsView.graphics)}update(i){this.graphicsView.processUpdate(i)}viewChange(){this.graphicsView.viewChange()}moveEnd(){}isUpdating(){return!this.graphicsView||this.graphicsView.updating}highlight(i,h="default"){let a;"number"==typeof i?a=[i]:i instanceof t?a=[i.uid]:Array.isArray(i)&&i.length>0?a="number"==typeof i[0]?i:i.map((i=>i&&i.uid)):r.isCollection(i)&&i.length>0&&(a=i.map((i=>i&&i.uid)).toArray());const o=a?.filter(e);return o?.length?(this._addHighlight(o,h),s((()=>this._removeHighlight(o,h)))):s()}_addHighlight(i,t){this._highlightCounter.addGroup(i,t),this._updateHighlights()}_removeHighlight(i,t){this._highlightCounter.deleteGroup(i,t),this._updateHighlights()}_updateHighlights(){const i=[];for(const t of this._highlightCounter.ids()){const e=this._highlightCounter.getHighlightGroups(t),r=this._getHighlightBits(e);i.push({objectId:t,highlightFlags:r})}this.graphicsView?.setHighlight(i)}};i([a()],d.prototype,"graphicsView",void 0),d=i([o("esri.views.2d.layers.GraphicsLayerView2D")],d);const u=d;export{u as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Collection.js";import{referenceSetter as i}from"../../../core/collectionUtils.js";import s from"../../../core/Error.js";import{watch as r,syncAndInitial as o,on as a}from"../../../core/reactiveUtils.js";import{property as h}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as p}from"../../../core/accessorSupport/decorators/subclass.js";import{isLinkChartView as n}from"../../../linkChart/utils.js";import{Container as l}from"../engine/Container.js";import{createOrReuseHighlightGradient as c}from"./support/util.js";import{HighlightGroup as d}from"../support/HighlightGroup.js";import{getDefaultHighlightOptions as u,setDefaultHighlightOptions as g}from"../support/highlightGroupUtils.js";import m from"../support/HighlightOptions.js";import f from"../../layers/support/ClipRect.js";import y from"../../layers/support/Geometry.js";import v from"../../layers/support/Path.js";import{isInEffectiveScaleRange as R}from"../../support/layerViewUtils.js";const w=t.ofType({key:"type",base:null,typeMap:{rect:f,path:v,geometry:y}}),S=new(t.ofType(d)),j=f=>{let y=class extends f{constructor(){super(...arguments),this.attached=!1,this.clips=new w,this.highlights=null,this.lastUpdateId=-1,this.moving=!1,this.updateRequested=!1,this._visibleAtCurrentScale=!0}initialize(){const e=this.view?.spatialReferenceLocked??!0,t=this.view?.spatialReference;t&&e&&!this.spatialReferenceSupported?this.addResolvingPromise(Promise.reject(new s("layerview:spatial-reference-incompatible","The spatial reference of this layer does not meet the requirements of the view",{layer:this.layer}))):(this.container||(this.container=new l),this.container.fadeTransitionEnabled=!0,this.container.visible=!1,this.container.endTransitions(),this.addHandles([r((()=>this.suspended),(e=>{this.container&&(this.container.visible=!e)}),o),r((()=>this.updateSuspended),(e=>{this.view&&!e&&this.updateRequested&&this.view.requestUpdate()}),o),r((()=>this.layer?.opacity??1),(e=>{this.container&&(this.container.opacity=e)}),o),r((()=>this.layer&&"blendMode"in this.layer?this.layer.blendMode:"normal"),(e=>{this.container&&(this.container.blendMode=e)}),o),r((()=>this.layer&&"effect"in this.layer?this.layer.effect:null),(e=>{this.container&&(this.container.effect=e)}),o),r((()=>this._mergedHighlights.items.map((e=>({name:e.name,options:{fillColor:e.options.color,haloColor:e.options.haloColor,fillOpacity:e.options.fillOpacity,haloOpacity:e.options.haloOpacity,haloWidth:e.options.haloWidth,haloBlur:e.options.haloBlur}})))),(()=>{this.container.highlightGradient=c(this.container.highlightGradient,this._mergedHighlights.items)}),o),a((()=>this.clips),"change",(()=>{this.container&&(this.container.clips=this.clips)}),o),r((()=>({scale:this.view?.scale,scaleRange:this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null})),(({scale:e,scaleRange:t})=>{const i=R(t,e);i!==this._visibleAtCurrentScale&&(this._visibleAtCurrentScale=i)}),o)],"constructor"),this.view?.whenLayerView?this.view.whenLayerView(this.layer).then((e=>{e===this&&this.processAttach()}),(()=>{})):this.when().then((()=>{this.processAttach()}),(()=>{})))}destroy(){this.processDetach(),this.updateRequested=!1}get highlightOptions(){return u(this)}set highlightOptions(e){g(this,e)}get _mergedHighlights(){if(!this.view)return S;if(!this.highlights)return this.view.highlights;const e=this.view.highlights.clone();for(const t of this.highlights){const i=e.find((e=>e.name===t.name));i&&(i.options=t.options)}return e}get scheduler(){return this.view.scheduler}get spatialReferenceSupported(){const e=this.view?.spatialReference;return null==e||this.supportsSpatialReference(e)}get updating(){return this.spatialReferenceSupported&&(!this.attached||!this.suspended&&(this.updateRequested||this.isUpdating())||!!this._updatingHandles?.updating)}get visibleAtCurrentScale(){return this._visibleAtCurrentScale}processAttach(){this.isResolved()&&!this.attached&&!this.destroyed&&this.spatialReferenceSupported&&(this.attach(),this.attached=!0,this.requestUpdate())}processDetach(){this.attached&&(this.attached=!1,this.removeHandles("attach"),this.detach(),this.updateRequested=!1)}requestUpdate(){this.destroyed||this.updateRequested||(this.updateRequested=!0,this.updateSuspended||this.view.requestUpdate())}processUpdate(e){!this.isFulfilled()||this.isResolved()?(this._set("updateParameters",e),this.updateRequested&&!this.updateSuspended&&(this.updateRequested=!1,this.update(e))):this.updateRequested=!1}hitTest(e,t){return Promise.resolve(null)}supportsSpatialReference(e){return!0}canResume(){if(!this.spatialReferenceSupported)return!1;switch(this.layer?.type){case"link-chart":case"knowledge-graph-sublayer":break;default:if(n(this.view)&&!this.view.inGeographicLayout)return!1}return!!super.canResume()&&this.visibleAtCurrentScale}getSuspendInfo(){const e=super.getSuspendInfo(),t=!this.spatialReferenceSupported;return t&&(e.spatialReferenceNotSupported=t),e}addAttachHandles(e){this.addHandles(e,"attach")}_getHighlightBits(e){let t=1,i=0;if(!this.view)return 0;const s=this._mergedHighlights;for(const{name:r}of s)e.has(r)&&(i=t),t<<=1;return i}};return e([h()],y.prototype,"attached",void 0),e([h({type:w,set(e){const t=i(e,this._get("clips"),w);this._set("clips",t)}})],y.prototype,"clips",void 0),e([h()],y.prototype,"container",void 0),e([h({type:m})],y.prototype,"highlightOptions",null),e([h({type:t.ofType(d)})],y.prototype,"highlights",void 0),e([h()],y.prototype,"_mergedHighlights",null),e([h()],y.prototype,"moving",void 0),e([h({readOnly:!0})],y.prototype,"spatialReferenceSupported",null),e([h({readOnly:!0})],y.prototype,"updateParameters",void 0),e([h()],y.prototype,"updateRequested",void 0),e([h()],y.prototype,"updating",null),e([h()],y.prototype,"view",void 0),e([h()],y.prototype,"_visibleAtCurrentScale",void 0),e([h({readOnly:!0})],y.prototype,"visibleAtCurrentScale",null),y=e([p("esri.views.2d.layers.LayerView2D")],y),y};export{j as LayerView2DMixin};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import t from"../../../core/Collection.js";import{referenceSetter as i}from"../../../core/collectionUtils.js";import s from"../../../core/Error.js";import r from"../../../core/Logger.js";import{watch as o,syncAndInitial as h,on as a}from"../../../core/reactiveUtils.js";import{property as n}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/RandomLCG.js";import{subclass as p}from"../../../core/accessorSupport/decorators/subclass.js";import{isLinkChartView as l}from"../../../linkChart/utils.js";import{Container as c}from"../engine/Container.js";import{createOrReuseHighlightGradient as d}from"./support/util.js";import{HighlightGroup as u}from"../support/HighlightGroup.js";import{getDefaultHighlightOptions as g,setDefaultHighlightOptions as m}from"../support/highlightGroupUtils.js";import f from"../support/HighlightOptions.js";import y from"../../layers/support/ClipRect.js";import v from"../../layers/support/Geometry.js";import w from"../../layers/support/Path.js";import{isInEffectiveScaleRange as R}from"../../support/layerViewUtils.js";const S=t.ofType({key:"type",base:null,typeMap:{rect:y,path:w,geometry:v}}),b=new(t.ofType(u)),j=y=>{let v=class extends y{constructor(){super(...arguments),this.attached=!1,this.clips=new S,this.highlights=null,this.lastUpdateId=-1,this.moving=!1,this.updateRequested=!1,this._visibleAtCurrentScale=!0}initialize(){const e=this.view?.spatialReferenceLocked??!0,t=this.view?.spatialReference;t&&e&&!this.spatialReferenceSupported?this.addResolvingPromise(Promise.reject(new s("layerview:spatial-reference-incompatible","The spatial reference of this layer does not meet the requirements of the view",{layer:this.layer}))):(this.container||(this.container=new c),this.container.fadeTransitionEnabled=!0,this.container.visible=!1,this.container.endTransitions(),this.addHandles([o((()=>this.suspended),(e=>{this.container&&(this.container.visible=!e)}),h),o((()=>this.updateSuspended),(e=>{this.view&&!e&&this.updateRequested&&this.view.requestUpdate()}),h),o((()=>this.layer?.opacity??1),(e=>{this.container&&(this.container.opacity=e)}),h),o((()=>this.layer&&"blendMode"in this.layer?this.layer.blendMode:"normal"),(e=>{this.container&&(this.container.blendMode=e)}),h),o((()=>this.layer&&"effect"in this.layer?this.layer.effect:null),(e=>{this.container&&(this.container.effect=e)}),h),o((()=>this._mergedHighlights.items.map((e=>({name:e.name,options:{fillColor:e.options.color,haloColor:e.options.haloColor,fillOpacity:e.options.fillOpacity,haloOpacity:e.options.haloOpacity,haloWidth:e.options.haloWidth,haloBlur:e.options.haloBlur}})))),(()=>{this.container.highlightGradient=d(this.container.highlightGradient,this._mergedHighlights.items)}),h),o((()=>this._mergedHighlights.items.map((e=>e.name))),(()=>{this._updateHighlights()})),a((()=>this.clips),"change",(()=>{this.container&&(this.container.clips=this.clips)}),h),o((()=>({scale:this.view?.scale,scaleRange:this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null})),(({scale:e,scaleRange:t})=>{const i=R(t,e);i!==this._visibleAtCurrentScale&&(this._visibleAtCurrentScale=i)}),h)],"constructor"),this.view?.whenLayerView?this.view.whenLayerView(this.layer).then((e=>{e===this&&this.processAttach()}),(()=>{})):this.when().then((()=>{this.processAttach()}),(()=>{})))}_updateHighlights(){}destroy(){this.processDetach(),this.updateRequested=!1}get highlightOptions(){return g(this)}set highlightOptions(e){m(this,e)}get _mergedHighlights(){if(!this.view)return b;if(!this.highlights)return this.view.highlights;const e=this.view.highlights.clone();for(const t of this.highlights){const i=e.find((e=>e.name===t.name));i&&(i.options=t.options)}return e}get scheduler(){return this.view.scheduler}get spatialReferenceSupported(){const e=this.view?.spatialReference;return null==e||this.supportsSpatialReference(e)}get updating(){return this.spatialReferenceSupported&&(!this.attached||!this.suspended&&(this.updateRequested||this.isUpdating())||!!this._updatingHandles?.updating)}get visibleAtCurrentScale(){return this._visibleAtCurrentScale}processAttach(){this.isResolved()&&!this.attached&&!this.destroyed&&this.spatialReferenceSupported&&(this.attach(),this.attached=!0,this.requestUpdate())}processDetach(){this.attached&&(this.attached=!1,this.removeHandles("attach"),this.detach(),this.updateRequested=!1)}requestUpdate(){this.destroyed||this.updateRequested||(this.updateRequested=!0,this.updateSuspended||this.view.requestUpdate())}processUpdate(e){!this.isFulfilled()||this.isResolved()?(this._set("updateParameters",e),this.updateRequested&&!this.updateSuspended&&(this.updateRequested=!1,this.update(e))):this.updateRequested=!1}hitTest(e,t){return Promise.resolve(null)}supportsSpatialReference(e){return!0}canResume(){if(!this.spatialReferenceSupported)return!1;switch(this.layer?.type){case"link-chart":case"knowledge-graph-sublayer":break;default:if(l(this.view)&&!this.view.inGeographicLayout)return!1}return!!super.canResume()&&this.visibleAtCurrentScale}getSuspendInfo(){const e=super.getSuspendInfo(),t=!this.spatialReferenceSupported;return t&&(e.spatialReferenceNotSupported=t),e}addAttachHandles(e){this.addHandles(e,"attach")}_getHighlightBits(e){e=new Set(e);let t=1,i=0;if(!this.view)return 0;const s=this._mergedHighlights;for(const{name:r}of s)e.delete(r)&&(i=t),t<<=1;for(const o of e)r.getLogger(this).error("#highlights",`${o} was not found. Features in this group will not be highlighted.`);return i}};return e([n()],v.prototype,"attached",void 0),e([n({type:S,set(e){const t=i(e,this._get("clips"),S);this._set("clips",t)}})],v.prototype,"clips",void 0),e([n()],v.prototype,"container",void 0),e([n({type:f})],v.prototype,"highlightOptions",null),e([n({type:t.ofType(u)})],v.prototype,"highlights",void 0),e([n()],v.prototype,"_mergedHighlights",null),e([n()],v.prototype,"moving",void 0),e([n({readOnly:!0})],v.prototype,"spatialReferenceSupported",null),e([n({readOnly:!0})],v.prototype,"updateParameters",void 0),e([n()],v.prototype,"updateRequested",void 0),e([n()],v.prototype,"updating",null),e([n()],v.prototype,"view",void 0),e([n()],v.prototype,"_visibleAtCurrentScale",void 0),e([n({readOnly:!0})],v.prototype,"visibleAtCurrentScale",null),v=e([p("esri.views.2d.layers.LayerView2D")],v),v};export{j as LayerView2DMixin};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import t from"../../../core/Collection.js";import{HighlightGroup as i}from"./HighlightGroup.js";import n from"./HighlightOptions.js";const o=t.ofType(i);function e(){return new o([{name:"default",options:new n},{name:"popup",options:new n({color:"teal"})},{name:"temporary",options:new n({color:"yellow"})}])}const h=e().items.map((t=>t.name));function l(t){if(!t.highlights)return null;const i=t.highlights.findIndex((t=>"default"===t.name));return-1===i?null:t.highlights.items[i].options}function s(t,i){if(!t.highlights){if(!i)return;t.highlights=new o([{name:"default",options:new n}])}const e=t.highlights.findIndex((t=>"default"===t.name));i?t.highlights.items[e].options=i:t.highlights.removeAt(e)}export{h as admissibleHighlightGroupNames,e as createInitialHighlightGroups,l as getDefaultHighlightOptions,s as setDefaultHighlightOptions};
5
+ import i from"../../../core/Collection.js";import{HighlightGroup as t}from"./HighlightGroup.js";import n from"./HighlightOptions.js";const o=i.ofType(t);function e(){return new o([{name:"default",options:new n},{name:"temporary",options:new n({color:"yellow"})}])}const h=e().items.map((i=>i.name));function s(i){if(!i.highlights)return null;const t=i.highlights.findIndex((i=>"default"===i.name));return-1===t?null:i.highlights.items[t].options}function l(i,t){if(!i.highlights){if(!t)return;i.highlights=new o([{name:"default",options:new n}])}const e=i.highlights.findIndex((i=>"default"===i.name));t?i.highlights.items[e].options=t:i.highlights.removeAt(e)}export{h as admissibleHighlightGroupNames,e as createInitialHighlightGroups,s as getDefaultHighlightOptions,l as setDefaultHighlightOptions};