@fileverse-dev/fortune-core 1.0.2-mod-53 → 1.0.2-mod-55

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/index.esm.js CHANGED
@@ -137,14 +137,14 @@ var en = {
137
137
  partiallyError: "Cannot perform this operation on partially merged cells",
138
138
  readOnlyError: "Cannot perform this operation in read-only mode",
139
139
  dataNullError: "Cannot perform this operation on data that does not exist",
140
- noSeletionError: "The selection operation has not been performed yet",
140
+ noSelectionError: "The selection operation has not been performed yet",
141
141
  cannotSelectMultiple: "Cannot select multiple selections"
142
142
  },
143
143
  functionlist: [].concat(_toConsumableArray(FUNCTION_LOCALE), [{
144
144
  n: "PnL",
145
145
  t: 0,
146
146
  d: "Subtract each element from A column from B column and return the total sum.",
147
- a: "Returns the total of B - A element-wise subtraction across two ranges.",
147
+ a: "Returns the total of A - B element-wise subtraction across two ranges.",
148
148
  m: [2],
149
149
  p: [{
150
150
  name: "A",
@@ -9941,7 +9941,7 @@ var en = {
9941
9941
  freezenColumnRange: "Freeze to current column",
9942
9942
  freezenRCRange: "Freeze to current cell",
9943
9943
  freezenCancel: "Cancel freezing",
9944
- noSeletionError: "No Range to be selected",
9944
+ noSelectionError: "No Range to be selected",
9945
9945
  rangeRCOverErrorTitle: "Freeze reminder",
9946
9946
  rangeRCOverError: "The frozen pane is beyond the visible range, which will lead to abnormal operation. Please reset the frozen area."
9947
9947
  },
@@ -10711,7 +10711,7 @@ var zh = {
10711
10711
  partiallyError: "无法对部分合并单元格执行此操作",
10712
10712
  readOnlyError: "无法对只读模式执行此操作",
10713
10713
  dataNullError: "无法对不存在的数据执行此操作",
10714
- noSeletionError: "还未进行选区操作",
10714
+ noSelectionError: "还未进行选区操作",
10715
10715
  cannotSelectMultiple: "无法选择多选区"
10716
10716
  },
10717
10717
  functionlist: [{
@@ -20511,7 +20511,7 @@ var zh = {
20511
20511
  freezenColumnRange: "冻结至当前列",
20512
20512
  freezenRCRange: "冻结至当前行列",
20513
20513
  freezenCancel: "取消冻结",
20514
- noSeletionError: "没有选区",
20514
+ noSelectionError: "没有选区",
20515
20515
  rangeRCOverErrorTitle: "冻结提醒",
20516
20516
  rangeRCOverError: "冻结窗格超过可见范围,会导致无法正常操作,请重新设置冻结区域。"
20517
20517
  },
@@ -21280,7 +21280,7 @@ var es = {
21280
21280
  partiallyError: "No se puede realizar esta operación en celdas parcialmente unidas",
21281
21281
  readOnlyError: "No se puede realizar esto en modo de solo lectura",
21282
21282
  dataNullError: "No se puede hacer esto con datos que no existen",
21283
- noSeletionError: "The selection operation has not been performed yetLa operación de selección aún no se ha realizado",
21283
+ noSelectionError: "The selection operation has not been performed yetLa operación de selección aún no se ha realizado",
21284
21284
  cannotSelectMultiple: "No se puede seleccionar la zona de selección múltiple"
21285
21285
  },
21286
21286
  functionlist: [{
@@ -30564,7 +30564,7 @@ var es = {
30564
30564
  freezenColumnRange: "Fijar rango columnas",
30565
30565
  freezenRCRange: "Fijar ambos rangos",
30566
30566
  freezenCancel: "Cancelar",
30567
- noSeletionError: "No hay rango para seleccionar",
30567
+ noSelectionError: "No hay rango para seleccionar",
30568
30568
  rangeRCOverErrorTitle: "Recordatorio de congelación",
30569
30569
  rangeRCOverError: "El panel de congelación excede el rango visible y puede causar que no funcione correctamente. Reinicie el área de congelación."
30570
30570
  },
@@ -31291,7 +31291,7 @@ var hi = {
31291
31291
  partiallyError: "आंशिक रूप से विलय किए गए सेल पर यह कार्य नहीं किया जा सकता",
31292
31292
  readOnlyError: "पठन मोड में यह कार्य नहीं किया जा सकता",
31293
31293
  dataNullError: "डेटा जो मौजूद नहीं है उस पर यह कार्य नहीं किया जा सकता",
31294
- noSeletionError: "चयन कार्य अभी तक नहीं किया गया है",
31294
+ noSelectionError: "चयन कार्य अभी तक नहीं किया गया है",
31295
31295
  cannotSelectMultiple: "एकाधिक चयन नहीं किया जा सकता"
31296
31296
  },
31297
31297
  functionlist: [{
@@ -41074,7 +41074,7 @@ var hi = {
41074
41074
  freezenColumnRange: "वर्तमान कॉलम तक फ्रीज़ करें",
41075
41075
  freezenRCRange: "वर्तमान सेल तक फ्रीज़ करें",
41076
41076
  freezenCancel: "फ्रीज़िंग रद्द करें",
41077
- noSeletionError: "कोई रेंज चयनित नहीं है",
41077
+ noSelectionError: "कोई रेंज चयनित नहीं है",
41078
41078
  rangeRCOverErrorTitle: "फ्रीज़ अनुस्मारक",
41079
41079
  rangeRCOverError: "फ्रोज़न पेन दृश्यमान सीमा से परे है, जो असामान्य संचालन का कारण बनेगा। कृपया फ्रोज़न क्षेत्र को रीसेट करें।"
41080
41080
  },
@@ -41842,7 +41842,7 @@ var zh_tw = {
41842
41842
  partiallyError: "無法對部分合併儲存格執行此操作",
41843
41843
  readOnlyError: "無法對只讀模式執行此操作",
41844
41844
  dataNullError: "無法對不存在的數據執行此操作",
41845
- noSeletionError: "還未進行選區操作",
41845
+ noSelectionError: "還未進行選區操作",
41846
41846
  cannotSelectMultiple: "無法選擇多選區"
41847
41847
  },
41848
41848
  functionlist: [{
@@ -51159,7 +51159,7 @@ var zh_tw = {
51159
51159
  freezenColumnRange: "凍結至當前列",
51160
51160
  freezenRCRange: "凍結至當前行列",
51161
51161
  freezenCancel: "取消凍結",
51162
- noSeletionError: "没有選區",
51162
+ noSelectionError: "没有選區",
51163
51163
  rangeRCOverErrorTitle: "凍結提醒",
51164
51164
  rangeRCOverError: "凍結窗格超過可見範圍,會導致無法正常操作,請重新設定凍結區域。"
51165
51165
  },
@@ -59931,7 +59931,7 @@ function confirmMessage(ctx, generalDialog, dataVerification) {
59931
59931
  var _ctx$dataVerification0, _ctx$dataVerification1;
59932
59932
  var range = getRangeByTxt(ctx, (_ctx$dataVerification0 = ctx.dataVerification) === null || _ctx$dataVerification0 === void 0 ? void 0 : (_ctx$dataVerification1 = _ctx$dataVerification0.dataRegulation) === null || _ctx$dataVerification1 === void 0 ? void 0 : _ctx$dataVerification1.rangeTxt);
59933
59933
  if (range.length === 0) {
59934
- ctx.warnDialog = generalDialog.noSeletionError;
59934
+ ctx.warnDialog = generalDialog.noSelectionError;
59935
59935
  return false;
59936
59936
  }
59937
59937
  var str = range[range.length - 1].row[0];
@@ -73075,14 +73075,27 @@ var Canvas = /*#__PURE__*/function () {
73075
73075
  verticalAlignPos_checkbox /= this.sheetCtx.zoomRatio;
73076
73076
  renderCtx.lineWidth = 2;
73077
73077
  renderCtx.strokeStyle = "#000";
73078
- renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12);
73078
+ renderCtx.beginPath();
73079
+ renderCtx.roundRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12, 2);
73080
+ renderCtx.stroke();
73079
73081
  if (dataVerification["".concat(r, "_").concat(c)].checked) {
73082
+ renderCtx.save();
73080
73083
  renderCtx.beginPath();
73081
- renderCtx.lineTo(horizonAlignPos + 1, verticalAlignPos_checkbox + 6);
73082
- renderCtx.lineTo(horizonAlignPos + 4, verticalAlignPos_checkbox + 9);
73083
- renderCtx.lineTo(horizonAlignPos + 9, verticalAlignPos_checkbox + 2);
73084
+ renderCtx.roundRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12, 2);
73085
+ renderCtx.fillStyle = "#000";
73086
+ renderCtx.fill();
73087
+ renderCtx.restore();
73088
+ renderCtx.save();
73089
+ renderCtx.beginPath();
73090
+ renderCtx.strokeStyle = "#fff";
73091
+ renderCtx.lineWidth = 2;
73092
+ renderCtx.lineJoin = "round";
73093
+ renderCtx.moveTo(horizonAlignPos + 3, verticalAlignPos_checkbox + 6);
73094
+ renderCtx.lineTo(horizonAlignPos + 5.5, verticalAlignPos_checkbox + 9);
73095
+ renderCtx.lineTo(horizonAlignPos + 9, verticalAlignPos_checkbox + 3.5);
73084
73096
  renderCtx.stroke();
73085
73097
  renderCtx.closePath();
73098
+ renderCtx.restore();
73086
73099
  }
73087
73100
  renderCtx.fillStyle = normalizedAttr(flowdata, r, c, "fc");
73088
73101
  renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos + 18, verticalAlignPos_text);
package/dist/index.js CHANGED
@@ -147,14 +147,14 @@ var en = {
147
147
  partiallyError: "Cannot perform this operation on partially merged cells",
148
148
  readOnlyError: "Cannot perform this operation in read-only mode",
149
149
  dataNullError: "Cannot perform this operation on data that does not exist",
150
- noSeletionError: "The selection operation has not been performed yet",
150
+ noSelectionError: "The selection operation has not been performed yet",
151
151
  cannotSelectMultiple: "Cannot select multiple selections"
152
152
  },
153
153
  functionlist: [].concat(_toConsumableArray(cryptoConstants.FUNCTION_LOCALE), [{
154
154
  n: "PnL",
155
155
  t: 0,
156
156
  d: "Subtract each element from A column from B column and return the total sum.",
157
- a: "Returns the total of B - A element-wise subtraction across two ranges.",
157
+ a: "Returns the total of A - B element-wise subtraction across two ranges.",
158
158
  m: [2],
159
159
  p: [{
160
160
  name: "A",
@@ -9951,7 +9951,7 @@ var en = {
9951
9951
  freezenColumnRange: "Freeze to current column",
9952
9952
  freezenRCRange: "Freeze to current cell",
9953
9953
  freezenCancel: "Cancel freezing",
9954
- noSeletionError: "No Range to be selected",
9954
+ noSelectionError: "No Range to be selected",
9955
9955
  rangeRCOverErrorTitle: "Freeze reminder",
9956
9956
  rangeRCOverError: "The frozen pane is beyond the visible range, which will lead to abnormal operation. Please reset the frozen area."
9957
9957
  },
@@ -10721,7 +10721,7 @@ var zh = {
10721
10721
  partiallyError: "无法对部分合并单元格执行此操作",
10722
10722
  readOnlyError: "无法对只读模式执行此操作",
10723
10723
  dataNullError: "无法对不存在的数据执行此操作",
10724
- noSeletionError: "还未进行选区操作",
10724
+ noSelectionError: "还未进行选区操作",
10725
10725
  cannotSelectMultiple: "无法选择多选区"
10726
10726
  },
10727
10727
  functionlist: [{
@@ -20521,7 +20521,7 @@ var zh = {
20521
20521
  freezenColumnRange: "冻结至当前列",
20522
20522
  freezenRCRange: "冻结至当前行列",
20523
20523
  freezenCancel: "取消冻结",
20524
- noSeletionError: "没有选区",
20524
+ noSelectionError: "没有选区",
20525
20525
  rangeRCOverErrorTitle: "冻结提醒",
20526
20526
  rangeRCOverError: "冻结窗格超过可见范围,会导致无法正常操作,请重新设置冻结区域。"
20527
20527
  },
@@ -21290,7 +21290,7 @@ var es = {
21290
21290
  partiallyError: "No se puede realizar esta operación en celdas parcialmente unidas",
21291
21291
  readOnlyError: "No se puede realizar esto en modo de solo lectura",
21292
21292
  dataNullError: "No se puede hacer esto con datos que no existen",
21293
- noSeletionError: "The selection operation has not been performed yetLa operación de selección aún no se ha realizado",
21293
+ noSelectionError: "The selection operation has not been performed yetLa operación de selección aún no se ha realizado",
21294
21294
  cannotSelectMultiple: "No se puede seleccionar la zona de selección múltiple"
21295
21295
  },
21296
21296
  functionlist: [{
@@ -30574,7 +30574,7 @@ var es = {
30574
30574
  freezenColumnRange: "Fijar rango columnas",
30575
30575
  freezenRCRange: "Fijar ambos rangos",
30576
30576
  freezenCancel: "Cancelar",
30577
- noSeletionError: "No hay rango para seleccionar",
30577
+ noSelectionError: "No hay rango para seleccionar",
30578
30578
  rangeRCOverErrorTitle: "Recordatorio de congelación",
30579
30579
  rangeRCOverError: "El panel de congelación excede el rango visible y puede causar que no funcione correctamente. Reinicie el área de congelación."
30580
30580
  },
@@ -31301,7 +31301,7 @@ var hi = {
31301
31301
  partiallyError: "आंशिक रूप से विलय किए गए सेल पर यह कार्य नहीं किया जा सकता",
31302
31302
  readOnlyError: "पठन मोड में यह कार्य नहीं किया जा सकता",
31303
31303
  dataNullError: "डेटा जो मौजूद नहीं है उस पर यह कार्य नहीं किया जा सकता",
31304
- noSeletionError: "चयन कार्य अभी तक नहीं किया गया है",
31304
+ noSelectionError: "चयन कार्य अभी तक नहीं किया गया है",
31305
31305
  cannotSelectMultiple: "एकाधिक चयन नहीं किया जा सकता"
31306
31306
  },
31307
31307
  functionlist: [{
@@ -41084,7 +41084,7 @@ var hi = {
41084
41084
  freezenColumnRange: "वर्तमान कॉलम तक फ्रीज़ करें",
41085
41085
  freezenRCRange: "वर्तमान सेल तक फ्रीज़ करें",
41086
41086
  freezenCancel: "फ्रीज़िंग रद्द करें",
41087
- noSeletionError: "कोई रेंज चयनित नहीं है",
41087
+ noSelectionError: "कोई रेंज चयनित नहीं है",
41088
41088
  rangeRCOverErrorTitle: "फ्रीज़ अनुस्मारक",
41089
41089
  rangeRCOverError: "फ्रोज़न पेन दृश्यमान सीमा से परे है, जो असामान्य संचालन का कारण बनेगा। कृपया फ्रोज़न क्षेत्र को रीसेट करें।"
41090
41090
  },
@@ -41852,7 +41852,7 @@ var zh_tw = {
41852
41852
  partiallyError: "無法對部分合併儲存格執行此操作",
41853
41853
  readOnlyError: "無法對只讀模式執行此操作",
41854
41854
  dataNullError: "無法對不存在的數據執行此操作",
41855
- noSeletionError: "還未進行選區操作",
41855
+ noSelectionError: "還未進行選區操作",
41856
41856
  cannotSelectMultiple: "無法選擇多選區"
41857
41857
  },
41858
41858
  functionlist: [{
@@ -51169,7 +51169,7 @@ var zh_tw = {
51169
51169
  freezenColumnRange: "凍結至當前列",
51170
51170
  freezenRCRange: "凍結至當前行列",
51171
51171
  freezenCancel: "取消凍結",
51172
- noSeletionError: "没有選區",
51172
+ noSelectionError: "没有選區",
51173
51173
  rangeRCOverErrorTitle: "凍結提醒",
51174
51174
  rangeRCOverError: "凍結窗格超過可見範圍,會導致無法正常操作,請重新設定凍結區域。"
51175
51175
  },
@@ -59941,7 +59941,7 @@ function confirmMessage(ctx, generalDialog, dataVerification) {
59941
59941
  var _ctx$dataVerification0, _ctx$dataVerification1;
59942
59942
  var range = getRangeByTxt(ctx, (_ctx$dataVerification0 = ctx.dataVerification) === null || _ctx$dataVerification0 === void 0 ? void 0 : (_ctx$dataVerification1 = _ctx$dataVerification0.dataRegulation) === null || _ctx$dataVerification1 === void 0 ? void 0 : _ctx$dataVerification1.rangeTxt);
59943
59943
  if (range.length === 0) {
59944
- ctx.warnDialog = generalDialog.noSeletionError;
59944
+ ctx.warnDialog = generalDialog.noSelectionError;
59945
59945
  return false;
59946
59946
  }
59947
59947
  var str = range[range.length - 1].row[0];
@@ -73085,14 +73085,27 @@ var Canvas = /*#__PURE__*/function () {
73085
73085
  verticalAlignPos_checkbox /= this.sheetCtx.zoomRatio;
73086
73086
  renderCtx.lineWidth = 2;
73087
73087
  renderCtx.strokeStyle = "#000";
73088
- renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12);
73088
+ renderCtx.beginPath();
73089
+ renderCtx.roundRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12, 2);
73090
+ renderCtx.stroke();
73089
73091
  if (dataVerification["".concat(r, "_").concat(c)].checked) {
73092
+ renderCtx.save();
73090
73093
  renderCtx.beginPath();
73091
- renderCtx.lineTo(horizonAlignPos + 1, verticalAlignPos_checkbox + 6);
73092
- renderCtx.lineTo(horizonAlignPos + 4, verticalAlignPos_checkbox + 9);
73093
- renderCtx.lineTo(horizonAlignPos + 9, verticalAlignPos_checkbox + 2);
73094
+ renderCtx.roundRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12, 2);
73095
+ renderCtx.fillStyle = "#000";
73096
+ renderCtx.fill();
73097
+ renderCtx.restore();
73098
+ renderCtx.save();
73099
+ renderCtx.beginPath();
73100
+ renderCtx.strokeStyle = "#fff";
73101
+ renderCtx.lineWidth = 2;
73102
+ renderCtx.lineJoin = "round";
73103
+ renderCtx.moveTo(horizonAlignPos + 3, verticalAlignPos_checkbox + 6);
73104
+ renderCtx.lineTo(horizonAlignPos + 5.5, verticalAlignPos_checkbox + 9);
73105
+ renderCtx.lineTo(horizonAlignPos + 9, verticalAlignPos_checkbox + 3.5);
73094
73106
  renderCtx.stroke();
73095
73107
  renderCtx.closePath();
73108
+ renderCtx.restore();
73096
73109
  }
73097
73110
  renderCtx.fillStyle = normalizedAttr(flowdata, r, c, "fc");
73098
73111
  renderCtx.fillText(___default['default'].isNil(value) ? "" : value, horizonAlignPos + 18, verticalAlignPos_text);
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  partiallyError: string;
4
4
  readOnlyError: string;
5
5
  dataNullError: string;
6
- noSeletionError: string;
6
+ noSelectionError: string;
7
7
  cannotSelectMultiple: string;
8
8
  };
9
9
  functionlist: any[];
@@ -238,7 +238,7 @@ declare const _default: {
238
238
  freezenColumnRange: string;
239
239
  freezenRCRange: string;
240
240
  freezenCancel: string;
241
- noSeletionError: string;
241
+ noSelectionError: string;
242
242
  rangeRCOverErrorTitle: string;
243
243
  rangeRCOverError: string;
244
244
  };
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  partiallyError: string;
4
4
  readOnlyError: string;
5
5
  dataNullError: string;
6
- noSeletionError: string;
6
+ noSelectionError: string;
7
7
  cannotSelectMultiple: string;
8
8
  };
9
9
  functionlist: ({
@@ -410,7 +410,7 @@ declare const _default: {
410
410
  freezenColumnRange: string;
411
411
  freezenRCRange: string;
412
412
  freezenCancel: string;
413
- noSeletionError: string;
413
+ noSelectionError: string;
414
414
  rangeRCOverErrorTitle: string;
415
415
  rangeRCOverError: string;
416
416
  };
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  partiallyError: string;
4
4
  readOnlyError: string;
5
5
  dataNullError: string;
6
- noSeletionError: string;
6
+ noSelectionError: string;
7
7
  cannotSelectMultiple: string;
8
8
  };
9
9
  functionlist: ({
@@ -280,7 +280,7 @@ declare const _default: {
280
280
  freezenColumnRange: string;
281
281
  freezenRCRange: string;
282
282
  freezenCancel: string;
283
- noSeletionError: string;
283
+ noSelectionError: string;
284
284
  rangeRCOverErrorTitle: string;
285
285
  rangeRCOverError: string;
286
286
  };
@@ -4,7 +4,7 @@ declare function locale(ctx: Context): {
4
4
  partiallyError: string;
5
5
  readOnlyError: string;
6
6
  dataNullError: string;
7
- noSeletionError: string;
7
+ noSelectionError: string;
8
8
  cannotSelectMultiple: string;
9
9
  };
10
10
  functionlist: ({
@@ -298,7 +298,7 @@ declare function locale(ctx: Context): {
298
298
  freezenColumnRange: string;
299
299
  freezenRCRange: string;
300
300
  freezenCancel: string;
301
- noSeletionError: string;
301
+ noSelectionError: string;
302
302
  rangeRCOverErrorTitle: string;
303
303
  rangeRCOverError: string;
304
304
  };
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  partiallyError: string;
4
4
  readOnlyError: string;
5
5
  dataNullError: string;
6
- noSeletionError: string;
6
+ noSelectionError: string;
7
7
  cannotSelectMultiple: string;
8
8
  };
9
9
  functionlist: ({
@@ -297,7 +297,7 @@ declare const _default: {
297
297
  freezenColumnRange: string;
298
298
  freezenRCRange: string;
299
299
  freezenCancel: string;
300
- noSeletionError: string;
300
+ noSelectionError: string;
301
301
  rangeRCOverErrorTitle: string;
302
302
  rangeRCOverError: string;
303
303
  };
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  partiallyError: string;
4
4
  readOnlyError: string;
5
5
  dataNullError: string;
6
- noSeletionError: string;
6
+ noSelectionError: string;
7
7
  cannotSelectMultiple: string;
8
8
  };
9
9
  functionlist: ({
@@ -443,7 +443,7 @@ declare const _default: {
443
443
  freezenColumnRange: string;
444
444
  freezenRCRange: string;
445
445
  freezenCancel: string;
446
- noSeletionError: string;
446
+ noSelectionError: string;
447
447
  rangeRCOverErrorTitle: string;
448
448
  rangeRCOverError: string;
449
449
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.2-mod-53",
3
+ "version": "1.0.2-mod-55",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "repository": "https://github.com/ruilisi/fortune-sheet",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@fileverse-dev/formula-parser": "0.2.13-mod-11",
13
+ "@fileverse-dev/formula-parser": "0.2.13-mod-12",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",