@gridsheet/react-core 2.2.0 → 3.0.0-rc.1

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 (181) hide show
  1. package/dist/components/Cell.d.ts.map +1 -1
  2. package/dist/components/CellStateOverlay.d.ts.map +1 -1
  3. package/dist/components/ColumnMenu.d.ts.map +1 -1
  4. package/dist/components/ContextMenu.d.ts +1 -0
  5. package/dist/components/ContextMenu.d.ts.map +1 -1
  6. package/dist/components/Editor.d.ts.map +1 -1
  7. package/dist/components/EditorOptions.d.ts +11 -0
  8. package/dist/components/EditorOptions.d.ts.map +1 -0
  9. package/dist/components/FormulaBar.d.ts.map +1 -1
  10. package/dist/components/FunctionGuide.d.ts +19 -0
  11. package/dist/components/FunctionGuide.d.ts.map +1 -0
  12. package/dist/components/GridSheet.d.ts.map +1 -1
  13. package/dist/components/HeaderCellLeft.d.ts.map +1 -1
  14. package/dist/components/HeaderCellTop.d.ts.map +1 -1
  15. package/dist/components/RowMenu.d.ts +3 -0
  16. package/dist/components/RowMenu.d.ts.map +1 -0
  17. package/dist/components/SearchBar.d.ts.map +1 -1
  18. package/dist/components/Tabular.d.ts.map +1 -1
  19. package/dist/components/useAutocomplete.d.ts +25 -0
  20. package/dist/components/useAutocomplete.d.ts.map +1 -0
  21. package/dist/constants.d.ts +0 -4
  22. package/dist/constants.d.ts.map +1 -1
  23. package/dist/formula/evaluator.d.ts +4 -0
  24. package/dist/formula/evaluator.d.ts.map +1 -1
  25. package/dist/formula/functions/__async.d.ts +62 -0
  26. package/dist/formula/functions/__async.d.ts.map +1 -0
  27. package/dist/formula/functions/__base.d.ts +31 -4
  28. package/dist/formula/functions/__base.d.ts.map +1 -1
  29. package/dist/formula/functions/__utils.d.ts.map +1 -1
  30. package/dist/formula/functions/abs.d.ts +2 -5
  31. package/dist/formula/functions/abs.d.ts.map +1 -1
  32. package/dist/formula/functions/acos.d.ts +2 -5
  33. package/dist/formula/functions/acos.d.ts.map +1 -1
  34. package/dist/formula/functions/add.d.ts +2 -5
  35. package/dist/formula/functions/add.d.ts.map +1 -1
  36. package/dist/formula/functions/and.d.ts +2 -12
  37. package/dist/formula/functions/and.d.ts.map +1 -1
  38. package/dist/formula/functions/asin.d.ts +2 -5
  39. package/dist/formula/functions/asin.d.ts.map +1 -1
  40. package/dist/formula/functions/atan.d.ts +2 -5
  41. package/dist/formula/functions/atan.d.ts.map +1 -1
  42. package/dist/formula/functions/atan2.d.ts +2 -5
  43. package/dist/formula/functions/atan2.d.ts.map +1 -1
  44. package/dist/formula/functions/average.d.ts +2 -12
  45. package/dist/formula/functions/average.d.ts.map +1 -1
  46. package/dist/formula/functions/col.d.ts +2 -6
  47. package/dist/formula/functions/col.d.ts.map +1 -1
  48. package/dist/formula/functions/concat.d.ts +2 -5
  49. package/dist/formula/functions/concat.d.ts.map +1 -1
  50. package/dist/formula/functions/concatenate.d.ts +2 -12
  51. package/dist/formula/functions/concatenate.d.ts.map +1 -1
  52. package/dist/formula/functions/cos.d.ts +2 -5
  53. package/dist/formula/functions/cos.d.ts.map +1 -1
  54. package/dist/formula/functions/count.d.ts +2 -12
  55. package/dist/formula/functions/count.d.ts.map +1 -1
  56. package/dist/formula/functions/counta.d.ts +2 -12
  57. package/dist/formula/functions/counta.d.ts.map +1 -1
  58. package/dist/formula/functions/countif.d.ts +2 -5
  59. package/dist/formula/functions/countif.d.ts.map +1 -1
  60. package/dist/formula/functions/divide.d.ts +2 -5
  61. package/dist/formula/functions/divide.d.ts.map +1 -1
  62. package/dist/formula/functions/eq.d.ts +2 -5
  63. package/dist/formula/functions/eq.d.ts.map +1 -1
  64. package/dist/formula/functions/exp.d.ts +2 -5
  65. package/dist/formula/functions/exp.d.ts.map +1 -1
  66. package/dist/formula/functions/gt.d.ts +2 -5
  67. package/dist/formula/functions/gt.d.ts.map +1 -1
  68. package/dist/formula/functions/gte.d.ts +2 -5
  69. package/dist/formula/functions/gte.d.ts.map +1 -1
  70. package/dist/formula/functions/hlookup.d.ts +2 -10
  71. package/dist/formula/functions/hlookup.d.ts.map +1 -1
  72. package/dist/formula/functions/if.d.ts +2 -10
  73. package/dist/formula/functions/if.d.ts.map +1 -1
  74. package/dist/formula/functions/iferror.d.ts +2 -10
  75. package/dist/formula/functions/iferror.d.ts.map +1 -1
  76. package/dist/formula/functions/index.d.ts +2 -10
  77. package/dist/formula/functions/index.d.ts.map +1 -1
  78. package/dist/formula/functions/len.d.ts +2 -5
  79. package/dist/formula/functions/len.d.ts.map +1 -1
  80. package/dist/formula/functions/lenb.d.ts +2 -5
  81. package/dist/formula/functions/lenb.d.ts.map +1 -1
  82. package/dist/formula/functions/ln.d.ts +2 -5
  83. package/dist/formula/functions/ln.d.ts.map +1 -1
  84. package/dist/formula/functions/log.d.ts +2 -5
  85. package/dist/formula/functions/log.d.ts.map +1 -1
  86. package/dist/formula/functions/log10.d.ts +2 -5
  87. package/dist/formula/functions/log10.d.ts.map +1 -1
  88. package/dist/formula/functions/lt.d.ts +2 -5
  89. package/dist/formula/functions/lt.d.ts.map +1 -1
  90. package/dist/formula/functions/lte.d.ts +2 -5
  91. package/dist/formula/functions/lte.d.ts.map +1 -1
  92. package/dist/formula/functions/match.d.ts +2 -10
  93. package/dist/formula/functions/match.d.ts.map +1 -1
  94. package/dist/formula/functions/max.d.ts +2 -12
  95. package/dist/formula/functions/max.d.ts.map +1 -1
  96. package/dist/formula/functions/min.d.ts +2 -12
  97. package/dist/formula/functions/min.d.ts.map +1 -1
  98. package/dist/formula/functions/minus.d.ts +2 -5
  99. package/dist/formula/functions/minus.d.ts.map +1 -1
  100. package/dist/formula/functions/mod.d.ts +2 -5
  101. package/dist/formula/functions/mod.d.ts.map +1 -1
  102. package/dist/formula/functions/multiply.d.ts +2 -5
  103. package/dist/formula/functions/multiply.d.ts.map +1 -1
  104. package/dist/formula/functions/ne.d.ts +2 -5
  105. package/dist/formula/functions/ne.d.ts.map +1 -1
  106. package/dist/formula/functions/not.d.ts +2 -5
  107. package/dist/formula/functions/not.d.ts.map +1 -1
  108. package/dist/formula/functions/now.d.ts +2 -2
  109. package/dist/formula/functions/now.d.ts.map +1 -1
  110. package/dist/formula/functions/or.d.ts +2 -12
  111. package/dist/formula/functions/or.d.ts.map +1 -1
  112. package/dist/formula/functions/pi.d.ts +2 -2
  113. package/dist/formula/functions/pi.d.ts.map +1 -1
  114. package/dist/formula/functions/power.d.ts +2 -5
  115. package/dist/formula/functions/power.d.ts.map +1 -1
  116. package/dist/formula/functions/product.d.ts +2 -12
  117. package/dist/formula/functions/product.d.ts.map +1 -1
  118. package/dist/formula/functions/radians.d.ts +2 -5
  119. package/dist/formula/functions/radians.d.ts.map +1 -1
  120. package/dist/formula/functions/rand.d.ts +2 -2
  121. package/dist/formula/functions/rand.d.ts.map +1 -1
  122. package/dist/formula/functions/round.d.ts +2 -10
  123. package/dist/formula/functions/round.d.ts.map +1 -1
  124. package/dist/formula/functions/rounddown.d.ts +2 -10
  125. package/dist/formula/functions/rounddown.d.ts.map +1 -1
  126. package/dist/formula/functions/roundup.d.ts +2 -10
  127. package/dist/formula/functions/roundup.d.ts.map +1 -1
  128. package/dist/formula/functions/row.d.ts +2 -6
  129. package/dist/formula/functions/row.d.ts.map +1 -1
  130. package/dist/formula/functions/sin.d.ts +2 -5
  131. package/dist/formula/functions/sin.d.ts.map +1 -1
  132. package/dist/formula/functions/sqrt.d.ts +2 -5
  133. package/dist/formula/functions/sqrt.d.ts.map +1 -1
  134. package/dist/formula/functions/sum.d.ts +2 -12
  135. package/dist/formula/functions/sum.d.ts.map +1 -1
  136. package/dist/formula/functions/sumif.d.ts +2 -10
  137. package/dist/formula/functions/sumif.d.ts.map +1 -1
  138. package/dist/formula/functions/tan.d.ts +2 -5
  139. package/dist/formula/functions/tan.d.ts.map +1 -1
  140. package/dist/formula/functions/uminus.d.ts +2 -5
  141. package/dist/formula/functions/uminus.d.ts.map +1 -1
  142. package/dist/formula/functions/vlookup.d.ts +2 -10
  143. package/dist/formula/functions/vlookup.d.ts.map +1 -1
  144. package/dist/formula/mapping.d.ts +8 -1
  145. package/dist/formula/mapping.d.ts.map +1 -1
  146. package/dist/formula/solver.d.ts.map +1 -1
  147. package/dist/index.d.ts +8 -6
  148. package/dist/index.d.ts.map +1 -1
  149. package/dist/index.js +7835 -6028
  150. package/dist/index.js.map +1 -1
  151. package/dist/lib/cell.d.ts +15 -0
  152. package/dist/lib/cell.d.ts.map +1 -0
  153. package/dist/lib/{converters.d.ts → coords.d.ts} +2 -2
  154. package/dist/lib/coords.d.ts.map +1 -0
  155. package/dist/lib/hub.d.ts +11 -10
  156. package/dist/lib/hub.d.ts.map +1 -1
  157. package/dist/lib/operation.d.ts +1 -0
  158. package/dist/lib/operation.d.ts.map +1 -1
  159. package/dist/lib/palette.d.ts.map +1 -1
  160. package/dist/lib/{structs.d.ts → spatial.d.ts} +19 -1
  161. package/dist/lib/{structs.d.ts.map → spatial.d.ts.map} +1 -1
  162. package/dist/lib/table.d.ts +118 -66
  163. package/dist/lib/table.d.ts.map +1 -1
  164. package/dist/policy/core.d.ts +16 -9
  165. package/dist/policy/core.d.ts.map +1 -1
  166. package/dist/renderers/core.d.ts +1 -0
  167. package/dist/renderers/core.d.ts.map +1 -1
  168. package/dist/sentinels.d.ts +23 -0
  169. package/dist/sentinels.d.ts.map +1 -0
  170. package/dist/store/actions.d.ts +29 -37
  171. package/dist/store/actions.d.ts.map +1 -1
  172. package/dist/store/dispatchers.d.ts +2 -0
  173. package/dist/store/dispatchers.d.ts.map +1 -1
  174. package/dist/store/helpers.d.ts +0 -6
  175. package/dist/store/helpers.d.ts.map +1 -1
  176. package/dist/styles/minified.d.ts +2 -2
  177. package/dist/styles/minified.d.ts.map +1 -1
  178. package/dist/types.d.ts +36 -15
  179. package/dist/types.d.ts.map +1 -1
  180. package/package.json +14 -2
  181. package/dist/lib/converters.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAyTzB,CAAC"}
