@sheetxl/formulas 0.8.0-beta.1 → 0.8.0-beta.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/README.md +15 -22
- package/browser/cjs/B6vy56yEA1I3B74O.cjs +1 -0
- package/browser/cjs/BcROQ4pvVajDQ1em.cjs +1 -0
- package/browser/cjs/{CRx1WvmgBjT8WVyB.cjs → C0g87ndP2zMUbX6f.cjs} +1 -1
- package/browser/cjs/C9q3zr8iCIoYDrdA.cjs +1 -0
- package/browser/cjs/CVHc_cJddJk7J3Zt.cjs +1 -0
- package/browser/cjs/{EeOVMRq7TuptFKTc.cjs → DF4l8xrxkcLkgExp.cjs} +1 -1
- package/browser/cjs/{Du4jBiFxRIF1OjD4.cjs → Dtxj9JR14A-uliu5.cjs} +1 -1
- package/browser/cjs/{CpJJh4UnFl1_qFui.cjs → Dx7GQ4ALtNG3kshu.cjs} +1 -1
- package/browser/cjs/index.cjs +1 -1
- package/browser/esm/{C7mAHEhFYDwSEU6O.mjs → -kS84bK3sUejOdg1.mjs} +1 -1
- package/browser/esm/{B7750ljsJF3qA9kU.mjs → 4OV2RO_CWP4nMkqC.mjs} +37 -3
- package/browser/esm/{BM1YhvA2ppUZ3QLB.mjs → B0Y4YjJhQJA8Muz4.mjs} +1 -1
- package/{node/esm/CCGjvL3YYwY09qF-.mjs → browser/esm/BJUX0gG7CASl9l_q.mjs} +1 -1
- package/browser/esm/{DKFABgVKeBMflym9.mjs → BUPw_w8LCTxzqyi2.mjs} +1 -1
- package/browser/esm/{-f-RKKojiLg94hp9.mjs → BVuHG04ucrGkymAy.mjs} +51 -11
- package/browser/esm/{BR2ai1V5dGPphpRf.mjs → B_5HCl2iI1AXGllh.mjs} +2 -5
- package/{node/esm/BzNFsi4RXuJrn_1n.mjs → browser/esm/BauuYQVGaczFYyqn.mjs} +1 -1
- package/browser/esm/{CVv3DuciDQrnFFeu.mjs → BdJJZaNRqLYncn3r.mjs} +1 -1
- package/browser/esm/{Cdl7ZalV6WPZHHRE.mjs → Bf43Iq3IvoB06LYk.mjs} +1 -1
- package/{node/esm/CkG4LZN-kb7plKXG.mjs → browser/esm/Bg8866dMayL6y1H_.mjs} +69 -4
- package/{node/esm/HgVmqQQhKQ_2v0HD.mjs → browser/esm/Boi3LcM8Iivb_l5K.mjs} +2 -2
- package/browser/esm/{BYRjnggsufwbb27W.mjs → BtONPY8z9-XPAqsg.mjs} +1 -1
- package/browser/esm/{Bsb5i9Jq-Q8RTmvi.mjs → BxhVZW45vJLHJn3w.mjs} +1 -1
- package/{node/esm/Crb70T1Sp1S4uzq4.mjs → browser/esm/CJZ-TeBArj3iV0tc.mjs} +2 -2
- package/{node/esm/D2miaIrotHbpdWei.mjs → browser/esm/CUk8EwtBWwlXCR2j.mjs} +1 -1
- package/{node/esm/CWAtVXxcIz86XLzE.mjs → browser/esm/CWY6SMVnWP72iGrA.mjs} +1 -1
- package/browser/esm/{CltdofO5ik8g_wQ8.mjs → CWmrg99dGX7KkCJU.mjs} +1 -1
- package/browser/esm/{B3pEie3jQN0SvV5B.mjs → CXl9CXf0KGXUNtZp.mjs} +1 -1
- package/browser/esm/{DtqLXxtPFISlNoUd.mjs → CZUEcjLsLIjL75Zs.mjs} +1 -1
- package/browser/esm/{Cyvobf2wi0quDD3U.mjs → CcmByvKzgVja3yr6.mjs} +1 -1
- package/{node/esm/Ct1gudv1TKk-5FMO.mjs → browser/esm/CkY_1RRc5tkjyrED.mjs} +48 -2
- package/browser/esm/{0amsHACCOHE_JjXI.mjs → DjXw3atxP-P9JI39.mjs} +1 -1
- package/{node/esm/CG1Fn8D-2DrQZoD5.mjs → browser/esm/Dlez38Z5X0YBU2xQ.mjs} +1 -1
- package/{node/esm/C9jpXFBeugwmOTbx.mjs → browser/esm/fqbUfTxrCDBe0sHK.mjs} +2 -2
- package/browser/esm/index.mjs +4863 -5072
- package/licenses/dependencies.txt +0 -33
- package/node/esm/{C7mAHEhFYDwSEU6O.mjs → -kS84bK3sUejOdg1.mjs} +1 -1
- package/node/esm/{B7750ljsJF3qA9kU.mjs → 4OV2RO_CWP4nMkqC.mjs} +37 -3
- package/{browser/esm/CCGjvL3YYwY09qF-.mjs → node/esm/BJUX0gG7CASl9l_q.mjs} +1 -1
- package/node/esm/{DKFABgVKeBMflym9.mjs → BUPw_w8LCTxzqyi2.mjs} +1 -1
- package/node/esm/{BR2ai1V5dGPphpRf.mjs → B_5HCl2iI1AXGllh.mjs} +2 -5
- package/{browser/esm/BzNFsi4RXuJrn_1n.mjs → node/esm/BauuYQVGaczFYyqn.mjs} +1 -1
- package/node/esm/{CVv3DuciDQrnFFeu.mjs → BdJJZaNRqLYncn3r.mjs} +1 -1
- package/node/esm/{Cdl7ZalV6WPZHHRE.mjs → Bf43Iq3IvoB06LYk.mjs} +1 -1
- package/{browser/esm/CkG4LZN-kb7plKXG.mjs → node/esm/Bg8866dMayL6y1H_.mjs} +69 -4
- package/{browser/esm/HgVmqQQhKQ_2v0HD.mjs → node/esm/Boi3LcM8Iivb_l5K.mjs} +2 -2
- package/node/esm/{DxRD19RVMzj2YvKF.mjs → BpDSup4ua3hmCgHS.mjs} +1 -1
- package/node/esm/{-f-RKKojiLg94hp9.mjs → BtaLrrwE55oJIcLv.mjs} +51 -11
- package/{browser/esm/Crb70T1Sp1S4uzq4.mjs → node/esm/CJZ-TeBArj3iV0tc.mjs} +2 -2
- package/{browser/esm/D2miaIrotHbpdWei.mjs → node/esm/CUk8EwtBWwlXCR2j.mjs} +1 -1
- package/{browser/esm/CWAtVXxcIz86XLzE.mjs → node/esm/CWY6SMVnWP72iGrA.mjs} +1 -1
- package/node/esm/{CltdofO5ik8g_wQ8.mjs → CWmrg99dGX7KkCJU.mjs} +1 -1
- package/node/esm/{DtqLXxtPFISlNoUd.mjs → CZUEcjLsLIjL75Zs.mjs} +1 -1
- package/node/esm/{Cyvobf2wi0quDD3U.mjs → CcmByvKzgVja3yr6.mjs} +1 -1
- package/node/esm/{DDajoVNkJB39_Fkx.mjs → Cn2Y6fUYzZTcjL1D.mjs} +1 -1
- package/node/esm/{B8rSUcOwH6g4MUgm.mjs → D2BWBzQdoBCT5mqS.mjs} +1 -1
- package/node/esm/{ZUay0bTGgyrF8e04.mjs → DAuNtqi47mn8k6wW.mjs} +1 -1
- package/{browser/esm/CG1Fn8D-2DrQZoD5.mjs → node/esm/Dlez38Z5X0YBU2xQ.mjs} +1 -1
- package/{browser/esm/Ct1gudv1TKk-5FMO.mjs → node/esm/Dz7ST1qPjkq088mt.mjs} +48 -2
- package/node/esm/{2TCIoMd-SYs6i4-N.mjs → L1ywxrMIpFzquai3.mjs} +1 -1
- package/{browser/esm/C9jpXFBeugwmOTbx.mjs → node/esm/fqbUfTxrCDBe0sHK.mjs} +2 -2
- package/node/esm/index.mjs +5525 -3899
- package/package.json +4 -5
- package/types/src/.generated/decl/dateTime/Date.decl.d.ts +2 -1
- package/types/src/.generated/decl/information/Information.decl.d.ts +2 -1
- package/types/src/.generated/decl/lookupReference/Reference.decl.d.ts +2 -1
- package/types/src/.generated/decl/mathTrig/Math.decl.d.ts +2 -1
- package/types/src/.generated/desc/dateTime/Date.desc.d.ts +2 -1
- package/types/src/.generated/desc/information/Information.desc.d.ts +2 -1
- package/types/src/.generated/desc/lookupReference/Reference.desc.d.ts +2 -1
- package/types/src/.generated/desc/mathTrig/Math.desc.d.ts +2 -1
- package/types/src/_utils/AValues.d.ts +30 -0
- package/types/src/_utils/AggregateIFS.d.ts +3 -1
- package/types/src/_utils/Arithmetic.d.ts +36 -0
- package/types/src/_utils/Combinatorics.d.ts +20 -0
- package/types/src/_utils/Distributions.d.ts +94 -0
- package/types/src/_utils/Errors.d.ts +1 -20
- package/types/src/_utils/FirstCell.d.ts +32 -0
- package/types/src/_utils/Matrix.d.ts +31 -0
- package/types/src/_utils/SpecialFunctions.d.ts +91 -0
- package/types/src/_utils/X87.d.ts +28 -0
- package/types/src/database/Database.d.ts +25 -25
- package/types/src/dateTime/Date.d.ts +250 -41
- package/types/src/engineering/Bessel.d.ts +9 -9
- package/types/src/engineering/Bitwise.d.ts +35 -35
- package/types/src/engineering/Convert.d.ts +3 -3
- package/types/src/engineering/Engineering.d.ts +5 -5
- package/types/src/engineering/Error.d.ts +9 -9
- package/types/src/engineering/Imaginary.d.ts +54 -54
- package/types/src/information/Information.d.ts +118 -49
- package/types/src/japanese/Date.d.ts +2 -2
- package/types/src/japanese/Text.d.ts +1 -1
- package/types/src/logical/Logical.d.ts +45 -39
- package/types/src/lookupReference/GroupBy.d.ts +4 -4
- package/types/src/lookupReference/PivotBy.d.ts +4 -4
- package/types/src/lookupReference/Reference.d.ts +212 -86
- package/types/src/mathTrig/Math.d.ts +499 -152
- package/types/src/mathTrig/Trig.d.ts +26 -22
- package/types/src/operators/Operators.d.ts +15 -15
- package/types/src/statistical/Distribution.d.ts +157 -161
- package/types/src/statistical/Statistical.d.ts +37 -37
- package/types/src/testing/Testing.d.ts +2 -2
- package/types/src/text/Text.d.ts +119 -54
- package/types/src/thai/Text.d.ts +1 -1
- package/types/src/web/FilterXML.d.ts +1 -1
- package/types/src/web/Web.d.ts +2 -2
- package/browser/cjs/49_x589Na12sizKK.cjs +0 -1
- package/browser/cjs/C9C-pr-T_ThweQX9.cjs +0 -1
- package/browser/cjs/DCIlWcGDrp-5PDoA.cjs +0 -1
- package/browser/cjs/Kvn916ebqGc4t6hv.cjs +0 -1
|
@@ -1,100 +1,106 @@
|
|
|
1
|
-
import { IRange, AcceptError,
|
|
1
|
+
import { IRange, AcceptError, IReferenceRange, Scalar, Lambda, Lazy, Omittable, Repeating } from '@sheetxl/primitives';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE.
|
|
4
4
|
* @param logical are 1 to 255 conditions you want to test that can be either TRUE or FALSE and can be logical values, arrays, or references.
|
|
5
5
|
*/
|
|
6
|
-
export declare function AND(logical: IRange[]): Scalar;
|
|
6
|
+
export declare function AND(logical: IRange<boolean>[]): Scalar;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Applies a LAMBDA function to each column and returns an array of the results.
|
|
9
9
|
* @param array is an array to be separated by column.
|
|
10
10
|
* @param fn is a LAMBDA that takes a column as its single parameter and returns one result for it.
|
|
11
11
|
*/
|
|
12
|
-
export declare function BYCOL(array:
|
|
12
|
+
export declare function BYCOL(array: IRange, fn?: Lambda<[column: IRange], Scalar>): IRange;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Applies a LAMBDA function to each row and returns an array of the results.
|
|
15
15
|
* @param array is an array to be separated by row.
|
|
16
16
|
* @param fn is a LAMBDA that takes a row as its single parameter and returns one result for it.
|
|
17
17
|
*/
|
|
18
|
-
export declare function BYROW(array:
|
|
18
|
+
export declare function BYROW(array: IRange, fn?: Lambda<[row: IRange], Scalar>): IRange;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Returns the logical value FALSE.
|
|
21
21
|
*/
|
|
22
22
|
export declare function FALSE(): boolean;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Flattens all the values from one or more ranges into a single column.
|
|
25
25
|
* @param ranges One or more ranges or scalar values to flatten.
|
|
26
26
|
* @category Sheets
|
|
27
27
|
*/
|
|
28
|
-
export declare function FLATTEN(ranges:
|
|
28
|
+
export declare function FLATTEN(ranges: IRange[]): IRange;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE.
|
|
31
31
|
* @param logicalTest is any value or expression that can be evaluated to TRUE or FALSE.
|
|
32
32
|
* @param valueIfTrue is the value that is returned if logicalTest is TRUE. If omitted, TRUE is returned. You can nest up to seven IF functions.
|
|
33
33
|
* @param valueIfFalse is the value that is returned if logicalTest is FALSE. If omitted, FALSE is returned.
|
|
34
34
|
*/
|
|
35
|
-
export declare function IF(logicalTest: boolean, valueIfTrue: AcceptError<any
|
|
35
|
+
export declare function IF(logicalTest: boolean, valueIfTrue: Lazy<AcceptError<any>>, valueIfFalse: Lazy<AcceptError<any>, false>): any;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Returns valueIfError if expression is an error and the value of the expression itself otherwise.
|
|
38
38
|
* @param value is any value or expression or reference.
|
|
39
39
|
* @param valueIfError is any value or expression or reference.
|
|
40
40
|
*/
|
|
41
|
-
export declare function IFERROR(value: AcceptError<Scalar>, valueIfError: AcceptError<any
|
|
41
|
+
export declare function IFERROR(value: AcceptError<Scalar>, valueIfError: Lazy<AcceptError<any>>): Scalar;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.
|
|
44
44
|
* @param value is any value or expression or reference.
|
|
45
45
|
* @param valueIfNA is any value or expression or reference.
|
|
46
46
|
*/
|
|
47
|
-
export declare function IFNA(value: AcceptError<Scalar>, valueIfNA: AcceptError<any
|
|
47
|
+
export declare function IFNA(value: AcceptError<Scalar>, valueIfNA: Lazy<AcceptError<any>>): Scalar;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Checks whether one or more conditions are met and returns a value corresponding to the first TRUE condition.
|
|
50
50
|
* @param condition the conditions to test and the values to return for them.
|
|
51
51
|
* @param condition.logicalTest is any value or expression that can be evaluated to TRUE or FALSE.
|
|
52
52
|
* @param condition.logicalTrue is the value returned if logicalTest is TRUE.
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* The search STOPS at the first TRUE condition, and a condition past it is never read: a
|
|
56
|
+
* `#DIV/0!` or an uncoercible text there does not surface. A fault reached BEFORE the match is
|
|
57
|
+
* fatal, which is why the test slot accepts errors and this body decides — the engine's own
|
|
58
|
+
* left-to-right propagation would refuse the whole call for a condition Excel never evaluates.
|
|
53
59
|
*/
|
|
54
|
-
export declare function IFS(condition: Repeating<[logicalTest: boolean
|
|
60
|
+
export declare function IFS(condition: Repeating<[logicalTest: AcceptError<boolean>, logicalTrue: AcceptError<any>], 254>): any;
|
|
55
61
|
/**
|
|
56
|
-
*
|
|
62
|
+
* Creates a function value which can be called within formulas.
|
|
57
63
|
* @param parameterOrCalculation a parameter or a calculation that returns a value. If a parameter, it must be the last argument.
|
|
58
64
|
*/
|
|
59
|
-
export declare function LAMBDA(parameterOrCalculation: AcceptError<IRange>
|
|
65
|
+
export declare function LAMBDA(parameterOrCalculation: Repeating<AcceptError<IRange>, 254>): Lambda;
|
|
60
66
|
/**
|
|
61
|
-
*
|
|
67
|
+
* Assigns calculation results to names. Useful for storing intermediate calculations and values by defining names inside a formula. These names only apply within the scope of the LET function.
|
|
62
68
|
* @param name the name, or a calculation which can make use of all names within the LET. Names must start with a letter, cannot be the output of a formula, or conflict with range syntax.
|
|
63
69
|
* @param nameOrValue the value associated with the name.
|
|
64
70
|
*/
|
|
65
|
-
export declare function LET(name: AcceptError<any>, nameOrValue: AcceptError<IRange>, calculationOrName: AcceptError<IRange>, ...rest: AcceptError<IRange>
|
|
71
|
+
export declare function LET(name: AcceptError<any>, nameOrValue: AcceptError<IRange>, calculationOrName: AcceptError<IRange>, ...rest: Repeating<AcceptError<IRange>, 254>): any;
|
|
66
72
|
/**
|
|
67
|
-
*
|
|
73
|
+
* Returns a calculated array of a specified row and column size, by applying a LAMBDA function.
|
|
68
74
|
* @param rows is the number of rows in the array. Must be greater than zero.
|
|
69
75
|
* @param columns is the number of columns in the array. Must be greater than zero.
|
|
70
76
|
* @param fn is a LAMBDA that is called to create the array. The LAMBDA takes two parameters, row index and column index.
|
|
71
77
|
*/
|
|
72
78
|
export declare function MAKEARRAY(rows: Omittable<number, 1>, columns: Omittable<number, 1>, fn: Lambda<[rowIndex: number, colIndex: number], Scalar>): IRange;
|
|
73
79
|
/**
|
|
74
|
-
*
|
|
80
|
+
* Returns an array formed by 'mapping' each value in the array(s) to a new value by applying a lambda to create a new value.
|
|
75
81
|
* @param array is an array to be mapped.
|
|
76
82
|
* @param lambdaOrArray is a LAMBDA which must be the last argument and must have a parameter for each array passed, or another array to be mapped.
|
|
77
83
|
*/
|
|
78
|
-
export declare function MAP(array:
|
|
84
|
+
export declare function MAP(array: IRange, lambdaOrArray: AcceptError<any | Lambda<any[], Scalar>>[]): IRange;
|
|
79
85
|
/**
|
|
80
|
-
*
|
|
86
|
+
* Changes FALSE to TRUE, or TRUE to FALSE.
|
|
81
87
|
* @param logical is a value or expression that can be evaluated to TRUE or FALSE.
|
|
82
88
|
*/
|
|
83
89
|
export declare function NOT(logical: boolean): boolean;
|
|
84
90
|
/**
|
|
85
|
-
*
|
|
91
|
+
* Checks whether any of the arguments are TRUE, and returns TRUE or FALSE. Returns FALSE only if all arguments are FALSE.
|
|
86
92
|
* @param logical are 1 to 255 conditions that you want to test that can be either TRUE or FALSE.
|
|
87
93
|
*/
|
|
88
|
-
export declare function OR(logical: IRange[]): Scalar;
|
|
94
|
+
export declare function OR(logical: IRange<boolean>[]): Scalar;
|
|
89
95
|
/**
|
|
90
|
-
*
|
|
96
|
+
* Reduces an array to an accumulated value by applying a LAMBDA function to each value and returning the total value in the accumulator.
|
|
91
97
|
* @param initialValue is the starting value for the accumulator.
|
|
92
98
|
* @param array is an array to be reduced.
|
|
93
99
|
* @param fn is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value.
|
|
94
100
|
*/
|
|
95
|
-
export declare function REDUCE(initialValue: Omittable<AcceptError<any>>, array:
|
|
101
|
+
export declare function REDUCE(initialValue: Omittable<AcceptError<any>>, array: IRange, fn: Lambda<[accumulator: any, value: IRange | Scalar], any>): any;
|
|
96
102
|
/**
|
|
97
|
-
*
|
|
103
|
+
* Reduces the cells specified by a given condition or criteria.
|
|
98
104
|
* @param range is the range of cells you want evaluated.
|
|
99
105
|
* @param criteria is the condition or criteria in the form of a number, expression, or text that defines which cells will be reduced.
|
|
100
106
|
* @param reduceRange are the actual cells to reduce. If omitted, the cells in range are used. This can be blank.
|
|
@@ -104,30 +110,30 @@ export declare function REDUCE(initialValue: Omittable<AcceptError<any>>, array:
|
|
|
104
110
|
* @remarks
|
|
105
111
|
* This is a lambda equivalent to SUMIF, COUNTIF, and AVERAGEIF.
|
|
106
112
|
*/
|
|
107
|
-
export declare function REDUCEIF(range:
|
|
113
|
+
export declare function REDUCEIF(range: IReferenceRange, criteria: AcceptError<Scalar>, reduceRange: Omittable<IReferenceRange>, fn: Lambda<[accumulator: Scalar, value: Scalar], Scalar>): Scalar;
|
|
108
114
|
/**
|
|
109
|
-
*
|
|
115
|
+
* Scans an array by applying a LAMBDA function to each value and returns an array that has each intermediate value.
|
|
110
116
|
* @param initialValue is the starting value for the accumulator.
|
|
111
117
|
* @param array is an array to be reduced.
|
|
112
118
|
* @param fn is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value.
|
|
113
119
|
*/
|
|
114
|
-
export declare function SCAN(initialValue: Omittable<
|
|
120
|
+
export declare function SCAN(initialValue: Omittable<AcceptError<any>>, array: IRange, fn: Lambda<[accumulator: any, value: IRange | Scalar], Scalar>): IRange;
|
|
115
121
|
/**
|
|
116
|
-
*
|
|
122
|
+
* Evaluates an expression against a list of values and returns the result corresponding to the first matching value. If there is no match, an optional default value is returned.
|
|
117
123
|
* @param match the values to compare against expression and the results to return for them.
|
|
118
124
|
* @param match.value is a value to compare against expression.
|
|
119
125
|
* @param match.result is a result to be returned if the corresponding value matches expression.
|
|
120
126
|
* @param expression is an expression to be evaluated.
|
|
121
127
|
* @param defaultResult is the result to be returned when no value matches expression.
|
|
122
128
|
*/
|
|
123
|
-
export declare function SWITCH(expression: Scalar, match: Repeating<[value: Scalar
|
|
129
|
+
export declare function SWITCH(expression: Scalar, match: Repeating<[value: AcceptError<Scalar>, result: AcceptError<any>], 254>, defaultResult?: Omittable<AcceptError<any>, 0>): any;
|
|
124
130
|
/**
|
|
125
|
-
*
|
|
131
|
+
* Returns the logical value TRUE.
|
|
126
132
|
*/
|
|
127
133
|
export declare function TRUE(): boolean;
|
|
128
134
|
/**
|
|
129
|
-
*
|
|
135
|
+
* Returns a logical 'Exclusive Or' of all arguments.
|
|
130
136
|
* @param logical are 1 to 254 conditions you want to test that can be either TRUE or FALSE and can be logical values, arrays, or references.
|
|
131
137
|
*/
|
|
132
|
-
export declare function XOR(logical: IRange
|
|
138
|
+
export declare function XOR(logical: Repeating<IRange<boolean>, 254>): Scalar;
|
|
133
139
|
//# sourceMappingURL=Logical.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IRange,
|
|
1
|
+
import { IRange, Flatten, Omittable, Scalar } from '@sheetxl/primitives';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
3
|
+
* Aggregate values by row fields.
|
|
4
|
+
* @hidden Not yet implemented.
|
|
5
5
|
* @param rowFields The range or array containing the row fields.
|
|
6
6
|
* @param values The range or array containing the values to aggregate.
|
|
7
7
|
* @param fn The function used to do the aggregations.
|
|
@@ -11,7 +11,7 @@ import { IRange, AcceptRefError, Flatten, Omittable, Scalar } from '@sheetxl/pri
|
|
|
11
11
|
* @param filterArray param-534 paramName-535.
|
|
12
12
|
* @param fieldRelationship The relationship of fields when multiple columns are supplied to the rowFields argument.
|
|
13
13
|
*/
|
|
14
|
-
export declare function GROUPBY(rowFields:
|
|
14
|
+
export declare function GROUPBY(rowFields: IRange, values: IRange, fn: Flatten<any>, // This can be either a lambda function or a built-in.
|
|
15
15
|
fieldHeaders?: Omittable<number>, // 0-no, 1-yes, 2-no but generate, 3-yes and show
|
|
16
16
|
totalDepth?: number, // 0-no totals, 1-grand totals, 2-grand and subtotals, -1-grand totals at top, -2 grand and sub totals at top
|
|
17
17
|
sortOrder?: Omittable<Flatten<any>>, // <0, >0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IRange,
|
|
1
|
+
import { IRange, Flatten, Omittable, Scalar } from '@sheetxl/primitives';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
3
|
+
* Aggregate values by rows and columns.
|
|
4
|
+
* @hidden Not yet implemented.
|
|
5
5
|
* @param rowFields The range or array containing the row fields.
|
|
6
6
|
* @param colFields The range or array containing the column fields.
|
|
7
7
|
* @param values The range or array containing the value fields.
|
|
@@ -14,7 +14,7 @@ import { IRange, AcceptRefError, Flatten, Omittable, Scalar } from '@sheetxl/pri
|
|
|
14
14
|
* @param filterArray An array of boolean where TRUE represents a row to retain.
|
|
15
15
|
* @param relativeTo Defines what PERCENTOF is calculated relative to.
|
|
16
16
|
*/
|
|
17
|
-
export declare function PIVOTBY(rowFields:
|
|
17
|
+
export declare function PIVOTBY(rowFields: IRange, colFields: IRange, values: Flatten<IRange>, fn: Flatten<IRange>, // This can be either a lambda function or a built-in.
|
|
18
18
|
fieldHeaders?: Omittable<number>, // 0-no, 1-yes, 2-no but generate, 3-yes and show
|
|
19
19
|
rowTotalDepth?: number, // 0-no totals, 1-grand totals, 2-grand and subtotals, -1-grand totals at top, -2 grand and sub totals at top
|
|
20
20
|
rowSortOrder?: Omittable<Flatten<any>>, // <0, >0
|