@fileverse-dev/fortune-core 1.2.64-patch-12 → 1.2.65

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/es/canvas.d.ts CHANGED
@@ -38,7 +38,7 @@ export declare class Canvas {
38
38
  stc: number | undefined;
39
39
  edc: number | undefined;
40
40
  };
41
- cellTextRender(textInfo: any, ctx: CanvasRenderingContext2D, option: any, checkCF: any): void;
41
+ cellTextRender(textInfo: any, ctx: CanvasRenderingContext2D, option: any): void;
42
42
  drawFreezeLine({ horizontalTop, verticalLeft, }: {
43
43
  horizontalTop?: number;
44
44
  verticalLeft?: number;
package/es/canvas.js CHANGED
@@ -1,13 +1,3 @@
1
- var __assign = this && this.__assign || function () {
2
- __assign = Object.assign || function (t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6
- }
7
- return t;
8
- };
9
- return __assign.apply(this, arguments);
10
- };
11
1
  import _ from "lodash";
12
2
  import { getFlowdata } from "./context";
13
3
  import { getRealCellValue, normalizedAttr } from "./modules/cell";
@@ -893,7 +883,6 @@ var Canvas = function () {
893
883
  }, renderCtx)) === false) {
894
884
  return;
895
885
  }
896
- console.log("cellsize", fillStyle);
897
886
  renderCtx.fillRect(cellsize[0], cellsize[1], cellsize[2], cellsize[3]);
898
887
  var index = getSheetIndex(this.sheetCtx, this.sheetCtx.currentSheetId);
899
888
  var dataVerification = this.sheetCtx.luckysheetfile[index].dataVerification;
@@ -1147,27 +1136,6 @@ var Canvas = function () {
1147
1136
  renderCtx.rect(pos_x, pos_y, cellWidth, cellHeight);
1148
1137
  renderCtx.clip();
1149
1138
  renderCtx.scale(this.sheetCtx.zoomRatio, this.sheetCtx.zoomRatio);
1150
- console.log("pos_x, pos_y, cellWidth, cellHeight", cell);
1151
- if (checksCF === null || checksCF === void 0 ? void 0 : checksCF.strikethrough) {
1152
- cell = __assign(__assign({}, cell), {
1153
- cl: 1
1154
- });
1155
- }
1156
- if (checksCF === null || checksCF === void 0 ? void 0 : checksCF.italic) {
1157
- cell = __assign(__assign({}, cell), {
1158
- it: 1
1159
- });
1160
- }
1161
- if (checksCF === null || checksCF === void 0 ? void 0 : checksCF.underline) {
1162
- cell = __assign(__assign({}, cell), {
1163
- un: 1
1164
- });
1165
- }
1166
- if (checksCF === null || checksCF === void 0 ? void 0 : checksCF.bold) {
1167
- cell = __assign(__assign({}, cell), {
1168
- bl: 1
1169
- });
1170
- }
1171
1139
  var textInfo = cell ? getCellTextInfo(cell, renderCtx, this.sheetCtx, {
1172
1140
  cellWidth: cellWidth,
1173
1141
  cellHeight: cellHeight,
@@ -1210,15 +1178,14 @@ var Canvas = function () {
1210
1178
  this.cellTextRender(textInfo, renderCtx, {
1211
1179
  pos_x: pos_x,
1212
1180
  pos_y: pos_y
1213
- }, checksCF);
1181
+ });
1214
1182
  }
1215
1183
  renderCtx.restore();
1216
1184
  } else if (!isDataVlidationAvailable) {
1217
- console.log('checksCF', checksCF);
1218
1185
  this.cellTextRender(textInfo, renderCtx, {
1219
1186
  pos_x: pos_x,
1220
1187
  pos_y: pos_y
1221
- }, checksCF);
1188
+ });
1222
1189
  }
1223
1190
  renderCtx.restore();
1224
1191
  }
