vxe-table 4.23.13 → 4.23.15

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 (52) hide show
  1. package/dist/all.esm.js +36 -20
  2. package/dist/all.esm.min.js +3 -3
  3. package/es/colgroup/index.d.ts +18 -18
  4. package/es/column/index.d.ts +18 -18
  5. package/es/grid/index.d.ts +170 -170
  6. package/es/grid/src/grid.d.ts +27 -27
  7. package/es/grid/src/props.d.ts +1 -1
  8. package/es/table/index.d.ts +162 -162
  9. package/es/table/src/column.d.ts +3 -3
  10. package/es/table/src/footer.d.ts +2 -2
  11. package/es/table/src/group.d.ts +3 -3
  12. package/es/table/src/header.d.ts +2 -2
  13. package/es/table/src/header.js +32 -17
  14. package/es/table/src/props.d.ts +1 -1
  15. package/es/table/src/table.d.ts +26 -26
  16. package/es/table/src/util.d.ts +1 -1
  17. package/es/ui/index.js +3 -2
  18. package/es/ui/src/dom.d.ts +1 -1
  19. package/es/ui/src/log.js +1 -1
  20. package/es/ui/src/vn.d.ts +2 -2
  21. package/lib/colgroup/index.d.ts +18 -18
  22. package/lib/column/index.d.ts +18 -18
  23. package/lib/grid/index.d.ts +170 -170
  24. package/lib/grid/src/grid.d.ts +27 -27
  25. package/lib/grid/src/props.d.ts +1 -1
  26. package/lib/index.umd.js +36 -20
  27. package/lib/index.umd.min.js +3 -3
  28. package/lib/table/index.d.ts +162 -162
  29. package/lib/table/src/column.d.ts +3 -3
  30. package/lib/table/src/footer.d.ts +2 -2
  31. package/lib/table/src/group.d.ts +3 -3
  32. package/lib/table/src/header.d.ts +2 -2
  33. package/lib/table/src/header.js +32 -17
  34. package/lib/table/src/props.d.ts +1 -1
  35. package/lib/table/src/table.d.ts +26 -26
  36. package/lib/table/src/util.d.ts +1 -1
  37. package/lib/ui/index.js +3 -2
  38. package/lib/ui/src/dom.d.ts +1 -1
  39. package/lib/ui/src/log.js +1 -1
  40. package/lib/ui/src/vn.d.ts +2 -2
  41. package/package.json +7 -7
  42. package/packages/table/src/header.ts +37 -18
  43. package/packages/ui/index.ts +2 -1
  44. /package/dist/{iconfont.1793627868721.ttf → iconfont.1793861614058.ttf} +0 -0
  45. /package/dist/{iconfont.1793627868721.woff → iconfont.1793861614058.woff} +0 -0
  46. /package/dist/{iconfont.1793627868721.woff2 → iconfont.1793861614058.woff2} +0 -0
  47. /package/es/{iconfont.1793627868721.ttf → iconfont.1793861614058.ttf} +0 -0
  48. /package/es/{iconfont.1793627868721.woff → iconfont.1793861614058.woff} +0 -0
  49. /package/es/{iconfont.1793627868721.woff2 → iconfont.1793861614058.woff2} +0 -0
  50. /package/lib/{iconfont.1793627868721.ttf → iconfont.1793861614058.ttf} +0 -0
  51. /package/lib/{iconfont.1793627868721.woff → iconfont.1793861614058.woff} +0 -0
  52. /package/lib/{iconfont.1793627868721.woff2 → iconfont.1793861614058.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -123,7 +123,7 @@ function getDefaultConfig(val1, def1) {
123
123
  }
124
124
 
125
125
  // packages_temp/ui/index.ts
126
- var version = "4.23.13";
126
+ var version = "4.23.15";
127
127
  VxeUI2.version = version;
128
128
  VxeUI2.tableVersion = version;
129
129
  VxeUI2.setConfig({
@@ -290,7 +290,8 @@ VxeUI2.setConfig({
290
290
  maxHeight: 320
291
291
  },
292
292
  floatingFilterConfig: {
293
- // enabled: false
293
+ // enabled: false,
294
+ padding: true
294
295
  },
295
296
  aggregateConfig: {
296
297
  padding: true,
@@ -952,7 +953,7 @@ function getPopupAppendElement(appendTo) {
952
953
  // packages_temp/ui/src/log.ts
953
954
  import { VxeUI as VxeUI3 } from "@vxe-ui/core";
954
955
  var { log } = VxeUI3;
955
- var tableVersion = `table v${"4.23.13"}`;
956
+ var tableVersion = `table v${"4.23.15"}`;
956
957
  function createComponentLog(name) {
957
958
  const uiVersion = VxeUI3.uiVersion ? `ui v${VxeUI3.uiVersion}` : "";
958
959
  const ganttVersion = VxeUI3.ganttVersion ? `gantt v${VxeUI3.ganttVersion}` : "";
@@ -5786,7 +5787,12 @@ var header_default = (
5786
5787
  const flCompConf = isEnableConf(filterRender) && filterRender.name ? rendererOpts[filterRender.name] || renderer4.get(filterRender.name) : null;
5787
5788
  const rtFloatingFilter = flCompConf ? flCompConf.renderTableFloatingFilter : null;
5788
5789
  const fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
5789
- const isPadding = XEUtils9.isBoolean(headerCellOpts.padding) ? headerCellOpts.padding : cellOpts.padding;
5790
+ const cellPadding = getDefaultConfig(headerCellOpts.padding, cellOpts.padding);
5791
+ const isAllCellPadding = cellPadding === true;
5792
+ const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false;
5793
+ const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false;
5794
+ const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false;
5795
+ const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false;
5790
5796
  const headOverflow = XEUtils9.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
5791
5797
  const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : "") || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : "") || allAlign;
5792
5798
  const showEllipsis = headOverflow === "ellipsis";
@@ -5841,8 +5847,13 @@ var header_default = (
5841
5847
  "col--fixed": column.fixed,
5842
5848
  "col--ellipsis": hasEllipsis,
5843
5849
  "fixed--width": !isAutoCellWidth,
5844
- "is--padding": isPadding,
5850
+ "is--pg-top": isCellPaddingTop,
5851
+ "is--pg-bottom": isCellPaddingBottom,
5852
+ "is--pg-left": isCellPaddingLeft,
5853
+ "is--pg-right": isCellPaddingRight,
5845
5854
  "is--sortable": column.sortable,
5855
+ "col--filter": !!filters,
5856
+ "is--filter-active": hasFilter,
5846
5857
  "col--current": currColFlag && currentCol === column
5847
5858
  }
5848
5859
  ],
@@ -5883,28 +5894,33 @@ var header_default = (
5883
5894
  const { fixedType } = props;
5884
5895
  const { headerRowClassName, headerRowStyle } = tableProps;
5885
5896
  const floatingFilterOpts = computeFloatingFilterOpts.value;
5886
- const rowVNs = headerGroups.map((cols, _rowIndex) => {
5897
+ const isFFEnabled = floatingFilterOpts.enabled;
5898
+ const isFFTop = floatingFilterOpts.position === "top";
5899
+ const rowVNs = [];
5900
+ if (isFFEnabled && isFFTop) {
5901
+ rowVNs.push(
5902
+ h5("tr", {
5903
+ key: "fft",
5904
+ class: ["vxe-header--row is--floating-filters", "" + (floatingFilterOpts.rowClassName || "")]
5905
+ }, renderFilterRows(isOptimizeMode, renderColumnList))
5906
+ );
5907
+ }
5908
+ headerGroups.forEach((cols, _rowIndex) => {
5887
5909
  const params = { $table: $xeTable, rowIndex: _rowIndex, _rowIndex, $rowIndex: _rowIndex, fixed: fixedType, type: renderType2 };
5888
- return h5(
5889
- "tr",
5890
- {
5910
+ rowVNs.push(
5911
+ h5("tr", {
5891
5912
  key: _rowIndex,
5892
5913
  class: ["vxe-header--row", headerRowClassName ? XEUtils9.isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName : ""],
5893
5914
  style: headerRowStyle ? XEUtils9.isFunction(headerRowStyle) ? headerRowStyle(params) : headerRowStyle : null
5894
- },
5895
- renderRows(isGroup, isOptimizeMode, headerGroups, _rowIndex, cols)
5915
+ }, renderRows(isGroup, isOptimizeMode, headerGroups, _rowIndex, cols))
5896
5916
  );
5897
5917
  });
5898
- if (floatingFilterOpts.enabled) {
5918
+ if (isFFEnabled && !isFFTop) {
5899
5919
  rowVNs.push(
5900
- h5(
5901
- "tr",
5902
- {
5903
- key: "ff",
5904
- class: ["vxe-header--row is--floating-filters", "" + (floatingFilterOpts.rowClassName || "")]
5905
- },
5906
- renderFilterRows(isOptimizeMode, renderColumnList)
5907
- )
5920
+ h5("tr", {
5921
+ key: "ffb",
5922
+ class: ["vxe-header--row is--floating-filters", "" + (floatingFilterOpts.rowClassName || "")]
5923
+ }, renderFilterRows(isOptimizeMode, renderColumnList))
5908
5924
  );
5909
5925
  }
5910
5926
  return rowVNs;