UNPKG

@arcgis/map-components

Version:
88 lines (86 loc) 3.8 kB
/// <reference types="@arcgis/core/interfaces.d.ts" /> /// <reference types="../../index.d.ts" /> import { Use } from '@arcgis/components-controllers'; import { Nil } from '@arcgis/components-utils'; import { default as ValuePicker } from '@arcgis/core/widgets/ValuePicker.js'; import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina'; import { ArcgisReferenceElement } from '../../utils/component-utils'; declare const useValuePickerWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & { manager: import('@arcgis/components-controllers').ControllerManager; el: HTMLElement; autoDestroyDisabled?: boolean; destroy?: () => Promise<void>; } & Pick<ValuePicker, never> & { reactiveUtils?: typeof __esri.reactiveUtils; state?: unknown; viewModel?: unknown; icon: Nil | string; label: Nil | string; referenceElement: ArcgisReferenceElement | Nil | string; position: __esri.UIPosition; arcgisReady: import('@arcgis/components-controllers').EventEmitter; arcgisPropertyChange: import('@arcgis/components-controllers').EventEmitter<{ name: string; }> | undefined; el: HTMLElement & { childElem?: HTMLElement & { ownedBy?: HTMLElement; }; view?: __esri.MapView | __esri.SceneView | Nil; }; autoDestroyDisabled: boolean; destroy: () => Promise<void>; }, options?: { editConstructorProperties(props: __esri.ValuePickerProperties | undefined): __esri.ValuePickerProperties | Promise<__esri.ValuePickerProperties | undefined> | undefined; } | undefined) => ValuePicker; /** * @internal */ export declare class ArcgisValuePicker extends LitElement { /** * If true, the component will not be destroyed automatically when it is * disconnected from the document. This is useful when you want to move the * component to a different place on the page, or temporarily hide it. If this * is set, make sure to call the \`destroy\` method when you are done to prevent * memory leaks. */ autoDestroyDisabled: boolean; canNext: boolean; canPlay: boolean; canPrevious: boolean; caption: string | nullish; component: nullish | __esri.ValuePickerCollection | __esri.ValuePickerCombobox | __esri.ValuePickerLabel | __esri.ValuePickerSlider; hideNextButton: boolean | undefined; hidePlayButton: boolean | undefined; hidePreviousButton: boolean | undefined; /** * Icon which represents the component. * Typically used when the component is controlled by another component (e.g. by the Expand component). * Search [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/) for possible values. */ icon: string; /** The component's default label. */ label: string | nullish; layout: "vertical" | "horizontal"; loop: boolean; playRate: number; position: __esri.UIPosition; referenceElement: ArcgisReferenceElement | Nil | string; values: any[] | nullish | number[] | string[]; /** Permanently destroy the component */ destroy(): Promise<void>; next(): Promise<void>; pause(): Promise<void>; play(): Promise<void>; previous(): Promise<void>; readonly arcgisAnimate: TargetedEvent<this, __esri.ValuePickerAnimateEvent>; readonly arcgisNext: TargetedEvent<this, __esri.ValuePickerNextEvent>; readonly arcgisPause: TargetedEvent<this, __esri.ValuePickerPauseEvent>; readonly arcgisPlay: TargetedEvent<this, __esri.ValuePickerPlayEvent>; readonly arcgisPrevious: TargetedEvent<this, __esri.ValuePickerPreviousEvent>; readonly arcgisPropertyChange: TargetedEvent<this, { name: "values"; }>; readonly arcgisReady: TargetedEvent<this, undefined>; } export {};