@gridsheet/react-core 0.12.4-rc.0 → 0.12.4

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 (212) hide show
  1. package/dist/components/Cell.d.ts.map +1 -1
  2. package/dist/components/Cell.js +181 -190
  3. package/dist/components/Cell.js.map +1 -1
  4. package/dist/components/ContextMenu.js +198 -208
  5. package/dist/components/ContextMenu.js.map +1 -1
  6. package/dist/components/Editor.d.ts.map +1 -1
  7. package/dist/components/Editor.js +262 -275
  8. package/dist/components/Editor.js.map +1 -1
  9. package/dist/components/Emitter.js +29 -39
  10. package/dist/components/Emitter.js.map +1 -1
  11. package/dist/components/GridSheet.d.ts.map +1 -1
  12. package/dist/components/GridSheet.js +109 -119
  13. package/dist/components/GridSheet.js.map +1 -1
  14. package/dist/components/HeaderLeftCell.js +61 -72
  15. package/dist/components/HeaderLeftCell.js.map +1 -1
  16. package/dist/components/HeaderTopCell.js +62 -73
  17. package/dist/components/HeaderTopCell.js.map +1 -1
  18. package/dist/components/Resizer.d.ts.map +1 -1
  19. package/dist/components/Resizer.js +79 -87
  20. package/dist/components/Resizer.js.map +1 -1
  21. package/dist/components/SearchBox.d.ts.map +1 -1
  22. package/dist/components/SearchBox.js +54 -62
  23. package/dist/components/SearchBox.js.map +1 -1
  24. package/dist/components/StoreInitializer.js +71 -81
  25. package/dist/components/StoreInitializer.js.map +1 -1
  26. package/dist/components/Tabular.d.ts +2 -2
  27. package/dist/components/Tabular.d.ts.map +1 -1
  28. package/dist/components/Tabular.js +85 -95
  29. package/dist/components/Tabular.js.map +1 -1
  30. package/dist/constants.d.ts.map +1 -1
  31. package/dist/constants.js +26 -33
  32. package/dist/constants.js.map +1 -1
  33. package/dist/formula/evaluator.d.ts +1 -1
  34. package/dist/formula/evaluator.js +490 -500
  35. package/dist/formula/evaluator.js.map +1 -1
  36. package/dist/formula/functions/__base.js +17 -27
  37. package/dist/formula/functions/__base.js.map +1 -1
  38. package/dist/formula/functions/__utils.js +103 -113
  39. package/dist/formula/functions/__utils.js.map +1 -1
  40. package/dist/formula/functions/abs.js +21 -31
  41. package/dist/formula/functions/abs.js.map +1 -1
  42. package/dist/formula/functions/abs.spec.js +25 -35
  43. package/dist/formula/functions/abs.spec.js.map +1 -1
  44. package/dist/formula/functions/acos.js +28 -38
  45. package/dist/formula/functions/acos.js.map +1 -1
  46. package/dist/formula/functions/add.js +47 -57
  47. package/dist/formula/functions/add.js.map +1 -1
  48. package/dist/formula/functions/and.js +28 -38
  49. package/dist/formula/functions/and.js.map +1 -1
  50. package/dist/formula/functions/asin.js +28 -38
  51. package/dist/formula/functions/asin.js.map +1 -1
  52. package/dist/formula/functions/atan.js +26 -36
  53. package/dist/formula/functions/atan.js.map +1 -1
  54. package/dist/formula/functions/atan2.js +32 -42
  55. package/dist/formula/functions/atan2.js.map +1 -1
  56. package/dist/formula/functions/average.js +40 -50
  57. package/dist/formula/functions/average.js.map +1 -1
  58. package/dist/formula/functions/col.js +28 -38
  59. package/dist/formula/functions/col.js.map +1 -1
  60. package/dist/formula/functions/concat.js +27 -37
  61. package/dist/formula/functions/concat.js.map +1 -1
  62. package/dist/formula/functions/concatenate.js +25 -35
  63. package/dist/formula/functions/concatenate.js.map +1 -1
  64. package/dist/formula/functions/cos.js +26 -36
  65. package/dist/formula/functions/cos.js.map +1 -1
  66. package/dist/formula/functions/count.js +35 -45
  67. package/dist/formula/functions/count.js.map +1 -1
  68. package/dist/formula/functions/counta.js +35 -45
  69. package/dist/formula/functions/counta.js.map +1 -1
  70. package/dist/formula/functions/countif.js +30 -40
  71. package/dist/formula/functions/countif.js.map +1 -1
  72. package/dist/formula/functions/divide.js +32 -42
  73. package/dist/formula/functions/divide.js.map +1 -1
  74. package/dist/formula/functions/eq.js +25 -35
  75. package/dist/formula/functions/eq.js.map +1 -1
  76. package/dist/formula/functions/exp.js +28 -38
  77. package/dist/formula/functions/exp.js.map +1 -1
  78. package/dist/formula/functions/gt.js +27 -37
  79. package/dist/formula/functions/gt.js.map +1 -1
  80. package/dist/formula/functions/gte.js +27 -37
  81. package/dist/formula/functions/gte.js.map +1 -1
  82. package/dist/formula/functions/hlookup.js +67 -77
  83. package/dist/formula/functions/hlookup.js.map +1 -1
  84. package/dist/formula/functions/if.js +36 -46
  85. package/dist/formula/functions/if.js.map +1 -1
  86. package/dist/formula/functions/iferror.js +38 -48
  87. package/dist/formula/functions/iferror.js.map +1 -1
  88. package/dist/formula/functions/iferror.spec.js +53 -63
  89. package/dist/formula/functions/iferror.spec.js.map +1 -1
  90. package/dist/formula/functions/len.js +26 -36
  91. package/dist/formula/functions/len.js.map +1 -1
  92. package/dist/formula/functions/lenb.js +26 -36
  93. package/dist/formula/functions/lenb.js.map +1 -1
  94. package/dist/formula/functions/ln.js +28 -38
  95. package/dist/formula/functions/ln.js.map +1 -1
  96. package/dist/formula/functions/log.js +33 -43
  97. package/dist/formula/functions/log.js.map +1 -1
  98. package/dist/formula/functions/log10.js +28 -38
  99. package/dist/formula/functions/log10.js.map +1 -1
  100. package/dist/formula/functions/lt.js +27 -37
  101. package/dist/formula/functions/lt.js.map +1 -1
  102. package/dist/formula/functions/lte.js +27 -37
  103. package/dist/formula/functions/lte.js.map +1 -1
  104. package/dist/formula/functions/max.js +42 -52
  105. package/dist/formula/functions/max.js.map +1 -1
  106. package/dist/formula/functions/min.js +42 -52
  107. package/dist/formula/functions/min.js.map +1 -1
  108. package/dist/formula/functions/minus.js +47 -57
  109. package/dist/formula/functions/minus.js.map +1 -1
  110. package/dist/formula/functions/mod.js +30 -40
  111. package/dist/formula/functions/mod.js.map +1 -1
  112. package/dist/formula/functions/mod.spec.js +47 -57
  113. package/dist/formula/functions/mod.spec.js.map +1 -1
  114. package/dist/formula/functions/multiply.js +27 -37
  115. package/dist/formula/functions/multiply.js.map +1 -1
  116. package/dist/formula/functions/ne.js +25 -35
  117. package/dist/formula/functions/ne.js.map +1 -1
  118. package/dist/formula/functions/not.js +30 -40
  119. package/dist/formula/functions/not.js.map +1 -1
  120. package/dist/formula/functions/now.js +21 -31
  121. package/dist/formula/functions/now.js.map +1 -1
  122. package/dist/formula/functions/or.js +28 -38
  123. package/dist/formula/functions/or.js.map +1 -1
  124. package/dist/formula/functions/pi.js +19 -29
  125. package/dist/formula/functions/pi.js.map +1 -1
  126. package/dist/formula/functions/power.js +24 -34
  127. package/dist/formula/functions/power.js.map +1 -1
  128. package/dist/formula/functions/product.js +37 -47
  129. package/dist/formula/functions/product.js.map +1 -1
  130. package/dist/formula/functions/radians.js +26 -36
  131. package/dist/formula/functions/radians.js.map +1 -1
  132. package/dist/formula/functions/rand.js +19 -29
  133. package/dist/formula/functions/rand.js.map +1 -1
  134. package/dist/formula/functions/round.js +34 -44
  135. package/dist/formula/functions/round.js.map +1 -1
  136. package/dist/formula/functions/rounddown.js +34 -44
  137. package/dist/formula/functions/rounddown.js.map +1 -1
  138. package/dist/formula/functions/roundup.js +34 -44
  139. package/dist/formula/functions/roundup.js.map +1 -1
  140. package/dist/formula/functions/row.js +28 -38
  141. package/dist/formula/functions/row.js.map +1 -1
  142. package/dist/formula/functions/sin.js +26 -36
  143. package/dist/formula/functions/sin.js.map +1 -1
  144. package/dist/formula/functions/sqrt.js +28 -38
  145. package/dist/formula/functions/sqrt.js.map +1 -1
  146. package/dist/formula/functions/sum.js +42 -52
  147. package/dist/formula/functions/sum.js.map +1 -1
  148. package/dist/formula/functions/sum.spec.js +35 -45
  149. package/dist/formula/functions/sum.spec.js.map +1 -1
  150. package/dist/formula/functions/sumif.js +56 -66
  151. package/dist/formula/functions/sumif.js.map +1 -1
  152. package/dist/formula/functions/tan.js +26 -36
  153. package/dist/formula/functions/tan.js.map +1 -1
  154. package/dist/formula/functions/uminus.js +23 -33
  155. package/dist/formula/functions/uminus.js.map +1 -1
  156. package/dist/formula/functions/vlookup.js +67 -77
  157. package/dist/formula/functions/vlookup.js.map +1 -1
  158. package/dist/formula/mapping.js +116 -126
  159. package/dist/formula/mapping.js.map +1 -1
  160. package/dist/formula/solver.js +61 -71
  161. package/dist/formula/solver.js.map +1 -1
  162. package/dist/index.js +31 -41
  163. package/dist/index.js.map +1 -1
  164. package/dist/lib/autofill.js +334 -344
  165. package/dist/lib/autofill.js.map +1 -1
  166. package/dist/lib/clipboard.js +45 -55
  167. package/dist/lib/clipboard.js.map +1 -1
  168. package/dist/lib/converters.js +130 -140
  169. package/dist/lib/converters.js.map +1 -1
  170. package/dist/lib/hooks.d.ts +1 -0
  171. package/dist/lib/hooks.d.ts.map +1 -0
  172. package/dist/lib/hooks.js +2 -0
  173. package/dist/lib/hooks.js.map +1 -0
  174. package/dist/lib/structs.js +254 -264
  175. package/dist/lib/structs.js.map +1 -1
  176. package/dist/lib/table.d.ts +1 -3
  177. package/dist/lib/table.d.ts.map +1 -1
  178. package/dist/lib/table.js +897 -911
  179. package/dist/lib/table.js.map +1 -1
  180. package/dist/lib/time.d.ts.map +1 -1
  181. package/dist/lib/time.js +59 -69
  182. package/dist/lib/time.js.map +1 -1
  183. package/dist/lib/virtualization.d.ts +3 -12
  184. package/dist/lib/virtualization.d.ts.map +1 -1
  185. package/dist/lib/virtualization.js +116 -120
  186. package/dist/lib/virtualization.js.map +1 -1
  187. package/dist/parsers/core.js +109 -119
  188. package/dist/parsers/core.js.map +1 -1
  189. package/dist/renderers/checkbox.js +11 -21
  190. package/dist/renderers/checkbox.js.map +1 -1
  191. package/dist/renderers/core.d.ts +1 -1
  192. package/dist/renderers/core.d.ts.map +1 -1
  193. package/dist/renderers/core.js +129 -139
  194. package/dist/renderers/core.js.map +1 -1
  195. package/dist/renderers/thousand_separator.js +15 -25
  196. package/dist/renderers/thousand_separator.js.map +1 -1
  197. package/dist/store/actions.js +485 -495
  198. package/dist/store/actions.js.map +1 -1
  199. package/dist/store/helpers.js +78 -88
  200. package/dist/store/helpers.js.map +1 -1
  201. package/dist/store/index.js +5 -15
  202. package/dist/store/index.js.map +1 -1
  203. package/dist/styles/embedder.js +17 -27
  204. package/dist/styles/embedder.js.map +1 -1
  205. package/dist/styles/minified.js +6 -16
  206. package/dist/styles/minified.js.map +1 -1
  207. package/dist/types.d.ts +10 -5
  208. package/dist/types.d.ts.map +1 -1
  209. package/dist/types.js +2 -12
  210. package/dist/utils.js +9 -19
  211. package/dist/utils.js.map +1 -1
  212. package/package.json +9 -2
