vxe-table 3.21.0 → 3.21.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 +45 -31
  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 -18
  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 -13
  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 +2 -2
  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 +71 -53
  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.1779330830416.ttf → iconfont.1779447236462.ttf} +0 -0
  147. /package/es/{iconfont.1779330830416.woff → iconfont.1779447236462.woff} +0 -0
  148. /package/es/{iconfont.1779330830416.woff2 → iconfont.1779447236462.woff2} +0 -0
  149. /package/lib/{iconfont.1779330830416.ttf → iconfont.1779447236462.ttf} +0 -0
  150. /package/lib/{iconfont.1779330830416.woff → iconfont.1779447236462.woff} +0 -0
  151. /package/lib/{iconfont.1779330830416.woff2 → iconfont.1779447236462.woff2} +0 -0
@@ -574,7 +574,7 @@ export default {
574
574
  const customPanelInternalData = $xeTableCustomPanel.internalData;
575
575
  const { dragCol } = customPanelReactData;
576
576
  const customOpts = $xeTable.computeCustomOpts;
577
- const { immediate } = customOpts;
577
+ const { showSortDragButton, allowSort, immediate } = customOpts;
578
578
  const columnDragOpts = $xeTable.computeColumnDragOpts;
579
579
  const { isCrossDrag, isToChildDrag } = columnDragOpts;
580
580
  const optEl = evnt.currentTarget;
@@ -589,9 +589,12 @@ export default {
589
589
  const offsetY = evnt.clientY - optEl.getBoundingClientRect().y;
590
590
  const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom';
591
591
  if (!dragCol ||
592
+ !(showSortDragButton && allowSort) ||
592
593
  (dragCol && dragCol.id === column.id) ||
593
594
  (!isCrossDrag && column.level > 1) ||
594
- (!immediate && column.level > 1)) {
595
+ (!immediate && column.level > 1) ||
596
+ (!isCrossDrag && dragCol.level > 1) ||
597
+ (!immediate && dragCol.level > 1)) {
595
598
  showDropTip($xeTableCustomPanel, evnt, optEl, false, dragPos);
596
599
  return;
597
600
  }
@@ -747,7 +750,7 @@ export default {
747
750
  const { immediate } = customOpts;
748
751
  const columnDragOpts = $xeTable.computeColumnDragOpts;
749
752
  const { popupStyle } = customStore;
750
- const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
753
+ const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, allowGroup, allowValues, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
751
754
  const isMaxFixedColumn = $xeTable.computeIsMaxFixedColumn;
752
755
  const vSize = $xeTable.computeSize;
753
756
  const { isCrossDrag } = columnDragOpts;
@@ -826,29 +829,31 @@ export default {
826
829
  h('div', {
827
830
  class: 'vxe-table-custom--name-option'
828
831
  }, [
829
- allowSort && showSortDragButton && showSortBtn
830
- ? h('div', {
831
- class: 'vxe-table-custom--sort-option'
832
- }, [
833
- h('span', {
834
- class: ['vxe-table-custom--sort-btn', {
835
- 'is--disabled': isHidden
836
- }],
837
- attrs: {
838
- title: getI18n('vxe.custom.setting.sortHelpTip')
839
- },
840
- on: isHidden
841
- ? {}
842
- : {
843
- mousedown: $xeTableCustomPanel.sortMousedownEvent,
844
- mouseup: $xeTableCustomPanel.sortMouseupEvent
845
- }
832
+ (allowSort && showSortDragButton) || (allowGroup || allowValues)
833
+ ? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
834
+ ? h('div', {
835
+ class: 'vxe-table-custom--sort-option'
846
836
  }, [
847
- h('i', {
848
- class: getIcon().TABLE_CUSTOM_SORT
849
- })
837
+ h('span', {
838
+ class: ['vxe-table-custom--sort-btn', {
839
+ 'is--disabled': isHidden
840
+ }],
841
+ attrs: {
842
+ title: getI18n('vxe.custom.setting.sortHelpTip')
843
+ },
844
+ on: isHidden
845
+ ? {}
846
+ : {
847
+ mousedown: $xeTableCustomPanel.sortMousedownEvent,
848
+ mouseup: $xeTableCustomPanel.sortMouseupEvent
849
+ }
850
+ }, [
851
+ h('i', {
852
+ class: getIcon().TABLE_CUSTOM_SORT
853
+ })
854
+ ])
850
855
  ])
851
- ])
856
+ : renderEmptyElement($xeTable))
852
857
  : renderEmptyElement($xeTable),
853
858
  column.type === 'html'
854
859
  ? h('div', {
@@ -1134,9 +1139,10 @@ export default {
1134
1139
  const { treeConfig, rowGroupConfig, aggregateConfig, resizable: allResizable } = tableProps;
1135
1140
  const { isCustomStatus, customColumnList } = tableReactData;
1136
1141
  const customOpts = $xeTable.computeCustomOpts;
1137
- const { immediate, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
1138
1142
  const columnDragOpts = $xeTable.computeColumnDragOpts;
1139
- const { mode, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, checkMethod, visibleMethod } = customOpts;
1143
+ const aggregateOpts = $xeTable.computeAggregateOpts;
1144
+ const { placement: aggPlacement } = aggregateOpts;
1145
+ const { mode, immediate, showSortDragButton, showSortMoveButton, showSortPutButton, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts;
1140
1146
  const columnOpts = $xeTable.computeColumnOpts;
1141
1147
  const { maxFixedSize } = columnOpts;
1142
1148
  const resizableOpts = $xeTable.computeResizableOpts;
@@ -1154,6 +1160,7 @@ export default {
1154
1160
  const trVNs = [];
1155
1161
  const isAllChecked = customStore.isAll;
1156
1162
  const isAllIndeterminate = customStore.isIndeterminate;
1163
+ const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom';
1157
1164
  const params = {
1158
1165
  $table: $xeTable,
1159
1166
  $grid: $xeGrid,
@@ -1238,8 +1245,8 @@ export default {
1238
1245
  h('div', {
1239
1246
  class: 'vxe-table-custom-popup--name'
1240
1247
  }, [
1241
- allowSort
1242
- ? showSortDragButton && (showSortBtn
1248
+ (allowSort && showSortDragButton) || (allowGroup || allowValues)
1249
+ ? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
1243
1250
  ? h('div', {
1244
1251
  class: ['vxe-table-custom-popup--column-sort-btn', {
1245
1252
  'is--disabled': isHidden
@@ -1409,11 +1416,11 @@ export default {
1409
1416
  default: () => {
1410
1417
  return h('div', {
1411
1418
  ref: 'refBodyWrapperElem',
1412
- class: 'vxe-table-custom-popup--body-wrapper'
1419
+ class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`]
1413
1420
  }, defaultSlot
1414
1421
  ? $xeTable.callSlot(defaultSlot, params, h)
1415
1422
  : [
1416
- !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1423
+ !isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1417
1424
  ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1418
1425
  props: {
1419
1426
  customStore
@@ -1502,7 +1509,14 @@ export default {
1502
1509
  }, $xeTable.callSlot(bottomSlot, params, h))
1503
1510
  : renderEmptyElement($xeTable),
1504
1511
  $xeTableCustomPanel.renderDragTip(h)
1505
- ])
1512
+ ]),
1513
+ isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1514
+ ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1515
+ props: {
1516
+ customStore
1517
+ }
1518
+ })
1519
+ : renderEmptyElement($xeTable)
1506
1520
  ]);
1507
1521
  },
1508
1522
  footer: () => {
@@ -1706,7 +1706,7 @@ export default {
1706
1706
  warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
1707
1707
  }
1708
1708
  if (mouseOpts.area && (props.treeConfig && !treeOpts.transform)) {
1709
- errLog('vxe.error.noTree', ['mouse-config.area']);
1709
+ errLog('vxe.error.notSupportProp', ['mouse-config.area', 'tree-config.transform=false', 'tree-config.transform=true']);
1710
1710
  }
1711
1711
  if (props.editConfig && editOpts.activeMethod) {
1712
1712
  warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.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;