import type { CSSResultGroup, PropertyValues } from 'lit'; import DSAIcon from '../icon/icon'; import { ShoelaceElement } from '../../internal/shoelace-element'; /** * @summary Download links allow user to download a document. * @documentation https://dsa.service-public-autonomie.fr/latest/librairie-webcomponents/telechargement-de-fichier-s-file-download/lien-de-telechargement-download-link/web-VPKTnMc2 * * @dependency dsa-icon * * @slot - The link's label. * * @event dsa-blur - Emitted when the link loses focus. * @event dsa-focus - Emitted when the link gains focus. * */ export default class DSADownloadLink extends ShoelaceElement { static styles: CSSResultGroup; static dependencies: { 'dsa-icon': typeof DSAIcon; }; /** The href of the document */ href: string; /** The document format */ format: string; /** The document size */ documentSize: string; /** The link's theme variant. TODO : remove `contrasted` in the next major release*/ variant: 'base' | 'layer' | 'contrasted' | 'floating'; /** The link's size. */ size: '2xsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge'; /** The name of the downloaded file */ filename: string; private cachedDocumentInfo; protected willUpdate(changedProperties: PropertyValues): void; private handleFocus; private handleBlur; render(): import("lit").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'dsa-download-link': DSADownloadLink; } }