@visactor/vtable 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/body-helper/style.js +2 -1
- package/cjs/components/menu/dom/logic/MenuElementStyle.js +1 -1
- package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -1
- package/cjs/core/BaseTable.js +2 -3
- package/cjs/core/BaseTable.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/scenegraph/utils/cell-border-stroke-width.js +9 -4
- package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -1
- package/cjs/state/state.js +7 -6
- package/cjs/state/state.js.map +1 -1
- package/cjs/tools/style.d.ts +2 -0
- package/cjs/tools/style.js +17 -4
- package/cjs/tools/style.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +25 -8
- package/dist/vtable.min.js +2 -2
- package/es/body-helper/style.js +2 -1
- package/es/components/menu/dom/logic/MenuElementStyle.js +1 -1
- package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -1
- package/es/core/BaseTable.js +2 -3
- package/es/core/BaseTable.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/scenegraph/utils/cell-border-stroke-width.js +3 -1
- package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -1
- package/es/state/state.js +7 -6
- package/es/state/state.js.map +1 -1
- package/es/tools/style.d.ts +2 -0
- package/es/tools/style.js +10 -0
- package/es/tools/style.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/dist/vtable.js
CHANGED
|
@@ -26806,6 +26806,18 @@
|
|
|
26806
26806
|
}
|
|
26807
26807
|
return scrollStyle?.width ?? 7;
|
|
26808
26808
|
}
|
|
26809
|
+
function isValidStyle(style) {
|
|
26810
|
+
if (!isValid$1(style)) {
|
|
26811
|
+
return false;
|
|
26812
|
+
}
|
|
26813
|
+
if (isArray$1(style)) {
|
|
26814
|
+
return style.some(s => isValid$1(s));
|
|
26815
|
+
}
|
|
26816
|
+
return true;
|
|
26817
|
+
}
|
|
26818
|
+
function isZeroStyle(style) {
|
|
26819
|
+
return style === 0 || (isArray$1(style) && style.every(s => s === 0));
|
|
26820
|
+
}
|
|
26809
26821
|
|
|
26810
26822
|
const judgeType$1 = (value) => {
|
|
26811
26823
|
switch (Object.prototype.toString.call(value)) {
|
|
@@ -33634,7 +33646,9 @@
|
|
|
33634
33646
|
|
|
33635
33647
|
function getCellBorderStrokeWidth(col, row, cellTheme, table) {
|
|
33636
33648
|
let strokeArrayWidth = cellTheme?.group?.strokeArrayWidth ?? undefined;
|
|
33637
|
-
if (table.theme.cellInnerBorder
|
|
33649
|
+
if (table.theme.cellInnerBorder ||
|
|
33650
|
+
!isValidStyle(table.theme.frameStyle.borderLineWidth) ||
|
|
33651
|
+
isZeroStyle(table.theme.frameStyle.borderLineWidth)) {
|
|
33638
33652
|
return strokeArrayWidth;
|
|
33639
33653
|
}
|
|
33640
33654
|
if (col === 0) {
|
|
@@ -48422,12 +48436,15 @@
|
|
|
48422
48436
|
return seled;
|
|
48423
48437
|
}
|
|
48424
48438
|
setSortState(sortState) {
|
|
48439
|
+
const state = this;
|
|
48425
48440
|
sortState = !sortState || Array.isArray(sortState) ? sortState : [sortState];
|
|
48426
48441
|
function flattenColumns(columns) {
|
|
48427
48442
|
const result = [];
|
|
48428
48443
|
function flatten(cols, parentStartIndex = 0) {
|
|
48429
48444
|
cols.forEach((col) => {
|
|
48430
|
-
const startIndex = col.startInTotal
|
|
48445
|
+
const startIndex = col.startInTotal
|
|
48446
|
+
? col.startInTotal + state.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount ?? 0
|
|
48447
|
+
: parentStartIndex;
|
|
48431
48448
|
if (col.columns) {
|
|
48432
48449
|
flatten(col.columns, startIndex);
|
|
48433
48450
|
}
|
|
@@ -48449,7 +48466,7 @@
|
|
|
48449
48466
|
prev.push({
|
|
48450
48467
|
field: item.field,
|
|
48451
48468
|
order: item.order,
|
|
48452
|
-
row: column.startInTotal,
|
|
48469
|
+
row: column.startInTotal + this.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount ?? 0,
|
|
48453
48470
|
col: column.level
|
|
48454
48471
|
});
|
|
48455
48472
|
}
|
|
@@ -48457,7 +48474,7 @@
|
|
|
48457
48474
|
prev.push({
|
|
48458
48475
|
field: item.field,
|
|
48459
48476
|
order: item.order,
|
|
48460
|
-
col: column.startInTotal,
|
|
48477
|
+
col: column.startInTotal + this.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount ?? 0,
|
|
48461
48478
|
row: column.level
|
|
48462
48479
|
});
|
|
48463
48480
|
}
|
|
@@ -49144,7 +49161,7 @@
|
|
|
49144
49161
|
row: null,
|
|
49145
49162
|
iconMark: null,
|
|
49146
49163
|
order: null,
|
|
49147
|
-
oldSortCol: column.startInTotal,
|
|
49164
|
+
oldSortCol: column.startInTotal + this.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount ?? 0,
|
|
49148
49165
|
oldSortRow: column.level,
|
|
49149
49166
|
oldIconMark: null
|
|
49150
49167
|
});
|
|
@@ -52095,7 +52112,7 @@
|
|
|
52095
52112
|
width: max-content;
|
|
52096
52113
|
box-shadow: 0px 8px 16px rgba(27, 31, 35, 0.12);
|
|
52097
52114
|
max-height: 100%;
|
|
52098
|
-
overflow-y:
|
|
52115
|
+
overflow-y: auto;
|
|
52099
52116
|
}
|
|
52100
52117
|
.vtable__menu-element--hidden {
|
|
52101
52118
|
opacity: 0;
|
|
@@ -55902,7 +55919,7 @@
|
|
|
55902
55919
|
return TABLE_EVENT_TYPE;
|
|
55903
55920
|
}
|
|
55904
55921
|
options;
|
|
55905
|
-
version = "1.10.
|
|
55922
|
+
version = "1.10.1";
|
|
55906
55923
|
pagination;
|
|
55907
55924
|
id = `VTable${Date.now()}`;
|
|
55908
55925
|
headerStyleCache;
|
|
@@ -75149,7 +75166,7 @@
|
|
|
75149
75166
|
}
|
|
75150
75167
|
|
|
75151
75168
|
registerForVrender();
|
|
75152
|
-
const version = "1.10.
|
|
75169
|
+
const version = "1.10.1";
|
|
75153
75170
|
function getIcons() {
|
|
75154
75171
|
return get$2();
|
|
75155
75172
|
}
|