logisheets-formula-editor 1.9.0 → 1.10.0
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/builtin-functions.json.d.ts +545 -0
- package/dist/core.js +1 -1
- package/dist/engine.js +1 -1
- package/dist/{functions-Cxg5fTo6.js → functions-D0Jq57A8.js} +545 -0
- package/dist/index.js +1 -1
- package/dist/inline.js +1 -1
- package/dist/src/lib/FormulaEditor.d.ts.map +1 -0
- package/dist/src/lib/core.d.ts.map +1 -0
- package/dist/src/lib/editor.d.ts.map +1 -0
- package/dist/src/lib/engine.d.ts.map +1 -0
- package/dist/src/lib/functions.d.ts.map +1 -0
- package/dist/src/lib/index.d.ts.map +1 -0
- package/dist/src/lib/inline.d.ts.map +1 -0
- package/dist/src/lib/types.d.ts.map +1 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/FormulaEditor.d.ts.map +0 -1
- package/dist/core.d.ts.map +0 -1
- package/dist/editor.d.ts.map +0 -1
- package/dist/engine.d.ts.map +0 -1
- package/dist/functions.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/inline.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- /package/dist/{FormulaEditor.d.ts → src/lib/FormulaEditor.d.ts} +0 -0
- /package/dist/{core.d.ts → src/lib/core.d.ts} +0 -0
- /package/dist/{editor.d.ts → src/lib/editor.d.ts} +0 -0
- /package/dist/{engine.d.ts → src/lib/engine.d.ts} +0 -0
- /package/dist/{functions.d.ts → src/lib/functions.d.ts} +0 -0
- /package/dist/{index.d.ts → src/lib/index.d.ts} +0 -0
- /package/dist/{inline.d.ts → src/lib/inline.d.ts} +0 -0
- /package/dist/{types.d.ts → src/lib/types.d.ts} +0 -0
- /package/dist/{utils.d.ts → src/lib/utils.d.ts} +0 -0
|
@@ -66,6 +66,31 @@ const e = [
|
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
|
+
{
|
|
70
|
+
name: "ADDRESS",
|
|
71
|
+
description: "Creates a cell reference as text, given the row and column numbers.",
|
|
72
|
+
argCount: {
|
|
73
|
+
ge: 2,
|
|
74
|
+
le: 5
|
|
75
|
+
},
|
|
76
|
+
args: [
|
|
77
|
+
{
|
|
78
|
+
argName: "row_num"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
argName: "col_num"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
argName: "abs_num"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
argName: "a1"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
argName: "sheet_text"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
69
94
|
{
|
|
70
95
|
name: "AGGREGATE",
|
|
71
96
|
description: "Returns an aggregate in a list or database. The AGGREGATE function can apply different aggregate functions to a list or database with the option to ignore hidden rows and error values.",
|
|
@@ -229,6 +254,45 @@ const e = [
|
|
|
229
254
|
}
|
|
230
255
|
]
|
|
231
256
|
},
|
|
257
|
+
{
|
|
258
|
+
name: "CEILING",
|
|
259
|
+
description: "Rounds a number up, away from zero, to the nearest multiple of significance.",
|
|
260
|
+
argCount: {
|
|
261
|
+
eq: 2
|
|
262
|
+
},
|
|
263
|
+
args: [
|
|
264
|
+
{
|
|
265
|
+
argName: "number"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
argName: "significance"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: "CHAR",
|
|
274
|
+
description: "Returns the character specified by a code number (1-255).",
|
|
275
|
+
argCount: {
|
|
276
|
+
eq: 1
|
|
277
|
+
},
|
|
278
|
+
args: [
|
|
279
|
+
{
|
|
280
|
+
argName: "number"
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: "CODE",
|
|
286
|
+
description: "Returns the numeric code of the first character in a text string.",
|
|
287
|
+
argCount: {
|
|
288
|
+
eq: 1
|
|
289
|
+
},
|
|
290
|
+
args: [
|
|
291
|
+
{
|
|
292
|
+
argName: "text"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
232
296
|
{
|
|
233
297
|
name: "COMPLEX",
|
|
234
298
|
description: "Returns a complex number as text given real and imaginary coefficients and an optional suffix.",
|
|
@@ -248,6 +312,19 @@ const e = [
|
|
|
248
312
|
}
|
|
249
313
|
]
|
|
250
314
|
},
|
|
315
|
+
{
|
|
316
|
+
name: "CONCAT",
|
|
317
|
+
description: "Joins the text from multiple values or ranges into a single string.",
|
|
318
|
+
argCount: {
|
|
319
|
+
ge: 1
|
|
320
|
+
},
|
|
321
|
+
args: [
|
|
322
|
+
{
|
|
323
|
+
argName: "text",
|
|
324
|
+
startRepeated: !0
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
251
328
|
{
|
|
252
329
|
name: "CONCATENATE",
|
|
253
330
|
description: "Joins several text items into one text string.",
|
|
@@ -286,6 +363,19 @@ const e = [
|
|
|
286
363
|
}
|
|
287
364
|
]
|
|
288
365
|
},
|
|
366
|
+
{
|
|
367
|
+
name: "COUNTA",
|
|
368
|
+
description: "Counts the number of cells that are not empty.",
|
|
369
|
+
argCount: {
|
|
370
|
+
ge: 1
|
|
371
|
+
},
|
|
372
|
+
args: [
|
|
373
|
+
{
|
|
374
|
+
argName: "value",
|
|
375
|
+
startRepeated: !0
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
},
|
|
289
379
|
{
|
|
290
380
|
name: "COUNTBLANK",
|
|
291
381
|
description: "Counts the number of empty cells in a specified range of cells.",
|
|
@@ -370,6 +460,22 @@ const e = [
|
|
|
370
460
|
}
|
|
371
461
|
]
|
|
372
462
|
},
|
|
463
|
+
{
|
|
464
|
+
name: "DOLLAR",
|
|
465
|
+
description: "Converts a number to text using currency format, with a dollar sign, thousands separators, and the specified number of decimals.",
|
|
466
|
+
argCount: {
|
|
467
|
+
ge: 1,
|
|
468
|
+
le: 2
|
|
469
|
+
},
|
|
470
|
+
args: [
|
|
471
|
+
{
|
|
472
|
+
argName: "number"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
argName: "decimals"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
},
|
|
373
479
|
{
|
|
374
480
|
name: "EXACT",
|
|
375
481
|
description: "Checks whether two text strings are exactly the same (case-sensitive).",
|
|
@@ -423,6 +529,59 @@ const e = [
|
|
|
423
529
|
},
|
|
424
530
|
args: []
|
|
425
531
|
},
|
|
532
|
+
{
|
|
533
|
+
name: "FIND",
|
|
534
|
+
description: "Returns the position of one text string within another (case-sensitive).",
|
|
535
|
+
argCount: {
|
|
536
|
+
ge: 2,
|
|
537
|
+
le: 3
|
|
538
|
+
},
|
|
539
|
+
args: [
|
|
540
|
+
{
|
|
541
|
+
argName: "find_text"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
argName: "within_text"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
argName: "start_num"
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
name: "FIXED",
|
|
553
|
+
description: "Rounds a number to the specified number of decimals and returns it as text, with or without thousands separators.",
|
|
554
|
+
argCount: {
|
|
555
|
+
ge: 1,
|
|
556
|
+
le: 3
|
|
557
|
+
},
|
|
558
|
+
args: [
|
|
559
|
+
{
|
|
560
|
+
argName: "number"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
argName: "decimals"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
argName: "no_commas"
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
name: "FLOOR",
|
|
572
|
+
description: "Rounds a number down, toward zero, to the nearest multiple of significance.",
|
|
573
|
+
argCount: {
|
|
574
|
+
eq: 2
|
|
575
|
+
},
|
|
576
|
+
args: [
|
|
577
|
+
{
|
|
578
|
+
argName: "number"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
argName: "significance"
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
},
|
|
426
585
|
{
|
|
427
586
|
name: "FV",
|
|
428
587
|
description: "Returns the future value of an investment based on periodic, constant payments and a constant interest rate.",
|
|
@@ -686,6 +845,18 @@ const e = [
|
|
|
686
845
|
}
|
|
687
846
|
]
|
|
688
847
|
},
|
|
848
|
+
{
|
|
849
|
+
name: "INT",
|
|
850
|
+
description: "Rounds a number down to the nearest integer.",
|
|
851
|
+
argCount: {
|
|
852
|
+
eq: 1
|
|
853
|
+
},
|
|
854
|
+
args: [
|
|
855
|
+
{
|
|
856
|
+
argName: "number"
|
|
857
|
+
}
|
|
858
|
+
]
|
|
859
|
+
},
|
|
689
860
|
{
|
|
690
861
|
name: "IPMT",
|
|
691
862
|
description: "Returns the interest payment for a given period of an investment.",
|
|
@@ -743,6 +914,18 @@ const e = [
|
|
|
743
914
|
}
|
|
744
915
|
]
|
|
745
916
|
},
|
|
917
|
+
{
|
|
918
|
+
name: "ISEVEN",
|
|
919
|
+
description: "Returns TRUE if the number is even.",
|
|
920
|
+
argCount: {
|
|
921
|
+
eq: 1
|
|
922
|
+
},
|
|
923
|
+
args: [
|
|
924
|
+
{
|
|
925
|
+
argName: "number"
|
|
926
|
+
}
|
|
927
|
+
]
|
|
928
|
+
},
|
|
746
929
|
{
|
|
747
930
|
name: "ISNA",
|
|
748
931
|
description: "Returns TRUE if the value is the #N/A error; otherwise returns FALSE.",
|
|
@@ -755,6 +938,18 @@ const e = [
|
|
|
755
938
|
}
|
|
756
939
|
]
|
|
757
940
|
},
|
|
941
|
+
{
|
|
942
|
+
name: "ISODD",
|
|
943
|
+
description: "Returns TRUE if the number is odd.",
|
|
944
|
+
argCount: {
|
|
945
|
+
eq: 1
|
|
946
|
+
},
|
|
947
|
+
args: [
|
|
948
|
+
{
|
|
949
|
+
argName: "number"
|
|
950
|
+
}
|
|
951
|
+
]
|
|
952
|
+
},
|
|
758
953
|
{
|
|
759
954
|
name: "LEFT",
|
|
760
955
|
description: "Returns the first character or characters in a text string, based on the number of characters you specify.",
|
|
@@ -795,6 +990,22 @@ const e = [
|
|
|
795
990
|
}
|
|
796
991
|
]
|
|
797
992
|
},
|
|
993
|
+
{
|
|
994
|
+
name: "LOG",
|
|
995
|
+
description: "Returns the logarithm of a number to the base you specify (default 10).",
|
|
996
|
+
argCount: {
|
|
997
|
+
ge: 1,
|
|
998
|
+
le: 2
|
|
999
|
+
},
|
|
1000
|
+
args: [
|
|
1001
|
+
{
|
|
1002
|
+
argName: "number"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
argName: "base"
|
|
1006
|
+
}
|
|
1007
|
+
]
|
|
1008
|
+
},
|
|
798
1009
|
{
|
|
799
1010
|
name: "LOG10",
|
|
800
1011
|
description: "Returns the base-10 logarithm of a number.",
|
|
@@ -819,6 +1030,38 @@ const e = [
|
|
|
819
1030
|
}
|
|
820
1031
|
]
|
|
821
1032
|
},
|
|
1033
|
+
{
|
|
1034
|
+
name: "MATCH",
|
|
1035
|
+
description: "Returns the relative position of an item in a range that matches a specified value.",
|
|
1036
|
+
argCount: {
|
|
1037
|
+
ge: 2,
|
|
1038
|
+
le: 3
|
|
1039
|
+
},
|
|
1040
|
+
args: [
|
|
1041
|
+
{
|
|
1042
|
+
argName: "lookup_value"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
argName: "lookup_array"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
argName: "match_type"
|
|
1049
|
+
}
|
|
1050
|
+
]
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
name: "MAX",
|
|
1054
|
+
description: "Returns the largest value in a set of numbers.",
|
|
1055
|
+
argCount: {
|
|
1056
|
+
ge: 1
|
|
1057
|
+
},
|
|
1058
|
+
args: [
|
|
1059
|
+
{
|
|
1060
|
+
argName: "number",
|
|
1061
|
+
startRepeated: !0
|
|
1062
|
+
}
|
|
1063
|
+
]
|
|
1064
|
+
},
|
|
822
1065
|
{
|
|
823
1066
|
name: "MAXIFS",
|
|
824
1067
|
description: "Returns the maximum value among cells specified by a set of conditions.",
|
|
@@ -841,6 +1084,50 @@ const e = [
|
|
|
841
1084
|
}
|
|
842
1085
|
]
|
|
843
1086
|
},
|
|
1087
|
+
{
|
|
1088
|
+
name: "MEDIAN",
|
|
1089
|
+
description: "Returns the median (the middle value) of the given numbers.",
|
|
1090
|
+
argCount: {
|
|
1091
|
+
ge: 1
|
|
1092
|
+
},
|
|
1093
|
+
args: [
|
|
1094
|
+
{
|
|
1095
|
+
argName: "number",
|
|
1096
|
+
startRepeated: !0
|
|
1097
|
+
}
|
|
1098
|
+
]
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
name: "MID",
|
|
1102
|
+
description: "Returns a specific number of characters from a text string, starting at the position you specify.",
|
|
1103
|
+
argCount: {
|
|
1104
|
+
eq: 3
|
|
1105
|
+
},
|
|
1106
|
+
args: [
|
|
1107
|
+
{
|
|
1108
|
+
argName: "text"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
argName: "start_num"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
argName: "num_chars"
|
|
1115
|
+
}
|
|
1116
|
+
]
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
name: "MIN",
|
|
1120
|
+
description: "Returns the smallest value in a set of numbers.",
|
|
1121
|
+
argCount: {
|
|
1122
|
+
ge: 1
|
|
1123
|
+
},
|
|
1124
|
+
args: [
|
|
1125
|
+
{
|
|
1126
|
+
argName: "number",
|
|
1127
|
+
startRepeated: !0
|
|
1128
|
+
}
|
|
1129
|
+
]
|
|
1130
|
+
},
|
|
844
1131
|
{
|
|
845
1132
|
name: "MINUTE",
|
|
846
1133
|
description: "Returns the minute component of a time value, a number from 0 to 59.",
|
|
@@ -853,6 +1140,21 @@ const e = [
|
|
|
853
1140
|
}
|
|
854
1141
|
]
|
|
855
1142
|
},
|
|
1143
|
+
{
|
|
1144
|
+
name: "MOD",
|
|
1145
|
+
description: "Returns the remainder after a number is divided by a divisor; the result has the same sign as the divisor.",
|
|
1146
|
+
argCount: {
|
|
1147
|
+
eq: 2
|
|
1148
|
+
},
|
|
1149
|
+
args: [
|
|
1150
|
+
{
|
|
1151
|
+
argName: "number"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
argName: "divisor"
|
|
1155
|
+
}
|
|
1156
|
+
]
|
|
1157
|
+
},
|
|
856
1158
|
{
|
|
857
1159
|
name: "MODE",
|
|
858
1160
|
description: "Returns the most frequently occurring value in a range or list of arguments.",
|
|
@@ -937,6 +1239,18 @@ const e = [
|
|
|
937
1239
|
}
|
|
938
1240
|
]
|
|
939
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
name: "NOT",
|
|
1244
|
+
description: "Reverses the logical value of its argument.",
|
|
1245
|
+
argCount: {
|
|
1246
|
+
eq: 1
|
|
1247
|
+
},
|
|
1248
|
+
args: [
|
|
1249
|
+
{
|
|
1250
|
+
argName: "logical"
|
|
1251
|
+
}
|
|
1252
|
+
]
|
|
1253
|
+
},
|
|
940
1254
|
{
|
|
941
1255
|
name: "NPV",
|
|
942
1256
|
description: "Calculates the net present value of an investment based on a discount rate and a series of future payments.",
|
|
@@ -997,6 +1311,31 @@ const e = [
|
|
|
997
1311
|
}
|
|
998
1312
|
]
|
|
999
1313
|
},
|
|
1314
|
+
{
|
|
1315
|
+
name: "OFFSET",
|
|
1316
|
+
description: "Returns a reference offset from a starting reference by a number of rows and columns, optionally resized.",
|
|
1317
|
+
argCount: {
|
|
1318
|
+
ge: 3,
|
|
1319
|
+
le: 5
|
|
1320
|
+
},
|
|
1321
|
+
args: [
|
|
1322
|
+
{
|
|
1323
|
+
argName: "reference"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
argName: "rows"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
argName: "cols"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
argName: "height"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
argName: "width"
|
|
1336
|
+
}
|
|
1337
|
+
]
|
|
1338
|
+
},
|
|
1000
1339
|
{
|
|
1001
1340
|
name: "OR",
|
|
1002
1341
|
description: "Returns TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE.",
|
|
@@ -1033,6 +1372,21 @@ const e = [
|
|
|
1033
1372
|
},
|
|
1034
1373
|
args: []
|
|
1035
1374
|
},
|
|
1375
|
+
{
|
|
1376
|
+
name: "POWER",
|
|
1377
|
+
description: "Returns the result of a number raised to a power.",
|
|
1378
|
+
argCount: {
|
|
1379
|
+
eq: 2
|
|
1380
|
+
},
|
|
1381
|
+
args: [
|
|
1382
|
+
{
|
|
1383
|
+
argName: "number"
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
argName: "power"
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
},
|
|
1036
1390
|
{
|
|
1037
1391
|
name: "PPMT",
|
|
1038
1392
|
description: "Returns the payment on the principal for a given period for an investment.",
|
|
@@ -1061,6 +1415,31 @@ const e = [
|
|
|
1061
1415
|
}
|
|
1062
1416
|
]
|
|
1063
1417
|
},
|
|
1418
|
+
{
|
|
1419
|
+
name: "PRODUCT",
|
|
1420
|
+
description: "Multiplies all the numbers given as arguments and returns the product.",
|
|
1421
|
+
argCount: {
|
|
1422
|
+
ge: 1
|
|
1423
|
+
},
|
|
1424
|
+
args: [
|
|
1425
|
+
{
|
|
1426
|
+
argName: "number",
|
|
1427
|
+
startRepeated: !0
|
|
1428
|
+
}
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
name: "PROPER",
|
|
1433
|
+
description: "Capitalizes the first letter of each word in a text string and lowercases the rest.",
|
|
1434
|
+
argCount: {
|
|
1435
|
+
eq: 1
|
|
1436
|
+
},
|
|
1437
|
+
args: [
|
|
1438
|
+
{
|
|
1439
|
+
argName: "text"
|
|
1440
|
+
}
|
|
1441
|
+
]
|
|
1442
|
+
},
|
|
1064
1443
|
{
|
|
1065
1444
|
name: "PV",
|
|
1066
1445
|
description: "Calculates the present value of an investment based on periodic, constant payments and a constant interest rate.",
|
|
@@ -1149,6 +1528,27 @@ const e = [
|
|
|
1149
1528
|
}
|
|
1150
1529
|
]
|
|
1151
1530
|
},
|
|
1531
|
+
{
|
|
1532
|
+
name: "REPLACE",
|
|
1533
|
+
description: "Replaces part of a text string, based on the number of characters you specify, with another string.",
|
|
1534
|
+
argCount: {
|
|
1535
|
+
eq: 4
|
|
1536
|
+
},
|
|
1537
|
+
args: [
|
|
1538
|
+
{
|
|
1539
|
+
argName: "old_text"
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
argName: "start_num"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
argName: "num_chars"
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
argName: "new_text"
|
|
1549
|
+
}
|
|
1550
|
+
]
|
|
1551
|
+
},
|
|
1152
1552
|
{
|
|
1153
1553
|
name: "RIGHT",
|
|
1154
1554
|
description: "Returns the last character or characters in a text string, based on the number of characters you specify.",
|
|
@@ -1193,6 +1593,25 @@ const e = [
|
|
|
1193
1593
|
}
|
|
1194
1594
|
]
|
|
1195
1595
|
},
|
|
1596
|
+
{
|
|
1597
|
+
name: "SEARCH",
|
|
1598
|
+
description: "Returns the position of one text string within another (case-insensitive).",
|
|
1599
|
+
argCount: {
|
|
1600
|
+
ge: 2,
|
|
1601
|
+
le: 3
|
|
1602
|
+
},
|
|
1603
|
+
args: [
|
|
1604
|
+
{
|
|
1605
|
+
argName: "find_text"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
argName: "within_text"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
argName: "start_num"
|
|
1612
|
+
}
|
|
1613
|
+
]
|
|
1614
|
+
},
|
|
1196
1615
|
{
|
|
1197
1616
|
name: "SECOND",
|
|
1198
1617
|
description: "Returns the seconds of a time value, a number from 0 to 59.",
|
|
@@ -1272,6 +1691,28 @@ const e = [
|
|
|
1272
1691
|
}
|
|
1273
1692
|
]
|
|
1274
1693
|
},
|
|
1694
|
+
{
|
|
1695
|
+
name: "SUBSTITUTE",
|
|
1696
|
+
description: "Replaces occurrences of old text with new text in a string; optionally only the nth occurrence.",
|
|
1697
|
+
argCount: {
|
|
1698
|
+
ge: 3,
|
|
1699
|
+
le: 4
|
|
1700
|
+
},
|
|
1701
|
+
args: [
|
|
1702
|
+
{
|
|
1703
|
+
argName: "text"
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
argName: "old_text"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
argName: "new_text"
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
argName: "instance_num"
|
|
1713
|
+
}
|
|
1714
|
+
]
|
|
1715
|
+
},
|
|
1275
1716
|
{
|
|
1276
1717
|
name: "SUM",
|
|
1277
1718
|
description: "Adds all the numbers in a range of cells.",
|
|
@@ -1328,6 +1769,19 @@ const e = [
|
|
|
1328
1769
|
}
|
|
1329
1770
|
]
|
|
1330
1771
|
},
|
|
1772
|
+
{
|
|
1773
|
+
name: "SUMPRODUCT",
|
|
1774
|
+
description: "Multiplies corresponding components in the given arrays and returns the sum of those products.",
|
|
1775
|
+
argCount: {
|
|
1776
|
+
ge: 1
|
|
1777
|
+
},
|
|
1778
|
+
args: [
|
|
1779
|
+
{
|
|
1780
|
+
argName: "array",
|
|
1781
|
+
startRepeated: !0
|
|
1782
|
+
}
|
|
1783
|
+
]
|
|
1784
|
+
},
|
|
1331
1785
|
{
|
|
1332
1786
|
name: "SUMSQ",
|
|
1333
1787
|
description: "Returns the sum of the squares of the supplied arguments.",
|
|
@@ -1427,6 +1881,40 @@ const e = [
|
|
|
1427
1881
|
}
|
|
1428
1882
|
]
|
|
1429
1883
|
},
|
|
1884
|
+
{
|
|
1885
|
+
name: "TEXT",
|
|
1886
|
+
description: 'Formats a number and converts it to text using the given number-format code (e.g. "0.00%", "yyyy-mm-dd").',
|
|
1887
|
+
argCount: {
|
|
1888
|
+
eq: 2
|
|
1889
|
+
},
|
|
1890
|
+
args: [
|
|
1891
|
+
{
|
|
1892
|
+
argName: "value"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
argName: "format_text"
|
|
1896
|
+
}
|
|
1897
|
+
]
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
name: "TEXTJOIN",
|
|
1901
|
+
description: "Joins text from multiple ranges or strings using a delimiter, optionally ignoring empty values.",
|
|
1902
|
+
argCount: {
|
|
1903
|
+
ge: 3
|
|
1904
|
+
},
|
|
1905
|
+
args: [
|
|
1906
|
+
{
|
|
1907
|
+
argName: "delimiter"
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
argName: "ignore_empty"
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
argName: "text",
|
|
1914
|
+
startRepeated: !0
|
|
1915
|
+
}
|
|
1916
|
+
]
|
|
1917
|
+
},
|
|
1430
1918
|
{
|
|
1431
1919
|
name: "TODAY",
|
|
1432
1920
|
description: "Returns the current date as a serial number. The value updates when the worksheet is recalculated or opened.",
|
|
@@ -1455,6 +1943,50 @@ const e = [
|
|
|
1455
1943
|
},
|
|
1456
1944
|
args: []
|
|
1457
1945
|
},
|
|
1946
|
+
{
|
|
1947
|
+
name: "TRUNC",
|
|
1948
|
+
description: "Truncates a number to an integer by removing the fractional part, or to a given number of digits.",
|
|
1949
|
+
argCount: {
|
|
1950
|
+
ge: 1,
|
|
1951
|
+
le: 2
|
|
1952
|
+
},
|
|
1953
|
+
args: [
|
|
1954
|
+
{
|
|
1955
|
+
argName: "number"
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
argName: "num_digits"
|
|
1959
|
+
}
|
|
1960
|
+
]
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
name: "USDOLLAR",
|
|
1964
|
+
description: "Converts a number to text using US dollar currency format. Legacy alias of DOLLAR.",
|
|
1965
|
+
argCount: {
|
|
1966
|
+
ge: 1,
|
|
1967
|
+
le: 2
|
|
1968
|
+
},
|
|
1969
|
+
args: [
|
|
1970
|
+
{
|
|
1971
|
+
argName: "number"
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
argName: "decimals"
|
|
1975
|
+
}
|
|
1976
|
+
]
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
name: "VALUE",
|
|
1980
|
+
description: "Converts a text string that represents a number into a number.",
|
|
1981
|
+
argCount: {
|
|
1982
|
+
eq: 1
|
|
1983
|
+
},
|
|
1984
|
+
args: [
|
|
1985
|
+
{
|
|
1986
|
+
argName: "text"
|
|
1987
|
+
}
|
|
1988
|
+
]
|
|
1989
|
+
},
|
|
1458
1990
|
{
|
|
1459
1991
|
name: "WEEKDAY",
|
|
1460
1992
|
description: "Returns the day of the week corresponding to a date, typically 1 (Sunday) through 7 (Saturday) depending on return_type.",
|
|
@@ -1492,6 +2024,19 @@ const e = [
|
|
|
1492
2024
|
}
|
|
1493
2025
|
]
|
|
1494
2026
|
},
|
|
2027
|
+
{
|
|
2028
|
+
name: "XOR",
|
|
2029
|
+
description: "Returns TRUE when an odd number of arguments are TRUE.",
|
|
2030
|
+
argCount: {
|
|
2031
|
+
ge: 1
|
|
2032
|
+
},
|
|
2033
|
+
args: [
|
|
2034
|
+
{
|
|
2035
|
+
argName: "logical",
|
|
2036
|
+
startRepeated: !0
|
|
2037
|
+
}
|
|
2038
|
+
]
|
|
2039
|
+
},
|
|
1495
2040
|
{
|
|
1496
2041
|
name: "YEAR",
|
|
1497
2042
|
description: "Returns the year corresponding to a date.",
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as m, useRef as a, useEffect as i, useImperativeHandle as f } from "react";
|
|
3
3
|
import { createFormulaEditor as g } from "./core.js";
|
|
4
4
|
import { CELL_REF_COLORS as b, EOF as x, convertToDisplayUnits as E, fuzzyMatch as V, getCellRefColor as v, isFormula as N, isLocalCellRef as S, measureText as U, simpleUuid as D } from "./core.js";
|
|
5
|
-
import { b as L } from "./functions-
|
|
5
|
+
import { b as L } from "./functions-D0Jq57A8.js";
|
|
6
6
|
import { createEngineFormulaSource as P } from "./engine.js";
|
|
7
7
|
const C = m(
|
|
8
8
|
(n, o) => {
|
package/dist/inline.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCellRefColor as fe, createFormulaEditor as ue, measureText as ae } from "./core.js";
|
|
2
2
|
import { createEngineFormulaSource as de } from "./engine.js";
|
|
3
|
-
import { b as ge } from "./functions-
|
|
3
|
+
import { b as ge } from "./functions-D0Jq57A8.js";
|
|
4
4
|
import { getReferenceHighlightRects as he, isCellInGridWindow as xe, getCellRect as J, getReferenceString as K, qualifyReference as L, buildSelectedDataFromCell as Q } from "logisheets-engine";
|
|
5
5
|
const pe = '13px Consolas, Monaco, "Courier New", monospace';
|
|
6
6
|
function Ee(k) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormulaEditor.d.ts","sourceRoot":"","sources":["../../../src/lib/FormulaEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAA;AAEhD,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/C,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,QAAQ,EAAE,MAAM,MAAM,CAAA;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,6CAA6C;IAC7C,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,uEAAuE;IACvE,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9D,kCAAkC;IAClC,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,OAAO,EAAE,MAAM,UAAU,GAAG,IAAI,CAAA;CACnC;AAED,eAAO,MAAM,aAAa,iHAgEzB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/lib/core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAA;AAC5C,YAAY,EAAC,mBAAmB,EAAE,oBAAoB,EAAC,MAAM,UAAU,CAAA;AAGvE,OAAO,EAAC,uBAAuB,EAAC,MAAM,aAAa,CAAA;AAEnD,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|