@visactor/vtable-sheet 1.23.1 → 1.23.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.
@@ -3045,7 +3045,8 @@
3045
3045
  this.element.value = void 0 !== value ? value : "";
3046
3046
  }
3047
3047
  getValue() {
3048
- return this.element.value;
3048
+ var _a;
3049
+ return null === (_a = this.element) || void 0 === _a ? void 0 : _a.value;
3049
3050
  }
3050
3051
  prepareEdit({
3051
3052
  referencePosition: referencePosition,
@@ -37477,7 +37478,7 @@
37477
37478
  }(IconPosition || (IconPosition = {}));
37478
37479
  var IconFuncTypeEnum;
37479
37480
  !function (IconFuncTypeEnum) {
37480
- 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";
37481
+ 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";
37481
37482
  }(IconFuncTypeEnum || (IconFuncTypeEnum = {}));
37482
37483
  var InternalIconName;
37483
37484
  !function (InternalIconName) {
@@ -45230,7 +45231,7 @@
45230
45231
  image: value,
45231
45232
  cursor: "pointer"
45232
45233
  });
45233
- return 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(() => {
45234
+ 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(() => {
45234
45235
  image.setAttribute("opacity", 1), updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame();
45235
45236
  }, 0)) : image.successCallback = () => {
45236
45237
  updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame();
@@ -45238,8 +45239,12 @@
45238
45239
  updateImageCellContentWhileResize(cellGroup, col, row, 0, 0, table);
45239
45240
  }, image.failCallback = () => {
45240
45241
  const regedIcons = get$2();
45241
- image.image = regedIcons.damage_pic.svg;
45242
- }, cellGroup.appendChild(image), cellGroup;
45242
+ image.image = regedIcons.image_damage_pic ? regedIcons.image_damage_pic.svg : regedIcons.damage_pic.svg;
45243
+ }, "string" == typeof value && !(value.startsWith("<svg") || isValidUrl$1(value) || value.includes("/") || isBase64$1(value))) {
45244
+ const regedIcons = get$2();
45245
+ image.image = regedIcons.image_damage_pic ? regedIcons.image_damage_pic.svg : regedIcons.damage_pic.svg;
45246
+ }
45247
+ return cellGroup.appendChild(image), cellGroup;
45243
45248
  }
45244
45249
  function _adjustWidthHeight(col, row, width, height, scene, padding, cellGroup) {
45245
45250
  let needInvalidate = !1,
@@ -45383,7 +45388,7 @@
45383
45388
  }
45384
45389
  function isDamagePic(image) {
45385
45390
  const regedIcons = get$2();
45386
- return image.attribute.image === regedIcons.damage_pic.svg;
45391
+ 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;
45387
45392
  }
45388
45393
 
45389
45394
  function dealPromiseData(dataPromise, tabel, callback) {
@@ -45500,7 +45505,7 @@
45500
45505
  };
45501
45506
  }
45502
45507
  function updateCell$1(col, row, table, addNew, isShadow, forceFastUpdate) {
45503
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
45508
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
45504
45509
  const oldCellGroup = table.scenegraph.highPerformanceGetCell(col, row, !0);
45505
45510
  if ("cell" !== oldCellGroup.role && !addNew) return;
45506
45511
  const cellLocation = table.getCellLocation(col, row);
@@ -45609,7 +45614,7 @@
45609
45614
  return oldCellGroup;
45610
45615
  }
45611
45616
  if (!addNew && "empty" === oldCellGroup.role) return;
45612
- const type = isVtableMerge || isCustomMerge ? "text" : table.isHeader(col, row) ? null !== (_s = table._getHeaderLayoutMap(col, row).headerType) && void 0 !== _s ? _s : "text" : null !== (_t = table.getBodyColumnType(col, row)) && void 0 !== _t ? _t : "text",
45617
+ const type = isVtableMerge || isCustomMerge ? "text" : table.getCellType(col, row),
45613
45618
  padding = cellTheme._vtable.padding,
45614
45619
  textAlign = cellTheme.text.textAlign,
45615
45620
  textBaseline = cellTheme.text.textBaseline;
