@univerjs-pro/sheets-pivot-ui 0.4.2 → 0.5.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.
Files changed (56) hide show
  1. package/README.md +33 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -0
  4. package/lib/cjs/locale/fa-IR.js +1 -0
  5. package/lib/cjs/locale/ru-RU.js +1 -0
  6. package/lib/cjs/locale/vi-VN.js +1 -0
  7. package/lib/cjs/locale/zh-CN.js +1 -0
  8. package/lib/cjs/locale/zh-TW.js +1 -0
  9. package/lib/es/index.js +1 -1
  10. package/lib/es/locale/en-US.js +1 -0
  11. package/lib/es/locale/fa-IR.js +1 -0
  12. package/lib/es/locale/ru-RU.js +1 -0
  13. package/lib/es/locale/vi-VN.js +1 -0
  14. package/lib/es/locale/zh-CN.js +1 -0
  15. package/lib/es/locale/zh-TW.js +1 -0
  16. package/lib/types/const.d.ts +0 -1
  17. package/lib/types/controllers/sheets-pivot-confirm.controller.d.ts +1 -3
  18. package/lib/types/controllers/sheets-pivot-intercept-ui.controller.d.ts +16 -0
  19. package/lib/types/controllers/sheets-pivot-render.controller.d.ts +1 -1
  20. package/lib/types/index.d.ts +0 -10
  21. package/lib/types/type.d.ts +2 -72
  22. package/lib/types/util.d.ts +1 -4
  23. package/lib/types/views/components/PivotFilterPanel.d.ts +1 -1
  24. package/lib/types/views/components/PivotSourceList.d.ts +1 -1
  25. package/lib/types/views/components/util.d.ts +1 -1
  26. package/lib/types/views/widgets/pivot-button.shape.d.ts +2 -2
  27. package/lib/umd/index.js +1 -1
  28. package/lib/umd/locale/en-US.js +1 -0
  29. package/lib/umd/locale/fa-IR.js +1 -0
  30. package/lib/umd/locale/ru-RU.js +1 -0
  31. package/lib/umd/locale/vi-VN.js +1 -0
  32. package/lib/umd/locale/zh-CN.js +1 -0
  33. package/lib/umd/locale/zh-TW.js +1 -0
  34. package/package.json +38 -29
  35. package/lib/locale/en-US.json +0 -100
  36. package/lib/locale/fa-IR.json +0 -100
  37. package/lib/locale/ru-RU.json +0 -100
  38. package/lib/locale/vi-VN.json +0 -100
  39. package/lib/locale/zh-CN.json +0 -100
  40. package/lib/locale/zh-TW.json +0 -100
  41. package/lib/types/commands/commands/add-pivot-field.command.d.ts +0 -3
  42. package/lib/types/commands/commands/add-pivot-table.command.d.ts +0 -3
  43. package/lib/types/commands/commands/move-pivot-field.command.d.ts +0 -3
  44. package/lib/types/commands/commands/pivot-drill-down.command.d.ts +0 -3
  45. package/lib/types/commands/commands/remove-pivot-field.command.d.ts +0 -3
  46. package/lib/types/commands/commands/set-pivot-collapse.command.d.ts +0 -3
  47. package/lib/types/commands/commands/set-pivot-filter.command.d.ts +0 -3
  48. package/lib/types/commands/commands/set-pivot-sort.command.d.ts +0 -3
  49. package/lib/types/commands/commands/update-pivot-setting.command.d.ts +0 -3
  50. package/lib/types/commands/commands/update-pivot-source.command.d.ts +0 -3
  51. package/lib/types/commands/commands/update-value-position.command.d.ts +0 -3
  52. package/lib/types/controllers/sheets-pivot-clear.controller.d.ts +0 -12
  53. package/lib/types/controllers/sheets-pivot-permission.controller.d.ts +0 -7
  54. package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +0 -22
  55. package/lib/types/controllers/sheets-pivot-remove-sheet.controller.d.ts +0 -9
  56. package/lib/types/services/sheets-pivot-ui.service.d.ts +0 -45
