@univerjs/sheets-table-ui 0.6.10-experimental.20250418-8830bd4
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 -0
- package/lib/cjs/index.js +103 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +2374 -0
- package/lib/es/locale/en-US.js +115 -0
- package/lib/es/locale/fa-IR.js +115 -0
- package/lib/es/locale/fr-FR.js +115 -0
- package/lib/es/locale/ru-RU.js +115 -0
- package/lib/es/locale/vi-VN.js +115 -0
- package/lib/es/locale/zh-CN.js +115 -0
- package/lib/es/locale/zh-TW.js +115 -0
- package/lib/index.js +2374 -0
- package/lib/locale/en-US.js +115 -0
- package/lib/locale/fa-IR.js +115 -0
- package/lib/locale/fr-FR.js +115 -0
- package/lib/locale/ru-RU.js +115 -0
- package/lib/locale/vi-VN.js +115 -0
- package/lib/locale/zh-CN.js +115 -0
- package/lib/locale/zh-TW.js +115 -0
- package/lib/types/commands/operations/open-table-filter-dialog.opration.d.ts +9 -0
- package/lib/types/commands/operations/open-table-selector.operation.d.ts +13 -0
- package/lib/types/const.d.ts +28 -0
- package/lib/types/controllers/config.schema.d.ts +22 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/controllers/sheet-table-anchor.controller.d.ts +28 -0
- package/lib/types/controllers/sheet-table-component.controller.d.ts +28 -0
- package/lib/types/controllers/sheet-table-filter-button-render.controller.d.ts +26 -0
- package/lib/types/controllers/sheet-table-menu.controller.d.ts +9 -0
- package/lib/types/controllers/sheet-table-render.controller.d.ts +18 -0
- package/lib/types/controllers/sheet-table-selection.controller.d.ts +10 -0
- package/lib/types/controllers/sheet-table-theme-ui.controller.d.ts +8 -0
- package/lib/types/index.d.ts +16 -0
- package/lib/types/locale/en-US.d.ts +128 -0
- package/lib/types/locale/fa-IR.d.ts +128 -0
- package/lib/types/locale/fr-FR.d.ts +128 -0
- package/lib/types/locale/ru-RU.d.ts +128 -0
- package/lib/types/locale/vi-VN.d.ts +128 -0
- package/lib/types/locale/zh-CN.d.ts +128 -0
- package/lib/types/locale/zh-TW.d.ts +128 -0
- package/lib/types/plugin.d.ts +18 -0
- package/lib/types/services/sheets-table-ui-service.d.ts +25 -0
- package/lib/types/types.d.ts +31 -0
- package/lib/types/views/components/SheetTableAnchor.d.ts +16 -0
- package/lib/types/views/components/SheetTableConditionPanel.d.ts +13 -0
- package/lib/types/views/components/SheetTableFilterPanel.d.ts +16 -0
- package/lib/types/views/components/SheetTableItemsFilterPanel.d.ts +13 -0
- package/lib/types/views/components/SheetTableSelector.d.ts +5 -0
- package/lib/types/views/components/SheetTableThemePanel.d.ts +8 -0
- package/lib/types/views/components/type.d.ts +24 -0
- package/lib/types/views/components/util.d.ts +140 -0
- package/lib/types/views/menu.d.ts +32 -0
- package/lib/types/views/widgets/drawings.d.ts +6 -0
- package/lib/types/views/widgets/icons.d.ts +20 -0
- package/lib/types/views/widgets/table-filter-button.shape.d.ts +35 -0
- package/lib/umd/index.js +103 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
"sheets-table": {
|
|
3
|
+
title: "表格",
|
|
4
|
+
selectRange: "選擇表格範圍",
|
|
5
|
+
rename: "重命名表格",
|
|
6
|
+
updateRange: "更新表格範圍",
|
|
7
|
+
tableRangeWithMergeError: "表格範圍不能與合併儲存格重疊",
|
|
8
|
+
tableRangeWithOtherTableError: "表格範圍不能與其他表格重疊",
|
|
9
|
+
tableRangeSingleRowError: "表格範圍不能是單獨的一行",
|
|
10
|
+
updateError: "不能將表格範圍設置到和原先不重合且不在同一行的範圍",
|
|
11
|
+
tableStyle: "表格樣式",
|
|
12
|
+
defaultStyle: "預設樣式",
|
|
13
|
+
customStyle: "自定義樣式",
|
|
14
|
+
customTooMore: "自定義主題數量超出最大限制,請刪除一些無用的主題後再次添加",
|
|
15
|
+
setTheme: "設置表格主題",
|
|
16
|
+
removeTable: "刪除表格",
|
|
17
|
+
cancel: "取消",
|
|
18
|
+
confirm: "確認",
|
|
19
|
+
header: "頁首",
|
|
20
|
+
footer: "頁尾",
|
|
21
|
+
firstLine: "第一行",
|
|
22
|
+
secondLine: "第二行",
|
|
23
|
+
columnPrefix: "列",
|
|
24
|
+
tablePrefix: "表格",
|
|
25
|
+
insert: {
|
|
26
|
+
main: "表格插入",
|
|
27
|
+
row: "插入表格行",
|
|
28
|
+
col: "插入表格列"
|
|
29
|
+
},
|
|
30
|
+
remove: {
|
|
31
|
+
main: "表格刪除",
|
|
32
|
+
row: "刪除表格行",
|
|
33
|
+
col: "刪除表格列"
|
|
34
|
+
},
|
|
35
|
+
condition: {
|
|
36
|
+
string: "文字",
|
|
37
|
+
number: "數字",
|
|
38
|
+
date: "日期",
|
|
39
|
+
empty: "(空白)"
|
|
40
|
+
},
|
|
41
|
+
string: {
|
|
42
|
+
compare: {
|
|
43
|
+
equal: "等於",
|
|
44
|
+
notEqual: "不等於",
|
|
45
|
+
contains: "包含",
|
|
46
|
+
notContains: "不包含",
|
|
47
|
+
startsWith: "開始於",
|
|
48
|
+
endsWith: "結束於"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
number: {
|
|
52
|
+
compare: {
|
|
53
|
+
equal: "等於",
|
|
54
|
+
notEqual: "不等於",
|
|
55
|
+
greaterThan: "大於",
|
|
56
|
+
greaterThanOrEqual: "大於等於",
|
|
57
|
+
lessThan: "小於",
|
|
58
|
+
lessThanOrEqual: "小於等於",
|
|
59
|
+
between: "介於",
|
|
60
|
+
notBetween: "不介於",
|
|
61
|
+
above: "大於",
|
|
62
|
+
below: "小於",
|
|
63
|
+
topN: "前{0}個"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
date: {
|
|
67
|
+
compare: {
|
|
68
|
+
equal: "等於",
|
|
69
|
+
notEqual: "不等於",
|
|
70
|
+
after: "晚於",
|
|
71
|
+
afterOrEqual: "晚於等於",
|
|
72
|
+
before: "早於",
|
|
73
|
+
beforeOrEqual: "早於等於",
|
|
74
|
+
between: "介於",
|
|
75
|
+
notBetween: "不介於",
|
|
76
|
+
today: "今天",
|
|
77
|
+
yesterday: "昨天",
|
|
78
|
+
tomorrow: "明天",
|
|
79
|
+
thisWeek: "本週",
|
|
80
|
+
lastWeek: "上週",
|
|
81
|
+
nextWeek: "下週",
|
|
82
|
+
thisMonth: "本月",
|
|
83
|
+
lastMonth: "上月",
|
|
84
|
+
nextMonth: "下月",
|
|
85
|
+
thisQuarter: "本季度",
|
|
86
|
+
lastQuarter: "上季度",
|
|
87
|
+
nextQuarter: "下季度",
|
|
88
|
+
thisYear: "今年",
|
|
89
|
+
nextYear: "明年",
|
|
90
|
+
lastYear: "去年",
|
|
91
|
+
quarter: "按季度",
|
|
92
|
+
month: "按月份",
|
|
93
|
+
q1: "第一季度",
|
|
94
|
+
q2: "第二季度",
|
|
95
|
+
q3: "第三季度",
|
|
96
|
+
q4: "第四季度",
|
|
97
|
+
m1: "一月",
|
|
98
|
+
m2: "二月",
|
|
99
|
+
m3: "三月",
|
|
100
|
+
m4: "四月",
|
|
101
|
+
m5: "五月",
|
|
102
|
+
m6: "六月",
|
|
103
|
+
m7: "七月",
|
|
104
|
+
m8: "八月",
|
|
105
|
+
m9: "九月",
|
|
106
|
+
m10: "十月",
|
|
107
|
+
m11: "十一月",
|
|
108
|
+
m12: "十二月"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
export {
|
|
114
|
+
e as default
|
|
115
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
export interface IOpenTableFilterPanelOperationParams {
|
|
3
|
+
row: number;
|
|
4
|
+
col: number;
|
|
5
|
+
unitId: string;
|
|
6
|
+
subUnitId: string;
|
|
7
|
+
tableId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const OpenTableFilterPanelOperation: ICommand<IOpenTableFilterPanelOperationParams>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAccessor, IRange, CommandType } from '@univerjs/core';
|
|
2
|
+
export declare const OpenTableSelectorOperation: {
|
|
3
|
+
type: CommandType;
|
|
4
|
+
id: string;
|
|
5
|
+
handler(accessor: IAccessor): Promise<boolean>;
|
|
6
|
+
};
|
|
7
|
+
export interface ITableSelectionInfo {
|
|
8
|
+
unitId: string;
|
|
9
|
+
subUnitId: string;
|
|
10
|
+
range: IRange;
|
|
11
|
+
tableId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function openRangeSelector(accessor: IAccessor, unitId: string, subUnitId: string, range: IRange, tableId?: string): Promise<ITableSelectionInfo | null>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare const PLUGIN_NAME = "SHEET_TABLE_UI_PLUGIN";
|
|
17
|
+
export declare const SHEETS_TABLE_FILTER_PANEL_OPENED_KEY = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY";
|
|
18
|
+
export declare const UNIVER_SHEET_TABLE_FILTER_PANEL_ID = "UNIVER_SHEET_Table_FILTER_PANEL_ID";
|
|
19
|
+
export declare const TABLE_TOOLBAR_BUTTON = "TABLE_TOOLBAR_BUTTON";
|
|
20
|
+
export declare const TABLE_SELECTOR_DIALOG = "TABLE_SELECTOR_DIALOG";
|
|
21
|
+
export declare const SHEET_TABLE_THEME_PANEL_ID = "SHEET_TABLE_THEME_PANEL_ID";
|
|
22
|
+
export declare const SHEET_TABLE_THEME_PANEL = "SHEET_TABLE_THEME_PANEL";
|
|
23
|
+
export declare const TABLE_CUSTOM_NAME_PREFIX = "table-custom-";
|
|
24
|
+
export declare const TABLE_DEFAULT_NAME_PREFIX = "table-default-";
|
|
25
|
+
export declare const TABLE_DEFAULT_BG_COLOR = "rgb(255, 255, 255)";
|
|
26
|
+
export declare const TABLE_BORDER_NONE = "none";
|
|
27
|
+
export declare const TABLE_BORDER_DEFAULT = "1px solid rgb(var(--grey-200))";
|
|
28
|
+
export declare const TABLE_BORDER_SELECTED = "1px solid rgb(var(--blue-500))";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SHEETS_TABLE_UI_PLUGIN_CONFIG_KEY = "sheets-table-ui.config";
|
|
17
|
+
export declare const configSymbol: unique symbol;
|
|
18
|
+
export interface IUniverSheetsTableUIConfig {
|
|
19
|
+
anchorHeight?: number;
|
|
20
|
+
anchorBackgroundColor?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const defaultPluginConfig: IUniverSheetsTableUIConfig;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Workbook, Disposable, Injector, IPermissionService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
+
import { TableManager } from '@univerjs/sheets-table';
|
|
4
|
+
import { SheetScrollManagerService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
5
|
+
import { IUIPartsService } from '@univerjs/ui';
|
|
6
|
+
export interface ITableAnchorPosition {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
tableId: string;
|
|
10
|
+
tableName: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class SheetTableAnchorController extends Disposable implements IRenderModule {
|
|
13
|
+
private readonly _context;
|
|
14
|
+
private readonly _injector;
|
|
15
|
+
private readonly _sheetSkeletonManagerService;
|
|
16
|
+
private readonly _renderManagerService;
|
|
17
|
+
private readonly _univerInstanceService;
|
|
18
|
+
protected readonly _uiPartsService: IUIPartsService;
|
|
19
|
+
private readonly _tableManager;
|
|
20
|
+
private readonly _scrollManagerService;
|
|
21
|
+
private readonly _permissionService;
|
|
22
|
+
private _selectedTable;
|
|
23
|
+
private _anchorPosition$;
|
|
24
|
+
anchorPosition$: import('rxjs').Observable<ITableAnchorPosition[]>;
|
|
25
|
+
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _uiPartsService: IUIPartsService, _tableManager: TableManager, _scrollManagerService: SheetScrollManagerService, _permissionService: IPermissionService);
|
|
26
|
+
private _initUI;
|
|
27
|
+
private _initTableAnchor;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Nullable, Disposable, IContextService } from '@univerjs/core';
|
|
2
|
+
import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { ComponentManager, IDialogService } from '@univerjs/ui';
|
|
4
|
+
interface ITableFilterPanelInfo {
|
|
5
|
+
unitId: string;
|
|
6
|
+
subUnitId: string;
|
|
7
|
+
tableId: string;
|
|
8
|
+
column: number;
|
|
9
|
+
row: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class SheetsTableComponentController extends Disposable {
|
|
12
|
+
private readonly _componentManager;
|
|
13
|
+
private readonly _contextService;
|
|
14
|
+
private _sheetCanvasPopupService;
|
|
15
|
+
private readonly _dialogService;
|
|
16
|
+
private _popupDisposable?;
|
|
17
|
+
private _currentTableFilterInfo;
|
|
18
|
+
constructor(_componentManager: ComponentManager, _contextService: IContextService, _sheetCanvasPopupService: SheetCanvasPopManagerService, _dialogService: IDialogService);
|
|
19
|
+
setCurrentTableFilterInfo(info: ITableFilterPanelInfo): void;
|
|
20
|
+
clearCurrentTableFilterInfo(): void;
|
|
21
|
+
getCurrentTableFilterInfo(): Nullable<ITableFilterPanelInfo>;
|
|
22
|
+
private _initComponents;
|
|
23
|
+
private _initUIPopup;
|
|
24
|
+
closeFilterPanel(): void;
|
|
25
|
+
private _openFilterPopup;
|
|
26
|
+
private _closeFilterPopup;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Workbook, ICommandService, Injector, RxDisposable, ThemeService } from '@univerjs/core';
|
|
2
|
+
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
4
|
+
import { TableManager } from '@univerjs/sheets-table';
|
|
5
|
+
import { ISheetSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
6
|
+
/**
|
|
7
|
+
* Show selected range in filter.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SheetsTableFilterButtonRenderController extends RxDisposable implements IRenderModule {
|
|
10
|
+
private readonly _context;
|
|
11
|
+
private readonly _injector;
|
|
12
|
+
private readonly _sheetSkeletonManagerService;
|
|
13
|
+
private readonly _themeService;
|
|
14
|
+
private readonly _sheetInterceptorService;
|
|
15
|
+
private readonly _commandService;
|
|
16
|
+
private readonly _selectionRenderService;
|
|
17
|
+
private _tableManager;
|
|
18
|
+
private _buttonRenderDisposable;
|
|
19
|
+
private _tableFilterButtonShapes;
|
|
20
|
+
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _themeService: ThemeService, _sheetInterceptorService: SheetInterceptorService, _commandService: ICommandService, _selectionRenderService: ISheetSelectionRenderService, _tableManager: TableManager);
|
|
21
|
+
dispose(): void;
|
|
22
|
+
private _initRenderer;
|
|
23
|
+
private _renderButtons;
|
|
24
|
+
private _interceptCellContent;
|
|
25
|
+
private _disposeRendering;
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
|
|
3
|
+
export declare class SheetTableMenuController extends Disposable {
|
|
4
|
+
private _componentManager;
|
|
5
|
+
private _menuManagerService;
|
|
6
|
+
constructor(_componentManager: ComponentManager, _menuManagerService: IMenuManagerService);
|
|
7
|
+
private _initComponents;
|
|
8
|
+
private _initMenu;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Workbook, Injector, RxDisposable } from '@univerjs/core';
|
|
2
|
+
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { TableManager } from '@univerjs/sheets-table';
|
|
4
|
+
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
5
|
+
import { SheetTableThemeUIController } from './sheet-table-theme-ui.controller';
|
|
6
|
+
/**
|
|
7
|
+
* Show selected range in filter.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SheetsTableRenderController extends RxDisposable implements IRenderModule {
|
|
10
|
+
private readonly _context;
|
|
11
|
+
private readonly _injector;
|
|
12
|
+
private readonly _sheetSkeletonManagerService;
|
|
13
|
+
private _tableManager;
|
|
14
|
+
private readonly _sheetTableThemeUIController;
|
|
15
|
+
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _tableManager: TableManager, _sheetTableThemeUIController: SheetTableThemeUIController);
|
|
16
|
+
private _dirtySkeleton;
|
|
17
|
+
private _initListener;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
+
import { TableManager } from '@univerjs/sheets-table';
|
|
4
|
+
export declare class SheetTableSelectionController extends Disposable {
|
|
5
|
+
private readonly _sheetInterceptorService;
|
|
6
|
+
private readonly _univerInstanceService;
|
|
7
|
+
private readonly _tableManager;
|
|
8
|
+
constructor(_sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _tableManager: TableManager);
|
|
9
|
+
private _initSelectionChange;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
+
export declare class SheetTableThemeUIController extends Disposable {
|
|
3
|
+
private _commandService;
|
|
4
|
+
private _refreshTable;
|
|
5
|
+
refreshTable$: import('rxjs').Observable<number>;
|
|
6
|
+
constructor(_commandService: ICommandService);
|
|
7
|
+
private _initListener;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export { UniverSheetTableUIPlugin } from './plugin';
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
declare const locale: {
|
|
17
|
+
'sheets-table': {
|
|
18
|
+
title: string;
|
|
19
|
+
selectRange: string;
|
|
20
|
+
rename: string;
|
|
21
|
+
updateRange: string;
|
|
22
|
+
tableRangeWithMergeError: string;
|
|
23
|
+
tableRangeWithOtherTableError: string;
|
|
24
|
+
tableRangeSingleRowError: string;
|
|
25
|
+
updateError: string;
|
|
26
|
+
tableStyle: string;
|
|
27
|
+
defaultStyle: string;
|
|
28
|
+
customStyle: string;
|
|
29
|
+
customTooMore: string;
|
|
30
|
+
setTheme: string;
|
|
31
|
+
removeTable: string;
|
|
32
|
+
cancel: string;
|
|
33
|
+
confirm: string;
|
|
34
|
+
header: string;
|
|
35
|
+
footer: string;
|
|
36
|
+
firstLine: string;
|
|
37
|
+
secondLine: string;
|
|
38
|
+
columnPrefix: string;
|
|
39
|
+
tablePrefix: string;
|
|
40
|
+
insert: {
|
|
41
|
+
main: string;
|
|
42
|
+
row: string;
|
|
43
|
+
col: string;
|
|
44
|
+
};
|
|
45
|
+
remove: {
|
|
46
|
+
main: string;
|
|
47
|
+
row: string;
|
|
48
|
+
col: string;
|
|
49
|
+
};
|
|
50
|
+
condition: {
|
|
51
|
+
string: string;
|
|
52
|
+
number: string;
|
|
53
|
+
date: string;
|
|
54
|
+
empty: string;
|
|
55
|
+
};
|
|
56
|
+
string: {
|
|
57
|
+
compare: {
|
|
58
|
+
equal: string;
|
|
59
|
+
notEqual: string;
|
|
60
|
+
contains: string;
|
|
61
|
+
notContains: string;
|
|
62
|
+
startsWith: string;
|
|
63
|
+
endsWith: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
number: {
|
|
67
|
+
compare: {
|
|
68
|
+
equal: string;
|
|
69
|
+
notEqual: string;
|
|
70
|
+
greaterThan: string;
|
|
71
|
+
greaterThanOrEqual: string;
|
|
72
|
+
lessThan: string;
|
|
73
|
+
lessThanOrEqual: string;
|
|
74
|
+
between: string;
|
|
75
|
+
notBetween: string;
|
|
76
|
+
above: string;
|
|
77
|
+
below: string;
|
|
78
|
+
topN: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
date: {
|
|
82
|
+
compare: {
|
|
83
|
+
equal: string;
|
|
84
|
+
notEqual: string;
|
|
85
|
+
after: string;
|
|
86
|
+
afterOrEqual: string;
|
|
87
|
+
before: string;
|
|
88
|
+
beforeOrEqual: string;
|
|
89
|
+
between: string;
|
|
90
|
+
notBetween: string;
|
|
91
|
+
today: string;
|
|
92
|
+
yesterday: string;
|
|
93
|
+
tomorrow: string;
|
|
94
|
+
thisWeek: string;
|
|
95
|
+
lastWeek: string;
|
|
96
|
+
nextWeek: string;
|
|
97
|
+
thisMonth: string;
|
|
98
|
+
lastMonth: string;
|
|
99
|
+
nextMonth: string;
|
|
100
|
+
thisQuarter: string;
|
|
101
|
+
lastQuarter: string;
|
|
102
|
+
nextQuarter: string;
|
|
103
|
+
thisYear: string;
|
|
104
|
+
nextYear: string;
|
|
105
|
+
lastYear: string;
|
|
106
|
+
quarter: string;
|
|
107
|
+
month: string;
|
|
108
|
+
q1: string;
|
|
109
|
+
q2: string;
|
|
110
|
+
q3: string;
|
|
111
|
+
q4: string;
|
|
112
|
+
m1: string;
|
|
113
|
+
m2: string;
|
|
114
|
+
m3: string;
|
|
115
|
+
m4: string;
|
|
116
|
+
m5: string;
|
|
117
|
+
m6: string;
|
|
118
|
+
m7: string;
|
|
119
|
+
m8: string;
|
|
120
|
+
m9: string;
|
|
121
|
+
m10: string;
|
|
122
|
+
m11: string;
|
|
123
|
+
m12: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export default locale;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
declare const locale: {
|
|
17
|
+
'sheets-table': {
|
|
18
|
+
title: string;
|
|
19
|
+
selectRange: string;
|
|
20
|
+
rename: string;
|
|
21
|
+
updateRange: string;
|
|
22
|
+
tableRangeWithMergeError: string;
|
|
23
|
+
tableRangeWithOtherTableError: string;
|
|
24
|
+
tableRangeSingleRowError: string;
|
|
25
|
+
updateError: string;
|
|
26
|
+
tableStyle: string;
|
|
27
|
+
defaultStyle: string;
|
|
28
|
+
customStyle: string;
|
|
29
|
+
customTooMore: string;
|
|
30
|
+
setTheme: string;
|
|
31
|
+
removeTable: string;
|
|
32
|
+
cancel: string;
|
|
33
|
+
confirm: string;
|
|
34
|
+
header: string;
|
|
35
|
+
footer: string;
|
|
36
|
+
firstLine: string;
|
|
37
|
+
secondLine: string;
|
|
38
|
+
columnPrefix: string;
|
|
39
|
+
tablePrefix: string;
|
|
40
|
+
insert: {
|
|
41
|
+
main: string;
|
|
42
|
+
row: string;
|
|
43
|
+
col: string;
|
|
44
|
+
};
|
|
45
|
+
remove: {
|
|
46
|
+
main: string;
|
|
47
|
+
row: string;
|
|
48
|
+
col: string;
|
|
49
|
+
};
|
|
50
|
+
condition: {
|
|
51
|
+
string: string;
|
|
52
|
+
number: string;
|
|
53
|
+
date: string;
|
|
54
|
+
empty: string;
|
|
55
|
+
};
|
|
56
|
+
string: {
|
|
57
|
+
compare: {
|
|
58
|
+
equal: string;
|
|
59
|
+
notEqual: string;
|
|
60
|
+
contains: string;
|
|
61
|
+
notContains: string;
|
|
62
|
+
startsWith: string;
|
|
63
|
+
endsWith: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
number: {
|
|
67
|
+
compare: {
|
|
68
|
+
equal: string;
|
|
69
|
+
notEqual: string;
|
|
70
|
+
greaterThan: string;
|
|
71
|
+
greaterThanOrEqual: string;
|
|
72
|
+
lessThan: string;
|
|
73
|
+
lessThanOrEqual: string;
|
|
74
|
+
between: string;
|
|
75
|
+
notBetween: string;
|
|
76
|
+
above: string;
|
|
77
|
+
below: string;
|
|
78
|
+
topN: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
date: {
|
|
82
|
+
compare: {
|
|
83
|
+
equal: string;
|
|
84
|
+
notEqual: string;
|
|
85
|
+
after: string;
|
|
86
|
+
afterOrEqual: string;
|
|
87
|
+
before: string;
|
|
88
|
+
beforeOrEqual: string;
|
|
89
|
+
between: string;
|
|
90
|
+
notBetween: string;
|
|
91
|
+
today: string;
|
|
92
|
+
yesterday: string;
|
|
93
|
+
tomorrow: string;
|
|
94
|
+
thisWeek: string;
|
|
95
|
+
lastWeek: string;
|
|
96
|
+
nextWeek: string;
|
|
97
|
+
thisMonth: string;
|
|
98
|
+
lastMonth: string;
|
|
99
|
+
nextMonth: string;
|
|
100
|
+
thisQuarter: string;
|
|
101
|
+
lastQuarter: string;
|
|
102
|
+
nextQuarter: string;
|
|
103
|
+
thisYear: string;
|
|
104
|
+
nextYear: string;
|
|
105
|
+
lastYear: string;
|
|
106
|
+
quarter: string;
|
|
107
|
+
month: string;
|
|
108
|
+
q1: string;
|
|
109
|
+
q2: string;
|
|
110
|
+
q3: string;
|
|
111
|
+
q4: string;
|
|
112
|
+
m1: string;
|
|
113
|
+
m2: string;
|
|
114
|
+
m3: string;
|
|
115
|
+
m4: string;
|
|
116
|
+
m5: string;
|
|
117
|
+
m6: string;
|
|
118
|
+
m7: string;
|
|
119
|
+
m8: string;
|
|
120
|
+
m9: string;
|
|
121
|
+
m10: string;
|
|
122
|
+
m11: string;
|
|
123
|
+
m12: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export default locale;
|