@gridsheet/preact-core 3.0.0-rc.1 → 3.0.0-rc.10
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/LICENSE +190 -0
- package/dist/hooks-DPIr6WaL.mjs +1434 -0
- package/dist/hooks-DPIr6WaL.mjs.map +1 -0
- package/dist/index.d.ts +3 -32
- package/dist/index.js +1876 -10670
- package/dist/index.js.map +1 -1
- package/dist/react-core/src/components/ColumnMenuFilterSection.d.ts +5 -0
- package/dist/react-core/src/components/ColumnMenuLabelSection.d.ts +5 -0
- package/dist/react-core/src/components/ColumnMenuSortSection.d.ts +5 -0
- package/dist/react-core/src/components/ContextMenu.d.ts +2 -0
- package/dist/{components → react-core/src/components}/FunctionGuide.d.ts +4 -4
- package/dist/react-core/src/components/GridSheet.d.ts +7 -0
- package/dist/react-core/src/components/MenuItem.d.ts +18 -0
- package/dist/{components → react-core/src/components}/PluginBase.d.ts +2 -2
- package/dist/react-core/src/components/StoreObserver.d.ts +14 -0
- package/dist/{components → react-core/src/components}/useAutocomplete.d.ts +1 -3
- package/dist/react-core/src/index.d.ts +17 -0
- package/dist/react-core/src/lib/clipboard.d.ts +18 -0
- package/dist/{components → react-core/src/lib}/hooks.d.ts +2 -0
- package/dist/react-core/src/lib/menu.d.ts +99 -0
- package/dist/react-core/src/lib/style.d.ts +12 -0
- package/dist/react-core/src/policy/checkbox.d.ts +3 -0
- package/dist/react-core/src/spellbook.d.ts +6 -0
- package/dist/{store → react-core/src/store}/actions.d.ts +3 -3
- package/dist/react-core/src/store/applyers.d.ts +40 -0
- package/dist/react-core/src/store/helpers.d.ts +33 -0
- package/dist/react-core/src/types.d.ts +101 -0
- package/dist/spellbook.d.ts +2 -0
- package/dist/spellbook.js +10 -0
- package/dist/spellbook.js.map +1 -0
- package/package.json +26 -10
- package/dist/components/ContextMenu.d.ts +0 -21
- package/dist/components/GridSheet.d.ts +0 -5
- package/dist/components/StoreObserver.d.ts +0 -11
- package/dist/constants.d.ts +0 -17
- package/dist/formula/evaluator.d.ts +0 -138
- package/dist/formula/functions/__async.d.ts +0 -62
- package/dist/formula/functions/__base.d.ts +0 -53
- package/dist/formula/functions/__utils.d.ts +0 -19
- package/dist/formula/functions/abs.d.ts +0 -9
- package/dist/formula/functions/acos.d.ts +0 -9
- package/dist/formula/functions/add.d.ts +0 -10
- package/dist/formula/functions/and.d.ts +0 -9
- package/dist/formula/functions/asin.d.ts +0 -9
- package/dist/formula/functions/atan.d.ts +0 -9
- package/dist/formula/functions/atan2.d.ts +0 -9
- package/dist/formula/functions/average.d.ts +0 -9
- package/dist/formula/functions/col.d.ts +0 -9
- package/dist/formula/functions/concat.d.ts +0 -9
- package/dist/formula/functions/concatenate.d.ts +0 -9
- package/dist/formula/functions/cos.d.ts +0 -9
- package/dist/formula/functions/count.d.ts +0 -9
- package/dist/formula/functions/counta.d.ts +0 -9
- package/dist/formula/functions/countif.d.ts +0 -10
- package/dist/formula/functions/divide.d.ts +0 -9
- package/dist/formula/functions/eq.d.ts +0 -9
- package/dist/formula/functions/exp.d.ts +0 -9
- package/dist/formula/functions/gt.d.ts +0 -9
- package/dist/formula/functions/gte.d.ts +0 -9
- package/dist/formula/functions/hlookup.d.ts +0 -10
- package/dist/formula/functions/if.d.ts +0 -9
- package/dist/formula/functions/iferror.d.ts +0 -12
- package/dist/formula/functions/index.d.ts +0 -10
- package/dist/formula/functions/len.d.ts +0 -9
- package/dist/formula/functions/lenb.d.ts +0 -9
- package/dist/formula/functions/ln.d.ts +0 -9
- package/dist/formula/functions/log.d.ts +0 -9
- package/dist/formula/functions/log10.d.ts +0 -9
- package/dist/formula/functions/lt.d.ts +0 -9
- package/dist/formula/functions/lte.d.ts +0 -9
- package/dist/formula/functions/match.d.ts +0 -10
- package/dist/formula/functions/match.test.d.ts +0 -2
- package/dist/formula/functions/max.d.ts +0 -9
- package/dist/formula/functions/min.d.ts +0 -9
- package/dist/formula/functions/minus.d.ts +0 -10
- package/dist/formula/functions/mod.d.ts +0 -9
- package/dist/formula/functions/multiply.d.ts +0 -9
- package/dist/formula/functions/ne.d.ts +0 -9
- package/dist/formula/functions/not.d.ts +0 -9
- package/dist/formula/functions/now.d.ts +0 -9
- package/dist/formula/functions/or.d.ts +0 -9
- package/dist/formula/functions/pi.d.ts +0 -9
- package/dist/formula/functions/power.d.ts +0 -9
- package/dist/formula/functions/product.d.ts +0 -9
- package/dist/formula/functions/radians.d.ts +0 -9
- package/dist/formula/functions/rand.d.ts +0 -9
- package/dist/formula/functions/round.d.ts +0 -9
- package/dist/formula/functions/rounddown.d.ts +0 -9
- package/dist/formula/functions/roundup.d.ts +0 -9
- package/dist/formula/functions/row.d.ts +0 -9
- package/dist/formula/functions/sin.d.ts +0 -9
- package/dist/formula/functions/sqrt.d.ts +0 -9
- package/dist/formula/functions/sum.d.ts +0 -9
- package/dist/formula/functions/sumif.d.ts +0 -10
- package/dist/formula/functions/tan.d.ts +0 -9
- package/dist/formula/functions/uminus.d.ts +0 -9
- package/dist/formula/functions/vlookup.d.ts +0 -10
- package/dist/formula/mapping.d.ts +0 -10
- package/dist/formula/solver.d.ts +0 -26
- package/dist/lib/autofill.d.ts +0 -17
- package/dist/lib/cell.d.ts +0 -15
- package/dist/lib/clipboard.d.ts +0 -3
- package/dist/lib/coords.d.ts +0 -10
- package/dist/lib/date.d.ts +0 -2
- package/dist/lib/filter.d.ts +0 -7
- package/dist/lib/hub.d.ts +0 -136
- package/dist/lib/input.d.ts +0 -15
- package/dist/lib/operation.d.ts +0 -34
- package/dist/lib/palette.d.ts +0 -2
- package/dist/lib/reference.d.ts +0 -13
- package/dist/lib/sheet.d.ts +0 -3
- package/dist/lib/spatial.d.ts +0 -94
- package/dist/lib/table.d.ts +0 -463
- package/dist/lib/time.d.ts +0 -25
- package/dist/lib/virtualization.d.ts +0 -22
- package/dist/parsers/core.d.ts +0 -38
- package/dist/policy/core.d.ts +0 -54
- package/dist/renderers/checkbox.d.ts +0 -5
- package/dist/renderers/core.d.ts +0 -66
- package/dist/renderers/thousand_separator.d.ts +0 -3
- package/dist/sentinels.d.ts +0 -23
- package/dist/store/dispatchers.d.ts +0 -36
- package/dist/store/helpers.d.ts +0 -25
- package/dist/styles/embedder.d.ts +0 -2
- package/dist/styles/minified.d.ts +0 -3
- package/dist/styles/utils.d.ts +0 -52
- package/dist/types.d.ts +0 -365
- package/dist/utils.d.ts +0 -2
- /package/dist/{components → react-core/src/components}/Cell.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/CellStateOverlay.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/ColumnMenu.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Editor.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/EditorOptions.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Emitter.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Fixed.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/FormulaBar.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/HeaderCellLeft.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/HeaderCellTop.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Resizer.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/RowMenu.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/ScrollHandle.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/SearchBar.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Tabular.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/svg/AddIcon.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/svg/Base.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/svg/CloseIcon.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/svg/SearchIcon.d.ts +0 -0
- /package/dist/{lib → react-core/src/lib}/events.d.ts +0 -0
- /package/dist/{lib → react-core/src/lib}/paste.d.ts +0 -0
- /package/dist/{store → react-core/src/store}/index.d.ts +0 -0
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { Table } from '../lib/table';
|
|
2
|
-
import { Id, PointType } from '../types';
|
|
3
|
-
type EvaluateProps = {
|
|
4
|
-
table: Table;
|
|
5
|
-
};
|
|
6
|
-
export type IdentifyProps = {
|
|
7
|
-
table: Table;
|
|
8
|
-
slideY?: number;
|
|
9
|
-
slideX?: number;
|
|
10
|
-
operation?: 'move' | 'removeRows' | 'removeCols';
|
|
11
|
-
dependency: string;
|
|
12
|
-
idMap?: {
|
|
13
|
-
[id: string]: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export type DisplayProps = {
|
|
17
|
-
table: Table;
|
|
18
|
-
slideY?: number;
|
|
19
|
-
slideX?: number;
|
|
20
|
-
};
|
|
21
|
-
export declare class FormulaError {
|
|
22
|
-
code: string;
|
|
23
|
-
message: string;
|
|
24
|
-
error?: Error;
|
|
25
|
-
__isFormulaError: boolean;
|
|
26
|
-
constructor(code: string, message: string, error?: Error);
|
|
27
|
-
static is(obj: any): boolean;
|
|
28
|
-
}
|
|
29
|
-
declare class Entity<T = any> {
|
|
30
|
-
value: T;
|
|
31
|
-
constructor(value: T);
|
|
32
|
-
}
|
|
33
|
-
export declare class ValueEntity extends Entity {
|
|
34
|
-
evaluate(): any;
|
|
35
|
-
}
|
|
36
|
-
export declare class UnreferencedEntity extends Entity {
|
|
37
|
-
evaluate(): void;
|
|
38
|
-
}
|
|
39
|
-
export declare class InvalidRefEntity extends Entity<string> {
|
|
40
|
-
evaluate(): void;
|
|
41
|
-
}
|
|
42
|
-
export declare class RefEntity extends Entity<string> {
|
|
43
|
-
constructor(value: string);
|
|
44
|
-
stringify(): string;
|
|
45
|
-
evaluate({ table }: EvaluateProps): Table;
|
|
46
|
-
identify(props: IdentifyProps): string;
|
|
47
|
-
}
|
|
48
|
-
export declare class RangeEntity extends Entity<string> {
|
|
49
|
-
stringify(): string;
|
|
50
|
-
evaluate({ table }: EvaluateProps): Table;
|
|
51
|
-
identify(props: IdentifyProps): string;
|
|
52
|
-
}
|
|
53
|
-
export declare class IdEntity extends Entity<string> {
|
|
54
|
-
private parse;
|
|
55
|
-
evaluate({ table }: EvaluateProps): Table;
|
|
56
|
-
display({ table, slideY, slideX }: DisplayProps): string;
|
|
57
|
-
identify(props: IdentifyProps): string;
|
|
58
|
-
}
|
|
59
|
-
export declare class IdRangeEntity extends Entity<string> {
|
|
60
|
-
private parse;
|
|
61
|
-
evaluate({ table }: EvaluateProps): Table;
|
|
62
|
-
display({ table, slideY, slideX }: DisplayProps): string;
|
|
63
|
-
identify(props: IdentifyProps): string | undefined;
|
|
64
|
-
}
|
|
65
|
-
export declare class FunctionEntity {
|
|
66
|
-
args: Expression[];
|
|
67
|
-
name: string;
|
|
68
|
-
precedence: number;
|
|
69
|
-
private origin?;
|
|
70
|
-
constructor(name: string, precedence?: number, args?: Expression[], origin?: PointType);
|
|
71
|
-
evaluate({ table }: EvaluateProps): any;
|
|
72
|
-
}
|
|
73
|
-
export type Expression = ValueEntity | RefEntity | RangeEntity | IdEntity | IdRangeEntity | FunctionEntity | UnreferencedEntity | InvalidRefEntity;
|
|
74
|
-
export type TokenType = 'VALUE' | 'REF' | 'RANGE' | 'ID' | 'ID_RANGE' | 'FUNCTION' | 'PREFIX_OPERATOR' | 'INFIX_OPERATOR' | 'POSTFIX_OPERATOR' | 'OPEN' | 'CLOSE' | 'COMMA' | 'SPACE' | 'UNREFERENCED' | 'INVALID_REF';
|
|
75
|
-
export declare class Token {
|
|
76
|
-
type: TokenType;
|
|
77
|
-
entity: any;
|
|
78
|
-
precedence: number;
|
|
79
|
-
private origin?;
|
|
80
|
-
constructor(type: TokenType, entity: any, precedence?: number, origin?: PointType);
|
|
81
|
-
length(): number;
|
|
82
|
-
stringify(): string;
|
|
83
|
-
convert(): ValueEntity | UnreferencedEntity | InvalidRefEntity | RefEntity | RangeEntity | IdEntity | IdRangeEntity | FunctionEntity | undefined;
|
|
84
|
-
}
|
|
85
|
-
type LexerOption = {
|
|
86
|
-
origin?: PointType;
|
|
87
|
-
idMap?: {
|
|
88
|
-
[id: Id]: Id;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
export declare class Lexer {
|
|
92
|
-
private index;
|
|
93
|
-
private formula;
|
|
94
|
-
tokens: Token[];
|
|
95
|
-
foreign: boolean;
|
|
96
|
-
private origin?;
|
|
97
|
-
private idMap;
|
|
98
|
-
constructor(formula: string, options?: LexerOption);
|
|
99
|
-
private isWhiteSpace;
|
|
100
|
-
private next;
|
|
101
|
-
private get;
|
|
102
|
-
private getToken;
|
|
103
|
-
getTokenIndexByCharPosition(pos: number): [number, boolean];
|
|
104
|
-
getTokenPositionRange(index: number, slide?: number): [number, number];
|
|
105
|
-
stringify(): string;
|
|
106
|
-
identify(props: IdentifyProps): string;
|
|
107
|
-
display({ table }: DisplayProps): string;
|
|
108
|
-
tokenize(): void;
|
|
109
|
-
private skipSpaces;
|
|
110
|
-
private getString;
|
|
111
|
-
private resolveIdRange;
|
|
112
|
-
}
|
|
113
|
-
export declare class Parser {
|
|
114
|
-
index: number;
|
|
115
|
-
depth: number;
|
|
116
|
-
tokens: Token[];
|
|
117
|
-
constructor(tokens: Token[]);
|
|
118
|
-
build(): Expression | undefined;
|
|
119
|
-
private parse;
|
|
120
|
-
}
|
|
121
|
-
/** Alias for Parser, exported for external tooling (e.g. Debugger). */
|
|
122
|
-
export declare const FormulaParser: typeof Parser;
|
|
123
|
-
export declare const identifyFormula: (value: any, { idMap, ...props }: IdentifyProps) => any;
|
|
124
|
-
export declare const stripSheetName: (sheetName: string) => string;
|
|
125
|
-
export declare function splitRef(ref: string): {
|
|
126
|
-
sheetName: string | undefined;
|
|
127
|
-
addresses: string[];
|
|
128
|
-
};
|
|
129
|
-
export declare const parseRef: (ref: string, { table, operation, dependency }: IdentifyProps) => {
|
|
130
|
-
table: Table;
|
|
131
|
-
sheetId?: number;
|
|
132
|
-
formula?: string;
|
|
133
|
-
sheetName?: string;
|
|
134
|
-
addresses: string[];
|
|
135
|
-
ids: string[];
|
|
136
|
-
};
|
|
137
|
-
export {};
|
|
138
|
-
//# sourceMappingURL=evaluator.d.ts.map
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Pending, Sentinel } from '../../sentinels';
|
|
2
|
-
import { Wire } from '../../lib/hub';
|
|
3
|
-
import { PointType } from '../../types';
|
|
4
|
-
/**
|
|
5
|
-
* Sentinel value to distinguish cache miss from user-returned undefined/null.
|
|
6
|
-
* Since user functions can return undefined or null, we need a special marker
|
|
7
|
-
* to indicate "no cache entry found" vs "cache entry is undefined".
|
|
8
|
-
*/
|
|
9
|
-
export declare const asyncCacheMiss: Sentinel;
|
|
10
|
-
/** Returns true if any element of `args` is a Pending sentinel. */
|
|
11
|
-
export declare const hasPendingArg: (args: any[]) => boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Build a cache key from function name + hashed serialised arguments.
|
|
14
|
-
*
|
|
15
|
-
* Format: `funcName:length:hash1-hash2-...`
|
|
16
|
-
* - length: byte length of the JSON-serialised args
|
|
17
|
-
* - hash: cyrb53 hash of the JSON string, repeated hashPrecision times with different seeds
|
|
18
|
-
*
|
|
19
|
-
* When a Table appears as an argument its trimmed area is converted to a
|
|
20
|
-
* value matrix (`any[][]`) via `getFieldMatrix()` so the key reflects the
|
|
21
|
-
* actual cell values the function will operate on.
|
|
22
|
-
*/
|
|
23
|
-
export declare const buildAsyncCacheKey: (funcName: string, bareArgs: any[], hashPrecision?: number) => string;
|
|
24
|
-
/**
|
|
25
|
-
* Try to retrieve a cached or pending async result for the given cache key.
|
|
26
|
-
*
|
|
27
|
-
* Returns:
|
|
28
|
-
* - Cached value if present, valid, and not expired
|
|
29
|
-
* - Pending if there is an in-flight promise for this cell
|
|
30
|
-
* - asyncCacheMiss if no cache/pending exists (distinguishes from user-returned undefined/null)
|
|
31
|
-
*/
|
|
32
|
-
export declare const getAsyncCache: (table: {
|
|
33
|
-
wire: Wire;
|
|
34
|
-
getId: (p: PointType) => string;
|
|
35
|
-
}, origin: PointType, key: string, useInflight?: boolean) => any;
|
|
36
|
-
/**
|
|
37
|
-
* Handle an async (Promise) result returned by BaseFunction.main().
|
|
38
|
-
*
|
|
39
|
-
* Cache is stored per-cell in cell.asyncCache.
|
|
40
|
-
* In-flight tracking uses Wire.asyncPending (keyed by cell ID).
|
|
41
|
-
* If useInflight is true, also tracks by cache key in Wire.asyncInflight.
|
|
42
|
-
*
|
|
43
|
-
* Flow:
|
|
44
|
-
* 1. If cell has asyncCache and the key matches (inputs unchanged) and not expired → return cached value
|
|
45
|
-
* 2. If there is already an in-flight promise for this cell → return its Pending
|
|
46
|
-
* 3. If useInflight is true and there is an in-flight promise for this key → return its Pending
|
|
47
|
-
* 4. Otherwise start the async work, return a new Pending, and on completion
|
|
48
|
-
* write the result into cell.asyncCache and trigger a re-render.
|
|
49
|
-
*
|
|
50
|
-
* @param ttlMilliseconds - Cache time-to-live in **milliseconds**. undefined = never expires.
|
|
51
|
-
* @param useInflight - If true, reuse the same promise for matching cache keys across different cells.
|
|
52
|
-
*/
|
|
53
|
-
export declare const awaitAndSave: (promise: Promise<any>, table: {
|
|
54
|
-
wire: Wire;
|
|
55
|
-
getId: (p: PointType) => string;
|
|
56
|
-
}, origin: PointType, key: string, ttlMilliseconds?: number, useInflight?: boolean) => Pending;
|
|
57
|
-
/**
|
|
58
|
-
* Create a Pending sentinel that resolves immediately.
|
|
59
|
-
* Used when an argument is already pending — the result is propagated.
|
|
60
|
-
*/
|
|
61
|
-
export declare const createPropagatedPending: () => Pending;
|
|
62
|
-
//# sourceMappingURL=__async.d.ts.map
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Table } from '../../lib/table';
|
|
2
|
-
import { PointType } from '../../types';
|
|
3
|
-
import { Expression } from '../evaluator';
|
|
4
|
-
export type FunctionProps = {
|
|
5
|
-
args: Expression[];
|
|
6
|
-
table: Table;
|
|
7
|
-
origin?: PointType;
|
|
8
|
-
};
|
|
9
|
-
export type HelpArg = {
|
|
10
|
-
name: string;
|
|
11
|
-
description: string;
|
|
12
|
-
optional?: boolean;
|
|
13
|
-
iterable?: boolean;
|
|
14
|
-
type?: ('number' | 'string' | 'boolean' | 'date' | 'time' | 'range' | 'reference' | 'any')[];
|
|
15
|
-
};
|
|
16
|
-
export declare const conditionArg: HelpArg;
|
|
17
|
-
export declare class BaseFunction {
|
|
18
|
-
example: string;
|
|
19
|
-
helpTexts: string[];
|
|
20
|
-
helpArgs: HelpArg[];
|
|
21
|
-
/** Indicates if this function is async. Override in subclass or use BaseFunctionAsync. */
|
|
22
|
-
protected isAsync: boolean;
|
|
23
|
-
/** Cache TTL in milliseconds. Override in subclass to set expiry. undefined = never expires. */
|
|
24
|
-
protected ttlMilliseconds?: number;
|
|
25
|
-
/** Hash precision for cache key generation. Higher values reduce collision risk. Default: 1 */
|
|
26
|
-
protected hashPrecision: number;
|
|
27
|
-
/** If true, reuse the same in-flight promise for matching cache keys across different cells. */
|
|
28
|
-
protected useInflight: boolean;
|
|
29
|
-
protected bareArgs: any[];
|
|
30
|
-
protected table: Table;
|
|
31
|
-
protected origin?: PointType;
|
|
32
|
-
constructor({ args, table, origin }: FunctionProps);
|
|
33
|
-
protected validate(): void;
|
|
34
|
-
call(): any;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Base class for sync functions.
|
|
38
|
-
* Extend this class to create sync functions that support caching.
|
|
39
|
-
*/
|
|
40
|
-
export declare class BaseFunctionSync extends BaseFunction {
|
|
41
|
-
protected isAsync: boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Base class for async functions.
|
|
45
|
-
* Extend this class to create async functions that support caching.
|
|
46
|
-
*/
|
|
47
|
-
export declare class BaseFunctionAsync extends BaseFunction {
|
|
48
|
-
protected isAsync: boolean;
|
|
49
|
-
}
|
|
50
|
-
export type FunctionMapping = {
|
|
51
|
-
[functionName: string]: typeof BaseFunction;
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=__base.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const gt: (left: any, right: any) => boolean;
|
|
2
|
-
export declare const gte: (left: any, right: any) => boolean;
|
|
3
|
-
export declare const lt: (left: any, right: any) => boolean;
|
|
4
|
-
export declare const lte: (left: any, right: any) => boolean;
|
|
5
|
-
export declare const eq: (left: any, right: any) => boolean;
|
|
6
|
-
export declare const ne: (left: any, right: any) => boolean;
|
|
7
|
-
export type EnsureNumberOptions = {
|
|
8
|
-
alternative?: number;
|
|
9
|
-
ignore?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export type EnsureBooleanOptions = {
|
|
12
|
-
alternative?: boolean;
|
|
13
|
-
ignore?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare const ensureNumber: (value: any, options?: EnsureNumberOptions) => number;
|
|
16
|
-
export declare const ensureString: (value: any) => string;
|
|
17
|
-
export declare const ensureBoolean: (value: any, options?: EnsureBooleanOptions) => boolean;
|
|
18
|
-
export declare const check: (value: any, condition: string) => boolean;
|
|
19
|
-
//# sourceMappingURL=__utils.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class AbsFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(value: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=abs.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class AcosFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(value: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=acos.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
import { TimeDelta } from '../../lib/time';
|
|
3
|
-
export declare class AddFunction extends BaseFunction {
|
|
4
|
-
example: string;
|
|
5
|
-
helpText: string[];
|
|
6
|
-
helpArgs: HelpArg[];
|
|
7
|
-
protected validate(): void;
|
|
8
|
-
protected main(v1: number | Date | TimeDelta, v2: number | Date | TimeDelta): number | Date;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=add.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class AndFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(...values: boolean[]): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=and.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class AsinFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(value: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=asin.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class AtanFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(value: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=atan.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class Atan2Function extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(x: number, y: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=atan2.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class AverageFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(...values: number[]): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=average.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class ColFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(left: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=col.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class ConcatFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(v1: string, v2: string): string;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=concat.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class ConcatenateFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(...values: string[]): string;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=concatenate.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class CosFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(angle: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=cos.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class CountFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(...values: any[]): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=count.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class CountaFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(...values: any[]): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=counta.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Table } from '../../lib/table';
|
|
2
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
3
|
-
export declare class CountifFunction extends BaseFunction {
|
|
4
|
-
example: string;
|
|
5
|
-
helpText: string[];
|
|
6
|
-
helpArgs: HelpArg[];
|
|
7
|
-
protected validate(): void;
|
|
8
|
-
protected main(table: Table, condition: string): number;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=countif.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class DivideFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(divided: number, divisor: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=divide.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class EqFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(v1: any, v2: any): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=eq.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class ExpFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(exponent: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=exp.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class GtFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(v1: number, v2: number): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=gt.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class GteFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(v1: number, v2: number): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=gte.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Table } from '../../lib/table';
|
|
2
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
3
|
-
export declare class HlookupFunction extends BaseFunction {
|
|
4
|
-
example: string;
|
|
5
|
-
helpText: string[];
|
|
6
|
-
helpArgs: HelpArg[];
|
|
7
|
-
protected validate(): void;
|
|
8
|
-
protected main(key: any, range: Table, index: number, isSorted: boolean): any;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=hlookup.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class IfFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(condition: boolean, v1: any, v2?: any): any;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=if.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FunctionProps, HelpArg } from './__base';
|
|
2
|
-
export declare class IfErrorFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
private args;
|
|
7
|
-
private table;
|
|
8
|
-
constructor({ args, table }: FunctionProps);
|
|
9
|
-
protected validate(): void;
|
|
10
|
-
call(): any;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=iferror.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Table } from '../../lib/table';
|
|
2
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
3
|
-
export declare class IndexFunction extends BaseFunction {
|
|
4
|
-
example: string;
|
|
5
|
-
helpText: string[];
|
|
6
|
-
helpArgs: HelpArg[];
|
|
7
|
-
protected validate(): void;
|
|
8
|
-
protected main(table: Table, y?: number, x?: number): Table;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class LenFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(text: string): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=len.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class LenbFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(text: string): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=lenb.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class LnFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(value: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=ln.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class LogFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(value: number, base: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class Log10Function extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(value: number): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=log10.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class LtFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(v1: number, v2: number): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=lt.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class LteFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(v1: number, v2: number): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=lte.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Table } from '../../lib/table';
|
|
2
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
3
|
-
export declare class MatchFunction extends BaseFunction {
|
|
4
|
-
example: string;
|
|
5
|
-
helpText: string[];
|
|
6
|
-
helpArgs: HelpArg[];
|
|
7
|
-
protected validate(): void;
|
|
8
|
-
protected main(searchKey: any, range: Table, searchType?: number): number;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=match.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class MaxFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(...values: number[]): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=max.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, HelpArg } from './__base';
|
|
2
|
-
export declare class MinFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
helpText: string[];
|
|
5
|
-
helpArgs: HelpArg[];
|
|
6
|
-
protected validate(): void;
|
|
7
|
-
protected main(...values: number[]): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=min.d.ts.map
|