@visactor/vtable 1.27.0-alpha.0 → 1.27.0-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.
@@ -117,5 +117,4 @@ class BodyHelper {
117
117
  }
118
118
  }
119
119
 
120
- exports.BodyHelper = BodyHelper;
121
- //# sourceMappingURL=body-helper.js.map
120
+ exports.BodyHelper = BodyHelper;
@@ -47,4 +47,4 @@ const registerAnimation = () => {
47
47
  };
48
48
 
49
49
  exports.registerAnimation = registerAnimation;
50
- //# sourceMappingURL=index.js.map
50
+ //# sourceMappingURL=index.js.map
@@ -2270,4 +2270,5 @@ class BaseTable extends EventTarget_1.EventTarget {
2270
2270
  }
2271
2271
  }
2272
2272
 
2273
- exports.BaseTable = BaseTable;
2273
+ exports.BaseTable = BaseTable;
2274
+ //# sourceMappingURL=BaseTable.js.map
@@ -255,4 +255,5 @@ function syncGroupCollapseState(oldSource, newSource, oldGroupMap, newGroupMap)
255
255
  }
256
256
  }
257
257
 
258
+ //# sourceMappingURL=CachedDataSource.js.map
258
259
  exports.CachedDataSource = CachedDataSource;
@@ -77,5 +77,4 @@ function dateFormat(baseField, formatString, utcOutput, mthNames, dayNames) {
77
77
  Object.defineProperty(exports, "__esModule", {
78
78
  value: !0
79
79
  }), exports.dateFormat = exports.numberFormat = void 0, exports.numberFormat = numberFormat,
80
- exports.dateFormat = dateFormat;
81
- //# sourceMappingURL=DataStatistics.js.map
80
+ exports.dateFormat = dateFormat;
@@ -23,4 +23,5 @@ function bindSparklineHoverEvent(table) {
23
23
  })));
24
24
  }
25
25
 
26
- exports.bindSparklineHoverEvent = bindSparklineHoverEvent;
26
+ exports.bindSparklineHoverEvent = bindSparklineHoverEvent;
27
+ //# sourceMappingURL=sparkline-event.js.map
@@ -31,5 +31,4 @@ function of(headerStyle, defaultHeaderStyle, styleArg, StyleClass, globalAutoWra
31
31
  StyleClass === CheckboxStyle_1.CheckboxStyle ? new CheckboxStyle_1.CheckboxStyle(null != headerStyle ? headerStyle : {}, null != defaultHeaderStyle ? defaultHeaderStyle : {}, null !== (_a = theme.checkboxStyle) && void 0 !== _a ? _a : {}) : new StyleClass(null != headerStyle ? headerStyle : {}, null != defaultHeaderStyle ? defaultHeaderStyle : {})) : StyleClass.DEFAULT;
32
32
  }
33
33
 
34
- exports.of = of;
35
- //# sourceMappingURL=style.js.map
34
+ exports.of = of;
@@ -167,4 +167,4 @@ const registerCustomCellStylePlugin = () => {
167
167
  };
168
168
 
169
169
  exports.registerCustomCellStylePlugin = registerCustomCellStylePlugin;
170
- //# sourceMappingURL=custom-cell-style.js.map
170
+ //# sourceMappingURL=custom-cell-style.js.map
package/dist/vtable.js CHANGED
@@ -8998,13 +8998,11 @@
8998
8998
  };
8999
8999
  }
9000
9000
  recomputeCurrentStatePatch() {
9001
- var _a, _b, _c, _d;
9001
+ var _a, _b;
9002
9002
  if (!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)) return this.effectiveStates = [], this.resolvedStatePatch = void 0, void this.syncSharedStateActiveRegistrations();
9003
- const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute,
9004
- stateModel = this.createStateModel();
9005
- null === (_c = this.stateEngine) || void 0 === _c || _c.setResolveContext(this, stateResolveBaseAttrs);
9006
- const transition = stateModel.useStates(this.currentStates),
9007
- effectiveStates = null !== (_d = transition.effectiveStates) && void 0 !== _d ? _d : transition.states,
9003
+ const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
9004
+ transition = this.createStateModel(stateResolveBaseAttrs).useStates(this.currentStates),
9005
+ effectiveStates = null !== (_b = transition.effectiveStates) && void 0 !== _b ? _b : transition.states,
9008
9006
  resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
