@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
66 lines (65 loc) • 2.72 kB
TypeScript
import type { JSX } from '../../stencil-public-runtime';
import type { HasSettingsMenuPropType, KoliBriTableHeaderCell, LabelPropType, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatelessAPI, TableStatelessStates } from '../../schema';
export declare class KolTableStateless implements TableStatelessAPI {
private readonly host?;
private readonly translateNoEntries;
state: TableStatelessStates;
private tableDivElement?;
private tableDivElementResizeObserver?;
private horizontal;
private cellsToRenderTimeouts;
private dataToKeyMap;
private checkboxRefs;
private translateSort;
private translateSortOrder;
private tableDivElementHasScrollbar;
private previousHeaderCells?;
_data: TableDataPropType;
_dataFoot?: TableDataFootPropType;
_headerCells: TableHeaderCellsPropType;
_label: string;
_on?: TableCallbacksPropType;
_selection?: TableSelectionPropType;
_hasSettingsMenu?: HasSettingsMenuPropType;
validateHasSettingsMenu(value?: HasSettingsMenuPropType): void;
validateData(value?: TableDataPropType): void;
validateDataFoot(value?: TableDataFootPropType): void;
validateHeaderCells(value?: TableHeaderCellsPropType): void;
validateLabel(value?: LabelPropType): void;
validateOn(value?: TableCallbacksPropType): void;
validateSelection(value?: TableSelectionPropType): void;
handleKeyDown(event: KeyboardEvent): void;
componentDidRender(): void;
componentDidLoad(): void;
handleSettingsChange(event: CustomEvent<KoliBriTableHeaderCell[][]>): void;
disconnectedCallback(): void;
private checkDivElementScrollbar;
private updateDataToKeyMap;
private getDataKey;
private cellRender;
private getNumberOfCols;
private getNumberOfRows;
private getThePrimaryHeadersWithKeyOrRenderFunction;
private getPrimaryHeaders;
private createDataField;
private handleSelectionChangeCallbackAndEvent;
private initializeHeaderCellSettings;
componentWillLoad(): void;
private renderSelectionCell;
private readonly renderTableRow;
private readonly renderTableCell;
private getSelectionKeyPropertyName;
private getDataWithSelectionEnabled;
private getSelectedKeysWithoutDisabledKeys;
private getSelectedKeysWithDisabledKeysOnly;
private getRevertedSelection;
private getTableMinWidth;
private renderHeadingSelectionCell;
private renderHeaderTdCell;
private formatSortOrderDescription;
private getSortAriaDescription;
private renderHeadingCell;
private renderSpacer;
private renderFoot;
render(): JSX.Element;
}