vxe-table 3.17.12 → 3.17.14

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 (139) hide show
  1. package/es/locale/lang/ar-EG.js +30 -0
  2. package/es/locale/lang/de-DE.js +30 -0
  3. package/es/locale/lang/en-US.js +42 -12
  4. package/es/locale/lang/es-ES.js +30 -0
  5. package/es/locale/lang/fr-FR.js +30 -0
  6. package/es/locale/lang/hu-HU.js +30 -0
  7. package/es/locale/lang/hy-AM.js +30 -0
  8. package/es/locale/lang/id-ID.js +30 -0
  9. package/es/locale/lang/it-IT.js +30 -0
  10. package/es/locale/lang/ja-JP.js +30 -0
  11. package/es/locale/lang/ko-KR.js +30 -0
  12. package/es/locale/lang/ms-MY.js +30 -0
  13. package/es/locale/lang/nb-NO.js +30 -0
  14. package/es/locale/lang/pt-BR.js +30 -0
  15. package/es/locale/lang/ru-RU.js +30 -0
  16. package/es/locale/lang/th-TH.js +30 -0
  17. package/es/locale/lang/ug-CN.js +30 -0
  18. package/es/locale/lang/uk-UA.js +30 -0
  19. package/es/locale/lang/uz-UZ.js +30 -0
  20. package/es/locale/lang/vi-VN.js +30 -0
  21. package/es/locale/lang/zh-CHT.js +30 -0
  22. package/es/locale/lang/zh-CN.js +32 -0
  23. package/es/style.css +1 -1
  24. package/es/table/module/keyboard/mixin.js +1 -1
  25. package/es/table/src/cell.js +29 -6
  26. package/es/table/src/table.js +15 -1
  27. package/es/ui/index.js +1 -1
  28. package/es/ui/src/log.js +1 -1
  29. package/lib/index.umd.js +87 -7
  30. package/lib/index.umd.min.js +1 -1
  31. package/lib/locale/lang/ar-EG.js +30 -0
  32. package/lib/locale/lang/ar-EG.min.js +1 -1
  33. package/lib/locale/lang/ar-EG.umd.js +30 -0
  34. package/lib/locale/lang/de-DE.js +30 -0
  35. package/lib/locale/lang/de-DE.min.js +1 -1
  36. package/lib/locale/lang/de-DE.umd.js +30 -0
  37. package/lib/locale/lang/en-US.js +42 -12
  38. package/lib/locale/lang/en-US.min.js +1 -1
  39. package/lib/locale/lang/en-US.umd.js +42 -12
  40. package/lib/locale/lang/es-ES.js +30 -0
  41. package/lib/locale/lang/es-ES.min.js +1 -1
  42. package/lib/locale/lang/es-ES.umd.js +30 -0
  43. package/lib/locale/lang/fr-FR.js +30 -0
  44. package/lib/locale/lang/fr-FR.min.js +1 -1
  45. package/lib/locale/lang/fr-FR.umd.js +30 -0
  46. package/lib/locale/lang/hu-HU.js +30 -0
  47. package/lib/locale/lang/hu-HU.min.js +1 -1
  48. package/lib/locale/lang/hu-HU.umd.js +30 -0
  49. package/lib/locale/lang/hy-AM.js +30 -0
  50. package/lib/locale/lang/hy-AM.min.js +1 -1
  51. package/lib/locale/lang/hy-AM.umd.js +30 -0
  52. package/lib/locale/lang/id-ID.js +30 -0
  53. package/lib/locale/lang/id-ID.min.js +1 -1
  54. package/lib/locale/lang/id-ID.umd.js +30 -0
  55. package/lib/locale/lang/it-IT.js +30 -0
  56. package/lib/locale/lang/it-IT.min.js +1 -1
  57. package/lib/locale/lang/it-IT.umd.js +30 -0
  58. package/lib/locale/lang/ja-JP.js +30 -0
  59. package/lib/locale/lang/ja-JP.min.js +1 -1
  60. package/lib/locale/lang/ja-JP.umd.js +30 -0
  61. package/lib/locale/lang/ko-KR.js +30 -0
  62. package/lib/locale/lang/ko-KR.min.js +1 -1
  63. package/lib/locale/lang/ko-KR.umd.js +30 -0
  64. package/lib/locale/lang/ms-MY.js +30 -0
  65. package/lib/locale/lang/ms-MY.min.js +1 -1
  66. package/lib/locale/lang/ms-MY.umd.js +30 -0
  67. package/lib/locale/lang/nb-NO.js +30 -0
  68. package/lib/locale/lang/nb-NO.min.js +1 -1
  69. package/lib/locale/lang/nb-NO.umd.js +30 -0
  70. package/lib/locale/lang/pt-BR.js +30 -0
  71. package/lib/locale/lang/pt-BR.min.js +1 -1
  72. package/lib/locale/lang/pt-BR.umd.js +30 -0
  73. package/lib/locale/lang/ru-RU.js +30 -0
  74. package/lib/locale/lang/ru-RU.min.js +1 -1
  75. package/lib/locale/lang/ru-RU.umd.js +30 -0
  76. package/lib/locale/lang/th-TH.js +30 -0
  77. package/lib/locale/lang/th-TH.min.js +1 -1
  78. package/lib/locale/lang/th-TH.umd.js +30 -0
  79. package/lib/locale/lang/ug-CN.js +30 -0
  80. package/lib/locale/lang/ug-CN.min.js +1 -1
  81. package/lib/locale/lang/ug-CN.umd.js +30 -0
  82. package/lib/locale/lang/uk-UA.js +30 -0
  83. package/lib/locale/lang/uk-UA.min.js +1 -1
  84. package/lib/locale/lang/uk-UA.umd.js +30 -0
  85. package/lib/locale/lang/uz-UZ.js +30 -0
  86. package/lib/locale/lang/uz-UZ.min.js +1 -1
  87. package/lib/locale/lang/uz-UZ.umd.js +30 -0
  88. package/lib/locale/lang/vi-VN.js +30 -0
  89. package/lib/locale/lang/vi-VN.min.js +1 -1
  90. package/lib/locale/lang/vi-VN.umd.js +30 -0
  91. package/lib/locale/lang/zh-CHT.js +30 -0
  92. package/lib/locale/lang/zh-CHT.min.js +1 -1
  93. package/lib/locale/lang/zh-CHT.umd.js +30 -0
  94. package/lib/locale/lang/zh-CN.js +32 -0
  95. package/lib/locale/lang/zh-CN.min.js +1 -1
  96. package/lib/locale/lang/zh-CN.umd.js +32 -0
  97. package/lib/style.css +1 -1
  98. package/lib/table/module/keyboard/mixin.js +1 -1
  99. package/lib/table/module/keyboard/mixin.min.js +1 -1
  100. package/lib/table/src/cell.js +37 -3
  101. package/lib/table/src/cell.min.js +1 -1
  102. package/lib/table/src/table.js +15 -1
  103. package/lib/table/src/table.min.js +1 -1
  104. package/lib/ui/index.js +1 -1
  105. package/lib/ui/index.min.js +1 -1
  106. package/lib/ui/src/log.js +1 -1
  107. package/lib/ui/src/log.min.js +1 -1
  108. package/package.json +1 -1
  109. package/packages/locale/lang/ar-EG.ts +30 -0
  110. package/packages/locale/lang/de-DE.ts +30 -0
  111. package/packages/locale/lang/en-US.ts +42 -12
  112. package/packages/locale/lang/es-ES.ts +30 -0
  113. package/packages/locale/lang/fr-FR.ts +30 -0
  114. package/packages/locale/lang/hu-HU.ts +30 -0
  115. package/packages/locale/lang/hy-AM.ts +30 -0
  116. package/packages/locale/lang/id-ID.ts +30 -0
  117. package/packages/locale/lang/it-IT.ts +30 -0
  118. package/packages/locale/lang/ja-JP.ts +30 -0
  119. package/packages/locale/lang/ko-KR.ts +30 -0
  120. package/packages/locale/lang/ms-MY.ts +30 -0
  121. package/packages/locale/lang/nb-NO.ts +30 -0
  122. package/packages/locale/lang/pt-BR.ts +30 -0
  123. package/packages/locale/lang/ru-RU.ts +30 -0
  124. package/packages/locale/lang/th-TH.ts +30 -0
  125. package/packages/locale/lang/ug-CN.ts +30 -0
  126. package/packages/locale/lang/uk-UA.ts +30 -0
  127. package/packages/locale/lang/uz-UZ.ts +30 -0
  128. package/packages/locale/lang/vi-VN.ts +30 -0
  129. package/packages/locale/lang/zh-CHT.ts +30 -0
  130. package/packages/locale/lang/zh-CN.ts +32 -0
  131. package/packages/table/module/keyboard/mixin.ts +1 -1
  132. package/packages/table/src/cell.ts +30 -6
  133. package/packages/table/src/table.ts +16 -1
  134. /package/es/{iconfont.1755588694607.ttf → iconfont.1756083404568.ttf} +0 -0
  135. /package/es/{iconfont.1755588694607.woff → iconfont.1756083404568.woff} +0 -0
  136. /package/es/{iconfont.1755588694607.woff2 → iconfont.1756083404568.woff2} +0 -0
  137. /package/lib/{iconfont.1755588694607.ttf → iconfont.1756083404568.ttf} +0 -0
  138. /package/lib/{iconfont.1755588694607.woff → iconfont.1756083404568.woff} +0 -0
  139. /package/lib/{iconfont.1755588694607.woff2 → iconfont.1756083404568.woff2} +0 -0
