@pie-lib/math-input 8.1.2-next.88 → 9.0.0-next.7

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 (183) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +11 -0
  2. package/dist/horizontal-keypad.d.ts +30 -0
  3. package/dist/horizontal-keypad.js +55 -0
  4. package/dist/index.d.ts +17 -0
  5. package/dist/index.js +10 -0
  6. package/dist/keypad/index.d.ts +37 -0
  7. package/dist/keypad/index.js +277 -0
  8. package/dist/keypad/keys-layout.d.ts +15 -0
  9. package/dist/keypad/keys-layout.js +5 -0
  10. package/dist/keys/basic-operators.d.ts +13 -0
  11. package/dist/keys/basic-operators.js +30 -0
  12. package/dist/keys/chars.d.ts +13 -0
  13. package/dist/keys/comparison.d.ts +12 -0
  14. package/dist/keys/comparison.js +32 -0
  15. package/dist/keys/constants.d.ts +12 -0
  16. package/dist/keys/constants.js +35 -0
  17. package/dist/keys/digits.d.ts +23 -0
  18. package/dist/keys/digits.js +34 -0
  19. package/dist/keys/edit.d.ts +14 -0
  20. package/dist/keys/edit.js +9 -0
  21. package/dist/keys/exponent.d.ts +12 -0
  22. package/dist/keys/exponent.js +28 -0
  23. package/dist/keys/fractions.d.ts +11 -0
  24. package/dist/keys/fractions.js +27 -0
  25. package/dist/keys/geometry.d.ts +31 -0
  26. package/dist/keys/geometry.js +127 -0
  27. package/dist/keys/grades.d.ts +17 -0
  28. package/dist/keys/grades.js +414 -0
  29. package/dist/keys/index.d.ts +14 -0
  30. package/dist/keys/index.js +50 -0
  31. package/dist/keys/log.d.ts +11 -0
  32. package/dist/keys/log.js +25 -0
  33. package/dist/keys/logic.d.ts +10 -0
  34. package/dist/keys/logic.js +13 -0
  35. package/dist/keys/matrices.d.ts +10 -0
  36. package/dist/keys/matrices.js +17 -0
  37. package/dist/keys/misc.d.ts +18 -0
  38. package/dist/keys/misc.js +60 -0
  39. package/dist/keys/navigation.d.ts +10 -0
  40. package/dist/keys/navigation.js +13 -0
  41. package/dist/keys/operators.d.ts +9 -0
  42. package/dist/keys/operators.js +11 -0
  43. package/dist/keys/statistics.d.ts +13 -0
  44. package/dist/keys/statistics.js +38 -0
  45. package/dist/keys/sub-sup.d.ts +10 -0
  46. package/dist/keys/sub-sup.js +17 -0
  47. package/dist/keys/trigonometry.d.ts +14 -0
  48. package/dist/keys/trigonometry.js +43 -0
  49. package/dist/keys/utils.d.ts +13 -0
  50. package/dist/keys/utils.js +24 -0
  51. package/dist/keys/vars.d.ts +11 -0
  52. package/dist/keys/vars.js +22 -0
  53. package/dist/math-input.d.ts +30 -0
  54. package/dist/mq/common-mq-styles.d.ts +231 -0
  55. package/dist/mq/common-mq-styles.js +55 -0
  56. package/dist/mq/custom-elements.d.ts +10 -0
  57. package/dist/mq/custom-elements.js +10 -0
  58. package/dist/mq/index.d.ts +12 -0
  59. package/dist/mq/index.js +12 -0
  60. package/dist/mq/input.d.ts +39 -0
  61. package/dist/mq/input.js +83 -0
  62. package/{src/mq/mathquill-instance.js → dist/mq/mathquill-instance.d.ts} +11 -28
  63. package/dist/mq/mathquill-instance.js +13 -0
  64. package/dist/mq/static.d.ts +47 -0
  65. package/dist/mq/static.js +151 -0
  66. package/dist/updateSpans.d.ts +10 -0
  67. package/dist/updateSpans.js +8 -0
  68. package/package.json +29 -15
  69. package/CHANGELOG.json +0 -17
  70. package/CHANGELOG.md +0 -1178
  71. package/LICENSE.md +0 -5
  72. package/lib/horizontal-keypad.js +0 -96
  73. package/lib/horizontal-keypad.js.map +0 -1
  74. package/lib/index.js +0 -69
  75. package/lib/index.js.map +0 -1
  76. package/lib/keypad/index.js +0 -413
  77. package/lib/keypad/index.js.map +0 -1
  78. package/lib/keypad/keys-layout.js +0 -22
  79. package/lib/keypad/keys-layout.js.map +0 -1
  80. package/lib/keys/basic-operators.js +0 -33
  81. package/lib/keys/basic-operators.js.map +0 -1
  82. package/lib/keys/chars.js +0 -12
  83. package/lib/keys/chars.js.map +0 -1
  84. package/lib/keys/comparison.js +0 -39
  85. package/lib/keys/comparison.js.map +0 -1
  86. package/lib/keys/constants.js +0 -37
  87. package/lib/keys/constants.js.map +0 -1
  88. package/lib/keys/digits.js +0 -46
  89. package/lib/keys/digits.js.map +0 -1
  90. package/lib/keys/edit.js +0 -14
  91. package/lib/keys/edit.js.map +0 -1
  92. package/lib/keys/exponent.js +0 -30
  93. package/lib/keys/exponent.js.map +0 -1
  94. package/lib/keys/fractions.js +0 -29
  95. package/lib/keys/fractions.js.map +0 -1
  96. package/lib/keys/geometry.js +0 -140
  97. package/lib/keys/geometry.js.map +0 -1
  98. package/lib/keys/grades.js +0 -259
  99. package/lib/keys/grades.js.map +0 -1
  100. package/lib/keys/index.js +0 -35
  101. package/lib/keys/index.js.map +0 -1
  102. package/lib/keys/log.js +0 -27
  103. package/lib/keys/log.js.map +0 -1
  104. package/lib/keys/logic.js +0 -19
  105. package/lib/keys/logic.js.map +0 -1
  106. package/lib/keys/matrices.js +0 -19
  107. package/lib/keys/matrices.js.map +0 -1
  108. package/lib/keys/misc.js +0 -62
  109. package/lib/keys/misc.js.map +0 -1
  110. package/lib/keys/navigation.js +0 -20
  111. package/lib/keys/navigation.js.map +0 -1
  112. package/lib/keys/operators.js +0 -15
  113. package/lib/keys/operators.js.map +0 -1
  114. package/lib/keys/statistics.js +0 -40
  115. package/lib/keys/statistics.js.map +0 -1
  116. package/lib/keys/sub-sup.js +0 -19
  117. package/lib/keys/sub-sup.js.map +0 -1
  118. package/lib/keys/trigonometry.js +0 -45
  119. package/lib/keys/trigonometry.js.map +0 -1
  120. package/lib/keys/utils.js +0 -87
  121. package/lib/keys/utils.js.map +0 -1
  122. package/lib/keys/vars.js +0 -24
  123. package/lib/keys/vars.js.map +0 -1
  124. package/lib/math-input.js +0 -141
  125. package/lib/math-input.js.map +0 -1
  126. package/lib/mq/common-mq-styles.js +0 -102
  127. package/lib/mq/common-mq-styles.js.map +0 -1
  128. package/lib/mq/custom-elements.js +0 -20
  129. package/lib/mq/custom-elements.js.map +0 -1
  130. package/lib/mq/index.js +0 -28
  131. package/lib/mq/index.js.map +0 -1
  132. package/lib/mq/input.js +0 -186
  133. package/lib/mq/input.js.map +0 -1
  134. package/lib/mq/mathquill-instance.js +0 -52
  135. package/lib/mq/mathquill-instance.js.map +0 -1
  136. package/lib/mq/static.js +0 -301
  137. package/lib/mq/static.js.map +0 -1
  138. package/lib/updateSpans.js +0 -19
  139. package/lib/updateSpans.js.map +0 -1
  140. package/src/__tests__/horizontal-keypad.test.jsx +0 -463
  141. package/src/__tests__/index.test.js +0 -247
  142. package/src/__tests__/math-input-test.jsx +0 -45
  143. package/src/__tests__/updateSpans.test.js +0 -297
  144. package/src/horizontal-keypad.jsx +0 -69
  145. package/src/index.jsx +0 -28
  146. package/src/keypad/__tests__/index.test.jsx +0 -25
  147. package/src/keypad/__tests__/keys-layout.test.js +0 -14
  148. package/src/keypad/index.jsx +0 -439
  149. package/src/keypad/keys-layout.js +0 -16
  150. package/src/keys/__tests__/utils.test.js +0 -57
  151. package/src/keys/basic-operators.js +0 -32
  152. package/src/keys/chars.js +0 -5
  153. package/src/keys/comparison.js +0 -28
  154. package/src/keys/constants.js +0 -35
  155. package/src/keys/digits.js +0 -40
  156. package/src/keys/edit.js +0 -3
  157. package/src/keys/exponent.js +0 -28
  158. package/src/keys/fractions.js +0 -26
  159. package/src/keys/geometry.js +0 -144
  160. package/src/keys/grades.js +0 -367
  161. package/src/keys/index.js +0 -20
  162. package/src/keys/log.js +0 -22
  163. package/src/keys/logic.js +0 -15
  164. package/src/keys/matrices.js +0 -15
  165. package/src/keys/misc.js +0 -65
  166. package/src/keys/navigation.js +0 -8
  167. package/src/keys/operators.js +0 -10
  168. package/src/keys/statistics.js +0 -38
  169. package/src/keys/sub-sup.js +0 -15
  170. package/src/keys/trigonometry.js +0 -15
  171. package/src/keys/utils.js +0 -66
  172. package/src/keys/vars.js +0 -19
  173. package/src/math-input.jsx +0 -119
  174. package/src/mq/__tests__/custom-elements.test.js +0 -342
  175. package/src/mq/__tests__/input.test.jsx +0 -40
  176. package/src/mq/__tests__/mathquill-instance.test.js +0 -67
  177. package/src/mq/__tests__/static.test.jsx +0 -33
  178. package/src/mq/common-mq-styles.js +0 -109
  179. package/src/mq/custom-elements.js +0 -11
  180. package/src/mq/index.js +0 -5
  181. package/src/mq/input.jsx +0 -166
  182. package/src/mq/static.jsx +0 -290
  183. package/src/updateSpans.js +0 -15
