@univerjs-pro/bases 1.3.1 → 1.4.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/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-BDigGzY4.js +1 -0
- package/lib/cjs/worker.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-1CbynS32.js +1 -0
- 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/fields/field-stat.d.ts +1 -1
- package/lib/types/index.d.ts +4 -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-1CbynS32.js +1 -0
- package/lib/worker.js +1 -0
- package/package.json +17 -12
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xf176(){const _0x2d4db6=['記錄\x20ID','建立時間','86CsGVNG','5541207CNClrg','3jGFFQA','輸入內容','更新時間','建立欄位','更新儲存格','1161AkiSCR','刪除欄位','行事曆需要日期欄位','6hPDSRZ','看板需要可分組欄位','131500OCaPPb','22924MChsMd','甘特圖','欄位標題不能為空','更新人','7483724sHlBBx','9475040XCgwiK','電子郵件','欄位類型無效','核取方塊','1592987yDKlGa','儲存格值無效','關聯記錄','241805CmojyO','甘特圖檢視需要開始和結束日期欄位'];_0xf176=function(){return _0x2d4db6;};return _0xf176();}const _0x54f276=_0x3431;function _0x3431(_0x46b35e,_0x10e59c){_0x46b35e=_0x46b35e-0x156;const _0xf17691=_0xf176();let _0x3431e8=_0xf17691[_0x46b35e];return _0x3431e8;}(function(_0x320591,_0x333121){const _0x32b1ee=_0x3431,_0x3f6478=_0x320591();while(!![]){try{const _0x1a2376=parseInt(_0x32b1ee(0x16e))/0x1*(-parseInt(_0x32b1ee(0x161))/0x2)+-parseInt(_0x32b1ee(0x163))/0x3*(-parseInt(_0x32b1ee(0x172))/0x4)+-parseInt(_0x32b1ee(0x15d))/0x5+-parseInt(_0x32b1ee(0x16b))/0x6*(-parseInt(_0x32b1ee(0x162))/0x7)+parseInt(_0x32b1ee(0x156))/0x8+parseInt(_0x32b1ee(0x168))/0x9*(-parseInt(_0x32b1ee(0x16d))/0xa)+-parseInt(_0x32b1ee(0x15a))/0xb;if(_0x1a2376===_0x333121)break;else _0x3f6478['push'](_0x3f6478['shift']());}catch(_0x1ebddd){_0x3f6478['push'](_0x3f6478['shift']());}}}(_0xf176,0xed384));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x54f276(0x159),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':_0x54f276(0x157),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x54f276(0x15c),'recordId':_0x54f276(0x15f),'createdBy':'建立人','updatedBy':_0x54f276(0x171),'createdAt':_0x54f276(0x160),'updatedAt':_0x54f276(0x165),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x54f276(0x164),'linkPlaceholder':'輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':'行事曆','gantt':_0x54f276(0x16f),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x54f276(0x170),'invalidFieldType':_0x54f276(0x158),'invalidCellValue':_0x54f276(0x15b),'invalidKanbanGroupField':_0x54f276(0x16c),'invalidCalendarDateField':_0x54f276(0x16a),'invalidGanttDateField':_0x54f276(0x15e)},'command':{'updateCell':_0x54f276(0x167),'createField':_0x54f276(0x166),'deleteField':_0x54f276(0x169),'createRecord':'建立記錄','deleteRecord':'刪除記錄','updateViewConfig':'更新檢視設定'}}};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>;
|
|
@@ -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';
|
|
@@ -122,3 +122,6 @@ export type { IBaseFieldPermission, IBasePermissionSnapshot, IBaseRecordPermissi
|
|
|
122
122
|
export { IBaseProjectionService } from './services/base-projection.service';
|
|
123
123
|
export { IBaseViewRegistryService } from './services/base-view-registry.service';
|
|
124
124
|
export type { IViewCorePlugin } from './views/view-core-plugin';
|
|
125
|
+
export {
|
|
126
|
+
/** @deprecated Import from '@univerjs-pro/bases/worker' instead. This root export will be removed in the next release. */
|
|
127
|
+
UniverRemoteBasesPlugin, } from './worker';
|
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
|
+
}
|