9009
9007
  this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.syncSharedStateActiveRegistrations();
9010
9008
  }
@@ -9597,7 +9595,15 @@
9597
9595
  var _a;
9598
9596
  return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
9599
9597
  }
9600
- createStateModel() {
9598
+ getStateResolveBaseAttrs() {
9599
+ var _a;
9600
+ return null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute;
9601
+ }
9602
+ syncStateResolveContext(stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
9603
+ var _a;
9604
+ return null === (_a = this.stateEngine) || void 0 === _a || _a.setResolveContext(this, stateResolveBaseAttrs), stateResolveBaseAttrs;
9605
+ }
9606
+ createStateModel(stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
9601
9607
  const {
9602
9608
  compiledDefinitions: compiledDefinitions,
9603
9609
  stateProxyEligibility: stateProxyEligibility,
@@ -9610,7 +9616,7 @@
9610
9616
  stateProxyEligibility: stateProxyEligibility,
9611
9617
  states: this.states,
9612
9618
  mergeMode: this.stateMergeMode
9613
- }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateProxy = this.stateProxy, this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode, this.stateEngineStateProxyModeKey = stateProxyModeKey) : (this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0), new StateModel({
9619
+ }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateProxy = this.stateProxy, this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode, this.stateEngineStateProxyModeKey = stateProxyModeKey) : (this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0), this.syncStateResolveContext(stateResolveBaseAttrs), new StateModel({
9614
9620
  states: this.states,
9615
9621
  currentStates: this.currentStates,
9616
9622
  stateSort: this.stateSort,
@@ -9680,18 +9686,18 @@
9680
9686
  };
9681
9687
  }
9682
9688
  resolveGraphicStateTransition(states, previousStates, forceResolverRefresh = !1) {
9683
- var _a, _b, _c, _d;
9689
+ var _a, _b;
9684
9690
  let transition = this.resolveSimpleLocalStateTransition(states, previousStates);
9685
9691
  const isSimpleLocalTransition = !!transition;
9686
9692
  let resolvedStateAttrs;
9687
9693
  if (transition) resolvedStateAttrs = transition.resolvedStateAttrs;else {
9688
- const stateResolveBaseAttrs = null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute,
9689
- stateModel = this.createStateModel();
9690
- null === (_b = this.stateEngine) || void 0 === _b || _b.setResolveContext(this, stateResolveBaseAttrs), forceResolverRefresh && (null === (_c = this.stateEngine) || void 0 === _c || _c.invalidateResolverCache()), transition = stateModel.useStates(states), resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
9694
+ const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
9695
+ stateModel = this.createStateModel(stateResolveBaseAttrs);
9696
+ forceResolverRefresh && (null === (_a = this.stateEngine) || void 0 === _a || _a.invalidateResolverCache()), transition = stateModel.useStates(states), resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
9691
9697
  }
9692
9698
  return {
9693
9699
  transition: transition,
9694
- effectiveStates: null !== (_d = transition.effectiveStates) && void 0 !== _d ? _d : transition.states,
9700
+ effectiveStates: null !== (_b = transition.effectiveStates) && void 0 !== _b ? _b : transition.states,
9695
9701
  resolvedStateAttrs: resolvedStateAttrs,
9696
9702
  isSimpleLocalTransition: isSimpleLocalTransition
9697
9703
  };
@@ -9862,10 +9868,10 @@
9862
9868
  }
9863
9869
  }
9864
9870
  invalidateResolver() {
9865
- var _a, _b, _c;
9871
+ var _a, _b;
9866
9872
  if (!this.stateEngine || !(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.compiledStateDefinitions) return;
9867
- const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute;
9868
- this.stateEngine.setResolveContext(this, stateResolveBaseAttrs), this.resolverEpoch = (null !== (_c = this.resolverEpoch) && void 0 !== _c ? _c : 0) + 1, this.stateEngine.invalidateResolverCache();
9873
+ this.syncStateResolveContext();
9874
+ this.resolverEpoch = (null !== (_b = this.resolverEpoch) && void 0 !== _b ? _b : 0) + 1, this.stateEngine.invalidateResolverCache();
9869
9875
  const transition = this.stateEngine.applyStates(this.currentStates),
9870
9876
  resolvedStateAttrs = Object.assign({}, this.stateEngine.resolvedPatch);
9871
9877
  this.effectiveStates = [...transition.effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({