@arcgis/core 4.21.0-next.20210916 → 4.21.0

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 (32) hide show
  1. package/EULA.pdf +0 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/836e8ed3f37b014670ec.js +1 -0
  4. package/assets/esri/core/workers/chunks/a1d5d196d14b194636ee.js +1 -0
  5. package/assets/esri/core/workers/chunks/dd33c0ef52ad555092bd.js +1 -0
  6. package/assets/esri/core/workers/chunks/ee32a34cce5d2f65d01c.js +1 -0
  7. package/assets/esri/core/workers/chunks/f57c8fc116d64723c16c.js +1 -0
  8. package/config.js +1 -1
  9. package/interfaces.d.ts +47 -123
  10. package/layers/ImageryTileLayer.js +1 -1
  11. package/layers/mixins/ArcGISImageService.js +1 -1
  12. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  13. package/package.json +1 -1
  14. package/support/revision.js +1 -1
  15. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  16. package/views/2d/layers/features/controllers/support/sourceAdapters.js +1 -1
  17. package/views/2d/layers/features/schemaUtils.js +1 -1
  18. package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
  19. package/views/2d/layers/features/sources/DataTileSource.js +1 -1
  20. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  21. package/views/3d/layers/analysis/LineOfSight/LineOfSightController.js +1 -1
  22. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  23. package/views/draw/support/Reshape.js +1 -1
  24. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  25. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  26. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  27. package/assets/esri/core/workers/chunks/05ad927ed6b27c8134b4.js +0 -1
  28. package/assets/esri/core/workers/chunks/42f1ea5f61521156e044.js +0 -1
  29. package/assets/esri/core/workers/chunks/5ec6930af98cbccc6a9a.js +0 -1
  30. package/assets/esri/core/workers/chunks/62f264baf3cbd76ecac6.js +0 -1
  31. package/assets/esri/core/workers/chunks/d4a77cf8f298d94879d6.js +0 -1
  32. package/views/2d/layers/features/controllers/support/sources.js +0 -5
