@fileverse-dev/fortune-core 1.0.2-mod-91 → 1.0.2-mod-89-patch-005

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.
@@ -49,7 +49,6 @@ export declare function getSheetWithLatestCelldata(ctx: Context, options?: Commo
49
49
  luckysheet_conditionformat_save?: any[] | undefined;
50
50
  luckysheet_alternateformat_save?: any[] | undefined;
51
51
  dataVerification?: any;
52
- conditionRules?: import("../types").ConditionRulesProps | undefined;
53
52
  hyperlink?: Record<string, {
54
53
  linkType: string;
55
54
  linkAddress: string;
package/dist/index.esm.js CHANGED
@@ -56371,6 +56371,9 @@ function execfunction(ctx, txt, r, c, id, calcChainSet, isrefresh, notInsertFunc
56371
56371
  });
56372
56372
  var formulaError = parsedResponse.error;
56373
56373
  var result = parsedResponse.result;
56374
+ console.log({
56375
+ resultFROMEXECUTEFUNCTION: result
56376
+ });
56374
56377
  if (Object.prototype.toString.call(result) === "[object Date]" && !_.isNil(result)) {
56375
56378
  result = result.toString();
56376
56379
  }
@@ -56684,8 +56687,8 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
56684
56687
  v: v[1],
56685
56688
  f: v[2]
56686
56689
  };
56690
+ ctx.formulaCache.execFunctionExist = undefined;
56687
56691
  }
56688
- ctx.formulaCache.execFunctionExist = undefined;
56689
56692
  }
56690
56693
  function findrangeindex(ctx, v, vp) {
56691
56694
  var re = /<span.*?>/g;
@@ -58276,25 +58279,6 @@ function setConditionRules(ctx, protection, generalDialog, conditionformat, rule
58276
58279
  var ruleArr = (_ctx$luckysheetfile$i = ctx.luckysheetfile[index].luckysheet_conditionformat_save) !== null && _ctx$luckysheetfile$i !== void 0 ? _ctx$luckysheetfile$i : [];
58277
58280
  ruleArr === null || ruleArr === void 0 ? void 0 : ruleArr.push(rule);
58278
58281
  ctx.luckysheetfile[index].luckysheet_conditionformat_save = ruleArr;
58279
- ctx.luckysheetfile[index].conditionRules = _objectSpread2(_objectSpread2({}, rules), {}, {
58280
- rulesType: rules.rulesType || "",
58281
- rulesValue: rules.rulesValue || "",
58282
- textColor: rules.textColor || {
58283
- check: true,
58284
- color: "#000000"
58285
- },
58286
- cellColor: rules.cellColor || {
58287
- check: true,
58288
- color: "#000000"
58289
- },
58290
- betweenValue: rules.betweenValue || {
58291
- value1: "",
58292
- value2: ""
58293
- },
58294
- dateValue: rules.dateValue || "",
58295
- repeatValue: rules.repeatValue || "0",
58296
- projectValue: rules.projectValue || "10"
58297
- });
58298
58282
  }
58299
58283
  function getColorGradation(color1, color2, value1, value2, value) {
58300
58284
  var rgb1 = color1.split(",");
@@ -58599,7 +58583,7 @@ function compute(ctx, ruleArr, d) {
58599
58583
  cellColor: cellColor
58600
58584
  };
58601
58585
  }
58602
- } else if (conditionName === "equal" && _cell6.v.toString() === conditionValue0) {
58586
+ } else if (conditionName === "equal" && Number(_cell6.v) === Number(conditionValue0)) {
58603
58587
  if ("".concat(_r0, "_").concat(_c0) in computeMap) {
58604
58588
  computeMap["".concat(_r0, "_").concat(_c0)].textColor = textColor;
58605
58589
  computeMap["".concat(_r0, "_").concat(_c0)].cellColor = cellColor;
package/dist/index.js CHANGED
@@ -56381,6 +56381,9 @@ function execfunction(ctx, txt, r, c, id, calcChainSet, isrefresh, notInsertFunc
56381
56381
  });
56382
56382
  var formulaError = parsedResponse.error;
56383
56383
  var result = parsedResponse.result;
56384
+ console.log({
56385
+ resultFROMEXECUTEFUNCTION: result
56386
+ });
56384
56387
  if (Object.prototype.toString.call(result) === "[object Date]" && !___default['default'].isNil(result)) {
56385
56388
  result = result.toString();
56386
56389
  }
@@ -56694,8 +56697,8 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
56694
56697
  v: v[1],
56695
56698
  f: v[2]
56696
56699
  };
