@visactor/vtable-calendar 1.18.3-alpha.1 → 1.18.4-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.
@@ -38283,9 +38283,9 @@
38283
38283
  y2: viewBox.y2 - viewBox.y1
38284
38284
  }, !1, !1);
38285
38285
  const chartStage = chartInstance.getStage(),
38286
- matrix = chart.globalTransMatrix.clone(),
38287
- stageMatrix = chart.stage.window.getViewBoxTransform();
38288
- matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f);
38286
+ matrix = chart.globalTransMatrix,
38287
+ stageMatrix = chart.stage.window.getViewBoxTransform().clone();
38288
+ stageMatrix.multiply(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f);
38289
38289
  const {
38290
38290
  table: table
38291
38291
  } = chart.getRootNode();
@@ -46371,7 +46371,12 @@
46371
46371
  const table = eventManager.table,
46372
46372
  stateManager = table.stateManager,
46373
46373
  scenegraph = table.scenegraph;
46374
- eventManager.touchMovePoints = [], table.scenegraph.tableGroup.addEventListener("touchstart", e => {
46374
+ if (!1 === vglobal.envContribution.supportsTouchEvents) return;
46375
+ vglobal.addEventListener("contextmenu", e => {
46376
+ e.stopPropagation(), e.preventDefault();
46377
+ }, {
46378
+ capture: !0
46379
+ }), eventManager.touchMovePoints = [], table.scenegraph.tableGroup.addEventListener("touchstart", e => {
46375
46380
  var _a, _b, _c, _d, _e, _f, _g, _h;
46376
46381
  if (e.target.isChildOf(scenegraph.component.vScrollBar) || e.target.isChildOf(scenegraph.component.vScrollBar)) return;
46377
46382
  eventManager.isTouchdown = !0;
@@ -49570,7 +49575,7 @@
49570
49575
  constructor(container) {
49571
49576
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
49572
49577
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
49573
- if (super(), this.showFrozenIcon = !0, this.version = "1.18.3-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
49578
+ if (super(), this.showFrozenIcon = !0, this.version = "1.18.4-alpha.0", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
49574
49579
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
49575
49580
  options: options,
49576
49581
  container: container
@@ -53689,7 +53694,7 @@
53689
53694
  bindEvent() {
53690
53695
  const table = this.table,
53691
53696
  doubleClickEventId = table.on(TABLE_EVENT_TYPE.DBLCLICK_CELL, e => {
53692
- var _a;
53697
+ var _a, _b, _c;
53693
53698
  const {
53694
53699
  editCellTrigger = "doubleclick"
53695
53700
  } = table.options;
@@ -53700,13 +53705,15 @@
53700
53705
  } = e,
53701
53706
  eventArgsSet = getCellEventArgsSet(e.federatedEvent),
53702
53707
  resizeCol = table.scenegraph.getResizeColAt(eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null === (_a = eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.targetCell);
53703
- table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0 || (this.beginTriggerEditCellMode = "doubleclick", this.startEditCell(col, row));
53708
+ table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0 || (null === (_c = null === (_b = e.target) || void 0 === _b ? void 0 : _b.attribute) || void 0 === _c ? void 0 : _c.funcType) || (this.beginTriggerEditCellMode = "doubleclick", this.startEditCell(col, row));
53704
53709
  }),
53705
53710
  clickEventId = table.on(TABLE_EVENT_TYPE.CLICK_CELL, e => {
53711
+ var _a, _b;
53706
53712
  const {
53707
53713
  editCellTrigger = "doubleclick"
53708
53714
  } = table.options;
53709
53715
  if ("click" === editCellTrigger || Array.isArray(editCellTrigger) && editCellTrigger.includes("click")) {
53716
+ if (null === (_b = null === (_a = e.target) || void 0 === _a ? void 0 : _a.attribute) || void 0 === _b ? void 0 : _b.funcType) return;
53710
53717
  this.beginTriggerEditCellMode = "click";
53711
53718
  const {
53712
53719
  col: col,