@gridsheet/preact-core 2.0.0-rc.0

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 (115) hide show
  1. package/dist/components/Cell.d.ts +9 -0
  2. package/dist/components/ContextMenu.d.ts +20 -0
  3. package/dist/components/Editor.d.ts +10 -0
  4. package/dist/components/Emitter.d.ts +9 -0
  5. package/dist/components/Fixed.d.ts +10 -0
  6. package/dist/components/FormulaBar.d.ts +2 -0
  7. package/dist/components/GridSheet.d.ts +3 -0
  8. package/dist/components/HeaderCellLeft.d.ts +7 -0
  9. package/dist/components/HeaderCellTop.d.ts +7 -0
  10. package/dist/components/PluginBase.d.ts +21 -0
  11. package/dist/components/Resizer.d.ts +2 -0
  12. package/dist/components/ScrollHandle.d.ts +9 -0
  13. package/dist/components/SearchBar.d.ts +2 -0
  14. package/dist/components/StoreObserver.d.ts +8 -0
  15. package/dist/components/Tabular.d.ts +8 -0
  16. package/dist/components/hooks.d.ts +10 -0
  17. package/dist/components/svg/AddIcon.d.ts +3 -0
  18. package/dist/components/svg/Base.d.ts +12 -0
  19. package/dist/components/svg/CloseIcon.d.ts +3 -0
  20. package/dist/components/svg/SearchIcon.d.ts +3 -0
  21. package/dist/constants.d.ts +21 -0
  22. package/dist/formula/evaluator.d.ts +120 -0
  23. package/dist/formula/functions/__base.d.ts +26 -0
  24. package/dist/formula/functions/__utils.d.ts +12 -0
  25. package/dist/formula/functions/abs.d.ts +12 -0
  26. package/dist/formula/functions/acos.d.ts +12 -0
  27. package/dist/formula/functions/add.d.ts +13 -0
  28. package/dist/formula/functions/and.d.ts +19 -0
  29. package/dist/formula/functions/asin.d.ts +12 -0
  30. package/dist/formula/functions/atan.d.ts +12 -0
  31. package/dist/formula/functions/atan2.d.ts +12 -0
  32. package/dist/formula/functions/average.d.ts +19 -0
  33. package/dist/formula/functions/col.d.ts +13 -0
  34. package/dist/formula/functions/concat.d.ts +12 -0
  35. package/dist/formula/functions/concatenate.d.ts +19 -0
  36. package/dist/formula/functions/cos.d.ts +12 -0
  37. package/dist/formula/functions/count.d.ts +19 -0
  38. package/dist/formula/functions/counta.d.ts +19 -0
  39. package/dist/formula/functions/countif.d.ts +13 -0
  40. package/dist/formula/functions/divide.d.ts +12 -0
  41. package/dist/formula/functions/eq.d.ts +12 -0
  42. package/dist/formula/functions/exp.d.ts +12 -0
  43. package/dist/formula/functions/gt.d.ts +12 -0
  44. package/dist/formula/functions/gte.d.ts +12 -0
  45. package/dist/formula/functions/hlookup.d.ts +18 -0
  46. package/dist/formula/functions/if.d.ts +17 -0
  47. package/dist/formula/functions/iferror.d.ts +20 -0
  48. package/dist/formula/functions/len.d.ts +12 -0
  49. package/dist/formula/functions/lenb.d.ts +12 -0
  50. package/dist/formula/functions/ln.d.ts +12 -0
  51. package/dist/formula/functions/log.d.ts +12 -0
  52. package/dist/formula/functions/log10.d.ts +12 -0
  53. package/dist/formula/functions/lt.d.ts +12 -0
  54. package/dist/formula/functions/lte.d.ts +12 -0
  55. package/dist/formula/functions/max.d.ts +19 -0
  56. package/dist/formula/functions/min.d.ts +19 -0
  57. package/dist/formula/functions/minus.d.ts +13 -0
  58. package/dist/formula/functions/mod.d.ts +12 -0
  59. package/dist/formula/functions/multiply.d.ts +12 -0
  60. package/dist/formula/functions/ne.d.ts +12 -0
  61. package/dist/formula/functions/not.d.ts +12 -0
  62. package/dist/formula/functions/now.d.ts +9 -0
  63. package/dist/formula/functions/or.d.ts +19 -0
  64. package/dist/formula/functions/pi.d.ts +9 -0
  65. package/dist/formula/functions/power.d.ts +12 -0
  66. package/dist/formula/functions/product.d.ts +19 -0
  67. package/dist/formula/functions/radians.d.ts +12 -0
  68. package/dist/formula/functions/rand.d.ts +9 -0
  69. package/dist/formula/functions/round.d.ts +17 -0
  70. package/dist/formula/functions/rounddown.d.ts +17 -0
  71. package/dist/formula/functions/roundup.d.ts +17 -0
  72. package/dist/formula/functions/row.d.ts +13 -0
  73. package/dist/formula/functions/sin.d.ts +12 -0
  74. package/dist/formula/functions/sqrt.d.ts +12 -0
  75. package/dist/formula/functions/sum.d.ts +19 -0
  76. package/dist/formula/functions/sumif.d.ts +18 -0
  77. package/dist/formula/functions/tan.d.ts +12 -0
  78. package/dist/formula/functions/uminus.d.ts +12 -0
  79. package/dist/formula/functions/vlookup.d.ts +18 -0
  80. package/dist/formula/mapping.d.ts +3 -0
  81. package/dist/formula/solver.d.ts +16 -0
  82. package/dist/index.d.ts +60 -0
  83. package/dist/index.js +7166 -0
  84. package/dist/lib/autofill.d.ts +17 -0
  85. package/dist/lib/clipboard.d.ts +3 -0
  86. package/dist/lib/converters.d.ts +10 -0
  87. package/dist/lib/events.d.ts +6 -0
  88. package/dist/lib/hub.d.ts +39 -0
  89. package/dist/lib/input.d.ts +15 -0
  90. package/dist/lib/operation.d.ts +27 -0
  91. package/dist/lib/palette.d.ts +2 -0
  92. package/dist/lib/paste.d.ts +4 -0
  93. package/dist/lib/sheet.d.ts +3 -0
  94. package/dist/lib/structs.d.ts +64 -0
  95. package/dist/lib/table.d.ts +388 -0
  96. package/dist/lib/time.d.ts +24 -0
  97. package/dist/lib/virtualization.d.ts +22 -0
  98. package/dist/parsers/core.d.ts +36 -0
  99. package/dist/policy/core.d.ts +47 -0
  100. package/dist/renderers/checkbox.d.ts +5 -0
  101. package/dist/renderers/core.d.ts +62 -0
  102. package/dist/renderers/thousand_separator.d.ts +4 -0
  103. package/dist/store/actions.d.ts +194 -0
  104. package/dist/store/dispatchers.d.ts +13 -0
  105. package/dist/store/helpers.d.ts +31 -0
  106. package/dist/store/index.d.ts +10 -0
  107. package/dist/styles/embedder.d.ts +2 -0
  108. package/dist/styles/minified.d.ts +3 -0
  109. package/dist/types.d.ts +310 -0
  110. package/dist/utils.d.ts +2 -0
  111. package/exports.ts +35 -0
  112. package/index.ts +3 -0
  113. package/package.json +28 -0
  114. package/tsconfig.json +25 -0
  115. package/vite.config.js +37 -0
