@visactor/vtable 0.20.1 → 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.
- package/cjs/ListTable.js +1 -1
- package/cjs/ListTable.js.map +1 -1
- package/cjs/body-helper/body-helper.d.ts +2 -1
- package/cjs/body-helper/style/CheckboxStyle.d.ts +31 -2
- package/cjs/body-helper/style/CheckboxStyle.js +70 -4
- package/cjs/body-helper/style/CheckboxStyle.js.map +1 -1
- package/cjs/body-helper/style.d.ts +2 -1
- package/cjs/body-helper/style.js +5 -4
- package/cjs/body-helper/style.js.map +1 -1
- package/cjs/core/BaseTable.js +6 -6
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/tableHelper.js +9 -4
- package/cjs/core/tableHelper.js.map +1 -1
- package/cjs/event/listener/table-group.js +8 -8
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/header-helper/header-helper.d.ts +1 -1
- package/cjs/header-helper/style/CheckboxStyle.d.ts +31 -2
- package/cjs/header-helper/style/CheckboxStyle.js +70 -4
- package/cjs/header-helper/style/CheckboxStyle.js.map +1 -1
- package/cjs/header-helper/style.d.ts +2 -1
- package/cjs/header-helper/style.js +12 -7
- package/cjs/header-helper/style.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/simple-header-layout.js +1 -1
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +22 -25
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +5 -5
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/themes/theme.d.ts +2 -0
- package/cjs/themes/theme.js +9 -1
- package/cjs/themes/theme.js.map +1 -1
- package/cjs/ts-types/column/style.d.ts +14 -0
- package/cjs/ts-types/column/style.js.map +1 -1
- package/cjs/ts-types/theme.d.ts +2 -1
- package/cjs/ts-types/theme.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +318 -124
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +1 -1
- package/es/ListTable.js.map +1 -1
- package/es/body-helper/body-helper.d.ts +2 -1
- package/es/body-helper/style/CheckboxStyle.d.ts +31 -2
- package/es/body-helper/style/CheckboxStyle.js +70 -4
- package/es/body-helper/style/CheckboxStyle.js.map +1 -1
- package/es/body-helper/style.d.ts +2 -1
- package/es/body-helper/style.js +6 -3
- package/es/body-helper/style.js.map +1 -1
- package/es/core/BaseTable.js +6 -6
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/tableHelper.js +8 -4
- package/es/core/tableHelper.js.map +1 -1
- package/es/event/listener/table-group.js +7 -7
- package/es/event/listener/table-group.js.map +1 -1
- package/es/header-helper/header-helper.d.ts +1 -1
- package/es/header-helper/style/CheckboxStyle.d.ts +31 -2
- package/es/header-helper/style/CheckboxStyle.js +70 -4
- package/es/header-helper/style/CheckboxStyle.js.map +1 -1
- package/es/header-helper/style.d.ts +2 -1
- package/es/header-helper/style.js +6 -3
- package/es/header-helper/style.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/simple-header-layout.js +1 -1
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +14 -25
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/es/scenegraph/scenegraph.js +5 -5
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/themes/theme.d.ts +2 -0
- package/es/themes/theme.js +8 -1
- package/es/themes/theme.js.map +1 -1
- package/es/ts-types/column/style.d.ts +14 -0
- package/es/ts-types/column/style.js.map +1 -1
- package/es/ts-types/theme.d.ts +2 -1
- package/es/ts-types/theme.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +2 -2
package/dist/vtable.js
CHANGED
|
@@ -21847,13 +21847,123 @@
|
|
|
21847
21847
|
}
|
|
21848
21848
|
}
|
|
21849
21849
|
|
|
21850
|
-
|
|
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$
|
|
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$
|
|
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$
|
|
22202
|
+
let defaultStyle$3;
|
|
22090
22203
|
class TextHeaderStyle extends Style {
|
|
22091
22204
|
_autoWrapText;
|
|
22092
22205
|
_lineClamp;
|
|
22093
22206
|
static get DEFAULT() {
|
|
22094
|
-
return defaultStyle$
|
|
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
|
-
|
|
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 = {
|
|
@@ -24179,6 +24406,14 @@
|
|
|
24179
24406
|
}
|
|
24180
24407
|
return this._axisStyle;
|
|
24181
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
|
+
}
|
|
24182
24417
|
get textPopTipStyle() {
|
|
24183
24418
|
if (!this._textPopTipStyle) {
|
|
24184
24419
|
const { obj, superTheme } = this.internalTheme;
|
|
@@ -32823,16 +33058,22 @@
|
|
|
32823
33058
|
let fontFamily;
|
|
32824
33059
|
let fontSize;
|
|
32825
33060
|
let fontWeight;
|
|
33061
|
+
let fontStyle;
|
|
33062
|
+
let fontVariant;
|
|
32826
33063
|
if (font) {
|
|
32827
|
-
const { family, size, weight } = parseFont(font);
|
|
33064
|
+
const { family, size, weight, style, variant } = parseFont(font);
|
|
32828
33065
|
fontFamily = family.join(' ');
|
|
32829
33066
|
fontSize = size;
|
|
32830
33067
|
fontWeight = weight;
|
|
33068
|
+
fontStyle = style;
|
|
33069
|
+
fontStyle = variant;
|
|
32831
33070
|
}
|
|
32832
33071
|
else {
|
|
32833
33072
|
fontFamily = getProp('fontFamily', headerStyle, col, row, table);
|
|
32834
33073
|
fontSize = getProp('fontSize', headerStyle, col, row, table);
|
|
32835
33074
|
fontWeight = getProp('fontWeight', headerStyle, col, row, table);
|
|
33075
|
+
fontStyle = getProp('fontStyle', headerStyle, col, row, table);
|
|
33076
|
+
fontVariant = getProp('fontVariant', headerStyle, col, row, table);
|
|
32836
33077
|
}
|
|
32837
33078
|
const textAlign = getProp('textAlign', headerStyle, col, row, table);
|
|
32838
33079
|
const textBaseline = getProp('textBaseline', headerStyle, col, row, table);
|
|
@@ -32868,6 +33109,8 @@
|
|
|
32868
33109
|
fontFamily,
|
|
32869
33110
|
fontSize,
|
|
32870
33111
|
fontWeight,
|
|
33112
|
+
fontStyle,
|
|
33113
|
+
fontVariant,
|
|
32871
33114
|
fill: color,
|
|
32872
33115
|
textAlign,
|
|
32873
33116
|
textBaseline,
|
|
@@ -35916,6 +36159,15 @@
|
|
|
35916
36159
|
const style = table._getCellStyle(col, row);
|
|
35917
36160
|
const size = getProp('size', style, col, row, table);
|
|
35918
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);
|
|
35919
36171
|
const value = table.getCellValue(col, row);
|
|
35920
36172
|
const dataValue = table.getCellOriginValue(col, row);
|
|
35921
36173
|
let isChecked;
|
|
@@ -35972,45 +36224,39 @@
|
|
|
35972
36224
|
whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal'
|
|
35973
36225
|
};
|
|
35974
36226
|
const testAttribute = cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute;
|
|
35975
|
-
|
|
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
|
+
};
|
|
35976
36242
|
if (isChecked === 'indeterminate') {
|
|
35977
|
-
|
|
35978
|
-
|
|
35979
|
-
y: 0,
|
|
35980
|
-
text: testAttribute,
|
|
35981
|
-
icon: {
|
|
35982
|
-
width: Math.floor(size / 1.4),
|
|
35983
|
-
height: Math.floor(size / 1.4)
|
|
35984
|
-
},
|
|
35985
|
-
box: {
|
|
35986
|
-
width: size,
|
|
35987
|
-
height: size
|
|
35988
|
-
},
|
|
35989
|
-
spaceBetweenTextAndIcon,
|
|
35990
|
-
checked: undefined,
|
|
35991
|
-
indeterminate: true,
|
|
35992
|
-
disabled: isDisabled ?? globalDisable ?? false
|
|
35993
|
-
});
|
|
36243
|
+
checkboxAttributes.checked = undefined;
|
|
36244
|
+
checkboxAttributes.indeterminate = true;
|
|
35994
36245
|
}
|
|
35995
36246
|
else {
|
|
35996
|
-
|
|
35997
|
-
|
|
35998
|
-
|
|
35999
|
-
|
|
36000
|
-
|
|
36001
|
-
|
|
36002
|
-
|
|
36003
|
-
|
|
36004
|
-
|
|
36005
|
-
|
|
36006
|
-
|
|
36007
|
-
|
|
36008
|
-
|
|
36009
|
-
checked: isChecked,
|
|
36010
|
-
indeterminate: undefined,
|
|
36011
|
-
disabled: isDisabled ?? globalDisable ?? false
|
|
36012
|
-
});
|
|
36013
|
-
}
|
|
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);
|
|
36014
36260
|
checkbox.name = 'checkbox';
|
|
36015
36261
|
return checkbox;
|
|
36016
36262
|
}
|
|
@@ -45400,17 +45646,17 @@
|
|
|
45400
45646
|
}
|
|
45401
45647
|
}
|
|
45402
45648
|
if (this.table.bottomFrozenRowCount > 0) {
|
|
45403
|
-
this.bottomFrozenGroup.setAttribute('y', this.tableGroup.attribute.height - this.
|
|
45649
|
+
this.bottomFrozenGroup.setAttribute('y', this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight());
|
|
45404
45650
|
this.leftBottomCornerGroup.setAttributes({
|
|
45405
45651
|
visible: true,
|
|
45406
|
-
y: this.tableGroup.attribute.height - this.
|
|
45407
|
-
height: this.
|
|
45652
|
+
y: this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight(),
|
|
45653
|
+
height: this.table.getBottomFrozenRowsHeight(),
|
|
45408
45654
|
width: this.table.getFrozenColsWidth()
|
|
45409
45655
|
});
|
|
45410
45656
|
this.rightBottomCornerGroup.setAttributes({
|
|
45411
45657
|
visible: true,
|
|
45412
|
-
y: this.tableGroup.attribute.height - this.
|
|
45413
|
-
height: this.
|
|
45658
|
+
y: this.tableGroup.attribute.height - this.table.getBottomFrozenRowsHeight(),
|
|
45659
|
+
height: this.table.getBottomFrozenRowsHeight()
|
|
45414
45660
|
});
|
|
45415
45661
|
}
|
|
45416
45662
|
if (this.table.rightFrozenColCount > 0) {
|
|
@@ -48046,7 +48292,10 @@
|
|
|
48046
48292
|
if (cellGoup?.role === 'cell' &&
|
|
48047
48293
|
isValid$1(cellGoup.col) &&
|
|
48048
48294
|
isValid$1(cellGoup.row) &&
|
|
48049
|
-
(cellGoup.col !== table.stateManager.hover.cellPos.col ||
|
|
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)) {
|
|
48050
48299
|
table.fireListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL, {
|
|
48051
48300
|
col: cellGoup.col,
|
|
48052
48301
|
row: cellGoup.row,
|
|
@@ -49371,7 +49620,7 @@
|
|
|
49371
49620
|
}
|
|
49372
49621
|
}
|
|
49373
49622
|
|
|
49374
|
-
let defaultStyle$
|
|
49623
|
+
let defaultStyle$1;
|
|
49375
49624
|
const DEFAULT_BAR_COLOR = (args) => {
|
|
49376
49625
|
const num = args.value;
|
|
49377
49626
|
if (Number(num) > 80) {
|
|
@@ -49402,7 +49651,7 @@
|
|
|
49402
49651
|
_barMarkPosition;
|
|
49403
49652
|
_barRightToLeft;
|
|
49404
49653
|
static get DEFAULT() {
|
|
49405
|
-
return defaultStyle$
|
|
49654
|
+
return defaultStyle$1 ? defaultStyle$1 : (defaultStyle$1 = new ProgressBarStyle());
|
|
49406
49655
|
}
|
|
49407
49656
|
constructor(style = {}, bodyStyle = {}) {
|
|
49408
49657
|
super(style, bodyStyle);
|
|
@@ -49540,35 +49789,6 @@
|
|
|
49540
49789
|
];
|
|
49541
49790
|
const iconPropKeys = ICON_PROP_KEYS;
|
|
49542
49791
|
|
|
49543
|
-
let defaultStyle$2;
|
|
49544
|
-
let CheckboxStyle$1 = class CheckboxStyle extends Style$1 {
|
|
49545
|
-
_size;
|
|
49546
|
-
_spaceBetweenTextAndIcon;
|
|
49547
|
-
static get DEFAULT() {
|
|
49548
|
-
return defaultStyle$2 ? defaultStyle$2 : (defaultStyle$2 = new CheckboxStyle());
|
|
49549
|
-
}
|
|
49550
|
-
constructor(style = {}, headerStyle = {}) {
|
|
49551
|
-
super(style, headerStyle);
|
|
49552
|
-
this._size = (style.size ?? headerStyle?.size) || 14;
|
|
49553
|
-
this._spaceBetweenTextAndIcon = (style.spaceBetweenTextAndIcon ?? headerStyle?.spaceBetweenTextAndIcon) || 8;
|
|
49554
|
-
}
|
|
49555
|
-
get size() {
|
|
49556
|
-
return this._size;
|
|
49557
|
-
}
|
|
49558
|
-
set size(size) {
|
|
49559
|
-
this._size = size;
|
|
49560
|
-
}
|
|
49561
|
-
get spaceBetweenTextAndIcon() {
|
|
49562
|
-
return this._spaceBetweenTextAndIcon;
|
|
49563
|
-
}
|
|
49564
|
-
set spaceBetweenTextAndIcon(spaceBetweenTextAndIcon) {
|
|
49565
|
-
this._spaceBetweenTextAndIcon = spaceBetweenTextAndIcon;
|
|
49566
|
-
}
|
|
49567
|
-
clone() {
|
|
49568
|
-
return new CheckboxStyle(this);
|
|
49569
|
-
}
|
|
49570
|
-
};
|
|
49571
|
-
|
|
49572
49792
|
class BodyHelper {
|
|
49573
49793
|
expandIcon;
|
|
49574
49794
|
collapseIcon;
|
|
@@ -50290,10 +50510,10 @@
|
|
|
50290
50510
|
return itemContainer;
|
|
50291
50511
|
}
|
|
50292
50512
|
|
|
50293
|
-
let defaultStyle
|
|
50513
|
+
let defaultStyle;
|
|
50294
50514
|
class ImageStyle extends Style {
|
|
50295
50515
|
static get DEFAULT() {
|
|
50296
|
-
return defaultStyle
|
|
50516
|
+
return defaultStyle ? defaultStyle : (defaultStyle = new ImageStyle());
|
|
50297
50517
|
}
|
|
50298
50518
|
constructor(style = {}, headerStyle = {}) {
|
|
50299
50519
|
super(style, headerStyle);
|
|
@@ -50304,35 +50524,6 @@
|
|
|
50304
50524
|
}
|
|
50305
50525
|
}
|
|
50306
50526
|
|
|
50307
|
-
let defaultStyle;
|
|
50308
|
-
class CheckboxStyle extends Style {
|
|
50309
|
-
_size;
|
|
50310
|
-
_spaceBetweenTextAndIcon;
|
|
50311
|
-
static get DEFAULT() {
|
|
50312
|
-
return defaultStyle ? defaultStyle : (defaultStyle = new CheckboxStyle());
|
|
50313
|
-
}
|
|
50314
|
-
constructor(style = {}, headerStyle = {}) {
|
|
50315
|
-
super(style, headerStyle);
|
|
50316
|
-
this._size = (style.size ?? headerStyle?.size) || 14;
|
|
50317
|
-
this._spaceBetweenTextAndIcon = (style.spaceBetweenTextAndIcon ?? headerStyle?.spaceBetweenTextAndIcon) || 8;
|
|
50318
|
-
}
|
|
50319
|
-
get size() {
|
|
50320
|
-
return this._size;
|
|
50321
|
-
}
|
|
50322
|
-
set size(size) {
|
|
50323
|
-
this._size = size;
|
|
50324
|
-
}
|
|
50325
|
-
get spaceBetweenTextAndIcon() {
|
|
50326
|
-
return this._spaceBetweenTextAndIcon;
|
|
50327
|
-
}
|
|
50328
|
-
set spaceBetweenTextAndIcon(spaceBetweenTextAndIcon) {
|
|
50329
|
-
this._spaceBetweenTextAndIcon = spaceBetweenTextAndIcon;
|
|
50330
|
-
}
|
|
50331
|
-
clone() {
|
|
50332
|
-
return new CheckboxStyle(this);
|
|
50333
|
-
}
|
|
50334
|
-
}
|
|
50335
|
-
|
|
50336
50527
|
class HeaderHelper {
|
|
50337
50528
|
normalIcon;
|
|
50338
50529
|
upIcon;
|
|
@@ -52458,7 +52649,7 @@
|
|
|
52458
52649
|
return TABLE_EVENT_TYPE;
|
|
52459
52650
|
}
|
|
52460
52651
|
options;
|
|
52461
|
-
version = "0.20.
|
|
52652
|
+
version = "0.20.2";
|
|
52462
52653
|
pagination;
|
|
52463
52654
|
id = `VTable${Date.now()}`;
|
|
52464
52655
|
headerStyleCache;
|
|
@@ -54026,7 +54217,7 @@
|
|
|
54026
54217
|
value: customMerge.text,
|
|
54027
54218
|
dataValue: this.getCellOriginValue(col, row),
|
|
54028
54219
|
cellHeaderPaths: this.getCellHeaderPaths(col, row)
|
|
54029
|
-
}, styleClass, this.options.autoWrapText);
|
|
54220
|
+
}, styleClass, this.options.autoWrapText, this.theme);
|
|
54030
54221
|
customMerge.style = fullStyle;
|
|
54031
54222
|
}
|
|
54032
54223
|
return customMerge;
|
|
@@ -54174,7 +54365,7 @@
|
|
|
54174
54365
|
value: this.getCellValue(col, row),
|
|
54175
54366
|
dataValue: this.getCellOriginValue(col, row),
|
|
54176
54367
|
cellHeaderPaths: this.getCellHeaderPaths(col, row)
|
|
54177
|
-
}, styleClass, this.options.autoWrapText);
|
|
54368
|
+
}, styleClass, this.options.autoWrapText, this.theme);
|
|
54178
54369
|
}
|
|
54179
54370
|
else if (layoutMap.isRightFrozenColumn(col, row) && this.theme.rightFrozenStyle) {
|
|
54180
54371
|
cacheStyle = of$1(paddingForAxis ? { padding: paddingForAxis } : {}, this.theme.rightFrozenStyle, {
|
|
@@ -54184,7 +54375,7 @@
|
|
|
54184
54375
|
value: this.getCellValue(col, row),
|
|
54185
54376
|
dataValue: this.getCellOriginValue(col, row),
|
|
54186
54377
|
cellHeaderPaths: this.getCellHeaderPaths(col, row)
|
|
54187
|
-
}, styleClass, this.options.autoWrapText);
|
|
54378
|
+
}, styleClass, this.options.autoWrapText, this.theme);
|
|
54188
54379
|
}
|
|
54189
54380
|
else {
|
|
54190
54381
|
const style = hd?.style || {};
|
|
@@ -54202,7 +54393,7 @@
|
|
|
54202
54393
|
value: this.getCellValue(col, row),
|
|
54203
54394
|
dataValue: this.getCellOriginValue(col, row),
|
|
54204
54395
|
cellHeaderPaths: this.getCellHeaderPaths(col, row)
|
|
54205
|
-
}, styleClass, this.options.autoWrapText);
|
|
54396
|
+
}, styleClass, this.options.autoWrapText, this.theme);
|
|
54206
54397
|
}
|
|
54207
54398
|
this.headerStyleCache.set(cacheKey, cacheStyle);
|
|
54208
54399
|
return cacheStyle;
|
|
@@ -54240,7 +54431,7 @@
|
|
|
54240
54431
|
value: this.getCellValue(col, row),
|
|
54241
54432
|
dataValue: this.getCellOriginValue(col, row),
|
|
54242
54433
|
cellHeaderPaths: this.getCellHeaderPaths(col, row)
|
|
54243
|
-
}, styleClass, this.options.autoWrapText);
|
|
54434
|
+
}, styleClass, this.options.autoWrapText, this.theme);
|
|
54244
54435
|
if (!isFunction$1(style)) {
|
|
54245
54436
|
if (layoutMap.isBottomFrozenRow(row)) {
|
|
54246
54437
|
this.bodyBottomStyleCache.set(cacheKey, cacheStyle);
|
|
@@ -56089,10 +56280,10 @@
|
|
|
56089
56280
|
}
|
|
56090
56281
|
get rightFrozenColCount() {
|
|
56091
56282
|
if (this._table.internalProps.rightFrozenColCount) {
|
|
56092
|
-
if (this.colCount - this.
|
|
56283
|
+
if (this.colCount - this.frozenColCount >= this._table.internalProps.rightFrozenColCount) {
|
|
56093
56284
|
return this._table.internalProps.rightFrozenColCount;
|
|
56094
56285
|
}
|
|
56095
|
-
return this.colCount - this.
|
|
56286
|
+
return Math.max(0, this.colCount - this.frozenColCount);
|
|
56096
56287
|
}
|
|
56097
56288
|
return 0;
|
|
56098
56289
|
}
|
|
@@ -57614,8 +57805,11 @@
|
|
|
57614
57805
|
if (Array.isArray(option) || option?.order) {
|
|
57615
57806
|
sort = option;
|
|
57616
57807
|
}
|
|
57617
|
-
else {
|
|
57618
|
-
sort = option
|
|
57808
|
+
else if (option) {
|
|
57809
|
+
sort = option.sortState;
|
|
57810
|
+
}
|
|
57811
|
+
else if (option === null) {
|
|
57812
|
+
sort = null;
|
|
57619
57813
|
}
|
|
57620
57814
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
57621
57815
|
const oldHoverState = { col: this.stateManager.hover.cellPos.col, row: this.stateManager.hover.cellPos.row };
|
|
@@ -63959,7 +64153,7 @@
|
|
|
63959
64153
|
}
|
|
63960
64154
|
|
|
63961
64155
|
registerForVrender();
|
|
63962
|
-
const version = "0.20.
|
|
64156
|
+
const version = "0.20.2";
|
|
63963
64157
|
function getIcons() {
|
|
63964
64158
|
return get$2();
|
|
63965
64159
|
}
|