@arcgis/core 4.30.0-next.20240612 → 4.30.0-next.20240613
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.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/6ae4a5e81fd398d2ebca.js +1 -0
- package/assets/esri/themes/base/widgets/_FeatureForm.scss +0 -4
- package/assets/esri/themes/base/widgets/_SnappingControls.scss +5 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/ShadowHighlight.glsl.js +4 -29
- package/chunks/Viewshed.glsl.js +145 -84
- package/interfaces.d.ts +208 -47
- package/layers/support/featureLayerUtils.js +1 -1
- package/layers/support/wmsUtils.js +1 -1
- package/package.json +1 -1
- package/rest/featureService/FeatureService.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/NormalFromDepth.glsl.js +23 -0
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ViewshedTechniqueConfiguration.js +5 -0
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/css.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Legend/styles/support/relationshipUtils.js +1 -1
- package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
- package/widgets/VersionManagement/VersionManagementViewModel.js +1 -1
- package/widgets/support/SnappingControls/SnappingControlsViewModel.js +1 -1
- package/widgets/support/SnappingControls/SnappingListItem.js +1 -1
- package/widgets/support/SnappingControls/snappingLayerListUtils.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/assets/esri/core/workers/chunks/17e8791bad1e2c3a0bb1.js +0 -1
package/interfaces.d.ts
CHANGED
|
@@ -952,13 +952,13 @@ declare namespace __esri {
|
|
|
952
952
|
|
|
953
953
|
export class Viewshed {
|
|
954
954
|
/**
|
|
955
|
-
* The distance from the observer
|
|
955
|
+
* The maximum distance from the observer in which to perform the viewshed analysis (in meters).
|
|
956
956
|
*
|
|
957
957
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-Viewshed.html#farDistance)
|
|
958
958
|
*/
|
|
959
959
|
farDistance: number;
|
|
960
960
|
/**
|
|
961
|
-
* The heading
|
|
961
|
+
* The compass heading of the observer's view direction (in degrees).
|
|
962
962
|
*
|
|
963
963
|
* @default 0
|
|
964
964
|
*
|
|
@@ -966,7 +966,7 @@ declare namespace __esri {
|
|
|
966
966
|
*/
|
|
967
967
|
heading: number;
|
|
968
968
|
/**
|
|
969
|
-
* The horizontal field
|
|
969
|
+
* The horizontal field of view (FOV) angle defines how wide scope is analysed (in degrees).
|
|
970
970
|
*
|
|
971
971
|
* @default 45
|
|
972
972
|
*
|
|
@@ -974,13 +974,13 @@ declare namespace __esri {
|
|
|
974
974
|
*/
|
|
975
975
|
horizontalFieldOfView: number;
|
|
976
976
|
/**
|
|
977
|
-
* A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) specifying the position
|
|
977
|
+
* A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) specifying the position the viewshed is calculated from.
|
|
978
978
|
*
|
|
979
979
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-Viewshed.html#observer)
|
|
980
980
|
*/
|
|
981
981
|
observer: Point;
|
|
982
982
|
/**
|
|
983
|
-
* The tilt
|
|
983
|
+
* The tilt of the observer's view direction (in degrees).
|
|
984
984
|
*
|
|
985
985
|
* @default 90
|
|
986
986
|
*
|
|
@@ -988,7 +988,7 @@ declare namespace __esri {
|
|
|
988
988
|
*/
|
|
989
989
|
tilt: number;
|
|
990
990
|
/**
|
|
991
|
-
* The vertical field
|
|
991
|
+
* The vertical field of view (FOV) angle defines how tall scope is analysed (in degrees).
|
|
992
992
|
*
|
|
993
993
|
* @default 45
|
|
994
994
|
*
|
|
@@ -996,7 +996,7 @@ declare namespace __esri {
|
|
|
996
996
|
*/
|
|
997
997
|
verticalFieldOfView: number;
|
|
998
998
|
/**
|
|
999
|
-
*
|
|
999
|
+
* Viewshed defines the geometry for a viewshed analysis.
|
|
1000
1000
|
*
|
|
1001
1001
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-Viewshed.html)
|
|
1002
1002
|
*/
|
|
@@ -1005,13 +1005,13 @@ declare namespace __esri {
|
|
|
1005
1005
|
|
|
1006
1006
|
interface ViewshedProperties {
|
|
1007
1007
|
/**
|
|
1008
|
-
* The distance from the observer
|
|
1008
|
+
* The maximum distance from the observer in which to perform the viewshed analysis (in meters).
|
|
1009
1009
|
*
|
|
1010
1010
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-Viewshed.html#farDistance)
|
|
1011
1011
|
*/
|
|
1012
1012
|
farDistance?: number;
|
|
1013
1013
|
/**
|
|
1014
|
-
* The heading
|
|
1014
|
+
* The compass heading of the observer's view direction (in degrees).
|
|
1015
1015
|
*
|
|
1016
1016
|
* @default 0
|
|
1017
1017
|
*
|
|
@@ -1019,7 +1019,7 @@ declare namespace __esri {
|
|
|
1019
1019
|
*/
|
|
1020
1020
|
heading?: number;
|
|
1021
1021
|
/**
|
|
1022
|
-
* The horizontal field
|
|
1022
|
+
* The horizontal field of view (FOV) angle defines how wide scope is analysed (in degrees).
|
|
1023
1023
|
*
|
|
1024
1024
|
* @default 45
|
|
1025
1025
|
*
|
|
@@ -1027,13 +1027,13 @@ declare namespace __esri {
|
|
|
1027
1027
|
*/
|
|
1028
1028
|
horizontalFieldOfView?: number;
|
|
1029
1029
|
/**
|
|
1030
|
-
* A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) specifying the position
|
|
1030
|
+
* A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) specifying the position the viewshed is calculated from.
|
|
1031
1031
|
*
|
|
1032
1032
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-Viewshed.html#observer)
|
|
1033
1033
|
*/
|
|
1034
1034
|
observer?: PointProperties;
|
|
1035
1035
|
/**
|
|
1036
|
-
* The tilt
|
|
1036
|
+
* The tilt of the observer's view direction (in degrees).
|
|
1037
1037
|
*
|
|
1038
1038
|
* @default 90
|
|
1039
1039
|
*
|
|
@@ -1041,7 +1041,7 @@ declare namespace __esri {
|
|
|
1041
1041
|
*/
|
|
1042
1042
|
tilt?: number;
|
|
1043
1043
|
/**
|
|
1044
|
-
* The vertical field
|
|
1044
|
+
* The vertical field of view (FOV) angle defines how tall scope is analysed (in degrees).
|
|
1045
1045
|
*
|
|
1046
1046
|
* @default 45
|
|
1047
1047
|
*
|
|
@@ -1062,7 +1062,7 @@ declare namespace __esri {
|
|
|
1062
1062
|
*/
|
|
1063
1063
|
viewsheds: Collection<Viewshed>;
|
|
1064
1064
|
/**
|
|
1065
|
-
*
|
|
1065
|
+
* ViewshedAnalysis enables the creation and display of viewshed and view dome type of visibility analysis in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
|
|
1066
1066
|
*
|
|
1067
1067
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ViewshedAnalysis.html)
|
|
1068
1068
|
*/
|
|
@@ -40273,7 +40273,7 @@ declare namespace __esri {
|
|
|
40273
40273
|
*
|
|
40274
40274
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TopologyValidationJobInfo.html#waitForJobCompletion)
|
|
40275
40275
|
*/
|
|
40276
|
-
interval?:
|
|
40276
|
+
interval?: number;
|
|
40277
40277
|
/**
|
|
40278
40278
|
* [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) allows for cancelable asynchronous job.
|
|
40279
40279
|
*
|
|
@@ -40285,7 +40285,7 @@ declare namespace __esri {
|
|
|
40285
40285
|
*
|
|
40286
40286
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TopologyValidationJobInfo.html#waitForJobCompletion)
|
|
40287
40287
|
*/
|
|
40288
|
-
statusCallback?:
|
|
40288
|
+
statusCallback?: Function;
|
|
40289
40289
|
}
|
|
40290
40290
|
|
|
40291
40291
|
export class TraceConfiguration {
|
|
@@ -50182,6 +50182,7 @@ declare namespace __esri {
|
|
|
50182
50182
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-featureService-FeatureService.html#effectiveCapabilities)
|
|
50183
50183
|
*/
|
|
50184
50184
|
readonly effectiveCapabilities: FeatureServiceCapabilities;
|
|
50185
|
+
layerInfos: void;
|
|
50185
50186
|
/**
|
|
50186
50187
|
* Indicates whether the instance has loaded.
|
|
50187
50188
|
*
|
|
@@ -50206,6 +50207,7 @@ declare namespace __esri {
|
|
|
50206
50207
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-featureService-FeatureService.html#loadStatus)
|
|
50207
50208
|
*/
|
|
50208
50209
|
readonly loadStatus: "not-loaded" | "loading" | "failed" | "loaded";
|
|
50210
|
+
tableInfos: void;
|
|
50209
50211
|
/**
|
|
50210
50212
|
* The absolute URL of the REST endpoint for the feature service.
|
|
50211
50213
|
*
|
|
@@ -96142,6 +96144,22 @@ declare namespace __esri {
|
|
|
96142
96144
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#basemapTitle)
|
|
96143
96145
|
*/
|
|
96144
96146
|
basemapTitle: string;
|
|
96147
|
+
/**
|
|
96148
|
+
* The [CatalogLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CatalogLayerList.html) widget instance that displays a catalog layer's [dynamic group layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html#dynamicGroupLayer).
|
|
96149
|
+
*
|
|
96150
|
+
* @default null
|
|
96151
|
+
*
|
|
96152
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogLayerList)
|
|
96153
|
+
*/
|
|
96154
|
+
readonly catalogLayerList: CatalogLayerList;
|
|
96155
|
+
/**
|
|
96156
|
+
* [CatalogLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html) specific properties.
|
|
96157
|
+
*
|
|
96158
|
+
* @default null
|
|
96159
|
+
*
|
|
96160
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96161
|
+
*/
|
|
96162
|
+
catalogOptions: BasemapLayerListCatalogOptions;
|
|
96145
96163
|
/**
|
|
96146
96164
|
* Indicates whether the widget is collapsed.
|
|
96147
96165
|
*
|
|
@@ -96208,6 +96226,14 @@ declare namespace __esri {
|
|
|
96208
96226
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#multipleSelectionEnabled)
|
|
96209
96227
|
*/
|
|
96210
96228
|
multipleSelectionEnabled: boolean;
|
|
96229
|
+
/**
|
|
96230
|
+
* This property manages the visibility of the [catalogLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogLayerList).
|
|
96231
|
+
*
|
|
96232
|
+
* @default null
|
|
96233
|
+
*
|
|
96234
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#openCatalogItem)
|
|
96235
|
+
*/
|
|
96236
|
+
openCatalogItem: ListItem;
|
|
96211
96237
|
/**
|
|
96212
96238
|
* The value of the filter input text string if [visibleElements.filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#visibleElements) is true.
|
|
96213
96239
|
*
|
|
@@ -96304,6 +96330,14 @@ declare namespace __esri {
|
|
|
96304
96330
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#basemapTitle)
|
|
96305
96331
|
*/
|
|
96306
96332
|
basemapTitle?: string;
|
|
96333
|
+
/**
|
|
96334
|
+
* [CatalogLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html) specific properties.
|
|
96335
|
+
*
|
|
96336
|
+
* @default null
|
|
96337
|
+
*
|
|
96338
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96339
|
+
*/
|
|
96340
|
+
catalogOptions?: BasemapLayerListCatalogOptions;
|
|
96307
96341
|
/**
|
|
96308
96342
|
* Indicates whether the widget is collapsed.
|
|
96309
96343
|
*
|
|
@@ -96370,6 +96404,14 @@ declare namespace __esri {
|
|
|
96370
96404
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#multipleSelectionEnabled)
|
|
96371
96405
|
*/
|
|
96372
96406
|
multipleSelectionEnabled?: boolean;
|
|
96407
|
+
/**
|
|
96408
|
+
* This property manages the visibility of the [catalogLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogLayerList).
|
|
96409
|
+
*
|
|
96410
|
+
* @default null
|
|
96411
|
+
*
|
|
96412
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#openCatalogItem)
|
|
96413
|
+
*/
|
|
96414
|
+
openCatalogItem?: ListItemProperties;
|
|
96373
96415
|
/**
|
|
96374
96416
|
* The value of the filter input text string if [visibleElements.filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#visibleElements) is true.
|
|
96375
96417
|
*
|
|
@@ -96544,6 +96586,84 @@ declare namespace __esri {
|
|
|
96544
96586
|
view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
|
|
96545
96587
|
}
|
|
96546
96588
|
|
|
96589
|
+
export interface BasemapLayerListCatalogOptions {
|
|
96590
|
+
/**
|
|
96591
|
+
* Placeholder text used in the filter input box.
|
|
96592
|
+
*
|
|
96593
|
+
* @default ""
|
|
96594
|
+
*
|
|
96595
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96596
|
+
*/
|
|
96597
|
+
filterPlaceholder?: string;
|
|
96598
|
+
/**
|
|
96599
|
+
* A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) is created.
|
|
96600
|
+
*
|
|
96601
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96602
|
+
*/
|
|
96603
|
+
listItemCreatedFunction?: CatalogLayerListListItemCreatedHandler;
|
|
96604
|
+
/**
|
|
96605
|
+
* The minimum number of list items required to display the filter input box.
|
|
96606
|
+
*
|
|
96607
|
+
* @default 10
|
|
96608
|
+
*
|
|
96609
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96610
|
+
*/
|
|
96611
|
+
minFilterItems?: number;
|
|
96612
|
+
/**
|
|
96613
|
+
* The selection mode for the catalog layer list.
|
|
96614
|
+
*
|
|
96615
|
+
* @default "none"
|
|
96616
|
+
*
|
|
96617
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96618
|
+
*/
|
|
96619
|
+
selectionMode?: string;
|
|
96620
|
+
/**
|
|
96621
|
+
* Determines the icons used to indicate visibility.
|
|
96622
|
+
*
|
|
96623
|
+
* @default "default"
|
|
96624
|
+
*
|
|
96625
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96626
|
+
*/
|
|
96627
|
+
visibilityAppearance?: string;
|
|
96628
|
+
/**
|
|
96629
|
+
* The visible elements that are displayed within the catalog layer list.
|
|
96630
|
+
*
|
|
96631
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96632
|
+
*/
|
|
96633
|
+
visibleElements?: BasemapLayerListCatalogOptionsVisibleElements;
|
|
96634
|
+
}
|
|
96635
|
+
|
|
96636
|
+
export interface BasemapLayerListCatalogOptionsVisibleElements {
|
|
96637
|
+
/**
|
|
96638
|
+
* Indicates whether to display errors in the catalog layer list.
|
|
96639
|
+
*
|
|
96640
|
+
* @default true
|
|
96641
|
+
*
|
|
96642
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96643
|
+
*/
|
|
96644
|
+
errors?: boolean;
|
|
96645
|
+
/**
|
|
96646
|
+
* Indicates whether to display the filter input box in the catalog layer list.
|
|
96647
|
+
*
|
|
96648
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96649
|
+
*/
|
|
96650
|
+
filter?: boolean;
|
|
96651
|
+
/**
|
|
96652
|
+
* Indicates whether to display status indicators in the catalog layer list.
|
|
96653
|
+
*
|
|
96654
|
+
* @default true
|
|
96655
|
+
*
|
|
96656
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96657
|
+
*/
|
|
96658
|
+
statusIndicators?: boolean;
|
|
96659
|
+
/**
|
|
96660
|
+
* Indicates whether temporary layer indicators will be displayed for layers with [layer.persistenceEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#persistenceEnabled) set to `false`.
|
|
96661
|
+
*
|
|
96662
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#catalogOptions)
|
|
96663
|
+
*/
|
|
96664
|
+
temporaryLayerIndicators?: boolean;
|
|
96665
|
+
}
|
|
96666
|
+
|
|
96547
96667
|
export type ListItemCreatedHandler = (event: any) => void;
|
|
96548
96668
|
|
|
96549
96669
|
export interface BasemapLayerListTriggerActionEvent {
|
|
@@ -105164,7 +105284,7 @@ declare namespace __esri {
|
|
|
105164
105284
|
*/
|
|
105165
105285
|
disabled: boolean;
|
|
105166
105286
|
/**
|
|
105167
|
-
* Indicates whether editing is enabled on the data within the feature table.
|
|
105287
|
+
* Indicates whether [editing](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#editing-in-featuretable) is enabled on the data within the feature table.
|
|
105168
105288
|
*
|
|
105169
105289
|
* @default false
|
|
105170
105290
|
*
|
|
@@ -105227,7 +105347,16 @@ declare namespace __esri {
|
|
|
105227
105347
|
*
|
|
105228
105348
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#layers)
|
|
105229
105349
|
*/
|
|
105230
|
-
readonly layers:
|
|
105350
|
+
readonly layers: (
|
|
105351
|
+
| CatalogFootprintLayer
|
|
105352
|
+
| CSVLayer
|
|
105353
|
+
| FeatureLayer
|
|
105354
|
+
| GeoJSONLayer
|
|
105355
|
+
| ImageryLayer
|
|
105356
|
+
| KnowledgeGraphSublayer
|
|
105357
|
+
| SceneLayer
|
|
105358
|
+
| WFSLayer
|
|
105359
|
+
)[];
|
|
105231
105360
|
/**
|
|
105232
105361
|
* The [layer view](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) associated with the table's [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#layer).
|
|
105233
105362
|
*
|
|
@@ -105303,7 +105432,7 @@ declare namespace __esri {
|
|
|
105303
105432
|
*/
|
|
105304
105433
|
returnZEnabled: boolean;
|
|
105305
105434
|
/**
|
|
105306
|
-
* This property accepts and returns a collection of feature object id's and is used to access and control which rows
|
|
105435
|
+
* This property accepts and returns a collection of feature object id's and is used to access and control which rows display a darker, ie.
|
|
105307
105436
|
*
|
|
105308
105437
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#rowHighlightIds)
|
|
105309
105438
|
*/
|
|
@@ -105367,7 +105496,7 @@ declare namespace __esri {
|
|
|
105367
105496
|
*/
|
|
105368
105497
|
visibleElements: FeatureTableVisibleElements;
|
|
105369
105498
|
/**
|
|
105370
|
-
*
|
|
105499
|
+
* The FeatureTable's functionality is described in the following sections:
|
|
105371
105500
|
*
|
|
105372
105501
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html)
|
|
105373
105502
|
*/
|
|
@@ -105506,7 +105635,7 @@ declare namespace __esri {
|
|
|
105506
105635
|
*/
|
|
105507
105636
|
disabled?: boolean;
|
|
105508
105637
|
/**
|
|
105509
|
-
* Indicates whether editing is enabled on the data within the feature table.
|
|
105638
|
+
* Indicates whether [editing](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#editing-in-featuretable) is enabled on the data within the feature table.
|
|
105510
105639
|
*
|
|
105511
105640
|
* @default false
|
|
105512
105641
|
*
|
|
@@ -105633,7 +105762,7 @@ declare namespace __esri {
|
|
|
105633
105762
|
*/
|
|
105634
105763
|
returnZEnabled?: boolean;
|
|
105635
105764
|
/**
|
|
105636
|
-
* This property accepts and returns a collection of feature object id's and is used to access and control which rows
|
|
105765
|
+
* This property accepts and returns a collection of feature object id's and is used to access and control which rows display a darker, ie.
|
|
105637
105766
|
*
|
|
105638
105767
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#rowHighlightIds)
|
|
105639
105768
|
*/
|
|
@@ -105879,7 +106008,7 @@ declare namespace __esri {
|
|
|
105879
106008
|
*/
|
|
105880
106009
|
highlightEnabled: boolean;
|
|
105881
106010
|
/**
|
|
105882
|
-
* This property accepts and returns a collection of feature
|
|
106011
|
+
* This property accepts and returns a collection of feature object id's.
|
|
105883
106012
|
*
|
|
105884
106013
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#highlightIds)
|
|
105885
106014
|
*/
|
|
@@ -105958,7 +106087,7 @@ declare namespace __esri {
|
|
|
105958
106087
|
*/
|
|
105959
106088
|
returnZEnabled: boolean;
|
|
105960
106089
|
/**
|
|
105961
|
-
* A collection of feature
|
|
106090
|
+
* A collection of feature object id's.
|
|
105962
106091
|
*
|
|
105963
106092
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#rowHighlightIds)
|
|
105964
106093
|
*/
|
|
@@ -106038,7 +106167,7 @@ declare namespace __esri {
|
|
|
106038
106167
|
*/
|
|
106039
106168
|
getObjectIdIndex(objectId: number): number;
|
|
106040
106169
|
/**
|
|
106041
|
-
* Returns a field value given the specified feature `
|
|
106170
|
+
* Returns a field value given the specified feature `object` and an associated `fieldName`.
|
|
106042
106171
|
*
|
|
106043
106172
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#getValue)
|
|
106044
106173
|
*/
|
|
@@ -106050,7 +106179,7 @@ declare namespace __esri {
|
|
|
106050
106179
|
*/
|
|
106051
106180
|
refresh(): void;
|
|
106052
106181
|
/**
|
|
106053
|
-
* Re-
|
|
106182
|
+
* Re-renders the cell's content.
|
|
106054
106183
|
*
|
|
106055
106184
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#refreshCellContent)
|
|
106056
106185
|
*/
|
|
@@ -106143,7 +106272,7 @@ declare namespace __esri {
|
|
|
106143
106272
|
*/
|
|
106144
106273
|
highlightEnabled?: boolean;
|
|
106145
106274
|
/**
|
|
106146
|
-
* This property accepts and returns a collection of feature
|
|
106275
|
+
* This property accepts and returns a collection of feature object id's.
|
|
106147
106276
|
*
|
|
106148
106277
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#highlightIds)
|
|
106149
106278
|
*/
|
|
@@ -106216,7 +106345,7 @@ declare namespace __esri {
|
|
|
106216
106345
|
*/
|
|
106217
106346
|
returnZEnabled?: boolean;
|
|
106218
106347
|
/**
|
|
106219
|
-
* A collection of feature
|
|
106348
|
+
* A collection of feature object id's.
|
|
106220
106349
|
*
|
|
106221
106350
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#rowHighlightIds)
|
|
106222
106351
|
*/
|
|
@@ -106575,7 +106704,7 @@ declare namespace __esri {
|
|
|
106575
106704
|
*/
|
|
106576
106705
|
readonly frozenToEnd: boolean;
|
|
106577
106706
|
/**
|
|
106578
|
-
* The string value indicating the [icon](https://developers.arcgis.com/calcite-design-system/icons/) displayed
|
|
106707
|
+
* The string value indicating the [icon](https://developers.arcgis.com/calcite-design-system/icons/) displayed in the header cell of the column.
|
|
106579
106708
|
*
|
|
106580
106709
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#icon)
|
|
106581
106710
|
*/
|
|
@@ -106607,7 +106736,7 @@ declare namespace __esri {
|
|
|
106607
106736
|
*/
|
|
106608
106737
|
readonly menu: HTMLElement;
|
|
106609
106738
|
/**
|
|
106610
|
-
* Configuration options for the column menu.
|
|
106739
|
+
* Configuration options for the column's menu.
|
|
106611
106740
|
*
|
|
106612
106741
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#menuConfig)
|
|
106613
106742
|
*/
|
|
@@ -106754,7 +106883,7 @@ declare namespace __esri {
|
|
|
106754
106883
|
*/
|
|
106755
106884
|
frozenToEnd?: boolean;
|
|
106756
106885
|
/**
|
|
106757
|
-
* The string value indicating the [icon](https://developers.arcgis.com/calcite-design-system/icons/) displayed
|
|
106886
|
+
* The string value indicating the [icon](https://developers.arcgis.com/calcite-design-system/icons/) displayed in the header cell of the column.
|
|
106758
106887
|
*
|
|
106759
106888
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#icon)
|
|
106760
106889
|
*/
|
|
@@ -106839,7 +106968,7 @@ declare namespace __esri {
|
|
|
106839
106968
|
*/
|
|
106840
106969
|
open?: boolean;
|
|
106841
106970
|
/**
|
|
106842
|
-
* The string value indicating the [icon](https://developers.arcgis.com/calcite-design-system/icons/) displayed
|
|
106971
|
+
* The string value indicating the [icon](https://developers.arcgis.com/calcite-design-system/icons/) displayed in the header cell of the column.
|
|
106843
106972
|
*
|
|
106844
106973
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#ColumnTableMenuConfig)
|
|
106845
106974
|
*/
|
|
@@ -107189,7 +107318,7 @@ declare namespace __esri {
|
|
|
107189
107318
|
*/
|
|
107190
107319
|
readonly resizable: number;
|
|
107191
107320
|
/**
|
|
107192
|
-
* The text alignment of the
|
|
107321
|
+
* The text alignment of the relationship column.
|
|
107193
107322
|
*
|
|
107194
107323
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-RelationshipColumn.html#textAlign)
|
|
107195
107324
|
*/
|
|
@@ -107419,7 +107548,7 @@ declare namespace __esri {
|
|
|
107419
107548
|
*/
|
|
107420
107549
|
width: number | string;
|
|
107421
107550
|
/**
|
|
107422
|
-
* The base class for all
|
|
107551
|
+
* The base class for all column templates used by the [tableTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html) within the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget.
|
|
107423
107552
|
*
|
|
107424
107553
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html)
|
|
107425
107554
|
*/
|
|
@@ -109545,6 +109674,22 @@ declare namespace __esri {
|
|
|
109545
109674
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#multipleSelectionEnabled)
|
|
109546
109675
|
*/
|
|
109547
109676
|
multipleSelectionEnabled: boolean;
|
|
109677
|
+
/**
|
|
109678
|
+
* This property manages the visibility of the [catalogLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#catalogLayerList).
|
|
109679
|
+
*
|
|
109680
|
+
* @default null
|
|
109681
|
+
*
|
|
109682
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#openCatalogItem)
|
|
109683
|
+
*/
|
|
109684
|
+
openCatalogItem: ListItem;
|
|
109685
|
+
/**
|
|
109686
|
+
* This property manages the visibility of the [tableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#tableList).
|
|
109687
|
+
*
|
|
109688
|
+
* @default null
|
|
109689
|
+
*
|
|
109690
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#openTableListItem)
|
|
109691
|
+
*/
|
|
109692
|
+
openTableListItem: ListItem;
|
|
109548
109693
|
/**
|
|
109549
109694
|
* A collection of [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing operational layers.
|
|
109550
109695
|
*
|
|
@@ -109715,6 +109860,22 @@ declare namespace __esri {
|
|
|
109715
109860
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#multipleSelectionEnabled)
|
|
109716
109861
|
*/
|
|
109717
109862
|
multipleSelectionEnabled?: boolean;
|
|
109863
|
+
/**
|
|
109864
|
+
* This property manages the visibility of the [catalogLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#catalogLayerList).
|
|
109865
|
+
*
|
|
109866
|
+
* @default null
|
|
109867
|
+
*
|
|
109868
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#openCatalogItem)
|
|
109869
|
+
*/
|
|
109870
|
+
openCatalogItem?: ListItemProperties;
|
|
109871
|
+
/**
|
|
109872
|
+
* This property manages the visibility of the [tableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#tableList).
|
|
109873
|
+
*
|
|
109874
|
+
* @default null
|
|
109875
|
+
*
|
|
109876
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#openTableListItem)
|
|
109877
|
+
*/
|
|
109878
|
+
openTableListItem?: ListItemProperties;
|
|
109718
109879
|
/**
|
|
109719
109880
|
* A collection of selected [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing operational layers selected by the user.
|
|
109720
109881
|
*
|
|
@@ -110304,7 +110465,7 @@ declare namespace __esri {
|
|
|
110304
110465
|
*/
|
|
110305
110466
|
filterPlaceholder?: string;
|
|
110306
110467
|
/**
|
|
110307
|
-
* A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-
|
|
110468
|
+
* A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) is created.
|
|
110308
110469
|
*
|
|
110309
110470
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#catalogOptions)
|
|
110310
110471
|
*/
|
|
@@ -110318,7 +110479,7 @@ declare namespace __esri {
|
|
|
110318
110479
|
*/
|
|
110319
110480
|
minFilterItems?: number;
|
|
110320
110481
|
/**
|
|
110321
|
-
* The selection mode for the catalog layer list
|
|
110482
|
+
* The selection mode for the catalog layer list.
|
|
110322
110483
|
*
|
|
110323
110484
|
* @default "none"
|
|
110324
110485
|
*
|
|
@@ -110334,16 +110495,16 @@ declare namespace __esri {
|
|
|
110334
110495
|
*/
|
|
110335
110496
|
visibilityAppearance?: string;
|
|
110336
110497
|
/**
|
|
110337
|
-
* The visible elements that are displayed within the
|
|
110498
|
+
* The visible elements that are displayed within the catalog layer list.
|
|
110338
110499
|
*
|
|
110339
110500
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#catalogOptions)
|
|
110340
110501
|
*/
|
|
110341
|
-
visibleElements
|
|
110502
|
+
visibleElements?: LayerListCatalogOptionsVisibleElements;
|
|
110342
110503
|
}
|
|
110343
110504
|
|
|
110344
110505
|
export interface LayerListCatalogOptionsVisibleElements {
|
|
110345
110506
|
/**
|
|
110346
|
-
* Indicates whether to display errors in the
|
|
110507
|
+
* Indicates whether to display errors in the catalog layer list.
|
|
110347
110508
|
*
|
|
110348
110509
|
* @default true
|
|
110349
110510
|
*
|
|
@@ -110351,13 +110512,13 @@ declare namespace __esri {
|
|
|
110351
110512
|
*/
|
|
110352
110513
|
errors?: boolean;
|
|
110353
110514
|
/**
|
|
110354
|
-
* Indicates whether to display the filter input box in the
|
|
110515
|
+
* Indicates whether to display the filter input box in the catalog layer list.
|
|
110355
110516
|
*
|
|
110356
110517
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#catalogOptions)
|
|
110357
110518
|
*/
|
|
110358
110519
|
filter?: boolean;
|
|
110359
110520
|
/**
|
|
110360
|
-
* Indicates whether to display status indicators in the
|
|
110521
|
+
* Indicates whether to display status indicators in the catalog layer list.
|
|
110361
110522
|
*
|
|
110362
110523
|
* @default true
|
|
110363
110524
|
*
|
|
@@ -110396,7 +110557,7 @@ declare namespace __esri {
|
|
|
110396
110557
|
*/
|
|
110397
110558
|
minFilterItems?: number;
|
|
110398
110559
|
/**
|
|
110399
|
-
* The selection mode for the
|
|
110560
|
+
* The selection mode for the table list.
|
|
110400
110561
|
*
|
|
110401
110562
|
* @default "none"
|
|
110402
110563
|
*
|
|
@@ -110404,16 +110565,16 @@ declare namespace __esri {
|
|
|
110404
110565
|
*/
|
|
110405
110566
|
selectionMode?: string;
|
|
110406
110567
|
/**
|
|
110407
|
-
* The visible elements that are displayed within the
|
|
110568
|
+
* The visible elements that are displayed within the table list.
|
|
110408
110569
|
*
|
|
110409
110570
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#knowledgeGraphOptions)
|
|
110410
110571
|
*/
|
|
110411
|
-
visibleElements
|
|
110572
|
+
visibleElements?: LayerListKnowledgeGraphOptionsVisibleElements;
|
|
110412
110573
|
}
|
|
110413
110574
|
|
|
110414
110575
|
export interface LayerListKnowledgeGraphOptionsVisibleElements {
|
|
110415
110576
|
/**
|
|
110416
|
-
* Indicates whether to display errors in the
|
|
110577
|
+
* Indicates whether to display errors in the table list.
|
|
110417
110578
|
*
|
|
110418
110579
|
* @default true
|
|
110419
110580
|
*
|
|
@@ -110421,13 +110582,13 @@ declare namespace __esri {
|
|
|
110421
110582
|
*/
|
|
110422
110583
|
errors?: boolean;
|
|
110423
110584
|
/**
|
|
110424
|
-
* Indicates whether to display the filter input box in the
|
|
110585
|
+
* Indicates whether to display the filter input box in the table list.
|
|
110425
110586
|
*
|
|
110426
110587
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#knowledgeGraphOptions)
|
|
110427
110588
|
*/
|
|
110428
110589
|
filter?: boolean;
|
|
110429
110590
|
/**
|
|
110430
|
-
* Indicates whether to display status indicators in the
|
|
110591
|
+
* Indicates whether to display status indicators in the table list.
|
|
110431
110592
|
*
|
|
110432
110593
|
* @default true
|
|
110433
110594
|
*
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{id as t}from"../../kernel.js";import{symbolTypesRenderer as e}from"../../symbols.js";import{resultOrAbort as r}from"../../core/asyncUtils.js";import n from"../../core/Error.js";import{JSONMap as o}from"../../core/jsonMap.js";import{parseWhereClause as a}from"../../core/sql.js";import{createTypeReader as s}from"../../core/accessorSupport/extensions/serializableProperty/reader.js";import{queryAllJSON as i}from"./featureQueryAll.js";import{getOwningPortalUrl as u}from"./layerUtils.js";import l from"../../renderers/SimpleRenderer.js";import c from"../../renderers/UniqueValueRenderer.js";import p from"../../rest/support/AttachmentQuery.js";import d from"../../rest/support/Query.js";import f from"../../rest/support/RelationshipQuery.js";const y=new o({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function m(t,e,r,o){const a=await L(t);if(await h(t,e,o),!a.addAttachment)throw new n(o,"Layer source does not support addAttachment capability");return a.addAttachment(e,r)}function h(t,e,r){const{attributes:o}=e,{objectIdField:a}=t;return t.capabilities?.data?.supportsAttachment?e?o?a&&o[a]?Promise.resolve():Promise.reject(new n(r,`feature is missing the identifying attribute ${a}`)):Promise.reject(new n(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new n(r,"A feature is required to add/delete/update attachments")):Promise.reject(new n(r,"this layer doesn't support attachments"))}async function w(t,e,r,o,a){const s=await L(t);if(await h(t,e,a),!s.updateAttachment)throw new n(a,"Layer source does not support updateAttachment capability");return s.updateAttachment(e,r,o)}async function b(t,e,r){const{applyEdits:n}=await import("../graphics/editingSupport.js"),o=await t.load();let a=r;return"feature"===o.type&&o.infoFor3D&&null!=e.deleteFeatures&&null!=o.globalIdField&&(a={...a,globalIdToObjectId:await J(o,e.deleteFeatures,o.globalIdField)}),n(o,o.source,e,r)}async function g(t,e,r){const{uploadAssets:n}=await import("../graphics/editingSupport.js"),o=await t.load();return n(o,o.source,e,r)}async function j(t,e,r,o){const a=await L(t);if(await h(t,e,o),!a.deleteAttachments)throw new n(o,"Layer source does not support deleteAttachments capability");return a.deleteAttachments(e,r)}async function I(t,e,r){const o=(await t.load({signal:e?.signal})).source;if(!o.fetchRecomputedExtents)throw new n(r,"Layer source does not support fetchUpdates capability");return o.fetchRecomputedExtents(e)}async function q(t,e,r,o){e=p.from(e),await t.load();const a=t.source,s=t.capabilities;if(!s?.data?.supportsAttachment)throw new n(o,"this layer doesn't support attachments");const{attachmentTypes:i,objectIds:u,globalIds:l,num:c,size:d,start:f,where:y}=e;if(!s?.operations?.supportsQueryAttachments){if(i?.length>0||l?.length>0||d?.length>0||c||f||y)throw new n(o,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",e)}if(!(u?.length||l?.length||y))throw new n(o,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",e);if(!a.queryAttachments)throw new n(o,"Layer source does not support queryAttachments capability",e);return a.queryAttachments(e)}async function F(t,e,r,o){const a=await L(t);if(!a.queryObjectIds)throw new n(o,"Layer source does not support queryObjectIds capability");return a.queryObjectIds(d.from(e)??t.createQuery(),r)}async function A(t,e,r,o){const a=await L(t);if(!a.queryFeatureCount)throw new n(o,"Layer source does not support queryFeatureCount capability");return a.queryFeatureCount(d.from(e)??t.createQuery(),r)}async function O(t,e,r,o){const a=await L(t);if(!a.queryExtent)throw new n(o,"Layer source does not support queryExtent capability");return a.queryExtent(d.from(e)??t.createQuery(),r)}async function P(t,e,r,o){const a=await L(t);if(!a.queryRelatedFeatures)throw new n(o,"Layer source does not support queryRelatedFeatures capability");return a.queryRelatedFeatures(f.from(e),r)}async function S(t,e,r,o){const a=await L(t);if(!a.queryRelatedFeaturesCount)throw new n(o,"Layer source does not support queryRelatedFeaturesCount capability");return a.queryRelatedFeaturesCount(f.from(e),r)}async function E(t){const e=t.source;if(e?.refresh)try{const{dataChanged:r,updates:n}=await e.refresh();if(null!=n&&(t.sourceJSON={...t.sourceJSON,...n},t.read(n,{origin:"service",url:t.parsedUrl})),r)return!0}catch{}if(t.definitionExpression)try{return(await a(t.definitionExpression,t.fieldsIndex)).hasDateFunctions}catch{}return!1}function x(t){const e=new d,r=t.capabilities?.data,n=t.capabilities?.query;e.historicMoment=t.historicMoment,e.gdbVersion=t.gdbVersion,e.returnGeometry=!0,n&&(e.compactGeometryEnabled=n.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=n.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=t.returnZ&&(e.returnZ=t.returnZ),r.supportsM&&null!=t.returnM&&(e.returnM=t.returnM)),e.outFields=["*"];const{timeOffset:o,timeExtent:a}=t;return e.timeExtent=null!=o&&null!=a?a.offset(-o.value,o.unit):a||null,e.multipatchOption="multipatch"===t.geometryType?"xyFootprint":null,e}function R(t){const{globalIdField:e,fields:r}=t;if(e)return e;if(r)for(const n of r)if("esriFieldTypeGlobalID"===n.type)return n.name}function M(t){const{objectIdField:e,fields:r}=t;if(e)return e;if(r)for(const n of r)if("esriFieldTypeOID"===n.type)return n.name}function C(t){return t.currentVersion?t.currentVersion:t.hasOwnProperty("capabilities")||t.hasOwnProperty("drawingInfo")||t.hasOwnProperty("hasAttachments")||t.hasOwnProperty("htmlPopupType")||t.hasOwnProperty("relationships")||t.hasOwnProperty("timeInfo")||t.hasOwnProperty("typeIdField")||t.hasOwnProperty("types")?10:9.3}function G(t,e){const{subtypes:r,subtypeField:n}=t;if(!e||!r?.length||!n)return null;const o=e.attributes[n];return null==o?null:r.find((t=>t.code===o))}async function L(t){return(await t.load()).source}async function Q(e,r){if(!t)return;if(t.findCredential(e))return;let n;try{const o=await u(e,r);o&&(n=await t.checkSignInStatus(`${o}/sharing`))}catch(o){}if(n)try{const n=null!=r?r.signal:null;await t.getCredential(e,{signal:n})}catch(o){}}async function T(t,e,r){const n=t.parsedUrl?.path;n&&t.authenticationTriggerEvent===e&&await Q(n,r)}function v(t){return!t.sourceJSON?.isMultiServicesView&&(t.userHasUpdateItemPrivileges||t.editingEnabled)}const D=s({types:e});function U(t,e){if(t.defaultSymbol)return t.types?.length?new c({defaultSymbol:D(t.defaultSymbol,t,e),field:t.typeIdField,uniqueValueInfos:t.types.map((t=>({id:t.id,symbol:D(t.symbol,t,e)})))}):new l({symbol:D(t.defaultSymbol,t,e)})}function V(t){let e=t.sourceJSON?.cacheMaxAge;if(!e)return!1;const r=t.editingInfo?.lastEditDate?.getTime();return null==r||(e*=1e3,Date.now()-r<e)}async function J(t,e,n){if(null==e)return null;const o=[],{objectIdField:a}=t;if(e.forEach((t=>{let e=null;if("attributes"in t){const{attributes:r}=t;e={globalId:r[n],objectId:null!=r[a]&&-1!==r[a]?r[a]:null}}else e={globalId:t.globalId,objectId:null!=t.objectId&&-1!==t.objectId?t.objectId:null};null!=e.globalId&&(null!=e.objectId&&-1!==e.objectId||o.push(e.globalId))})),0===o.length)return null;const s=t.createQuery();s.where=o.map((t=>`${n}='${t}'`)).join(" OR "),s.returnGeometry=!1,s.outFields=[a,n],s.cacheHint=!1;const u=await r(i(t,s));if(!u.ok)return null;const l=new Map,c=u.value.features;for(const r of c){const t=r.attributes[n],e=r.attributes[a];null!=t&&null!=e&&-1!==e&&l.set(t,e)}return l}function N(t,e,r){if(!e||!r||!t)return null;const n=r.getAttribute(e);return null==n?null:t.find((t=>{const{id:e}=t;return null!=e&&e.toString()===n.toString()}))??null}export{m as addAttachment,b as applyEdits,v as computeEffectiveEditingEnabled,U as createDefaultRenderer,x as createQuery,j as deleteAttachments,T as ensureLayerCredential,I as fetchRecomputedExtents,y as geometryTypeKebabDict,G as getFeatureSubtype,N as getFeatureType,J as getGlobalIdToObjectIdMap,E as hasDataChanged,V as isLayerCacheStale,q as queryAttachments,O as queryExtent,A as queryFeatureCount,F as queryObjectIds,P as queryRelatedFeatures,S as queryRelatedFeaturesCount,R as readGlobalIdField,M as readObjectIdField,C as readVersion,w as updateAttachment,g as uploadAssets};
|
|
5
|
+
import{id as t}from"../../kernel.js";import{symbolTypesRenderer as e}from"../../symbols.js";import{resultOrAbort as r}from"../../core/asyncUtils.js";import n from"../../core/Error.js";import{JSONMap as o}from"../../core/jsonMap.js";import{parseWhereClause as a}from"../../core/sql.js";import{createTypeReader as s}from"../../core/accessorSupport/extensions/serializableProperty/reader.js";import{queryAllJSON as i}from"./featureQueryAll.js";import{getOwningPortalUrl as u}from"./layerUtils.js";import l from"../../renderers/SimpleRenderer.js";import c from"../../renderers/UniqueValueRenderer.js";import p from"../../rest/support/AttachmentQuery.js";import d from"../../rest/support/Query.js";import f from"../../rest/support/RelationshipQuery.js";const y=new o({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function m(t,e,r,o){const a=await L(t);if(await h(t,e,o),!a.addAttachment)throw new n(o,"Layer source does not support addAttachment capability");return a.addAttachment(e,r)}function h(t,e,r){const{attributes:o}=e,{objectIdField:a}=t;return t.capabilities?.data?.supportsAttachment?e?o?a&&o[a]?Promise.resolve():Promise.reject(new n(r,`feature is missing the identifying attribute ${a}`)):Promise.reject(new n(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new n(r,"A feature is required to add/delete/update attachments")):Promise.reject(new n(r,"this layer doesn't support attachments"))}async function w(t,e,r,o,a){const s=await L(t);if(await h(t,e,a),!s.updateAttachment)throw new n(a,"Layer source does not support updateAttachment capability");return s.updateAttachment(e,r,o)}async function b(t,e,r){const{applyEdits:n}=await import("../graphics/editingSupport.js"),o=await t.load();let a=r;return"feature"===o.type&&o.infoFor3D&&null!=e.deleteFeatures&&null!=o.globalIdField&&(a={...a,globalIdToObjectId:await J(o,e.deleteFeatures,o.globalIdField)}),n(o,o.source,e,r)}async function g(t,e,r){const{uploadAssets:n}=await import("../graphics/editingSupport.js"),o=await t.load();return n(o,o.source,e,r)}async function j(t,e,r,o){const a=await L(t);if(await h(t,e,o),!a.deleteAttachments)throw new n(o,"Layer source does not support deleteAttachments capability");return a.deleteAttachments(e,r)}async function I(t,e,r){const o=(await t.load({signal:e?.signal})).source;if(!o.fetchRecomputedExtents)throw new n(r,"Layer source does not support fetchUpdates capability");return o.fetchRecomputedExtents(e)}async function q(t,e,r,o){e=p.from(e),await t.load();const a=t.source,s=t.capabilities;if(!s?.data?.supportsAttachment)throw new n(o,"this layer doesn't support attachments");const{attachmentTypes:i,objectIds:u,globalIds:l,num:c,size:d,start:f,where:y}=e;if(!s?.operations?.supportsQueryAttachments){if(i?.length>0||l?.length>0||d?.length>0||c||f||y)throw new n(o,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",e)}if(!(u?.length||l?.length||y))throw new n(o,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",e);if(!a.queryAttachments)throw new n(o,"Layer source does not support queryAttachments capability",e);return a.queryAttachments(e)}async function F(t,e,r,o){const a=await L(t);if(!a.queryObjectIds)throw new n(o,"Layer source does not support queryObjectIds capability");return a.queryObjectIds(d.from(e)??t.createQuery(),r)}async function A(t,e,r,o){const a=await L(t);if(!a.queryFeatureCount)throw new n(o,"Layer source does not support queryFeatureCount capability");return a.queryFeatureCount(d.from(e)??t.createQuery(),r)}async function O(t,e,r,o){const a=await L(t);if(!a.queryExtent)throw new n(o,"Layer source does not support queryExtent capability");return a.queryExtent(d.from(e)??t.createQuery(),r)}async function P(t,e,r,o){const a=await L(t);if(!a.queryRelatedFeatures)throw new n(o,"Layer source does not support queryRelatedFeatures capability");return a.queryRelatedFeatures(f.from(e),r)}async function S(t,e,r,o){const a=await L(t);if(!a.queryRelatedFeaturesCount)throw new n(o,"Layer source does not support queryRelatedFeaturesCount capability");return a.queryRelatedFeaturesCount(f.from(e),r)}async function E(t){const e=t.source;if(e?.refresh)try{const{dataChanged:r,updates:n}=await e.refresh();if(null!=n&&(t.sourceJSON={...t.sourceJSON,...n},t.read(n,{origin:"service",url:t.parsedUrl})),r)return!0}catch{}if(t.definitionExpression)try{return(await a(t.definitionExpression,t.fieldsIndex)).hasDateFunctions}catch{}return!1}function x(t){const e=new d,r=t.capabilities?.data,n=t.capabilities?.query;e.historicMoment=t.historicMoment,e.gdbVersion=t.gdbVersion,e.returnGeometry=!0,n&&(e.compactGeometryEnabled=n.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=n.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=t.returnZ&&(e.returnZ=t.returnZ),r.supportsM&&null!=t.returnM&&(e.returnM=t.returnM)),e.outFields=["*"];const{timeOffset:o,timeExtent:a}=t;return e.timeExtent=null!=o&&null!=a?a.offset(-o.value,o.unit):a||null,e.multipatchOption="multipatch"===t.geometryType?"xyFootprint":null,e}function R(t){const{globalIdField:e,fields:r}=t;if(e)return e;if(r)for(const n of r)if("esriFieldTypeGlobalID"===n.type)return n.name}function M(t){const{objectIdField:e,fields:r}=t;if(e)return e;if(r)for(const n of r)if("esriFieldTypeOID"===n.type)return n.name}function C(t){return t.currentVersion?t.currentVersion:t.hasOwnProperty("capabilities")||t.hasOwnProperty("drawingInfo")||t.hasOwnProperty("hasAttachments")||t.hasOwnProperty("htmlPopupType")||t.hasOwnProperty("relationships")||t.hasOwnProperty("timeInfo")||t.hasOwnProperty("typeIdField")||t.hasOwnProperty("types")?10:9.3}function G(t,e){const{subtypes:r,subtypeField:n}=t;if(!e||!r?.length||!n)return null;const o=e.attributes[n];return null==o?null:r.find((t=>t.code===o))}async function L(t){return(await t.load()).source}async function Q(e,r){if(!t)return;if(t.findCredential(e))return;let n;try{const o=await u(e,r);o&&(n=await t.checkSignInStatus(`${o}/sharing`))}catch(o){}if(n)try{const n=null!=r?r.signal:null;await t.getCredential(e,{signal:n})}catch(o){}}async function T(t,e,r){const n=t.parsedUrl?.path;n&&t.authenticationTriggerEvent===e&&await Q(n,r)}function v(t){return!t.sourceJSON?.isMultiServicesView&&(t.userHasUpdateItemPrivileges||t.editingEnabled)}const D=s({types:e});function U(t,e){if(t.defaultSymbol)return t.types?.length?new c({defaultSymbol:D(t.defaultSymbol,t,e),field:t.typeIdField,uniqueValueInfos:t.types.map((t=>({id:t.id,symbol:D(t.symbol,t,e)})))}):new l({symbol:D(t.defaultSymbol,t,e)})}function V(t){let e=t.sourceJSON?.cacheMaxAge;if(!e)return!1;const r=t.editingInfo?.lastEditDate?.getTime();return null==r||(e*=1e3,Date.now()-r<e)}async function J(t,e,n){if(null==e)return null;const o=[],{objectIdField:a}=t;if(e.forEach((t=>{let e=null;if("attributes"in t){const{attributes:r}=t;e={globalId:r[n],objectId:null!=r[a]&&-1!==r[a]?r[a]:null}}else e={globalId:t.globalId,objectId:null!=t.objectId&&-1!==t.objectId?t.objectId:null};null!=e.globalId&&(null!=e.objectId&&-1!==e.objectId||o.push(e.globalId))})),0===o.length)return null;const s=t.createQuery();s.where=o.map((t=>`${n}='${t}'`)).join(" OR "),s.returnGeometry=!1,s.outFields=[a,n],s.cacheHint=!1;const u=await r(i(t,s));if(!u.ok)return null;const l=new Map,c=u.value.features;for(const r of c){const t=r.attributes[n],e=r.attributes[a];null!=t&&null!=e&&-1!==e&&l.set(t,e)}return l}function N(t,e,r){if(!e||!r||!t)return null;const n=r.getAttribute(e);return null==n?null:t.find((t=>{const{id:e}=t;return null!=e&&e.toString()===n.toString()}))??null}export{m as addAttachment,b as applyEdits,v as computeEffectiveEditingEnabled,U as createDefaultRenderer,x as createQuery,j as deleteAttachments,Q as ensureCredentialIfSignedIn,T as ensureLayerCredential,I as fetchRecomputedExtents,y as geometryTypeKebabDict,G as getFeatureSubtype,N as getFeatureType,J as getGlobalIdToObjectIdMap,E as hasDataChanged,V as isLayerCacheStale,q as queryAttachments,O as queryExtent,A as queryFeatureCount,F as queryObjectIds,P as queryRelatedFeatures,S as queryRelatedFeaturesCount,R as readGlobalIdField,M as readObjectIdField,C as readVersion,w as updateAttachment,g as uploadAssets};
|