@visactor/vtable-calendar 1.11.2-alpha.0 → 1.11.2-alpha.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/dist/vtable-calendar.js
CHANGED
|
@@ -40805,14 +40805,28 @@
|
|
|
40805
40805
|
}
|
|
40806
40806
|
}
|
|
40807
40807
|
function setCellCheckboxState(col, row, checked, table) {
|
|
40808
|
-
const
|
|
40809
|
-
|
|
40810
|
-
if (!
|
|
40808
|
+
const cellGroup = table.scenegraph.getCell(col, row),
|
|
40809
|
+
checkbox = null == cellGroup ? void 0 : cellGroup.getChildByName("checkbox");
|
|
40810
|
+
if (!checkbox) {
|
|
40811
|
+
const field = table.getHeaderField(col, row);
|
|
40812
|
+
if (table.isHeader(col, row)) {
|
|
40813
|
+
table.stateManager.setHeaderCheckedState(field, checked);
|
|
40814
|
+
"checkbox" === table.getCellType(col, row) && table.scenegraph.updateCheckboxCellState(col, row, checked);
|
|
40815
|
+
} else {
|
|
40816
|
+
table.stateManager.setCheckedState(col, row, field, checked);
|
|
40817
|
+
if ("checkbox" === table.getCellType(col, row)) {
|
|
40818
|
+
const oldHeaderCheckedState = table.stateManager.headerCheckedState[field],
|
|
40819
|
+
newHeaderCheckedState = table.stateManager.updateHeaderCheckedState(field, col, row);
|
|
40820
|
+
oldHeaderCheckedState !== newHeaderCheckedState && table.scenegraph.updateHeaderCheckboxCellState(col, row, newHeaderCheckedState);
|
|
40821
|
+
}
|
|
40822
|
+
}
|
|
40823
|
+
return;
|
|
40824
|
+
}
|
|
40811
40825
|
const {
|
|
40812
40826
|
checked: oldChecked,
|
|
40813
40827
|
indeterminate: indeterminate
|
|
40814
|
-
} =
|
|
40815
|
-
indeterminate ? (checked ||
|
|
40828
|
+
} = checkbox.attribute;
|
|
40829
|
+
indeterminate ? (checked || checkbox._handlePointerUp(), checkbox._handlePointerUp()) : oldChecked ? checked || checkbox._handlePointerUp() : checked && checkbox._handlePointerUp();
|
|
40816
40830
|
}
|
|
40817
40831
|
function changeCheckboxOrder(sourceIndex, targetIndex, state) {
|
|
40818
40832
|
const {
|
|
@@ -45478,7 +45492,7 @@
|
|
|
45478
45492
|
constructor(container) {
|
|
45479
45493
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
45480
45494
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45481
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.11.2-alpha.
|
|
45495
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.11.2-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
45482
45496
|
const {
|
|
45483
45497
|
frozenColCount = 0,
|
|
45484
45498
|
frozenRowCount: frozenRowCount,
|
|
@@ -48342,10 +48356,11 @@
|
|
|
48342
48356
|
return this._headerObjectMap[id];
|
|
48343
48357
|
}
|
|
48344
48358
|
getHeaderField(col, row) {
|
|
48345
|
-
var _a, _b;
|
|
48359
|
+
var _a, _b, _c;
|
|
48346
48360
|
if (this.isSeriesNumberInHeader(col, row)) return null === (_a = this.getSeriesNumberHeader(col, row)) || void 0 === _a ? void 0 : _a.field;
|
|
48361
|
+
if (this.isSeriesNumberInBody(col, row)) return null === (_b = this.getSeriesNumberBody(col, row)) || void 0 === _b ? void 0 : _b.field;
|
|
48347
48362
|
const id = this.getCellId(col, row);
|
|
48348
|
-
return (null === (
|
|
48363
|
+
return (null === (_c = this._headerObjectMap[id]) || void 0 === _c ? void 0 : _c.field) || (this.transpose ? this._columns[row] && this._columns[row].field : this._columns[col - this.leftRowSeriesNumberColumnCount] && this._columns[col - this.leftRowSeriesNumberColumnCount].field);
|
|
48349
48364
|
}
|
|
48350
48365
|
getHeaderCellAdressById(id) {
|
|
48351
48366
|
for (let i = 0; i < this._headerCellIds.length; i++) {
|