vxe-table 4.19.0 → 4.19.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.
Files changed (151) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/locale/lang/ar-EG.js +4 -2
  4. package/es/locale/lang/de-DE.js +4 -2
  5. package/es/locale/lang/en-US.js +4 -2
  6. package/es/locale/lang/es-ES.js +4 -2
  7. package/es/locale/lang/fr-FR.js +4 -2
  8. package/es/locale/lang/hu-HU.js +4 -2
  9. package/es/locale/lang/hy-AM.js +4 -2
  10. package/es/locale/lang/id-ID.js +4 -2
  11. package/es/locale/lang/it-IT.js +4 -2
  12. package/es/locale/lang/ja-JP.js +4 -2
  13. package/es/locale/lang/ko-KR.js +4 -2
  14. package/es/locale/lang/ms-MY.js +4 -2
  15. package/es/locale/lang/nb-NO.js +4 -2
  16. package/es/locale/lang/pt-BR.js +4 -2
  17. package/es/locale/lang/ru-RU.js +4 -2
  18. package/es/locale/lang/th-TH.js +4 -2
  19. package/es/locale/lang/ug-CN.js +4 -2
  20. package/es/locale/lang/uk-UA.js +4 -2
  21. package/es/locale/lang/uz-UZ.js +4 -2
  22. package/es/locale/lang/vi-VN.js +4 -2
  23. package/es/locale/lang/zh-CHT.js +4 -2
  24. package/es/locale/lang/zh-CN.js +4 -2
  25. package/es/style.css +1 -1
  26. package/es/style.min.css +1 -1
  27. package/es/table/module/custom/panel.js +39 -27
  28. package/es/table/src/table.js +1 -1
  29. package/es/table/style.css +4 -1
  30. package/es/table/style.min.css +1 -1
  31. package/es/ui/index.js +2 -1
  32. package/es/ui/src/log.js +1 -1
  33. package/es/vxe-table/style.css +4 -1
  34. package/es/vxe-table/style.min.css +1 -1
  35. package/lib/index.css +1 -1
  36. package/lib/index.min.css +1 -1
  37. package/lib/index.umd.js +34 -19
  38. package/lib/index.umd.min.js +1 -1
  39. package/lib/locale/lang/ar-EG.js +4 -2
  40. package/lib/locale/lang/ar-EG.min.js +1 -1
  41. package/lib/locale/lang/ar-EG.umd.js +4 -2
  42. package/lib/locale/lang/de-DE.js +4 -2
  43. package/lib/locale/lang/de-DE.min.js +1 -1
  44. package/lib/locale/lang/de-DE.umd.js +4 -2
  45. package/lib/locale/lang/en-US.js +4 -2
  46. package/lib/locale/lang/en-US.min.js +1 -1
  47. package/lib/locale/lang/en-US.umd.js +4 -2
  48. package/lib/locale/lang/es-ES.js +4 -2
  49. package/lib/locale/lang/es-ES.min.js +1 -1
  50. package/lib/locale/lang/es-ES.umd.js +4 -2
  51. package/lib/locale/lang/fr-FR.js +4 -2
  52. package/lib/locale/lang/fr-FR.min.js +1 -1
  53. package/lib/locale/lang/fr-FR.umd.js +4 -2
  54. package/lib/locale/lang/hu-HU.js +4 -2
  55. package/lib/locale/lang/hu-HU.min.js +1 -1
  56. package/lib/locale/lang/hu-HU.umd.js +4 -2
  57. package/lib/locale/lang/hy-AM.js +4 -2
  58. package/lib/locale/lang/hy-AM.min.js +1 -1
  59. package/lib/locale/lang/hy-AM.umd.js +4 -2
  60. package/lib/locale/lang/id-ID.js +4 -2
  61. package/lib/locale/lang/id-ID.min.js +1 -1
  62. package/lib/locale/lang/id-ID.umd.js +4 -2
  63. package/lib/locale/lang/it-IT.js +4 -2
  64. package/lib/locale/lang/it-IT.min.js +1 -1
  65. package/lib/locale/lang/it-IT.umd.js +4 -2
  66. package/lib/locale/lang/ja-JP.js +4 -2
  67. package/lib/locale/lang/ja-JP.min.js +1 -1
  68. package/lib/locale/lang/ja-JP.umd.js +4 -2
  69. package/lib/locale/lang/ko-KR.js +4 -2
  70. package/lib/locale/lang/ko-KR.min.js +1 -1
  71. package/lib/locale/lang/ko-KR.umd.js +4 -2
  72. package/lib/locale/lang/ms-MY.js +4 -2
  73. package/lib/locale/lang/ms-MY.min.js +1 -1
  74. package/lib/locale/lang/ms-MY.umd.js +4 -2
  75. package/lib/locale/lang/nb-NO.js +4 -2
  76. package/lib/locale/lang/nb-NO.min.js +1 -1
  77. package/lib/locale/lang/nb-NO.umd.js +4 -2
  78. package/lib/locale/lang/pt-BR.js +4 -2
  79. package/lib/locale/lang/pt-BR.min.js +1 -1
  80. package/lib/locale/lang/pt-BR.umd.js +4 -2
  81. package/lib/locale/lang/ru-RU.js +4 -2
  82. package/lib/locale/lang/ru-RU.min.js +1 -1
  83. package/lib/locale/lang/ru-RU.umd.js +4 -2
  84. package/lib/locale/lang/th-TH.js +4 -2
  85. package/lib/locale/lang/th-TH.min.js +1 -1
  86. package/lib/locale/lang/th-TH.umd.js +4 -2
  87. package/lib/locale/lang/ug-CN.js +4 -2
  88. package/lib/locale/lang/ug-CN.min.js +1 -1
  89. package/lib/locale/lang/ug-CN.umd.js +4 -2
  90. package/lib/locale/lang/uk-UA.js +4 -2
  91. package/lib/locale/lang/uk-UA.min.js +1 -1
  92. package/lib/locale/lang/uk-UA.umd.js +4 -2
  93. package/lib/locale/lang/uz-UZ.js +4 -2
  94. package/lib/locale/lang/uz-UZ.min.js +1 -1
  95. package/lib/locale/lang/uz-UZ.umd.js +4 -2
  96. package/lib/locale/lang/vi-VN.js +4 -2
  97. package/lib/locale/lang/vi-VN.min.js +1 -1
  98. package/lib/locale/lang/vi-VN.umd.js +4 -2
  99. package/lib/locale/lang/zh-CHT.js +4 -2
  100. package/lib/locale/lang/zh-CHT.min.js +1 -1
  101. package/lib/locale/lang/zh-CHT.umd.js +4 -2
  102. package/lib/locale/lang/zh-CN.js +4 -2
  103. package/lib/locale/lang/zh-CN.min.js +1 -1
  104. package/lib/locale/lang/zh-CN.umd.js +4 -2
  105. package/lib/style.css +1 -1
  106. package/lib/style.min.css +1 -1
  107. package/lib/table/module/custom/panel.js +26 -14
  108. package/lib/table/module/custom/panel.min.js +1 -1
  109. package/lib/table/src/table.js +1 -1
  110. package/lib/table/src/table.min.js +1 -1
  111. package/lib/table/style/style.css +4 -1
  112. package/lib/table/style/style.min.css +1 -1
  113. package/lib/ui/index.js +2 -1
  114. package/lib/ui/index.min.js +1 -1
  115. package/lib/ui/src/log.js +1 -1
  116. package/lib/ui/src/log.min.js +1 -1
  117. package/lib/vxe-table/style/style.css +4 -1
  118. package/lib/vxe-table/style/style.min.css +1 -1
  119. package/package.json +1 -1
  120. package/packages/locale/lang/ar-EG.ts +4 -2
  121. package/packages/locale/lang/de-DE.ts +4 -2
  122. package/packages/locale/lang/en-US.ts +4 -2
  123. package/packages/locale/lang/es-ES.ts +4 -2
  124. package/packages/locale/lang/fr-FR.ts +4 -2
  125. package/packages/locale/lang/hu-HU.ts +4 -2
  126. package/packages/locale/lang/hy-AM.ts +4 -2
  127. package/packages/locale/lang/id-ID.ts +4 -2
  128. package/packages/locale/lang/it-IT.ts +4 -2
  129. package/packages/locale/lang/ja-JP.ts +4 -2
  130. package/packages/locale/lang/ko-KR.ts +4 -2
  131. package/packages/locale/lang/ms-MY.ts +4 -2
  132. package/packages/locale/lang/nb-NO.ts +4 -2
  133. package/packages/locale/lang/pt-BR.ts +4 -2
  134. package/packages/locale/lang/ru-RU.ts +4 -2
  135. package/packages/locale/lang/th-TH.ts +4 -2
  136. package/packages/locale/lang/ug-CN.ts +4 -2
  137. package/packages/locale/lang/uk-UA.ts +4 -2
  138. package/packages/locale/lang/uz-UZ.ts +4 -2
  139. package/packages/locale/lang/vi-VN.ts +4 -2
  140. package/packages/locale/lang/zh-CHT.ts +4 -2
  141. package/packages/locale/lang/zh-CN.ts +4 -2
  142. package/packages/table/module/custom/panel.ts +66 -50
  143. package/packages/table/src/table.ts +1 -1
  144. package/packages/ui/index.ts +1 -0
  145. package/styles/components/table-module/custom.scss +5 -1
  146. /package/es/{iconfont.1779330847998.ttf → iconfont.1779447258442.ttf} +0 -0
  147. /package/es/{iconfont.1779330847998.woff → iconfont.1779447258442.woff} +0 -0
  148. /package/es/{iconfont.1779330847998.woff2 → iconfont.1779447258442.woff2} +0 -0
  149. /package/lib/{iconfont.1779330847998.ttf → iconfont.1779447258442.ttf} +0 -0
  150. /package/lib/{iconfont.1779330847998.woff → iconfont.1779447258442.woff} +0 -0
  151. /package/lib/{iconfont.1779330847998.woff2 → iconfont.1779447258442.woff2} +0 -0
