@arcgis/map-components
Version:
ArcGIS Map Components
81 lines (79 loc) • 3.65 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 Print } from '@arcgis/core/widgets/Print.js';
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
import { ArcgisReferenceElement } from '../../utils/component-utils';
declare const usePrintWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
manager: import('@arcgis/components-controllers').ControllerManager;
el: HTMLElement;
autoDestroyDisabled?: boolean;
destroy?: () => Promise<void>;
} & Pick<Print, never> & {
reactiveUtils?: typeof __esri.reactiveUtils;
state?: unknown;
viewModel?: __esri.PrintViewModel | 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.PrintProperties | undefined): __esri.PrintProperties | Promise<__esri.PrintProperties | undefined> | undefined;
} | undefined) => Print;
/** Print component connects your application with a [printing service](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-the-portal-to-print-maps.htm) to allow the map to be printed.
*/
export declare class ArcgisPrint extends LitElement {
allowedFormats: string | string[];
allowedLayouts: string | string[];
/**
* 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;
exportedLinks: __esri.Collection<__esri.FileLink>;
extraParameters: any;
headingLevel: number;
/**
* 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;
/** @default false */
includeDefaultTemplatesDisabled: boolean;
/** The component's default label. */
label: string;
portal: __esri.Portal;
position: __esri.UIPosition;
printServiceUrl: string | nullish;
referenceElement: ArcgisReferenceElement | Nil | string;
showPrintAreaEnabled: boolean;
readonly state: "ready" | "disabled" | "error" | "initializing";
templateCustomTextElements: nullish | HashMap<HashMap<string>[]>;
templateOptions: __esri.TemplateOptions;
/** Permanently destroy the component */
destroy(): Promise<void>;
readonly arcgisComplete: TargetedEvent<this, __esri.PrintCompleteEvent>;
readonly arcgisPropertyChange: TargetedEvent<this, {
name: "state";
}>;
readonly arcgisReady: TargetedEvent<this, undefined>;
readonly arcgisSubmit: TargetedEvent<this, __esri.PrintSubmitEvent>;
}
export {};