UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

68 lines (67 loc) 2.81 kB
import type { JSX } from '../../stencil-public-runtime'; import type { LabelPropType, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableSettings, TableStatelessAPI, TableStatelessStates } from '../../schema'; import type { MinWidthPropType } from '../../schema/props/min-width'; import type { TableSettingsPropType } from '../../schema/props/table-settings'; export declare class KolTableStateless implements TableStatelessAPI { private readonly host?; state: TableStatelessStates; private tableDivElement?; private tableDivElementResizeObserver?; private horizontal; private cellsToRenderTimeouts; private dataToKeyMap; private checkboxRefs; private tableDivElementHasScrollbar; private previousHeaderCells?; _data: TableDataPropType; _dataFoot?: TableDataFootPropType; _headerCells: TableHeaderCellsPropType; _label: string; _minWidth: MinWidthPropType; _on?: TableCallbacksPropType; _selection?: TableSelectionPropType; _tableSettings?: TableSettingsPropType; validateData(value?: TableDataPropType): void; validateDataFoot(value?: TableDataFootPropType): void; validateHeaderCells(value?: TableHeaderCellsPropType): void; validateLabel(value?: LabelPropType): void; validateMinWidth(value?: MinWidthPropType): void; validateOn(value?: TableCallbacksPropType): void; validateSelection(value?: TableSelectionPropType): void; validateTableSettings(value?: TableSettingsPropType): void; handleKeyDown(event: KeyboardEvent): void; componentDidRender(): void; componentDidLoad(): void; handleSettingsChange(event: CustomEvent<TableSettings>): void; disconnectedCallback(): void; private checkDivElementScrollbar; private updateDataToKeyMap; private getDataKey; private cellRender; private getNumberOfCols; private getNumberOfRows; private getThePrimaryHeadersWithKeysIfExists; private getPrimaryHeaders; private getColumnPositionMap; private sortByColumnPosition; private createDataField; private handleSelectionChangeCallbackAndEvent; private initializeTableSettings; componentWillLoad(): void; private renderSelectionCell; private readonly renderTableRow; private getColumnSettings; private readonly renderTableCell; private getSelectionKeyPropertyName; private getDataWithSelectionEnabled; private getSelectedKeysWithoutDisabledKeys; private getSelectedKeysWithDisabledKeysOnly; private getRevertedSelection; private getTableMinWidth; private renderHeadingSelectionCell; private renderHeaderTdCell; private renderHeadingCell; private renderSpacer; private renderFoot; render(): JSX.Element; }