@arcgis/map-components
Version:
ArcGIS Map Components
83 lines (81 loc) • 3.95 kB
TypeScript
/// <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 Feature } from '@arcgis/core/widgets/Feature.js';
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
import { ArcgisReferenceElement } from '../../utils/component-utils';
declare const useFeatureWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
manager: import('@arcgis/components-controllers').ControllerManager;
el: HTMLElement;
autoDestroyDisabled?: boolean;
destroy?: () => Promise<void>;
} & Pick<Feature, never> & {
reactiveUtils?: typeof __esri.reactiveUtils;
state?: unknown;
viewModel?: __esri.FeatureViewModel | undefined;
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.FeatureProperties | undefined): __esri.FeatureProperties | Promise<__esri.FeatureProperties | undefined> | undefined;
} | undefined) => Feature;
/** Feature component displays a graphic according to its [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html). This component is useful in instances where you want to display information about a feature but without the use of a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html).
*/
export declare class ArcgisFeature 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;
defaultPopupTemplateEnabled: boolean;
graphic: nullish | __esri.Graphic;
headingLevel: number;
hideContentAttachments: boolean | undefined;
hideContentExpression: boolean | undefined;
hideContentFields: boolean | undefined;
hideContentMedia: boolean | undefined;
hideContentText: boolean | undefined;
hideLastEditInfo: boolean | undefined;
hideTitle: 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;
location: __esri.Point | nullish;
map: __esri.Map | nullish;
position: __esri.UIPosition;
referenceElement: ArcgisReferenceElement | Nil | string;
spatialReference: nullish | __esri.SpatialReference;
readonly state: "ready" | "loading" | "disabled" | "error";
/** Permanently destroy the component */
destroy(): Promise<void>;
nextMedia(contentElementIndex: number): Promise<void>;
previousMedia(contentElementIndex: number): Promise<void>;
setActiveMedia(contentElementIndex: number, mediaInfoIndex: number): Promise<void>;
readonly arcgisPropertyChange: TargetedEvent<this, {
name: "state";
}>;
readonly arcgisReady: TargetedEvent<this, undefined>;
}
export {};