@visactor/vtable 0.13.2-alpha.0 → 0.13.2-alpha.2
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/PivotChart.js +2 -1
- package/cjs/PivotChart.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 +1 -0
- package/cjs/dataset/dataset.js +12 -2
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/themes/BRIGHT.js +1 -2
- package/cjs/themes/DARK.js +2 -1
- package/dist/vtable.js +21 -2
- package/dist/vtable.min.js +1 -1
- package/es/PivotChart.js +1 -1
- package/es/PivotChart.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 +1 -0
- package/es/dataset/dataset.js +12 -2
- package/es/dataset/dataset.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/themes/BRIGHT.js +1 -2
- package/es/themes/DARK.js +2 -1
- package/package.json +1 -4
package/dist/vtable.js
CHANGED
|
@@ -53863,7 +53863,7 @@
|
|
|
53863
53863
|
return TABLE_EVENT_TYPE;
|
|
53864
53864
|
}
|
|
53865
53865
|
options;
|
|
53866
|
-
version = "0.13.2-alpha.
|
|
53866
|
+
version = "0.13.2-alpha.2";
|
|
53867
53867
|
pagination;
|
|
53868
53868
|
id = `VTable${Date.now()}`;
|
|
53869
53869
|
headerStyleCache;
|
|
@@ -60603,6 +60603,7 @@
|
|
|
60603
60603
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
60604
60604
|
this.setRecords();
|
|
60605
60605
|
this.processCollectedValuesWithSumBy();
|
|
60606
|
+
this.generateCollectedValuesSortRule();
|
|
60606
60607
|
this.processCollectedValuesWithSortBy();
|
|
60607
60608
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
60608
60609
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
@@ -60698,6 +60699,22 @@
|
|
|
60698
60699
|
}
|
|
60699
60700
|
}
|
|
60700
60701
|
}
|
|
60702
|
+
generateCollectedValuesSortRule() {
|
|
60703
|
+
for (const field in this.collectedValues) {
|
|
60704
|
+
if (this.collectValuesBy[field] && !this.collectValuesBy[field].sortBy) {
|
|
60705
|
+
let sortByRule = [];
|
|
60706
|
+
for (const byKeys in this.collectedValues[field]) {
|
|
60707
|
+
if (Array.isArray(this.collectedValues[field][byKeys])) {
|
|
60708
|
+
sortByRule.push(...this.collectedValues[field][byKeys]);
|
|
60709
|
+
sortByRule = Array.from(new Set(sortByRule));
|
|
60710
|
+
}
|
|
60711
|
+
}
|
|
60712
|
+
if (sortByRule.length > 0) {
|
|
60713
|
+
this.collectValuesBy[field].sortBy = sortByRule;
|
|
60714
|
+
}
|
|
60715
|
+
}
|
|
60716
|
+
}
|
|
60717
|
+
}
|
|
60701
60718
|
processRecords() {
|
|
60702
60719
|
let isNeedFilter = false;
|
|
60703
60720
|
if (this.dataConfig?.filterRules?.length >= 1) {
|
|
@@ -60957,6 +60974,7 @@
|
|
|
60957
60974
|
this.processCollectedValuesWithSortBy();
|
|
60958
60975
|
if (this.dataConfig?.isPivotChart) {
|
|
60959
60976
|
this.dealWithZeroAlign();
|
|
60977
|
+
this.cacheDeminsionCollectedValues();
|
|
60960
60978
|
}
|
|
60961
60979
|
}
|
|
60962
60980
|
getAggregatorRule(indicatorKey) {
|
|
@@ -62167,6 +62185,7 @@
|
|
|
62167
62185
|
this.internalProps.rowTree =
|
|
62168
62186
|
!options.indicatorsAsCol && !options.rows?.length && !options.rowTree ? [] : cloneDeep$1(options.rowTree);
|
|
62169
62187
|
this.setCustomStateNameToSpec();
|
|
62188
|
+
this._selectedDataItemsInChart = [];
|
|
62170
62189
|
internalProps.columnResizeType = options.columnResizeType ?? 'column';
|
|
62171
62190
|
internalProps.dataConfig = { isPivotChart: true };
|
|
62172
62191
|
this._axes = isArray$5(options.axes) ? options.axes : [];
|
|
@@ -63714,7 +63733,7 @@
|
|
|
63714
63733
|
return new Tag(params ? params.attribute : {});
|
|
63715
63734
|
}
|
|
63716
63735
|
|
|
63717
|
-
const version = "0.13.2-alpha.
|
|
63736
|
+
const version = "0.13.2-alpha.2";
|
|
63718
63737
|
function getIcons() {
|
|
63719
63738
|
return get$1();
|
|
63720
63739
|
}
|