@visactor/vtable 1.7.8-alpha.1 → 1.7.8-alpha.3

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.
@@ -62,13 +62,27 @@ export declare class Dataset {
62
62
  indicatorKeysIncludeCalculatedFieldDependIndicatorKeys: string[];
63
63
  customRowTree?: IHeaderTreeDefine[];
64
64
  customColTree?: IHeaderTreeDefine[];
65
+ customRowTreeDimensionPaths: {
66
+ dimensionKey?: string | number;
67
+ value: string;
68
+ indicatorKey?: string | number;
69
+ isVirtual?: boolean;
70
+ childKeys?: (string | number)[];
71
+ }[][];
72
+ customColTreeDimensionPaths: {
73
+ dimensionKey?: string | number;
74
+ value: string;
75
+ indicatorKey?: string | number;
76
+ isVirtual?: boolean;
77
+ }[][];
65
78
  colHeaderTree: any[];
66
79
  rowHeaderTree: any[];
67
80
  rowHierarchyType: 'grid' | 'tree';
68
81
  indicators?: (string | IIndicator)[];
69
82
  indicatorsAsCol: boolean;
70
83
  totalRecordsTree: Record<string, Record<string, Aggregator[]>>;
71
- constructor(dataConfig: IPivotTableDataConfig | IPivotChartDataConfig | undefined, rows: string[], columns: string[], indicatorKeys: string[], indicators: (string | IIndicator)[] | undefined, indicatorsAsCol: boolean, records: any[] | Record<string, any[]> | undefined, rowHierarchyType?: 'grid' | 'tree', customColTree?: IHeaderTreeDefine[], customRowTree?: IHeaderTreeDefine[], needSplitPositiveAndNegative?: boolean);
84
+ hasExtensionRowTree?: boolean;
85
+ constructor(dataConfig: IPivotTableDataConfig | IPivotChartDataConfig | undefined, rows: string[], columns: string[], indicatorKeys: string[], indicators: (string | IIndicator)[] | undefined, indicatorsAsCol: boolean, records: any[] | Record<string, any[]> | undefined, rowHierarchyType?: 'grid' | 'tree', customColTree?: IHeaderTreeDefine[], customRowTree?: IHeaderTreeDefine[], needSplitPositiveAndNegative?: boolean, hasExtensionRowTree?: boolean);
72
86
  setRecords(records: any[] | Record<string, any[]>): void;
73
87
  registerAggregator(type: string, aggregator: any): void;
74
88
  registerAggregators(): void;
@@ -91,13 +105,16 @@ export declare class Dataset {
91
105
  totalStatistics(): void;
92
106
  private ArrToTree1;
93
107
  private ArrToTree;
94
- private TreeToArr;
95
108
  private cacheDeminsionCollectedValues;
96
109
  changeTreeNodeValue(rowKey: string[] | string, colKey: string[] | string, indicator: string, newValue: string | number): void;
97
110
  changeRecordFieldValue(fieldName: string, oldValue: string | number, value: string | number): void;
111
+ _rowTreeHasChanged(): void;
98
112
  changeDataConfig(dataConfig: {
99
113
  rows: string[];
100
114
  columns: string[];
101
115
  }): void;
102
116
  addRecords(records: any[]): void;
117
+ private customTreeToDimensionPathArr;
118
+ private getFieldMatchColDimensionPaths;
119
+ private getFieldMatchRowDimensionPaths;
103
120
  }