package/interfaces.d.ts CHANGED
@@ -634,7 +634,7 @@ declare namespace __esri {
634
634
  */
635
635
  fontsUrl: string;
636
636
  /**
637
- * The default [GeometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html) used by widgets and other operations, such as on-the-fly projections.
637
+ * The default [geometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html) used by widgets and other operations, such as on-the-fly projections.
638
638
  *
639
639
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#geometryServiceUrl)
640
640
  */
@@ -1942,7 +1942,7 @@ declare namespace __esri {
1942
1942
 
1943
1943
  export interface ConnectionInvokeOptions extends Object {
1944
1944
  /**
1945
- * An array of [Transferable](https://developer.mozilla.org/en-US/docs/Web/API/Transferable) objects.
1945
+ * An array of Transferable objects.
1946
1946
  *
1947
1947
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers-Connection.html#invoke)
1948
1948
  */
@@ -8817,7 +8817,7 @@ declare namespace __esri {
8817
8817
  */
8818
8818
  floorInfo: LayerFloorInfo;
8819
8819
  /**
8820
- * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
8820
+ * The [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
8821
8821
  *
8822
8822
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#formTemplate)
8823
8823
  */
@@ -9205,7 +9205,7 @@ declare namespace __esri {
9205
9205
  */
9206
9206
  floorInfo?: LayerFloorInfoProperties;
9207
9207
  /**
9208
- * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
9208
+ * The [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
9209
9209
  *
9210
9210
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#formTemplate)
9211
9211
  */
@@ -12295,6 +12295,12 @@ declare namespace __esri {
12295
12295
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fields)
12296
12296
  */
12297
12297
  fields: Field[];
12298
+ /**
12299
+ * A convenient property that can be used to make case-insensitive lookups for a [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fields) by name.
12300
+ *
12301
+ * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fieldsIndex)
12302
+ */
12303
+ readonly fieldsIndex: FieldsIndex;
12298
12304
  /**
12299
12305
  * The format of the exported image.
12300
12306
  *
@@ -13197,7 +13203,7 @@ declare namespace __esri {
13197
13203
  */
13198
13204
  field?: string;
13199
13205
  /**
13200
- * The [Arcade expression](https://developers.arcgis.com/javascript/latest/arcade/) expression whose return value will be used to sort features.
13206
+ * The [Arcade expression](https://developers.arcgis.com/javascript/latest/arcade/) whose return value will be used to sort features.
13201
13207
  *
13202
13208
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-OrderedLayer.html#orderBy)
13203
13209
  */
@@ -15386,7 +15392,7 @@ declare namespace __esri {
15386
15392
  */
15387
15393
  floorInfo: LayerFloorInfo;
15388
15394
  /**
15389
- * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
15395
+ * The [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
15390
15396
  *
15391
15397
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#formTemplate)
15392
15398
  */
@@ -15659,7 +15665,7 @@ declare namespace __esri {
15659
15665
  */
15660
15666
  floorInfo?: LayerFloorInfoProperties;
15661
15667
  /**
15662
- * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
15668
+ * The [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
15663
15669
  *
15664
15670
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#formTemplate)
15665
15671
  */
@@ -17025,7 +17031,7 @@ declare namespace __esri {
17025
17031
 
17026
17032
  interface FeatureReductionClusterConstructor {
17027
17033
  /**
17028
- * 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) or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html).
17034
+ * 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).
17029
17035
  *
17030
17036
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html)
17031
17037
  */
@@ -33237,7 +33243,7 @@ declare namespace __esri {
33237
33243
  */
33238
33244
  address: string;
33239
33245
  /**
33240
- * Name value pairs of field name and field value as defined in `outFields` in [Locator.addressToLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#addressToLocations).
33246
+ * Name value pairs of field name and field value as defined in `outFields` in [locator.addressToLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations).
33241
33247
  *
33242
33248
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#attributes)
33243
33249
  */
@@ -33282,7 +33288,7 @@ declare namespace __esri {
33282
33288
  */
33283
33289
  address?: string;
33284
33290
  /**
33285
- * Name value pairs of field name and field value as defined in `outFields` in [Locator.addressToLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#addressToLocations).
33291
+ * Name value pairs of field name and field value as defined in `outFields` in [locator.addressToLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations).
33286
33292
  *
33287
33293
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#attributes)
33288
33294
  */
@@ -33654,7 +33660,7 @@ declare namespace __esri {
33654
33660
 
33655
33661
  interface supportBufferParametersConstructor {
33656
33662
  /**
33657
- * Sets the distances, units, and other parameters for the [buffer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#buffer) method on the [GeometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html).
33663
+ * Sets the distances, units, and other parameters for the [buffer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#buffer) method on the [geometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html).
33658
33664
  *
33659
33665
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html)
33660
33666
  */
@@ -34723,7 +34729,7 @@ declare namespace __esri {
34723
34729
 
34724
34730
  interface supportDistanceParametersConstructor {
34725
34731
  /**
34726
- * Defines the input parameters when calling [GeometryService.distance()](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#distance).
34732
+ * Defines the input parameters when calling [geometryService.distance()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#distance).
34727
34733
  *
34728
34734
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html)
34729
34735
  */
@@ -34806,7 +34812,7 @@ declare namespace __esri {
34806
34812
 
34807
34813
  interface supportFeatureSetConstructor {
34808
34814
  /**
34809
- * A collection of features returned from ArcGIS Server or used as input to tasks.
34815
+ * A collection of features returned from ArcGIS Server or used as input to methods.
34810
34816
  *
34811
34817
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html)
34812
34818
  */
@@ -35100,7 +35106,7 @@ declare namespace __esri {
35100
35106
 
35101
35107
  interface supportGeneralizeParametersConstructor {
35102
35108
  /**
35103
- * Sets the geometries, maximum deviation and units for the generalize operation.
35109
+ * Sets the geometries, maximum deviation and units for the [generalize](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#generalize) operation.
35104
35110
  *
35105
35111
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GeneralizeParameters.html)
35106
35112
  */
@@ -36351,7 +36357,7 @@ declare namespace __esri {
36351
36357
 
36352
36358
  interface supportLengthsParametersConstructor {
36353
36359
  /**
36354
- * Sets the length units and other parameters for the [GeometryService.lengths()](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#lengths) operation.
36360
+ * Sets the length units and other parameters for the [geometryService.lengths()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#lengths) operation.
36355
36361
  *
36356
36362
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html)
36357
36363
  */
@@ -36635,7 +36641,7 @@ declare namespace __esri {
36635
36641
 
36636
36642
  interface supportOffsetParametersConstructor {
36637
36643
  /**
36638
- * Sets the offset distance, type and other parameters for the [GeometryService.offset](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#offset) operation.
36644
+ * Sets the offset distance, type and other parameters for the [geometryService.offset](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#offset) operation.
36639
36645
  *
36640
36646
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html)
36641
36647
  */
@@ -36707,7 +36713,7 @@ declare namespace __esri {
36707
36713
 
36708
36714
  interface supportParameterValueConstructor {
36709
36715
  /**
36710
- * Represents the output parameters of a [Geoprocessor](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Geoprocessor.html) task and their properties and values.
36716
+ * Represents the output parameters of a [geoprocessor](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html) method and their properties and values.
36711
36717
  *
36712
36718
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ParameterValue.html)
36713
36719
  */
@@ -36773,7 +36779,7 @@ declare namespace __esri {
36773
36779
 
36774
36780
  interface supportPrintParametersConstructor {
36775
36781
  /**
36776
- * Input parameters for [PrintTask](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-PrintTask.html).
36782
+ * Input parameters for [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html).
36777
36783
  *
36778
36784
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html)
36779
36785
  */
@@ -36876,7 +36882,7 @@ declare namespace __esri {
36876
36882
 
36877
36883
  interface supportPrintTemplateConstructor {
36878
36884
  /**
36879
- * Defines the layout template options used by the [PrintTask](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-PrintTask.html) and [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) widget to generate the print page.
36885
+ * Defines the layout template options used by the [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html) and [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) widget to generate the print page.
36880
36886
  *
36881
36887
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html)
36882
36888
  */
@@ -37045,7 +37051,7 @@ declare namespace __esri {
37045
37051
 
37046
37052
  interface supportProjectParametersConstructor {
37047
37053
  /**
37048
- * Defines the projection parameters used when calling the [GeometryService.project()](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#project).
37054
+ * Defines the projection parameters used when calling the [geometryService.project()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#project).
37049
37055
  *
37050
37056
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html)
37051
37057
  */
@@ -37745,7 +37751,7 @@ declare namespace __esri {
37745
37751
 
37746
37752
  interface supportRelationParametersConstructor {
37747
37753
  /**
37748
- * Sets the relation and other parameters for the [GeometryService.relation()](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#relation) operation.
37754
+ * Sets the relation and other parameters for the [geometryService.relation()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#relation) operation.
37749
37755
  *
37750
37756
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html)
37751
37757
  */
@@ -38814,7 +38820,7 @@ declare namespace __esri {
38814
38820
 
38815
38821
  interface supportServiceAreaParametersConstructor {
38816
38822
  /**
38817
- * Input parameters for [ServiceAreaTask](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-ServiceAreaTask.html).
38823
+ * Input parameters for [serviceArea](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-serviceArea.html).
38818
38824
  *
38819
38825
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html)
38820
38826
  */
@@ -39106,7 +39112,7 @@ declare namespace __esri {
39106
39112
 
39107
39113
  interface supportServiceAreaSolveResultConstructor {
39108
39114
  /**
39109
- * The result from [ServiceAreaTask](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-ServiceAreaTask.html).
39115
+ * The result from [serviceArea](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-serviceArea.html).
39110
39116
  *
39111
39117
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html)
39112
39118
  */
@@ -39843,7 +39849,7 @@ declare namespace __esri {
39843
39849
 
39844
39850
  interface supportTrimExtendParametersConstructor {
39845
39851
  /**
39846
- * Used to set the parameters for the [GeometryService.trimExtend](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#trimExtend) operation.
39852
+ * Used to set the parameters for the [geometryService.trimExtend](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#trimExtend) operation.
39847
39853
  *
39848
39854
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TrimExtendParameters.html)
39849
39855
  */
@@ -65727,11 +65733,11 @@ declare namespace __esri {
65727
65733
  */
65728
65734
  thumbnailUrl: string;
65729
65735
  /**
65730
- * The utilityNetworks object contains utility networks saved on the web map
65736
+ * The utilityNetworks object contains a collection of [UtilityNetworks](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html) saved on the web map.
65731
65737
  *
65732
65738
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#utilityNetworks)
65733
65739
  */
65734
- utilityNetworks: any;
65740
+ utilityNetworks: Collection<UtilityNetwork>;
65735
65741
  /**
65736
65742
  * The widgets object contains widgets that are exposed to the user.
65737
65743
  *
@@ -65843,11 +65849,11 @@ declare namespace __esri {
65843
65849
  */
65844
65850
  thumbnailUrl?: string;
65845
65851
  /**
65846
- * The utilityNetworks object contains utility networks saved on the web map
65852
+ * The utilityNetworks object contains a collection of [UtilityNetworks](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html) saved on the web map.
65847
65853
  *
65848
65854
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#utilityNetworks)
65849
65855
  */
65850
- utilityNetworks?: any;
65856
+ utilityNetworks?: CollectionProperties<UtilityNetwork>;
65851
65857
  /**
65852
65858
  * The widgets object contains widgets that are exposed to the user.
65853
65859
  *
@@ -69694,7 +69700,7 @@ declare namespace __esri {
69694
69700
  */
69695
69701
  orientation: "auto" | "expand-up" | "expand-down";
69696
69702
  /**
69697
- * The number of milliseconds of delay before conversion requests will be sent to the [GeometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html).
69703
+ * The number of milliseconds of delay before conversion requests will be sent to the [geometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html).
69698
69704
  *
69699
69705
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#requestDelay)
69700
69706
  */
@@ -69793,7 +69799,7 @@ declare namespace __esri {
69793
69799
  */
69794
69800
  orientation?: "auto" | "expand-up" | "expand-down";
69795
69801
  /**
69796
- * The number of milliseconds of delay before conversion requests will be sent to the [GeometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html).
69802
+ * The number of milliseconds of delay before conversion requests will be sent to the [geometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html).
69797
69803
  *
69798
69804
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#requestDelay)
69799
69805
  */
@@ -72449,7 +72455,7 @@ declare namespace __esri {
72449
72455
  */
72450
72456
  featureTemplates?: SupportingWidgetDefaultsFeatureTemplates;
72451
72457
  /**
72452
- * An object containing properties specific for customizng the [Sketch](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html) widget.
72458
+ * An object containing properties specific for customizing the [Sketch](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html) widget.
72453
72459
  *
72454
72460
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
72455
72461
  */
@@ -73990,24 +73996,12 @@ declare namespace __esri {
73990
73996
  }
73991
73997
 
73992
73998
  interface FeatureForm extends Widget {
73993
- /**
73994
- * The description of the form.
73995
- *
73996
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#description)
73997
- */
73998
- description: string;
73999
73999
  /**
74000
74000
  * The associated feature containing the editable attributes.
74001
74001
  *
74002
74002
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#feature)
74003
74003
  */
74004
74004
  feature: Graphic;
74005
- /**
74006
- * Array of individual or grouped field configuration objects.
74007
- *
74008
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#fieldConfig)
74009
- */
74010
- fieldConfig: FieldConfig[] | FieldGroupConfig[];
74011
74005
  /**
74012
74006
  * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used for the form.
74013
74007
  *
@@ -74032,12 +74026,6 @@ declare namespace __esri {
74032
74026
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#layer)
74033
74027
  */
74034
74028
  layer: FeatureLayer;
74035
- /**
74036
- * The title of the form.
74037
- *
74038
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#title)
74039
- */
74040
- title: string;
74041
74029
  /**
74042
74030
  * The view model for this widget.
74043
74031
  *
@@ -74072,24 +74060,12 @@ declare namespace __esri {
74072
74060
  export const FeatureForm: FeatureFormConstructor;
74073
74061
 
74074
74062
  interface FeatureFormProperties extends WidgetProperties {
74075
- /**
74076
- * The description of the form.
74077
- *
74078
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#description)
74079
- */
74080
- description?: string;
74081
74063
  /**
74082
74064
  * The associated feature containing the editable attributes.
74083
74065
  *
74084
74066
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#feature)
74085
74067
  */
74086
74068
  feature?: GraphicProperties;
74087
- /**
74088
- * Array of individual or grouped field configuration objects.
74089
- *
74090
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#fieldConfig)
74091
- */
74092
- fieldConfig?: FieldConfigProperties[] | FieldGroupConfigProperties[];
74093
74069
  /**
74094
74070
  * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used for the form.
74095
74071
  *
@@ -74114,12 +74090,6 @@ declare namespace __esri {
74114
74090
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#layer)
74115
74091
  */
74116
74092
  layer?: FeatureLayerProperties;
74117
- /**
74118
- * The title of the form.
74119
- *
74120
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#title)
74121
- */
74122
- title?: string;
74123
74093
  /**
74124
74094
  * The view model for this widget.
74125
74095
  *
@@ -74129,12 +74099,6 @@ declare namespace __esri {
74129
74099
  }
74130
74100
 
74131
74101
  interface FeatureFormViewModel extends Accessor, Evented {
74132
- /**
74133
- * The description of the form.
74134
- *
74135
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#description)
74136
- */
74137
- description: string;
74138
74102
  /**
74139
74103
  * The associated feature containing the editable attributes.
74140
74104
  *
@@ -74171,12 +74135,6 @@ declare namespace __esri {
74171
74135
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#state)
74172
74136
  */
74173
74137
  readonly state: "ready" | "disabled";
74174
- /**
74175
- * The title of the form.
74176
- *
74177
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#title)
74178
- */
74179
- title: string;
74180
74138
  /**
74181
74139
  * Indicates whether all input fields are valid.
74182
74140
  *
@@ -74223,12 +74181,6 @@ declare namespace __esri {
74223
74181
  export const FeatureFormViewModel: FeatureFormViewModelConstructor;
74224
74182
 
74225
74183
  interface FeatureFormViewModelProperties {
74226
- /**
74227
- * The description of the form.
74228
- *
74229
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#description)
74230
- */
74231
- description?: string;
74232
74184
  /**
74233
74185
  * The associated feature containing the editable attributes.
74234
74186
  *
@@ -74253,12 +74205,6 @@ declare namespace __esri {
74253
74205
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#layer)
74254
74206
  */
74255
74207
  layer?: (FeatureLayerProperties & { type: "feature" }) | (SceneLayerProperties & { type: "scene" });
74256
- /**
74257
- * The title of the form.
74258
- *
74259
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#title)
74260
- */
74261
- title?: string;
74262
74208
  /**
74263
74209
  * Indicates whether all input fields are valid.
74264
74210
  *
@@ -74342,9 +74288,6 @@ declare namespace __esri {
74342
74288
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#name)
74343
74289
  */
74344
74290
  name: string;
74345
- noValueOptionLabel: boolean;
74346
- offValue: number | string;
74347
- onValue: number | string;
74348
74291
  /**
74349
74292
  * Indicates whether the field is required.
74350
74293
  *
@@ -74357,7 +74300,6 @@ declare namespace __esri {
74357
74300
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#requiredExpression)
74358
74301
  */
74359
74302
  requiredExpression: string;
74360
- showNoValueOption: boolean;
74361
74303
  /**
74362
74304
  * A reference to an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression that returns a boolean value.
74363
74305
  *
@@ -74368,7 +74310,7 @@ declare namespace __esri {
74368
74310
 
74369
74311
  interface FieldConfigConstructor {
74370
74312
  /**
74371
- * Configuration options for displaying an individual field within the [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) widget.
74313
+ * Configuration options for configuring an individual field within the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) and/or [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widgets.
74372
74314
  *
74373
74315
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html)
74374
74316
  */
@@ -74438,9 +74380,6 @@ declare namespace __esri {
74438
74380
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#name)
74439
74381
  */
74440
74382
  name?: string;
74441
- noValueOptionLabel?: boolean;
74442
- offValue?: number | string;
74443
- onValue?: number | string;
74444
74383
  /**
74445
74384
  * Indicates whether the field is required.
74446
74385
  *
@@ -74453,7 +74392,6 @@ declare namespace __esri {
74453
74392
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#requiredExpression)
74454
74393
  */
74455
74394
  requiredExpression?: string;
74456
- showNoValueOption?: boolean;
74457
74395
  /**
74458
74396
  * A reference to an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression that returns a boolean value.
74459
74397
  *
@@ -74470,12 +74408,11 @@ declare namespace __esri {
74470
74408
  */
74471
74409
  description: string;
74472
74410
  /**
74473
- * The field configurations belonging to a group.
74411
+ * An array of field configurations belonging to a group.
74474
74412
  *
74475
74413
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#fieldConfig)
74476
74414
  */
74477
74415
  fieldConfig: FieldConfig[];
74478
- initialState: "expanded" | "collapsed";
74479
74416
  /**
74480
74417
  * The field's label.
74481
74418
  *
@@ -74492,7 +74429,7 @@ declare namespace __esri {
74492
74429
 
74493
74430
  interface FieldGroupConfigConstructor {
74494
74431
  /**
74495
- * Configuration options for displaying a group of fields within the [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) widget.
74432
+ * Configuration options for configuring grouped fields.
74496
74433
  *
74497
74434
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html)
74498
74435
  */
@@ -74509,12 +74446,11 @@ declare namespace __esri {
74509
74446
  */
74510
74447
  description?: string;
74511
74448
  /**
74512
- * The field configurations belonging to a group.
74449
+ * An array of field configurations belonging to a group.
74513
74450
  *
74514
74451
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#fieldConfig)
74515
74452
  */
74516
74453
  fieldConfig?: FieldConfigProperties[];
74517
- initialState?: "expanded" | "collapsed";
74518
74454
  /**
74519
74455
  * The field's label.
74520
74456
  *
@@ -74681,7 +74617,7 @@ declare namespace __esri {
74681
74617
  */
74682
74618
  readonly label: string;
74683
74619
  /**
74684
- * Arcade expression to determine whether this group is visible or not
74620
+ * Arcade expression to determine whether this group is visible or not.
74685
74621
  *
74686
74622
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#visibilityExpression)
74687
74623
  */
@@ -74714,7 +74650,7 @@ declare namespace __esri {
74714
74650
  description?: string;
74715
74651
  initialState?: "expanded" | "collapsed";
74716
74652
  /**
74717
- * Arcade expression to determine whether this group is visible or not
74653
+ * Arcade expression to determine whether this group is visible or not.
74718
74654
  *
74719
74655
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#visibilityExpression)
74720
74656
  */
@@ -81774,7 +81710,7 @@ declare namespace __esri {
81774
81710
  */
81775
81711
  readonly selectedResult: SearchResult;
81776
81712
  /**
81777
- * The Search widget may be used to search features in a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html) or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), or [table](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html), or geocode locations with a [Locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html).
81713
+ * The Search widget may be used to search features in a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html) or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), or [table](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html), or geocode locations with a [locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html).
81778
81714
  *
81779
81715
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources)
81780
81716
  */
@@ -81822,7 +81758,7 @@ declare namespace __esri {
81822
81758
  */
81823
81759
  focus(): void;
81824
81760
  /**
81825
- * Depending on the sources specified, search() queries the feature layer(s) and/or performs address matching using any specified [Locator(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html) and returns any applicable results.
81761
+ * Depending on the sources specified, search() queries the feature layer(s) and/or performs address matching using any specified [locator(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html) and returns any applicable results.
81826
81762
  *
81827
81763
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#search)
81828
81764
  */
@@ -81845,7 +81781,7 @@ declare namespace __esri {
81845
81781
 
81846
81782
  interface widgetsSearchConstructor {
81847
81783
  /**
81848
- * The Search widget provides a way to perform search operations on [locator service(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html), [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), and/or [table(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html).
81784
+ * The Search widget provides a way to perform search operations on [locator service(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html), [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), and/or [table(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html).
81849
81785
  *
81850
81786
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html)
81851
81787
  */
@@ -81958,7 +81894,7 @@ declare namespace __esri {
81958
81894
  */
81959
81895
  searchTerm?: string;
81960
81896
  /**
81961
- * The Search widget may be used to search features in a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html) or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), or [table](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html), or geocode locations with a [Locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html).
81897
+ * The Search widget may be used to search features in a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html) or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), or [table](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html), or geocode locations with a [locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html).
81962
81898
  *
81963
81899
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources)
81964
81900
  */
@@ -83963,12 +83899,6 @@ declare namespace __esri {
83963
83899
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeFillSymbol)
83964
83900
  */
83965
83901
  activeFillSymbol: SimpleFillSymbol;
83966
- /**
83967
- * The [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) displayed when actively creating a new `polyline` graphic using the [`polyline`](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeTool) tool.
83968
- *
83969
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeLineSymbol)
83970
- */
83971
- activeLineSymbol: CIMSymbol;
83972
83902
  /**
83973
83903
  * When creating new graphics (for example after [create()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#create) has been called), this property reflects the create tool being used.
83974
83904
  *
@@ -84128,12 +84058,6 @@ declare namespace __esri {
84128
84058
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeFillSymbol)
84129
84059
  */
84130
84060
  activeFillSymbol?: SimpleFillSymbolProperties;
84131
- /**
84132
- * The [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) displayed when actively creating a new `polyline` graphic using the [`polyline`](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeTool) tool.
84133
- *
84134
- * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeLineSymbol)
84135
- */
84136
- activeLineSymbol?: CIMSymbolProperties;
84137
84061
  /**
84138
84062
  * Default create options set for the SketchViewModel.
84139
84063
  *
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.21/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import r from"../PopupTemplate.js";import{read as t,rasterRendererTypes as o,websceneRasterRendererTypes as i}from"../rasterRenderers.js";import s from"../core/Error.js";import{isSome as a}from"../core/maybe.js";import{MultiOriginJSONMixin as n}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as p}from"../core/promiseUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import{Integer as d}from"../core/accessorSupport/ensureType.js";import"../core/Logger.js";import{enumeration as u}from"../core/accessorSupport/decorators/enumeration.js";import{reader as m}from"../core/accessorSupport/decorators/reader.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import y from"./Layer.js";import{BlendLayer as h}from"./mixins/BlendLayer.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{ImageryTileMixin as v}from"./mixins/ImageryTileMixin.js";import{OperationalLayer as g}from"./mixins/OperationalLayer.js";import{PortalLayer as j}from"./mixins/PortalLayer.js";import{RefreshableLayer as w}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as S}from"./mixins/ScaleRangeLayer.js";import{legendEnabled as b}from"./support/commonProperties.js";import P from"./support/Field.js";import{interpolationKebab as T}from"./support/rasterEnums.js";import I from"./support/rasterDatasets/RasterFactory.js";import{createPopupTemplate as R}from"../support/popupUtils.js";function O(){return{enabled:!this.loaded||"RasterTileServer"===this.raster.datasetFormat&&"Raster"===this.raster.tileType}}let x=class extends(h(S(g(j(f(v(w(n(y))))))))){constructor(...e){super(...e),this.bandIds=null,this.interpolation=null,this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.title=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null}normalizeCtorArgs(e,r){return"string"==typeof e?{url:e,...r}:e}load(e){const r=a(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(p).then((()=>this._openRaster(r)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){var e,r;let t=[new P({name:"Raster.ServicePixelValue",alias:"Pixel Value",domain:null,editable:!1,length:50,type:"string"})];const o=null==(e=this.rasterInfo)||null==(r=e.attributeTable)?void 0:r.fields,i="Raster.";if(o){const e=o.filter((e=>"oid"!==e.type&&"value"!==e.name.toLowerCase())).map((e=>{const r=e.clone();return r.name=i+e.name,r}));t=t.concat(e)}const s=this.rasterInfo.dataType;if(("vector-magdir"===s||"vector-uv"===s)&&a(this.rasterInfo.multidimensionalInfo)){var n;const e=null==(n=this.rasterInfo.multidimensionalInfo.variables[0].unit)?void 0:n.trim(),r="Magnitude"+(e?` (${e})`:"");t.push(new P({name:"Raster.Magnitude",alias:r,domain:null,editable:!1,type:"double"})),t.push(new P({name:"Raster.Direction",alias:"Direction (°)",domain:null,editable:!1,type:"double"}))}return t}set renderer(e){this._set("renderer",e),this.updateRenderer()}readRenderer(e,r,o){const i=r&&r.layerDefinition&&r.layerDefinition.drawingInfo&&r.layerDefinition.drawingInfo.renderer,s=t(i,o)||void 0;if(null!=s)return s}createPopupTemplate(e){return R({fields:this.rasterFields,title:this.title},e)}write(e,r){const{raster:t}=this;if(this.loaded?"RasterTileServer"===t.datasetFormat&&("Raster"===t.tileType||"Map"===t.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))return super.write(e,r);if(r&&r.messages){const e=`${r.origin}/${r.layerContainerType||"operational-layers"}`;r.messages.push(new s("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}async _openRaster(e){this.raster?(this.raster.rasterInfo||await this.raster.open(),this.url=this.raster.url):this.raster=await I.open({url:this.url,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:e});const{rasterInfo:r}=this.raster;if(!r)throw new s("imagery-tile-layer:load","cannot load resources on "+this.url);this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON&&(this._set("version",this.sourceJSON.currentVersion),this._set("copyright",this.sourceJSON.copyrightText)),null==this.title&&(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.watch("customParameters",(e=>this.raster.ioConfig.customFetchParameters=e))}};e([l({type:[d],json:{write:{overridePolicy:O}}})],x.prototype,"bandIds",void 0),e([l({json:{write:{overridePolicy:O}}}),u(T)],x.prototype,"interpolation",void 0),e([l({json:{write:!0}})],x.prototype,"multidimensionalDefinition",void 0),e([l(b)],x.prototype,"legendEnabled",void 0),e([l({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],x.prototype,"isReference",void 0),e([l({type:["show","hide"]})],x.prototype,"listMode",void 0),e([l()],x.prototype,"sourceJSON",void 0),e([l({readOnly:!0})],x.prototype,"version",void 0),e([l()],x.prototype,"title",void 0),e([l({readOnly:!0,json:{read:!1}})],x.prototype,"type",void 0),e([l({type:["ArcGISTiledImageServiceLayer"]})],x.prototype,"operationalLayerType",void 0),e([l({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,r)=>!r.disablePopup},write:{target:"disablePopup",overridePolicy:O,writer(e,r,t){r[t]=!e}}}})],x.prototype,"popupEnabled",void 0),e([l({type:r,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy:O}}})],x.prototype,"popupTemplate",void 0),e([l({readOnly:!0})],x.prototype,"defaultPopupTemplate",null),e([l({readOnly:!0,type:[P]})],x.prototype,"fields",void 0),e([l({readOnly:!0,type:[P]})],x.prototype,"rasterFields",null),e([l({types:o,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:O},origins:{"web-scene":{types:i,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],x.prototype,"renderer",null),e([m("renderer")],x.prototype,"readRenderer",null),x=e([c("esri.layers.ImageryTileLayer")],x);var L=x;export{L as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import r from"../PopupTemplate.js";import{read as t,rasterRendererTypes as o,websceneRasterRendererTypes as i}from"../rasterRenderers.js";import s from"../core/Error.js";import{isSome as a}from"../core/maybe.js";import{MultiOriginJSONMixin as n}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as l}from"../core/promiseUtils.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import{Integer as d}from"../core/accessorSupport/ensureType.js";import"../core/Logger.js";import{enumeration as u}from"../core/accessorSupport/decorators/enumeration.js";import{reader as m}from"../core/accessorSupport/decorators/reader.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import h from"./Layer.js";import{BlendLayer as y}from"./mixins/BlendLayer.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{ImageryTileMixin as v}from"./mixins/ImageryTileMixin.js";import{OperationalLayer as g}from"./mixins/OperationalLayer.js";import{PortalLayer as j}from"./mixins/PortalLayer.js";import{RefreshableLayer as b}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as T}from"./mixins/ScaleRangeLayer.js";import{legendEnabled as w}from"./support/commonProperties.js";import P from"./support/Field.js";import{interpolationKebab as S}from"./support/rasterEnums.js";import I from"./support/rasterDatasets/RasterFactory.js";import{createPopupTemplate as R}from"../support/popupUtils.js";let O=class extends(y(T(g(j(f(v(b(n(h))))))))){constructor(...e){super(...e),this.bandIds=null,this.interpolation=null,this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.title=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null}normalizeCtorArgs(e,r){return"string"==typeof e?{url:e,...r}:e}load(e){const r=a(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(l).then((()=>this._openRaster(r)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){var e,r;let t=[new P({name:"Raster.ServicePixelValue",alias:"Pixel Value",domain:null,editable:!1,length:50,type:"string"})];const o=null==(e=this.rasterInfo)||null==(r=e.attributeTable)?void 0:r.fields,i="Raster.";if(o){const e=o.filter((e=>"oid"!==e.type&&"value"!==e.name.toLowerCase())).map((e=>{const r=e.clone();return r.name=i+e.name,r}));t=t.concat(e)}const s=this.rasterInfo.dataType;if(("vector-magdir"===s||"vector-uv"===s)&&a(this.rasterInfo.multidimensionalInfo)){var n;const e=null==(n=this.rasterInfo.multidimensionalInfo.variables[0].unit)?void 0:n.trim(),r="Magnitude"+(e?` (${e})`:"");t.push(new P({name:"Raster.Magnitude",alias:r,domain:null,editable:!1,type:"double"})),t.push(new P({name:"Raster.Direction",alias:"Direction (°)",domain:null,editable:!1,type:"double"}))}return t}set renderer(e){this._set("renderer",e),this.updateRenderer()}readRenderer(e,r,o){const i=r&&r.layerDefinition&&r.layerDefinition.drawingInfo&&r.layerDefinition.drawingInfo.renderer,s=t(i,o)||void 0;if(null!=s)return s}createPopupTemplate(e){return R({fields:this.rasterFields,title:this.title},e)}write(e,r){const{raster:t}=this;if(this.loaded?"RasterTileServer"===t.datasetFormat&&("Raster"===t.tileType||"Map"===t.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))return super.write(e,r);if(r&&r.messages){const e=`${r.origin}/${r.layerContainerType||"operational-layers"}`;r.messages.push(new s("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}async _openRaster(e){this.raster?(this.raster.rasterInfo||await this.raster.open(),this.url=this.raster.url):this.raster=await I.open({url:this.url,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:e});const{rasterInfo:r}=this.raster;if(!r)throw new s("imagery-tile-layer:load","cannot load resources on "+this.url);this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON&&(this._set("version",this.sourceJSON.currentVersion),this._set("copyright",this.sourceJSON.copyrightText)),null==this.title&&(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.watch("customParameters",(e=>this.raster.ioConfig.customFetchParameters=e))}};e([p({type:[d],json:{write:{overridePolicy(){var e;return{enabled:!this.loaded||"Raster"===this.raster.tileType||"0,1,2"!==(null==(e=this.bandIds)?void 0:e.join(","))}}}}})],O.prototype,"bandIds",void 0),e([p({json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"bilinear"!==this.interpolation}}}}}),u(S)],O.prototype,"interpolation",void 0),e([p({json:{write:!0}})],O.prototype,"multidimensionalDefinition",void 0),e([p(w)],O.prototype,"legendEnabled",void 0),e([p({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],O.prototype,"isReference",void 0),e([p({type:["show","hide"]})],O.prototype,"listMode",void 0),e([p()],O.prototype,"sourceJSON",void 0),e([p({readOnly:!0})],O.prototype,"version",void 0),e([p()],O.prototype,"title",void 0),e([p({readOnly:!0,json:{read:!1}})],O.prototype,"type",void 0),e([p({type:["ArcGISTiledImageServiceLayer"]})],O.prototype,"operationalLayerType",void 0),e([p({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,r)=>!r.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,r,t){r[t]=!e}}}})],O.prototype,"popupEnabled",void 0),e([p({type:r,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],O.prototype,"popupTemplate",void 0),e([p({readOnly:!0})],O.prototype,"defaultPopupTemplate",null),e([p({readOnly:!0,type:[P]})],O.prototype,"fields",void 0),e([p({readOnly:!0,type:[P]})],O.prototype,"rasterFields",null),e([p({types:o,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(){var e;const r="raster-stretch"===(null==(e=this.renderer)?void 0:e.type)&&"none"===this.renderer.stretchType&&!this.renderer.useGamma;return{enabled:!this.loaded||"Raster"===this.raster.tileType||!r}}},origins:{"web-scene":{types:i,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],O.prototype,"renderer",null),e([m("renderer")],O.prototype,"readRenderer",null),O=e([c("esri.layers.ImageryTileLayer")],O);var x=O;export{x as default};