@visactor/vtable 1.22.7-alpha.5 → 1.22.7-alpha.7
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/ListTable.d.ts +1 -0
- package/cjs/ListTable.js +6 -3
- package/cjs/ListTable.js.map +1 -1
- package/cjs/body-helper/body-helper.js +2 -1
- package/cjs/body-helper/style.js +1 -2
- package/cjs/core/BaseTable.d.ts +2 -2
- package/cjs/core/BaseTable.js +9 -7
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +2 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +3 -1
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/data/DataSource.d.ts +1 -1
- package/cjs/data/DataSource.js +2 -2
- package/cjs/data/DataSource.js.map +1 -1
- package/cjs/dataset/dataset-pivot-table.js +1 -2
- package/cjs/dataset/flatDataToObject.js +2 -1
- package/cjs/header-helper/header-helper.js +1 -1
- package/cjs/header-helper/style.js +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/index.js +1 -2
- package/cjs/layout/simple-header-layout.js +1 -1
- package/cjs/layout/tree-helper.js +1 -1
- package/cjs/plugins/interface.js +2 -1
- package/cjs/plugins/invert-highlight.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -1
- package/cjs/plugins/plugin-manager.d.ts +2 -0
- package/cjs/plugins/plugin-manager.js +14 -7
- package/cjs/plugins/plugin-manager.js.map +1 -1
- package/cjs/scenegraph/graphic/active-cell-chart-list.js +45 -63
- package/cjs/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.js +3 -10
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/state/state.js +9 -9
- package/cjs/state/state.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +2 -2
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/events.d.ts +8 -0
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +2 -2
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +128 -160
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.d.ts +1 -0
- package/es/ListTable.js +7 -4
- package/es/ListTable.js.map +1 -1
- package/es/body-helper/body-helper.js +2 -1
- package/es/body-helper/style.js +1 -2
- package/es/core/BaseTable.d.ts +2 -2
- package/es/core/BaseTable.js +9 -7
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +2 -0
- package/es/core/TABLE_EVENT_TYPE.js +3 -1
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/data/DataSource.d.ts +1 -1
- package/es/data/DataSource.js +2 -2
- package/es/data/DataSource.js.map +1 -1
- package/es/dataset/dataset-pivot-table.js +1 -2
- package/es/dataset/flatDataToObject.js +2 -1
- package/es/header-helper/header-helper.js +1 -1
- package/es/header-helper/style.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/index.js +1 -2
- package/es/layout/simple-header-layout.js +1 -1
- package/es/layout/tree-helper.js +1 -1
- package/es/plugins/interface.js +2 -1
- package/es/plugins/invert-highlight.js +1 -1
- package/es/plugins/list-tree-stick-cell.js +1 -1
- package/es/plugins/plugin-manager.d.ts +2 -0
- package/es/plugins/plugin-manager.js +14 -7
- package/es/plugins/plugin-manager.js.map +1 -1
- package/es/scenegraph/graphic/active-cell-chart-list.js +45 -63
- package/es/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
- package/es/scenegraph/graphic/chart.js +3 -10
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/state/state.js +9 -9
- package/es/state/state.js.map +1 -1
- package/es/ts-types/base-table.d.ts +2 -2
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/events.d.ts +8 -0
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +2 -2
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +9 -9
package/cjs/ListTable.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export declare class ListTable extends BaseTable implements ListTableAPI {
|
|
|
71
71
|
updateSortState(sortState: SortState[] | SortState | null, executeSort?: boolean): void;
|
|
72
72
|
updateFilterRules(filterRules: FilterRules, options?: {
|
|
73
73
|
clearRowHeightCache?: boolean;
|
|
74
|
+
onFilterRecordsEnd?: (records: any[]) => any[];
|
|
74
75
|
}): void;
|
|
75
76
|
getFilteredRecords(): any[];
|
|
76
77
|
getCheckboxState(field?: string | number): any[];
|
package/cjs/ListTable.js
CHANGED
|
@@ -314,7 +314,8 @@ class ListTable extends core_1.BaseTable {
|
|
|
314
314
|
}) {
|
|
315
315
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
316
316
|
const internalProps = this.internalProps;
|
|
317
|
-
if (
|
|
317
|
+
if (this.pluginManager.removeOrAddPlugins(options.plugins), super.updateOption(options, updateConfig),
|
|
318
|
+
internalProps.frozenColDragHeaderMode = null !== (_b = null === (_a = options.dragOrder) || void 0 === _a ? void 0 : _a.frozenColDragHeaderMode) && void 0 !== _b ? _b : options.frozenColDragHeaderMode,
|
|
318
319
|
this.pagination = options.pagination, internalProps.sortState = options.sortState,
|
|
319
320
|
internalProps.dataConfig = this.internalProps.groupBy ? (0, group_helper_1.getGroupByDataConfig)(this.internalProps.groupBy, options.addRecordRule) : {
|
|
320
321
|
addRecordRule: options.addRecordRule
|
|
@@ -564,9 +565,11 @@ class ListTable extends core_1.BaseTable {
|
|
|
564
565
|
updateFilterRules(filterRules, options = {
|
|
565
566
|
clearRowHeightCache: !0
|
|
566
567
|
}) {
|
|
568
|
+
var _a;
|
|
567
569
|
this.scenegraph.clearCells(), this.sortState ? (this.dataSource.updateFilterRulesForSorted(filterRules),
|
|
568
|
-
(0, record_helper_1.sortRecords)(this)) : this.dataSource.updateFilterRules(filterRules),
|
|
570
|
+
(0, record_helper_1.sortRecords)(this)) : this.dataSource.updateFilterRules(filterRules, null == options ? void 0 : options.onFilterRecordsEnd),
|
|
569
571
|
this.refreshRowColCount(), this.stateManager.initCheckedState(this.records), this.scenegraph.createSceneGraph(!(null == options ? void 0 : options.clearRowHeightCache)),
|
|
572
|
+
null === (_a = this.internalProps.emptyTip) || void 0 === _a || _a.resetVisible(),
|
|
570
573
|
this.resize();
|
|
571
574
|
}
|
|
572
575
|
getFilteredRecords() {
|
|
@@ -587,7 +590,7 @@ class ListTable extends core_1.BaseTable {
|
|
|
587
590
|
return this.options.groupBy && (stateArr = (0, checkbox_1.getGroupCheckboxState)(this)),
|
|
588
591
|
Array.from(stateArr, (state => state && state[field]));
|
|
589
592
|
}
|
|
590
|
-
return
|
|
593
|
+
return [ ...this.stateManager.checkedState.values() ];
|
|
591
594
|
}
|
|
592
595
|
getCellCheckboxState(col, row) {
|
|
593
596
|
var _a;
|