@visactor/vtable 0.20.2-alpha.3 → 0.20.2

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 (119) hide show
  1. package/cjs/ListTable.js +1 -1
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/body-helper/body-helper.d.ts +2 -1
  4. package/cjs/body-helper/style/CheckboxStyle.d.ts +31 -2
  5. package/cjs/body-helper/style/CheckboxStyle.js +70 -4
  6. package/cjs/body-helper/style/CheckboxStyle.js.map +1 -1
  7. package/cjs/body-helper/style.d.ts +2 -1
  8. package/cjs/body-helper/style.js +5 -4
  9. package/cjs/body-helper/style.js.map +1 -1
  10. package/cjs/core/BaseTable.js +6 -6
  11. package/cjs/core/BaseTable.js.map +1 -1
  12. package/cjs/core/tableHelper.js +9 -4
  13. package/cjs/core/tableHelper.js.map +1 -1
  14. package/cjs/event/listener/table-group.js +8 -8
  15. package/cjs/event/listener/table-group.js.map +1 -1
  16. package/cjs/header-helper/header-helper.d.ts +1 -1
  17. package/cjs/header-helper/style/CheckboxStyle.d.ts +31 -2
  18. package/cjs/header-helper/style/CheckboxStyle.js +70 -4
  19. package/cjs/header-helper/style/CheckboxStyle.js.map +1 -1
  20. package/cjs/header-helper/style.d.ts +2 -1
  21. package/cjs/header-helper/style.js +12 -7
  22. package/cjs/header-helper/style.js.map +1 -1
  23. package/cjs/index.d.ts +1 -1
  24. package/cjs/index.js +1 -1
  25. package/cjs/index.js.map +1 -1
  26. package/cjs/layout/simple-header-layout.js +1 -1
  27. package/cjs/layout/simple-header-layout.js.map +1 -1
  28. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +6 -28
  29. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  30. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +2 -9
  31. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  32. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +19 -22
  33. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  34. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +40 -46
  35. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  36. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +7 -7
  37. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  38. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +18 -21
  39. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  40. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +10 -11
  41. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  42. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +7 -7
  43. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  44. package/cjs/scenegraph/scenegraph.js +5 -5
  45. package/cjs/scenegraph/scenegraph.js.map +1 -1
  46. package/cjs/scenegraph/utils/text-icon-layout.js +3 -9
  47. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  48. package/cjs/themes/theme.d.ts +2 -3
  49. package/cjs/themes/theme.js +9 -15
  50. package/cjs/themes/theme.js.map +1 -1
  51. package/cjs/ts-types/column/style.d.ts +14 -0
  52. package/cjs/ts-types/column/style.js.map +1 -1
  53. package/cjs/ts-types/theme.d.ts +2 -4
  54. package/cjs/ts-types/theme.js.map +1 -1
  55. package/cjs/vrender.js.map +1 -1
  56. package/dist/vtable.js +342 -299
  57. package/dist/vtable.min.js +2 -2
  58. package/es/ListTable.js +1 -1
  59. package/es/ListTable.js.map +1 -1
  60. package/es/body-helper/body-helper.d.ts +2 -1
  61. package/es/body-helper/style/CheckboxStyle.d.ts +31 -2
  62. package/es/body-helper/style/CheckboxStyle.js +70 -4
  63. package/es/body-helper/style/CheckboxStyle.js.map +1 -1
  64. package/es/body-helper/style.d.ts +2 -1
  65. package/es/body-helper/style.js +6 -3
  66. package/es/body-helper/style.js.map +1 -1
  67. package/es/core/BaseTable.js +6 -6
  68. package/es/core/BaseTable.js.map +1 -1
  69. package/es/core/tableHelper.js +8 -4
  70. package/es/core/tableHelper.js.map +1 -1
  71. package/es/event/listener/table-group.js +7 -7
  72. package/es/event/listener/table-group.js.map +1 -1
  73. package/es/header-helper/header-helper.d.ts +1 -1
  74. package/es/header-helper/style/CheckboxStyle.d.ts +31 -2
  75. package/es/header-helper/style/CheckboxStyle.js +70 -4
  76. package/es/header-helper/style/CheckboxStyle.js.map +1 -1
  77. package/es/header-helper/style.d.ts +2 -1
  78. package/es/header-helper/style.js +6 -3
  79. package/es/header-helper/style.js.map +1 -1
  80. package/es/index.d.ts +1 -1
  81. package/es/index.js +1 -1
  82. package/es/index.js.map +1 -1
  83. package/es/layout/simple-header-layout.js +1 -1
  84. package/es/layout/simple-header-layout.js.map +1 -1
  85. package/es/scenegraph/graphic/contributions/group-contribution-render.js +5 -28
  86. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  87. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +2 -9
  88. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  89. package/es/scenegraph/group-creater/cell-type/chart-cell.js +18 -23
  90. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  91. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +31 -47
  92. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  93. package/es/scenegraph/group-creater/cell-type/image-cell.js +6 -8
  94. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  95. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +17 -22
  96. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
  97. package/es/scenegraph/group-creater/cell-type/text-cell.js +9 -11
  98. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
  99. package/es/scenegraph/group-creater/cell-type/video-cell.js +6 -8
  100. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  101. package/es/scenegraph/scenegraph.js +5 -5
  102. package/es/scenegraph/scenegraph.js.map +1 -1
  103. package/es/scenegraph/utils/text-icon-layout.js +3 -9
  104. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  105. package/es/themes/theme.d.ts +2 -3
  106. package/es/themes/theme.js +8 -15
  107. package/es/themes/theme.js.map +1 -1
  108. package/es/ts-types/column/style.d.ts +14 -0
  109. package/es/ts-types/column/style.js.map +1 -1
  110. package/es/ts-types/theme.d.ts +2 -4
  111. package/es/ts-types/theme.js.map +1 -1
  112. package/es/vrender.js.map +1 -1
  113. package/package.json +3 -3
  114. package/cjs/scenegraph/utils/cell-border-stroke-width.d.ts +0 -3
  115. package/cjs/scenegraph/utils/cell-border-stroke-width.js +0 -16
  116. package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +0 -1
  117. package/es/scenegraph/utils/cell-border-stroke-width.d.ts +0 -3
  118. package/es/scenegraph/utils/cell-border-stroke-width.js +0 -10
  119. package/es/scenegraph/utils/cell-border-stroke-width.js.map +0 -1
package/dist/vtable.js CHANGED
@@ -21847,13 +21847,123 @@
21847
21847
  }
21848
21848
  }
21849
21849
 
