@gridsheet/preact-core 3.0.0-rc.0 → 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.
Files changed (149) hide show
  1. package/LICENSE +190 -0
  2. package/dist/hooks-DPIr6WaL.mjs +1434 -0
  3. package/dist/hooks-DPIr6WaL.mjs.map +1 -0
  4. package/dist/index.d.ts +3 -31
  5. package/dist/index.js +3413 -11188
  6. package/dist/index.js.map +1 -1
  7. package/dist/react-core/src/components/ColumnMenuFilterSection.d.ts +5 -0
  8. package/dist/react-core/src/components/ColumnMenuLabelSection.d.ts +5 -0
  9. package/dist/react-core/src/components/ColumnMenuSortSection.d.ts +5 -0
  10. package/dist/react-core/src/components/ContextMenu.d.ts +2 -0
  11. package/dist/react-core/src/components/EditorOptions.d.ts +11 -0
  12. package/dist/react-core/src/components/FunctionGuide.d.ts +19 -0
  13. package/dist/react-core/src/components/GridSheet.d.ts +7 -0
  14. package/dist/react-core/src/components/MenuItem.d.ts +18 -0
  15. package/dist/{components → react-core/src/components}/PluginBase.d.ts +2 -2
  16. package/dist/react-core/src/components/StoreObserver.d.ts +14 -0
  17. package/dist/react-core/src/components/useAutocomplete.d.ts +23 -0
  18. package/dist/react-core/src/index.d.ts +17 -0
  19. package/dist/react-core/src/lib/clipboard.d.ts +18 -0
  20. package/dist/{components → react-core/src/lib}/hooks.d.ts +2 -0
  21. package/dist/react-core/src/lib/menu.d.ts +99 -0
  22. package/dist/react-core/src/lib/style.d.ts +12 -0
  23. package/dist/react-core/src/policy/checkbox.d.ts +3 -0
  24. package/dist/react-core/src/spellbook.d.ts +6 -0
  25. package/dist/{store → react-core/src/store}/actions.d.ts +15 -3
  26. package/dist/react-core/src/store/applyers.d.ts +40 -0
  27. package/dist/react-core/src/store/helpers.d.ts +33 -0
  28. package/dist/react-core/src/types.d.ts +101 -0
  29. package/dist/spellbook.d.ts +2 -0
  30. package/dist/spellbook.js +10 -0
  31. package/dist/spellbook.js.map +1 -0
  32. package/package.json +26 -10
  33. package/dist/components/ContextMenu.d.ts +0 -20
  34. package/dist/components/GridSheet.d.ts +0 -5
  35. package/dist/components/StoreObserver.d.ts +0 -11
  36. package/dist/constants.d.ts +0 -30
  37. package/dist/formula/evaluator.d.ts +0 -136
  38. package/dist/formula/functions/__async.d.ts +0 -59
  39. package/dist/formula/functions/__base.d.ts +0 -31
  40. package/dist/formula/functions/__utils.d.ts +0 -19
  41. package/dist/formula/functions/abs.d.ts +0 -12
  42. package/dist/formula/functions/acos.d.ts +0 -12
  43. package/dist/formula/functions/add.d.ts +0 -13
  44. package/dist/formula/functions/and.d.ts +0 -19
  45. package/dist/formula/functions/asin.d.ts +0 -12
  46. package/dist/formula/functions/atan.d.ts +0 -12
  47. package/dist/formula/functions/atan2.d.ts +0 -12
  48. package/dist/formula/functions/average.d.ts +0 -19
  49. package/dist/formula/functions/col.d.ts +0 -13
  50. package/dist/formula/functions/concat.d.ts +0 -12
  51. package/dist/formula/functions/concatenate.d.ts +0 -19
  52. package/dist/formula/functions/cos.d.ts +0 -12
  53. package/dist/formula/functions/count.d.ts +0 -19
  54. package/dist/formula/functions/counta.d.ts +0 -19
  55. package/dist/formula/functions/countif.d.ts +0 -13
  56. package/dist/formula/functions/divide.d.ts +0 -12
  57. package/dist/formula/functions/eq.d.ts +0 -12
  58. package/dist/formula/functions/exp.d.ts +0 -12
  59. package/dist/formula/functions/gt.d.ts +0 -12
  60. package/dist/formula/functions/gte.d.ts +0 -12
  61. package/dist/formula/functions/hlookup.d.ts +0 -18
  62. package/dist/formula/functions/if.d.ts +0 -17
  63. package/dist/formula/functions/iferror.d.ts +0 -20
  64. package/dist/formula/functions/index.d.ts +0 -18
  65. package/dist/formula/functions/len.d.ts +0 -12
  66. package/dist/formula/functions/lenb.d.ts +0 -12
  67. package/dist/formula/functions/ln.d.ts +0 -12
  68. package/dist/formula/functions/log.d.ts +0 -12
  69. package/dist/formula/functions/log10.d.ts +0 -12
  70. package/dist/formula/functions/lt.d.ts +0 -12
  71. package/dist/formula/functions/lte.d.ts +0 -12
  72. package/dist/formula/functions/match.d.ts +0 -18
  73. package/dist/formula/functions/match.test.d.ts +0 -2
  74. package/dist/formula/functions/max.d.ts +0 -19
  75. package/dist/formula/functions/min.d.ts +0 -19
  76. package/dist/formula/functions/minus.d.ts +0 -13
  77. package/dist/formula/functions/mod.d.ts +0 -12
  78. package/dist/formula/functions/multiply.d.ts +0 -12
  79. package/dist/formula/functions/ne.d.ts +0 -12
  80. package/dist/formula/functions/not.d.ts +0 -12
  81. package/dist/formula/functions/now.d.ts +0 -9
  82. package/dist/formula/functions/or.d.ts +0 -19
  83. package/dist/formula/functions/pi.d.ts +0 -9
  84. package/dist/formula/functions/power.d.ts +0 -12
  85. package/dist/formula/functions/product.d.ts +0 -19
  86. package/dist/formula/functions/radians.d.ts +0 -12
  87. package/dist/formula/functions/rand.d.ts +0 -9
  88. package/dist/formula/functions/round.d.ts +0 -17
  89. package/dist/formula/functions/rounddown.d.ts +0 -17
  90. package/dist/formula/functions/roundup.d.ts +0 -17
  91. package/dist/formula/functions/row.d.ts +0 -13
  92. package/dist/formula/functions/sin.d.ts +0 -12
  93. package/dist/formula/functions/sqrt.d.ts +0 -12
  94. package/dist/formula/functions/sum.d.ts +0 -19
  95. package/dist/formula/functions/sumif.d.ts +0 -18
  96. package/dist/formula/functions/tan.d.ts +0 -12
  97. package/dist/formula/functions/uminus.d.ts +0 -12
  98. package/dist/formula/functions/vlookup.d.ts +0 -18
  99. package/dist/formula/mapping.d.ts +0 -3
  100. package/dist/formula/solver.d.ts +0 -26
  101. package/dist/lib/autofill.d.ts +0 -17
  102. package/dist/lib/cell.d.ts +0 -3
  103. package/dist/lib/clipboard.d.ts +0 -3
  104. package/dist/lib/coords.d.ts +0 -10
  105. package/dist/lib/date.d.ts +0 -2
  106. package/dist/lib/filter.d.ts +0 -7
  107. package/dist/lib/hub.d.ts +0 -132
  108. package/dist/lib/input.d.ts +0 -15
  109. package/dist/lib/operation.d.ts +0 -34
  110. package/dist/lib/palette.d.ts +0 -2
  111. package/dist/lib/reference.d.ts +0 -13
  112. package/dist/lib/sheet.d.ts +0 -3
  113. package/dist/lib/spatial.d.ts +0 -92
  114. package/dist/lib/table.d.ts +0 -458
  115. package/dist/lib/time.d.ts +0 -25
  116. package/dist/lib/virtualization.d.ts +0 -22
  117. package/dist/parsers/core.d.ts +0 -38
  118. package/dist/policy/core.d.ts +0 -47
  119. package/dist/renderers/checkbox.d.ts +0 -5
  120. package/dist/renderers/core.d.ts +0 -66
  121. package/dist/renderers/thousand_separator.d.ts +0 -3
  122. package/dist/store/dispatchers.d.ts +0 -34
  123. package/dist/store/helpers.d.ts +0 -31
  124. package/dist/styles/embedder.d.ts +0 -2
  125. package/dist/styles/minified.d.ts +0 -3
  126. package/dist/styles/utils.d.ts +0 -52
  127. package/dist/types.d.ts +0 -355
  128. package/dist/utils.d.ts +0 -2
  129. /package/dist/{components → react-core/src/components}/Cell.d.ts +0 -0
  130. /package/dist/{components → react-core/src/components}/CellStateOverlay.d.ts +0 -0
  131. /package/dist/{components → react-core/src/components}/ColumnMenu.d.ts +0 -0
  132. /package/dist/{components → react-core/src/components}/Editor.d.ts +0 -0
  133. /package/dist/{components → react-core/src/components}/Emitter.d.ts +0 -0
  134. /package/dist/{components → react-core/src/components}/Fixed.d.ts +0 -0
  135. /package/dist/{components → react-core/src/components}/FormulaBar.d.ts +0 -0
  136. /package/dist/{components → react-core/src/components}/HeaderCellLeft.d.ts +0 -0
  137. /package/dist/{components → react-core/src/components}/HeaderCellTop.d.ts +0 -0
  138. /package/dist/{components → react-core/src/components}/Resizer.d.ts +0 -0
  139. /package/dist/{components → react-core/src/components}/RowMenu.d.ts +0 -0
  140. /package/dist/{components → react-core/src/components}/ScrollHandle.d.ts +0 -0
  141. /package/dist/{components → react-core/src/components}/SearchBar.d.ts +0 -0
  142. /package/dist/{components → react-core/src/components}/Tabular.d.ts +0 -0
  143. /package/dist/{components → react-core/src/components}/svg/AddIcon.d.ts +0 -0
  144. /package/dist/{components → react-core/src/components}/svg/Base.d.ts +0 -0
  145. /package/dist/{components → react-core/src/components}/svg/CloseIcon.d.ts +0 -0
  146. /package/dist/{components → react-core/src/components}/svg/SearchIcon.d.ts +0 -0
  147. /package/dist/{lib → react-core/src/lib}/events.d.ts +0 -0
  148. /package/dist/{lib → react-core/src/lib}/paste.d.ts +0 -0
  149. /package/dist/{store → react-core/src/store}/index.d.ts +0 -0