@@ -1,100 +0,0 @@
1
- {
2
- "sheets-pivot-panel": {
3
- "title": "Bảng Pivot",
4
- "sourceRangeLabel": "Nguồn dữ liệu",
5
- "sourceRangePlaceholder": "Nguồn dữ liệu đã được cập nhật",
6
- "sourceFieldTile": "Trường dữ liệu",
7
- "sourceFieldDescription": "Kéo trường vào các khu vực dưới đây",
8
- "filter": "Lọc",
9
- "column": "Cột",
10
- "row": "Hàng",
11
- "value": "Giá trị",
12
- "multipleValue": "ΣGiá trị",
13
- "filterDesc": "Kéo trường vào để lọc dữ liệu",
14
- "columnDesc": "Kéo trường để điền vào cột",
15
- "rowDesc": "Kéo trường để điền vào hàng",
16
- "valueDesc": "Kết quả tính toán của hàng và cột",
17
- "addToFilter": "Thêm vào Lọc",
18
- "addToColumn": "Thêm vào Cột",
19
- "addToRow": "Thêm vào Hàng",
20
- "addToValue": "Thêm vào Giá trị",
21
- "removeField": "Xóa trường",
22
- "filterField": "Lọc trường",
23
- "fieldSettings": "Cài đặt trường",
24
- "moveToRow": "Chuyển đến Hàng",
25
- "moveToColumn": "Chuyển đến Cột",
26
- "dialog": {
27
- "fieldName": "Tên trường",
28
- "sourceName": "Tên trường nguồn:",
29
- "summarizeBy": "Tóm tắt theo",
30
- "format": "Định dạng số",
31
- "ok": "OK",
32
- "cancel": "Hủy bỏ",
33
- "filter": {
34
- "ascending": "Tăng dần",
35
- "descending": "Giảm dần",
36
- "selectAll": "Chọn tất cả",
37
- "clearFilter": "Xóa lọc",
38
- "blank": "(Trống)",
39
- "cancel": "Hủy bỏ",
40
- "confirm": "Xác nhận"
41
- },
42
- "numfmt": {
43
- "general": "Chung",
44
- "accounting": "Kế toán",
45
- "currency": "Tiền tệ",
46
- "date": "Ngày",
47
- "thousandthPercentile": "Phân vị nghìn",
48
- "fieldSetting": "Cài đặt trường",
49
- "formatTypes": "Loại định dạng",
50
- "confirm": "Xác nhận",
51
- "cancel": "Hủy bỏ",
52
- "generalDesc": "Định dạng chung không bao gồm bất kỳ định dạng số cụ thể nào.",
53
- "accountingDesc": "Định dạng số kế toán có thể căn chỉnh biểu tượng tiền tệ và dấu thập phân trong một cột.",
54
- "currencyDesc": "Định dạng tiền tệ dùng để biểu diễn các giá trị tiền tệ chung, định dạng kế toán có thể căn chỉnh dấu thập phân trong một cột số.",
55
- "dateDesc": "Định dạng ngày sẽ hiển thị giá trị ngày từ một chuỗi số ngày và thời gian.",
56
- "thousandthPercentileDesc": "Định dạng phân vị nghìn dùng để biểu diễn số chung, định dạng tiền tệ và kế toán cung cấp định dạng đặc biệt để tính toán giá trị tiền tệ.",
57
- "decimalPlaces": "Số thập phân",
58
- "currencyTypes": "Loại tiền tệ",
59
- "negativeNumberTypes": "Loại số âm",
60
- "dateTypes": "Loại ngày"
61
- },
62
- "source": {
63
- "insertPivotTable": "Chèn Bảng Pivot",
64
- "sourceData": "Phạm vi nguồn dữ liệu",
65
- "position": "Vị trí đặt Bảng Pivot",
66
- "newSheet": "Bảng mới",
67
- "existingSheet": "Bảng hiện có",
68
- "intersect": "Không thể chồng lên dữ liệu nguồn"
69
- }
70
- },
71
- "subtotal": {
72
- "average": "Trung bình",
73
- "count": "Đếm",
74
- "countNums": "Đếm số",
75
- "max": "Giá trị lớn nhất",
76
- "min": "Giá trị nhỏ nhất",
77
- "product": "Tích",
78
- "stdDev": "Độ lệch chuẩn",
79
- "stdDevp": "Độ lệch chuẩn tổng thể",
80
- "sum": "Tổng",
81
- "var": "Phương sai",
82
- "varp": "Phương sai tổng thể"
83
- },
84
- "subTotalText": "Tổng phụ",
85
- "grandTotalText": "Tổng cộng",
86
- "perform": {
87
- "info": "Khu vực mục tiêu đã có dữ liệu, thao tác này sẽ ghi đè dữ liệu hiện có. Bạn có muốn tiếp tục không?",
88
- "confirm": "Xác nhận",
89
- "cancel": "Hủy bỏ",
90
- "rowColError": "Không thể thực hiện thay đổi cho ô đã chọn vì nó sẽ ảnh hưởng đến bảng Pivot. Vui lòng sử dụng danh sách trường để thay đổi báo cáo. Nếu bạn đang cố chèn hoặc xóa ô, hãy di chuyển bảng Pivot rồi thử lại."
91
- },
92
- "msg": {
93
- "emptySourceRange": "Vui lòng chọn nguồn dữ liệu",
94
- "invalidSize": "Kích thước dữ liệu không hợp lệ",
95
- "mergeCellError": "Không thể chèn ô đã gộp vào bảng Pivot",
96
- "editCellError": "Không thể chỉnh sửa ô trong bảng Pivot",
97
- "permissionError": "Không thể chỉnh sửa bảng Pivot trong bảng đã được bảo vệ"
98
- }
99
- }
100
- }
@@ -1,100 +0,0 @@
1
- {
2
- "sheets-pivot-panel": {
3
- "title": "数据透视表",
4
- "sourceRangeLabel": "数据源",
5
- "sourceRangePlaceholder": "数据源已经更新",
6
- "sourceFieldTile": "数据源字段",
7
- "sourceFieldDescription": "拖动字段到以下区域",
8
- "filter": "筛选",
9
- "column": "列",
10
- "row": "行",
11
- "value": "值",
12
- "multipleValue": "Σ数值",
13
- "filterDesc": "拖入字段筛选数据",
14
- "columnDesc": "拖动字段填充为列",
15
- "rowDesc": "拖动字段填充为行",
16
- "valueDesc": "行和列的计算结果",
17
- "addToFilter": "添加到筛选",
18
- "addToColumn": "添加到列",
19
- "addToRow": "添加到行",
20
- "addToValue": "添加到值",
21
- "removeField": "移除字段",
22
- "filterField": "筛选字段",
23
- "fieldSettings": "字段设置",
24
- "moveToRow": "移动到行",
25
- "moveToColumn": "移动到列",
26
- "dialog": {
27
- "fieldName": "字段名称",
28
- "sourceName": "源字段名:",
29
- "summarizeBy": "汇总方式",
30
- "format": "数字格式",
31
- "ok": "确定",
32
- "cancel": "取消",
33
- "filter": {
34
- "ascending": "升序",
35
- "descending": "降序",
36
- "selectAll": "全选",
37
- "clearFilter": "清除筛选",
38
- "blank": "(空白)",
39
- "cancel": "取消",
40
- "confirm": "确定"
41
- },
42
- "numfmt": {
43
- "general": "常规",
44
- "accounting": "会计",
45
- "currency": "货币",
46
- "date": "日期",
47
- "thousandthPercentile": "千分位符",
48
- "fieldSetting": "字段设置",
49
- "formatTypes": "格式类型",
50
- "confirm": "确定",
51
- "cancel": "取消",
52
- "generalDesc": "常规格式不包含任何特定的数字格式。",
53
- "accountingDesc": "会计数字格式可对一列数值进行货币符号和小数点对齐。",
54
- "currencyDesc": "货币格式用于表示一般货币数值,会计格式可以对一列数值进行小数点对齐。",
55
- "dateDesc": "日期格式将日期和时间系列数值品示为日期值。",
56
- "thousandthPercentileDesc": "千分位符格式用于一般数字的表示,货币和会计格式则提供货币值计算的专用格式。",
57
- "decimalPlaces": "小数位数",
58
- "currencyTypes": "货币类型",
59
- "negativeNumberTypes": "负数类型",
60
- "dateTypes": "日期类型"
61
- },
62
- "source": {
63
- "insertPivotTable": "插入数据透视表",
64
- "sourceData": "数据源范围",
65
- "position": "透视表放置位置",
66
- "newSheet": "新工作表",
67
- "existingSheet": "现有工作表",
68
- "intersect": "不能和源数据重叠"
69
- }
70
- },
71
- "subtotal": {
72
- "average": "平均值",
73
- "count": "计数",
74
- "countNums": "数值计数",
75
- "max": "最大值",
76
- "min": "最小值",
77
- "product": "乘积",
78
- "stdDev": "标准差",
79
- "stdDevp": "总体标准差",
80
- "sum": "求和",
81
- "var": "方差",
82
- "varp": "总体方差"
83
- },
84
- "subTotalText": "汇总",
85
- "grandTotalText": "总计",
86
- "perform": {
87
- "info": "目标区域中已有数据,该操作将覆盖原有数据,是否继续?",
88
- "confirm": "确认",
89
- "cancel": "取消",
90
- "rowColError": "无法对所选单元格进行此更改,因为它会影响数据透视表。请使用字段列表更改报表。如果您试图插入或删除单元格,请移动数据透视表,然后再试。"
91
- },
92
- "msg": {
93
- "emptySourceRange": "数据源范围为空",
94
- "invalidSize": "数据源范围不合法",
95
- "mergeCellError": "无法在透视表区域添加合并单元格",
96
- "editCellError": "无法编辑透视表中的单元格",
97
- "permissionError": "编辑区域开启了保护,不允许编辑该区域"
98
- }
99
- }
100
- }
@@ -1,100 +0,0 @@
1
- {
2
- "sheets-pivot-panel": {
3
- "title": "資料透視表",
4
- "sourceRangeLabel": "數據源",
5
- "sourceRangePlaceholder": "數據源已經更新",
6
- "sourceFieldTile": "數據源字段",
7
- "sourceFieldDescription": "拖動字段到以下區域",
8
- "filter": "篩選",
9
- "column": "列",
10
- "row": "行",
11
- "value": "值",
12
- "multipleValue": "Σ數值",
13
- "filterDesc": "拖入字段篩選數據",
14
- "columnDesc": "拖動字段填充為列",
15
- "rowDesc": "拖動字段填充為行",
16
- "valueDesc": "行和列的計算結果",
17
- "addToFilter": "添加到篩選",
18
- "addToColumn": "添加到列",
19
- "addToRow": "添加到行",
20
- "addToValue": "添加到值",
21
- "removeField": "移除字段",
22
- "filterField": "篩選字段",
23
- "fieldSettings": "字段設置",
24
- "moveToRow": "移動到行",
25
- "moveToColumn": "移動到列",
26
- "dialog": {
27
- "fieldName": "字段名稱",
28
- "sourceName": "源字段名:",
29
- "summarizeBy": "匯總方式",
30
- "format": "數字格式",
31
- "ok": "確定",
32
- "cancel": "取消",
33
- "filter": {
34
- "ascending": "升序",
35
- "descending": "降序",
36
- "selectAll": "全選",
37
- "clearFilter": "清除篩選",
38
- "blank": "(空白)",
39
- "cancel": "取消",
40
- "confirm": "確定"
41
- },
42
- "numfmt": {
43
- "general": "常規",
44
- "accounting": "會計",
45
- "currency": "貨幣",
46
- "date": "日期",
47
- "thousandthPercentile": "千分位符",
48
- "fieldSetting": "字段設置",
49
- "formatTypes": "格式類型",
50
- "confirm": "確定",
51
- "cancel": "取消",
52
- "generalDesc": "常規格式不包含任何特定的數字格式。",
53
- "accountingDesc": "會計數字格式可對一列數值進行貨幣符號和小數點對齊。",
54
- "currencyDesc": "貨幣格式用於表示一般貨幣數值,會計格式可以對一列數值進行小數點對齊。",
55
- "dateDesc": "日期格式將日期和時間系列數值顯示為日期值。",
56
- "thousandthPercentileDesc": "千分位符格式用於一般數字的表示,貨幣和會計格式則提供貨幣值計算的專用格式。",
57
- "decimalPlaces": "小數位數",
58
- "currencyTypes": "貨幣類型",
59
- "negativeNumberTypes": "負數類型",
60
- "dateTypes": "日期類型"
61
- },
62
- "source": {
63
- "insertPivotTable": "插入數據透視表",
64
- "sourceData": "數據源範圍",
65
- "position": "透視表放置位置",
66
- "newSheet": "新工作表",
67
- "existingSheet": "現有工作表",
68
- "intersect": "不能和源數據重疊"
69
- }
70
- },
71
- "subtotal": {
72
- "average": "平均值",
73
- "count": "計數",
74
- "countNums": "數值計數",
75
- "max": "最大值",
76
- "min": "最小值",
77
- "product": "乘積",
78
- "stdDev": "標準差",
79
- "stdDevp": "總體標準差",
80
- "sum": "求和",
81
- "var": "方差",
82
- "varp": "總體方差"
83
- },
84
- "subTotalText": "匯總",
85
- "grandTotalText": "總計",
86
- "perform": {
87
- "info": "目標區域中已有數據,該操作將覆蓋原有數據,是否繼續?",
88
- "confirm": "確認",
89
- "cancel": "取消",
90
- "rowColError": "無法對所選單元格進行此更改,因為它會影響資料透視表。請使用字段列表更改報表。如果您試圖插入或刪除單元格,請移動資料透視表,然後再試。"
91
- },
92
- "msg": {
93
- "emptySourceRange": "請選擇數據源",
94
- "invalidSize": "無效的數據大小",
95
- "mergeCellError": "合併單元格無法插入數據透視表",
96
- "editCellError": "無法編輯數據透視表中的單元格",
97
- "permissionError": "無法編輯受保護的工作表中的數據透視表"
98
- }
99
- }
100
- }
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IAddPivotFieldCommandParams } from '../../type';
3
- export declare const AddPivotFieldCommand: ICommand<IAddPivotFieldCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IAddPivotTableCommandParams } from '@univerjs-pro/sheets-pivot';
3
- export declare const AddPivotTableCommand: ICommand<IAddPivotTableCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IMovePivotFieldCommandParams } from '../../type';
3
- export declare const MovePivotFieldCommand: ICommand<IMovePivotFieldCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IPivotDrillDownCommandParams } from '../../type';
3
- export declare const PivotDrillDownCommand: ICommand<IPivotDrillDownCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IRemovePivotFieldCommandParams } from '../../type';
3
- export declare const RemovePivotFieldCommand: ICommand<IRemovePivotFieldCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { ISetPivotCollapseCommandParams } from '../../type';
3
- export declare const SetPivotCollapseCommand: ICommand<ISetPivotCollapseCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { ISetPivotFilterCommandParams } from '../../type';
3
- export declare const SetPivotFilterCommand: ICommand<ISetPivotFilterCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { ISetPivotSortCommandParams } from '../../type';
3
- export declare const SetPivotSortCommand: ICommand<ISetPivotSortCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IUpdatePivotFieldSettingCommandParams } from '../../type';
3
- export declare const UpdatePivotFieldSettingCommand: ICommand<IUpdatePivotFieldSettingCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IUpdatePivotTableSourceRangeCommandParams } from '../../type';
3
- export declare const UpdatePivotTableSourceRangeCommand: ICommand<IUpdatePivotTableSourceRangeCommandParams>;
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IUpdatePivotValuePositionCommandParams } from '../../type';
3
- export declare const UpdatePivotValuePositionCommand: ICommand<IUpdatePivotValuePositionCommandParams>;
@@ -1,12 +0,0 @@
1
- import { Disposable, DisposableCollection, IUniverInstanceService } from '@univerjs/core';
2
- import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
3
- import { SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- export declare class SheetsPivotClearController extends Disposable {
5
- private readonly _univerInstanceService;
6
- private readonly _sheetInterceptorService;
7
- private readonly _sheetsSelectionsService;
8
- private readonly _sheetsPivotTableConfigModel;
9
- disposableCollection: DisposableCollection;
10
- constructor(_univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _sheetsSelectionsService: SheetsSelectionsService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
11
- private _initClearSelectionCommandInterceptor;
12
- }
@@ -1,7 +0,0 @@
1
- import { Disposable, ICommandService, IPermissionService } from '@univerjs/core';
2
- export declare class SheetsPivotPrintController extends Disposable {
3
- private readonly _permissionService;
4
- private readonly _commandService;
5
- constructor(_permissionService: IPermissionService, _commandService: ICommandService);
6
- private _initPermissionWithPivot;
7
- }
@@ -1,22 +0,0 @@
1
- import { IMutationInfo, Disposable, DisposableCollection, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
2
- import { IMoveRangeCommandParams, RefRangeService, SheetInterceptorService } from '@univerjs/sheets';
3
- import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- import { SheetsPivotTableUIService } from '../services/sheets-pivot-ui.service';
5
- export declare class SheetsPivotRefRangeController extends Disposable {
6
- private readonly _injector;
7
- private readonly _sheetsPivotTableUIService;
8
- private readonly _refRangeService;
9
- private readonly _commandService;
10
- private readonly _univerInstanceService;
11
- private readonly _sheetsPivotTableConfigModel;
12
- private readonly _sheetsPivotTableAdaptorModel;
13
- private readonly _sheetInterceptorService;
14
- disposableCollection: DisposableCollection;
15
- constructor(_injector: Injector, _sheetsPivotTableUIService: SheetsPivotTableUIService, _refRangeService: RefRangeService, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetInterceptorService: SheetInterceptorService);
16
- private _onRefRangeChange;
17
- private _refRangeHandle;
18
- getRefRangeMutationsByMoveRange(params: IMoveRangeCommandParams, unitId: string, subUnitId: string): {
19
- redos: IMutationInfo[];
20
- undos: IMutationInfo[];
21
- };
22
- }
@@ -1,9 +0,0 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { SheetInterceptorService } from '@univerjs/sheets';
3
- import { SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
4
- export declare class SheetsPivotRemoveSheetController extends Disposable {
5
- private readonly _sheetInterceptorService;
6
- private readonly _sheetsPivotTableConfigModel;
7
- constructor(_sheetInterceptorService: SheetInterceptorService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
8
- private _initRemoveSheetCommandInterceptor;
9
- }
@@ -1,45 +0,0 @@
1
- import { IMutationInfo, IRange, Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
- import { ISetRangeValuesMutationParams, SheetInterceptorService } from '@univerjs/sheets';
3
- import { PivotView } from '@univerjs-pro/engine-pivot';
4
- import { IPivotCellPositionInfo, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
5
- import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
6
- import { IConfirmService } from '@univerjs/ui';
7
- export declare class SheetsPivotTableUIService extends Disposable {
8
- private readonly _injector;
9
- private readonly _sheetInterceptorService;
10
- private readonly _confirmService;
11
- private readonly _localeService;
12
- private readonly _univerInstanceService;
13
- private readonly _sheetsPivotTableConfigModel;
14
- private readonly _sheetPermissionInterceptorBaseController;
15
- constructor(_injector: Injector, _sheetInterceptorService: SheetInterceptorService, _confirmService: IConfirmService, _localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController);
16
- confirmCheckByView(cellInfo: IPivotCellPositionInfo, view: PivotView, isEmpty: boolean): Promise<{
17
- perform: boolean;
18
- mutations: import('@univerjs/core').IUndoRedoCommandInfosByInterceptor;
19
- }>;
20
- getEmptyPivotRanges(cellInfo: IPivotCellPositionInfo): {
21
- startRow: number;
22
- endRow: number;
23
- startColumn: number;
24
- endColumn: number;
25
- }[];
26
- getAutoFitColumnsMutations(view: PivotView, cellInfo: IPivotCellPositionInfo): {
27
- undos: IMutationInfo<object>[];
28
- redos: IMutationInfo<object>[];
29
- };
30
- getInsertRowColMutations(view: PivotView, cellInfo: IPivotCellPositionInfo, isEmpty: boolean): {
31
- undos: IMutationInfo<object>[];
32
- redos: IMutationInfo<object>[];
33
- };
34
- generateSetRangeValueMutations(injector: Injector, unitId: string, subUnitId: string, ranges: IRange[]): {
35
- setRangeValueUndoMutation: {
36
- id: string;
37
- params: ISetRangeValuesMutationParams;
38
- };
39
- setRangeValueRedoMutation: {
40
- id: string;
41
- params: ISetRangeValuesMutationParams;
42
- };
43
- shouldClear: boolean;
44
- };
45
- }