@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class PercentileIncFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(nums: number[], k: number): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=percentile_inc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"percentile_inc.d.ts","sourceRoot":"","sources":["../../src/statistics/percentile_inc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,qBAAsB,SAAQ,YAAY;IACrD,OAAO,SAAkC;IACzC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAwBtC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM;CAOzC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class QuartileIncFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(nums: number[], q: number): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=quartile_inc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quartile_inc.d.ts","sourceRoot":"","sources":["../../src/statistics/quartile_inc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,mBAAoB,SAAQ,YAAY;IACnD,OAAO,SAA8B;IACrC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAYhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAwBtC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM;CAQzC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class RankEqFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(v: number, nums: number[], isAscending: boolean): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=rank_eq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rank_eq.d.ts","sourceRoot":"","sources":["../../src/statistics/rank_eq.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAA0B;IACjC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAchC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAyBtC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,OAAO;CAI/D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class RsqFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(ys: number[], xs: number[]): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=rsq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rsq.d.ts","sourceRoot":"","sources":["../../src/statistics/rsq.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAyB;IAChC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAahC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAoCtC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE;CAsB1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class StdevPFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(nums: number[]): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=stdev_p.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stdev_p.d.ts","sourceRoot":"","sources":["../../src/statistics/stdev_p.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAsB;IAC7B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAsBtC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;CAK9B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class StdevSFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(nums: number[]): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=stdev_s.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stdev_s.d.ts","sourceRoot":"","sources":["../../src/statistics/stdev_s.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAsB;IAC7B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAsBtC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;CAK9B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class TTestFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(a: number[], b: number[], t: number, tp: number): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=t_test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"t_test.d.ts","sourceRoot":"","sources":["../../src/statistics/t_test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAyF9D,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAoC;IAC3C,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAShC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IA6CtC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAoC/D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class VarPFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(nums: number[]): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=var_p.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"var_p.d.ts","sourceRoot":"","sources":["../../src/statistics/var_p.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAoB;IAC3B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAsBtC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;CAI9B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class VarSFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(nums: number[]): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=var_s.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"var_s.d.ts","sourceRoot":"","sources":["../../src/statistics/var_s.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAc,MAAM,uBAAuB,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAoB;IAC3B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAsBtC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;CAI9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class CharFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(number: number): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=char.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"char.d.ts","sourceRoot":"","sources":["../../src/text/char.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,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAc;IACrB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAEhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM;CAO9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class CleanFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text: any): any;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=clean.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean.d.ts","sourceRoot":"","sources":["../../src/text/clean.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,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG;CAMzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class ConcatenateFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(...values: any[]): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=concatenate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concatenate.d.ts","sourceRoot":"","sources":["../../src/text/concatenate.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,mBAAoB,SAAQ,YAAY;IACnD,OAAO,SAAmC;IAC1C,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAGhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class ExactFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text1: any, text2: any): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=exact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exact.d.ts","sourceRoot":"","sources":["../../src/text/exact.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,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAoB;IAC3B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG;CAGtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAgB7D,eAAO,MAAM,aAAa,EAAE,eAe3B,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { BaseFunction as n, ensureString as s, FormulaError as c, ensureNumber as d, Table as l, solveTable as h, stripTable as m } from "@gridsheet/react-core";
|
|
2
|
+
const g = "Returns the concatenation of the values.";
|
|
3
|
+
class x extends n {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments), this.example = 'CONCATENATE("Hello", "World")', this.description = g, this.defs = [
|
|
6
|
+
{
|
|
7
|
+
name: "value",
|
|
8
|
+
description: "Values to concatenate.",
|
|
9
|
+
acceptedTypes: ["string", "number", "boolean"],
|
|
10
|
+
variadic: !0
|
|
11
|
+
}
|
|
12
|
+
], this.category = "text";
|
|
13
|
+
}
|
|
14
|
+
main(...e) {
|
|
15
|
+
return e.flat().map(String).join("");
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const f = "Returns the number of bytes in the length of the string.";
|
|
19
|
+
class b extends n {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments), this.example = "LENB(A2)", this.description = f, this.defs = [
|
|
22
|
+
{
|
|
23
|
+
name: "text",
|
|
24
|
+
description: "A text to be returned the length of the bytes.",
|
|
25
|
+
acceptedTypes: ["string", "number", "boolean"]
|
|
26
|
+
}
|
|
27
|
+
], this.category = "text";
|
|
28
|
+
}
|
|
29
|
+
main(e) {
|
|
30
|
+
return e = String(e), encodeURIComponent(e).replace(/%../g, "x").length;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const T = "Tests whether two strings are exactly the same (case-sensitive). Returns TRUE or FALSE.";
|
|
34
|
+
class y extends n {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments), this.example = 'EXACT("山", A3)', this.description = T, this.defs = [
|
|
37
|
+
{ name: "text1", description: "First string to compare.", acceptedTypes: ["string", "number", "boolean"] },
|
|
38
|
+
{ name: "text2", description: "Second string to compare.", acceptedTypes: ["string", "number", "boolean"] }
|
|
39
|
+
], this.category = "text";
|
|
40
|
+
}
|
|
41
|
+
main(e, t) {
|
|
42
|
+
return String(e) === String(t);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const v = `Returns the Unicode code point (decimal) of the first character of the text.
|
|
46
|
+
Numbers passed as argument are treated as strings.`;
|
|
47
|
+
class w extends n {
|
|
48
|
+
constructor() {
|
|
49
|
+
super(...arguments), this.example = 'UNICODE("A")', this.description = v, this.defs = [
|
|
50
|
+
{
|
|
51
|
+
name: "text",
|
|
52
|
+
description: "The text whose first character Unicode value is returned.",
|
|
53
|
+
acceptedTypes: ["string", "number", "boolean"]
|
|
54
|
+
}
|
|
55
|
+
], this.category = "text";
|
|
56
|
+
}
|
|
57
|
+
main(e) {
|
|
58
|
+
if (e = s(e), e.length === 0)
|
|
59
|
+
throw new c("#VALUE!", "UNICODE: text must not be empty.");
|
|
60
|
+
const t = e.codePointAt(0);
|
|
61
|
+
if (t === void 0)
|
|
62
|
+
throw new c("#VALUE!", "UNICODE: unable to determine Unicode value.");
|
|
63
|
+
return t;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const C = `Replaces part of a text string with a different text string.
|
|
67
|
+
position is 1-based.`;
|
|
68
|
+
class A extends n {
|
|
69
|
+
constructor() {
|
|
70
|
+
super(...arguments), this.example = 'REPLACE("Hello World", 7, 5, "Excel")', this.description = C, this.defs = [
|
|
71
|
+
{ name: "text", description: "The original text string.", acceptedTypes: ["string"] },
|
|
72
|
+
{ name: "position", description: "The 1-based position at which to start replacing.", acceptedTypes: ["number"] },
|
|
73
|
+
{ name: "length", description: "The number of characters to replace.", acceptedTypes: ["number"] },
|
|
74
|
+
{ name: "new_text", description: "The replacement text.", acceptedTypes: ["string"] }
|
|
75
|
+
], this.category = "text";
|
|
76
|
+
}
|
|
77
|
+
validate(e) {
|
|
78
|
+
return e = super.validate(e), e[0] = s(e[0]), e[1] = d(e[1]), e[2] = d(e[2]), e[3] = s(e[3]), e;
|
|
79
|
+
}
|
|
80
|
+
main(e, t, i, o) {
|
|
81
|
+
const a = [...e], p = Math.max(0, t - 1);
|
|
82
|
+
return a.splice(p, i, o), a.join("");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const U = "Removes all non-printable ASCII characters (code points 0–31) from text.";
|
|
86
|
+
class E extends n {
|
|
87
|
+
constructor() {
|
|
88
|
+
super(...arguments), this.example = "CLEAN(A1)", this.description = U, this.defs = [
|
|
89
|
+
{
|
|
90
|
+
name: "text",
|
|
91
|
+
description: "The text from which to remove non-printable characters.",
|
|
92
|
+
acceptedTypes: ["string", "number", "boolean"]
|
|
93
|
+
}
|
|
94
|
+
], this.category = "text";
|
|
95
|
+
}
|
|
96
|
+
main(e) {
|
|
97
|
+
return e = String(e), e.replace(/[\x00-\x1F]/g, "");
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const R = "Converts a number to a character according to the current Unicode table.";
|
|
101
|
+
class F extends n {
|
|
102
|
+
constructor() {
|
|
103
|
+
super(...arguments), this.example = "CHAR(65)", this.description = R, this.defs = [
|
|
104
|
+
{ name: "number", description: "The Unicode code point to convert to a character.", acceptedTypes: ["number"] }
|
|
105
|
+
], this.category = "text";
|
|
106
|
+
}
|
|
107
|
+
main(e) {
|
|
108
|
+
const t = Math.trunc(e);
|
|
109
|
+
if (t < 1 || t > 1114111)
|
|
110
|
+
throw new c("#VALUE!", `CHAR: ${e} is not a valid Unicode code point.`);
|
|
111
|
+
return String.fromCodePoint(t);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const L = "Returns the Unicode character corresponding to the given numeric code point.";
|
|
115
|
+
class N extends n {
|
|
116
|
+
constructor() {
|
|
117
|
+
super(...arguments), this.example = "UNICHAR(127843)", this.description = L, this.defs = [
|
|
118
|
+
{ name: "number", description: "The Unicode code point (decimal) to convert.", acceptedTypes: ["number"] }
|
|
119
|
+
], this.category = "text";
|
|
120
|
+
}
|
|
121
|
+
main(e) {
|
|
122
|
+
const t = Math.trunc(e);
|
|
123
|
+
if (t < 1 || t > 1114111)
|
|
124
|
+
throw new c("#VALUE!", `UNICHAR: ${e} is not a valid Unicode code point.`);
|
|
125
|
+
return String.fromCodePoint(t);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
const $ = "Repeats text a specified number of times.";
|
|
129
|
+
class P extends n {
|
|
130
|
+
constructor() {
|
|
131
|
+
super(...arguments), this.example = 'REPT("ha", 3)', this.description = $, this.defs = [
|
|
132
|
+
{ name: "text", description: "The text to repeat.", acceptedTypes: ["string"] },
|
|
133
|
+
{ name: "number_of_times", description: "The number of times to repeat the text.", acceptedTypes: ["number"] }
|
|
134
|
+
], this.category = "text";
|
|
135
|
+
}
|
|
136
|
+
validate(e) {
|
|
137
|
+
if (e = super.validate(e), e[1] < 0)
|
|
138
|
+
throw new c("#VALUE!", "Number of times must be non-negative.");
|
|
139
|
+
return e;
|
|
140
|
+
}
|
|
141
|
+
main(e, t) {
|
|
142
|
+
return e = s(e), t = d(t), e.repeat(Math.trunc(t));
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const I = `Joins the elements of one or more 1D arrays or values using a delimiter.
|
|
146
|
+
If the delimiter is omitted the result is similar to CONCATENATE.`;
|
|
147
|
+
class S extends n {
|
|
148
|
+
constructor() {
|
|
149
|
+
super(...arguments), this.example = 'JOIN(", ", A1:A5)', this.description = I, this.defs = [
|
|
150
|
+
{ name: "delimiter", description: "The string to place between joined values.", acceptedTypes: ["string"] },
|
|
151
|
+
{
|
|
152
|
+
name: "value_or_array",
|
|
153
|
+
description: "Values or arrays to join.",
|
|
154
|
+
takesMatrix: !0,
|
|
155
|
+
acceptedTypes: ["any", "matrix"],
|
|
156
|
+
variadic: !0
|
|
157
|
+
}
|
|
158
|
+
], this.category = "text";
|
|
159
|
+
}
|
|
160
|
+
validate(e) {
|
|
161
|
+
const t = super.validate(e);
|
|
162
|
+
for (let i = 1; i < t.length; i++) {
|
|
163
|
+
const o = this.toMatrix(t[i]);
|
|
164
|
+
if (o.length > 1 && o[0].length > 1)
|
|
165
|
+
throw new c("#VALUE!", "JOIN requires each value_or_array argument to be a single row or column.");
|
|
166
|
+
}
|
|
167
|
+
return t;
|
|
168
|
+
}
|
|
169
|
+
main(e, ...t) {
|
|
170
|
+
const i = [];
|
|
171
|
+
for (const o of t)
|
|
172
|
+
if (o instanceof l) {
|
|
173
|
+
const a = h({ table: o });
|
|
174
|
+
for (const p of a)
|
|
175
|
+
for (const u of p)
|
|
176
|
+
i.push(s(m({ value: u })));
|
|
177
|
+
} else
|
|
178
|
+
i.push(s(o));
|
|
179
|
+
return i.join(e);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const O = "Converts all characters in a string to lowercase.";
|
|
183
|
+
class H extends n {
|
|
184
|
+
constructor() {
|
|
185
|
+
super(...arguments), this.example = 'LOWER("Hello World")', this.description = O, this.defs = [
|
|
186
|
+
{
|
|
187
|
+
name: "text",
|
|
188
|
+
description: "The string to convert to lowercase.",
|
|
189
|
+
acceptedTypes: ["string", "number", "boolean"]
|
|
190
|
+
}
|
|
191
|
+
], this.category = "text";
|
|
192
|
+
}
|
|
193
|
+
main(e) {
|
|
194
|
+
return s(e).toLowerCase();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
const V = "Converts all characters in a string to uppercase.";
|
|
198
|
+
class M extends n {
|
|
199
|
+
constructor() {
|
|
200
|
+
super(...arguments), this.example = 'UPPER("hello world")', this.description = V, this.defs = [
|
|
201
|
+
{
|
|
202
|
+
name: "text",
|
|
203
|
+
description: "The string to convert to uppercase.",
|
|
204
|
+
acceptedTypes: ["string", "number", "boolean"]
|
|
205
|
+
}
|
|
206
|
+
], this.category = "text";
|
|
207
|
+
}
|
|
208
|
+
main(e) {
|
|
209
|
+
return s(e).toUpperCase();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const _ = "Capitalizes the first letter of each word in a string.";
|
|
213
|
+
class j extends n {
|
|
214
|
+
constructor() {
|
|
215
|
+
super(...arguments), this.example = 'PROPER("hello world")', this.description = _, this.defs = [
|
|
216
|
+
{
|
|
217
|
+
name: "text",
|
|
218
|
+
description: "The string to convert to title case.",
|
|
219
|
+
acceptedTypes: ["string", "number", "boolean"]
|
|
220
|
+
}
|
|
221
|
+
], this.category = "text";
|
|
222
|
+
}
|
|
223
|
+
main(e) {
|
|
224
|
+
return e = s(e), e.replace(new RegExp("\\p{L}+", "gu"), (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase());
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
const W = "Removes leading and trailing spaces from a string.";
|
|
228
|
+
class D extends n {
|
|
229
|
+
constructor() {
|
|
230
|
+
super(...arguments), this.example = 'TRIM(" Hello World ")', this.description = W, this.defs = [
|
|
231
|
+
{
|
|
232
|
+
name: "text",
|
|
233
|
+
description: "The string from which to remove leading and trailing spaces.",
|
|
234
|
+
acceptedTypes: ["string", "number", "boolean"]
|
|
235
|
+
}
|
|
236
|
+
], this.category = "text";
|
|
237
|
+
}
|
|
238
|
+
main(e) {
|
|
239
|
+
return s(e).trim();
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
const B = {
|
|
243
|
+
concatenate: x,
|
|
244
|
+
lenb: b,
|
|
245
|
+
exact: y,
|
|
246
|
+
unicode: w,
|
|
247
|
+
replace: A,
|
|
248
|
+
clean: E,
|
|
249
|
+
char: F,
|
|
250
|
+
unichar: N,
|
|
251
|
+
rept: P,
|
|
252
|
+
join: S,
|
|
253
|
+
lower: H,
|
|
254
|
+
upper: M,
|
|
255
|
+
proper: j,
|
|
256
|
+
trim: D
|
|
257
|
+
};
|
|
258
|
+
export {
|
|
259
|
+
B as default,
|
|
260
|
+
B as textFunctions
|
|
261
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class JoinFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(delimiter: string, ...rest: any[]): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=join.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../src/text/join.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,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAuB;IAC9B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAShC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAWtC,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;CAgBjD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class LenbFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text: any): number;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=lenb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lenb.d.ts","sourceRoot":"","sources":["../../src/text/lenb.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,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAc;IACrB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG;CAIzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class LowerFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text: any): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=lower.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lower.d.ts","sourceRoot":"","sources":["../../src/text/lower.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,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAA0B;IACjC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG;CAIzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class ProperFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text: any): any;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=proper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proper.d.ts","sourceRoot":"","sources":["../../src/text/proper.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,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAA2B;IAClC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG;CAIzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class ReplaceFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(text: string, position: number, length: number, newText: string): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=replace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace.d.ts","sourceRoot":"","sources":["../../src/text/replace.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,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAA2C;IAClD,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAKhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAStC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAO/E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class ReptFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
8
|
+
protected main(text: string, times: number): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=rept.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rept.d.ts","sourceRoot":"","sources":["../../src/text/rept.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,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAmB;IAC1B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAQtC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAK3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class TrimFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text: any): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=trim.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trim.d.ts","sourceRoot":"","sources":["../../src/text/trim.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,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAA6B;IACpC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG;CAIzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class UnicharFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(number: number): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=unichar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unichar.d.ts","sourceRoot":"","sources":["../../src/text/unichar.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,SAAqB;IAC5B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAEhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM;CAO9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class UnicodeFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text: any): any;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=unicode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unicode.d.ts","sourceRoot":"","sources":["../../src/text/unicode.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,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAAkB;IACzB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG;CAWzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFunction, FunctionArgumentDefinition, FunctionCategory } from '@gridsheet/react-core';
|
|
2
|
+
export declare class UpperFunction extends BaseFunction {
|
|
3
|
+
example: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text: any): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=upper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upper.d.ts","sourceRoot":"","sources":["../../src/text/upper.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,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAA0B;IACjC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG;CAIzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../src/time/__utils.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI,CAc3C"}
|