@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
58 lines (57 loc) • 1.76 kB
TypeScript
import ShareManager from '../../tools/share/sharemanager';
import { IUrlShortener } from './tools/iurlshortener';
import GirafeHTMLElement from '../../base/GirafeHTMLElement';
declare class ShareComponent extends GirafeHTMLElement {
template: () => import("uhtml").Hole;
visible: boolean;
loading: boolean;
shareLink?: string;
qrCode?: string;
success: boolean;
twitterLogo: string;
facebookLogo: string;
linkedInLogo: string;
mailLogo: string;
iframeUrl?: string;
iframeCode?: string;
shareManager: ShareManager;
urlShortener?: IUrlShortener;
private readonly mapManager;
private simpleMaskManager?;
private readonly eventsCallbacks;
iframeSize: 'small' | 'medium' | 'large' | '';
get iframeWidth(): 400 | 600 | 800;
get iframeHeight(): 300 | 600 | 450;
constructor();
initializeShortenerService(): void;
render(): void;
/**
* Renders the component by calling the necessary methods.
* @private
*/
private renderComponent;
/**
* Renders an empty component when it's not visible.
* @private
*/
private renderEmptyComponent;
private registerEvents;
private unregisterEvents;
private generateShareLink;
setIframeCode(): void;
closeWindow(): void;
shareFacebook(): void;
shareTwitter(): void;
shareLinkedIn(): void;
shareMail(): void;
copyToClipboard(type: 'short' | 'iframe'): void;
onSizeChanged(event: Event): void;
/**
* Displays a greyed out area in the main map indicating the size of the embedded map.
*/
private showMapPreview;
private hideMapPreview;
private showCopySuccessEffect;
connectedCallback(): void;
}
export default ShareComponent;