@@ -46155,7 +46160,6 @@
46155
46160
  table.isPivotTable() && (layoutMap.disableUseGetBodyCache(), layoutMap.disableUseHeaderPathCache());
46156
46161
  }
46157
46162
  function computeRowHeight(row, startCol, endCol, table) {
46158
- var _a;
46159
46163
  if (!(table.isAutoRowHeight(row) || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
46160
46164
  let maxHeight;
46161
46165
  if (table.options.customComputeRowHeight) {
@@ -46198,7 +46202,7 @@
46198
46202
  }
46199
46203
  }
46200
46204
  if (table.isPivotChart() && (table.isLeftFrozenColumn(col) && table.isBottomFrozenRow(row) || table.isRightFrozenColumn(col) && table.isBottomFrozenRow(row))) continue;
46201
- const cellType = table.isHeader(col, row) ? null === (_a = table._getHeaderLayoutMap(col, row)) || void 0 === _a ? void 0 : _a.headerType : table.getBodyColumnType(col, row),
46205
+ const cellType = table.getCellType(col, row),
46202
46206
  textHeight = computeTextHeight(col, row, cellType, table);
46203
46207
  maxHeight = isValid$2(maxHeight) ? Math.max(textHeight, maxHeight) : textHeight;
46204
46208
  }
@@ -46445,12 +46449,12 @@
46445
46449
  cell && updateCellHeight(scene, cell, col, row, height, detaY);
46446
46450
  }
46447
46451
  function updateCellHeight(scene, cell, col, row, distHeight, detaY, isHeader) {
46448
- var _a, _b, _c, _d, _e;
46452
+ var _a, _b, _c;
46449
46453
  if (cell.attribute.height === distHeight && !cell.needUpdateHeight) return;
46450
46454
  cell.needUpdateHeight = !1, cell.setAttribute("height", distHeight);
46451
46455
  const isVtableMerge = null === (_a = scene.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge,
46452
46456
  isCustomMerge = !!scene.table.getCustomMerge(col, row),
46453
- type = isVtableMerge || isCustomMerge ? "text" : scene.table.isHeader(col, row) ? null !== (_b = scene.table._getHeaderLayoutMap(col, row).headerType) && void 0 !== _b ? _b : "text" : null !== (_c = scene.table.getBodyColumnType(col, row)) && void 0 !== _c ? _c : "text";
46457
+ type = isVtableMerge || isCustomMerge ? "text" : scene.table.getCellType(col, row);
46454
46458
  if ("progressbar" === type) {
46455
46459
  const columnDefine = scene.table.getBodyColumnDefine(col, row),
46456
46460
  style = scene.table._getCellStyle(col, row),
@@ -46467,7 +46471,7 @@
46467
46471
  const headerStyle = scene.table._getCellStyle(col, row),
46468
46472
  padding = getQuadProps(getProp("padding", headerStyle, col, row, scene.table));
46469
46473
  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);
46470
- } else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cell, col, row, 0, detaY, scene.table);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 {
46474
+ } 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 {
46471
46475
  let renderDefault = !0;
46472
46476
  const customContainer = cell.getChildByName(CUSTOM_CONTAINER_NAME) || cell.getChildByName(CUSTOM_MERGE_CONTAINER_NAME);
46473
46477
  if (customContainer) {
@@ -46640,7 +46644,7 @@
46640
46644
  }
46641
46645
  }
