vxe-table 3.19.22 → 3.19.25

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 (40) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/src/methods.js +11 -4
  6. package/es/toolbar/src/toolbar.js +103 -81
  7. package/es/toolbar/style.css +11 -4
  8. package/es/toolbar/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/es/vxe-toolbar/style.css +11 -4
  12. package/es/vxe-toolbar/style.min.css +1 -1
  13. package/lib/index.css +1 -1
  14. package/lib/index.min.css +1 -1
  15. package/lib/index.umd.js +133 -111
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/style.min.css +1 -1
  19. package/lib/table/src/methods.js +11 -4
  20. package/lib/table/src/methods.min.js +1 -1
  21. package/lib/toolbar/src/toolbar.js +127 -105
  22. package/lib/toolbar/src/toolbar.min.js +1 -1
  23. package/lib/toolbar/style/style.css +11 -4
  24. package/lib/toolbar/style/style.min.css +1 -1
  25. package/lib/ui/index.js +1 -1
  26. package/lib/ui/index.min.js +1 -1
  27. package/lib/ui/src/log.js +1 -1
  28. package/lib/ui/src/log.min.js +1 -1
  29. package/lib/vxe-toolbar/style/style.css +11 -4
  30. package/lib/vxe-toolbar/style/style.min.css +1 -1
  31. package/package.json +2 -3
  32. package/packages/table/src/methods.ts +20 -9
  33. package/packages/toolbar/src/toolbar.ts +117 -83
  34. package/styles/components/toolbar.scss +11 -4
  35. /package/es/{iconfont.1764380622607.ttf → iconfont.1764811551687.ttf} +0 -0
  36. /package/es/{iconfont.1764380622607.woff → iconfont.1764811551687.woff} +0 -0
  37. /package/es/{iconfont.1764380622607.woff2 → iconfont.1764811551687.woff2} +0 -0
  38. /package/lib/{iconfont.1764380622607.ttf → iconfont.1764811551687.ttf} +0 -0
  39. /package/lib/{iconfont.1764380622607.woff → iconfont.1764811551687.woff} +0 -0
  40. /package/lib/{iconfont.1764380622607.woff2 → iconfont.1764811551687.woff2} +0 -0
@@ -4926,8 +4926,8 @@ function handleRowExpandScroll($xeTable) {
4926
4926
  }
4927
4927
  }
4928
4928
  function handleColumnVisible(visible) {
4929
- const $xeTable = this;
4930
4929
  return function (fieldOrColumn) {
4930
+ const $xeTable = this;
4931
4931
  let status = false;
4932
4932
  const cols = _xeUtils.default.isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
4933
4933
  cols.forEach(item => {
@@ -8365,7 +8365,7 @@ const tableMethods = {
8365
8365
  },
8366
8366
  handleAggregateSummaryData() {
8367
8367
  const $xeTable = this;
8368
- return updateGroupData($xeTable);
8368
+ return $xeTable.refreshAggregateCalcValues();
8369
8369
  },
8370
8370
  handleTargetLeaveEvent() {
8371
8371
  const $xeTable = this;
@@ -12216,6 +12216,11 @@ const tableMethods = {
12216
12216
  } = reactData;
12217
12217
  return isRowGroupStatus && row && row.isAggregate && childrenField && mapChildrenField ? row[mapChildrenField] || [] : [];
12218
12218
  },
12219
+ refreshAggregateCalcValues() {
12220
+ const $xeTable = this;
12221
+ updateGroupData($xeTable);
12222
+ return $xeTable.$nextTick();
12223
+ },
12219
12224
  isAggregateExpandByRow(row) {
12220
12225
  const $xeTable = this;
12221
12226
  const reactData = $xeTable;
@@ -14077,10 +14082,12 @@ const tableMethods = {
14077
14082
  return getConfig();
14078
14083
  }
14079
14084
  };
14085
+ const tablePrivateMethods = {};
14086
+ const exportMethods = Object.assign({}, tableMethods, tablePrivateMethods);
14080
14087
  // Module methods
14081
14088
  const funcs = 'setFilter,openFilter,clearFilter,saveFilter,saveFilterByEvent,resetFilter,resetFilterByEvent,saveFilterPanel,saveFilterPanelByEvent,resetFilterPanel,resetFilterPanelByEvent,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,getCustomVisible,openCustom,closeCustom,toggleCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',');
14082
14089
  funcs.forEach(name => {
14083
- tableMethods[name] = function (...args) {
14090
+ exportMethods[name] = function (...args) {
14084
14091
  // if (!this[`_${name}`]) {
14085
14092
  // if ('openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').includes(name)) {
14086
14093
  // errLog('vxe.error.reqModule', ['Export'])
@@ -14097,4 +14104,4 @@ funcs.forEach(name => {
14097
14104
  return this[`_${name}`] ? this[`_${name}`](...args) : null;
14098
14105
  };
14099
14106
  });
14100
- var _default = exports.default = tableMethods;
14107
+ var _default = exports.default = exportMethods;