import type Accessor from "../../../core/Accessor.js"; import type SelectionListViewModel from "./SelectionListViewModel.js"; import type { Icon } from "@esri/calcite-components/components/calcite-icon"; import type { SelectableLayer, SelectableLayerView, SelectableViewUnion } from "../../../views/selection/types.js"; import type { SelectionListParentLayerUnion } from "./types.js"; /** Properties used to construct an ItemBase instance. */ export interface ItemBaseProperties extends Partial> { /** Layer associated with the item. */ layer?: SelectableLayer | SelectionListParentLayerUnion; } /** * Base class for selection list items. * * @since 5.2 */ export default class ItemBase extends Accessor { constructor(properties: ItemBaseProperties); /** Icon used to represent the item. */ get iconName(): Icon["icon"]; /** Indicates this item represents a table layer. */ get isTable(): boolean; /** Unique identifier used for the item. */ get key(): string; /** Layer associated with the item. */ get layer(): SelectableLayer | SelectionListParentLayerUnion; /** Indicates the layer and its selected features are visible on the map. */ get layerIsVisible(): boolean; /** Companion layer view of the associated layer. */ get layerView(): SelectableLayerView | null | undefined; /** Text used in the interface for the item. */ get title(): string | null | undefined; /** Convenience property for the view associated with the view model. */ get view(): SelectableViewUnion | null | undefined; /** * Used to look up information about the selections. * * @internal */ accessor viewModel: SelectionListViewModel; }