@arcgis/core-adapter 4.32.0-next.36 → 4.32.0-next.37

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.
@@ -7,10 +7,10 @@ CLI Cleaning output folder
7
7
  ESM Build start
8
8
  CJS Build start
9
9
  CJS dist/index.cjs 621.02 KB
10
- CJS ⚡️ Build success in 819ms
10
+ CJS ⚡️ Build success in 1590ms
11
11
  ESM dist/index.js 480.54 KB
12
- ESM ⚡️ Build success in 917ms
12
+ ESM ⚡️ Build success in 1592ms
13
13
  DTS Build start
14
- DTS ⚡️ Build success in 12063ms
14
+ DTS ⚡️ Build success in 15744ms
15
15
  DTS dist/index.d.ts 251.88 KB
16
16
  DTS dist/index.d.cts 251.88 KB
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core-adapter",
3
- "version": "4.32.0-next.36",
3
+ "version": "4.32.0-next.37",
4
4
  "description": "ArcGIS Core Adapter",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -183,22 +183,15 @@ declare namespace __esri {
183
183
 
184
184
  interface reactiveUtils {
185
185
  watch<T>(getValue: () => T, callback: (newValue: T, oldValue: T) => void, options?: ReactiveWatchOptions): IHandle;
186
- when<T>(
187
- getValue: () => T | null | undefined,
188
- callback: (newValue: T, oldValue: T | null) => void,
189
- options?: ReactiveWatchOptions,
190
- ): IHandle;
186
+ when<T>(getValue: () => T, callback: (newValue: T, oldValue: T) => void, options?: ReactiveWatchOptions): IHandle;
191
187
  on<T extends Evented | EventTarget>(
192
- getTarget: () => T | null | undefined,
188
+ getTarget: () => T,
193
189
  eventName: string,
194
190
  callback: (value: any) => void,
195
191
  options?: ReactiveListenerOptions<T>,
196
192
  ): IHandle;
197
- once<T>(getValue: () => T, signal?: AbortSignal | { signal?: AbortSignal } | null): Promise<T>;
198
- whenOnce<T>(
199
- getValue: () => T | null | undefined,
200
- signal?: AbortSignal | { signal?: AbortSignal } | null,
201
- ): Promise<T>;
193
+ once<T>(getValue: () => T, signal?: AbortSignal | { signal?: AbortSignal }): Promise<T>;
194
+ whenOnce<T>(getValue: () => T, signal?: AbortSignal | { signal?: AbortSignal }): Promise<T>;
202
195
  }
203
196
 
204
197
  export const reactiveUtils: reactiveUtils;
@@ -1447,6 +1440,24 @@ declare namespace __esri {
1447
1440
 
1448
1441
  export const previewSymbol2D: previewSymbol2D;
1449
1442
 
1443
+ /**
1444
+ * Note: reserved for internal use only, this is not part of the stable public API.
1445
+ *
1446
+ * Various utilities for the Scene Viewer application.
1447
+ */
1448
+ interface sceneViewUtils {
1449
+ /**
1450
+ * Note: reserved for internal use only, this is not part of the stable public API.
1451
+ *
1452
+ * Gets whether the weather is visible in the scene view.
1453
+ *
1454
+ * @param view The scene view.
1455
+ */
1456
+ isWeatherVisible(view: SceneView): boolean;
1457
+ }
1458
+
1459
+ export const sceneViewUtils: sceneViewUtils;
1460
+
1450
1461
  /**
1451
1462
  * Note: reserved for internal use only, this is not part of the stable public API.
1452
1463
  *
@@ -3122,6 +3133,14 @@ declare namespace __esri {
3122
3133
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#aliasOf Read more...}
3123
3134
  */
3124
3135
  aliasOf(propertyName: string): Function;
3136
+ /**
3137
+ * This method decorator is used to define the method that will cast a property from a class.
3138
+ *
3139
+ * @param propertyName The property name the function will cast.
3140
+ *
3141
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#cast Read more...}
3142
+ */
3143
+ cast(propertyName: string): Function;
3125
3144
  /**
3126
3145
  * This property decorator is used to define the function or class for a property.
3127
3146
  *
@@ -3626,7 +3645,7 @@ declare namespace __esri {
3626
3645
  * Parses the given where clause string and returns an instance of {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html WhereClause} when resolved.
3627
3646
  *
3628
3647
  * @param clause The SQL where clause expression.
3629
- * @param fieldsIndex The fields index of the layer. The fields index is used to match the fields found in the where clause against the service, to fix casing for example.
3648
+ * @param fieldsIndex The {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fieldsIndex fields index} of the layer. The fields index is used to match the fields found in the where clause against the service, to fix casing for example.
3630
3649
  * @param timeZone The time zone in which SQL date functions are evaluated. The default is "UTC". This parameter only accepts {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones IANA time zones}.
3631
3650
  *
3632
3651
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql.html#parseWhereClause Read more...}
@@ -15844,6 +15863,12 @@ declare namespace __esri {
15844
15863
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html#fields Read more...}
15845
15864
  */
15846
15865
  fields: Field[];
15866
+ /**
15867
+ * A convenient property that can be used to make case-insensitive lookups for a field by name.
15868
+ *
15869
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html#fieldsIndex Read more...}
15870
+ */
15871
+ declare readonly fieldsIndex: FeatureLayerBase["fieldsIndex"];
15847
15872
  /**
15848
15873
  * When a feature layer is configured as floor-aware, it has a floorInfo property defined.
15849
15874
  *
@@ -17854,6 +17879,12 @@ declare namespace __esri {
17854
17879
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields Read more...}
17855
17880
  */
17856
17881
  fields: Field[];
17882
+ /**
17883
+ * A convenient property that can be used to make case-insensitive lookups for a field by name.
17884
+ *
17885
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fieldsIndex Read more...}
17886
+ */
17887
+ declare readonly fieldsIndex: FeatureLayerBase["fieldsIndex"];
17857
17888
  /**
17858
17889
  * When a feature layer is configured as floor-aware, it has a floorInfo property defined.
17859
17890
  *
@@ -25745,6 +25776,7 @@ declare namespace __esri {
25745
25776
  readonly effectiveCapabilities: Capabilities;
25746
25777
  readonly effectiveEditingEnabled: boolean;
25747
25778
  elevationInfo: FeatureLayerBaseElevationInfo;
25779
+ readonly fieldsIndex: FieldsIndex;
25748
25780
  floorInfo: LayerFloorInfo;
25749
25781
  fullExtent: Extent;
25750
25782
  gdbVersion: string;
@@ -30338,6 +30370,12 @@ declare namespace __esri {
30338
30370
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#fields Read more...}
30339
30371
  */
30340
30372
  fields: Field[];
30373
+ /**
30374
+ * A convenient property that can be used to make case-insensitive lookups for a field by name.
30375
+ *
30376
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#fieldsIndex Read more...}
30377
+ */
30378
+ declare readonly fieldsIndex: FeatureLayerBase["fieldsIndex"];
30341
30379
  /**
30342
30380
  * When a feature layer is configured as floor-aware, it has a floorInfo property defined.
30343
30381
  *
@@ -95531,6 +95569,54 @@ declare namespace __esri {
95531
95569
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#toScreen Read more...}
95532
95570
  */
95533
95571
  toScreen(point: Point): SceneViewScreenPoint;
95572
+ /**
95573
+ * Gets the analysis view created for the given analysis object.
95574
+ *
95575
+ * @param analysis
95576
+ *
95577
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView Read more...}
95578
+ */
95579
+ whenAnalysisView(analysis: LineOfSightAnalysis): Promise<LineOfSightAnalysisView3D>;
95580
+ /**
95581
+ * Gets the analysis view created for the given analysis object.
95582
+ *
95583
+ * @param analysis
95584
+ *
95585
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView Read more...}
95586
+ */
95587
+ whenAnalysisView(analysis: DirectLineMeasurementAnalysis): Promise<DirectLineMeasurementAnalysisView3D>;
95588
+ /**
95589
+ * Gets the analysis view created for the given analysis object.
95590
+ *
95591
+ * @param analysis
95592
+ *
95593
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView Read more...}
95594
+ */
95595
+ whenAnalysisView(analysis: AreaMeasurementAnalysis): Promise<AreaMeasurementAnalysisView3D>;
95596
+ /**
95597
+ * Gets the analysis view created for the given analysis object.
95598
+ *
95599
+ * @param analysis
95600
+ *
95601
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView Read more...}
95602
+ */
95603
+ whenAnalysisView(analysis: SliceAnalysis): Promise<SliceAnalysisView3D>;
95604
+ /**
95605
+ * Gets the analysis view created for the given analysis object.
95606
+ *
95607
+ * @param analysis
95608
+ *
95609
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView Read more...}
95610
+ */
95611
+ whenAnalysisView(analysis: DimensionAnalysis): Promise<DimensionAnalysisView>;
95612
+ /**
95613
+ * Gets the analysis view created for the given analysis object.
95614
+ *
95615
+ * @param analysis
95616
+ *
95617
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView Read more...}
95618
+ */
95619
+ whenAnalysisView(analysis: ViewshedAnalysis): Promise<ViewshedAnalysisView3D>;
95534
95620
  /**
95535
95621
  * Gets the analysis view created for the given analysis object.
95536
95622
  *
@@ -96481,6 +96567,141 @@ declare namespace __esri {
96481
96567
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#when Read more...}
96482
96568
  */
96483
96569
  when(callback?: Function, errback?: Function): Promise<any>;
96570
+ /**
96571
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96572
+ * on the view for the given layer.
96573
+ *
96574
+ * @param layer
96575
+ *
96576
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96577
+ */
96578
+ whenLayerView(layer: PointCloudLayer): Promise<any>;
96579
+ /**
96580
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96581
+ * on the view for the given layer.
96582
+ *
96583
+ * @param layer
96584
+ *
96585
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96586
+ */
96587
+ whenLayerView(layer: StreamLayer): Promise<any>;
96588
+ /**
96589
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96590
+ * on the view for the given layer.
96591
+ *
96592
+ * @param layer
96593
+ *
96594
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96595
+ */
96596
+ whenLayerView(layer: WFSLayer): Promise<any>;
96597
+ /**
96598
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96599
+ * on the view for the given layer.
96600
+ *
96601
+ * @param layer
96602
+ *
96603
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96604
+ */
96605
+ whenLayerView(layer: OGCFeatureLayer): Promise<any>;
96606
+ /**
96607
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96608
+ * on the view for the given layer.
96609
+ *
96610
+ * @param layer
96611
+ *
96612
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96613
+ */
96614
+ whenLayerView(layer: FeatureLayer): Promise<any>;
96615
+ /**
96616
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96617
+ * on the view for the given layer.
96618
+ *
96619
+ * @param layer
96620
+ *
96621
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96622
+ */
96623
+ whenLayerView(layer: CSVLayer): Promise<any>;
96624
+ /**
96625
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96626
+ * on the view for the given layer.
96627
+ *
96628
+ * @param layer
96629
+ *
96630
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96631
+ */
96632
+ whenLayerView(layer: GeoJSONLayer): Promise<any>;
96633
+ /**
96634
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96635
+ * on the view for the given layer.
96636
+ *
96637
+ * @param layer
96638
+ *
96639
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96640
+ */
96641
+ whenLayerView(layer: GeoRSSLayer): Promise<any>;
96642
+ /**
96643
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96644
+ * on the view for the given layer.
96645
+ *
96646
+ * @param layer
96647
+ *
96648
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96649
+ */
96650
+ whenLayerView(layer: GraphicsLayer): Promise<any>;
96651
+ /**
96652
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96653
+ * on the view for the given layer.
96654
+ *
96655
+ * @param layer
96656
+ *
96657
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96658
+ */
96659
+ whenLayerView(layer: ImageryLayer): Promise<any>;
96660
+ /**
96661
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96662
+ * on the view for the given layer.
96663
+ *
96664
+ * @param layer
96665
+ *
96666
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96667
+ */
96668
+ whenLayerView(layer: KMLLayer): Promise<any>;
96669
+ /**
96670
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96671
+ * on the view for the given layer.
96672
+ *
96673
+ * @param layer
96674
+ *
96675
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96676
+ */
96677
+ whenLayerView(layer: SceneLayer): Promise<any>;
96678
+ /**
96679
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96680
+ * on the view for the given layer.
96681
+ *
96682
+ * @param layer
96683
+ *
96684
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96685
+ */
96686
+ whenLayerView(layer: DimensionLayer): Promise<any>;
96687
+ /**
96688
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96689
+ * on the view for the given layer.
96690
+ *
96691
+ * @param layer
96692
+ *
96693
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96694
+ */
96695
+ whenLayerView(layer: MediaLayer): Promise<any>;
96696
+ /**
96697
+ * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96698
+ * on the view for the given layer.
96699
+ *
96700
+ * @param layer
96701
+ *
96702
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView Read more...}
96703
+ */
96704
+ whenLayerView(layer: ViewshedLayer): Promise<any>;
96484
96705
  /**
96485
96706
  * Gets the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html LayerView} created
96486
96707
  * on the view for the given layer.
@@ -123906,6 +124127,16 @@ declare namespace __esri {
123906
124127
  */
123907
124128
  viewModel: ClassedSizeSliderViewModel;
123908
124129
 
124130
+ /**
124131
+ * A convenience function used to update the
124132
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos classBreakInfos}
124133
+ * of a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html ClassBreaksRenderer} associated with this slider.
124134
+ *
124135
+ * @param breakInfos The classBreakInfos from a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html ClassBreaksRenderer} instance to update based on the properties of the slider.
124136
+ *
124137
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#updateClassBreakInfos Read more...}
124138
+ */
124139
+ updateClassBreakInfos(breakInfos: ClassBreakInfo[]): ClassBreakInfo[];
123909
124140
  /**
123910
124141
  * A convenience function used to update the properties a ClassedSizeSlider from the result
123911
124142
  * of the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer createClassBreaksRenderer()} method.
@@ -123913,9 +124144,9 @@ declare namespace __esri {
123913
124144
  * @param rendererResult The result object from the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer createClassBreaksRenderer} method.
123914
124145
  * @param histogramResult The result histogram object from the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram histogram} method.
123915
124146
  *
123916
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#updateClassBreakInfos Read more...}
124147
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#updateFromRendererResult Read more...}
123917
124148
  */
123918
- updateClassBreakInfos(rendererResult: sizeClassBreaksRendererResult, histogramResult?: HistogramResult): void;
124149
+ updateFromRendererResult(rendererResult: sizeClassBreaksRendererResult, histogramResult?: HistogramResult): void;
123919
124150
 
123920
124151
  /**
123921
124152
  * A convenience function used to create a ClassedSizeSlider widget from the result
@@ -124990,7 +125221,7 @@ declare namespace __esri {
124990
125221
 
124991
125222
  export type SmartMappingSliderBaseLabelFormatter = (
124992
125223
  value: number,
124993
- type?: "average" | "min" | "max" | "value",
125224
+ type?: "average" | "min" | "max" | "tick" | "value",
124994
125225
  index?: number,
124995
125226
  ) => string;
124996
125227
 
@@ -138924,6 +139155,11 @@ declare module "esri/applications/Components/reactiveUtils" {
138924
139155
  export = ComponentsReactiveUtils;
138925
139156
  }
138926
139157
 
139158
+ declare module "esri/applications/Components/sceneViewUtils" {
139159
+ import sceneViewUtils = __esri.sceneViewUtils;
139160
+ export = sceneViewUtils;
139161
+ }
139162
+
138927
139163
  declare module "esri/applications/Components/SelectionOperation" {
138928
139164
  import SelectionOperation = __esri.SelectionOperation;
138929
139165
  export = SelectionOperation;