@univerjs-pro/bases 1.0.0-alpha.2 → 1.0.0-alpha.4
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 +8 -5
- 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/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/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/commands/commands/set-base-name.command.d.ts +6 -0
- package/lib/types/commands/commands/set-base-view-filter.command.d.ts +2 -2
- package/lib/types/commands/commands/set-base-view-group.command.d.ts +2 -2
- package/lib/types/commands/commands/set-base-view-sort.command.d.ts +2 -2
- package/lib/types/commands/utils/base-validation.d.ts +6 -0
- package/lib/types/config/config.d.ts +1 -0
- package/lib/types/controllers/base-active-dirty.controller.d.ts +5 -6
- package/lib/types/controllers/base-formula-calculation.controller.d.ts +8 -14
- package/lib/types/embed-host-anchor.d.ts +46 -0
- package/lib/types/facade/f-base.d.ts +126 -577
- package/lib/types/facade/f-enum.d.ts +117 -89
- package/lib/types/facade/f-event.d.ts +240 -132
- package/lib/types/facade/f-field.d.ts +137 -313
- package/lib/types/facade/f-range.d.ts +86 -326
- package/lib/types/facade/f-record.d.ts +93 -216
- package/lib/types/facade/f-table.d.ts +473 -1317
- package/lib/types/facade/f-types.d.ts +1 -0
- package/lib/types/facade/f-univer.d.ts +27 -154
- package/lib/types/facade/f-view.d.ts +207 -484
- package/lib/types/facade/field-key.d.ts +6 -6
- package/lib/types/facade/index.d.ts +10 -20
- package/lib/types/fields/field-core-plugin.d.ts +9 -8
- package/lib/types/index.d.ts +12 -8
- package/lib/types/models/base-cell-data.d.ts +6 -6
- package/lib/types/models/default-table.d.ts +13 -0
- package/lib/types/ot/json1-adapter.d.ts +3 -3
- package/lib/types/ot/json1-invalidation.d.ts +2 -2
- package/lib/types/ot/json1-op-applier.d.ts +2 -2
- package/lib/types/ot/json1-op-factory.d.ts +11 -8
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/search/base-search.d.ts +4 -3
- package/lib/types/services/base-active-dirty.service.d.ts +2 -2
- package/lib/types/services/base-command.service.d.ts +16 -16
- package/lib/types/services/base-compression.service.d.ts +3 -3
- package/lib/types/services/base-field-registry.service.d.ts +5 -5
- package/lib/types/services/base-formula.service.d.ts +11 -23
- package/lib/types/services/base-view-registry.service.d.ts +3 -3
- package/lib/types/views/view-core-plugin.d.ts +4 -3
- 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/package.json +7 -8
- package/lib/types/controllers/base-remote-formula.controller.d.ts +0 -13
- package/lib/types/facade/f-error.d.ts +0 -30
- package/lib/types/facade/f-permission.d.ts +0 -749
- package/lib/types/facade/transaction.d.ts +0 -19
package/lib/umd/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d471f,_0xd28a0c){var _0x3d1adc=_0x2092,_0xebe271=_0x1d471f();while(!![]){try{var _0x2013d6=parseInt(_0x3d1adc(0x123))/0x1+parseInt(_0x3d1adc(0x10d))/0x2*(-parseInt(_0x3d1adc(0x120))/0x3)+parseInt(_0x3d1adc(0x11d))/0x4*(-parseInt(_0x3d1adc(0x122))/0x5)+-parseInt(_0x3d1adc(0x116))/0x6+parseInt(_0x3d1adc(0x118))/0x7*(-parseInt(_0x3d1adc(0x119))/0x8)+parseInt(_0x3d1adc(0x115))/0x9+parseInt(_0x3d1adc(0x10b))/0xa*(parseInt(_0x3d1adc(0x109))/0xb);if(_0x2013d6===_0xd28a0c)break;else _0xebe271['push'](_0xebe271['shift']());}catch(_0x1978f9){_0xebe271['push'](_0xebe271['shift']());}}}(_0x726e,0x5e9d4),function(_0x3cd7dd,_0x1b58ba){var _0x51f9ab=_0x2092;typeof exports=='object'&&typeof module<'u'?module[_0x51f9ab(0x114)]=_0x1b58ba():typeof define==_0x51f9ab(0x113)&&define[_0x51f9ab(0x121)]?define([],_0x1b58ba):(_0x3cd7dd=typeof globalThis<'u'?globalThis:_0x3cd7dd||self,_0x3cd7dd['UniverProBasesZhHK']=_0x1b58ba());}(this,function(){var _0x4c2a97=_0x2092;return{'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x4c2a97(0x117),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x4c2a97(0x10f),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':'雙向關聯','recordId':_0x4c2a97(0x125),'createdBy':_0x4c2a97(0x11a),'updatedBy':_0x4c2a97(0x111),'createdAt':_0x4c2a97(0x11f),'updatedAt':_0x4c2a97(0x11e),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x4c2a97(0x110),'linkPlaceholder':_0x4c2a97(0x11b)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':'字段標題不能為空','invalidFieldType':'字段類型無效','invalidCellValue':_0x4c2a97(0x11c),'invalidKanbanGroupField':'看板需要可分組字段','invalidCalendarDateField':'日曆需要日期字段','invalidGanttDateField':_0x4c2a97(0x124)},'command':{'updateCell':_0x4c2a97(0x112),'createField':_0x4c2a97(0x10e),'deleteField':'刪除字段','createRecord':_0x4c2a97(0x10a),'deleteRecord':'刪除記錄','updateViewConfig':_0x4c2a97(0x10c)}}};}));function _0x2092(_0x4a613b,_0x4eadf2){_0x4a613b=_0x4a613b-0x109;var _0x726e72=_0x726e();var _0x209226=_0x726e72[_0x4a613b];return _0x209226;}function _0x726e(){var _0x1e4de3=['14875180ppYOlN','更新視圖設置','342OKTfSV','創建字段','電話號碼','輸入內容','修改人','更新單元格','function','exports','5216598VyUcsv','4340406CRngil','複選框','171283UtuwNJ','80DDqJNX','創建人','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','單元格值無效','892dLFxaN','更新時間','創建時間','11175SwvouP','amd','4055QlFnYi','106319CTOHHr','甘特視圖需要開始和結束日期字段','記錄\x20ID','11ZTXHbb','創建記錄'];_0x726e=function(){return _0x1e4de3;};return _0x726e();}
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2b6b(){var _0x53a604=['電話號碼','刪除記錄','記錄\x20ID','甘特視圖需要開始和結束日期字段','function','77520jFHPLC','18MMunPE','810688tSUWiR','創建記錄','創建字段','amd','exports','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','1HEaGaZ','184602pAVhfe','object','10qYFzEz','更新時間','322854AobmQA','刪除字段','複選框','1855510nbkvhn','更新單元格','單元格值無效','雙向關聯','創建時間','1049447LCQulZ','字段類型無效','21918MYQZtK'];_0x2b6b=function(){return _0x53a604;};return _0x2b6b();}function _0x5e76(_0x175822,_0x38b0b6){_0x175822=_0x175822-0x94;var _0x2b6b14=_0x2b6b();var _0x5e769f=_0x2b6b14[_0x175822];return _0x5e769f;}(function(_0x10a383,_0x11a43c){var _0x386fac=_0x5e76,_0xc74889=_0x10a383();while(!![]){try{var _0x1e0d0a=parseInt(_0x386fac(0xa4))/0x1*(parseInt(_0x386fac(0xa5))/0x2)+-parseInt(_0x386fac(0xa9))/0x3+parseInt(_0x386fac(0x9c))/0x4+parseInt(_0x386fac(0xa7))/0x5*(-parseInt(_0x386fac(0x96))/0x6)+-parseInt(_0x386fac(0x94))/0x7+-parseInt(_0x386fac(0x9e))/0x8+-parseInt(_0x386fac(0x9d))/0x9*(-parseInt(_0x386fac(0xac))/0xa);if(_0x1e0d0a===_0x11a43c)break;else _0xc74889['push'](_0xc74889['shift']());}catch(_0xbe2878){_0xc74889['push'](_0xc74889['shift']());}}}(_0x2b6b,0x1c77a),function(_0x2b9898,_0x4801c5){var _0xd4f433=_0x5e76;typeof exports==_0xd4f433(0xa6)&&typeof module<'u'?module[_0xd4f433(0xa2)]=_0x4801c5():typeof define==_0xd4f433(0x9b)&&define[_0xd4f433(0xa1)]?define([],_0x4801c5):(_0x2b9898=typeof globalThis<'u'?globalThis:_0x2b9898||self,_0x2b9898['UniverProBasesZhTW']=_0x4801c5());}(this,function(){var _0x504a84=_0x5e76;return{'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x504a84(0xab),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x504a84(0x97),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x504a84(0xaf),'recordId':_0x504a84(0x99),'createdBy':'創建人','updatedBy':'修改人','createdAt':_0x504a84(0xb0),'updatedAt':_0x504a84(0xa8),'summary':'彙總'},'fieldConfig':{'textPlaceholder':'輸入內容','linkPlaceholder':_0x504a84(0xa3)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':'字段標題不能為空','invalidFieldType':_0x504a84(0x95),'invalidCellValue':_0x504a84(0xae),'invalidKanbanGroupField':'看板需要可分組字段','invalidCalendarDateField':'日曆需要日期字段','invalidGanttDateField':_0x504a84(0x9a)},'command':{'updateCell':_0x504a84(0xad),'createField':_0x504a84(0xa0),'deleteField':_0x504a84(0xaa),'createRecord':_0x504a84(0x9f),'deleteRecord':_0x504a84(0x98),'updateViewConfig':'更新視圖設置'}}};}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/bases",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Base database core model and commands for Univer.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -63,16 +63,15 @@
|
|
|
63
63
|
"lib"
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@univerjs-pro/engine-formula": "1.0.0-alpha.
|
|
67
|
-
"@univerjs-pro/license": "1.0.0-alpha.
|
|
68
|
-
"@univerjs/core": "1.0.0-alpha.
|
|
69
|
-
"@univerjs/rpc": "1.0.0-alpha.
|
|
66
|
+
"@univerjs-pro/engine-formula": "1.0.0-alpha.4",
|
|
67
|
+
"@univerjs-pro/license": "1.0.0-alpha.4",
|
|
68
|
+
"@univerjs/core": "1.0.0-alpha.4",
|
|
69
|
+
"@univerjs/rpc": "1.0.0-alpha.4"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"rxjs": "7.8.2",
|
|
73
72
|
"typescript": "^6.0.3",
|
|
74
|
-
"vitest": "^4.1.
|
|
75
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
73
|
+
"vitest": "^4.1.10",
|
|
74
|
+
"@univerjs-infra/shared": "1.0.0-alpha.4"
|
|
76
75
|
},
|
|
77
76
|
"scripts": {
|
|
78
77
|
"test": "vitest run",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ISuperTableService } from '@univerjs-pro/engine-formula';
|
|
2
|
-
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
3
|
-
export declare class BaseRemoteFormulaController extends Disposable {
|
|
4
|
-
private readonly _commandService;
|
|
5
|
-
private readonly _univerInstanceService;
|
|
6
|
-
private readonly _superTableService?;
|
|
7
|
-
private readonly _formulaService;
|
|
8
|
-
constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _superTableService?: ISuperTableService | undefined);
|
|
9
|
-
private _initialize;
|
|
10
|
-
private _onCommandExecuted;
|
|
11
|
-
private _shouldRefreshSuperTables;
|
|
12
|
-
private _registerSuperTables;
|
|
13
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const BaseErrorCode: {
|
|
2
|
-
readonly CommandFailed: "CommandFailed";
|
|
3
|
-
readonly FieldNotFound: "FieldNotFound";
|
|
4
|
-
readonly DuplicateFieldName: "DuplicateFieldName";
|
|
5
|
-
readonly TableNotFound: "TableNotFound";
|
|
6
|
-
readonly ViewNotFound: "ViewNotFound";
|
|
7
|
-
readonly RecordNotFound: "RecordNotFound";
|
|
8
|
-
readonly InvalidFilter: "InvalidFilter";
|
|
9
|
-
readonly InvalidOperation: "InvalidOperation";
|
|
10
|
-
readonly BatchAlreadyRunning: "BatchAlreadyRunning";
|
|
11
|
-
readonly BatchFailed: "BatchFailed";
|
|
12
|
-
};
|
|
13
|
-
export type BaseErrorCodeType = typeof BaseErrorCode[keyof typeof BaseErrorCode];
|
|
14
|
-
export interface IBaseErrorDetails {
|
|
15
|
-
commandId?: string;
|
|
16
|
-
unitId?: string;
|
|
17
|
-
tableId?: string;
|
|
18
|
-
fieldId?: string;
|
|
19
|
-
recordId?: string;
|
|
20
|
-
viewId?: string;
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
}
|
|
23
|
-
export declare class BaseError extends Error {
|
|
24
|
-
readonly code: BaseErrorCodeType;
|
|
25
|
-
readonly details: IBaseErrorDetails;
|
|
26
|
-
readonly name = "BaseError";
|
|
27
|
-
constructor(code: BaseErrorCodeType, message: string, details?: IBaseErrorDetails);
|
|
28
|
-
}
|
|
29
|
-
export declare function isBaseError(error: unknown): error is BaseError;
|
|
30
|
-
export declare function assertBaseCommandSucceeded(commandId: string, result: boolean, details?: IBaseErrorDetails): void;
|