@visactor/vtable 1.22.10-alpha.1 → 1.22.10

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.
Files changed (55) hide show
  1. package/cjs/ListTable.js +2 -2
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/PivotTable.js +6 -3
  4. package/cjs/PivotTable.js.map +1 -1
  5. package/cjs/core/BaseTable.js +1 -1
  6. package/cjs/core/BaseTable.js.map +1 -1
  7. package/cjs/dataset/dataset-pivot-table.js +2 -1
  8. package/cjs/edit/editors.js +1 -2
  9. package/cjs/index.d.ts +1 -1
  10. package/cjs/index.js +1 -1
  11. package/cjs/index.js.map +1 -1
  12. package/cjs/layout/index.js +1 -2
  13. package/cjs/layout/layout-helper.js +1 -1
  14. package/cjs/layout/pivot-header-layout.js +3 -2
  15. package/cjs/layout/pivot-header-layout.js.map +1 -1
  16. package/cjs/layout/row-height-map.js +1 -1
  17. package/cjs/layout/simple-header-layout.js +1 -1
  18. package/cjs/layout/tree-helper.js +1 -1
  19. package/cjs/plugins/custom-cell-style.js +2 -1
  20. package/cjs/plugins/interface.js +1 -1
  21. package/cjs/plugins/invert-highlight.js +1 -1
  22. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  23. package/cjs/plugins/plugin-manager.js +1 -1
  24. package/cjs/themes/ARCO.js +1 -1
  25. package/cjs/themes/BRIGHT.js +1 -1
  26. package/cjs/vrender.js.map +1 -1
  27. package/dist/vtable.js +15 -7
  28. package/dist/vtable.min.js +1 -1
  29. package/es/ListTable.js +2 -2
  30. package/es/ListTable.js.map +1 -1
  31. package/es/PivotTable.js +6 -3
  32. package/es/PivotTable.js.map +1 -1
  33. package/es/core/BaseTable.js +1 -1
  34. package/es/core/BaseTable.js.map +1 -1
  35. package/es/dataset/dataset-pivot-table.js +2 -1
  36. package/es/edit/editors.js +1 -2
  37. package/es/index.d.ts +1 -1
  38. package/es/index.js +1 -1
  39. package/es/index.js.map +1 -1
  40. package/es/layout/index.js +1 -2
  41. package/es/layout/layout-helper.js +1 -1
  42. package/es/layout/pivot-header-layout.js +2 -2
  43. package/es/layout/pivot-header-layout.js.map +1 -1
  44. package/es/layout/row-height-map.js +1 -1
  45. package/es/layout/simple-header-layout.js +1 -1
  46. package/es/layout/tree-helper.js +1 -1
  47. package/es/plugins/custom-cell-style.js +2 -1
  48. package/es/plugins/interface.js +1 -1
  49. package/es/plugins/invert-highlight.js +1 -1
  50. package/es/plugins/list-tree-stick-cell.js +1 -1
  51. package/es/plugins/plugin-manager.js +1 -1
  52. package/es/themes/ARCO.js +1 -1
  53. package/es/themes/BRIGHT.js +1 -1
  54. package/es/vrender.js.map +1 -1
  55. package/package.json +5 -5
package/cjs/ListTable.js CHANGED
@@ -684,7 +684,7 @@ class ListTable extends core_1.BaseTable {
684
684
  if (lastSelectedCellEditor) return lastSelectedCellEditor;
685
685
  Object.values(this.editorManager.cacheLastSelectedCellEditor).forEach((editor => {
686
686
  var _a;
687
- return null === (_a = editor.onEnd) || void 0 === _a ? void 0 : _a.call(editor);
687
+ return null === (_a = null == editor ? void 0 : editor.onEnd) || void 0 === _a ? void 0 : _a.call(editor);
688
688
  })), this.editorManager.cacheLastSelectedCellEditor = {};
689
689
  const define = this.getBodyColumnDefine(col, row);
690
690
  let editor = this.isHeader(col, row) ? null !== (_a = null == define ? void 0 : define.headerEditor) && void 0 !== _a ? _a : this.options.headerEditor : null !== (_b = null == define ? void 0 : define.editor) && void 0 !== _b ? _b : this.options.editor;
@@ -697,7 +697,7 @@ class ListTable extends core_1.BaseTable {
697
697
  table: this
698
698
  });
699
699
  }
700
- return "string" == typeof editor && (editor = editors.get(editor)), this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`] = editor,
700
+ return "string" == typeof editor && (editor = editors.get(editor)), editor && (this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`] = editor),
701
701
  editor;
702
702
  }
703
703
  isHasEditorDefine(col, row) {