@visactor/vtable-calendar 1.17.1-alpha.1 → 1.17.1-alpha.2

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.
@@ -41410,7 +41410,8 @@
41410
41410
  updateReactContainer(this.table);
41411
41411
  }
41412
41412
  setLoadingHierarchyState(col, row) {
41413
- const iconGraphic = this.getCell(col, row).getChildByName("collapse", !0);
41413
+ const cellGroup = this.getCell(col, row),
41414
+ iconGraphic = cellGroup.getChildByName("collapse", !0) || cellGroup.getChildByName("expand", !0);
41414
41415
  if (iconGraphic) {
41415
41416
  const loadingIcon = get$2()[InternalIconName.loadingIconName];
41416
41417
  loadingIcon && dealWithIcon(loadingIcon, iconGraphic, col, row);
@@ -43646,29 +43647,12 @@
43646
43647
  if (table.isPivotChart() && "chart" !== (null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target.type) && table.scenegraph.updateChartState(null), (null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target) !== (null === (_c = stateManager.residentHoverIcon) || void 0 === _c ? void 0 : _c.icon) && stateManager.hideMenu(), "chart" === (null === (_d = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target.type)) return;
43647
43648
  const isCompleteEdit = null === (_e = table.editorManager) || void 0 === _e ? void 0 : _e.completeEdit(e.nativeEvent);
43648
43649
  getPromiseValue(isCompleteEdit, isCompleteEdit => {
43649
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
43650
+ var _a, _b, _c, _d, _e, _f, _g;
43650
43651
  if (!1 === isCompleteEdit) return;
43651
43652
  const hitIcon = (null === (_c = null === (_b = null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target) || void 0 === _b ? void 0 : _b.role) || void 0 === _c ? void 0 : _c.startsWith("icon")) ? eventArgsSet.eventArgs.target : (null === (_d = e.target.role) || void 0 === _d ? void 0 : _d.startsWith("icon")) ? e.target : void 0;
43652
- if (eventManager.downIcon = hitIcon, hitIcon && !1 !== hitIcon.attribute.interactive) hitIcon.attribute.funcType === IconFuncTypeEnum.dragReorder && (stateManager.startMoveCol(eventArgsSet.eventArgs.col, eventArgsSet.eventArgs.row, eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null === (_k = null === (_j = eventArgsSet.eventArgs) || void 0 === _j ? void 0 : _j.event) || void 0 === _k ? void 0 : _k.nativeEvent), stateManager.updateInteractionState(InteractionState.grabing));else if ("touch" === e.pointerType) {
43653
- if (eventManager.touchEnd = !1, eventManager.touchSetTimeout = setTimeout(() => {
43654
- eventManager.isTouchdown = !1, eventManager.touchMove = !0, (eventManager.touchEnd || !eventManager.checkColumnResize(eventArgsSet, !0) && !eventManager.checkRowResize(eventArgsSet, !0)) && (eventManager.touchEnd || !eventManager.chechColumnMover(eventArgsSet)) ? eventManager.dealTableSelect(eventArgsSet) && !eventManager.touchEnd && stateManager.updateInteractionState(InteractionState.grabing) : stateManager.updateInteractionState(InteractionState.grabing);
43655
- }, 500), table.hasListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL)) {
43656
- const cellGoup = e.path.find(node => "cell" === node.role);
43657
- "cell" !== (null == cellGoup ? void 0 : cellGoup.role) || !isValid$3(cellGoup.col) || !isValid$3(cellGoup.row) || cellGoup.col === table.stateManager.hover.cellPos.col && cellGoup.row === table.stateManager.hover.cellPos.row || cellGoup.col === (null === (_e = table.stateManager.hover.cellPosContainHeader) || void 0 === _e ? void 0 : _e.col) && cellGoup.row === (null === (_f = table.stateManager.hover.cellPosContainHeader) || void 0 === _f ? void 0 : _f.row) || table.fireListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL, {
43658
- col: cellGoup.col,
43659
- row: cellGoup.row,
43660
- cellRange: table.getCellRangeRelativeRect({
43661
- col: cellGoup.col,
43662
- row: cellGoup.row
43663
- }),
43664
- scaleRatio: table.canvas.getBoundingClientRect().width / table.canvas.offsetWidth,
43665
- event: e.nativeEvent,
43666
- target: null === (_g = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _g ? void 0 : _g.target,
43667
- mergeCellInfo: null === (_h = eventArgsSet.eventArgs) || void 0 === _h ? void 0 : _h.mergeInfo
43668
- });
43669
- }
43670
- eventManager.dealTableHover(eventArgsSet);
43671
- } else {
43653
+ if (eventManager.downIcon = hitIcon, hitIcon && !1 !== hitIcon.attribute.interactive) hitIcon.attribute.funcType === IconFuncTypeEnum.dragReorder && (stateManager.startMoveCol(eventArgsSet.eventArgs.col, eventArgsSet.eventArgs.row, eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null === (_f = null === (_e = eventArgsSet.eventArgs) || void 0 === _e ? void 0 : _e.event) || void 0 === _f ? void 0 : _f.nativeEvent), stateManager.updateInteractionState(InteractionState.grabing));else if ("touch" === e.pointerType) eventManager.touchEnd = !1, eventManager.touchSetTimeout = setTimeout(() => {
43654
+ eventManager.isTouchdown = !1, eventManager.touchMove = !0, (eventManager.touchEnd || !eventManager.checkColumnResize(eventArgsSet, !0) && !eventManager.checkRowResize(eventArgsSet, !0)) && (eventManager.touchEnd || !eventManager.chechColumnMover(eventArgsSet)) ? eventManager.dealTableSelect(eventArgsSet) && !eventManager.touchEnd && stateManager.updateInteractionState(InteractionState.grabing) : stateManager.updateInteractionState(InteractionState.grabing);
43655
+ }, 500), eventManager.dealTableHover(eventArgsSet);else {
43672
43656
  if (!eventManager.checkCellFillhandle(eventArgsSet) && (eventManager.checkColumnResize(eventArgsSet, !0) || eventManager.checkRowResize(eventArgsSet, !0))) return table.scenegraph.updateChartState(null), void stateManager.updateInteractionState(InteractionState.grabing);
43673
43657
  if (eventManager.chechColumnMover(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
43674
43658
  if (eventManager.checkCellFillhandle(eventArgsSet, !0) && eventManager.dealFillSelect(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
@@ -43680,7 +43664,7 @@
43680
43664
  col: eventArgsSet.eventArgs.col,
43681
43665
  row: eventArgsSet.eventArgs.row,
43682
43666
  event: e.nativeEvent,
43683
- target: null === (_l = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _l ? void 0 : _l.target,
43667
+ target: null === (_g = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _g ? void 0 : _g.target,
43684
43668
  mergeCellInfo: eventArgsSet.eventArgs.mergeInfo
43685
43669
  });
43686
43670
  }
@@ -47435,7 +47419,7 @@
47435
47419
  constructor(container) {
47436
47420
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
47437
47421
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
47438
- if (super(), this.showFrozenIcon = !0, this.version = "1.17.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");
47422
+ if (super(), this.showFrozenIcon = !0, this.version = "1.17.1-alpha.2", 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");
47439
47423
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
47440
47424
  const {
47441
47425
  frozenColCount = 0,