@@ -34,7 +34,7 @@ export default defineVxeComponent({
34
34
  const VxeUIRadioGroupComponent = VxeUI.getComponent('VxeRadioGroup');
35
35
  const $xeTable = inject('$xeTable', {});
36
36
  const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
37
- const { computeSize, computeCustomOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts } = $xeTable.getComputeMaps();
37
+ const { computeSize, computeCustomOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
38
38
  const refElem = ref();
39
39
  const refBodyWrapperElem = ref();
40
40
  const refCustomBodyElem = ref();
@@ -498,7 +498,7 @@ export default defineVxeComponent({
498
498
  };
499
499
  const sortDragoverEvent = (evnt) => {
500
500
  const customOpts = computeCustomOpts.value;
501
- const { immediate } = customOpts;
501
+ const { showSortDragButton, allowSort, immediate } = customOpts;
502
502
  const columnDragOpts = computeColumnDragOpts.value;
503
503
  const { isCrossDrag, isToChildDrag } = columnDragOpts;
504
504
  const optEl = evnt.currentTarget;
@@ -514,9 +514,12 @@ export default defineVxeComponent({
514
514
  const offsetY = evnt.clientY - optEl.getBoundingClientRect().y;
515
515
  const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom';
516
516
  if (!dragCol ||
517
+ !(showSortDragButton && allowSort) ||
517
518
  (dragCol && dragCol.id === column.id) ||
518
519
  (!isCrossDrag && column.level > 1) ||
519
- (!immediate && column.level > 1)) {
520
+ (!immediate && column.level > 1) ||
521
+ (!isCrossDrag && dragCol.level > 1) ||
522
+ (!immediate && dragCol.level > 1)) {
520
523
  showDropTip(evnt, optEl, false, dragPos);
521
524
  return;
522
525
  }
@@ -648,7 +651,7 @@ export default defineVxeComponent({
648
651
  const { immediate } = customOpts;
649
652
  const columnDragOpts = computeColumnDragOpts.value;
650
653
  const { popupStyle } = customStore;
651
- const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
654
+ const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, allowGroup, allowValues, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
652
655
  const isMaxFixedColumn = computeIsMaxFixedColumn.value;
653
656
  const vSize = computeSize.value;
654
657
  const { isCrossDrag } = columnDragOpts;
@@ -719,23 +722,25 @@ export default defineVxeComponent({
719
722
  h('div', {
720
723
  class: 'vxe-table-custom--name-option'
721
724
  }, [
722
- allowSort && showSortDragButton && showSortBtn
723
- ? h('div', {
724
- class: 'vxe-table-custom--sort-option'
725
- }, [
726
- h('span', Object.assign({ class: ['vxe-table-custom--sort-btn', {
727
- 'is--disabled': isHidden
728
- }], title: getI18n('vxe.custom.setting.sortHelpTip') }, (isHidden
729
- ? {}
730
- : {
731
- onMousedown: sortMousedownEvent,
732
- onMouseup: sortMouseupEvent
733
- })), [
734
- h('i', {
735
- class: getIcon().TABLE_CUSTOM_SORT
736
- })
725
+ (allowSort && showSortDragButton) || (allowGroup || allowValues)
726
+ ? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
727
+ ? h('div', {
728
+ class: 'vxe-table-custom--sort-option'
729
+ }, [
730
+ h('span', Object.assign({ class: ['vxe-table-custom--sort-btn', {
731
+ 'is--disabled': isHidden
732
+ }], title: getI18n('vxe.custom.setting.sortHelpTip') }, (isHidden
733
+ ? {}
734
+ : {
735
+ onMousedown: sortMousedownEvent,
736
+ onMouseup: sortMouseupEvent
737
+ })), [
738
+ h('i', {
739
+ class: getIcon().TABLE_CUSTOM_SORT
740
+ })
741
+ ])
737
742
  ])
738
- ])
743
+ : renderEmptyElement($xeTable))
739
744
  : renderEmptyElement($xeTable),
740
745
  column.type === 'html'
741
746
  ? h('div', {
@@ -968,9 +973,10 @@ export default defineVxeComponent({
968
973
  const { treeConfig, rowGroupConfig, aggregateConfig, resizable: allResizable } = tableProps;
969
974
  const { isCustomStatus, customColumnList } = tableReactData;
970
975
  const customOpts = computeCustomOpts.value;
971
- const { immediate, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
972
976
  const columnDragOpts = computeColumnDragOpts.value;
973
- const { mode, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, checkMethod, visibleMethod } = customOpts;
977
+ const aggregateOpts = computeAggregateOpts.value;
978
+ const { placement: aggPlacement } = aggregateOpts;
979
+ const { mode, immediate, showSortDragButton, showSortMoveButton, showSortPutButton, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts;
974
980
  const columnOpts = computeColumnOpts.value;
975
981
  const { maxFixedSize } = columnOpts;
976
982
  const resizableOpts = computeResizableOpts.value;
@@ -988,6 +994,7 @@ export default defineVxeComponent({
988
994
  const trVNs = [];
989
995
  const isAllChecked = customStore.isAll;
990
996
  const isAllIndeterminate = customStore.isIndeterminate;
997
+ const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom';
991
998
  const params = {
992
999
  $table: $xeTable,
993
1000
  $grid: $xeGrid,
@@ -1064,8 +1071,8 @@ export default defineVxeComponent({
1064
1071
  h('div', {
1065
1072
  class: 'vxe-table-custom-popup--name'
1066
1073
  }, [
1067
- allowSort
1068
- ? showSortDragButton && (showSortBtn
1074
+ (allowSort && showSortDragButton) || (allowGroup || allowValues)
1075
+ ? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
1069
1076
  ? h('div', Object.assign({ class: ['vxe-table-custom-popup--column-sort-btn', {
1070
1077
  'is--disabled': isHidden
1071
1078
  }], title: getI18n('vxe.custom.setting.sortHelpTip') }, (isHidden
@@ -1204,11 +1211,11 @@ export default defineVxeComponent({
1204
1211
  default: () => {
1205
1212
  return h('div', {
1206
1213
  ref: refBodyWrapperElem,
1207
- class: 'vxe-table-custom-popup--body-wrapper'
1214
+ class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`]
1208
1215
  }, defaultSlot
1209
1216
  ? $xeTable.callSlot(defaultSlot, params)
1210
1217
  : [
1211
- !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1218
+ !isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1212
1219
  ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1213
1220
  customStore
1214
1221
  })
@@ -1291,7 +1298,12 @@ export default defineVxeComponent({
1291
1298
  }, $xeTable.callSlot(bottomSlot, params))
1292
1299
  : renderEmptyElement($xeTable),
1293
1300
  renderDragTip()
1294
- ])
1301
+ ]),
1302
+ isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1303
+ ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1304
+ customStore
1305
+ })
1306
+ : renderEmptyElement($xeTable)
1295
1307
  ]);
1296
1308
  },
1297
1309
  footer: () => {
@@ -13886,7 +13886,7 @@ export default defineVxeComponent({
13886
13886
  warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
13887
13887
  }
13888
13888
  if (mouseOpts.area && (props.treeConfig && !treeOpts.transform)) {
13889
- errLog('vxe.error.noTree', ['mouse-config.area']);
13889
+ errLog('vxe.error.notSupportProp', ['mouse-config.area', 'tree-config.transform=false', 'tree-config.transform=true']);
13890
13890
  }
13891
13891
  if (props.editConfig && editOpts.activeMethod) {
13892
13892
  warnLog('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod']);
@@ -1006,11 +1006,14 @@
1006
1006
  .vxe-table-custom-popup--body-wrapper {
1007
1007
  position: relative;
1008
1008
  display: flex;
1009
- flex-direction: column;
1009
+ flex-direction: row;
1010
1010
  overflow: hidden;
1011
1011
  height: 100%;
1012
1012
  outline: 0;
1013
1013
  }
1014
+ .vxe-table-custom-popup--body-wrapper.agg-layout--top, .vxe-table-custom-popup--body-wrapper.agg-layout--bottom {
1015
+ flex-direction: column;
1016
+ }
1014
1017
 
1015
1018
  .vxe-table-custom-popup--handle-wrapper {
1016
1019
  flex-grow: 1;