1
+ {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAwTzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CellStateOverlay.d.ts","sourceRoot":"","sources":["../../src/components/CellStateOverlay.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAwBnE,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAmEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,CAmPtC,CAAC"}
1
+ {"version":3,"file":"CellStateOverlay.d.ts","sourceRoot":"","sources":["../../src/components/CellStateOverlay.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAwBnE,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAmEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,CAkRtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAwD,MAAM,OAAO,CAAC;AAkCtF,eAAO,MAAM,UAAU,EAAE,EAqTxB,CAAC"}
1
+ {"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAwD,MAAM,OAAO,CAAC;AAmCtF,eAAO,MAAM,UAAU,EAAE,EA0iBxB,CAAC"}
@@ -3,6 +3,7 @@ import { ContextMenuProps } from '../types';
3
3
  export declare const ContextMenu: () => JSX.Element | null;
4
4
  export declare const DividerItem: (props: ContextMenuProps) => JSX.Element;
5
5
  export declare const CutItem: (props: ContextMenuProps) => JSX.Element;
6
+ export declare const SearchItem: (props: ContextMenuProps) => JSX.Element;
6
7
  export declare const CopyItem: (props: ContextMenuProps) => JSX.Element;
7
8
  export declare const PasteItem: (props: ContextMenuProps) => JSX.Element;
8
9
  export declare const PasteOnlyValueItem: (props: ContextMenuProps) => JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAsB,MAAM,OAAO,CAAC;AAqBpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,WAAW,0BAyBvB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,gBAElD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,gBAAgB,gBAS9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,gBAS/C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,gBAAgB,gBAShD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,gBAS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EF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,gBAazD,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,OAAO,gBAAgB,uBAMnE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,uBA4BzD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,gBAAgB,uBA4BrD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,gBAAgB,uBA4BrD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,uBAazD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,uBAoB/C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,uBAoB/C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAsBzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AA6B/C,OAAO,EAA6D,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK/F,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAwnB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6ChC,OAAO,EAA6D,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK/F,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAypB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface EditorOptionsProps {
3
+ filteredOptions: any[];
4
+ top: number;
5
+ left: number;
6
+ selected: number;
7
+ onOptionMouseDown: (e: React.MouseEvent<HTMLLIElement>, i: number) => void;
8
+ }
9
+ export declare const EditorOptions: React.FC<EditorOptionsProps>;
10
+ export {};
11
+ //# sourceMappingURL=EditorOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorOptions.d.ts","sourceRoot":"","sources":["../../src/components/EditorOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,eAAe,EAAE,GAAG,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4BtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAUA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,gBAsMpD,CAAC"}
1
+ {"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAcA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,gBA2WpD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { FunctionHelp } from '../formula/mapping';
3
+ import { AutocompleteOption } from '../policy/core';
4
+ type OptionWithGuide = AutocompleteOption & {
5
+ isFunction?: boolean;
6
+ example?: string;
7
+ helpTexts?: string[];
8
+ helpArgs?: any[];
9
+ };
10
+ export interface FunctionGuideProps {
11
+ option?: OptionWithGuide;
12
+ activeFunctionGuide?: FunctionHelp;
13
+ activeArgIndex?: number;
14
+ top?: number;
15
+ left?: number;
16
+ }
17
+ export declare const FunctionGuide: React.FC<FunctionGuideProps>;
18
+ export {};
19
+ //# sourceMappingURL=FunctionGuide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionGuide.d.ts","sourceRoot":"","sources":["../../src/components/FunctionGuide.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,KAAK,eAAe,GAAG,kBAAkB,GAAG;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAEjC,MAAM,CAAC,EAAE,eAAe,CAAC;IAGzB,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+GtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,SAAS,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AAoB7F,eAAO,MAAM,eAAe,mDAAsC,CAAC;AACnE,eAAO,MAAM,YAAY,0DAAuC,CAAC;AAEjE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,SAAS,EAAE,gBAAgB,EAC3B,OAAY,EACZ,SAAS,EACT,KAAK,EACL,GAAG,EAAE,UAAU,GAChB,EAAE,KAAK,eA6JP"}
1
+ {"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,SAAS,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AAqB7F,eAAO,MAAM,eAAe,mDAAsC,CAAC;AACnE,eAAO,MAAM,YAAY,0DAAuC,CAAC;AAEjE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,SAAS,EAAE,gBAAgB,EAC3B,OAAY,EACZ,SAAS,EACT,KAAK,EACL,GAAG,EAAE,UAAU,GAChB,EAAE,KAAK,eAoKP"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderCellLeft.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellLeft.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA0BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAkNnC,CAAC"}
1
+ {"version":3,"file":"HeaderCellLeft.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellLeft.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA2BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAuPnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderCellTop.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA2BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CA2OlC,CAAC"}
1
+ {"version":3,"file":"HeaderCellTop.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA2BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CA6PlC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ export declare const RowMenu: FC;
3
+ //# sourceMappingURL=RowMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../src/components/RowMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AAS5C,eAAO,MAAM,OAAO,EAAE,EA4JrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/components/SearchBar.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS,0BAoGrB,CAAC"}
1
+ {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/components/SearchBar.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS,0BAuMrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,OAAO,0BAmMnB,CAAC"}
1
+ {"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,OAAO,0BA+NnB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { FunctionHelp } from '../formula/mapping';
2
+ import { FunctionMapping } from '../formula/functions/__base';
3
+ import { AutocompleteOption } from '../policy/core';
4
+ type UseAutocompleteProps = {
5
+ inputting: string;
6
+ selectionStart: number;
7
+ optionsAll: AutocompleteOption[];
8
+ functions?: FunctionMapping;
9
+ };
10
+ export declare const useAutocomplete: ({ inputting, selectionStart, optionsAll, functions }: UseAutocompleteProps) => {
11
+ filteredOptions: any[];
12
+ selected: number;
13
+ setSelected: import('react').Dispatch<import('react').SetStateAction<number>>;
14
+ replaceWithOption: (option: any) => {
15
+ value: string;
16
+ selectionStart: any;
17
+ };
18
+ handleArrowUp: (e: React.KeyboardEvent<HTMLTextAreaElement>) => boolean;
19
+ handleArrowDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => boolean;
20
+ isFormula: boolean;
21
+ activeFunctionHelp: FunctionHelp | null;
22
+ activeArgIndex: number;
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=useAutocomplete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutocomplete.d.ts","sourceRoot":"","sources":["../../src/components/useAutocomplete.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,sDAAsD,oBAAoB;;;;gCAwL7F,GAAG;;;;uBAkBR,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;yBAYxC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;;;;CAsB/C,CAAC"}
@@ -11,10 +11,6 @@ export declare const MIN_HEIGHT = 5;
11
11
  export declare const OVERSCAN_X = 5;
12
12
  export declare const OVERSCAN_Y = 10;
13
13
  export declare const DEFAULT_ALPHABET_CACHE_SIZE = 1000;
14
- export declare class Special {
15
- name: string;
16
- constructor(name: string);
17
- }
18
14
  export declare const SECONDS_IN_DAY = 86400;
19
15
  export declare const FULLDATE_FORMAT_UTC = "YYYY-MM-DDTHH:mm:ss.SSSZ";
20
16
  export declare const RESET_ZONE: ZoneType;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,aAAa,KAAK,CAAC;AAEhC,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,WAAW,OAAO,CAAC;AAEhC,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,qBAAa,OAAO;IACX,IAAI,EAAE,MAAM,CAAC;gBACR,IAAI,EAAE,MAAM;CAGzB;AAED,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D,eAAO,MAAM,UAAU,EAAE,QAKxB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,aAAa,KAAK,CAAC;AAEhC,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,WAAW,OAAO,CAAC;AAEhC,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D,eAAO,MAAM,UAAU,EAAE,QAKxB,CAAC"}
@@ -22,7 +22,9 @@ export declare class FormulaError {
22
22
  code: string;
23
23
  message: string;
24
24
  error?: Error;
25
+ __isFormulaError: boolean;
25
26
  constructor(code: string, message: string, error?: Error);
27
+ static is(obj: any): boolean;
26
28
  }
27
29
  declare class Entity<T = any> {
28
30
  value: T;
@@ -116,6 +118,8 @@ export declare class Parser {
116
118
  build(): Expression | undefined;
117
119
  private parse;
118
120
  }
121
+ /** Alias for Parser, exported for external tooling (e.g. Debugger). */
122
+ export declare const FormulaParser: typeof Parser;
119
123
  export declare const identifyFormula: (value: any, { idMap, ...props }: IdentifyProps) => any;
120
124
  export declare const stripSheetName: (sheetName: string) => string;
121
125
  export declare function splitRef(ref: string): {
@@ -1 +1 @@
1
- {"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../src/formula/evaluator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAcF,qBAAa,YAAY;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;gBACT,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAKzD;AAED,cAAM,MAAM,CAAC,CAAC,GAAG,GAAG;IACX,KAAK,EAAE,CAAC,CAAC;gBACJ,KAAK,EAAE,CAAC;CAGrB;AAED,qBA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AM,EAAE,MAAM,CAAC;IAUjE,SAAS;IAIT,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM;IA0BtC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,YAAY;IAmB/B,QAAQ;IAkIf,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,SAAS;IA6BjB,OAAO,CAAC,cAAc;CA8BvB;AAED,qBAAa,MAAM;IACV,KAAK,SAAK;IACV,KAAK,SAAK;IACV,MAAM,EAAE,KAAK,EAAE,CAAC;gBACX,MAAM,EAAE,KAAK,EAAE;IAGpB,KAAK;IAKZ,OAAO,CAAC,KAAK;CAqGd;AAED,uEAAuE;AACvE,eAAO,MAAM,aAAa,eAAS,CAAC;AAIpC,eAAO,MAAM,eAAe,GAAI,OAAO,GAAG,EAAE,qBAAqB,aAAa,QAU7E,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,WAQ/C,CAAC;AAEF,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CA0C5F;AAED,eAAO,MAAM,QAAQ,GACnB,KAAK,MAAM,EACX,kCAAkC,aAAa,KAC9C;IACD,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,EAAE,CAAC;CA2Cf,CAAC"}
@@ -0,0 +1,62 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__async.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAY,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAiC,CAAC;AAE7D,mEAAmE;AACnE,eAAO,MAAM,aAAa,GAAI,MAAM,GAAG,EAAE,KAAG,OAE3C,CAAC;AAwBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,gBAAe,MAAU,KAAG,MAYjG,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,MAAM,CAAA;CAAE,EACtD,QAAQ,SAAS,EACjB,KAAK,MAAM,EACX,cAAa,OAAe,KAC3B,GAgEF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,GACvB,SAAS,OAAO,CAAC,GAAG,CAAC,EACrB,OAAO;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,MAAM,CAAA;CAAE,EACtD,QAAQ,SAAS,EACjB,KAAK,MAAM,EACX,kBAAkB,MAAM,EACxB,cAAa,OAAe,KAC3B,OAsDF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAE1C,CAAC"}
@@ -6,13 +6,26 @@ export type FunctionProps = {
6
6
  table: Table;
7
7
  origin?: PointType;
8
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;
9
17
  export declare class BaseFunction {
10
18
  example: string;
11
19
  helpTexts: string[];
12
- helpArgs: {
13
- name: string;
14
- description: string;
15
- }[];
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;
16
29
  protected bareArgs: any[];
17
30
  protected table: Table;
18
31
  protected origin?: PointType;
@@ -20,6 +33,20 @@ export declare class BaseFunction {
20
33
  protected validate(): void;
21
34
  call(): any;
22
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
+ }
23
50
  export type FunctionMapping = {
24
51
  [functionName: string]: typeof BaseFunction;
25
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"__base.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__base.ts"],"names":[],"mappings":"AAAA,O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AAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE3C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,EAAE,UAAU,mBAAmB,KAAG,MAmCxE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,KAAG,MAsBzC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,EAAE,UAAU,oBAAoB,KAAG,OA0B1E,CAAC;AAIF,eAAO,MAAM,KAAK,GAAI,OAAO,GAAG,EAAE,WAAW,MAAM,KAAG,OAqCrD,CAAC"}
@@ -1,11 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class AbsFunction extends BaseFunction {
3
3
  example: string;
4
4
  helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
5
+ helpArgs: HelpArg[];
9
6
  protected validate(): void;
10
7
  protected main(value: number): number;
11
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"abs.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/abs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAa;IACpB,QAAQ,WAA8C;IACtD,QAAQ;;;QAAqD;IAE7D,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
1
+ {"version":3,"file":"abs.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/abs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAa;IACpB,QAAQ,WAA8C;IACtD,QAAQ,EAAE,OAAO,EAAE,CAAuE;IAE1F,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
@@ -1,11 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class AcosFunction extends BaseFunction {
3
3
  example: string;
4
4
  helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
5
+ helpArgs: HelpArg[];
9
6
  protected validate(): void;
10
7
  protected main(value: number): number;
11
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"acos.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/acos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ;;;QAKN;IAEF,SAAS,CAAC,QAAQ;IAUlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
1
+ {"version":3,"file":"acos.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/acos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ,EAAE,OAAO,EAAE,CAMjB;IAEF,SAAS,CAAC,QAAQ;IAUlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
@@ -1,12 +1,9 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  import { TimeDelta } from '../../lib/time';
3
3
  export declare class AddFunction extends BaseFunction {
4
4
  example: string;
5
5
  helpText: string[];
6
- helpArgs: {
7
- name: string;
8
- description: string;
9
- }[];
6
+ helpArgs: HelpArg[];
10
7
  protected validate(): void;
11
8
  protected main(v1: number | Date | TimeDelta, v2: number | Date | TimeDelta): number | Date;
12
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/add.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,QAAQ,WAAgF;IACxF,QAAQ;;;QAGN;IAEF,SAAS,CAAC,QAAQ;IAYlB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;CA0B5E"}
1
+ {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/add.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,QAAQ,WAAgF;IACxF,QAAQ,EAAE,OAAO,EAAE,CAGjB;IAEF,SAAS,CAAC,QAAQ;IAYlB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;CA0B5E"}
@@ -1,18 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class AndFunction extends BaseFunction {
3
3
  example: string;
4
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
- })[];
5
+ helpArgs: HelpArg[];
16
6
  protected validate(): void;
17
7
  protected main(...values: boolean[]): boolean;
18
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"and.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/and.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAqB;IAC5B,QAAQ,WAA8G;IACtH,QAAQ;;;;;;;;;;SAQN;IAEF,SAAS,CAAC,QAAQ;IAIlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE;CAGpC"}
1
+ {"version":3,"file":"and.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/and.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAqB;IAC5B,QAAQ,WAA8G;IACtH,QAAQ,EAAE,OAAO,EAAE,CASjB;IAEF,SAAS,CAAC,QAAQ;IAIlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE;CAGpC"}
@@ -1,11 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class AsinFunction extends BaseFunction {
3
3
  example: string;
4
4
  helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
5
+ helpArgs: HelpArg[];
9
6
  protected validate(): void;
10
7
  protected main(value: number): number;
11
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"asin.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/asin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ;;;QAKN;IAEF,SAAS,CAAC,QAAQ;IAUlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
1
+ {"version":3,"file":"asin.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/asin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ,EAAE,OAAO,EAAE,CAMjB;IAEF,SAAS,CAAC,QAAQ;IAUlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
@@ -1,11 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class AtanFunction extends BaseFunction {
3
3
  example: string;
4
4
  helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
5
+ helpArgs: HelpArg[];
9
6
  protected validate(): void;
10
7
  protected main(value: number): number;
11
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"atan.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/atan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ;;;QAKN;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
1
+ {"version":3,"file":"atan.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/atan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ,EAAE,OAAO,EAAE,CAMjB;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
@@ -1,11 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class Atan2Function extends BaseFunction {
3
3
  example: string;
4
4
  helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
5
+ helpArgs: HelpArg[];
9
6
  protected validate(): void;
10
7
  protected main(x: number, y: number): number;
11
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"atan2.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/atan2.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAgB;IACvB,QAAQ,WAEN;IACF,QAAQ;;;QASN;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAGpC"}
1
+ {"version":3,"file":"atan2.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/atan2.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAgB;IACvB,QAAQ,WAEN;IACF,QAAQ,EAAE,OAAO,EAAE,CAWjB;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAGpC"}
@@ -1,18 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class AverageFunction extends BaseFunction {
3
3
  example: string;
4
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
- })[];
5
+ helpArgs: HelpArg[];
16
6
  protected validate(): void;
17
7
  protected main(...values: number[]): number;
18
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"average.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/average.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAA2B;IAClC,QAAQ,WAA4D;IACpE,QAAQ;;;;;;;;;;SAQN;IAEF,SAAS,CAAC,QAAQ;IAmBlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE;CAGnC"}
1
+ {"version":3,"file":"average.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/average.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAA2B;IAClC,QAAQ,WAA4D;IACpE,QAAQ,EAAE,OAAO,EAAE,CASjB;IAEF,SAAS,CAAC,QAAQ;IAmBlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE;CAGnC"}
@@ -1,12 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class ColFunction extends BaseFunction {
3
3
  example: string;
4
4
  helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- option: boolean;
9
- }[];
5
+ helpArgs: HelpArg[];
10
6
  protected validate(): void;
11
7
  protected main(left: number): number;
12
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/col.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAa;IACpB,QAAQ,WAAmD;IAC3D,QAAQ;;;;QAMN;IAEF,SAAS,CAAC,QAAQ;IAWlB,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM;CAG5B"}
1
+ {"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/col.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAa;IACpB,QAAQ,WAAmD;IAC3D,QAAQ,EAAE,OAAO,EAAE,CAOjB;IAEF,SAAS,CAAC,QAAQ;IAWlB,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM;CAG5B"}
@@ -1,11 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class ConcatFunction extends BaseFunction {
3
3
  example: string;
4
4
  helpText: string[];
5
- helpArgs: {
6
- name: string;
7
- description: string;
8
- }[];
5
+ helpArgs: HelpArg[];
9
6
  protected validate(): void;
10
7
  protected main(v1: string, v2: string): string;
11
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAA8B;IACrC,QAAQ,WAAyF;IACjG,QAAQ;;;QAGN;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAGtC"}
1
+ {"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAA8B;IACrC,QAAQ,WAAyF;IACjG,QAAQ,EAAE,OAAO,EAAE,CAGjB;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAGtC"}
@@ -1,18 +1,8 @@
1
- import { BaseFunction } from './__base';
1
+ import { BaseFunction, HelpArg } from './__base';
2
2
  export declare class ConcatenateFunction extends BaseFunction {
3
3
  example: string;
4
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
- })[];
5
+ helpArgs: HelpArg[];
16
6
  protected validate(): void;
17
7
  protected main(...values: string[]): string;
18
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"concatenate.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concatenate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,mBAAoB,SAAQ,YAAY;IACnD,OAAO,SAAmC;IAC1C,QAAQ,WAAgD;IACxD,QAAQ;;;;;;;;;;SAQN;IAEF,SAAS,CAAC,QAAQ;IAIlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE;CAGnC"}
1
+ {"version":3,"file":"concatenate.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concatenate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,mBAAoB,SAAQ,YAAY;IACnD,OAAO,SAAmC;IAC1C,QAAQ,WAAgD;IACxD,QAAQ,EAAE,OAAO,EAAE,CASjB;IAEF,SAAS,CAAC,QAAQ;IAIlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE;CAGnC"}