@visactor/vtable-calendar 1.22.13-alpha.0 → 1.23.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.
- package/dist/vtable-calendar.js +26 -16
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +3 -3
package/dist/vtable-calendar.js
CHANGED
|
@@ -24370,7 +24370,7 @@
|
|
|
24370
24370
|
let parsedFromProps = null,
|
|
24371
24371
|
props = params.to,
|
|
24372
24372
|
from = params.from;
|
|
24373
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
24373
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
24374
24374
|
let totalDelay = 0;
|
|
24375
24375
|
oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
|
|
24376
24376
|
const delayAfterValue = isFunction$3(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
|
|
@@ -24433,7 +24433,7 @@
|
|
|
24433
24433
|
let parsedFromProps = null,
|
|
24434
24434
|
props = effect.to,
|
|
24435
24435
|
from = effect.from;
|
|
24436
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
|
|
24436
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel);
|
|
24437
24437
|
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
|
|
24438
24438
|
customType = effect.custom ? effect.customType : getCustomType(custom);
|
|
24439
24439
|
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
@@ -24452,22 +24452,31 @@
|
|
|
24452
24452
|
animate.play(customAnimate);
|
|
24453
24453
|
}
|
|
24454
24454
|
createPropsFromChannel(channel, graphic) {
|
|
24455
|
+
var _a;
|
|
24455
24456
|
const props = {};
|
|
24456
24457
|
let from = null;
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
}
|
|
24458
|
+
if (!channel) return {
|
|
24459
|
+
from: from,
|
|
24460
|
+
props: props,
|
|
24461
|
+
attrOutChannel: null
|
|
24462
|
+
};
|
|
24463
|
+
const attrOutChannel = {};
|
|
24464
|
+
let hasAttrs = !1;
|
|
24465
|
+
const diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
|
|
24466
|
+
if (Array.isArray(channel) && (channel = channel.reduce((res, key) => (void 0 === diffAttrs[key] || (res[key] = {
|
|
24467
|
+
to: diffAttrs[key]
|
|
24468
|
+
}), res), {})), Object.keys(channel).forEach(key => {
|
|
24462
24469
|
var _a, _b, _c, _d;
|
|
24463
24470
|
const config = channel[key];
|
|
24464
24471
|
void 0 !== config.to && ("function" == typeof config.to ? props[key] = config.to(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : props[key] = config.to), void 0 !== config.from && (from || (from = {}), "function" == typeof config.from ? from[key] = config.from(null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, {}) : from[key] = config.from);
|
|
24465
|
-
}), {
|
|
24466
|
-
|
|
24467
|
-
props
|
|
24468
|
-
}
|
|
24472
|
+
}), diffAttrs) for (const key in diffAttrs) {
|
|
24473
|
+
const value = diffAttrs[key];
|
|
24474
|
+
void 0 !== value && (props.hasOwnProperty(key) || (attrOutChannel[key] = value, hasAttrs = !0));
|
|
24475
|
+
}
|
|
24476
|
+
return {
|
|
24469
24477
|
from: from,
|
|
24470
|
-
props: props
|
|
24478
|
+
props: props,
|
|
24479
|
+
attrOutChannel: hasAttrs ? attrOutChannel : null
|
|
24471
24480
|
};
|
|
24472
24481
|
}
|
|
24473
24482
|
resolveValue(value, graphic, defaultValue) {
|
|
@@ -46291,6 +46300,7 @@
|
|
|
46291
46300
|
}
|
|
46292
46301
|
}
|
|
46293
46302
|
function _parseColumnWidthConfigForPivotTable(table, columnWidthConfig) {
|
|
46303
|
+
var _a, _b;
|
|
46294
46304
|
for (let i = 0; i < (null == columnWidthConfig ? void 0 : columnWidthConfig.length); i++) {
|
|
46295
46305
|
const item = columnWidthConfig[i],
|
|
46296
46306
|
dimensions = item.dimensions,
|
|
@@ -46309,7 +46319,7 @@
|
|
|
46309
46319
|
}
|
|
46310
46320
|
match && !table.internalProps._widthResizedColMap.has(cell.col) && (table._setColWidth(cell.col, width), table.internalProps._widthResizedColMap.add(cell.col));
|
|
46311
46321
|
}
|
|
46312
|
-
} else cell && cell.col < table.rowHeaderLevelCount
|
|
46322
|
+
} else cell && cell.col < table.rowHeaderLevelCount ? table.internalProps._widthResizedColMap.has(cell.col) || (table._setColWidth(cell.col, width), table.internalProps._widthResizedColMap.add(cell.col)) : dimensions && 0 !== dimensions.length || 0 !== (null !== (_b = null === (_a = table.internalProps.layoutMap.columnTree) || void 0 === _a ? void 0 : _a.length) && void 0 !== _b ? _b : 0) || table.internalProps._widthResizedColMap.has(table.rowHeaderLevelCount) || (table._setColWidth(table.rowHeaderLevelCount, width), table.internalProps._widthResizedColMap.add(table.rowHeaderLevelCount));
|
|
46313
46323
|
}
|
|
46314
46324
|
}
|
|
46315
46325
|
function _parseColumnWidthConfigForPivotRowHeader(table, columnWidthConfig) {
|
|
@@ -52249,7 +52259,7 @@
|
|
|
52249
52259
|
} = columnDefine;
|
|
52250
52260
|
if (!1 === clickToPreview) return;
|
|
52251
52261
|
const overlay = document.createElement("div");
|
|
52252
|
-
overlay.style.width = "100%", overlay.style.height = "100%", overlay.style.position = "
|
|
52262
|
+
overlay.style.width = "100%", overlay.style.height = "100%", overlay.style.position = "fixed", overlay.style.top = "0", overlay.style.left = "0", overlay.style.backgroundColor = "rgba(30, 30, 30, 0.4)", overlay.style.display = "flex", overlay.style.justifyContent = "center", overlay.style.alignItems = "center", overlay.style.overflow = "hidden", overlay.style.zIndex = "9999", overlay.addEventListener("click", e => {
|
|
52253
52263
|
e.target === overlay && document.body.removeChild(overlay);
|
|
52254
52264
|
});
|
|
52255
52265
|
const image = new Image();
|
|
@@ -52260,7 +52270,7 @@
|
|
|
52260
52270
|
} = columnDefine;
|
|
52261
52271
|
if (!1 === clickToPreview) return;
|
|
52262
52272
|
const overlay = document.createElement("div");
|
|
52263
|
-
overlay.style.width = "100%", overlay.style.height = "100%", overlay.style.position = "
|
|
52273
|
+
overlay.style.width = "100%", overlay.style.height = "100%", overlay.style.position = "fixed", overlay.style.top = "0", overlay.style.left = "0", overlay.style.backgroundColor = "rgba(30, 30, 30, 0.4)", overlay.style.display = "flex", overlay.style.justifyContent = "center", overlay.style.alignItems = "center", overlay.style.overflow = "hidden", overlay.style.zIndex = "9999", overlay.addEventListener("click", e => {
|
|
52264
52274
|
e.target === overlay && document.body.removeChild(overlay);
|
|
52265
52275
|
});
|
|
52266
52276
|
const video = document.createElement("video");
|
|
@@ -56361,7 +56371,7 @@
|
|
|
56361
56371
|
}
|
|
56362
56372
|
constructor(container, options = {}) {
|
|
56363
56373
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
56364
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.
|
|
56374
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.23.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");
|
|
56365
56375
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56366
56376
|
options: options,
|
|
56367
56377
|
container: container
|