@visactor/vtable-calendar 1.15.0 → 1.15.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.
@@ -27456,7 +27456,9 @@
27456
27456
  CHANGE_CELL_VALUE: "change_cell_value",
27457
27457
  DRAG_FILL_HANDLE_END: "drag_fill_handle_end",
27458
27458
  MOUSEDOWN_FILL_HANDLE: "mousedown_fill_handle",
27459
- DBLCLICK_FILL_HANDLE: "dblclick_fill_handle"
27459
+ DBLCLICK_FILL_HANDLE: "dblclick_fill_handle",
27460
+ EMPTY_TIP_CLICK: "empty_tip_click",
27461
+ EMPTY_TIP_DBLCLICK: "empty_tip_dblclick"
27460
27462
  };
27461
27463
 
27462
27464
  const judgeType = value => {
@@ -31154,7 +31156,7 @@
31154
31156
  if (super._generateFieldAggragations(), isArray$7(null === (_a = this.dataConfig) || void 0 === _a ? void 0 : _a.groupByRules)) {
31155
31157
  const groupByKeys = this.dataConfig.groupByRules;
31156
31158
  this.groupAggregator = new this.registedAggregators[AggregationType.CUSTOM]({
31157
- dimension: "",
31159
+ field: "",
31158
31160
  aggregationFun: (values, records, field) => {
31159
31161
  const groupMap = new Map(),
31160
31162
  groupResult = [];
@@ -46721,7 +46723,7 @@
46721
46723
  constructor(container) {
46722
46724
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
46723
46725
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
46724
- if (super(), this.showFrozenIcon = !0, this.version = "1.15.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");
46726
+ if (super(), this.showFrozenIcon = !0, this.version = "1.15.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");
46725
46727
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
46726
46728
  const {
46727
46729
  frozenColCount = 0,
@@ -53533,10 +53535,23 @@
53533
53535
  _createOrUpdateEmptyTipComponent(attrs) {
53534
53536
  if (this._emptyTipComponent) isEqual(attrs, this._cacheAttrs) || this._emptyTipComponent.setAttributes(attrs);else {
53535
53537
  const emptyTip = new EmptyTip$1(attrs);
53536
- emptyTip.name = "emptyTip", this.table.scenegraph.stage.defaultLayer.appendChild(emptyTip), this._emptyTipComponent = emptyTip;
53538
+ emptyTip.name = "emptyTip", this.table.scenegraph.stage.defaultLayer.appendChild(emptyTip), this._emptyTipComponent = emptyTip, this.bindEvents();
53537
53539
  }
53538
53540
  return this._emptyTipComponent;
53539
53541
  }
53542
+ bindEvents() {
53543
+ this._emptyTipComponent.on("click", e => {
53544
+ const bounds = new AABBBounds();
53545
+ this._emptyTipComponent.forEachChildren(child => {
53546
+ bounds.union(child.globalAABBBounds);
53547
+ }), bounds.contains(e.x, e.y) && this.table.fireListeners("empty_tip_click", e);
53548
+ }), this._emptyTipComponent.on("dblclick", e => {
53549
+ const bounds = new AABBBounds();
53550
+ this._emptyTipComponent.forEachChildren(child => {
53551
+ bounds.union(child.globalAABBBounds);
53552
+ }), bounds.contains(e.x, e.y) && this.table.fireListeners("empty_tip_dblclick", e);
53553
+ });
53554
+ }
53540
53555
  resize() {
53541
53556
  var _a;
53542
53557
  if (!this._emptyTipComponent) return;