@fileverse-dev/fortune-core 1.0.2-mod-6 → 1.0.2-mod-8

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
@@ -1,4 +1,5 @@
1
1
  import _, { isPlainObject } from 'lodash';
2
+ import { FUNCTION_LOCALE } from '@fileverse-dev/formulajs/crypto-constants';
2
3
  import numeral from 'numeral';
3
4
  import dayjs from 'dayjs';
4
5
  import { Parser, ERROR_REF } from '@fileverse-dev/formula-parser';
@@ -139,7 +140,7 @@ var en = {
139
140
  noSeletionError: "The selection operation has not been performed yet",
140
141
  cannotSelectMultiple: "Cannot select multiple selections"
141
142
  },
142
- functionlist: [{
143
+ functionlist: [].concat(_toConsumableArray(FUNCTION_LOCALE), [{
143
144
  n: "SUMIF",
144
145
  t: 0,
145
146
  d: "Returns a conditional sum across a range.",
@@ -601,31 +602,6 @@ var en = {
601
602
  repeat: "y",
602
603
  type: "rangeall"
603
604
  }]
604
- }, {
605
- n: "GETTXLIST",
606
- t: 0,
607
- d: "Returns the list of transactions performed by an address, with optional pagination.",
608
- a: "Returns the list of transactions performed by an address, with optional pagination.",
609
- p: [{
610
- name: "value1",
611
- detail: "The address string representing the addresses to check for balance",
612
- example: "\"0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC\"",
613
- require: "m"
614
- }, {
615
- name: "value2",
616
- detail: "Page number.",
617
- example: "1",
618
- require: "o",
619
- repeat: "n",
620
- type: "rangenumber"
621
- }, {
622
- name: "value3",
623
- detail: "Page size(offset).",
624
- example: "100",
625
- require: "o",
626
- repeat: "n",
627
- type: "rangenumber"
628
- }]
629
605
  }, {
630
606
  n: "SUBTOTAL",
631
607
  t: 0,
@@ -9004,7 +8980,7 @@ var en = {
9004
8980
  repeat: "n",
9005
8981
  type: "string"
9006
8982
  }]
9007
- }],
8983
+ }]),
9008
8984
  toolbar: {
9009
8985
  toolbar: "Toolbar",
9010
8986
  undo: "Undo",
@@ -10524,6 +10500,7 @@ var en = {
10524
10500
  Date: "Date",
10525
10501
  Engineering: "Engineering",
10526
10502
  Filter: "Filter",
10503
+ Crypto: "Crypto",
10527
10504
  Financial: "Financial",
10528
10505
  luckysheet: "Luckysheet",
10529
10506
  other: "Other",
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _ = require('lodash');
6
+ var cryptoConstants = require('@fileverse-dev/formulajs/crypto-constants');
6
7
  var numeral = require('numeral');
7
8
  var dayjs = require('dayjs');
8
9
  var formulaParser = require('@fileverse-dev/formula-parser');
@@ -149,7 +150,7 @@ var en = {
149
150
  noSeletionError: "The selection operation has not been performed yet",
150
151
  cannotSelectMultiple: "Cannot select multiple selections"
151
152
  },
152
- functionlist: [{
153
+ functionlist: [].concat(_toConsumableArray(cryptoConstants.FUNCTION_LOCALE), [{
153
154
  n: "SUMIF",
154
155
  t: 0,
155
156
  d: "Returns a conditional sum across a range.",
@@ -611,31 +612,6 @@ var en = {
611
612
  repeat: "y",
612
613
  type: "rangeall"
613
614
  }]
614
- }, {
615
- n: "GETTXLIST",
616
- t: 0,
617
- d: "Returns the list of transactions performed by an address, with optional pagination.",
618
- a: "Returns the list of transactions performed by an address, with optional pagination.",
619
- p: [{
620
- name: "value1",
621
- detail: "The address string representing the addresses to check for balance",
622
- example: "\"0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC\"",
623
- require: "m"
624
- }, {
625
- name: "value2",
626
- detail: "Page number.",
627
- example: "1",
628
- require: "o",
629
- repeat: "n",
630
- type: "rangenumber"
631
- }, {
632
- name: "value3",
633
- detail: "Page size(offset).",
634
- example: "100",
635
- require: "o",
636
- repeat: "n",
637
- type: "rangenumber"
638
- }]
639
615
  }, {
640
616
  n: "SUBTOTAL",
641
617
  t: 0,
@@ -9014,7 +8990,7 @@ var en = {
9014
8990
  repeat: "n",
9015
8991
  type: "string"
9016
8992
  }]
9017
- }],
8993
+ }]),
9018
8994
  toolbar: {
9019
8995
  toolbar: "Toolbar",
9020
8996
  undo: "Undo",
@@ -10534,6 +10510,7 @@ var en = {
10534
10510
  Date: "Date",
10535
10511
  Engineering: "Engineering",
10536
10512
  Filter: "Filter",
10513
+ Crypto: "Crypto",
10537
10514
  Financial: "Financial",
10538
10515
  luckysheet: "Luckysheet",
10539
10516
  other: "Other",
@@ -6,56 +6,7 @@ declare const _default: {
6
6
  noSeletionError: string;
7
7
  cannotSelectMultiple: string;
8
8
  };
9
- functionlist: ({
10
- n: string;
11
- t: number;
12
- d: string;
13
- a: string;
14
- m: number[];
15
- p: {
16
- name: string;
17
- detail: string;
18
- example: string;
19
- require: string;
20
- repeat: string;
21
- type: string;
22
- }[];
23
- } | {
24
- n: string;
25
- t: number;
26
- d: string;
27
- a: string;
28
- p: ({
29
- name: string;
30
- detail: string;
31
- example: string;
32
- require: string;
33
- repeat?: undefined;
34
- type?: undefined;
35
- } | {
36
- name: string;
37
- detail: string;
38
- example: string;
39
- require: string;
40
- repeat: string;
41
- type: string;
42
- })[];
43
- m?: undefined;
44
- } | {
45
- n: string;
46
- t: string;
47
- d: string;
48
- a: string;
49
- m: number[];
50
- p: {
51
- name: string;
52
- example: string;
53
- detail: string;
54
- require: string;
55
- repeat: string;
56
- type: string;
57
- }[];
58
- })[];
9
+ functionlist: any[];
59
10
  toolbar: {
60
11
  toolbar: string;
61
12
  undo: string;
@@ -852,6 +803,7 @@ declare const _default: {
852
803
  Date: string;
853
804
  Engineering: string;
854
805
  Filter: string;
806
+ Crypto: string;
855
807
  Financial: string;
856
808
  luckysheet: string;
857
809
  other: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.2-mod-6",
3
+ "version": "1.0.2-mod-8",
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-0",
13
+ "@fileverse-dev/formula-parser": "^0.2.13-mod-2",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",