import { css, CSSResultGroup, html } from "lit"; import { GroupConsumer } from "../../hierarchy/consumers/GroupConsumer"; import { t } from "i18next"; import { T } from "../../translations/Languages"; import { customElement } from "lit/decorators.js"; @customElement("group-download-dropdown") export class GroupDownloadDropdown extends GroupConsumer { static styles?: CSSResultGroup | undefined = css` `; protected render(): unknown { const dropdownClass = this.classList.contains( "small" ) ? "small" : ""; return html` ${t(T.download)}
this.group.files.downloadAllFiles()}>${t(T.downloadoriginalfiles)} ${t(T.downloadoriginalfileshint)}
this.group.forEveryInstance(instance => instance.export.downloadPng())}>${t(T.pngofindividualimages)} ${t(T.pngofindividualimageshint)}
this.group.analysisSync.png.downloadPng({ // columns: this.columns })}>${t(T.pngofentiregroup)} ${t(T.pngofentiregrouphint)}
{ this.group.analysisSync.csv.downloadAsCsv() }}>${t(T.csvofanalysisdata)} ${t(T.csvofanalysisdatahint)}
`; } }