@gridsheet/preact-core 3.0.0-rc.1 → 3.0.0-rc.3

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 (111) hide show
  1. package/dist/components/ColumnMenuFilterSection.d.ts +5 -0
  2. package/dist/components/ColumnMenuLabelSection.d.ts +5 -0
  3. package/dist/components/ColumnMenuSortSection.d.ts +5 -0
  4. package/dist/components/ContextMenu.d.ts +0 -19
  5. package/dist/components/FunctionGuide.d.ts +3 -2
  6. package/dist/components/GridSheet.d.ts +6 -4
  7. package/dist/components/MenuItem.d.ts +18 -0
  8. package/dist/components/PluginBase.d.ts +2 -2
  9. package/dist/components/StoreObserver.d.ts +7 -4
  10. package/dist/constants.d.ts +4 -0
  11. package/dist/formula/evaluator.d.ts +36 -40
  12. package/dist/formula/formula-error.d.ts +10 -0
  13. package/dist/formula/functions/__async.d.ts +17 -12
  14. package/dist/formula/functions/__base.d.ts +82 -23
  15. package/dist/formula/functions/__utils.d.ts +4 -0
  16. package/dist/formula/functions/abs.d.ts +5 -5
  17. package/dist/formula/functions/add.d.ts +6 -6
  18. package/dist/formula/functions/and.d.ts +5 -5
  19. package/dist/formula/functions/arrayformula.d.ts +12 -0
  20. package/dist/formula/functions/average.d.ts +5 -5
  21. package/dist/formula/functions/concat.d.ts +5 -5
  22. package/dist/formula/functions/count.d.ts +4 -4
  23. package/dist/formula/functions/counta.d.ts +4 -4
  24. package/dist/formula/functions/divide.d.ts +5 -4
  25. package/dist/formula/functions/eq.d.ts +4 -4
  26. package/dist/formula/functions/gt.d.ts +5 -5
  27. package/dist/formula/functions/gte.d.ts +5 -5
  28. package/dist/formula/functions/if.d.ts +5 -5
  29. package/dist/formula/functions/iferror.d.ts +7 -9
  30. package/dist/formula/functions/len.d.ts +5 -5
  31. package/dist/formula/functions/lt.d.ts +5 -5
  32. package/dist/formula/functions/lte.d.ts +5 -5
  33. package/dist/formula/functions/max.d.ts +5 -5
  34. package/dist/formula/functions/min.d.ts +5 -5
  35. package/dist/formula/functions/minus.d.ts +6 -6
  36. package/dist/formula/functions/multiply.d.ts +5 -5
  37. package/dist/formula/functions/ne.d.ts +4 -4
  38. package/dist/formula/functions/not.d.ts +5 -5
  39. package/dist/formula/functions/now.d.ts +4 -4
  40. package/dist/formula/functions/or.d.ts +5 -5
  41. package/dist/formula/functions/power.d.ts +5 -5
  42. package/dist/formula/functions/sum.d.ts +5 -5
  43. package/dist/formula/functions/uminus.d.ts +5 -5
  44. package/dist/formula/mapping.d.ts +4 -3
  45. package/dist/formula/solver.d.ts +28 -15
  46. package/dist/index.d.ts +25 -23
  47. package/dist/index.js +7883 -7796
  48. package/dist/index.js.map +1 -1
  49. package/dist/lib/autofill.d.ts +3 -3
  50. package/dist/lib/{hub.d.ts → book.d.ts} +30 -45
  51. package/dist/lib/cell.d.ts +6 -4
  52. package/dist/lib/clipboard.d.ts +16 -1
  53. package/dist/lib/coords.d.ts +13 -1
  54. package/dist/lib/dom.d.ts +7 -0
  55. package/dist/lib/input.d.ts +11 -2
  56. package/dist/lib/label.d.ts +4 -0
  57. package/dist/lib/menu.d.ts +99 -0
  58. package/dist/lib/operation.d.ts +0 -3
  59. package/dist/lib/popup.d.ts +24 -0
  60. package/dist/lib/reference.d.ts +10 -4
  61. package/dist/lib/sheet.d.ts +507 -2
  62. package/dist/lib/sheet_utils.d.ts +55 -0
  63. package/dist/lib/spatial.d.ts +5 -20
  64. package/dist/lib/time.d.ts +19 -15
  65. package/dist/lib/virtualization.d.ts +4 -4
  66. package/dist/policy/checkbox.d.ts +3 -0
  67. package/dist/policy/core.d.ts +128 -18
  68. package/dist/policy/thousand_separator.d.ts +4 -0
  69. package/dist/sentinels.d.ts +21 -4
  70. package/dist/store/actions.d.ts +3 -3
  71. package/dist/store/dispatchers.d.ts +38 -34
  72. package/dist/store/helpers.d.ts +13 -4
  73. package/dist/styles/minified.d.ts +2 -2
  74. package/dist/types.d.ts +59 -55
  75. package/package.json +1 -1
  76. package/dist/formula/functions/acos.d.ts +0 -9
  77. package/dist/formula/functions/asin.d.ts +0 -9
  78. package/dist/formula/functions/atan.d.ts +0 -9
  79. package/dist/formula/functions/atan2.d.ts +0 -9
  80. package/dist/formula/functions/col.d.ts +0 -9
  81. package/dist/formula/functions/concatenate.d.ts +0 -9
  82. package/dist/formula/functions/cos.d.ts +0 -9
  83. package/dist/formula/functions/countif.d.ts +0 -10
  84. package/dist/formula/functions/exp.d.ts +0 -9
  85. package/dist/formula/functions/hlookup.d.ts +0 -10
  86. package/dist/formula/functions/index.d.ts +0 -10
  87. package/dist/formula/functions/lenb.d.ts +0 -9
  88. package/dist/formula/functions/ln.d.ts +0 -9
  89. package/dist/formula/functions/log.d.ts +0 -9
  90. package/dist/formula/functions/log10.d.ts +0 -9
  91. package/dist/formula/functions/match.d.ts +0 -10
  92. package/dist/formula/functions/match.test.d.ts +0 -2
  93. package/dist/formula/functions/mod.d.ts +0 -9
  94. package/dist/formula/functions/pi.d.ts +0 -9
  95. package/dist/formula/functions/product.d.ts +0 -9
  96. package/dist/formula/functions/radians.d.ts +0 -9
  97. package/dist/formula/functions/rand.d.ts +0 -9
  98. package/dist/formula/functions/round.d.ts +0 -9
  99. package/dist/formula/functions/rounddown.d.ts +0 -9
  100. package/dist/formula/functions/roundup.d.ts +0 -9
  101. package/dist/formula/functions/row.d.ts +0 -9
  102. package/dist/formula/functions/sin.d.ts +0 -9
  103. package/dist/formula/functions/sqrt.d.ts +0 -9
  104. package/dist/formula/functions/sumif.d.ts +0 -10
  105. package/dist/formula/functions/tan.d.ts +0 -9
  106. package/dist/formula/functions/vlookup.d.ts +0 -10
  107. package/dist/lib/table.d.ts +0 -463
  108. package/dist/parsers/core.d.ts +0 -38
  109. package/dist/renderers/checkbox.d.ts +0 -5
  110. package/dist/renderers/core.d.ts +0 -66
  111. package/dist/renderers/thousand_separator.d.ts +0 -3