@@ -0,0 +1,9 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ type Props = {
3
+ y: number;
4
+ x: number;
5
+ operationStyle?: CSSProperties;
6
+ };
7
+ export declare const Cell: FC<Props>;
8
+ export {};
9
+ //# sourceMappingURL=Cell.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { FC } from 'react';
2
+ import { ContextMenuProps } from '../types';
3
+ export declare const ContextMenu: () => JSX.Element | null;
4
+ export declare const DividerItem: (props: ContextMenuProps) => JSX.Element;
5
+ export declare const CutItem: (props: ContextMenuProps) => JSX.Element;
6
+ export declare const CopyItem: (props: ContextMenuProps) => JSX.Element;
7
+ export declare const PasteItem: (props: ContextMenuProps) => JSX.Element;
8
+ export declare const PasteOnlyValueItem: (props: ContextMenuProps) => JSX.Element;
9
+ export declare const RowsColsOperationDividerItem: (props: ContextMenuProps) => JSX.Element | null;
10
+ export declare const InsertRowsAboveItem: (props: ContextMenuProps) => JSX.Element | null;
11
+ export declare const InsertRowsBelowItem: (props: ContextMenuProps) => JSX.Element | null;
12
+ export declare const InsertColsLeftItem: (props: ContextMenuProps) => JSX.Element | null;
13
+ export declare const InsertColsRightItem: (props: ContextMenuProps) => JSX.Element | null;
14
+ export declare const RemoveRowsItem: (props: ContextMenuProps) => JSX.Element | null;
15
+ export declare const RemoveColsItem: (props: ContextMenuProps) => JSX.Element | null;
16
+ export declare const HistoryDeviderItem: (props: ContextMenuProps) => JSX.Element | null;
17
+ export declare const UndoItem: (props: ContextMenuProps) => JSX.Element | null;
18
+ export declare const RedoItem: (props: ContextMenuProps) => JSX.Element | null;
19
+ export declare const defaultContextMenuItems: FC<ContextMenuProps>[];
20
+ //# sourceMappingURL=ContextMenu.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { FC, KeyboardEvent } from 'react';
2
+ import { CursorStateType, ModeType } from '../types';
3
+ type Props = {
4
+ mode: ModeType;
5
+ handleKeyUp?: (e: KeyboardEvent<HTMLTextAreaElement>, points: CursorStateType) => void;
6
+ };
7
+ export declare const Editor: FC<Props>;
8
+ export declare const editorStyle: (text: string) => JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=Editor.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { FeedbackType } from '../types';
3
+ type Props = {
4
+ onChange?: FeedbackType;
5
+ onSelect?: FeedbackType;
6
+ };
7
+ export declare const Emitter: FC<Props>;
8
+ export {};
9
+ //# sourceMappingURL=Emitter.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { CSSProperties, FC, ReactNode } from 'react';
2
+ type Props = {
3
+ className?: string;
4
+ style?: CSSProperties;
5
+ children: ReactNode;
6
+ [attr: string]: any;
7
+ };
8
+ export declare const Fixed: FC<Props>;
9
+ export {};
10
+ //# sourceMappingURL=Fixed.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const FormulaBar: () => JSX.Element;
2
+ //# sourceMappingURL=FormulaBar.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Props } from '../types';
2
+ export declare function GridSheet({ initialCells, sheetName, tableRef, options, className, style, hubReactive: initialHubReactive, }: Props): JSX.Element;
3
+ //# sourceMappingURL=GridSheet.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ type Props = {
3
+ y: number;
4
+ };
5
+ export declare const HeaderCellLeft: FC<Props>;
6
+ export {};
7
+ //# sourceMappingURL=HeaderCellLeft.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ type Props = {
3
+ x: number;
4
+ };
5
+ export declare const HeaderCellTop: FC<Props>;
6
+ export {};
7
+ //# sourceMappingURL=HeaderCellTop.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ import { StoreType } from '../types';
3
+ import { Dispatcher } from '../store';
4
+ export type PluginContextType = {
5
+ provided: boolean;
6
+ store?: StoreType;
7
+ dispatch?: Dispatcher;
8
+ setStore: (store: StoreType) => void;
9
+ setDispatch: (dispatch: Dispatcher) => void;
10
+ };
11
+ export declare const PluginContext: import('react').Context<PluginContextType>;
12
+ export declare function useInitialPluginContext(): PluginContextType;
13
+ export declare function usePluginContext(): [boolean, PluginContextType];
14
+ export declare function usePluginDispatch(): PluginContextType | undefined;
15
+ type Props = {
16
+ children: ReactNode;
17
+ context: PluginContextType;
18
+ };
19
+ export declare function PluginBase({ children, context }: Props): JSX.Element;
20
+ export {};
21
+ //# sourceMappingURL=PluginBase.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const Resizer: () => JSX.Element | null;
2
+ //# sourceMappingURL=Resizer.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { CSSProperties } from 'react';
2
+ type Props = {
3
+ style: CSSProperties;
4
+ horizontal?: number;
5
+ vertical?: number;
6
+ };
7
+ export declare function ScrollHandle({ style, horizontal, vertical }: Props): JSX.Element | null;
8
+ export {};
9
+ //# sourceMappingURL=ScrollHandle.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const SearchBar: () => JSX.Element | null;
2
+ //# sourceMappingURL=SearchBar.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { OptionsType } from '../types';
3
+ type StoreInitializerProps = OptionsType & {
4
+ sheetName?: string;
5
+ };
6
+ export declare const StoreObserver: FC<StoreInitializerProps>;
7
+ export {};
8
+ //# sourceMappingURL=StoreObserver.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { TableRef } from '../types';
2
+ type Props = {
3
+ tableRef: React.MutableRefObject<TableRef | null> | undefined;
4
+ };
5
+ export declare const createTableRef: () => import('react').MutableRefObject<TableRef | null>;
6
+ export declare const Tabular: ({ tableRef }: Props) => JSX.Element | null;
7
+ export {};
8
+ //# sourceMappingURL=Tabular.d.ts.map
@@ -0,0 +1,10 @@
1
+ export declare const useBrowser: () => {
2
+ window: Window & typeof globalThis;
3
+ document: Document;
4
+ } | {
5
+ window: null;
6
+ document: null;
7
+ };
8
+ export declare const useDebounce: <T>(value: T, delay?: number) => T;
9
+ export declare const useDebounceCallback: (callback: (...args: any[]) => void, delay?: number) => (...args: any[]) => void;
10
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './Base';
2
+ export declare const AddIcon: ({ style, color, size }: IconProps) => JSX.Element;
3
+ //# sourceMappingURL=AddIcon.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ export interface IconProps {
3
+ style?: CSSProperties;
4
+ color?: string;
5
+ size?: number;
6
+ }
7
+ interface BaseProps extends IconProps {
8
+ children?: ReactNode;
9
+ }
10
+ export declare const Base: ({ style, size, children }: BaseProps) => JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=Base.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './Base';
2
+ export declare const CloseIcon: ({ style, color, size }: IconProps) => JSX.Element;
3
+ //# sourceMappingURL=CloseIcon.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './Base';
2
+ export declare const SearchIcon: ({ style, color, size }: IconProps) => JSX.Element;
3
+ //# sourceMappingURL=SearchIcon.d.ts.map
@@ -0,0 +1,21 @@
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
+ export declare const SECONDS_IN_DAY = 86400;
19
+ export declare const FULLDATE_FORMAT_UTC = "YYYY-MM-DDTHH:mm:ss.SSSZ";
20
+ export declare const RESET_ZONE: ZoneType;
21
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,120 @@
1
+ import { Table } from '../lib/table';
2
+ import { PointType } from '../types';
3
+ type EvaluateProps = {
4
+ table: Table;
5
+ };
6
+ export declare class FormulaError {
7
+ code: string;
8
+ message: string;
9
+ error?: Error;
10
+ constructor(code: string, message: string, error?: Error);
11
+ }
12
+ declare class Entity<T = any> {
13
+ value: T;
14
+ constructor(value: T);
15
+ }
16
+ export declare class ValueEntity extends Entity {
17
+ evaluate(): any;
18
+ }
19
+ export declare class UnreferencedEntity extends Entity {
20
+ evaluate(): void;
21
+ }
22
+ export declare class InvalidRefEntity extends Entity<string> {
23
+ evaluate(): void;
24
+ }
25
+ export declare class RefEntity extends Entity<string> {
26
+ constructor(value: string);
27
+ stringify(): string;
28
+ evaluate({ table }: EvaluateProps): Table;
29
+ id(table: Table, paths: string[], slideY?: number, slideX?: number): string;
30
+ }
31
+ export declare class RangeEntity extends Entity<string> {
32
+ stringify(): string;
33
+ evaluate({ table }: EvaluateProps): Table;
34
+ idRange(table: Table, paths: string[], slideY?: number, slideX?: number): string;
35
+ }
36
+ export declare class IdEntity extends Entity<string> {
37
+ private parse;
38
+ evaluate({ table }: EvaluateProps): Table;
39
+ ref(table: Table, slideY?: number, slideX?: number): string;
40
+ slide(table: Table, slideY?: number, slideX?: number): string;
41
+ }
42
+ export declare class IdRangeEntity extends Entity<string> {
43
+ private parse;
44
+ evaluate({ table }: EvaluateProps): Table;
45
+ range(table: Table, slideY?: number, slideX?: number): string;
46
+ slide(table: Table, slideY?: number, slideX?: number): string | undefined;
47
+ }
48
+ export declare class FunctionEntity {
49
+ args: Expression[];
50
+ name: string;
51
+ precedence: number;
52
+ private origin?;
53
+ constructor(name: string, precedence?: number, args?: Expression[], origin?: PointType);
54
+ evaluate({ table }: EvaluateProps): any;
55
+ }
56
+ export type Expression = ValueEntity | RefEntity | RangeEntity | IdEntity | IdRangeEntity | FunctionEntity | UnreferencedEntity | InvalidRefEntity;
57
+ export type TokenType = 'VALUE' | 'REF' | 'RANGE' | 'ID' | 'ID_RANGE' | 'FUNCTION' | 'PREFIX_OPERATOR' | 'INFIX_OPERATOR' | 'POSTFIX_OPERATOR' | 'OPEN' | 'CLOSE' | 'COMMA' | 'SPACE' | 'UNREFERENCED' | 'INVALID_REF';
58
+ export declare class Token {
59
+ type: TokenType;
60
+ entity: any;
61
+ precedence: number;
62
+ private origin?;
63
+ constructor(type: TokenType, entity: any, precedence?: number, origin?: PointType);
64
+ length(): number;
65
+ stringify(): string;
66
+ convert(): ValueEntity | UnreferencedEntity | InvalidRefEntity | RefEntity | RangeEntity | IdEntity | IdRangeEntity | FunctionEntity | undefined;
67
+ }
68
+ type LexerOption = {
69
+ origin?: PointType;
70
+ };
71
+ export declare class Lexer {
72
+ private index;
73
+ private formula;
74
+ tokens: Token[];
75
+ foreign: boolean;
76
+ private origin?;
77
+ constructor(formula: string, options?: LexerOption);
78
+ private isWhiteSpace;
79
+ private next;
80
+ private get;
81
+ private getToken;
82
+ getTokenIndexByCharPosition(pos: number): [number, boolean];
83
+ getTokenPositionRange(index: number, slide?: number): [number, number];
84
+ stringify(): string;
85
+ stringifyToId(table: Table, slideY?: number, slideX?: number): [string, string[]];
86
+ stringifyToRef(table: Table): string;
87
+ tokenize(): void;
88
+ private skipSpaces;
89
+ private getString;
90
+ }
91
+ export declare class Parser {
92
+ index: number;
93
+ depth: number;
94
+ tokens: Token[];
95
+ constructor(tokens: Token[]);
96
+ build(): Expression | undefined;
97
+ private parse;
98
+ }
99
+ export declare const identifyFormula: ({ value, table, originPath, slideY, slideX, }: {
100
+ value: any;
101
+ table: Table;
102
+ originPath: string;
103
+ slideY?: number;
104
+ slideX?: number;
105
+ }) => any;
106
+ export declare const stripSheetName: (sheetName: string) => string;
107
+ export declare function splitRef(ref: string): {
108
+ sheetName: string | undefined;
109
+ addresses: string[];
110
+ };
111
+ export declare const parseRef: (table: Table, ref: string) => {
112
+ table: Table;
113
+ sheetId?: number;
114
+ formula?: string;
115
+ sheetName?: string;
116
+ addresses: string[];
117
+ ids: string[];
118
+ };
119
+ export {};
120
+ //# sourceMappingURL=evaluator.d.ts.map
@@ -0,0 +1,26 @@
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
+ protected bareArgs: any[];
17
+ protected table: Table;
18
+ protected origin?: PointType;
19
+ constructor({ args, table, origin }: FunctionProps);
20
+ protected validate(): void;
21
+ call(): any;
22
+ }
23
+ export type FunctionMapping = {
24
+ [functionName: string]: typeof BaseFunction;
25
+ };
26
+ //# sourceMappingURL=__base.d.ts.map
@@ -0,0 +1,12 @@
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 declare const ensureNumber: (value: any, alternative?: number) => number;
8
+ export declare const ensureString: (value: any) => string;
9
+ export declare const ensureBoolean: (value: any, alternative?: boolean) => boolean;
10
+ export declare const stripTable: (value: any, y?: number, x?: number) => any;
11
+ export declare const check: (value: any, condition: string) => boolean;
12
+ //# sourceMappingURL=__utils.d.ts.map
@@ -0,0 +1,12 @@
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
@@ -0,0 +1,12 @@
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
@@ -0,0 +1,13 @@
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 | TimeDelta;
12
+ }
13
+ //# sourceMappingURL=add.d.ts.map
@@ -0,0 +1,19 @@
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
@@ -0,0 +1,12 @@
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
@@ -0,0 +1,12 @@
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
@@ -0,0 +1,12 @@
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
@@ -0,0 +1,19 @@
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
@@ -0,0 +1,13 @@
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
@@ -0,0 +1,12 @@
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
@@ -0,0 +1,19 @@
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
@@ -0,0 +1,12 @@
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
@@ -0,0 +1,19 @@
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
@@ -0,0 +1,19 @@
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
@@ -0,0 +1,13 @@
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
@@ -0,0 +1,12 @@
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
@@ -0,0 +1,12 @@
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