56700
+ ctx.formulaCache.execFunctionExist = undefined;
56697
56701
  }
56698
- ctx.formulaCache.execFunctionExist = undefined;
56699
56702
  }
56700
56703
  function findrangeindex(ctx, v, vp) {
56701
56704
  var re = /<span.*?>/g;
@@ -58286,25 +58289,6 @@ function setConditionRules(ctx, protection, generalDialog, conditionformat, rule
58286
58289
  var ruleArr = (_ctx$luckysheetfile$i = ctx.luckysheetfile[index].luckysheet_conditionformat_save) !== null && _ctx$luckysheetfile$i !== void 0 ? _ctx$luckysheetfile$i : [];
58287
58290
  ruleArr === null || ruleArr === void 0 ? void 0 : ruleArr.push(rule);
58288
58291
  ctx.luckysheetfile[index].luckysheet_conditionformat_save = ruleArr;
58289
- ctx.luckysheetfile[index].conditionRules = _objectSpread2(_objectSpread2({}, rules), {}, {
58290
- rulesType: rules.rulesType || "",
58291
- rulesValue: rules.rulesValue || "",
58292
- textColor: rules.textColor || {
58293
- check: true,
58294
- color: "#000000"
58295
- },
58296
- cellColor: rules.cellColor || {
58297
- check: true,
58298
- color: "#000000"
58299
- },
58300
- betweenValue: rules.betweenValue || {
58301
- value1: "",
58302
- value2: ""
58303
- },
58304
- dateValue: rules.dateValue || "",
58305
- repeatValue: rules.repeatValue || "0",
58306
- projectValue: rules.projectValue || "10"
58307
- });
58308
58292
  }
58309
58293
  function getColorGradation(color1, color2, value1, value2, value) {
58310
58294
  var rgb1 = color1.split(",");
@@ -58609,7 +58593,7 @@ function compute(ctx, ruleArr, d) {
58609
58593
  cellColor: cellColor
58610
58594
  };
58611
58595
  }
58612
- } else if (conditionName === "equal" && _cell6.v.toString() === conditionValue0) {
58596
+ } else if (conditionName === "equal" && Number(_cell6.v) === Number(conditionValue0)) {
58613
58597
  if ("".concat(_r0, "_").concat(_c0) in computeMap) {
58614
58598
  computeMap["".concat(_r0, "_").concat(_c0)].textColor = textColor;
58615
58599
  computeMap["".concat(_r0, "_").concat(_c0)].cellColor = cellColor;
package/dist/types.d.ts CHANGED
@@ -121,25 +121,6 @@ export type Image = {
121
121
  top: number;
122
122
  src: string;
123
123
  };
124
- export type ConditionRulesProps = {
125
- rulesType: string;
126
- rulesValue: string;
127
- textColor: {
128
- check: boolean;
129
- color: string;
130
- };
131
- cellColor: {
132
- check: boolean;
133
- color: string;
134
- };
135
- betweenValue: {
136
- value1: string;
137
- value2: string;
138
- };
139
- dateValue: string;
140
- repeatValue: string;
141
- projectValue: string;
142
- };
143
124
  export type Sheet = {
144
125
  name: string;
145
126
  config?: SheetConfig;
@@ -182,7 +163,6 @@ export type Sheet = {
182
163
  luckysheet_conditionformat_save?: any[];
183
164
  luckysheet_alternateformat_save?: any[];
184
165
  dataVerification?: any;
185
- conditionRules?: ConditionRulesProps;
186
166
  hyperlink?: Record<string, {
187
167
  linkType: string;
188
168
  linkAddress: string;
@@ -251,6 +231,25 @@ export type DataRegulationProps = {
251
231
  hintShow: boolean;
252
232
  hintValue: string;
253
233
  };
234
+ export type ConditionRulesProps = {
235
+ rulesType: string;
236
+ rulesValue: string;
237
+ textColor: {
238
+ check: boolean;
239
+ color: string;
240
+ };
241
+ cellColor: {
242
+ check: boolean;
243
+ color: string;
244
+ };
245
+ betweenValue: {
246
+ value1: string;
247
+ value2: string;
248
+ };
249
+ dateValue: string;
250
+ repeatValue: string;
251
+ projectValue: string;
252
+ };
254
253
  export type FilterOptions = {
255
254
  startRow: number;
256
255
  endRow: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.2-mod-91",
3
+ "version": "1.0.2-mod-89-patch-005",
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-25",
13
+ "@fileverse-dev/formula-parser": "0.2.13-mod-25-patch-005",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",