@visactor/vtable-calendar 1.12.0 → 1.12.1-alpha.0
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
|
@@ -42047,7 +42047,7 @@
|
|
|
42047
42047
|
globalPointerdownCallback = e => {
|
|
42048
42048
|
var _a;
|
|
42049
42049
|
const target = e.target;
|
|
42050
|
-
if (!table.getElement().contains(target)) {
|
|
42050
|
+
if (!table.getElement().contains(target) && !table.internalProps.menuHandler.containElement(target)) {
|
|
42051
42051
|
const isCompleteEdit = null === (_a = table.editorManager) || void 0 === _a ? void 0 : _a.completeEdit(e);
|
|
42052
42052
|
getPromiseValue(isCompleteEdit, isCompleteEdit => {
|
|
42053
42053
|
var _a, _b;
|
|
@@ -45595,7 +45595,7 @@
|
|
|
45595
45595
|
constructor(container) {
|
|
45596
45596
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
45597
45597
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45598
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.12.0", 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");
|
|
45598
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.12.1-alpha.0", 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");
|
|
45599
45599
|
const {
|
|
45600
45600
|
frozenColCount = 0,
|
|
45601
45601
|
frozenRowCount: frozenRowCount,
|
|
@@ -51056,6 +51056,9 @@
|
|
|
51056
51056
|
pointInMenuElement(x, y) {
|
|
51057
51057
|
return this._getMenuElement().pointInMenuElement(x, y);
|
|
51058
51058
|
}
|
|
51059
|
+
getRootElement() {
|
|
51060
|
+
return this._getMenuElement().rootElement;
|
|
51061
|
+
}
|
|
51059
51062
|
}
|
|
51060
51063
|
|
|
51061
51064
|
const CLASSNAME = "vtable__menu-element",
|
|
@@ -51344,6 +51347,13 @@
|
|
|
51344
51347
|
info: info
|
|
51345
51348
|
};
|
|
51346
51349
|
}
|
|
51350
|
+
containElement(el) {
|
|
51351
|
+
var _a;
|
|
51352
|
+
for (const k in this._menuInstances) {
|
|
51353
|
+
if (null === (_a = this._menuInstances[k].getRootElement()) || void 0 === _a ? void 0 : _a.contains(el)) return !0;
|
|
51354
|
+
}
|
|
51355
|
+
return !1;
|
|
51356
|
+
}
|
|
51347
51357
|
}
|
|
51348
51358
|
|
|
51349
51359
|
class Title {
|