package/dist/types.d.ts CHANGED
@@ -1,18 +1,29 @@
1
- import { RendererType } from './renderers/core';
2
- import { ParserType } from './parsers/core';
3
- import { UserTable, Table } from './lib/table';
4
- import { FC, RefObject, CSSProperties, KeyboardEvent } from 'react';
5
- import { HubType, TransmitProps } from './lib/hub';
1
+ import { UserSheet, Sheet, SheetLimits } from './lib/sheet';
2
+ import { RefObject, CSSProperties, KeyboardEvent } from 'react';
3
+ import { BookType, TransmitProps } from './lib/book';
6
4
  import { PolicyType } from './policy/core';
7
5
  import { Dispatcher } from './store';
8
- export type RefEvaluation = 'COMPLETE' | 'TABLE' | 'RAW' | 'SYSTEM';
6
+ import { ContextMenuItemDescriptor, RowMenuItemDescriptor, ColMenuItemDescriptor } from './lib/menu';
7
+ /**
8
+ * Controls how formula values are resolved when reading a cell.
9
+ *
10
+ * - `'RESOLVED'` (default) — Fully evaluates formulas to a scalar value.
11
+ * Range references (e.g. `=C1:F1`) are unwrapped to the top-left scalar.
12
+ * - `'EVALUATED'` — Evaluates formulas one level deep but keeps range/Sheet
13
+ * results intact. Use this when you need the `Sheet` object a range formula
14
+ * produces (e.g. in `renderSheet` policy hooks).
15
+ * - `'RAW'` — Returns the formula string with cell addresses resolved to their
16
+ * display form; does not evaluate.
17
+ * - `'SYSTEM'` — Returns the raw stored value with no evaluation or transformation.
18
+ */
19
+ export type Resolution = 'RESOLVED' | 'EVALUATED' | 'RAW' | 'SYSTEM';
9
20
  export type Y = number;
