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

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 (193) hide show
  1. package/dist/components/Cell.d.ts.map +1 -1
  2. package/dist/components/ColumnMenu.d.ts.map +1 -1
  3. package/dist/components/Editor.d.ts.map +1 -1
  4. package/dist/components/FormulaBar.d.ts.map +1 -1
  5. package/dist/components/FunctionGuide.d.ts +3 -2
  6. package/dist/components/FunctionGuide.d.ts.map +1 -1
  7. package/dist/components/GridSheet.d.ts.map +1 -1
  8. package/dist/components/HeaderCellLeft.d.ts.map +1 -1
  9. package/dist/components/HeaderCellTop.d.ts.map +1 -1
  10. package/dist/components/Resizer.d.ts.map +1 -1
  11. package/dist/components/RowMenu.d.ts.map +1 -1
  12. package/dist/components/ScrollHandle.d.ts.map +1 -1
  13. package/dist/components/SearchBar.d.ts.map +1 -1
  14. package/dist/components/useAutocomplete.d.ts.map +1 -1
  15. package/dist/constants.d.ts +1 -0
  16. package/dist/constants.d.ts.map +1 -1
  17. package/dist/formula/evaluator.d.ts +8 -15
  18. package/dist/formula/evaluator.d.ts.map +1 -1
  19. package/dist/formula/formula-error.d.ts +10 -0
  20. package/dist/formula/formula-error.d.ts.map +1 -0
  21. package/dist/formula/functions/__async.d.ts +9 -4
  22. package/dist/formula/functions/__async.d.ts.map +1 -1
  23. package/dist/formula/functions/__base.d.ts +80 -14
  24. package/dist/formula/functions/__base.d.ts.map +1 -1
  25. package/dist/formula/functions/__utils.d.ts +4 -0
  26. package/dist/formula/functions/__utils.d.ts.map +1 -1
  27. package/dist/formula/functions/abs.d.ts +5 -5
  28. package/dist/formula/functions/abs.d.ts.map +1 -1
  29. package/dist/formula/functions/add.d.ts +6 -6
  30. package/dist/formula/functions/add.d.ts.map +1 -1
  31. package/dist/formula/functions/and.d.ts +5 -5
  32. package/dist/formula/functions/and.d.ts.map +1 -1
  33. package/dist/formula/functions/arrayformula.d.ts +12 -0
  34. package/dist/formula/functions/arrayformula.d.ts.map +1 -0
  35. package/dist/formula/functions/average.d.ts +5 -5
  36. package/dist/formula/functions/average.d.ts.map +1 -1
  37. package/dist/formula/functions/concat.d.ts +5 -5
  38. package/dist/formula/functions/concat.d.ts.map +1 -1
  39. package/dist/formula/functions/count.d.ts +4 -4
  40. package/dist/formula/functions/count.d.ts.map +1 -1
  41. package/dist/formula/functions/counta.d.ts +4 -4
  42. package/dist/formula/functions/counta.d.ts.map +1 -1
  43. package/dist/formula/functions/divide.d.ts +5 -4
  44. package/dist/formula/functions/divide.d.ts.map +1 -1
  45. package/dist/formula/functions/eq.d.ts +4 -4
  46. package/dist/formula/functions/eq.d.ts.map +1 -1
  47. package/dist/formula/functions/gt.d.ts +5 -5
  48. package/dist/formula/functions/gt.d.ts.map +1 -1
  49. package/dist/formula/functions/gte.d.ts +5 -5
  50. package/dist/formula/functions/gte.d.ts.map +1 -1
  51. package/dist/formula/functions/if.d.ts +5 -5
  52. package/dist/formula/functions/if.d.ts.map +1 -1
  53. package/dist/formula/functions/iferror.d.ts +7 -9
  54. package/dist/formula/functions/iferror.d.ts.map +1 -1
  55. package/dist/formula/functions/len.d.ts +5 -5
  56. package/dist/formula/functions/len.d.ts.map +1 -1
  57. package/dist/formula/functions/lt.d.ts +5 -5
  58. package/dist/formula/functions/lt.d.ts.map +1 -1
  59. package/dist/formula/functions/lte.d.ts +5 -5
  60. package/dist/formula/functions/lte.d.ts.map +1 -1
  61. package/dist/formula/functions/max.d.ts +5 -5
  62. package/dist/formula/functions/max.d.ts.map +1 -1
  63. package/dist/formula/functions/min.d.ts +5 -5
  64. package/dist/formula/functions/min.d.ts.map +1 -1
  65. package/dist/formula/functions/minus.d.ts +7 -6
  66. package/dist/formula/functions/minus.d.ts.map +1 -1
  67. package/dist/formula/functions/multiply.d.ts +5 -5
  68. package/dist/formula/functions/multiply.d.ts.map +1 -1
  69. package/dist/formula/functions/ne.d.ts +4 -4
  70. package/dist/formula/functions/ne.d.ts.map +1 -1
  71. package/dist/formula/functions/not.d.ts +5 -5
  72. package/dist/formula/functions/not.d.ts.map +1 -1
  73. package/dist/formula/functions/now.d.ts +4 -4
  74. package/dist/formula/functions/now.d.ts.map +1 -1
  75. package/dist/formula/functions/or.d.ts +5 -5
  76. package/dist/formula/functions/or.d.ts.map +1 -1
  77. package/dist/formula/functions/power.d.ts +5 -5
  78. package/dist/formula/functions/power.d.ts.map +1 -1
  79. package/dist/formula/functions/sum.d.ts +5 -5
  80. package/dist/formula/functions/sum.d.ts.map +1 -1
  81. package/dist/formula/functions/uminus.d.ts +5 -5
  82. package/dist/formula/functions/uminus.d.ts.map +1 -1
  83. package/dist/formula/mapping.d.ts +4 -3
  84. package/dist/formula/mapping.d.ts.map +1 -1
  85. package/dist/formula/solver.d.ts +6 -4
  86. package/dist/formula/solver.d.ts.map +1 -1
  87. package/dist/index.d.ts +12 -13
  88. package/dist/index.d.ts.map +1 -1
  89. package/dist/index.js +2412 -2726
  90. package/dist/index.js.map +1 -1
  91. package/dist/lib/autofill.d.ts.map +1 -1
  92. package/dist/lib/clipboard.d.ts +16 -1
  93. package/dist/lib/clipboard.d.ts.map +1 -1
  94. package/dist/lib/dom.d.ts +2 -0
  95. package/dist/lib/dom.d.ts.map +1 -0
  96. package/dist/lib/hub.d.ts +5 -21
  97. package/dist/lib/hub.d.ts.map +1 -1
  98. package/dist/lib/input.d.ts +9 -0
  99. package/dist/lib/input.d.ts.map +1 -1
  100. package/dist/lib/operation.d.ts +0 -3
  101. package/dist/lib/operation.d.ts.map +1 -1
  102. package/dist/lib/reference.d.ts.map +1 -1
  103. package/dist/lib/table.d.ts +71 -50
  104. package/dist/lib/table.d.ts.map +1 -1
  105. package/dist/lib/time.d.ts +19 -15
  106. package/dist/lib/time.d.ts.map +1 -1
  107. package/dist/policy/checkbox.d.ts +3 -0
  108. package/dist/policy/checkbox.d.ts.map +1 -0
  109. package/dist/policy/core.d.ts +125 -15
  110. package/dist/policy/core.d.ts.map +1 -1
  111. package/dist/policy/thousand_separator.d.ts +4 -0
  112. package/dist/policy/thousand_separator.d.ts.map +1 -0
  113. package/dist/sentinels.d.ts +20 -4
  114. package/dist/sentinels.d.ts.map +1 -1
  115. package/dist/store/actions.d.ts.map +1 -1
  116. package/dist/store/dispatchers.d.ts.map +1 -1
  117. package/dist/store/helpers.d.ts +4 -0
  118. package/dist/store/helpers.d.ts.map +1 -1
  119. package/dist/styles/minified.d.ts +2 -2
  120. package/dist/styles/minified.d.ts.map +1 -1
  121. package/dist/types.d.ts +8 -20
  122. package/dist/types.d.ts.map +1 -1
  123. package/package.json +1 -1
  124. package/dist/formula/functions/acos.d.ts +0 -9
  125. package/dist/formula/functions/acos.d.ts.map +0 -1
  126. package/dist/formula/functions/asin.d.ts +0 -9
  127. package/dist/formula/functions/asin.d.ts.map +0 -1
  128. package/dist/formula/functions/atan.d.ts +0 -9
  129. package/dist/formula/functions/atan.d.ts.map +0 -1
  130. package/dist/formula/functions/atan2.d.ts +0 -9
  131. package/dist/formula/functions/atan2.d.ts.map +0 -1
  132. package/dist/formula/functions/col.d.ts +0 -9
  133. package/dist/formula/functions/col.d.ts.map +0 -1
  134. package/dist/formula/functions/concatenate.d.ts +0 -9
  135. package/dist/formula/functions/concatenate.d.ts.map +0 -1
  136. package/dist/formula/functions/cos.d.ts +0 -9
  137. package/dist/formula/functions/cos.d.ts.map +0 -1
  138. package/dist/formula/functions/countif.d.ts +0 -10
  139. package/dist/formula/functions/countif.d.ts.map +0 -1
  140. package/dist/formula/functions/exp.d.ts +0 -9
  141. package/dist/formula/functions/exp.d.ts.map +0 -1
  142. package/dist/formula/functions/hlookup.d.ts +0 -10
  143. package/dist/formula/functions/hlookup.d.ts.map +0 -1
  144. package/dist/formula/functions/index.d.ts +0 -10
  145. package/dist/formula/functions/index.d.ts.map +0 -1
  146. package/dist/formula/functions/lenb.d.ts +0 -9
  147. package/dist/formula/functions/lenb.d.ts.map +0 -1
  148. package/dist/formula/functions/ln.d.ts +0 -9
  149. package/dist/formula/functions/ln.d.ts.map +0 -1
  150. package/dist/formula/functions/log.d.ts +0 -9
  151. package/dist/formula/functions/log.d.ts.map +0 -1
  152. package/dist/formula/functions/log10.d.ts +0 -9
  153. package/dist/formula/functions/log10.d.ts.map +0 -1
  154. package/dist/formula/functions/match.d.ts +0 -10
  155. package/dist/formula/functions/match.d.ts.map +0 -1
  156. package/dist/formula/functions/match.test.d.ts +0 -2
  157. package/dist/formula/functions/match.test.d.ts.map +0 -1
  158. package/dist/formula/functions/mod.d.ts +0 -9
  159. package/dist/formula/functions/mod.d.ts.map +0 -1
  160. package/dist/formula/functions/pi.d.ts +0 -9
  161. package/dist/formula/functions/pi.d.ts.map +0 -1
  162. package/dist/formula/functions/product.d.ts +0 -9
  163. package/dist/formula/functions/product.d.ts.map +0 -1
  164. package/dist/formula/functions/radians.d.ts +0 -9
  165. package/dist/formula/functions/radians.d.ts.map +0 -1
  166. package/dist/formula/functions/rand.d.ts +0 -9
  167. package/dist/formula/functions/rand.d.ts.map +0 -1
  168. package/dist/formula/functions/round.d.ts +0 -9
  169. package/dist/formula/functions/round.d.ts.map +0 -1
  170. package/dist/formula/functions/rounddown.d.ts +0 -9
  171. package/dist/formula/functions/rounddown.d.ts.map +0 -1
  172. package/dist/formula/functions/roundup.d.ts +0 -9
  173. package/dist/formula/functions/roundup.d.ts.map +0 -1
  174. package/dist/formula/functions/row.d.ts +0 -9
  175. package/dist/formula/functions/row.d.ts.map +0 -1
  176. package/dist/formula/functions/sin.d.ts +0 -9
  177. package/dist/formula/functions/sin.d.ts.map +0 -1
  178. package/dist/formula/functions/sqrt.d.ts +0 -9
  179. package/dist/formula/functions/sqrt.d.ts.map +0 -1
  180. package/dist/formula/functions/sumif.d.ts +0 -10
  181. package/dist/formula/functions/sumif.d.ts.map +0 -1
  182. package/dist/formula/functions/tan.d.ts +0 -9
  183. package/dist/formula/functions/tan.d.ts.map +0 -1
  184. package/dist/formula/functions/vlookup.d.ts +0 -10
  185. package/dist/formula/functions/vlookup.d.ts.map +0 -1
  186. package/dist/parsers/core.d.ts +0 -38
  187. package/dist/parsers/core.d.ts.map +0 -1
  188. package/dist/renderers/checkbox.d.ts +0 -5
  189. package/dist/renderers/checkbox.d.ts.map +0 -1
  190. package/dist/renderers/core.d.ts +0 -66
  191. package/dist/renderers/core.d.ts.map +0 -1
  192. package/dist/renderers/thousand_separator.d.ts +0 -3
  193. package/dist/renderers/thousand_separator.d.ts.map +0 -1