46642
46646
  function updateCellWidth(scene, cell, col, row, oldWidth, distWidth, detaX, isHeader, autoWrapText) {
46643
- var _a, _b, _c, _d, _e, _f, _g;
46647
+ var _a, _b, _c, _d, _e;
46644
46648
  if (cell.attribute.width === distWidth && !cell.needUpdateWidth) return !1;
46645
46649
  cell.needUpdateWidth = !1, cell.setAttribute("width", distWidth);
46646
46650
  const cellGroup = cell;
@@ -46648,7 +46652,7 @@
46648
46652
  const autoRowHeight = scene.table.isAutoRowHeight(row),
46649
46653
  isVtableMerge = null === (_a = scene.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge,
46650
46654
  isCustomMerge = !!scene.table.getCustomMerge(col, row),
46651
- type = isVtableMerge || isCustomMerge ? "text" : scene.table.isHeader(col, row) ? null !== (_b = scene.table._getHeaderLayoutMap(col, row).headerType) && void 0 !== _b ? _b : "text" : null !== (_c = scene.table.getBodyColumnType(col, row)) && void 0 !== _c ? _c : "text";
46655
+ type = isVtableMerge || isCustomMerge ? "text" : scene.table.getCellType(col, row);
46652
46656
  let isHeightChange = !1;
46653
46657
  if ("progressbar" === type) {
46654
46658
  const columnDefine = scene.table.getBodyColumnDefine(col, row),
@@ -46668,15 +46672,15 @@
46668
46672
  const headerStyle = scene.table._getCellStyle(col, row),
46669
46673
  padding = getQuadProps(getProp("padding", headerStyle, col, row, scene.table));
46670
46674
  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);
46671
- } else if ("image" === type || "video" === type) updateImageCellContentWhileResize(cellGroup, col, row, detaX, 0, scene.table);else if ("axis" === (null === (_d = cellGroup.firstChild) || void 0 === _d ? void 0 : _d.name)) {
46675
+ } 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)) {
46672
46676
  const axisConfig = scene.table.internalProps.layoutMap.getAxisConfigInPivotChart(col, row),
46673
46677
  cellStyle = scene.table._getCellStyle(col, row),
46674
46678
  padding = getQuadProps(getProp("padding", cellStyle, col, row, scene.table));
46675
46679
  if (axisConfig) {
46676
- const axis = new (Factory.getComponent("axis"))(axisConfig, cellGroup.attribute.width, cellGroup.attribute.height, null !== (_e = axisConfig.__vtableBodyChartCellPadding) && void 0 !== _e ? _e : padding, scene.table);
46680
+ const axis = new (Factory.getComponent("axis"))(axisConfig, cellGroup.attribute.width, cellGroup.attribute.height, null !== (_c = axisConfig.__vtableBodyChartCellPadding) && void 0 !== _c ? _c : padding, scene.table);
46677
46681
  cellGroup.clear(), cellGroup.appendChild(axis.component), axis.overlap();
46678
46682
  }
46679
- } else if ("axis" === (null === (_f = cell.firstChild) || void 0 === _f ? void 0 : _f.name)) null === (_g = cell.firstChild) || void 0 === _g || _g.originAxis.resize(cell.attribute.width, cell.attribute.height);else {
46683
+ } 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 {
46680
46684
  let renderDefault = !0;
46681
46685
  const customContainer = cell.getChildByName(CUSTOM_CONTAINER_NAME) || cell.getChildByName(CUSTOM_MERGE_CONTAINER_NAME);
46682
46686
  if (customContainer) {
@@ -50214,7 +50218,7 @@
50214
50218
  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);
50215
50219
  }
50216
50220
  function computeAutoColWidth(widthDeifne, col, startRow, endRow, forceCompute, table) {
50217
- var _a, _b, _c, _d, _e;
50221
+ var _a, _b, _c, _d;
50218
50222
  let maxWidth = 0,
50219
50223
  deltaRow = 1,
50220
50224
  prepareDeltaRow = 1;
@@ -50246,7 +50250,7 @@
50246
50250
  maxWidth = Math.max(indicatorWidth, maxWidth);
50247
50251
  continue;
50248
50252
  }
