@univerjs-pro/sheets-pivot 0.4.2 → 0.5.0-alpha.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/README.md +13 -15
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.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/facade.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/types/index.d.ts +1158 -29
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.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 +39 -20
- package/lib/locale/en-US.json +0 -30
- package/lib/locale/fa-IR.json +0 -30
- package/lib/locale/ru-RU.json +0 -30
- package/lib/locale/vi-VN.json +0 -30
- package/lib/locale/zh-CN.json +0 -30
- package/lib/locale/zh-TW.json +0 -30
- package/lib/types/commands/command/add-pivot-table-with-config.command.d.ts +0 -3
- package/lib/types/commands/command/util.d.ts +0 -12
- package/lib/types/commands/mutations/add-pivot-field.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/add-pivot-table.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/change-apply-util.d.ts +0 -15
- package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +0 -7
- package/lib/types/commands/mutations/remove-pivot-field.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/remove-pivot-table.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/rename-pivot-field.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-collapse.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-field-format.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-filter.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-option.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-position.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-sort.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-subtotal-type.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/update-field-position.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/update-pivot-field-source-info.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/update-pivot-table-source.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/update-value-position.mutation.d.ts +0 -3
- package/lib/types/commands/operations/pivot-table-dirty-view.operation.d.ts +0 -3
- package/lib/types/common/const.d.ts +0 -64
- package/lib/types/const/const.d.ts +0 -99
- package/lib/types/const/template.d.ts +0 -885
- package/lib/types/const/type.d.ts +0 -522
- package/lib/types/controllers/config.schema.d.ts +0 -6
- package/lib/types/controllers/const.d.ts +0 -1
- package/lib/types/controllers/sheets-pivot-caculate.controller.d.ts +0 -44
- package/lib/types/controllers/sheets-pivot-rpc.controller.d.ts +0 -20
- package/lib/types/locale/en-US.d.ts +0 -3
- package/lib/types/locale/fa-IR.d.ts +0 -3
- package/lib/types/locale/ru-RU.d.ts +0 -3
- package/lib/types/locale/vi-VN.d.ts +0 -3
- package/lib/types/locale/zh-CN.d.ts +0 -31
- package/lib/types/locale/zh-TW.d.ts +0 -3
- package/lib/types/models/sheets-pivot-config-model.d.ts +0 -58
- package/lib/types/models/sheets-pivot-data-field-manager.d.ts +0 -77
- package/lib/types/models/sheets-pivot-data-source-model.d.ts +0 -101
- package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +0 -54
- package/lib/types/models/view-util.d.ts +0 -16
- package/lib/types/plugin.d.ts +0 -17
- package/lib/types/services/sheets-pivot-rpc.service.d.ts +0 -11
- package/lib/types/services/sheets-pivot-table.service.d.ts +0 -10
- package/lib/types/util.d.ts +0 -52
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Injector, IRange } from '@univerjs/core';
|
|
2
|
-
import { IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
|
|
3
|
-
import { default as zhCN } from '../locale/zh-CN';
|
|
4
|
-
import { IAdjustPivotTableRes, IPivotTableConfig, IThemeStyle } from './type';
|
|
5
|
-
export declare const BUILD_TIMESTAMP: number;
|
|
6
|
-
export declare const PIVOT_ICON_OFFSET = 16;
|
|
7
|
-
export declare const DEFAULT_PIVOT_NUMBER = 1;
|
|
8
|
-
export declare const SHEET_PIVOT_TABLE_PLUGIN = "SHEET_PIVOT_TABLE_PLUGIN";
|
|
9
|
-
export declare const BLANK_ROW_COUNT = 1;
|
|
10
|
-
export declare const BLANK_COL_COUNT = 1;
|
|
11
|
-
export declare const PIVOT_COL_HEADER_FROM = 1;
|
|
12
|
-
export declare const DEFAULT_FONT_LEFT_PADDING = 15;
|
|
13
|
-
export declare const DEFAULT_FIELD_BG_COLOR = "rgb(240,241,243)";
|
|
14
|
-
export declare const DEFAULT_DATA_BG_COLOR = "rgb(255,255,255)";
|
|
15
|
-
export declare const DEFAULT_PIVOT_BORDER_COLOR = "#b2b2b2";
|
|
16
|
-
export declare const DEFAULT_PIVOT_PAGE_VIEW_BG = "#f4f4f5";
|
|
17
|
-
export declare const DEFAULT_PIVOT_LEAF_VIEW_BG = "#f4f4f5";
|
|
18
|
-
export declare const DEFAULT_PIVOT_CORNER_VIEW_VG = "#eceeff";
|
|
19
|
-
export declare const DEFAULT_PIVOT_GRAND_TOTAL_BG = "#1d32e9";
|
|
20
|
-
export declare const DEFAULT_PIVOT_GRAND_TOTAL_CL = "#FFFFFF";
|
|
21
|
-
export declare const DEFAULT_PIVOT_SUB_TOTAL_BG = "#e6ebfa";
|
|
22
|
-
export declare const DEFAULT_PIVOT_COL_VIEW_BG = "#1d32e9";
|
|
23
|
-
export declare const DEFAULT_PIVOT_COL_VIEW_CL = "#FFFFFF";
|
|
24
|
-
export declare const DEFAULT_PIVOT_ROW_VIEW_BG = "#e6ebfb";
|
|
25
|
-
export declare const DEFAULT_PIVOT_DATA_VIEW_BG = "#e6ebfb";
|
|
26
|
-
export declare enum PositionType {
|
|
27
|
-
Exiting = "exiting",
|
|
28
|
-
New = "new"
|
|
29
|
-
}
|
|
30
|
-
export declare const localeTemplate: typeof zhCN;
|
|
31
|
-
export declare const PIVOT_TABLE_QUERY_DELAY = 30;
|
|
32
|
-
export declare const defaultEmptyPivotFieldCellStyle: {
|
|
33
|
-
bg: {
|
|
34
|
-
rgb: string;
|
|
35
|
-
};
|
|
36
|
-
ht: number;
|
|
37
|
-
vt: number;
|
|
38
|
-
tb: number;
|
|
39
|
-
};
|
|
40
|
-
export declare const defaultEmptyPivotDataCellStyle: {
|
|
41
|
-
bg: {
|
|
42
|
-
rgb: string;
|
|
43
|
-
};
|
|
44
|
-
ht: number;
|
|
45
|
-
vt: number;
|
|
46
|
-
tb: number;
|
|
47
|
-
};
|
|
48
|
-
export declare const defaultThemeStyle: IThemeStyle;
|
|
49
|
-
export declare const generatorAdjustPositionData: (injector: Injector, data: PivotView, pivotTableConfig: IPivotTableConfig, textInfo: Record<string, string>) => IAdjustPivotTableRes;
|
|
50
|
-
export declare function transFromCellValue(cellData: IPivotViewCellData, isValue: boolean, format: string | undefined, textInfo: Record<string, string>): IPivotViewValueType;
|
|
51
|
-
export declare function transformErrorValue(value: IPivotViewValueType): string | number | import('@univerjs-pro/engine-pivot').IPivotViewPrefixValue | undefined;
|
|
52
|
-
export declare function getAdjustRangesPosition(startCell: {
|
|
53
|
-
row: number;
|
|
54
|
-
col: number;
|
|
55
|
-
}, view: PivotViewItem, singleCellIsRange?: boolean, useLastRowOrCol?: boolean): IRange[];
|
|
56
|
-
export declare const SHEET_PIVOT_IN_MAIN_THREAD = "SHEET_PIVOT_IN_MAIN_THREAD";
|
|
57
|
-
export declare const SHEET_PIVOT_EXCLUSIVE_ID = "SHEET_PIVOT_EXCLUSIVE_ID";
|
|
58
|
-
export declare enum PivotDisplayDataType {
|
|
59
|
-
Filter = "filter",
|
|
60
|
-
Panel = "panel",
|
|
61
|
-
AddPivotField = "addPivotField",
|
|
62
|
-
AddPivotTableWithConfig = "AddPivotTableWithConfig",
|
|
63
|
-
AddPivotTable = "addPivotTable",
|
|
64
|
-
MovePivotField = "movePivotField",
|
|
65
|
-
RemovePivotField = "removePivotField",
|
|
66
|
-
SetPivotCollapse = "setPivotCollapse",
|
|
67
|
-
SetPivotFilter = "setPivotFilter",
|
|
68
|
-
SetPivotSort = "setPivotSort",
|
|
69
|
-
SetPivotSetting = "setPivotSetting",
|
|
70
|
-
UpdatePivotSource = "updatePivotSource",
|
|
71
|
-
UpdateValuePosition = "updateValuePosition",
|
|
72
|
-
DrillDown = "drillDown"
|
|
73
|
-
}
|
|
74
|
-
export declare const defaultTextInfo: {
|
|
75
|
-
'sheets-pivot.blankValue': string;
|
|
76
|
-
'sheets-pivot.columnName': string;
|
|
77
|
-
'sheets-pivot.subTotalText': string;
|
|
78
|
-
'sheets-pivot.grandTotalText': string;
|
|
79
|
-
'sheets-pivot.valueText': string;
|
|
80
|
-
'sheets-pivot.averageName': string;
|
|
81
|
-
'sheets-pivot.countName': string;
|
|
82
|
-
'sheets-pivot.countNumsName': string;
|
|
83
|
-
'sheets-pivot.maxName': string;
|
|
84
|
-
'sheets-pivot.minName': string;
|
|
85
|
-
'sheets-pivot.productName': string;
|
|
86
|
-
'sheets-pivot.stdDevName': string;
|
|
87
|
-
'sheets-pivot.stdDevpName': string;
|
|
88
|
-
'sheets-pivot.sumName': string;
|
|
89
|
-
'sheets-pivot.varName': string;
|
|
90
|
-
'sheets-pivot.varpName': string;
|
|
91
|
-
'sheets-pivot.subTotal': string;
|
|
92
|
-
'sheets-pivot.grandTotal': string;
|
|
93
|
-
'sheets-pivot.value': string;
|
|
94
|
-
'sheets-pivot.blank': string;
|
|
95
|
-
'sheets-pivot.emptyPivot.filter': string;
|
|
96
|
-
'sheets-pivot.emptyPivot.row': string;
|
|
97
|
-
'sheets-pivot.emptyPivot.column': string;
|
|
98
|
-
'sheets-pivot.emptyPivot.values': string;
|
|
99
|
-
};
|