@visactor/vtable 1.22.6 → 1.22.7-alpha.1
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.js +4 -3
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/body-helper/body-helper.js +1 -2
- package/cjs/body-helper/style.js +2 -1
- package/cjs/core/BaseTable.js +5 -3
- 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/dataset/dataset-pivot-table.js +2 -1
- package/cjs/edit/editors.js +1 -2
- package/cjs/event/event.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/layout/index.js +1 -2
- package/cjs/layout/pivot-header-layout.js +1 -1
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/row-height-map.js +1 -1
- package/cjs/layout/simple-header-layout.js +1 -1
- package/cjs/layout/tree-helper.js +1 -1
- package/cjs/plugins/custom-cell-style.js +2 -1
- package/cjs/plugins/interface.js +1 -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 +3 -1
- package/cjs/plugins/plugin-manager.js +14 -7
- package/cjs/plugins/plugin-manager.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/state/state.js.map +1 -1
- package/cjs/ts-types/events.d.ts +8 -0
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +94 -83
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +4 -3
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js.map +1 -1
- package/es/body-helper/body-helper.js +1 -2
- package/es/body-helper/style.js +2 -1
- package/es/core/BaseTable.js +5 -3
- 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/dataset/dataset-pivot-table.js +2 -1
- package/es/edit/editors.js +1 -2
- package/es/event/event.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/layout/index.js +1 -2
- package/es/layout/pivot-header-layout.js +1 -1
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/row-height-map.js +1 -1
- package/es/layout/simple-header-layout.js +1 -1
- package/es/layout/tree-helper.js +1 -1
- package/es/plugins/custom-cell-style.js +2 -1
- package/es/plugins/interface.js +1 -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 +3 -1
- package/es/plugins/plugin-manager.js +14 -7
- package/es/plugins/plugin-manager.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/state/state.js.map +1 -1
- package/es/ts-types/events.d.ts +8 -0
- package/es/ts-types/events.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +5 -5
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
|
|
@@ -341,7 +342,7 @@ class ListTable extends core_1.BaseTable {
|
|
|
341
342
|
const EmptyTip = factory_1.Factory.getComponent("emptyTip");
|
|
342
343
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this), null === (_j = this.internalProps.emptyTip) || void 0 === _j || _j.resetVisible();
|
|
343
344
|
}
|
|
344
|
-
return this.pluginManager.updatePlugins(
|
|
345
|
+
return this.pluginManager.updatePlugins(), setTimeout((() => {
|
|
345
346
|
this.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.UPDATED, null);
|
|
346
347
|
}), 0), new Promise((resolve => {
|
|
347
348
|
setTimeout(resolve, 0);
|
|
@@ -587,7 +588,7 @@ class ListTable extends core_1.BaseTable {
|
|
|
587
588
|
return this.options.groupBy && (stateArr = (0, checkbox_1.getGroupCheckboxState)(this)),
|
|
588
589
|
Array.from(stateArr, (state => state && state[field]));
|
|
589
590
|
}
|
|
590
|
-
return
|
|
591
|
+
return [ ...this.stateManager.checkedState.values() ];
|
|
591
592
|
}
|
|
592
593
|
getCellCheckboxState(col, row) {
|
|
593
594
|
var _a;
|