open-grid 1.6.1 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/dist/ExportProgressView-BYPw8osg.cjs +2 -0
- package/dist/ExportProgressView-Bt5-z7rE.js +2 -0
- package/dist/LcpMergeOrderer-CeP6C6G1.cjs +2 -0
- package/dist/LcpMergeOrderer-Ebwuir-r.js +2 -0
- package/dist/OpenGrid-Bh1NMOcm.cjs +98 -0
- package/dist/OpenGrid-CeXt04ho.js +98 -0
- package/dist/Registry-CrT46EAO.js +2 -0
- package/dist/Registry-DpHOpU5V.cjs +2 -0
- package/dist/XlsxChannel-CuOZ3LQz.js +2 -0
- package/dist/XlsxChannel-DQHLGend.cjs +2 -0
- package/dist/XlsxWorkbookWriter-DixuNGtw.cjs +3 -0
- package/dist/XlsxWorkbookWriter-VgbibI0Z.js +3 -0
- package/dist/fflate-Cs3txMgg.js +2 -0
- package/dist/fflate-G9RAFEgF.cjs +2 -0
- package/dist/index-1OXjJmct.js +2 -0
- package/dist/index-B5V7e4Xc.js +2 -0
- package/dist/index-DbKDox8y.cjs +2 -0
- package/dist/index-HaDoF1HM.cjs +2 -0
- package/dist/open-grid-react.cjs +1 -27
- package/dist/open-grid-react.js +1 -30
- package/dist/open-grid-vue.cjs +1 -31
- package/dist/open-grid-vue.js +1 -33
- package/dist/open-grid.cjs +6 -275
- package/dist/open-grid.js +6 -293
- package/dist/sinks-BCZFMGQJ.cjs +2 -0
- package/dist/sinks-qkBJ5bKn.js +2 -0
- package/dist/types/core/CFRenderBridge.d.ts +5 -1
- package/dist/types/core/CellEditManager.d.ts +26 -2
- package/dist/types/core/CellEventHandler.d.ts +6 -2
- package/dist/types/core/ColumnLayout.d.ts +8 -0
- package/dist/types/core/DataLayer.d.ts +48 -1
- package/dist/types/core/DetailManager.d.ts +43 -2
- package/dist/types/core/ExportManager.d.ts +25 -0
- package/dist/types/core/FindBarManager.d.ts +6 -2
- package/dist/types/core/FlatRowModel.d.ts +61 -3
- package/dist/types/core/FooterManager.d.ts +43 -1
- package/dist/types/core/FormulaController.d.ts +4 -4
- package/dist/types/core/GridComposer.d.ts +11 -1
- package/dist/types/core/GridRenderer.d.ts +84 -19
- package/dist/types/core/GroupTreeManager.d.ts +6 -4
- package/dist/types/core/KeyboardManager.d.ts +3 -2
- package/dist/types/core/MutationService.d.ts +10 -8
- package/dist/types/core/OpenGrid.d.ts +7 -5
- package/dist/types/core/RangeSelectionManager.d.ts +23 -2
- package/dist/types/core/RenderController.d.ts +126 -8
- package/dist/types/core/SortFilterManager.d.ts +10 -2
- package/dist/types/core/VirtualScroll.d.ts +12 -0
- package/dist/types/core/coordinate/CellTextPolicy.d.ts +58 -0
- package/dist/types/core/coordinate/ColumnGeometry.d.ts +60 -0
- package/dist/types/core/coordinate/ColumnWindow.d.ts +40 -0
- package/dist/types/core/coordinate/ColumnWindowPolicy.d.ts +89 -0
- package/dist/types/core/coordinate/ExtraColumns.d.ts +39 -0
- package/dist/types/core/coordinate/RangeRectCalculator.d.ts +35 -0
- package/dist/types/core/coordinate/ViewportHeightJudge.d.ts +28 -0
- package/dist/types/core/coordinate/geometryPorts.d.ts +250 -0
- package/dist/types/core/coordinate/ports.d.ts +5 -0
- package/dist/types/core/domain/footer/FooterValues.d.ts +50 -0
- package/dist/types/core/domain/footer/ports.d.ts +31 -0
- package/dist/types/core/domain/render/RenderPlanner.d.ts +17 -0
- package/dist/types/core/domain/render/RenderRequest.d.ts +91 -0
- package/dist/types/core/domain/render/ports.d.ts +169 -0
- package/dist/types/core/domain/resize/ResizeGesture.d.ts +25 -0
- package/dist/types/core/domain/resize/ResizeHitZone.d.ts +23 -0
- package/dist/types/core/domain/resize/ports.d.ts +64 -0
- package/dist/types/core/domain/sort/ComparisonOrderer.d.ts +11 -0
- package/dist/types/core/domain/sort/LcpMergeOrderer.d.ts +15 -0
- package/dist/types/core/domain/sort/RankIndex.d.ts +74 -0
- package/dist/types/core/domain/sort/SortCostEstimate.d.ts +36 -0
- package/dist/types/core/domain/sort/SortKeyColumn.d.ts +89 -0
- package/dist/types/core/domain/sort/SortKeyStore.d.ts +34 -0
- package/dist/types/core/domain/sort/Sorter.d.ts +54 -0
- package/dist/types/core/domain/sort/SyncSortRunner.d.ts +9 -0
- package/dist/types/core/domain/sort/commonPrefix.d.ts +5 -0
- package/dist/types/core/domain/sort/ports.d.ts +140 -0
- package/dist/types/core/export/ExportProgressView.d.ts +28 -0
- package/dist/types/core/export/channels/XlsxChannel.d.ts +38 -1
- package/dist/types/core/export/channels/XlsxRichTextRun.d.ts +14 -0
- package/dist/types/core/export/channels/XlsxSheetXml.d.ts +19 -0
- package/dist/types/core/export/channels/XlsxStyleEntries.d.ts +80 -0
- package/dist/types/core/export/channels/XlsxStylesRegistry.d.ts +20 -0
- package/dist/types/core/export/channels/XlsxWorkbookWriter.d.ts +20 -0
- package/dist/types/core/export/channels/XlsxXml.d.ts +6 -0
- package/dist/types/core/export/index.d.ts +2 -0
- package/dist/types/core/export/sinks.d.ts +81 -0
- package/dist/types/core/export/types.d.ts +63 -0
- package/dist/types/core/host/archCheck.d.ts +16 -1
- package/dist/types/core/i18n/locales/en.d.ts +6 -0
- package/dist/types/core/i18n/locales/ko.d.ts +6 -0
- package/dist/types/core/i18n/types.d.ts +8 -0
- package/dist/types/core/render/FooterView.d.ts +121 -0
- package/dist/types/core/render/GeometryApplier.d.ts +55 -0
- package/dist/types/core/render/HorizontalReveal.d.ts +26 -0
- package/dist/types/core/render/RangeOverlayAdapter.d.ts +10 -0
- package/dist/types/core/render/RenderScheduler.d.ts +225 -0
- package/dist/types/core/render/ResizeSinkAdapter.d.ts +35 -0
- package/dist/types/core/render/ScrollFollower.d.ts +34 -0
- package/dist/types/core/render/ScrollObserver.d.ts +47 -0
- package/dist/types/core/render/ScrollbarGutter.d.ts +19 -0
- package/dist/types/core/render/body/BodyEventRouter.d.ts +58 -0
- package/dist/types/core/render/body/BodyRowSet.d.ts +28 -0
- package/dist/types/core/render/body/BodyView.d.ts +185 -0
- package/dist/types/core/render/body/CellLocator.d.ts +36 -0
- package/dist/types/core/render/body/CellRegistry.d.ts +24 -0
- package/dist/types/core/render/body/ColumnPaintPlan.d.ts +19 -0
- package/dist/types/core/render/body/ExtraCellPainters.d.ts +20 -0
- package/dist/types/core/render/body/rows/BodyRowContext.d.ts +138 -0
- package/dist/types/core/render/body/rows/DataRowPainter.d.ts +58 -0
- package/dist/types/core/render/body/rows/DetailRowPainter.d.ts +24 -0
- package/dist/types/core/render/body/rows/GroupRowPainter.d.ts +32 -0
- package/dist/types/core/render/body/rows/RowPainterTable.d.ts +24 -0
- package/dist/types/core/render/body/rows/WindowLayout.d.ts +38 -0
- package/dist/types/core/render/dom.d.ts +10 -0
- package/dist/types/core/render/header/HeaderSortIndicator.d.ts +39 -0
- package/dist/types/core/render/header/HeaderView.d.ts +84 -0
- package/dist/types/core/render/header/ResizeHandleBinder.d.ts +110 -0
- package/dist/types/core/render/ports.d.ts +218 -0
- package/dist/types/core/renderers/CellRenderer.d.ts +7 -0
- package/dist/types/core/types.d.ts +94 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/vue/OpenGrid.vue.d.ts +1 -1
- package/dist/xlsx.min-CMvrM6b4.cjs +138 -0
- package/dist/xlsx.min-i_b-4PvU.js +138 -0
- package/package.json +3 -8
- package/dist/OpenGrid-CLk8Vt7j.cjs +0 -7459
- package/dist/OpenGrid-D6YxCsnV.js +0 -7472
- package/dist/Registry-CPJYOqCn.js +0 -74
- package/dist/Registry-D74ZmdDz.cjs +0 -71
- package/dist/index-CeJ-0-80.cjs +0 -260
- package/dist/index-D0DJtKYI.cjs +0 -452
- package/dist/index-DnarQ4eR.js +0 -266
- package/dist/index-VkKgQ506.js +0 -481
- package/dist/xlsx.min-BQ1o3sB6.cjs +0 -11793
- package/dist/xlsx.min-Bbz2ZypC.js +0 -11794
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { IResizeSink } from '../../domain/resize/ports.js';
|
|
2
|
+
import { IColumnGeometry, IColumnWidthWriter } from '../../coordinate/geometryPorts.js';
|
|
3
|
+
import { IRenderScheduler } from '../ports.js';
|
|
4
|
+
/** 끌기 새 흐름에 필요한 협력자들(그리드가 한 번 넘겨 준다). / Collaborators of the live-resize flow. */
|
|
5
|
+
export interface ResizeBinderPorts {
|
|
6
|
+
/** 폭 주인(날 배열과 기하에 같은 정수를 쓴다). / The width owner (same integer to raw widths and geometry). */
|
|
7
|
+
readonly widths: IColumnWidthWriter;
|
|
8
|
+
readonly scheduler: IRenderScheduler;
|
|
9
|
+
readonly sink: IResizeSink;
|
|
10
|
+
readonly geometry: IColumnGeometry;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 머리글 너비 손잡이의 DOM 이벤트(누름 → 끌기 → 놓기)를 맡는 객체.
|
|
14
|
+
* 상태와 폭 계산은 헤드리스 상태 기계(`ResizeGesture`)가, 「이 점이 어느 컬럼의 손잡이인가」는 헤드리스 판정(`ResizeHitZone`)이 맡고,
|
|
15
|
+
* 이 객체는 DOM 이벤트를 그리로 옮기기만 한다.
|
|
16
|
+
* 손잡이를 놓은 뒤 따라오는 click 하나는 정렬로 넘기지 않는다(머리글 click 처리기가 `shouldSwallowClick` 으로 묻는다) —
|
|
17
|
+
* 너비를 조절하고 손을 떼는 순간 머리글이 정렬돼 자료가 뒤섞이는 일을 막으려고.
|
|
18
|
+
* 컬럼 경계 양쪽 몇 px 도 손잡이로 친다(경계 어느 쪽을 잡아도 경계 왼쪽 컬럼이 끌림). 그 자리는 요소·스타일시트 규칙을 더하지 않고
|
|
19
|
+
* 머리글에 단 위임 듣개 하나가 포인터 자리를 판정해, 손잡이 영역이면 그 th 에 커서를 잠깐 쓰고 누르면 끌기를 시작한다.
|
|
20
|
+
* 협력자(`connect`)를 받은 뒤로 끄는 동안에는 폭 주인에게 폭을 쓰고 스케줄러에 요청만 한다(DOM 은 스케줄러가 등록 자리에 씀) —
|
|
21
|
+
* 놓을 때는 사용자 폭을 저장할 뿐 다시 그리지 않는다. 협력자가 없으면 끄는 동안 아무것도 안 쓰고 놓을 때 옛 `commit` 만 부른다.
|
|
22
|
+
* 누름은 취소하지 않는다(포인터 누름을 취소하면 브라우저가 호환 마우스 사건을 페이지에 안 보낸다) — 글자 선택은 호환 mousedown 에서 막는다.
|
|
23
|
+
*
|
|
24
|
+
* Owns the DOM events of header width handles; state/width math live in the headless `ResizeGesture`, and which column a
|
|
25
|
+
* point grips lives in the headless `ResizeHitZone`. The click that follows a release is swallowed so finishing a resize
|
|
26
|
+
* never sorts the header. A few px on both sides of a column boundary also act as the grip: no element or stylesheet rule
|
|
27
|
+
* is added — one delegated listener on the header classifies the pointer, sets the cursor on that th while it is over the
|
|
28
|
+
* zone and starts the drag on press.
|
|
29
|
+
*/
|
|
30
|
+
export declare class ResizeHandleBinder {
|
|
31
|
+
private readonly _readWidth;
|
|
32
|
+
private readonly _commit;
|
|
33
|
+
private readonly _gesture;
|
|
34
|
+
private readonly _zone;
|
|
35
|
+
/** 끌 수 있는 잎 번호 → 그 잎의 th. 머리글을 다시 그릴 때 비운다. */
|
|
36
|
+
private readonly _resizable;
|
|
37
|
+
/** 끌 수 있는 잎의 필드 → 지금 판의 잎 번호(끄는 중 머리글이 다시 그려져 번호가 밀려도 같은 컬럼을 찾으려고). */
|
|
38
|
+
private readonly _leafOfField;
|
|
39
|
+
/** 잎 th → 잎 번호(끌 수 없는 잎 포함 — 그 왼쪽 경계가 앞 컬럼 손잡이가 될 수 있다). */
|
|
40
|
+
private _leafOf;
|
|
41
|
+
/** 머리글 한 판의 리스너 묶음 신호(머리글 뷰가 준다) — 그 판을 버리면 손잡이 리스너도 함께 떨어진다. */
|
|
42
|
+
private _signal;
|
|
43
|
+
/** 머리글 위임 듣개(머리글 요소의 수명 동안 하나). */
|
|
44
|
+
private _headerListeners;
|
|
45
|
+
/** 지금 커서를 바꿔 둔 th 와 그 전 인라인 커서. */
|
|
46
|
+
private _cursorTh;
|
|
47
|
+
private _savedCursor;
|
|
48
|
+
/** 새 흐름의 협력자(없으면 놓을 때만 옛 commit). */
|
|
49
|
+
private _ports;
|
|
50
|
+
/** 지금 끄는 중이면 그 끌기. */
|
|
51
|
+
private _drag;
|
|
52
|
+
/** Esc 뒤 「놓음 대기」 듣개 묶음 — destroy 때 함께 푼다(Esc 와 놓음 사이 파괴 누수 방지). / Post-Esc release listeners; aborted on destroy. */
|
|
53
|
+
private _escRel;
|
|
54
|
+
constructor(_readWidth: (th: HTMLElement) => number, _commit: (leafIndex: number, width: number) => void);
|
|
55
|
+
/** 잎 컬럼의 지금 폭(px) — th 안 점이 경계에서 얼마나 떨어졌나를 배치 읽기 없이 재려고(컬럼 기하가 안다). */
|
|
56
|
+
private _leafWidth;
|
|
57
|
+
/**
|
|
58
|
+
* 머리글을 새로 그리기 전에 부른다 — 잎 기억을 버리고 새 판의 리스너 묶음 신호를 받는다(옛 손잡이 리스너는 머리글 뷰가
|
|
59
|
+
* 옛 판을 버릴 때 함께 떨어진다). 진행 중인 끌기·「놓음」 상태는 그대로 — 끌기는 컬럼 정체(필드)로 잡고 있으므로
|
|
60
|
+
* 새 판이 그 필드를 다시 알려 주면 바뀐 번호로 이어진다.
|
|
61
|
+
*
|
|
62
|
+
* Call before repainting the header: drops leaf maps and takes the new paint's listener signal (old handle listeners
|
|
63
|
+
* go away when the header view aborts the old paint); an ongoing gesture is kept — it holds the column by field, so it
|
|
64
|
+
* continues at the new index once the new paint registers that field.
|
|
65
|
+
*/
|
|
66
|
+
clear(signal?: AbortSignal): void;
|
|
67
|
+
/**
|
|
68
|
+
* 끌기 새 흐름의 협력자를 받는다(그리드가 그리기 전에 한 번). 받은 뒤로는 끄는 동안 폭 주인에게 폭을 쓰고 스케줄러에 요청만 한다 —
|
|
69
|
+
* DOM 은 스케줄러가 다음 프레임에 한 번, 등록된 폭 자리에만 쓴다(본문을 다시 만들지 않음). 놓을 때는 사용자 폭을 저장할 뿐 다시 그리지 않는다.
|
|
70
|
+
*
|
|
71
|
+
* Receives the live-resize collaborators once. From then on a drag only writes widths to the width owner and submits
|
|
72
|
+
* requests; the scheduler writes the DOM once per frame into registered width spots. Releasing just stores the user width.
|
|
73
|
+
*/
|
|
74
|
+
connect(ports: ResizeBinderPorts): void;
|
|
75
|
+
/** 지운다(리스너 모두 뗌 — 끄는 중이면 확정하지 않고 끝냄). / Detach everything (an ongoing drag ends without commit). */
|
|
76
|
+
destroy(): void;
|
|
77
|
+
/**
|
|
78
|
+
* 머리글 요소에 위임 듣개(포인터 이동·누름·나감)를 한 번 단다 — 경계 양쪽 손잡이 영역의 커서와 누름을 맡는다.
|
|
79
|
+
*
|
|
80
|
+
* Attach the delegated listeners (move · press · leave) to the header element once; they own the boundary grip zone.
|
|
81
|
+
*
|
|
82
|
+
* @param leafWidth 잎 컬럼의 지금 폭(px) — 컬럼 기하에 묻는 함수 / current leaf width, asked of the column geometry
|
|
83
|
+
*/
|
|
84
|
+
bindHeader(header: HTMLElement, leafWidth: (leafIndex: number) => number): void;
|
|
85
|
+
/**
|
|
86
|
+
* 잎 th 를 알려 둔다(끌 수 없는 잎도). 손잡이 영역 판정이 「이 점이 어느 잎 칸 안인가」를 묻는 데 쓴다.
|
|
87
|
+
*
|
|
88
|
+
* Register a leaf th (resizable or not) so the grip zone can tell which leaf cell a point is in.
|
|
89
|
+
*/
|
|
90
|
+
leaf(th: HTMLElement, leafIndex: number): void;
|
|
91
|
+
/**
|
|
92
|
+
* 손잡이 하나에 누름 처리기를 붙인다. leafIndex 가 0 보다 작으면(묶음 머리글) 놓아도 넘기지 않는다.
|
|
93
|
+
* field 는 그 잎 컬럼의 정체 — 끄는 중 머리글이 다시 그려져도 같은 컬럼을 이어 끌고, 없어지면 끌기를 끝내는 데 쓴다.
|
|
94
|
+
*
|
|
95
|
+
* Attach the press handler to one handle. A negative leafIndex (group header) commits nothing on release. field
|
|
96
|
+
* identifies the leaf column so a drag survives a header repaint and ends only when the column is gone.
|
|
97
|
+
*/
|
|
98
|
+
attach(handle: HTMLElement, th: HTMLElement, leafIndex: number, field?: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* 머리글 click 처리기가 묻는다: 이 click 을 삼켜야 하나(손잡이를 놓은 뒤 따라온 click 이면 true, 한 번만).
|
|
101
|
+
*
|
|
102
|
+
* Asked by the header click handler: swallow this click? True once for the click that follows a release.
|
|
103
|
+
*/
|
|
104
|
+
shouldSwallowClick(_e: MouseEvent): boolean;
|
|
105
|
+
/** 점이 손잡이 영역이면 끌 컬럼과 그 th. 손잡이 요소 자체(제 처리기가 있음)·묶음 칸·잎 밖이면 null. */
|
|
106
|
+
private _hitAt;
|
|
107
|
+
private _hover;
|
|
108
|
+
private _restoreCursor;
|
|
109
|
+
private _begin;
|
|
110
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { IColumnGeometry, IColumnWindow, IColumnWindowPolicy, ICellTextPolicy, GeometryChange, ViewportBox, RowSpan } from '../coordinate/geometryPorts.js';
|
|
2
|
+
import { IRenderRequest, IRenderPlan, IRenderPlanner, DrawnState, NextState, RowWork, ColWork } from '../domain/render/ports.js';
|
|
3
|
+
/** 프레임 시계(rAF 를 감싼 포트 — 시험에서 가짜 시계). */
|
|
4
|
+
export interface FramePort {
|
|
5
|
+
request(cb: () => void): number;
|
|
6
|
+
cancel(id: number): void;
|
|
7
|
+
}
|
|
8
|
+
/** 지금 DOM 에 붙은 칸 요소의 유일한 지도(기존 _cellMap). 떼면 지도에서도 지운다. */
|
|
9
|
+
export interface ICellRegistry {
|
|
10
|
+
set(ri: number, ci: number, el: HTMLElement): void;
|
|
11
|
+
get(ri: number, ci: number): HTMLElement | undefined;
|
|
12
|
+
/** 컬럼 ci 의 지금 그려진 칸들(행 순서 무관). 매 프레임 이것을 묻는다(누를 때 목록을 붙들지 않음 → 끄는 도중 행이 바뀌어도 맞음). */
|
|
13
|
+
cellsOfColumn(ci: number): Iterable<HTMLElement>;
|
|
14
|
+
dropRow(ri: number): void;
|
|
15
|
+
dropColumn(ri: number, ci: number): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
readonly size: number;
|
|
18
|
+
}
|
|
19
|
+
/** 'w' = width, 'wm' = +min-width, 'wmm' = +max-width (지금 코드가 쓰는 조합 그대로). */
|
|
20
|
+
export type WidthProps = 'w' | 'wm' | 'wmm';
|
|
21
|
+
export type ProjectionScope = 'header' | 'body' | 'footer';
|
|
22
|
+
/**
|
|
23
|
+
* 기하에서 나온 px 를 DOM 에 쓰는 유일한 객체. 칸 요소는 ICellRegistry 에 묻고, 칸이 아닌 자리만 스스로 기억한다.
|
|
24
|
+
* 불변: applyChange 뒤 살아 있는 모든 폭 자리의 px == 기하 값(시험: 「applyChange 결과 == 처음부터 그린 결과」).
|
|
25
|
+
* 컬럼별 「마지막에 쓴 폭」을 기억해 같으면 쓰지 않는다(칸 객체 없이).
|
|
26
|
+
* 이 객체를 부르는 것은 RenderScheduler(프레임당 한 번)와 처음 그리는 그리개뿐 — 너비 조절 binder 는 직접 부르지 않는다.
|
|
27
|
+
* / Sole writer of geometry-derived px into the DOM.
|
|
28
|
+
*/
|
|
29
|
+
export interface IGeometryApplier {
|
|
30
|
+
/** 쓰기 + 등록(새 코드는 이것만). 칸 요소는 등록하지 않고 쓰기만(지도는 ICellRegistry). */
|
|
31
|
+
writeCellWidth(el: HTMLElement, ci: number, p: WidthProps): void;
|
|
32
|
+
/** 등록만(동작을 바꾸지 않는 옮기기 동안 cssText 글자 순서를 그대로 두려고 — 값은 이미 쓰여 있음). */
|
|
33
|
+
trackHeaderCell(th: HTMLElement, ci: number, p: WidthProps): void;
|
|
34
|
+
/** extraPx: 기하가 모르는 몫을 더함(마지막 컬럼을 넘는 병합의 넘은 컬럼 × 기본 폭 등). 기본 0. */
|
|
35
|
+
trackSpan(el: HTMLElement, ci: number, span: number, p: WidthProps, s: ProjectionScope, extraPx?: number): void;
|
|
36
|
+
/**
|
|
37
|
+
* 행 하나로 칸 여럿 등록: row 의 자식 [firstChild, firstChild + (to − from)] 가 컬럼 [from, to] 의 칸 폭 자리.
|
|
38
|
+
* 칸 지도 밖 칸이 컬럼마다 있는 행(묶음 행 등)을 칸마다 등록하지 않으려고.
|
|
39
|
+
*/
|
|
40
|
+
trackRowCells(row: HTMLElement, firstChild: number, from: number, to: number, p: WidthProps, s: ProjectionScope): void;
|
|
41
|
+
/** 세로 병합 마스터처럼 행 밖에 있는 absolute 요소의 left. */
|
|
42
|
+
trackLeft(el: HTMLElement, ci: number, s: ProjectionScope): void;
|
|
43
|
+
trackTotal(el: HTMLElement, prop: 'width' | 'minWidth', s: ProjectionScope): void;
|
|
44
|
+
trackExtra(el: HTMLElement, s: ProjectionScope): void;
|
|
45
|
+
/** 가상화 빈칸: [from, to] 컬럼 폭의 합. */
|
|
46
|
+
trackGap(el: HTMLElement, from: number, to: number, s: ProjectionScope, extraPx?: number): void;
|
|
47
|
+
/** CF 데이터 막대: ratio × spanWidth. 등록하는 쪽은 CFRenderBridge. */
|
|
48
|
+
trackBar(el: HTMLElement, ci: number, span: number, ratio: number): void;
|
|
49
|
+
untrack(el: HTMLElement): void;
|
|
50
|
+
release(s: ProjectionScope): void;
|
|
51
|
+
/**
|
|
52
|
+
* 바뀐 컬럼의 칸(ICellRegistry)·th·병합·빈칸·막대, 오른쪽 고정 칸 left, 전체 폭 자리만 다시 쓴다.
|
|
53
|
+
* skipScope 'body': 본문 칸(칸 지도)·본문 등록 자리를 건너뛴다 — 같은 프레임에 행을 통째로 다시 그려 곧 버릴 칸에 px 를 먼저 쓰지 않으려고
|
|
54
|
+
* (머리글·푸터는 그대로 씀). 넘긴 쪽이 그 프레임에 본문을 기하로 다시 그릴 책임을 진다.
|
|
55
|
+
* skipScope 'body' skips body cells and body spots — for frames that rebuild the rows anyway (header/footer still written).
|
|
56
|
+
*/
|
|
57
|
+
applyChange(change: GeometryChange, opts?: {
|
|
58
|
+
skipScope?: 'body';
|
|
59
|
+
}): void;
|
|
60
|
+
}
|
|
61
|
+
/** 본문 가로 위치를 머리글·푸터가 따라가는 일의 주인. 지금 구현은 scrollLeft 를 옮겨 쓰고, sticky 방식으로 바꿔도 이 포트는 그대로. */
|
|
62
|
+
export interface IScrollFollower {
|
|
63
|
+
follow(el: HTMLElement): void;
|
|
64
|
+
unfollow(el: HTMLElement): void;
|
|
65
|
+
/** scroll 이벤트에서 한 번 — 쓰기만, 읽기 없음. */
|
|
66
|
+
sync(scrollLeft: number): void;
|
|
67
|
+
destroy(): void;
|
|
68
|
+
}
|
|
69
|
+
/** 「이 컬럼이 보이게」 가로 스크롤. 기하에 묻고 scrollLeft 만 쓴다. */
|
|
70
|
+
export interface IHorizontalReveal {
|
|
71
|
+
revealColumn(ci: number): void;
|
|
72
|
+
}
|
|
73
|
+
/** 스크롤·크기 입력을 읽는 유일한 곳(DOM 읽기는 여기서만 — arch:check 가 기계로 지킨다). 읽은 값은 요청으로 낸다. */
|
|
74
|
+
export interface IScrollObserver {
|
|
75
|
+
readonly box: ViewportBox;
|
|
76
|
+
readonly scrollTop: number;
|
|
77
|
+
destroy(): void;
|
|
78
|
+
}
|
|
79
|
+
/** 머리글의 정렬 표시(화살표·og-sorted·aria-sort·눌림 og-sorting·진행 막대·aria-busy)만 고친다. 머리글을 다시 만들지 않는다. */
|
|
80
|
+
export interface IHeaderSortIndicator {
|
|
81
|
+
bind(th: HTMLElement, field: string, sortable: boolean): void;
|
|
82
|
+
/** 끝나는 프레임에 한 번(바뀐 th 만). */
|
|
83
|
+
update(sortList: readonly {
|
|
84
|
+
readonly field: string;
|
|
85
|
+
readonly dir: 'asc' | 'desc';
|
|
86
|
+
}[]): void;
|
|
87
|
+
/** 누른 프레임에 눌림 표시. */
|
|
88
|
+
setPressed(field: string | null): void;
|
|
89
|
+
/** 300ms 지나도 진행 중이면 true(막대 서서히 나타남, aria-busy). */
|
|
90
|
+
setBusy(field: string, busy: boolean, nextDir?: 'asc' | 'desc'): void;
|
|
91
|
+
release(): void;
|
|
92
|
+
}
|
|
93
|
+
/** 스케줄러가 머리글에 시키는 일(구현 HeaderView). */
|
|
94
|
+
export interface IHeaderView {
|
|
95
|
+
/** 머리글 표 통째로(컬럼 구성·테마 변경 — 지금 renderHeader 와 같은 일). */
|
|
96
|
+
paintAll(): void;
|
|
97
|
+
/** 머리글 높이(px). 줄바꿈 머리글이면 기하 반영 뒤 한 번 읽는다(강제 배치 1회 허용). */
|
|
98
|
+
height(): number;
|
|
99
|
+
}
|
|
100
|
+
/** 스케줄러가 푸터에 시키는 일(구현 FooterView). 값 계산은 IFooterValues(헤드리스). */
|
|
101
|
+
export interface IFooterView {
|
|
102
|
+
/** 푸터 막대를 통째로(정의 변경). */
|
|
103
|
+
paint(): void;
|
|
104
|
+
/** 값만 다시 계산·표시(RenderPlan.footer === 'values'). */
|
|
105
|
+
updateValues(): void;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 범위 선택 테두리 다시 그리기(구현: RangeSelectionManager 의 repaint 를 감싼 어댑터). 좌표는 IRangeRectCalculator.
|
|
109
|
+
* 그려 둔 칸의 `og-range-selected` 클래스 고치기도 여기서(계획의 overlay 하나가 둘 다 뜻함).
|
|
110
|
+
*/
|
|
111
|
+
export interface IRangeOverlay {
|
|
112
|
+
repaint(): void;
|
|
113
|
+
}
|
|
114
|
+
export type RowKind = 'data' | 'group' | 'detail-head' | 'detail-filler';
|
|
115
|
+
/** 행 그리개가 받는 문맥(그리기 한 번에 하나 — 행·칸마다 만들지 않음). */
|
|
116
|
+
export interface RowPaintContext {
|
|
117
|
+
readonly columns: IColumnWindow;
|
|
118
|
+
readonly geometry: IColumnGeometry;
|
|
119
|
+
readonly cells: ICellRegistry;
|
|
120
|
+
readonly applier: IGeometryApplier;
|
|
121
|
+
}
|
|
122
|
+
/** 행 종류 하나를 그린다(종류별 객체 — BodyView 당 하나씩). 같은 행·자료·창이면 같은 DOM(멱등). */
|
|
123
|
+
export interface IRowPainter<TItem = unknown> {
|
|
124
|
+
readonly kind: RowKind;
|
|
125
|
+
paint(ri: number, item: TItem, ctx: RowPaintContext): HTMLElement | null;
|
|
126
|
+
/** 창이 바뀔 때 행 끝 칸만 붙이고 떼고 빈칸 폭을 고친다. */
|
|
127
|
+
shiftWindow(row: HTMLElement, ri: number, item: TItem, prev: IColumnWindow, next: IColumnWindow, ctx: RowPaintContext): void;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 본문 DOM 의 주인 — 무엇이 그려져 있는지(행·칸·창·잘린 칸 덮는 폭)를 유일하게 안다. 계획을 실행하는 작은 연산을 준다.
|
|
131
|
+
* 행·창 두 축을 한 번에 받는 update 하나 — 순서는 「행 차분(나간 행 떼기·들어온 행은 새 창으로 만들기) → 남은 행만 창 옮김」.
|
|
132
|
+
* 쓰는 쪽별로 좁힌 포트: 스케줄러는 IBodyView 전부, 편집은 IBodyPin, binder 는 아무것도 안 씀.
|
|
133
|
+
* / Sole owner of the body DOM and of what is currently drawn.
|
|
134
|
+
*/
|
|
135
|
+
export interface IBodyView extends IBodyPin {
|
|
136
|
+
readonly drawn: DrawnState;
|
|
137
|
+
update(next: NextState, rows: RowWork, cols: ColWork): void;
|
|
138
|
+
refreshCells(keys: readonly {
|
|
139
|
+
readonly ri: number;
|
|
140
|
+
readonly ci: number;
|
|
141
|
+
}[]): void;
|
|
142
|
+
/** to 가 null 이면 옛 포커스 칸 표시만 지운다. */
|
|
143
|
+
moveFocus(from: {
|
|
144
|
+
ri: number;
|
|
145
|
+
ci: number;
|
|
146
|
+
} | null, to: {
|
|
147
|
+
ri: number;
|
|
148
|
+
ci: number;
|
|
149
|
+
} | null): void;
|
|
150
|
+
repaintRowState(ris: readonly number[]): void;
|
|
151
|
+
refillColumns(cis: readonly number[]): void;
|
|
152
|
+
cell(ri: number, ci: number): HTMLElement | undefined;
|
|
153
|
+
}
|
|
154
|
+
/** 편집·포커스가 쓰는 좁은 포트. */
|
|
155
|
+
export interface IBodyPin {
|
|
156
|
+
pin(p: {
|
|
157
|
+
editRow?: number | null;
|
|
158
|
+
editCol?: number | null;
|
|
159
|
+
focusRow?: number | null;
|
|
160
|
+
}): void;
|
|
161
|
+
}
|
|
162
|
+
/** 세로 창의 원천(VirtualScroll 이 구현). */
|
|
163
|
+
export interface IRowsSource {
|
|
164
|
+
getVisibleRange(): RowSpan;
|
|
165
|
+
}
|
|
166
|
+
/** 스케줄러 협력자 — 모두 포트. NextState 는 스케줄러가 rows·window·geometry 에 물어 만든다. */
|
|
167
|
+
export interface RenderSchedulerDeps {
|
|
168
|
+
readonly planner: IRenderPlanner;
|
|
169
|
+
readonly body: IBodyView;
|
|
170
|
+
readonly header: IHeaderView;
|
|
171
|
+
readonly sort: IHeaderSortIndicator;
|
|
172
|
+
readonly footer: IFooterView | null;
|
|
173
|
+
readonly overlay: IRangeOverlay;
|
|
174
|
+
readonly applier: IGeometryApplier;
|
|
175
|
+
readonly geometry: IColumnGeometry;
|
|
176
|
+
readonly window: IColumnWindowPolicy;
|
|
177
|
+
readonly rows: IRowsSource;
|
|
178
|
+
readonly scroll: IScrollObserver;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* 요청을 모아 프레임당 한 번, 계획이 말하는 최소 일만 실행하는 유일한 곳.
|
|
182
|
+
* 불변: 본문·기하 DOM 쓰기는 프레임당 많아야 한 번(끄는 동안도) · sync 요청은 쌓인 것까지 합쳐 즉시 한 번(예약 프레임 취소) ·
|
|
183
|
+
* 실행 중 요청은 다음 프레임(재진입 없음). 할 일 결정은 하지 않는다(Planner).
|
|
184
|
+
* / Batches requests and runs the planner's minimal work at most once per frame.
|
|
185
|
+
*/
|
|
186
|
+
export interface IRenderScheduler {
|
|
187
|
+
submit(req: IRenderRequest): void;
|
|
188
|
+
flushNow(): void;
|
|
189
|
+
/** 시험·진단용. */
|
|
190
|
+
readonly lastPlan: IRenderPlan | null;
|
|
191
|
+
destroy(): void;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 기존 RendererCallbacks 의 부분집합. 구현 시 `Pick<RendererCallbacks, 이 키들>` 로 바꿔 끼운다(키 이름·뜻은 지금 그대로).
|
|
195
|
+
*/
|
|
196
|
+
export interface CellCallbacksLike {
|
|
197
|
+
getRowState?(ri: number): string;
|
|
198
|
+
getFormulaMeta?(ri: number, field: string): {
|
|
199
|
+
src: string;
|
|
200
|
+
error: string | null;
|
|
201
|
+
approx: boolean;
|
|
202
|
+
} | null;
|
|
203
|
+
/**
|
|
204
|
+
* 지금 호출 `applyCF?.(cellEl, ri, col.field, value, mergedWidth, mergedHeight)` 의 여섯 인자 그대로 +
|
|
205
|
+
* 일곱째 `track` 을 더하기만. 동작을 바꾸지 않는 동안 막대는 여전히 mergedWidth 로 px 를 쓰고, track 은 등록만 한다.
|
|
206
|
+
*/
|
|
207
|
+
applyCF?(cellEl: HTMLElement, ri: number, field: string, value: unknown, mergedWidth: number, mergedHeight: number, track?: (bar: HTMLElement, ratio: number) => void): void;
|
|
208
|
+
}
|
|
209
|
+
export interface CellPainterDeps {
|
|
210
|
+
readonly callbacks: CellCallbacksLike;
|
|
211
|
+
readonly text: ICellTextPolicy;
|
|
212
|
+
readonly applier: IGeometryApplier;
|
|
213
|
+
}
|
|
214
|
+
export interface IPageScrollObserver {
|
|
215
|
+
attach(): void;
|
|
216
|
+
detach(): void;
|
|
217
|
+
readonly attached: boolean;
|
|
218
|
+
}
|
|
@@ -283,3 +283,10 @@ export declare function hasRenderer(typeName: string): boolean;
|
|
|
283
283
|
* @returns 셀 렌더러 / A cell renderer
|
|
284
284
|
*/
|
|
285
285
|
export declare function createRenderer(col: ColumnDef): CellRenderer;
|
|
286
|
+
/**
|
|
287
|
+
* 내장 렌더러면 새 인스턴스를(그 컬럼 칸들이 나눠 쓸 것), 사용자가 등록한 팩토리면 null 을 돌려준다(그때는 칸마다 createRenderer).
|
|
288
|
+
*
|
|
289
|
+
* A fresh built-in renderer (to be shared by that column's cells), or null for a user-registered factory (then createRenderer per cell).
|
|
290
|
+
* @internal
|
|
291
|
+
*/
|
|
292
|
+
export declare function createBuiltinRenderer(col: ColumnDef): CellRenderer | null;
|
|
@@ -1903,6 +1903,16 @@ export interface ColumnDef<T = any> {
|
|
|
1903
1903
|
* 单元格的内联样式(静态,或按值、行的函数)。
|
|
1904
1904
|
*/
|
|
1905
1905
|
cellStyle?: CSSProperties | ((value: any, row: T, rowIndex: number) => CSSProperties);
|
|
1906
|
+
/**
|
|
1907
|
+
* 엑셀 내보내기에서 셀 안 낱말별 색·굵기를 살리는 조각 목록. `null`/빈 배열이면 일반 셀. 화면 표시에는 영향 없음.
|
|
1908
|
+
*
|
|
1909
|
+
* Rich-text runs for Excel export, keeping per-word color/bold inside a cell. `null`/empty = plain cell. Does not affect on-screen rendering.
|
|
1910
|
+
*
|
|
1911
|
+
* Excel 書き出しでセル内の語ごとの色・太字を残す断片のリスト。`null`/空配列なら通常のセル。画面表示には影響しません。
|
|
1912
|
+
*
|
|
1913
|
+
* 导出 Excel 时保留单元格内逐词颜色/加粗的片段列表。`null`/空数组表示普通单元格。不影响屏幕显示。
|
|
1914
|
+
*/
|
|
1915
|
+
cellRuns?: (value: any, row: T, rowIndex: number) => ReadonlyArray<import('./export/types.js').XlsxRichTextRun> | null | undefined;
|
|
1906
1916
|
/**
|
|
1907
1917
|
* 헤더 인라인 스타일.
|
|
1908
1918
|
*
|
|
@@ -2610,6 +2620,20 @@ export interface ExportOptions {
|
|
|
2610
2620
|
* 是否包含表头行。默认 true。
|
|
2611
2621
|
*/
|
|
2612
2622
|
includeHeader?: boolean;
|
|
2623
|
+
/**
|
|
2624
|
+
* 대용량 엑셀(스트리밍) 내보내기의 압축 수준. 0 = 압축 없음(가장 빠르고 큼), 9 = 가장 작음(느림). 기본 6.
|
|
2625
|
+
* 범위 밖의 값은 6 으로 본다. 소형(비스트리밍) 경로에는 영향이 없다.
|
|
2626
|
+
*
|
|
2627
|
+
* Compression level for large (streaming) Excel exports. 0 = stored (fastest, largest), 9 = smallest (slowest). Default 6.
|
|
2628
|
+
* Values outside 0..9 are treated as 6. Has no effect on the small (non-streaming) path.
|
|
2629
|
+
*
|
|
2630
|
+
* 大容量 Excel(ストリーミング)出力の圧縮レベル。0 = 圧縮なし(最速・最大)、9 = 最小(低速)。既定 6。
|
|
2631
|
+
* 範囲外の値は 6 として扱います。小規模(非ストリーミング)経路には影響しません。
|
|
2632
|
+
*
|
|
2633
|
+
* 大容量 Excel(流式)导出的压缩级别。0 = 不压缩(最快、最大),9 = 最小(较慢)。默认 6。
|
|
2634
|
+
* 超出范围的值按 6 处理。对小型(非流式)路径无影响。
|
|
2635
|
+
*/
|
|
2636
|
+
compressionLevel?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
2613
2637
|
/**
|
|
2614
2638
|
* 내보내기에서 뺄 컬럼들의 field.
|
|
2615
2639
|
*
|
|
@@ -2680,6 +2704,46 @@ export interface ExportOptions {
|
|
|
2680
2704
|
* 导出完成后调用的钩子。接收生成的文件 blob。
|
|
2681
2705
|
*/
|
|
2682
2706
|
onAfter?: (blob: Blob) => void;
|
|
2707
|
+
/**
|
|
2708
|
+
* 대량 엑셀 내보내기 진척 콜백(done 행 / total 행).
|
|
2709
|
+
*
|
|
2710
|
+
* Progress callback for large Excel exports (done rows / total rows).
|
|
2711
|
+
*
|
|
2712
|
+
* 大量の Excel エクスポートの進捗コールバック(done 行 / total 行)。
|
|
2713
|
+
*
|
|
2714
|
+
* 大批量 Excel 导出的进度回调(done 行 / total 行)。
|
|
2715
|
+
*/
|
|
2716
|
+
onProgress?: (done: number, total: number) => void;
|
|
2717
|
+
/**
|
|
2718
|
+
* 대량 엑셀 내보내기를 취소하는 신호.
|
|
2719
|
+
*
|
|
2720
|
+
* Signal to cancel a large Excel export.
|
|
2721
|
+
*
|
|
2722
|
+
* 大量の Excel エクスポートを取り消すシグナル。
|
|
2723
|
+
*
|
|
2724
|
+
* 取消大批量 Excel 导出的信号。
|
|
2725
|
+
*/
|
|
2726
|
+
signal?: AbortSignal;
|
|
2727
|
+
/**
|
|
2728
|
+
* 엑셀 스트리밍 사용 방식. 기본 'auto'(5만 행 이상이면 스트리밍), 'force' 항상, 'off' 기존 방식.
|
|
2729
|
+
*
|
|
2730
|
+
* Excel streaming mode. Default 'auto' (stream from 50k rows), 'force' always, 'off' legacy path.
|
|
2731
|
+
*
|
|
2732
|
+
* Excel ストリーミングの方式。既定 'auto'(5万行以上でストリーミング)、'force' 常に、'off' 従来方式。
|
|
2733
|
+
*
|
|
2734
|
+
* Excel 流式导出方式。默认 'auto'(5 万行起流式),'force' 始终,'off' 旧方式。
|
|
2735
|
+
*/
|
|
2736
|
+
stream?: 'auto' | 'force' | 'off';
|
|
2737
|
+
/**
|
|
2738
|
+
* 스트리밍 내보내기 중 오류가 났을 때 부를 훅.
|
|
2739
|
+
*
|
|
2740
|
+
* Hook called when a streaming export fails.
|
|
2741
|
+
*
|
|
2742
|
+
* ストリーミングのエクスポート中にエラーが起きたときに呼ぶフック。
|
|
2743
|
+
*
|
|
2744
|
+
* 流式导出出错时调用的钩子。
|
|
2745
|
+
*/
|
|
2746
|
+
onError?: (error: unknown) => void;
|
|
2683
2747
|
}
|
|
2684
2748
|
/**
|
|
2685
2749
|
* 내보내기 제목/푸터 행.
|
|
@@ -2814,6 +2878,36 @@ export interface GridOptions<T = any> {
|
|
|
2814
2878
|
* 单元格内容过长而换行时,让行高随内容自动增高。与列的 wrap 配合使用。
|
|
2815
2879
|
*/
|
|
2816
2880
|
autoHeight?: boolean;
|
|
2881
|
+
/**
|
|
2882
|
+
* 가로로 보이는 컬럼(과 앞뒤 여유)만 칸을 만듭니다(기본 켬). 컬럼이 많고 칸 글자가 길 때 가로 스크롤·너비 조절이 가벼워집니다.
|
|
2883
|
+
* 화면 밖 컬럼은 칸 요소 대신 폭만 차지하는 빈 자리로 둡니다 — 칸 DOM 을 직접 찾는 바깥 코드가 화면 밖 칸을 꼭 찾아야 하면 끕니다.
|
|
2884
|
+
* 켜 두어도 자동 높이(autoHeight)·셀 병합이 있거나 그리드 폭을 모를 때(숨은 컨테이너 등)는 저절로 전 컬럼을 그립니다.
|
|
2885
|
+
* 끄면 지금까지처럼 보이는 행의 모든 컬럼 칸을 만듭니다.
|
|
2886
|
+
* 주의: 행 안 자식 순서에 기대는 바깥 CSS(`.og-row > :nth-child(n)`)는 빈 자리 요소와 창 때문에 어긋납니다. 사용자 렌더러가 칸 안에 만든 임시 상태(입력 중 글자·열린 목록·포커스)는 그 컬럼이 창에서 나가면 사라집니다(들어올 때 다시 그림).
|
|
2887
|
+
* 화면 밖 컬럼으로 가려면 `grid.jumpToCol(field)` 를 씁니다.
|
|
2888
|
+
*
|
|
2889
|
+
* Create cells only for horizontally visible columns (plus a margin on each side); on by default. Lighter horizontal scrolling
|
|
2890
|
+
* and width resizing with many columns and long cell text. Off-screen columns become width-only gaps instead of cell elements —
|
|
2891
|
+
* turn it off if outside code must find off-screen cell DOM. Even when on, all columns are painted automatically with autoHeight,
|
|
2892
|
+
* cell merges, or an unknown grid width (e.g. a hidden container). When off, every column's cell is created for visible rows, as before.
|
|
2893
|
+
* Caution: outside CSS that relies on child order inside a row (`.og-row > :nth-child(n)`) drifts because of gap elements and the window. Temporary state a custom renderer keeps inside a cell (typed text, an open list, focus) is lost when that column leaves the window (it is re-rendered on return).
|
|
2894
|
+
* To bring an off-screen column into view use `grid.jumpToCol(field)`.
|
|
2895
|
+
*
|
|
2896
|
+
* 横に見えている列(と前後の余裕)だけセルを作ります(既定で有効)。列が多くセルの文字が長いとき、横スクロールや幅の調整が軽くなります。
|
|
2897
|
+
* 画面外の列はセル要素の代わりに幅だけを占める空きにします — 画面外のセル DOM を外部コードが直接探す必要があるときは無効にします。
|
|
2898
|
+
* 有効でも、autoHeight・セル結合があるとき、グリッドの幅が分からないとき(非表示のコンテナなど)は自動的に全列を描きます。
|
|
2899
|
+
* 無効にすると、これまでどおり見えている行のすべての列のセルを作ります。
|
|
2900
|
+
* 注意: 行内の子の順番に頼る外部 CSS(`.og-row > :nth-child(n)`)は空き要素と表示範囲のためずれます。カスタムレンダラーがセル内に持つ一時的な状態(入力中の文字・開いたリスト・フォーカス)は、その列が表示範囲から出ると消えます(戻ると描き直します)。
|
|
2901
|
+
* 画面外の列へ移るには `grid.jumpToCol(field)` を使います。
|
|
2902
|
+
*
|
|
2903
|
+
* 只为横向可见的列(及前后余量)创建单元格(默认开启)。列多且单元格文字长时,横向滚动和调整列宽更轻快。
|
|
2904
|
+
* 屏幕外的列不创建单元格元素,只留占宽度的空位 — 若外部代码必须直接查找屏幕外的单元格 DOM,请关闭。
|
|
2905
|
+
* 即使开启,在 autoHeight、存在单元格合并、或不知道表格宽度时(如隐藏的容器)也会自动绘制全部列。
|
|
2906
|
+
* 关闭时与以前一样,为可见行的所有列创建单元格。
|
|
2907
|
+
* 注意:依赖行内子元素顺序的外部 CSS(`.og-row > :nth-child(n)`)会因空位元素和可见窗口而错位。自定义渲染器在单元格内保留的临时状态(输入中的文字、打开的列表、焦点)在该列离开窗口时会丢失(回来时重新绘制)。
|
|
2908
|
+
* 要转到屏幕外的列,请用 `grid.jumpToCol(field)`。
|
|
2909
|
+
*/
|
|
2910
|
+
virtualColumns?: boolean;
|
|
2817
2911
|
/**
|
|
2818
2912
|
* 컬럼 폭의 합이 컨테이너를 꽉 채우도록 늘립니다. 오른쪽에 빈 공간을 남기고 싶지 않을 때.
|
|
2819
2913
|
*
|
package/dist/types/index.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export { SkinRegistry, skinRegistry } from './core/SkinRegistry.js';
|
|
|
88
88
|
* FORM 专用皮肤令牌增量(拒绝颜色字面量)。
|
|
89
89
|
*/
|
|
90
90
|
export type { SkinTokenDelta } from './core/types.js';
|
|
91
|
+
export type { XlsxCellStyleSpec, XlsxRichTextRun } from './core/export/types.js';
|
|
91
92
|
/**
|
|
92
93
|
* 로케일 메시지 레지스트리·전역 싱글턴·편의 t().
|
|
93
94
|
*
|
|
@@ -29,8 +29,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
29
29
|
sortable: boolean;
|
|
30
30
|
filterable: boolean;
|
|
31
31
|
theme: string;
|
|
32
|
-
frozenColumns: number;
|
|
33
32
|
rowNumber: boolean;
|
|
33
|
+
frozenColumns: number;
|
|
34
34
|
stateColumn: boolean;
|
|
35
35
|
checkColumn: boolean;
|
|
36
36
|
draggable: boolean;
|