@@ -1,40 +1,30 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TanFunction = void 0;
4
+ const evaluator_1 = require("../evaluator");
5
+ const __base_1 = require("./__base");
6
+ const __utils_1 = require("./__utils");
7
+ class TanFunction extends __base_1.BaseFunction {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.example = "TAN(1)";
11
+ this.helpText = ["Returns the tan of the angle specified in radians."];
12
+ this.helpArgs = [
13
+ {
14
+ name: "angle",
15
+ description: "An angle in radians, at which you want the tan.",
16
+ },
17
+ ];
5
18
  }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "../evaluator", "./__base", "./__utils"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TanFunction = void 0;
13
- const evaluator_1 = require("../evaluator");
14
- const __base_1 = require("./__base");
15
- const __utils_1 = require("./__utils");
16
- class TanFunction extends __base_1.BaseFunction {
17
- constructor() {
18
- super(...arguments);
19
- this.example = "TAN(1)";
20
- this.helpText = ["Returns the tan of the angle specified in radians."];
21
- this.helpArgs = [
22
- {
23
- name: "angle",
24
- description: "An angle in radians, at which you want the tan.",
25
- },
26
- ];
27
- }
28
- validate() {
29
- if (this.bareArgs.length !== 1) {
30
- throw new evaluator_1.FormulaError("#N/A", "Number of arguments for TAN is incorrect.");
31
- }
32
- this.bareArgs = this.bareArgs.map((arg) => (0, __utils_1.ensureNumber)(arg));
33
- }
34
- main(angle) {
35
- return Math.tan(angle);
19
+ validate() {
20
+ if (this.bareArgs.length !== 1) {
21
+ throw new evaluator_1.FormulaError("#N/A", "Number of arguments for TAN is incorrect.");
36
22
  }
23
+ this.bareArgs = this.bareArgs.map((arg) => (0, __utils_1.ensureNumber)(arg));
24
+ }
25
+ main(angle) {
26
+ return Math.tan(angle);
37
27
  }
38
- exports.TanFunction = TanFunction;
39
- });
28
+ }
29
+ exports.TanFunction = TanFunction;
40
30
  //# sourceMappingURL=tan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tan.js","sourceRoot":"","sources":["../../../src/formula/functions/tan.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,4CAA4C;IAC5C,qCAAwC;IACxC,uCAAyC;IAEzC,MAAa,WAAY,SAAQ,qBAAY;QAA7C;;YACE,YAAO,GAAG,QAAQ,CAAC;YACnB,aAAQ,GAAG,CAAC,oDAAoD,CAAC,CAAC;YAClE,aAAQ,GAAG;gBACT;oBACE,IAAI,EAAE,OAAO;oBACb,WAAW,EAAE,iDAAiD;iBAC/D;aACF,CAAC;QAeJ,CAAC;QAbW,QAAQ;YAChB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC9B,MAAM,IAAI,wBAAY,CACpB,MAAM,EACN,2CAA2C,CAC5C,CAAC;aACH;YACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,sBAAY,EAAC,GAAG,CAAC,CAAC,CAAC;QAChE,CAAC;QAES,IAAI,CAAC,KAAa;YAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;KACF;IAvBD,kCAuBC"}
