@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.
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/horizontal-keypad.d.ts +30 -0
- package/dist/horizontal-keypad.js +55 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +10 -0
- package/dist/keypad/index.d.ts +37 -0
- package/dist/keypad/index.js +277 -0
- package/dist/keypad/keys-layout.d.ts +15 -0
- package/dist/keypad/keys-layout.js +5 -0
- package/dist/keys/basic-operators.d.ts +13 -0
- package/dist/keys/basic-operators.js +30 -0
- package/dist/keys/chars.d.ts +13 -0
- package/dist/keys/comparison.d.ts +12 -0
- package/dist/keys/comparison.js +32 -0
- package/dist/keys/constants.d.ts +12 -0
- package/dist/keys/constants.js +35 -0
- package/dist/keys/digits.d.ts +23 -0
- package/dist/keys/digits.js +34 -0
- package/dist/keys/edit.d.ts +14 -0
- package/dist/keys/edit.js +9 -0
- package/dist/keys/exponent.d.ts +12 -0
- package/dist/keys/exponent.js +28 -0
- package/dist/keys/fractions.d.ts +11 -0
- package/dist/keys/fractions.js +27 -0
- package/dist/keys/geometry.d.ts +31 -0
- package/dist/keys/geometry.js +127 -0
- package/dist/keys/grades.d.ts +17 -0
- package/dist/keys/grades.js +414 -0
- package/dist/keys/index.d.ts +14 -0
- package/dist/keys/index.js +50 -0
- package/dist/keys/log.d.ts +11 -0
- package/dist/keys/log.js +25 -0
- package/dist/keys/logic.d.ts +10 -0
- package/dist/keys/logic.js +13 -0
- package/dist/keys/matrices.d.ts +10 -0
- package/dist/keys/matrices.js +17 -0
- package/dist/keys/misc.d.ts +18 -0
- package/dist/keys/misc.js +60 -0
- package/dist/keys/navigation.d.ts +10 -0
- package/dist/keys/navigation.js +13 -0
- package/dist/keys/operators.d.ts +9 -0
- package/dist/keys/operators.js +11 -0
- package/dist/keys/statistics.d.ts +13 -0
- package/dist/keys/statistics.js +38 -0
- package/dist/keys/sub-sup.d.ts +10 -0
- package/dist/keys/sub-sup.js +17 -0
- package/dist/keys/trigonometry.d.ts +14 -0
- package/dist/keys/trigonometry.js +43 -0
- package/dist/keys/utils.d.ts +13 -0
- package/dist/keys/utils.js +24 -0
- package/dist/keys/vars.d.ts +11 -0
- package/dist/keys/vars.js +22 -0
- package/dist/math-input.d.ts +30 -0
- package/dist/mq/common-mq-styles.d.ts +231 -0
- package/dist/mq/common-mq-styles.js +55 -0
- package/dist/mq/custom-elements.d.ts +10 -0
- package/dist/mq/custom-elements.js +10 -0
- package/dist/mq/index.d.ts +12 -0
- package/dist/mq/index.js +12 -0
- package/dist/mq/input.d.ts +39 -0
- package/dist/mq/input.js +83 -0
- package/{src/mq/mathquill-instance.js → dist/mq/mathquill-instance.d.ts} +11 -28
- package/dist/mq/mathquill-instance.js +13 -0
- package/dist/mq/static.d.ts +47 -0
- package/dist/mq/static.js +151 -0
- package/dist/updateSpans.d.ts +10 -0
- package/dist/updateSpans.js +8 -0
- package/package.json +29 -15
- package/CHANGELOG.json +0 -17
- package/CHANGELOG.md +0 -1178
- package/LICENSE.md +0 -5
- package/lib/horizontal-keypad.js +0 -96
- package/lib/horizontal-keypad.js.map +0 -1
- package/lib/index.js +0 -69
- package/lib/index.js.map +0 -1
- package/lib/keypad/index.js +0 -413
- package/lib/keypad/index.js.map +0 -1
- package/lib/keypad/keys-layout.js +0 -22
- package/lib/keypad/keys-layout.js.map +0 -1
- package/lib/keys/basic-operators.js +0 -33
- package/lib/keys/basic-operators.js.map +0 -1
- package/lib/keys/chars.js +0 -12
- package/lib/keys/chars.js.map +0 -1
- package/lib/keys/comparison.js +0 -39
- package/lib/keys/comparison.js.map +0 -1
- package/lib/keys/constants.js +0 -37
- package/lib/keys/constants.js.map +0 -1
- package/lib/keys/digits.js +0 -46
- package/lib/keys/digits.js.map +0 -1
- package/lib/keys/edit.js +0 -14
- package/lib/keys/edit.js.map +0 -1
- package/lib/keys/exponent.js +0 -30
- package/lib/keys/exponent.js.map +0 -1
- package/lib/keys/fractions.js +0 -29
- package/lib/keys/fractions.js.map +0 -1
- package/lib/keys/geometry.js +0 -140
- package/lib/keys/geometry.js.map +0 -1
- package/lib/keys/grades.js +0 -259
- package/lib/keys/grades.js.map +0 -1
- package/lib/keys/index.js +0 -35
- package/lib/keys/index.js.map +0 -1
- package/lib/keys/log.js +0 -27
- package/lib/keys/log.js.map +0 -1
- package/lib/keys/logic.js +0 -19
- package/lib/keys/logic.js.map +0 -1
- package/lib/keys/matrices.js +0 -19
- package/lib/keys/matrices.js.map +0 -1
- package/lib/keys/misc.js +0 -62
- package/lib/keys/misc.js.map +0 -1
- package/lib/keys/navigation.js +0 -20
- package/lib/keys/navigation.js.map +0 -1
- package/lib/keys/operators.js +0 -15
- package/lib/keys/operators.js.map +0 -1
- package/lib/keys/statistics.js +0 -40
- package/lib/keys/statistics.js.map +0 -1
- package/lib/keys/sub-sup.js +0 -19
- package/lib/keys/sub-sup.js.map +0 -1
- package/lib/keys/trigonometry.js +0 -45
- package/lib/keys/trigonometry.js.map +0 -1
- package/lib/keys/utils.js +0 -87
- package/lib/keys/utils.js.map +0 -1
- package/lib/keys/vars.js +0 -24
- package/lib/keys/vars.js.map +0 -1
- package/lib/math-input.js +0 -141
- package/lib/math-input.js.map +0 -1
- package/lib/mq/common-mq-styles.js +0 -102
- package/lib/mq/common-mq-styles.js.map +0 -1
- package/lib/mq/custom-elements.js +0 -20
- package/lib/mq/custom-elements.js.map +0 -1
- package/lib/mq/index.js +0 -28
- package/lib/mq/index.js.map +0 -1
- package/lib/mq/input.js +0 -186
- package/lib/mq/input.js.map +0 -1
- package/lib/mq/mathquill-instance.js +0 -52
- package/lib/mq/mathquill-instance.js.map +0 -1
- package/lib/mq/static.js +0 -301
- package/lib/mq/static.js.map +0 -1
- package/lib/updateSpans.js +0 -19
- package/lib/updateSpans.js.map +0 -1
- package/src/__tests__/horizontal-keypad.test.jsx +0 -463
- package/src/__tests__/index.test.js +0 -247
- package/src/__tests__/math-input-test.jsx +0 -45
- package/src/__tests__/updateSpans.test.js +0 -297
- package/src/horizontal-keypad.jsx +0 -69
- package/src/index.jsx +0 -28
- package/src/keypad/__tests__/index.test.jsx +0 -25
- package/src/keypad/__tests__/keys-layout.test.js +0 -14
- package/src/keypad/index.jsx +0 -439
- package/src/keypad/keys-layout.js +0 -16
- package/src/keys/__tests__/utils.test.js +0 -57
- package/src/keys/basic-operators.js +0 -32
- package/src/keys/chars.js +0 -5
- package/src/keys/comparison.js +0 -28
- package/src/keys/constants.js +0 -35
- package/src/keys/digits.js +0 -40
- package/src/keys/edit.js +0 -3
- package/src/keys/exponent.js +0 -28
- package/src/keys/fractions.js +0 -26
- package/src/keys/geometry.js +0 -144
- package/src/keys/grades.js +0 -367
- package/src/keys/index.js +0 -20
- package/src/keys/log.js +0 -22
- package/src/keys/logic.js +0 -15
- package/src/keys/matrices.js +0 -15
- package/src/keys/misc.js +0 -65
- package/src/keys/navigation.js +0 -8
- package/src/keys/operators.js +0 -10
- package/src/keys/statistics.js +0 -38
- package/src/keys/sub-sup.js +0 -15
- package/src/keys/trigonometry.js +0 -15
- package/src/keys/utils.js +0 -66
- package/src/keys/vars.js +0 -19
- package/src/math-input.jsx +0 -119
- package/src/mq/__tests__/custom-elements.test.js +0 -342
- package/src/mq/__tests__/input.test.jsx +0 -40
- package/src/mq/__tests__/mathquill-instance.test.js +0 -67
- package/src/mq/__tests__/static.test.jsx +0 -33
- package/src/mq/common-mq-styles.js +0 -109
- package/src/mq/custom-elements.js +0 -11
- package/src/mq/index.js +0 -5
- package/src/mq/input.jsx +0 -166
- package/src/mq/static.jsx +0 -290
- 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;
|
package/dist/keys/log.js
ADDED
|
@@ -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;
|