@4399ywkf/editor 0.15.0 → 0.16.0

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.
@@ -1,6 +1,6 @@
1
- import { NotionEditor } from './chunk-KZEURCGO.js';
1
+ import { NotionEditor } from './chunk-X2JCKZP2.js';
2
2
  import './chunk-MGSVKKK7.js';
3
- import { EditorConfigProvider } from './chunk-3KW24N3T.js';
3
+ import { EditorConfigProvider } from './chunk-F4LWFKIA.js';
4
4
  import './chunk-UD6MDBTN.js';
5
5
  import './chunk-ABMZOL26.js';
6
6
  import { jsx } from 'react/jsx-runtime';
@@ -19,5 +19,5 @@ function DocView({ content, contentFormat, readOnly, room, className, onReady })
19
19
  }
20
20
 
21
21
  export { DocView as default };
22
- //# sourceMappingURL=DocView-4MOGGX4Z.js.map
23
- //# sourceMappingURL=DocView-4MOGGX4Z.js.map
22
+ //# sourceMappingURL=DocView-7QBKHBU4.js.map
23
+ //# sourceMappingURL=DocView-7QBKHBU4.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/views/DocView.tsx"],"names":[],"mappings":";;;;;;;AAMe,SAAR,OAAA,CAAyB,EAAE,OAAA,EAAS,aAAA,EAAe,UAAU,IAAA,EAAM,SAAA,EAAW,SAAQ,EAAsB;AACjH,EAAA,2BACG,KAAA,EAAA,EAAI,SAAA,EACH,8BAAC,oBAAA,EAAA,EAAqB,MAAA,EAAQ,EAAC,EAC7B,QAAA,kBAAA,GAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,MAAM,IAAA,IAAQ,SAAA;AAAA,MACd,OAAA;AAAA,MACA,aAAA;AAAA,MACA,QAAA;AAAA,MACA,aAAA,EAAe,CAAC,MAAA,KAAmB,OAAA,GAAU,MAAM;AAAA;AAAA,KAEvD,CAAA,EACF,CAAA;AAEJ","file":"DocView-4MOGGX4Z.js","sourcesContent":["import type { Editor } from \"@tiptap/react\"\nimport { EditorConfigProvider } from \"../contexts/editor-config-context\"\nimport { NotionEditor } from \"../components/tiptap-templates/notion-like/notion-like-editor\"\nimport type { DocumentViewProps } from \"../registry\"\n\n/** doc 通道:云文档与本地 doc 是同一套 tiptap,不做区分 */\nexport default function DocView({ content, contentFormat, readOnly, room, className, onReady }: DocumentViewProps) {\n return (\n <div className={className}>\n <EditorConfigProvider config={{}}>\n <NotionEditor\n room={room ?? \"default\"}\n content={content as string}\n contentFormat={contentFormat}\n readOnly={readOnly}\n onEditorReady={(editor: Editor) => onReady?.(editor)}\n />\n </EditorConfigProvider>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/views/DocView.tsx"],"names":[],"mappings":";;;;;;;AAMe,SAAR,OAAA,CAAyB,EAAE,OAAA,EAAS,aAAA,EAAe,UAAU,IAAA,EAAM,SAAA,EAAW,SAAQ,EAAsB;AACjH,EAAA,2BACG,KAAA,EAAA,EAAI,SAAA,EACH,8BAAC,oBAAA,EAAA,EAAqB,MAAA,EAAQ,EAAC,EAC7B,QAAA,kBAAA,GAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,MAAM,IAAA,IAAQ,SAAA;AAAA,MACd,OAAA;AAAA,MACA,aAAA;AAAA,MACA,QAAA;AAAA,MACA,aAAA,EAAe,CAAC,MAAA,KAAmB,OAAA,GAAU,MAAM;AAAA;AAAA,KAEvD,CAAA,EACF,CAAA;AAEJ","file":"DocView-7QBKHBU4.js","sourcesContent":["import type { Editor } from \"@tiptap/react\"\nimport { EditorConfigProvider } from \"../contexts/editor-config-context\"\nimport { NotionEditor } from \"../components/tiptap-templates/notion-like/notion-like-editor\"\nimport type { DocumentViewProps } from \"../registry\"\n\n/** doc 通道:云文档与本地 doc 是同一套 tiptap,不做区分 */\nexport default function DocView({ content, contentFormat, readOnly, room, className, onReady }: DocumentViewProps) {\n return (\n <div className={className}>\n <EditorConfigProvider config={{}}>\n <NotionEditor\n room={room ?? \"default\"}\n content={content as string}\n contentFormat={contentFormat}\n readOnly={readOnly}\n onEditorReady={(editor: Editor) => onReady?.(editor)}\n />\n </EditorConfigProvider>\n </div>\n )\n}\n"]}
@@ -1,417 +1,49 @@
1
+ import { B as BaseField, F as FilterConfig, S as SortRule, U as UserValue, a as SelectOption, b as BaseViewConfig } from './form-DqUOPVKI.js';
2
+ export { A as AttachmentValue, c as BASE_VIEW_TYPES, d as BaseModelError, e as BaseTableInfo, f as BaseViewType, C as CURRENCY_SYMBOLS, g as CellChange, h as CellValue, i as ColumnInfo, j as ComputeViewInput, k as ComputedView, D as DEFAULT_RECORD_COUNT, l as DEFAULT_TABLE_FIELDS, m as DEFAULT_TIME_ZONE, n as DEFAULT_VIEW_NAMES, o as DateFilterValue, p as FIELD_UI_TYPE, q as FieldPatch, r as FieldPosition, s as FieldProperty, t as FieldPropertyInput, u as FieldType, v as FieldTypeId, w as FilterCondition, x as FilterOperator, y as FormQuestion, z as FormSubmitError, G as GroupHeader, E as GroupRows, H as GroupRule, M as MAX_RECORDS_PER_TABLE, N as NUMBER_UI_TYPES, I as NewFieldInput, J as NewTableInput, K as NewViewInput, L as NumberUiType, R as RECORD_META, O as RowHeightLevel, P as STAT_LABELS, Q as StatType, T as TextSegment, V as UrlValue, W as ViewPatch, X as WallTime, Y as addDaysIn, Z as addField, _ as addRecords, $ as addTable, a0 as addView, a1 as cellValueToText, a2 as compareCellValues, a3 as computeView, a4 as copyName, a5 as createBaseUndoManager, a6 as dateFilterRange, a7 as defaultFieldProperty, a8 as deleteField, a9 as deleteRecords, aa as deleteTable, ab as deleteView, ac as duplicateField, ad as duplicateTable, ae as duplicateView, af as fieldUiType, ag as fieldValueKey, ah as filterKind, ai as filterOperatorsFor, aj as formQuestions, ak as formatNumberField, al as fromWallTime, am as initBase, an as isBaseViewType, ao as isComputedFieldType, ap as isEmptyCellValue, aq as isFieldType, ar as isFormFieldType, as as isKanbanGroupFieldType, at as isNumberUiType, au as isRecordMetaKey, av as moveRecords, aw as moveTable, ax as moveViewField, ay as normalizeCellValue, az as orderedRecordIds, aA as readCellValue, aB as readFieldMap, aC as readFieldValue, aD as readFields, aE as readTable, aF as readTables, aG as readView, aH as readViewMap, aI as readViews, aJ as renameTable, aK as repairAutoNumbers, aL as resolveStat, aM as setBaseActor, aN as setCells, aO as setColumnInfo, aP as setKanbanGroupField, aQ as startOfDayIn, aR as startOfMonthIn, aS as statText, aT as statTypesFor, aU as submitForm, aV as toWallTime, aW as uniqueName, aX as updateField, aY as updateView, aZ as weekdayIn, a_ as writeViewExtras } from './form-DqUOPVKI.js';
1
3
  import * as Y from 'yjs';
