@pie-element/math-inline 5.6.3 → 5.6.4-next.1016
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/CHANGELOG.md +203 -0
- package/configure/CHANGELOG.md +177 -0
- package/configure/lib/configure.js +44 -9
- package/configure/lib/configure.js.map +1 -1
- package/configure/lib/defaults.js +32 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/general-config-block.js +109 -23
- package/configure/lib/general-config-block.js.map +1 -1
- package/configure/lib/index.js +17 -3
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/response.js +89 -36
- package/configure/lib/response.js.map +1 -1
- package/configure/lib/utils.js +18 -1
- package/configure/lib/utils.js.map +1 -1
- package/configure/package.json +5 -6
- package/controller/CHANGELOG.md +101 -0
- package/controller/lib/defaults.js +2 -1
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +148 -131
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +2 -2
- package/docs/config-schema.json +147 -0
- package/docs/config-schema.json.md +116 -1
- package/docs/demo/generate.js +6 -3
- package/docs/pie-schema.json +122 -3
- package/docs/pie-schema.json.md +103 -3
- package/lib/index.js +7 -4
- package/lib/index.js.map +1 -1
- package/lib/main.js +230 -55
- package/lib/main.js.map +1 -1
- package/lib/print.js +133 -0
- package/lib/print.js.map +1 -0
- package/lib/simple-question-block.js +50 -38
- package/lib/simple-question-block.js.map +1 -1
- package/package.json +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,209 @@
|
|
|
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
|
+
## [5.9.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.9.5...@pie-element/math-inline@5.9.6) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [5.9.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.9.4...@pie-element/math-inline@5.9.5) (2022-03-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [5.9.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.9.3...@pie-element/math-inline@5.9.4) (2022-03-08)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [5.9.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.9.2...@pie-element/math-inline@5.9.3) (2022-03-08)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [5.9.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.9.1...@pie-element/math-inline@5.9.2) (2022-02-21)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [5.9.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.9.0...@pie-element/math-inline@5.9.1) (2022-02-04)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# [5.9.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.12...@pie-element/math-inline@5.9.0) (2022-01-24)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* **math-inline, extended-text-entry:** use new editors ([2123b8a](https://github.com/pie-framework/pie-elements/commit/2123b8a6d930852a629140053a8459dbc75f281f))
|
|
60
|
+
* use preview prompt for prompt, rationale and teacher instructions to fix table rendering PD-1456 ([f330601](https://github.com/pie-framework/pie-elements/commit/f3306019a2d1c8ce3e2783823dfe9ef0a0394e4f))
|
|
61
|
+
* **math-inline:** default editors to grade 8-HS PD-1385 ([54dc77a](https://github.com/pie-framework/pie-elements/commit/54dc77afbbb8c9e3413cb1cb303d5defd72f32d2))
|
|
62
|
+
* **math-inline:** do not hide math editor when focus is still on response template ([ef07786](https://github.com/pie-framework/pie-elements/commit/ef07786306c1d287b648000b0a2a0223cec3760c))
|
|
63
|
+
* **math-inline:** Evaluate should not highlight answers when no correct response is defined + refactoring PD-994 ([58bfe7c](https://github.com/pie-framework/pie-elements/commit/58bfe7c209da39a31b20d2d905d14b5697aa5375))
|
|
64
|
+
* **math-inline:** fix gather in pits PD-1417 ([c3204da](https://github.com/pie-framework/pie-elements/commit/c3204da09402c9ec33bb266e80d8489d4b433a5c))
|
|
65
|
+
* **math-inline:** fix gather not working unless show correct answer is first turned off PD-1417 ([11f8c7f](https://github.com/pie-framework/pie-elements/commit/11f8c7f0117b2ea563da002ce28eb961aec4e8c8))
|
|
66
|
+
* **math-inline:** Fixed left-right arrow ([e891113](https://github.com/pie-framework/pie-elements/commit/e89111398ee4747541809b0ffa84715fa8cc7620))
|
|
67
|
+
* **math-inline:** Fixed parallelogram for pits ([a5ead4f](https://github.com/pie-framework/pie-elements/commit/a5ead4f5fd0fc949223bb92cb2f61caf7223d06c))
|
|
68
|
+
* **math-inline:** Initialized correctResponse in evaluate mode ([27161c1](https://github.com/pie-framework/pie-elements/commit/27161c154c2dcc7bfd2a3cb3d7f8ec158f23beb8))
|
|
69
|
+
* **math-inline:** make response area button to fit in response template area ([efaa45d](https://github.com/pie-framework/pie-elements/commit/efaa45d2dc936c8d3dec6158e1e2e22392025e31))
|
|
70
|
+
* **math-inline:** override response area block style for PRB - PD-1300 ([ba1a038](https://github.com/pie-framework/pie-elements/commit/ba1a038066b7d9d41ef244da0327f8ea8f4f0c28))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Features
|
|
74
|
+
|
|
75
|
+
* **math-inline:** display rationale and teacher instructions link in instructor view mode PD-1380 ([8e75f89](https://github.com/pie-framework/pie-elements/commit/8e75f89fb3296c1b76f520da2c193dcfc9daa031))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## [5.8.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.11...@pie-element/math-inline@5.8.12) (2022-01-10)
|
|
82
|
+
|
|
83
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## [5.8.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.10...@pie-element/math-inline@5.8.11) (2021-12-23)
|
|
90
|
+
|
|
91
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## [5.8.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.8...@pie-element/math-inline@5.8.9) (2021-12-13)
|
|
98
|
+
|
|
99
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
## [5.8.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.5...@pie-element/math-inline@5.8.6) (2021-11-29)
|
|
106
|
+
|
|
107
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## [5.8.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.4...@pie-element/math-inline@5.8.5) (2021-11-11)
|
|
114
|
+
|
|
115
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## [5.8.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.3...@pie-element/math-inline@5.8.4) (2021-11-01)
|
|
122
|
+
|
|
123
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## [5.8.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.2...@pie-element/math-inline@5.8.3) (2021-10-18)
|
|
130
|
+
|
|
131
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## [5.8.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.1...@pie-element/math-inline@5.8.2) (2021-10-04)
|
|
138
|
+
|
|
139
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## [5.8.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.8.0...@pie-element/math-inline@5.8.1) (2021-09-21)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### Bug Fixes
|
|
149
|
+
|
|
150
|
+
* Merge with develop and pull missing files. ([5fe2864](https://github.com/pie-framework/pie-elements/commit/5fe2864d0b92669ae936ba5de956354df4a6a741))
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# [5.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.7.1...@pie-element/math-inline@5.8.0) (2021-09-20)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Bug Fixes
|
|
160
|
+
|
|
161
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
162
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
163
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
164
|
+
* **math-inline:** Added a min width for line notation PD-1263 ([96db654](https://github.com/pie-framework/pie-elements/commit/96db6541cb95ce895be7d84a4763697880e35adf))
|
|
165
|
+
* **math-inline:** fix based log button PD-1281 ([215812e](https://github.com/pie-framework/pie-elements/commit/215812ea7965a659631215a670b71164ff1effc1))
|
|
166
|
+
* **math-inline:** fix parallelogram symbol for pits ([a90e363](https://github.com/pie-framework/pie-elements/commit/a90e36326fe55cd986f833c2ddaacdb84fdff9ad))
|
|
167
|
+
* **math-inline:** Fixed arrows for pits ([72815e6](https://github.com/pie-framework/pie-elements/commit/72815e6beac69628b9ea3be249a661d9924329c6))
|
|
168
|
+
* **math-inline:** Made segment, ray and line more consistent PD-1264 ([670fef9](https://github.com/pie-framework/pie-elements/commit/670fef9d29a634497dbb3b05928c7dd2d8fc2164))
|
|
169
|
+
* **math-inline:** Removed the margin top of the response area PD-1274 ([48d3f84](https://github.com/pie-framework/pie-elements/commit/48d3f8430027dec409c9abb79d3b436866271308))
|
|
170
|
+
* **math-inline:** render parallel sign with bigger font-size PD-1258 ([1756f7e](https://github.com/pie-framework/pie-elements/commit/1756f7e3f8e75e28b5c4420703dc428cee8776bc))
|
|
171
|
+
* **math-inline:** show add alternate button for both literal and symbolic validation PD-333 ([0cf44c8](https://github.com/pie-framework/pie-elements/commit/0cf44c8bae938eae9d4cf92b341f1cb3085cffd2))
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Features
|
|
175
|
+
|
|
176
|
+
* **math-inline:** override style for long division symbol PD-888 ([1e190da](https://github.com/pie-framework/pie-elements/commit/1e190dac51c9cbadf5b9391d330a5923fcf7b6ab))
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
## [5.7.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.7.0...@pie-element/math-inline@5.7.1) (2021-09-01)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
# [5.7.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.6.3...@pie-element/math-inline@5.7.0) (2021-08-05)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### Bug Fixes
|
|
194
|
+
|
|
195
|
+
* **CTT-174:** add safari tooltip fix ([1541bc0](https://github.com/pie-framework/pie-elements/commit/1541bc04c21ca8d89c43e5edf918368320cee9ce))
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### Features
|
|
199
|
+
|
|
200
|
+
* **math-inline:** added option to set toolbar editor position ([01282e4](https://github.com/pie-framework/pie-elements/commit/01282e4a07d200f7b81c684a11b51aa1f226ddeb))
|
|
201
|
+
* **math-inline:** Displayed a message when the item has additional correct responses PD-198 - BREAKING CHANGE: Added note property to the model ([7fce264](https://github.com/pie-framework/pie-elements/commit/7fce2649a9c8ddae2eb6643e5d5e9d307233a23b))
|
|
202
|
+
* **math-inline:** set toolbar editor position to bottom ([0b70554](https://github.com/pie-framework/pie-elements/commit/0b705548f3f1a41b9af0467ee16e39499fd8caee))
|
|
203
|
+
* **math-inline:** toolbar editor position - change double quotes into single quotes ([9a1edfa](https://github.com/pie-framework/pie-elements/commit/9a1edfa965187230b70c915075ab23d33738ea15))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
6
209
|
## [5.6.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@5.6.1...@pie-element/math-inline@5.6.3) (2021-08-05)
|
|
7
210
|
|
|
8
211
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,183 @@
|
|
|
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
|
+
## [5.6.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.14...@pie-element/math-inline-configure@5.6.15) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [5.6.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.13...@pie-element/math-inline-configure@5.6.14) (2022-03-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [5.6.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.12...@pie-element/math-inline-configure@5.6.13) (2022-03-08)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [5.6.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.11...@pie-element/math-inline-configure@5.6.12) (2022-03-08)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [5.6.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.10...@pie-element/math-inline-configure@5.6.11) (2022-02-21)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [5.6.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.9...@pie-element/math-inline-configure@5.6.10) (2022-02-04)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [5.6.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.8...@pie-element/math-inline-configure@5.6.9) (2022-01-24)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* **math-inline:** default editors to grade 8-HS PD-1385 ([54dc77a](https://github.com/pie-framework/pie-elements/commit/54dc77afbbb8c9e3413cb1cb303d5defd72f32d2))
|
|
60
|
+
* **math-inline:** do not hide math editor when focus is still on response template ([ef07786](https://github.com/pie-framework/pie-elements/commit/ef07786306c1d287b648000b0a2a0223cec3760c))
|
|
61
|
+
* **math-inline:** make response area button to fit in response template area ([efaa45d](https://github.com/pie-framework/pie-elements/commit/efaa45d2dc936c8d3dec6158e1e2e22392025e31))
|
|
62
|
+
* **math-inline, extended-text-entry:** use new editors ([2123b8a](https://github.com/pie-framework/pie-elements/commit/2123b8a6d930852a629140053a8459dbc75f281f))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## [5.6.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.7...@pie-element/math-inline-configure@5.6.8) (2022-01-10)
|
|
69
|
+
|
|
70
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## [5.6.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.6...@pie-element/math-inline-configure@5.6.7) (2021-12-23)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## [5.6.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.4...@pie-element/math-inline-configure@5.6.5) (2021-12-13)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## [5.6.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.1...@pie-element/math-inline-configure@5.6.2) (2021-11-29)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## [5.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.4...@pie-element/math-inline-configure@5.6.1) (2021-11-11)
|
|
101
|
+
|
|
102
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# [5.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.4.3...@pie-element/math-inline-configure@5.6.0) (2021-11-11)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Bug Fixes
|
|
112
|
+
|
|
113
|
+
* **math-inline:** do not hide math editor when focus is still on response template ([ef07786](https://github.com/pie-framework/pie-elements/commit/ef07786306c1d287b648000b0a2a0223cec3760c))
|
|
114
|
+
* **math-inline:** make response area button to fit in response template area ([efaa45d](https://github.com/pie-framework/pie-elements/commit/efaa45d2dc936c8d3dec6158e1e2e22392025e31))
|
|
115
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
116
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
117
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
118
|
+
* **math-inline:** show add alternate button for both literal and symbolic validation PD-333 ([0cf44c8](https://github.com/pie-framework/pie-elements/commit/0cf44c8bae938eae9d4cf92b341f1cb3085cffd2))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Features
|
|
122
|
+
|
|
123
|
+
* **math-inline:** added option to set toolbar editor position ([01282e4](https://github.com/pie-framework/pie-elements/commit/01282e4a07d200f7b81c684a11b51aa1f226ddeb))
|
|
124
|
+
* **math-inline:** Displayed a message when the item has additional correct responses PD-198 - BREAKING CHANGE: Added note property to the model ([7fce264](https://github.com/pie-framework/pie-elements/commit/7fce2649a9c8ddae2eb6643e5d5e9d307233a23b))
|
|
125
|
+
* **math-inline:** toolbar editor position - change double quotes into single quotes ([9a1edfa](https://github.com/pie-framework/pie-elements/commit/9a1edfa965187230b70c915075ab23d33738ea15))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
## [5.5.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.3...@pie-element/math-inline-configure@5.5.4) (2021-10-18)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
## [5.5.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.2...@pie-element/math-inline-configure@5.5.3) (2021-10-04)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## [5.5.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.1...@pie-element/math-inline-configure@5.5.2) (2021-09-20)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
154
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
155
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
156
|
+
* **math-inline:** show add alternate button for both literal and symbolic validation PD-333 ([0cf44c8](https://github.com/pie-framework/pie-elements/commit/0cf44c8bae938eae9d4cf92b341f1cb3085cffd2))
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## [5.5.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.5.0...@pie-element/math-inline-configure@5.5.1) (2021-09-01)
|
|
163
|
+
|
|
164
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
# [5.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.4.3...@pie-element/math-inline-configure@5.5.0) (2021-08-05)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### Features
|
|
174
|
+
|
|
175
|
+
* **math-inline:** added option to set toolbar editor position ([01282e4](https://github.com/pie-framework/pie-elements/commit/01282e4a07d200f7b81c684a11b51aa1f226ddeb))
|
|
176
|
+
* **math-inline:** Displayed a message when the item has additional correct responses PD-198 - BREAKING CHANGE: Added note property to the model ([7fce264](https://github.com/pie-framework/pie-elements/commit/7fce2649a9c8ddae2eb6643e5d5e9d307233a23b))
|
|
177
|
+
* **math-inline:** toolbar editor position - change double quotes into single quotes ([9a1edfa](https://github.com/pie-framework/pie-elements/commit/9a1edfa965187230b70c915075ab23d33738ea15))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
6
183
|
## [5.4.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.4.1...@pie-element/math-inline-configure@5.4.3) (2021-08-05)
|
|
7
184
|
|
|
8
185
|
|
|
@@ -37,13 +37,13 @@ var _generalConfigBlock = _interopRequireDefault(require("./general-config-block
|
|
|
37
37
|
|
|
38
38
|
var _utils = require("./utils");
|
|
39
39
|
|
|
40
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
40
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
41
41
|
|
|
42
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
42
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
43
43
|
|
|
44
44
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
45
45
|
|
|
46
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
46
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
47
|
|
|
48
48
|
var log = (0, _debug["default"])('@pie-element:math-inline:configure');
|
|
49
49
|
var Panel = _configUi.settings.Panel,
|
|
@@ -130,7 +130,17 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
130
130
|
_ref$prompt = _ref.prompt,
|
|
131
131
|
prompt = _ref$prompt === void 0 ? {} : _ref$prompt,
|
|
132
132
|
_ref$scoringType = _ref.scoringType,
|
|
133
|
-
scoringType = _ref$scoringType === void 0 ? {} : _ref$scoringType
|
|
133
|
+
scoringType = _ref$scoringType === void 0 ? {} : _ref$scoringType,
|
|
134
|
+
_ref$ignoreOrder = _ref.ignoreOrder,
|
|
135
|
+
ignoreOrder = _ref$ignoreOrder === void 0 ? {} : _ref$ignoreOrder,
|
|
136
|
+
_ref$allowTrailingZer = _ref.allowTrailingZeros,
|
|
137
|
+
allowTrailingZeros = _ref$allowTrailingZer === void 0 ? {} : _ref$allowTrailingZer,
|
|
138
|
+
_ref$spellCheck = _ref.spellCheck,
|
|
139
|
+
spellCheck = _ref$spellCheck === void 0 ? {} : _ref$spellCheck,
|
|
140
|
+
_ref$maxImageWidth = _ref.maxImageWidth,
|
|
141
|
+
maxImageWidth = _ref$maxImageWidth === void 0 ? {} : _ref$maxImageWidth,
|
|
142
|
+
_ref$maxImageHeight = _ref.maxImageHeight,
|
|
143
|
+
maxImageHeight = _ref$maxImageHeight === void 0 ? {} : _ref$maxImageHeight;
|
|
134
144
|
|
|
135
145
|
log('[render] model', model);
|
|
136
146
|
|
|
@@ -138,8 +148,23 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
138
148
|
rationaleEnabled = _ref2.rationaleEnabled,
|
|
139
149
|
promptEnabled = _ref2.promptEnabled,
|
|
140
150
|
teacherInstructionsEnabled = _ref2.teacherInstructionsEnabled,
|
|
141
|
-
feedbackEnabled = _ref2.feedbackEnabled
|
|
151
|
+
feedbackEnabled = _ref2.feedbackEnabled,
|
|
152
|
+
spellCheckEnabled = _ref2.spellCheckEnabled;
|
|
142
153
|
|
|
154
|
+
var toolbarOpts = {};
|
|
155
|
+
|
|
156
|
+
switch (model.toolbarEditorPosition) {
|
|
157
|
+
case 'top':
|
|
158
|
+
toolbarOpts.position = 'top';
|
|
159
|
+
break;
|
|
160
|
+
|
|
161
|
+
default:
|
|
162
|
+
toolbarOpts.position = 'bottom';
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
var defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
|
|
167
|
+
var defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
|
|
143
168
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
144
169
|
settings: /*#__PURE__*/_react["default"].createElement(Panel, {
|
|
145
170
|
model: model,
|
|
@@ -160,7 +185,10 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
160
185
|
teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
|
|
161
186
|
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
162
187
|
rationaleEnabled: rationale.settings && toggle(rationale.label),
|
|
163
|
-
|
|
188
|
+
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
189
|
+
scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),
|
|
190
|
+
'ignoreOrder.enabled': ignoreOrder.settings && toggle(ignoreOrder.label),
|
|
191
|
+
'allowTrailingZeros.enabled': allowTrailingZeros.settings && toggle(allowTrailingZeros.label)
|
|
164
192
|
}
|
|
165
193
|
}
|
|
166
194
|
})
|
|
@@ -174,17 +202,24 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
174
202
|
markup: model.teacherInstructions || '',
|
|
175
203
|
onChange: this.changeTeacherInstructions,
|
|
176
204
|
imageSupport: imageSupport,
|
|
177
|
-
nonEmpty: false
|
|
205
|
+
nonEmpty: false,
|
|
206
|
+
toolbarOpts: toolbarOpts,
|
|
207
|
+
spellCheck: spellCheckEnabled,
|
|
208
|
+
maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
|
|
209
|
+
maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight
|
|
178
210
|
})), /*#__PURE__*/_react["default"].createElement(_generalConfigBlock["default"], {
|
|
179
211
|
imageSupport: imageSupport,
|
|
180
212
|
model: model,
|
|
181
213
|
configuration: configuration,
|
|
182
214
|
onChange: this.onChange,
|
|
183
215
|
rationaleEnabled: rationaleEnabled,
|
|
184
|
-
promptEnabled: promptEnabled
|
|
216
|
+
promptEnabled: promptEnabled,
|
|
217
|
+
toolbarOpts: toolbarOpts,
|
|
218
|
+
spellCheck: spellCheckEnabled
|
|
185
219
|
}), feedbackEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.FeedbackConfig, {
|
|
186
220
|
feedback: model.feedback,
|
|
187
|
-
onChange: this.onFeedbackChange
|
|
221
|
+
onChange: this.onFeedbackChange,
|
|
222
|
+
toolbarOpts: toolbarOpts
|
|
188
223
|
})))));
|
|
189
224
|
}
|
|
190
225
|
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/configure.jsx"],"names":["log","Panel","settings","toggle","radio","styles","theme","title","fontSize","display","marginTop","spacing","unit","marginBottom","content","promptHolder","width","paddingTop","prompt","Configure","model","props","onModelChanged","teacherInstructions","feedback","classes","imageSupport","configuration","onConfigurationChanged","responseType","studentInstructions","rationale","scoringType","rationaleEnabled","promptEnabled","teacherInstructionsEnabled","feedbackEnabled","config","label","ResponseTypes","simple","advanced","studentInstructionsEnabled","changeTeacherInstructions","onChange","onFeedbackChange","React","Component","PropTypes","func","object","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAMA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,oCAAN,CAAZ;IACQC,K,GAAyBC,kB,CAAzBD,K;IAAOE,M,GAAkBD,kB,CAAlBC,M;IAAQC,K,GAAUF,kB,CAAVE,K;;AAEvB,IAAMC,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBC,IAAAA,KAAK,EAAE;AACLC,MAAAA,QAAQ,EAAE,QADL;AAELC,MAAAA,OAAO,EAAE,OAFJ;AAGLC,MAAAA,SAAS,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAH3B;AAILC,MAAAA,YAAY,EAAEP,KAAK,CAACK,OAAN,CAAcC;AAJvB,KADgB;AAOvBE,IAAAA,OAAO,EAAE;AACPJ,MAAAA,SAAS,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AADzB,KAPc;AAUvBG,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEX,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAFrB,KAVS;AAcvBM,IAAAA,MAAM,EAAE;AACND,MAAAA,UAAU,EAAEX,KAAK,CAACK,OAAN,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AAiBC,UALf;AAMjBzB,EAAAA,YAAY,EAAEsB,sBAAUE;AANP,C;;eA6GN,wBAAW7C,MAAX,EAAmBc,SAAnB,C","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport {\n FeedbackConfig,\n settings,\n layout,\n InputContainer,\n} from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport debug from 'debug';\nimport EditableHtml from '@pie-lib/editable-html';\nimport GeneralConfigBlock from './general-config-block';\nimport { ResponseTypes } from './utils';\n\nconst log = debug('@pie-element:math-inline:configure');\nconst { Panel, toggle, radio } = settings;\n\nconst styles = theme => ({\n title: {\n fontSize: '1.1rem',\n display: 'block',\n marginTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit\n },\n content: {\n marginTop: theme.spacing.unit * 2\n },\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2\n },\n prompt: {\n paddingTop: theme.spacing.unit * 2,\n width: '100%'\n },\n});\n\nexport class Configure extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n classes: PropTypes.object,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n imageSupport: PropTypes.object\n };\n\n onChange = model => {\n this.props.onModelChanged(model);\n };\n\n changeTeacherInstructions = teacherInstructions => {\n this.props.onModelChanged({\n ...this.props.model,\n teacherInstructions\n });\n };\n\n onFeedbackChange = feedback => {\n const { model, onModelChanged } = this.props;\n model.feedback = feedback;\n onModelChanged(model);\n };\n\n render() {\n const { classes, model, imageSupport, onModelChanged, configuration, onConfigurationChanged } = this.props;\n const {\n feedback = {},\n responseType = {},\n teacherInstructions = {},\n studentInstructions = {},\n rationale = {},\n prompt = {},\n scoringType = {}\n } = configuration || {};\n log('[render] model', model);\n const { rationaleEnabled, promptEnabled, teacherInstructionsEnabled, feedbackEnabled } = model || {};\n\n return (\n <div>\n <layout.ConfigLayout\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={model => onModelChanged(model)}\n onChangeConfiguration={config => onConfigurationChanged(config)}\n groups={{\n 'Settings': {\n responseType: responseType.settings &&\n radio(responseType.label, [ResponseTypes.simple, ResponseTypes.advanced]),\n feedbackEnabled: feedback.settings &&\n toggle(feedback.label),\n 'promptEnabled': prompt.settings &&\n toggle(prompt.label)\n },\n 'Properties': {\n teacherInstructionsEnabled: teacherInstructions.settings &&\n toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings &&\n toggle(studentInstructions.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n scoringType: scoringType.settings &&\n radio(scoringType.label, ['auto', 'rubric']),\n },\n }}\n />\n }\n >\n <div>\n <div className={classes.content}>\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.changeTeacherInstructions}\n imageSupport={imageSupport}\n nonEmpty={false}\n />\n </InputContainer>\n )}\n\n <GeneralConfigBlock\n imageSupport={imageSupport}\n model={model}\n configuration={configuration}\n onChange={this.onChange}\n rationaleEnabled={rationaleEnabled}\n promptEnabled={promptEnabled}\n />\n {\n feedbackEnabled && (\n <FeedbackConfig\n feedback={model.feedback}\n onChange={this.onFeedbackChange}\n />\n )\n }\n </div>\n </div>\n </layout.ConfigLayout>\n </div>\n );\n }\n}\n\nexport default withStyles(styles)(Configure);\n"],"file":"configure.js"}
|
|
1
|
+
{"version":3,"sources":["../src/configure.jsx"],"names":["log","Panel","settings","toggle","radio","styles","theme","title","fontSize","display","marginTop","spacing","unit","marginBottom","content","promptHolder","width","paddingTop","prompt","Configure","model","props","onModelChanged","teacherInstructions","feedback","classes","imageSupport","configuration","onConfigurationChanged","responseType","studentInstructions","rationale","scoringType","ignoreOrder","allowTrailingZeros","spellCheck","maxImageWidth","maxImageHeight","rationaleEnabled","promptEnabled","teacherInstructionsEnabled","feedbackEnabled","spellCheckEnabled","toolbarOpts","toolbarEditorPosition","position","defaultImageMaxWidth","defaultImageMaxHeight","config","label","ResponseTypes","simple","advanced","studentInstructionsEnabled","changeTeacherInstructions","onChange","onFeedbackChange","React","Component","PropTypes","func","object","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAMA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,oCAAN,CAAZ;AACA,IAAQC,KAAR,GAAiCC,kBAAjC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAiCD,kBAAjC,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAAiCF,kBAAjC,CAAuBE,KAAvB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBC,IAAAA,KAAK,EAAE;AACLC,MAAAA,QAAQ,EAAE,QADL;AAELC,MAAAA,OAAO,EAAE,OAFJ;AAGLC,MAAAA,SAAS,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAH3B;AAILC,MAAAA,YAAY,EAAEP,KAAK,CAACK,OAAN,CAAcC;AAJvB,KADgB;AAOvBE,IAAAA,OAAO,EAAE;AACPJ,MAAAA,SAAS,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AADzB,KAPc;AAUvBG,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEX,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAFrB,KAVS;AAcvBM,IAAAA,MAAM,EAAE;AACND,MAAAA,UAAU,EAAEX,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAD3B;AAENI,MAAAA,KAAK,EAAE;AAFD;AAde,GAAL;AAAA,CAApB;;IAoBaG,S;;;;;;;;;;;;;;;iGAUA,UAAAC,KAAK,EAAI;AAClB,YAAKC,KAAL,CAAWC,cAAX,CAA0BF,KAA1B;AACD,K;kHAE2B,UA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AY,EAAE5B,YAJhB;AAKE,QAAA,QAAQ,EAAE,KALZ;AAME,QAAA,WAAW,EAAEiB,WANf;AAOE,QAAA,UAAU,EAAED,iBAPd;AAQE,QAAA,aAAa,EAAEN,aAAa,IAAIA,aAAa,CAACb,mBAA/B,IAAsDuB,oBARvE;AASE,QAAA,cAAc,EAAET,cAAc,IAAIA,cAAc,CAACd,mBAAjC,IAAwDwB;AAT1E,QADF,CAFJ,eAiBE,gCAAC,8BAAD;AACE,QAAA,YAAY,EAAErB,YADhB;AAEE,QAAA,KAAK,EAAEN,KAFT;AAGE,QAAA,aAAa,EAAEO,aAHjB;AAIE,QAAA,QAAQ,EAAE,KAAK4B,QAJjB;AAKE,QAAA,gBAAgB,EAAEjB,gBALpB;AAME,QAAA,aAAa,EAAEC,aANjB;AAOE,QAAA,WAAW,EAAEI,WAPf;AAQE,QAAA,UAAU,EAAED;AARd,QAjBF,EA4BID,eAAe,iBACb,gCAAC,wBAAD;AACE,QAAA,QAAQ,EAAErB,KAAK,CAACI,QADlB;AAEE,QAAA,QAAQ,EAAE,KAAKgC,gBAFjB;AAGE,QAAA,WAAW,EAAEb;AAHf,QA7BN,CADF,CAnCF,CADF,CADF;AA+ED;;;EA1I4Bc,kBAAMC,S;;;iCAAxBvC,S,eACQ;AACjBG,EAAAA,cAAc,EAAEqC,sBAAUC,IADT;AAEjBhC,EAAAA,sBAAsB,EAAE+B,sBAAUC,IAFjB;AAGjBnC,EAAAA,OAAO,EAAEkC,sBAAUE,MAHF;AAIjBzC,EAAAA,KAAK,EAAEuC,sBAAUE,MAAV,CAAiBC,UAJP;AAKjBnC,EAAAA,aAAa,EAAEgC,sBAAUE,MAAV,CAAiBC,UALf;AAMjBpC,EAAAA,YAAY,EAAEiC,sBAAUE;AANP,C;;eA4IN,wBAAWxD,MAAX,EAAmBc,SAAnB,C","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport {\n FeedbackConfig,\n settings,\n layout,\n InputContainer,\n} from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport debug from 'debug';\nimport EditableHtml from '@pie-lib/editable-html';\nimport GeneralConfigBlock from './general-config-block';\nimport { ResponseTypes } from './utils';\n\nconst log = debug('@pie-element:math-inline:configure');\nconst { Panel, toggle, radio } = settings;\n\nconst styles = theme => ({\n title: {\n fontSize: '1.1rem',\n display: 'block',\n marginTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit\n },\n content: {\n marginTop: theme.spacing.unit * 2\n },\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2\n },\n prompt: {\n paddingTop: theme.spacing.unit * 2,\n width: '100%'\n },\n});\n\nexport class Configure extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n classes: PropTypes.object,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n imageSupport: PropTypes.object\n };\n\n onChange = model => {\n this.props.onModelChanged(model);\n };\n\n changeTeacherInstructions = teacherInstructions => {\n this.props.onModelChanged({\n ...this.props.model,\n teacherInstructions\n });\n };\n\n onFeedbackChange = feedback => {\n const { model, onModelChanged } = this.props;\n model.feedback = feedback;\n onModelChanged(model);\n };\n\n render() {\n const { classes, model, imageSupport, onModelChanged, configuration, onConfigurationChanged } = this.props;\n const {\n feedback = {},\n responseType = {},\n teacherInstructions = {},\n studentInstructions = {},\n rationale = {},\n prompt = {},\n scoringType = {},\n ignoreOrder = {},\n allowTrailingZeros={},\n spellCheck = {},\n maxImageWidth = {},\n maxImageHeight = {}\n } = configuration || {};\n log('[render] model', model);\n const { rationaleEnabled, promptEnabled, teacherInstructionsEnabled, feedbackEnabled, spellCheckEnabled } = model || {};\n const toolbarOpts = {};\n\n switch (model.toolbarEditorPosition) {\n case 'top':\n toolbarOpts.position = 'top';\n break;\n default:\n toolbarOpts.position = 'bottom';\n break;\n }\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n return (\n <div>\n <layout.ConfigLayout\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={model => onModelChanged(model)}\n onChangeConfiguration={config => onConfigurationChanged(config)}\n groups={{\n 'Settings': {\n responseType: responseType.settings &&\n radio(responseType.label, [ResponseTypes.simple, ResponseTypes.advanced]),\n feedbackEnabled: feedback.settings &&\n toggle(feedback.label),\n 'promptEnabled': prompt.settings &&\n toggle(prompt.label)\n },\n 'Properties': {\n teacherInstructionsEnabled: teacherInstructions.settings &&\n toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings &&\n toggle(studentInstructions.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled:\n spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings &&\n radio(scoringType.label, ['auto', 'rubric']),\n 'ignoreOrder.enabled':\n ignoreOrder.settings && toggle(ignoreOrder.label),\n 'allowTrailingZeros.enabled':\n allowTrailingZeros.settings && toggle(allowTrailingZeros.label),\n },\n }}\n />\n }\n >\n <div>\n <div className={classes.content}>\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={this.changeTeacherInstructions}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n maxImageWidth={maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth}\n maxImageHeight={maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight}\n />\n </InputContainer>\n )}\n\n <GeneralConfigBlock\n imageSupport={imageSupport}\n model={model}\n configuration={configuration}\n onChange={this.onChange}\n rationaleEnabled={rationaleEnabled}\n promptEnabled={promptEnabled}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n />\n {\n feedbackEnabled && (\n <FeedbackConfig\n feedback={model.feedback}\n onChange={this.onFeedbackChange}\n toolbarOpts={toolbarOpts}\n />\n )\n }\n </div>\n </div>\n </layout.ConfigLayout>\n </div>\n );\n }\n}\n\nexport default withStyles(styles)(Configure);\n"],"file":"configure.js"}
|
|
@@ -30,9 +30,10 @@ var _default = {
|
|
|
30
30
|
type: 'none'
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
equationEditor: '
|
|
33
|
+
equationEditor: '8',
|
|
34
34
|
expression: '',
|
|
35
35
|
rationale: 'Rationale goes here.',
|
|
36
|
+
note: 'The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.',
|
|
36
37
|
prompt: '',
|
|
37
38
|
responses: [],
|
|
38
39
|
customKeys: [],
|
|
@@ -41,7 +42,11 @@ var _default = {
|
|
|
41
42
|
promptEnabled: true,
|
|
42
43
|
rationaleEnabled: true,
|
|
43
44
|
teacherInstructionsEnabled: true,
|
|
44
|
-
studentInstructionsEnabled: true
|
|
45
|
+
studentInstructionsEnabled: true,
|
|
46
|
+
toolbarEditorPosition: 'bottom',
|
|
47
|
+
validationDefault: 'literal',
|
|
48
|
+
ignoreOrderDefault: false,
|
|
49
|
+
allowTrailingZerosDefault: false
|
|
45
50
|
},
|
|
46
51
|
configuration: {
|
|
47
52
|
prompt: {
|
|
@@ -60,6 +65,11 @@ var _default = {
|
|
|
60
65
|
settings: true,
|
|
61
66
|
label: 'Rationale'
|
|
62
67
|
},
|
|
68
|
+
spellCheck: {
|
|
69
|
+
label: 'Spellcheck',
|
|
70
|
+
settings: false,
|
|
71
|
+
enabled: true
|
|
72
|
+
},
|
|
63
73
|
scoringType: {
|
|
64
74
|
settings: false,
|
|
65
75
|
label: 'Scoring Type'
|
|
@@ -75,6 +85,26 @@ var _default = {
|
|
|
75
85
|
partialScoring: {
|
|
76
86
|
settings: false,
|
|
77
87
|
label: 'Allow Partial Scoring'
|
|
88
|
+
},
|
|
89
|
+
ignoreOrder: {
|
|
90
|
+
settings: false,
|
|
91
|
+
label: 'Ignore Order',
|
|
92
|
+
enabled: true
|
|
93
|
+
},
|
|
94
|
+
allowTrailingZeros: {
|
|
95
|
+
settings: false,
|
|
96
|
+
label: 'Allow Trailing Zeros',
|
|
97
|
+
enabled: true
|
|
98
|
+
},
|
|
99
|
+
maxImageWidth: {
|
|
100
|
+
teacherInstructions: 300,
|
|
101
|
+
prompt: 300,
|
|
102
|
+
rationale: 300
|
|
103
|
+
},
|
|
104
|
+
maxImageHeight: {
|
|
105
|
+
teacherInstructions: 300,
|
|
106
|
+
prompt: 300,
|
|
107
|
+
rationale: 300
|
|
78
108
|
}
|
|
79
109
|
}
|
|
80
110
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["model","partialScoring","responseType","ResponseTypes","advanced","element","feedback","correct","type","incorrect","partial","equationEditor","expression","rationale","prompt","responses","customKeys","scoringType","feedbackEnabled","promptEnabled","rationaleEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","configuration","settings","label","studentInstructions","teacherInstructions"],"mappings":";;;;;;;AAAA;;AAEA;AACA;AACA;AACA;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,cAAc,EAAE,IADX;AAELC,IAAAA,YAAY,EAAEC,qBAAcC,QAFvB;AAGLC,IAAAA,OAAO,EAAE,aAHJ;AAILC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,OAAO,EAAE;AACP,mBAAS,SADF;AAEPC,QAAAA,IAAI,EAAE;AAFC,OADD;AAKRC,MAAAA,SAAS,EAAE;AACT,mBAAS,WADA;AAETD,QAAAA,IAAI,EAAE;AAFG,OALH;AASRE,MAAAA,OAAO,EAAE;AACP,mBAAS,QADF;AAEPF,QAAAA,IAAI,EAAE;AAFC;AATD,KAJL;AAkBLG,IAAAA,cAAc,EAAE,GAlBX;AAmBLC,IAAAA,UAAU,EAAE,EAnBP;AAoBLC,IAAAA,SAAS,EAAE,sBApBN;AAqBLC,IAAAA,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["model","partialScoring","responseType","ResponseTypes","advanced","element","feedback","correct","type","incorrect","partial","equationEditor","expression","rationale","note","prompt","responses","customKeys","scoringType","feedbackEnabled","promptEnabled","rationaleEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","toolbarEditorPosition","validationDefault","ignoreOrderDefault","allowTrailingZerosDefault","configuration","settings","label","spellCheck","enabled","studentInstructions","teacherInstructions","ignoreOrder","allowTrailingZeros","maxImageWidth","maxImageHeight"],"mappings":";;;;;;;AAAA;;AAEA;AACA;AACA;AACA;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,cAAc,EAAE,IADX;AAELC,IAAAA,YAAY,EAAEC,qBAAcC,QAFvB;AAGLC,IAAAA,OAAO,EAAE,aAHJ;AAILC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,OAAO,EAAE;AACP,mBAAS,SADF;AAEPC,QAAAA,IAAI,EAAE;AAFC,OADD;AAKRC,MAAAA,SAAS,EAAE;AACT,mBAAS,WADA;AAETD,QAAAA,IAAI,EAAE;AAFG,OALH;AASRE,MAAAA,OAAO,EAAE;AACP,mBAAS,QADF;AAEPF,QAAAA,IAAI,EAAE;AAFC;AATD,KAJL;AAkBLG,IAAAA,cAAc,EAAE,GAlBX;AAmBLC,IAAAA,UAAU,EAAE,EAnBP;AAoBLC,IAAAA,SAAS,EAAE,sBApBN;AAqBLC,IAAAA,IAAI,EACF,kJAtBG;AAuBLC,IAAAA,MAAM,EAAE,EAvBH;AAwBLC,IAAAA,SAAS,EAAE,EAxBN;AAyBLC,IAAAA,UAAU,EAAE,EAzBP;AA0BLC,IAAAA,WAAW,EAAE,MA1BR;AA2BLC,IAAAA,eAAe,EAAE,IA3BZ;AA4BLC,IAAAA,aAAa,EAAE,IA5BV;AA6BLC,IAAAA,gBAAgB,EAAE,IA7Bb;AA8BLC,IAAAA,0BAA0B,EAAE,IA9BvB;AA+BLC,IAAAA,0BAA0B,EAAE,IA/BvB;AAgCLC,IAAAA,qBA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A,kBAAkB,EAAE;AAClBP,MAAAA,QAAQ,EAAE,KADQ;AAElBC,MAAAA,KAAK,EAAE,sBAFW;AAGlBE,MAAAA,OAAO,EAAE;AAHS,KA3CP;AAgDbK,IAAAA,aAAa,EAAE;AACbH,MAAAA,mBAAmB,EAAE,GADR;AAEbnB,MAAAA,MAAM,EAAE,GAFK;AAGbF,MAAAA,SAAS,EAAE;AAHE,KAhDF;AAqDbyB,IAAAA,cAAc,EAAE;AACdJ,MAAAA,mBAAmB,EAAE,GADP;AAEdnB,MAAAA,MAAM,EAAE,GAFM;AAGdF,MAAAA,SAAS,EAAE;AAHG;AArDH;AAtCF,C","sourcesContent":["import { ResponseTypes } from './utils';\n\n/** NOTE: teacherInstructions, studentInstructions, rationale & scoringType\n * functionalities are not defined yet - the value for those can belong to\n * model or to configure\n */\n\nexport default {\n model: {\n partialScoring: true,\n responseType: ResponseTypes.advanced,\n element: 'math-inline',\n feedback: {\n correct: {\n default: 'Correct',\n type: 'none',\n },\n incorrect: {\n default: 'Incorrect',\n type: 'none',\n },\n partial: {\n default: 'Nearly',\n type: 'none',\n },\n },\n equationEditor: '8',\n expression: '',\n rationale: 'Rationale goes here.',\n note:\n 'The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.',\n prompt: '',\n responses: [],\n customKeys: [],\n scoringType: 'auto',\n feedbackEnabled: true,\n promptEnabled: true,\n rationaleEnabled: true,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n validationDefault: 'literal',\n ignoreOrderDefault: false,\n allowTrailingZerosDefault: false,\n },\n configuration: {\n prompt: {\n settings: true,\n label: 'Prompt',\n },\n feedback: {\n settings: true,\n label: 'Feedback',\n },\n responseType: {\n settings: true,\n label: 'Response type',\n },\n rationale: {\n settings: true,\n label: 'Rationale',\n },\n spellCheck: {\n label: 'Spellcheck',\n settings:false,\n enabled:true\n },\n scoringType: {\n settings: false,\n label: 'Scoring Type',\n },\n studentInstructions: {\n settings: false,\n label: 'Student Instructions',\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n },\n partialScoring: {\n settings: false,\n label: 'Allow Partial Scoring',\n },\n ignoreOrder: {\n settings: false,\n label: 'Ignore Order',\n enabled: true,\n },\n allowTrailingZeros: {\n settings: false,\n label: 'Allow Trailing Zeros',\n enabled: true\n },\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n }\n },\n};\n"],"file":"defaults.js"}
|