@visactor/vtable-calendar 1.23.1 → 1.23.3-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.
- package/dist/vtable-calendar.js +57 -46
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +5 -5
package/dist/vtable-calendar.js
CHANGED
|
@@ -21404,7 +21404,7 @@
|
|
|
21404
21404
|
this._sliderRenderBounds = null, this._sliderLimitRange = null;
|
|
21405
21405
|
}
|
|
21406
21406
|
release(all) {
|
|
21407
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).
|
|
21407
|
+
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
|
|
21408
21408
|
passive: !1
|
|
21409
21409
|
}), this._clearDragEvents();
|
|
21410
21410
|
}
|
|
@@ -22987,17 +22987,21 @@
|
|
|
22987
22987
|
} = this.attribute.label;
|
|
22988
22988
|
textStyle = isFunction$3(textStyle) ? merge({}, DEFAULT_AXIS_THEME.label.style, textStyle(tickDatum, index, tickData, layer)) : textStyle;
|
|
22989
22989
|
const labelAlign = this.getLabelAlign(vector, inside, textStyle.angle);
|
|
22990
|
-
|
|
22990
|
+
textStyle = merge(labelAlign, textStyle), isFunction$3(textStyle.text) && (textStyle.text = textStyle.text({
|
|
22991
22991
|
label: tickDatum.label,
|
|
22992
22992
|
value: tickDatum.rawValue,
|
|
22993
22993
|
index: tickDatum.index,
|
|
22994
22994
|
layer: layer
|
|
22995
|
-
}))
|
|
22995
|
+
}));
|
|
22996
|
+
let reactStyle = textStyle.react;
|
|
22997
|
+
return isFunction$3(reactStyle) && (reactStyle = reactStyle(tickDatum, index, tickData, layer)), Object.assign(Object.assign(Object.assign(Object.assign({}, this.getLabelPosition(point, vector, textContent, textStyle)), {
|
|
22996
22998
|
text: null != text ? text : textContent,
|
|
22997
22999
|
_originText: tickDatum.label,
|
|
22998
23000
|
lineHeight: null == textStyle ? void 0 : textStyle.fontSize,
|
|
22999
23001
|
type: type
|
|
23000
|
-
}), textStyle)
|
|
23002
|
+
}), textStyle), {
|
|
23003
|
+
react: reactStyle
|
|
23004
|
+
});
|
|
23001
23005
|
}
|
|
23002
23006
|
getLabelPosition(point, vector, text, style) {
|
|
23003
23007
|
return point;
|
|
@@ -24026,6 +24030,8 @@
|
|
|
24026
24030
|
this.status === STATUS$1.RUNNING && (this.tickCounts++, this.timelines.forEach(timeline => {
|
|
24027
24031
|
timeline.tick(delta);
|
|
24028
24032
|
}), this.emit("tick", delta));
|
|
24033
|
+
}, this._handleGraphTick = () => {
|
|
24034
|
+
this.initHandler(!1);
|
|
24029
24035
|
}, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.stage = stage, this.autoStop = !0, this.interval = 16, this.computeTimeOffsetAndJitter();
|
|
24030
24036
|
}
|
|
24031
24037
|
bindStage(stage) {
|
|
@@ -24035,9 +24041,7 @@
|
|
|
24035
24041
|
this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(.2 * this.interval, 6), .7 * this.interval);
|
|
24036
24042
|
}
|
|
24037
24043
|
init() {
|
|
24038
|
-
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker",
|
|
24039
|
-
this.initHandler(!1);
|
|
24040
|
-
}), application.global.env && this.initHandler(!1);
|
|
24044
|
+
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", this._handleGraphTick), application.global.env && this.initHandler(!1);
|
|
24041
24045
|
}
|
|
24042
24046
|
addTimeline(timeline) {
|
|
24043
24047
|
this.timelines.push(timeline);
|
|
@@ -24110,7 +24114,7 @@
|
|
|
24110
24114
|
}
|
|
24111
24115
|
release() {
|
|
24112
24116
|
var _a;
|
|
24113
|
-
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
|
|
24117
|
+
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1, application.global.hooks.onSetEnv.unTap("graph-ticker", this._handleGraphTick);
|
|
24114
24118
|
}
|
|
24115
24119
|
checkSkip(delta) {
|
|
24116
24120
|
var _a, _b, _c;
|
|
@@ -33565,7 +33569,7 @@
|
|
|
33565
33569
|
}(IconPosition || (IconPosition = {}));
|
|
33566
33570
|
var IconFuncTypeEnum;
|
|
33567
33571
|
!function (IconFuncTypeEnum) {
|
|
33568
|
-
IconFuncTypeEnum.frozen = "frozen", IconFuncTypeEnum.sort = "sort", IconFuncTypeEnum.dropDown = "dropDown", IconFuncTypeEnum.dropDownState = "dropDownState", IconFuncTypeEnum.play = "play", IconFuncTypeEnum.damagePic = "damagePic", IconFuncTypeEnum.expand = "expand", IconFuncTypeEnum.collapse = "collapse", IconFuncTypeEnum.drillDown = "drillDown", IconFuncTypeEnum.drillUp = "drillUp", IconFuncTypeEnum.dragReorder = "dragReorder";
|
|
33572
|
+
IconFuncTypeEnum.frozen = "frozen", IconFuncTypeEnum.sort = "sort", IconFuncTypeEnum.dropDown = "dropDown", IconFuncTypeEnum.dropDownState = "dropDownState", IconFuncTypeEnum.play = "play", IconFuncTypeEnum.damagePic = "damagePic", IconFuncTypeEnum.imageDamagePic = "imageDamagePic", IconFuncTypeEnum.videoDamagePic = "videoDamagePic", IconFuncTypeEnum.expand = "expand", IconFuncTypeEnum.collapse = "collapse", IconFuncTypeEnum.drillDown = "drillDown", IconFuncTypeEnum.drillUp = "drillUp", IconFuncTypeEnum.dragReorder = "dragReorder";
|
|
33569
33573
|
}(IconFuncTypeEnum || (IconFuncTypeEnum = {}));
|
|
33570
33574
|
var InternalIconName;
|
|
33571
33575
|
!function (InternalIconName) {
|
|
@@ -41165,7 +41169,7 @@
|
|
|
41165
41169
|
image: value,
|
|
41166
41170
|
cursor: "pointer"
|
|
41167
41171
|
});
|
|
41168
|
-
|
|
41172
|
+
if (image.name = "image", image.keepAspectRatio = keepAspectRatio, image.textAlign = textAlign, image.textBaseline = textBaseline, keepAspectRatio || imageAutoSizing ? image.resources && image.resources.has(image.attribute.image) && "success" === image.resources.get(image.attribute.image).state ? (image.setAttribute("opacity", 0), setTimeout(() => {
|
|
41169
41173
|
image.setAttribute("opacity", 1), updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame();
|
|
41170
41174
|
}, 0)) : image.successCallback = () => {
|
|
41171
41175
|
updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame();
|
|
@@ -41173,8 +41177,12 @@
|
|
|
41173
41177
|
updateImageCellContentWhileResize(cellGroup, col, row, 0, 0, table);
|
|
41174
41178
|
}, image.failCallback = () => {
|
|
41175
41179
|
const regedIcons = get$2();
|
|
41176
|
-
image.image = regedIcons.damage_pic.svg;
|
|
41177
|
-
},
|
|
41180
|
+
image.image = regedIcons.image_damage_pic ? regedIcons.image_damage_pic.svg : regedIcons.damage_pic.svg;
|
|
41181
|
+
}, "string" == typeof value && !(value.startsWith("<svg") || isValidUrl$1(value) || value.includes("/") || isBase64$1(value))) {
|
|
41182
|
+
const regedIcons = get$2();
|
|
41183
|
+
image.image = regedIcons.image_damage_pic ? regedIcons.image_damage_pic.svg : regedIcons.damage_pic.svg;
|
|
41184
|
+
}
|
|
41185
|
+
return cellGroup.appendChild(image), cellGroup;
|
|
41178
41186
|
}
|
|
41179
41187
|
function _adjustWidthHeight(col, row, width, height, scene, padding, cellGroup) {
|
|
41180
41188
|
let needInvalidate = !1,
|
|
@@ -41318,7 +41326,7 @@
|
|
|
41318
41326
|
}
|
|
41319
41327
|
function isDamagePic(image) {
|
|
41320
41328
|
const regedIcons = get$2();
|
|
41321
|
-
return image.attribute.image === regedIcons.damage_pic.svg;
|
|
41329
|
+
return image.attribute.image === regedIcons.damage_pic.svg || regedIcons.image_damage_pic && image.attribute.image === regedIcons.image_damage_pic.svg || regedIcons.video_damage_pic && image.attribute.image === regedIcons.video_damage_pic.svg;
|
|
41322
41330
|
}
|
|
41323
41331
|
|
|
41324
41332
|
function dealPromiseData(dataPromise, tabel, callback) {
|
|
@@ -41435,7 +41443,7 @@
|
|
|
41435
41443
|
};
|
|
41436
41444
|
}
|
|
41437
41445
|
function updateCell$1(col, row, table, addNew, isShadow, forceFastUpdate) {
|
|
41438
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r
|
|
41446
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
41439
41447
|
const oldCellGroup = table.scenegraph.highPerformanceGetCell(col, row, !0);
|
|
41440
41448
|
if ("cell" !== oldCellGroup.role && !addNew) return;
|
|
41441
41449
|
const cellLocation = table.getCellLocation(col, row);
|
|
@@ -41544,7 +41552,7 @@
|
|
|
41544
41552
|
return oldCellGroup;
|
|
41545
41553
|
}
|
|
41546
41554
|
if (!addNew && "empty" === oldCellGroup.role) return;
|
|
41547
|
-
const type = isVtableMerge || isCustomMerge ? "text" : table.
|
|
41555
|
+
const type = isVtableMerge || isCustomMerge ? "text" : table.getCellType(col, row),
|
|
41548
41556
|
padding = cellTheme._vtable.padding,
|
|
41549
41557
|
textAlign = cellTheme.text.textAlign,
|
|
41550
41558
|
textBaseline = cellTheme.text.textBaseline;
|
|
@@ -42090,7 +42098,6 @@
|
|
|
42090
42098
|
table.isPivotTable() && (layoutMap.disableUseGetBodyCache(), layoutMap.disableUseHeaderPathCache());
|
|
42091
42099
|
}
|
|
42092
42100
|
function computeRowHeight(row, startCol, endCol, table) {
|
|
42093
|
-
var _a;
|
|
42094
42101
|
if (!(table.isAutoRowHeight(row) || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
|
|
42095
42102
|
let maxHeight;
|
|
42096
42103
|
if (table.options.customComputeRowHeight) {
|
|
@@ -42133,7 +42140,7 @@
|
|
|
42133
42140
|
}
|
|
42134
42141
|
}
|
|
42135
42142
|
if (table.isPivotChart() && (table.isLeftFrozenColumn(col) && table.isBottomFrozenRow(row) || table.isRightFrozenColumn(col) && table.isBottomFrozenRow(row))) continue;
|
|
42136
|
-
const cellType = table.
|
|
42143
|
+
const cellType = table.getCellType(col, row),
|
|
42137
42144
|
textHeight = computeTextHeight(col, row, cellType, table);
|
|
42138
42145
|
maxHeight = isValid$1(maxHeight) ? Math.max(textHeight, maxHeight) : textHeight;
|
|
42139
42146
|
}
|
|
@@ -42380,12 +42387,12 @@
|
|
|
42380
42387
|
cell && updateCellHeight(scene, cell, col, row, height, detaY);
|
|
42381
42388
|
}
|
|
42382
42389
|
function updateCellHeight(scene, cell, col, row, distHeight, detaY, isHeader) {
|
|
42383
|
-
var _a, _b, _c
|
|
42390
|
+
var _a, _b, _c;
|
|
42384
42391
|
if (cell.attribute.height === distHeight && !cell.needUpdateHeight) return;
|
|
42385
42392
|
cell.needUpdateHeight = !1, cell.setAttribute("height", distHeight);
|
|
42386
42393
|
const isVtableMerge = null === (_a = scene.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge,
|
|
42387
42394
|
isCustomMerge = !!scene.table.getCustomMerge(col, row),
|
|
42388
|
-
type = isVtableMerge || isCustomMerge ? "text" : scene.table.
|
|
42395
|
+
type = isVtableMerge || isCustomMerge ? "text" : scene.table.getCellType(col, row);
|
|
42389
42396
|
if ("progressbar" === type) {
|
|
42390
42397
|
const columnDefine = scene.table.getBodyColumnDefine(col, row),
|
|
42391
42398
|
style = scene.table._getCellStyle(col, row),
|
|
@@ -42402,7 +42409,7 @@
|
|
|
42402
42409
|
const headerStyle = scene.table._getCellStyle(col, row),
|
|
42403
42410
|
padding = getQuadProps(getProp("padding", headerStyle, col, row, scene.table));
|
|
42404
42411
|
Factory.getFunction("createSparkLineCellGroup")(cell, cell.parent, cell.attribute.x, cell.attribute.y, col, row, cell.attribute.width, cell.attribute.height, padding, scene.table, getStyleTheme(headerStyle, scene.table, col, row, getProp).theme, !1);
|
|
42405
|
-
} else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cell, col, row, 0, detaY, scene.table);else if ("axis" === (null === (
|
|
42412
|
+
} else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cell, col, row, 0, detaY, scene.table);else if ("axis" === (null === (_b = cell.firstChild) || void 0 === _b ? void 0 : _b.name)) null === (_c = cell.firstChild) || void 0 === _c || _c.originAxis.resize(cell.attribute.width, cell.attribute.height);else {
|
|
42406
42413
|
let renderDefault = !0;
|
|
42407
42414
|
const customContainer = cell.getChildByName(CUSTOM_CONTAINER_NAME$1) || cell.getChildByName(CUSTOM_MERGE_CONTAINER_NAME);
|
|
42408
42415
|
if (customContainer) {
|
|
@@ -42575,7 +42582,7 @@
|
|
|
42575
42582
|
}
|
|
42576
42583
|
}
|
|
42577
42584
|
function updateCellWidth(scene, cell, col, row, oldWidth, distWidth, detaX, isHeader, autoWrapText) {
|
|
42578
|
-
var _a, _b, _c, _d, _e
|
|
42585
|
+
var _a, _b, _c, _d, _e;
|
|
42579
42586
|
if (cell.attribute.width === distWidth && !cell.needUpdateWidth) return !1;
|
|
42580
42587
|
cell.needUpdateWidth = !1, cell.setAttribute("width", distWidth);
|
|
42581
42588
|
const cellGroup = cell;
|
|
@@ -42583,7 +42590,7 @@
|
|
|
42583
42590
|
const autoRowHeight = scene.table.isAutoRowHeight(row),
|
|
42584
42591
|
isVtableMerge = null === (_a = scene.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge,
|
|
42585
42592
|
isCustomMerge = !!scene.table.getCustomMerge(col, row),
|
|
42586
|
-
type = isVtableMerge || isCustomMerge ? "text" : scene.table.
|
|
42593
|
+
type = isVtableMerge || isCustomMerge ? "text" : scene.table.getCellType(col, row);
|
|
42587
42594
|
let isHeightChange = !1;
|
|
42588
42595
|
if ("progressbar" === type) {
|
|
42589
42596
|
const columnDefine = scene.table.getBodyColumnDefine(col, row),
|
|
@@ -42603,15 +42610,15 @@
|
|
|
42603
42610
|
const headerStyle = scene.table._getCellStyle(col, row),
|
|
42604
42611
|
padding = getQuadProps(getProp("padding", headerStyle, col, row, scene.table));
|
|
42605
42612
|
Factory.getFunction("createSparkLineCellGroup")(cellGroup, cellGroup.parent, cellGroup.attribute.x, cellGroup.attribute.y, col, row, cellGroup.attribute.width, cellGroup.attribute.height, padding, scene.table, getStyleTheme(headerStyle, scene.table, col, row, getProp).theme, !1);
|
|
42606
|
-
} else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cellGroup, col, row, detaX, 0, scene.table);else if ("axis" === (null === (
|
|
42613
|
+
} else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cellGroup, col, row, detaX, 0, scene.table);else if ("axis" === (null === (_b = cellGroup.firstChild) || void 0 === _b ? void 0 : _b.name)) {
|
|
42607
42614
|
const axisConfig = scene.table.internalProps.layoutMap.getAxisConfigInPivotChart(col, row),
|
|
42608
42615
|
cellStyle = scene.table._getCellStyle(col, row),
|
|
42609
42616
|
padding = getQuadProps(getProp("padding", cellStyle, col, row, scene.table));
|
|
42610
42617
|
if (axisConfig) {
|
|
42611
|
-
const axis = new (Factory.getComponent("axis"))(axisConfig, cellGroup.attribute.width, cellGroup.attribute.height, null !== (
|
|
42618
|
+
const axis = new (Factory.getComponent("axis"))(axisConfig, cellGroup.attribute.width, cellGroup.attribute.height, null !== (_c = axisConfig.__vtableBodyChartCellPadding) && void 0 !== _c ? _c : padding, scene.table);
|
|
42612
42619
|
cellGroup.clear(), cellGroup.appendChild(axis.component), axis.overlap();
|
|
42613
42620
|
}
|
|
42614
|
-
} else if ("axis" === (null === (
|
|
42621
|
+
} else if ("axis" === (null === (_d = cell.firstChild) || void 0 === _d ? void 0 : _d.name)) null === (_e = cell.firstChild) || void 0 === _e || _e.originAxis.resize(cell.attribute.width, cell.attribute.height);else {
|
|
42615
42622
|
let renderDefault = !0;
|
|
42616
42623
|
const customContainer = cell.getChildByName(CUSTOM_CONTAINER_NAME$1) || cell.getChildByName(CUSTOM_MERGE_CONTAINER_NAME);
|
|
42617
42624
|
if (customContainer) {
|
|
@@ -46149,7 +46156,7 @@
|
|
|
46149
46156
|
return table.internalProps.transpose && "auto" === width && ("only-header" === table.columnWidthComputeMode && col >= table.rowHeaderLevelCount || "only-body" === table.columnWidthComputeMode && col < table.rowHeaderLevelCount) && (width = table.getDefaultColumnWidth(col)), forceCompute && !table.internalProps.transpose ? computeAutoColWidth(width, col, startRow, endRow, forceCompute, table) : "number" == typeof width ? width : "auto" !== width && "string" == typeof width ? table._adjustColWidth(col, table._colWidthDefineToPxWidth(width)) : computeAutoColWidth(width, col, startRow, endRow, forceCompute, table);
|
|
46150
46157
|
}
|
|
46151
46158
|
function computeAutoColWidth(widthDeifne, col, startRow, endRow, forceCompute, table) {
|
|
46152
|
-
var _a, _b, _c, _d
|
|
46159
|
+
var _a, _b, _c, _d;
|
|
46153
46160
|
let maxWidth = 0,
|
|
46154
46161
|
deltaRow = 1,
|
|
46155
46162
|
prepareDeltaRow = 1;
|
|
@@ -46181,7 +46188,7 @@
|
|
|
46181
46188
|
maxWidth = Math.max(indicatorWidth, maxWidth);
|
|
46182
46189
|
continue;
|
|
46183
46190
|
}
|
|
46184
|
-
const cellType = table.
|
|
46191
|
+
const cellType = table.getCellType(col, row);
|
|
46185
46192
|
if (isValid$1(cellType) && "text" !== cellType && "link" !== cellType && "progressbar" !== cellType && "checkbox" !== cellType && "radio" !== cellType && "switch" !== cellType && "button" !== cellType) {
|
|
46186
46193
|
maxWidth = Math.max(maxWidth, table.getColWidthDefinedNumber(col) || 0);
|
|
46187
46194
|
continue;
|
|
@@ -46190,14 +46197,14 @@
|
|
|
46190
46197
|
const layoutMap = table.internalProps.layoutMap;
|
|
46191
46198
|
if (layoutMap.isHeader(col, row)) {
|
|
46192
46199
|
const hd = layoutMap.getHeader(col, row);
|
|
46193
|
-
if ("only-body" === (null === (
|
|
46194
|
-
isValid$1(null == hd ? void 0 : hd.hierarchyLevel) && (cellHierarchyIndent = (null !== (
|
|
46200
|
+
if ("only-body" === (null === (_a = null == hd ? void 0 : hd.define) || void 0 === _a ? void 0 : _a.columnWidthComputeMode)) continue;
|
|
46201
|
+
isValid$1(null == hd ? void 0 : hd.hierarchyLevel) && (cellHierarchyIndent = (null !== (_b = hd.hierarchyLevel) && void 0 !== _b ? _b : 0) * ("tree" === layoutMap.rowHierarchyType && null !== (_c = layoutMap.rowHierarchyIndent) && void 0 !== _c ? _c : 0), layoutMap.rowHierarchyTextStartAlignment && !table.internalProps.headerHelper.getHierarchyIcon(col, row) && (cellHierarchyIndent += table.internalProps.headerHelper.getHierarchyIconWidth()));
|
|
46195
46202
|
} else if (table.isListTable()) {
|
|
46196
46203
|
deltaRow = prepareDeltaRow;
|
|
46197
46204
|
const define = table.getBodyColumnDefine(col, row);
|
|
46198
46205
|
if (null == define ? void 0 : define.tree) {
|
|
46199
46206
|
const indexArr = table.dataSource.getIndexKey(table.getRecordShowIndexByCell(col, row));
|
|
46200
|
-
cellHierarchyIndent = Array.isArray(indexArr) && table.getHierarchyState(col, row) !== HierarchyState.none ? (indexArr.length - 1) * (null !== (
|
|
46207
|
+
cellHierarchyIndent = Array.isArray(indexArr) && table.getHierarchyState(col, row) !== HierarchyState.none ? (indexArr.length - 1) * (null !== (_d = layoutMap.hierarchyIndent) && void 0 !== _d ? _d : 0) : 0, layoutMap.hierarchyTextStartAlignment && !table.internalProps.bodyHelper.getHierarchyIcon(col, row) && (cellHierarchyIndent += table.internalProps.headerHelper.getHierarchyIconWidth());
|
|
46201
46208
|
}
|
|
46202
46209
|
}
|
|
46203
46210
|
const textWidth = computeTextWidth(col, row, cellType, table);
|
|
@@ -46451,7 +46458,6 @@
|
|
|
46451
46458
|
emptyGroup.role = "empty";
|
|
46452
46459
|
|
|
46453
46460
|
function createComplexColumn(columnGroup, col, colWidth, rowStart, rowEnd, mergeMap, defaultRowHeight, table, rowLimit) {
|
|
46454
|
-
var _a, _b;
|
|
46455
46461
|
let padding,
|
|
46456
46462
|
textAlign,
|
|
46457
46463
|
textBaseline,
|
|
@@ -46505,7 +46511,7 @@
|
|
|
46505
46511
|
} = null != rawRecord ? rawRecord : {};
|
|
46506
46512
|
isVtableMerge = vtableMerge, vtableMerge && (mayHaveIcon = !0, table.internalProps.groupTitleCustomLayout && (customResult = dealWithCustom(table.internalProps.groupTitleCustomLayout, void 0, range.start.col, range.start.row, table.getColsWidth(range.start.col, range.end.col), table.getRowsHeight(range.start.row, range.end.row), !1, table.isAutoRowHeight(row), [0, 0, 0, 0], range, table)), table.internalProps.groupTitleFieldFormat ? value = table.internalProps.groupTitleFieldFormat(rawRecord, col, row, table) : void 0 !== vtableMergeName && (value = vtableMergeName));
|
|
46507
46513
|
}
|
|
46508
|
-
const type = isVtableMerge || isCustomMerge ? "text" :
|
|
46514
|
+
const type = isVtableMerge || isCustomMerge ? "text" : table.getCellType(col, row);
|
|
46509
46515
|
if (isPromise(value)) {
|
|
46510
46516
|
createEmptyCellGroup(col, row, 0, y, cellWidth, cellHeight, columnGroup), dealPromiseData(value, table, callCreateCellForPromiseValue.bind(null, {
|
|
46511
46517
|
type: type,
|
|
@@ -49999,7 +50005,7 @@
|
|
|
49999
50005
|
}
|
|
50000
50006
|
updateCellContentWhileResize(col, row) {
|
|
50001
50007
|
var _a;
|
|
50002
|
-
const type = (null === (_a = this.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge) ? "text" : this.table.
|
|
50008
|
+
const type = (null === (_a = this.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge) ? "text" : this.table.getCellType(col, row),
|
|
50003
50009
|
cellGroup = this.getCell(col, row);
|
|
50004
50010
|
"image" !== type && "video" !== type || updateImageCellContentWhileResize(cellGroup, col, row, 0, 0, this.table);
|
|
50005
50011
|
}
|
|
@@ -52324,9 +52330,8 @@
|
|
|
52324
52330
|
row: row
|
|
52325
52331
|
} = e;
|
|
52326
52332
|
if ("image" === e.target.type && e.target.role && e.target.role.startsWith("icon")) return;
|
|
52327
|
-
|
|
52328
|
-
|
|
52329
|
-
const columnDefine = table.isHeader(col, row) ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row),
|
|
52333
|
+
const cellType = table.getCellType(col, row),
|
|
52334
|
+
columnDefine = table.isHeader(col, row) ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row),
|
|
52330
52335
|
cellValue = table.getCellValue(col, row),
|
|
52331
52336
|
cellOriginValue = table.getCellOriginValue(col, row);
|
|
52332
52337
|
if ("link" === cellType) {
|
|
@@ -52354,7 +52359,9 @@
|
|
|
52354
52359
|
if (rowData && rowData.vtableMerge) return;
|
|
52355
52360
|
const data = Object.assign({
|
|
52356
52361
|
__value: cellValue,
|
|
52357
|
-
__dataValue: cellOriginValue
|
|
52362
|
+
__dataValue: cellOriginValue,
|
|
52363
|
+
value: cellValue,
|
|
52364
|
+
dataValue: cellOriginValue
|
|
52358
52365
|
}, rowData);
|
|
52359
52366
|
if (isFunction$3(templateLink)) url = templateLink(data, col, row, table);else {
|
|
52360
52367
|
const re = /\{\s*(\S+?)\s*\}/g;
|
|
@@ -56320,7 +56327,7 @@
|
|
|
56320
56327
|
paddingForAxis = null !== (_e = null === (_d = layoutMap.getBody(table.columnHeaderLevelCount, row).style) || void 0 === _d ? void 0 : _d.padding) && void 0 !== _e ? _e : table.theme.bodyStyle.padding;
|
|
56321
56328
|
}
|
|
56322
56329
|
if ((!hd || hd.isEmpty) && (layoutMap.isLeftBottomCorner(col, row) || layoutMap.isRightBottomCorner(col, row) || layoutMap.isCornerHeader(col, row) || layoutMap.isRightTopCorner(col, row))) return EMPTY_STYLE;
|
|
56323
|
-
const styleClass = table.internalProps.headerHelper.getStyleClass((
|
|
56330
|
+
const styleClass = table.internalProps.headerHelper.getStyleClass(table.getCellType(col, row));
|
|
56324
56331
|
if (layoutMap.isBottomFrozenRow(col, row) && table.theme.bottomFrozenStyle) cacheStyle = of(paddingForAxis ? {
|
|
56325
56332
|
padding: paddingForAxis
|
|
56326
56333
|
} : {}, table.theme.bottomFrozenStyle, {
|
|
@@ -56505,7 +56512,7 @@
|
|
|
56505
56512
|
}
|
|
56506
56513
|
constructor(container, options = {}) {
|
|
56507
56514
|
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;
|
|
56508
|
-
if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.
|
|
56515
|
+
if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.3-alpha.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");
|
|
56509
56516
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56510
56517
|
options: options,
|
|
56511
56518
|
container: container
|
|
@@ -57444,17 +57451,18 @@
|
|
|
57444
57451
|
this.release();
|
|
57445
57452
|
}
|
|
57446
57453
|
release() {
|
|
57447
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
57454
|
+
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, _0, _1;
|
|
57455
|
+
null === (_c = null === (_b = null === (_a = this.scenegraph) || void 0 === _a ? void 0 : _a.component) || void 0 === _b ? void 0 : _b.vScrollBar) || void 0 === _c || _c.release(), null === (_f = null === (_e = null === (_d = this.scenegraph) || void 0 === _d ? void 0 : _d.component) || void 0 === _e ? void 0 : _e.hScrollBar) || void 0 === _f || _f.release(), this.animationManager.clear(), this.animationManager.ticker.release(), null === (_j = null === (_h = null === (_g = this.scenegraph) || void 0 === _g ? void 0 : _g.stage) || void 0 === _h ? void 0 : _h.ticker) || void 0 === _j || _j.release();
|
|
57448
57456
|
const internalProps = this.internalProps;
|
|
57449
57457
|
if (this.isReleased) return;
|
|
57450
|
-
null === (
|
|
57458
|
+
null === (_l = null === (_k = internalProps.tooltipHandler) || void 0 === _k ? void 0 : _k.release) || void 0 === _l || _l.call(_k), null === (_o = null === (_m = internalProps.menuHandler) || void 0 === _m ? void 0 : _m.release) || void 0 === _o || _o.call(_m), null === (_p = super.release) || void 0 === _p || _p.call(this), this.pluginManager.release(), null === (_r = null === (_q = internalProps.handler) || void 0 === _q ? void 0 : _q.release) || void 0 === _r || _r.call(_q), this.eventManager.release(), null === (_t = null === (_s = internalProps.focusControl) || void 0 === _s ? void 0 : _s.release) || void 0 === _t || _t.call(_s), null === (_u = internalProps.legends) || void 0 === _u || _u.forEach(legend => {
|
|
57451
57459
|
null == legend || legend.release();
|
|
57452
|
-
}), null === (
|
|
57460
|
+
}), null === (_v = internalProps.title) || void 0 === _v || _v.release(), internalProps.title = null, null === (_w = internalProps.emptyTip) || void 0 === _w || _w.release(), internalProps.emptyTip = null, internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach(releaseObj => {
|
|
57453
57461
|
var _a;
|
|
57454
57462
|
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
57455
57463
|
}), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
|
|
57456
|
-
const parentElement = null === (
|
|
57457
|
-
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element), null === (
|
|
57464
|
+
const parentElement = null === (_x = internalProps.element) || void 0 === _x ? void 0 : _x.parentElement;
|
|
57465
|
+
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element), null === (_0 = null === (_z = null === (_y = this.editorManager) || void 0 === _y ? void 0 : _y.editingEditor) || void 0 === _z ? void 0 : _z.onEnd) || void 0 === _0 || _0.call(_z), this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_1 = this.reactCustomLayout) || void 0 === _1 || _1.clearCache(), clearChartRenderQueue();
|
|
57458
57466
|
}
|
|
57459
57467
|
fireListeners(type, event) {
|
|
57460
57468
|
return super.fireListeners(type, event);
|
|
@@ -65031,7 +65039,8 @@
|
|
|
65031
65039
|
});
|
|
65032
65040
|
playIcon.name = "play-icon", cellGroup.appendChild(playIcon), table.scenegraph.updateNextFrame();
|
|
65033
65041
|
}), video.onerror = () => {
|
|
65034
|
-
|
|
65042
|
+
const regedIcons = get$2();
|
|
65043
|
+
image.image = regedIcons.video_damage_pic ? regedIcons.video_damage_pic.svg : regedIcons.damage_pic.svg;
|
|
65035
65044
|
}, video.src = value, video.setAttribute("preload", "auto");
|
|
65036
65045
|
const image = createImage({
|
|
65037
65046
|
x: padding[3],
|
|
@@ -65041,7 +65050,9 @@
|
|
|
65041
65050
|
image: video,
|
|
65042
65051
|
cursor: "pointer"
|
|
65043
65052
|
});
|
|
65044
|
-
return image.name = "image", image.keepAspectRatio = keepAspectRatio, image.textAlign = textAlign, image.textBaseline = textBaseline, cellGroup.appendChild(image),
|
|
65053
|
+
return image.name = "image", image.keepAspectRatio = keepAspectRatio, image.textAlign = textAlign, image.textBaseline = textBaseline, cellGroup.appendChild(image), image.successCallback = () => {
|
|
65054
|
+
isDamagePic(image) && (updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame());
|
|
65055
|
+
}, cellGroup;
|
|
65045
65056
|
}
|
|
65046
65057
|
|
|
65047
65058
|
function createMark(marked, cellGroup, table) {
|