@@ -1 +1 @@
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
+ {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAuBA,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 +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;AAmCtF,eAAO,MAAM,UAAU,EAAE,EA0iBxB,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;AAoCtF,eAAO,MAAM,UAAU,EAAE,EA0iBxB,CAAC"}
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAqDhC,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,CAgqB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAeA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,gBAkYpD,CAAC"}
@@ -4,8 +4,9 @@ import { AutocompleteOption } from '../policy/core';
4
4
  type OptionWithGuide = AutocompleteOption & {
5
5
  isFunction?: boolean;
6
6
  example?: string;
7
- helpTexts?: string[];
8
- helpArgs?: any[];
7
+ category?: string;
8
+ description?: string;
9
+ defs?: any[];
9
10
  };
10
11
  export interface FunctionGuideProps {
11
12
  option?: OptionWithGuide;
@@ -1 +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
+ {"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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd,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,CA4ItD,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;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
+ {"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,eAsKP"}
@@ -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;AA2BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAuPnC,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;AA4BhC,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,CA6PlC,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;AA4BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CA6PlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Resizer.d.ts","sourceRoot":"","sources":["../../src/components/Resizer.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO,mBAuGnB,CAAC"}
1
+ {"version":3,"file":"Resizer.d.ts","sourceRoot":"","sources":["../../src/components/Resizer.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,mBAuGnB,CAAC"}
@@ -1 +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
+ {"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../src/components/RowMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AAU5C,eAAO,MAAM,OAAO,EAAE,EA4JrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollHandle.d.ts","sourceRoot":"","sources":["../../src/components/ScrollHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAc,EAAE,QAAY,EAAE,SAAc,EAAE,EAAE,KAAK,eAsL1F"}
1
+ {"version":3,"file":"ScrollHandle.d.ts","sourceRoot":"","sources":["../../src/components/ScrollHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAU3C,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAc,EAAE,QAAY,EAAE,SAAc,EAAE,EAAE,KAAK,eAsL1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/components/SearchBar.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS,0BAuMrB,CAAC"}
1
+ {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/components/SearchBar.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS,0BAuMrB,CAAC"}
@@ -1 +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"}
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;;;;gCA6L7F,GAAG;;;;uBAkBR,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;yBAYxC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;;;;CAsB/C,CAAC"}
@@ -14,4 +14,5 @@ export declare const DEFAULT_ALPHABET_CACHE_SIZE = 1000;
14
14
  export declare const SECONDS_IN_DAY = 86400;
15
15
  export declare const FULLDATE_FORMAT_UTC = "YYYY-MM-DDTHH:mm:ss.SSSZ";
16
16
  export declare const RESET_ZONE: ZoneType;
17
+ export declare const BASE_DATE: Date;
17
18
  //# sourceMappingURL=constants.d.ts.map
@@ -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,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;AAGF,eAAO,MAAM,SAAS,MAAuB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Table } from '../lib/table';
2
- import { Id, PointType } from '../types';
2
+ import { Id } from '../types';
3
3
  type EvaluateProps = {
4
4
  table: Table;
5
5
  };
@@ -18,14 +18,6 @@ export type DisplayProps = {
18
18
  slideY?: number;
19
19
  slideX?: number;
20
20
  };
21
- export declare class FormulaError {
22
- code: string;
23
- message: string;
24
- error?: Error;
25
- __isFormulaError: boolean;
26
- constructor(code: string, message: string, error?: Error);
27
- static is(obj: any): boolean;
28
- }
29
21
  declare class Entity<T = any> {
30
22
  value: T;
31
23
  constructor(value: T);
@@ -66,8 +58,8 @@ export declare class FunctionEntity {
66
58
  args: Expression[];
67
59
  name: string;
68
60
  precedence: number;
69
- private origin?;
70
- constructor(name: string, precedence?: number, args?: Expression[], origin?: PointType);
61
+ private at?;
62
+ constructor(name: string, precedence?: number, args?: Expression[], at?: Id);
71
63
  evaluate({ table }: EvaluateProps): any;
72
64
  }
73
65
  export type Expression = ValueEntity | RefEntity | RangeEntity | IdEntity | IdRangeEntity | FunctionEntity | UnreferencedEntity | InvalidRefEntity;
@@ -76,14 +68,15 @@ export declare class Token {
76
68
  type: TokenType;
77
69
  entity: any;
78
70
  precedence: number;
79
- private origin?;
80
- constructor(type: TokenType, entity: any, precedence?: number, origin?: PointType);
71
+ closed: boolean;
72
+ private at?;
73
+ constructor(type: TokenType, entity: any, precedence?: number, at?: Id, closed?: boolean);
81
74
  length(): number;
82
75
  stringify(): string;
83
76
  convert(): ValueEntity | UnreferencedEntity | InvalidRefEntity | RefEntity | RangeEntity | IdEntity | IdRangeEntity | FunctionEntity | undefined;
84
77
  }
85
78
  type LexerOption = {
86
- origin?: PointType;
79
+ at?: Id;
87
80
  idMap?: {
88
81
  [id: Id]: Id;
89
82
  };
@@ -93,7 +86,7 @@ export declare class Lexer {
93
86
  private formula;
94
87
  tokens: Token[];
95
88
  foreign: boolean;
96
- private origin?;
89
+ private at?;
97
90
  private idMap;
98
91
  constructor(formula: string, options?: LexerOption);
99
92
  private isWhiteSpace;
@@ -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,MAA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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,10 @@
1
+ export declare class FormulaError {
2
+ code: string;
3
+ message: string;
4
+ error?: Error;
5
+ __isFormulaError: boolean;
6
+ constructor(code: string, message: string, error?: Error);
7
+ static is(obj: any): obj is FormulaError;
8
+ toString(): string;
9
+ }
10
+ //# sourceMappingURL=formula-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formula-error.d.ts","sourceRoot":"","sources":["../../src/formula/formula-error.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACrB,gBAAgB,UAAQ;gBACZ,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKxD,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,YAAY;IAGxC,QAAQ;CAGT"}
@@ -1,6 +1,6 @@
1
1
  import { Pending, Sentinel } from '../../sentinels';
2
2
  import { Wire } from '../../lib/hub';
3
- import { PointType } from '../../types';
3
+ import { Id, PointType } from '../../types';
4
4
  /**
5
5
  * Sentinel value to distinguish cache miss from user-returned undefined/null.
6
6
  * Since user functions can return undefined or null, we need a special marker
@@ -9,6 +9,11 @@ import { PointType } from '../../types';
9
9
  export declare const asyncCacheMiss: Sentinel;
10
10
  /** Returns true if any element of `args` is a Pending sentinel. */
11
11
  export declare const hasPendingArg: (args: any[]) => boolean;
12
+ /**
13
+ * Recursively check whether any value in the structure is a Pending sentinel.
14
+ * Handles flat values, nested arrays, and Table objects (via getFieldMatrix).
15
+ */
16
+ export declare const hasDeepPending: (values: any[], at: Id) => boolean;
12
17
  /**
13
18
  * Build a cache key from function name + hashed serialised arguments.
14
19
  *
@@ -20,7 +25,7 @@ export declare const hasPendingArg: (args: any[]) => boolean;
20
25
  * value matrix (`any[][]`) via `getFieldMatrix()` so the key reflects the
21
26
  * actual cell values the function will operate on.
22
27
  */
23
- export declare const buildAsyncCacheKey: (funcName: string, bareArgs: any[], hashPrecision?: number) => string;
28
+ export declare const buildAsyncCacheKey: (funcName: string, args: any[], hashPrecision?: number) => string;
24
29
  /**
25
30
  * Try to retrieve a cached or pending async result for the given cache key.
26
31
  *
@@ -32,7 +37,7 @@ export declare const buildAsyncCacheKey: (funcName: string, bareArgs: any[], has
32
37
  export declare const getAsyncCache: (table: {
33
38
  wire: Wire;
34
39
  getId: (p: PointType) => string;
35
- }, origin: PointType, key: string, useInflight?: boolean) => any;
40
+ }, id: Id, key: string, useInflight?: boolean) => any;
36
41
  /**
37
42
  * Handle an async (Promise) result returned by BaseFunction.main().
38
43
  *
@@ -53,7 +58,7 @@ export declare const getAsyncCache: (table: {
53
58
  export declare const awaitAndSave: (promise: Promise<any>, table: {
54
59
  wire: Wire;
55
60
  getId: (p: PointType) => string;
56
- }, origin: PointType, key: string, ttlMilliseconds?: number, useInflight?: boolean) => Pending;
61
+ }, id: Id, key: string, ttlMilliseconds?: number, useInflight?: boolean) => Pending;
57
62
  /**
58
63
  * Create a Pending sentinel that resolves immediately.
59
64
  * Used when an argument is already pending — the result is propagated.
@@ -1 +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"}
1
+ {"version":3,"file":"__async.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAY,MAAM,iBAAiB,CAAC;AAG9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAY,EAAE,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG3D;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAiC,CAAC;AAE7D,mEAAmE;AACnE,eAAO,MAAM,aAAa,GAAI,MAAM,GAAG,EAAE,KAAG,OAE3C,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,EAAE,EAAE,IAAI,EAAE,KAAG,OAsBtD,CAAC;AAqBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,gBAAe,MAAU,KAAG,MAY7F,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,IAAI,EAAE,EACN,KAAK,MAAM,EACX,cAAa,OAAe,KAC3B,GA6DF,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,IAAI,EAAE,EACN,KAAK,MAAM,EACX,kBAAkB,MAAM,EACxB,cAAa,OAAe,KAC3B,OAmDF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAE1C,CAAC"}
@@ -1,23 +1,45 @@
1
1
  import { Table } from '../../lib/table';
2
- import { PointType } from '../../types';
2
+ import { Id } from '../../types';
3
3
  import { Expression } from '../evaluator';
4
+ /** Duck-type check for Table instances (avoids runtime import cycle). */
5
+ export declare const isTable: (v: any) => v is Table;
6
+ export type FunctionCategory = 'math' | 'statistics' | 'text' | 'time' | 'lookup' | 'information' | 'finance' | 'engineering' | 'logical' | 'other';
4
7
  export type FunctionProps = {
5
8
  args: Expression[];
6
9
  table: Table;
7
- origin?: PointType;
10
+ at?: Id;
8
11
  };
9
- export type HelpArg = {
12
+ export type FunctionArgumentType = 'number' | 'string' | 'boolean' | 'date' | 'time' | 'matrix' | 'reference' | 'any';
13
+ export type FunctionArgumentDefinition = {
10
14
  name: string;
11
15
  description: string;
12
16
  optional?: boolean;
13
- iterable?: boolean;
14
- type?: ('number' | 'string' | 'boolean' | 'date' | 'time' | 'range' | 'reference' | 'any')[];
17
+ nullable?: boolean;
18
+ variadic?: boolean;
19
+ errorTolerant?: boolean;
20
+ acceptedTypes?: FunctionArgumentType[];
21
+ /** When true, this argument takes a range/matrix value — broadcasting is suppressed for it. */
22
+ takesMatrix?: boolean;
15
23
  };
16
- export declare const conditionArg: HelpArg;
24
+ export declare const conditionArg: FunctionArgumentDefinition;
25
+ /**
26
+ * Check if a value is a "matrix" (Table, Spilling, or 2D array).
27
+ */
28
+ export declare const isMatrix: (value: any) => boolean;
29
+ /**
30
+ * Extract the scalar from a 1×1 matrix (Table, Spilling, or plain 2D array).
31
+ * Returns the value unchanged if it is not a matrix.
32
+ */
33
+ export declare const stripMatrix: (value: any, at: Id) => any;
34
+ /**
35
+ * Check if a value is a matrix that is larger than 1×1.
36
+ */
37
+ export declare const isMultiCell: (value: any) => boolean;
17
38
  export declare class BaseFunction {
18
- example: string;
19
- helpTexts: string[];
20
- helpArgs: HelpArg[];
39
+ defs: FunctionArgumentDefinition[];
40
+ example: string | undefined;
41
+ description: string;
42
+ category: FunctionCategory;
21
43
  /** Indicates if this function is async. Override in subclass or use BaseFunctionAsync. */
22
44
  protected isAsync: boolean;
23
45
  /** Cache TTL in milliseconds. Override in subclass to set expiry. undefined = never expires. */
@@ -26,12 +48,56 @@ export declare class BaseFunction {
26
48
  protected hashPrecision: number;
27
49
  /** If true, reuse the same in-flight promise for matching cache keys across different cells. */
28
50
  protected useInflight: boolean;
29
- protected bareArgs: any[];
30
- protected table: Table;
31
- protected origin?: PointType;
32
- constructor({ args, table, origin }: FunctionProps);
33
- protected validate(): void;
51
+ /** If true, broadcasting is unconditionally disabled for this function. */
52
+ protected broadcastDisabled: boolean;
53
+ protected args: any[];
54
+ protected autoSpilling: boolean;
55
+ table: Table;
56
+ at: Id;
57
+ static __name: string;
58
+ constructor({ args, table, at }: FunctionProps);
59
+ private _main;
60
+ /**
61
+ * Validate and normalise arguments before `main()` is called.
62
+ *
63
+ * Checks:
64
+ * 1. Argument count satisfies defs (respecting optional / variadic).
65
+ * 2. Each argument's runtime type matches the corresponding def's `type` list.
66
+ *
67
+ * Subclasses may override for additional coercion / spreading.
68
+ */
69
+ protected validate(args: any[]): any[];
70
+ eachMatrix: (value: any, callback: (v: any) => void) => void;
71
+ /**
72
+ * Extract a 2D array from a matrix value (Spilling, Table, or nested array).
73
+ * Default behavior for Table is value.solve(). Functions like COL can override
74
+ * this to preserve Table metadata per cell.
75
+ */
76
+ protected toMatrix(value: any): any[][];
77
+ /**
78
+ * Collapse a 1×1 matrix value (Table, Spilling, or 2D array) to a scalar.
79
+ * Non-matrix values pass through unchanged.
80
+ *
81
+ * Override in sub-classes that need the original Table / reference
82
+ * metadata (e.g. COL, ROW) — for instance, to extract position
83
+ * information before collapsing.
84
+ */
85
+ protected toScalar(value: any): any;
34
86
  call(): any;
87
+ /**
88
+ * If any broadcastable argument is a matrix (multi-cell), expand the call
89
+ * across all element positions and return a Spilling.
90
+ * Returns `undefined` when no broadcast is necessary.
91
+ *
92
+ * Rules:
93
+ * - broadcastDisabled = true → never broadcast
94
+ * - An arg is broadcastable when its corresponding args[].takesMatrix is not true
95
+ * - A Table/Spilling/2D-array whose size is (1,1) is treated as a scalar
96
+ * (not broadcast); only multi-cell matrices trigger broadcast
97
+ * - For variadic args, extra args are assigned round-robin
98
+ * across the variadic helpArg positions
99
+ */
100
+ private broadcast;
35
101
  }
36
102
  /**
37
103
  * Base class for sync funct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EAAE,aAAa;IAY9C,OAAO,CAAC,KAAK;IASb;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAwEtC,UAAU,GAAI,OAAO,GAAG,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,UAwBlD;IAEF;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,EAAE,EAAE;IAavC;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAoB5B,IAAI;IAiCX;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,SAAS;CAyFlB;AAED;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,SAAS,CAAC,OAAO,EAAE,OAAO,CAAS;CACpC;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,SAAS,CAAC,OAAO,EAAE,OAAO,CAAQ;CACnC;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,CAAA;CAAE,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Table } from '../../lib/table';
2
+ import { Id, PointType } from '../../types';
1
3
  export declare const gt: (left: any, right: any) => boolean;
2
4
  export declare const gte: (left: any, right: any) => boolean;
3
5
  export declare const lt: (left: any, right: any) => boolean;
@@ -16,4 +18,6 @@ export declare const ensureNumber: (value: any, options?: EnsureNumberOptions) =
16
18
  export declare const ensureString: (value: any) => string;
17
19
  export declare const ensureBoolean: (value: any, options?: EnsureBooleanOptions) => boolean;
18
20
  export declare const check: (value: any, condition: string) => boolean;
21
+ export declare const eachMatrix: (value: any, callback: (v: any, relativePoint: PointType) => void, at: Id) => void;
22
+ export declare const createBooleanMask: (tables: Table[], conditions: string[], at: Id) => boolean[][];
19
23
  //# sourceMappingURL=__utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAS1C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAS3C,CAAC;AAEF,eAAO,MAAM,EAAE,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
+ {"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CA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CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,KAAK,EAAE,EAAE,YAAY,MAAM,EAAE,EAAE,IAAI,EAAE,KAAG,OAAO,EAAE,EAsB1F,CAAC"}
@@ -1,9 +1,9 @@
1
- import { BaseFunction, HelpArg } from './__base';
1
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
2
2
  export declare class AbsFunction extends BaseFunction {
3
3
  example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(value: number): number;
4
+ description: string;
5
+ defs: FunctionArgumentDefinition[];
6
+ category: FunctionCategory;
7
+ protected main(value: any): number;
8
8
  }
9
9
  //# sourceMappingURL=abs.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"abs.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/abs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAKtF,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAa;IACpB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAAgF;IAClH,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAG1B"}
@@ -1,10 +1,10 @@
1
- import { BaseFunction, HelpArg } from './__base';
2
- import { TimeDelta } from '../../lib/time';
1
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
2
+ import { Time } from '../../lib/time';
3
3
  export declare class AddFunction extends BaseFunction {
4
4
  example: string;
5
- helpText: string[];
6
- helpArgs: HelpArg[];
7
- protected validate(): void;
8
- protected main(v1: number | Date | TimeDelta, v2: number | Date | TimeDelta): number | Date;
5
+ description: string;
6
+ defs: FunctionArgumentDefinition[];
7
+ category: FunctionCategory;
8
+ protected main(v1: number | Date | Time, v2: number | Date | Time): number | Date;
9
9
  }
10
10
  //# sourceMappingURL=add.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/add.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAW,KAAK,gBAAgB,EAAE,KAAK,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAEzG,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMtC,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;CA0BlE"}
@@ -1,9 +1,9 @@
1
- import { BaseFunction, HelpArg } from './__base';
1
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
2
2
  export declare class AndFunction extends BaseFunction {
3
3
  example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(...values: boolean[]): boolean;
4
+ description: string;
5
+ defs: FunctionArgumentDefinition[];
6
+ category: FunctionCategory;
7
+ protected main(...values: any[]): boolean;
8
8
  }
9
9
  //# sourceMappingURL=and.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"and.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/and.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAqB;IAC5B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAGhC"}
@@ -0,0 +1,12 @@
1
+ import { Spilling } from '../../sentinels';
2
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
3
+ export declare class ArrayformulaFunction extends BaseFunction {
4
+ autoSpilling: boolean;
5
+ example: string;
6
+ description: string;
7
+ defs: FunctionArgumentDefinition[];
8
+ category: FunctionCategory;
9
+ protected broadcastDisabled: boolean;
10
+ protected main(value: any): any[] | Spilling;
11
+ }
12
+ //# sourceMappingURL=arrayformula.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrayformula.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/arrayformula.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAKtF,qBAAa,oBAAqB,SAAQ,YAAY;IACpD,YAAY,UAAQ;IACpB,OAAO,SAAmC;IAC1C,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IACvC,SAAS,CAAC,iBAAiB,UAAQ;IAEnC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG;CAY1B"}
@@ -1,9 +1,9 @@
1
- import { BaseFunction, HelpArg } from './__base';
1
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
2
2
  export declare class AverageFunction extends BaseFunction {
3
3
  example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(...values: number[]): number;
4
+ description: string;
5
+ defs: FunctionArgumentDefinition[];
6
+ category: FunctionCategory;
7
+ protected main(...values: any[]): number;
8
8
  }
9
9
  //# sourceMappingURL=average.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"average.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/average.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAY,MAAM,UAAU,CAAC;AAKhG,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAA2B;IAClC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CA2BhC"}
@@ -1,9 +1,9 @@
1
- import { BaseFunction, HelpArg } from './__base';
1
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
2
2
  export declare class ConcatFunction extends BaseFunction {
3
3
  example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
7
- protected main(v1: string, v2: string): string;
4
+ description: string;
5
+ defs: FunctionArgumentDefinition[];
6
+ category: FunctionCategory;
7
+ protected main(v1: any, v2: any): string;
8
8
  }
9
9
  //# sourceMappingURL=concat.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAA8B;IACrC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAWhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CAGhC"}
@@ -1,9 +1,9 @@
1
- import { BaseFunction, HelpArg } from './__base';
1
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
2
2
  export declare class CountFunction extends BaseFunction {
3
3
  example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
4
+ description: string;
5
+ defs: FunctionArgumentDefinition[];
6
+ category: FunctionCategory;
7
7
  protected main(...values: any[]): number;
8
8
  }
9
9
  //# sourceMappingURL=count.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/count.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAiC;IACxC,QAAQ,WAA0D;IAClE,QAAQ,EAAE,OAAO,EAAE,CASjB;IAEF,SAAS,CAAC,QAAQ;IAYlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAGhC"}
1
+ {"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/count.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAY,MAAM,UAAU,CAAC;AAKhG,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAiC;IACxC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAoBhC"}
@@ -1,9 +1,9 @@
1
- import { BaseFunction, HelpArg } from './__base';
1
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
2
2
  export declare class CountaFunction extends BaseFunction {
3
3
  example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
4
+ description: string;
5
+ defs: FunctionArgumentDefinition[];
6
+ category: FunctionCategory;
7
7
  protected main(...values: any[]): number;
8
8
  }
9
9
  //# sourceMappingURL=counta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"counta.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/counta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAkC;IACzC,QAAQ,WAAqD;IAC7D,QAAQ,EAAE,OAAO,EAAE,CASjB;IAEF,SAAS,CAAC,QAAQ;IAYlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAGhC"}
1
+ {"version":3,"file":"counta.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/counta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAKtF,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAkC;IACzC,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAehC"}
@@ -1,9 +1,10 @@
1
- import { BaseFunction, HelpArg } from './__base';
1
+ import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
2
2
  export declare class DivideFunction extends BaseFunction {
3
3
  example: string;
4
- helpText: string[];
5
- helpArgs: HelpArg[];
6
- protected validate(): void;
4
+ description: string;
5
+ defs: FunctionArgumentDefinition[];
6
+ category: FunctionCategory;
7
+ protected validate(args: any[]): any[];
7
8
  protected main(divided: number, divisor: number): number;
8
9
  }
9
10
  //# sourceMappingURL=divide.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"divide.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/divide.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAkB;IACzB,QAAQ,WAAsG;IAC9G,QAAQ,EAAE,OAAO,EAAE,CAOjB;IAEF,SAAS,CAAC,QAAQ;IAUlB,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAGhD"}
1
+ {"version":3,"file":"divide.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/divide.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAkB;IACzB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAWhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAQtC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAGhD"}