@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,79 +1,69 @@
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.solveTable = exports.solveFormula = void 0;
4
+ const constants_1 = require("../constants");
5
+ const table_1 = require("../lib/table");
6
+ const evaluator_1 = require("./evaluator");
7
+ const converters_1 = require("../lib/converters");
8
+ const SOLVING = new constants_1.Special("solving");
9
+ const solveFormula = ({ value, table, raise = true, }) => {
10
+ var _a;
11
+ let solved = value;
12
+ if (typeof value === "string") {
13
+ if (value.charAt(0) === "=") {
14
+ try {
15
+ const lexer = new evaluator_1.Lexer(value.substring(1));
16
+ lexer.tokenize();
17
+ const parser = new evaluator_1.Parser(lexer.tokens);
18
+ const expr = parser.build();
19
+ solved = (_a = expr === null || expr === void 0 ? void 0 : expr.evaluate) === null || _a === void 0 ? void 0 : _a.call(expr, { table });
20
+ }
21
+ catch (e) {
22
+ if (raise) {
23
+ throw e;
24
+ }
25
+ return null;
26
+ }
27
+ }
5
28
  }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "../constants", "../lib/table", "./evaluator", "../lib/converters"], factory);
29
+ if (solved instanceof table_1.Table) {
30
+ solved = (0, exports.solveTable)({ table: solved, raise })[0][0];
8
31
  }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.solveTable = exports.solveFormula = void 0;