@@ -1334,13 +1301,13 @@ var Canvas = function () {
1334
1301
  this.cellTextRender(textInfo, renderCtx, {
1335
1302
  pos_x: pos_x,
1336
1303
  pos_y: pos_y
1337
- }, checksAF);
1304
+ });
1338
1305
  renderCtx.restore();
1339
1306
  } else {
1340
1307
  this.cellTextRender(textInfo, renderCtx, {
1341
1308
  pos_x: pos_x,
1342
1309
  pos_y: pos_y
1343
- }, checksCF);
1310
+ });
1344
1311
  }
1345
1312
  renderCtx.restore();
1346
1313
  };
@@ -1454,8 +1421,7 @@ var Canvas = function () {
1454
1421
  edc: edc
1455
1422
  };
1456
1423
  };
1457
- Canvas.prototype.cellTextRender = function (textInfo, ctx, option, checkCF) {
1458
- console.log("textInfo===hahahahha", textInfo, checkCF);
1424
+ Canvas.prototype.cellTextRender = function (textInfo, ctx, option) {
1459
1425
  if (!textInfo) {
1460
1426
  return;
1461
1427
  }
@@ -1482,7 +1448,6 @@ var Canvas = function () {
1482
1448
  var txt = _.isPlainObject(word.content) ? word.content.m : word.content;
1483
1449
  ctx.fillText(txt, (pos_x + word.left) / this.sheetCtx.zoomRatio, (pos_y + word.top) / this.sheetCtx.zoomRatio);
1484
1450
  if (word.cancelLine) {
1485
- console.log("word.cancelLine", word.cancelLine, word);
1486
1451
  var c = word.cancelLine;
1487
1452
  ctx.beginPath();
1488
1453
  ctx.moveTo(Math.floor((pos_x + c.startX) / this.sheetCtx.zoomRatio) + 0.5, Math.floor((pos_y + c.startY) / this.sheetCtx.zoomRatio) + 0.5);
package/es/context.js CHANGED
@@ -163,12 +163,6 @@ export function defaultContext(refs) {
163
163
  check: true,
164
164
  color: "#000000"
165
165
  },
166
- font: {
167
- bold: false,
168
- italic: false,
169
- underline: false,
170
- strikethrough: false
171
- },
172
166
  betweenValue: {
173
167
  value1: "",
174
168
  value2: ""
@@ -354,12 +354,21 @@ function pasteHandler(ctx, data, borderInfo) {
354
354
  expandRowsAndColumns(d, addr, addc);
355
355
  }
356
356
  if (!d) return;
357
+ var getUrlFromText = function getUrlFromText(text) {
358
+ var t = String(text).trim();
359
+ if (!t || /[\s\r\n]/.test(t)) return null;
360
+ if (!/^(https?:\/\/|www\.)\S+$/i.test(t)) return null;
361
+ return t.startsWith("http") ? t : "https://".concat(t);
362
+ };
357
363
  for (var r = 0; r < rlen; r += 1) {
358
364
  var x = d[r + curR];
359
365
  for (var c = 0; c < clen; c += 1) {
360
366
  var originCell = x[c + curC];
361
367
  var value = dataChe[r][c];
362
- if (isRealNum(value)) {
368
+ var originalValueStr = String(value);
369
+ var url = getUrlFromText(originalValueStr);
370
+ var isUrl = url !== null;
371
+ if (!isUrl && isRealNum(value)) {
363
372
  if (originCell && originCell.ct && originCell.ct.fa === "@") {
364
373
  value = String(value);
365
374
  } else if (!/^0x?[a-fA-F0-9]+$/.test(value)) {
@@ -367,26 +376,59 @@ function pasteHandler(ctx, data, borderInfo) {
367
376
  }
368
377
  }
369
378
  if (originCell) {
370
- originCell.v = value;
379
+ originCell.v = isUrl ? originalValueStr : value;
371
380
  if (originCell.ct != null && originCell.ct.fa != null) {
372
- originCell.m = update(originCell.ct.fa, value);
381
+ originCell.m = update(originCell.ct.fa, originCell.v);
373
382
  } else {
374
- originCell.m = value;
383
+ originCell.m = typeof originCell.v === "boolean" ? String(originCell.v) : originCell.v;
375
384
  }
376
385
  if (originCell.f != null && originCell.f.length > 0) {
377
386
  originCell.f = "";
378
387
  }
388
+ if (isUrl && url) {
389
+ var targetRow = r + curR;
390
+ var targetCol = c + curC;
391
+ saveHyperlink(ctx, targetRow, targetCol, url, "webpage", originalValueStr);
392
+ originCell.hl = {
393
+ r: targetRow,
394
+ c: targetCol,
395
+ id: ctx.currentSheetId
396
+ };
397
+ originCell.fc = originCell.fc || "rgb(0, 0, 255)";
398
+ originCell.un = originCell.un !== undefined ? originCell.un : 1;
399
+ }
379
400
  } else {
380
401
  var cell = {};
381
- var mask = genarate(value);
382
- _a = mask, cell.m = _a[0], cell.ct = _a[1], cell.v = _a[2];
383
- if (/^0x?[a-fA-F0-9]+$/.test(value)) {
384
- cell.m = value;
402
+ if (isUrl) {
403
+ cell.v = originalValueStr;
404
+ cell.m = originalValueStr;
385
405
  cell.ct = {
386
406
  fa: "@",
387
407
  t: "s"
388
408
  };
389
- cell.v = value;
409
+ } else {
410
+ var mask = genarate(value);
411
+ _a = mask, cell.m = _a[0], cell.ct = _a[1], cell.v = _a[2];
412
+ if (/^0x?[a-fA-F0-9]+$/.test(value)) {
413
+ cell.m = value;
414
+ cell.ct = {
415
+ fa: "@",
416
+ t: "s"
417
+ };
418
+ cell.v = value;
419
+ }
420
+ }
421
+ if (isUrl && url) {
422
+ var targetRow = r + curR;
423
+ var targetCol = c + curC;
424
+ saveHyperlink(ctx, targetRow, targetCol, url, "webpage", originalValueStr);
425
+ cell.hl = {
426
+ r: targetRow,
427
+ c: targetCol,
428
+ id: ctx.currentSheetId
429
+ };
430
+ cell.fc = cell.fc || "rgb(0, 0, 255)";
431
+ cell.un = cell.un !== undefined ? cell.un : 1;
390
432
  }
391
433
  x[c + curC] = cell;
392
434
  }
@@ -786,7 +828,7 @@ function pasteHandlerOfCutPaste(ctx, copyRange) {
786
828
  }
787
829
  }
788
830
  function pasteHandlerOfCopyPaste(ctx, copyRange) {
789
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
831
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
790
832
  var allowEdit = isAllowEdit(ctx);
791
833
  if (!allowEdit || ctx.isFlvReadOnly) return;
792
834
  if (!copyRange) return;
@@ -1085,21 +1127,64 @@ function pasteHandlerOfCopyPaste(ctx, copyRange) {
1085
1127
  file.luckysheet_conditionformat_save = cdformat;
1086
1128
  file.dataVerification = __assign(__assign({}, file.dataVerification), dataVerification);
1087
1129
  if (((_l = ctx.luckysheet_select_save) === null || _l === void 0 ? void 0 : _l.length) === 1 && ((_m = ctx.luckysheet_copy_save) === null || _m === void 0 ? void 0 : _m.copyRange.length) === 1) {
1088
- _.forEach((_o = ctx.luckysheet_copy_save) === null || _o === void 0 ? void 0 : _o.copyRange, function (range) {
1089
- var _a, _b, _c;
1090
- var srcIndex = getSheetIndex(ctx, (_a = ctx.luckysheet_copy_save) === null || _a === void 0 ? void 0 : _a.dataSheetId);
1091
- for (var r = 0; r <= range.row[1] - range.row[0]; r += 1) {
1092
- for (var c = 0; c <= range.column[1] - range.column[0]; c += 1) {
1093
- var srcRow = r + range.row[0];
1094
- var srcCol = c + range.column[0];
1095
- var srcLink = (_b = ctx.luckysheetfile[srcIndex].hyperlink) === null || _b === void 0 ? void 0 : _b["".concat(srcRow, "_").concat(srcCol)];
1096
- if (!srcLink) continue;
1097
- var targetR = r + ctx.luckysheet_select_save[0].row[0];
1098
- var targetC = c + ctx.luckysheet_select_save[0].column[0];
1099
- setCellHyperlink(ctx, (_c = ctx.luckysheet_copy_save) === null || _c === void 0 ? void 0 : _c.dataSheetId, targetR, targetC, srcLink);
1130
+ var srcIndex = getSheetIndex(ctx, (_o = ctx.luckysheet_copy_save) === null || _o === void 0 ? void 0 : _o.dataSheetId);
1131
+ var targetSheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
1132
+ var srcHyperlinks = ctx.luckysheetfile[srcIndex].hyperlink;
1133
+ var srcData = ctx.luckysheetfile[srcIndex].data;
1134
+ if (!ctx.luckysheetfile[targetSheetIndex].hyperlink) {
1135
+ ctx.luckysheetfile[targetSheetIndex].hyperlink = {};
1136
+ }
1137
+ var targetHyperlinks = ctx.luckysheetfile[targetSheetIndex].hyperlink;
1138
+ var isSingleCell = copyh === 1 && copyc === 1;
1139
+ var cachedSrcLinkKey = isSingleCell ? "".concat(c_r1, "_").concat(c_c1) : null;
1140
+ var cachedSrcLink = isSingleCell && srcHyperlinks ? srcHyperlinks[cachedSrcLinkKey] : null;
1141
+ var cachedSrcCell = isSingleCell && srcData ? (_p = srcData[c_r1]) === null || _p === void 0 ? void 0 : _p[c_c1] : null;
1142
+ for (var th = 1; th <= timesH; th += 1) {
1143
+ for (var tc = 1; tc <= timesC; tc += 1) {
1144
+ var linkMth = minh + (th - 1) * copyh;
1145
+ var linkMtc = minc + (tc - 1) * copyc;
1146
+ var linkMaxRow = minh + th * copyh;
1147
+ var linkMaxCol = minc + tc * copyc;
1148
+ for (var h = linkMth; h < linkMaxRow; h += 1) {
1149
+ for (var c = linkMtc; c < linkMaxCol; c += 1) {
1150
+ var srcLink = void 0;
1151
+ if (isSingleCell && cachedSrcLink) {
1152
+ srcLink = cachedSrcLink;
1153
+ } else {
1154
+ var srcRow = c_r1 + (h - linkMth);
1155
+ var srcCol = c_c1 + (c - linkMtc);
1156
+ srcLink = srcHyperlinks === null || srcHyperlinks === void 0 ? void 0 : srcHyperlinks["".concat(srcRow, "_").concat(srcCol)];
1157
+ }
1158
+ if (!srcLink) continue;
1159
+ var targetKey = "".concat(h, "_").concat(c);
1160
+ targetHyperlinks[targetKey] = srcLink;
1161
+ var cell = (_q = d[h]) === null || _q === void 0 ? void 0 : _q[c];
1162
+ if (cell) {
1163
+ var srcCell = void 0;
1164
+ if (isSingleCell && cachedSrcCell) {
1165
+ srcCell = cachedSrcCell;
1166
+ } else {
1167
+ var srcRow = c_r1 + (h - linkMth);
1168
+ var srcCol = c_c1 + (c - linkMtc);
1169
+ srcCell = (_r = srcData === null || srcData === void 0 ? void 0 : srcData[srcRow]) === null || _r === void 0 ? void 0 : _r[srcCol];
1170
+ }
1171
+ cell.hl = {
1172
+ r: h,
1173
+ c: c,
1174
+ id: ctx.currentSheetId
1175
+ };
1176
+ if (srcCell) {
1177
+ if (srcCell.fc) cell.fc = srcCell.fc;
1178
+ if (srcCell.un !== undefined) cell.un = srcCell.un;
1179
+ } else {
1180
+ cell.fc = cell.fc || "rgb(0, 0, 255)";
1181
+ cell.un = cell.un !== undefined ? cell.un : 1;
1182
+ }
1183
+ }
1184
+ }
1100
1185
  }
1101
1186
  }
1102
- });
1187
+ }
1103
1188
  }
1104
1189
  if (copyRowlChange || addr > 0 || addc > 0) {
1105
1190
  jfrefreshgrid(ctx, d, ctx.luckysheet_select_save);
@@ -1136,11 +1221,17 @@ export function parseAsLinkIfUrl(txtdata, ctx) {
1136
1221
  var _a, _b, _c, _d, _e, _f, _g;
1137
1222
  var urlRegex = /^(https?:\/\/[^\s]+)/;
1138
1223
  if (urlRegex.test(txtdata)) {
1139
- var last = (_a = ctx.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[ctx.luckysheet_select_save.length - 1];
1140
- if (last) {
1141
- var rowIndex = (_d = (_b = last.row_focus) !== null && _b !== void 0 ? _b : (_c = last.row) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : 0;
1142
- var colIndex = (_g = (_e = last.column_focus) !== null && _e !== void 0 ? _e : (_f = last.column) === null || _f === void 0 ? void 0 : _f[0]) !== null && _g !== void 0 ? _g : 0;
1224
+ if (ctx.luckysheetCellUpdate.length === 2) {
1225
+ var rowIndex = ctx.luckysheetCellUpdate[0];
1226
+ var colIndex = ctx.luckysheetCellUpdate[1];
1143
1227
  saveHyperlink(ctx, rowIndex, colIndex, txtdata, "webpage", txtdata);
1228
+ } else {
1229
+ var last = (_a = ctx.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[ctx.luckysheet_select_save.length - 1];
1230
+ if (last) {
1231
+ var rowIndex = (_d = (_b = last.row_focus) !== null && _b !== void 0 ? _b : (_c = last.row) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : 0;
1232
+ var colIndex = (_g = (_e = last.column_focus) !== null && _e !== void 0 ? _e : (_f = last.column) === null || _f === void 0 ? void 0 : _f[0]) !== null && _g !== void 0 ? _g : 0;
1233
+ saveHyperlink(ctx, rowIndex, colIndex, txtdata, "webpage", txtdata);
1234
+ }
1144
1235
  }
1145
1236
  }
1146
1237
  }
@@ -245,11 +245,7 @@ export function setConditionRules(ctx, protection, generalDialog, conditionforma
245
245
  cellrange: (_a = ctx.luckysheet_select_save) !== null && _a !== void 0 ? _a : [],
246
246
  format: {
247
247
  textColor: textColor,
248
- cellColor: cellColor,
249
- bold: rules.font.bold,
250
- italic: rules.font.italic,
251
- underline: rules.font.underline,
252
- strikethrough: rules.font.strikethrough
248
+ cellColor: cellColor
253
249
  },
254
250
  conditionName: conditionName,
255
251
  conditionRange: conditionRange,
@@ -550,11 +546,7 @@ export function compute(ctx, ruleArr, d) {
550
546
  var conditionValue0 = ruleArr[i].conditionValue[0];
551
547
  var conditionValue1 = ruleArr[i].conditionValue[1];
552
548
  var textColor_1 = format.textColor,
553
- cellColor_1 = format.cellColor,
554
- bold_1 = format.bold,
555
- italic_1 = format.italic,
556
- underline_1 = format.underline,
557
- strikethrough_1 = format.strikethrough;
549
+ cellColor_1 = format.cellColor;
558
550
  for (var s = 0; s < cellrange.length; s += 1) {
559
551
  if (conditionName === "greaterThan" || conditionName === "greaterThanOrEqual" || conditionName === "lessThan" || conditionName === "lessThanOrEqual" || conditionName === "equal" || conditionName === "textContains") {
560
552
  for (var r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r += 1) {
@@ -570,105 +562,60 @@ export function compute(ctx, ruleArr, d) {
570
562
  if ("".concat(r, "_").concat(c) in computeMap) {
571
563
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
572
564
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
573
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
574
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
575
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
576
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
577
565
  } else {
578
566
  computeMap["".concat(r, "_").concat(c)] = {
579
567
  textColor: textColor_1,
580
- cellColor: cellColor_1,
581
- bold: bold_1,
582
- italic: italic_1,
583
- underline: underline_1,
584
- strikethrough: strikethrough_1
568
+ cellColor: cellColor_1
585
569
  };
586
570
  }
587
571
  } else if (conditionName === "greaterThanOrEqual" && compareGreaterThan(cell.v, conditionValue0, ">=")) {
588
572
  if ("".concat(r, "_").concat(c) in computeMap) {
589
573
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
590
574
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
591
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
592
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
593
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
594
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
595
575
  } else {
596
576
  computeMap["".concat(r, "_").concat(c)] = {
597
577
  textColor: textColor_1,
598
- cellColor: cellColor_1,
599
- bold: bold_1
578
+ cellColor: cellColor_1
600
579
  };
601
580
  }
602
581
  } else if (conditionName === "lessThan" && compareLessThan(cell.v, conditionValue0, "<")) {
603
582
  if ("".concat(r, "_").concat(c) in computeMap) {
604
583
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
605
584
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
606
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
607
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
608
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
609
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
610
585
  } else {
611
586
  computeMap["".concat(r, "_").concat(c)] = {
612
587
  textColor: textColor_1,
613
- cellColor: cellColor_1,
614
- bold: bold_1,
615
- italic: italic_1,
616
- underline: underline_1,
617
- strikethrough: strikethrough_1
588
+ cellColor: cellColor_1
618
589
  };
619
590
  }
620
591
  } else if (conditionName === "lessThanOrEqual" && compareLessThan(cell.v, conditionValue0, "<=")) {
621
592
  if ("".concat(r, "_").concat(c) in computeMap) {
622
593
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
623
594
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
624
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
625
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
626
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
627
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
628
595
  } else {
629
596
  computeMap["".concat(r, "_").concat(c)] = {
630
597
  textColor: textColor_1,
631
- cellColor: cellColor_1,
632
- bold: bold_1,
633
- italic: italic_1,
634
- underline: underline_1,
635
- strikethrough: strikethrough_1
598
+ cellColor: cellColor_1
636
599
  };
637
600
  }
638
601
  } else if (conditionName === "equal" && cell.v.toString() === conditionValue0) {
639
602
  if ("".concat(r, "_").concat(c) in computeMap) {
640
603
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
641
604
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
642
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
643
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
644
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
645
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
646
605
  } else {
647
606
  computeMap["".concat(r, "_").concat(c)] = {
648
607
  textColor: textColor_1,
649
- cellColor: cellColor_1,
650
- bold: bold_1,
651
- italic: italic_1,
652
- underline: underline_1,
653
- strikethrough: strikethrough_1
608
+ cellColor: cellColor_1
654
609
  };
655
610
  }
656
611
  } else if (conditionName === "textContains" && cell.v.toString().indexOf(conditionValue0) !== -1) {
657
612
  if ("".concat(r, "_").concat(c) in computeMap) {
658
613
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
659
614
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
660
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
661
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
662
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
663
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
664
615
  } else {
665
616
  computeMap["".concat(r, "_").concat(c)] = {
666
617
  textColor: textColor_1,
667
- cellColor: cellColor_1,
668
- bold: bold_1,
669
- italic: italic_1,
670
- underline: underline_1,
671
- strikethrough: strikethrough_1
618
+ cellColor: cellColor_1
672
619
  };
673
620
  }
674
621
  }
@@ -688,18 +635,10 @@ export function compute(ctx, ruleArr, d) {
688
635
  if ("".concat(r, "_").concat(c) in computeMap) {
689
636
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
690
637
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
691
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
692
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
693
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
694
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
695
638
  } else {
696
639
  computeMap["".concat(r, "_").concat(c)] = {
697
640
  textColor: textColor_1,
698
- cellColor: cellColor_1,
699
- bold: bold_1,
700
- italic: italic_1,
701
- underline: underline_1,
702
- strikethrough: strikethrough_1
641
+ cellColor: cellColor_1
703
642
  };
704
643
  }
705
644
  }
@@ -727,18 +666,10 @@ export function compute(ctx, ruleArr, d) {
727
666
  if ("".concat(r, "_").concat(c) in computeMap) {
728
667
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
729
668
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
730
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
731
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
732
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
733
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
734
669
  } else {
735
670
  computeMap["".concat(r, "_").concat(c)] = {
736
671
  textColor: textColor_1,
737
- cellColor: cellColor_1,
738
- bold: bold_1,
739
- italic: italic_1,
740
- underline: underline_1,
741
- strikethrough: strikethrough_1
672
+ cellColor: cellColor_1
742
673
  };
743
674
  }
744
675
  }
@@ -757,9 +688,6 @@ export function compute(ctx, ruleArr, d) {
757
688
  r: r,
758
689
  c: c
759
690
  });
760
- computeMap["".concat(r, "_").concat(c)] = __assign(__assign({}, computeMap["".concat(r, "_").concat(c)]), {
761
- bold: bold_1
762
- });
763
691
  }
764
692
  }
765
693
  if (conditionValue0 === "0") {
@@ -769,18 +697,10 @@ export function compute(ctx, ruleArr, d) {
769
697
  if ("".concat(x[j].r, "_").concat(x[j].c) in computeMap) {
770
698
  computeMap["".concat(x[j].r, "_").concat(x[j].c)].textColor = textColor_1;
771
699
  computeMap["".concat(x[j].r, "_").concat(x[j].c)].cellColor = cellColor_1;
772
- computeMap["".concat(x[j].r, "_").concat(x[j].c)].bold = bold_1;
773
- computeMap["".concat(x[j].r, "_").concat(x[j].c)].italic = italic_1;
774
- computeMap["".concat(x[j].r, "_").concat(x[j].c)].underline = underline_1;
775
- computeMap["".concat(x[j].r, "_").concat(x[j].c)].strikethrough = strikethrough_1;
776
700
  } else {
777
701
  computeMap["".concat(x[j].r, "_").concat(x[j].c)] = {
778
702
  textColor: textColor_1,
779
- cellColor: cellColor_1,
780
- bold: bold_1,
781
- italic: italic_1,
782
- underline: underline_1,
783
- strikethrough: strikethrough_1
703
+ cellColor: cellColor_1
784
704
  };
785
705
  }
786
706
  }
@@ -792,18 +712,10 @@ export function compute(ctx, ruleArr, d) {
792
712
  if ("".concat(x[0].r, "_").concat(x[0].c) in computeMap) {
793
713
  computeMap["".concat(x[0].r, "_").concat(x[0].c)].textColor = textColor_1;
794
714
  computeMap["".concat(x[0].r, "_").concat(x[0].c)].cellColor = cellColor_1;
795
- computeMap["".concat(x[0].r, "_").concat(x[0].c)].bold = bold_1;
796
- computeMap["".concat(x[0].r, "_").concat(x[0].c)].italic = italic_1;
797
- computeMap["".concat(x[0].r, "_").concat(x[0].c)].underline = underline_1;
798
- computeMap["".concat(x[0].r, "_").concat(x[0].c)].strikethrough = strikethrough_1;
799
715
  } else {
800
716
  computeMap["".concat(x[0].r, "_").concat(x[0].c)] = {
801
717
  textColor: textColor_1,
802
- cellColor: cellColor_1,
803
- bold: bold_1,
804
- italic: italic_1,
805
- underline: underline_1,
806
- strikethrough: strikethrough_1
718
+ cellColor: cellColor_1
807
719
  };
808
720
  }
809
721
  }
@@ -851,18 +763,10 @@ export function compute(ctx, ruleArr, d) {
851
763
  if ("".concat(r, "_").concat(c) in computeMap) {
852
764
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
853
765
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
854
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
855
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
856
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
857
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
858
766
  } else {
859
767
  computeMap["".concat(r, "_").concat(c)] = {
860
768
  textColor: textColor_1,
861
- cellColor: cellColor_1,
862
- bold: bold_1,
863
- italic: italic_1,
864
- underline: underline_1,
865
- strikethrough: strikethrough_1
769
+ cellColor: cellColor_1
866
770
  };
867
771
  }
868
772
  }
@@ -885,18 +789,10 @@ export function compute(ctx, ruleArr, d) {
885
789
  if ("".concat(r, "_").concat(c) in computeMap) {
886
790
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
887
791
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
888
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
889
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
890
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
891
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
892
792
  } else {
893
793
  computeMap["".concat(r, "_").concat(c)] = {
894
794
  textColor: textColor_1,
895
- cellColor: cellColor_1,
896
- bold: bold_1,
897
- italic: italic_1,
898
- underline: underline_1,
899
- strikethrough: strikethrough_1
795
+ cellColor: cellColor_1
900
796
  };
901
797
  }
902
798
  }
@@ -913,18 +809,10 @@ export function compute(ctx, ruleArr, d) {
913
809
  if ("".concat(r, "_").concat(c) in computeMap) {
914
810
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
915
811
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
916
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
917
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
918
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
919
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
920
812
  } else {
921
813
  computeMap["".concat(r, "_").concat(c)] = {
922
814
  textColor: textColor_1,
923
- cellColor: cellColor_1,
924
- bold: bold_1,
925
- italic: italic_1,
926
- underline: underline_1,
927
- strikethrough: strikethrough_1
815
+ cellColor: cellColor_1
928
816
  };
929
817
  }
930
818
  }
@@ -963,18 +851,10 @@ export function compute(ctx, ruleArr, d) {
963
851
  if ("".concat(r, "_").concat(c) in computeMap) {
964
852
  computeMap["".concat(r, "_").concat(c)].textColor = textColor_1;
965
853
  computeMap["".concat(r, "_").concat(c)].cellColor = cellColor_1;
966
- computeMap["".concat(r, "_").concat(c)].bold = bold_1;
967
- computeMap["".concat(r, "_").concat(c)].italic = italic_1;
968
- computeMap["".concat(r, "_").concat(c)].underline = underline_1;
969
- computeMap["".concat(r, "_").concat(c)].strikethrough = strikethrough_1;
970
854
  } else {
971
855
  computeMap["".concat(r, "_").concat(c)] = {
972
856
  textColor: textColor_1,
973
- cellColor: cellColor_1,
974
- bold: bold_1,
975
- italic: italic_1,
976
- underline: underline_1,
977
- strikethrough: strikethrough_1
857
+ cellColor: cellColor_1
978
858
  };
979
859
  }
980
860
  }