10
21
  export type X = number;
11
22
  export type Height = number;
12
23
  export type Width = number;
13
24
  export type ShapeType = {
14
- height: Height;
15
- width: Width;
25
+ rows: number;
26
+ cols: number;
16
27
  };
17
28
  export type RectType = {
18
29
  y: Y;
@@ -21,16 +32,6 @@ export type RectType = {
21
32
  width: Width;
22
33
  };
23
34
  export type MatrixType<T = any> = T[][];
24
- export type Labeler = (n: number) => string;
25
- export type Renderers = {
26
- [s: string]: RendererType;
27
- };
28
- export type Parsers = {
29
- [s: string]: ParserType;
30
- };
31
- export type Labelers = {
32
- [s: string]: Labeler;
33
- };
34
35
  export type Policies = {
35
36
  [s: string]: PolicyType;
36
37
  };
@@ -40,7 +41,7 @@ export type CursorStateType = {
40
41
  selectingTo: PointType;
41
42
  };
42
43
  export type FeedbackType = (args: {
43
- table: UserTable;
44
+ sheet: UserSheet;
44
45
  points?: CursorStateType;
45
46
  }) => void;
46
47
  export type ModeType = 'light' | 'dark';
@@ -55,12 +56,17 @@ export type System = {
55
56
  id?: string;
56
57
  sheetId?: number;
57
58
  changedTime?: number;
58
- dependents?: Set<string>;
59
- /** Cumulative top offset (px) from table origin. Set on row-header cells (x=0). */
59
+ /** Cumulative top offset (px) from sheet origin. Set on row-header cells (x=0). */
60
60
  offsetTop?: number;
61
- /** Cumulative left offset (px) from table origin. Set on col-header cells (y=0). */
61
+ /** Cumulative left offset (px) from sheet origin. Set on col-header cells (y=0). */
62
62
  offsetLeft?: number;
63
63
  tmpAsyncCaches?: Record<string, AsyncCache>;
64
+ /** Address of the origin cell whose array formula spilled its value into this cell. */
65
+ spilledFrom?: Address;
66
+ /** IDs of cells whose formula depends on this cell. */
67
+ dependents?: Set<Id>;
68
+ /** IDs of cells that this cell's formula depends on. */
69
+ dependencies?: Set<Id>;
64
70
  };
65
71
  export type FilterConditionMethod = 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'blank' | 'nonblank' | 'includes' | 'excludes';
66
72
  export type FilterCondition = {
@@ -77,29 +83,31 @@ export type CellType<T = any, Custom = any> = {
77
83
  justifyContent?: CSSProperties['justifyContent'];
78
84
  alignItems?: CSSProperties['alignItems'];
79
85
  label?: string;
80
- labeler?: string;
81
86
  width?: Width;
82
87
  height?: Height;
83
- renderer?: string;
84
- parser?: string;
85
88
  policy?: string;
86
89
  custom?: Custom;
87
- disableFormula?: boolean;
90
+ formulaEnabled?: boolean;
88
91
  prevention?: OperationType;
89
- _sys?: System;
90
92
  /** Cached result from an async formula. Stored directly on the cell for serializability. */
91
93
  asyncCaches?: Record<string, AsyncCache>;
92
94
  /** Filter configuration. Set on col-header cells (y=0). */
93
95
  filter?: FilterConfig;
94
96
  /** Whether this row is hidden by a filter. Set on row-header cells (x=0). */
95
97
  filtered?: boolean;
98
+ /** If true, this row is excluded from sort and stays at its original position. Set on row-header cells (x=0). */
99
+ sortFixed?: boolean;
100
+ /** If true, this row is always visible regardless of active filters. Set on row-header cells (x=0). */
101
+ filterFixed?: boolean;
96
102
  };
97
103
  export type RawCellType = {
98
104
  value?: string;
99
105
  style?: CSSProperties;
100
106
  skip?: boolean;
101
107
  };
102
- export type CellPatchType = CellType;
108
+ export type CellPatchType<T = any> = Partial<CellType> & {
109
+ value: T;
110
+ };
103
111
  export type CellFilter = (cell: CellType) => boolean;
104
112
  export type CellsByAddressType = {
105
113
  [address: string]: CellType;
@@ -107,19 +115,20 @@ export type CellsByAddressType = {
107
115
  export type CellsByIdType = {
108
116
  [id: Id]: CellType | undefined;
109
117
  };
118
+ export type SystemsByIdType = {
119
+ [id: Id]: System;
120
+ };
110
121
  export type OptionsType = {
111
122
  sheetHeight?: number;
112
123
  sheetWidth?: number;
113
124
  sheetResize?: CSSProperties['resize'];
114
125
  editingOnEnter?: boolean;
115
- showAddress?: boolean;
116
126
  showFormulaBar?: boolean;
117
- minNumRows?: number;
118
- maxNumRows?: number;
119
- minNumCols?: number;
120
- maxNumCols?: number;
127
+ limits?: SheetLimits;
121
128
  mode?: ModeType;
122
- contextMenuItems?: FC<ContextMenuProps>[];
129
+ contextMenu?: ContextMenuItemDescriptor[];
130
+ rowMenu?: RowMenuItemDescriptor[];
131
+ colMenu?: ColMenuItemDescriptor[];
123
132
  };
124
133
  export type RangeType = {
125
134
  start: number;
@@ -134,7 +143,7 @@ export type ExtraPointType = {
134
143
  x: X;
135
144
  absY?: boolean;
136
145
  absX?: boolean;
137
- table?: Table;
146
+ sheet?: Sheet;
138
147
  };
139
148
  export type PositionType = {
140
149
  y: Y;
@@ -155,7 +164,7 @@ export type AreaType = {
155
164
  export type WriterType = (value: string) => void;
156
165
  export type StoreType = {
157
166
  sheetId: number;
158
- tableReactive: RefObject<Table>;
167
+ sheetReactive: RefObject<Sheet>;
159
168
  rootRef: RefObject<HTMLDivElement>;
160
169
  flashRef: RefObject<HTMLDivElement>;
161
170
  mainRef: RefObject<HTMLDivElement>;
@@ -175,10 +184,6 @@ export type StoreType = {
175
184
  dragging: boolean;
176
185
  sheetHeight: number;
177
186
  sheetWidth: number;
178
- minNumRows: number;
179
- maxNumRows: number;
180
- minNumCols: number;
181
- maxNumCols: number;
182
187
  mode: ModeType;
183
188
  searchQuery?: string;
184
189
  searchCaseSensitive: boolean;
@@ -187,9 +192,10 @@ export type StoreType = {
187
192
  matchingCells: string[];
188
193
  matchingCellIndex: number;
189
194
  editingOnEnter: boolean;
190
- showAddress: boolean;
191
195
  contextMenuPosition: PositionType;
192
- contextMenuItems: FC<ContextMenuProps>[];
196
+ contextMenu: ContextMenuItemDescriptor[];
197
+ rowMenu: RowMenuItemDescriptor[];
198
+ colMenu: ColMenuItemDescriptor[];
193
199
  resizingPositionY: [Y, Y, Y];
194
200
  resizingPositionX: [X, X, X];
195
201
  columnMenuState: {
@@ -206,22 +212,21 @@ export type Manager<T> = {
206
212
  instance: T;
207
213
  sync: T extends StoreType ? Dispatcher : (instance: T) => void;
208
214
  };
209
- export type Connector = {
210
- tableManager: {
211
- table: UserTable;
212
- sync: (table: UserTable) => void;
213
- };
214
- storeManager: {
215
- store: StoreType;
216
- sync: (store: StoreType) => void;
217
- dispatch: Dispatcher;
218
- };
215
+ export type SheetHandle = {
216
+ sheet: UserSheet;
217
+ apply: (sheet: UserSheet) => void;
218
+ };
219
+ export type StoreHandle = {
220
+ store: StoreType;
221
+ apply: (store: StoreType) => void;
222
+ dispatch: Dispatcher;
219
223
  };
220
224
  export type Props = {
221
225
  initialCells: CellsByAddressType;
222
226
  sheetName?: string;
223
- hub?: HubType;
224
- connector?: RefObject<Connector | null>;
227
+ book?: BookType;
228
+ sheetRef?: RefObject<SheetHandle | null>;
229
+ storeRef?: RefObject<StoreHandle | null>;
225
230
  options?: OptionsType;
226
231
  className?: string;
227
232
  style?: CSSProperties;
@@ -361,5 +366,4 @@ export type EditorEventWithNativeEvent = EditorEvent & {
361
366
  isComposing: boolean;
362
367
  };
363
368
  };
364
- export type ContextMenuProps = StoreDispatchType;
365
369
  //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsheet/preact-core",
3
- "version": "3.0.0-rc.1",
3
+ "version": "3.0.0-rc.3",
4
4
  "description": "Spreadsheet component for Preact",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -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,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 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 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,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 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,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,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 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,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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=match.test.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class ModFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(v1: number, v2: number): number;
8
- }
9
- //# sourceMappingURL=mod.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class PiFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(): number;
8
- }
9
- //# sourceMappingURL=pi.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class ProductFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(...values: number[]): number;
8
- }
9
- //# sourceMappingURL=product.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class RadiansFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(angle: number): number;
8
- }
9
- //# sourceMappingURL=radians.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class RandFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(): number;
8
- }
9
- //# sourceMappingURL=rand.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class RoundFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(value: number, digit?: number): number;
8
- }
9
- //# sourceMappingURL=round.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class RounddownFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(value: number, digit?: number): number;
8
- }
9
- //# sourceMappingURL=rounddown.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class RoundupFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(value: number, digit?: number): number;
8
- }
9
- //# sourceMappingURL=roundup.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class RowFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(top: number): number;
8
- }
9
- //# sourceMappingURL=row.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class SinFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(angle: number): number;
8
- }
9
- //# sourceMappingURL=sin.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class SqrtFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(value: number): number;
8
- }
9
- //# sourceMappingURL=sqrt.d.ts.map
@@ -1,10 +0,0 @@
1
- import { Table } from '../../lib/table';
2
- import { BaseFunction, HelpArg } from './__base';
3
- export declare class SumifFunction extends BaseFunction {
4
- example: string;
5
- helpText: string[];
6
- helpArgs: HelpArg[];
7
- protected validate(): void;
8
- protected main(range: Table, condition: string, sumRange: Table): number;
9
- }
10
- //# sourceMappingURL=sumif.d.ts.map
@@ -1,9 +0,0 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- export declare class TanFunction extends BaseFunction {
3
- example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(angle: number): number;
8
- }
9
- //# sourceMappingURL=tan.d.ts.map
@@ -1,10 +0,0 @@
1
- import { Table } from '../../lib/table';
2
- import { BaseFunction, HelpArg } from './__base';
3
- export declare class VlookupFunction 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=vlookup.d.ts.map