@@ -0,0 +1,50 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { comparison_exports as t } from "./comparison.js";
3
+ import { fractions_exports as n } from "./fractions.js";
4
+ import { exponent_exports as r } from "./exponent.js";
5
+ import { misc_exports as i } from "./misc.js";
6
+ import { divide as a, equals as o, minus as s, multiply as c, plus as l } from "./basic-operators.js";
7
+ import u from "./digits.js";
8
+ import { left as d, right as f } from "./navigation.js";
9
+ import { del as p } from "./edit.js";
10
+ //#region src/keys/index.ts
11
+ var m = /* @__PURE__ */ e({
12
+ baseSet: () => D,
13
+ comparison: () => t,
14
+ exponent: () => r,
15
+ fractions: () => n,
16
+ misc: () => i
17
+ }), { one: h, two: g, three: _, four: v, five: y, six: b, seven: x, eight: S, nine: C, zero: w, comma: T, decimalPoint: E } = u, D = [
18
+ [
19
+ x,
20
+ S,
21
+ C,
22
+ a
23
+ ],
24
+ [
25
+ v,
26
+ y,
27
+ b,
28
+ c
29
+ ],
30
+ [
31
+ h,
32
+ g,
33
+ _,
34
+ s
35
+ ],
36
+ [
37
+ w,
38
+ E,
39
+ T,
40
+ l
41
+ ],
42
+ [
43
+ d,
44
+ f,
45
+ p,
46
+ o
47
+ ]
48
+ ];
49
+ //#endregion
50
+ export { D as baseSet, t as comparison, r as exponent, n as fractions, m as keys_exports, i as misc };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/log.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const log: any;
10
+ export declare const logSubscript: any;
11
+ export declare const ln: any;
@@ -0,0 +1,25 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/log.ts
4
+ var n = /* @__PURE__ */ e({
5
+ ln: () => o,
6
+ log: () => i,
7
+ logSubscript: () => a
8
+ }), r = t("log"), i = r({
9
+ name: "Log",
10
+ label: "log",
11
+ command: "\\log",
12
+ latex: "\\log"
13
+ }), a = r({
14
+ name: "log base n",
15
+ label: "log s",
16
+ latex: "\\log_{}",
17
+ command: ["\\log", "_"]
18
+ }), o = r({
19
+ name: "natural log",
20
+ label: "ln",
21
+ command: "\\ln",
22
+ latex: "\\ln"
23
+ });
24
+ //#endregion
25
+ export { o as ln, i as log, a as logSubscript, n as log_exports };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/logic.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const therefore: any;
10
+ export declare const longDivision: any;
@@ -0,0 +1,13 @@
1
+ import { mkSet as e } from "./utils.js";
2
+ //#region src/keys/logic.ts
3
+ var t = e("logic"), n = t({
4
+ name: "Therefore",
5
+ label: "∴",
6
+ write: "∴"
7
+ }), r = t({
8
+ name: "Long division",
9
+ latex: "\\longdiv{}",
10
+ command: "\\longdiv"
11
+ });
12
+ //#endregion
13
+ export { r as longDivision, n as therefore };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/matrices.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const singleCellMatrix: any;
10
+ export declare const doubleCellMatrix: any;
@@ -0,0 +1,17 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/matrices.ts
4
+ var n = /* @__PURE__ */ e({
5
+ doubleCellMatrix: () => a,
6
+ singleCellMatrix: () => i
7
+ }), r = t("matrices"), i = r({
8
+ name: "Single Cell Matrix",
9
+ label: "[ ]",
10
+ write: "\\begin{pmatrix}\\end{pmatrix}"
11
+ }), a = r({
12
+ name: "Double Cell Matrix",
13
+ label: "[ ] [ ] \\\\newline [ ] [ ]",
14
+ write: "\\begin{bmatrix}&\\\\&\\end{bmatrix}"
15
+ });
16
+ //#endregion
17
+ export { a as doubleCellMatrix, n as matrices_exports, i as singleCellMatrix };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/misc.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const plusMinus: any;
10
+ export declare const absValue: any;
11
+ export declare const parenthesis: any;
12
+ export declare const brackets: any;
13
+ export declare const percentage: any;
14
+ export declare const approx: any;
15
+ export declare const nApprox: any;
16
+ export declare const notEqual: any;
17
+ export declare const similar: any;
18
+ export declare const notSimilar: any;
@@ -0,0 +1,60 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/misc.ts
4
+ var n = /* @__PURE__ */ e({
5
+ absValue: () => a,
6
+ approx: () => l,
7
+ brackets: () => s,
8
+ nApprox: () => u,
9
+ notEqual: () => d,
10
+ notSimilar: () => p,
11
+ parenthesis: () => o,
12
+ percentage: () => c,
13
+ plusMinus: () => i,
14
+ similar: () => f
15
+ }), r = t("misc"), i = r({
16
+ name: "Plus or Minus",
17
+ latex: "\\pm",
18
+ write: "\\pm"
19
+ }), a = r({
20
+ name: "Absolute Value",
21
+ latex: "\\abs{}",
22
+ symbol: "| |",
23
+ command: "|"
24
+ }), o = r({
25
+ name: "Parenthesis",
26
+ latex: "\\left(\\right)",
27
+ symbol: "( )",
28
+ command: "("
29
+ }), s = r({
30
+ name: "Brackets",
31
+ latex: "\\left[\\right]",
32
+ symbol: "[ ]",
33
+ command: "["
34
+ }), c = r({
35
+ name: "Percent",
36
+ latex: "%",
37
+ command: "%"
38
+ }), l = r({
39
+ latex: "\\approx",
40
+ command: "\\approx",
41
+ ariaLabel: "Approximately equal to"
42
+ }), u = r({
43
+ latex: "\\napprox",
44
+ command: "\\napprox",
45
+ ariaLabel: "Not pproximately equal to"
46
+ }), d = r({
47
+ latex: "\\neq",
48
+ command: "\\neq",
49
+ ariaLabel: "Not equals"
50
+ }), f = r({
51
+ latex: "\\sim",
52
+ command: "\\sim",
53
+ ariaLabel: "Similar"
54
+ }), p = r({
55
+ latex: "\\nsim",
56
+ command: "\\nsim",
57
+ ariaLabel: "Not similar"
58
+ });
59
+ //#endregion
60
+ export { a as absValue, l as approx, s as brackets, n as misc_exports, u as nApprox, d as notEqual, p as notSimilar, o as parenthesis, c as percentage, i as plusMinus, f as similar };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/navigation.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const left: any;
10
+ export declare const right: any;
@@ -0,0 +1,13 @@
1
+ import { mkSet as e } from "./utils.js";
2
+ //#region src/keys/navigation.ts
3
+ var t = e("navigation"), n = t({
4
+ label: "◀",
5
+ keystroke: "Left",
6
+ ariaLabel: "Move cursor left"
7
+ }), r = t({
8
+ label: "▶",
9
+ keystroke: "Right",
10
+ ariaLabel: "Move cursor right"
11
+ });
12
+ //#endregion
13
+ export { n as left, r as right };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/operators.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const circleDot: any;
@@ -0,0 +1,11 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/operators.ts
4
+ var n = /* @__PURE__ */ e({ circleDot: () => r }), r = t("operators")({
5
+ name: "CircleDot",
6
+ label: "⋅",
7
+ write: "\\cdot",
8
+ ariaLabel: "Dot multiplier"
9
+ });
10
+ //#endregion
11
+ export { r as circleDot, n as operators_exports };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/statistics.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const xBar: any;
10
+ export declare const yBar: any;
11
+ export declare const mu: any;
12
+ export declare const sigma: any;
13
+ export declare const smallSigma: any;
@@ -0,0 +1,38 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/statistics.ts
4
+ var n = /* @__PURE__ */ e({
5
+ mu: () => o,
6
+ sigma: () => s,
7
+ smallSigma: () => c,
8
+ xBar: () => i,
9
+ yBar: () => a
10
+ }), r = t("statistics"), i = r({
11
+ name: "X Bar",
12
+ label: "x̄",
13
+ latex: "\\overline{x}",
14
+ write: "\\overline{x}"
15
+ }), a = r({
16
+ name: "Y Bar",
17
+ latex: "\\overline{y}",
18
+ write: "\\overline{y}"
19
+ }), o = r({
20
+ name: "mu",
21
+ label: "mu",
22
+ latex: "\\mu",
23
+ write: "\\mu"
24
+ }), s = r({
25
+ name: "Sigma",
26
+ ariaLabel: "Uppercase Sigma",
27
+ label: "\\Sigma",
28
+ latex: "\\Sigma",
29
+ write: "\\Sigma"
30
+ }), c = r({
31
+ name: "sigma",
32
+ ariaLabel: "Lowercase Sigma",
33
+ label: "\\sigma",
34
+ latex: "\\sigma",
35
+ write: "\\sigma"
36
+ });
37
+ //#endregion
38
+ export { o as mu, s as sigma, c as smallSigma, n as statistics_exports, i as xBar, a as yBar };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/sub-sup.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const superscript: any;
10
+ export declare const subscript: any;
@@ -0,0 +1,17 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/sub-sup.ts
4
+ var n = /* @__PURE__ */ e({
5
+ subscript: () => a,
6
+ superscript: () => i
7
+ }), r = t("sub-sup"), i = r({
8
+ name: "Superscript",
9
+ latex: "x^{}",
10
+ command: "^"
11
+ }), a = r({
12
+ name: "Subscript",
13
+ latex: "x_{}",
14
+ command: "_"
15
+ });
16
+ //#endregion
17
+ export { n as sub_sup_exports, a as subscript, i as superscript };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/trigonometry.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const sin: any;
10
+ export declare const cos: any;
11
+ export declare const tan: any;
12
+ export declare const sec: any;
13
+ export declare const csc: any;
14
+ export declare const cot: any;
@@ -0,0 +1,43 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/trigonometry.ts
4
+ var n = /* @__PURE__ */ e({
5
+ cos: () => a,
6
+ cot: () => l,
7
+ csc: () => c,
8
+ sec: () => s,
9
+ sin: () => i,
10
+ tan: () => o
11
+ }), r = t("trigonometry"), i = r({
12
+ name: "sine",
13
+ label: "sin",
14
+ command: "\\sin",
15
+ latex: "\\sin"
16
+ }), a = r({
17
+ name: "cosine",
18
+ label: "cos",
19
+ command: "\\cos",
20
+ latex: "\\cos"
21
+ }), o = r({
22
+ name: "tanget",
23
+ label: "tan",
24
+ command: "\\tan",
25
+ latex: "\\tan"
26
+ }), s = r({
27
+ name: "secant",
28
+ label: "sec",
29
+ command: "\\sec",
30
+ latex: "\\sec"
31
+ }), c = r({
32
+ name: "cosecant",
33
+ label: "csc",
34
+ command: "\\csc",
35
+ latex: "\\csc"
36
+ }), l = r({
37
+ name: "cotangent",
38
+ label: "cot",
39
+ command: "\\cot",
40
+ latex: "\\cot"
41
+ });
42
+ //#endregion
43
+ export { a as cos, l as cot, c as csc, s as sec, i as sin, o as tan, n as trigonometry_exports };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/utils.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const mkSet: (category: any) => (o: any) => any;
10
+ export declare const toArray: (o: any) => any[];
11
+ export declare const toKey: (category: any) => (v: any) => any;
12
+ export declare const transformToKeySetStructure: (data?: never[]) => any[];
13
+ export declare const extendKeySet: (base?: never[], keySetData?: never[]) => any[][];
@@ -0,0 +1,24 @@
1
+ import { flatten as e, times as t } from "@pie-element/shared-lodash";
2
+ //#region src/keys/utils.ts
3
+ var n = (e) => (t) => ({
4
+ ...t,
5
+ category: e
6
+ }), r = (e = []) => {
7
+ let n = [];
8
+ t(5, () => n.push([]));
9
+ let r = e.length, i = 0, a = 0;
10
+ for (; a < r;) n[i++].push(e[a++]), i === 5 && (i = 0);
11
+ return n;
12
+ }, i = (t) => (n) => {
13
+ let r = e(t), i = r.some((e) => e.latex === n.latex), a = r.some((e) => e.name === n.name);
14
+ return !i && !a;
15
+ }, a = (e = [], n = []) => {
16
+ n = n.filter(i(e));
17
+ let a = [];
18
+ t(5 - e.length, () => e.push([])), t(5, () => a.push([]));
19
+ let o = r(n);
20
+ for (let t = 0; t < 5; t++) a[t] = [...e[t], ...o[t]];
21
+ return a;
22
+ };
23
+ //#endregion
24
+ export { a as extendKeySet, n as mkSet, r as transformToKeySetStructure };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/vars.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const x: any;
10
+ export declare const y: any;
11
+ export declare const theta: any;
@@ -0,0 +1,22 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/vars.ts
4
+ var n = /* @__PURE__ */ e({
5
+ theta: () => o,
6
+ x: () => i,
7
+ y: () => a
8
+ }), r = t("vars"), i = r({
9
+ name: "X",
10
+ latex: "x",
11
+ write: "x"
12
+ }), a = r({
13
+ name: "Y",
14
+ latex: "y",
15
+ write: "y"
16
+ }), o = r({
17
+ name: "Theta",
18
+ latex: "\\theta",
19
+ write: "\\theta"
20
+ });
21
+ //#endregion
22
+ export { o as theta, n as vars_exports, i as x, a as y };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/math-input.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare class MathInput extends React.Component {
12
+ static propTypes: {
13
+ className: PropTypes.Requireable<string>;
14
+ keyset: PropTypes.Requireable<any[]>;
15
+ displayMode: PropTypes.Requireable<string>;
16
+ latex: PropTypes.Requireable<string>;
17
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
18
+ };
19
+ static defaultProps: {
20
+ keyset: never[];
21
+ displayMode: string;
22
+ };
23
+ constructor(props: any);
24
+ keypadPress: any;
25
+ inputFocus: any;
26
+ inputBlur: any;
27
+ changeLatex: any;
28
+ render(): React.JSX.Element;
29
+ }
30
+ export default MathInput;