@gridsheet/functions 3.0.0-rc.2
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.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +332 -0
- package/dist/information/index.d.ts +4 -0
- package/dist/information/index.d.ts.map +1 -0
- package/dist/information/isblank.d.ts +9 -0
- package/dist/information/isblank.d.ts.map +1 -0
- package/dist/information/isdate.d.ts +9 -0
- package/dist/information/isdate.d.ts.map +1 -0
- package/dist/information/isemail.d.ts +9 -0
- package/dist/information/isemail.d.ts.map +1 -0
- package/dist/information/iserr.d.ts +9 -0
- package/dist/information/iserr.d.ts.map +1 -0
- package/dist/information/iserror.d.ts +9 -0
- package/dist/information/iserror.d.ts.map +1 -0
- package/dist/information/isformula.d.ts +9 -0
- package/dist/information/isformula.d.ts.map +1 -0
- package/dist/information/islogical.d.ts +9 -0
- package/dist/information/islogical.d.ts.map +1 -0
- package/dist/information/isna.d.ts +9 -0
- package/dist/information/isna.d.ts.map +1 -0
- package/dist/information/isnontext.d.ts +9 -0
- package/dist/information/isnontext.d.ts.map +1 -0
- package/dist/information/isref.d.ts +9 -0
- package/dist/information/isref.d.ts.map +1 -0
- package/dist/information/istext.d.ts +9 -0
- package/dist/information/istext.d.ts.map +1 -0
- package/dist/information/n.d.ts +9 -0
- package/dist/information/n.d.ts.map +1 -0
- package/dist/information/na.d.ts +9 -0
- package/dist/information/na.d.ts.map +1 -0
- package/dist/information/sheets.d.ts +9 -0
- package/dist/information/sheets.d.ts.map +1 -0
- package/dist/logical/ifna.d.ts +10 -0
- package/dist/logical/ifna.d.ts.map +1 -0
- package/dist/logical/ifs.d.ts +11 -0
- package/dist/logical/ifs.d.ts.map +1 -0
- package/dist/logical/index.d.ts +4 -0
- package/dist/logical/index.d.ts.map +1 -0
- package/dist/logical/xor.d.ts +9 -0
- package/dist/logical/xor.d.ts.map +1 -0
- package/dist/lookup/column.d.ts +12 -0
- package/dist/lookup/column.d.ts.map +1 -0
- package/dist/lookup/columns.d.ts +9 -0
- package/dist/lookup/columns.d.ts.map +1 -0
- package/dist/lookup/hlookup.d.ts +10 -0
- package/dist/lookup/hlookup.d.ts.map +1 -0
- package/dist/lookup/index.d.ts +4 -0
- package/dist/lookup/index.d.ts.map +1 -0
- package/dist/lookup/index.js +377 -0
- package/dist/lookup/indexFn.d.ts +10 -0
- package/dist/lookup/indexFn.d.ts.map +1 -0
- package/dist/lookup/match.d.ts +10 -0
- package/dist/lookup/match.d.ts.map +1 -0
- package/dist/lookup/row.d.ts +12 -0
- package/dist/lookup/row.d.ts.map +1 -0
- package/dist/lookup/rows.d.ts +9 -0
- package/dist/lookup/rows.d.ts.map +1 -0
- package/dist/lookup/sheet.d.ts +9 -0
- package/dist/lookup/sheet.d.ts.map +1 -0
- package/dist/lookup/vlookup.d.ts +10 -0
- package/dist/lookup/vlookup.d.ts.map +1 -0
- package/dist/math/__matrix_base.d.ts +15 -0
- package/dist/math/__matrix_base.d.ts.map +1 -0
- package/dist/math/acos.d.ts +9 -0
- package/dist/math/acos.d.ts.map +1 -0
- package/dist/math/asin.d.ts +9 -0
- package/dist/math/asin.d.ts.map +1 -0
- package/dist/math/atan.d.ts +9 -0
- package/dist/math/atan.d.ts.map +1 -0
- package/dist/math/atan2.d.ts +9 -0
- package/dist/math/atan2.d.ts.map +1 -0
- package/dist/math/base.d.ts +10 -0
- package/dist/math/base.d.ts.map +1 -0
- package/dist/math/cos.d.ts +9 -0
- package/dist/math/cos.d.ts.map +1 -0
- package/dist/math/countif.d.ts +9 -0
- package/dist/math/countif.d.ts.map +1 -0
- package/dist/math/countifs.d.ts +10 -0
- package/dist/math/countifs.d.ts.map +1 -0
- package/dist/math/even.d.ts +9 -0
- package/dist/math/even.d.ts.map +1 -0
- package/dist/math/exp.d.ts +10 -0
- package/dist/math/exp.d.ts.map +1 -0
- package/dist/math/fact.d.ts +9 -0
- package/dist/math/fact.d.ts.map +1 -0
- package/dist/math/index.d.ts +4 -0
- package/dist/math/index.d.ts.map +1 -0
- package/dist/math/index.js +1019 -0
- package/dist/math/int.d.ts +9 -0
- package/dist/math/int.d.ts.map +1 -0
- package/dist/math/iseven.d.ts +9 -0
- package/dist/math/iseven.d.ts.map +1 -0
- package/dist/math/isodd.d.ts +9 -0
- package/dist/math/isodd.d.ts.map +1 -0
- package/dist/math/lcm.d.ts +10 -0
- package/dist/math/lcm.d.ts.map +1 -0
- package/dist/math/ln.d.ts +9 -0
- package/dist/math/ln.d.ts.map +1 -0
- package/dist/math/log.d.ts +9 -0
- package/dist/math/log.d.ts.map +1 -0
- package/dist/math/log10.d.ts +9 -0
- package/dist/math/log10.d.ts.map +1 -0
- package/dist/math/mdeterm.d.ts +11 -0
- package/dist/math/mdeterm.d.ts.map +1 -0
- package/dist/math/minverse.d.ts +12 -0
- package/dist/math/minverse.d.ts.map +1 -0
- package/dist/math/mmult.d.ts +11 -0
- package/dist/math/mmult.d.ts.map +1 -0
- package/dist/math/mod.d.ts +10 -0
- package/dist/math/mod.d.ts.map +1 -0
- package/dist/math/odd.d.ts +9 -0
- package/dist/math/odd.d.ts.map +1 -0
- package/dist/math/pi.d.ts +9 -0
- package/dist/math/pi.d.ts.map +1 -0
- package/dist/math/product.d.ts +10 -0
- package/dist/math/product.d.ts.map +1 -0
- package/dist/math/radians.d.ts +9 -0
- package/dist/math/radians.d.ts.map +1 -0
- package/dist/math/rand.d.ts +9 -0
- package/dist/math/rand.d.ts.map +1 -0
- package/dist/math/round.d.ts +9 -0
- package/dist/math/round.d.ts.map +1 -0
- package/dist/math/rounddown.d.ts +9 -0
- package/dist/math/rounddown.d.ts.map +1 -0
- package/dist/math/roundup.d.ts +9 -0
- package/dist/math/roundup.d.ts.map +1 -0
- package/dist/math/sequence.d.ts +11 -0
- package/dist/math/sequence.d.ts.map +1 -0
- package/dist/math/sign.d.ts +9 -0
- package/dist/math/sign.d.ts.map +1 -0
- package/dist/math/sin.d.ts +9 -0
- package/dist/math/sin.d.ts.map +1 -0
- package/dist/math/sqrt.d.ts +9 -0
- package/dist/math/sqrt.d.ts.map +1 -0
- package/dist/math/sumif.d.ts +9 -0
- package/dist/math/sumif.d.ts.map +1 -0
- package/dist/math/sumifs.d.ts +10 -0
- package/dist/math/sumifs.d.ts.map +1 -0
- package/dist/math/sumproduct.d.ts +10 -0
- package/dist/math/sumproduct.d.ts.map +1 -0
- package/dist/math/sumsq.d.ts +9 -0
- package/dist/math/sumsq.d.ts.map +1 -0
- package/dist/math/tan.d.ts +9 -0
- package/dist/math/tan.d.ts.map +1 -0
- package/dist/math/transpose.d.ts +11 -0
- package/dist/math/transpose.d.ts.map +1 -0
- package/dist/math/trunc.d.ts +9 -0
- package/dist/math/trunc.d.ts.map +1 -0
- package/dist/math/unaryPercent.d.ts +9 -0
- package/dist/math/unaryPercent.d.ts.map +1 -0
- package/dist/math/uplus.d.ts +9 -0
- package/dist/math/uplus.d.ts.map +1 -0
- package/dist/statistics/averageif.d.ts +9 -0
- package/dist/statistics/averageif.d.ts.map +1 -0
- package/dist/statistics/averageifs.d.ts +10 -0
- package/dist/statistics/averageifs.d.ts.map +1 -0
- package/dist/statistics/correl.d.ts +10 -0
- package/dist/statistics/correl.d.ts.map +1 -0
- package/dist/statistics/covariance_s.d.ts +10 -0
- package/dist/statistics/covariance_s.d.ts.map +1 -0
- package/dist/statistics/index.d.ts +4 -0
- package/dist/statistics/index.d.ts.map +1 -0
- package/dist/statistics/index.js +663 -0
- package/dist/statistics/median.d.ts +10 -0
- package/dist/statistics/median.d.ts.map +1 -0
- package/dist/statistics/mode_sngl.d.ts +10 -0
- package/dist/statistics/mode_sngl.d.ts.map +1 -0
- package/dist/statistics/percentile_inc.d.ts +10 -0
- package/dist/statistics/percentile_inc.d.ts.map +1 -0
- package/dist/statistics/quartile_inc.d.ts +10 -0
- package/dist/statistics/quartile_inc.d.ts.map +1 -0
- package/dist/statistics/rank_eq.d.ts +10 -0
- package/dist/statistics/rank_eq.d.ts.map +1 -0
- package/dist/statistics/rsq.d.ts +10 -0
- package/dist/statistics/rsq.d.ts.map +1 -0
- package/dist/statistics/stdev_p.d.ts +10 -0
- package/dist/statistics/stdev_p.d.ts.map +1 -0
- package/dist/statistics/stdev_s.d.ts +10 -0
- package/dist/statistics/stdev_s.d.ts.map +1 -0
- package/dist/statistics/t_test.d.ts +10 -0
- package/dist/statistics/t_test.d.ts.map +1 -0
- package/dist/statistics/var_p.d.ts +10 -0
- package/dist/statistics/var_p.d.ts.map +1 -0
- package/dist/statistics/var_s.d.ts +10 -0
- package/dist/statistics/var_s.d.ts.map +1 -0
- package/dist/text/char.d.ts +9 -0
- package/dist/text/char.d.ts.map +1 -0
- package/dist/text/clean.d.ts +9 -0
- package/dist/text/clean.d.ts.map +1 -0
- package/dist/text/concatenate.d.ts +9 -0
- package/dist/text/concatenate.d.ts.map +1 -0
- package/dist/text/exact.d.ts +9 -0
- package/dist/text/exact.d.ts.map +1 -0
- package/dist/text/index.d.ts +4 -0
- package/dist/text/index.d.ts.map +1 -0
- package/dist/text/index.js +261 -0
- package/dist/text/join.d.ts +10 -0
- package/dist/text/join.d.ts.map +1 -0
- package/dist/text/lenb.d.ts +9 -0
- package/dist/text/lenb.d.ts.map +1 -0
- package/dist/text/lower.d.ts +9 -0
- package/dist/text/lower.d.ts.map +1 -0
- package/dist/text/proper.d.ts +9 -0
- package/dist/text/proper.d.ts.map +1 -0
- package/dist/text/replace.d.ts +10 -0
- package/dist/text/replace.d.ts.map +1 -0
- package/dist/text/rept.d.ts +10 -0
- package/dist/text/rept.d.ts.map +1 -0
- package/dist/text/trim.d.ts +9 -0
- package/dist/text/trim.d.ts.map +1 -0
- package/dist/text/unichar.d.ts +9 -0
- package/dist/text/unichar.d.ts.map +1 -0
- package/dist/text/unicode.d.ts +9 -0
- package/dist/text/unicode.d.ts.map +1 -0
- package/dist/text/upper.d.ts +9 -0
- package/dist/text/upper.d.ts.map +1 -0
- package/dist/time/__utils.d.ts +6 -0
- package/dist/time/__utils.d.ts.map +1 -0
- package/dist/time/date.d.ts +9 -0
- package/dist/time/date.d.ts.map +1 -0
- package/dist/time/day.d.ts +9 -0
- package/dist/time/day.d.ts.map +1 -0
- package/dist/time/days.d.ts +9 -0
- package/dist/time/days.d.ts.map +1 -0
- package/dist/time/hour.d.ts +9 -0
- package/dist/time/hour.d.ts.map +1 -0
- package/dist/time/index.d.ts +4 -0
- package/dist/time/index.d.ts.map +1 -0
- package/dist/time/index.js +212 -0
- package/dist/time/minute.d.ts +9 -0
- package/dist/time/minute.d.ts.map +1 -0
- package/dist/time/month.d.ts +9 -0
- package/dist/time/month.d.ts.map +1 -0
- package/dist/time/second.d.ts +9 -0
- package/dist/time/second.d.ts.map +1 -0
- package/dist/time/time.d.ts +9 -0
- package/dist/time/time.d.ts.map +1 -0
- package/dist/time/today.d.ts +9 -0
- package/dist/time/today.d.ts.map +1 -0
- package/dist/time/workday.d.ts +9 -0
- package/dist/time/workday.d.ts.map +1 -0
- package/dist/time/year.d.ts +9 -0
- package/dist/time/year.d.ts.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +86 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAS7D,qEAAqE;AACrE,eAAO,MAAM,YAAY,EAAE,eAQ1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { mathFunctions as l } from "./math/index.js";
|
|
2
|
+
import { statisticsFunctions as d } from "./statistics/index.js";
|
|
3
|
+
import { textFunctions as p } from "./text/index.js";
|
|
4
|
+
import { lookupFunctions as h } from "./lookup/index.js";
|
|
5
|
+
import { timeFunctions as m } from "./time/index.js";
|
|
6
|
+
import { BaseFunction as t, FormulaError as s, ensureBoolean as f, stripTable as c, Table as g, ensureNumber as y } from "@gridsheet/react-core";
|
|
7
|
+
const T = `Returns TRUE if an odd number of the arguments are logically true.
|
|
8
|
+
Returns FALSE if an even number of the arguments are logically true.`;
|
|
9
|
+
class A extends t {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.example = "XOR(A1=1, A2=2)", this.description = T, this.defs = [
|
|
12
|
+
{ name: "expression", description: "Logical expressions to evaluate.", acceptedTypes: ["boolean"], variadic: !0 }
|
|
13
|
+
], this.category = "logical";
|
|
14
|
+
}
|
|
15
|
+
main(...e) {
|
|
16
|
+
return e.reduce((n, i) => n !== i, !1);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const x = "Returns the first argument if it is not a #N/A error, otherwise returns the second argument.", a = class a extends t {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments), this.example = 'IFNA(A1, "N/A error occurred")', this.description = x, this.defs = [
|
|
22
|
+
{
|
|
23
|
+
name: "value",
|
|
24
|
+
description: "The value to return if it is not a #N/A error.",
|
|
25
|
+
acceptedTypes: ["any"],
|
|
26
|
+
errorTolerant: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "value_if_na",
|
|
30
|
+
description: "The value to return if the first argument is a #N/A error.",
|
|
31
|
+
optional: !0,
|
|
32
|
+
acceptedTypes: ["any"]
|
|
33
|
+
}
|
|
34
|
+
], this.category = "logical";
|
|
35
|
+
}
|
|
36
|
+
main(e, n) {
|
|
37
|
+
return s.is(e) && e.code === "#N/A" ? n : e;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
a.__name = "IFNA";
|
|
41
|
+
let o = a;
|
|
42
|
+
const v = `Evaluates multiple conditions and returns the value corresponding to the first TRUE condition.
|
|
43
|
+
Arguments must be supplied in (condition, value) pairs.`;
|
|
44
|
+
class R extends t {
|
|
45
|
+
constructor(e) {
|
|
46
|
+
super(e), this.example = 'IFS(A1>90, "A", A1>70, "B", A1>50, "C")', this.description = v, this.defs = [
|
|
47
|
+
{ name: "condition1", description: "First condition to evaluate.", acceptedTypes: ["boolean"] },
|
|
48
|
+
{ name: "value1", description: "Value to return if condition1 is TRUE.", acceptedTypes: ["any"] },
|
|
49
|
+
{
|
|
50
|
+
name: "condition2",
|
|
51
|
+
description: "Additional conditions.",
|
|
52
|
+
acceptedTypes: ["boolean"],
|
|
53
|
+
optional: !0,
|
|
54
|
+
variadic: !0
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "value2",
|
|
58
|
+
description: "Additional values.",
|
|
59
|
+
acceptedTypes: ["any"],
|
|
60
|
+
optional: !0,
|
|
61
|
+
variadic: !0
|
|
62
|
+
}
|
|
63
|
+
], this.category = "logical", this.lazyArgs = e.args;
|
|
64
|
+
}
|
|
65
|
+
call() {
|
|
66
|
+
if (this.lazyArgs.length < 2)
|
|
67
|
+
throw new s("#N/A", "IFS requires at least one condition-value pair.");
|
|
68
|
+
if (this.lazyArgs.length % 2 !== 0)
|
|
69
|
+
throw new s("#N/A", "IFS requires an even number of arguments (condition, value) pairs.");
|
|
70
|
+
for (let e = 0; e < this.lazyArgs.length; e += 2) {
|
|
71
|
+
const n = this.lazyArgs[e], i = this.lazyArgs[e + 1], u = n.evaluate({ table: this.table });
|
|
72
|
+
if (f(c({ value: u })))
|
|
73
|
+
return c({ value: i.evaluate({ table: this.table }) });
|
|
74
|
+
}
|
|
75
|
+
throw new s("#N/A", "No condition in IFS was met.");
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const E = {
|
|
79
|
+
xor: A,
|
|
80
|
+
ifna: o,
|
|
81
|
+
ifs: R
|
|
82
|
+
}, F = "Returns TRUE if the referenced cell contains a formula.";
|
|
83
|
+
class N extends t {
|
|
84
|
+
constructor() {
|
|
85
|
+
super(...arguments), this.example = "ISFORMULA(A1)", this.description = F, this.defs = [
|
|
86
|
+
{
|
|
87
|
+
name: "reference",
|
|
88
|
+
description: "The cell reference to check for a formula.",
|
|
89
|
+
acceptedTypes: ["reference"],
|
|
90
|
+
takesMatrix: !0,
|
|
91
|
+
errorTolerant: !0
|
|
92
|
+
}
|
|
93
|
+
], this.category = "information";
|
|
94
|
+
}
|
|
95
|
+
main(e) {
|
|
96
|
+
const n = e.getCellByPoint({ y: e.top, x: e.left }, "SYSTEM"), i = n == null ? void 0 : n.value;
|
|
97
|
+
return typeof i == "string" && i.startsWith("=");
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const I = "Returns TRUE if the referenced cell is empty.";
|
|
101
|
+
class b extends t {
|
|
102
|
+
constructor() {
|
|
103
|
+
super(...arguments), this.example = "ISBLANK(A1)", this.description = I, this.defs = [
|
|
104
|
+
{
|
|
105
|
+
name: "value",
|
|
106
|
+
description: "A reference to a cell to check for emptiness.",
|
|
107
|
+
acceptedTypes: ["any"],
|
|
108
|
+
errorTolerant: !0
|
|
109
|
+
}
|
|
110
|
+
], this.category = "information";
|
|
111
|
+
}
|
|
112
|
+
main(e) {
|
|
113
|
+
return e == null || e === "";
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const S = "Returns TRUE if the value is any error other than #N/A.";
|
|
117
|
+
class U extends t {
|
|
118
|
+
constructor() {
|
|
119
|
+
super(...arguments), this.example = "ISERR(A1)", this.description = S, this.defs = [
|
|
120
|
+
{
|
|
121
|
+
name: "value",
|
|
122
|
+
description: "The value to check for a non-#N/A error.",
|
|
123
|
+
acceptedTypes: ["any"],
|
|
124
|
+
errorTolerant: !0
|
|
125
|
+
}
|
|
126
|
+
], this.category = "information";
|
|
127
|
+
}
|
|
128
|
+
main(e) {
|
|
129
|
+
return e instanceof Error ? !0 : s.is(e) && e.code !== "#N/A";
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const k = "Returns TRUE if the value is any error value.";
|
|
133
|
+
class $ extends t {
|
|
134
|
+
constructor() {
|
|
135
|
+
super(...arguments), this.example = "ISERROR(A1)", this.description = k, this.defs = [
|
|
136
|
+
{
|
|
137
|
+
name: "value",
|
|
138
|
+
description: "The value to check for an error.",
|
|
139
|
+
acceptedTypes: ["any"],
|
|
140
|
+
errorTolerant: !0
|
|
141
|
+
}
|
|
142
|
+
], this.category = "information";
|
|
143
|
+
}
|
|
144
|
+
main(e) {
|
|
145
|
+
return s.is(e) || e instanceof Error;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const w = "Returns TRUE if the value is TRUE or FALSE.";
|
|
149
|
+
class L extends t {
|
|
150
|
+
constructor() {
|
|
151
|
+
super(...arguments), this.example = "ISLOGICAL(TRUE)", this.description = w, this.defs = [
|
|
152
|
+
{
|
|
153
|
+
name: "value",
|
|
154
|
+
description: "The value to check for being logical (TRUE or FALSE).",
|
|
155
|
+
acceptedTypes: ["any"],
|
|
156
|
+
errorTolerant: !0
|
|
157
|
+
}
|
|
158
|
+
], this.category = "information";
|
|
159
|
+
}
|
|
160
|
+
main(e) {
|
|
161
|
+
return typeof e == "boolean";
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const B = "Returns TRUE if the value is the #N/A error value.";
|
|
165
|
+
class z extends t {
|
|
166
|
+
constructor() {
|
|
167
|
+
super(...arguments), this.example = "ISNA(A1)", this.description = B, this.defs = [
|
|
168
|
+
{
|
|
169
|
+
name: "value",
|
|
170
|
+
description: "The value to check for the #N/A error.",
|
|
171
|
+
acceptedTypes: ["any"],
|
|
172
|
+
errorTolerant: !0
|
|
173
|
+
}
|
|
174
|
+
], this.category = "information";
|
|
175
|
+
}
|
|
176
|
+
main(e) {
|
|
177
|
+
return s.is(e) && e.code === "#N/A";
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const M = "Returns TRUE if the value is not a text string.";
|
|
181
|
+
class O extends t {
|
|
182
|
+
constructor() {
|
|
183
|
+
super(...arguments), this.example = "ISNONTEXT(A1)", this.description = M, this.defs = [
|
|
184
|
+
{
|
|
185
|
+
name: "value",
|
|
186
|
+
description: "The value to check for being non-text.",
|
|
187
|
+
acceptedTypes: ["any"],
|
|
188
|
+
errorTolerant: !0
|
|
189
|
+
}
|
|
190
|
+
], this.category = "information";
|
|
191
|
+
}
|
|
192
|
+
main(e) {
|
|
193
|
+
return typeof e != "string";
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const X = "Returns TRUE if the value is a text string.";
|
|
197
|
+
class _ extends t {
|
|
198
|
+
constructor() {
|
|
199
|
+
super(...arguments), this.example = "ISTEXT(A1)", this.description = X, this.defs = [
|
|
200
|
+
{
|
|
201
|
+
name: "value",
|
|
202
|
+
description: "The value to check for being text.",
|
|
203
|
+
acceptedTypes: ["any"],
|
|
204
|
+
errorTolerant: !0
|
|
205
|
+
}
|
|
206
|
+
], this.category = "information";
|
|
207
|
+
}
|
|
208
|
+
main(e) {
|
|
209
|
+
return typeof e == "string";
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const C = "Returns TRUE if the value is a valid cell reference.";
|
|
213
|
+
class D extends t {
|
|
214
|
+
constructor() {
|
|
215
|
+
super(...arguments), this.example = "ISREF(A1)", this.description = C, this.defs = [
|
|
216
|
+
{
|
|
217
|
+
name: "value",
|
|
218
|
+
description: "The value to check for being a cell reference.",
|
|
219
|
+
acceptedTypes: ["any"],
|
|
220
|
+
takesMatrix: !0,
|
|
221
|
+
errorTolerant: !0
|
|
222
|
+
}
|
|
223
|
+
], this.category = "information";
|
|
224
|
+
}
|
|
225
|
+
main(e) {
|
|
226
|
+
return g.is(e);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
const q = "Returns the argument provided as a number.";
|
|
230
|
+
class G extends t {
|
|
231
|
+
constructor() {
|
|
232
|
+
super(...arguments), this.example = "N(A1)", this.description = q, this.defs = [
|
|
233
|
+
{
|
|
234
|
+
name: "value",
|
|
235
|
+
description: "The value to convert to a number.",
|
|
236
|
+
acceptedTypes: ["any"]
|
|
237
|
+
}
|
|
238
|
+
], this.category = "information";
|
|
239
|
+
}
|
|
240
|
+
main(e) {
|
|
241
|
+
if (typeof e == "boolean")
|
|
242
|
+
return e ? 1 : 0;
|
|
243
|
+
if (e instanceof Date)
|
|
244
|
+
return e.getTime();
|
|
245
|
+
if (e == null || e === "")
|
|
246
|
+
return 0;
|
|
247
|
+
try {
|
|
248
|
+
return y(e);
|
|
249
|
+
} catch {
|
|
250
|
+
return 0;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
const j = 'Returns the error value #N/A, meaning "value not available".';
|
|
255
|
+
class H extends t {
|
|
256
|
+
constructor() {
|
|
257
|
+
super(...arguments), this.example = "NA()", this.description = j, this.defs = [], this.category = "information";
|
|
258
|
+
}
|
|
259
|
+
main() {
|
|
260
|
+
throw new s("#N/A", "N/A");
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
const K = "Returns TRUE if the value is a date.";
|
|
264
|
+
class P extends t {
|
|
265
|
+
constructor() {
|
|
266
|
+
super(...arguments), this.example = "ISDATE(A1)", this.description = K, this.defs = [
|
|
267
|
+
{
|
|
268
|
+
name: "value",
|
|
269
|
+
description: "The value to check for being a date.",
|
|
270
|
+
acceptedTypes: ["any"],
|
|
271
|
+
errorTolerant: !0
|
|
272
|
+
}
|
|
273
|
+
], this.category = "information";
|
|
274
|
+
}
|
|
275
|
+
main(e) {
|
|
276
|
+
return e instanceof Date && !isNaN(e.getTime());
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
const V = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, W = "Returns TRUE if the value is a valid email address.";
|
|
280
|
+
class Y extends t {
|
|
281
|
+
constructor() {
|
|
282
|
+
super(...arguments), this.example = "ISEMAIL(A1)", this.description = W, this.defs = [
|
|
283
|
+
{
|
|
284
|
+
name: "value",
|
|
285
|
+
description: "The value to check for being a valid email address.",
|
|
286
|
+
acceptedTypes: ["any"],
|
|
287
|
+
errorTolerant: !0
|
|
288
|
+
}
|
|
289
|
+
], this.category = "information";
|
|
290
|
+
}
|
|
291
|
+
main(e) {
|
|
292
|
+
return typeof e != "string" ? !1 : V.test(e);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const J = "Returns the total number of sheets in the spreadsheet.";
|
|
296
|
+
class Q extends t {
|
|
297
|
+
constructor() {
|
|
298
|
+
super(...arguments), this.example = "SHEETS()", this.description = J, this.defs = [], this.category = "information";
|
|
299
|
+
}
|
|
300
|
+
main() {
|
|
301
|
+
const e = this.table.wire.sheetIdsByName, n = Object.keys(e).length;
|
|
302
|
+
return n === 0 ? 1 : n;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
const Z = {
|
|
306
|
+
isformula: N,
|
|
307
|
+
isblank: b,
|
|
308
|
+
iserr: U,
|
|
309
|
+
iserror: $,
|
|
310
|
+
islogical: L,
|
|
311
|
+
isna: z,
|
|
312
|
+
isnontext: O,
|
|
313
|
+
istext: _,
|
|
314
|
+
isref: D,
|
|
315
|
+
n: G,
|
|
316
|
+
na: H,
|
|
317
|
+
isdate: P,
|
|
318
|
+
isemail: Y,
|
|
319
|
+
sheets: Q
|
|
320
|
+
}, ae = {
|
|
321
|
+
...l,
|
|
322
|
+
...d,
|
|
323
|
+
...p,
|
|
324
|
+
...h,
|
|
325
|
+
...m,
|
|
326
|
+
...E,
|
|
327
|
+
...Z
|
|
328
|
+
};
|
|
329
|
+
export {
|
|
330
|
+
ae as allFunctions,
|
|
331
|
+
ae as default
|
|
332
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/information/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAgB7D,eAAO,MAAM,oBAAoB,EAAE,eAelC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IsblankFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=isblank.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isblank.d.ts","sourceRoot":"","sources":["../../src/information/isblank.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAAiB;IACxB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IsdateFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=isdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isdate.d.ts","sourceRoot":"","sources":["../../src/information/isdate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAgB;IACvB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IsemailFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=isemail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isemail.d.ts","sourceRoot":"","sources":["../../src/information/isemail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAAiB;IACxB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAM1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IserrFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=iserr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iserr.d.ts","sourceRoot":"","sources":["../../src/information/iserr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAiB,MAAM,uBAAuB,CAAC;AACvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAM1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FormulaError, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IserrorFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): value is FormulaError | Error;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=iserror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iserror.d.ts","sourceRoot":"","sources":["../../src/information/iserror.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAiB,MAAM,uBAAuB,CAAC;AACvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAAiB;IACxB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, Table, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IsformulaFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(ref: Table): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=isformula.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isformula.d.ts","sourceRoot":"","sources":["../../src/information/isformula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,OAAO,SAAmB;IAC1B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK;CAK1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IslogicalFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): value is boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=islogical.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"islogical.d.ts","sourceRoot":"","sources":["../../src/information/islogical.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,OAAO,SAAqB;IAC5B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IsnaFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=isna.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isna.d.ts","sourceRoot":"","sources":["../../src/information/isna.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAiB,MAAM,uBAAuB,CAAC;AACvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAc;IACrB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IsnontextFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=isnontext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isnontext.d.ts","sourceRoot":"","sources":["../../src/information/isnontext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,OAAO,SAAmB;IAC1B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, Table, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IsrefFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): value is Table;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=isref.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isref.d.ts","sourceRoot":"","sources":["../../src/information/isref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IstextFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): value is string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=istext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"istext.d.ts","sourceRoot":"","sources":["../../src/information/istext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAgB;IACvB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class NFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): number;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"n.d.ts","sourceRoot":"","sources":["../../src/information/n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,SAAU,SAAQ,YAAY;IACzC,OAAO,SAAW;IAClB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAgB1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class NaFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=na.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"na.d.ts","sourceRoot":"","sources":["../../src/information/na.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,SAAU;IACjB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAAM;IACxC,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI;CAGf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class SheetsFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(): number;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=sheets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheets.d.ts","sourceRoot":"","sources":["../../src/information/sheets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAc;IACrB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAAM;IACxC,QAAQ,EAAE,gBAAgB,CAAiB;IAE3C,SAAS,CAAC,IAAI;CAMf"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IfnaFunction extends BaseFunction {
|
|
3
|
+
static __name: string;
|
|
4
|
+
example: string;
|
|
5
|
+
description: string;
|
|
6
|
+
defs: FunctionArgumentDefinition[];
|
|
7
|
+
category: "logical";
|
|
8
|
+
protected main(value: any, valueIfNa?: any): any;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ifna.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ifna.d.ts","sourceRoot":"","sources":["../../src/logical/ifna.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAIxE,qBAAa,YAAa,SAAQ,YAAY;IAC5C,MAAM,CAAC,MAAM,SAAU;IACvB,OAAO,SAAoC;IAC3C,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAahC;IAEF,QAAQ,EAAG,SAAS,CAAU;IAE9B,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG;CAM3C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseFunction, FunctionProps, FunctionArgumentDefinition } from '@gridsheet/react-core';
|
|
2
|
+
export declare class IfsFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: "logical";
|
|
7
|
+
private lazyArgs;
|
|
8
|
+
constructor(props: FunctionProps);
|
|
9
|
+
call(): any;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ifs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ifs.d.ts","sourceRoot":"","sources":["../../src/logical/ifs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAO5F,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAA6C;IACpD,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAiBhC;IACF,QAAQ,EAAG,SAAS,CAAU;IAG9B,OAAO,CAAC,QAAQ,CAAwB;gBAE5B,KAAK,EAAE,aAAa;IAKzB,IAAI;CAsBZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logical/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAK7D,eAAO,MAAM,gBAAgB,EAAE,eAI9B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class XorFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(...values: boolean[]): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=xor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xor.d.ts","sourceRoot":"","sources":["../../src/logical/xor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAqB;IAC5B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAEhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE;CAIpC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class ColumnFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected toMatrix(value: any): any[][];
|
|
8
|
+
protected toScalar(value: any): any;
|
|
9
|
+
protected validate(args: any[]): any[];
|
|
10
|
+
protected main(left: number): number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=column.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column.d.ts","sourceRoot":"","sources":["../../src/lookup/column.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAgB;IACvB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAY;IAEtC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,EAAE,EAAE;IAgBvC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAQnC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAYtC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM;CAG5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class ColumnsFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(value: any): number;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../src/lookup/columns.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAAoB;IAC3B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAY;IAEtC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAI1B"}
|