@pie-lib/math-input 6.11.5-next.0 → 6.11.5-next.1844

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 (48) hide show
  1. package/CHANGELOG.json +6 -1536
  2. package/CHANGELOG.md +178 -117
  3. package/NEXT.CHANGELOG.json +1 -0
  4. package/lib/horizontal-keypad.js +9 -3
  5. package/lib/horizontal-keypad.js.map +1 -1
  6. package/lib/index.js +10 -14
  7. package/lib/index.js.map +1 -1
  8. package/lib/keypad/index.js +95 -24
  9. package/lib/keypad/index.js.map +1 -1
  10. package/lib/keys/geometry.js +4 -2
  11. package/lib/keys/geometry.js.map +1 -1
  12. package/lib/keys/grades.js +12 -0
  13. package/lib/keys/grades.js.map +1 -1
  14. package/lib/keys/log.js +1 -1
  15. package/lib/keys/log.js.map +1 -1
  16. package/lib/mq/common-mq-styles.js +110 -0
  17. package/lib/mq/common-mq-styles.js.map +1 -0
  18. package/lib/mq/index.js +8 -0
  19. package/lib/mq/index.js.map +1 -1
  20. package/lib/mq/input.js +12 -10
  21. package/lib/mq/input.js.map +1 -1
  22. package/lib/mq/static.js +198 -75
  23. package/lib/mq/static.js.map +1 -1
  24. package/lib/shared/constants.js +16 -0
  25. package/lib/updateSpans.js +23 -0
  26. package/lib/updateSpans.js.map +1 -0
  27. package/package.json +4 -2
  28. package/src/__tests__/__snapshots__/math-input-test.jsx.snap +152 -0
  29. package/src/__tests__/math-input-test.jsx +85 -0
  30. package/src/horizontal-keypad.jsx +14 -1
  31. package/src/index.jsx +1 -10
  32. package/src/keypad/__tests__/__snapshots__/index.test.jsx.snap +193 -0
  33. package/src/keypad/__tests__/index.test.jsx +24 -0
  34. package/src/keypad/__tests__/keys-layout.test.js +15 -0
  35. package/src/keypad/index.jsx +99 -15
  36. package/src/keys/__tests__/utils.test.js +57 -0
  37. package/src/keys/geometry.js +6 -2
  38. package/src/keys/grades.js +11 -0
  39. package/src/keys/log.js +1 -1
  40. package/src/mq/__tests__/__snapshots__/input.test.jsx.snap +9 -0
  41. package/src/mq/__tests__/input.test.jsx +92 -0
  42. package/src/mq/__tests__/static.test.jsx +57 -0
  43. package/src/mq/common-mq-styles.js +105 -0
  44. package/src/mq/index.js +2 -1
  45. package/src/mq/input.jsx +22 -9
  46. package/src/mq/static.jsx +142 -13
  47. package/src/updateSpans.js +15 -0
  48. package/README.md +0 -27
package/CHANGELOG.md CHANGED
@@ -3,18 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [6.11.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.3...@pie-lib/math-input@6.11.4) (2023-07-04)
7
-
8
-
9
- ### Bug Fixes
6
+ # [6.26.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.25.0...@pie-lib/math-input@6.26.0) (2025-09-18)
10
7
 