21850
- function of$2(columnStyle, bodyStyle, styleArg, StyleClassDef = Style$1, globalAutoWrapText) {
21850
+ let defaultStyle$5;
21851
+ let CheckboxStyle$1 = class CheckboxStyle extends Style$1 {
21852
+ _size;
21853
+ _spaceBetweenTextAndIcon;
21854
+ _defaultFill;
21855
+ _defaultStroke;
21856
+ _disableFill;
21857
+ _checkedFill;
21858
+ _checkedStroke;
21859
+ _disableCheckedFill;
21860
+ _disableCheckedStroke;
21861
+ _checkIconImage;
21862
+ _indeterminateIconImage;
21863
+ static get DEFAULT() {
21864
+ return defaultStyle$5 ? defaultStyle$5 : (defaultStyle$5 = new CheckboxStyle());
21865
+ }
21866
+ constructor(style = {}, headerStyle = {}, checkboxThemeStyle = {}) {
21867
+ super(style, headerStyle);
21868
+ this._size = (style?.size ?? headerStyle?.size ?? checkboxThemeStyle?.size) || 14;
21869
+ this._spaceBetweenTextAndIcon =
21870
+ (style?.spaceBetweenTextAndIcon ??
21871
+ headerStyle?.spaceBetweenTextAndIcon ??
21872
+ checkboxThemeStyle?.spaceBetweenTextAndIcon) ||
21873
+ 8;
21874
+ this._defaultFill = style?.checkboxStyle?.defaultFill ?? checkboxThemeStyle?.defaultFill;
21875
+ this._defaultStroke = style?.checkboxStyle?.defaultStroke ?? checkboxThemeStyle?.defaultStroke;
21876
+ this._disableFill = style?.checkboxStyle?.disableFill ?? checkboxThemeStyle?.disableFill;
21877
+ this._checkedFill = style?.checkboxStyle?.checkedFill ?? checkboxThemeStyle?.checkedFill;
21878
+ this._checkedStroke = style?.checkboxStyle?.checkedStroke ?? checkboxThemeStyle?.checkedStroke;
21879
+ this._disableCheckedFill = style?.checkboxStyle?.disableCheckedFill ?? checkboxThemeStyle?.disableCheckedFill;
21880
+ this._disableCheckedStroke = style?.checkboxStyle?.disableCheckedStroke ?? checkboxThemeStyle?.disableCheckedStroke;
21881
+ this._spaceBetweenTextAndIcon =
21882
+ style?.checkboxStyle?.spaceBetweenTextAndIcon ?? checkboxThemeStyle?.spaceBetweenTextAndIcon;
21883
+ this._indeterminateIconImage =
21884
+ style?.checkboxStyle?.indeterminateIconImage ?? checkboxThemeStyle?.indeterminateIconImage;
21885
+ }
21886
+ get size() {
21887
+ return this._size;
21888
+ }
21889
+ set size(size) {
21890
+ this._size = size;
21891
+ }
21892
+ get spaceBetweenTextAndIcon() {
21893
+ return this._spaceBetweenTextAndIcon;
21894
+ }
21895
+ set spaceBetweenTextAndIcon(spaceBetweenTextAndIcon) {
21896
+ this._spaceBetweenTextAndIcon = spaceBetweenTextAndIcon;
21897
+ }
21898
+ get defaultFill() {
21899
+ return this._defaultFill;
21900
+ }
21901
+ set defaultFill(defaultFill) {
21902
+ this._defaultFill = defaultFill;
21903
+ }
21904
+ get defaultStroke() {
21905
+ return this._defaultStroke;
21906
+ }
21907
+ set defaultStroke(defaultStroke) {
21908
+ this._defaultStroke = defaultStroke;
21909
+ }
21910
+ get disableFill() {
21911
+ return this._disableFill;
21912
+ }
21913
+ set disableFill(disableFill) {
21914
+ this._disableFill = disableFill;
21915
+ }
21916
+ get checkedFill() {
21917
+ return this._checkedFill;
21918
+ }
21919
+ set checkedFill(checkedFill) {
21920
+ this._checkedFill = checkedFill;
21921
+ }
21922
+ get checkedStroke() {
21923
+ return this._checkedStroke;
21924
+ }
21925
+ set checkedStroke(checkedStroke) {
21926
+ this._checkedStroke = checkedStroke;
21927
+ }
21928
+ get disableCheckedFill() {
21929
+ return this._disableCheckedFill;
21930
+ }
21931
+ set disableCheckedFill(disableCheckedFill) {
21932
+ this._disableCheckedFill = disableCheckedFill;
21933
+ }
21934
+ get disableCheckedStroke() {
21935
+ return this._disableCheckedStroke;
21936
+ }
21937
+ set disableCheckedStroke(disableCheckedStroke) {
21938
+ this._disableCheckedStroke = disableCheckedStroke;
21939
+ }
21940
+ get checkIconImage() {
21941
+ return this._checkIconImage;
21942
+ }
21943
+ set checkIconImage(checkIconImage) {
21944
+ this._checkIconImage = checkIconImage;
21945
+ }
21946
+ get indeterminateIconImage() {
21947
+ return this._indeterminateIconImage;
21948
+ }
21949
+ set indeterminateIconImage(indeterminateIconImage) {
21950
+ this._indeterminateIconImage = indeterminateIconImage;
21951
+ }
21952
+ getStyle(style) {
21953
+ return new CheckboxStyle(style, this);
21954
+ }
21955
+ clone() {
21956
+ return new CheckboxStyle(this);
21957
+ }
21958
+ };
21959
+
21960
+ function of$2(columnStyle, bodyStyle, styleArg, StyleClassDef = Style$1, globalAutoWrapText, theme) {
21851
21961
  if (columnStyle || bodyStyle) {
21852
21962
  if (columnStyle instanceof Style$1) {
21853
21963
  return columnStyle;
21854
21964
  }
21855
21965
  else if (typeof columnStyle === 'function') {
21856
- return of$2(columnStyle(styleArg), bodyStyle, styleArg, StyleClassDef, globalAutoWrapText);
21966
+ return of$2(columnStyle(styleArg), bodyStyle, styleArg, StyleClassDef, globalAutoWrapText, theme);
21857
21967
  }
21858
21968
  if (!columnStyle) {
21859
21969
  columnStyle = {};
@@ -21861,12 +21971,15 @@
21861
21971
  if (globalAutoWrapText && !isValid$1(columnStyle.autoWrapText)) {
21862
21972
  columnStyle.autoWrapText = true;
21863
21973
  }
21974
+ if (StyleClassDef === CheckboxStyle$1) {
21975
+ return new CheckboxStyle$1(columnStyle ?? {}, (bodyStyle ?? {}), (theme.checkboxStyle ?? {}));
21976
+ }
21864
21977
  return new StyleClassDef((columnStyle ?? {}), (bodyStyle ?? {}));
21865
21978
  }
21866
21979
  return StyleClassDef.DEFAULT;
21867
21980
  }
21868
21981
 
21869
- let defaultStyle$5;
21982
+ let defaultStyle$4;
21870
21983
  const EVENT_TYPE$1 = {
21871
21984
  CHANGE_STYLE: 'change_style'
21872
21985
  };
@@ -21901,7 +22014,7 @@
21901
22014
  return EVENT_TYPE$1;
21902
22015
  }
21903
22016
  static get DEFAULT() {
21904
- return defaultStyle$5 ? defaultStyle$5 : (defaultStyle$5 = new Style());
22017
+ return defaultStyle$4 ? defaultStyle$4 : (defaultStyle$4 = new Style());
21905
22018
  }
21906
22019
  constructor(style = {}, headerStyle = {}) {
21907
22020
  super();
@@ -22086,12 +22199,12 @@
22086
22199
  }
22087
22200
  }
22088
22201
 
22089
- let defaultStyle$4;
22202
+ let defaultStyle$3;
22090
22203
  class TextHeaderStyle extends Style {
22091
22204
  _autoWrapText;
22092
22205
  _lineClamp;
22093
22206
  static get DEFAULT() {
22094
- return defaultStyle$4 ? defaultStyle$4 : (defaultStyle$4 = new TextHeaderStyle());
22207
+ return defaultStyle$3 ? defaultStyle$3 : (defaultStyle$3 = new TextHeaderStyle());
22095
22208
  }
22096
22209
  constructor(style = {}, headerStyle = null) {
22097
22210
  super(style, headerStyle);
@@ -22115,13 +22228,123 @@
22115
22228
  }
22116
22229
  }
