@canvas-components/xlsx-table 0.1.8 → 0.1.10
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/README.md +51 -11
- package/dist/cleaning/xlsx-cleaning.worker.js +4714 -857
- package/dist/{sheet-settings-D8pfrp_9.d.cts → conditional-format-write-Bc3OgsuC.d.cts} +22 -2
- package/dist/{sheet-settings-ClWkuEGB.d.ts → conditional-format-write-CG9PYZBP.d.ts} +22 -2
- package/dist/file/index.cjs +5058 -2834
- package/dist/file/index.d.cts +4 -2
- package/dist/file/index.d.ts +4 -2
- package/dist/file/index.js +5058 -2835
- package/dist/file/ooxml/index.cjs +6245 -3959
- package/dist/file/ooxml/index.d.cts +4 -4
- package/dist/file/ooxml/index.d.ts +4 -4
- package/dist/file/ooxml/index.js +6240 -3960
- package/dist/file/ooxml/node.cjs +6247 -3961
- package/dist/file/ooxml/node.d.cts +4 -4
- package/dist/file/ooxml/node.d.ts +4 -4
- package/dist/file/ooxml/node.js +6242 -3962
- package/dist/file/xlsx-file.worker.js +6598 -4079
- package/dist/{file-DZPF-DHF.d.cts → file-BDNu6-B9.d.cts} +1 -1
- package/dist/{file-DZPF-DHF.d.ts → file-BDNu6-B9.d.ts} +1 -1
- package/dist/index.cjs +15577 -9037
- package/dist/index.d.cts +471 -147
- package/dist/index.d.ts +471 -147
- package/dist/index.js +15573 -9039
- package/dist/native-parts/worker-loader.d.ts +101 -0
- package/dist/native-parts/xlsx-native-parts.worker.js +4600 -286
- package/dist/{sheet-settings-CRncG11p.d.ts → sheet-settings-BLc17bPK.d.ts} +164 -43
- package/dist/{sheet-settings-Bv1KD6XD.d.cts → sheet-settings-Dvi6PLD0.d.cts} +164 -43
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,200 @@
|
|
|
1
1
|
import { CellObject, WorkBook, WorkSheet } from 'xlsx';
|
|
2
2
|
export { CellAddress, CellObject, Range, WorkBook, WorkSheet } from 'xlsx';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { b as XlsxSourceDiagnostics } from './file-
|
|
3
|
+
import { X as XlsxConditionalDifferentialStyle, j as XlsxDocumentStamp, l as XlsxCellRange, m as XlsxNativeCellChange, n as XlsxCellAddress, o as XlsxCellValue, p as XlsxCellType, q as XlsxNativePartsHistoryEntry, r as XlsxRowConfig, s as XlsxColumnConfig, t as XlsxSheetFilterState, u as XlsxFrozenPane, v as XlsxMergedRange, w as XlsxSheetSortState, x as XlsxRemoteSelection, y as XlsxCollaborator, z as XlsxFilterValue, A as XlsxFilterCondition, B as XlsxFilterConditionRelation, C as XlsxSortDirection, D as XlsxNativeTransactionResult, E as XlsxNativeCommitResult, b as XlsxConditionalFormattingBlock, f as XlsxDxfCatalog, a as XlsxConditionalFormatPatch, g as XlsxNativeSheetSettings, h as XlsxNativeSheetSettingsPatch, F as XlsxPrintOptions, G as XlsxPrintPlan, k as XlsxNativeTransaction, H as XlsxNativeCellTransaction, I as XlsxNamedRange, J as XlsxCellStyle, K as XlsxCellBorderPreset, L as XlsxCellBorderLine } from './sheet-settings-BLc17bPK.js';
|
|
4
|
+
export { M as XlsxCellBorderLineStyle, N as XlsxCellBorders, O as XlsxColumnFilterState, P as XlsxConditionalColorScale, Q as XlsxConditionalDataBar, c as XlsxConditionalFormattingProjection, d as XlsxConditionalFormattingRule, R as XlsxConditionalIconSet, e as XlsxConditionalRuleDraft, S as XlsxConditionalThreshold, T as XlsxFilterConditionOperator, U as XlsxNativePartChange, V as XlsxNativePartSnapshot, W as XlsxPrintCell, Y as XlsxPrintPage, Z as XlsxResolvedPrintOptions, i as XlsxSavedPrintOptions, _ as addressToA1, $ as columnIndexToName, a0 as columnNameToIndex, a1 as getCellKey, a2 as nativeConditionalIconSets, a3 as nativeConditionalRuleTypes, a4 as normalizeRange, a5 as parseCellKey } from './sheet-settings-BLc17bPK.js';
|
|
5
|
+
import { b as XlsxSourceDiagnostics } from './file-BDNu6-B9.js';
|
|
6
6
|
import { ExportTableColumn } from '@canvas-components/utils';
|
|
7
7
|
|
|
8
|
+
interface ConditionalEvaluation {
|
|
9
|
+
style: XlsxConditionalDifferentialStyle;
|
|
10
|
+
matchedPriorities: number[];
|
|
11
|
+
visual?: {
|
|
12
|
+
dataBar?: {
|
|
13
|
+
start: number;
|
|
14
|
+
end: number;
|
|
15
|
+
color: string;
|
|
16
|
+
showValue: boolean;
|
|
17
|
+
};
|
|
18
|
+
iconSet?: {
|
|
19
|
+
iconSet: string;
|
|
20
|
+
index: number;
|
|
21
|
+
showValue: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type XlsxPivotValue = string | number | boolean | null;
|
|
27
|
+
type XlsxPivotAggregate = "sum" | "count" | "average" | "min" | "max";
|
|
28
|
+
interface XlsxPivotDraft {
|
|
29
|
+
name: string;
|
|
30
|
+
source: string;
|
|
31
|
+
destination: {
|
|
32
|
+
sheetName: string;
|
|
33
|
+
address: string;
|
|
34
|
+
createSheet?: boolean;
|
|
35
|
+
};
|
|
36
|
+
rows: string[];
|
|
37
|
+
columns: string[];
|
|
38
|
+
filters: {
|
|
39
|
+
field: string;
|
|
40
|
+
value?: XlsxPivotValue;
|
|
41
|
+
}[];
|
|
42
|
+
values: {
|
|
43
|
+
field: string;
|
|
44
|
+
aggregate: XlsxPivotAggregate;
|
|
45
|
+
caption?: string;
|
|
46
|
+
}[];
|
|
47
|
+
rowGrandTotals?: boolean;
|
|
48
|
+
columnGrandTotals?: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface XlsxPivotTable {
|
|
51
|
+
name: string;
|
|
52
|
+
partPath: string;
|
|
53
|
+
sheetName: string;
|
|
54
|
+
location: string;
|
|
55
|
+
draft?: XlsxPivotDraft;
|
|
56
|
+
needsRefresh: boolean;
|
|
57
|
+
restriction?: string;
|
|
58
|
+
}
|
|
59
|
+
type XlsxPivotChange = {
|
|
60
|
+
kind: "create";
|
|
61
|
+
draft: XlsxPivotDraft;
|
|
62
|
+
} | {
|
|
63
|
+
kind: "refresh";
|
|
64
|
+
name: string;
|
|
65
|
+
} | {
|
|
66
|
+
kind: "delete";
|
|
67
|
+
name: string;
|
|
68
|
+
removeEmptySheet?: boolean;
|
|
69
|
+
} | {
|
|
70
|
+
kind: "edit";
|
|
71
|
+
name: string;
|
|
72
|
+
draft: XlsxPivotDraft;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** 像素按 96 dpi 换算为工作表 DrawingML 中的 EMU。 */
|
|
76
|
+
interface XlsxDrawingMarker {
|
|
77
|
+
row: number;
|
|
78
|
+
column: number;
|
|
79
|
+
x: number;
|
|
80
|
+
y: number;
|
|
81
|
+
}
|
|
82
|
+
interface XlsxDrawingAnchor {
|
|
83
|
+
from: XlsxDrawingMarker;
|
|
84
|
+
width: number;
|
|
85
|
+
height: number;
|
|
86
|
+
to?: XlsxDrawingMarker;
|
|
87
|
+
}
|
|
88
|
+
interface XlsxPicture {
|
|
89
|
+
zOrder: number;
|
|
90
|
+
id: number;
|
|
91
|
+
name: string;
|
|
92
|
+
description: string;
|
|
93
|
+
anchor: XlsxDrawingAnchor;
|
|
94
|
+
mediaPath: string;
|
|
95
|
+
mime: "image/png" | "image/jpeg";
|
|
96
|
+
editable: boolean;
|
|
97
|
+
}
|
|
98
|
+
interface XlsxDrawingTarget {
|
|
99
|
+
sheetName?: string;
|
|
100
|
+
stamp?: XlsxDocumentStamp;
|
|
101
|
+
}
|
|
102
|
+
type XlsxPictureChange = {
|
|
103
|
+
kind: "insert";
|
|
104
|
+
data: Uint8Array;
|
|
105
|
+
anchor: XlsxDrawingAnchor;
|
|
106
|
+
description?: string;
|
|
107
|
+
} | {
|
|
108
|
+
kind: "position";
|
|
109
|
+
id: number;
|
|
110
|
+
anchor: XlsxDrawingAnchor;
|
|
111
|
+
} | {
|
|
112
|
+
kind: "delete" | "front" | "back";
|
|
113
|
+
id: number;
|
|
114
|
+
};
|
|
115
|
+
interface XlsxImageLimits {
|
|
116
|
+
maxBytes: number;
|
|
117
|
+
maxPixels: number;
|
|
118
|
+
maxDocumentBytes: number;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface XlsxChartDraft {
|
|
122
|
+
type: "column" | "bar" | "line" | "pie";
|
|
123
|
+
/** 含首行和首列标题的工作簿内矩形区域。 */
|
|
124
|
+
source: string;
|
|
125
|
+
seriesBy: "columns" | "rows";
|
|
126
|
+
seriesIndices?: number[];
|
|
127
|
+
title?: string;
|
|
128
|
+
legend?: boolean;
|
|
129
|
+
colors?: string[];
|
|
130
|
+
}
|
|
131
|
+
interface XlsxChartSeries {
|
|
132
|
+
name: string;
|
|
133
|
+
nameRef: string;
|
|
134
|
+
categoryRef: string;
|
|
135
|
+
valueRef: string;
|
|
136
|
+
categories: (string | null)[];
|
|
137
|
+
values: (number | null)[];
|
|
138
|
+
color?: string;
|
|
139
|
+
}
|
|
140
|
+
interface XlsxChartObject {
|
|
141
|
+
zOrder: number;
|
|
142
|
+
id: number;
|
|
143
|
+
anchor: XlsxDrawingAnchor;
|
|
144
|
+
partPath: string;
|
|
145
|
+
draft?: XlsxChartDraft;
|
|
146
|
+
series?: XlsxChartSeries[];
|
|
147
|
+
restriction?: string;
|
|
148
|
+
}
|
|
149
|
+
type XlsxChartChange = {
|
|
150
|
+
kind: "insert";
|
|
151
|
+
draft: XlsxChartDraft;
|
|
152
|
+
anchor: XlsxDrawingAnchor;
|
|
153
|
+
} | {
|
|
154
|
+
kind: "edit";
|
|
155
|
+
id: number;
|
|
156
|
+
draft: XlsxChartDraft;
|
|
157
|
+
} | {
|
|
158
|
+
kind: "position";
|
|
159
|
+
id: number;
|
|
160
|
+
anchor: XlsxDrawingAnchor;
|
|
161
|
+
} | {
|
|
162
|
+
kind: "delete";
|
|
163
|
+
id: number;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/** worksheet/dataValidation 的原生规则及提示。 */
|
|
167
|
+
interface XlsxDataValidationRule {
|
|
168
|
+
type: "none" | "list" | "whole" | "decimal" | "date" | "time" | "textLength" | "custom";
|
|
169
|
+
sqref: string;
|
|
170
|
+
/** 原始文件含无法可靠解释的验证设置时展示原因。 */
|
|
171
|
+
restriction?: string;
|
|
172
|
+
operator?: "between" | "notBetween" | "equal" | "notEqual" | "lessThan" | "lessThanOrEqual" | "greaterThan" | "greaterThanOrEqual";
|
|
173
|
+
formula1?: string;
|
|
174
|
+
formula2?: string;
|
|
175
|
+
allowBlank?: boolean;
|
|
176
|
+
showDropDown?: boolean;
|
|
177
|
+
showErrorMessage?: boolean;
|
|
178
|
+
showInputMessage?: boolean;
|
|
179
|
+
errorStyle?: "stop" | "warning" | "information";
|
|
180
|
+
errorTitle?: string;
|
|
181
|
+
error?: string;
|
|
182
|
+
promptTitle?: string;
|
|
183
|
+
prompt?: string;
|
|
184
|
+
}
|
|
185
|
+
type XlsxDataValidationPatch = {
|
|
186
|
+
kind: "set";
|
|
187
|
+
rule: XlsxDataValidationRule;
|
|
188
|
+
options?: string[];
|
|
189
|
+
} | {
|
|
190
|
+
kind: "clear";
|
|
191
|
+
sqref: string;
|
|
192
|
+
};
|
|
193
|
+
interface XlsxDataValidationTarget {
|
|
194
|
+
sheetName?: string;
|
|
195
|
+
stamp?: XlsxDocumentStamp;
|
|
196
|
+
}
|
|
197
|
+
|
|
8
198
|
interface XlsxCleaningBase {
|
|
9
199
|
sheetName: string;
|
|
10
200
|
range: XlsxCellRange;
|
|
@@ -100,6 +290,14 @@ interface XlsxSearchSnapshot {
|
|
|
100
290
|
matches: XlsxSearchMatch[];
|
|
101
291
|
}
|
|
102
292
|
|
|
293
|
+
interface ValidationFailure {
|
|
294
|
+
sheetName: string;
|
|
295
|
+
address: string;
|
|
296
|
+
count: number;
|
|
297
|
+
reason: string;
|
|
298
|
+
style: "stop" | "warning" | "information";
|
|
299
|
+
}
|
|
300
|
+
|
|
103
301
|
/**
|
|
104
302
|
* xlsx-table 主题。
|
|
105
303
|
*/
|
|
@@ -156,6 +354,11 @@ interface XlsxEditorTheme {
|
|
|
156
354
|
* 核心向宿主层请求的编辑会话。
|
|
157
355
|
*/
|
|
158
356
|
interface XlsxEditorRequest {
|
|
357
|
+
validation?: {
|
|
358
|
+
date: boolean;
|
|
359
|
+
choices?: string[];
|
|
360
|
+
prompt?: string;
|
|
361
|
+
};
|
|
159
362
|
address: XlsxCellAddress;
|
|
160
363
|
sheetId: string;
|
|
161
364
|
/** 相对 canvas 宿主的矩形。 */
|
|
@@ -354,6 +557,8 @@ declare const DEFAULT_COLLABORATOR_COLORS: readonly ["#e11d48", "#ea580c", "#ca8
|
|
|
354
557
|
declare function resolveCollaboratorColor(userId: string, preferred?: string): string;
|
|
355
558
|
|
|
356
559
|
interface XlsxSelectionState {
|
|
560
|
+
/** 在单元格内拖选的显示文字。 */
|
|
561
|
+
selectedText?: string;
|
|
357
562
|
activeCell: XlsxCellAddress | null;
|
|
358
563
|
anchorCell: XlsxCellAddress | null;
|
|
359
564
|
ranges: XlsxCellRange[];
|
|
@@ -400,8 +605,8 @@ interface XlsxContextMenuRequest {
|
|
|
400
605
|
*/
|
|
401
606
|
interface XlsxClipboardOptions {
|
|
402
607
|
/**
|
|
403
|
-
*
|
|
404
|
-
* @default
|
|
608
|
+
* 粘贴超出工作表已用范围时是否自动扩展行列。
|
|
609
|
+
* @default true
|
|
405
610
|
*/
|
|
406
611
|
expandBounds?: boolean;
|
|
407
612
|
}
|
|
@@ -410,6 +615,7 @@ interface XlsxClipboardOptions {
|
|
|
410
615
|
*/
|
|
411
616
|
interface XlsxTableOptions {
|
|
412
617
|
workbook: WorkBook;
|
|
618
|
+
imageLimits?: Partial<XlsxImageLimits>;
|
|
413
619
|
/** 初始或显式更新的浏览选项,非文件内容。 */
|
|
414
620
|
view?: Partial<XlsxViewState>;
|
|
415
621
|
onViewChange?: (view: XlsxViewState) => void;
|
|
@@ -431,6 +637,8 @@ interface XlsxTableOptions {
|
|
|
431
637
|
clipboard?: XlsxClipboardOptions;
|
|
432
638
|
/** 多人协同配置(可选,不绑定具体网络层)。 */
|
|
433
639
|
collaboration?: XlsxCollaborationOptions;
|
|
640
|
+
/** 校验失败时通知宿主;仅警告和信息级别可显式接受。 */
|
|
641
|
+
onDataValidationFailure?: (failure: ValidationFailure) => boolean | void;
|
|
434
642
|
onWorkbookChange?: (workbook: WorkBook) => void;
|
|
435
643
|
onSelectionChange?: (state: XlsxSelectionState) => void;
|
|
436
644
|
/** 编辑器请求;传入 null 表示关闭。 */
|
|
@@ -660,6 +868,74 @@ declare class XlsxTable {
|
|
|
660
868
|
initializeNativeSource(options?: {
|
|
661
869
|
stamp?: XlsxDocumentStamp;
|
|
662
870
|
}): XlsxNativeTransactionResult;
|
|
871
|
+
createDrawingAnchor(cell: {
|
|
872
|
+
rowIndex: number;
|
|
873
|
+
columnIndex: number;
|
|
874
|
+
}, width: number, height: number, resizeWithCells?: boolean): {
|
|
875
|
+
from: {
|
|
876
|
+
row: number;
|
|
877
|
+
column: number;
|
|
878
|
+
x: number;
|
|
879
|
+
y: number;
|
|
880
|
+
};
|
|
881
|
+
width: number;
|
|
882
|
+
height: number;
|
|
883
|
+
to: {
|
|
884
|
+
row: number;
|
|
885
|
+
column: number;
|
|
886
|
+
x: number;
|
|
887
|
+
y: number;
|
|
888
|
+
} | undefined;
|
|
889
|
+
} | null;
|
|
890
|
+
getDrawingState(sheetName?: string): {
|
|
891
|
+
enabled: boolean;
|
|
892
|
+
reason: string | undefined;
|
|
893
|
+
};
|
|
894
|
+
getPivotFields(source: string): {
|
|
895
|
+
name: string;
|
|
896
|
+
items: XlsxPivotValue[];
|
|
897
|
+
}[];
|
|
898
|
+
getPivotTables(): XlsxPivotTable[];
|
|
899
|
+
updatePivotTable(change: XlsxPivotChange, target?: XlsxDrawingTarget): XlsxNativeCommitResult;
|
|
900
|
+
getCharts(sheetName?: string): readonly XlsxChartObject[];
|
|
901
|
+
updateChart(change: XlsxChartChange, target?: XlsxDrawingTarget): XlsxNativeCommitResult;
|
|
902
|
+
getPictures(sheetName?: string): readonly XlsxPicture[];
|
|
903
|
+
updatePicture(change: XlsxPictureChange, target?: XlsxDrawingTarget): XlsxNativeCommitResult;
|
|
904
|
+
getDataValidationState(sheetName?: string): {
|
|
905
|
+
enabled: boolean;
|
|
906
|
+
reason: string | undefined;
|
|
907
|
+
};
|
|
908
|
+
getDataValidationIssues(sheetName?: string): {
|
|
909
|
+
address: string;
|
|
910
|
+
reason: string;
|
|
911
|
+
}[];
|
|
912
|
+
getDataValidations(sheetName?: string): readonly XlsxDataValidationRule[];
|
|
913
|
+
updateDataValidation(patch: XlsxDataValidationPatch, target?: XlsxDataValidationTarget): XlsxNativeCommitResult;
|
|
914
|
+
getConditionalFormatting(sheetName?: string): {
|
|
915
|
+
warnings: string[];
|
|
916
|
+
sheetName: string;
|
|
917
|
+
restriction?: string;
|
|
918
|
+
blocks: XlsxConditionalFormattingBlock[];
|
|
919
|
+
};
|
|
920
|
+
getConditionalFormattingState(sheetName?: string): {
|
|
921
|
+
enabled: boolean;
|
|
922
|
+
reason: string | undefined;
|
|
923
|
+
warnings: string[];
|
|
924
|
+
};
|
|
925
|
+
getConditionalFormattingDxfCatalog(): XlsxDxfCatalog;
|
|
926
|
+
previewConditionalFormatting(request: {
|
|
927
|
+
rowIndex: number;
|
|
928
|
+
columnIndex: number;
|
|
929
|
+
sheetName?: string;
|
|
930
|
+
}): ConditionalEvaluation | null;
|
|
931
|
+
updateConditionalFormatting(patch: XlsxConditionalFormatPatch, options?: {
|
|
932
|
+
sheetName?: string;
|
|
933
|
+
stamp?: XlsxDocumentStamp;
|
|
934
|
+
}): XlsxNativeTransactionResult;
|
|
935
|
+
deleteConditionalFormatting(ruleId: string, options?: {
|
|
936
|
+
sheetName?: string;
|
|
937
|
+
stamp?: XlsxDocumentStamp;
|
|
938
|
+
}): XlsxNativeTransactionResult;
|
|
663
939
|
getSheetSettings(sheetName?: string): XlsxNativeSheetSettings | null;
|
|
664
940
|
updateSheetSettings(patch: XlsxNativeSheetSettingsPatch, options?: {
|
|
665
941
|
sheetName?: string;
|
|
@@ -941,6 +1217,142 @@ interface XlsxWorkbookValidationResult {
|
|
|
941
1217
|
/** 只验证原生工作簿结构;旧逻辑数据格式直接拒绝,不自动转换。 */
|
|
942
1218
|
declare function validateXlsxWorkbook(book: WorkBook): XlsxWorkbookValidationResult;
|
|
943
1219
|
|
|
1220
|
+
interface XlsxSizeMetrics {
|
|
1221
|
+
offsets: number[];
|
|
1222
|
+
sizes: number[];
|
|
1223
|
+
total: number;
|
|
1224
|
+
}
|
|
1225
|
+
interface XlsxVisibleRange {
|
|
1226
|
+
startIndex: number;
|
|
1227
|
+
endIndex: number;
|
|
1228
|
+
startOffset: number;
|
|
1229
|
+
}
|
|
1230
|
+
interface XlsxGridLayout {
|
|
1231
|
+
rowHeaderWidth: number;
|
|
1232
|
+
columnHeaderHeight: number;
|
|
1233
|
+
bodyWidth: number;
|
|
1234
|
+
bodyHeight: number;
|
|
1235
|
+
rowMetrics: XlsxSizeMetrics;
|
|
1236
|
+
columnMetrics: XlsxSizeMetrics;
|
|
1237
|
+
contentWidth: number;
|
|
1238
|
+
contentHeight: number;
|
|
1239
|
+
maxScrollLeft: number;
|
|
1240
|
+
maxScrollTop: number;
|
|
1241
|
+
/** 冻结行数(从 0 起连续)。 */
|
|
1242
|
+
frozenRows: number;
|
|
1243
|
+
/** 冻结列数(从 0 起连续)。 */
|
|
1244
|
+
frozenColumns: number;
|
|
1245
|
+
/** 冻结行总高度。 */
|
|
1246
|
+
frozenRowsHeight: number;
|
|
1247
|
+
/** 冻结列总宽度。 */
|
|
1248
|
+
frozenColumnsWidth: number;
|
|
1249
|
+
/** 可滚动区宽度(body 减去冻结列)。 */
|
|
1250
|
+
scrollBodyWidth: number;
|
|
1251
|
+
/** 可滚动区高度(body 减去冻结行)。 */
|
|
1252
|
+
scrollBodyHeight: number;
|
|
1253
|
+
}
|
|
1254
|
+
interface XlsxViewportLayout extends XlsxGridLayout {
|
|
1255
|
+
zoom?: number;
|
|
1256
|
+
showFormulas?: boolean;
|
|
1257
|
+
scrollLeft: number;
|
|
1258
|
+
scrollTop: number;
|
|
1259
|
+
/** 滚动区可见行(不含冻结行)。 */
|
|
1260
|
+
visibleRows: XlsxVisibleRange;
|
|
1261
|
+
/** 滚动区可见列(不含冻结列)。 */
|
|
1262
|
+
visibleColumns: XlsxVisibleRange;
|
|
1263
|
+
/** 冻结行范围;无冻结时 endIndex = -1。 */
|
|
1264
|
+
frozenRowRange: XlsxVisibleRange;
|
|
1265
|
+
/** 冻结列范围;无冻结时 endIndex = -1。 */
|
|
1266
|
+
frozenColumnRange: XlsxVisibleRange;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* 构建行/列尺寸前缀和。
|
|
1270
|
+
*/
|
|
1271
|
+
declare function buildSizeMetrics(params: {
|
|
1272
|
+
count: number;
|
|
1273
|
+
defaultSize: number;
|
|
1274
|
+
customSizes?: Record<number, {
|
|
1275
|
+
wpx?: number;
|
|
1276
|
+
hpx?: number;
|
|
1277
|
+
hpt?: number;
|
|
1278
|
+
wch?: number;
|
|
1279
|
+
width?: number;
|
|
1280
|
+
hidden?: boolean;
|
|
1281
|
+
filtered?: boolean;
|
|
1282
|
+
}>;
|
|
1283
|
+
sizeKey: "width" | "height";
|
|
1284
|
+
}): XlsxSizeMetrics;
|
|
1285
|
+
/**
|
|
1286
|
+
* 根据滚动偏移查找可见起止索引。
|
|
1287
|
+
*/
|
|
1288
|
+
declare function resolveVisibleRange(params: {
|
|
1289
|
+
metrics: XlsxSizeMetrics;
|
|
1290
|
+
offset: number;
|
|
1291
|
+
viewportSize: number;
|
|
1292
|
+
overscan: number;
|
|
1293
|
+
/** 可见索引起点下限(用于跳过冻结区)。 */
|
|
1294
|
+
minIndex?: number;
|
|
1295
|
+
}): XlsxVisibleRange;
|
|
1296
|
+
/**
|
|
1297
|
+
* 解析并钳制冻结行列数量。
|
|
1298
|
+
*/
|
|
1299
|
+
declare function resolveFrozenCounts(params: {
|
|
1300
|
+
sheet: WorkSheet;
|
|
1301
|
+
rowMetrics: XlsxSizeMetrics;
|
|
1302
|
+
columnMetrics: XlsxSizeMetrics;
|
|
1303
|
+
bodyWidth: number;
|
|
1304
|
+
bodyHeight: number;
|
|
1305
|
+
}): {
|
|
1306
|
+
frozenRows: number;
|
|
1307
|
+
frozenColumns: number;
|
|
1308
|
+
frozenColumnsWidth: number;
|
|
1309
|
+
frozenRowsHeight: number;
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1312
|
+
* 单元格在视口中的左上角坐标(含冻结)。
|
|
1313
|
+
*/
|
|
1314
|
+
declare function resolveCellViewportOrigin(layout: Pick<XlsxViewportLayout, "rowHeaderWidth" | "columnHeaderHeight" | "rowMetrics" | "columnMetrics" | "scrollLeft" | "scrollTop" | "frozenRows" | "frozenColumns">, rowIndex: number, columnIndex: number): {
|
|
1315
|
+
x: number;
|
|
1316
|
+
y: number;
|
|
1317
|
+
};
|
|
1318
|
+
/**
|
|
1319
|
+
* 指针 body 坐标映射到内容坐标(含冻结)。
|
|
1320
|
+
*/
|
|
1321
|
+
declare function mapPointerToContentOffset(layout: Pick<XlsxViewportLayout, "rowHeaderWidth" | "columnHeaderHeight" | "scrollLeft" | "scrollTop" | "frozenColumnsWidth" | "frozenRowsHeight">, localX: number, localY: number): {
|
|
1322
|
+
contentX: number;
|
|
1323
|
+
contentY: number;
|
|
1324
|
+
bodyX: number;
|
|
1325
|
+
bodyY: number;
|
|
1326
|
+
};
|
|
1327
|
+
/** 行列尺寸与滚动偏移独立,视图可在滚动帧之间复用。 */
|
|
1328
|
+
declare function createGridMetrics(sheet: WorkSheet, extent: XlsxGridExtent, defaultRowHeight: number, defaultColumnWidth: number): {
|
|
1329
|
+
rowMetrics: XlsxSizeMetrics;
|
|
1330
|
+
columnMetrics: XlsxSizeMetrics;
|
|
1331
|
+
};
|
|
1332
|
+
/**
|
|
1333
|
+
* 计算 sheet 网格布局。
|
|
1334
|
+
*/
|
|
1335
|
+
declare function createGridLayout(params: {
|
|
1336
|
+
zoom?: number;
|
|
1337
|
+
metrics?: ReturnType<typeof createGridMetrics>;
|
|
1338
|
+
sheet: WorkSheet;
|
|
1339
|
+
viewportWidth: number;
|
|
1340
|
+
viewportHeight: number;
|
|
1341
|
+
defaultRowHeight: number;
|
|
1342
|
+
defaultColumnWidth: number;
|
|
1343
|
+
rowHeaderWidth: number;
|
|
1344
|
+
columnHeaderHeight: number;
|
|
1345
|
+
scrollLeft: number;
|
|
1346
|
+
scrollTop: number;
|
|
1347
|
+
overscanRowCount: number;
|
|
1348
|
+
overscanColumnCount: number;
|
|
1349
|
+
}): XlsxViewportLayout;
|
|
1350
|
+
|
|
1351
|
+
interface XlsxGridExtent {
|
|
1352
|
+
rowCount: number;
|
|
1353
|
+
columnCount: number;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
944
1356
|
interface XlsxCollapsedRowMarker {
|
|
945
1357
|
rowIndex: number;
|
|
946
1358
|
align: "bottom" | "top";
|
|
@@ -997,6 +1409,7 @@ declare function resolveNextVisibleIndex(params: {
|
|
|
997
1409
|
declare function resolveVisibleAddress(params: {
|
|
998
1410
|
sheet: XlsxVisibilitySheetLike;
|
|
999
1411
|
address: XlsxCellAddress;
|
|
1412
|
+
extent?: XlsxGridExtent;
|
|
1000
1413
|
columnFallback?: XlsxVisibleIndexFallback;
|
|
1001
1414
|
rowFallback?: XlsxVisibleIndexFallback;
|
|
1002
1415
|
}): XlsxCellAddress | null;
|
|
@@ -1006,6 +1419,7 @@ declare function resolveVisibleAddress(params: {
|
|
|
1006
1419
|
declare function resolveNextVisibleAddress(params: {
|
|
1007
1420
|
sheet: XlsxVisibilitySheetLike;
|
|
1008
1421
|
address: XlsxCellAddress;
|
|
1422
|
+
extent?: XlsxGridExtent;
|
|
1009
1423
|
direction: XlsxVisibleNavigationDirection;
|
|
1010
1424
|
}): XlsxCellAddress | null;
|
|
1011
1425
|
/**
|
|
@@ -1045,7 +1459,7 @@ interface XlsxVisibleSelectionRangeResult {
|
|
|
1045
1459
|
/**
|
|
1046
1460
|
* 将选区锚点/焦点吸附到可见行列,再生成矩形选区。
|
|
1047
1461
|
*/
|
|
1048
|
-
declare function createVisibleRangeFromAddresses(sheet: XlsxVisibilitySheetLike, anchor: XlsxCellAddress, focus: XlsxCellAddress): XlsxVisibleSelectionRangeResult | null;
|
|
1462
|
+
declare function createVisibleRangeFromAddresses(sheet: XlsxVisibilitySheetLike, anchor: XlsxCellAddress, focus: XlsxCellAddress, extent?: XlsxGridExtent): XlsxVisibleSelectionRangeResult | null;
|
|
1049
1463
|
/**
|
|
1050
1464
|
* 将地址限制在 sheet 边界内。
|
|
1051
1465
|
*/
|
|
@@ -1727,6 +2141,11 @@ interface FormulaEvalResult {
|
|
|
1727
2141
|
error?: FormulaErrorCode;
|
|
1728
2142
|
}
|
|
1729
2143
|
interface EvalContext {
|
|
2144
|
+
/** 条件公式使用 Excel 标量比较和日期序列,普通工作表公式沿用既有计算行为。 */
|
|
2145
|
+
excelScalars?: {
|
|
2146
|
+
date1904: boolean;
|
|
2147
|
+
fromLocalTime(date: Date): number;
|
|
2148
|
+
};
|
|
1730
2149
|
workbook: WorkBook;
|
|
1731
2150
|
/** 当前公式所在 sheet。 */
|
|
1732
2151
|
sheet: WorkSheet;
|
|
@@ -2039,130 +2458,6 @@ declare function setSheetColumnWidth(sheet: WorkSheet, columnIndex: number, widt
|
|
|
2039
2458
|
*/
|
|
2040
2459
|
declare function setSheetRowHeight(sheet: WorkSheet, rowIndex: number, height: number): WorkSheet;
|
|
2041
2460
|
|
|
2042
|
-
interface XlsxSizeMetrics {
|
|
2043
|
-
offsets: number[];
|
|
2044
|
-
sizes: number[];
|
|
2045
|
-
total: number;
|
|
2046
|
-
}
|
|
2047
|
-
interface XlsxVisibleRange {
|
|
2048
|
-
startIndex: number;
|
|
2049
|
-
endIndex: number;
|
|
2050
|
-
startOffset: number;
|
|
2051
|
-
}
|
|
2052
|
-
interface XlsxGridLayout {
|
|
2053
|
-
rowHeaderWidth: number;
|
|
2054
|
-
columnHeaderHeight: number;
|
|
2055
|
-
bodyWidth: number;
|
|
2056
|
-
bodyHeight: number;
|
|
2057
|
-
rowMetrics: XlsxSizeMetrics;
|
|
2058
|
-
columnMetrics: XlsxSizeMetrics;
|
|
2059
|
-
contentWidth: number;
|
|
2060
|
-
contentHeight: number;
|
|
2061
|
-
maxScrollLeft: number;
|
|
2062
|
-
maxScrollTop: number;
|
|
2063
|
-
/** 冻结行数(从 0 起连续)。 */
|
|
2064
|
-
frozenRows: number;
|
|
2065
|
-
/** 冻结列数(从 0 起连续)。 */
|
|
2066
|
-
frozenColumns: number;
|
|
2067
|
-
/** 冻结行总高度。 */
|
|
2068
|
-
frozenRowsHeight: number;
|
|
2069
|
-
/** 冻结列总宽度。 */
|
|
2070
|
-
frozenColumnsWidth: number;
|
|
2071
|
-
/** 可滚动区宽度(body 减去冻结列)。 */
|
|
2072
|
-
scrollBodyWidth: number;
|
|
2073
|
-
/** 可滚动区高度(body 减去冻结行)。 */
|
|
2074
|
-
scrollBodyHeight: number;
|
|
2075
|
-
}
|
|
2076
|
-
interface XlsxViewportLayout extends XlsxGridLayout {
|
|
2077
|
-
zoom?: number;
|
|
2078
|
-
showFormulas?: boolean;
|
|
2079
|
-
scrollLeft: number;
|
|
2080
|
-
scrollTop: number;
|
|
2081
|
-
/** 滚动区可见行(不含冻结行)。 */
|
|
2082
|
-
visibleRows: XlsxVisibleRange;
|
|
2083
|
-
/** 滚动区可见列(不含冻结列)。 */
|
|
2084
|
-
visibleColumns: XlsxVisibleRange;
|
|
2085
|
-
/** 冻结行范围;无冻结时 endIndex = -1。 */
|
|
2086
|
-
frozenRowRange: XlsxVisibleRange;
|
|
2087
|
-
/** 冻结列范围;无冻结时 endIndex = -1。 */
|
|
2088
|
-
frozenColumnRange: XlsxVisibleRange;
|
|
2089
|
-
}
|
|
2090
|
-
/**
|
|
2091
|
-
* 构建行/列尺寸前缀和。
|
|
2092
|
-
*/
|
|
2093
|
-
declare function buildSizeMetrics(params: {
|
|
2094
|
-
count: number;
|
|
2095
|
-
defaultSize: number;
|
|
2096
|
-
customSizes?: Record<number, {
|
|
2097
|
-
wpx?: number;
|
|
2098
|
-
hpx?: number;
|
|
2099
|
-
hpt?: number;
|
|
2100
|
-
wch?: number;
|
|
2101
|
-
width?: number;
|
|
2102
|
-
hidden?: boolean;
|
|
2103
|
-
filtered?: boolean;
|
|
2104
|
-
}>;
|
|
2105
|
-
sizeKey: "width" | "height";
|
|
2106
|
-
}): XlsxSizeMetrics;
|
|
2107
|
-
/**
|
|
2108
|
-
* 根据滚动偏移查找可见起止索引。
|
|
2109
|
-
*/
|
|
2110
|
-
declare function resolveVisibleRange(params: {
|
|
2111
|
-
metrics: XlsxSizeMetrics;
|
|
2112
|
-
offset: number;
|
|
2113
|
-
viewportSize: number;
|
|
2114
|
-
overscan: number;
|
|
2115
|
-
/** 可见索引起点下限(用于跳过冻结区)。 */
|
|
2116
|
-
minIndex?: number;
|
|
2117
|
-
}): XlsxVisibleRange;
|
|
2118
|
-
/**
|
|
2119
|
-
* 解析并钳制冻结行列数量。
|
|
2120
|
-
*/
|
|
2121
|
-
declare function resolveFrozenCounts(params: {
|
|
2122
|
-
sheet: WorkSheet;
|
|
2123
|
-
rowMetrics: XlsxSizeMetrics;
|
|
2124
|
-
columnMetrics: XlsxSizeMetrics;
|
|
2125
|
-
bodyWidth: number;
|
|
2126
|
-
bodyHeight: number;
|
|
2127
|
-
}): {
|
|
2128
|
-
frozenRows: number;
|
|
2129
|
-
frozenColumns: number;
|
|
2130
|
-
frozenColumnsWidth: number;
|
|
2131
|
-
frozenRowsHeight: number;
|
|
2132
|
-
};
|
|
2133
|
-
/**
|
|
2134
|
-
* 单元格在视口中的左上角坐标(含冻结)。
|
|
2135
|
-
*/
|
|
2136
|
-
declare function resolveCellViewportOrigin(layout: Pick<XlsxViewportLayout, "rowHeaderWidth" | "columnHeaderHeight" | "rowMetrics" | "columnMetrics" | "scrollLeft" | "scrollTop" | "frozenRows" | "frozenColumns">, rowIndex: number, columnIndex: number): {
|
|
2137
|
-
x: number;
|
|
2138
|
-
y: number;
|
|
2139
|
-
};
|
|
2140
|
-
/**
|
|
2141
|
-
* 指针 body 坐标映射到内容坐标(含冻结)。
|
|
2142
|
-
*/
|
|
2143
|
-
declare function mapPointerToContentOffset(layout: Pick<XlsxViewportLayout, "rowHeaderWidth" | "columnHeaderHeight" | "scrollLeft" | "scrollTop" | "frozenColumnsWidth" | "frozenRowsHeight">, localX: number, localY: number): {
|
|
2144
|
-
contentX: number;
|
|
2145
|
-
contentY: number;
|
|
2146
|
-
bodyX: number;
|
|
2147
|
-
bodyY: number;
|
|
2148
|
-
};
|
|
2149
|
-
/**
|
|
2150
|
-
* 计算 sheet 网格布局。
|
|
2151
|
-
*/
|
|
2152
|
-
declare function createGridLayout(params: {
|
|
2153
|
-
sheet: WorkSheet;
|
|
2154
|
-
viewportWidth: number;
|
|
2155
|
-
viewportHeight: number;
|
|
2156
|
-
defaultRowHeight: number;
|
|
2157
|
-
defaultColumnWidth: number;
|
|
2158
|
-
rowHeaderWidth: number;
|
|
2159
|
-
columnHeaderHeight: number;
|
|
2160
|
-
scrollLeft: number;
|
|
2161
|
-
scrollTop: number;
|
|
2162
|
-
overscanRowCount: number;
|
|
2163
|
-
overscanColumnCount: number;
|
|
2164
|
-
}): XlsxViewportLayout;
|
|
2165
|
-
|
|
2166
2461
|
/** 非文件的工作表视图状态;不在 WorkSheet 上增添私有属性。 */
|
|
2167
2462
|
interface NativeSheetView {
|
|
2168
2463
|
name: string;
|
|
@@ -2173,6 +2468,7 @@ interface NativeSheetView {
|
|
|
2173
2468
|
filteredRows: Set<number>;
|
|
2174
2469
|
}
|
|
2175
2470
|
interface NativeBookView {
|
|
2471
|
+
pivotOutputSheets?: Readonly<Record<string, string>>;
|
|
2176
2472
|
activeSheetId?: string;
|
|
2177
2473
|
version: number;
|
|
2178
2474
|
id: string;
|
|
@@ -2182,6 +2478,8 @@ declare function nativeSheetView(sheet: WorkSheet): NativeSheetView;
|
|
|
2182
2478
|
declare function nativeBookView(book: WorkBook): NativeBookView;
|
|
2183
2479
|
declare function getNativeSheetName(sheet: WorkSheet): string;
|
|
2184
2480
|
declare function getNativeSheets(book: WorkBook): WorkSheet[];
|
|
2481
|
+
/** 可在普通工作表标签栏激活的工作表,保留文件内的原始顺序。 */
|
|
2482
|
+
declare function getVisibleNativeSheets(book: WorkBook): WorkSheet[];
|
|
2185
2483
|
declare function getNativeRowCount(sheet: WorkSheet): number;
|
|
2186
2484
|
declare function getNativeColumnCount(sheet: WorkSheet): number;
|
|
2187
2485
|
declare function getNativeCellType(cell: CellObject | undefined): XlsxCellType | undefined;
|
|
@@ -2433,17 +2731,17 @@ declare const xlsxCommandRegistry: {
|
|
|
2433
2731
|
readonly "conditional-format": {
|
|
2434
2732
|
readonly label: "条件格式";
|
|
2435
2733
|
readonly mutatesWorkbook: true;
|
|
2436
|
-
readonly needsSelection:
|
|
2437
|
-
readonly localBuiltin:
|
|
2438
|
-
readonly execution: "
|
|
2734
|
+
readonly needsSelection: true;
|
|
2735
|
+
readonly localBuiltin: true;
|
|
2736
|
+
readonly execution: "local";
|
|
2439
2737
|
readonly safety: "none";
|
|
2440
2738
|
};
|
|
2441
2739
|
readonly "data-validation": {
|
|
2442
2740
|
readonly label: "数据验证";
|
|
2443
2741
|
readonly mutatesWorkbook: true;
|
|
2444
|
-
readonly needsSelection:
|
|
2445
|
-
readonly localBuiltin:
|
|
2446
|
-
readonly execution: "
|
|
2742
|
+
readonly needsSelection: true;
|
|
2743
|
+
readonly localBuiltin: true;
|
|
2744
|
+
readonly execution: "local";
|
|
2447
2745
|
readonly safety: "none";
|
|
2448
2746
|
};
|
|
2449
2747
|
readonly formula: {
|
|
@@ -2586,9 +2884,9 @@ declare const xlsxCommandRegistry: {
|
|
|
2586
2884
|
readonly label: "数据透视表";
|
|
2587
2885
|
readonly mutatesWorkbook: true;
|
|
2588
2886
|
readonly needsSelection: false;
|
|
2589
|
-
readonly localBuiltin:
|
|
2590
|
-
readonly execution: "
|
|
2591
|
-
readonly safety: "
|
|
2887
|
+
readonly localBuiltin: true;
|
|
2888
|
+
readonly execution: "local";
|
|
2889
|
+
readonly safety: "none";
|
|
2592
2890
|
};
|
|
2593
2891
|
readonly "clean-data": {
|
|
2594
2892
|
readonly label: "数据清洗";
|
|
@@ -2609,17 +2907,17 @@ declare const xlsxCommandRegistry: {
|
|
|
2609
2907
|
readonly image: {
|
|
2610
2908
|
readonly label: "图片";
|
|
2611
2909
|
readonly mutatesWorkbook: true;
|
|
2612
|
-
readonly needsSelection:
|
|
2613
|
-
readonly localBuiltin:
|
|
2614
|
-
readonly execution: "
|
|
2910
|
+
readonly needsSelection: true;
|
|
2911
|
+
readonly localBuiltin: true;
|
|
2912
|
+
readonly execution: "local";
|
|
2615
2913
|
readonly safety: "none";
|
|
2616
2914
|
};
|
|
2617
2915
|
readonly chart: {
|
|
2618
2916
|
readonly label: "图表";
|
|
2619
2917
|
readonly mutatesWorkbook: true;
|
|
2620
|
-
readonly needsSelection:
|
|
2621
|
-
readonly localBuiltin:
|
|
2622
|
-
readonly execution: "
|
|
2918
|
+
readonly needsSelection: true;
|
|
2919
|
+
readonly localBuiltin: true;
|
|
2920
|
+
readonly execution: "local";
|
|
2623
2921
|
readonly safety: "none";
|
|
2624
2922
|
};
|
|
2625
2923
|
readonly zoom: {
|
|
@@ -2877,7 +3175,9 @@ declare function getNativeWorkbookInfo(book: WorkBook): {
|
|
|
2877
3175
|
};
|
|
2878
3176
|
|
|
2879
3177
|
/** A0 只读预检:未具备标准部件引用更新能力时,禁止结构变更和记录重排。 */
|
|
2880
|
-
declare function inspectXlsxCommandSafety(book: WorkBook, id: string): XlsxCommandState;
|
|
3178
|
+
declare function inspectXlsxCommandSafety(book: WorkBook, id: string, collaborative?: boolean): XlsxCommandState;
|
|
3179
|
+
/** 在同一份工作簿快照内分别复用行列引用变换和其他结构命令的原生预检。 */
|
|
3180
|
+
declare function createXlsxCommandSafetyInspector(book: WorkBook, collaborative?: boolean): (id: string) => XlsxCommandState;
|
|
2881
3181
|
|
|
2882
3182
|
/** 格式代码只决定显示;验证失败不进入原生事务。 */
|
|
2883
3183
|
declare function previewNativeNumberFormat(book: WorkBook, cell: CellObject | undefined, code: string): string;
|
|
@@ -2991,4 +3291,28 @@ declare function prepareNativeTransaction(book: WorkBook, stamp: XlsxDocumentSta
|
|
|
2991
3291
|
status: "applied";
|
|
2992
3292
|
}>;
|
|
2993
3293
|
|
|
2994
|
-
|
|
3294
|
+
/** 标准静态引用的临时视图;不作为工作簿的第二份持久数据。 */
|
|
3295
|
+
type XlsxNativeReference = {
|
|
3296
|
+
sheetName: string;
|
|
3297
|
+
kind: "cells";
|
|
3298
|
+
range: XlsxCellRange;
|
|
3299
|
+
} | {
|
|
3300
|
+
sheetName: string;
|
|
3301
|
+
kind: "rows" | "columns";
|
|
3302
|
+
startIndex: number;
|
|
3303
|
+
endIndex: number;
|
|
3304
|
+
};
|
|
3305
|
+
/** 仅接受单个、无表达式的A1静态引用;引号内的标点不会当作区域分隔符。 */
|
|
3306
|
+
declare function parseNativeReference(text: string, contextSheet?: string): XlsxNativeReference | null;
|
|
3307
|
+
/** 输出带工作表引号与绝对坐标的Excel标准引用,非法范围明确拒绝。 */
|
|
3308
|
+
declare function formatNativeReference(ref: XlsxNativeReference): string;
|
|
3309
|
+
|
|
3310
|
+
declare const defaultImageLimits: XlsxImageLimits;
|
|
3311
|
+
/** 检查实际文件头、边界与画布尺寸后才允许解码。 */
|
|
3312
|
+
declare function inspectXlsxImage(data: Uint8Array, limits?: XlsxImageLimits): {
|
|
3313
|
+
width: number;
|
|
3314
|
+
height: number;
|
|
3315
|
+
mime: "image/png" | "image/jpeg";
|
|
3316
|
+
};
|
|
3317
|
+
|
|
3318
|
+
export { type CreateSheetOptions, DEFAULT_COLLABORATOR_COLORS, type DuplicateSheetOptions, FORMULA_RANGE_EXPAND_LIMIT, type FormulaArrayValue, type FormulaCellId, type FormulaDependencyGraph, type FormulaDirtySeed, type FormulaErrorCode, type FormulaEvalResult, type FormulaEvalValue, type FormulaRangeEdge, type FormulaReference, type FormulaSpillParentMeta, type FormulaSpillRangeMeta, MIN_COLUMN_WIDTH, MIN_ROW_HEIGHT, MockCollaborationRoom, MockXlsxCollaborationAdapter, type PasteMatrixOptions, type PasteMatrixRangeResult, type ValidationFailure, WebSocketXlsxCollaborationAdapter, type WebSocketXlsxCollaborationAdapterOptions, XLSX_COLLABORATION_PROTOCOL, XLSX_FORMULA_FUNCTIONS, XLSX_NATIVE_PARTS_PROTOCOL, type XlsxActionContext, type XlsxAuthoritativeAccessContext, XlsxAuthoritativeCollaborationRoom, type XlsxAuthoritativePatchAccessContext, type XlsxAuthoritativePatchLogEntry, type XlsxAuthoritativePatchSubmitResult, type XlsxAuthoritativePresenceAccessContext, type XlsxAuthoritativePresenceSubmitResult, type XlsxAuthoritativeRejectedPatch, type XlsxAuthoritativeRoomOptions, XlsxCellAddress, XlsxCellBorderLine, XlsxCellBorderPreset, XlsxCellRange, XlsxCellStyle, XlsxCellType, XlsxCellValue, type XlsxChartChange, type XlsxChartDraft, type XlsxChartObject, type XlsxChartSeries, type XlsxCleaningPlan, type XlsxCleaningRequest, type XlsxCleaningWorkerFactory, type XlsxCleaningWorkerPort, type XlsxCleaningWorkerRequest, type XlsxCleaningWorkerResponse, type XlsxClipboardMatrix, type XlsxClipboardOptions, type XlsxCollaborationAdapter, type XlsxCollaborationOptions, XlsxCollaborator, type XlsxCollapsedColumnMarker, type XlsxCollapsedRowMarker, XlsxColumnConfig, type XlsxCommandDefinition, type XlsxCommandId, type XlsxCommandMetadata, type XlsxCommandState, XlsxConditionalDifferentialStyle, XlsxConditionalFormatPatch, XlsxConditionalFormattingBlock, type XlsxContextMenuRequest, type XlsxContextMenuTarget, type XlsxDataValidationPatch, type XlsxDataValidationRule, type XlsxDataValidationTarget, XlsxDocumentStamp, type XlsxDrawingAnchor, type XlsxDrawingMarker, type XlsxDrawingTarget, XlsxDxfCatalog, type XlsxEditingDraft, type XlsxEditorNavigateDirection, type XlsxEditorRect, type XlsxEditorRequest, type XlsxEditorTheme, type XlsxFeatureOptions, type XlsxFillMode, type XlsxFillOptions, XlsxFilterCondition, XlsxFilterConditionRelation, type XlsxFilterOptionItem, type XlsxFilterOptionKind, type XlsxFilterOptionValue, type XlsxFilterSelection, type XlsxFilterSpecialOptionValue, XlsxFilterValue, type XlsxFormulaAutocompleteOptions, type XlsxFormulaBarState, type XlsxFormulaCompletionKind, type XlsxFormulaCompletionSuggestion, type XlsxFormulaDependencyDebugEdge, type XlsxFormulaDependencyDebugNode, type XlsxFormulaDependencyDebugRangeEdge, type XlsxFormulaDependencyDebugSnapshot, type XlsxFormulaValidationResult, XlsxFrozenPane, type XlsxGridLayout, type XlsxHeaderActionType, XlsxHistoryStack, type XlsxHistoryState, type XlsxImageLimits, type XlsxLocalAction, XlsxMergedRange, XlsxNamedRange, XlsxNativeCellChange, XlsxNativeCellTransaction, type XlsxNativeClipboard, XlsxNativeCommitResult, type XlsxNativeDocumentSnapshot, XlsxNativePartsClient, XlsxNativePartsHistoryEntry, type XlsxNativePartsPreflight, type XlsxNativePartsWorkerFactory, type XlsxNativePartsWorkerPort, XlsxNativeSheetSettings, XlsxNativeSheetSettingsPatch, XlsxNativeTransaction, XlsxNativeTransactionResult, type XlsxPasteSpecialOptions, type XlsxPatch, type XlsxPatchAckPayload, type XlsxPatchConflict, type XlsxPicture, type XlsxPictureChange, type XlsxPivotAggregate, type XlsxPivotChange, type XlsxPivotDraft, type XlsxPivotTable, type XlsxPivotValue, XlsxPresenceState, XlsxPrintOptions, XlsxPrintPlan, XlsxRemoteSelection, XlsxRowConfig, type XlsxSearchMatch, type XlsxSearchQuery, type XlsxSearchSnapshot, type XlsxSelectionState, type XlsxServerConflictPolicy, type XlsxServerPatchConflict, type XlsxServerTransformOptions, type XlsxServerTransformResult, XlsxSheetFilterState, XlsxSheetSortState, type XlsxSizeMetrics, XlsxSortDirection, XlsxTable, type XlsxTableContextMenuRequest, type XlsxTableContextMenuTarget, type XlsxTableCreateSheetOptions, type XlsxTableDuplicateSheetOptions, type XlsxTableEditMode, type XlsxTableEditorNavigateDirection, type XlsxTableEditorRect, type XlsxTableEditorRequest, type XlsxTableEditorTheme, type XlsxTableExportFormat, type XlsxTableExportOptions, type XlsxTableFilterConditionParams, type XlsxTableFormulaBarSnapshot, type XlsxTableFormulaBarState, type XlsxTableFormulaDependencySnapshot, type XlsxTableHeaderActionType, type XlsxTableHistorySnapshot, type XlsxTableOptions, type XlsxTablePresenceRecord, type XlsxTableSelectionSnapshot, type XlsxTableTheme, type XlsxTableWorkbookSnapshot, type XlsxViewState, type XlsxViewportLayout, type XlsxVisibilitySheetLike, type XlsxVisibleIndexFallback, type XlsxVisibleNavigationDirection, type XlsxVisibleRange, type XlsxWebSocketConstructor, type XlsxWebSocketLike, type XlsxWorkbookValidationIssue, type XlsxWorkbookValidationResult, type XlsxWsClientMessage, type XlsxWsJoinMessage, type XlsxWsPatchAckMessage, type XlsxWsPatchMessage, type XlsxWsPresenceMessage, type XlsxWsServerMessage, addSheet, appendSelectionRange, applyAutoFill, applyCopyFill, applyFormulaAutocompleteSuggestion, applyMatrixToSheet, applyPatch, applySeriesFill, applySheetColumnConditionFilter, applySheetColumnOptionFilter, applySheetColumnValueFilter, buildFormulaDependencyGraph, buildSizeMetrics, buildXlsxSheetExportData, canMergeSheetRange, canUnmergeSheetRange, cellKeysToSeeds, changeNativeCellDecimals, clampAddress, clampColumnWidth, clampRowHeight, clearRangeOnSheet, clearSheetColumnFilter, clearSheetFilters, clearSheetRangesCellStyle, clearSheetRangesCellStyleKeys, clearSheetSort, collectVolatileFormulaSeeds, collectWorkbookDirtySeeds, createCellPatch, createColumnRange, createColumnVisibilityPatch, createEmptySheet, createFormulaDependencyDebugSnapshot, createGridLayout, createNativePrintPlan, createRangeFromAddresses, createResizePatch, createRowRange, createRowVisibilityPatch, createSheetCellsPatch, createSheetFrozenPanePatch, createSheetRange, createVisibleRangeFromAddresses, createXlsxCommandSafetyInspector, decodeCollaborationMessage, defaultImageLimits, defaultXlsxTableTheme, deleteSheetColumns, deleteSheetRows, duplicateSheet, encodeCollaborationMessage, evaluateCellFormula, evaluateCellValue, evaluateExpression, evaluateFilterCondition, expandRangeToMergedCells, exportXlsxSheet, extractFormulaReferences, extractRangeMatrix, findMergedCellRange, findNamedRange, findSheetById, fingerprintNativePart, formatFormulaValue, formatNativeReference, getFormulaAutocompleteSuggestions, getNativeCellType, getNativeColumnCount, getNativeRowCount, getNativeSheetName, getNativeSheets, getNativeWorkbookInfo, getOverlappingCellKeys, getPrimaryRange, getRangeCellCount, getSheetColumnFilterOptions, getVisibleNativeSheets, getXlsxCommandDefinition, hasFormula, hasVolatileFormula, insertSheetColumns, insertSheetRows, inspectXlsxCommandSafety, inspectXlsxImage, isAddressInRange, isFormulaArrayValue, isFullSheetRange, isSameAddress, isSameRange, isSheetIndexHidden, isValidNamedRangeName, listNamedRanges, mapPointerToContentOffset, mergeSheetRange, moveSheet, nativeBookView, nativeSheetView, parseCellInputText, parseFormulaCellId, parseNativeReference, parseTsv, prepareNativeTransaction, previewNativeCleaning, previewNativeNumberFormat, readNativeCellStyle, reapplySheetFilters, recalculateSheetFormulas, recalculateWorkbookFormulas, recalculateWorkbookFormulasIncremental, removeNamedRange, removeNamedRangesForSheet, removeSheet, renameSheet, renderXlsxPrintDocument, renderXlsxPrintPage, replaceWorkbookSheet, resolveActiveSheet, resolveActiveSheetId, resolveCellDisplayText, resolveCellEditText, resolveCellViewportOrigin, resolveCollaboratorColor, resolveCollapsedColumnMarkers, resolveCollapsedRowMarkers, resolveFillTargetRange, resolveFilterSelectionFromOptionValues, resolveFrozenCounts, resolveNamedRangeRef, resolveNativePrintRange, resolveNextVisibleAddress, resolveNextVisibleIndex, resolvePasteMatrixRange, resolvePatchConflict, resolveUsedRange, resolveVisibleAddress, resolveVisibleIndex, resolveVisibleRange, resolveXlsxCommandState, resolveXlsxTableTheme, restoreSheetColumnsRange, restoreSheetRowsRange, searchSheetFilterOptions, serializeTsv, setActiveSheet, setSheetColumnWidth, setSheetColumnsHidden, setSheetFrozenPane, setSheetRangesCellBorder, setSheetRangesCellStyle, setSheetRangesCellType, setSheetRowHeight, setSheetRowsHidden, sortSheetRowsByColumn, stampServerAcceptedPatch, toFormulaCellId, toFormulaScalarValue, transformPatchAgainstCommitted, transformRemoteAgainstPending, unmergeSheetRange, upsertNamedRange, validateXlsxFormulaInput, validateXlsxWorkbook, xlsxCommandDefinitions, xlsxCommandRegistry };
|