1
+ {"version":3,"file":"tan.js","sourceRoot":"","sources":["../../../src/formula/functions/tan.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,qCAAwC;AACxC,uCAAyC;AAEzC,MAAa,WAAY,SAAQ,qBAAY;IAA7C;;QACE,YAAO,GAAG,QAAQ,CAAC;QACnB,aAAQ,GAAG,CAAC,oDAAoD,CAAC,CAAC;QAClE,aAAQ,GAAG;YACT;gBACE,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,iDAAiD;aAC/D;SACF,CAAC;IAeJ,CAAC;IAbW,QAAQ;QAChB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YAC9B,MAAM,IAAI,wBAAY,CACpB,MAAM,EACN,2CAA2C,CAC5C,CAAC;SACH;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,sBAAY,EAAC,GAAG,CAAC,CAAC,CAAC;IAChE,CAAC;IAES,IAAI,CAAC,KAAa;QAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;CACF;AAvBD,kCAuBC"}
@@ -1,37 +1,27 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UminusFunction = void 0;
4
+ const evaluator_1 = require("../evaluator");
5
+ const __base_1 = require("./__base");
6
+ const __utils_1 = require("./__utils");
7
+ class UminusFunction extends __base_1.BaseFunction {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.example = "UMINUS(4)";
11
+ this.helpText = ["Returns a number with positive and negative values reversed."];
12
+ this.helpArgs = [
13
+ { name: "value1", description: "A number that will be subtracted." },
14
+ ];
5
15
  }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "../evaluator", "./__base", "./__utils"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UminusFunction = void 0;
13
- const evaluator_1 = require("../evaluator");
14
- const __base_1 = require("./__base");
15
- const __utils_1 = require("./__utils");
16
- class UminusFunction extends __base_1.BaseFunction {
17
- constructor() {
18
- super(...arguments);
19
- this.example = "UMINUS(4)";
20
- this.helpText = ["Returns a number with positive and negative values reversed."];
21
- this.helpArgs = [
22
- { name: "value1", description: "A number that will be subtracted." },
23
- ];
24
- }
25
- validate() {
26
- if (this.bareArgs.length !== 1) {
27
- throw new evaluator_1.FormulaError("#N/A", "A single numerical value is only required.");
28
- }
29
- this.bareArgs = this.bareArgs.map((arg) => (0, __utils_1.ensureNumber)(arg));
30
- }
31
- main(v1) {
32
- return -v1;
16
+ validate() {
17
+ if (this.bareArgs.length !== 1) {
18
+ throw new evaluator_1.FormulaError("#N/A", "A single numerical value is only required.");
33
19
  }
20
+ this.bareArgs = this.bareArgs.map((arg) => (0, __utils_1.ensureNumber)(arg));
21
+ }
22
+ main(v1) {
23
+ return -v1;
34
24
  }
35
- exports.UminusFunction = UminusFunction;
36
- });
25
+ }
26
+ exports.UminusFunction = UminusFunction;
37
27
  //# sourceMappingURL=uminus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uminus.js","sourceRoot":"","sources":["../../../src/formula/functions/uminus.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,4CAA4C;IAC5C,qCAAwC;IACxC,uCAAyC;IAEzC,MAAa,cAAe,SAAQ,qBAAY;QAAhD;;YACE,YAAO,GAAG,WAAW,CAAC;YACtB,aAAQ,GAAG,CAAC,8DAA8D,CAAC,CAAC;YAC5E,aAAQ,GAAG;gBACT,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mCAAmC,EAAE;aACrE,CAAC;QAeJ,CAAC;QAbW,QAAQ;YAChB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC9B,MAAM,IAAI,wBAAY,CACpB,MAAM,EACN,4CAA4C,CAC7C,CAAC;aACH;YACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,sBAAY,EAAC,GAAG,CAAC,CAAC,CAAC;QAChE,CAAC;QAES,IAAI,CAAC,EAAU;YACvB,OAAO,CAAC,EAAE,CAAC;QACb,CAAC;KACF;IApBD,wCAoBC"}