@@ -1,5 +0,0 @@
1
- import { Connector, Props } from '../types';
2
- export declare const createConnector: () => import('react').RefObject<Connector | null>;
3
- export declare const useConnector: () => import('react').MutableRefObject<Connector | null>;
4
- export declare function GridSheet({ initialCells, sheetName, connector: initialConnector, options, className, style, hub: initialHub, }: Props): JSX.Element;
5
- //# sourceMappingURL=GridSheet.d.ts.map
@@ -1,11 +0,0 @@
1
- import { FC, MutableRefObject } from 'react';
2
- import { OptionsType, Connector } from '../types';
3
- type StoreObserverProps = OptionsType & {
4
- sheetName?: string;
5
- connector?: MutableRefObject<Connector | null>;
6
- };
7
- export declare const createConnector: () => import('react').RefObject<Connector | null>;
8
- export declare const useConnector: () => MutableRefObject<Connector | null>;
9
- export declare const StoreObserver: FC<StoreObserverProps>;
10
- export {};
11
- //# sourceMappingURL=StoreObserver.d.ts.map
@@ -1,30 +0,0 @@
1
- import { ZoneType } from './types';
2
- export declare const DEFAULT_HISTORY_LIMIT = 20;
3
- export declare const DEFAULT_HEIGHT = 24;
4
- export declare const DEFAULT_WIDTH = 90;
5
- export declare const SHEET_HEIGHT = 500;
6
- export declare const SHEET_WIDTH = 1000;
7
- export declare const HEADER_HEIGHT = 24;
8
- export declare const HEADER_WIDTH = 50;
9
- export declare const MIN_WIDTH = 5;
10
- export declare const MIN_HEIGHT = 5;
11
- export declare const OVERSCAN_X = 5;
12
- export declare const OVERSCAN_Y = 10;
13
- export declare const DEFAULT_ALPHABET_CACHE_SIZE = 1000;
14
- export declare class Special {
15
- name: string;
16
- constructor(name: string);
17
- }
18
- /**
19
- * Sentinel value representing an in-flight async formula computation.
20
- * Cells whose solved cache contains a Pending will render a loading indicator.
21
- * Dependent cells that encounter a Pending value also become pending.
22
- */
23
- export declare class Pending {
24
- promise: Promise<any>;
25
- constructor(promise: Promise<any>);
26
- }
27
- export declare const SECONDS_IN_DAY = 86400;
28
- export declare const FULLDATE_FORMAT_UTC = "YYYY-MM-DDTHH:mm:ss.SSSZ";
29
- export declare const RESET_ZONE: ZoneType;
30
- //# sourceMappingURL=constants.d.ts.map
@@ -1,136 +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
- export declare const identifyFormula: (value: any, { idMap, ...props }: IdentifyProps) => any;
122
- export declare const stripSheetName: (sheetName: string) => string;
123
- export declare function splitRef(ref: string): {
124
- sheetName: string | undefined;
125
- addresses: string[];
126
- };
127
- export declare const parseRef: (ref: string, { table, operation, dependency }: IdentifyProps) => {
128
- table: Table;
129
- sheetId?: number;
130
- formula?: string;
131
- sheetName?: string;
132
- addresses: string[];
133
- ids: string[];
134
- };
135
- export {};
136
- //# sourceMappingURL=evaluator.d.ts.map
@@ -1,59 +0,0 @@
1
- import { Pending, Special } from '../../constants';
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: Special;
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) => 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
- *
42
- * Flow:
43
- * 1. If cell has asyncCache and the key matches (inputs unchanged) and not expired → return cached value
44
- * 2. If there is already an in-flight promise for this cell → return its Pending
45
- * 3. Otherwise start the async work, return a new Pending, and on completion
46
- * write the result into cell.asyncCache and trigger a re-render.
47
- *
48
- * @param ttlMilliseconds - Cache time-to-live in **milliseconds**. undefined = never expires.
49
- */
50
- export declare const getOrSaveAsyncCache: (promise: Promise<any>, table: {
51
- wire: Wire;
52
- getId: (p: PointType) => string;
53
- }, origin: PointType, key: string, ttlMilliseconds?: number) => any;
54
- /**
55
- * Create a Pending sentinel that resolves immediately.
56
- * Used when an argument is already pending — the result is propagated.
57
- */
58
- export declare const createPropagatedPending: () => Pending;
59
- //# sourceMappingURL=__async.d.ts.map
@@ -1,31 +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 declare class BaseFunction {
10
- example: string;
11
- helpTexts: string[];
12
- helpArgs: {
13
- name: string;
14
- description: string;
15
- }[];
16
- /** Cache TTL in milliseconds. Override in subclass to set expiry. undefined = never expires. */
17
- protected ttlMilliseconds?: number;
18
- /** Hash precision for cache key generation. Higher values reduce collision risk. Default: 1 */
19
- protected hashPrecision: number;
20
- protected bareArgs: any[];
21
- protected table: Table;
22
- protected origin?: PointType;
23
- constructor({ args, table, origin }: FunctionProps);
24
- protected validate(): void;
25
- private get isMainAsync();
26
- call(): any;
27
- }
28
- export type FunctionMapping = {
29
- [functionName: string]: typeof BaseFunction;
30
- };
31
- //# 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,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class AbsFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(value: number): number;
11
- }
12
- //# sourceMappingURL=abs.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class AcosFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(value: number): number;
11
- }
12
- //# sourceMappingURL=acos.d.ts.map
@@ -1,13 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- import { TimeDelta } from '../../lib/time';
3
- export declare class AddFunction extends BaseFunction {
4
- example: string;
5
- helpText: string[];
6
- helpArgs: {
7
- name: string;
8
- description: string;
9
- }[];
10
- protected validate(): void;
11
- protected main(v1: number | Date | TimeDelta, v2: number | Date | TimeDelta): number | Date;
12
- }
13
- //# sourceMappingURL=add.d.ts.map
@@ -1,19 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class AndFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: ({
6
- name: string;
7
- description: string;
8
- optional?: undefined;
9
- iterable?: undefined;
10
- } | {
11
- name: string;
12
- description: string;
13
- optional: boolean;
14
- iterable: boolean;
15
- })[];
16
- protected validate(): void;
17
- protected main(...values: boolean[]): boolean;
18
- }
19
- //# sourceMappingURL=and.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class AsinFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(value: number): number;
11
- }
12
- //# sourceMappingURL=asin.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class AtanFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(value: number): number;
11
- }
12
- //# sourceMappingURL=atan.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class Atan2Function extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(x: number, y: number): number;
11
- }
12
- //# sourceMappingURL=atan2.d.ts.map
@@ -1,19 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class AverageFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: ({
6
- name: string;
7
- description: string;
8
- optional?: undefined;
9
- iterable?: undefined;
10
- } | {
11
- name: string;
12
- description: string;
13
- optional: boolean;
14
- iterable: boolean;
15
- })[];
16
- protected validate(): void;
17
- protected main(...values: number[]): number;
18
- }
19
- //# sourceMappingURL=average.d.ts.map
@@ -1,13 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class ColFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- option: boolean;
9
- }[];
10
- protected validate(): void;
11
- protected main(left: number): number;
12
- }
13
- //# sourceMappingURL=col.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class ConcatFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(v1: string, v2: string): string;
11
- }
12
- //# sourceMappingURL=concat.d.ts.map
@@ -1,19 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class ConcatenateFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: ({
6
- name: string;
7
- description: string;
8
- optional?: undefined;
9
- iterable?: undefined;
10
- } | {
11
- name: string;
12
- description: string;
13
- optional: boolean;
14
- iterable: boolean;
15
- })[];
16
- protected validate(): void;
17
- protected main(...values: string[]): string;
18
- }
19
- //# sourceMappingURL=concatenate.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class CosFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(angle: number): number;
11
- }
12
- //# sourceMappingURL=cos.d.ts.map
@@ -1,19 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class CountFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: ({
6
- name: string;
7
- description: string;
8
- optional?: undefined;
9
- iterable?: undefined;
10
- } | {
11
- name: string;
12
- description: string;
13
- optional: boolean;
14
- iterable: boolean;
15
- })[];
16
- protected validate(): void;
17
- protected main(...values: any[]): number;
18
- }
19
- //# sourceMappingURL=count.d.ts.map
@@ -1,19 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class CountaFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: ({
6
- name: string;
7
- description: string;
8
- optional?: undefined;
9
- iterable?: undefined;
10
- } | {
11
- name: string;
12
- description: string;
13
- optional: boolean;
14
- iterable: boolean;
15
- })[];
16
- protected validate(): void;
17
- protected main(...values: any[]): number;
18
- }
19
- //# sourceMappingURL=counta.d.ts.map
@@ -1,13 +0,0 @@
1
- import { Table } from '../../lib/table';
2
- import { BaseFunction } from './__base';
3
- export declare class CountifFunction extends BaseFunction {
4
- example: string;
5
- helpText: string[];
6
- helpArgs: {
7
- name: string;
8
- description: string;
9
- }[];
10
- protected validate(): void;
11
- protected main(table: Table, condition: string): number;
12
- }
13
- //# sourceMappingURL=countif.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class DivideFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(divided: number, divisor: number): number;
11
- }
12
- //# sourceMappingURL=divide.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class EqFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(v1: any, v2: any): boolean;
11
- }
12
- //# sourceMappingURL=eq.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class ExpFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(exponent: number): number;
11
- }
12
- //# sourceMappingURL=exp.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class GtFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(v1: number, v2: number): boolean;
11
- }
12
- //# sourceMappingURL=gt.d.ts.map
@@ -1,12 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class GteFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
9
- protected validate(): void;
10
- protected main(v1: number, v2: number): boolean;
11
- }
12
- //# sourceMappingURL=gte.d.ts.map
@@ -1,18 +0,0 @@
1
- import { Table } from '../../lib/table';
2
- import { BaseFunction } from './__base';
3
- export declare class HlookupFunction extends BaseFunction {
4
- example: string;
5
- helpText: string[];
6
- helpArgs: ({
7
- name: string;
8
- description: string;
9
- option?: undefined;
10
- } | {
11
- name: string;
12
- description: string;
13
- option: boolean;
14
- })[];
15
- protected validate(): void;
16
- protected main(key: any, range: Table, index: number, isSorted: boolean): any;
17
- }
18
- //# sourceMappingURL=hlookup.d.ts.map
@@ -1,17 +0,0 @@
1
- import { BaseFunction } from './__base';
2
- export declare class IfFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: ({
6
- name: string;
7
- description: string;
8
- optional?: undefined;
9
- } | {
10
- name: string;
11
- description: string;
12
- optional: boolean;
13
- })[];
14
- protected validate(): void;
15
- protected main(condition: boolean, v1: any, v2?: any): any;
16
- }
17
- //# sourceMappingURL=if.d.ts.map
@@ -1,20 +0,0 @@
1
- import { FunctionProps } from './__base';
2
- export declare class IfErrorFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: ({
6
- name: string;
7
- description: string;
8
- optional?: undefined;
9
- } | {
10
- name: string;
11
- description: string;
12
- optional: boolean;
13
- })[];
14
- private args;
15
- private table;
16
- constructor({ args, table }: FunctionProps);
17
- protected validate(): void;
18
- call(): any;
19
- }
20
- //# sourceMappingURL=iferror.d.ts.map