@@ -388,9 +388,14 @@ export const Cell = {
388
388
  groupColumn: (colRest ? colRest.column : null),
389
389
  column,
390
390
  groupValue: groupContent,
391
- children: childList,
391
+ childList,
392
392
  childCount,
393
393
  aggValue: null,
394
+ /**
395
+ * 已废弃
396
+ * @deprecated
397
+ */
398
+ children: childList,
394
399
  /**
395
400
  * 已废弃
396
401
  * @deprecated
@@ -398,7 +403,7 @@ export const Cell = {
398
403
  totalValue: childCount
399
404
  };
400
405
  if (gcSlot) {
401
- return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childCount }, params), h));
406
+ return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childList, childCount }, params), h));
402
407
  }
403
408
  if (mode === 'column' ? field === aggRow.groupField : rowGroupNode) {
404
409
  cellValue = groupContent;
@@ -1120,10 +1125,14 @@ export const Cell = {
1120
1125
  return Cell.renderDeepNodeBtn(h, params, Cell.renderCellEdit(h, params));
1121
1126
  },
1122
1127
  runRenderer(h, params, _vm, isEdit) {
1123
- const { $table, column } = params;
1124
- const { slots, editRender, formatter } = column;
1128
+ const { $table, row, column } = params;
1129
+ const tableReactData = $table;
1130
+ const { isRowGroupStatus } = tableReactData;
1131
+ const { slots, field, editRender, formatter } = column;
1125
1132
  const compConf = renderer.get(editRender.name);
1126
1133
  const rtEdit = compConf ? (compConf.renderTableEdit || compConf.renderEdit) : null;
1134
+ const defaultSlot = slots ? slots.default : null;
1135
+ const gcSlot = slots ? (slots.groupContent || slots['group-content']) : null;
1127
1136
  const cellParams = Object.assign({ $type: '', isEdit }, params);
1128
1137
  if (isEdit) {
1129
1138
  if (slots && slots.edit) {
@@ -1134,8 +1143,22 @@ export const Cell = {
1134
1143
  }
1135
1144
  return [];
1136
1145
  }
1137
- if (slots && slots.default) {
1138
- return renderCellBaseVNs(h, params, $table.callSlot(slots.default, cellParams, h));
1146
+ if (isRowGroupStatus && field && row.isAggregate) {
1147
+ const aggRow = row;
1148
+ const aggregateOpts = $table.computeAggregateOpts;
1149
+ const { mapChildrenField } = aggregateOpts;
1150
+ const groupField = aggRow.groupField;
1151
+ const groupContent = aggRow.groupContent;
1152
+ const childList = mapChildrenField ? (aggRow[mapChildrenField] || []) : [];
1153
+ const childCount = aggRow.childCount;
1154
+ if (gcSlot) {
1155
+ return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childList, childCount }, params), h));
1156
+ }
1157
+ }
1158
+ else {
1159
+ if (defaultSlot) {
1160
+ return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, cellParams, h));
1161
+ }
1139
1162
  }
1140
1163
  if (formatter) {
1141
1164
  return renderCellBaseVNs(h, params, [
@@ -1464,6 +1464,12 @@ export default {
1464
1464
  if (props.resizable) {
1465
1465
  warnLog('vxe.error.delProp', ['resizable', 'column-config.resizable']);
1466
1466
  }
1467
+ if (props.virtualXConfig && props.scrollX) {
1468
+ warnLog('vxe.error.notSupportProp', ['virtual-x-config', 'scroll-x', 'scroll-x=null']);
1469
+ }
1470
+ if (props.virtualYConfig && props.scrollY) {
1471
+ warnLog('vxe.error.notSupportProp', ['virtual-y-config', 'scroll-y', 'scroll-y=null']);
1472
+ }
1467
1473
  // if (props.scrollY) {
1468
1474
  // warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
1469
1475
  // }
@@ -1550,7 +1556,15 @@ export default {
1550
1556
  errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
1551
1557
  }
1552
1558
  if (checkboxOpts.halfField) {
1553
- warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
1559
+ errLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
1560
+ }
1561
+ if (treeConfig) {
1562
+ XEUtils.arrayEach(['rowField', 'parentField', 'childrenField', 'hasChildField', 'mapChildrenField'], key => {
1563
+ const val = treeOpts[key];
1564
+ if (val && val.indexOf('.') > -1) {
1565
+ errLog('vxe.error.errProp', [`${key}=${val}`, `${key}=${val.split('.')[0]}`]);
1566
+ }
1567
+ });
1554
1568
  }
1555
1569
  // 在 v3.0 中废弃 context-menu
1556
1570
  if (this.contextMenu) {
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.17.12";
3
+ export const version = "3.17.14";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
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${"3.17.12"}`;
3
+ const version = `table v${"3.17.14"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -3234,7 +3234,7 @@ function getClass(property, params) {
3234
3234
  ;// ./packages/ui/index.ts
3235
3235
 
3236
3236
 
3237
- const version = "3.17.12";
3237
+ const version = "3.17.14";
3238
3238
  core_.VxeUI.version = version;
3239
3239
  core_.VxeUI.tableVersion = version;
3240
3240
  core_.VxeUI.setConfig({
@@ -3918,7 +3918,7 @@ var es_iterator_map = __webpack_require__(1701);
3918
3918
  const {
3919
3919
  log: log_log
3920
3920
  } = core_.VxeUI;
3921
- const log_version = `table v${"3.17.12"}`;
3921
+ const log_version = `table v${"3.17.14"}`;
3922
3922
  const warnLog = log_log.create('warn', log_version);
3923
3923
  const errLog = log_log.create('error', log_version);
3924
3924
  ;// ./packages/table/src/columnInfo.ts
@@ -5372,9 +5372,14 @@ const Cell = {
5372
5372
  groupColumn: colRest ? colRest.column : null,
5373
5373
  column,
5374
5374
  groupValue: groupContent,
5375
- children: childList,
5375
+ childList,
5376
5376
  childCount,
5377
5377
  aggValue: null,
5378
+ /**
5379
+ * 已废弃
5380
+ * @deprecated
5381
+ */
5382
+ children: childList,
5378
5383
  /**
5379
5384
  * 已废弃
5380
5385
  * @deprecated
@@ -5385,6 +5390,7 @@ const Cell = {
5385
5390
  return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({
5386
5391
  groupField,
5387
5392
  groupContent,
5393
+ childList,
5388
5394
  childCount
5389
5395
  }, params), h));
5390
5396
  }
@@ -6276,15 +6282,23 @@ const Cell = {
6276
6282
  runRenderer(h, params, _vm, isEdit) {
6277
6283
  const {
6278
6284
  $table,
6285
+ row,
6279
6286
  column
6280
6287
  } = params;
6288
+ const tableReactData = $table;
6289
+ const {
6290
+ isRowGroupStatus
6291
+ } = tableReactData;
6281
6292
  const {
6282
6293
  slots,
6294
+ field,
6283
6295
  editRender,
6284
6296
  formatter
6285
6297
  } = column;
6286
6298
  const compConf = cell_renderer.get(editRender.name);
6287
6299
  const rtEdit = compConf ? compConf.renderTableEdit || compConf.renderEdit : null;
6300
+ const defaultSlot = slots ? slots.default : null;
6301
+ const gcSlot = slots ? slots.groupContent || slots['group-content'] : null;
6288
6302
  const cellParams = Object.assign({
6289
6303
  $type: '',
6290
6304
  isEdit
@@ -6298,8 +6312,28 @@ const Cell = {
6298
6312
  }
6299
6313
  return [];
6300
6314
  }
6301
- if (slots && slots.default) {
6302
- return renderCellBaseVNs(h, params, $table.callSlot(slots.default, cellParams, h));
6315
+ if (isRowGroupStatus && field && row.isAggregate) {
6316
+ const aggRow = row;
6317
+ const aggregateOpts = $table.computeAggregateOpts;
6318
+ const {
6319
+ mapChildrenField
6320
+ } = aggregateOpts;
6321
+ const groupField = aggRow.groupField;
6322
+ const groupContent = aggRow.groupContent;
6323
+ const childList = mapChildrenField ? aggRow[mapChildrenField] || [] : [];
6324
+ const childCount = aggRow.childCount;
6325
+ if (gcSlot) {
6326
+ return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({
6327
+ groupField,
6328
+ groupContent,
6329
+ childList,
6330
+ childCount
6331
+ }, params), h));
6332
+ }
6333
+ } else {
6334
+ if (defaultSlot) {
6335
+ return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, cellParams, h));
6336
+ }
6303
6337
  }
6304
6338
  if (formatter) {
6305
6339
  return renderCellBaseVNs(h, params, [h('span', {
@@ -28498,7 +28532,7 @@ function handleMoveSelected($xeTable, evnt, args, isLeftArrow, isUpArrow, isRigh
28498
28532
  let isMouseScrollDown = false;
28499
28533
  let mouseScrollSpaceSize = 1;
28500
28534
  const triggerEvent = (type, evnt) => {
28501
- this.emitEvent(`checkbox-range-${type}`, {
28535
+ this.dispatchEvent(`checkbox-range-${type}`, {
28502
28536
  records: () => this.getCheckboxRecords(),
28503
28537
  reserves: () => this.getCheckboxReserveRecords()
28504
28538
  }, evnt);
@@ -31321,6 +31355,12 @@ function renderBody(h, $xeTable) {
31321
31355
  if (props.resizable) {
31322
31356
  warnLog('vxe.error.delProp', ['resizable', 'column-config.resizable']);
31323
31357
  }
31358
+ if (props.virtualXConfig && props.scrollX) {
31359
+ warnLog('vxe.error.notSupportProp', ['virtual-x-config', 'scroll-x', 'scroll-x=null']);
31360
+ }
31361
+ if (props.virtualYConfig && props.scrollY) {
31362
+ warnLog('vxe.error.notSupportProp', ['virtual-y-config', 'scroll-y', 'scroll-y=null']);
31363
+ }
31324
31364
  // if (props.scrollY) {
31325
31365
  // warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
31326
31366
  // }
@@ -31407,7 +31447,15 @@ function renderBody(h, $xeTable) {
31407
31447
  errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
31408
31448
  }
31409
31449
  if (checkboxOpts.halfField) {
31410
- warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
31450
+ errLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
31451
+ }
31452
+ if (treeConfig) {
31453
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(['rowField', 'parentField', 'childrenField', 'hasChildField', 'mapChildrenField'], key => {
31454
+ const val = treeOpts[key];
31455
+ if (val && val.indexOf('.') > -1) {
31456
+ errLog('vxe.error.errProp', [`${key}=${val}`, `${key}=${val.split('.')[0]}`]);
31457
+ }
31458
+ });
31411
31459
  }
31412
31460
  // 在 v3.0 中废弃 context-menu
31413
31461
  if (this.contextMenu) {
@@ -36207,6 +36255,7 @@ const Toolbar = VxeToolbar;
36207
36255
  coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
36208
36256
  uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
36209
36257
  repeatKey: '主键重复 {0}="{1}",这可能会出现错误',
36258
+ repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
36210
36259
  delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
36211
36260
  delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
36212
36261
  delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
@@ -36699,6 +36748,37 @@ const Toolbar = VxeToolbar;
36699
36748
  ss: '秒'
36700
36749
  }
36701
36750
  },
36751
+ gantt: {
36752
+ tFullFormat: {
36753
+ year: '{yy}年',
36754
+ quarter: '{yy}年第{q}季度',
36755
+ month: '{yy}年{M}月',
36756
+ week: '{yy}年第{W}周',
36757
+ day: '{yy}年{M}月{E}日',
36758
+ date: '{yy}年{M}月{d}日',
36759
+ hour: '{yy}年 {M}月{d}日{H}时',
36760
+ minute: '{yy}年{M}月{d}日{H}时{m}分'
36761
+ },
36762
+ tSimpleFormat: {
36763
+ year: '{yy}年',
36764
+ quarter: '{q}季度',
36765
+ month: '{M}月',
36766
+ week: '{W}周',
36767
+ day: '{d}',
36768
+ date: '{d}',
36769
+ hour: '{H}时',
36770
+ minute: '{m}分'
36771
+ },
36772
+ dayss: {
36773
+ w0: '日',
36774
+ w1: '一',
36775
+ w2: '二',
36776
+ w3: '三',
36777
+ w4: '四',
36778
+ w5: '五',
36779
+ w6: '六'
36780
+ }
36781
+ },
36702
36782
  plugins: {
36703
36783
  extendCellArea: {
36704
36784
  area: {