@univerjs/sheets-table-ui 1.0.0-alpha.7 → 1.0.0-beta.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 +41 -50
- package/lib/cjs/locale/ca-ES.js +4 -4
- package/lib/cjs/locale/es-ES.js +4 -4
- package/lib/cjs/locale/fa-IR.js +4 -4
- package/lib/cjs/locale/fr-FR.js +4 -4
- package/lib/cjs/locale/ja-JP.js +4 -4
- package/lib/cjs/locale/ko-KR.js +4 -4
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/ru-RU.js +4 -4
- package/lib/cjs/locale/sk-SK.js +4 -4
- package/lib/cjs/locale/vi-VN.js +5 -5
- package/lib/cjs/locale/zh-HK.js +15 -15
- package/lib/cjs/locale/zh-TW.js +15 -15
- package/lib/es/index.js +44 -53
- package/lib/es/locale/ca-ES.js +4 -4
- package/lib/es/locale/es-ES.js +4 -4
- package/lib/es/locale/fa-IR.js +4 -4
- package/lib/es/locale/fr-FR.js +4 -4
- package/lib/es/locale/ja-JP.js +4 -4
- package/lib/es/locale/ko-KR.js +4 -4
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/ru-RU.js +4 -4
- package/lib/es/locale/sk-SK.js +4 -4
- package/lib/es/locale/vi-VN.js +5 -5
- package/lib/es/locale/zh-HK.js +15 -15
- package/lib/es/locale/zh-TW.js +15 -15
- package/lib/index.js +44 -53
- package/lib/locale/ca-ES.js +4 -4
- package/lib/locale/es-ES.js +4 -4
- package/lib/locale/fa-IR.js +4 -4
- package/lib/locale/fr-FR.js +4 -4
- package/lib/locale/ja-JP.js +4 -4
- package/lib/locale/ko-KR.js +4 -4
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/ru-RU.js +4 -4
- package/lib/locale/sk-SK.js +4 -4
- package/lib/locale/vi-VN.js +5 -5
- package/lib/locale/zh-HK.js +15 -15
- package/lib/locale/zh-TW.js +15 -15
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.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/pl-PL.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -3,7 +3,7 @@ const locale = { "sheets-table-ui": {
|
|
|
3
3
|
title: "Bảng",
|
|
4
4
|
selectRange: "Chọn phạm vi bảng",
|
|
5
5
|
rename: "Đổi tên bảng",
|
|
6
|
-
renamePlaceholder: "
|
|
6
|
+
renamePlaceholder: "Nhập tên bảng",
|
|
7
7
|
updateRange: "Cập nhật phạm vi bảng",
|
|
8
8
|
tableRangeWithMergeError: "Phạm vi bảng không thể chồng lấp với các ô đã được hợp nhất",
|
|
9
9
|
tableRangeWithOtherTableError: "Phạm vi bảng không thể chồng lấp với các bảng khác",
|
|
@@ -25,9 +25,9 @@ const locale = { "sheets-table-ui": {
|
|
|
25
25
|
tablePrefix: "Bảng",
|
|
26
26
|
tableNameError: "Tên bảng không thể chứa khoảng trắng, không được bắt đầu bằng số và không được trùng với tên bảng đã có",
|
|
27
27
|
columnMenu: {
|
|
28
|
-
"insert-left": "
|
|
29
|
-
"insert-right": "
|
|
30
|
-
delete: "
|
|
28
|
+
"insert-left": "Chèn 1 cột bảng bên trái",
|
|
29
|
+
"insert-right": "Chèn 1 cột bảng bên phải",
|
|
30
|
+
delete: "Xóa cột bảng"
|
|
31
31
|
},
|
|
32
32
|
sort: {
|
|
33
33
|
"sort-asc": "Tăng dần",
|
|
@@ -68,7 +68,7 @@ const locale = { "sheets-table-ui": {
|
|
|
68
68
|
notBetween: "Không trong khoảng",
|
|
69
69
|
above: "Lớn hơn",
|
|
70
70
|
below: "Nhỏ hơn",
|
|
71
|
-
topN: "
|
|
71
|
+
topN: "Trên cùng {0}"
|
|
72
72
|
} },
|
|
73
73
|
date: { compare: {
|
|
74
74
|
equal: "Bằng",
|
package/lib/es/locale/zh-HK.js
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
const locale = { "sheets-table-ui": {
|
|
3
3
|
title: "表格",
|
|
4
4
|
selectRange: "選擇表格範圍",
|
|
5
|
-
rename: "
|
|
6
|
-
renamePlaceholder: "
|
|
5
|
+
rename: "重新命名表格",
|
|
6
|
+
renamePlaceholder: "輸入表格名稱",
|
|
7
7
|
updateRange: "更新表格範圍",
|
|
8
8
|
tableRangeWithMergeError: "表格範圍不能與合併儲存格重疊",
|
|
9
9
|
tableRangeWithOtherTableError: "表格範圍不能與其他表格重疊",
|
|
10
|
-
tableRangeSingleRowError: "
|
|
11
|
-
updateError: "
|
|
10
|
+
tableRangeSingleRowError: "表格範圍不能只有一列",
|
|
11
|
+
updateError: "不能將表格範圍設定為與原範圍不重疊且不在同一列的範圍",
|
|
12
12
|
tableStyle: "表格樣式",
|
|
13
13
|
defaultStyle: "預設樣式",
|
|
14
|
-
customStyle: "
|
|
15
|
-
customTooMore: "
|
|
16
|
-
setTheme: "
|
|
14
|
+
customStyle: "自訂樣式",
|
|
15
|
+
customTooMore: "自訂主題數量超出上限,請刪除一些不需要的主題後再新增",
|
|
16
|
+
setTheme: "設定表格主題",
|
|
17
17
|
removeTable: "刪除表格",
|
|
18
18
|
cancel: "取消",
|
|
19
19
|
confirm: "確認",
|
|
20
20
|
header: "頁首",
|
|
21
21
|
footer: "頁尾",
|
|
22
|
-
firstLine: "
|
|
23
|
-
secondLine: "
|
|
24
|
-
columnPrefix: "
|
|
22
|
+
firstLine: "第一列",
|
|
23
|
+
secondLine: "第二列",
|
|
24
|
+
columnPrefix: "欄",
|
|
25
25
|
tablePrefix: "表格",
|
|
26
|
-
tableNameError: "
|
|
26
|
+
tableNameError: "表格名稱不能包含空格、以數字開頭或與現有表格名稱重複",
|
|
27
27
|
columnMenu: {
|
|
28
28
|
"insert-left": "向左插入 1 個表格欄",
|
|
29
29
|
"insert-right": "向右插入 1 個表格欄",
|
|
@@ -35,13 +35,13 @@ const locale = { "sheets-table-ui": {
|
|
|
35
35
|
},
|
|
36
36
|
insert: {
|
|
37
37
|
main: "表格插入",
|
|
38
|
-
row: "
|
|
39
|
-
col: "
|
|
38
|
+
row: "插入表格列",
|
|
39
|
+
col: "插入表格欄"
|
|
40
40
|
},
|
|
41
41
|
remove: {
|
|
42
42
|
main: "表格刪除",
|
|
43
|
-
row: "
|
|
44
|
-
col: "
|
|
43
|
+
row: "刪除表格列",
|
|
44
|
+
col: "刪除表格欄"
|
|
45
45
|
},
|
|
46
46
|
condition: {
|
|
47
47
|
string: "文字",
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
const locale = { "sheets-table-ui": {
|
|
3
3
|
title: "表格",
|
|
4
4
|
selectRange: "選擇表格範圍",
|
|
5
|
-
rename: "
|
|
6
|
-
renamePlaceholder: "
|
|
5
|
+
rename: "重新命名表格",
|
|
6
|
+
renamePlaceholder: "輸入表格名稱",
|
|
7
7
|
updateRange: "更新表格範圍",
|
|
8
8
|
tableRangeWithMergeError: "表格範圍不能與合併儲存格重疊",
|
|
9
9
|
tableRangeWithOtherTableError: "表格範圍不能與其他表格重疊",
|
|
10
|
-
tableRangeSingleRowError: "
|
|
11
|
-
updateError: "
|
|
10
|
+
tableRangeSingleRowError: "表格範圍不能只有一列",
|
|
11
|
+
updateError: "不能將表格範圍設定為與原範圍不重疊且不在同一列的範圍",
|
|
12
12
|
tableStyle: "表格樣式",
|
|
13
13
|
defaultStyle: "預設樣式",
|
|
14
|
-
customStyle: "
|
|
15
|
-
customTooMore: "
|
|
16
|
-
setTheme: "
|
|
14
|
+
customStyle: "自訂樣式",
|
|
15
|
+
customTooMore: "自訂主題數量超出上限,請刪除一些不需要的主題後再新增",
|
|
16
|
+
setTheme: "設定表格主題",
|
|
17
17
|
removeTable: "刪除表格",
|
|
18
18
|
cancel: "取消",
|
|
19
19
|
confirm: "確認",
|
|
20
20
|
header: "頁首",
|
|
21
21
|
footer: "頁尾",
|
|
22
|
-
firstLine: "
|
|
23
|
-
secondLine: "
|
|
24
|
-
columnPrefix: "
|
|
22
|
+
firstLine: "第一列",
|
|
23
|
+
secondLine: "第二列",
|
|
24
|
+
columnPrefix: "欄",
|
|
25
25
|
tablePrefix: "表格",
|
|
26
|
-
tableNameError: "
|
|
26
|
+
tableNameError: "表格名稱不能包含空格、以數字開頭或與現有表格名稱重複",
|
|
27
27
|
columnMenu: {
|
|
28
28
|
"insert-left": "向左插入 1 個表格欄",
|
|
29
29
|
"insert-right": "向右插入 1 個表格欄",
|
|
@@ -35,13 +35,13 @@ const locale = { "sheets-table-ui": {
|
|
|
35
35
|
},
|
|
36
36
|
insert: {
|
|
37
37
|
main: "表格插入",
|
|
38
|
-
row: "
|
|
39
|
-
col: "
|
|
38
|
+
row: "插入表格列",
|
|
39
|
+
col: "插入表格欄"
|
|
40
40
|
},
|
|
41
41
|
remove: {
|
|
42
42
|
main: "表格刪除",
|
|
43
|
-
row: "
|
|
44
|
-
col: "
|
|
43
|
+
row: "刪除表格列",
|
|
44
|
+
col: "刪除表格欄"
|
|
45
45
|
},
|
|
46
46
|
condition: {
|
|
47
47
|
string: "文字",
|
package/lib/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AddSheetTableCommand, AddTableThemeCommand, DeleteSheetTableCommand, RemoveTableThemeCommand, SHEET_TABLE_CUSTOM_THEME_PREFIX, SetSheetTableCommand, SetSheetTableFilterCommand, SheetTableInsertColCommand, SheetTableInsertColumnAtCommand, SheetTableInsertRowAtCommand, SheetTableInsertRowCommand, SheetTableRemoveColCommand, SheetTableRemoveColumnAtCommand, SheetTableRemoveRowCommand, SheetTableService, SheetsTableController, SheetsTableSortStateEnum, TABLE_FILTER_EMPTY_VALUE, TableColumnFilterTypeEnum, TableConditionTypeEnum, TableDateCompareTypeEnum, TableManager, TableNumberCompareTypeEnum, TableStringCompareTypeEnum, UniverSheetsTablePlugin, customEmptyThemeWithBorderStyle, getExistingNamesSet, isConditionFilter, isManualTableFilter, processStyleWithBorderStyle, validateSheetTableName } from "@univerjs/sheets-table";
|
|
2
2
|
import { ComponentManager, ContextMenuGroup, ContextMenuPosition, IDialogService, IMenuManagerService, ISidebarService, IconManager, MenuItemType, RibbonDataGroup, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
|
|
3
3
|
import { ColorKit, CommandType, DependentOn, Disposable, ErrorService, ICommandService, IConfigService, IContextService, IPermissionService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, LocaleService, ObjectMatrix, Plugin, Rectangle, RxDisposable, UniverInstanceType, VerticalAlign, cellToRange, fromCallback, merge, registerDependencies, toDisposable, touchDependencies } from "@univerjs/core";
|
|
4
|
-
import { INTERCEPTOR_POINT, RangeThemeStyle, SelectRangeCommand, SetRangeThemeMutation, SetRangeValuesMutation, SetSelectionsOperation, SetVerticalTextAlignCommand, SheetInterceptorService, SheetRangeThemeModel, SheetsSelectionsService, WorkbookEditablePermission, WorkbookPermissionService, expandToContinuousRange, getPrimaryForRange, getSheetCommandTarget, isSingleCellSelection } from "@univerjs/sheets";
|
|
5
|
-
import { ExpandSelectionCommand, ISheetSelectionRenderService, MoveSelectionCommand, MoveSelectionEnterAndTabCommand, SHEET_VIEW_KEY, SelectAllCommand, SetScrollOperation, SetZoomRatioOperation, SheetCanvasPopManagerService, SheetSkeletonManagerService, getCoordByCell, getCurrentRangeDisable$, getTransformCoord } from "@univerjs/sheets-ui";
|
|
4
|
+
import { INTERCEPTOR_POINT, RangeThemeStyle, SelectRangeCommand, SetRangeThemeMutation, SetRangeValuesMutation, SetSelectionsOperation, SetVerticalTextAlignCommand, SheetInterceptorService, SheetRangeThemeModel, SheetsSelectionsService, UniverSheetsPlugin, WorkbookEditablePermission, WorkbookPermissionService, expandToContinuousRange, getPrimaryForRange, getSheetCommandTarget, isSingleCellSelection } from "@univerjs/sheets";
|
|
5
|
+
import { ExpandSelectionCommand, ISheetSelectionRenderService, MoveSelectionCommand, MoveSelectionEnterAndTabCommand, SHEET_VIEW_KEY, SelectAllCommand, SetScrollOperation, SetZoomRatioOperation, SheetCanvasPopManagerService, SheetSkeletonManagerService, UniverSheetsUIPlugin, getCoordByCell, getCurrentRangeDisable$, getTransformCoord } from "@univerjs/sheets-ui";
|
|
6
6
|
import { Subject, distinctUntilChanged, filter, map, merge as merge$1, of, startWith, switchMap, takeUntil } from "rxjs";
|
|
7
|
-
import { CURSOR_TYPE, DEFAULT_FONTFACE_PLANE, IRenderManagerService, Rect, Shape } from "@univerjs/engine-render";
|
|
7
|
+
import { CURSOR_TYPE, DEFAULT_FONTFACE_PLANE, IRenderManagerService, Rect, Shape, UniverRenderEnginePlugin } from "@univerjs/engine-render";
|
|
8
8
|
import { AscendingIcon, DeleteColumnDoubleIcon, DescendingIcon, DownIcon, LeftInsertColumnDoubleIcon, MoreDownIcon, RightInsertColumnDoubleIcon, TableIcon } from "@univerjs/icons";
|
|
9
9
|
import { Button, ButtonGroup, CascaderList, Checkbox, ColorPicker, DatePicker, DateRangePicker, Dropdown, Input, InputNumber, Segmented, Select, borderClassName, clsx, scrollbarClassName } from "@univerjs/design";
|
|
10
10
|
import { SortRangeCommand, SortType } from "@univerjs/sheets-sort";
|
|
@@ -49,14 +49,13 @@ const OpenTableSelectorOperation = {
|
|
|
49
49
|
type: CommandType.OPERATION,
|
|
50
50
|
id: "sheet.operation.open-table-selector",
|
|
51
51
|
async handler(accessor) {
|
|
52
|
-
var _lastSelection$range;
|
|
53
52
|
const univerInstanceService = accessor.get(IUniverInstanceService);
|
|
54
53
|
const commandService = accessor.get(ICommandService);
|
|
55
54
|
const target = getSheetCommandTarget(univerInstanceService);
|
|
56
55
|
if (!target) return false;
|
|
57
56
|
const { unitId, subUnitId, worksheet } = target;
|
|
58
57
|
const lastSelection = accessor.get(SheetsSelectionsService).getCurrentLastSelection();
|
|
59
|
-
const range = (
|
|
58
|
+
const range = (lastSelection === null || lastSelection === void 0 ? void 0 : lastSelection.range) ?? {
|
|
60
59
|
startRow: 0,
|
|
61
60
|
endRow: 0,
|
|
62
61
|
startColumn: 0,
|
|
@@ -95,7 +94,6 @@ async function openRangeSelector(accessor, unitId, subUnitId, range, tableId) {
|
|
|
95
94
|
id: TABLE_SELECTOR_DIALOG,
|
|
96
95
|
title: { title: localeService.t("sheets-table-ui.selectRange") },
|
|
97
96
|
draggable: true,
|
|
98
|
-
destroyOnClose: true,
|
|
99
97
|
mask: false,
|
|
100
98
|
maskClosable: false,
|
|
101
99
|
children: { label: {
|
|
@@ -249,10 +247,10 @@ const menuSchema = {
|
|
|
249
247
|
//#endregion
|
|
250
248
|
//#region package.json
|
|
251
249
|
var name = "@univerjs/sheets-table-ui";
|
|
252
|
-
var version = "1.0.0-
|
|
250
|
+
var version = "1.0.0-beta.0";
|
|
253
251
|
|
|
254
252
|
//#endregion
|
|
255
|
-
//#region \0@oxc-project+runtime@0.
|
|
253
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
|
|
256
254
|
function _typeof(o) {
|
|
257
255
|
"@babel/helpers - typeof";
|
|
258
256
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -263,7 +261,7 @@ function _typeof(o) {
|
|
|
263
261
|
}
|
|
264
262
|
|
|
265
263
|
//#endregion
|
|
266
|
-
//#region \0@oxc-project+runtime@0.
|
|
264
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
|
|
267
265
|
function toPrimitive(t, r) {
|
|
268
266
|
if ("object" != _typeof(t) || !t) return t;
|
|
269
267
|
var e = t[Symbol.toPrimitive];
|
|
@@ -276,14 +274,14 @@ function toPrimitive(t, r) {
|
|
|
276
274
|
}
|
|
277
275
|
|
|
278
276
|
//#endregion
|
|
279
|
-
//#region \0@oxc-project+runtime@0.
|
|
277
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
|
|
280
278
|
function toPropertyKey(t) {
|
|
281
279
|
var i = toPrimitive(t, "string");
|
|
282
280
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
283
281
|
}
|
|
284
282
|
|
|
285
283
|
//#endregion
|
|
286
|
-
//#region \0@oxc-project+runtime@0.
|
|
284
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
|
|
287
285
|
function _defineProperty(e, r, t) {
|
|
288
286
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
289
287
|
value: t,
|
|
@@ -294,7 +292,7 @@ function _defineProperty(e, r, t) {
|
|
|
294
292
|
}
|
|
295
293
|
|
|
296
294
|
//#endregion
|
|
297
|
-
//#region \0@oxc-project+runtime@0.
|
|
295
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorateParam.js
|
|
298
296
|
function __decorateParam(paramIndex, decorator) {
|
|
299
297
|
return function(target, key) {
|
|
300
298
|
decorator(target, key, paramIndex);
|
|
@@ -302,7 +300,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
302
300
|
}
|
|
303
301
|
|
|
304
302
|
//#endregion
|
|
305
|
-
//#region \0@oxc-project+runtime@0.
|
|
303
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorate.js
|
|
306
304
|
function __decorate(decorators, target, key, desc) {
|
|
307
305
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308
306
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -900,7 +898,7 @@ function getInitConditionInfo(tableFilter) {
|
|
|
900
898
|
//#endregion
|
|
901
899
|
//#region src/views/components/SheetTableConditionPanel.tsx
|
|
902
900
|
const SheetTableConditionPanel = (props) => {
|
|
903
|
-
var _conditionInfo$info$d, _conditionInfo$info$d2, _conditionInfo$info$
|
|
901
|
+
var _conditionInfo$info$d, _conditionInfo$info$d2, _conditionInfo$info$n, _conditionInfo$info$n3;
|
|
904
902
|
const { conditionInfo, onChange } = props;
|
|
905
903
|
const localeService = useDependency(LocaleService);
|
|
906
904
|
const [conditionVisible, setConditionVisible] = useState(false);
|
|
@@ -908,13 +906,12 @@ const SheetTableConditionPanel = (props) => {
|
|
|
908
906
|
const cascaderOptions = getCascaderListOptions(injector);
|
|
909
907
|
const handleConditionInfo = (info, type, compare) => {
|
|
910
908
|
onChange({
|
|
911
|
-
type: type
|
|
912
|
-
compare: compare
|
|
909
|
+
type: type ?? conditionInfo.type,
|
|
910
|
+
compare: compare ?? conditionInfo.compare,
|
|
913
911
|
info
|
|
914
912
|
});
|
|
915
913
|
};
|
|
916
914
|
const handleChange = (value) => {
|
|
917
|
-
var _ref;
|
|
918
915
|
const type = value[0];
|
|
919
916
|
const compare = value[1];
|
|
920
917
|
if (compare) setConditionVisible(false);
|
|
@@ -925,7 +922,7 @@ const SheetTableConditionPanel = (props) => {
|
|
|
925
922
|
else info.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()];
|
|
926
923
|
else if (type === TableConditionTypeEnum.Number) info.number = 0;
|
|
927
924
|
else if (type === TableConditionTypeEnum.String) info.string = "";
|
|
928
|
-
handleConditionInfo(info, value[0],
|
|
925
|
+
handleConditionInfo(info, value[0], value[1] ?? TableStringCompareTypeEnum.Equal);
|
|
929
926
|
};
|
|
930
927
|
const subComponentType = getSubComponentType(conditionInfo.type, conditionInfo.compare);
|
|
931
928
|
let selectType = "";
|
|
@@ -967,7 +964,7 @@ const SheetTableConditionPanel = (props) => {
|
|
|
967
964
|
id: "univer-table-date-picker-wrapper",
|
|
968
965
|
children: /* @__PURE__ */ jsx(DatePicker, {
|
|
969
966
|
className: "univer-w-full",
|
|
970
|
-
value:
|
|
967
|
+
value: conditionInfo.info.date ?? /* @__PURE__ */ new Date(),
|
|
971
968
|
onValueChange: (v) => handleConditionInfo({ date: v })
|
|
972
969
|
})
|
|
973
970
|
}),
|
|
@@ -975,7 +972,7 @@ const SheetTableConditionPanel = (props) => {
|
|
|
975
972
|
id: "univer-table-date-range-wrapper",
|
|
976
973
|
children: /* @__PURE__ */ jsx(DateRangePicker, {
|
|
977
974
|
className: "univer-w-full",
|
|
978
|
-
value: [(
|
|
975
|
+
value: [((_conditionInfo$info$d = conditionInfo.info.dateRange) === null || _conditionInfo$info$d === void 0 ? void 0 : _conditionInfo$info$d[0]) ?? /* @__PURE__ */ new Date(), ((_conditionInfo$info$d2 = conditionInfo.info.dateRange) === null || _conditionInfo$info$d2 === void 0 ? void 0 : _conditionInfo$info$d2[1]) ?? /* @__PURE__ */ new Date()],
|
|
979
976
|
onValueChange: (v) => {
|
|
980
977
|
if (v) handleConditionInfo({ dateRange: v });
|
|
981
978
|
else handleConditionInfo({});
|
|
@@ -1012,7 +1009,7 @@ const SheetTableConditionPanel = (props) => {
|
|
|
1012
1009
|
}),
|
|
1013
1010
|
!!(subComponentType === "Select") && /* @__PURE__ */ jsx(Select, {
|
|
1014
1011
|
className: "univer-w-full",
|
|
1015
|
-
value:
|
|
1012
|
+
value: conditionInfo.info.dateSelect ?? conditionDateOptions[0].value,
|
|
1016
1013
|
options: conditionDateOptions,
|
|
1017
1014
|
onChange: (v) => handleConditionInfo({ dateSelect: v })
|
|
1018
1015
|
})
|
|
@@ -1025,8 +1022,7 @@ const SheetTableConditionPanel = (props) => {
|
|
|
1025
1022
|
const getCheckedItemCount = (map, checkedItemSet) => {
|
|
1026
1023
|
let count = 0;
|
|
1027
1024
|
checkedItemSet.forEach((item) => {
|
|
1028
|
-
|
|
1029
|
-
count += (_map$get = map.get(item)) !== null && _map$get !== void 0 ? _map$get : 0;
|
|
1025
|
+
count += map.get(item) ?? 0;
|
|
1030
1026
|
});
|
|
1031
1027
|
return count;
|
|
1032
1028
|
};
|
|
@@ -1381,7 +1377,6 @@ function SheetTableFilterPanel() {
|
|
|
1381
1377
|
//#endregion
|
|
1382
1378
|
//#region src/views/components/SheetTableRenameDialog.tsx
|
|
1383
1379
|
function SheetTableRenameDialog(props) {
|
|
1384
|
-
var _table$getDisplayName;
|
|
1385
1380
|
const { unitId, tableId, onClose } = props;
|
|
1386
1381
|
const localeService = useDependency(LocaleService);
|
|
1387
1382
|
const commandService = useDependency(ICommandService);
|
|
@@ -1389,7 +1384,7 @@ function SheetTableRenameDialog(props) {
|
|
|
1389
1384
|
const univerInstanceService = useDependency(IUniverInstanceService);
|
|
1390
1385
|
const definedNamesService = useDependency(IDefinedNamesService);
|
|
1391
1386
|
const table = tableManager.getTableById(unitId, tableId);
|
|
1392
|
-
const [value, setValue] = useState((
|
|
1387
|
+
const [value, setValue] = useState((table === null || table === void 0 ? void 0 : table.getDisplayName()) ?? "");
|
|
1393
1388
|
const [error, setError] = useState("");
|
|
1394
1389
|
const existingNames = useMemo(() => {
|
|
1395
1390
|
const names = getExistingNamesSet(unitId, {
|
|
@@ -1577,7 +1572,7 @@ SheetTableThemeUIController = __decorate([__decorateParam(0, Inject(ICommandServ
|
|
|
1577
1572
|
//#endregion
|
|
1578
1573
|
//#region src/views/components/SheetTableThemePanel.tsx
|
|
1579
1574
|
const SheetTableThemePanel = (props) => {
|
|
1580
|
-
var _customStyle$getHeade, _customStyle$
|
|
1575
|
+
var _customStyle$getHeade, _customStyle$getFirst, _customStyle$getSecon, _customStyle$getLastR;
|
|
1581
1576
|
const { unitId, subUnitId, tableId } = props;
|
|
1582
1577
|
const commandService = useDependency(ICommandService);
|
|
1583
1578
|
const localeService = useDependency(LocaleService);
|
|
@@ -1602,10 +1597,10 @@ const SheetTableThemePanel = (props) => {
|
|
|
1602
1597
|
const customSelected = customRangeThemes.find((item) => item === selectedTheme);
|
|
1603
1598
|
const customStyleName = customSelected || customRangeThemes[0];
|
|
1604
1599
|
const customStyle = rangeThemeModel.getCustomRangeThemeStyle(unitId, customStyleName);
|
|
1605
|
-
const headerBg = (
|
|
1606
|
-
const firstRowBg = (
|
|
1607
|
-
const secondRowBg = (
|
|
1608
|
-
const lastRowBg = (
|
|
1600
|
+
const headerBg = (customStyle === null || customStyle === void 0 || (_customStyle$getHeade = customStyle.getHeaderRowStyle()) === null || _customStyle$getHeade === void 0 || (_customStyle$getHeade = _customStyle$getHeade.bg) === null || _customStyle$getHeade === void 0 ? void 0 : _customStyle$getHeade.rgb) ?? "rgb(255, 255, 255)";
|
|
1601
|
+
const firstRowBg = (customStyle === null || customStyle === void 0 || (_customStyle$getFirst = customStyle.getFirstRowStyle()) === null || _customStyle$getFirst === void 0 || (_customStyle$getFirst = _customStyle$getFirst.bg) === null || _customStyle$getFirst === void 0 ? void 0 : _customStyle$getFirst.rgb) ?? "rgb(255, 255, 255)";
|
|
1602
|
+
const secondRowBg = (customStyle === null || customStyle === void 0 || (_customStyle$getSecon = customStyle.getSecondRowStyle()) === null || _customStyle$getSecon === void 0 || (_customStyle$getSecon = _customStyle$getSecon.bg) === null || _customStyle$getSecon === void 0 ? void 0 : _customStyle$getSecon.rgb) ?? "rgb(255, 255, 255)";
|
|
1603
|
+
const lastRowBg = (customStyle === null || customStyle === void 0 || (_customStyle$getLastR = customStyle.getLastRowStyle()) === null || _customStyle$getLastR === void 0 || (_customStyle$getLastR = _customStyle$getLastR.bg) === null || _customStyle$getLastR === void 0 ? void 0 : _customStyle$getLastR.rgb) ?? "rgb(255, 255, 255)";
|
|
1609
1604
|
const [hoverCustomId, setHoverCustomId] = useState(null);
|
|
1610
1605
|
const handleThemeChange = (theme) => {
|
|
1611
1606
|
commandService.executeCommand(SetSheetTableCommand.id, {
|
|
@@ -1712,28 +1707,28 @@ const SheetTableThemePanel = (props) => {
|
|
|
1712
1707
|
/* @__PURE__ */ jsx("div", {
|
|
1713
1708
|
className: "univer-box-border univer-h-2.5",
|
|
1714
1709
|
style: {
|
|
1715
|
-
background: headerRowBg
|
|
1710
|
+
background: headerRowBg ?? "none",
|
|
1716
1711
|
border: `${headerRowBg ? TABLE_BORDER_NONE : TABLE_BORDER_DEFAULT}`
|
|
1717
1712
|
}
|
|
1718
1713
|
}),
|
|
1719
1714
|
/* @__PURE__ */ jsx("div", {
|
|
1720
1715
|
className: "univer-box-border univer-h-2.5",
|
|
1721
1716
|
style: {
|
|
1722
|
-
background: firstRowBg
|
|
1717
|
+
background: firstRowBg ?? "none",
|
|
1723
1718
|
border: `${firstRowBg ? TABLE_BORDER_NONE : TABLE_BORDER_DEFAULT}`
|
|
1724
1719
|
}
|
|
1725
1720
|
}),
|
|
1726
1721
|
/* @__PURE__ */ jsx("div", {
|
|
1727
1722
|
className: "univer-box-border univer-h-2.5",
|
|
1728
1723
|
style: {
|
|
1729
|
-
background: secondRowBg
|
|
1724
|
+
background: secondRowBg ?? "none",
|
|
1730
1725
|
border: `${secondRowBg ? TABLE_BORDER_NONE : TABLE_BORDER_DEFAULT}`
|
|
1731
1726
|
}
|
|
1732
1727
|
}),
|
|
1733
1728
|
/* @__PURE__ */ jsx("div", {
|
|
1734
1729
|
className: "univer-box-border univer-h-2.5",
|
|
1735
1730
|
style: {
|
|
1736
|
-
background: lastRowBg
|
|
1731
|
+
background: lastRowBg ?? "none",
|
|
1737
1732
|
border: `${lastRowBg ? TABLE_BORDER_NONE : TABLE_BORDER_DEFAULT}`
|
|
1738
1733
|
}
|
|
1739
1734
|
}),
|
|
@@ -2056,12 +2051,11 @@ var SheetTableControlsShape = class extends Shape {
|
|
|
2056
2051
|
ctx.textBaseline = "middle";
|
|
2057
2052
|
for (const item of this._items) this._drawAnchor(ctx, skeleton, item);
|
|
2058
2053
|
if (this._hoveredInsertRegion) {
|
|
2059
|
-
var _item$fill;
|
|
2060
2054
|
const item = this._items.find((renderItem) => {
|
|
2061
2055
|
var _this$_hoveredInsertR;
|
|
2062
2056
|
return renderItem.tableId === ((_this$_hoveredInsertR = this._hoveredInsertRegion) === null || _this$_hoveredInsertR === void 0 ? void 0 : _this$_hoveredInsertR.tableId);
|
|
2063
2057
|
});
|
|
2064
|
-
this._drawInsertButton(ctx, this._hoveredInsertRegion, (
|
|
2058
|
+
this._drawInsertButton(ctx, this._hoveredInsertRegion, (item === null || item === void 0 ? void 0 : item.fill) ?? "#355bb7");
|
|
2065
2059
|
this._regions.push(this._hoveredInsertRegion);
|
|
2066
2060
|
}
|
|
2067
2061
|
ctx.restore();
|
|
@@ -2255,7 +2249,7 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
|
|
|
2255
2249
|
this._refresh();
|
|
2256
2250
|
}
|
|
2257
2251
|
_initShape() {
|
|
2258
|
-
var _this$_context$compon
|
|
2252
|
+
var _this$_context$compon;
|
|
2259
2253
|
this._context.scene.addObjects([this._shape], TABLE_CONTROLS_LAYER_INDEX);
|
|
2260
2254
|
this.disposeWithMe(toDisposable(() => {
|
|
2261
2255
|
this._context.scene.removeObjects([this._shape]);
|
|
@@ -2269,11 +2263,11 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
|
|
|
2269
2263
|
this.disposeWithMe(this._shape.onPointerDown$.subscribeEvent((evt, state) => {
|
|
2270
2264
|
this._handlePointerDown(evt, state);
|
|
2271
2265
|
}));
|
|
2272
|
-
this.disposeWithMe((_this$_context$compon =
|
|
2266
|
+
this.disposeWithMe(((_this$_context$compon = this._context.components.get(SHEET_VIEW_KEY.MAIN)) === null || _this$_context$compon === void 0 ? void 0 : _this$_context$compon.onPointerMove$.subscribeEvent((evt) => {
|
|
2273
2267
|
const point = this._getLocalPoint(evt);
|
|
2274
2268
|
const insertRegion = this._getInsertRegionFromPoint(point.x, point.y);
|
|
2275
2269
|
this._shape.setHoveredInsertRegion(insertRegion);
|
|
2276
|
-
}))
|
|
2270
|
+
})) ?? toDisposable(() => {}));
|
|
2277
2271
|
}
|
|
2278
2272
|
_initRefresh() {
|
|
2279
2273
|
const commandExecuted$ = fromCallback(this._commandService.onCommandExecuted.bind(this._commandService)).pipe(filter(([command]) => {
|
|
@@ -2313,14 +2307,14 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
|
|
|
2313
2307
|
const unitId = this._context.unit.getUnitId();
|
|
2314
2308
|
const subUnitId = worksheet.getSheetId();
|
|
2315
2309
|
const items = this._tableManager.getTablesBySubunitId(unitId, subUnitId).map((table) => {
|
|
2316
|
-
var _rangeTheme$getHeader, _rangeTheme$getHeader2
|
|
2310
|
+
var _rangeTheme$getHeader, _rangeTheme$getHeader2;
|
|
2317
2311
|
const rangeTheme = this._rangeThemeModel.getRangeThemeStyle(unitId, table.getTableStyleId());
|
|
2318
2312
|
return {
|
|
2319
2313
|
tableId: table.getId(),
|
|
2320
2314
|
tableName: table.getDisplayName(),
|
|
2321
2315
|
range: table.getRange(),
|
|
2322
|
-
fill: (
|
|
2323
|
-
text: (
|
|
2316
|
+
fill: (rangeTheme === null || rangeTheme === void 0 || (_rangeTheme$getHeader = rangeTheme.getHeaderRowStyle()) === null || _rangeTheme$getHeader === void 0 || (_rangeTheme$getHeader = _rangeTheme$getHeader.bg) === null || _rangeTheme$getHeader === void 0 ? void 0 : _rangeTheme$getHeader.rgb) ?? "rgb(53,91,183)",
|
|
2317
|
+
text: (rangeTheme === null || rangeTheme === void 0 || (_rangeTheme$getHeader2 = rangeTheme.getHeaderRowStyle()) === null || _rangeTheme$getHeader2 === void 0 || (_rangeTheme$getHeader2 = _rangeTheme$getHeader2.cl) === null || _rangeTheme$getHeader2 === void 0 ? void 0 : _rangeTheme$getHeader2.rgb) ?? "rgb(255,255,255)"
|
|
2324
2318
|
};
|
|
2325
2319
|
});
|
|
2326
2320
|
this._shape.setItems(items);
|
|
@@ -2337,7 +2331,7 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
|
|
|
2337
2331
|
const point = this._getLocalPoint(evt);
|
|
2338
2332
|
const hit = this._shape.hitTest(point.x, point.y);
|
|
2339
2333
|
const insertRegion = this._isInsertHit(hit) ? hit : hit ? null : this._getInsertRegionFromPoint(point.x, point.y);
|
|
2340
|
-
const activeHit = hit
|
|
2334
|
+
const activeHit = hit ?? insertRegion;
|
|
2341
2335
|
this._shape.setHoveredRegion(this._isInsertHit(hit) ? null : hit);
|
|
2342
2336
|
this._shape.setHoveredInsertRegion(insertRegion);
|
|
2343
2337
|
if (activeHit) {
|
|
@@ -2355,10 +2349,9 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
|
|
|
2355
2349
|
this._context.scene.resetCursor();
|
|
2356
2350
|
}
|
|
2357
2351
|
_handlePointerDown(evt, state) {
|
|
2358
|
-
var _this$_shape$hitTest;
|
|
2359
2352
|
if (evt.button === 2) return;
|
|
2360
2353
|
const point = this._getLocalPoint(evt);
|
|
2361
|
-
const hit =
|
|
2354
|
+
const hit = this._shape.hitTest(point.x, point.y) ?? this._getInsertRegionFromPoint(point.x, point.y);
|
|
2362
2355
|
if (!hit) {
|
|
2363
2356
|
this._closeFloatingControls();
|
|
2364
2357
|
return;
|
|
@@ -2425,7 +2418,6 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
|
|
|
2425
2418
|
id: SHEET_TABLE_RENAME_DIALOG_ID,
|
|
2426
2419
|
title: { title: this._localeService.t("sheets-table-ui.rename") },
|
|
2427
2420
|
draggable: true,
|
|
2428
|
-
destroyOnClose: true,
|
|
2429
2421
|
mask: true,
|
|
2430
2422
|
children: { label: {
|
|
2431
2423
|
name: SHEET_TABLE_RENAME_DIALOG,
|
|
@@ -2516,12 +2508,11 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
|
|
|
2516
2508
|
const previousTopGap = rowGaps[TABLE_CONTROL_GAP_ROW] ? { ...rowGaps[TABLE_CONTROL_GAP_ROW] } : null;
|
|
2517
2509
|
let shouldSync = false;
|
|
2518
2510
|
if (hasTopTable) {
|
|
2519
|
-
var _baseGap$size;
|
|
2520
2511
|
if (!this._topGapBaseBySkeleton.has(skeleton)) this._topGapBaseBySkeleton.set(skeleton, rowGaps[TABLE_CONTROL_GAP_ROW] ? { ...rowGaps[TABLE_CONTROL_GAP_ROW] } : null);
|
|
2521
2512
|
const baseGap = this._topGapBaseBySkeleton.get(skeleton);
|
|
2522
2513
|
rowGaps[TABLE_CONTROL_GAP_ROW] = {
|
|
2523
|
-
...baseGap
|
|
2524
|
-
size: ((
|
|
2514
|
+
...baseGap ?? rowGaps[TABLE_CONTROL_GAP_ROW],
|
|
2515
|
+
size: ((baseGap === null || baseGap === void 0 ? void 0 : baseGap.size) ?? 0) + 32
|
|
2525
2516
|
};
|
|
2526
2517
|
shouldSync = true;
|
|
2527
2518
|
} else if (this._topGapBaseBySkeleton.has(skeleton)) {
|
|
@@ -2742,12 +2733,12 @@ let SheetsTableFilterButtonRenderController = class SheetsTableFilterButtonRende
|
|
|
2742
2733
|
const worksheet = workbook.getSheetBySheetId(worksheetId);
|
|
2743
2734
|
if (!worksheet) return;
|
|
2744
2735
|
for (const { range, states, tableId } of tableFilterRanges) {
|
|
2745
|
-
var _this$_rangeThemeMode, _headerStyle$cl
|
|
2736
|
+
var _this$_rangeThemeMode, _headerStyle$cl, _headerStyle$bg;
|
|
2746
2737
|
const { startRow, startColumn, endColumn } = range;
|
|
2747
2738
|
const table = this._tableManager.getTableById(unitId, tableId);
|
|
2748
2739
|
const headerStyle = table ? (_this$_rangeThemeMode = this._rangeThemeModel.getRangeThemeStyle(unitId, table.getTableStyleId())) === null || _this$_rangeThemeMode === void 0 ? void 0 : _this$_rangeThemeMode.getHeaderRowStyle() : null;
|
|
2749
|
-
const iconColor = (
|
|
2750
|
-
const hoverIconColor = (
|
|
2740
|
+
const iconColor = (headerStyle === null || headerStyle === void 0 || (_headerStyle$cl = headerStyle.cl) === null || _headerStyle$cl === void 0 ? void 0 : _headerStyle$cl.rgb) ?? "#fff";
|
|
2741
|
+
const hoverIconColor = (headerStyle === null || headerStyle === void 0 || (_headerStyle$bg = headerStyle.bg) === null || _headerStyle$bg === void 0 ? void 0 : _headerStyle$bg.rgb) ?? "#202124";
|
|
2751
2742
|
this._interceptCellContent(unitId, worksheetId, range);
|
|
2752
2743
|
for (let col = startColumn; col <= endColumn; col++) {
|
|
2753
2744
|
const key = `sheets-table-filter-button-${startRow}-${col}`;
|
|
@@ -3018,7 +3009,7 @@ _defineProperty(UniverSheetsTableUIPlugin, "packageName", name);
|
|
|
3018
3009
|
_defineProperty(UniverSheetsTableUIPlugin, "version", version);
|
|
3019
3010
|
_defineProperty(UniverSheetsTableUIPlugin, "type", UniverInstanceType.UNIVER_SHEET);
|
|
3020
3011
|
UniverSheetsTableUIPlugin = __decorate([
|
|
3021
|
-
DependentOn(UniverSheetsTablePlugin),
|
|
3012
|
+
DependentOn(UniverRenderEnginePlugin, UniverSheetsPlugin, UniverSheetsTablePlugin, UniverSheetsUIPlugin),
|
|
3022
3013
|
__decorateParam(1, Inject(Injector)),
|
|
3023
3014
|
__decorateParam(2, Inject(ICommandService)),
|
|
3024
3015
|
__decorateParam(3, IConfigService),
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -3,7 +3,7 @@ const locale = { "sheets-table-ui": {
|
|
|
3
3
|
title: "Taula",
|
|
4
4
|
selectRange: "Selecciona el rang de la taula",
|
|
5
5
|
rename: "Reanomena la taula",
|
|
6
|
-
renamePlaceholder: "
|
|
6
|
+
renamePlaceholder: "Introdueix el nom de la taula",
|
|
7
7
|
updateRange: "Actualitza el rang de la taula",
|
|
8
8
|
tableRangeWithMergeError: "El rang de la taula no es pot superposar amb cel·les combinades",
|
|
9
9
|
tableRangeWithOtherTableError: "El rang de la taula no es pot superposar amb altres taules",
|
|
@@ -25,9 +25,9 @@ const locale = { "sheets-table-ui": {
|
|
|
25
25
|
tablePrefix: "Taula",
|
|
26
26
|
tableNameError: "El nom de la taula no pot contenir espais, no pot començar amb un número i no pot ser idèntic a un nom de taula existent",
|
|
27
27
|
columnMenu: {
|
|
28
|
-
"insert-left": "
|
|
29
|
-
"insert-right": "
|
|
30
|
-
delete: "
|
|
28
|
+
"insert-left": "Insereix una columna de taula a l’esquerra",
|
|
29
|
+
"insert-right": "Insereix una columna de taula a la dreta",
|
|
30
|
+
delete: "Suprimeix la columna de la taula"
|
|
31
31
|
},
|
|
32
32
|
sort: {
|
|
33
33
|
"sort-asc": "Ascendent",
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -3,7 +3,7 @@ const locale = { "sheets-table-ui": {
|
|
|
3
3
|
title: "Tabla",
|
|
4
4
|
selectRange: "Seleccionar rango de tabla",
|
|
5
5
|
rename: "Renombrar tabla",
|
|
6
|
-
renamePlaceholder: "
|
|
6
|
+
renamePlaceholder: "Introduce el nombre de la tabla",
|
|
7
7
|
updateRange: "Actualizar rango de tabla",
|
|
8
8
|
tableRangeWithMergeError: "El rango de la tabla no puede superponerse con celdas combinadas",
|
|
9
9
|
tableRangeWithOtherTableError: "El rango de la tabla no puede superponerse con otras tablas",
|
|
@@ -25,9 +25,9 @@ const locale = { "sheets-table-ui": {
|
|
|
25
25
|
tablePrefix: "Tabla",
|
|
26
26
|
tableNameError: "El nombre de la tabla no puede contener espacios, no puede comenzar con un número y no puede ser idéntico a un nombre de tabla existente",
|
|
27
27
|
columnMenu: {
|
|
28
|
-
"insert-left": "
|
|
29
|
-
"insert-right": "
|
|
30
|
-
delete: "
|
|
28
|
+
"insert-left": "Insertar 1 columna a la izquierda",
|
|
29
|
+
"insert-right": "Insertar 1 columna a la derecha",
|
|
30
|
+
delete: "Eliminar columna de la tabla"
|
|
31
31
|
},
|
|
32
32
|
sort: {
|
|
33
33
|
"sort-asc": "Ascendente",
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -3,7 +3,7 @@ const locale = { "sheets-table-ui": {
|
|
|
3
3
|
title: "جدول",
|
|
4
4
|
selectRange: "انتخاب محدوده جدول",
|
|
5
5
|
rename: "تغییر نام جدول",
|
|
6
|
-
renamePlaceholder: "
|
|
6
|
+
renamePlaceholder: "نام جدول را وارد کنید",
|
|
7
7
|
updateRange: "بهروزرسانی محدوده جدول",
|
|
8
8
|
tableRangeWithMergeError: "محدوده جدول نمیتواند با سلولهای ادغامشده همپوشانی داشته باشد",
|
|
9
9
|
tableRangeWithOtherTableError: "محدوده جدول نمیتواند با جداول دیگر همپوشانی داشته باشد",
|
|
@@ -25,9 +25,9 @@ const locale = { "sheets-table-ui": {
|
|
|
25
25
|
tablePrefix: "جدول",
|
|
26
26
|
tableNameError: "لا يمكن أن يحتوي اسم الجدول على مسافات، ولا يمكن أن يبدأ برقم، ولا يمكن أن يتكرر مع أسماء الجداول الموجودة",
|
|
27
27
|
columnMenu: {
|
|
28
|
-
"insert-left": "
|
|
29
|
-
"insert-right": "
|
|
30
|
-
delete: "
|
|
28
|
+
"insert-left": "درج ۱ ستون جدول در سمت چپ",
|
|
29
|
+
"insert-right": "درج ۱ ستون جدول در سمت راست",
|
|
30
|
+
delete: "حذف ستون جدول"
|
|
31
31
|
},
|
|
32
32
|
sort: {
|
|
33
33
|
"sort-asc": "صعودی",
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -3,7 +3,7 @@ const locale = { "sheets-table-ui": {
|
|
|
3
3
|
title: "Tableau",
|
|
4
4
|
selectRange: "Sélectionner la plage du tableau",
|
|
5
5
|
rename: "Renommer le tableau",
|
|
6
|
-
renamePlaceholder: "
|
|
6
|
+
renamePlaceholder: "Saisir le nom du tableau",
|
|
7
7
|
updateRange: "Mettre à jour la plage du tableau",
|
|
8
8
|
tableRangeWithMergeError: "La plage du tableau ne peut pas chevaucher des cellules fusionnées",
|
|
9
9
|
tableRangeWithOtherTableError: "La plage du tableau ne peut pas chevaucher d'autres tableaux",
|
|
@@ -25,9 +25,9 @@ const locale = { "sheets-table-ui": {
|
|
|
25
25
|
tablePrefix: "Tableau",
|
|
26
26
|
tableNameError: "Le nom du tableau ne peut pas contenir d'espaces, ne peut pas commencer par un chiffre et ne peut pas être identique à un nom de tableau existant",
|
|
27
27
|
columnMenu: {
|
|
28
|
-
"insert-left": "
|
|
29
|
-
"insert-right": "
|
|
30
|
-
delete: "
|
|
28
|
+
"insert-left": "Insérer 1 colonne à gauche",
|
|
29
|
+
"insert-right": "Insérer 1 colonne à droite",
|
|
30
|
+
delete: "Supprimer la colonne du tableau"
|
|
31
31
|
},
|
|
32
32
|
sort: {
|
|
33
33
|
"sort-asc": "Croissant",
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -3,7 +3,7 @@ const locale = { "sheets-table-ui": {
|
|
|
3
3
|
title: "表",
|
|
4
4
|
selectRange: "表の範囲を選択",
|
|
5
5
|
rename: "表の名前を変更",
|
|
6
|
-
renamePlaceholder: "
|
|
6
|
+
renamePlaceholder: "テーブル名を入力",
|
|
7
7
|
updateRange: "表の範囲を更新",
|
|
8
8
|
tableRangeWithMergeError: "表の範囲は結合セルと重複できません",
|
|
9
9
|
tableRangeWithOtherTableError: "表の範囲は他の表と重複できません",
|
|
@@ -25,9 +25,9 @@ const locale = { "sheets-table-ui": {
|
|
|
25
25
|
tablePrefix: "表",
|
|
26
26
|
tableNameError: "表の名前は空白を含めることはできず、数字で始めることはできず、既存の表名と重複できません",
|
|
27
27
|
columnMenu: {
|
|
28
|
-
"insert-left": "
|
|
29
|
-
"insert-right": "
|
|
30
|
-
delete: "
|
|
28
|
+
"insert-left": "左に 1 列挿入",
|
|
29
|
+
"insert-right": "右に 1 列挿入",
|
|
30
|
+
delete: "列を削除"
|
|
31
31
|
},
|
|
32
32
|
sort: {
|
|
33
33
|
"sort-asc": "昇順",
|