13
- const constants_1 = require("../constants");
14
- const table_1 = require("../lib/table");
15
- const evaluator_1 = require("./evaluator");
16
- const converters_1 = require("../lib/converters");
17
- const SOLVING = new constants_1.Special("solving");
18
- const solveFormula = ({ value, table, raise = true, }) => {
19
- var _a;
20
- let solved = value;
21
- if (typeof value === "string") {
22
- if (value.charAt(0) === "=") {
23
- try {
24
- const lexer = new evaluator_1.Lexer(value.substring(1));
25
- lexer.tokenize();
26
- const parser = new evaluator_1.Parser(lexer.tokens);
27
- const expr = parser.build();
28
- solved = (_a = expr === null || expr === void 0 ? void 0 : expr.evaluate) === null || _a === void 0 ? void 0 : _a.call(expr, { table });
32
+ return solved;
33
+ };
34
+ exports.solveFormula = solveFormula;
35
+ const solveTable = ({ table, raise = true, }) => {
36
+ const area = table.getArea();
37
+ return table.getMatrixFlatten({ area, evaluates: false }).map((row, i) => {
38
+ const y = area.top + i;
39
+ return row.map((value, j) => {
40
+ const x = area.left + j;
41
+ const address = (0, converters_1.p2a)({ y, x });
42
+ const cache = table.getSolvedCache(address);
43
+ try {
44
+ if (cache === SOLVING) {
45
+ throw new evaluator_1.FormulaError("#RFF!", "References are circulating.", new Error(value));
29
46
  }
30
- catch (e) {
31
- if (raise) {
32
- throw e;
33
- }
34
- return null;
47
+ else if (cache instanceof evaluator_1.FormulaError) {
48
+ throw cache;
35
49
  }
36
- }
37
- }
38
- if (solved instanceof table_1.Table) {
39
- solved = (0, exports.solveTable)({ table: solved, raise })[0][0];
40
- }
41
- return solved;
42
- };
43
- exports.solveFormula = solveFormula;
44
- const solveTable = ({ table, raise = true, }) => {
45
- const area = table.getArea();
46
- return table.getMatrixFlatten({ area, evaluates: false }).map((row, i) => {
47
- const y = area.top + i;
48
- return row.map((value, j) => {
49
- const x = area.left + j;
50
- const address = (0, converters_1.p2a)({ y, x });
51
- const cache = table.getSolvedCache(address);
52
- try {
53
- if (cache === SOLVING) {
54
- throw new evaluator_1.FormulaError("#RFF!", "References are circulating.", new Error(value));
55
- }
56
- else if (cache instanceof evaluator_1.FormulaError) {
57
- throw cache;
58
- }
59
- else if (cache != null) {
60
- return cache;
61
- }
62
- table.setSolvedCache(address, SOLVING);
63
- const solved = (0, exports.solveFormula)({ value, table, raise });
64
- table.setSolvedCache(address, solved);
65
- return solved;
50
+ else if (cache != null) {
51
+ return cache;
66
52
  }
67
- catch (e) {
68
- table.setSolvedCache(address, e);
69
- if (raise) {
70
- throw e;
71
- }
72
- return null;
53
+ table.setSolvedCache(address, SOLVING);
54
+ const solved = (0, exports.solveFormula)({ value, table, raise });
55
+ table.setSolvedCache(address, solved);
56
+ return solved;
57
+ }
58
+ catch (e) {
59
+ table.setSolvedCache(address, e);
60
+ if (raise) {
61
+ throw e;
73
62
  }
74
- });
63
+ return null;
64
+ }
75
65
  });
76
- };
77
- exports.solveTable = solveTable;
78
- });
66
+ });
67
+ };
68
+ exports.solveTable = solveTable;
79
69
  //# sourceMappingURL=solver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solver.js","sourceRoot":"","sources":["../../src/formula/solver.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,4CAAuC;IACvC,wCAAqC;IAErC,2CAA0D;IAC1D,kDAAwC;IAExC,MAAM,OAAO,GAAG,IAAI,mBAAO,CAAC,SAAS,CAAC,CAAC;IAEhC,MAAM,YAAY,GAAG,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,KAAK,GAAG,IAAI,GAKb,EAAE,EAAE;;QACH,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;gBAC3B,IAAI;oBACF,MAAM,KAAK,GAAG,IAAI,iBAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;oBAC5C,KAAK,CAAC,QAAQ,EAAE,CAAC;oBACjB,MAAM,MAAM,GAAG,IAAI,kBAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;oBACxC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;oBAC5B,MAAM,GAAG,MAAA,IAAI,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IAAI;gBACF,IAAI,KAAK,KAAK,OAAO,EAAE;oBACrB,MAAM,IAAI,wBAAY,CACpB,OAAO,EACP,6BAA6B,EAC7B,IAAI,KAAK,CAAC,KAAK,CAAC,CACjB,CAAC;iBACH;qBAAM,IAAI,KAAK,YAAY,wBAAY,EAAE;oBACxC,MAAM,KAAK,CAAC;iBACb;qBAAM,IAAI,KAAK,IAAI,IAAI,EAAE;oBACxB,OAAO,KAAK,CAAC;iBACd;gBACD,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBACvC,MAAM,MAAM,GAAG,IAAA,oBAAY,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBACrD,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBACtC,OAAO,MAAM,CAAC;aACf;YAAC,OAAO,CAAC,EAAE;gBACV,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;gBACjC,IAAI,KAAK,EAAE;oBACT,MAAM,CAAC,CAAC;iBACT;gBACD,OAAO,IAAI,CAAC;aACb;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAxCW,QAAA,UAAU,cAwCrB"}
package/dist/index.js CHANGED
@@ -1,42 +1,32 @@
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", "./components/GridSheet", "./components/Tabular", "./renderers/core", "./parsers/core", "./lib/structs", "./lib/converters", "./renderers/thousand_separator", "./renderers/checkbox", "./formula/functions/__base", "./lib/table"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Table = exports.BaseFunction = exports.CheckboxRendererMixin = exports.ThousandSeparatorRendererMixin = exports.a2p = exports.p2a = exports.r2y = exports.y2r = exports.c2x = exports.x2c = exports.generateInitialSimple = exports.generateInitial = exports.aa2oa = exports.oa2aa = exports.Parser = exports.Renderer = exports.createTableRef = exports.GridSheet = void 0;
13
- var GridSheet_1 = require("./components/GridSheet");
14
- Object.defineProperty(exports, "GridSheet", { enumerable: true, get: function () { return GridSheet_1.GridSheet; } });
15
- var Tabular_1 = require("./components/Tabular");
16
- Object.defineProperty(exports, "createTableRef", { enumerable: true, get: function () { return Tabular_1.createTableRef; } });
17
- var core_1 = require("./renderers/core");
18
- Object.defineProperty(exports, "Renderer", { enumerable: true, get: function () { return core_1.Renderer; } });
19
- var core_2 = require("./parsers/core");
20
- Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return core_2.Parser; } });
21
- var structs_1 = require("./lib/structs");
22
- Object.defineProperty(exports, "oa2aa", { enumerable: true, get: function () { return structs_1.oa2aa; } });
23
- Object.defineProperty(exports, "aa2oa", { enumerable: true, get: function () { return structs_1.aa2oa; } });
24
- Object.defineProperty(exports, "generateInitial", { enumerable: true, get: function () { return structs_1.generateInitial; } });
25
- Object.defineProperty(exports, "generateInitialSimple", { enumerable: true, get: function () { return structs_1.generateInitialSimple; } });
26
- var converters_1 = require("./lib/converters");
27
- Object.defineProperty(exports, "x2c", { enumerable: true, get: function () { return converters_1.x2c; } });
28
- Object.defineProperty(exports, "c2x", { enumerable: true, get: function () { return converters_1.c2x; } });
29
- Object.defineProperty(exports, "y2r", { enumerable: true, get: function () { return converters_1.y2r; } });
30
- Object.defineProperty(exports, "r2y", { enumerable: true, get: function () { return converters_1.r2y; } });
31
- Object.defineProperty(exports, "p2a", { enumerable: true, get: function () { return converters_1.p2a; } });
32
- Object.defineProperty(exports, "a2p", { enumerable: true, get: function () { return converters_1.a2p; } });
33
- var thousand_separator_1 = require("./renderers/thousand_separator");
34
- Object.defineProperty(exports, "ThousandSeparatorRendererMixin", { enumerable: true, get: function () { return thousand_separator_1.ThousandSeparatorRendererMixin; } });
35
- var checkbox_1 = require("./renderers/checkbox");
36
- Object.defineProperty(exports, "CheckboxRendererMixin", { enumerable: true, get: function () { return checkbox_1.CheckboxRendererMixin; } });
37
- var __base_1 = require("./formula/functions/__base");
38
- Object.defineProperty(exports, "BaseFunction", { enumerable: true, get: function () { return __base_1.BaseFunction; } });
39
- var table_1 = require("./lib/table");
40
- Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return table_1.Table; } });
41
- });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Table = exports.BaseFunction = exports.CheckboxRendererMixin = exports.ThousandSeparatorRendererMixin = exports.a2p = exports.p2a = exports.r2y = exports.y2r = exports.c2x = exports.x2c = exports.generateInitialSimple = exports.generateInitial = exports.aa2oa = exports.oa2aa = exports.Parser = exports.Renderer = exports.createTableRef = exports.GridSheet = void 0;
4
+ var GridSheet_1 = require("./components/GridSheet");
5
+ Object.defineProperty(exports, "GridSheet", { enumerable: true, get: function () { return GridSheet_1.GridSheet; } });
6
+ var Tabular_1 = require("./components/Tabular");
7
+ Object.defineProperty(exports, "createTableRef", { enumerable: true, get: function () { return Tabular_1.createTableRef; } });
8
+ var core_1 = require("./renderers/core");
9
+ Object.defineProperty(exports, "Renderer", { enumerable: true, get: function () { return core_1.Renderer; } });
10
+ var core_2 = require("./parsers/core");
11
+ Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return core_2.Parser; } });
12
+ var structs_1 = require("./lib/structs");
13
+ Object.defineProperty(exports, "oa2aa", { enumerable: true, get: function () { return structs_1.oa2aa; } });
14
+ Object.defineProperty(exports, "aa2oa", { enumerable: true, get: function () { return structs_1.aa2oa; } });
15
+ Object.defineProperty(exports, "generateInitial", { enumerable: true, get: function () { return structs_1.generateInitial; } });
16
+ Object.defineProperty(exports, "generateInitialSimple", { enumerable: true, get: function () { return structs_1.generateInitialSimple; } });
17
+ var converters_1 = require("./lib/converters");
18
+ Object.defineProperty(exports, "x2c", { enumerable: true, get: function () { return converters_1.x2c; } });
19
+ Object.defineProperty(exports, "c2x", { enumerable: true, get: function () { return converters_1.c2x; } });
20
+ Object.defineProperty(exports, "y2r", { enumerable: true, get: function () { return converters_1.y2r; } });
21
+ Object.defineProperty(exports, "r2y", { enumerable: true, get: function () { return converters_1.r2y; } });
22
+ Object.defineProperty(exports, "p2a", { enumerable: true, get: function () { return converters_1.p2a; } });
23
+ Object.defineProperty(exports, "a2p", { enumerable: true, get: function () { return converters_1.a2p; } });
24
+ var thousand_separator_1 = require("./renderers/thousand_separator");
25
+ Object.defineProperty(exports, "ThousandSeparatorRendererMixin", { enumerable: true, get: function () { return thousand_separator_1.ThousandSeparatorRendererMixin; } });
26
+ var checkbox_1 = require("./renderers/checkbox");
27
+ Object.defineProperty(exports, "CheckboxRendererMixin", { enumerable: true, get: function () { return checkbox_1.CheckboxRendererMixin; } });
28
+ var __base_1 = require("./formula/functions/__base");
29
+ Object.defineProperty(exports, "BaseFunction", { enumerable: true, get: function () { return __base_1.BaseFunction; } });
30
+ var table_1 = require("./lib/table");
31
+ Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return table_1.Table; } });
42
32
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,oDAAmD;IAA1C,sGAAA,SAAS,OAAA;IAClB,gDAAsD;IAA7C,yGAAA,cAAc,OAAA;IACvB,yCAA+D;IAAtD,gGAAA,QAAQ,OAAA;IACjB,uCAAyD;IAAhD,8FAAA,MAAM,OAAA;IACf,yCAAqF;IAA5E,gGAAA,KAAK,OAAA;IAAE,gGAAA,KAAK,OAAA;IAAE,0GAAA,eAAe,OAAA;IAAE,gHAAA,qBAAqB,OAAA;IAC7D,+CAAgE;IAAvD,iGAAA,GAAG,OAAA;IAAE,iGAAA,GAAG,OAAA;IAAE,iGAAA,GAAG,OAAA;IAAE,iGAAA,GAAG,OAAA;IAAE,iGAAA,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