1
+ {"version":3,"file":"uminus.js","sourceRoot":"","sources":["../../../src/formula/functions/uminus.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,qCAAwC;AACxC,uCAAyC;AAEzC,MAAa,cAAe,SAAQ,qBAAY;IAAhD;;QACE,YAAO,GAAG,WAAW,CAAC;QACtB,aAAQ,GAAG,CAAC,8DAA8D,CAAC,CAAC;QAC5E,aAAQ,GAAG;YACT,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mCAAmC,EAAE;SACrE,CAAC;IAeJ,CAAC;IAbW,QAAQ;QAChB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YAC9B,MAAM,IAAI,wBAAY,CACpB,MAAM,EACN,4CAA4C,CAC7C,CAAC;SACH;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,sBAAY,EAAC,GAAG,CAAC,CAAC,CAAC;IAChE,CAAC;IAES,IAAI,CAAC,EAAU;QACvB,OAAO,CAAC,EAAE,CAAC;IACb,CAAC;CACF;AApBD,wCAoBC"}
@@ -1,88 +1,78 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VlookupFunction = void 0;
4
+ const evaluator_1 = require("../evaluator");
5
+ const solver_1 = require("../solver");
6
+ const table_1 = require("../../lib/table");
7
+ const __base_1 = require("./__base");
8
+ const __utils_1 = require("./__utils");
9
+ class VlookupFunction extends __base_1.BaseFunction {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.example = "VLOOKUP(10003, A2:B26, 2, FALSE)";
13
+ this.helpText = [
14
+ "Searches vertically for the specified key in the first column of the range and returns the value of the specified cell in the same row.",
15
+ ];
16
+ this.helpArgs = [
17
+ { name: "key", description: "Search key." },
18
+ {
19
+ name: "range",
20
+ description: "A range for search",
21
+ },
22
+ {
23
+ name: "index",
24
+ description: "The index of the column in the range.",
25
+ },
26
+ {
27
+ name: "is_sorted",
28
+ description: "FALSE: Exact match. This is recommended. TRUE: Approximate match. Before you use an approximate match, sort your search key in ascending order. Otherwise, you may likely get a wrong return value.",
29
+ option: true,
30
+ },
31
+ ];
5
32
  }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "../evaluator", "../solver", "../../lib/table", "./__base", "./__utils"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.VlookupFunction = void 0;
13
- const evaluator_1 = require("../evaluator");
14
- const solver_1 = require("../solver");
15
- const table_1 = require("../../lib/table");
16
- const __base_1 = require("./__base");
17
- const __utils_1 = require("./__utils");
18
- class VlookupFunction extends __base_1.BaseFunction {
19
- constructor() {
20
- super(...arguments);
21
- this.example = "VLOOKUP(10003, A2:B26, 2, FALSE)";
22
- this.helpText = [
23
- "Searches vertically for the specified key in the first column of the range and returns the value of the specified cell in the same row.",
24
- ];
25
- this.helpArgs = [
26
- { name: "key", description: "Search key." },
27
- {
28
- name: "range",
29
- description: "A range for search",
30
- },
31
- {
32
- name: "index",
33
- description: "The index of the column in the range.",
34
- },
35
- {
36
- name: "is_sorted",
37
- description: "FALSE: Exact match. This is recommended. TRUE: Approximate match. Before you use an approximate match, sort your search key in ascending order. Otherwise, you may likely get a wrong return value.",
38
- option: true,
39
- },
40
- ];
33
+ validate() {
34
+ if (this.bareArgs.length !== 3 && this.bareArgs.length !== 4) {
35
+ throw new evaluator_1.FormulaError("#N/A", "Number of arguments for VLOOKUP is incorrect.");
41
36
  }
42
- validate() {
43
- if (this.bareArgs.length !== 3 && this.bareArgs.length !== 4) {
44
- throw new evaluator_1.FormulaError("#N/A", "Number of arguments for VLOOKUP is incorrect.");
45
- }
46
- if (this.bareArgs[0] instanceof table_1.Table) {
47
- this.bareArgs[0] = (0, __utils_1.stripTable)(this.bareArgs[0]);
48
- }
49
- if (!(this.bareArgs[1] instanceof table_1.Table)) {
50
- throw new evaluator_1.FormulaError("#REF!", "2nd argument must be range");
51
- }
52
- this.bareArgs[2] = (0, __utils_1.ensureNumber)(this.bareArgs[2]);
53
- this.bareArgs[3] = (0, __utils_1.ensureBoolean)(this.bareArgs[3], true);
37
+ if (this.bareArgs[0] instanceof table_1.Table) {
38
+ this.bareArgs[0] = (0, __utils_1.stripTable)(this.bareArgs[0]);
39
+ }
40
+ if (!(this.bareArgs[1] instanceof table_1.Table)) {
41
+ throw new evaluator_1.FormulaError("#REF!", "2nd argument must be range");
54
42
  }
55
- main(key, range, index, isSorted) {
56
- var _a, _b, _c, _d;
57
- const matrix = (0, solver_1.solveTable)({ table: range });
58
- if (isSorted) {
59
- let last = -1;
60
- for (let y = 0; y <= range.getNumRows(); y++) {
61
- const v = (_a = matrix[y]) === null || _a === void 0 ? void 0 : _a[0];
62
- if (v == null) {
63
- continue;
64
- }
65
- if (v <= key) {
66
- last = y;
67
- }
68
- else {
69
- break;
70
- }
43
+ this.bareArgs[2] = (0, __utils_1.ensureNumber)(this.bareArgs[2]);
44
+ this.bareArgs[3] = (0, __utils_1.ensureBoolean)(this.bareArgs[3], true);
45
+ }
46
+ main(key, range, index, isSorted) {
47
+ var _a, _b, _c, _d;
48
+ const matrix = (0, solver_1.solveTable)({ table: range });
49
+ if (isSorted) {
50
+ let last = -1;
51
+ for (let y = 0; y <= range.getNumRows(); y++) {
52
+ const v = (_a = matrix[y]) === null || _a === void 0 ? void 0 : _a[0];
53
+ if (v == null) {
54
+ continue;
55
+ }
56
+ if (v <= key) {
57
+ last = y;
71
58
  }
72
- if (last !== -1) {
73
- return (_b = matrix[last]) === null || _b === void 0 ? void 0 : _b[index - 1];
59
+ else {
60
+ break;
74
61
  }
75
62
  }
76
- else {
77
- for (let y = 0; y <= range.getNumRows(); y++) {
78
- if (((_c = matrix[y]) === null || _c === void 0 ? void 0 : _c[0]) === key) {
79
- return (_d = matrix[y]) === null || _d === void 0 ? void 0 : _d[index - 1];
80
- }
63
+ if (last !== -1) {
64
+ return (_b = matrix[last]) === null || _b === void 0 ? void 0 : _b[index - 1];
65
+ }
66
+ }
67
+ else {
68
+ for (let y = 0; y <= range.getNumRows(); y++) {
69
+ if (((_c = matrix[y]) === null || _c === void 0 ? void 0 : _c[0]) === key) {
70
+ return (_d = matrix[y]) === null || _d === void 0 ? void 0 : _d[index - 1];
81
71
  }
82
72
  }
83
- throw new evaluator_1.FormulaError("#N/A", `No values found for '${key}'.`);
84
73
  }
74
+ throw new evaluator_1.FormulaError("#N/A", `No values found for '${key}'.`);
85
75
  }
86
- exports.VlookupFunction = VlookupFunction;
87
- });
76
+ }
77
+ exports.VlookupFunction = VlookupFunction;
88
78
  //# sourceMappingURL=vlookup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vlookup.js","sourceRoot":"","sources":["../../../src/formula/functions/vlookup.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,4CAA4C;IAC5C,sCAAuC;IACvC,2CAAwC;IACxC,qCAAwC;IACxC,uCAAoE;IAEpE,MAAa,eAAgB,SAAQ,qBAAY;QAAjD;;YACE,YAAO,GAAG,kCAAkC,CAAC;YAC7C,aAAQ,GAAG;gBACT,yIAAyI;aAC1I,CAAC;YACF,aAAQ,GAAG;gBACT,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE;gBAC3C;oBACE,IAAI,EAAE,OAAO;oBACb,WAAW,EAAE,oBAAoB;iBAClC;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,WAAW,EAAE,uCAAuC;iBACrD;gBACD;oBACE,IAAI,EAAE,WAAW;o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5C,MAAM,CAAC,GAAG,MAAA,MAAM,CAAC,CAAC,CAAC,0CAAG,CAAC,CAAC,CAAC;gBACzB,IAAI,CAAC,IAAI,IAAI,EAAE;oBACb,SAAS;iBACV;gBACD,IAAI,CAAC,IAAI,GAAG,EAAE;oBACZ,IAAI,GAAG,CAAC,CAAC;iBACV;qBAAM;oBACL,MAAM;iBACP;aACF;YACD,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE;gBACf,OAAO,MAAA,MAAM,CAAC,IAAI,CAAC,0CAAG,KAAK,GAAG,CAAC,CAAC,CAAC;aAClC;SACF;aAAM;YACL,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE;gBAC5C,IAAI,CAAA,MAAA,MAAM,CAAC,CAAC,CAAC,0CAAG,CAAC,CAAC,MAAK,GAAG,EAAE;oBAC1B,OAAO,MAAA,MAAM,CAAC,CAAC,CAAC,0CAAG,KAAK,GAAG,CAAC,CAAC,CAAC;iBAC/B;aACF;SACF;QACD,MAAM,IAAI,wBAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI,CAAC,CAAC;IAClE,CAAC;CACF;AAnED,0CAmEC"}
@@ -1,127 +1,117 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./functions/add", "./functions/minus", "./functions/multiply", "./functions/divide", "./functions/mod", "./functions/sum", "./functions/concat", "./functions/concatenate", "./functions/eq", "./functions/ne", "./functions/gt", "./functions/gte", "./functions/lt", "./functions/lte", "./functions/now", "./functions/and", "./functions/or", "./functions/if", "./functions/iferror", "./functions/not", "./functions/count", "./functions/countif", "./functions/sumif", "./functions/vlookup", "./functions/hlookup", "./functions/log", "./functions/log10", "./functions/ln", "./functions/abs", "./functions/product", "./functions/rand", "./functions/pi", "./functions/exp", "./functions/radians", "./functions/power", "./functions/sqrt", "./functions/round", "./functions/roundup", "./functions/rounddown", "./functions/sin", "./functions/cos", "./functions/tan", "./functions/asin", "./functions/acos", "./functions/atan", "./functions/atan2", "./functions/counta", "./functions/average", "./functions/max", "./functions/min", "./functions/len", "./functions/lenb", "./functions/uminus", "./functions/row", "./functions/col"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.functions = void 0;
13
- const add_1 = require("./functions/add");
14
- const minus_1 = require("./functions/minus");
15
- const multiply_1 = require("./functions/multiply");
16
- const divide_1 = require("./functions/divide");
17
- const mod_1 = require("./functions/mod");
18
- const sum_1 = require("./functions/sum");
19
- const concat_1 = require("./functions/concat");
20
- const concatenate_1 = require("./functions/concatenate");
21
- const eq_1 = require("./functions/eq");
22
- const ne_1 = require("./functions/ne");
23
- const gt_1 = require("./functions/gt");
24
- const gte_1 = require("./functions/gte");
25
- const lt_1 = require("./functions/lt");
26
- const lte_1 = require("./functions/lte");
27
- const now_1 = require("./functions/now");
28
- const and_1 = require("./functions/and");
29
- const or_1 = require("./functions/or");
30
- const if_1 = require("./functions/if");
31
- const iferror_1 = require("./functions/iferror");
32
- const not_1 = require("./functions/not");
33
- const count_1 = require("./functions/count");
34
- const countif_1 = require("./functions/countif");
35
- const sumif_1 = require("./functions/sumif");
36
- const vlookup_1 = require("./functions/vlookup");
37
- const hlookup_1 = require("./functions/hlookup");
38
- const log_1 = require("./functions/log");
39
- const log10_1 = require("./functions/log10");
40
- const ln_1 = require("./functions/ln");
41
- const abs_1 = require("./functions/abs");
42
- const product_1 = require("./functions/product");
43
- const rand_1 = require("./functions/rand");
44
- const pi_1 = require("./functions/pi");
45
- const exp_1 = require("./functions/exp");
46
- const radians_1 = require("./functions/radians");
47
- const power_1 = require("./functions/power");
48
- const sqrt_1 = require("./functions/sqrt");
49
- const round_1 = require("./functions/round");
50
- const roundup_1 = require("./functions/roundup");
51
- const rounddown_1 = require("./functions/rounddown");
52
- const sin_1 = require("./functions/sin");
53
- const cos_1 = require("./functions/cos");
54
- const tan_1 = require("./functions/tan");
55
- const asin_1 = require("./functions/asin");
56
- const acos_1 = require("./functions/acos");
57
- const atan_1 = require("./functions/atan");
58
- const atan2_1 = require("./functions/atan2");
59
- const counta_1 = require("./functions/counta");
60
- const average_1 = require("./functions/average");
61
- const max_1 = require("./functions/max");
62
- const min_1 = require("./functions/min");
63
- const len_1 = require("./functions/len");
64
- const lenb_1 = require("./functions/lenb");
65
- const uminus_1 = require("./functions/uminus");
66
- const row_1 = require("./functions/row");
67
- const col_1 = require("./functions/col");
68
- exports.functions = {
69
- abs: abs_1.AbsFunction,
70
- add: add_1.AddFunction,
71
- divide: divide_1.DivideFunction,
72
- mod: mod_1.ModFunction,
73
- minus: minus_1.MinusFunction,
74
- uminus: uminus_1.UminusFunction,
75
- multiply: multiply_1.MultiplyFunction,
76
- pow: power_1.PowerFunction,
77
- power: power_1.PowerFunction,
78
- sqrt: sqrt_1.SqrtFunction,
79
- sum: sum_1.SumFunction,
80
- sumif: sumif_1.SumifFunction,
81
- max: max_1.MaxFunction,
82
- min: min_1.MinFunction,
83
- average: average_1.AverageFunction,
84
- count: count_1.CountFunction,
85
- counta: counta_1.CountaFunction,
86
- countif: countif_1.CountifFunction,
87
- product: product_1.ProductFunction,
88
- concat: concat_1.ConcatFunction,
89
- concatenate: concatenate_1.ConcatenateFunction,
90
- eq: eq_1.EqFunction,
91
- ne: ne_1.NeFunction,
92
- gt: gt_1.GtFunction,
93
- gte: gte_1.GteFunction,
94
- lt: lt_1.LtFunction,
95
- lte: lte_1.LteFunction,
96
- and: and_1.AndFunction,
97
- or: or_1.OrFunction,
98
- round: round_1.RoundFunction,
99
- rounddown: rounddown_1.RounddownFunction,
100
- roundup: roundup_1.RoundupFunction,
101
- if: if_1.IfFunction,
102
- iferror: iferror_1.IfErrorFunction,
103
- not: not_1.NotFunction,
104
- vlookup: vlookup_1.VlookupFunction,
105
- hlookup: hlookup_1.HlookupFunction,
106
- row: row_1.RowFunction,
107
- col: col_1.ColFunction,
108
- now: now_1.NowFunction,
109
- rand: rand_1.RandFunction,
110
- log: log_1.LogFunction,
111
- log10: log10_1.Log10Function,
112
- ln: ln_1.LnFunction,
113
- exp: exp_1.ExpFunction,
114
- pi: pi_1.PiFunction,
115
- radians: radians_1.RadiansFunction,
116
- sin: sin_1.SinFunction,
117
- cos: cos_1.CosFunction,
118
- tan: tan_1.TanFunction,
119
- asin: asin_1.AsinFunction,
120
- acos: acos_1.AcosFunction,
121
- atan: atan_1.AtanFunction,
122
- atan2: atan2_1.Atan2Function,
123
- len: len_1.LenFunction,
124
- lenb: lenb_1.LenbFunction,
125
- };
126
- });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.functions = void 0;
4
+ const add_1 = require("./functions/add");
5
+ const minus_1 = require("./functions/minus");
6
+ const multiply_1 = require("./functions/multiply");
7
+ const divide_1 = require("./functions/divide");
8
+ const mod_1 = require("./functions/mod");
9
+ const sum_1 = require("./functions/sum");
10
+ const concat_1 = require("./functions/concat");
11
+ const concatenate_1 = require("./functions/concatenate");
12
+ const eq_1 = require("./functions/eq");
13
+ const ne_1 = require("./functions/ne");
14
+ const gt_1 = require("./functions/gt");
15
+ const gte_1 = require("./functions/gte");
16
+ const lt_1 = require("./functions/lt");
17
+ const lte_1 = require("./functions/lte");
18
+ const now_1 = require("./functions/now");
19
+ const and_1 = require("./functions/and");
20
+ const or_1 = require("./functions/or");
21
+ const if_1 = require("./functions/if");
22
+ const iferror_1 = require("./functions/iferror");
23
+ const not_1 = require("./functions/not");
24
+ const count_1 = require("./functions/count");
25
+ const countif_1 = require("./functions/countif");
26
+ const sumif_1 = require("./functions/sumif");
27
+ const vlookup_1 = require("./functions/vlookup");
28
+ const hlookup_1 = require("./functions/hlookup");
29
+ const log_1 = require("./functions/log");
30
+ const log10_1 = require("./functions/log10");
31
+ const ln_1 = require("./functions/ln");
32
+ const abs_1 = require("./functions/abs");
33
+ const product_1 = require("./functions/product");
34
+ const rand_1 = require("./functions/rand");
35
+ const pi_1 = require("./functions/pi");
36
+ const exp_1 = require("./functions/exp");
37
+ const radians_1 = require("./functions/radians");
38
+ const power_1 = require("./functions/power");
39
+ const sqrt_1 = require("./functions/sqrt");
40
+ const round_1 = require("./functions/round");
41
+ const roundup_1 = require("./functions/roundup");
42
+ const rounddown_1 = require("./functions/rounddown");
43
+ const sin_1 = require("./functions/sin");
44
+ const cos_1 = require("./functions/cos");
45
+ const tan_1 = require("./functions/tan");
46
+ const asin_1 = require("./functions/asin");
47
+ const acos_1 = require("./functions/acos");
48
+ const atan_1 = require("./functions/atan");
49
+ const atan2_1 = require("./functions/atan2");
50
+ const counta_1 = require("./functions/counta");
51
+ const average_1 = require("./functions/average");
52
+ const max_1 = require("./functions/max");
53
+ const min_1 = require("./functions/min");
54
+ const len_1 = require("./functions/len");
55
+ const lenb_1 = require("./functions/lenb");
56
+ const uminus_1 = require("./functions/uminus");
57
+ const row_1 = require("./functions/row");
58
+ const col_1 = require("./functions/col");
59
+ exports.functions = {
60
+ abs: abs_1.AbsFunction,
61
+ add: add_1.AddFunction,
62
+ divide: divide_1.DivideFunction,
63
+ mod: mod_1.ModFunction,
64
+ minus: minus_1.MinusFunction,
65
+ uminus: uminus_1.UminusFunction,
66
+ multiply: multiply_1.MultiplyFunction,
67
+ pow: power_1.PowerFunction,
68
+ power: power_1.PowerFunction,
69
+ sqrt: sqrt_1.SqrtFunction,
70
+ sum: sum_1.SumFunction,
71
+ sumif: sumif_1.SumifFunction,
72
+ max: max_1.MaxFunction,
73
+ min: min_1.MinFunction,
74
+ average: average_1.AverageFunction,
75
+ count: count_1.CountFunction,
76
+ counta: counta_1.CountaFunction,
77
+ countif: countif_1.CountifFunction,
78
+ product: product_1.ProductFunction,
79
+ concat: concat_1.ConcatFunction,
80
+ concatenate: concatenate_1.ConcatenateFunction,
81
+ eq: eq_1.EqFunction,
82
+ ne: ne_1.NeFunction,
83
+ gt: gt_1.GtFunction,
84
+ gte: gte_1.GteFunction,
85
+ lt: lt_1.LtFunction,
86
+ lte: lte_1.LteFunction,
87
+ and: and_1.AndFunction,
88
+ or: or_1.OrFunction,
89
+ round: round_1.RoundFunction,
90
+ rounddown: rounddown_1.RounddownFunction,
91
+ roundup: roundup_1.RoundupFunction,
92
+ if: if_1.IfFunction,
93
+ iferror: iferror_1.IfErrorFunction,
94
+ not: not_1.NotFunction,
95
+ vlookup: vlookup_1.VlookupFunction,
96
+ hlookup: hlookup_1.HlookupFunction,
97
+ row: row_1.RowFunction,
98
+ col: col_1.ColFunction,
99
+ now: now_1.NowFunction,
100
+ rand: rand_1.RandFunction,
101
+ log: log_1.LogFunction,
102
+ log10: log10_1.Log10Function,
103
+ ln: ln_1.LnFunction,
104
+ exp: exp_1.ExpFunction,
105
+ pi: pi_1.PiFunction,
106
+ radians: radians_1.RadiansFunction,
107
+ sin: sin_1.SinFunction,
108
+ cos: cos_1.CosFunction,
109
+ tan: tan_1.TanFunction,
110
+ asin: asin_1.AsinFunction,
111
+ acos: acos_1.AcosFunction,
112
+ atan: atan_1.AtanFunction,
113
+ atan2: atan2_1.Atan2Function,
114
+ len: len_1.LenFunction,
115
+ lenb: lenb_1.LenbFunction,
116
+ };
127
117
  //# sourceMappingURL=mapping.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../src/formula/mapping.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,yCAA8C;IAC9C,6CAAkD;IAClD,mDAAwD;IACxD,+CAAoD;IACpD,yCAA8C;IAC9C,yCAA8C;IAC9C,+CAAoD;IACpD,yDAA8D;IAC9D,uCAA4C;IAC5C,uCAA4C;IAC5C,uCAA4C;IAC5C,yCAA8C;IAC9C,uCAA4C;IAC5C,yCAA8C;IAC9C,yCAA8C;IAC9C,yCAA8C;IAC9C,uCAA4C;IAC5C,uCAA4C;IAC5C,iDAAsD;IACtD,yCAA8C;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