vxe-table 4.7.33 → 4.7.35

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.
@@ -58,6 +58,7 @@ export default [
58
58
  'cell-area-cut',
59
59
  'cell-area-paste',
60
60
  'cell-area-merge',
61
+ 'clear-cell-area-selection',
61
62
  'clear-cell-area-merge',
62
63
  'header-cell-area-selection',
63
64
  'cell-area-selection-invalid',
@@ -4716,10 +4716,12 @@ export default defineComponent({
4716
4716
  }
4717
4717
  if (areaOpts.autoClear) {
4718
4718
  if ($xeTable.clearCellAreas) {
4719
- if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
4719
+ const cellAreas = $xeTable.getCellAreas();
4720
+ if (cellAreas.length && !getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
4720
4721
  tablePrivateMethods.preventEvent(evnt, 'event.clearAreas', {}, () => {
4721
4722
  $xeTable.clearCellAreas();
4722
4723
  $xeTable.clearCopyCellArea();
4724
+ $xeTable.dispatchEvent('clear-cell-area-selection', { cellAreas }, evnt);
4723
4725
  });
4724
4726
  }
4725
4727
  }
package/es/ui/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "4.7.33";
3
+ export const version = "4.7.35";
4
4
  VxeUI.version = version;
5
- VxeUI.tableVersion = "4.7.33";
5
+ VxeUI.tableVersion = "4.7.35";
6
6
  VxeUI.setConfig({
7
7
  emptyCell: ' ',
8
8
  table: {
@@ -292,5 +292,8 @@ export const saveFile = (options) => {
292
292
  export const readFile = (options) => {
293
293
  return VxeUI.readFile(options);
294
294
  };
295
+ export const print = (options) => {
296
+ return VxeUI.print(options);
297
+ };
295
298
  export { VxeUI };
296
299
  export default VxeUI;
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"4.7.33"}`;
3
+ const version = `table v${"4.7.35"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -1707,6 +1707,7 @@ __webpack_require__.d(__webpack_exports__, {
1707
1707
  log: function() { return /* reexport */ log; },
1708
1708
  menus: function() { return /* reexport */ menus; },
1709
1709
  modal: function() { return /* reexport */ modal; },
1710
+ print: function() { return /* reexport */ print; },
1710
1711
  readFile: function() { return /* reexport */ readFile; },
1711
1712
  renderer: function() { return /* reexport */ renderer; },
1712
1713
  saveFile: function() { return /* reexport */ saveFile; },
@@ -1756,6 +1757,7 @@ __webpack_require__.d(components_namespaceObject, {
1756
1757
  log: function() { return log; },
1757
1758
  menus: function() { return menus; },
1758
1759
  modal: function() { return modal; },
1760
+ print: function() { return print; },
1759
1761
  readFile: function() { return readFile; },
1760
1762
  renderer: function() { return renderer; },
1761
1763
  saveFile: function() { return saveFile; },
@@ -1951,9 +1953,9 @@ function eqEmptyValue(cellValue) {
1951
1953
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
1952
1954
 
1953
1955
 
1954
- const version = "4.7.33";
1956
+ const version = "4.7.35";
1955
1957
  core_.VxeUI.version = version;
1956
- core_.VxeUI.tableVersion = "4.7.33";
1958
+ core_.VxeUI.tableVersion = "4.7.35";
1957
1959
  core_.VxeUI.setConfig({
1958
1960
  emptyCell: ' ',
1959
1961
  table: {
@@ -2243,6 +2245,9 @@ const saveFile = options => {
2243
2245
  const readFile = options => {
2244
2246
  return core_.VxeUI.readFile(options);
2245
2247
  };
2248
+ const print = options => {
2249
+ return core_.VxeUI.print(options);
2250
+ };
2246
2251
 
2247
2252
  /* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeUI)));
2248
2253
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
@@ -2254,7 +2259,7 @@ var es_array_push = __webpack_require__(4114);
2254
2259
  const {
2255
2260
  log: log_log
2256
2261
  } = core_.VxeUI;
2257
- const log_version = `table v${"4.7.33"}`;
2262
+ const log_version = `table v${"4.7.35"}`;
2258
2263
  const warnLog = log_log.create('warn', log_version);
2259
2264
  const errLog = log_log.create('error', log_version);
2260
2265
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -6417,7 +6422,7 @@ const {
6417
6422
  params: Object
6418
6423
  });
6419
6424
  ;// CONCATENATED MODULE: ./packages/table/src/emits.ts
6420
- /* harmony default export */ var emits = (['update:data', 'keydown-start', 'keydown', 'keydown-end', 'paste', 'copy', 'cut', 'current-change', 'radio-change', 'checkbox-change', 'checkbox-all', 'checkbox-range-start', 'checkbox-range-change', 'checkbox-range-end', 'checkbox-range-select', 'cell-click', 'cell-dblclick', 'cell-menu', 'cell-mouseenter', 'cell-mouseleave', 'cell-selected', 'cell-delete-value', 'cell-backspace-value', 'header-cell-click', 'header-cell-dblclick', 'header-cell-menu', 'footer-cell-click', 'footer-cell-dblclick', 'footer-cell-menu', 'clear-merge', 'sort-change', 'clear-sort', 'filter-change', 'filter-visible', 'clear-filter', 'resizable-change', 'toggle-row-expand', 'toggle-tree-expand', 'menu-click', 'edit-closed', 'edit-actived', 'edit-activated', 'edit-disabled', 'valid-error', 'scroll', 'custom', 'change-fnr', 'open-fnr', 'show-fnr', 'hide-fnr', 'fnr-change', 'fnr-find', 'fnr-find-all', 'fnr-replace', 'fnr-replace-all', 'cell-area-copy', 'cell-area-cut', 'cell-area-paste', 'cell-area-merge', 'clear-cell-area-merge', 'header-cell-area-selection', 'cell-area-selection-invalid', 'cell-area-selection-start', 'cell-area-selection-drag', 'cell-area-selection-end', 'cell-area-extension-start', 'cell-area-extension-drag', 'cell-area-extension-end', 'cell-area-selection-all-start', 'cell-area-selection-all-end', 'cell-area-arrows-start', 'cell-area-arrows-end', 'active-cell-change-start', 'active-cell-change-end']);
6425
+ /* harmony default export */ var emits = (['update:data', 'keydown-start', 'keydown', 'keydown-end', 'paste', 'copy', 'cut', 'current-change', 'radio-change', 'checkbox-change', 'checkbox-all', 'checkbox-range-start', 'checkbox-range-change', 'checkbox-range-end', 'checkbox-range-select', 'cell-click', 'cell-dblclick', 'cell-menu', 'cell-mouseenter', 'cell-mouseleave', 'cell-selected', 'cell-delete-value', 'cell-backspace-value', 'header-cell-click', 'header-cell-dblclick', 'header-cell-menu', 'footer-cell-click', 'footer-cell-dblclick', 'footer-cell-menu', 'clear-merge', 'sort-change', 'clear-sort', 'filter-change', 'filter-visible', 'clear-filter', 'resizable-change', 'toggle-row-expand', 'toggle-tree-expand', 'menu-click', 'edit-closed', 'edit-actived', 'edit-activated', 'edit-disabled', 'valid-error', 'scroll', 'custom', 'change-fnr', 'open-fnr', 'show-fnr', 'hide-fnr', 'fnr-change', 'fnr-find', 'fnr-find-all', 'fnr-replace', 'fnr-replace-all', 'cell-area-copy', 'cell-area-cut', 'cell-area-paste', 'cell-area-merge', 'clear-cell-area-selection', 'clear-cell-area-merge', 'header-cell-area-selection', 'cell-area-selection-invalid', 'cell-area-selection-start', 'cell-area-selection-drag', 'cell-area-selection-end', 'cell-area-extension-start', 'cell-area-extension-drag', 'cell-area-extension-end', 'cell-area-selection-all-start', 'cell-area-selection-all-end', 'cell-area-arrows-start', 'cell-area-arrows-end', 'active-cell-change-start', 'active-cell-change-end']);
6421
6426
  ;// CONCATENATED MODULE: ./packages/table/module/custom/panel.ts
6422
6427
 
6423
6428
 
@@ -13522,10 +13527,14 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13522
13527
  }
13523
13528
  if (areaOpts.autoClear) {
13524
13529
  if ($xeTable.clearCellAreas) {
13525
- if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
13530
+ const cellAreas = $xeTable.getCellAreas();
13531
+ if (cellAreas.length && !getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
13526
13532
  tablePrivateMethods.preventEvent(evnt, 'event.clearAreas', {}, () => {
13527
13533
  $xeTable.clearCellAreas();
13528
13534
  $xeTable.clearCopyCellArea();
13535
+ $xeTable.dispatchEvent('clear-cell-area-selection', {
13536
+ cellAreas
13537
+ }, evnt);
13529
13538
  });
13530
13539
  }
13531
13540
  }