@univerjs/sheets-table-ui 0.23.0 → 0.24.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/index.js +835 -385
- package/lib/cjs/locale/ca-ES.js +6 -0
- package/lib/cjs/locale/en-US.js +6 -0
- package/lib/cjs/locale/es-ES.js +6 -0
- package/lib/cjs/locale/fa-IR.js +6 -0
- package/lib/cjs/locale/fr-FR.js +6 -0
- package/lib/cjs/locale/ja-JP.js +6 -0
- package/lib/cjs/locale/ko-KR.js +6 -0
- package/lib/cjs/locale/ru-RU.js +6 -0
- package/lib/cjs/locale/sk-SK.js +6 -0
- package/lib/cjs/locale/vi-VN.js +6 -0
- package/lib/cjs/locale/zh-CN.js +6 -0
- package/lib/cjs/locale/zh-TW.js +6 -0
- package/lib/es/index.js +843 -393
- package/lib/es/locale/ca-ES.js +6 -0
- package/lib/es/locale/en-US.js +6 -0
- package/lib/es/locale/es-ES.js +6 -0
- package/lib/es/locale/fa-IR.js +6 -0
- package/lib/es/locale/fr-FR.js +6 -0
- package/lib/es/locale/ja-JP.js +6 -0
- package/lib/es/locale/ko-KR.js +6 -0
- package/lib/es/locale/ru-RU.js +6 -0
- package/lib/es/locale/sk-SK.js +6 -0
- package/lib/es/locale/vi-VN.js +6 -0
- package/lib/es/locale/zh-CN.js +6 -0
- package/lib/es/locale/zh-TW.js +6 -0
- package/lib/index.css +63 -47
- package/lib/index.js +843 -393
- package/lib/locale/ca-ES.js +6 -0
- package/lib/locale/en-US.js +6 -0
- package/lib/locale/es-ES.js +6 -0
- package/lib/locale/fa-IR.js +6 -0
- package/lib/locale/fr-FR.js +6 -0
- package/lib/locale/ja-JP.js +6 -0
- package/lib/locale/ko-KR.js +6 -0
- package/lib/locale/ru-RU.js +6 -0
- package/lib/locale/sk-SK.js +6 -0
- package/lib/locale/vi-VN.js +6 -0
- package/lib/locale/zh-CN.js +6 -0
- package/lib/locale/zh-TW.js +6 -0
- package/lib/types/const.d.ts +2 -0
- package/lib/types/controllers/sheet-table-component.controller.d.ts +2 -0
- package/lib/types/controllers/sheet-table-controls-render.controller.d.ts +60 -0
- package/lib/types/controllers/sheet-table-filter-button-render.controller.d.ts +3 -2
- package/lib/types/locale/en-US.d.ts +6 -0
- package/lib/types/views/components/{SheetTableAnchor.d.ts → SheetTableRenameDialog.d.ts} +6 -1
- package/lib/types/views/widgets/table-controls-util.d.ts +44 -0
- package/lib/types/views/widgets/table-controls.shape.d.ts +63 -0
- package/lib/types/views/widgets/table-filter-button.shape.d.ts +10 -5
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.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-TW.js +1 -1
- package/package.json +13 -13
- package/lib/types/controllers/sheet-table-anchor.controller.d.ts +0 -50
- /package/lib/types/services/{sheets-table-ui-service.d.ts → sheets-table-ui.service.d.ts} +0 -0
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsTableUiZhTW=t())})(this,function(){return{"sheets-table":{title:`表格`,selectRange:`選擇表格範圍`,rename:`重命名表格`,updateRange:`更新表格範圍`,tableRangeWithMergeError:`表格範圍不能與合併儲存格重疊`,tableRangeWithOtherTableError:`表格範圍不能與其他表格重疊`,tableRangeSingleRowError:`表格範圍不能是單獨的一行`,updateError:`不能將表格範圍設置到和原先不重合且不在同一行的範圍`,tableStyle:`表格樣式`,defaultStyle:`預設樣式`,customStyle:`自定義樣式`,customTooMore:`自定義主題數量超出最大限制,請刪除一些無用的主題後再次添加`,setTheme:`設置表格主題`,removeTable:`刪除表格`,cancel:`取消`,confirm:`確認`,header:`頁首`,footer:`頁尾`,firstLine:`第一行`,secondLine:`第二行`,columnPrefix:`列`,tablePrefix:`表格`,tableNameError:`表格名稱不能包含空格, 不能以數字開頭,不能和已有表格名稱重複`,insert:{main:`表格插入`,row:`插入表格行`,col:`插入表格列`},remove:{main:`表格刪除`,row:`刪除表格行`,col:`刪除表格列`},condition:{string:`文字`,number:`數字`,date:`日期`,empty:`(空白)`},string:{compare:{equal:`等於`,notEqual:`不等於`,contains:`包含`,notContains:`不包含`,startsWith:`開始於`,endsWith:`結束於`}},number:{compare:{equal:`等於`,notEqual:`不等於`,greaterThan:`大於`,greaterThanOrEqual:`大於等於`,lessThan:`小於`,lessThanOrEqual:`小於等於`,between:`介於`,notBetween:`不介於`,above:`大於`,below:`小於`,topN:`前{0}個`}},date:{compare:{equal:`等於`,notEqual:`不等於`,after:`晚於`,afterOrEqual:`晚於等於`,before:`早於`,beforeOrEqual:`早於等於`,between:`介於`,notBetween:`不介於`,today:`今天`,yesterday:`昨天`,tomorrow:`明天`,thisWeek:`本週`,lastWeek:`上週`,nextWeek:`下週`,thisMonth:`本月`,lastMonth:`上月`,nextMonth:`下月`,thisQuarter:`本季度`,lastQuarter:`上季度`,nextQuarter:`下季度`,thisYear:`今年`,nextYear:`明年`,lastYear:`去年`,quarter:`按季度`,month:`按月份`,q1:`第一季度`,q2:`第二季度`,q3:`第三季度`,q4:`第四季度`,m1:`一月`,m2:`二月`,m3:`三月`,m4:`四月`,m5:`五月`,m6:`六月`,m7:`七月`,m8:`八月`,m9:`九月`,m10:`十月`,m11:`十一月`,m12:`十二月`}},filter:{"by-values":`按值`,"by-conditions":`按條件`,"clear-filter":`清除篩選`,cancel:`取消`,confirm:`確認`,"search-placeholder":`使用空格分隔關鍵字`,"select-all":`全選`}}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverSheetsTableUiZhTW=t())})(this,function(){return{"sheets-table":{title:`表格`,selectRange:`選擇表格範圍`,rename:`重命名表格`,renamePlaceholder:`Enter table name`,updateRange:`更新表格範圍`,tableRangeWithMergeError:`表格範圍不能與合併儲存格重疊`,tableRangeWithOtherTableError:`表格範圍不能與其他表格重疊`,tableRangeSingleRowError:`表格範圍不能是單獨的一行`,updateError:`不能將表格範圍設置到和原先不重合且不在同一行的範圍`,tableStyle:`表格樣式`,defaultStyle:`預設樣式`,customStyle:`自定義樣式`,customTooMore:`自定義主題數量超出最大限制,請刪除一些無用的主題後再次添加`,setTheme:`設置表格主題`,removeTable:`刪除表格`,cancel:`取消`,confirm:`確認`,header:`頁首`,footer:`頁尾`,firstLine:`第一行`,secondLine:`第二行`,columnPrefix:`列`,tablePrefix:`表格`,tableNameError:`表格名稱不能包含空格, 不能以數字開頭,不能和已有表格名稱重複`,columnMenu:{"insert-left":`向左插入 1 個表格欄`,"insert-right":`向右插入 1 個表格欄`,delete:`刪除表格欄`},insert:{main:`表格插入`,row:`插入表格行`,col:`插入表格列`},remove:{main:`表格刪除`,row:`刪除表格行`,col:`刪除表格列`},condition:{string:`文字`,number:`數字`,date:`日期`,empty:`(空白)`},string:{compare:{equal:`等於`,notEqual:`不等於`,contains:`包含`,notContains:`不包含`,startsWith:`開始於`,endsWith:`結束於`}},number:{compare:{equal:`等於`,notEqual:`不等於`,greaterThan:`大於`,greaterThanOrEqual:`大於等於`,lessThan:`小於`,lessThanOrEqual:`小於等於`,between:`介於`,notBetween:`不介於`,above:`大於`,below:`小於`,topN:`前{0}個`}},date:{compare:{equal:`等於`,notEqual:`不等於`,after:`晚於`,afterOrEqual:`晚於等於`,before:`早於`,beforeOrEqual:`早於等於`,between:`介於`,notBetween:`不介於`,today:`今天`,yesterday:`昨天`,tomorrow:`明天`,thisWeek:`本週`,lastWeek:`上週`,nextWeek:`下週`,thisMonth:`本月`,lastMonth:`上月`,nextMonth:`下月`,thisQuarter:`本季度`,lastQuarter:`上季度`,nextQuarter:`下季度`,thisYear:`今年`,nextYear:`明年`,lastYear:`去年`,quarter:`按季度`,month:`按月份`,q1:`第一季度`,q2:`第二季度`,q3:`第三季度`,q4:`第四季度`,m1:`一月`,m2:`二月`,m3:`三月`,m4:`四月`,m5:`五月`,m6:`六月`,m7:`七月`,m8:`八月`,m9:`九月`,m10:`十月`,m11:`十一月`,m12:`十二月`}},filter:{"by-values":`按值`,"by-conditions":`按條件`,"clear-filter":`清除篩選`,cancel:`取消`,confirm:`確認`,"search-placeholder":`使用空格分隔關鍵字`,"select-all":`全選`}}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets-table-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Structured table UI for Univer Sheets.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"rxjs": ">=7.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs/icons": "
|
|
62
|
-
"@univerjs/core": "0.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets": "0.
|
|
67
|
-
"@univerjs/sheets
|
|
68
|
-
"@univerjs/sheets-
|
|
69
|
-
"@univerjs/sheets-
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/ui": "0.
|
|
61
|
+
"@univerjs/icons": "1.4.0",
|
|
62
|
+
"@univerjs/core": "0.24.0",
|
|
63
|
+
"@univerjs/engine-formula": "0.24.0",
|
|
64
|
+
"@univerjs/design": "0.24.0",
|
|
65
|
+
"@univerjs/sheets-formula-ui": "0.24.0",
|
|
66
|
+
"@univerjs/sheets-sort": "0.24.0",
|
|
67
|
+
"@univerjs/sheets": "0.24.0",
|
|
68
|
+
"@univerjs/sheets-table": "0.24.0",
|
|
69
|
+
"@univerjs/sheets-ui": "0.24.0",
|
|
70
|
+
"@univerjs/engine-render": "0.24.0",
|
|
71
|
+
"@univerjs/ui": "0.24.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"postcss": "^8.5.14",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"tailwindcss": "3.4.18",
|
|
78
78
|
"typescript": "^6.0.3",
|
|
79
79
|
"vitest": "^4.1.5",
|
|
80
|
-
"@univerjs-infra/shared": "0.
|
|
80
|
+
"@univerjs-infra/shared": "0.24.0"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"test": "vitest run",
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
import type { Workbook } from '@univerjs/core';
|
|
17
|
-
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import { Disposable, ICommandService, Injector, IPermissionService, IUniverInstanceService } from '@univerjs/core';
|
|
19
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
20
|
-
import { WorkbookPermissionService } from '@univerjs/sheets';
|
|
21
|
-
import { TableManager } from '@univerjs/sheets-table';
|
|
22
|
-
import { SheetScrollManagerService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
23
|
-
import { IUIPartsService } from '@univerjs/ui';
|
|
24
|
-
export interface ITableAnchorPosition {
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
tableId: string;
|
|
28
|
-
tableName: string;
|
|
29
|
-
}
|
|
30
|
-
export declare class SheetTableAnchorController extends Disposable implements IRenderModule {
|
|
31
|
-
private readonly _context;
|
|
32
|
-
private readonly _injector;
|
|
33
|
-
private readonly _sheetSkeletonManagerService;
|
|
34
|
-
private readonly _renderManagerService;
|
|
35
|
-
private readonly _commandService;
|
|
36
|
-
private readonly _univerInstanceService;
|
|
37
|
-
protected readonly _uiPartsService: IUIPartsService;
|
|
38
|
-
private readonly _tableManager;
|
|
39
|
-
private readonly _scrollManagerService;
|
|
40
|
-
private readonly _workbookPermissionService;
|
|
41
|
-
private readonly _permissionService;
|
|
42
|
-
private _anchorVisible$;
|
|
43
|
-
private _timer;
|
|
44
|
-
private _anchorPosition$;
|
|
45
|
-
anchorPosition$: import("rxjs").Observable<ITableAnchorPosition[]>;
|
|
46
|
-
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _uiPartsService: IUIPartsService, _tableManager: TableManager, _scrollManagerService: SheetScrollManagerService, _workbookPermissionService: WorkbookPermissionService, _permissionService: IPermissionService);
|
|
47
|
-
private _initUI;
|
|
48
|
-
private _initListener;
|
|
49
|
-
private _initTableAnchor;
|
|
50
|
-
}
|
|
File without changes
|