import './data-grid-field.js'; import './data-grid-accum-field.js'; import { LitElement, PropertyValues } from 'lit'; import { ColumnConfig, GristConfig, GristData, GristRecord } from '../types.js'; import { DataGridField } from './data-grid-field.js'; export declare class DataGridBody extends LitElement { debounce: import("lodash").DebouncedFunc<(scrollTop: number, clientHeight: number) => void>; static styles: import("lit").CSSResult[]; config: GristConfig; columns: ColumnConfig[]; data: GristData; /** The empty row shown after the records when rows can be appended - the grid's own (`DataManipulator.appendRecord`). */ appendRecord: GristRecord; focused: { row: number; column: number; }; /** * Where this body's first row sits in the whole table, counting from 1. * * It combines header row count and page offset, so ox-grid computes it and passes it down — * working it out here would mean the body has to know whether the header is one row or two. */ ariaRowIndexBase: number; editTarget: { row: number; column: number; valueWith: string | null; } | null; from: number; to: number; fixedLefts: number[]; _selectBlock?: { start: DataGridField; end?: DataGridField; }; selectBlock?: HTMLDivElement; focusedField?: DataGridField; private _focusedListener?; private _recordView?; private _recordViewRow?; private _draggable?; private _gridElement?; private _imeBuffer?; _imeComposing: boolean; _imeEditing: boolean; _lastPointerTouch: boolean; private get _hasEditableColumn(); resetEdit(): void; handleOnScroll(e: WheelEvent): void; render(): import("lit-html").TemplateResult<1>; firstUpdated(): void; get scroller(): HTMLElement; connectedCallback(): void; disconnectedCallback(): void; _onFetchParamsChange: EventListener; private _hoveredRow; /** 지나는 줄을 옮긴다. 같은 줄이면 아무것도 하지 않는다. */ private setHoveredRow; /** * One row — the element holding that row's cells. * * This used to index `renderRoot.children` at `rowIndex * (columns + 1)`, where the +1 was the * width filler; the comment above it existed to explain why that arithmetic was necessary. The * code only worked while the count stayed correct. * * Rows are real elements now (role=row), so there is nothing to count. */ private rowElementAt; private markRow; getFieldByIndex(rowIndex: number, columnIndex: number, residue?: boolean): DataGridField | undefined; /** * 칸의 **팝업 표식**을 눌렀다 — 그 칸의 편집을 연다. * * 더블클릭과 같은 자리로 들어간다. 표식은 한 번 누르는 22px 표적이고, 33px 줄에서 더블클릭을 * 겨누는 것보다 쉽다. 더블클릭도 그대로 둔다 — 이미 아는 사람의 길을 막지 않는다. */ private onStartEdit; startEditTarget(row: number, column: number, valueWith?: string | null): void; shouldUpdate(changes: any): boolean; updated(changes: PropertyValues): void; focus(): void; popupRecordView({ record, row }: { row: number; record: GristRecord; }): void; getSelectedBlockValues(): { html: string; text: string; } | undefined; copy(): Promise; paste(): Promise; /** * The rows a paste of `count` rows from `row` writes to, settled before any cell is applied - applying one can add * a row. Rows past the end are new rows, the append row first, and only where a paste may add rows (`pasteAppendable`). A new row joins * the records with its first applied cell, so cells that are blank, read-only or rejected add no empty row. */ private pasteTargets; setSelectBlock(start?: DataGridField, end?: DataGridField): void; buildAccumulatorRecord(): GristRecord; /** * Which cell the IME buffer currently stands in for — the name a screen reader reads. * * The name comes from the column definition alone (columnText). When focus is on no cell, or the * column yields no name, it falls back to "cell input" — no invented name, and no empty one. */ private _imeBufferLabel; /** IME buffer를 포커스된 셀 위에 위치시킨다 */ /** The focused cell's hint: its column's record.hint, while that cell can be edited and no block is selected. */ private _hintAt; /** Under the focused cell, or over it when the space under it is out of the visible body. */ private _positionFieldHint; private _positionIMEBuffer; /** IME buffer 값을 field-change 이벤트로 커밋한다 */ _commitIMEBuffer(row: number, column: number): void; /** IME buffer 취소 (값 버리기) */ _discardIMEBuffer(): void; /** IME buffer 초기화 */ private _resetIMEBuffer; }