22117
22230
 
22118
- function of$1(headerStyle, defaultHeaderStyle, styleArg, StyleClass, globalAutoWrapText) {
22231
+ let defaultStyle$2;
22232
+ class CheckboxStyle extends Style {
22233
+ _size;
22234
+ _spaceBetweenTextAndIcon;
22235
+ _defaultFill;
22236
+ _defaultStroke;
22237
+ _disableFill;
22238
+ _checkedFill;
22239
+ _checkedStroke;
22240
+ _disableCheckedFill;
22241
+ _disableCheckedStroke;
22242
+ _checkIconImage;
22243
+ _indeterminateIconImage;
22244
+ static get DEFAULT() {
22245
+ return defaultStyle$2 ? defaultStyle$2 : (defaultStyle$2 = new CheckboxStyle());
22246
+ }
22247
+ constructor(style = {}, headerStyle = {}, checkboxThemeStyle = {}) {
22248
+ super(style, headerStyle);
22249
+ this._size = (style?.size ?? headerStyle?.size ?? checkboxThemeStyle?.size) || 14;
22250
+ this._spaceBetweenTextAndIcon =
22251
+ (style?.spaceBetweenTextAndIcon ??
22252
+ headerStyle?.spaceBetweenTextAndIcon ??
22253
+ checkboxThemeStyle?.spaceBetweenTextAndIcon) ||
22254
+ 8;
22255
+ this._defaultFill = style?.checkboxStyle?.defaultFill ?? checkboxThemeStyle?.defaultFill;
22256
+ this._defaultStroke = style?.checkboxStyle?.defaultStroke ?? checkboxThemeStyle?.defaultStroke;
22257
+ this._disableFill = style?.checkboxStyle?.disableFill ?? checkboxThemeStyle?.disableFill;
22258
+ this._checkedFill = style?.checkboxStyle?.checkedFill ?? checkboxThemeStyle?.checkedFill;
22259
+ this._checkedStroke = style?.checkboxStyle?.checkedStroke ?? checkboxThemeStyle?.checkedStroke;
22260
+ this._disableCheckedFill = style?.checkboxStyle?.disableCheckedFill ?? checkboxThemeStyle?.disableCheckedFill;
22261
+ this._disableCheckedStroke = style?.checkboxStyle?.disableCheckedStroke ?? checkboxThemeStyle?.disableCheckedStroke;
22262
+ this._spaceBetweenTextAndIcon =
22263
+ style?.checkboxStyle?.spaceBetweenTextAndIcon ?? checkboxThemeStyle?.spaceBetweenTextAndIcon;
22264
+ this._indeterminateIconImage =
22265
+ style?.checkboxStyle?.indeterminateIconImage ?? checkboxThemeStyle?.indeterminateIconImage;
22266
+ }
22267
+ get size() {
22268
+ return this._size;
22269
+ }
22270
+ set size(size) {
22271
+ this._size = size;
22272
+ }
22273
+ get spaceBetweenTextAndIcon() {
22274
+ return this._spaceBetweenTextAndIcon;
22275
+ }
22276
+ set spaceBetweenTextAndIcon(spaceBetweenTextAndIcon) {
22277
+ this._spaceBetweenTextAndIcon = spaceBetweenTextAndIcon;
22278
+ }
22279
+ get defaultFill() {
22280
+ return this._defaultFill;
22281
+ }
22282
+ set defaultFill(defaultFill) {
22283
+ this._defaultFill = defaultFill;
22284
+ }
22285
+ get defaultStroke() {
22286
+ return this._defaultStroke;
22287
+ }
22288
+ set defaultStroke(defaultStroke) {
22289
+ this._defaultStroke = defaultStroke;
22290
+ }
22291
+ get disableFill() {
22292
+ return this._disableFill;
22293
+ }
22294
+ set disableFill(disableFill) {
22295
+ this._disableFill = disableFill;
22296
+ }
22297
+ get checkedFill() {
22298
+ return this._checkedFill;
22299
+ }
22300
+ set checkedFill(checkedFill) {
22301
+ this._checkedFill = checkedFill;
22302
+ }
22303
+ get checkedStroke() {
22304
+ return this._checkedStroke;
22305
+ }
22306
+ set checkedStroke(checkedStroke) {
22307
+ this._checkedStroke = checkedStroke;
22308
+ }
22309
+ get disableCheckedFill() {
22310
+ return this._disableCheckedFill;
22311
+ }
22312
+ set disableCheckedFill(disableCheckedFill) {
22313
+ this._disableCheckedFill = disableCheckedFill;
22314
+ }
22315
+ get disableCheckedStroke() {
22316
+ return this._disableCheckedStroke;
22317
+ }
22318
+ set disableCheckedStroke(disableCheckedStroke) {
22319
+ this._disableCheckedStroke = disableCheckedStroke;
22320
+ }
22321
+ get checkIconImage() {
22322
+ return this._checkIconImage;
22323
+ }
22324
+ set checkIconImage(checkIconImage) {
22325
+ this._checkIconImage = checkIconImage;
22326
+ }
22327
+ get indeterminateIconImage() {
22328
+ return this._indeterminateIconImage;
22329
+ }
22330
+ set indeterminateIconImage(indeterminateIconImage) {
22331
+ this._indeterminateIconImage = indeterminateIconImage;
22332
+ }
22333
+ getStyle(style) {
22334
+ return new CheckboxStyle(style, this);
22335
+ }
22336
+ clone() {
22337
+ return new CheckboxStyle(this);
22338
+ }
22339
+ }
22340
+
22341
+ function of$1(headerStyle, defaultHeaderStyle, styleArg, StyleClass, globalAutoWrapText, theme) {
22119
22342
  if (headerStyle || defaultHeaderStyle) {
22120
22343
  if (headerStyle instanceof Style) {
22121
22344
  return headerStyle;
22122
22345
  }
22123
22346
  else if (typeof headerStyle === 'function') {
22124
- return of$1(headerStyle(styleArg), defaultHeaderStyle, styleArg, StyleClass, globalAutoWrapText);
22347
+ return of$1(headerStyle(styleArg), defaultHeaderStyle, styleArg, StyleClass, globalAutoWrapText, theme);
22125
22348
  }
22126
22349
  if (!headerStyle) {
22127
22350
  headerStyle = {};
@@ -22129,6 +22352,9 @@
22129
22352
  if (globalAutoWrapText && !isValid$1(headerStyle.autoWrapText)) {
22130
22353
  headerStyle.autoWrapText = true;
22131
22354
  }
22355
+ if (StyleClass === CheckboxStyle) {
22356
+ return new CheckboxStyle(headerStyle ?? {}, (defaultHeaderStyle ?? {}), (theme.checkboxStyle ?? {}));
22357
+ }
22132
22358
  return new StyleClass(headerStyle ?? {}, (defaultHeaderStyle ?? {}));
22133
22359
  }
22134
22360
  return StyleClass.DEFAULT;
@@ -23758,6 +23984,7 @@
23758
23984
  _frozenColumnLine = null;
23759
23985
  _selectionStyle = null;
23760
23986
  _axisStyle = null;
23987
+ _checkboxStyle = null;
23761
23988
  _textPopTipStyle = null;
23762
23989
  constructor(obj, superTheme) {
23763
23990
  this.internalTheme = {
@@ -23773,18 +24000,6 @@
23773
24000
  const { obj, superTheme } = this.internalTheme;
23774
24001
  return getProp$1(obj, superTheme, ['underlayBackgroundColor']);
23775
24002
  }
23776
- get cellInnerBorder() {
23777
- const { obj, superTheme } = this.internalTheme;
23778
- return !!getProp$1(obj, superTheme, ['cellInnerBorder']);
23779
- }
23780
- get cellBorderClipDirection() {
23781
- const { obj, superTheme } = this.internalTheme;
23782
- return getProp$1(obj, superTheme, ['cellBorderClipDirection']) ?? 'top-left';
23783
- }
23784
- get _contentOffset() {
23785
- const { obj, superTheme } = this.internalTheme;
23786
- return getProp$1(obj, superTheme, ['_contentOffset']) ?? 0;
23787
- }
23788
24003
  get defaultStyle() {
23789
24004
  if (!this._defaultStyle) {
23790
24005
  const { obj, superTheme } = this.internalTheme;
@@ -24191,6 +24406,14 @@
24191
24406
  }
24192
24407
  return this._axisStyle;
24193
24408
  }
24409
+ get checkboxStyle() {
24410
+ if (!this._checkboxStyle) {
24411
+ const { obj, superTheme } = this.internalTheme;
24412
+ const checkboxStyle = ingoreNoneValueMerge({}, superTheme.checkboxStyle, obj.checkboxStyle);
24413
+ this._checkboxStyle = checkboxStyle;
24414
+ }
24415
+ return this._checkboxStyle;
24416
+ }
24194
24417
  get textPopTipStyle() {
24195
24418
  if (!this._textPopTipStyle) {
24196
24419
  const { obj, superTheme } = this.internalTheme;
@@ -32835,16 +33058,22 @@
32835
33058
  let fontFamily;
32836
33059
  let fontSize;
32837
33060
  let fontWeight;
33061
+ let fontStyle;
33062
+ let fontVariant;
32838
33063
  if (font) {
32839
- const { family, size, weight } = parseFont(font);
33064
+ const { family, size, weight, style, variant } = parseFont(font);
32840
33065
  fontFamily = family.join(' ');
32841
33066
  fontSize = size;
32842
33067
  fontWeight = weight;
33068
+ fontStyle = style;
33069
+ fontStyle = variant;
32843
33070
  }
32844
33071
  else {
32845
33072
  fontFamily = getProp('fontFamily', headerStyle, col, row, table);
32846
33073
  fontSize = getProp('fontSize', headerStyle, col, row, table);
32847
33074
  fontWeight = getProp('fontWeight', headerStyle, col, row, table);
33075
+ fontStyle = getProp('fontStyle', headerStyle, col, row, table);
33076
+ fontVariant = getProp('fontVariant', headerStyle, col, row, table);
32848
33077
  }
32849
33078
  const textAlign = getProp('textAlign', headerStyle, col, row, table);
32850
33079
  const textBaseline = getProp('textBaseline', headerStyle, col, row, table);
@@ -32880,6 +33109,8 @@
32880
33109
  fontFamily,
32881
33110
  fontSize,
32882
33111
  fontWeight,
33112
+ fontStyle,
33113
+ fontVariant,
32883
33114
  fill: color,
32884
33115
  textAlign,
32885
33116
  textBaseline,
@@ -33932,50 +34163,6 @@
33932
34163
  return undefined;
33933
34164
  }
33934
34165
 
33935
- function getCellBorderStrokeWidth(col, row, cellTheme, table) {
33936
- let strokeArrayWidth = cellTheme?.group?.strokeArrayWidth ?? undefined;
33937
- if (!table.theme.cellInnerBorder) {
33938
- return strokeArrayWidth;
33939
- }
33940
- if (col === 0) {
33941
- strokeArrayWidth = strokeArrayWidth ?? [
33942
- cellTheme?.group?.lineWidth,
33943
- cellTheme?.group?.lineWidth,
33944
- cellTheme?.group?.lineWidth,
33945
- cellTheme?.group?.lineWidth
33946
- ];
33947
- strokeArrayWidth[3] = 0;
33948
- }
33949
- if (col === table.colCount - 1) {
33950
- strokeArrayWidth = strokeArrayWidth ?? [
33951
- cellTheme?.group?.lineWidth,
33952
- cellTheme?.group?.lineWidth,
33953
- cellTheme?.group?.lineWidth,
33954
- cellTheme?.group?.lineWidth
33955
- ];
33956
- strokeArrayWidth[1] = 0;
33957
- }
33958
- if (row === 0) {
33959
- strokeArrayWidth = strokeArrayWidth ?? [
33960
- cellTheme?.group?.lineWidth,
33961
- cellTheme?.group?.lineWidth,
33962
- cellTheme?.group?.lineWidth,
33963
- cellTheme?.group?.lineWidth
33964
- ];
33965
- strokeArrayWidth[0] = 0;
33966
- }
33967
- if (row === table.rowCount - 1) {
33968
- strokeArrayWidth = strokeArrayWidth ?? [
33969
- cellTheme?.group?.lineWidth,
33970
- cellTheme?.group?.lineWidth,
33971
- cellTheme?.group?.lineWidth,
33972
- cellTheme?.group?.lineWidth
33973
- ];
33974
- strokeArrayWidth[2] = 0;
33975
- }
33976
- return strokeArrayWidth;
33977
- }
33978
-
33979
34166
  function createImageCellGroup(columnGroup, xOrigin, yOrigin, col, row, width, height, keepAspectRatio, imageAutoSizing, padding, textAlign, textBaseline, table, cellTheme) {
33980
34167
  const headerStyle = table._getCellStyle(col, row);
33981
34168
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
@@ -33988,7 +34175,6 @@
33988
34175
  if (cellTheme?.text?.textBaseline) {
33989
34176
  textBaseline = cellTheme?.text?.textBaseline;
33990
34177
  }
33991
- const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
33992
34178
  const cellGroup = new Group$1({
33993
34179
  x: xOrigin,
33994
34180
  y: yOrigin,
@@ -33997,7 +34183,7 @@
33997
34183
  lineWidth: cellTheme?.group?.lineWidth ?? undefined,
33998
34184
  fill: cellTheme?.group?.fill ?? undefined,
33999
34185
  stroke: cellTheme?.group?.stroke ?? undefined,
34000
- strokeArrayWidth: strokeArrayWidth ?? undefined,
34186
+ strokeArrayWidth: cellTheme?.group?.strokeArrayWidth ?? undefined,
34001
34187
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
34002
34188
  cursor: cellTheme?.group?.cursor ?? undefined,
34003
34189
  lineDash: cellTheme?.group?.lineDash ?? undefined,
@@ -34642,7 +34828,6 @@
34642
34828
  const yScale = new LinearScale();
34643
34829
  function createSparkLineCellGroup(cellGroup, columnGroup, xOrigin, yOrigin, col, row, width, height, padding, table, cellTheme) {
34644
34830
  if (!cellGroup) {
34645
- const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
34646
34831
  cellGroup = new Group$1({
34647
34832
  x: xOrigin,
34648
34833
  y: yOrigin,
@@ -34651,7 +34836,7 @@
34651
34836
  lineWidth: cellTheme?.group?.lineWidth ?? undefined,
34652
34837
  fill: cellTheme?.group?.fill ?? undefined,
34653
34838
  stroke: cellTheme?.group?.stroke ?? undefined,
34654
- strokeArrayWidth: strokeArrayWidth,
34839
+ strokeArrayWidth: cellTheme?.group?.strokeArrayWidth ?? undefined,
34655
34840
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
34656
34841
  cursor: cellTheme?.group?.cursor ?? undefined,
34657
34842
  lineDash: cellTheme?.group?.lineDash ?? undefined,
@@ -35026,7 +35211,6 @@
35026
35211
  padding = functionalPadding;
35027
35212
  }
35028
35213
  if (!cellGroup) {
35029
- const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
35030
35214
  cellGroup = new Group$1({
35031
35215
  x: xOrigin,
35032
35216
  y: yOrigin,
@@ -35035,7 +35219,7 @@
35035
35219
  lineWidth: cellTheme?.group?.lineWidth ?? undefined,
35036
35220
  fill: cellTheme?.group?.fill ?? undefined,
35037
35221
  stroke: cellTheme?.group?.stroke ?? undefined,
35038
- strokeArrayWidth: strokeArrayWidth,
35222
+ strokeArrayWidth: cellTheme?.group?.strokeArrayWidth ?? undefined,
35039
35223
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
35040
35224
  cursor: cellTheme?.group?.cursor ?? undefined,
35041
35225
  lineDash: cellTheme?.group?.lineDash ?? undefined,
@@ -35287,15 +35471,6 @@
35287
35471
  const hierarchyOffset = range
35288
35472
  ? getHierarchyOffset(range.start.col, range.start.row, table)
35289
35473
  : getHierarchyOffset(cellGroup.col, cellGroup.row, table);
35290
- let _contentOffset = 0;
35291
- if (isNumber$2(table.theme._contentOffset)) {
35292
- if (textAlign === 'left') {
35293
- _contentOffset = table.theme._contentOffset;
35294
- }
35295
- else if (textAlign === 'right') {
35296
- _contentOffset = -table.theme._contentOffset;
35297
- }
35298
- }
35299
35474
  const attribute = {
35300
35475
  text: text.length === 1 ? text[0] : text,
35301
35476
  maxLineWidth: autoColWidth ? Infinity : cellWidth - (padding[1] + padding[3] + hierarchyOffset),
@@ -35305,7 +35480,7 @@
35305
35480
  wordBreak: 'break-word',
35306
35481
  heightLimit: autoRowHeight ? -1 : cellHeight - (padding[0] + padding[2]),
35307
35482
  pickable: false,
35308
- dx: hierarchyOffset + _contentOffset,
35483
+ dx: hierarchyOffset,
35309
35484
  whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal'
35310
35485
  };
35311
35486
  const wrapText = new Text$1(cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute);
@@ -35381,15 +35556,6 @@
35381
35556
  });
35382
35557
  let textMark;
35383
35558
  if (inlineFrontIcons.length === 0 && inlineEndIcons.length === 0) {
35384
- let _contentOffset = 0;
35385
- if (isNumber$2(table.theme._contentOffset)) {
35386
- if (textAlign === 'left') {
35387
- _contentOffset = table.theme._contentOffset;
35388
- }
35389
- else if (textAlign === 'right') {
35390
- _contentOffset = -table.theme._contentOffset;
35391
- }
35392
- }
35393
35559
  const text = convertInternal(textStr).replace(/\r?\n/g, '\n').replace(/\r/g, '\n').split('\n');
35394
35560
  const attribute = {
35395
35561
  text: text.length === 1 ? text[0] : text,
@@ -35400,8 +35566,7 @@
35400
35566
  autoWrapText,
35401
35567
  lineClamp,
35402
35568
  wordBreak: 'break-word',
35403
- whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal',
35404
- dx: _contentOffset
35569
+ whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal'
35405
35570
  };
35406
35571
  const wrapText = new Text$1(cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute);
35407
35572
  wrapText.name = 'text';
@@ -35777,7 +35942,6 @@
35777
35942
  const autoColWidth = colWidth === 'auto';
35778
35943
  const autoWrapText = headerStyle.autoWrapText ?? table.internalProps.autoWrapText;
35779
35944
  const lineClamp = headerStyle.lineClamp;
35780
- const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
35781
35945
  const cellGroup = new Group$1({
35782
35946
  x: xOrigin,
35783
35947
  y: yOrigin,
@@ -35786,7 +35950,7 @@
35786
35950
  lineWidth: cellTheme?.group?.lineWidth ?? undefined,
35787
35951
  fill: cellTheme?.group?.fill ?? undefined,
35788
35952
  stroke: cellTheme?.group?.stroke ?? undefined,
35789
- strokeArrayWidth: strokeArrayWidth ?? undefined,
35953
+ strokeArrayWidth: cellTheme?.group?.strokeArrayWidth ?? undefined,
35790
35954
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
35791
35955
  cursor: cellTheme?.group?.cursor ?? undefined,
35792
35956
  lineDash: cellTheme?.group?.lineDash ?? undefined,
@@ -35850,7 +36014,6 @@
35850
36014
  if (cellTheme?.text?.textBaseline) {
35851
36015
  textBaseline = cellTheme?.text?.textBaseline;
35852
36016
  }
35853
- const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
35854
36017
  const cellGroup = new Group$1({
35855
36018
  x: xOrigin,
35856
36019
  y: yOrigin,
@@ -35859,7 +36022,7 @@
35859
36022
  lineWidth: cellTheme?.group?.lineWidth ?? undefined,
35860
36023
  fill: cellTheme?.group?.fill ?? undefined,
35861
36024
  stroke: cellTheme?.group?.stroke ?? undefined,
35862
- strokeArrayWidth: strokeArrayWidth,
36025
+ strokeArrayWidth: cellTheme?.group?.strokeArrayWidth ?? undefined,
35863
36026
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
35864
36027
  cursor: cellTheme?.group?.cursor ?? undefined,
35865
36028
  lineDash: cellTheme?.group?.lineDash ?? undefined,
@@ -35944,7 +36107,6 @@
35944
36107
 
35945
36108
  function createCheckboxCellGroup(cellGroup, columnGroup, xOrigin, yOrigin, col, row, colWidth, width, height, padding, textAlign, textBaseline, table, cellTheme, define) {
35946
36109
  if (!cellGroup) {
35947
- const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
35948
36110
  cellGroup = new Group$1({
35949
36111
  x: xOrigin,
35950
36112
  y: yOrigin,
@@ -35953,7 +36115,7 @@
35953
36115
  lineWidth: cellTheme?.group?.lineWidth ?? undefined,
35954
36116
  fill: cellTheme?.group?.fill ?? undefined,
35955
36117
  stroke: cellTheme?.group?.stroke ?? undefined,
35956
- strokeArrayWidth: strokeArrayWidth,
36118
+ strokeArrayWidth: cellTheme?.group?.strokeArrayWidth ?? undefined,
35957
36119
  strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
35958
36120
  cursor: cellTheme?.group?.cursor ?? undefined,
35959
36121
  lineDash: cellTheme?.group?.lineDash ?? undefined,
@@ -35997,6 +36159,15 @@
35997
36159
  const style = table._getCellStyle(col, row);
35998
36160
  const size = getProp('size', style, col, row, table);
35999
36161
  const spaceBetweenTextAndIcon = getProp('spaceBetweenTextAndIcon', style, col, row, table);
36162
+ const defaultFill = getProp('defaultFill', style, col, row, table);
36163
+ const defaultStroke = getProp('defaultStroke', style, col, row, table);
36164
+ const disableFill = getProp('disableFill', style, col, row, table);
36165
+ const checkedFill = getProp('checkedFill', style, col, row, table);
36166
+ const checkedStroke = getProp('checkedStroke', style, col, row, table);
36167
+ const disableCheckedFill = getProp('disableCheckedFill', style, col, row, table);
36168
+ const disableCheckedStroke = getProp('disableCheckedStroke', style, col, row, table);
36169
+ const checkIconImage = getProp('checkIconImage', style, col, row, table);
36170
+ const indeterminateIconImage = getProp('indeterminateIconImage', style, col, row, table);
36000
36171
  const value = table.getCellValue(col, row);
36001
36172
  const dataValue = table.getCellOriginValue(col, row);
36002
36173
  let isChecked;
@@ -36053,45 +36224,39 @@
36053
36224
  whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal'
36054
36225
  };
36055
36226
  const testAttribute = cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute;
36056
- let checkbox;
36227
+ const checkboxAttributes = {
36228
+ x: 0,
36229
+ y: 0,
36230
+ text: testAttribute,
36231
+ icon: {
36232
+ width: Math.floor(size / 1.4),
36233
+ height: Math.floor(size / 1.4)
36234
+ },
36235
+ box: {
36236
+ width: size,
36237
+ height: size
36238
+ },
36239
+ spaceBetweenTextAndIcon,
36240
+ disabled: isDisabled ?? globalDisable ?? false
36241
+ };
36057
36242
  if (isChecked === 'indeterminate') {
36058
- checkbox = new CheckBox({
36059
- x: 0,
36060
- y: 0,
36061
- text: testAttribute,
36062
- icon: {
36063
- width: Math.floor(size / 1.4),
36064
- height: Math.floor(size / 1.4)
36065
- },
36066
- box: {
36067
- width: size,
36068
- height: size
36069
- },
36070
- spaceBetweenTextAndIcon,
36071
- checked: undefined,
36072
- indeterminate: true,
36073
- disabled: isDisabled ?? globalDisable ?? false
36074
- });
36243
+ checkboxAttributes.checked = undefined;
36244
+ checkboxAttributes.indeterminate = true;
36075
36245
  }
36076
36246
  else {
36077
- checkbox = new CheckBox({
36078
- x: 0,
36079
- y: 0,
36080
- text: testAttribute,
36081
- icon: {
36082
- width: Math.floor(size / 1.4),
36083
- height: Math.floor(size / 1.4)
36084
- },
36085
- box: {
36086
- width: size,
36087
- height: size
36088
- },
36089
- spaceBetweenTextAndIcon,
36090
- checked: isChecked,
36091
- indeterminate: undefined,
36092
- disabled: isDisabled ?? globalDisable ?? false
36093
- });
36094
- }
36247
+ checkboxAttributes.checked = isChecked;
36248
+ checkboxAttributes.indeterminate = undefined;
36249
+ }
36250
+ defaultFill && (checkboxAttributes.box.fill = defaultFill);
36251
+ defaultStroke && (checkboxAttributes.box.stroke = defaultStroke);
36252
+ disableFill && (checkboxAttributes.box.disableFill = disableFill);
36253
+ checkedFill && (checkboxAttributes.box.checkedFill = checkedFill);
36254
+ checkedStroke && (checkboxAttributes.box.checkedStroke = checkedStroke);
36255
+ disableCheckedFill && (checkboxAttributes.box.disableCheckedFill = disableCheckedFill);
36256
+ disableCheckedStroke && (checkboxAttributes.box.disableCheckedStroke = disableCheckedStroke);
36257
+ checkIconImage && (checkboxAttributes.icon.checkIconImage = checkIconImage);
36258
+ indeterminateIconImage && (checkboxAttributes.icon.indeterminateIconImage = indeterminateIconImage);
36259
+ const checkbox = new CheckBox(checkboxAttributes);
36095
36260
  checkbox.name = 'checkbox';
36096
36261
  return checkbox;
36097
36262
  }
@@ -40117,29 +40282,9 @@
40117
40282
  if (Array.isArray(strokeArrayColor) || Array.isArray(strokeArrayWidth)) {
40118
40283
  if ((typeof lineWidth === 'number' && lineWidth & 1) ||
40119
40284
  (Array.isArray(strokeArrayWidth) && strokeArrayWidth.some(width => width & 1))) {
40120
- const table = group.stage.table;
40121
- const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';
40122
- let deltaWidth = 0;
40123
- let deltaHeight = 0;
40124
- if (bottomRight) {
40125
- x = Math.floor(x) - 0.5;
40126
- y = Math.floor(y) - 0.5;
40127
- if (group.role === 'cell') {
40128
- const col = group.col;
40129
- const row = group.row;
40130
- if (table && col === table.colCount - 1) {
40131
- deltaWidth = 1;
40132
- }
40133
- if (table && row === table.rowCount - 1) {
40134
- deltaHeight = 1;
40135
- }
40136
- }
40137
- }
40138
- else {
40139
- x = Math.floor(x) + 0.5;
40140
- y = Math.floor(y) + 0.5;
40141
- }
40142
- const { width: widthFroDraw, height: heightFroDraw } = getCellSizeForDraw(group, Math.ceil(width + deltaWidth), Math.ceil(height + deltaHeight));
40285
+ x = Math.floor(x) + 0.5;
40286
+ y = Math.floor(y) + 0.5;
40287
+ const { width: widthFroDraw, height: heightFroDraw } = getCellSizeForDraw(group, Math.ceil(width), Math.ceil(height));
40143
40288
  widthForStroke = widthFroDraw;
40144
40289
  heightForStroke = heightFroDraw;
40145
40290
  }
@@ -40353,29 +40498,9 @@
40353
40498
  let widthForStroke;
40354
40499
  let heightForStroke;
40355
40500
  if (lineWidth & 1) {
40356
- const table = group.stage.table;
40357
- const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';
40358
- let deltaWidth = 0;
40359
- let deltaHeight = 0;
40360
- if (bottomRight) {
40361
- x = Math.floor(x) - 0.5;
40362
- y = Math.floor(y) - 0.5;
40363
- if (group.role === 'cell') {
40364
- const col = group.col;
40365
- const row = group.row;
40366
- if (table && col === table.colCount - 1) {
40367
- deltaWidth = 1;
40368
- }
40369
- if (table && row === table.rowCount - 1) {
40370
- deltaHeight = 1;
40371
- }
40372
- }
40373
- }
40374
- else {
40375
- x = Math.floor(x) + 0.5;
40376
- y = Math.floor(y) + 0.5;
40377
- }
40378
- const { width: widthFroDraw, height: heightFroDraw } = getCellSizeForDraw(group, Math.ceil(width + deltaWidth), Math.ceil(height + deltaHeight));
40501
+ x = Math.floor(x) + 0.5;
40502
+ y = Math.floor(y) + 0.5;
40503
+ const { width: widthFroDraw, height: heightFroDraw } = getCellSizeForDraw(group, Math.ceil(width), Math.ceil(height));
40379
40504
  widthForStroke = widthFroDraw;
40380
40505
  heightForStroke = heightFroDraw;
40381
40506
  }
@@ -40445,30 +40570,10 @@
40445
40570
  lineWidth & 1) {
40446
40571
  const { width: widthFroDraw, height: heightFroDraw } = getCellSizeForDraw(group, Math.ceil(width), Math.ceil(height));
40447
40572
  context.beginPath();
40448
- const table = group.stage.table;
40449
- const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';
40450
- let deltaWidth = 0;
40451
- let deltaHeight = 0;
40452
- if (bottomRight) {
40453
- x = Math.floor(x) - 0.5;
40454
- y = Math.floor(y) - 0.5;
40455
- if (group.role === 'cell') {
40456
- const col = group.col;
40457
- const row = group.row;
40458
- if (table && col === table.colCount - 1) {
40459
- deltaWidth = 1;
40460
- }
40461
- if (table && row === table.rowCount - 1) {
40462
- deltaHeight = 1;
40463
- }
40464
- }
40465
- }
40466
- else {
40467
- x = Math.floor(x) + 0.5;
40468
- y = Math.floor(y) + 0.5;
40469
- }
40573
+ x = Math.floor(x) + 0.5;
40574
+ y = Math.floor(y) + 0.5;
40470
40575
  if (cornerRadius) {
40471
- createRectPath(context, x, y, widthFroDraw + deltaWidth, heightFroDraw + deltaHeight, cornerRadius);
40576
+ createRectPath(context, x, y, widthFroDraw, heightFroDraw, cornerRadius);
40472
40577
  }
40473
40578
  else {
40474
40579
  context.rect(x, y, widthFroDraw, heightFroDraw);
@@ -40673,24 +40778,14 @@
40673
40778
  return;
40674
40779
  }
40675
40780
  if (Array.isArray(stroke) || Array.isArray(strokeArrayColor) || Array.isArray(strokeArrayWidth)) {
40676
- let deltaWidth = 0;
40677
- let deltaHeight = 0;
40678
- if ((typeof lineWidth === 'number' && lineWidth & 1) ||
40679
- (Array.isArray(strokeArrayWidth) && strokeArrayWidth.some(width => width & 1))) {
40680
- const table = rect.stage.table;
40681
- const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';
40682
- if (bottomRight) {
40683
- x = Math.floor(x) - 0.5;
40684
- y = Math.floor(y) - 0.5;
40685
- deltaWidth = 0.5;
40686
- deltaHeight = 0.5;
40687
- }
40688
- else {
40689
- x = Math.floor(x) + 0.5;
40690
- y = Math.floor(y) + 0.5;
40691
- }
40781
+ if (rect.name !== 'border-rect' &&
40782
+ rect.name !== 'table-border-rect' &&
40783
+ ((typeof lineWidth === 'number' && lineWidth & 1) ||
40784
+ (Array.isArray(strokeArrayWidth) && strokeArrayWidth.some(width => width & 1)))) {
40785
+ x = Math.floor(x) + 0.5;
40786
+ y = Math.floor(y) + 0.5;
40692
40787
  }
40693
- renderStroke(rect, context, x, y, rectAttribute, stroke, strokeArrayWidth || lineWidth, strokeArrayColor || strokeColor, Math.ceil(width + deltaWidth), Math.ceil(height + deltaHeight));
40788
+ renderStroke(rect, context, x, y, rectAttribute, stroke, strokeArrayWidth || lineWidth, strokeArrayColor || strokeColor, Math.ceil(width), Math.ceil(height));
40694
40789
  }
40695
40790
  }
40696
40791
  };
@@ -45551,17 +45646,17 @@
45551
45646
  }
45552
45647
  }
45553
45648
  if (this.table.bottomFrozenRowCount > 0) {
45554
- this.bottomFrozenGroup.setAttribute('y', this.tableGroup.attribute.height - this.bottomFrozenGroup.attribute.height);
45649
+ this.bottomFrozenGroup.setAttribute('y', this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight());
45555
45650
  this.leftBottomCornerGroup.setAttributes({
45556
45651
  visible: true,
45557
- y: this.tableGroup.attribute.height - this.bottomFrozenGroup.attribute.height,
45558
- height: this.bottomFrozenGroup.attribute.height,
45652
+ y: this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight(),
45653
+ height: this.table.getBottomFrozenRowsHeight(),
45559
45654
  width: this.table.getFrozenColsWidth()
45560
45655
  });
45561
45656
  this.rightBottomCornerGroup.setAttributes({
45562
45657
  visible: true,
45563
- y: this.tableGroup.attribute.height - this.bottomFrozenGroup.attribute.height,
45564
- height: this.bottomFrozenGroup.attribute.height
45658
+ y: this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight(),
45659
+ height: this.table.getBottomFrozenRowsHeight()
45565
45660
  });
45566
45661
  }
45567
45662
  if (this.table.rightFrozenColCount > 0) {
@@ -48197,7 +48292,10 @@
48197
48292
  if (cellGoup?.role === 'cell' &&
48198
48293
  isValid$1(cellGoup.col) &&
48199
48294
  isValid$1(cellGoup.row) &&
48200
- (cellGoup.col !== table.stateManager.hover.cellPos.col || cellGoup.row !== table.stateManager.hover.cellPos.row)) {
48295
+ (cellGoup.col !== table.stateManager.hover.cellPos.col ||
48296
+ cellGoup.row !== table.stateManager.hover.cellPos.row) &&
48297
+ (cellGoup.col !== table.stateManager.hover.cellPosContainHeader?.col ||
48298
+ cellGoup.row !== table.stateManager.hover.cellPosContainHeader?.row)) {
48201
48299
  table.fireListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL, {
48202
48300
  col: cellGoup.col,
48203
48301
  row: cellGoup.row,
@@ -49522,7 +49620,7 @@
49522
49620
  }
49523
49621
  }
49524
49622
 
49525
- let defaultStyle$3;
49623
+ let defaultStyle$1;
49526
49624
  const DEFAULT_BAR_COLOR = (args) => {
49527
49625
  const num = args.value;
49528
49626
  if (Number(num) > 80) {
@@ -49553,7 +49651,7 @@
49553
49651
  _barMarkPosition;
49554
49652
  _barRightToLeft;
49555
49653
  static get DEFAULT() {
49556
- return defaultStyle$3 ? defaultStyle$3 : (defaultStyle$3 = new ProgressBarStyle());
49654
+ return defaultStyle$1 ? defaultStyle$1 : (defaultStyle$1 = new ProgressBarStyle());
49557
49655
  }
49558
49656
  constructor(style = {}, bodyStyle = {}) {
49559
49657
  super(style, bodyStyle);
@@ -49691,35 +49789,6 @@
49691
49789
  ];
49692
49790
  const iconPropKeys = ICON_PROP_KEYS;
49693
49791
 
49694
- let defaultStyle$2;
49695
- let CheckboxStyle$1 = class CheckboxStyle extends Style$1 {
49696
- _size;
49697
- _spaceBetweenTextAndIcon;
49698
- static get DEFAULT() {
49699
- return defaultStyle$2 ? defaultStyle$2 : (defaultStyle$2 = new CheckboxStyle());
49700
- }
49701
- constructor(style = {}, headerStyle = {}) {
49702
- super(style, headerStyle);
49703
- this._size = (style.size ?? headerStyle?.size) || 14;
49704
- this._spaceBetweenTextAndIcon = (style.spaceBetweenTextAndIcon ?? headerStyle?.spaceBetweenTextAndIcon) || 8;
49705
- }
49706
- get size() {
49707
- return this._size;
49708
- }
49709
- set size(size) {
49710
- this._size = size;
49711
- }
49712
- get spaceBetweenTextAndIcon() {
49713
- return this._spaceBetweenTextAndIcon;
49714
- }
49715
- set spaceBetweenTextAndIcon(spaceBetweenTextAndIcon) {
49716
- this._spaceBetweenTextAndIcon = spaceBetweenTextAndIcon;
49717
- }
49718
- clone() {
49719
- return new CheckboxStyle(this);
49720
- }
49721
- };
49722
-
49723
49792
  class BodyHelper {
49724
49793
  expandIcon;
49725
49794
  collapseIcon;
@@ -50441,10 +50510,10 @@
50441
50510
  return itemContainer;
50442
50511
  }
50443
50512
 
50444
- let defaultStyle$1;
50513
+ let defaultStyle;
50445
50514
  class ImageStyle extends Style {
50446
50515
  static get DEFAULT() {
50447
- return defaultStyle$1 ? defaultStyle$1 : (defaultStyle$1 = new ImageStyle());
50516
+ return defaultStyle ? defaultStyle : (defaultStyle = new ImageStyle());
50448
50517
  }
50449
50518
  constructor(style = {}, headerStyle = {}) {
50450
50519
  super(style, headerStyle);
@@ -50455,35 +50524,6 @@
50455
50524
  }
50456
50525
  }
50457
50526
 
50458
- let defaultStyle;
50459
- class CheckboxStyle extends Style {
50460
- _size;
50461
- _spaceBetweenTextAndIcon;
50462
- static get DEFAULT() {
50463
- return defaultStyle ? defaultStyle : (defaultStyle = new CheckboxStyle());
50464
- }
50465
- constructor(style = {}, headerStyle = {}) {
50466
- super(style, headerStyle);
50467
- this._size = (style.size ?? headerStyle?.size) || 14;
50468
- this._spaceBetweenTextAndIcon = (style.spaceBetweenTextAndIcon ?? headerStyle?.spaceBetweenTextAndIcon) || 8;
50469
- }
50470
- get size() {
50471
- return this._size;
50472
- }
50473
- set size(size) {
50474
- this._size = size;
50475
- }
50476
- get spaceBetweenTextAndIcon() {
50477
- return this._spaceBetweenTextAndIcon;
50478
- }
50479
- set spaceBetweenTextAndIcon(spaceBetweenTextAndIcon) {
50480
- this._spaceBetweenTextAndIcon = spaceBetweenTextAndIcon;
50481
- }
50482
- clone() {
50483
- return new CheckboxStyle(this);
50484
- }
50485
- }
50486
-
50487
50527
  class HeaderHelper {
50488
50528
  normalIcon;
50489
50529
  upIcon;
@@ -52609,7 +52649,7 @@
52609
52649
  return TABLE_EVENT_TYPE;
52610
52650
  }
52611
52651
  options;
52612
- version = "0.20.2-alpha.3";
52652
+ version = "0.20.2";
52613
52653
  pagination;
52614
52654
  id = `VTable${Date.now()}`;
52615
52655
  headerStyleCache;
@@ -54177,7 +54217,7 @@
54177
54217
  value: customMerge.text,
54178
54218
  dataValue: this.getCellOriginValue(col, row),
54179
54219
  cellHeaderPaths: this.getCellHeaderPaths(col, row)
54180
- }, styleClass, this.options.autoWrapText);
54220
+ }, styleClass, this.options.autoWrapText, this.theme);
54181
54221
  customMerge.style = fullStyle;
54182
54222
  }
54183
54223
  return customMerge;
@@ -54325,7 +54365,7 @@
54325
54365
  value: this.getCellValue(col, row),
54326
54366
  dataValue: this.getCellOriginValue(col, row),
54327
54367
  cellHeaderPaths: this.getCellHeaderPaths(col, row)
54328
- }, styleClass, this.options.autoWrapText);
54368
+ }, styleClass, this.options.autoWrapText, this.theme);
54329
54369
  }
54330
54370
  else if (layoutMap.isRightFrozenColumn(col, row) && this.theme.rightFrozenStyle) {
54331
54371
  cacheStyle = of$1(paddingForAxis ? { padding: paddingForAxis } : {}, this.theme.rightFrozenStyle, {
@@ -54335,7 +54375,7 @@
54335
54375
  value: this.getCellValue(col, row),
54336
54376
  dataValue: this.getCellOriginValue(col, row),
54337
54377
  cellHeaderPaths: this.getCellHeaderPaths(col, row)
54338
- }, styleClass, this.options.autoWrapText);
54378
+ }, styleClass, this.options.autoWrapText, this.theme);
54339
54379
  }
54340
54380
  else {
54341
54381
  const style = hd?.style || {};
@@ -54353,7 +54393,7 @@
54353
54393
  value: this.getCellValue(col, row),
54354
54394
  dataValue: this.getCellOriginValue(col, row),
54355
54395
  cellHeaderPaths: this.getCellHeaderPaths(col, row)
54356
- }, styleClass, this.options.autoWrapText);
54396
+ }, styleClass, this.options.autoWrapText, this.theme);
54357
54397
  }
54358
54398
  this.headerStyleCache.set(cacheKey, cacheStyle);
54359
54399
  return cacheStyle;
@@ -54391,7 +54431,7 @@
54391
54431
  value: this.getCellValue(col, row),
54392
54432
  dataValue: this.getCellOriginValue(col, row),
54393
54433
  cellHeaderPaths: this.getCellHeaderPaths(col, row)
54394
- }, styleClass, this.options.autoWrapText);
54434
+ }, styleClass, this.options.autoWrapText, this.theme);
54395
54435
  if (!isFunction$1(style)) {
54396
54436
  if (layoutMap.isBottomFrozenRow(row)) {
54397
54437
  this.bodyBottomStyleCache.set(cacheKey, cacheStyle);
@@ -56240,10 +56280,10 @@
56240
56280
  }
56241
56281
  get rightFrozenColCount() {
56242
56282
  if (this._table.internalProps.rightFrozenColCount) {
56243
- if (this.colCount - this.rowHeaderLevelCount >= this._table.internalProps.rightFrozenColCount) {
56283
+ if (this.colCount - this.frozenColCount >= this._table.internalProps.rightFrozenColCount) {
56244
56284
  return this._table.internalProps.rightFrozenColCount;
56245
56285
  }
56246
- return this.colCount - this.rowHeaderLevelCount;
56286
+ return Math.max(0, this.colCount - this.frozenColCount);
56247
56287
  }
56248
56288
  return 0;
56249
56289
  }
@@ -57765,8 +57805,11 @@
57765
57805
  if (Array.isArray(option) || option?.order) {
57766
57806
  sort = option;
57767
57807
  }
57768
- else {
57769
- sort = option?.sortState;
57808
+ else if (option) {
57809
+ sort = option.sortState;
57810
+ }
57811
+ else if (option === null) {
57812
+ sort = null;
57770
57813
  }
57771
57814
  typeof window !== 'undefined' ? window.performance.now() : 0;
57772
57815
  const oldHoverState = { col: this.stateManager.hover.cellPos.col, row: this.stateManager.hover.cellPos.row };
@@ -64110,7 +64153,7 @@
64110
64153
  }
64111
64154
 
64112
64155
  registerForVrender();
64113
- const version = "0.20.2-alpha.3";
64156
+ const version = "0.20.2";
64114
64157
  function getIcons() {
64115
64158
  return get$2();
64116
64159
  }