@yudaocode/univer-bases 0.0.0-stage → 1.6.218
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/LICENSE +190 -0
- package/README.md +43 -2
- package/lib/cjs/facade/index.js +287 -0
- package/lib/cjs/facade/index.js.map +1 -0
- package/lib/cjs/index.js +5442 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/es/facade/index.js +293 -0
- package/lib/es/facade/index.js.map +1 -0
- package/lib/es/index.js +5370 -0
- package/lib/es/index.js.map +1 -0
- package/lib/types/facade/index.d.ts +140 -0
- package/lib/types/index.d.ts +769 -0
- package/package.json +63 -3
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+
import * as _univerjs_core from '@univerjs/core';
|
|
2
|
+
import { UnitModel, UniverInstanceType, IMutation, ICommand, Disposable, Plugin, Injector, IUniverInstanceService, ICommandService } from '@univerjs/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
declare const UNIVER_BASE_SCHEMA = "univer.base.unit.v1";
|
|
6
|
+
declare const UNIVER_BASE_SCHEMA_VERSION = 1;
|
|
7
|
+
/**
|
|
8
|
+
* Complete set of field types supported by Univer Bases:
|
|
9
|
+
* - Basic & Rich (17): text, url, email, phone, number, currency, percent, date, duration,
|
|
10
|
+
* singleSelect, multiSelect, checkbox, rating, person, attachment, barcode, button
|
|
11
|
+
* - System Auto (5): autoNumber, createdTime, lastModifiedTime, createdBy, lastModifiedBy
|
|
12
|
+
* - Relational & Computed (5): link, lookup, rollup, count, formula
|
|
13
|
+
*/
|
|
14
|
+
type BaseFieldType = 'text' | 'url' | 'email' | 'phone' | 'number' | 'currency' | 'percent' | 'date' | 'duration' | 'singleSelect' | 'multiSelect' | 'checkbox' | 'rating' | 'person' | 'attachment' | 'barcode' | 'button' | 'autoNumber' | 'createdTime' | 'lastModifiedTime' | 'createdBy' | 'lastModifiedBy' | 'link' | 'lookup' | 'rollup' | 'count' | 'formula';
|
|
15
|
+
declare const ALL_BASE_FIELD_TYPES: readonly BaseFieldType[];
|
|
16
|
+
declare const COMPUTED_BASE_FIELD_TYPES: ReadonlySet<BaseFieldType>;
|
|
17
|
+
declare function isComputedBaseField(type: BaseFieldType): boolean;
|
|
18
|
+
type BaseRollupFunction = 'sum' | 'avg' | 'min' | 'max' | 'count' | 'countValues' | 'values';
|
|
19
|
+
interface IBaseSelectOption {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
color: string;
|
|
23
|
+
}
|
|
24
|
+
interface IBasePerson {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
email?: string;
|
|
28
|
+
department?: string;
|
|
29
|
+
avatarColor?: string;
|
|
30
|
+
}
|
|
31
|
+
interface IBaseAttachment {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
size?: number;
|
|
35
|
+
mimeType?: string;
|
|
36
|
+
url?: string;
|
|
37
|
+
}
|
|
38
|
+
interface IBaseFieldConfig {
|
|
39
|
+
/** Options for `singleSelect` and `multiSelect` fields */
|
|
40
|
+
options?: IBaseSelectOption[];
|
|
41
|
+
/** Decimal precision for `number`, `currency`, `percent`, `rollup`, `formula` */
|
|
42
|
+
precision?: number;
|
|
43
|
+
/** Currency symbol for `currency` fields (default `'¥'`) */
|
|
44
|
+
currencySymbol?: string;
|
|
45
|
+
/** Date format string (`'YYYY-MM-DD' | 'YYYY-MM-DD HH:mm' | 'YYYY/MM/DD'`) */
|
|
46
|
+
dateFormat?: 'YYYY-MM-DD' | 'YYYY-MM-DD HH:mm' | 'YYYY/MM/DD';
|
|
47
|
+
/** Duration display format (`'h:mm' | 'h:mm:ss' | 'd:h:mm'`) */
|
|
48
|
+
durationFormat?: 'h:mm' | 'h:mm:ss' | 'd:h:mm';
|
|
49
|
+
/** Max rating stars for `rating` fields (default `5`) */
|
|
50
|
+
maxRating?: number;
|
|
51
|
+
/** Barcode symbology for `barcode` fields */
|
|
52
|
+
barcodeFormat?: 'CODE128' | 'EAN13' | 'QR';
|
|
53
|
+
/** Action button config for `button` fields */
|
|
54
|
+
buttonLabel?: string;
|
|
55
|
+
buttonStyle?: 'primary' | 'default' | 'success' | 'warning';
|
|
56
|
+
buttonActionType?: 'url' | 'webhook' | 'toast';
|
|
57
|
+
buttonUrlTemplate?: string;
|
|
58
|
+
/** Cross-table relation config for `link` fields */
|
|
59
|
+
linkedTableId?: string;
|
|
60
|
+
symmetricFieldId?: string;
|
|
61
|
+
allowMultiple?: boolean;
|
|
62
|
+
/** Computed relation config for `lookup`, `rollup`, and `count` fields */
|
|
63
|
+
linkFieldId?: string;
|
|
64
|
+
lookupFieldId?: string;
|
|
65
|
+
rollupFunction?: BaseRollupFunction;
|
|
66
|
+
/** Formula expression for `formula` fields, e.g. `{单价} * {数量}` */
|
|
67
|
+
formula?: string;
|
|
68
|
+
}
|
|
69
|
+
interface IBaseField {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
type: BaseFieldType;
|
|
73
|
+
isPrimary?: boolean;
|
|
74
|
+
width?: number;
|
|
75
|
+
hidden?: boolean;
|
|
76
|
+
required?: boolean;
|
|
77
|
+
description?: string;
|
|
78
|
+
config?: IBaseFieldConfig;
|
|
79
|
+
}
|
|
80
|
+
type BaseCellValue = string | number | boolean | string[] | IBasePerson[] | IBaseAttachment[] | null | undefined;
|
|
81
|
+
interface IBaseRecord {
|
|
82
|
+
id: string;
|
|
83
|
+
cells: Record<string, BaseCellValue>;
|
|
84
|
+
createdTime: string;
|
|
85
|
+
lastModifiedTime: string;
|
|
86
|
+
createdBy?: string;
|
|
87
|
+
lastModifiedBy?: string;
|
|
88
|
+
autoNumber?: number;
|
|
89
|
+
}
|
|
90
|
+
type BaseViewType = 'grid' | 'kanban' | 'calendar' | 'gallery' | 'gantt' | 'timeline' | 'form';
|
|
91
|
+
type BaseFilterOperator = 'is' | 'isNot' | 'contains' | 'notContains' | 'gt' | 'gte' | 'lt' | 'lte' | 'isEmpty' | 'isNotEmpty';
|
|
92
|
+
type BaseFilterConjunction = 'and' | 'or';
|
|
93
|
+
interface IBaseFilterRule {
|
|
94
|
+
id: string;
|
|
95
|
+
fieldId: string;
|
|
96
|
+
operator: BaseFilterOperator;
|
|
97
|
+
value?: unknown;
|
|
98
|
+
}
|
|
99
|
+
interface IBaseSortRule {
|
|
100
|
+
id: string;
|
|
101
|
+
fieldId: string;
|
|
102
|
+
direction: 'asc' | 'desc';
|
|
103
|
+
}
|
|
104
|
+
interface IBaseGroupRule {
|
|
105
|
+
fieldId: string;
|
|
106
|
+
direction?: 'asc' | 'desc';
|
|
107
|
+
collapsedValues?: string[];
|
|
108
|
+
}
|
|
109
|
+
interface IBaseColorRule {
|
|
110
|
+
id: string;
|
|
111
|
+
fieldId: string;
|
|
112
|
+
operator: BaseFilterOperator;
|
|
113
|
+
value?: unknown;
|
|
114
|
+
color: string;
|
|
115
|
+
label?: string;
|
|
116
|
+
}
|
|
117
|
+
type BaseSummaryType = 'none' | 'count' | 'empty' | 'filled' | 'percentFilled' | 'sum' | 'avg' | 'min' | 'max';
|
|
118
|
+
type BaseGanttZoom = 'day' | 'week' | 'month';
|
|
119
|
+
interface IBaseFormFieldItem {
|
|
120
|
+
fieldId: string;
|
|
121
|
+
visible: boolean;
|
|
122
|
+
required?: boolean;
|
|
123
|
+
label?: string;
|
|
124
|
+
placeholder?: string;
|
|
125
|
+
helpText?: string;
|
|
126
|
+
}
|
|
127
|
+
interface IBaseFormConfig {
|
|
128
|
+
title: string;
|
|
129
|
+
description?: string;
|
|
130
|
+
headerColor?: string;
|
|
131
|
+
submitButtonText?: string;
|
|
132
|
+
successMessage?: string;
|
|
133
|
+
fields: IBaseFormFieldItem[];
|
|
134
|
+
}
|
|
135
|
+
interface IBaseView {
|
|
136
|
+
id: string;
|
|
137
|
+
name: string;
|
|
138
|
+
type: BaseViewType;
|
|
139
|
+
description?: string;
|
|
140
|
+
filterConjunction?: BaseFilterConjunction;
|
|
141
|
+
filters?: IBaseFilterRule[];
|
|
142
|
+
sorts?: IBaseSortRule[];
|
|
143
|
+
groups?: IBaseGroupRule[];
|
|
144
|
+
colorRules?: IBaseColorRule[];
|
|
145
|
+
hiddenFieldIds?: string[];
|
|
146
|
+
summaryConfig?: Record<string, BaseSummaryType>;
|
|
147
|
+
rowHeight?: 'compact' | 'medium' | 'tall';
|
|
148
|
+
searchQuery?: string;
|
|
149
|
+
kanbanGroupFieldId?: string;
|
|
150
|
+
kanbanSumFieldId?: string;
|
|
151
|
+
cardVisibleFieldIds?: string[];
|
|
152
|
+
calendarDateFieldId?: string;
|
|
153
|
+
calendarColorFieldId?: string;
|
|
154
|
+
galleryCoverFieldId?: string;
|
|
155
|
+
galleryAccentColor?: string;
|
|
156
|
+
ganttStartDateFieldId?: string;
|
|
157
|
+
ganttEndDateFieldId?: string;
|
|
158
|
+
ganttProgressFieldId?: string;
|
|
159
|
+
ganttDependencyFieldId?: string;
|
|
160
|
+
ganttGroupFieldId?: string;
|
|
161
|
+
ganttZoom?: BaseGanttZoom;
|
|
162
|
+
formConfig?: IBaseFormConfig;
|
|
163
|
+
}
|
|
164
|
+
interface IBaseTable {
|
|
165
|
+
id: string;
|
|
166
|
+
name: string;
|
|
167
|
+
icon?: string;
|
|
168
|
+
description?: string;
|
|
169
|
+
primaryFieldId: string;
|
|
170
|
+
fieldOrder: string[];
|
|
171
|
+
fields: Record<string, IBaseField>;
|
|
172
|
+
recordOrder: string[];
|
|
173
|
+
records: Record<string, IBaseRecord>;
|
|
174
|
+
viewOrder: string[];
|
|
175
|
+
views: Record<string, IBaseView>;
|
|
176
|
+
activeViewId: string;
|
|
177
|
+
nextAutoNumber?: number;
|
|
178
|
+
}
|
|
179
|
+
type BaseDashboardChartType = 'kpi' | 'bar' | 'line' | 'pie' | 'doughnut';
|
|
180
|
+
type BaseDashboardAggregation = 'count' | 'sum' | 'avg' | 'min' | 'max';
|
|
181
|
+
interface IBaseDashboardWidget {
|
|
182
|
+
id: string;
|
|
183
|
+
title: string;
|
|
184
|
+
type: BaseDashboardChartType;
|
|
185
|
+
tableId: string;
|
|
186
|
+
groupByFieldId?: string;
|
|
187
|
+
valueFieldId?: string;
|
|
188
|
+
aggregation: BaseDashboardAggregation;
|
|
189
|
+
color?: string;
|
|
190
|
+
widthSpan?: 1 | 2;
|
|
191
|
+
subtitle?: string;
|
|
192
|
+
}
|
|
193
|
+
interface IBaseDashboard {
|
|
194
|
+
id: string;
|
|
195
|
+
name: string;
|
|
196
|
+
widgets: IBaseDashboardWidget[];
|
|
197
|
+
}
|
|
198
|
+
interface IBaseAutomationRule {
|
|
199
|
+
id: string;
|
|
200
|
+
name: string;
|
|
201
|
+
tableId: string;
|
|
202
|
+
enabled: boolean;
|
|
203
|
+
trigger: 'recordCreated' | 'recordUpdated' | 'fieldMatches';
|
|
204
|
+
triggerFieldId?: string;
|
|
205
|
+
triggerValue?: unknown;
|
|
206
|
+
action: 'updateRecord' | 'notify' | 'webhook';
|
|
207
|
+
actionConfig?: Record<string, unknown>;
|
|
208
|
+
}
|
|
209
|
+
interface IBaseUnitData {
|
|
210
|
+
schema?: string;
|
|
211
|
+
schemaVersion?: number;
|
|
212
|
+
id: string;
|
|
213
|
+
name: string;
|
|
214
|
+
rev: number;
|
|
215
|
+
activeTableId: string;
|
|
216
|
+
activeViewId: string;
|
|
217
|
+
activeDashboardId?: string;
|
|
218
|
+
workspaceMode?: 'table' | 'dashboard';
|
|
219
|
+
tableOrder: string[];
|
|
220
|
+
tables: Record<string, IBaseTable>;
|
|
221
|
+
dashboards?: IBaseDashboard[];
|
|
222
|
+
automations?: IBaseAutomationRule[];
|
|
223
|
+
collaborators?: IBasePerson[];
|
|
224
|
+
metadata?: Record<string, unknown>;
|
|
225
|
+
}
|
|
226
|
+
declare const BASE_SELECT_PALETTE: readonly string[];
|
|
227
|
+
declare const BASE_ROW_COLOR_PALETTE: readonly {
|
|
228
|
+
label: string;
|
|
229
|
+
color: string;
|
|
230
|
+
}[];
|
|
231
|
+
|
|
232
|
+
interface IResolvedLinkedRecordItem {
|
|
233
|
+
id: string;
|
|
234
|
+
title: string;
|
|
235
|
+
record: IBaseRecord;
|
|
236
|
+
}
|
|
237
|
+
declare function normalizeLinkIds(raw: BaseCellValue): string[];
|
|
238
|
+
declare function toNumericValue(val: unknown): number | null;
|
|
239
|
+
declare function roundToPrecision(num: number, precision?: number): number;
|
|
240
|
+
declare function isCellValueEmpty(val: BaseCellValue): boolean;
|
|
241
|
+
declare function resolveLinkedRecordItems(unitData: IBaseUnitData, record: IBaseRecord, linkField: IBaseField, visited?: Set<string>): IResolvedLinkedRecordItem[];
|
|
242
|
+
declare function resolveBaseCellValue(unitData: IBaseUnitData, tableId: string, record: IBaseRecord, field: IBaseField, visited?: Set<string>): BaseCellValue;
|
|
243
|
+
declare function formatDurationSeconds(secondsOrStr: BaseCellValue, format?: string): string;
|
|
244
|
+
declare function formatBaseCellValue(unitData: IBaseUnitData, tableId: string, field: IBaseField, value: BaseCellValue): string;
|
|
245
|
+
declare function evaluateBaseFormula(expression: string, record: IBaseRecord, table: IBaseTable, unitData: IBaseUnitData, visited?: Set<string>): string | number | boolean | null;
|
|
246
|
+
|
|
247
|
+
interface IBaseEvaluatedRow {
|
|
248
|
+
recordId: string;
|
|
249
|
+
rowIndex: number;
|
|
250
|
+
record: IBaseRecord;
|
|
251
|
+
values: Record<string, BaseCellValue>;
|
|
252
|
+
displayValues: Record<string, string>;
|
|
253
|
+
rowColor?: string;
|
|
254
|
+
}
|
|
255
|
+
interface IBaseGroupNode {
|
|
256
|
+
key: string;
|
|
257
|
+
fieldId: string;
|
|
258
|
+
fieldName: string;
|
|
259
|
+
value: string;
|
|
260
|
+
label: string;
|
|
261
|
+
color?: string;
|
|
262
|
+
depth: number;
|
|
263
|
+
count: number;
|
|
264
|
+
collapsed: boolean;
|
|
265
|
+
rows: IBaseEvaluatedRow[];
|
|
266
|
+
children: IBaseGroupNode[];
|
|
267
|
+
summaryByField: Record<string, number | string | null>;
|
|
268
|
+
}
|
|
269
|
+
interface IBaseViewQueryOverrides {
|
|
270
|
+
filters?: IBaseFilterRule[];
|
|
271
|
+
filterConjunction?: BaseFilterConjunction;
|
|
272
|
+
sorts?: IBaseSortRule[];
|
|
273
|
+
groups?: IBaseGroupRule[];
|
|
274
|
+
colorRules?: IBaseColorRule[];
|
|
275
|
+
searchQuery?: string;
|
|
276
|
+
summaryConfig?: Record<string, BaseSummaryType>;
|
|
277
|
+
}
|
|
278
|
+
interface IBaseViewQueryResult {
|
|
279
|
+
table: IBaseTable;
|
|
280
|
+
view: IBaseView;
|
|
281
|
+
visibleFields: IBaseField[];
|
|
282
|
+
allFields: IBaseField[];
|
|
283
|
+
rows: IBaseEvaluatedRow[];
|
|
284
|
+
groups: IBaseGroupNode[];
|
|
285
|
+
summaryByField: Record<string, number | string | null>;
|
|
286
|
+
rowColors: Record<string, string>;
|
|
287
|
+
totalRecordCount: number;
|
|
288
|
+
filteredRecordCount: number;
|
|
289
|
+
}
|
|
290
|
+
interface IBaseDashboardSeriesItem {
|
|
291
|
+
key: string;
|
|
292
|
+
label: string;
|
|
293
|
+
value: number;
|
|
294
|
+
count: number;
|
|
295
|
+
color: string;
|
|
296
|
+
percent: number;
|
|
297
|
+
}
|
|
298
|
+
interface IBaseDashboardWidgetResult {
|
|
299
|
+
widgetId: string;
|
|
300
|
+
title: string;
|
|
301
|
+
type: IBaseDashboardWidget['type'];
|
|
302
|
+
totalValue: number;
|
|
303
|
+
formattedTotal: string;
|
|
304
|
+
recordCount: number;
|
|
305
|
+
series: IBaseDashboardSeriesItem[];
|
|
306
|
+
}
|
|
307
|
+
interface IBaseGanttTaskItem {
|
|
308
|
+
recordId: string;
|
|
309
|
+
title: string;
|
|
310
|
+
rowIndex: number;
|
|
311
|
+
startDate: string;
|
|
312
|
+
endDate: string;
|
|
313
|
+
startMs: number;
|
|
314
|
+
endMs: number;
|
|
315
|
+
startOffsetDays: number;
|
|
316
|
+
durationDays: number;
|
|
317
|
+
isMilestone: boolean;
|
|
318
|
+
progress: number;
|
|
319
|
+
color: string;
|
|
320
|
+
predecessorIds: string[];
|
|
321
|
+
row: IBaseEvaluatedRow;
|
|
322
|
+
}
|
|
323
|
+
interface IBaseGanttDependencyEdge {
|
|
324
|
+
id: string;
|
|
325
|
+
fromRecordId: string;
|
|
326
|
+
toRecordId: string;
|
|
327
|
+
fromRowIndex: number;
|
|
328
|
+
toRowIndex: number;
|
|
329
|
+
fromEndOffsetDays: number;
|
|
330
|
+
toStartOffsetDays: number;
|
|
331
|
+
}
|
|
332
|
+
interface IBaseGanttLayoutResult {
|
|
333
|
+
tasks: IBaseGanttTaskItem[];
|
|
334
|
+
dependencies: IBaseGanttDependencyEdge[];
|
|
335
|
+
rangeStartDate: string;
|
|
336
|
+
rangeEndDate: string;
|
|
337
|
+
rangeStartMs: number;
|
|
338
|
+
totalDays: number;
|
|
339
|
+
}
|
|
340
|
+
declare function matchesBaseFilterRule(rule: IBaseFilterRule, field: IBaseField | undefined, rawVal: BaseCellValue, displayVal: string): boolean;
|
|
341
|
+
declare function computeFieldSummary(rows: IBaseEvaluatedRow[], field: IBaseField, summaryType: BaseSummaryType): number | string | null;
|
|
342
|
+
declare function queryBaseTableView(unitData: IBaseUnitData, tableId?: string, viewId?: string, overrides?: IBaseViewQueryOverrides): IBaseViewQueryResult;
|
|
343
|
+
declare function computeBaseDashboardWidget(unitData: IBaseUnitData, widget: IBaseDashboardWidget): IBaseDashboardWidgetResult;
|
|
344
|
+
declare function computeBaseGanttTasks(unitData: IBaseUnitData, tableId?: string, viewId?: string): IBaseGanttLayoutResult;
|
|
345
|
+
|
|
346
|
+
declare function createSampleProjectBaseData(options?: {
|
|
347
|
+
id?: string;
|
|
348
|
+
name?: string;
|
|
349
|
+
}): IBaseUnitData;
|
|
350
|
+
declare function createSampleCrmBaseData(options?: {
|
|
351
|
+
id?: string;
|
|
352
|
+
name?: string;
|
|
353
|
+
}): IBaseUnitData;
|
|
354
|
+
declare function createDefaultBaseUnitData(partial?: Partial<IBaseUnitData>): IBaseUnitData;
|
|
355
|
+
|
|
356
|
+
declare class BaseUnitModel extends UnitModel<IBaseUnitData, UniverInstanceType.UNIVER_BASE> {
|
|
357
|
+
readonly type = UniverInstanceType.UNIVER_BASE;
|
|
358
|
+
private _snapshot;
|
|
359
|
+
private readonly _name$;
|
|
360
|
+
readonly name$: Observable<string>;
|
|
361
|
+
private readonly _snapshotChanged$;
|
|
362
|
+
readonly snapshotChanged$: Observable<IBaseUnitData>;
|
|
363
|
+
constructor(snapshot?: Partial<IBaseUnitData>);
|
|
364
|
+
dispose(): void;
|
|
365
|
+
getUnitId(): string;
|
|
366
|
+
setName(name: string): void;
|
|
367
|
+
getName(): string;
|
|
368
|
+
getSnapshot(): IBaseUnitData;
|
|
369
|
+
save(): IBaseUnitData;
|
|
370
|
+
getRev(): number;
|
|
371
|
+
incrementRev(): void;
|
|
372
|
+
setRev(rev: number): void;
|
|
373
|
+
getTables(): IBaseTable[];
|
|
374
|
+
getTable(tableId: string): IBaseTable | undefined;
|
|
375
|
+
getActiveTableId(): string;
|
|
376
|
+
getActiveTable(): IBaseTable | undefined;
|
|
377
|
+
getActiveViewId(): string;
|
|
378
|
+
getActiveView(): IBaseView | undefined;
|
|
379
|
+
getWorkspaceMode(): 'table' | 'dashboard';
|
|
380
|
+
getDashboards(): IBaseDashboard[];
|
|
381
|
+
getActiveDashboard(): IBaseDashboard | undefined;
|
|
382
|
+
evaluateCell(tableId: string, record: IBaseRecord, field: IBaseField): BaseCellValue;
|
|
383
|
+
formatCell(tableId: string, field: IBaseField, value: BaseCellValue): string;
|
|
384
|
+
queryView(tableId?: string, viewId?: string, overrides?: IBaseViewQueryOverrides): IBaseViewQueryResult;
|
|
385
|
+
computeGanttTasks(tableId?: string, viewId?: string): IBaseGanttLayoutResult;
|
|
386
|
+
computeDashboardWidget(widget: IBaseDashboardWidget): IBaseDashboardWidgetResult;
|
|
387
|
+
__replaceSnapshot(nextSnapshot: IBaseUnitData): void;
|
|
388
|
+
__applyTablesState(params: {
|
|
389
|
+
tableOrder: string[];
|
|
390
|
+
tables: Record<string, IBaseTable>;
|
|
391
|
+
activeTableId?: string;
|
|
392
|
+
activeViewId?: string;
|
|
393
|
+
workspaceMode?: 'table' | 'dashboard';
|
|
394
|
+
}): void;
|
|
395
|
+
__setActiveNavigation(params: {
|
|
396
|
+
activeTableId?: string;
|
|
397
|
+
activeViewId?: string;
|
|
398
|
+
activeDashboardId?: string;
|
|
399
|
+
workspaceMode?: 'table' | 'dashboard';
|
|
400
|
+
}): void;
|
|
401
|
+
__applyDashboardsState(params: {
|
|
402
|
+
dashboards: IBaseDashboard[];
|
|
403
|
+
activeDashboardId?: string;
|
|
404
|
+
workspaceMode?: 'table' | 'dashboard';
|
|
405
|
+
}): void;
|
|
406
|
+
private _notifyChange;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface IApplyBaseTablesStateMutationParams {
|
|
410
|
+
unitId: string;
|
|
411
|
+
tableOrder: string[];
|
|
412
|
+
tables: Record<string, IBaseTable>;
|
|
413
|
+
activeTableId?: string;
|
|
414
|
+
activeViewId?: string;
|
|
415
|
+
workspaceMode?: 'table' | 'dashboard';
|
|
416
|
+
}
|
|
417
|
+
declare const ApplyBaseTablesStateMutation: IMutation<IApplyBaseTablesStateMutationParams>;
|
|
418
|
+
interface ISetBaseActiveNavigationMutationParams {
|
|
419
|
+
unitId: string;
|
|
420
|
+
activeTableId?: string;
|
|
421
|
+
activeViewId?: string;
|
|
422
|
+
activeDashboardId?: string;
|
|
423
|
+
workspaceMode?: 'table' | 'dashboard';
|
|
424
|
+
}
|
|
425
|
+
declare const SetBaseActiveNavigationMutation: IMutation<ISetBaseActiveNavigationMutationParams>;
|
|
426
|
+
interface IApplyBaseDashboardsStateMutationParams {
|
|
427
|
+
unitId: string;
|
|
428
|
+
dashboards: IBaseDashboard[];
|
|
429
|
+
activeDashboardId?: string;
|
|
430
|
+
workspaceMode?: 'table' | 'dashboard';
|
|
431
|
+
}
|
|
432
|
+
declare const ApplyBaseDashboardsStateMutation: IMutation<IApplyBaseDashboardsStateMutationParams>;
|
|
433
|
+
interface IReplaceBaseSnapshotMutationParams {
|
|
434
|
+
unitId: string;
|
|
435
|
+
snapshot: IBaseUnitData;
|
|
436
|
+
}
|
|
437
|
+
declare const ReplaceBaseSnapshotMutation: IMutation<IReplaceBaseSnapshotMutationParams>;
|
|
438
|
+
|
|
439
|
+
interface IAddBaseTableCommandParams {
|
|
440
|
+
unitId?: string;
|
|
441
|
+
tableId?: string;
|
|
442
|
+
name?: string;
|
|
443
|
+
description?: string;
|
|
444
|
+
fields?: IBaseField[];
|
|
445
|
+
makeActive?: boolean;
|
|
446
|
+
onCreated?: (tableId: string) => void;
|
|
447
|
+
}
|
|
448
|
+
declare const AddBaseTableCommand: ICommand<IAddBaseTableCommandParams>;
|
|
449
|
+
interface IUpdateBaseTableCommandParams {
|
|
450
|
+
unitId?: string;
|
|
451
|
+
tableId: string;
|
|
452
|
+
patch: {
|
|
453
|
+
name?: string;
|
|
454
|
+
description?: string;
|
|
455
|
+
icon?: string;
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
declare const UpdateBaseTableCommand: ICommand<IUpdateBaseTableCommandParams>;
|
|
459
|
+
interface IDeleteBaseTableCommandParams {
|
|
460
|
+
unitId?: string;
|
|
461
|
+
tableId: string;
|
|
462
|
+
}
|
|
463
|
+
declare const DeleteBaseTableCommand: ICommand<IDeleteBaseTableCommandParams>;
|
|
464
|
+
interface ISetActiveBaseTableCommandParams {
|
|
465
|
+
unitId?: string;
|
|
466
|
+
tableId: string;
|
|
467
|
+
viewId?: string;
|
|
468
|
+
}
|
|
469
|
+
declare const SetActiveBaseTableCommand: ICommand<ISetActiveBaseTableCommandParams>;
|
|
470
|
+
interface ISetBaseWorkspaceModeCommandParams {
|
|
471
|
+
unitId?: string;
|
|
472
|
+
mode: 'table' | 'dashboard';
|
|
473
|
+
dashboardId?: string;
|
|
474
|
+
}
|
|
475
|
+
declare const SetBaseWorkspaceModeCommand: ICommand<ISetBaseWorkspaceModeCommandParams>;
|
|
476
|
+
interface IAddBaseFieldCommandParams {
|
|
477
|
+
unitId?: string;
|
|
478
|
+
tableId?: string;
|
|
479
|
+
fieldId?: string;
|
|
480
|
+
name: string;
|
|
481
|
+
type: BaseFieldType;
|
|
482
|
+
width?: number;
|
|
483
|
+
required?: boolean;
|
|
484
|
+
description?: string;
|
|
485
|
+
config?: IBaseFieldConfig;
|
|
486
|
+
createSymmetric?: boolean;
|
|
487
|
+
symmetricFieldName?: string;
|
|
488
|
+
index?: number;
|
|
489
|
+
onCreated?: (fieldId: string) => void;
|
|
490
|
+
}
|
|
491
|
+
declare const AddBaseFieldCommand: ICommand<IAddBaseFieldCommandParams>;
|
|
492
|
+
interface IUpdateBaseFieldCommandParams {
|
|
493
|
+
unitId?: string;
|
|
494
|
+
tableId?: string;
|
|
495
|
+
fieldId: string;
|
|
496
|
+
patch: Partial<Omit<IBaseField, 'id'>>;
|
|
497
|
+
}
|
|
498
|
+
declare const UpdateBaseFieldCommand: ICommand<IUpdateBaseFieldCommandParams>;
|
|
499
|
+
interface IDeleteBaseFieldCommandParams {
|
|
500
|
+
unitId?: string;
|
|
501
|
+
tableId?: string;
|
|
502
|
+
fieldId: string;
|
|
503
|
+
}
|
|
504
|
+
declare const DeleteBaseFieldCommand: ICommand<IDeleteBaseFieldCommandParams>;
|
|
505
|
+
interface IReorderBaseFieldsCommandParams {
|
|
506
|
+
unitId?: string;
|
|
507
|
+
tableId?: string;
|
|
508
|
+
fieldOrder: string[];
|
|
509
|
+
}
|
|
510
|
+
declare const ReorderBaseFieldsCommand: ICommand<IReorderBaseFieldsCommandParams>;
|
|
511
|
+
interface IAddBaseRecordCommandParams {
|
|
512
|
+
unitId?: string;
|
|
513
|
+
tableId?: string;
|
|
514
|
+
recordId?: string;
|
|
515
|
+
cells?: Record<string, BaseCellValue>;
|
|
516
|
+
createdBy?: string;
|
|
517
|
+
index?: number;
|
|
518
|
+
onCreated?: (recordId: string) => void;
|
|
519
|
+
}
|
|
520
|
+
declare const AddBaseRecordCommand: ICommand<IAddBaseRecordCommandParams>;
|
|
521
|
+
interface IUpdateBaseRecordCommandParams {
|
|
522
|
+
unitId?: string;
|
|
523
|
+
tableId?: string;
|
|
524
|
+
recordId: string;
|
|
525
|
+
cells: Record<string, BaseCellValue>;
|
|
526
|
+
modifiedBy?: string;
|
|
527
|
+
}
|
|
528
|
+
declare const UpdateBaseRecordCommand: ICommand<IUpdateBaseRecordCommandParams>;
|
|
529
|
+
interface IDeleteBaseRecordsCommandParams {
|
|
530
|
+
unitId?: string;
|
|
531
|
+
tableId?: string;
|
|
532
|
+
recordIds: string[];
|
|
533
|
+
}
|
|
534
|
+
declare const DeleteBaseRecordsCommand: ICommand<IDeleteBaseRecordsCommandParams>;
|
|
535
|
+
interface IBatchInsertBaseRecordsCommandParams {
|
|
536
|
+
unitId?: string;
|
|
537
|
+
tableId?: string;
|
|
538
|
+
records: Array<{
|
|
539
|
+
id?: string;
|
|
540
|
+
cells: Record<string, BaseCellValue>;
|
|
541
|
+
}>;
|
|
542
|
+
onCreated?: (recordIds: string[]) => void;
|
|
543
|
+
}
|
|
544
|
+
declare const BatchInsertBaseRecordsCommand: ICommand<IBatchInsertBaseRecordsCommandParams>;
|
|
545
|
+
interface ISubmitBaseFormResponseCommandParams {
|
|
546
|
+
unitId?: string;
|
|
547
|
+
tableId?: string;
|
|
548
|
+
viewId?: string;
|
|
549
|
+
values: Record<string, BaseCellValue>;
|
|
550
|
+
submittedBy?: string;
|
|
551
|
+
onSubmitted?: (recordId: string) => void;
|
|
552
|
+
}
|
|
553
|
+
declare const SubmitBaseFormResponseCommand: ICommand<ISubmitBaseFormResponseCommandParams>;
|
|
554
|
+
interface IAddBaseViewCommandParams {
|
|
555
|
+
unitId?: string;
|
|
556
|
+
tableId?: string;
|
|
557
|
+
viewId?: string;
|
|
558
|
+
name?: string;
|
|
559
|
+
type: BaseViewType;
|
|
560
|
+
view?: Partial<IBaseView>;
|
|
561
|
+
makeActive?: boolean;
|
|
562
|
+
onCreated?: (viewId: string) => void;
|
|
563
|
+
}
|
|
564
|
+
declare const AddBaseViewCommand: ICommand<IAddBaseViewCommandParams>;
|
|
565
|
+
interface IUpdateBaseViewCommandParams {
|
|
566
|
+
unitId?: string;
|
|
567
|
+
tableId?: string;
|
|
568
|
+
viewId?: string;
|
|
569
|
+
patch: Partial<Omit<IBaseView, 'id'>>;
|
|
570
|
+
}
|
|
571
|
+
declare const UpdateBaseViewCommand: ICommand<IUpdateBaseViewCommandParams>;
|
|
572
|
+
interface IDeleteBaseViewCommandParams {
|
|
573
|
+
unitId?: string;
|
|
574
|
+
tableId?: string;
|
|
575
|
+
viewId: string;
|
|
576
|
+
}
|
|
577
|
+
declare const DeleteBaseViewCommand: ICommand<IDeleteBaseViewCommandParams>;
|
|
578
|
+
interface ISetActiveBaseViewCommandParams {
|
|
579
|
+
unitId?: string;
|
|
580
|
+
tableId?: string;
|
|
581
|
+
viewId: string;
|
|
582
|
+
}
|
|
583
|
+
declare const SetActiveBaseViewCommand: ICommand<ISetActiveBaseViewCommandParams>;
|
|
584
|
+
interface IAddBaseDashboardWidgetCommandParams {
|
|
585
|
+
unitId?: string;
|
|
586
|
+
dashboardId?: string;
|
|
587
|
+
widget: Omit<IBaseDashboardWidget, 'id'> & {
|
|
588
|
+
id?: string;
|
|
589
|
+
};
|
|
590
|
+
onCreated?: (widgetId: string) => void;
|
|
591
|
+
}
|
|
592
|
+
declare const AddBaseDashboardWidgetCommand: ICommand<IAddBaseDashboardWidgetCommandParams>;
|
|
593
|
+
interface IUpdateBaseDashboardWidgetCommandParams {
|
|
594
|
+
unitId?: string;
|
|
595
|
+
dashboardId?: string;
|
|
596
|
+
widgetId: string;
|
|
597
|
+
patch: Partial<Omit<IBaseDashboardWidget, 'id'>>;
|
|
598
|
+
}
|
|
599
|
+
declare const UpdateBaseDashboardWidgetCommand: ICommand<IUpdateBaseDashboardWidgetCommandParams>;
|
|
600
|
+
interface IDeleteBaseDashboardWidgetCommandParams {
|
|
601
|
+
unitId?: string;
|
|
602
|
+
dashboardId?: string;
|
|
603
|
+
widgetId: string;
|
|
604
|
+
}
|
|
605
|
+
declare const DeleteBaseDashboardWidgetCommand: ICommand<IDeleteBaseDashboardWidgetCommandParams>;
|
|
606
|
+
interface IReplaceBaseSnapshotCommandParams {
|
|
607
|
+
unitId?: string;
|
|
608
|
+
snapshot: IBaseUnitData;
|
|
609
|
+
}
|
|
610
|
+
declare const ReplaceBaseSnapshotCommand: ICommand<IReplaceBaseSnapshotCommandParams>;
|
|
611
|
+
|
|
612
|
+
declare function parseDelimitedText(text: string, delimiter?: ',' | '\t'): string[][];
|
|
613
|
+
declare function serializeDelimitedText(rows: ReadonlyArray<ReadonlyArray<string>>, delimiter?: ',' | '\t'): string;
|
|
614
|
+
declare function inferFieldFromColumnSamples(rawSamples: ReadonlyArray<string>): {
|
|
615
|
+
type: BaseFieldType;
|
|
616
|
+
options?: IBaseSelectOption[];
|
|
617
|
+
};
|
|
618
|
+
declare function coerceImportedCellValue(raw: string, type: BaseFieldType): BaseCellValue;
|
|
619
|
+
interface IExportBaseCsvOptions {
|
|
620
|
+
delimiter?: ',' | '\t';
|
|
621
|
+
viewId?: string;
|
|
622
|
+
includeBom?: boolean;
|
|
623
|
+
}
|
|
624
|
+
declare function exportBaseTableToCsv(unitData: IBaseUnitData, tableId?: string, options?: IExportBaseCsvOptions): string;
|
|
625
|
+
interface IImportCsvToTableOptions {
|
|
626
|
+
tableId?: string;
|
|
627
|
+
tableName?: string;
|
|
628
|
+
delimiter?: ',' | '\t';
|
|
629
|
+
}
|
|
630
|
+
declare function buildBaseTableFromGridRows(gridRows: string[][], options?: {
|
|
631
|
+
tableId?: string;
|
|
632
|
+
tableName?: string;
|
|
633
|
+
}): IBaseTable;
|
|
634
|
+
declare function importCsvToBaseTable(csvText: string, options?: IImportCsvToTableOptions): IBaseTable;
|
|
635
|
+
|
|
636
|
+
interface IExportBaseXlsxOptions {
|
|
637
|
+
tableIds?: string[];
|
|
638
|
+
}
|
|
639
|
+
declare function exportBaseToXlsxBytes(unitData: IBaseUnitData, options?: IExportBaseXlsxOptions): Uint8Array;
|
|
640
|
+
interface IImportXlsxToBaseOptions {
|
|
641
|
+
id?: string;
|
|
642
|
+
name?: string;
|
|
643
|
+
}
|
|
644
|
+
declare function importXlsxBytesToBase(bytes: Uint8Array, options?: IImportXlsxToBaseOptions): IBaseUnitData;
|
|
645
|
+
|
|
646
|
+
type BaseIoFormat = 'xlsx' | 'csv' | 'tsv' | 'json';
|
|
647
|
+
interface IBaseIoAdapter {
|
|
648
|
+
name?: string;
|
|
649
|
+
importBase?: (source: Uint8Array | string, format: BaseIoFormat, options?: {
|
|
650
|
+
id?: string;
|
|
651
|
+
name?: string;
|
|
652
|
+
}) => Promise<IBaseUnitData> | IBaseUnitData;
|
|
653
|
+
exportBase?: (snapshot: IBaseUnitData, format: BaseIoFormat, options?: {
|
|
654
|
+
tableId?: string;
|
|
655
|
+
}) => Promise<Uint8Array | string> | Uint8Array | string;
|
|
656
|
+
onSave?: (snapshot: IBaseUnitData) => Promise<void> | void;
|
|
657
|
+
}
|
|
658
|
+
interface IBaseSavedEvent {
|
|
659
|
+
unitId: string;
|
|
660
|
+
snapshot: IBaseUnitData;
|
|
661
|
+
savedAt: string;
|
|
662
|
+
}
|
|
663
|
+
interface IBaseIoService {
|
|
664
|
+
readonly saved$: Observable<IBaseSavedEvent>;
|
|
665
|
+
setAdapter(adapter: IBaseIoAdapter): void;
|
|
666
|
+
getAdapter(): IBaseIoAdapter;
|
|
667
|
+
importBase(source: Uint8Array | string, format: BaseIoFormat, options?: {
|
|
668
|
+
id?: string;
|
|
669
|
+
name?: string;
|
|
670
|
+
}): Promise<IBaseUnitData>;
|
|
671
|
+
exportBase(snapshot: IBaseUnitData, format: BaseIoFormat, options?: {
|
|
672
|
+
tableId?: string;
|
|
673
|
+
}): Promise<Uint8Array | string>;
|
|
674
|
+
saveBase(snapshot: IBaseUnitData): Promise<void>;
|
|
675
|
+
}
|
|
676
|
+
declare const IBaseIoService: _univerjs_core.IdentifierDecorator<IBaseIoService>;
|
|
677
|
+
declare class BaseIoService extends Disposable implements IBaseIoService {
|
|
678
|
+
private _adapter;
|
|
679
|
+
private readonly _saved$;
|
|
680
|
+
readonly saved$: Observable<IBaseSavedEvent>;
|
|
681
|
+
dispose(): void;
|
|
682
|
+
setAdapter(adapter: IBaseIoAdapter): void;
|
|
683
|
+
getAdapter(): IBaseIoAdapter;
|
|
684
|
+
importBase(source: Uint8Array | string, format: BaseIoFormat, options?: {
|
|
685
|
+
id?: string;
|
|
686
|
+
name?: string;
|
|
687
|
+
}): Promise<IBaseUnitData>;
|
|
688
|
+
exportBase(snapshot: IBaseUnitData, format: BaseIoFormat, options?: {
|
|
689
|
+
tableId?: string;
|
|
690
|
+
}): Promise<Uint8Array | string>;
|
|
691
|
+
saveBase(snapshot: IBaseUnitData): Promise<void>;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
type BaseModalType = null | 'import' | 'export' | 'addField' | 'addView' | 'addWidget' | 'linkPicker';
|
|
695
|
+
interface ILinkPickerSession {
|
|
696
|
+
tableId: string;
|
|
697
|
+
recordId: string;
|
|
698
|
+
fieldId: string;
|
|
699
|
+
linkedTableId: string;
|
|
700
|
+
allowMultiple: boolean;
|
|
701
|
+
}
|
|
702
|
+
interface IBaseSelectionState {
|
|
703
|
+
selectedRecordIds: string[];
|
|
704
|
+
activeRecordDrawerId: string | null;
|
|
705
|
+
searchQuery: string;
|
|
706
|
+
activeModal: BaseModalType;
|
|
707
|
+
linkPickerSession: ILinkPickerSession | null;
|
|
708
|
+
lastToastMessage: string | null;
|
|
709
|
+
}
|
|
710
|
+
interface IBaseSelectionService {
|
|
711
|
+
readonly state$: Observable<IBaseSelectionState>;
|
|
712
|
+
getState(): IBaseSelectionState;
|
|
713
|
+
setSelectedRecords(recordIds: string[]): void;
|
|
714
|
+
toggleRecordSelected(recordId: string): void;
|
|
715
|
+
clearSelection(): void;
|
|
716
|
+
openRecordDrawer(recordId: string | null): void;
|
|
717
|
+
setSearchQuery(query: string): void;
|
|
718
|
+
openModal(modal: BaseModalType): void;
|
|
719
|
+
openLinkPicker(session: ILinkPickerSession | null): void;
|
|
720
|
+
notifyToast(message: string | null): void;
|
|
721
|
+
}
|
|
722
|
+
declare const IBaseSelectionService: _univerjs_core.IdentifierDecorator<IBaseSelectionService>;
|
|
723
|
+
declare class BaseSelectionService extends Disposable implements IBaseSelectionService {
|
|
724
|
+
private readonly _state$;
|
|
725
|
+
readonly state$: Observable<IBaseSelectionState>;
|
|
726
|
+
dispose(): void;
|
|
727
|
+
getState(): IBaseSelectionState;
|
|
728
|
+
setSelectedRecords(recordIds: string[]): void;
|
|
729
|
+
toggleRecordSelected(recordId: string): void;
|
|
730
|
+
clearSelection(): void;
|
|
731
|
+
openRecordDrawer(recordId: string | null): void;
|
|
732
|
+
setSearchQuery(query: string): void;
|
|
733
|
+
openModal(modal: BaseModalType): void;
|
|
734
|
+
openLinkPicker(session: ILinkPickerSession | null): void;
|
|
735
|
+
notifyToast(message: string | null): void;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Deterministic pure-TS barcode bar pattern & QR matrix generator for browser + SSR rendering.
|
|
740
|
+
* Requires zero DOM (`document`/`canvas`) access so SSR `renderToStaticMarkup` and UI badges render crisply.
|
|
741
|
+
*/
|
|
742
|
+
interface IBarcodeBarSegment {
|
|
743
|
+
x: number;
|
|
744
|
+
width: number;
|
|
745
|
+
}
|
|
746
|
+
declare function buildLinearBarcodeBars(value: string): {
|
|
747
|
+
bars: IBarcodeBarSegment[];
|
|
748
|
+
totalWidth: number;
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
interface IUniverBasesConfig {
|
|
752
|
+
/** Optional pluggable Import / Export / Save IO adapter */
|
|
753
|
+
io?: IBaseIoAdapter;
|
|
754
|
+
}
|
|
755
|
+
declare const UNIVER_BASES_PLUGIN_NAME = "UNIVER_BASES_PLUGIN";
|
|
756
|
+
declare class UniverBasesPlugin extends Plugin {
|
|
757
|
+
private readonly _config;
|
|
758
|
+
protected readonly _injector: Injector;
|
|
759
|
+
private readonly _univerInstanceService;
|
|
760
|
+
private readonly _commandService;
|
|
761
|
+
static pluginName: string;
|
|
762
|
+
static packageName: string;
|
|
763
|
+
constructor(_config: Partial<IUniverBasesConfig> | undefined, _injector: Injector, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService);
|
|
764
|
+
onStarting(): void;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
declare const VERSION = "1.6.218";
|
|
768
|
+
|
|
769
|
+
export { ALL_BASE_FIELD_TYPES, AddBaseDashboardWidgetCommand, AddBaseFieldCommand, AddBaseRecordCommand, AddBaseTableCommand, AddBaseViewCommand, ApplyBaseDashboardsStateMutation, ApplyBaseTablesStateMutation, BASE_ROW_COLOR_PALETTE, BASE_SELECT_PALETTE, type BaseCellValue, type BaseDashboardAggregation, type BaseDashboardChartType, type BaseFieldType, type BaseFilterConjunction, type BaseFilterOperator, type BaseGanttZoom, type BaseIoFormat, BaseIoService, type BaseModalType, type BaseRollupFunction, BaseSelectionService, type BaseSummaryType, BaseUnitModel, type BaseViewType, BatchInsertBaseRecordsCommand, COMPUTED_BASE_FIELD_TYPES, DeleteBaseDashboardWidgetCommand, DeleteBaseFieldCommand, DeleteBaseRecordsCommand, DeleteBaseTableCommand, DeleteBaseViewCommand, type IAddBaseDashboardWidgetCommandParams, type IAddBaseFieldCommandParams, type IAddBaseRecordCommandParams, type IAddBaseTableCommandParams, type IAddBaseViewCommandParams, type IApplyBaseDashboardsStateMutationParams, type IApplyBaseTablesStateMutationParams, type IBarcodeBarSegment, type IBaseAttachment, type IBaseAutomationRule, type IBaseColorRule, type IBaseDashboard, type IBaseDashboardSeriesItem, type IBaseDashboardWidget, type IBaseDashboardWidgetResult, type IBaseEvaluatedRow, type IBaseField, type IBaseFieldConfig, type IBaseFilterRule, type IBaseFormConfig, type IBaseFormFieldItem, type IBaseGanttDependencyEdge, type IBaseGanttLayoutResult, type IBaseGanttTaskItem, type IBaseGroupNode, type IBaseGroupRule, type IBaseIoAdapter, IBaseIoService, type IBasePerson, type IBaseRecord, type IBaseSavedEvent, type IBaseSelectOption, IBaseSelectionService, type IBaseSelectionState, type IBaseSortRule, type IBaseTable, type IBaseUnitData, type IBaseView, type IBaseViewQueryOverrides, type IBaseViewQueryResult, type IBatchInsertBaseRecordsCommandParams, type IDeleteBaseDashboardWidgetCommandParams, type IDeleteBaseFieldCommandParams, type IDeleteBaseRecordsCommandParams, type IDeleteBaseTableCommandParams, type IDeleteBaseViewCommandParams, type IExportBaseCsvOptions, type IExportBaseXlsxOptions, type IImportCsvToTableOptions, type IImportXlsxToBaseOptions, type ILinkPickerSession, type IReorderBaseFieldsCommandParams, type IReplaceBaseSnapshotCommandParams, type IReplaceBaseSnapshotMutationParams, type IResolvedLinkedRecordItem, type ISetActiveBaseTableCommandParams, type ISetActiveBaseViewCommandParams, type ISetBaseActiveNavigationMutationParams, type ISetBaseWorkspaceModeCommandParams, type ISubmitBaseFormResponseCommandParams, type IUniverBasesConfig, type IUpdateBaseDashboardWidgetCommandParams, type IUpdateBaseFieldCommandParams, type IUpdateBaseRecordCommandParams, type IUpdateBaseTableCommandParams, type IUpdateBaseViewCommandParams, ReorderBaseFieldsCommand, ReplaceBaseSnapshotCommand, ReplaceBaseSnapshotMutation, SetActiveBaseTableCommand, SetActiveBaseViewCommand, SetBaseActiveNavigationMutation, SetBaseWorkspaceModeCommand, SubmitBaseFormResponseCommand, UNIVER_BASES_PLUGIN_NAME, UNIVER_BASE_SCHEMA, UNIVER_BASE_SCHEMA_VERSION, UniverBasesPlugin, UpdateBaseDashboardWidgetCommand, UpdateBaseFieldCommand, UpdateBaseRecordCommand, UpdateBaseTableCommand, UpdateBaseViewCommand, VERSION, buildBaseTableFromGridRows, buildLinearBarcodeBars, coerceImportedCellValue, computeBaseDashboardWidget, computeBaseGanttTasks, computeFieldSummary, createDefaultBaseUnitData, createSampleCrmBaseData, createSampleProjectBaseData, evaluateBaseFormula, exportBaseTableToCsv, exportBaseToXlsxBytes, formatBaseCellValue, formatDurationSeconds, importCsvToBaseTable, importXlsxBytesToBase, inferFieldFromColumnSamples, isCellValueEmpty, isComputedBaseField, matchesBaseFilterRule, normalizeLinkIds, parseDelimitedText, queryBaseTableView, resolveBaseCellValue, resolveLinkedRecordItems, roundToPrecision, serializeDelimitedText, toNumericValue };
|