50249
- const cellType = table.isHeader(col, row) ? null === (_a = table._getHeaderLayoutMap(col, row)) || void 0 === _a ? void 0 : _a.headerType : table.getBodyColumnType(col, row);
50253
+ const cellType = table.getCellType(col, row);
50250
50254
  if (isValid$2(cellType) && "text" !== cellType && "link" !== cellType && "progressbar" !== cellType && "checkbox" !== cellType && "radio" !== cellType && "switch" !== cellType && "button" !== cellType) {
50251
50255
  maxWidth = Math.max(maxWidth, table.getColWidthDefinedNumber(col) || 0);
50252
50256
  continue;
@@ -50255,14 +50259,14 @@
50255
50259
  const layoutMap = table.internalProps.layoutMap;
50256
50260
  if (layoutMap.isHeader(col, row)) {
50257
50261
  const hd = layoutMap.getHeader(col, row);
50258
- if ("only-body" === (null === (_b = null == hd ? void 0 : hd.define) || void 0 === _b ? void 0 : _b.columnWidthComputeMode)) continue;
50259
- isValid$2(null == hd ? void 0 : hd.hierarchyLevel) && (cellHierarchyIndent = (null !== (_c = hd.hierarchyLevel) && void 0 !== _c ? _c : 0) * ("tree" === layoutMap.rowHierarchyType && null !== (_d = layoutMap.rowHierarchyIndent) && void 0 !== _d ? _d : 0), layoutMap.rowHierarchyTextStartAlignment && !table.internalProps.headerHelper.getHierarchyIcon(col, row) && (cellHierarchyIndent += table.internalProps.headerHelper.getHierarchyIconWidth()));
50262
+ if ("only-body" === (null === (_a = null == hd ? void 0 : hd.define) || void 0 === _a ? void 0 : _a.columnWidthComputeMode)) continue;
50263
+ isValid$2(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()));
50260
50264
  } else if (table.isListTable()) {
50261
50265
  deltaRow = prepareDeltaRow;
50262
50266
  const define = table.getBodyColumnDefine(col, row);
50263
50267
  if (null == define ? void 0 : define.tree) {
50264
50268
  const indexArr = table.dataSource.getIndexKey(table.getRecordShowIndexByCell(col, row));
50265
- cellHierarchyIndent = Array.isArray(indexArr) && table.getHierarchyState(col, row) !== HierarchyState.none ? (indexArr.length - 1) * (null !== (_e = layoutMap.hierarchyIndent) && void 0 !== _e ? _e : 0) : 0, layoutMap.hierarchyTextStartAlignment && !table.internalProps.bodyHelper.getHierarchyIcon(col, row) && (cellHierarchyIndent += table.internalProps.headerHelper.getHierarchyIconWidth());
50269
+ 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());
50266
50270
  }
50267
50271
  }
50268
50272
  const textWidth = computeTextWidth(col, row, cellType, table);
@@ -50516,7 +50520,6 @@
50516
50520
  emptyGroup.role = "empty";
50517
50521
 
50518
50522
  function createComplexColumn(columnGroup, col, colWidth, rowStart, rowEnd, mergeMap, defaultRowHeight, table, rowLimit) {
50519
- var _a, _b;
50520
50523
  let padding,
50521
50524
  textAlign,
50522
50525
  textBaseline,
@@ -50570,7 +50573,7 @@
50570
50573
  } = null != rawRecord ? rawRecord : {};
50571
50574
  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));
50572
50575
  }
