vxe-table 3.19.17 → 3.19.19

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 (158) 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 +29 -2
  4. package/es/locale/lang/de-DE.js +29 -2
  5. package/es/locale/lang/en-US.js +33 -6
  6. package/es/locale/lang/es-ES.js +29 -2
  7. package/es/locale/lang/fr-FR.js +29 -2
  8. package/es/locale/lang/hu-HU.js +29 -2
  9. package/es/locale/lang/hy-AM.js +29 -2
  10. package/es/locale/lang/id-ID.js +29 -2
  11. package/es/locale/lang/it-IT.js +29 -2
  12. package/es/locale/lang/ja-JP.js +29 -2
  13. package/es/locale/lang/ko-KR.js +29 -2
  14. package/es/locale/lang/ms-MY.js +29 -2
  15. package/es/locale/lang/nb-NO.js +29 -2
  16. package/es/locale/lang/pt-BR.js +29 -2
  17. package/es/locale/lang/ru-RU.js +29 -2
  18. package/es/locale/lang/th-TH.js +29 -2
  19. package/es/locale/lang/ug-CN.js +29 -2
  20. package/es/locale/lang/uk-UA.js +29 -2
  21. package/es/locale/lang/uz-UZ.js +29 -2
  22. package/es/locale/lang/vi-VN.js +29 -2
  23. package/es/locale/lang/zh-CHT.js +31 -4
  24. package/es/locale/lang/zh-CN.js +31 -4
  25. package/es/style.css +1 -1
  26. package/es/style.min.css +1 -1
  27. package/es/table/module/menu/mixin.js +1 -1
  28. package/es/table/src/header.js +6 -22
  29. package/es/table/src/table.js +4 -1
  30. package/es/table/style.css +2 -1
  31. package/es/table/style.min.css +1 -1
  32. package/es/ui/index.js +1 -1
  33. package/es/ui/src/dom.js +2 -2
  34. package/es/ui/src/log.js +1 -1
  35. package/es/vxe-table/style.css +2 -1
  36. package/es/vxe-table/style.min.css +1 -1
  37. package/lib/index.css +1 -1
  38. package/lib/index.min.css +1 -1
  39. package/lib/index.umd.js +46 -36
  40. package/lib/index.umd.min.js +1 -1
  41. package/lib/locale/lang/ar-EG.js +29 -2
  42. package/lib/locale/lang/ar-EG.min.js +1 -1
  43. package/lib/locale/lang/ar-EG.umd.js +29 -2
  44. package/lib/locale/lang/de-DE.js +29 -2
  45. package/lib/locale/lang/de-DE.min.js +1 -1
  46. package/lib/locale/lang/de-DE.umd.js +29 -2
  47. package/lib/locale/lang/en-US.js +33 -6
  48. package/lib/locale/lang/en-US.min.js +1 -1
  49. package/lib/locale/lang/en-US.umd.js +33 -6
  50. package/lib/locale/lang/es-ES.js +29 -2
  51. package/lib/locale/lang/es-ES.min.js +1 -1
  52. package/lib/locale/lang/es-ES.umd.js +29 -2
  53. package/lib/locale/lang/fr-FR.js +29 -2
  54. package/lib/locale/lang/fr-FR.min.js +1 -1
  55. package/lib/locale/lang/fr-FR.umd.js +29 -2
  56. package/lib/locale/lang/hu-HU.js +29 -2
  57. package/lib/locale/lang/hu-HU.min.js +1 -1
  58. package/lib/locale/lang/hu-HU.umd.js +29 -2
  59. package/lib/locale/lang/hy-AM.js +29 -2
  60. package/lib/locale/lang/hy-AM.min.js +1 -1
  61. package/lib/locale/lang/hy-AM.umd.js +29 -2
  62. package/lib/locale/lang/id-ID.js +29 -2
  63. package/lib/locale/lang/id-ID.min.js +1 -1
  64. package/lib/locale/lang/id-ID.umd.js +29 -2
  65. package/lib/locale/lang/it-IT.js +29 -2
  66. package/lib/locale/lang/it-IT.min.js +1 -1
  67. package/lib/locale/lang/it-IT.umd.js +29 -2
  68. package/lib/locale/lang/ja-JP.js +29 -2
  69. package/lib/locale/lang/ja-JP.min.js +1 -1
  70. package/lib/locale/lang/ja-JP.umd.js +29 -2
  71. package/lib/locale/lang/ko-KR.js +29 -2
  72. package/lib/locale/lang/ko-KR.min.js +1 -1
  73. package/lib/locale/lang/ko-KR.umd.js +29 -2
  74. package/lib/locale/lang/ms-MY.js +29 -2
  75. package/lib/locale/lang/ms-MY.min.js +1 -1
  76. package/lib/locale/lang/ms-MY.umd.js +29 -2
  77. package/lib/locale/lang/nb-NO.js +29 -2
  78. package/lib/locale/lang/nb-NO.min.js +1 -1
  79. package/lib/locale/lang/nb-NO.umd.js +29 -2
  80. package/lib/locale/lang/pt-BR.js +29 -2
  81. package/lib/locale/lang/pt-BR.min.js +1 -1
  82. package/lib/locale/lang/pt-BR.umd.js +29 -2
  83. package/lib/locale/lang/ru-RU.js +29 -2
  84. package/lib/locale/lang/ru-RU.min.js +1 -1
  85. package/lib/locale/lang/ru-RU.umd.js +29 -2
  86. package/lib/locale/lang/th-TH.js +29 -2
  87. package/lib/locale/lang/th-TH.min.js +1 -1
  88. package/lib/locale/lang/th-TH.umd.js +29 -2
  89. package/lib/locale/lang/ug-CN.js +29 -2
  90. package/lib/locale/lang/ug-CN.min.js +1 -1
  91. package/lib/locale/lang/ug-CN.umd.js +29 -2
  92. package/lib/locale/lang/uk-UA.js +29 -2
  93. package/lib/locale/lang/uk-UA.min.js +1 -1
  94. package/lib/locale/lang/uk-UA.umd.js +29 -2
  95. package/lib/locale/lang/uz-UZ.js +29 -2
  96. package/lib/locale/lang/uz-UZ.min.js +1 -1
  97. package/lib/locale/lang/uz-UZ.umd.js +29 -2
  98. package/lib/locale/lang/vi-VN.js +29 -2
  99. package/lib/locale/lang/vi-VN.min.js +1 -1
  100. package/lib/locale/lang/vi-VN.umd.js +29 -2
  101. package/lib/locale/lang/zh-CHT.js +31 -4
  102. package/lib/locale/lang/zh-CHT.min.js +1 -1
  103. package/lib/locale/lang/zh-CHT.umd.js +31 -4
  104. package/lib/locale/lang/zh-CN.js +31 -4
  105. package/lib/locale/lang/zh-CN.min.js +1 -1
  106. package/lib/locale/lang/zh-CN.umd.js +31 -4
  107. package/lib/style.css +1 -1
  108. package/lib/style.min.css +1 -1
  109. package/lib/table/module/menu/mixin.js +1 -1
  110. package/lib/table/module/menu/mixin.min.js +1 -1
  111. package/lib/table/src/header.js +6 -26
  112. package/lib/table/src/header.min.js +1 -1
  113. package/lib/table/src/table.js +4 -1
  114. package/lib/table/src/table.min.js +1 -1
  115. package/lib/table/style/style.css +2 -1
  116. package/lib/table/style/style.min.css +1 -1
  117. package/lib/ui/index.js +1 -1
  118. package/lib/ui/index.min.js +1 -1
  119. package/lib/ui/src/dom.js +2 -2
  120. package/lib/ui/src/dom.min.js +1 -1
  121. package/lib/ui/src/log.js +1 -1
  122. package/lib/ui/src/log.min.js +1 -1
  123. package/lib/vxe-table/style/style.css +2 -1
  124. package/lib/vxe-table/style/style.min.css +1 -1
  125. package/package.json +1 -1
  126. package/packages/locale/lang/ar-EG.ts +29 -2
  127. package/packages/locale/lang/de-DE.ts +29 -2
  128. package/packages/locale/lang/en-US.ts +33 -6
  129. package/packages/locale/lang/es-ES.ts +29 -2
  130. package/packages/locale/lang/fr-FR.ts +29 -2
  131. package/packages/locale/lang/hu-HU.ts +29 -2
  132. package/packages/locale/lang/hy-AM.ts +29 -2
  133. package/packages/locale/lang/id-ID.ts +29 -2
  134. package/packages/locale/lang/it-IT.ts +29 -2
  135. package/packages/locale/lang/ja-JP.ts +29 -2
  136. package/packages/locale/lang/ko-KR.ts +29 -2
  137. package/packages/locale/lang/ms-MY.ts +29 -2
  138. package/packages/locale/lang/nb-NO.ts +29 -2
  139. package/packages/locale/lang/pt-BR.ts +29 -2
  140. package/packages/locale/lang/ru-RU.ts +29 -2
  141. package/packages/locale/lang/th-TH.ts +29 -2
  142. package/packages/locale/lang/ug-CN.ts +29 -2
  143. package/packages/locale/lang/uk-UA.ts +29 -2
  144. package/packages/locale/lang/uz-UZ.ts +29 -2
  145. package/packages/locale/lang/vi-VN.ts +29 -2
  146. package/packages/locale/lang/zh-CHT.ts +31 -4
  147. package/packages/locale/lang/zh-CN.ts +31 -4
  148. package/packages/table/module/menu/mixin.ts +1 -1
  149. package/packages/table/src/header.ts +6 -24
  150. package/packages/table/src/table.ts +4 -1
  151. package/packages/ui/src/dom.ts +2 -2
  152. package/styles/components/table.scss +2 -1
  153. /package/es/{iconfont.1763515356812.ttf → iconfont.1764033994654.ttf} +0 -0
  154. /package/es/{iconfont.1763515356812.woff → iconfont.1764033994654.woff} +0 -0
  155. /package/es/{iconfont.1763515356812.woff2 → iconfont.1764033994654.woff2} +0 -0
  156. /package/lib/{iconfont.1763515356812.ttf → iconfont.1764033994654.ttf} +0 -0
  157. /package/lib/{iconfont.1763515356812.woff → iconfont.1764033994654.woff} +0 -0
  158. /package/lib/{iconfont.1763515356812.woff2 → iconfont.1764033994654.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -2005,7 +2005,7 @@ function getClass(property, params) {
2005
2005
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2006
2006
 
2007
2007
 
2008
- const version = "3.19.17";
2008
+ const version = "3.19.19";
2009
2009
  core_.VxeUI.version = version;
2010
2010
  core_.VxeUI.tableVersion = version;
2011
2011
  core_.VxeUI.setConfig({
@@ -2545,10 +2545,10 @@ function getNodeOffset(elem, container, rest) {
2545
2545
  return rest;
2546
2546
  }
2547
2547
  function isPx(val) {
2548
- return val && /^\d+(px)?$/.test(val);
2548
+ return val && /^\d+(\.\d+)?px?$/.test(val);
2549
2549
  }
2550
2550
  function isScale(val) {
2551
- return val && /^\d+%$/.test(val);
2551
+ return val && /^\d+(\.\d+)?%$/.test(val);
2552
2552
  }
2553
2553
  function hasClass(elem, cls) {
2554
2554
  return !!(elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
@@ -2714,7 +2714,7 @@ function isNodeElement(elem) {
2714
2714
  const {
2715
2715
  log: log_log
2716
2716
  } = core_.VxeUI;
2717
- const log_version = `table v${"3.19.17"}`;
2717
+ const log_version = `table v${"3.19.19"}`;
2718
2718
  const warnLog = log_log.create('warn', log_version);
2719
2719
  const errLog = log_log.create('error', log_version);
2720
2720
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -7728,24 +7728,6 @@ const {
7728
7728
  } = core_.VxeUI;
7729
7729
  const header_sourceType = 'table';
7730
7730
  const header_renderType = 'header';
7731
- function getColumnFirstChild(column) {
7732
- const {
7733
- children
7734
- } = column;
7735
- if (children && children.length) {
7736
- return getColumnFirstChild(children[0]);
7737
- }
7738
- return column;
7739
- }
7740
- function getColumnLastChild(column) {
7741
- const {
7742
- children
7743
- } = column;
7744
- if (children && children.length) {
7745
- return getColumnLastChild(children[children.length - 1]);
7746
- }
7747
- return column;
7748
- }
7749
7731
  function header_renderRows(h, _vm, isGroup, isOptimizeMode, headerGroups, $rowIndex, cols) {
7750
7732
  const props = _vm;
7751
7733
  const $xeTable = _vm.$parent;
@@ -7916,15 +7898,13 @@ function header_renderRows(h, _vm, isGroup, isOptimizeMode, headerGroups, $rowIn
7916
7898
  if (showCustomHeader) {
7917
7899
  // custom
7918
7900
  } else if (isColGroup && !isLastRow) {
7919
- const firstCol = getColumnFirstChild(column);
7920
- const lastCol = getColumnLastChild(column);
7921
- if (firstCol && lastCol && firstCol.id !== lastCol.id) {
7922
- const firstColRest = fullColumnIdData[firstCol.id];
7923
- const lastColRest = fullColumnIdData[lastCol.id];
7924
- if (firstColRest && lastColRest) {
7925
- tcStyle.width = `${lastColRest.oLeft - firstColRest.oLeft + lastCol.renderWidth}px`;
7901
+ let childWidth = 0;
7902
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(column.children, childRow => {
7903
+ if (childRow.visible && (!childRow.children || !childRow.children.length)) {
7904
+ childWidth += childRow.renderWidth;
7926
7905
  }
7927
- }
7906
+ });
7907
+ tcStyle.width = `${childWidth}px`;
7928
7908
  }
7929
7909
  return h('th', {
7930
7910
  class: ['vxe-table--column vxe-header--column', colid, fixedHiddenColumn ? 'fixed--hidden' : 'fixed--visible', {
@@ -12067,7 +12047,7 @@ const {
12067
12047
  $xeTable.dispatchEvent(eventType, params, evnt);
12068
12048
  }
12069
12049
  return;
12070
- } else if (getEventTargetNode(evnt, $xeTable.$el, `vxe-table--${layout}-wrapper`, target => target.getAttribute('xid') === xID).flag) {
12050
+ } else if (getEventTargetNode(evnt, el, `vxe-table--${layout}-wrapper`, target => target.getAttribute('xid') === xID).flag || layout === 'body' && getEventTargetNode(evnt, el, 'vxe-table--empty-place-wrapper', target => target.getAttribute('xid') === xID).flag) {
12071
12051
  if (menuOpts.trigger === 'cell') {
12072
12052
  evnt.preventDefault();
12073
12053
  } else {
@@ -19495,7 +19475,10 @@ function renderBody(h, $xeTable) {
19495
19475
  h('div', {
19496
19476
  key: 'tn',
19497
19477
  ref: 'refEmptyPlaceholder',
19498
- class: 'vxe-table--empty-place-wrapper'
19478
+ class: 'vxe-table--empty-place-wrapper',
19479
+ attrs: {
19480
+ xid: xID
19481
+ }
19499
19482
  }, [h('div', {
19500
19483
  class: 'vxe-table--empty-placeholder'
19501
19484
  }, [h('div', {
@@ -24807,11 +24790,12 @@ const Toolbar = VxeToolbar;
24807
24790
  fixedRight: '冻结右侧',
24808
24791
  clearFilter: '清除筛选',
24809
24792
  textOption: '文本筛选',
24810
- numberOption: '数值筛选'
24793
+ numberOption: '数值筛选',
24794
+ dateOption: '日期筛选'
24811
24795
  },
24812
24796
  popup: {
24813
24797
  title: '自定义筛选的方式',
24814
- currColumnTitle: '当前列:',
24798
+ currColumnTitle: '显示行:',
24815
24799
  and: '与',
24816
24800
  or: '或',
24817
24801
  describeHtml: '可用 ? 代表单个字符<br/>用 * 代表任意多个字符'
@@ -24830,6 +24814,28 @@ const Toolbar = VxeToolbar;
24830
24814
  include: '包含',
24831
24815
  exclude: '不包含',
24832
24816
  between: '介于',
24817
+ isAfter: '在以下日期之后',
24818
+ eqAfter: '在以下日期之后或与之相同',
24819
+ isBefore: '在以下日期之前',
24820
+ eqBefore: '在以下日期之前或与之相同',
24821
+ top10: '前10项',
24822
+ aboveAverage: '高于平均值',
24823
+ belowAverage: '低于平均值',
24824
+ before: '之前',
24825
+ after: '之后',
24826
+ tomorrow: '明天',
24827
+ today: '今天',
24828
+ yesterday: '昨天',
24829
+ nextWeek: '下周',
24830
+ thisWeek: '本周',
24831
+ lastWeek: '上周',
24832
+ nextMonth: '下月',
24833
+ thisMonth: '本月',
24834
+ lastMonth: '上月',
24835
+ nextYear: '明年',
24836
+ thisYear: '今年',
24837
+ lastYear: '去年',
24838
+ yearToDate: '本年度截止到现在',
24833
24839
  custom: '自定义筛选',
24834
24840
  insensitive: '不区分大小写',
24835
24841
  isSensitive: '区分大小写'
@@ -24895,6 +24901,9 @@ const Toolbar = VxeToolbar;
24895
24901
  include: '包含',
24896
24902
  exclude: '不包含',
24897
24903
  between: '介于',
24904
+ top10: '前10项',
24905
+ aboveAverage: '高于平均值',
24906
+ belowAverage: '低于平均值',
24898
24907
  custom: '自定义筛选',
24899
24908
  insensitive: '不区分大小写',
24900
24909
  isSensitive: '区分大小写'
@@ -24912,11 +24921,12 @@ const Toolbar = VxeToolbar;
24912
24921
  fixedRight: '冻结到右侧',
24913
24922
  clearFilter: '清除筛选',
24914
24923
  textOption: '文本筛选',
24915
- numberOption: '数值筛选'
24924
+ numberOption: '数值筛选',
24925
+ dateOption: '日期筛选'
24916
24926
  },
24917
24927
  popup: {
24918
24928
  title: '自定义筛选的方式',
24919
- currColumnTitle: '当前列:',
24929
+ currColumnTitle: '显示行:',
24920
24930
  and: '与',
24921
24931
  or: '或',
24922
24932
  describeHtml: '可用 ? 代表单个字符<br/>用 * 代表任意多个字符'