2
4
 
3
- /**
4
- * 字段类型注册表。类型 id、ui_type 与单元格值格式照搬飞书多维表格,以后接开放接口、CLI 不用转换:
5
- * - 文本 1:文本片段数组 `[{ type: "text", text }]`
6
- * - 数字 2:number。ui_type 还可以是进度 Progress(存小数,0.5 即 50%)、货币 Currency、评分 Rating
7
- * - 单选 3:选项 id
8
- * - 多选 4:选项 id 数组
9
- * - 日期 5:毫秒时间戳
10
- * - 复选框 7:true(未勾选不存值)
11
- * - 人员 11:`[{ id, name, avatarUrl }]`
12
- * - 电话号码 13:string
13
- * - 超链接 15:`{ link, text }`
14
- * - 附件 17:`[{ token, name, size, mimeType, url }]`
15
- * - 创建时间 1001、最后更新时间 1002、创建人 1003、修改人 1004、自动编号 1005:系统字段,
16
- * 值不存在单元格里,由记录元数据(RECORD_META)算出
17
- */
18
- declare const FieldType: {
19
- readonly Text: 1;
20
- readonly Number: 2;
21
- readonly SingleSelect: 3;
22
- readonly MultiSelect: 4;
23
- readonly DateTime: 5;
24
- readonly Checkbox: 7;
25
- readonly User: 11;
26
- readonly Phone: 13;
27
- readonly Url: 15;
28
- readonly Attachment: 17;
29
- readonly CreatedTime: 1001;
30
- readonly ModifiedTime: 1002;
31
- readonly CreatedUser: 1003;
32
- readonly ModifiedUser: 1004;
33
- readonly AutoNumber: 1005;
34
- };
35
- type FieldTypeId = (typeof FieldType)[keyof typeof FieldType];
36
- declare const FIELD_UI_TYPE: Record<FieldTypeId, string>;
37
- /** 数字字段的展示形态(飞书开放接口里是 ui_type,类型 id 都是 2) */
38
- type NumberUiType = "Number" | "Progress" | "Currency" | "Rating";
39
- declare const NUMBER_UI_TYPES: readonly NumberUiType[];
40
- declare const isNumberUiType: (value: unknown) => value is NumberUiType;
41
- declare const isFieldType: (type: unknown) => type is FieldTypeId;
42
- /** 系统字段:值由记录元数据算出,不能编辑 */
43
- declare const isComputedFieldType: (type: FieldTypeId) => boolean;
44
- /** 飞书开放接口的 ui_type:数字字段按展示形态细分 */
45
- declare function fieldUiType(field: Pick<BaseField, "type" | "uiType">): string;
46
- /** 日期按这个时区解析和显示(飞书多维表格默认跟随创建者,国内即东八区) */
47
- declare const DEFAULT_TIME_ZONE = "Asia/Shanghai";
48
- interface SelectOption {
49
- id: string;
50
- name: string;
51
- /** 色板下标 */
52
- color: number;
53
- }
54
- interface FieldProperty {
55
- /** 单选、多选的选项,按显示顺序 */
56
- options?: SelectOption[];
57
- /**
58
- * 数字:"0"、"0.0"、"0.00"、"1,000"、"1,000.00"、"0%"、"0.00%"(货币只看小数位,总带千分位);
59
- * 日期:"yyyy/MM/dd"、"yyyy/MM/dd HH:mm"、"yyyy-MM-dd"、"MM-dd"、"MM/dd/yyyy"、"dd/MM/yyyy"
60
- */
61
- formatter?: string;
62
- /** 人员:允许添加多个成员(默认允许) */
63
- multiple?: boolean;
64
- /** 货币:CNY、USD、EUR、GBP、JPY、HKD */
65
- currencyCode?: string;
66
- /** 评分的最低、最高分;进度条的范围(存小数,默认 0–1) */
67
- min?: number;
68
- max?: number;
69
- /** 评分图标:star、heart、thumbsup、fire、smile、lightning、flower、number */
70
- ratingSymbol?: string;
71
- }
72
- interface BaseField {
73
- id: string;
74
- name: string;
75
- type: FieldTypeId;
76
- /** 只有数字字段有:进度 / 货币 / 评分;不填即普通数字 */
77
- uiType?: NumberUiType;
78
- property: FieldProperty;
79
- description?: string;
80
- }
81
- interface TextSegment {
82
- type: "text";
83
- text: string;
84
- }
85
- interface UserValue {
86
- id: string;
87
- name?: string;
88
- avatarUrl?: string;
89
- }
90
- interface UrlValue {
91
- link: string;
92
- text?: string;
93
- }
94
- interface AttachmentValue {
95
- /** 宿主上传后给的文件标识 */
96
- token: string;
97
- name: string;
98
- size?: number;
99
- mimeType?: string;
100
- /** 下载 / 预览地址(宿主给;没有时由宿主按 token 解析) */
101
- url?: string;
102
- }
103
- type CellValue = TextSegment[] | number | string | string[] | true | UserValue[] | UrlValue | AttachmentValue[];
104
- /**
105
- * 记录元数据:和单元格存在同一个记录 Y.Map 里,键以下划线开头(字段 id 以 fld 开头,不会撞)。
106
- * 每个键单独合并,两人同时改同一行也只是「最后更新」取后写入的那个。
107
- */
108
- declare const RECORD_META: {
109
- readonly createdTime: "_ct";
110
- readonly createdUser: "_cb";
111
- readonly modifiedTime: "_mt";
112
- readonly modifiedUser: "_mb";
113
- readonly autoNumber: "_no";
114
- };
115
- declare const isRecordMetaKey: (key: string) => boolean;
116
- /** 字段的值存在记录的哪个键下:普通字段是字段 id,系统字段是元数据键 */
117
- declare function fieldValueKey(field: Pick<BaseField, "id" | "type">): string;
118
- /**
119
- * 字段在一条记录上的值。get 读记录的一个键(Y.Map 的 get,或快照里的对象)。
120
- * 没改过的记录,最后更新时间 / 修改人就是创建时间 / 创建人(同飞书)。
121
- */
122
- declare function readFieldValue(field: Pick<BaseField, "id" | "type">, get: (key: string) => unknown): unknown;
123
- declare function defaultFieldProperty(type: FieldTypeId, uiType?: NumberUiType): FieldProperty;
124
- declare const isEmptyCellValue: (value: unknown) => boolean;
125
- /**
126
- * 把任意输入(编辑器的值、粘贴的文本、开放接口的值)规范成该字段的存储格式;空值返回 null(表示不存)。
127
- * 单选、多选认选项 id,也认选项名(粘贴时用),不认识的丢掉。
128
- */
129
- declare function normalizeCellValue(field: BaseField, input: unknown, timeZone?: string): CellValue | null;
130
- type WallTime = [number, number, number, number, number, number];
131
- /** 两个非空值的大小(排序、分组用)。单选、多选按选项顺序比,人员按第一个人的名字比。 */
132
- declare function compareCellValues(field: BaseField, a: unknown, b: unknown): number;
133
- /** 某时区里一天开始的时间戳(筛选「今天」「本周」这类条件用) */
134
- declare function startOfDayIn(time: number, timeZone?: string): number;
135
- /** 从某时区的某一天起往后数 days 天(按墙上日期数,跨夏令时也对) */
136
- declare function addDaysIn(dayStart: number, days: number, timeZone?: string): number;
137
- /** 某时区里一个月开始的时间戳;offset 是往后(正)或往前(负)的月数 */
138
- declare function startOfMonthIn(time: number, offset?: number, timeZone?: string): number;
139
- /** 某时区里的星期几:周一 0 … 周日 6(飞书的一周从周一开始) */
140
- declare function weekdayIn(time: number, timeZone?: string): number;
141
- /** 货币代码 → 符号 */
142
- declare const CURRENCY_SYMBOLS: Record<string, string>;
143
- /** 数字字段按展示形态格式化:货币带符号和千分位,进度按百分比格式 */
144
- declare function formatNumberField(field: BaseField, value: number): string;
145
- /** 单元格显示 / 纯文本(搜索、复制、快照的纯文本都用它) */
146
- declare function cellValueToText(field: BaseField, value: unknown, timeZone?: string): string;
147
- /** 时间戳 → 某时区的墙上时间 [年, 月, 日, 时, 分, 秒](月从 1 开始) */
148
- declare function toWallTime(time: number, timeZone?: string): WallTime;
149
- /** 某时区的墙上时间 → 时间戳(日、月可以越界,按日历顺延) */
150
- declare function fromWallTime(wall: WallTime, timeZone?: string): number;
151
-
152
5
  /** id 前缀照飞书:数据表 tbl、字段 fld、记录 rec、视图 vew、选项 opt */
