import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; import { AKPagination } from "../../api/Client"; import { t } from "@lingui/macro"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; import PFPagination from "@patternfly/patternfly/components/Pagination/pagination.css"; import AKGlobal from "../../authentik.css"; @customElement("ak-table-pagination") export class TablePagination extends LitElement { @property({attribute: false}) pages?: AKPagination; @property({attribute: false}) // eslint-disable-next-line pageChangeHandler: (page: number) => void = (page: number) => {} static get styles(): CSSResult[] { return [PFBase, PFButton, PFPagination, AKGlobal]; } render(): TemplateResult { return html`
${this.pages?.startIndex} - ${this.pages?.endIndex} of ${this.pages?.count}
`; } }