@univerjs-pro/engine-pivot 0.10.8 → 0.10.9-experimental.20250925-61b61a0
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 +18 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/const.d.ts +17 -0
- package/lib/types/field/data-field.d.ts +2 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/layout/pivot-view.d.ts +1 -0
- package/lib/types/types/enum.d.ts +5 -1
- package/lib/types/types/layout-type.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +1 -1
package/lib/types/const.d.ts
CHANGED
|
@@ -13,8 +13,25 @@ export declare const GlobalConfig: {
|
|
|
13
13
|
isDev: boolean;
|
|
14
14
|
defaultSortType: string;
|
|
15
15
|
dateSystem: PivotDateGroupFieldDateSystemEnum;
|
|
16
|
+
maxLimitItemCount: number;
|
|
17
|
+
otherDataKey: string;
|
|
16
18
|
};
|
|
17
19
|
export declare const setBlankPlaceholder: (value: string) => string;
|
|
18
20
|
export declare const setDevMode: (value: boolean) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Allows to set the default sorting type for pivot table row/col fields
|
|
23
|
+
* @param type 'sorting type, can be ascending,descending,default
|
|
24
|
+
*/
|
|
19
25
|
export declare const setDefaultSortType: (type: "ascending" | "descending" | "default") => void;
|
|
26
|
+
/**
|
|
27
|
+
* allows to set the date system for date grouping calculations
|
|
28
|
+
* @param value The date system to use, either date1900 ,date1904
|
|
29
|
+
* @returns {void}
|
|
30
|
+
*/
|
|
20
31
|
export declare const setDateSystem: (value: PivotDateGroupFieldDateSystemEnum) => PivotDateGroupFieldDateSystemEnum;
|
|
32
|
+
/**
|
|
33
|
+
* allows to set the max limit count for row/col fields
|
|
34
|
+
* @param value The max limit count, must be greater than 0, the default value is 1000
|
|
35
|
+
* @returns {void}
|
|
36
|
+
*/
|
|
37
|
+
export declare const setMaxLimitItemCount: (value: number) => void;
|
|
@@ -86,6 +86,7 @@ export declare class DataField {
|
|
|
86
86
|
* @property {Record<string, number[]>} itemsMap -Save the index of the items in the data field. The key is the item key, the value is the index array of the item in the data field.
|
|
87
87
|
*/
|
|
88
88
|
private _itemsMap;
|
|
89
|
+
private _keyCounter;
|
|
89
90
|
constructor(id: string, name: string, hexCode: string);
|
|
90
91
|
/**
|
|
91
92
|
* - Returns the name of the data field.
|
|
@@ -154,6 +155,7 @@ export declare class DataField {
|
|
|
154
155
|
private _updateBlankItemKey;
|
|
155
156
|
private _updateStringItemKey;
|
|
156
157
|
private _updateNumberItemKey;
|
|
158
|
+
private _updateOtherItemKey;
|
|
157
159
|
private _updateItemKey;
|
|
158
160
|
getItemsMap(): Record<string, number>;
|
|
159
161
|
/**
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GlobalConfig, setDefaultSortType } from './const';
|
|
1
|
+
export { GlobalConfig, setDateSystem, setDefaultSortType, setMaxLimitItemCount } from './const';
|
|
2
2
|
export { BaseGroupField } from './field/base-group-field';
|
|
3
3
|
export { DataField } from './field/data-field';
|
|
4
4
|
export { DataFieldManager } from './field/data-field-manager';
|
|
@@ -73,6 +73,7 @@ export declare class PivotViewItem {
|
|
|
73
73
|
setValue(row: number, col: number, value: IPivotViewValueType): void;
|
|
74
74
|
setStyle(row: number, col: number, styleType: PivotCellStyleTypeEnum): void;
|
|
75
75
|
setBlank(row: number, col: number): void;
|
|
76
|
+
setOther(row: number, col: number): void;
|
|
76
77
|
protected getCell(row: number, col: number): IPivotViewCellData;
|
|
77
78
|
setInfo(index: number, info: IPivotViewInfo): void;
|
|
78
79
|
buildPathMap(considerValue: boolean): Record<string, number>;
|
|
@@ -31,7 +31,8 @@ export interface IPivotViewCellData {
|
|
|
31
31
|
}
|
|
32
32
|
export declare enum PivotViewCellValueTypeEnum {
|
|
33
33
|
blank = 2,
|
|
34
|
-
date = 4
|
|
34
|
+
date = 4,
|
|
35
|
+
other = 8
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* Represents the pivot view info data structure, which is used to store row /col path and value index
|