import { EventEmitter } from "../../stencil-public-runtime"; import { StzhDatatableCellClickEvent, StzhDatatableCellData, StzhDatatableColumnData, StzhDatatableHeadingCellClickEvent, StzhDatatableInputRowData, StzhDatatableRowClickEvent, StzhDatatableSortByChangeEvent, StzhDatatableSortClickEvent, StzhDatatableSortDirectionChangeEvent } from "../../index"; import { StzhDatatableLocalizedText } from "./stzh-datatable.localization"; /** * @slot heading - Slot for the heading element * @slot action-button - Slot for action `stzh-button` element */ export declare class StzhDatatable { /** Table layout */ tableLayout: "auto" | "fixed"; /** Translation strings */ localization: StzhDatatableLocalizedText; /** Keep an additional horizontal scrollbar at the bottom of the viewport. */ stickyScrollbar: boolean; /** Label */ label: string; /** Caption for screenreader */ caption: string; /** Sort by given column key */ sortBy: string; /** Sort direction */ sortDirection: "asc" | "desc" | null; /** Tokenize type */ /** ID field */ idField: string; /** Row header field when list is used (`showList=true`) */ rowHeaderField: string; hideSearch: boolean; hideColumnHeadings: boolean; /** Whether to show table data as list on medium or smaller breakpoint */ showList: boolean; /** Initially displayed page when a pagination with multiple pages is shown. */ page: number; /** If pagination should be shown, set a number of items to be shown by each page. */ pageSize: number; /** URL of the CSV data */ csvUrl: string; /** Whether csv has header row */ csvHeader: boolean; /** Whether csv has dynamic typing enabled */ csvDynamicTyping: boolean; /** * Whether to disable min-width of the table. * * If `false`, the default `min-width` is `700px` * If `true`, the `min-width` is `none`, so the table will try to squeeze down content as much as possible. * * You can also overwrite the min-width via CSS with the custom property `--min-width`. */ disableMinWidth: boolean; /** * Array of objects including the row data that must at least include `id` attribute (name can be changed with `idField` property). * * Example: [{"id":"1","text":"Foo"}, ...] */ rows: StzhDatatableInputRowData[] | StzhDatatableCellData[][] | string; private _rows; private _rowsShown; private _rowsFiltered; private _displayAdapter; private _isoAdapter; /** * Array of objects including the columns data that must include `key` and `text` attribute. * * Example: [{ "key": "id", "text": "ID", "align": "right", "sort": true, "fixed": "right", style: { width: "53px" } }] */ columns: StzhDatatableColumnData[] | string; private _columns; query: string; hasScrollLeft: boolean; hasScrollRight: boolean; isScrollable: boolean; cellsStickyLeft: number[]; cellsStickyRight: number[]; element: HTMLStzhDatatableElement; /** Datatable row click event */ stzhRowClick: EventEmitter; /** Datatable cell click event */ stzhCellClick: EventEmitter; /** Datatable heading cell click event */ stzhHeadingCellClick: EventEmitter; /** Datatable sort click event */ stzhSortClick: EventEmitter; /** Datatable sort by change event */ stzhSortByChange: EventEmitter; /** Datatable sort direction change event */ stzhSortDirectionChange: EventEmitter; /** Toggle sort by a given column key like when clicking on a column header */ toggleSort(columnKey: string): Promise; csvUrlsWatcher(newUrl: string): Promise; rowsWatcher(newValue: StzhDatatableInputRowData[] | StzhDatatableCellData[][] | string): void; private parseStringToDate; columnsWatcher(newValue: StzhDatatableColumnData[] | string): void; sortByWatcher(value: string, oldValue: string): void; sortDirectionWatcher(value: "asc" | "desc" | null, oldValue: "asc" | "desc" | null): void; private input; private searchIndex; private tableWrapper; private scrollbarController; private debounceScroll; private debounceResize; private resizeObserver; private parseCsvToJson; private handleSortByDropdownChange; private handleSortDirectionDropdownChange; private handleRowClick; private handleCellClick; private handleHeadingCellClick; private handleSortClick; private updateScrollStates; private handleResize; private scheduleScrollUpdate; private buildSearchIndex; private parseDateValue; private getCellDisplayValue; private onInputChange; private onPaginationChange; componentWillLoad(): Promise; componentDidLoad(): void; componentDidRender(): void; componentWillRender(): void; connectedCallback(): void; disconnectedCallback(): void; render(): any; }