@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,14 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/edit.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 del: {
10
+ label: string;
11
+ category: string;
12
+ keystroke: string;
13
+ ariaLabel: string;
14
+ };
@@ -0,0 +1,9 @@
1
+ //#region src/keys/edit.ts
2
+ var e = {
3
+ label: "⌫",
4
+ category: "edit",
5
+ keystroke: "Backspace",
6
+ ariaLabel: "Delete"
7
+ };
8
+ //#endregion
9
+ export { e as del };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/exponent.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 squared: any;
10
+ export declare const xToPowerOfN: any;
11
+ export declare const squareRoot: any;
12
+ export declare const nthRoot: any;
@@ -0,0 +1,28 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/exponent.ts
4
+ var n = /* @__PURE__ */ e({
5
+ nthRoot: () => s,
6
+ squareRoot: () => o,
7
+ squared: () => i,
8
+ xToPowerOfN: () => a
9
+ }), r = t("exponent"), i = r({
10
+ name: "Squared",
11
+ latex: "x^2",
12
+ write: "^2"
13
+ }), a = r({
14
+ name: "X to the power of n",
15
+ latex: "x^{}",
16
+ command: "^",
17
+ ariaLabel: "exponent"
18
+ }), o = r({
19
+ name: "Square root",
20
+ latex: "\\sqrt{}",
21
+ command: "\\sqrt"
22
+ }), s = r({
23
+ name: "Nth root",
24
+ latex: "\\sqrt[{}]{}",
25
+ command: "\\nthroot"
26
+ });
27
+ //#endregion
28
+ export { n as exponent_exports, s as nthRoot, o as squareRoot, i as squared, a as xToPowerOfN };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/fractions.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 blankOverBlank: any;
10
+ export declare const xOverBlank: any;
11
+ export declare const xBlankBlank: any;
@@ -0,0 +1,27 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import { mkSet as t } from "./utils.js";
3
+ //#region src/keys/fractions.ts
4
+ var n = /* @__PURE__ */ e({
5
+ blankOverBlank: () => i,
6
+ xBlankBlank: () => o,
7
+ xOverBlank: () => a
8
+ }), r = t("fractions"), i = r({
9
+ name: "blank/blank",
10
+ latex: "\\frac{}{}",
11
+ command: "\\frac",
12
+ ariaLabel: "fraction"
13
+ }), a = r({
14
+ latex: "\\frac{x}{ }",
15
+ name: "X/blank",
16
+ label: "x/[]",
17
+ command: "/",
18
+ ariaLabel: "x over blank fraction"
19
+ }), o = r({
20
+ name: "X (blank/blank)",
21
+ latex: "x\\frac{}{}",
22
+ label: "x([]/[])",
23
+ command: "\\frac",
24
+ ariaLabel: "mixed number"
25
+ });
26
+ //#endregion
27
+ export { i as blankOverBlank, n as fractions_exports, o as xBlankBlank, a as xOverBlank };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/geometry.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 overline: any;
10
+ export declare const overRightArrow: any;
11
+ export declare const overLeftRightArrow: any;
12
+ export declare const segment: any;
13
+ export declare const parallel: any;
14
+ export declare const notParallel: any;
15
+ export declare const perpindicular: any;
16
+ export declare const angle: any;
17
+ export declare const overArc: any;
18
+ export declare const measureOfAngle: any;
19
+ export declare const triangle: any;
20
+ export declare const square: any;
21
+ export declare const parallelogram: any;
22
+ export declare const circledDot: any;
23
+ export declare const degree: any;
24
+ export declare const similarTo: any;
25
+ export declare const congruentTo: any;
26
+ export declare const notCongruentTo: any;
27
+ export declare const primeArcminute: any;
28
+ export declare const doublePrimeArcSecond: any;
29
+ export declare const leftArrow: any;
30
+ export declare const rightArrow: any;
31
+ export declare const leftrightArrow: any;
@@ -0,0 +1,127 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/keys/geometry.ts
3
+ var t = /* @__PURE__ */ e({
4
+ angle: () => u,
5
+ circledDot: () => g,
6
+ congruentTo: () => y,
7
+ degree: () => _,
8
+ doublePrimeArcSecond: () => S,
9
+ leftArrow: () => C,
10
+ leftrightArrow: () => T,
11
+ measureOfAngle: () => f,
12
+ notCongruentTo: () => b,
13
+ notParallel: () => c,
14
+ overArc: () => d,
15
+ overLeftRightArrow: () => a,
16
+ overRightArrow: () => i,
17
+ overline: () => r,
18
+ parallel: () => s,
19
+ parallelogram: () => h,
20
+ perpindicular: () => l,
21
+ primeArcminute: () => x,
22
+ rightArrow: () => w,
23
+ segment: () => o,
24
+ similarTo: () => v,
25
+ square: () => m,
26
+ triangle: () => p
27
+ }), n = (e) => ({
28
+ ...e,
29
+ category: "geometry"
30
+ }), r = n({
31
+ name: "Line",
32
+ latex: "\\overline{}",
33
+ command: "\\overline"
34
+ }), i = n({
35
+ name: "Ray",
36
+ latex: "\\overrightarrow{}",
37
+ command: "\\overrightarrow"
38
+ }), a = n({
39
+ name: "Segment",
40
+ latex: "\\overleftrightarrow{\\overline{}}",
41
+ symbol: "AB",
42
+ command: "\\overleftrightarrow"
43
+ }), o = n({
44
+ name: "Segment",
45
+ latex: "\\overleftrightarrow{AB}",
46
+ write: "\\overleftrightarrow{AB}",
47
+ label: "AB"
48
+ }), s = n({
49
+ name: "Parallel",
50
+ latex: "\\parallel",
51
+ command: "\\parallel"
52
+ }), c = n({
53
+ name: "Not Parallel",
54
+ latex: "\\nparallel",
55
+ command: "\\nparallel"
56
+ }), l = n({
57
+ name: "Perpendicular",
58
+ latex: "\\perp",
59
+ command: "\\perpendicular"
60
+ }), u = n({
61
+ name: "Angle",
62
+ latex: "\\angle",
63
+ command: "\\angle"
64
+ }), d = n({
65
+ name: "Over arc",
66
+ latex: "\\overarc{\\overline{}}",
67
+ command: "\\overarc"
68
+ }), f = n({
69
+ name: "Measured Angle",
70
+ latex: "\\measuredangle",
71
+ command: ["m", "\\angle"]
72
+ }), p = n({
73
+ name: "Triangle",
74
+ latex: "\\triangle",
75
+ command: "\\triangle"
76
+ }), m = n({
77
+ name: "Square",
78
+ latex: "\\square",
79
+ command: "\\square"
80
+ }), h = n({
81
+ name: "Parallelogram",
82
+ latex: "\\parallelogram",
83
+ command: "\\parallelogram"
84
+ }), g = n({
85
+ name: "Circled Dot",
86
+ latex: "\\odot",
87
+ command: "\\odot"
88
+ }), _ = n({
89
+ name: "Degree",
90
+ latex: "\\degree",
91
+ command: "\\degree"
92
+ }), v = n({
93
+ name: "Similar",
94
+ command: "\\sim",
95
+ latex: "\\sim"
96
+ }), y = n({
97
+ name: "Congruent To",
98
+ command: "\\cong",
99
+ latex: "\\cong"
100
+ }), b = n({
101
+ name: "Not Congruent To",
102
+ command: "\\ncong",
103
+ latex: "\\ncong"
104
+ }), x = n({
105
+ name: "Prime",
106
+ label: "pam",
107
+ latex: "'",
108
+ write: "'"
109
+ }), S = n({
110
+ name: "Double Prime",
111
+ latex: "''",
112
+ write: "''"
113
+ }), C = n({
114
+ name: "Left Arrow",
115
+ latex: "\\leftarrow",
116
+ command: "\\leftarrow"
117
+ }), w = n({
118
+ name: "Right Arrow",
119
+ latex: "\\rightarrow",
120
+ command: "\\rightarrow"
121
+ }), T = n({
122
+ name: "Left and Right Arrow",
123
+ latex: "\\leftrightarrow",
124
+ command: "\\leftrightarrow"
125
+ });
126
+ //#endregion
127
+ export { u as angle, g as circledDot, y as congruentTo, _ as degree, S as doublePrimeArcSecond, t as geometry_exports, C as leftArrow, T as leftrightArrow, f as measureOfAngle, b as notCongruentTo, c as notParallel, d as overArc, a as overLeftRightArrow, i as overRightArrow, r as overline, s as parallel, h as parallelogram, l as perpindicular, x as primeArcminute, w as rightArrow, o as segment, v as similarTo, m as square, p as triangle };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/grades.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 gradeSets: ({
10
+ predicate: (n: any) => boolean;
11
+ set: any[][];
12
+ } | {
13
+ predicate: string;
14
+ set: any[][];
15
+ })[];
16
+ export declare const keysForGrade: (n: any) => any[][] | undefined;
17
+ export declare const normalizeAdditionalKeys: (additionalKeys: any) => any;
@@ -0,0 +1,414 @@
1
+ import { comparison_exports as e, greaterThan as t, greaterThanEqual as n, lessThan as r, lessThanEqual as i } from "./comparison.js";
2
+ import { theta as a, vars_exports as ee, x as o, y as s } from "./vars.js";
3
+ import { blankOverBlank as c, fractions_exports as te, xBlankBlank as l, xOverBlank as u } from "./fractions.js";
4
+ import { exponent_exports as ne, nthRoot as d, squareRoot as f, squared as p, xToPowerOfN as m } from "./exponent.js";
5
+ import { absValue as h, brackets as g, misc_exports as re, notEqual as _, notSimilar as ie, parenthesis as v, percentage as ae, plusMinus as y } from "./misc.js";
6
+ import { constants_exports as oe, eulers as se, halfInfinity as ce, infinity as le, pi as b } from "./constants.js";
7
+ import { cos as x, cot as S, csc as C, sec as w, sin as T, tan as E, trigonometry_exports as ue } from "./trigonometry.js";
8
+ import { angle as D, congruentTo as de, degree as O, doublePrimeArcSecond as fe, geometry_exports as pe, leftArrow as me, leftrightArrow as he, measureOfAngle as ge, notCongruentTo as _e, overArc as k, overLeftRightArrow as A, overRightArrow as j, overline as M, parallel as N, perpindicular as P, primeArcminute as F, rightArrow as I, similarTo as ve, square as ye, triangle as L } from "./geometry.js";
9
+ import { circleDot as R, operators_exports as be } from "./operators.js";
10
+ import { ln as z, log as B, logSubscript as V, log_exports as xe } from "./log.js";
11
+ import { sub_sup_exports as Se, subscript as H } from "./sub-sup.js";
12
+ import { mu as U, sigma as W, smallSigma as G, statistics_exports as Ce, xBar as we, yBar as Te } from "./statistics.js";
13
+ import { basic_operators_exports as Ee, divide as De, minus as K, multiply as Oe } from "./basic-operators.js";
14
+ import { matrices_exports as ke } from "./matrices.js";
15
+ import q from "./digits.js";
16
+ import { longDivision as J, therefore as Ae } from "./logic.js";
17
+ import { left as Y, right as X } from "./navigation.js";
18
+ import { del as Z } from "./edit.js";
19
+ //#region src/keys/grades.ts
20
+ var Q = [
21
+ [
22
+ c,
23
+ ae,
24
+ o,
25
+ p,
26
+ f
27
+ ],
28
+ [
29
+ R,
30
+ s,
31
+ H,
32
+ m,
33
+ d
34
+ ],
35
+ [
36
+ y,
37
+ r,
38
+ t,
39
+ i,
40
+ n
41
+ ],
42
+ [
43
+ b,
44
+ a,
45
+ v,
46
+ g,
47
+ h
48
+ ],
49
+ [
50
+ _,
51
+ T,
52
+ x,
53
+ E,
54
+ O
55
+ ]
56
+ ], je = (() => {
57
+ let e = [...Q.map((e) => [...e])];
58
+ return e[0].push({
59
+ name: "i",
60
+ latex: "i",
61
+ write: "i"
62
+ }), e[1].push(B), e[2].push(V), e[3].push(z), e[4].push(se), e;
63
+ })(), Me = (() => {
64
+ let e = [...Q.map((e) => [...e])];
65
+ return e[0].push(U), e[1].push(we), e[2].push(Te), e[3].push(W), e[4].push(G), e;
66
+ })(), $ = [
67
+ {
68
+ predicate: (e) => e >= 3 && e <= 5,
69
+ set: [
70
+ [r, t],
71
+ [u, l],
72
+ [o, J],
73
+ [p, m]
74
+ ]
75
+ },
76
+ {
77
+ predicate: (e) => e >= 6 && e <= 7,
78
+ set: [
79
+ [
80
+ O,
81
+ r,
82
+ t
83
+ ],
84
+ [
85
+ R,
86
+ i,
87
+ n
88
+ ],
89
+ [
90
+ o,
91
+ s,
92
+ p,
93
+ m
94
+ ],
95
+ [
96
+ y,
97
+ u,
98
+ l,
99
+ f
100
+ ],
101
+ [
102
+ b,
103
+ v,
104
+ h,
105
+ d
106
+ ]
107
+ ]
108
+ },
109
+ {
110
+ predicate: (e) => e >= 8 || e === "HS",
111
+ set: Q
112
+ },
113
+ {
114
+ predicate: "non-negative-integers",
115
+ set: [
116
+ [
117
+ q.seven,
118
+ q.eight,
119
+ q.nine
120
+ ],
121
+ [
122
+ q.four,
123
+ q.five,
124
+ q.six
125
+ ],
126
+ [
127
+ q.one,
128
+ q.two,
129
+ q.three
130
+ ],
131
+ [
132
+ q.zero,
133
+ {
134
+ name: "",
135
+ latex: "",
136
+ write: ""
137
+ },
138
+ {
139
+ name: "",
140
+ latex: "",
141
+ write: ""
142
+ }
143
+ ],
144
+ [
145
+ Y,
146
+ X,
147
+ Z
148
+ ]
149
+ ]
150
+ },
151
+ {
152
+ predicate: "integers",
153
+ set: [
154
+ [
155
+ q.seven,
156
+ q.eight,
157
+ q.nine
158
+ ],
159
+ [
160
+ q.four,
161
+ q.five,
162
+ q.six
163
+ ],
164
+ [
165
+ q.one,
166
+ q.two,
167
+ q.three
168
+ ],
169
+ [
170
+ q.zero,
171
+ {
172
+ name: "",
173
+ latex: "",
174
+ write: ""
175
+ },
176
+ K
177
+ ],
178
+ [
179
+ Y,
180
+ X,
181
+ Z
182
+ ]
183
+ ]
184
+ },
185
+ {
186
+ predicate: "decimals",
187
+ set: [
188
+ [
189
+ q.seven,
190
+ q.eight,
191
+ q.nine
192
+ ],
193
+ [
194
+ q.four,
195
+ q.five,
196
+ q.six
197
+ ],
198
+ [
199
+ q.one,
200
+ q.two,
201
+ q.three
202
+ ],
203
+ [
204
+ q.zero,
205
+ q.decimalPoint,
206
+ K
207
+ ],
208
+ [
209
+ Y,
210
+ X,
211
+ Z
212
+ ]
213
+ ]
214
+ },
215
+ {
216
+ predicate: "fractions",
217
+ set: [
218
+ [
219
+ q.seven,
220
+ q.eight,
221
+ q.nine
222
+ ],
223
+ [
224
+ q.four,
225
+ q.five,
226
+ q.six
227
+ ],
228
+ [
229
+ q.one,
230
+ q.two,
231
+ q.three
232
+ ],
233
+ [
234
+ q.zero,
235
+ c,
236
+ K
237
+ ],
238
+ [
239
+ Y,
240
+ X,
241
+ Z
242
+ ]
243
+ ]
244
+ },
245
+ {
246
+ predicate: "geometry",
247
+ set: [
248
+ [
249
+ c,
250
+ O,
251
+ F,
252
+ fe,
253
+ de,
254
+ ve
255
+ ],
256
+ [
257
+ R,
258
+ D,
259
+ ge,
260
+ L,
261
+ _e,
262
+ ie
263
+ ],
264
+ [
265
+ T,
266
+ x,
267
+ E,
268
+ b,
269
+ f,
270
+ d
271
+ ],
272
+ [
273
+ C,
274
+ w,
275
+ S,
276
+ a,
277
+ H,
278
+ m
279
+ ],
280
+ [
281
+ M,
282
+ j,
283
+ A,
284
+ k,
285
+ P,
286
+ N
287
+ ]
288
+ ]
289
+ },
290
+ {
291
+ predicate: "advanced-algebra",
292
+ set: je
293
+ },
294
+ {
295
+ predicate: "statistics",
296
+ set: Me
297
+ },
298
+ {
299
+ predicate: "item-authoring",
300
+ set: [
301
+ [
302
+ De,
303
+ c,
304
+ J,
305
+ ce,
306
+ p,
307
+ f,
308
+ M,
309
+ j,
310
+ A,
311
+ B
312
+ ],
313
+ [
314
+ Oe,
315
+ R,
316
+ {
317
+ name: "",
318
+ latex: "",
319
+ write: ""
320
+ },
321
+ H,
322
+ m,
323
+ d,
324
+ P,
325
+ N,
326
+ k,
327
+ V
328
+ ],
329
+ [
330
+ y,
331
+ b,
332
+ a,
333
+ O,
334
+ D,
335
+ me,
336
+ I,
337
+ L,
338
+ ye,
339
+ z
340
+ ],
341
+ [
342
+ _,
343
+ h,
344
+ G,
345
+ U,
346
+ Ae,
347
+ W,
348
+ he,
349
+ T,
350
+ x,
351
+ E
352
+ ],
353
+ [
354
+ i,
355
+ n,
356
+ {
357
+ name: "",
358
+ latex: "",
359
+ write: ""
360
+ },
361
+ {
362
+ name: "",
363
+ latex: "",
364
+ write: ""
365
+ },
366
+ le,
367
+ {
368
+ name: "",
369
+ latex: "",
370
+ write: ""
371
+ },
372
+ {
373
+ name: "",
374
+ latex: "",
375
+ write: ""
376
+ },
377
+ C,
378
+ w,
379
+ S
380
+ ]
381
+ ]
382
+ },
383
+ {
384
+ predicate: (e) => e >= 1 && e <= 2,
385
+ set: []
386
+ }
387
+ ], Ne = (e) => {
388
+ let t = parseInt(e, 10);
389
+ if (e = isNaN(t) ? e : t, !e) return [];
390
+ let n = $.find((t) => typeof t.predicate == "string" ? t.predicate === e : t.predicate(e));
391
+ if (n) return n.set || [];
392
+ if (e !== "language") return $[2].set;
393
+ }, Pe = [
394
+ ...Object.values(Ee),
395
+ ...Object.values(e),
396
+ ...Object.values(oe),
397
+ ...Object.values(q),
398
+ ...Object.values(ne),
399
+ ...Object.values(te),
400
+ ...Object.values(pe),
401
+ ...Object.values(xe),
402
+ ...Object.values(ke),
403
+ ...Object.values(re),
404
+ ...Object.values(be),
405
+ ...Object.values(Ce),
406
+ ...Object.values(Se),
407
+ ...Object.values(ue),
408
+ ...Object.values(ee)
409
+ ], Fe = (e) => (e || []).map((e) => {
410
+ let { latex: t } = e, n = (Pe || []).find((e) => t === e.latex || t === e.write || t === e.command || t === e.otherNotation);
411
+ return t && n || e;
412
+ });
413
+ //#endregion
414
+ export { $ as gradeSets, Ne as keysForGrade, Fe as normalizeAdditionalKeys };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/math-input/src/keys/index.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
+ import * as comparison from './comparison.js';
10
+ import * as fractions from './fractions.js';
11
+ import * as exponent from './exponent.js';
12
+ import * as misc from './misc.js';
13
+ export declare const baseSet: any[][];
14
+ export { comparison, fractions, exponent, misc };