@fileverse-dev/fortune-core 1.0.2-mod-48-patch-2 → 1.0.2-mod-48-patch-3

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
@@ -141,6 +141,27 @@ var en = {
141
141
  cannotSelectMultiple: "Cannot select multiple selections"
142
142
  },
143
143
  functionlist: [].concat(_toConsumableArray(FUNCTION_LOCALE), [{
144
+ n: "PnL",
145
+ t: 0,
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.",
148
+ m: [2],
149
+ p: [{
150
+ name: "A",
151
+ detail: "The column or array of values to subtract from B (e.g. cost).",
152
+ example: "A1:A10",
153
+ require: "m",
154
+ repeat: "n",
155
+ type: "range"
156
+ }, {
157
+ name: "B",
158
+ detail: "The column or array of values to subtract A from (e.g. revenue).",
159
+ example: "B1:B10",
160
+ require: "m",
161
+ repeat: "n",
162
+ type: "range"
163
+ }]
164
+ }, {
144
165
  n: "SUMIF",
145
166
  t: 0,
146
167
  d: "Returns a conditional sum across a range.",
package/dist/index.js CHANGED
@@ -151,6 +151,27 @@ var en = {
151
151
  cannotSelectMultiple: "Cannot select multiple selections"
152
152
  },
153
153
  functionlist: [].concat(_toConsumableArray(cryptoConstants.FUNCTION_LOCALE), [{
154
+ n: "PnL",
155
+ t: 0,
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.",
158
+ m: [2],
159
+ p: [{
160
+ name: "A",
161
+ detail: "The column or array of values to subtract from B (e.g. cost).",
162
+ example: "A1:A10",
163
+ require: "m",
164
+ repeat: "n",
165
+ type: "range"
166
+ }, {
167
+ name: "B",
168
+ detail: "The column or array of values to subtract A from (e.g. revenue).",
169
+ example: "B1:B10",
170
+ require: "m",
171
+ repeat: "n",
172
+ type: "range"
173
+ }]
174
+ }, {
154
175
  n: "SUMIF",
155
176
  t: 0,
156
177
  d: "Returns a conditional sum across a range.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.2-mod-48-patch-2",
3
+ "version": "1.0.2-mod-48-patch-3",
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-9-patch-2",
13
+ "@fileverse-dev/formula-parser": "0.2.13-mod-9-patch-3",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",