@univerjs-pro/bases 1.3.1 → 1.5.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.
- package/README.md +21 -9
- package/lib/cjs/config-CTOS-Fzg.js +1 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/worker.js +1 -0
- package/lib/config-DDy_jw9I.js +1 -0
- package/lib/es/config-DDy_jw9I.js +1 -0
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/es/worker.js +1 -0
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/config/config.d.ts +1 -1
- package/lib/types/controllers/base-formula-optional-identifier.d.ts +1 -1
- package/lib/types/facade/f-range.d.ts +16 -2
- package/lib/types/facade/f-record.d.ts +14 -0
- package/lib/types/facade/f-table.d.ts +3 -0
- package/lib/types/fields/field-stat.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -13
- package/lib/types/services/base-command.service.d.ts +1 -1
- package/lib/types/services/base-field-registry.service.d.ts +2 -2
- package/lib/types/services/base-permission-point.d.ts +1 -1
- package/lib/types/services/base-permission.service.d.ts +1 -1
- package/lib/types/services/base-projection.service.d.ts +2 -2
- package/lib/types/services/base-resource.service.d.ts +1 -1
- package/lib/types/services/base-view-registry.service.d.ts +2 -2
- package/lib/types/worker.d.ts +14 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/lib/worker.js +1 -0
- package/package.json +17 -12
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x54f3(){const _0x3bd06e=['15144066naxvYt','看板需要可分組欄位','電子郵件','關聯記錄','建立欄位','更新時間','更新人','583595mNGPBH','刪除記錄','21KhPcoN','109MHNqsz','4834076pFFMYu','行事曆需要日期欄位','甘特圖檢視需要開始和結束日期欄位','5657268KLkuiI','甘特圖','核取方塊','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','儲存格值無效','欄位類型無效','刪除欄位','更新檢視設定','輸入內容','17804OyUnQW','行事曆','2610712vFFFwJ','1868931ptuezk'];_0x54f3=function(){return _0x3bd06e;};return _0x54f3();}const _0x8a23d7=_0x1b1d;(function(_0x56e470,_0x382a14){const _0x5bb36d=_0x1b1d,_0x49fb09=_0x56e470();while(!![]){try{const _0x3a9b9f=parseInt(_0x5bb36d(0x168))/0x1*(-parseInt(_0x5bb36d(0x175))/0x2)+parseInt(_0x5bb36d(0x178))/0x3+parseInt(_0x5bb36d(0x169))/0x4+-parseInt(_0x5bb36d(0x180))/0x5+parseInt(_0x5bb36d(0x16c))/0x6+parseInt(_0x5bb36d(0x167))/0x7*(parseInt(_0x5bb36d(0x177))/0x8)+-parseInt(_0x5bb36d(0x179))/0x9;if(_0x3a9b9f===_0x382a14)break;else _0x49fb09['push'](_0x49fb09['shift']());}catch(_0x382dcd){_0x49fb09['push'](_0x49fb09['shift']());}}}(_0x54f3,0xf0280));function _0x1b1d(_0x37f2b7,_0x59d599){_0x37f2b7=_0x37f2b7-0x167;const _0x54f3dc=_0x54f3();let _0x1b1de5=_0x54f3dc[_0x37f2b7];return _0x1b1de5;}const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x8a23d7(0x16e),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':_0x8a23d7(0x17b),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x8a23d7(0x17c),'recordId':'記錄\x20ID','createdBy':'建立人','updatedBy':_0x8a23d7(0x17f),'createdAt':'建立時間','updatedAt':_0x8a23d7(0x17e),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x8a23d7(0x174),'linkPlaceholder':_0x8a23d7(0x16f)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x8a23d7(0x176),'gantt':_0x8a23d7(0x16d),'gallery':'圖庫'},'error':{'fieldNameRequired':'欄位標題不能為空','invalidFieldType':_0x8a23d7(0x171),'invalidCellValue':_0x8a23d7(0x170),'invalidKanbanGroupField':_0x8a23d7(0x17a),'invalidCalendarDateField':_0x8a23d7(0x16a),'invalidGanttDateField':_0x8a23d7(0x16b)},'command':{'updateCell':'更新儲存格','createField':_0x8a23d7(0x17d),'deleteField':_0x8a23d7(0x172),'createRecord':'建立記錄','deleteRecord':_0x8a23d7(0x181),'updateViewConfig':_0x8a23d7(0x173)}}};export{e as default};
|
|
@@ -8,4 +8,4 @@ export declare const REMOTE_BASES_PLUGIN_CONFIG_KEY = "bases.remote.config";
|
|
|
8
8
|
export declare const configSymbolRemote: unique symbol;
|
|
9
9
|
export interface IUniverRemoteBasesConfig {
|
|
10
10
|
}
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const defaultPluginRemoteConfig: IUniverRemoteBasesConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function createBaseOptionalFormulaIdentifier<T>(id: string): import("@
|
|
1
|
+
export declare function createBaseOptionalFormulaIdentifier<T>(id: string): import("@univerjs/core").IdentifierDecorator<T>;
|
|
@@ -139,6 +139,10 @@ export declare class FBaseTableRange {
|
|
|
139
139
|
getValues(): BaseCellValue[][];
|
|
140
140
|
/**
|
|
141
141
|
* Get the first value in this range.
|
|
142
|
+
*
|
|
143
|
+
* For multiple cells, create the target range with {@link FBaseTable.getRange} and call
|
|
144
|
+
* {@link FBaseTableRange.getValues} once instead of reading each cell separately.
|
|
145
|
+
*
|
|
142
146
|
* @returns {BaseCellValue} The top-left value.
|
|
143
147
|
* @example
|
|
144
148
|
* ```ts
|
|
@@ -151,6 +155,10 @@ export declare class FBaseTableRange {
|
|
|
151
155
|
getValue(): BaseCellValue;
|
|
152
156
|
/**
|
|
153
157
|
* Set the top-left value in this range.
|
|
158
|
+
*
|
|
159
|
+
* For multiple cells, create the target range with {@link FBaseTable.getRange} and call
|
|
160
|
+
* {@link FBaseTableRange.setValues} with a two-dimensional array instead of writing each cell separately.
|
|
161
|
+
*
|
|
154
162
|
* @param {BaseCellValue | IBaseCellData} value The value to write. It may be a raw Base cell value, a full
|
|
155
163
|
* `IBaseCellData` object, or `null` to clear the cell.
|
|
156
164
|
* @returns {boolean} `true` if set value successfully, `false` if failed.
|
|
@@ -167,8 +175,11 @@ export declare class FBaseTableRange {
|
|
|
167
175
|
/**
|
|
168
176
|
* Set all values in this range.
|
|
169
177
|
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
178
|
+
* For multiple cells, pass the complete value matrix in one call instead of calling this method on
|
|
179
|
+
* individual cell ranges. Values are addressed relative to this range's top-left cell.
|
|
180
|
+
*
|
|
181
|
+
* The provided matrix must fit within `getNumRows()` by `getNumColumns()`; omitted cells are unchanged.
|
|
182
|
+
* A matrix extending beyond the range throws before any command is executed.
|
|
172
183
|
*
|
|
173
184
|
* @param {Array<Array<BaseCellValue | IBaseCellData>>} values A two-dimensional array matching the range size. Each cell
|
|
174
185
|
* may be a raw Base cell value, an `IBaseCellData` object, or `null`.
|
|
@@ -188,6 +199,9 @@ export declare class FBaseTableRange {
|
|
|
188
199
|
setValues(values: Array<Array<BaseCellValue | IBaseCellData>>): boolean;
|
|
189
200
|
/**
|
|
190
201
|
* Clear all values in this range.
|
|
202
|
+
*
|
|
203
|
+
* To clear multiple cells, call this method once on the target range instead of clearing each cell separately.
|
|
204
|
+
*
|
|
191
205
|
* @returns {boolean} `true` if cleared successfully, `false` if failed.
|
|
192
206
|
* @example
|
|
193
207
|
* ```ts
|
|
@@ -81,6 +81,9 @@ export declare class FBaseTableRecord extends FBaseInitialable {
|
|
|
81
81
|
/**
|
|
82
82
|
* Get a field value from this record.
|
|
83
83
|
*
|
|
84
|
+
* For multiple fields in this record, prefer {@link FBaseTableRecord.getValues} once and read the returned
|
|
85
|
+
* field-id keyed map instead of calling this method for each field.
|
|
86
|
+
*
|
|
84
87
|
* For a RecordLink field, this returns its canonical storage string. Prefer
|
|
85
88
|
* `getLinkedRecordIds()` when consuming RecordLink values.
|
|
86
89
|
* @param {FieldId} fieldId The field id.
|
|
@@ -109,6 +112,10 @@ export declare class FBaseTableRecord extends FBaseInitialable {
|
|
|
109
112
|
/**
|
|
110
113
|
* Set one field value in this record.
|
|
111
114
|
*
|
|
115
|
+
* For multiple fields in this record, prefer {@link FBaseTableRecord.setValues} with a field-value map
|
|
116
|
+
* instead of calling this method for each field. For a rectangular block across records, use
|
|
117
|
+
* {@link FBaseTable.getRange} and {@link FBaseTableRange.setValues}.
|
|
118
|
+
*
|
|
112
119
|
* For a RecordLink field, prefer `setLinkedRecordIds()`, `addLinkedRecord()`,
|
|
113
120
|
* or `removeLinkedRecord()`. Those methods accept Record IDs directly and
|
|
114
121
|
* document the single-link and multi-link behavior.
|
|
@@ -229,6 +236,9 @@ export declare class FBaseTableRecord extends FBaseInitialable {
|
|
|
229
236
|
deleteAttachments(fieldId: FieldId, attachments: readonly IBaseAttachment[]): boolean;
|
|
230
237
|
/**
|
|
231
238
|
* Set multiple field values in this record.
|
|
239
|
+
*
|
|
240
|
+
* For multiple fields, pass all field-value pairs in one call instead of calling this method once per field.
|
|
241
|
+
*
|
|
232
242
|
* @param {Record<string, BaseCellValue>} values Field-id keyed values to write. Only the provided fields are
|
|
233
243
|
* patched; omitted fields keep their existing values.
|
|
234
244
|
* @param {BaseFieldKeyEnum} fieldKey How to interpret the keys in `values`. Defaults to `BaseFieldKeyEnum.Id`.
|
|
@@ -266,6 +276,10 @@ export declare class FBaseTableRecord extends FBaseInitialable {
|
|
|
266
276
|
setValues(values: Record<string, BaseCellValue>, fieldKey?: BaseFieldKeyEnum): boolean;
|
|
267
277
|
/**
|
|
268
278
|
* Delete this record.
|
|
279
|
+
*
|
|
280
|
+
* For multiple records in the same table, prefer {@link FBaseTable.deleteRecords} with their record IDs
|
|
281
|
+
* instead of calling this method on each record.
|
|
282
|
+
*
|
|
269
283
|
* @returns {boolean} `true` if the command succeeded, `false` otherwise.
|
|
270
284
|
* @example
|
|
271
285
|
* ```ts
|
|
@@ -674,6 +674,9 @@ export declare class FBaseTable {
|
|
|
674
674
|
/**
|
|
675
675
|
* Add a record to this table synchronously.
|
|
676
676
|
*
|
|
677
|
+
* For multiple records in this table, prefer {@link FBaseTable.addRecords} with all record inputs
|
|
678
|
+
* instead of calling this method in a loop.
|
|
679
|
+
*
|
|
677
680
|
* This method is also the low-level, data-oriented way to create a child record:
|
|
678
681
|
* use the id returned by `getHierarchyFieldId()` as a value key and use the
|
|
679
682
|
* parent's record id as its value. The call does not require `await`. If the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IFieldSnapshot } from '@univerjs/core';
|
|
2
|
-
export declare const BASE_FIELD_STAT_TYPES: readonly [
|
|
2
|
+
export declare const BASE_FIELD_STAT_TYPES: readonly ['count', 'filled', 'empty', 'unique', 'sum', 'average', 'min', 'max'];
|
|
3
3
|
export type BaseFieldStatType = typeof BASE_FIELD_STAT_TYPES[number];
|
|
4
4
|
export declare function isBaseFieldStatType(value: unknown): value is BaseFieldStatType;
|
|
5
5
|
export declare function normalizeBaseFieldStatsConfig(value: unknown): Record<string, BaseFieldStatType>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -105,7 +105,7 @@ export { findRecordLinkReferences, getRecordLinkFieldConfig, parseRecordLinkIds,
|
|
|
105
105
|
export type { IRecordLinkReference } from './models/record-link';
|
|
106
106
|
export { BaseJson1OpApplier } from './ot/json1-op-applier';
|
|
107
107
|
export { BaseJson1OpFactory } from './ot/json1-op-factory';
|
|
108
|
-
export { UniverBasesPlugin,
|
|
108
|
+
export { UniverBasesPlugin, } from './plugin';
|
|
109
109
|
export { searchBaseTable } from './search/base-search';
|
|
110
110
|
export type { IBaseTableSearchRequest } from './search/base-search';
|
|
111
111
|
export type { IBaseTableSearchMatch, IBaseTableSearchResult, } from './search/base-search';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IUniverBasesConfig, IUniverRemoteBasesConfig } from './config/config';
|
|
2
1
|
import { ICommandService, IConfigService, Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
2
|
import { DataSyncPrimaryController } from '@univerjs/rpc';
|
|
3
|
+
import type { IUniverBasesConfig } from './config/config';
|
|
4
4
|
export declare const BASES_PLUGIN_NAME = "BASES_PLUGIN";
|
|
5
5
|
export declare const BASE_SYNC_MUTATIONS: readonly [import("@univerjs/core").IMutation<import(".").IApplyBaseJson1MutationParams, boolean>];
|
|
6
6
|
export declare class UniverBasesPlugin extends Plugin {
|
|
@@ -24,15 +24,3 @@ export declare class UniverBasesPlugin extends Plugin {
|
|
|
24
24
|
private _syncBaseUnit;
|
|
25
25
|
private _initRegistries;
|
|
26
26
|
}
|
|
27
|
-
export declare class UniverRemoteBasesPlugin extends Plugin {
|
|
28
|
-
private readonly _config;
|
|
29
|
-
protected readonly _injector: Injector;
|
|
30
|
-
private readonly _commandService;
|
|
31
|
-
private readonly _configService;
|
|
32
|
-
private readonly _univerInstanceService;
|
|
33
|
-
static pluginName: string;
|
|
34
|
-
static packageName: string;
|
|
35
|
-
static version: string;
|
|
36
|
-
static type: UniverInstanceType;
|
|
37
|
-
constructor(_config: Partial<IUniverRemoteBasesConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService);
|
|
38
|
-
}
|
|
@@ -57,7 +57,7 @@ export interface IBaseCommandService {
|
|
|
57
57
|
afterFieldId?: string;
|
|
58
58
|
}): void;
|
|
59
59
|
}
|
|
60
|
-
export declare const IBaseCommandService: import("@
|
|
60
|
+
export declare const IBaseCommandService: import("@univerjs/core").IdentifierDecorator<IBaseCommandService>;
|
|
61
61
|
export declare class BaseCommandService implements IBaseCommandService {
|
|
62
62
|
private readonly _permissionService;
|
|
63
63
|
private readonly _fieldRegistry;
|
|
@@ -7,10 +7,10 @@ export interface IBaseFieldRegistryService {
|
|
|
7
7
|
getTypePlugin(type: BaseFieldType): IFieldTypePlugin | undefined;
|
|
8
8
|
getAll(): IFieldCorePlugin[];
|
|
9
9
|
}
|
|
10
|
-
export declare const IBaseFieldRegistryService: import("@
|
|
10
|
+
export declare const IBaseFieldRegistryService: import("@univerjs/core").IdentifierDecorator<IBaseFieldRegistryService>;
|
|
11
11
|
export declare class BaseFieldRegistryService extends Disposable implements IBaseFieldRegistryService {
|
|
12
12
|
private readonly _plugins;
|
|
13
|
-
register(plugin: IFieldCorePlugin): import("@
|
|
13
|
+
register(plugin: IFieldCorePlugin): import("@univerjs/core").IDisposable;
|
|
14
14
|
get(type: BaseFieldType): IFieldCorePlugin;
|
|
15
15
|
getTypePlugin(type: BaseFieldType): IFieldTypePlugin | undefined;
|
|
16
16
|
getAll(): IFieldCorePlugin[];
|
|
@@ -16,7 +16,7 @@ export declare function getBaseFieldPermissionObjectId(tableId: string, fieldId:
|
|
|
16
16
|
export declare function getBaseRecordPermissionObjectId(tableId: string, recordId: string): string;
|
|
17
17
|
export declare function getBaseViewPermissionObjectId(tableId: string, viewId: string): string;
|
|
18
18
|
export declare function getBaseDashboardPermissionObjectId(dashboardId: string): string;
|
|
19
|
-
export declare function createBasePermissionPoint(unitId: string, objectId: string, action: UnitAction): BaseCommentPermission | BaseCopyPermission |
|
|
19
|
+
export declare function createBasePermissionPoint(unitId: string, objectId: string, action: UnitAction): BaseCommentPermission | BaseCopyPermission | BaseDashboardEditPermission | BaseEditablePermission | BaseExportPermission | BaseFieldEditPermission | BaseRecordEditPermission | BaseTableEditPermission | BaseViewEditPermission;
|
|
20
20
|
export declare function getBasePermissionValue(permissionService: IPermissionService, unitId: string, objectId: string, action: UnitAction): boolean;
|
|
21
21
|
export declare function setBasePermissionValue(permissionService: IPermissionService, unitId: string, objectId: string, action: UnitAction, value: boolean): void;
|
|
22
22
|
export declare function clearBasePermissionValue(permissionService: IPermissionService, unitId: string, objectId: string, action: UnitAction): void;
|
|
@@ -46,7 +46,7 @@ export interface IBasePermissionService {
|
|
|
46
46
|
clearViewPermission(tableId: string, viewId: string): void;
|
|
47
47
|
getSnapshot(): IBasePermissionSnapshot;
|
|
48
48
|
}
|
|
49
|
-
export declare const IBasePermissionService: import("@
|
|
49
|
+
export declare const IBasePermissionService: import("@univerjs/core").IdentifierDecorator<IBasePermissionService>;
|
|
50
50
|
export interface IBasePermissionSnapshot {
|
|
51
51
|
bases: Record<string, {
|
|
52
52
|
edit?: boolean;
|
|
@@ -11,7 +11,7 @@ export interface IBaseProjectionService {
|
|
|
11
11
|
invalidateByField(tableId: TableId, fieldId: FieldId): void;
|
|
12
12
|
invalidateByView(tableId: TableId, viewId: ViewId): void;
|
|
13
13
|
}
|
|
14
|
-
export declare const IBaseProjectionService: import("@
|
|
14
|
+
export declare const IBaseProjectionService: import("@univerjs/core").IdentifierDecorator<IBaseProjectionService>;
|
|
15
15
|
export declare class BaseProjectionService extends Disposable implements IBaseProjectionService {
|
|
16
16
|
private _fieldRegistry;
|
|
17
17
|
private readonly _views;
|
|
@@ -26,7 +26,7 @@ export declare class BaseProjectionService extends Disposable implements IBasePr
|
|
|
26
26
|
private readonly _cellInvalidations;
|
|
27
27
|
private readonly _viewRevisions;
|
|
28
28
|
constructor(_fieldRegistry: IBaseFieldRegistryService);
|
|
29
|
-
registerView(plugin: IViewCorePlugin): import("@
|
|
29
|
+
registerView(plugin: IViewCorePlugin): import("@univerjs/core").IDisposable;
|
|
30
30
|
getProjection(snapshot: IBaseSnapshot, tableId: TableId, viewId: ViewId): BaseViewProjection;
|
|
31
31
|
repairViewConfig(snapshot: IBaseSnapshot, tableId: TableId, viewId: ViewId): IViewRepairResult;
|
|
32
32
|
invalidateByOp(): void;
|
|
@@ -5,7 +5,7 @@ export interface IBaseResourceService {
|
|
|
5
5
|
getAllBases(): BaseDataModel[];
|
|
6
6
|
createBase(snapshot: Partial<IBaseSnapshot>): BaseDataModel;
|
|
7
7
|
}
|
|
8
|
-
export declare const IBaseResourceService: import("@
|
|
8
|
+
export declare const IBaseResourceService: import("@univerjs/core").IdentifierDecorator<IBaseResourceService>;
|
|
9
9
|
export declare class BaseResourceService implements IBaseResourceService {
|
|
10
10
|
private readonly _univerInstanceService;
|
|
11
11
|
constructor(_univerInstanceService: IUniverInstanceService);
|
|
@@ -6,10 +6,10 @@ export interface IBaseViewRegistryService {
|
|
|
6
6
|
get(type: BaseViewType): IViewCorePlugin;
|
|
7
7
|
getAll(): IViewCorePlugin[];
|
|
8
8
|
}
|
|
9
|
-
export declare const IBaseViewRegistryService: import("@
|
|
9
|
+
export declare const IBaseViewRegistryService: import("@univerjs/core").IdentifierDecorator<IBaseViewRegistryService>;
|
|
10
10
|
export declare class BaseViewRegistryService extends Disposable implements IBaseViewRegistryService {
|
|
11
11
|
private readonly _plugins;
|
|
12
|
-
register(plugin: IViewCorePlugin): import("@
|
|
12
|
+
register(plugin: IViewCorePlugin): import("@univerjs/core").IDisposable;
|
|
13
13
|
get(type: BaseViewType): IViewCorePlugin;
|
|
14
14
|
getAll(): IViewCorePlugin[];
|
|
15
15
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICommandService, IConfigService, Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import type { IUniverRemoteBasesConfig } from './config/config';
|
|
3
|
+
export declare class UniverRemoteBasesPlugin extends Plugin {
|
|
4
|
+
private readonly _config;
|
|
5
|
+
protected readonly _injector: Injector;
|
|
6
|
+
private readonly _commandService;
|
|
7
|
+
private readonly _configService;
|
|
8
|
+
private readonly _univerInstanceService;
|
|
9
|
+
static pluginName: string;
|
|
10
|
+
static packageName: string;
|
|
11
|
+
static version: string;
|
|
12
|
+
static type: UniverInstanceType;
|
|
13
|
+
constructor(_config: Partial<IUniverRemoteBasesConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService);
|
|
14
|
+
}
|