11
- * prevent crash PD-2150 ([3491c09](https://github.com/pie-framework/pie-lib/commit/3491c09aa5ad947e1248254e79043e5a909d2cde))
8
+ **Note:** Version bump only for package @pie-lib/math-input
12
9
 
13
10
 
14
11
 
15
12
 
16
13
 
17
- ## [6.11.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.2...@pie-lib/math-input@6.11.3) (2023-06-24)
14
+ # [6.25.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.24.0...@pie-lib/math-input@6.25.0) (2025-09-18)
18
15
 
19
16
  **Note:** Version bump only for package @pie-lib/math-input
20
17
 
@@ -22,342 +19,406 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
22
19
 
23
20
 
24
21
 
25
- ## [6.11.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.1...@pie-lib/math-input@6.11.2) (2023-05-22)
22
+ # [6.24.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.24.0) (2025-09-18)
26
23
 
27
24
 
28
25
  ### Bug Fixes
29
26
 
30
- * made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
27
+ * fixed pie-lib/icons import [PD-5126] ([dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f))
31
28
 
32
29
 
30
+ ### Features
33
31
 
32
+ * split pie-toolbox into multiple packages [PD-5126] ([7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2))
34
33
 
35
34
 
36
- ## [6.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.0...@pie-lib/math-input@6.11.1) (2023-04-19)
37
35
 
38
36
 
39
- ### Bug Fixes
40
-
41
- * **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
42
- * **math-input:** add required import for MathQuill-PD-2732 ([532d786](https://github.com/pie-framework/pie-lib/commit/532d7866fa48a5f9ac68f6d26f31b0e28ac54acf))
43
37
 
38
+ # [6.23.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.22.0...@pie-lib/math-input@6.23.0) (2025-09-17)
44
39
 
40
+ **Note:** Version bump only for package @pie-lib/math-input
45
41
 
46
42
 
47
43
 
48
- # [6.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.13...@pie-lib/math-input@6.11.0) (2023-04-07)
49
44
 
50
45
 
51
- ### Features
46
+ # [6.22.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.21.0...@pie-lib/math-input@6.22.0) (2025-09-17)
52
47
 
53
- * **math-input:** add two exponent buttons to the grade 3-5 math editor PD-2728 ([b7b87a5](https://github.com/pie-framework/pie-lib/commit/b7b87a5c0c2ca2c3e600cdac696cab3c0a576e87))
48
+ **Note:** Version bump only for package @pie-lib/math-input
54
49
 
55
50
 
56
51
 
57
52
 
58
53
 
59
- ## [6.10.13](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.12...@pie-lib/math-input@6.10.13) (2023-03-20)
54
+ # [6.21.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.20.1...@pie-lib/math-input@6.21.0) (2025-09-17)
60
55
 
56
+ **Note:** Version bump only for package @pie-lib/math-input
61
57
 
62
- ### Bug Fixes
63
58
 
64
- * **math-input:** add important to mq button padding to fix issue in IBX with css priority PD-2702 ([3e40576](https://github.com/pie-framework/pie-lib/commit/3e405767f070ec22cf9315ef9f852f8c8c7d6228))
65
59
 
66
60
 
67
61
 
62
+ ## [6.20.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.20.1) (2025-08-11)
68
63
 
69
64
 
70
- ## [6.10.12](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.10...@pie-lib/math-input@6.10.12) (2023-01-31)
65
+ ### Bug Fixes
71
66
 
72
- **Note:** Version bump only for package @pie-lib/math-input
67
+ * fixed pie-lib/icons import [PD-5126] ([dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f))
73
68
 
74
69
 
70
+ ### Features
75
71
 
72
+ * split pie-toolbox into multiple packages [PD-5126] ([7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2))
76
73
 
77
74
 
78
- ## [6.10.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.9...@pie-lib/math-input@6.10.10) (2023-01-31)
79
75
 
80
- **Note:** Version bump only for package @pie-lib/math-input
81
76
 
82
77
 
78
+ # [6.20.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.20.0) (2025-08-07)
83
79
 
80
+ ### Features
84
81
 
82
+ - split pie-toolbox into multiple packages [PD-5126](<[7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2)>)
85
83
 
86
- ## [6.10.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.8...@pie-lib/math-input@6.10.9) (2023-01-31)
84
+ # [6.19.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.19.0) (2025-07-31)
87
85
 
88
86
  **Note:** Version bump only for package @pie-lib/math-input
89
87
 
88
+ # [6.18.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.18.0) (2025-07-31)
90
89
 
90
+ **Note:** Version bump only for package @pie-lib/math-input
91
91
 
92
+ # [6.17.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.17.0) (2025-07-31)
92
93
 
94
+ **Note:** Version bump only for package @pie-lib/math-input
93
95
 
94
- ## [6.10.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.7...@pie-lib/math-input@6.10.8) (2023-01-31)
96
+ # [6.16.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.16.0) (2025-07-31)
95
97
 
96
98
  **Note:** Version bump only for package @pie-lib/math-input
97
99
 
100
+ # [6.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.15.0) (2025-07-31)
98
101
 
102
+ **Note:** Version bump only for package @pie-lib/math-input
99
103
 
104
+ # [6.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.14.0) (2025-07-31)
100
105
 
106
+ **Note:** Version bump only for package @pie-lib/math-input
101
107
 
102
- ## [6.10.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.4...@pie-lib/math-input@6.10.7) (2023-01-31)
108
+ # [6.16.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.16.0) (2025-07-31)
103
109
 
104
110
  **Note:** Version bump only for package @pie-lib/math-input
105
111
 
112
+ # [6.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.15.0) (2025-07-31)
106
113
 
114
+ **Note:** Version bump only for package @pie-lib/math-input
107
115
 
116
+ # [6.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.14.0) (2025-07-31)
108
117
 
118
+ **Note:** Version bump only for package @pie-lib/math-input
109
119
 
110
- ## [6.10.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.2...@pie-lib/math-input@6.10.4) (2023-01-31)
120
+ # [6.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.15.0) (2025-07-31)
111
121
 
112
122
  **Note:** Version bump only for package @pie-lib/math-input
113
123
 
124
+ # [6.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.14.0) (2025-07-31)
114
125
 
126
+ **Note:** Version bump only for package @pie-lib/math-input
115
127
 
128
+ # [6.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.13.0) (2025-07-31)
116
129
 
130
+ **Note:** Version bump only for package @pie-lib/math-input
117
131
 
118
- ## [6.10.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.0...@pie-lib/math-input@6.10.2) (2023-01-31)
132
+ # [6.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.13.0) (2025-07-31)
119
133
 
120
134
  **Note:** Version bump only for package @pie-lib/math-input
121
135
 
136
+ # [6.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.14.0) (2025-07-31)
122
137
 
138
+ **Note:** Version bump only for package @pie-lib/math-input
123
139
 
140
+ # [6.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.13.0) (2025-07-31)
124
141
 
142
+ **Note:** Version bump only for package @pie-lib/math-input
125
143
 
126
- # [6.10.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.9.0...@pie-lib/math-input@6.10.0) (2023-01-03)
144
+ # [6.12.0-beta.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.8) (2025-07-25)
127
145
 
146
+ **Note:** Version bump only for package @pie-lib/math-input
128
147
 
129
- ### Features
148
+ # [6.12.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.7) (2025-07-25)
130
149
 
131
- * **math-input:** solve eslint error ([b4489aa](https://github.com/pie-framework/pie-lib/commit/b4489aad65d5a92989ea32294589b5a030019ecb))
150
+ **Note:** Version bump only for package @pie-lib/math-input
132
151
 
152
+ # [6.12.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.7) (2025-07-25)
133
153
 
154
+ **Note:** Version bump only for package @pie-lib/math-input
134
155
 
156
+ # [6.12.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.6) (2025-07-25)
135
157
 
158
+ **Note:** Version bump only for package @pie-lib/math-input
136
159
 
137
- # [6.9.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.4...@pie-lib/math-input@6.9.0) (2022-12-19)
160
+ # [6.12.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.6) (2025-07-25)
138
161
 
162
+ **Note:** Version bump only for package @pie-lib/math-input
139
163
 
140
- ### Features
164
+ # [6.12.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.5) (2025-07-25)
141
165
 
142
- * **math-input:** add aria label property for latex buttons ([5aa5b35](https://github.com/pie-framework/pie-lib/commit/5aa5b351c969e13a6a225c7c3d5015e70a3d1c18))
143
- * **math-input:** add labels to math-operators and buttons that screen readers can use ([ad64881](https://github.com/pie-framework/pie-lib/commit/ad648818c060de1fad9c30b62d3bf73d8d7481fb))
144
- * **math-input:** refactor ([71bd61c](https://github.com/pie-framework/pie-lib/commit/71bd61cb1e0efb5b2a3e0119eea0239a4863e9ac))
145
- * **math-input:** update snapshots ([4fe88e1](https://github.com/pie-framework/pie-lib/commit/4fe88e1264667218b59ecfd956e205ae22d0f2a6))
166
+ **Note:** Version bump only for package @pie-lib/math-input
146
167
 
168
+ # [6.12.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.5) (2025-07-25)
147
169
 
170
+ **Note:** Version bump only for package @pie-lib/math-input
148
171
 
172
+ # [6.12.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.4) (2025-07-25)
149
173
 
174
+ **Note:** Version bump only for package @pie-lib/math-input
150
175
 
151
- ## [6.8.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.3...@pie-lib/math-input@6.8.4) (2022-11-23)
176
+ # [6.12.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.3) (2025-07-25)
152
177
 
153
178
  **Note:** Version bump only for package @pie-lib/math-input
154
179
 
180
+ # [6.12.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.4) (2025-07-23)
155
181
 
182
+ **Note:** Version bump only for package @pie-lib/math-input
156
183
 
184
+ # [6.12.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.3) (2025-07-23)
157
185
 
186
+ **Note:** Version bump only for package @pie-lib/math-input
158
187
 
159
- ## [6.8.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.2...@pie-lib/math-input@6.8.3) (2022-11-17)
188
+ # [6.12.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.3) (2025-07-20)
160
189
 
190
+ **Note:** Version bump only for package @pie-lib/math-input
161
191
 
162
- ### Bug Fixes
192
+ # [6.12.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.2) (2025-07-20)
163
193
 
164
- * PD-1858 not working with the fraction button in Advanced Multi mode (mq.Static) PD-2030 PD-2031 ([46d1168](https://github.com/pie-framework/pie-lib/commit/46d116874c063524c764cb6d7035fed6bfa84dfb))
194
+ **Note:** Version bump only for package @pie-lib/math-input
165
195
 
196
+ # [6.12.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.1) (2025-07-20)
166
197
 
198
+ **Note:** Version bump only for package @pie-lib/math-input
167
199
 
200
+ # [6.12.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.2) (2025-07-20)
168
201
 
202
+ **Note:** Version bump only for package @pie-lib/math-input
169
203
 
170
- ## [6.8.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.1...@pie-lib/math-input@6.8.2) (2022-11-14)
204
+ # [6.12.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.1) (2025-07-20)
171
205
 
206
+ **Note:** Version bump only for package @pie-lib/math-input
172
207
 
173
- ### Bug Fixes
208
+ # [6.12.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.1) (2025-07-20)
174
209
 
175
- * PD-1858 (Math editor tweak to better handle the entry of mixed numbers) - not working with a mixed number if the integer part is multi-digit PD-1858, PD-2029, PD-2030, PD-2031 ([158e76a](https://github.com/pie-framework/pie-lib/commit/158e76a48bec66b1f026811bb1856fa4af5668f3))
176
- * PD-1858 not working with a mixed number if the integer part is multi-digit PD-2029 ([773f51c](https://github.com/pie-framework/pie-lib/commit/773f51cc54a2af72a1e9bd225ba9be27d8b1de52))
210
+ **Note:** Version bump only for package @pie-lib/math-input
177
211
 
212
+ # [6.12.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.0) (2025-07-20)
178
213
 
214
+ **Note:** Version bump only for package @pie-lib/math-input
179
215
 
216
+ # [6.13.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.13.0-beta.0) (2025-07-15)
180
217
 
218
+ **Note:** Version bump only for package @pie-lib/math-input
181
219
 
182
- ## [6.8.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.0...@pie-lib/math-input@6.8.1) (2022-08-30)
220
+ # [6.12.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.0) (2025-07-15)
183
221
 
184
222
  **Note:** Version bump only for package @pie-lib/math-input
185
223
 
224
+ ## [6.11.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.3...@pie-lib/math-input@6.11.4) (2023-07-04)
186
225
 
226
+ ### Bug Fixes
187
227
 
228
+ - prevent crash PD-2150 ([3491c09](https://github.com/pie-framework/pie-lib/commit/3491c09aa5ad947e1248254e79043e5a909d2cde))
188
229
 
230
+ ## [6.11.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.2...@pie-lib/math-input@6.11.3) (2023-06-24)
189
231
 
190
- # [6.8.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.2...@pie-lib/math-input@6.8.0) (2022-08-29)
232
+ **Note:** Version bump only for package @pie-lib/math-input
191
233
 
234
+ ## [6.11.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.1...@pie-lib/math-input@6.11.2) (2023-05-22)
192
235
 
193
- ### Features
236
+ ### Bug Fixes
194
237
 
195
- * parse latex when there's an integer and a space before a fraction (remove white space) - wip - PD-1858 ([13995de](https://github.com/pie-framework/pie-lib/commit/13995de67283a3c800f41ee8221f6d2e3f10a7ad))
196
- * parse latex when there's an integer and a space before a fraction (remove white space) PD-1858 ([85654e5](https://github.com/pie-framework/pie-lib/commit/85654e54b9feef656c0002e9d1b2bda2394f398e))
197
- * **math-input:** feedback ([6b6ee68](https://github.com/pie-framework/pie-lib/commit/6b6ee6852c6226c446a498ad64c2b43e23f9c154))
198
- * **math-input:** Make math-input style inline with mathjax's one ([e988f63](https://github.com/pie-framework/pie-lib/commit/e988f635f6f75cbe882b3bf7efb716de13fd893d))
238
+ - made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
199
239
 
240
+ ## [6.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.0...@pie-lib/math-input@6.11.1) (2023-04-19)
241
+
242
+ ### Bug Fixes
200
243
 
244
+ - **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
245
+ - **math-input:** add required import for MathQuill-PD-2732 ([532d786](https://github.com/pie-framework/pie-lib/commit/532d7866fa48a5f9ac68f6d26f31b0e28ac54acf))
201
246
 
247
+ # [6.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.13...@pie-lib/math-input@6.11.0) (2023-04-07)
202
248
 
249
+ ### Features
203
250
 
204
- ## [6.7.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.1...@pie-lib/math-input@6.7.2) (2022-07-19)
251
+ - **math-input:** add two exponent buttons to the grade 3-5 math editor PD-2728 ([b7b87a5](https://github.com/pie-framework/pie-lib/commit/b7b87a5c0c2ca2c3e600cdac696cab3c0a576e87))
205
252
 
253
+ ## [6.10.13](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.12...@pie-lib/math-input@6.10.13) (2023-03-20)
206
254
 
207
255
  ### Bug Fixes
208
256
 
209
- * bump mathquill to 1.1.3 ([48b84c5](https://github.com/pie-framework/pie-lib/commit/48b84c534cbf519e172a80d18a48b26eda3cf7e6))
257
+ - **math-input:** add important to mq button padding to fix issue in IBX with css priority PD-2702 ([3e40576](https://github.com/pie-framework/pie-lib/commit/3e405767f070ec22cf9315ef9f852f8c8c7d6228))
210
258
 
259
+ ## [6.10.12](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.10...@pie-lib/math-input@6.10.12) (2023-01-31)
211
260
 
261
+ **Note:** Version bump only for package @pie-lib/math-input
212
262
 
263
+ ## [6.10.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.9...@pie-lib/math-input@6.10.10) (2023-01-31)
213
264
 
265
+ **Note:** Version bump only for package @pie-lib/math-input
214
266
 
215
- ## [6.7.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.0...@pie-lib/math-input@6.7.1) (2022-07-18)
267
+ ## [6.10.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.8...@pie-lib/math-input@6.10.9) (2023-01-31)
216
268
 
269
+ **Note:** Version bump only for package @pie-lib/math-input
217
270
 
218
- ### Reverts
271
+ ## [6.10.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.7...@pie-lib/math-input@6.10.8) (2023-01-31)
219
272
 
220
- * Revert "feat(math-toolbar): Make math-toolbar style inline with mathjax for Geometry" ([fee3f22](https://github.com/pie-framework/pie-lib/commit/fee3f22897a03d1d5c892f731dfc441dba9ed10f))
221
- * Revert "feat(math-toolbar): Make math-toolbar preview style inline with mathjax" ([bb86c35](https://github.com/pie-framework/pie-lib/commit/bb86c35ed56228c673020faf5ea089fb99418fd8))
273
+ **Note:** Version bump only for package @pie-lib/math-input
222
274
 
275
+ ## [6.10.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.4...@pie-lib/math-input@6.10.7) (2023-01-31)
223
276
 
277
+ **Note:** Version bump only for package @pie-lib/math-input
224
278
 
279
+ ## [6.10.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.2...@pie-lib/math-input@6.10.4) (2023-01-31)
225
280
 
281
+ **Note:** Version bump only for package @pie-lib/math-input
226
282
 
227
- # [6.7.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.10...@pie-lib/math-input@6.7.0) (2022-07-18)
283
+ ## [6.10.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.0...@pie-lib/math-input@6.10.2) (2023-01-31)
284
+
285
+ **Note:** Version bump only for package @pie-lib/math-input
228
286
 
287
+ # [6.10.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.9.0...@pie-lib/math-input@6.10.0) (2023-01-03)
229
288
 
230
289
  ### Features
231
290
 
232
- * **characters:** special character accents span 2 rows, added border for visibility [PD-1462] ([c60b0bc](https://github.com/pie-framework/pie-lib/commit/c60b0bc8ff45cc01f53bc752fd5dd64da623f6be))
233
- * **math-toolbar:** Make math-toolbar preview style inline with mathjax ([266b1bc](https://github.com/pie-framework/pie-lib/commit/266b1bc9a277530fd653edfacbb836596957dd33))
234
- * **math-toolbar:** Make math-toolbar style inline with mathjax for Geometry ([811bde0](https://github.com/pie-framework/pie-lib/commit/811bde0aa97633822fa3260666e298e841b6b9f7))
235
- * **plugins:** added special characters adding capabilities [PD-1462] ([b9f41e1](https://github.com/pie-framework/pie-lib/commit/b9f41e11f44df140a66145d0b04558ca2b0ea48e))
236
-
291
+ - **math-input:** solve eslint error ([b4489aa](https://github.com/pie-framework/pie-lib/commit/b4489aad65d5a92989ea32294589b5a030019ecb))
237
292
 
293
+ # [6.9.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.4...@pie-lib/math-input@6.9.0) (2022-12-19)
238
294
 
295
+ ### Features
239
296
 
297
+ - **math-input:** add aria label property for latex buttons ([5aa5b35](https://github.com/pie-framework/pie-lib/commit/5aa5b351c969e13a6a225c7c3d5015e70a3d1c18))
298
+ - **math-input:** add labels to math-operators and buttons that screen readers can use ([ad64881](https://github.com/pie-framework/pie-lib/commit/ad648818c060de1fad9c30b62d3bf73d8d7481fb))
299
+ - **math-input:** refactor ([71bd61c](https://github.com/pie-framework/pie-lib/commit/71bd61cb1e0efb5b2a3e0119eea0239a4863e9ac))
300
+ - **math-input:** update snapshots ([4fe88e1](https://github.com/pie-framework/pie-lib/commit/4fe88e1264667218b59ecfd956e205ae22d0f2a6))
240
301
 
241
- ## [6.6.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.9...@pie-lib/math-input@6.6.10) (2022-06-13)
302
+ ## [6.8.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.3...@pie-lib/math-input@6.8.4) (2022-11-23)
242
303
 
243
304
  **Note:** Version bump only for package @pie-lib/math-input
244
305
 
306
+ ## [6.8.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.2...@pie-lib/math-input@6.8.3) (2022-11-17)
245
307
 
308
+ ### Bug Fixes
246
309
 
310
+ - PD-1858 not working with the fraction button in Advanced Multi mode (mq.Static) PD-2030 PD-2031 ([46d1168](https://github.com/pie-framework/pie-lib/commit/46d116874c063524c764cb6d7035fed6bfa84dfb))
247
311
 
248
-
249
- ## [6.6.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.8...@pie-lib/math-input@6.6.9) (2022-04-12)
250
-
312
+ ## [6.8.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.1...@pie-lib/math-input@6.8.2) (2022-11-14)
251
313
 
252
314
  ### Bug Fixes
253
315
 
254
- * **math-input:** PD-1669 handle latex with errors in keypad buttons ([6b36f17](https://github.com/pie-framework/pie-lib/commit/6b36f175deffbd0a0fe021f4f7a11d7c4f14a014))
255
-
316
+ - PD-1858 (Math editor tweak to better handle the entry of mixed numbers) - not working with a mixed number if the integer part is multi-digit PD-1858, PD-2029, PD-2030, PD-2031 ([158e76a](https://github.com/pie-framework/pie-lib/commit/158e76a48bec66b1f026811bb1856fa4af5668f3))
317
+ - PD-1858 not working with a mixed number if the integer part is multi-digit PD-2029 ([773f51c](https://github.com/pie-framework/pie-lib/commit/773f51cc54a2af72a1e9bd225ba9be27d8b1de52))
256
318
 
319
+ ## [6.8.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.0...@pie-lib/math-input@6.8.1) (2022-08-30)
257
320
 
321
+ **Note:** Version bump only for package @pie-lib/math-input
258
322
 
323
+ # [6.8.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.2...@pie-lib/math-input@6.8.0) (2022-08-29)
259
324
 
260
- ## [6.6.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.7...@pie-lib/math-input@6.6.8) (2022-02-04)
325
+ ### Features
261
326
 
262
- **Note:** Version bump only for package @pie-lib/math-input
327
+ - parse latex when there's an integer and a space before a fraction (remove white space) - wip - PD-1858 ([13995de](https://github.com/pie-framework/pie-lib/commit/13995de67283a3c800f41ee8221f6d2e3f10a7ad))
328
+ - parse latex when there's an integer and a space before a fraction (remove white space) PD-1858 ([85654e5](https://github.com/pie-framework/pie-lib/commit/85654e54b9feef656c0002e9d1b2bda2394f398e))
329
+ - **math-input:** feedback ([6b6ee68](https://github.com/pie-framework/pie-lib/commit/6b6ee6852c6226c446a498ad64c2b43e23f9c154))
330
+ - **math-input:** Make math-input style inline with mathjax's one ([e988f63](https://github.com/pie-framework/pie-lib/commit/e988f635f6f75cbe882b3bf7efb716de13fd893d))
263
331
 
332
+ ## [6.7.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.1...@pie-lib/math-input@6.7.2) (2022-07-19)
264
333
 
334
+ ### Bug Fixes
265
335
 
336
+ - bump mathquill to 1.1.3 ([48b84c5](https://github.com/pie-framework/pie-lib/commit/48b84c534cbf519e172a80d18a48b26eda3cf7e6))
266
337
 
338
+ ## [6.7.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.0...@pie-lib/math-input@6.7.1) (2022-07-18)
267
339
 
268
- ## [6.6.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.6...@pie-lib/math-input@6.6.7) (2022-01-10)
340
+ ### Reverts
269
341
 
270
- **Note:** Version bump only for package @pie-lib/math-input
342
+ - Revert "feat(math-toolbar): Make math-toolbar style inline with mathjax for Geometry" ([fee3f22](https://github.com/pie-framework/pie-lib/commit/fee3f22897a03d1d5c892f731dfc441dba9ed10f))
343
+ - Revert "feat(math-toolbar): Make math-toolbar preview style inline with mathjax" ([bb86c35](https://github.com/pie-framework/pie-lib/commit/bb86c35ed56228c673020faf5ea089fb99418fd8))
271
344
 
345
+ # [6.7.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.10...@pie-lib/math-input@6.7.0) (2022-07-18)
272
346
 
347
+ ### Features
273
348
 
349
+ - **characters:** special character accents span 2 rows, added border for visibility [PD-1462](<[c60b0bc](https://github.com/pie-framework/pie-lib/commit/c60b0bc8ff45cc01f53bc752fd5dd64da623f6be)>)
350
+ - **math-toolbar:** Make math-toolbar preview style inline with mathjax ([266b1bc](https://github.com/pie-framework/pie-lib/commit/266b1bc9a277530fd653edfacbb836596957dd33))
351
+ - **math-toolbar:** Make math-toolbar style inline with mathjax for Geometry ([811bde0](https://github.com/pie-framework/pie-lib/commit/811bde0aa97633822fa3260666e298e841b6b9f7))
352
+ - **plugins:** added special characters adding capabilities [PD-1462](<[b9f41e1](https://github.com/pie-framework/pie-lib/commit/b9f41e11f44df140a66145d0b04558ca2b0ea48e)>)
274
353
 
354
+ ## [6.6.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.9...@pie-lib/math-input@6.6.10) (2022-06-13)
275
355
 
276
- ## [6.6.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.5...@pie-lib/math-input@6.6.6) (2021-10-04)
356
+ **Note:** Version bump only for package @pie-lib/math-input
277
357
 
358
+ ## [6.6.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.8...@pie-lib/math-input@6.6.9) (2022-04-12)
278
359
 
279
360
  ### Bug Fixes
280
361
 
281
- * **math-input:** Fixed left-right arrow button ([6109149](https://github.com/pie-framework/pie-lib/commit/6109149))
282
-
362
+ - **math-input:** PD-1669 handle latex with errors in keypad buttons ([6b36f17](https://github.com/pie-framework/pie-lib/commit/6b36f175deffbd0a0fe021f4f7a11d7c4f14a014))
283
363
 
364
+ ## [6.6.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.7...@pie-lib/math-input@6.6.8) (2022-02-04)
284
365
 
366
+ **Note:** Version bump only for package @pie-lib/math-input
285
367
 
368
+ ## [6.6.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.6...@pie-lib/math-input@6.6.7) (2022-01-10)
286
369
 
287
- ## [6.6.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.4...@pie-lib/math-input@6.6.5) (2021-10-04)
370
+ **Note:** Version bump only for package @pie-lib/math-input
288
371
 
372
+ ## [6.6.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.5...@pie-lib/math-input@6.6.6) (2021-10-04)
289
373
 
290
374
  ### Bug Fixes
291
375
 
292
- * **math-input:** create proper latex expression for log base button ([ca0c3f0](https://github.com/pie-framework/pie-lib/commit/ca0c3f0))
293
- * **math-input:** Made overarc button consistent with the others PD-1315 ([8726469](https://github.com/pie-framework/pie-lib/commit/8726469))
294
- * **math-input:** Made segment, ray and line buttons more consistent PD-1315 ([e7e4e29](https://github.com/pie-framework/pie-lib/commit/e7e4e29))
295
-
376
+ - **math-input:** Fixed left-right arrow button ([6109149](https://github.com/pie-framework/pie-lib/commit/6109149))
296
377
 
378
+ ## [6.6.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.4...@pie-lib/math-input@6.6.5) (2021-10-04)
297
379
 
380
+ ### Bug Fixes
298
381
 
382
+ - **math-input:** create proper latex expression for log base button ([ca0c3f0](https://github.com/pie-framework/pie-lib/commit/ca0c3f0))
383
+ - **math-input:** Made overarc button consistent with the others PD-1315 ([8726469](https://github.com/pie-framework/pie-lib/commit/8726469))
384
+ - **math-input:** Made segment, ray and line buttons more consistent PD-1315 ([e7e4e29](https://github.com/pie-framework/pie-lib/commit/e7e4e29))
299
385
 
300
386
  ## [6.6.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.3...@pie-lib/math-input@6.6.4) (2021-09-20)
301
387
 
302
-
303
388
  ### Bug Fixes
304
389
 
305
- * **math-input, math-toolbar:** Adjusted parallelogram button size ([699431e](https://github.com/pie-framework/pie-lib/commit/699431e))
306
-
307
-
308
-
309
-
390
+ - **math-input, math-toolbar:** Adjusted parallelogram button size ([699431e](https://github.com/pie-framework/pie-lib/commit/699431e))
310
391
 
311
392
  ## [6.6.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.2...@pie-lib/math-input@6.6.3) (2021-09-16)
312
393
 
313
-
314
394
  ### Bug Fixes
315
395
 
316
- * **math-input:** render measured angle as m + angle sign PD-368 ([670fb56](https://github.com/pie-framework/pie-lib/commit/670fb56))
317
-
318
-
319
-
320
-
396
+ - **math-input:** render measured angle as m + angle sign PD-368 ([670fb56](https://github.com/pie-framework/pie-lib/commit/670fb56))
321
397
 
322
398
  ## [6.6.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.1...@pie-lib/math-input@6.6.2) (2021-09-08)
323
399
 
324
400
  **Note:** Version bump only for package @pie-lib/math-input
325
401
 
326
-
327
-
328
-
329
-
330
402
  ## [6.6.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.0...@pie-lib/math-input@6.6.1) (2021-09-08)
331
403
 
332
-
333
404
  ### Bug Fixes
334
405
 
335
- * **math-input:** default latex when received is wrong ([d872f60](https://github.com/pie-framework/pie-lib/commit/d872f60))
336
- * **math-input:** default latex when received is wrong (2) ([dc71307](https://github.com/pie-framework/pie-lib/commit/dc71307))
337
- * **math-input:** fix e button on advanced algebra math editor PD-1280 ([dbfb53b](https://github.com/pie-framework/pie-lib/commit/dbfb53b))
338
- * **math-input:** Fixed arrows button for pits ([66dd6a9](https://github.com/pie-framework/pie-lib/commit/66dd6a9))
339
-
340
-
341
-
342
-
406
+ - **math-input:** default latex when received is wrong ([d872f60](https://github.com/pie-framework/pie-lib/commit/d872f60))
407
+ - **math-input:** default latex when received is wrong (2) ([dc71307](https://github.com/pie-framework/pie-lib/commit/dc71307))
408
+ - **math-input:** fix e button on advanced algebra math editor PD-1280 ([dbfb53b](https://github.com/pie-framework/pie-lib/commit/dbfb53b))
409
+ - **math-input:** Fixed arrows button for pits ([66dd6a9](https://github.com/pie-framework/pie-lib/commit/66dd6a9))
343
410
 
344
411
  # [6.6.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.5.14...@pie-lib/math-input@6.6.0) (2021-08-30)
345
412
 
346
-
347
413
  ### Bug Fixes
348
414
 
349
- * **math-input:** Fixed custom keys behavior and changed label for (),[] and absolute value PD-1251 ([39f2ddb](https://github.com/pie-framework/pie-lib/commit/39f2ddb))
350
- * **math-toolbar:** Made segment, ray and line more consistent PD-1264 ([1a2ad37](https://github.com/pie-framework/pie-lib/commit/1a2ad37))
351
- * **math-toolbar & math-input:** render parallel sign with bigger font PD-1258 ([418fc28](https://github.com/pie-framework/pie-lib/commit/418fc28))
352
-
415
+ - **math-input:** Fixed custom keys behavior and changed label for (),[] and absolute value PD-1251 ([39f2ddb](https://github.com/pie-framework/pie-lib/commit/39f2ddb))
416
+ - **math-toolbar:** Made segment, ray and line more consistent PD-1264 ([1a2ad37](https://github.com/pie-framework/pie-lib/commit/1a2ad37))
417
+ - **math-toolbar & math-input:** render parallel sign with bigger font PD-1258 ([418fc28](https://github.com/pie-framework/pie-lib/commit/418fc28))
353
418
 
354
419
  ### Features
355
420
 
356
- * **math-input, math-toolbar:** add long division button in math editor PD-888 ([3056990](https://github.com/pie-framework/pie-lib/commit/3056990))
357
-
358
-
359
-
360
-
421
+ - **math-input, math-toolbar:** add long division button in math editor PD-888 ([3056990](https://github.com/pie-framework/pie-lib/commit/3056990))
361
422
 
362
423
  ## [6.5.14](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.5.12...@pie-lib/math-input@6.5.14) (2021-06-25)
363
424
 
@@ -0,0 +1 @@
1
+ []
@@ -81,19 +81,23 @@ var HorizontalKeypad = /*#__PURE__*/function (_React$Component) {
81
81
  var _this$props = this.props,
82
82
  mode = _this$props.mode,
83
83
  onFocus = _this$props.onFocus,
84
+ controlledKeypadMode = _this$props.controlledKeypadMode,
84
85
  noDecimal = _this$props.noDecimal,
85
86
  className = _this$props.className,
86
87
  additionalKeys = _this$props.additionalKeys,
87
- layoutForKeyPad = _this$props.layoutForKeyPad;
88
+ layoutForKeyPad = _this$props.layoutForKeyPad,
89
+ setKeypadInteraction = _this$props.setKeypadInteraction;
88
90
  var normalizedKeys = (0, _grades.normalizeAdditionalKeys)(additionalKeys);
89
91
  return /*#__PURE__*/_react["default"].createElement(_keypad["default"], {
90
92
  className: className,
93
+ controlledKeypadMode: controlledKeypadMode,
91
94
  onFocus: onFocus,
92
95
  noDecimal: noDecimal,
93
96
  layoutForKeyPad: layoutForKeyPad,
94
97
  additionalKeys: (0, _utils.extendKeySet)((0, _grades.keysForGrade)(mode), normalizedKeys),
95
98
  onPress: this.keypadPress,
96
- mode: mode
99
+ mode: mode,
100
+ setKeypadInteraction: setKeypadInteraction
97
101
  });
98
102
  }
99
103
  }]);
@@ -103,12 +107,14 @@ var HorizontalKeypad = /*#__PURE__*/function (_React$Component) {
103
107
  exports["default"] = HorizontalKeypad;
104
108
  (0, _defineProperty2["default"])(HorizontalKeypad, "propTypes", {
105
109
  className: _propTypes["default"].string,
110
+ controlledKeypadMode: _propTypes["default"].bool,
106
111
  mode: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
107
112
  layoutForKeyPad: _propTypes["default"].object,
108
113
  onClick: _propTypes["default"].func.isRequired,
109
114
  onFocus: _propTypes["default"].func,
110
115
  noDecimal: _propTypes["default"].bool,
111
- additionalKeys: _propTypes["default"].array
116
+ additionalKeys: _propTypes["default"].array,
117
+ setKeypadInteraction: _propTypes["default"].func
112
118
  });
113
119
  (0, _defineProperty2["default"])(HorizontalKeypad, "defaultProps", {
114
120
  mode: 'scientific',
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/horizontal-keypad.jsx"],"names":["toOldModel","d","command","value","type","write","keystroke","HorizontalKeypad","data","onClick","props","mode","onFocus","noDecimal","className","additionalKeys","layoutForKeyPad","normalizedKeys","keypadPress","React","Component","PropTypes","string","oneOfType","number","object","func","isRequired","bool","array"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,CAAD,EAAO;AACxB,MAAIA,CAAC,CAACC,OAAN,EAAe;AACb,WAAO;AAAEC,MAAAA,KAAK,EAAEF,CAAC,CAACC,OAAX;AAAoBE,MAAAA,IAAI,EAAE;AAA1B,KAAP;AACD,GAFD,MAEO,IAAIH,CAAC,CAACI,KAAN,EAAa;AAClB,WAAO;AAAEF,MAAAA,KAAK,EAAEF,CAAC,CAACI;AAAX,KAAP;AACD,GAFM,MAEA,IAAIJ,CAAC,CAACK,SAAN,EAAiB;AACtB,WAAO;AAAEF,MAAAA,IAAI,EAAE,QAAR;AAAkBD,MAAAA,KAAK,EAAEF,CAAC,CAACK;AAA3B,KAAP;AACD;AACF,CARD;;IAUqBC,gB;;;;;;;;;;;;;;;oGAiBL,UAACC,IAAD,EAAU;AACtB,UAAQC,OAAR,GAAoB,MAAKC,KAAzB,CAAQD,OAAR;AAEAA,MAAAA,OAAO,CAACT,UAAU,CAACQ,IAAD,CAAX,CAAP;AACD,K;;;;;;WAED,kBAAS;AACP,wBAAiF,KAAKE,KAAtF;AAAA,UAAQC,IAAR,eAAQA,IAAR;AAAA,UAAcC,OAAd,eAAcA,OAAd;AAAA,UAAuBC,SAAvB,eAAuBA,SAAvB;AAAA,UAAkCC,SAAlC,eAAkCA,SAAlC;AAAA,UAA6CC,cAA7C,eAA6CA,cAA7C;AAAA,UAA6DC,eAA7D,eAA6DA,eAA7D;AACA,UAAMC,cAAc,GAAG,qCAAwBF,cAAxB,CAAvB;AAEA,0BACE,gCAAC,kBAAD;AACE,QAAA,SAAS,EAAED,SADb;AAEE,QAAA,OAAO,EAAEF,OAFX;AAGE,QAAA,SAAS,EAAEC,SAHb;AAIE,QAAA,eAAe,EAAEG,eAJnB;AAKE,QAAA,cAAc,EAAE,yBAAa,0BAAaL,IAAb,CAAb,EAAiCM,cAAjC,CALlB;AAME,QAAA,OAAO,EAAE,KAAKC,WANhB;AAOE,QAAA,IAAI,EAAEP;AAPR,QADF;AAWD;;;EAtC2CQ,kBAAMC,S;;;iCAA/Bb,gB,eACA;AACjBO,EAAAA,SAAS,EAAEO,sBAAUC,MADJ;AAEjBX,EAAAA,IAAI,EAAEU,sBAAUE,SAAV,CAAoB,CAACF,sBAAUC,MAAX,EAAmBD,sBAAUG,MAA7B,CAApB,CAFW;AAGjBR,EAAAA,eAAe,EAAEK,sBAAUI,MAHV;AAIjBhB,EAAAA,OAAO,EAAEY,sBAAUK,IAAV,CAAeC,UAJP;AAKjBf,EAAAA,OAAO,EAAES,sBAAUK,IALF;AAMjBb,EAAAA,SAAS,EAAEQ,sBAAUO,IANJ;AAOjBb,EAAAA,cAAc,EAAEM,sBAAUQ;AAPT,C;iCADAtB,gB,kBAWG;AACpBI,EAAAA,IAAI,EAAE,YADc;AAEpBE,EAAAA,SAAS,EAAE,KAFS;AAGpBE,EAAAA,cAAc,EAAE;AAHI,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { keysForGrade, normalizeAdditionalKeys } from './keys/grades';\nimport { extendKeySet } from './keys/utils';\nimport Keypad from './keypad';\n\nconst toOldModel = (d) => {\n if (d.command) {\n return { value: d.command, type: 'command' };\n } else if (d.write) {\n return { value: d.write };\n } else if (d.keystroke) {\n return { type: 'cursor', value: d.keystroke };\n }\n};\n\nexport default class HorizontalKeypad extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n mode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n layoutForKeyPad: PropTypes.object,\n onClick: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n noDecimal: PropTypes.bool,\n additionalKeys: PropTypes.array,\n };\n\n static defaultProps = {\n mode: 'scientific',\n noDecimal: false,\n additionalKeys: [],\n };\n\n keypadPress = (data) => {\n const { onClick } = this.props;\n\n onClick(toOldModel(data));\n };\n\n render() {\n const { mode, onFocus, noDecimal, className, additionalKeys, layoutForKeyPad } = this.props;\n const normalizedKeys = normalizeAdditionalKeys(additionalKeys);\n\n return (\n <Keypad\n className={className}\n onFocus={onFocus}\n noDecimal={noDecimal}\n layoutForKeyPad={layoutForKeyPad}\n additionalKeys={extendKeySet(keysForGrade(mode), normalizedKeys)}\n onPress={this.keypadPress}\n mode={mode}\n />\n );\n }\n}\n"],"file":"horizontal-keypad.js"}
1
+ {"version":3,"sources":["../src/horizontal-keypad.jsx"],"names":["toOldModel","d","command","value","type","write","keystroke","HorizontalKeypad","data","onClick","props","mode","onFocus","controlledKeypadMode","noDecimal","className","additionalKeys","layoutForKeyPad","setKeypadInteraction","normalizedKeys","keypadPress","React","Component","PropTypes","string","bool","oneOfType","number","object","func","isRequired","array"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,CAAD,EAAO;AACxB,MAAIA,CAAC,CAACC,OAAN,EAAe;AACb,WAAO;AAAEC,MAAAA,KAAK,EAAEF,CAAC,CAACC,OAAX;AAAoBE,MAAAA,IAAI,EAAE;AAA1B,KAAP;AACD,GAFD,MAEO,IAAIH,CAAC,CAACI,KAAN,EAAa;AAClB,WAAO;AAAEF,MAAAA,KAAK,EAAEF,CAAC,CAACI;AAAX,KAAP;AACD,GAFM,MAEA,IAAIJ,CAAC,CAACK,SAAN,EAAiB;AACtB,WAAO;AAAEF,MAAAA,IAAI,EAAE,QAAR;AAAkBD,MAAAA,KAAK,EAAEF,CAAC,CAACK;AAA3B,KAAP;AACD;AACF,CARD;;IAUqBC,gB;;;;;;;;;;;;;;;oGAmBL,UAACC,IAAD,EAAU;AACtB,UAAQC,OAAR,GAAoB,MAAKC,KAAzB,CAAQD,OAAR;AAEAA,MAAAA,OAAO,CAACT,UAAU,CAACQ,IAAD,CAAX,CAAP;AACD,K;;;;;;WAED,kBAAS;AACP,wBASI,KAAKE,KATT;AAAA,UACEC,IADF,eACEA,IADF;AAAA,UAEEC,OAFF,eAEEA,OAFF;AAAA,UAGEC,oBAHF,eAGEA,oBAHF;AAAA,UAIEC,SAJF,eAIEA,SAJF;AAAA,UAKEC,SALF,eAKEA,SALF;AAAA,UAMEC,cANF,eAMEA,cANF;AAAA,UAOEC,eAPF,eAOEA,eAPF;AAAA,UAQEC,oBARF,eAQEA,oBARF;AAUA,UAAMC,cAAc,GAAG,qCAAwBH,cAAxB,CAAvB;AAEA,0BACE,gCAAC,kBAAD;AACE,QAAA,SAAS,EAAED,SADb;AAEE,QAAA,oBAAoB,EAAEF,oBAFxB;AAGE,QAAA,OAAO,EAAED,OAHX;AAIE,QAAA,SAAS,EAAEE,SAJb;AAKE,QAAA,eAAe,EAAEG,eALnB;AAME,QAAA,cAAc,EAAE,yBAAa,0BAAaN,IAAb,CAAb,EAAiCQ,cAAjC,CANlB;AAOE,QAAA,OAAO,EAAE,KAAKC,WAPhB;AAQE,QAAA,IAAI,EAAET,IARR;AASE,QAAA,oBAAoB,EAAEO;AATxB,QADF;AAaD;;;EAnD2CG,kBAAMC,S;;;iCAA/Bf,gB,eACA;AACjBQ,EAAAA,SAAS,EAAEQ,sBAAUC,MADJ;AAEjBX,EAAAA,oBAAoB,EAAEU,sBAAUE,IAFf;AAGjBd,EAAAA,IAAI,EAAEY,sBAAUG,SAAV,CAAoB,CAACH,sBAAUC,MAAX,EAAmBD,sBAAUI,MAA7B,CAApB,CAHW;AAIjBV,EAAAA,eAAe,EAAEM,sBAAUK,MAJV;AAKjBnB,EAAAA,OAAO,EAAEc,sBAAUM,IAAV,CAAeC,UALP;AAMjBlB,EAAAA,OAAO,EAAEW,sBAAUM,IANF;AAOjBf,EAAAA,SAAS,EAAES,sBAAUE,IAPJ;AAQjBT,EAAAA,cAAc,EAAEO,sBAAUQ,KART;AASjBb,EAAAA,oBAAoB,EAAEK,sBAAUM;AATf,C;iCADAtB,gB,kBAaG;AACpBI,EAAAA,IAAI,EAAE,YADc;AAEpBG,EAAAA,SAAS,EAAE,KAFS;AAGpBE,EAAAA,cAAc,EAAE;AAHI,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { keysForGrade, normalizeAdditionalKeys } from './keys/grades';\nimport { extendKeySet } from './keys/utils';\nimport Keypad from './keypad';\n\nconst toOldModel = (d) => {\n if (d.command) {\n return { value: d.command, type: 'command' };\n } else if (d.write) {\n return { value: d.write };\n } else if (d.keystroke) {\n return { type: 'cursor', value: d.keystroke };\n }\n};\n\nexport default class HorizontalKeypad extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n controlledKeypadMode: PropTypes.bool,\n mode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n layoutForKeyPad: PropTypes.object,\n onClick: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n noDecimal: PropTypes.bool,\n additionalKeys: PropTypes.array,\n setKeypadInteraction: PropTypes.func,\n };\n\n static defaultProps = {\n mode: 'scientific',\n noDecimal: false,\n additionalKeys: [],\n };\n\n keypadPress = (data) => {\n const { onClick } = this.props;\n\n onClick(toOldModel(data));\n };\n\n render() {\n const {\n mode,\n onFocus,\n controlledKeypadMode,\n noDecimal,\n className,\n additionalKeys,\n layoutForKeyPad,\n setKeypadInteraction,\n } = this.props;\n const normalizedKeys = normalizeAdditionalKeys(additionalKeys);\n\n return (\n <Keypad\n className={className}\n controlledKeypadMode={controlledKeypadMode}\n onFocus={onFocus}\n noDecimal={noDecimal}\n layoutForKeyPad={layoutForKeyPad}\n additionalKeys={extendKeySet(keysForGrade(mode), normalizedKeys)}\n onPress={this.keypadPress}\n mode={mode}\n setKeypadInteraction={setKeypadInteraction}\n />\n );\n }\n}\n"],"file":"horizontal-keypad.js"}