@univerjs-pro/bases 1.0.0-alpha.0 → 1.0.0-alpha.2
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/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/config/config.d.ts +10 -0
- package/lib/types/controllers/base-remote-formula.controller.d.ts +2 -2
- package/lib/types/facade/index.d.ts +14 -7
- package/lib/types/index.d.ts +12 -44
- package/lib/types/plugin.d.ts +6 -3
- package/lib/types/services/base-command.service.d.ts +5 -1
- 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 +6 -6
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1127b3=_0x285e;(function(_0x484160,_0x1fb1b3){const _0x256d74=_0x285e,_0xc94d43=_0x484160();while(!![]){try{const _0xc57e1f=parseInt(_0x256d74(0xdd))/0x1*(parseInt(_0x256d74(0xcd))/0x2)+-parseInt(_0x256d74(0xd3))/0x3*(-parseInt(_0x256d74(0xc3))/0x4)+parseInt(_0x256d74(0xcf))/0x5+-parseInt(_0x256d74(0xd7))/0x6+parseInt(_0x256d74(0xda))/0x7+-parseInt(_0x256d74(0xc4))/0x8*(parseInt(_0x256d74(0xd2))/0x9)+parseInt(_0x256d74(0xc8))/0xa*(-parseInt(_0x256d74(0xc9))/0xb);if(_0xc57e1f===_0x1fb1b3)break;else _0xc94d43['push'](_0xc94d43['shift']());}catch(_0x5b343a){_0xc94d43['push'](_0xc94d43['shift']());}}}(_0x4797,0xaecf1));const e={'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x1127b3(0xcb),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x1127b3(0xc7),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x1127b3(0xdb),'recordId':'記錄\x20ID','createdBy':_0x1127b3(0xd5),'updatedBy':_0x1127b3(0xca),'createdAt':_0x1127b3(0xd8),'updatedAt':_0x1127b3(0xcc),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x1127b3(0xc1),'linkPlaceholder':_0x1127b3(0xce)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x1127b3(0xd1),'invalidFieldType':'字段類型無效','invalidCellValue':_0x1127b3(0xd0),'invalidKanbanGroupField':_0x1127b3(0xd6),'invalidCalendarDateField':'日曆需要日期字段','invalidGanttDateField':_0x1127b3(0xc2)},'command':{'updateCell':_0x1127b3(0xd4),'createField':_0x1127b3(0xdc),'deleteField':_0x1127b3(0xc5),'createRecord':_0x1127b3(0xc6),'deleteRecord':_0x1127b3(0xd9),'updateViewConfig':'更新視圖設置'}}};export{e as default};function _0x285e(_0x41e156,_0x2bb5b5){_0x41e156=_0x41e156-0xc1;const _0x47972d=_0x4797();let _0x285eeb=_0x47972d[_0x41e156];return _0x285eeb;}function _0x4797(){const _0x562184=['刪除記錄','1425487lAgHjt','雙向關聯','創建字段','241xjQuBO','輸入內容','甘特視圖需要開始和結束日期字段','10572qVnLaq','301056xDdEcb','刪除字段','創建記錄','電話號碼','270FDdWzN','428989Nabxlv','修改人','複選框','更新時間','10814YezNAp','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','3821055irGqnk','單元格值無效','字段標題不能為空','189tKwqEb','960nGMFfK','更新單元格','創建人','看板需要可分組字段','3344622UNJgQb','創建時間'];_0x4797=function(){return _0x562184;};return _0x4797();}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const BASES_PLUGIN_CONFIG_KEY = "bases.config";
|
|
2
|
+
export declare const configSymbol: unique symbol;
|
|
3
|
+
export interface IUniverBasesConfig {
|
|
4
|
+
}
|
|
5
|
+
export declare const defaultPluginConfig: IUniverBasesConfig;
|
|
6
|
+
export declare const REMOTE_BASES_PLUGIN_CONFIG_KEY = "bases.remote.config";
|
|
7
|
+
export declare const configSymbolRemote: unique symbol;
|
|
8
|
+
export interface IUniverRemoteBasesConfig {
|
|
9
|
+
}
|
|
10
|
+
export declare const defaultRemotePluginConfig: IUniverRemoteBasesConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ISuperTableService } from '@univerjs-pro/engine-formula';
|
|
2
2
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
3
3
|
export declare class BaseRemoteFormulaController extends Disposable {
|
|
4
4
|
private readonly _commandService;
|
|
5
5
|
private readonly _univerInstanceService;
|
|
6
6
|
private readonly _superTableService?;
|
|
7
7
|
private readonly _formulaService;
|
|
8
|
-
constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _superTableService?:
|
|
8
|
+
constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _superTableService?: ISuperTableService | undefined);
|
|
9
9
|
private _initialize;
|
|
10
10
|
private _onCommandExecuted;
|
|
11
11
|
private _shouldRefreshSuperTables;
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import './f-enum';
|
|
2
|
-
export { FBase
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
2
|
+
export { FBase } from './f-base';
|
|
3
|
+
export type { IBaseSchemaSnapshot, ICopyTableInput, ICreateTableInput, ISearchTableInput } from './f-base';
|
|
4
|
+
export { BaseBatchEventModeEnum, BaseBatchUndoModeEnum, BaseErrorCodeEnum, BaseFieldKeyEnum, BaseFieldTypeEnum, BaseFilterOperatorEnum, BaseSortDirectionEnum, BaseViewTypeEnum, } from './f-enum';
|
|
5
|
+
export type { IFBaseEnumMixin } from './f-enum';
|
|
6
|
+
export { assertBaseCommandSucceeded, BaseError, BaseErrorCode, isBaseError, } from './f-error';
|
|
7
|
+
export type { BaseErrorCodeType, IBaseErrorDetails } from './f-error';
|
|
5
8
|
export { BaseEventName } from './f-event';
|
|
6
9
|
export type { IBaseCellValueChangedEvent, IBaseEventMap, IBaseFieldChangedEvent, IBaseRecordChangedEvent, IBaseTableChangedEvent, IBaseViewChangedEvent, } from './f-event';
|
|
7
10
|
export { FField } from './f-field';
|
|
8
11
|
export { FBasePermission, FTablePermission } from './f-permission';
|
|
9
|
-
export {
|
|
12
|
+
export { FBaseRange } from './f-range';
|
|
13
|
+
export type { BaseRangeValues } from './f-range';
|
|
10
14
|
export { FRecord } from './f-record';
|
|
11
|
-
export { FTable
|
|
12
|
-
export {
|
|
15
|
+
export { FTable } from './f-table';
|
|
16
|
+
export type { IAddFieldInput, IAddRecordInput, IBaseRecordFilter, IBaseTableSchemaSnapshot, ICreateViewInput, IListRecordOptions, IQueryRecordsResult, IUpdateRecordOptions, } from './f-table';
|
|
17
|
+
export { FUniverBaseMixin } from './f-univer';
|
|
18
|
+
export type { IFUniverBaseMixin } from './f-univer';
|
|
13
19
|
export { FView } from './f-view';
|
|
14
|
-
export {
|
|
20
|
+
export { resolveBaseFieldKey, resolveBaseFieldValues } from './field-key';
|
|
21
|
+
export type { BaseFieldKey, IBaseFieldKeyOptions } from './field-key';
|
|
15
22
|
export { BaseTransactionContext } from './transaction';
|
package/lib/types/index.d.ts
CHANGED
|
@@ -66,53 +66,21 @@ export { UpdateBaseViewConfigCommand } from './commands/commands/update-base-vie
|
|
|
66
66
|
export type { IUpdateBaseViewConfigCommandParams } from './commands/commands/update-base-view-config.command';
|
|
67
67
|
export { ApplyBaseJson1Mutation } from './commands/mutations/apply-base-json1.mutation';
|
|
68
68
|
export type { IApplyBaseJson1MutationParams } from './commands/mutations/apply-base-json1.mutation';
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export { createCoreFieldPlugins, matchesBaseCondition } from './fields/field-core-plugin';
|
|
73
|
-
export type { BaseConditionDateMode, IBaseConditionMatchOptions, IFieldCorePlugin, IFieldTypePlugin, } from './fields/field-core-plugin';
|
|
74
|
-
export type { FieldCorePlugin, FieldTypePlugin } from './fields/field-core-plugin';
|
|
75
|
-
export { buildBaseNumberFormatPattern, formatBaseNumberValue, inferBaseSeparatorStyle } from './fields/number-format';
|
|
76
|
-
export type { IBaseNumberFormatConfig } from './fields/number-format';
|
|
77
|
-
export type { BaseNumberFormatConfig } from './fields/number-format';
|
|
69
|
+
export { baseDateSerialToDateMs, dateToExcelSerial, formatBaseDateValue, normalizeBaseDateSerial, } from './fields/date-format';
|
|
70
|
+
export { matchesBaseCondition } from './fields/field-core-plugin';
|
|
71
|
+
export { formatBaseNumberValue, inferBaseSeparatorStyle } from './fields/number-format';
|
|
78
72
|
export { uniqueFieldName } from './fields/util';
|
|
79
|
-
export { ensureBaseTableCellLayout,
|
|
73
|
+
export { ensureBaseTableCellLayout, getBaseCellFormulaValue, getBaseCellValue, } from './models/base-cell-data';
|
|
80
74
|
export { copyBaseTableSnapshot } from './models/base-table-copy';
|
|
81
|
-
export type { ICopyBaseTableSnapshotOptions } from './models/base-table-copy';
|
|
82
|
-
export { BaseJson1Adapter } from './ot/json1-adapter';
|
|
83
|
-
export type { BaseJson1Command, IBaseCollaborativeOp, IBaseJson1Adapter } from './ot/json1-adapter';
|
|
84
|
-
export type { BaseCollaborativeOp } from './ot/json1-adapter';
|
|
85
|
-
export { getBaseInvalidationsFromJson1 } from './ot/json1-invalidation';
|
|
86
75
|
export { BaseJson1OpApplier } from './ot/json1-op-applier';
|
|
87
76
|
export { BaseJson1OpFactory } from './ot/json1-op-factory';
|
|
88
|
-
export
|
|
89
|
-
export type { CreateFieldOpInput, SetRangeValuesPatch, SetRecordValuesPatch } from './ot/json1-op-factory';
|
|
90
|
-
export { baseJson1Path } from './ot/json1-path';
|
|
91
|
-
export { composeJson1Ops } from './ot/json1-util';
|
|
92
|
-
export { BASE_SYNC_MUTATIONS, BASES_PLUGIN_NAME, UniverBasesPlugin, UniverRemoteBasesPlugin } from './plugin';
|
|
77
|
+
export { UniverBasesPlugin, UniverRemoteBasesPlugin } from './plugin';
|
|
93
78
|
export { searchBaseTable } from './search/base-search';
|
|
94
|
-
export type {
|
|
95
|
-
export type { BaseTableSearchMatch
|
|
96
|
-
export {
|
|
97
|
-
export
|
|
98
|
-
export
|
|
99
|
-
export { BaseCommandService, IBaseCommandService } from './services/base-command.service';
|
|
100
|
-
export type { IBaseCommandRuntimeContext } from './services/base-command.service';
|
|
101
|
-
export type { BaseCommandRuntimeContext } from './services/base-command.service';
|
|
102
|
-
export { compressBaseRangeValuesPayload, compressBaseSnapshot, decompressBaseRangeValuesPayload, decompressBaseSnapshot, isCompressedBaseRangeValuesPayload, isCompressedBaseSnapshot, } from './services/base-compression.service';
|
|
103
|
-
export type { CompressedBaseRangeValue, IBaseRangeValuesPayload, ICompressedBaseCellData, ICompressedBaseRangeValuesPayload, ICompressedBaseSnapshot, ICompressedBaseTableSnapshot, } from './services/base-compression.service';
|
|
104
|
-
export type { BaseRangeValuesPayload, CompressedBaseCellData, CompressedBaseRangeValuesPayload, CompressedBaseSnapshot, CompressedBaseTableSnapshot, } from './services/base-compression.service';
|
|
105
|
-
export { BaseFieldRegistryService, IBaseFieldRegistryService } from './services/base-field-registry.service';
|
|
106
|
-
export { BaseFormulaService, createBaseFormulaCalculationDataset, createBaseFormulaResultPatches, } from './services/base-formula.service';
|
|
107
|
-
export type { IBaseFormulaCalculationDataset, IBaseFormulaCalculationResult, IBaseFormulaDependency, IBaseFormulaResultPatchGroup, IBaseFormulaSuperTableReference, IBaseFormulaSuperTableServiceLike, IBaseFormulaValidationResult, } from './services/base-formula.service';
|
|
108
|
-
export type { BaseFormulaSuperTableReference, BaseFormulaSuperTableServiceLike, BaseFormulaValidationResult, } from './services/base-formula.service';
|
|
109
|
-
export { isBasePerformanceTracingEnabled, logBasePerformance, traceBasePerformance, traceBasePerformanceAsync, } from './services/base-performance.service';
|
|
110
|
-
export type { BasePerformanceDetails } from './services/base-performance.service';
|
|
111
|
-
export { BasePermissionService, IBasePermissionService } from './services/base-permission.service';
|
|
79
|
+
export type { IBaseTableSearchResult } from './search/base-search';
|
|
80
|
+
export type { BaseTableSearchMatch } from './search/base-search';
|
|
81
|
+
export { IBaseCommandService } from './services/base-command.service';
|
|
82
|
+
export { traceBasePerformance, } from './services/base-performance.service';
|
|
83
|
+
export { IBasePermissionService } from './services/base-permission.service';
|
|
112
84
|
export type { BaseFieldPermission, BasePermissionSnapshot, BaseRecordPermission, BaseTablePermission, } from './services/base-permission.service';
|
|
113
|
-
export {
|
|
114
|
-
export {
|
|
115
|
-
export { BaseViewRegistryService, IBaseViewRegistryService } from './services/base-view-registry.service';
|
|
116
|
-
export { createCoreViewPlugins } from './views/view-core-plugin';
|
|
117
|
-
export type { IProjectionContext, IViewCorePlugin, IViewRepairResult } from './views/view-core-plugin';
|
|
118
|
-
export type { ProjectionContext, ViewCorePlugin, ViewRepairResult } from './views/view-core-plugin';
|
|
85
|
+
export { IBaseProjectionService } from './services/base-projection.service';
|
|
86
|
+
export { IBaseViewRegistryService } from './services/base-view-registry.service';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IUniverBasesConfig, IUniverRemoteBasesConfig } from './config/config';
|
|
2
|
+
import { ICommandService, IConfigService, Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
3
|
import { DataSyncPrimaryController } from '@univerjs/rpc';
|
|
3
4
|
export declare const BASES_PLUGIN_NAME = "BASES_PLUGIN";
|
|
4
5
|
export declare const BASE_SYNC_MUTATIONS: readonly [import("@univerjs/core").IMutation<import(".").IApplyBaseJson1MutationParams, boolean>];
|
|
@@ -7,13 +8,14 @@ export declare class UniverBasesPlugin extends Plugin {
|
|
|
7
8
|
protected readonly _injector: Injector;
|
|
8
9
|
private readonly _commandService;
|
|
9
10
|
private readonly _univerInstanceService;
|
|
11
|
+
private readonly _configService;
|
|
10
12
|
private readonly _dataSyncPrimaryController?;
|
|
11
13
|
static pluginName: string;
|
|
12
14
|
static packageName: string;
|
|
13
15
|
static version: string;
|
|
14
16
|
static type: UniverInstanceType;
|
|
15
17
|
private readonly _baseSyncDisposables;
|
|
16
|
-
constructor(_config:
|
|
18
|
+
constructor(_config: Partial<IUniverBasesConfig> | undefined, _injector: Injector, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _dataSyncPrimaryController?: DataSyncPrimaryController | undefined);
|
|
17
19
|
onReady(): void;
|
|
18
20
|
private _initDependencies;
|
|
19
21
|
private _initCommands;
|
|
@@ -25,11 +27,12 @@ export declare class UniverRemoteBasesPlugin extends Plugin {
|
|
|
25
27
|
private readonly _config;
|
|
26
28
|
protected readonly _injector: Injector;
|
|
27
29
|
private readonly _commandService;
|
|
30
|
+
private readonly _configService;
|
|
28
31
|
private readonly _univerInstanceService;
|
|
29
32
|
static pluginName: string;
|
|
30
33
|
static packageName: string;
|
|
31
34
|
static version: string;
|
|
32
35
|
static type: UniverInstanceType;
|
|
33
|
-
constructor(_config:
|
|
36
|
+
constructor(_config: Partial<IUniverRemoteBasesConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService);
|
|
34
37
|
onReady(): void;
|
|
35
38
|
}
|
|
@@ -115,7 +115,11 @@ export declare class BaseCommandService implements IBaseCommandService {
|
|
|
115
115
|
private _withModifiedSystemValues;
|
|
116
116
|
private _createSystemFieldValuePatches;
|
|
117
117
|
private _getSystemFieldValue;
|
|
118
|
-
private
|
|
118
|
+
private _createNumberingAllocators;
|
|
119
|
+
private _createNumberingAllocator;
|
|
120
|
+
private _createNumberingFieldValuePatches;
|
|
121
|
+
private _getOrderedActiveRecords;
|
|
122
|
+
private _isNonEmptyCellValue;
|
|
119
123
|
private _getCurrentUserId;
|
|
120
124
|
private _normalizeCellValue;
|
|
121
125
|
}
|