50573
- const type = isVtableMerge || isCustomMerge ? "text" : null !== (_b = table.isHeader(col, row) ? null !== (_a = table._getHeaderLayoutMap(col, row).headerType) && void 0 !== _a ? _a : "text" : table.getBodyColumnType(col, row)) && void 0 !== _b ? _b : "text";
50576
+ const type = isVtableMerge || isCustomMerge ? "text" : table.getCellType(col, row);
50574
50577
  if (isPromise(value)) {
50575
50578
  createEmptyCellGroup(col, row, 0, y, cellWidth, cellHeight, columnGroup), dealPromiseData(value, table, callCreateCellForPromiseValue.bind(null, {
50576
50579
  type: type,
@@ -54064,7 +54067,7 @@
54064
54067
  }
54065
54068
  updateCellContentWhileResize(col, row) {
54066
54069
  var _a;
54067
- const type = (null === (_a = this.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge) ? "text" : this.table.isHeader(col, row) ? this.table._getHeaderLayoutMap(col, row).headerType : this.table.getBodyColumnType(col, row),
54070
+ const type = (null === (_a = this.table.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge) ? "text" : this.table.getCellType(col, row),
54068
54071
  cellGroup = this.getCell(col, row);
54069
54072
  "image" !== type && "video" !== type || updateImageCellContentWhileResize(cellGroup, col, row, 0, 0, this.table);
54070
54073
  }
@@ -56389,9 +56392,8 @@
56389
56392
  row: row
56390
56393
  } = e;
56391
56394
  if ("image" === e.target.type && e.target.role && e.target.role.startsWith("icon")) return;
56392
- let cellType;
56393
- cellType = table.internalProps.layoutMap.isHeader(col, row) ? table.isPivotTable() ? table._getHeaderLayoutMap(col, row).headerType : table.getHeaderDefine(col, row).headerType : table.getBodyColumnType(col, row);
56394
- const columnDefine = table.isHeader(col, row) ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row),
56395
+ const cellType = table.getCellType(col, row),
56396
+ columnDefine = table.isHeader(col, row) ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row),
56395
56397
  cellValue = table.getCellValue(col, row),
56396
56398
  cellOriginValue = table.getCellOriginValue(col, row);
56397
56399
  if ("link" === cellType) {
@@ -56419,7 +56421,9 @@
56419
56421
  if (rowData && rowData.vtableMerge) return;
56420
56422
  const data = Object.assign({
56421
56423
  __value: cellValue,
56422
- __dataValue: cellOriginValue
56424
+ __dataValue: cellOriginValue,
56425
+ value: cellValue,
56426
+ dataValue: cellOriginValue
56423
56427
  }, rowData);
56424
56428
  if (isFunction$4(templateLink)) url = templateLink(data, col, row, table);else {
56425
56429
  const re = /\{\s*(\S+?)\s*\}/g;
@@ -60385,7 +60389,7 @@
60385
60389
  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;
60386
60390
  }
60387
60391
  if ((!hd || hd.isEmpty) && (layoutMap.isLeftBottomCorner(col, row) || layoutMap.isRightBottomCorner(col, row) || layoutMap.isCornerHeader(col, row) || layoutMap.isRightTopCorner(col, row))) return EMPTY_STYLE;
60388
- const styleClass = table.internalProps.headerHelper.getStyleClass((null == hd ? void 0 : hd.headerType) || "text");
60392
+ const styleClass = table.internalProps.headerHelper.getStyleClass(table.getCellType(col, row));
60389
60393
  if (layoutMap.isBottomFrozenRow(col, row) && table.theme.bottomFrozenStyle) cacheStyle = of(paddingForAxis ? {
60390
60394
  padding: paddingForAxis
60391
60395
  } : {}, table.theme.bottomFrozenStyle, {
@@ -60570,7 +60574,7 @@
60570
60574
  }
60571
60575
  constructor(container, options = {}) {
60572
60576
  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;
60573
- 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.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.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");
60577
+ 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.2", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.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");
60574
60578
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
60575
60579
  options: options,
60576
60580
  container: container
@@ -69132,7 +69136,8 @@
69132
69136
  });
69133
69137
  playIcon.name = "play-icon", cellGroup.appendChild(playIcon), table.scenegraph.updateNextFrame();
69134
69138
  }), video.onerror = () => {
69135
- image.image = regedIcons.damage_pic.svg;
69139
+ const regedIcons = get$2();
69140
+ image.image = regedIcons.video_damage_pic ? regedIcons.video_damage_pic.svg : regedIcons.damage_pic.svg;
69136
69141
  }, video.src = value, video.setAttribute("preload", "auto");
69137
69142
  const image = createImage({
69138
69143
  x: padding[3],
@@ -69142,7 +69147,9 @@
69142
69147
  image: video,
69143
69148
  cursor: "pointer"
69144
69149
  });
69145
- return image.name = "image", image.keepAspectRatio = keepAspectRatio, image.textAlign = textAlign, image.textBaseline = textBaseline, cellGroup.appendChild(image), cellGroup;
69150
+ return image.name = "image", image.keepAspectRatio = keepAspectRatio, image.textAlign = textAlign, image.textBaseline = textBaseline, cellGroup.appendChild(image), image.successCallback = () => {
69151
+ isDamagePic(image) && (updateAutoSizingAndKeepAspectRatio(imageAutoSizing, keepAspectRatio, padding, textAlign, textBaseline, image, cellGroup, table), table.scenegraph.updateNextFrame());
69152
+ }, cellGroup;
69146
69153
  }
69147
69154
 
69148
69155
  function createMark(marked, cellGroup, table) {
@@ -87581,7 +87588,7 @@
87581
87588
  });
