@visactor/vtable-calendar 1.12.0 → 1.12.1-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.
@@ -31766,24 +31766,6 @@
31766
31766
  cursor: "pointer"
31767
31767
  };
31768
31768
  },
31769
- get loading() {
31770
- return {
31771
- type: "image",
31772
- src: "https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/media/loading-circle.gif",
31773
- width: collapse_size,
31774
- height: collapse_size,
31775
- name: "loading",
31776
- positionType: IconPosition.contentLeft,
31777
- marginLeft: 0,
31778
- marginRight: 4,
31779
- hover: {
31780
- width: collapse_size_2,
31781
- height: collapse_size_2,
31782
- bgColor: "rgba(101, 117, 168, 0.1)"
31783
- },
31784
- isGif: !0
31785
- };
31786
- },
31787
31769
  get drillDown() {
31788
31770
  return {
31789
31771
  name: "drillDown",
@@ -42047,7 +42029,7 @@
42047
42029
  globalPointerdownCallback = e => {
42048
42030
  var _a;
42049
42031
  const target = e.target;
42050
- if (!table.getElement().contains(target)) {
42032
+ if (!table.getElement().contains(target) && !table.internalProps.menuHandler.containElement(target)) {
42051
42033
  const isCompleteEdit = null === (_a = table.editorManager) || void 0 === _a ? void 0 : _a.completeEdit(e);
42052
42034
  getPromiseValue(isCompleteEdit, isCompleteEdit => {
42053
42035
  var _a, _b;
@@ -45595,7 +45577,7 @@
45595
45577
  constructor(container) {
45596
45578
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45597
45579
  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");
45580
+ if (super(), this.showFrozenIcon = !0, this.version = "1.12.1-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");
45599
45581
  const {
45600
45582
  frozenColCount = 0,
45601
45583
  frozenRowCount: frozenRowCount,
@@ -51056,6 +51038,9 @@
51056
51038
  pointInMenuElement(x, y) {
51057
51039
  return this._getMenuElement().pointInMenuElement(x, y);
51058
51040
  }
51041
+ getRootElement() {
51042
+ return this._getMenuElement().rootElement;
51043
+ }
51059
51044
  }
51060
51045
 
51061
51046
  const CLASSNAME = "vtable__menu-element",
@@ -51344,6 +51329,13 @@
51344
51329
  info: info
51345
51330
  };
51346
51331
  }
51332
+ containElement(el) {
51333
+ var _a;
51334
+ for (const k in this._menuInstances) {
51335
+ if (null === (_a = this._menuInstances[k].getRootElement()) || void 0 === _a ? void 0 : _a.contains(el)) return !0;
51336
+ }
51337
+ return !1;
51338
+ }
51347
51339
  }
51348
51340
 
51349
51341
  class Title {