import type Collection from "../core/Collection.js"; import type Item from "./Item.js"; import type CatalogLayer from "../layers/CatalogLayer.js"; import type { EventedAccessor } from "../core/Evented.js"; import type { LayerListModelEvents } from "./LayerListModel.js"; import type { Action, ItemModifier, State, ItemProperties } from "./types.js"; import type { MapViewOrSceneView } from "../views/MapViewOrSceneView.js"; import type { ReadonlyArrayOrCollection } from "../core/Collection.js"; /** @internal */ export interface CatalogLayerListModelProperties extends Partial> { /** * The collection of [Items](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) representing the * catalog layer's dynamic-group layers. * * @internal */ catalogItems?: ReadonlyArrayOrCollection; } /** @internal */ export interface CatalogLayerListModelEvents extends LayerListModelEvents {} /** * Provides list orchestration logic for catalog-layer list workflows. * * @internal */ export default class CatalogLayerListModel extends EventedAccessor { /** @internal */ "@eventTypes": CatalogLayerListModelEvents; /** @internal */ constructor(properties?: CatalogLayerListModelProperties); /** * The collection of [Items](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) representing the * catalog layer's dynamic-group layers. * * @internal */ get catalogItems(): Collection; set catalogItems(value: ReadonlyArrayOrCollection); /** * The [CatalogLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/) to display in the list. * * @internal */ accessor catalogLayer: CatalogLayer | null | undefined; /** * Whether to provide an indication if a layer is being published. * The [Item.publishing](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/#publishing) property * is `false` if `checkPublishStatusEnabled` is `false`. * * @default false * @internal */ accessor checkPublishStatusEnabled: boolean; /** * A function that executes each time a [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) is created. * * @internal */ accessor listItemCreatedFunction: ItemModifier | null | undefined; /** * Specifies whether to ignore the [Layer.listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property to display all layers. * * @default false * @internal * @since 5.2 * @see [Layer.listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) */ accessor listModeDisabled: boolean; /** * The view model's state. * * @default "disabled" * @internal */ get state(): State; /** * The view context for this view model. * * @internal */ accessor view: MapViewOrSceneView | null | undefined; /** * Triggers the `trigger-action` event and executes * the given [action](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or [action toggle](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionToggle/). * * @param action - The action to execute. * @param item - An item associated with the action. * @internal */ triggerAction(action: Action, item: Item): void; }