@arcgis/map-components 5.2.0-next.123 → 5.2.0-next.124
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.
|
@@ -11,26 +11,29 @@ import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
|
11
11
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* The
|
|
14
|
+
* The `Selection List` component displays selected features in a hierarchical list organized by group and layer. It is intended for applications that need to present the current selection and support browsing, filtering, and interaction with selected features.
|
|
15
15
|
*
|
|
16
|
+
* The component can be used with the [Map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/) or [Scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component and reflects selections made through a [selection manager](https://developers.arcgis.com/javascript/latest/references/core/views/SelectionManager/), including the [view](https://developers.arcgis.com/javascript/latest/references/core/views/View/#selectionManager), the [Selection Toolbar](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-toolbar/), or the [selection manager API](https://developers.arcgis.com/javascript/latest/references/core/views/SelectionManager/).
|
|
17
|
+
*
|
|
18
|
+
* @see [Sample - Selection List Component](https://developers.arcgis.com/javascript/latest/sample-code/selection-list/)
|
|
16
19
|
* @since 5.2
|
|
17
20
|
*/
|
|
18
21
|
export abstract class ArcgisSelectionList extends LitElement {
|
|
19
22
|
/**
|
|
20
|
-
* Reference to a single LayerItem being displayed in the
|
|
21
|
-
*
|
|
23
|
+
* Reference to a single [layer item](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/LayerItem/) being displayed in the
|
|
24
|
+
* list, if the [layer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-list/#layer) property is set and that layer has selected features.
|
|
22
25
|
*
|
|
23
26
|
* @since 5.2
|
|
24
27
|
*/
|
|
25
28
|
get activeLayerItem(): LayerItem | null | undefined;
|
|
26
29
|
/**
|
|
27
|
-
*
|
|
30
|
+
* An optional function that runs when a user selects a feature, layer, or group item in the selection list itself. It does not run when a feature becomes selected through the [arcgis-selection-toolbar](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-toolbar/), map click, or [selection manager API](https://developers.arcgis.com/javascript/latest/references/core/views/SelectionManager/).
|
|
28
31
|
*
|
|
29
32
|
* @since 5.2
|
|
30
33
|
*/
|
|
31
34
|
accessor afterListItemSelect: ListItemSelectCallback | undefined;
|
|
32
35
|
/**
|
|
33
|
-
* Items representing all individual
|
|
36
|
+
* Items representing all individual [layer](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/LayerItem/) and [group](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/GroupLayerItem/) layers with an active selection.
|
|
34
37
|
*
|
|
35
38
|
* @since 5.2
|
|
36
39
|
*/
|
|
@@ -67,17 +70,17 @@ export abstract class ArcgisSelectionList extends LitElement {
|
|
|
67
70
|
*/
|
|
68
71
|
accessor disabled: boolean;
|
|
69
72
|
/**
|
|
70
|
-
* Controls how the list is displayed. If this value is set to "group"
|
|
71
|
-
* their associated layer and group items. If this value is set to "layer"
|
|
72
|
-
* their associated layer item, while excluding group items. If this value is set to "feature" the list only displays
|
|
73
|
-
* feature items, while excluding group and layer items.
|
|
73
|
+
* Controls how the list is displayed. If this value is set to `"group"`, the list displays [feature](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/FeatureItem/) and [layer](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/LayerItem/) items nested under
|
|
74
|
+
* their associated [layer](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/LayerItem/) and [group](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/GroupLayerItem/) items. If this value is set to `"layer"`, the list displays [feature](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/FeatureItem/) items nested under
|
|
75
|
+
* their associated [layer](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/LayerItem/) item, while excluding [group](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/GroupLayerItem/) items. If this value is set to `"feature"` the list only displays
|
|
76
|
+
* [feature](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/FeatureItem/) items, while excluding [group](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/GroupLayerItem/) and [layer](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/LayerItem/) items.
|
|
74
77
|
*
|
|
75
78
|
* @default "group"
|
|
76
79
|
* @since 5.2
|
|
77
80
|
*/
|
|
78
81
|
accessor displayMode: "feature" | "group" | "layer";
|
|
79
82
|
/**
|
|
80
|
-
* Reference to the SelectionManager being represented by the component.
|
|
83
|
+
* Reference to the [selection manager](https://developers.arcgis.com/javascript/latest/references/core/views/SelectionManager/) being represented by the component.
|
|
81
84
|
*
|
|
82
85
|
* @since 5.2
|
|
83
86
|
*/
|
|
@@ -220,7 +223,7 @@ export abstract class ArcgisSelectionList extends LitElement {
|
|
|
220
223
|
accessor listItemUnavailableFunction: ListItemUnavailableFunction | undefined;
|
|
221
224
|
/**
|
|
222
225
|
* Indicates the list is only showing a subset of selected feature items due to
|
|
223
|
-
* the selection being greater than the current value of the
|
|
226
|
+
* the selection being greater than the current value of the [maxVisibleFeatureCountPerLayer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-list/#maxVisibleFeatureCountPerLayer)
|
|
224
227
|
* property. This value also accounts for any active filters.
|
|
225
228
|
*
|
|
226
229
|
* @default false
|
|
@@ -228,7 +231,8 @@ export abstract class ArcgisSelectionList extends LitElement {
|
|
|
228
231
|
*/
|
|
229
232
|
get maxVisibleFeatureCountExceeded(): boolean;
|
|
230
233
|
/**
|
|
231
|
-
*
|
|
234
|
+
* x
|
|
235
|
+
* Maximum number of selected [feature items](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/FeatureItem/) displayed per layer.
|
|
232
236
|
* Does not limit or restrict the selection itself.
|
|
233
237
|
*
|
|
234
238
|
* @since 5.2
|
|
@@ -302,13 +306,18 @@ export abstract class ArcgisSelectionList extends LitElement {
|
|
|
302
306
|
*/
|
|
303
307
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
304
308
|
/**
|
|
305
|
-
* A reference to a custom selection manager to use instead of the view's default selection manager.
|
|
309
|
+
* A reference to a custom [selection manager](https://developers.arcgis.com/javascript/latest/references/core/views/SelectionManager/) to use instead of the view's default [selection manager](https://developers.arcgis.com/javascript/latest/references/core/views/View/#selectionManager).
|
|
306
310
|
*
|
|
307
311
|
* @since 5.2
|
|
308
312
|
*/
|
|
309
313
|
accessor selectionManager: SelectionManager | null | undefined;
|
|
310
314
|
/**
|
|
311
315
|
* Reflects the component's current state.
|
|
316
|
+
* Possible values are:
|
|
317
|
+
* - `"disabled"`: The component is not interactive.
|
|
318
|
+
* - `"error"`: The component has encountered an error.
|
|
319
|
+
* - `"loading"`: The component is in a loading state.
|
|
320
|
+
* - `"ready"`: The component is ready for interaction.
|
|
312
321
|
*
|
|
313
322
|
* @since 5.2
|
|
314
323
|
*/
|
|
@@ -319,20 +328,20 @@ export abstract class ArcgisSelectionList extends LitElement {
|
|
|
319
328
|
*/
|
|
320
329
|
accessor view: SelectableViewUnion | null | undefined;
|
|
321
330
|
/**
|
|
322
|
-
* Total number of visible feature items in the list.
|
|
331
|
+
* Total number of visible [feature items](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/FeatureItem/) in the list.
|
|
323
332
|
*
|
|
324
333
|
* @since 5.2
|
|
325
334
|
*/
|
|
326
335
|
get visibleFeatureCount(): number;
|
|
327
336
|
/**
|
|
328
|
-
* Current number of visible feature list
|
|
329
|
-
* Excludes feature
|
|
337
|
+
* Current number of visible [feature items](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/FeatureItem/) in the list, accounting for [maxVisibleFeatureCountPerLayer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-list/#maxVisibleFeatureCountPerLayer).
|
|
338
|
+
* Excludes [feature items](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/FeatureItem/) hidden by the filter.
|
|
330
339
|
*
|
|
331
340
|
* @since 5.2
|
|
332
341
|
*/
|
|
333
342
|
get visibleFeatureItems(): FeatureItem[];
|
|
334
343
|
/**
|
|
335
|
-
* Count for total number of visible layer items in the list, excluding group layer items.
|
|
344
|
+
* Count for total number of visible [layer items](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/LayerItem/) in the list, excluding [group layer items](https://developers.arcgis.com/javascript/latest/references/core/widgets/support/SelectionList/GroupLayerItem/).
|
|
336
345
|
*
|
|
337
346
|
* @since 5.2
|
|
338
347
|
*/
|
|
@@ -380,10 +389,10 @@ export abstract class ArcgisSelectionList extends LitElement {
|
|
|
380
389
|
*/
|
|
381
390
|
findLayerItem(layer: SelectableLayer): Promise<LayerItem | null | undefined>;
|
|
382
391
|
/**
|
|
383
|
-
* Utility method for finding the corresponding
|
|
392
|
+
* Utility method for finding the corresponding parent item for a given layer.
|
|
384
393
|
*
|
|
385
|
-
* @param layer - The layer for which to find the corresponding
|
|
386
|
-
* @returns The
|
|
394
|
+
* @param layer - The layer for which to find the corresponding parent item.
|
|
395
|
+
* @returns The parent item associated with the provided layer.
|
|
387
396
|
* @since 5.2
|
|
388
397
|
*/
|
|
389
398
|
findParentItem(layer: SelectableLayer): Promise<null | undefined | ParentItem>;
|