@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.
- package/cjs/body-helper/body-helper.js +1 -2
- package/cjs/components/index.js +1 -1
- package/cjs/core/BaseTable.js +2 -1
- package/cjs/data/CachedDataSource.js +1 -0
- package/cjs/dataset/DataStatistics.js +1 -2
- package/cjs/event/sparkline-event.js +2 -1
- package/cjs/header-helper/style.js +1 -2
- package/cjs/plugins/custom-cell-style.js +1 -1
- package/dist/vtable.js +22 -16
- package/dist/vtable.min.js +1 -1
- package/es/body-helper/body-helper.js +1 -2
- package/es/components/index.js +1 -1
- package/es/core/BaseTable.js +2 -1
- package/es/data/CachedDataSource.js +2 -1
- package/es/dataset/DataStatistics.js +1 -2
- package/es/event/sparkline-event.js +2 -1
- package/es/header-helper/style.js +1 -2
- package/es/plugins/custom-cell-style.js +1 -1
- package/package.json +10 -10
package/cjs/components/index.js
CHANGED
package/cjs/core/BaseTable.js
CHANGED
|
@@ -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;
|
|
@@ -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;
|
package/dist/vtable.js
CHANGED
|
@@ -8998,13 +8998,11 @@
|
|
|
8998
8998
|
};
|
|
8999
8999
|
}
|
|
9000
9000
|
recomputeCurrentStatePatch() {
|
|
9001
|
-
var _a, _b
|
|
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 =
|
|
9004
|
-
|
|
9005
|
-
|
|
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
|
-
|
|
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
|
|
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 =
|
|
9689
|
-
stateModel = this.createStateModel();
|
|
9690
|
-
|
|
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 !== (
|
|
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
|
|
9871
|
+
var _a, _b;
|
|
9866
9872
|
if (!this.stateEngine || !(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.compiledStateDefinitions) return;
|
|
9867
|
-
|
|
9868
|
-
this.
|
|
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({
|