87582
87589
  this.sheet
87583
87590
  .getActiveSheet()
87584
- .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value);
87591
+ .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value, false, false);
87585
87592
  });
87586
87593
  }
87587
87594
  catch (error) {
@@ -87600,7 +87607,7 @@
87600
87607
  });
87601
87608
  this.sheet
87602
87609
  .getActiveSheet()
87603
- .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value);
87610
+ .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value, false, false);
87604
87611
  });
87605
87612
  }
87606
87613
  catch (error) {
@@ -87619,7 +87626,7 @@
87619
87626
  });
87620
87627
  this.sheet
87621
87628
  .getActiveSheet()
87622
- .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value);
87629
+ .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value, false, false);
87623
87630
  });
87624
87631
  }
87625
87632
  catch (error) {
@@ -87638,7 +87645,7 @@
87638
87645
  });
87639
87646
  this.sheet
87640
87647
  .getActiveSheet()
87641
- .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value);
87648
+ .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value, false, false);
87642
87649
  });
87643
87650
  }
87644
87651
  catch (error) {
@@ -87660,7 +87667,7 @@
87660
87667
  const result = this.getCellValue(cell);
87661
87668
  this.sheet
87662
87669
  .getActiveSheet()
87663
- .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value);
87670
+ .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value, false, false);
87664
87671
  }
87665
87672
  }
87666
87673
  catch (error) {
@@ -87680,7 +87687,7 @@
87680
87687
  const result = this.getCellValue(cell);
87681
87688
  this.sheet
87682
87689
  .getActiveSheet()
87683
- .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value);
87690
+ .tableInstance?.changeCellValue(cell.col, cell.row, result.error ? '#ERROR!' : result.value, false, false);
87684
87691
  }
87685
87692
  }
87686
87693
  catch (error) {
@@ -89614,11 +89621,17 @@
89614
89621
  table.scenegraph.updateNextFrame();
89615
89622
  }
89616
89623
  function createFormulaDetectionOptions(sheetDefine, options, vtableSheet) {
89624
+ const getActiveSheetKey = () => {
89625
+ return (vtableSheet?.getActiveSheet?.()?.getKey?.() ||
89626
+ vtableSheet?.sheetManager?.getActiveSheet?.()?.sheetKey ||
89627
+ sheetDefine?.sheetKey ||
89628
+ 'Sheet1');
89629
+ };
89617
89630
  return {
89618
89631
  isFormulaCell: (col, row, cellData, table) => {
89619
89632
  if (vtableSheet?.formulaManager) {
89620
89633
  try {
89621
- const sheetName = vtableSheet.sheetManager?._activeSheetKey || 'Sheet1';
89634
+ const sheetName = getActiveSheetKey();
89622
89635
  return vtableSheet.formulaManager.isCellFormula({
89623
89636
  sheet: sheetName,
89624
89637
  row: row,
@@ -89637,7 +89650,7 @@
89637
89650
  getCellFormula: (col, row, cellData, table) => {
89638
89651
  if (vtableSheet?.formulaManager) {
89639
89652
  try {
89640
- const sheetName = vtableSheet.sheetManager?._activeSheetKey || 'Sheet1';
89653
+ const sheetName = getActiveSheetKey();
89641
89654
  return vtableSheet.formulaManager.getCellFormula({
89642
89655
  sheet: sheetName,
89643
89656
  row: row,
@@ -89656,7 +89669,7 @@
89656
89669
  setCellFormula: (col, row, formula, table) => {
89657
89670
  if (vtableSheet?.formulaManager) {
89658
89671
  try {
89659
- const sheetName = vtableSheet.sheetManager?._activeSheetKey || 'Sheet1';
89672
+ const sheetName = getActiveSheetKey();
89660
89673
  vtableSheet.formulaManager.setCellContent({
89661
89674
  sheet: sheetName,
89662
89675
  row: row,
@@ -92947,7 +92960,7 @@
92947
92960
  importStyle();
92948
92961
  }
92949
92962
 
92950
- const version = "1.23.1";
92963
+ const version = "1.23.2";
92951
92964
  importStyles();
92952
92965
 
92953
92966
  exports.TYPES = index;