/// /// import { ExportOutput, PopoverPlacement } from '../../interfaces/interfaces'; import { PropertyValues } from 'lit'; import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina'; export declare class InstantAppsExport extends LitElement { /** File types allowed for export. */ allowedFileTypes: ("JPG" | "PDF" | "PNG")[]; /** Output to use to set up export. */ output?: ExportOutput; /** Passes the initial function to run when the Export button is clicked. */ beforeExport: () => Promise; /** * Update popover button icon. * * @default "export" */ popoverIcon?: string; /** Extra content that will be added below the view. */ extraContent?: HTMLElement; /** Custom label for `extraContent` checkbox. */ extraContentLabel?: string; /** * Export header name, updated in input. * * @default "" */ headerTitle?: string; /** * Image URL for logo in export's header. * * @default "" */ logoImage?: string; /** Alt text for logo in export's header. */ logoAltText?: string; /** * Alt text for map img. * * @default "" */ mapAltText?: string; /** * When `true`, `extraContent` HTML element is included in the PDF. * * @default true */ includeExtraContent?: boolean; /** * When `true` and `selectedFileType` if JPG or PNG, `extraContent` HTML element is shown to the right of the map. * * @default false */ showExtraContentInImg?: boolean; /** * When `true`, legend is included in the export. * * @default true */ includeLegend?: boolean; /** * When `true`, map is included in the export. * * @default true */ includeMap?: boolean; /** * When `true`, popup is included in the export. * * @default false */ includePopup?: boolean; /** * When `true`, user has ability to select the file format to be PDF or an image. * * @default true */ includeFileFormat?: boolean; /** * Renders tool as a popover with a trigger button, or inline to place in a custom container. * * @default "popover" */ mode: "inline" | "popover"; /** * Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` value should be used to escape an overflowing parent container, or when the reference element's position CSS property is `"fixed"`. * * @default "absolute" */ popoverPositioning?: "absolute" | "fixed"; /** * Determines where the component will be positioned relative to the `referenceElement`. * * @default "auto" */ popoverPlacement?: PopoverPlacement; /** * Adjusts the scale of the action button. * * @default "m" */ scale?: "l" | "m" | "s"; /** * Show header title input in export tool. * * @default true */ showHeaderTitle?: boolean; /** * Show include legend checkbox in export tool. * * @default true */ showIncludeLegend?: boolean; /** * Show include map checkbox in export tool. * * @default false */ showIncludeMap?: boolean; /** * Show popup checkbox in export tool. * * @default true */ showIncludePopup?: boolean; /** * Show scale bar widget in map if view has it. * * @default false */ showScaleBar?: boolean; /** A reference to the MapView or SceneView. */ view: __esri.MapView | __esri.SceneView | undefined; /** * Adjust the mask background color for when users are setting the map area * * @default "rgba(255, 51, 0, 0.1)" */ maskBackground: string; /** * Adjust the mask border for when users are setting the map area * * @default "2px dashed rgb(255, 51, 0)" */ maskBorder: string; /** Default file type to export. */ defaultFileType?: "JPG" | "PDF" | "PNG"; /** * When `false`, the extra content will not be cloned for the export. * * @default true */ cloneExtraContent: boolean; /** Emits when the instant-apps-export's output prop is updated after the "Export" button is clicked. */ readonly exportOutputUpdated: TargetedEvent; /** Emits after export is complete. */ readonly afterExport: TargetedEvent; }