153
6
  type BaseIdPrefix = "tbl" | "fld" | "rec" | "vew" | "opt";
154
7
  declare function newBaseId(prefix: BaseIdPrefix, length?: number): string;
155
8
 
156
- /** 统计栏的统计方式(同飞书 bitable.stat.*) */
157
- type StatType = "none" | "countAll" | "empty" | "filled" | "unique" | "percentEmpty" | "percentFilled" | "percentUnique" | "sum" | "average" | "max" | "min" | "earliest" | "latest" | "dateRangeOfDays" | "dateRangeOfMonths" | "checked" | "unchecked" | "percentChecked" | "percentUnchecked";
158
- declare const STAT_LABELS: Record<StatType, string>;
159
- /** 一个字段能选哪些统计方式(菜单顺序同飞书) */
160
- declare function statTypesFor(field: Pick<BaseField, "type">): StatType[];
161
- /** 没设过统计方式时:主字段统计记录总数(表格左下角的「N 条记录」),其他字段不展示 */
162
- declare function resolveStat(field: BaseField, primaryFieldId: string, stat: StatType | undefined): StatType;
163
- /**
164
- * 统计栏上显示的文字:记录总数是「N 条记录」,其他是「求和 1,234」这样的「方式 值」;不展示时为空串。
165
- * values 是这一列在当前视图(筛选后)全部记录上的值。
166
- */
167
- declare function statText(field: BaseField, values: unknown[], stat: StatType, timeZone?: string): string;
168
-
169
- type FilterOperator = "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty" | "isGreater" | "isGreaterEqual" | "isLess" | "isLessEqual";
170
- /**
171
- * 日期条件的值(同飞书筛选面板):具体日期,或相对今天的一段时间。
172
- * 直接给时间戳等同于 `{ type: "exactDate", value }`。
173
- */
174
- type DateFilterValue = {
175
- type: "exactDate";
176
- value: number;
177
- } | {
178
- type: "today" | "tomorrow" | "yesterday" | "currentWeek" | "lastWeek" | "currentMonth" | "lastMonth";
179
- } | {
180
- type: "pastDays" | "nextDays";
181
- days: number;
182
- };
183
- interface FilterCondition {
184
- fieldId: string;
185
- operator: FilterOperator;
186
- /**
187
- * 文本 / 数字 / 日期(时间戳或 DateFilterValue)/ 选项 id(单选、多选可给数组,表示「任一」)/
188
- * 人员 id 数组 / 布尔
189
- */
190
- value?: unknown;
191
- }
192
- /** 字段类型 → 筛选时按哪类值比较 */
193
- declare function filterKind(type: FieldTypeId): "text" | "number" | "date" | "select" | "multiSelect" | "user" | "checkbox" | "attachment";
194
- /** 各类字段可选的筛选条件(顺序同飞书筛选面板) */
195
- declare function filterOperatorsFor(type: FieldTypeId): FilterOperator[];
196
- interface FilterConfig {
197
- conjunction: "and" | "or";
198
- conditions: FilterCondition[];
199
- }
200
- interface SortRule {
201
- fieldId: string;
202
- desc?: boolean;
203
- }
204
- type GroupRule = SortRule;
205
- interface GroupHeader {
206
- type: "group";
207
- /** 由各级分组值拼成,同一分组在各端、各次计算里都一样(折叠状态按它记) */
208
- id: string;
209
- depth: number;
210
- fieldId: string;
211
- value: unknown;
212
- /** 组内记录数(含折叠掉的) */
213
- count: number;
214
- collapsed: boolean;
215
- }
216
- interface GroupRows {
217
- type: "rows";
218
- count: number;
219
- }
220
- interface ComputedView {
221
- /** 要显示的记录(折叠分组里的不算),按显示顺序 */
9
+ /** 看板的一列:单选按选项、人员按同一组人;没填分组字段的记录在「未分类」(key 为空串) */
10
+ interface KanbanColumn {
11
+ key: string;
12
+ /** 拖进这一列时写入分组字段的值:选项 id、人员数组;未分类为 null */
13
+ value: string | UserValue[] | null;
14
+ option?: SelectOption;
15
+ users?: UserValue[];
222
16
  recordIds: string[];
223
- /** 有分组时:分组头与记录段交替排列,记录段按顺序对应 recordIds;没有分组时为 null */
224
- groups: Array<GroupHeader | GroupRows> | null;
225
- /** 筛选后的记录数(含折叠掉的) */
226
- total: number;
227
17
  }
228
- interface ComputeViewInput {
18
+ interface ComputeKanbanInput {
19
+ /** 分组依据(单选或人员字段) */
20
+ field: BaseField;
229
21
  fields: BaseField[];
230
- /** 按表内顺序(顺序键)排好的全部记录 */
22
+ /** 表内顺序 */
231
23
  recordIds: string[];
232
24
  getValue: (recordId: string, fieldId: string) => unknown;
233
25
  filter?: FilterConfig | null;
234
26
  sort?: SortRule[];
235
- group?: GroupRule[];
236
- collapsedGroupIds?: ReadonlySet<string>;
237
27
  timeZone?: string;
238
- /** 「今天」「本周」这类日期条件以它为准,默认当前时间 */
239
28
  now?: number;
240
29
  }
241
- /** 日期条件对应的时间段 [start, end) */
242
- declare function dateFilterRange(expected: unknown, now: number, timeZone?: string): [number, number] | null;
30
+ /** 记录落在哪一列:单选是选项 id(选项被删了算未分类),人员是按存储顺序连起来的用户 id */
31
+ declare function kanbanColumnKey(field: BaseField, value: unknown): string;
243
32
  /**
244
- * 视图计算(纯函数,浏览器和 docs-collab 用同一份):筛选 → 排序(分组字段优先)→ 分组。
245
- * 排序是稳定的,规则比不出先后时保持表内顺序。
33
+ * 看板的列(纯函数,浏览器和服务端共用):先按视图的筛选、排序算出记录顺序,再按分组字段分列。
34
+ * 单选:每个选项一列(按选项顺序,空列也在);人员:每组人一列(按出现的先后)。未分类有记录时排在最前。
246
35
  */
247
- declare function computeView(input: ComputeViewInput): ComputedView;
248
-
249
- interface BaseTableInfo {
250
- id: string;
251
- name: string;
252
- primaryFieldId: string;
253
- }
254
- interface ColumnInfo {
255
- width?: number;
256
- hidden?: boolean;
257
- /** 统计栏的统计方式;不填时主字段统计记录总数,其他字段不展示 */
258
- stat?: StatType;
259
- }
260
- /** 行高四档,同飞书:1 低 32px、2 中 54px、3 高 88px、4 超高 124px */
261
- type RowHeightLevel = 1 | 2 | 3 | 4;
262
- interface BaseViewConfig {
263
- id: string;
264
- name: string;
265
- type: "grid";
266
- /** 列顺序:去重、去掉已删字段,没排进来的字段(比如并发新建的)补在末尾 */
267
- fieldIds: string[];
268
- colInfos: Record<string, ColumnInfo>;
269
- frozenColCount: number;
270
- rowHeightLevel: RowHeightLevel;
271
- filter: FilterConfig | null;
272
- sort: SortRule[];
273
- group: GroupRule[];
274
- }
275
- declare function readTables(doc: Y.Doc): BaseTableInfo[];
276
- declare function readTable(doc: Y.Doc, tableId: string): BaseTableInfo | null;
277
- declare function readFieldMap(id: string, map: Y.Map<unknown>): BaseField | null;
278
- /** 字段表:主字段在前,其余按第一个视图的列顺序,视图里没有的按 id 排在后面 */
279
- declare function readFields(doc: Y.Doc, tableId: string): BaseField[];
280
- declare function readViewMap(doc: Y.Doc, tableId: string, viewId: string, view: Y.Map<unknown>): BaseViewConfig;
281
- declare function readViews(doc: Y.Doc, tableId: string): BaseViewConfig[];
282
- declare function readView(doc: Y.Doc, tableId: string, viewId: string): BaseViewConfig | null;
283
- /** 表里全部记录按顺序键排好(视图的筛选、排序、分组在 view.ts 的 computeView 里算) */
284
- declare function orderedRecordIds(doc: Y.Doc, tableId: string): string[];
285
- declare function readCellValue(doc: Y.Doc, tableId: string, recordId: string, fieldId: string): unknown;
286
-
287
- /** 产品层上限:单表 1 万行(房间状态上限 12 MiB,见实现方案 §4) */
288
- declare const MAX_RECORDS_PER_TABLE = 10000;
289
- declare class BaseModelError extends Error {
290
- }
291
- /** 新建 / 修改字段时的属性:选项可以不带 id 和颜色,写入时自动补上 */
292
- interface FieldPropertyInput extends Omit<FieldProperty, "options"> {
293
- options?: Array<Partial<SelectOption> & {
294
- name: string;
295
- }>;
296
- }
297
- interface NewFieldInput {
298
- name: string;
299
- type: FieldTypeId;
300
- /** 数字字段的展示形态:进度 / 货币 / 评分 */
301
- uiType?: NumberUiType;
302
- property?: FieldPropertyInput;
303
- description?: string;
304
- }
305
- interface NewTableInput {
306
- name: string;
307
- /** 第一个是主字段;不给时用飞书新建数据表的默认字段(文本、单选、日期、附件) */
308
- fields?: NewFieldInput[];
309
- viewName?: string;
310
- /** 建几条空记录;不给时:用默认字段的建 10 条(同飞书),自带字段的不建 */
311
- recordCount?: number;
312
- }
313
- /** 飞书新建数据表的默认字段与空记录数(取自飞书网页版的建表代码) */
314
- declare const DEFAULT_TABLE_FIELDS: readonly NewFieldInput[];
315
- declare const DEFAULT_RECORD_COUNT = 10;
316
- /** 第一个没被占用的名字:base、base 2、base 3…(新视图、新字段、新数据表的默认名) */
317
- declare function uniqueName(names: Iterable<string>, base: string): string;
318
- /** 副本的名字(同飞书「${1} 副本 ${2}」):xx 副本、xx 副本 2… */
319
- declare function copyName(names: Iterable<string>, name: string): string;
320
- /** 本端的操作者,写进新记录的创建人、改过的记录的修改人;宿主拿到当前用户后设一次 */
321
- declare function setBaseActor(doc: Y.Doc, actor: UserValue | null): void;
322
- interface CellChange {
36
+ declare function computeKanban(input: ComputeKanbanInput): KanbanColumn[];
37
+ interface KanbanMove {
323
38
  recordId: string;
324
- fieldId: string;
325
- value: unknown;
326
- }
327
- interface ViewPatch {
328
- name?: string;
329
- frozenColCount?: number;
330
- rowHeightLevel?: RowHeightLevel;
331
- filter?: FilterConfig | null;
332
- sort?: SortRule[];
333
- group?: GroupRule[];
334
- }
335
- /**
336
- * 初始化空文档:写入 schemaVersion 并建第一张表。已初始化过的返回 null。
337
- * 只该由一方执行(docs-collab 载入空房间时,或新建文档的那个客户端),否则两边会各建一张表。
338
- */
339
- declare function initBase(doc: Y.Doc, input?: NewTableInput, origin?: unknown): {
340
- tableId: string;
341
- viewId: string;
342
- } | null;
343
- declare function addTable(doc: Y.Doc, input: NewTableInput, origin?: unknown): {
344
- tableId: string;
345
- viewId: string;
346
- };
347
- declare function renameTable(doc: Y.Doc, tableId: string, name: string, origin?: unknown): void;
348
- /** 调整数据表顺序:把数据表移到第 index 位 */
349
- declare function moveTable(doc: Y.Doc, tableId: string, index: number, origin?: unknown): void;
350
- /**
351
- * 复制数据表:字段、视图、记录(含元数据)都复制,id 全部重新生成,副本放在原表后面。
352
- * 选项 id 只在字段内有效,原样保留。
353
- */
354
- declare function duplicateTable(doc: Y.Doc, tableId: string, origin?: unknown): {
355
- tableId: string;
356
- viewId: string;
357
- };
358
- /** 删表:清空它的顶层类型(顶层类型本身删不掉),再从表清单里去掉 */
359
- declare function deleteTable(doc: Y.Doc, tableId: string, origin?: unknown): void;
360
- /** 字段在视图里的位置:在 viewId 这个视图里放到第 index 列(向左 / 向右插入字段时用) */
361
- interface FieldPosition {
362
- viewId: string;
363
- index: number;
364
- }
365
- /** 新字段追加到每个视图的末尾;给了位置时,那个视图里放到指定列 */
366
- declare function addField(doc: Y.Doc, tableId: string, input: NewFieldInput, origin?: unknown, position?: FieldPosition): string;
367
- /** 复制字段:配置和各记录的值一起复制,副本放在原字段右边(给了视图时在那个视图里) */
368
- declare function duplicateField(doc: Y.Doc, tableId: string, fieldId: string, options?: {
369
- viewId?: string;
370
- }, origin?: unknown): string;
371
- interface FieldPatch {
372
- name?: string;
373
- description?: string;
374
- property?: FieldPropertyInput;
375
- /** 改类型:已有的值按新类型转换(同飞书:能转的转,转不了的清掉) */
376
- type?: FieldTypeId;
377
- uiType?: NumberUiType;
378
- }
379
- /**
380
- * 改字段名、描述、属性、类型。删掉的选项会从单元格里一并清掉;改类型时已有的值按新类型转换。
381
- * 注意属性整体替换:两人同时改同一字段的选项,后写入的生效。
382
- */
383
- declare function updateField(doc: Y.Doc, tableId: string, fieldId: string, patch: FieldPatch, origin?: unknown): void;
384
- /** 删字段:主字段不能删;同时清掉各视图里的列、筛选排序分组条件和各记录里的值 */
385
- declare function deleteField(doc: Y.Doc, tableId: string, fieldId: string, origin?: unknown): void;
386
- /**
387
- * 新增记录,第一条落在表内第 index 位(默认追加到末尾)。值按字段类型规范化,空值不存。
388
- * 超过单表上限时抛错。
389
- */
390
- declare function addRecords(doc: Y.Doc, tableId: string, rows: Array<Record<string, unknown>>, options?: {
391
- index?: number;
392
- }, origin?: unknown): string[];
393
- /**
394
- * 补自动编号:缺编号的、和别人撞号的(两端同时新增)改用新的号,最早建的那条保留原号。
395
- * 只该由一方执行(docs-collab 存盘时),两端都修会再撞一次。返回改了几条。
396
- */
397
- declare function repairAutoNumbers(doc: Y.Doc, tableId: string, origin?: unknown): number;
398
- /** 改单元格:值按字段类型规范化,空值删除;和原值相同的不写(避免文档白白变大) */
399
- declare function setCells(doc: Y.Doc, tableId: string, changes: CellChange[], origin?: unknown): void;
400
- declare function deleteRecords(doc: Y.Doc, tableId: string, recordIds: string[], origin?: unknown): void;
401
- /** 把一批记录(保持它们之间的相对顺序)移到表内第 index 位(index 按移走它们之前的顺序算) */
402
- declare function moveRecords(doc: Y.Doc, tableId: string, recordIds: string[], index: number, origin?: unknown): void;
403
- declare function addView(doc: Y.Doc, tableId: string, name?: string, origin?: unknown): string;
404
- /** 删视图:至少保留一个 */
405
- declare function deleteView(doc: Y.Doc, tableId: string, viewId: string, origin?: unknown): void;
406
- /** 复制视图:列顺序、列宽、隐藏、冻结、行高、筛选、排序、分组都带上,副本紧跟在原视图后面 */
407
- declare function duplicateView(doc: Y.Doc, tableId: string, viewId: string, origin?: unknown): string;
408
- declare function updateView(doc: Y.Doc, tableId: string, viewId: string, patch: ViewPatch, origin?: unknown): void;
409
- /** 改列宽 / 隐藏列(按字段分别存,两人改不同列互不影响) */
410
- declare function setColumnInfo(doc: Y.Doc, tableId: string, viewId: string, fieldId: string, info: ColumnInfo, origin?: unknown): void;
411
- /** 调整列顺序:把字段移到视图第 index 列(主字段固定在第一列) */
412
- declare function moveViewField(doc: Y.Doc, tableId: string, viewId: string, fieldId: string, index: number, origin?: unknown): void;
413
- /** 撤销 / 重做:只跟踪本端 origin 的改动,别人的改动不会被撤掉 */
414
- declare function createBaseUndoManager(doc: Y.Doc, tableId: string, origin: unknown): Y.UndoManager;
39
+ /** 目标列的 value(KanbanColumn.value) */
40
+ value: string | UserValue[] | null;
41
+ /** 放到目标列里这条记录的前面;没有时放到 afterId 后面;两个都没有(或视图有排序)只改分组值 */
42
+ beforeId?: string | null;
43
+ afterId?: string | null;
44
+ }
45
+ /** 拖动看板卡片:改分组字段的值,并按落点调整记录在表内的顺序;同一个事务里完成,撤销一步回去 */
46
+ declare function moveKanbanRecord(doc: Y.Doc, tableId: string, groupFieldId: string, move: KanbanMove, origin?: unknown): void;
415
47
 
416
48
  declare class RankError extends Error {
417
49
  }
@@ -496,4 +128,4 @@ declare function loadSnapshot(doc: Y.Doc, snapshot: BaseSnapshot, origin?: unkno
496
128
  /** 纯文本(全文搜索、摘要用):每张表一段,表名、字段名一行,之后每条记录一行,单元格用制表符隔开 */
497
129
  declare function toPlainText(doc: Y.Doc): string;
498
130
 
499
- export { type AttachmentValue, type BaseField, type BaseIdPrefix, BaseModelError, type BaseRecordMeta, type BaseSnapshot, type BaseSnapshotField, type BaseSnapshotRecord, type BaseSnapshotTable, type BaseTableInfo, type BaseViewConfig, CURRENCY_SYMBOLS, type CellChange, type CellValue, type ColumnInfo, type ComputeViewInput, type ComputedView, DEFAULT_RECORD_COUNT, DEFAULT_TABLE_FIELDS, DEFAULT_TIME_ZONE, type DateFilterValue, FIELD_UI_TYPE, type FieldPatch, type FieldPosition, type FieldProperty, type FieldPropertyInput, FieldType, type FieldTypeId, type FilterCondition, type FilterConfig, type FilterOperator, type GroupHeader, type GroupRows, type GroupRule, MAX_RECORDS_PER_TABLE, NUMBER_UI_TYPES, type NewFieldInput, type NewTableInput, type NumberUiType, RECORD_META, RankError, type RowHeightLevel, SCHEMA_VERSION, STAT_LABELS, type SelectOption, type SortRule, type StatType, type TextSegment, type UrlValue, type UserValue, type ViewPatch, type WallTime, addDaysIn, addField, addRecords, addTable, addView, baseRoot, cellValueToText, compareCellValues, compareRank, computeView, copyName, createBaseUndoManager, dateFilterRange, defaultFieldProperty, deleteField, deleteRecords, deleteTable, deleteView, duplicateField, duplicateTable, duplicateView, fieldUiType, fieldValueKey, fieldsMap, filterKind, filterOperatorsFor, formatNumberField, fromWallTime, initBase, isBaseInitialized, isComputedFieldType, isEmptyCellValue, isFieldType, isNumberUiType, isRecordMetaKey, loadSnapshot, moveRecords, moveTable, moveViewField, newBaseId, normalizeCellValue, orderedRecordIds, rankBetween, ranksBetween, ranksMap, readCellValue, readFieldMap, readFieldValue, readFields, readTable, readTables, readView, readViewMap, readViews, recordsMap, renameTable, repairAutoNumbers, resolveStat, setBaseActor, setCells, setColumnInfo, startOfDayIn, startOfMonthIn, statText, statTypesFor, tableKeys, tableOrderArray, tableTypes, tablesMap, toPlainText, toSnapshot, toWallTime, uniqueName, updateField, updateView, viewOrderArray, viewsMap, weekdayIn };
131
+ export { BaseField, type BaseIdPrefix, type BaseRecordMeta, type BaseSnapshot, type BaseSnapshotField, type BaseSnapshotRecord, type BaseSnapshotTable, BaseViewConfig, type ComputeKanbanInput, FilterConfig, type KanbanColumn, type KanbanMove, RankError, SCHEMA_VERSION, SelectOption, SortRule, UserValue, baseRoot, compareRank, computeKanban, fieldsMap, isBaseInitialized, kanbanColumnKey, loadSnapshot, moveKanbanRecord, newBaseId, rankBetween, ranksBetween, ranksMap, recordsMap, tableKeys, tableOrderArray, tableTypes, tablesMap, toPlainText, toSnapshot, viewOrderArray, viewsMap };
@@ -1,3 +1,3 @@
1
- export { BaseModelError, CURRENCY_SYMBOLS, DEFAULT_RECORD_COUNT, DEFAULT_TABLE_FIELDS, DEFAULT_TIME_ZONE, FIELD_UI_TYPE, FieldType, MAX_RECORDS_PER_TABLE, NUMBER_UI_TYPES, RECORD_META, RankError, SCHEMA_VERSION, STAT_LABELS, addDaysIn, addField, addRecords, addTable, addView, baseRoot, cellValueToText, compareCellValues, compareRank, computeView, copyName, createBaseUndoManager, dateFilterRange, defaultFieldProperty, deleteField, deleteRecords, deleteTable, deleteView, duplicateField, duplicateTable, duplicateView, fieldUiType, fieldValueKey, fieldsMap, filterKind, filterOperatorsFor, formatNumberField, fromWallTime, initBase, isBaseInitialized, isComputedFieldType, isEmptyCellValue, isFieldType, isNumberUiType, isRecordMetaKey, loadSnapshot, moveRecords, moveTable, moveViewField, newBaseId, normalizeCellValue, orderedRecordIds, rankBetween, ranksBetween, ranksMap, readCellValue, readFieldMap, readFieldValue, readFields, readTable, readTables, readView, readViewMap, readViews, recordsMap, renameTable, repairAutoNumbers, resolveStat, setBaseActor, setCells, setColumnInfo, startOfDayIn, startOfMonthIn, statText, statTypesFor, tableKeys, tableOrderArray, tableTypes, tablesMap, toPlainText, toSnapshot, toWallTime, uniqueName, updateField, updateView, viewOrderArray, viewsMap, weekdayIn } from './chunk-3BRBH7MU.js';
1
+ export { BASE_VIEW_TYPES, BaseModelError, CURRENCY_SYMBOLS, DEFAULT_RECORD_COUNT, DEFAULT_TABLE_FIELDS, DEFAULT_TIME_ZONE, DEFAULT_VIEW_NAMES, FIELD_UI_TYPE, FieldType, FormSubmitError, MAX_RECORDS_PER_TABLE, NUMBER_UI_TYPES, RECORD_META, RankError, SCHEMA_VERSION, STAT_LABELS, addDaysIn, addField, addRecords, addTable, addView, baseRoot, cellValueToText, compareCellValues, compareRank, computeKanban, computeView, copyName, createBaseUndoManager, dateFilterRange, defaultFieldProperty, deleteField, deleteRecords, deleteTable, deleteView, duplicateField, duplicateTable, duplicateView, fieldUiType, fieldValueKey, fieldsMap, filterKind, filterOperatorsFor, formQuestions, formatNumberField, fromWallTime, initBase, isBaseInitialized, isBaseViewType, isComputedFieldType, isEmptyCellValue, isFieldType, isFormFieldType, isKanbanGroupFieldType, isNumberUiType, isRecordMetaKey, kanbanColumnKey, loadSnapshot, moveKanbanRecord, moveRecords, moveTable, moveViewField, newBaseId, normalizeCellValue, orderedRecordIds, rankBetween, ranksBetween, ranksMap, readCellValue, readFieldMap, readFieldValue, readFields, readTable, readTables, readView, readViewMap, readViews, recordsMap, renameTable, repairAutoNumbers, resolveStat, setBaseActor, setCells, setColumnInfo, setKanbanGroupField, startOfDayIn, startOfMonthIn, statText, statTypesFor, submitForm, tableKeys, tableOrderArray, tableTypes, tablesMap, toPlainText, toSnapshot, toWallTime, uniqueName, updateField, updateView, viewOrderArray, viewsMap, weekdayIn, writeViewExtras } from './chunk-S57WFYWY.js';
2
2
  //# sourceMappingURL=base-model.js.map
3
3
  //# sourceMappingURL=base-model.js.map
package/dist/base.d.ts CHANGED
@@ -1,9 +1,50 @@
1
1
  import * as react from 'react';
2
2
  import { CSSProperties, ForwardRefRenderFunction } from 'react';
3
3
  import * as Y from 'yjs';
4
+ import { y as FormQuestion } from './form-DqUOPVKI.js';
4
5
  import { E as EditorVisualTheme } from './editor-config-context-DvLRd7Gx.js';
5
6
  export { a as EditorConfig, b as EditorConfigProvider, c as EditorConfigProviderProps, d as EditorMentionConfig, e as EditorUploadConfig, f as EditorUserConfig, M as MentionUser, u as useEditorConfig } from './editor-config-context-DvLRd7Gx.js';
6
7
 
8
+ interface Anchor {
9
+ x: number;
10
+ y: number;
11
+ width: number;
12
+ height: number;
13
+ }
14
+
15
+ interface BaseFormViewProps {
16
+ doc: Y.Doc;
17
+ tableId: string;
18
+ viewId: string;
19
+ readOnly?: boolean;
20
+ origin: unknown;
21
+ /** 「新增字段」:BaseView 打开字段配置面板 */
22
+ onAddField?: (anchor: Anchor) => void;
23
+ /** 「分享表单」:宿主提供(生成外部填写链接);不给不显示 */
24
+ onShareForm?: (anchor: Anchor) => void;
25
+ onNotice?: (message: string) => void;
26
+ }
27
+ interface BaseFormFillProps {
28
+ title: string;
29
+ description?: string;
30
+ questions: FormQuestion[];
31
+ /** 不能填写(没有添加记录的权限) */
32
+ readOnly?: boolean;
33
+ /**
34
+ * 提交。必填没填时抛 FormSubmitError(或任何带 missing 字段 id 数组的错误),逐题提示「该项为必填项」;
35
+ * 其他错误的 message 交给 onNotice。成功后显示「提交成功」和「再填一次」。
36
+ */
37
+ onSubmit: (values: Record<string, unknown>) => unknown;
38
+ onNotice?: (message: string) => void;
39
+ }
40
+ /**
41
+ * 填写表单(不依赖 Y.Doc):表单视图里的「填写表单」用它,宿主的外部填写页(分享表单的链接)也用它,
42
+ * 题目由服务端按同一份 formQuestions 算好给过来,提交走宿主的接口。值按字段类型规范化后交给 onSubmit。
43
+ */
44
+ declare function BaseFormFill({ title, description, questions, readOnly, onSubmit, onNotice, }: BaseFormFillProps): react.JSX.Element;
45
+ /** 表单视图:「编辑表单」配置题目,「填写表单」提交一条记录(同飞书表单视图) */
46
+ declare function BaseFormView({ doc, tableId, viewId, readOnly, origin, onAddField, onShareForm, onNotice, }: BaseFormViewProps): react.JSX.Element | null;
47
+
7
48
  interface IGridTheme {
8
49
  staticWhite: string;
9
50
  staticBlack: string;
@@ -871,6 +912,28 @@ declare const ROW_HEIGHTS: {
871
912
  };
872
913
  declare const BaseGridView: react.ForwardRefExoticComponent<BaseGridViewProps & react.RefAttributes<BaseGridViewHandle>>;
873
914
 
915
+ interface BaseKanbanViewHandle {
916
+ undo: () => void;
917
+ redo: () => void;
918
+ /** 工具栏「添加记录」:加在第一列(有分组时带上这一列的值),并打开记录详情 */
919
+ addRecord: () => void;
920
+ }
921
+ interface BaseKanbanViewProps {
922
+ doc: Y.Doc;
923
+ tableId: string;
924
+ viewId: string;
925
+ readOnly?: boolean;
926
+ origin: unknown;
927
+ /** 记录详情里正打开的记录,卡片描边 */
928
+ highlightedRecordId?: string | null;
929
+ onExpandRecord: (recordId: string) => void;
930
+ /** 没有分组依据时,点「选择分组依据」 */
931
+ onPickGroupField: (anchor: Anchor) => void;
932
+ onNotice?: (message: string) => void;
933
+ }
934
+ /** 看板视图(DOM):按单选或人员字段分列,拖动卡片改分组值和顺序;点卡片打开记录详情 */
935
+ declare const BaseKanbanView: react.ForwardRefExoticComponent<BaseKanbanViewProps & react.RefAttributes<BaseKanbanViewHandle>>;
936
+
874
937
  interface BaseThemeStyleProps {
875
938
  /** 视觉风格,默认飞书 */
876
939
  visualTheme?: EditorVisualTheme;
@@ -902,9 +965,14 @@ interface BaseViewProps {
902
965
  }) => void;
903
966
  /** 本端写操作的 origin,撤销只撤它 */
904
967
  origin?: unknown;
968
+ /** 表单视图的「分享表单」(宿主生成外部填写链接);不给不显示 */
969
+ onShareForm?: (target: {
970
+ tableId: string;
971
+ viewId: string;
972
+ }) => void;
905
973
  style?: CSSProperties;
906
974
  className?: string;
907
975
  }
908
- declare function BaseView({ doc, readOnly, collaborators, onActiveCellChange, initialTableId, initialViewId, onNavigate, origin: originProp, style, className, }: BaseViewProps): react.JSX.Element;
976
+ declare function BaseView({ doc, readOnly, collaborators, onActiveCellChange, initialTableId, initialViewId, onNavigate, origin: originProp, onShareForm, style, className, }: BaseViewProps): react.JSX.Element;
909
977
 
910
- export { Grid as BaseGrid, type BaseGridAnchor, BaseGridView, type BaseGridViewHandle, type BaseGridViewProps, BaseThemeStyle, type BaseThemeStyleProps, BaseView, type BaseViewProps, CellRegionType, CellType, ChartType, DragRegionType, DraggableType, EditorType, GRID_DEFAULT, GridCustomIcon, type IActiveCellBound, type IBaseCell, type IBaseCellRenderer, type IBooleanCell, type IButtonCell, type IButtonClickStatusHook, type ICell, type ICellClickCallback, type ICellClickProps, type ICellError, type ICellItem, type ICellMeasureProps, type ICellMeasureResult, type ICellPosition, type ICellRange, type ICellRegion, type ICellRegionWithBlank, type ICellRegionWithData, type ICellRenderProps, type IChartCell, type ICollaborator, type IColumnFreezeState, type IColumnLoading, type IColumnRange, type IColumnResizeState, type IColumnStatistic, type IColumnStatistics, type ICustomEditor, type IDragState, type IEditableCell, type IGridColumn, type IGridExternalProps, type IGridProps, type IGridRef, type IGridTheme, type IGroupAddButtonPoint, type IGroupCollection, type IGroupHeaderPoint, type IGroupPoint, type IGroupRowPoint, type IImageCell, type IImageData, type IInnerCell, type IInternalCellRenderer, type ILinearRow, type ILinkCell, type ILoadingCell, type IMouseState, type INumberCell, type INumberShowAs, type IPosition, type IPositionWithBounds, type IProvideEditorCallback, type IRange, type IRatingCell, type IRecord, type IRectangle, type IRegionPosition, type IRowControlItem, type IRowRange, type IScrollDirection, type IScrollState, type ISelectCell, type ISelectChoice, type ISelectChoiceSorted, type ITextCell, type IUser, type IUserCell, type IUserData, LinearRowType, MouseButtonType, NumberDisplayType, ROW_HEIGHTS, RegionType, RowControlType, SelectableType, SelectionRegionType, gridTheme };
978
+ export { BaseFormFill, type BaseFormFillProps, BaseFormView, type BaseFormViewProps, Grid as BaseGrid, type BaseGridAnchor, BaseGridView, type BaseGridViewHandle, type BaseGridViewProps, BaseKanbanView, type BaseKanbanViewHandle, type BaseKanbanViewProps, BaseThemeStyle, type BaseThemeStyleProps, BaseView, type BaseViewProps, CellRegionType, CellType, ChartType, DragRegionType, DraggableType, EditorType, GRID_DEFAULT, GridCustomIcon, type IActiveCellBound, type IBaseCell, type IBaseCellRenderer, type IBooleanCell, type IButtonCell, type IButtonClickStatusHook, type ICell, type ICellClickCallback, type ICellClickProps, type ICellError, type ICellItem, type ICellMeasureProps, type ICellMeasureResult, type ICellPosition, type ICellRange, type ICellRegion, type ICellRegionWithBlank, type ICellRegionWithData, type ICellRenderProps, type IChartCell, type ICollaborator, type IColumnFreezeState, type IColumnLoading, type IColumnRange, type IColumnResizeState, type IColumnStatistic, type IColumnStatistics, type ICustomEditor, type IDragState, type IEditableCell, type IGridColumn, type IGridExternalProps, type IGridProps, type IGridRef, type IGridTheme, type IGroupAddButtonPoint, type IGroupCollection, type IGroupHeaderPoint, type IGroupPoint, type IGroupRowPoint, type IImageCell, type IImageData, type IInnerCell, type IInternalCellRenderer, type ILinearRow, type ILinkCell, type ILoadingCell, type IMouseState, type INumberCell, type INumberShowAs, type IPosition, type IPositionWithBounds, type IProvideEditorCallback, type IRange, type IRatingCell, type IRecord, type IRectangle, type IRegionPosition, type IRowControlItem, type IRowRange, type IScrollDirection, type IScrollState, type ISelectCell, type ISelectChoice, type ISelectChoiceSorted, type ITextCell, type IUser, type IUserCell, type IUserData, LinearRowType, MouseButtonType, NumberDisplayType, ROW_HEIGHTS, RegionType, RowControlType, SelectableType, SelectionRegionType, gridTheme };