@arcgis/core 4.28.0-next.20230911 → 4.28.0-next.20230913

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 (136) hide show
  1. package/arcade/Feature.js +1 -1
  2. package/arcade/arcadeTimeUtils.js +1 -1
  3. package/arcade/executionError.js +1 -1
  4. package/arcade/featureSetUtils.js +1 -1
  5. package/arcade/featureset/actions/Adapted.js +1 -1
  6. package/arcade/featureset/actions/GroupBy.js +1 -1
  7. package/arcade/featureset/support/FeatureSet.js +1 -1
  8. package/arcade/featureset/support/errorsupport.js +1 -1
  9. package/arcade/functions/featuresetbase.js +1 -1
  10. package/arcade/functions/featuresetstats.js +1 -1
  11. package/arcade/functions/string.js +1 -1
  12. package/arcade.js +1 -1
  13. package/assets/esri/core/workers/RemoteClient.js +1 -1
  14. package/assets/esri/core/workers/chunks/0920312e3c7b63c2e253.js +1 -0
  15. package/assets/esri/core/workers/chunks/0cb007ab5db0a2a598ec.js +1 -0
  16. package/assets/esri/core/workers/chunks/0cc61f1b2c0473ded5c2.js +1 -0
  17. package/assets/esri/core/workers/chunks/0f804e3f888cb4998f46.js +1 -0
  18. package/assets/esri/core/workers/chunks/189dd81cf95bd8417ee3.js +1 -0
  19. package/assets/esri/core/workers/chunks/1a723bb4a341f645e5fe.js +1 -0
  20. package/assets/esri/core/workers/chunks/24c717492ea1b35310d8.js +1 -0
  21. package/assets/esri/core/workers/chunks/{3ce73dd4113dbc7d11de.js → 2eb58dc339b2bb03d9e3.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{38c07a8574352a7f2f6d.js → 2ff0dbd5eb7ca57bb7fc.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{768f3db2705fa9e57641.js → 49dfdc0463450491df9d.js} +1 -1
  24. package/assets/esri/core/workers/chunks/650a317b6dc245a7060f.js +1 -0
  25. package/assets/esri/core/workers/chunks/{56ed099745360888604e.js → 67f01c71280fa0759742.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{f62842807744bdfaced7.js → 67fab13f56b340076763.js} +1 -1
  27. package/assets/esri/core/workers/chunks/6d94b358e8d1cf79bba3.js +1 -0
  28. package/assets/esri/core/workers/chunks/718607d7a3b33fc33b0a.js +1 -0
  29. package/assets/esri/core/workers/chunks/{4c63d6b9460aa6ae9843.js → 860417f4138f53d315ba.js} +2 -2
  30. package/assets/esri/core/workers/chunks/8aa7e994b74f66522c37.js +1 -0
  31. package/assets/esri/core/workers/chunks/9fa485b04b997b0a5509.js +1 -0
  32. package/assets/esri/core/workers/chunks/a047fcf3c7307a69b63c.js +1 -0
  33. package/assets/esri/core/workers/chunks/a753d9874801cd448946.js +1 -0
  34. package/assets/esri/core/workers/chunks/c51233ad51823cb98c35.js +1 -0
  35. package/assets/esri/core/workers/chunks/c61f20d91a5c432b07dc.js +1 -0
  36. package/assets/esri/core/workers/chunks/d3d11242e5af57ba77f4.js +1 -0
  37. package/assets/esri/core/workers/chunks/dbf343d1fb746f99bb6e.js +1 -0
  38. package/assets/esri/core/workers/chunks/{271ec1d1666bf6dc3dda.js → dc74b4ec85e8e3de5b27.js} +1 -1
  39. package/assets/esri/core/workers/chunks/e8a8791d765ab6c450dd.js +1 -0
  40. package/assets/esri/core/workers/chunks/{5fe7b5665710ec6d3046.js → eb0d1c5c96f735c162d3.js} +1 -1
  41. package/assets/esri/themes/base/widgets/_Sketch.scss +0 -5
  42. package/assets/esri/themes/base/widgets/_SketchTooltipControls.scss +0 -5
  43. package/assets/esri/themes/dark/main.css +1 -1
  44. package/assets/esri/themes/light/main.css +1 -1
  45. package/assets/esri/themes/light/view.css +1 -1
  46. package/chunks/HUDMaterial.glsl.js +38 -45
  47. package/chunks/languageUtils.js +1 -1
  48. package/core/promiseUtils.js +1 -1
  49. package/core/sql/AggregateFunctions.js +1 -1
  50. package/core/sql/DateOnly.js +1 -1
  51. package/core/sql/SqlTimestampOffset.js +1 -1
  52. package/core/sql/TimeOnly.js +1 -1
  53. package/core/sql/WhereClause.js +1 -1
  54. package/core/sql/WhereGrammar.js +1 -1
  55. package/core/sql/sqlCompareUtils.js +1 -1
  56. package/geometry/GeometryCursor.js +1 -1
  57. package/geometry/Mesh.js +1 -1
  58. package/geometry/support/labelPoint.js +1 -1
  59. package/geometry/support/meshUtils/bounds.js +1 -1
  60. package/geometry/support/meshUtils/georeference.js +1 -1
  61. package/interfaces.d.ts +190 -144
  62. package/layers/ImageryLayer.js +1 -1
  63. package/layers/SceneLayer.js +1 -1
  64. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  65. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  66. package/layers/graphics/sources/csv/csv.js +1 -1
  67. package/layers/support/FetchAssociatedFeatureLayer.js +1 -1
  68. package/layers/support/TilemapCache.js +1 -1
  69. package/layers/support/fieldUtils.js +1 -1
  70. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  71. package/layers/support/wmsUtils.js +1 -1
  72. package/layers/video/VideoController.js +1 -1
  73. package/package.json +3 -3
  74. package/smartMapping/heuristics/sizeRange.js +1 -1
  75. package/smartMapping/labels/bins.js +1 -1
  76. package/smartMapping/labels/clusters.js +1 -1
  77. package/smartMapping/labels/support/utils.js +1 -1
  78. package/smartMapping/popup/support/clusterUtils.js +1 -1
  79. package/smartMapping/support/clusterUtils.js +1 -1
  80. package/support/revision.js +1 -1
  81. package/views/2d/engine/webgl/DisplayId.js +1 -1
  82. package/views/2d/engine/webgl/Utils.js +1 -1
  83. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  84. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  85. package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
  86. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  87. package/views/3d/analysis/Dimension/LengthDimensionVisualization.js +1 -1
  88. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  89. package/views/3d/analysis/Dimension/settings.js +1 -1
  90. package/views/3d/interactive/Manipulator3D.js +1 -1
  91. package/views/3d/interactive/editingTools/originGraphicVisualElementUtils.js +1 -1
  92. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  93. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  94. package/views/3d/layers/I3SMeshView3D.js +1 -1
  95. package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
  96. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  97. package/views/3d/layers/SceneLayerWorker.js +1 -1
  98. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  99. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  100. package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
  101. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  102. package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
  103. package/views/ToolViewManager.js +1 -1
  104. package/views/View.js +1 -1
  105. package/views/animation/easing.js +1 -1
  106. package/views/webgl/FramebufferObject.js +1 -1
  107. package/views/webgl/RenderingContext.js +1 -1
  108. package/views/webgl/enums.js +1 -1
  109. package/views/webgl/renderState.js +1 -1
  110. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  111. package/widgets/Feature/FeatureMedia.js +1 -1
  112. package/widgets/FeatureForm.js +1 -1
  113. package/widgets/Features.js +1 -1
  114. package/widgets/Search/SearchViewModel.js +1 -1
  115. package/widgets/support/SketchTooltipControls/SketchTooltipControlsViewModel.js +1 -1
  116. package/widgets/support/SketchTooltipControls.js +1 -1
  117. package/widgets/support/SnappingControls.js +1 -1
  118. package/assets/esri/core/workers/chunks/055575ed2ab78be0bdb2.js +0 -1
  119. package/assets/esri/core/workers/chunks/0ee90a0b4d09a56c0d48.js +0 -1
  120. package/assets/esri/core/workers/chunks/15056f91d87f11b00bcc.js +0 -1
  121. package/assets/esri/core/workers/chunks/344e40934c98d6fe66ae.js +0 -1
  122. package/assets/esri/core/workers/chunks/558049fcac3a82a093fc.js +0 -1
  123. package/assets/esri/core/workers/chunks/5c41eb67d19b8710118a.js +0 -1
  124. package/assets/esri/core/workers/chunks/5d183ac1a8b68ba9c656.js +0 -1
  125. package/assets/esri/core/workers/chunks/610d4a5d2511fa81460e.js +0 -1
  126. package/assets/esri/core/workers/chunks/6755bb1f2a6575a8e082.js +0 -1
  127. package/assets/esri/core/workers/chunks/84173936b309712ba9b3.js +0 -1
  128. package/assets/esri/core/workers/chunks/877302d6e39a0d530aab.js +0 -1
  129. package/assets/esri/core/workers/chunks/a07dc782e69111e2eeaf.js +0 -1
  130. package/assets/esri/core/workers/chunks/b825019841247d173072.js +0 -1
  131. package/assets/esri/core/workers/chunks/bed1bc13b168fae46404.js +0 -1
  132. package/assets/esri/core/workers/chunks/c8dd21a332559c99815c.js +0 -1
  133. package/assets/esri/core/workers/chunks/ccc3564e76c0ec5c0228.js +0 -1
  134. package/assets/esri/core/workers/chunks/d0a81c7ec8a84eeadd31.js +0 -1
  135. package/assets/esri/core/workers/chunks/e7a852b319c1d89eddc5.js +0 -1
  136. package/assets/esri/core/workers/chunks/ebde11fdccb437954ce7.js +0 -1
package/interfaces.d.ts CHANGED
@@ -1138,6 +1138,8 @@ declare namespace __esri {
1138
1138
  | "number"
1139
1139
  | "text"
1140
1140
  | "date"
1141
+ | "dateOnly"
1142
+ | "time"
1141
1143
  | "boolean";
1142
1144
  /**
1143
1145
  * Only applicable when `type` is `dictionary`.
@@ -1289,7 +1291,16 @@ declare namespace __esri {
1289
1291
  *
1290
1292
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#SimpleVariable)
1291
1293
  */
1292
- type: "feature" | "featureSet" | "featureSetCollection" | "geometry" | "number" | "text" | "date" | "boolean";
1294
+ type: | "feature"
1295
+ | "featureSet"
1296
+ | "featureSetCollection"
1297
+ | "geometry"
1298
+ | "number"
1299
+ | "text"
1300
+ | "date"
1301
+ | "dateOnly"
1302
+ | "time"
1303
+ | "boolean";
1293
1304
  }
1294
1305
 
1295
1306
  export interface ExecuteContextTimeReference {
@@ -19478,6 +19489,12 @@ declare namespace __esri {
19478
19489
  */
19479
19490
  screenSizePerspectiveEnabled: boolean;
19480
19491
  readonly type: "scene";
19492
+ /**
19493
+ * Describes effective capabilities of the layer taking in to consideration privileges of the currently signed-in user.
19494
+ *
19495
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#effectiveCapabilities)
19496
+ */
19497
+ static readonly effectiveCapabilities: SceneLayerCapabilities;
19481
19498
  /**
19482
19499
  * Array of [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html) set up for the layer.
19483
19500
  *
@@ -19684,6 +19701,44 @@ declare namespace __esri {
19684
19701
  screenSizePerspectiveEnabled?: boolean;
19685
19702
  }
19686
19703
 
19704
+ /**
19705
+ * Describes the layer's supported capabilities.
19706
+ *
19707
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19708
+ */
19709
+ export interface SceneLayerCapabilities {
19710
+ /**
19711
+ * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations that can be performed on features in the layer.
19712
+ *
19713
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19714
+ */
19715
+ query: SceneLayerCapabilitiesQuery;
19716
+ /**
19717
+ * Indicates if the layer's query operation supports querying features or records related to features in the layer.
19718
+ *
19719
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19720
+ */
19721
+ queryRelated: SceneLayerCapabilitiesQueryRelated;
19722
+ /**
19723
+ * Describes characteristics of the data in the layer.
19724
+ *
19725
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19726
+ */
19727
+ data: SceneLayerCapabilitiesData;
19728
+ /**
19729
+ * Describes editing capabilities that can be performed on the features in the layer via [applyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
19730
+ *
19731
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19732
+ */
19733
+ editing: SceneLayerCapabilitiesEditing;
19734
+ /**
19735
+ * Describes operations that can be performed on features in the layer.
19736
+ *
19737
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19738
+ */
19739
+ operations: SceneLayerCapabilitiesOperations;
19740
+ }
19741
+
19687
19742
  export interface SceneLayerEditsEvent {
19688
19743
  addedFeatures: FeatureEditResult[];
19689
19744
  deletedFeatures: FeatureEditResult[];
@@ -19768,44 +19823,106 @@ declare namespace __esri {
19768
19823
  globalIdUsed?: boolean;
19769
19824
  }
19770
19825
 
19771
- export interface SceneLayerCapabilities {
19826
+ export interface SceneLayerElevationInfo {
19772
19827
  /**
19773
- * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations that can be performed on features in the layer.
19828
+ * Defines how the feature is placed with respect to the terrain surface.
19774
19829
  *
19775
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19830
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
19776
19831
  */
19777
- query: SceneLayerCapabilitiesQuery;
19832
+ mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
19778
19833
  /**
19779
- * Indicates if the layer's query operation supports querying features or records related to features in the layer.
19834
+ * An elevation offset which is added to the vertical position of the feature.
19780
19835
  *
19781
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19836
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
19782
19837
  */
19783
- queryRelated: SceneLayerCapabilitiesQueryRelated;
19838
+ offset?: number;
19784
19839
  /**
19785
- * Describes characteristics of the data in the layer.
19840
+ * The unit for `offset` values.
19786
19841
  *
19787
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19842
+ * @default meters
19843
+ *
19844
+ * [Read more...](global.html#unit)
19788
19845
  */
19789
- data: SceneLayerCapabilitiesData;
19846
+ unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
19847
+ }
19848
+
19849
+ export interface SceneLayerGetFieldDomainOptions {
19790
19850
  /**
19791
- * Describes editing capabilities that can be performed on the features in the layer via [applyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
19851
+ * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
19792
19852
  *
19793
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19853
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getFieldDomain)
19794
19854
  */
19795
- editing: SceneLayerCapabilitiesEditing;
19855
+ feature: Graphic;
19856
+ }
19857
+
19858
+ export interface SceneLayerQueryCachedStatisticsOptions {
19796
19859
  /**
19797
- * Describes operations that can be performed on features in the layer.
19860
+ * Signal object that can be used to abort the asynchronous task.
19798
19861
  *
19799
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19862
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryCachedStatistics)
19800
19863
  */
19801
- operations: SceneLayerCapabilitiesOperations;
19864
+ signal?: AbortSignal;
19865
+ }
19866
+
19867
+ export interface SceneLayerQueryExtentOptions {
19868
+ /**
19869
+ * Signal object that can be used to abort the asynchronous task.
19870
+ *
19871
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryExtent)
19872
+ */
19873
+ signal?: AbortSignal;
19874
+ }
19875
+
19876
+ export interface SceneLayerQueryFeatureCountOptions {
19877
+ /**
19878
+ * Signal object that can be used to abort the asynchronous task.
19879
+ *
19880
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatureCount)
19881
+ */
19882
+ signal?: AbortSignal;
19883
+ }
19884
+
19885
+ export interface SceneLayerQueryFeaturesOptions {
19886
+ /**
19887
+ * Signal object that can be used to abort the asynchronous task.
19888
+ *
19889
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatures)
19890
+ */
19891
+ signal?: AbortSignal;
19892
+ }
19893
+
19894
+ export interface SceneLayerQueryObjectIdsOptions {
19895
+ /**
19896
+ * Signal object that can be used to abort the asynchronous task.
19897
+ *
19898
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryObjectIds)
19899
+ */
19900
+ signal?: AbortSignal;
19901
+ }
19902
+
19903
+ export interface SceneLayerQueryRelatedFeaturesCountOptions {
19904
+ /**
19905
+ * Signal object that can be used to abort the asynchronous task.
19906
+ *
19907
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryRelatedFeaturesCount)
19908
+ */
19909
+ signal?: AbortSignal;
19910
+ }
19911
+
19912
+ export interface SceneLayerQueryRelatedFeaturesOptions {
19913
+ /**
19914
+ * Signal object that can be used to abort the asynchronous task.
19915
+ *
19916
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryRelatedFeatures)
19917
+ */
19918
+ signal?: AbortSignal;
19802
19919
  }
19803
19920
 
19804
19921
  export interface SceneLayerCapabilitiesData {
19805
19922
  /**
19806
19923
  * Indicates if the features in the layer support z-values.
19807
19924
  *
19808
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19925
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19809
19926
  */
19810
19927
  supportsZ: boolean;
19811
19928
  }
@@ -19814,19 +19931,19 @@ declare namespace __esri {
19814
19931
  /**
19815
19932
  * Indicates if the geometry of the features in the layer can be edited.
19816
19933
  *
19817
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19934
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19818
19935
  */
19819
19936
  supportsGeometryUpdate: boolean;
19820
19937
  /**
19821
19938
  * Indicates if the `globalId` values provided by the client are used in [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
19822
19939
  *
19823
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19940
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19824
19941
  */
19825
19942
  supportsGlobalId: boolean;
19826
19943
  /**
19827
19944
  * Indicates if the `rollbackOnFailureEnabled` parameter can be set to `true` or `false` when editing features.
19828
19945
  *
19829
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19946
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19830
19947
  */
19831
19948
  supportsRollbackOnFailure: boolean;
19832
19949
  }
@@ -19835,25 +19952,25 @@ declare namespace __esri {
19835
19952
  /**
19836
19953
  * Indicates if new features can be [added](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits) to the layer.
19837
19954
  *
19838
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19955
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19839
19956
  */
19840
19957
  supportsAdd: boolean;
19841
19958
  /**
19842
19959
  * Indicates if features can be [deleted](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits) from the layer.
19843
19960
  *
19844
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19961
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19845
19962
  */
19846
19963
  supportsDelete: boolean;
19847
19964
  /**
19848
19965
  * Indicates if features in the layer can be [updated](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
19849
19966
  *
19850
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19967
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19851
19968
  */
19852
19969
  supportsUpdate: boolean;
19853
19970
  /**
19854
19971
  * Indicates if features in the layer can be [edited](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
19855
19972
  *
19856
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19973
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19857
19974
  */
19858
19975
  supportsEditing: boolean;
19859
19976
  }
@@ -19862,121 +19979,121 @@ declare namespace __esri {
19862
19979
  /**
19863
19980
  * The maximum number of records that will be returned for a given query.
19864
19981
  *
19865
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19982
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19866
19983
  */
19867
19984
  maxRecordCount: number;
19868
19985
  /**
19869
19986
  * Indicates if the geometry centroid associated with each polygon feature can be returned.
19870
19987
  *
19871
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19988
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19872
19989
  */
19873
19990
  supportsCentroid: boolean;
19874
19991
  /**
19875
19992
  * Indicates if the layer's query operation supports a buffer distance for input geometries.
19876
19993
  *
19877
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
19994
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19878
19995
  */
19879
19996
  supportsDistance: boolean;
19880
19997
  /**
19881
19998
  * Indicates if the layer supports queries for distinct values based on fields specified in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#outFields).
19882
19999
  *
19883
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20000
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19884
20001
  */
19885
20002
  supportsDistinct: boolean;
19886
20003
  /**
19887
20004
  * Indicates if the query operation supports `disjoint` [spatial relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship).
19888
20005
  *
19889
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20006
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19890
20007
  */
19891
20008
  supportsDisjointSpatialRelationship: boolean;
19892
20009
  /**
19893
20010
  * Indicates if the query operation supports a [cache hint](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint).
19894
20011
  *
19895
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20012
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19896
20013
  */
19897
20014
  supportsCacheHint: boolean;
19898
20015
  /**
19899
20016
  * Indicates if the layer's query response includes the extent of features.
19900
20017
  *
19901
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20018
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19902
20019
  */
19903
20020
  supportsExtent: boolean;
19904
20021
  /**
19905
20022
  * Indicates if the layer's query response contains geometry attributes, including shape area and length attributes.
19906
20023
  *
19907
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20024
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19908
20025
  */
19909
20026
  supportsGeometryProperties: boolean;
19910
20027
  /**
19911
20028
  * Indicates if the layer supports the [having](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having) clause on the service.
19912
20029
  *
19913
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20030
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19914
20031
  */
19915
20032
  supportsHavingClause: boolean;
19916
20033
  /**
19917
20034
  * Indicates if features returned in the query response can be ordered by one or more fields.
19918
20035
  *
19919
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20036
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19920
20037
  */
19921
20038
  supportsOrderBy: boolean;
19922
20039
  /**
19923
20040
  * Indicates if the query response supports pagination.
19924
20041
  *
19925
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20042
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19926
20043
  */
19927
20044
  supportsPagination: boolean;
19928
20045
  /**
19929
20046
  * Indicates if the layer supports [percentile statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
19930
20047
  *
19931
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20048
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19932
20049
  */
19933
20050
  supportsPercentileStatistics: boolean;
19934
20051
  /**
19935
20052
  * Indicates if the query response includes the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry).
19936
20053
  *
19937
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20054
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19938
20055
  */
19939
20056
  supportsQueryGeometry: boolean;
19940
20057
  /**
19941
20058
  * Indicates if the query operation supports the projection of geometries onto a virtual grid.
19942
20059
  *
19943
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20060
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19944
20061
  */
19945
20062
  supportsQuantization: boolean;
19946
20063
  /**
19947
20064
  * Indicates if the query operation supports quantization designed to be used in edit mode (highest resolution at the given spatial reference).
19948
20065
  *
19949
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20066
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19950
20067
  */
19951
20068
  supportsQuantizationEditMode: boolean;
19952
20069
  /**
19953
20070
  * Indicates if the number of features returned by the query operation can be controlled.
19954
20071
  *
19955
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20072
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19956
20073
  */
19957
20074
  supportsResultType: boolean;
19958
20075
  /**
19959
20076
  * Indicates if the query operation supports SQL expressions.
19960
20077
  *
19961
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20078
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19962
20079
  */
19963
20080
  supportsSqlExpression: boolean;
19964
20081
  /**
19965
20082
  * Indicates if the query operation supports using standardized queries.
19966
20083
  *
19967
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20084
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19968
20085
  */
19969
20086
  supportsStandardizedQueriesOnly: boolean;
19970
20087
  /**
19971
20088
  * Indicates if the layer supports field-based statistical functions.
19972
20089
  *
19973
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20090
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19974
20091
  */
19975
20092
  supportsStatistics: boolean;
19976
20093
  /**
19977
20094
  * Indicates if the layer supports historic moment query.
19978
20095
  *
19979
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20096
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19980
20097
  */
19981
20098
  supportsHistoricMoment: boolean;
19982
20099
  }
@@ -19985,124 +20102,29 @@ declare namespace __esri {
19985
20102
  /**
19986
20103
  * Indicates if the [relationship query operation](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html) supports a cache hint.
19987
20104
  *
19988
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20105
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19989
20106
  */
19990
20107
  supportsCacheHint: boolean;
19991
20108
  /**
19992
20109
  * Indicates if the layer's query response includes the number of features or records related to features in the layer.
19993
20110
  *
19994
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20111
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
19995
20112
  */
19996
20113
  supportsCount: boolean;
19997
20114
  /**
19998
20115
  * Indicates if the related features or records returned in the query response can be ordered by one or more fields.
19999
20116
  *
20000
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20117
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
20001
20118
  */
20002
20119
  supportsOrderBy: boolean;
20003
20120
  /**
20004
20121
  * Indicates if the query response supports pagination for related features or records.
20005
20122
  *
20006
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
20123
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#Capabilities)
20007
20124
  */
20008
20125
  supportsPagination: boolean;
20009
20126
  }
20010
20127
 
20011
- export interface SceneLayerElevationInfo {
20012
- /**
20013
- * Defines how the feature is placed with respect to the terrain surface.
20014
- *
20015
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
20016
- */
20017
- mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
20018
- /**
20019
- * An elevation offset which is added to the vertical position of the feature.
20020
- *
20021
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
20022
- */
20023
- offset?: number;
20024
- /**
20025
- * The unit for `offset` values.
20026
- *
20027
- * @default meters
20028
- *
20029
- * [Read more...](global.html#unit)
20030
- */
20031
- unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
20032
- }
20033
-
20034
- export interface SceneLayerGetFieldDomainOptions {
20035
- /**
20036
- * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
20037
- *
20038
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getFieldDomain)
20039
- */
20040
- feature: Graphic;
20041
- }
20042
-
20043
- export interface SceneLayerQueryCachedStatisticsOptions {
20044
- /**
20045
- * Signal object that can be used to abort the asynchronous task.
20046
- *
20047
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryCachedStatistics)
20048
- */
20049
- signal?: AbortSignal;
20050
- }
20051
-
20052
- export interface SceneLayerQueryExtentOptions {
20053
- /**
20054
- * Signal object that can be used to abort the asynchronous task.
20055
- *
20056
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryExtent)
20057
- */
20058
- signal?: AbortSignal;
20059
- }
20060
-
20061
- export interface SceneLayerQueryFeatureCountOptions {
20062
- /**
20063
- * Signal object that can be used to abort the asynchronous task.
20064
- *
20065
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatureCount)
20066
- */
20067
- signal?: AbortSignal;
20068
- }
20069
-
20070
- export interface SceneLayerQueryFeaturesOptions {
20071
- /**
20072
- * Signal object that can be used to abort the asynchronous task.
20073
- *
20074
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatures)
20075
- */
20076
- signal?: AbortSignal;
20077
- }
20078
-
20079
- export interface SceneLayerQueryObjectIdsOptions {
20080
- /**
20081
- * Signal object that can be used to abort the asynchronous task.
20082
- *
20083
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryObjectIds)
20084
- */
20085
- signal?: AbortSignal;
20086
- }
20087
-
20088
- export interface SceneLayerQueryRelatedFeaturesCountOptions {
20089
- /**
20090
- * Signal object that can be used to abort the asynchronous task.
20091
- *
20092
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryRelatedFeaturesCount)
20093
- */
20094
- signal?: AbortSignal;
20095
- }
20096
-
20097
- export interface SceneLayerQueryRelatedFeaturesOptions {
20098
- /**
20099
- * Signal object that can be used to abort the asynchronous task.
20100
- *
20101
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryRelatedFeatures)
20102
- */
20103
- signal?: AbortSignal;
20104
- }
20105
-
20106
20128
  export interface StreamLayer extends Layer, ScaleRangeLayer, TemporalLayer, BlendLayer, FeatureEffectLayer, FeatureReductionLayer, Clonable {
20107
20129
  }
20108
20130
 
@@ -107728,6 +107750,18 @@ declare namespace __esri {
107728
107750
  }
107729
107751
 
107730
107752
  export class SketchTooltipControlsViewModel extends Accessor {
107753
+ /**
107754
+ * The sketch label options displayed and controlled by the widget.
107755
+ *
107756
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SketchTooltipControls-SketchTooltipControlsViewModel.html#labelOptions)
107757
+ */
107758
+ labelOptions: SketchLabelOptions;
107759
+ /**
107760
+ * The sketch tooltip options displayed and controlled by the widget.
107761
+ *
107762
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SketchTooltipControls-SketchTooltipControlsViewModel.html#tooltipOptions)
107763
+ */
107764
+ tooltipOptions: SketchTooltipOptions;
107731
107765
  /**
107732
107766
  * Provides the logic for the [SketchTooltipControls](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SketchTooltipControls.html) widget.
107733
107767
  *
@@ -107737,6 +107771,18 @@ declare namespace __esri {
107737
107771
  }
107738
107772
 
107739
107773
  interface SketchTooltipControlsViewModelProperties {
107774
+ /**
107775
+ * The sketch label options displayed and controlled by the widget.
107776
+ *
107777
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SketchTooltipControls-SketchTooltipControlsViewModel.html#labelOptions)
107778
+ */
107779
+ labelOptions?: SketchLabelOptionsProperties;
107780
+ /**
107781
+ * The sketch tooltip options displayed and controlled by the widget.
107782
+ *
107783
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SketchTooltipControls-SketchTooltipControlsViewModel.html#tooltipOptions)
107784
+ */
107785
+ tooltipOptions?: SketchTooltipOptionsProperties;
107740
107786
  }
107741
107787
 
107742
107788
  /**
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.28/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import r from"../PopupTemplate.js";import{ClonableMixin as t}from"../core/Clonable.js";import{MultiOriginJSONMixin as o}from"../core/MultiOriginJSONSupport.js";import{debounce as s,throwIfAbortError as i}from"../core/promiseUtils.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import"../core/arrayUtils.js";import"../core/has.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";import{writer as n}from"../core/accessorSupport/decorators/writer.js";import m from"./Layer.js";import{ArcGISImageService as c}from"./mixins/ArcGISImageService.js";import{ArcGISService as l}from"./mixins/ArcGISService.js";import{BlendLayer as u}from"./mixins/BlendLayer.js";import{CustomParametersMixin as y}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as d}from"./mixins/OperationalLayer.js";import{PortalLayer as f}from"./mixins/PortalLayer.js";import{RefreshableLayer as h}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as S}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as v}from"./mixins/TemporalLayer.js";import{legendEnabled as g,popupEnabled as j}from"./support/commonProperties.js";import{serviceSupportsSpatialReference as I}from"./support/versionUtils.js";import{createPopupTemplate as L}from"../support/popupUtils.js";import{SaveOperationType as T}from"../webdoc/interfaces.js";let b=class extends(u(v(S(d(f(c(h(y(l(o(t(m)))))))))))){constructor(...e){super(...e),this.legendEnabled=!0,this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery",this._debouncedSaveOperations=s((async(e,r,t)=>{const{save:o,saveAs:s}=await import("./save/imageryUtils.js");switch(e){case T.SAVE:return o(this,r);case T.SAVE_AS:return s(this,t,r)}}))}normalizeCtorArgs(e,r){return"string"==typeof e?{url:e,...r}:e}load(e){const r=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(i).then((()=>this._fetchService(r)))),Promise.resolve(this)}writeOperationalLayerType(e,r,t){const o="vector-field"===this.renderer?.type;r[t]=o?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const r=this.rasterFields,t=this.title,o=new Set;let s=!1,i=!1;this.capabilities&&(s=this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0,i="esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType);const a=new Set;s&&a.add("raster.itempixelvalue");for(const p of r){const e=p.name.toLowerCase();a.has(e)||e.includes("raster.servicepixelvalue.")||o.add(p.name)}return i&&o.add("raster.magnitude").add("raster.direction"),L({fields:r,title:t},{...e,visibleFieldNames:o})}queryFeatures(e,r){return this.queryRasters(e,r).then((e=>{if(e?.features)for(const r of e.features)r.layer=r.sourceLayer=this;return e}))}queryFeatureCount(e,r){return this.queryRasterCount(e,r)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(T.SAVE,e)}async saveAs(e,r){return this._debouncedSaveOperations(T.SAVE_AS,r,e)}serviceSupportsSpatialReference(e){return I(this,e)}};e([a(g)],b.prototype,"legendEnabled",void 0),e([a({type:["show","hide"]})],b.prototype,"listMode",void 0),e([a({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],b.prototype,"isReference",void 0),e([a({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],b.prototype,"operationalLayerType",void 0),e([n("web-map","operationalLayerType")],b.prototype,"writeOperationalLayerType",null),e([a(j)],b.prototype,"popupEnabled",void 0),e([a({type:r,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],b.prototype,"popupTemplate",void 0),e([a({readOnly:!0})],b.prototype,"defaultPopupTemplate",null),e([a({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),b=e([p("esri.layers.ImageryLayer")],b);const w=b;export{w as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import r from"../PopupTemplate.js";import{ClonableMixin as t}from"../core/Clonable.js";import s from"../core/Error.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{debounce as o,throwIfAbortError as a}from"../core/promiseUtils.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import"../core/arrayUtils.js";import"../core/has.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import{writer as l}from"../core/accessorSupport/decorators/writer.js";import m from"./Layer.js";import{ArcGISImageService as c}from"./mixins/ArcGISImageService.js";import{ArcGISService as u}from"./mixins/ArcGISService.js";import{BlendLayer as y}from"./mixins/BlendLayer.js";import{CustomParametersMixin as d}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as h}from"./mixins/OperationalLayer.js";import{PortalLayer as f}from"./mixins/PortalLayer.js";import{RefreshableLayer as g}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as v}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as S}from"./mixins/TemporalLayer.js";import{legendEnabled as j,popupEnabled as w}from"./support/commonProperties.js";import{serviceSupportsSpatialReference as L}from"./support/versionUtils.js";import{createPopupTemplate as b}from"../support/popupUtils.js";import{SaveOperationType as I}from"../webdoc/interfaces.js";let T=class extends(y(S(v(h(f(c(g(d(u(i(t(m)))))))))))){constructor(...e){super(...e),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery",this._debouncedSaveOperations=o((async(e,r,t)=>{const{save:s,saveAs:i}=await import("./save/imageryUtils.js");switch(e){case I.SAVE:return s(this,r);case I.SAVE_AS:return i(this,t,r)}}))}normalizeCtorArgs(e,r){return"string"==typeof e?{url:e,...r}:e}load(e){const r=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(a).then((()=>this._fetchService(r)))),Promise.resolve(this)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,r,t){const s="vector-field"===this.renderer?.type;r[t]=s?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const r=this.rasterFields,t=this.title,s=new Set;let i=!1,o=!1;this.capabilities&&(i=this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0,o="esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType);const a=new Set;i&&a.add("raster.itempixelvalue");for(const p of r){const e=p.name.toLowerCase();a.has(e)||e.includes("raster.servicepixelvalue.")||s.add(p.name)}return o&&s.add("raster.magnitude").add("raster.direction"),b({fields:r,title:t},{...e,visibleFieldNames:s})}queryFeatures(e,r){return this.queryRasters(e,r).then((e=>{if(e?.features)for(const r of e.features)r.layer=r.sourceLayer=this;return e}))}queryFeatureCount(e,r){return this.queryRasterCount(e,r)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(I.SAVE,e)}async saveAs(e,r){return this._debouncedSaveOperations(I.SAVE_AS,r,e)}serviceSupportsSpatialReference(e){return L(this,e)}write(e,r){if(!this._isPreviewLayer)return super.write(e,r);if(r?.messages){const e=`${r.origin}/${r.layerContainerType||"operational-layers"}`;r.messages.push(new s("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}};e([p(j)],T.prototype,"legendEnabled",null),e([p({type:["show","hide"]})],T.prototype,"listMode",null),e([p({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],T.prototype,"isReference",void 0),e([p({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],T.prototype,"operationalLayerType",void 0),e([l("web-map","operationalLayerType")],T.prototype,"writeOperationalLayerType",null),e([p(w)],T.prototype,"popupEnabled",void 0),e([p({type:r,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],T.prototype,"popupTemplate",void 0),e([p({readOnly:!0})],T.prototype,"defaultPopupTemplate",null),e([p({readOnly:!0,json:{read:!1}})],T.prototype,"type",void 0),e([p({readOnly:!0})],T.prototype,"_isPreviewLayer",null),T=e([n("esri.layers.ImageryLayer")],T);const A=T;export{A as default};