@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.
- package/cjs/PivotTable.js +3 -3
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/dataset.d.ts +19 -2
- package/cjs/dataset/dataset.js +263 -178
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/event/drill.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/layout-helper.js +1 -2
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +479 -338
- package/dist/vtable.min.js +1 -1
- package/es/PivotTable.js +3 -3
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/dataset.d.ts +19 -2
- package/es/dataset/dataset.js +262 -178
- package/es/dataset/dataset.js.map +1 -1
- package/es/event/drill.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/layout-helper.js +1 -2
- package/es/vrender.js.map +1 -1
- package/package.json +2 -2
package/cjs/dataset/dataset.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|