@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.
@@ -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
  /**
@@ -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>;
@@ -234,7 +234,11 @@ export declare enum PivotDataFieldDataTypeEnum {
234
234
  /**
235
235
  * the blank data type
236
236
  */
237
- blank = 5
237
+ blank = 5,
238
+ /**
239
+ * the other data type
240
+ */
241
+ other = 6
238
242
  }
239
243
  /**
240
244
  * Represents the sort types for pivot data fields.
@@ -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