@pie-element/math-inline 5.8.12 → 5.9.1-beta.1443
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 +359 -0
- package/configure/CHANGELOG.md +334 -0
- package/configure/lib/configure.js +68 -47
- package/configure/lib/configure.js.map +1 -1
- package/configure/lib/defaults.js +20 -0
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/general-config-block.js +82 -11
- package/configure/lib/general-config-block.js.map +1 -1
- package/configure/lib/index.js +16 -2
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/response.js +22 -8
- 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 +7 -7
- package/controller/CHANGELOG.md +49 -0
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +98 -16
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/utils.js.map +1 -1
- package/controller/package.json +4 -4
- package/docs/config-schema.json +105 -0
- package/docs/config-schema.json.md +81 -1
- package/docs/demo/config.js +2 -2
- package/docs/demo/generate.js +16 -15
- package/docs/demo/session.js +1 -1
- package/docs/pie-schema.json +33 -0
- package/docs/pie-schema.json.md +24 -0
- package/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/lib/main.js +71 -15
- 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 +45 -38
- package/lib/simple-question-block.js.map +1 -1
- package/lib/utils.js.map +1 -1
- package/package.json +12 -8
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,340 @@
|
|
|
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.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.3.0...@pie-element/math-inline-configure@6.4.0) (2023-01-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update pie-libs ([6423903](https://github.com/pie-framework/pie-elements/commit/6423903898b041f56db2111de2e4aac4ee9f1fd3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [6.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.6...@pie-element/math-inline-configure@6.3.0) (2023-01-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* update pie-libs ([b174476](https://github.com/pie-framework/pie-elements/commit/b174476729119a0689f1f8adfc8c235246676cab))
|
|
23
|
+
* update pie-libs ([f72c3c8](https://github.com/pie-framework/pie-elements/commit/f72c3c8d8bc9bbf061bb81502317157a63c22972))
|
|
24
|
+
* update pie-libs ([8490729](https://github.com/pie-framework/pie-elements/commit/8490729a2389d36fd3968f0806119fde96577842))
|
|
25
|
+
* **math-inline:** added configuration prop to hide the settings panel PD-1999 ([bd9d932](https://github.com/pie-framework/pie-elements/commit/bd9d932ad24db60e53ebb2b988977afcaf7ef668))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [6.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.5...@pie-element/math-inline-configure@6.2.6) (2022-12-21)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* updated pie-libs ([8cb5b90](https://github.com/pie-framework/pie-elements/commit/8cb5b90d501ccbdf5ffd764e6555faa48b8f54d6))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## [6.2.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.4...@pie-element/math-inline-configure@6.2.5) (2022-12-20)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* updated pie-libs ([6549302](https://github.com/pie-framework/pie-elements/commit/65493026fbf356c5ab752ae6a14d961d4b256368))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## [6.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.3...@pie-element/math-inline-configure@6.2.4) (2022-12-07)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
|
|
59
|
+
* update libs for PD-2030 PD-2031 ([3174022](https://github.com/pie-framework/pie-elements/commit/3174022d45603ed217bbe8804a142b07084636a5))
|
|
60
|
+
* updated lib PD-1715 ([42e788d](https://github.com/pie-framework/pie-elements/commit/42e788db0c792838994e55001952da7701251a8e))
|
|
61
|
+
* updated libs ([c20de3a](https://github.com/pie-framework/pie-elements/commit/c20de3a6ba4499a090c809e18e52588d2a585fa0))
|
|
62
|
+
* updated libs ([0eed79a](https://github.com/pie-framework/pie-elements/commit/0eed79a32c3b777c16c8cabf201513fc1d2726a0))
|
|
63
|
+
* updated libs ([343c9ec](https://github.com/pie-framework/pie-elements/commit/343c9ec3dccba7f781e90ae2bd195cac6f78f467))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [6.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.2...@pie-element/math-inline-configure@6.2.3) (2022-11-15)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## [6.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.1...@pie-element/math-inline-configure@6.2.2) (2022-11-11)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Bug Fixes
|
|
81
|
+
|
|
82
|
+
* **math-inline:** add sanity checks for withRubric ([ede846e](https://github.com/pie-framework/pie-elements/commit/ede846ededcb531df4f68a35e007420051f1992d))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## [6.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.2.0...@pie-element/math-inline-configure@6.2.1) (2022-10-31)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Bug Fixes
|
|
92
|
+
|
|
93
|
+
* **math-inline:** fix validation ui for alternate responses PD-2055 ([ac0273d](https://github.com/pie-framework/pie-elements/commit/ac0273d975b44c558e2ea3555c6787bcac04ec71))
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# [6.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.9...@pie-element/math-inline-configure@6.2.0) (2022-10-17)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Bug Fixes
|
|
103
|
+
|
|
104
|
+
* update snapshots ([9781596](https://github.com/pie-framework/pie-elements/commit/978159686bbbd6b727dff4b88ce4ab9606504586))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Features
|
|
108
|
+
|
|
109
|
+
* set withRubric to false in item default configurations. Set rubricEnabled to true if it's enabled for drawing-response and extended-text-entry ([a209057](https://github.com/pie-framework/pie-elements/commit/a209057f5a3fa5438efc8595453c89c11959a8f5))
|
|
110
|
+
* update libs ([7e174fb](https://github.com/pie-framework/pie-elements/commit/7e174fba75e7ea668900ad5c103751cefe33e2af))
|
|
111
|
+
* **math-inline:** add pie-api config PD-23 ([1a61ee3](https://github.com/pie-framework/pie-elements/commit/1a61ee39c184b4252446adf67b3ad38e40a0e39f))
|
|
112
|
+
* **math-inline:** add settings to enable rubric. Add withRubric prop to configuration and rubricEnabled prop to model PD-2104 ([543e355](https://github.com/pie-framework/pie-elements/commit/543e3551cc43477edb153c6d97cea7c8c6588235))
|
|
113
|
+
* **math-inline:** updated snapshot PD-2104 ([d1e9c23](https://github.com/pie-framework/pie-elements/commit/d1e9c2307dc108427bacfc106c00b3a5c624e930))
|
|
114
|
+
* enable spanish and special characters in author PD-2120 ([85fd3dd](https://github.com/pie-framework/pie-elements/commit/85fd3dd0fc10da1a2dfd5a842809c625790f8ba9))
|
|
115
|
+
* **math-inline:** add uploadSoundSupport property PD-23-updated ([85f07b0](https://github.com/pie-framework/pie-elements/commit/85f07b0eb5128019d83668783ea8990d0cfb16cd))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## [6.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.8...@pie-element/math-inline-configure@6.1.9) (2022-09-29)
|
|
122
|
+
|
|
123
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## [6.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.7...@pie-element/math-inline-configure@6.1.8) (2022-09-14)
|
|
130
|
+
|
|
131
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## [6.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.6...@pie-element/math-inline-configure@6.1.7) (2022-08-31)
|
|
138
|
+
|
|
139
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## [6.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.5...@pie-element/math-inline-configure@6.1.6) (2022-08-16)
|
|
146
|
+
|
|
147
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## [6.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.4...@pie-element/math-inline-configure@6.1.5) (2022-08-08)
|
|
154
|
+
|
|
155
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## [6.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.3...@pie-element/math-inline-configure@6.1.4) (2022-08-02)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Bug Fixes
|
|
165
|
+
|
|
166
|
+
* **math-inline:** fix validation message tooltip style PD-1897 ([27c0d50](https://github.com/pie-framework/pie-elements/commit/27c0d504a37fee6e0005f217b38b512491e7f307))
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
## [6.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.2...@pie-element/math-inline-configure@6.1.3) (2022-07-22)
|
|
173
|
+
|
|
174
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## [6.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.1...@pie-element/math-inline-configure@6.1.2) (2022-07-20)
|
|
181
|
+
|
|
182
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
## [6.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.1.0...@pie-element/math-inline-configure@6.1.1) (2022-07-19)
|
|
189
|
+
|
|
190
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
# [6.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@6.0.0...@pie-element/math-inline-configure@6.1.0) (2022-06-28)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### Bug Fixes
|
|
200
|
+
|
|
201
|
+
* tests ([671b33f](https://github.com/pie-framework/pie-elements/commit/671b33f0abe95d6de6f31851245fc8255981a262))
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Features
|
|
205
|
+
|
|
206
|
+
* **math-inline:** add maxImageWidth and maxImageHeight props PD-1801 ([24e60e2](https://github.com/pie-framework/pie-elements/commit/24e60e2d5e1bdc90530662f5c11528d67c2545ce))
|
|
207
|
+
* **math-inline:** implement ui/ux for validation PD-1705 ([74b9682](https://github.com/pie-framework/pie-elements/commit/74b968278cbe07fffd6979889bae91d137d334c3))
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
# [6.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.21...@pie-element/math-inline-configure@6.0.0) (2022-06-28)
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### chore
|
|
217
|
+
|
|
218
|
+
* Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### BREAKING CHANGES
|
|
222
|
+
|
|
223
|
+
* Image percent buttons were removed from toolbar.
|
|
224
|
+
New properties maxImageWidth and maxImageHeight were added.
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## [5.6.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.20...@pie-element/math-inline-configure@5.6.21) (2022-06-13)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## [5.6.20](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.19...@pie-element/math-inline-configure@5.6.20) (2022-05-30)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
## [5.6.19](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.18...@pie-element/math-inline-configure@5.6.19) (2022-05-16)
|
|
247
|
+
|
|
248
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
## [5.6.18](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.17...@pie-element/math-inline-configure@5.6.18) (2022-05-09)
|
|
255
|
+
|
|
256
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
## [5.6.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.16...@pie-element/math-inline-configure@5.6.17) (2022-05-03)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
## [5.6.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@5.6.15...@pie-element/math-inline-configure@5.6.16) (2022-04-12)
|
|
271
|
+
|
|
272
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
## [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)
|
|
279
|
+
|
|
280
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
## [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)
|
|
287
|
+
|
|
288
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## [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)
|
|
295
|
+
|
|
296
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
## [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)
|
|
303
|
+
|
|
304
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
## [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)
|
|
311
|
+
|
|
312
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
## [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)
|
|
319
|
+
|
|
320
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
## [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)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
### Bug Fixes
|
|
330
|
+
|
|
331
|
+
* **math-inline:** default editors to grade 8-HS PD-1385 ([54dc77a](https://github.com/pie-framework/pie-elements/commit/54dc77afbbb8c9e3413cb1cb303d5defd72f32d2))
|
|
332
|
+
* **math-inline:** do not hide math editor when focus is still on response template ([ef07786](https://github.com/pie-framework/pie-elements/commit/ef07786306c1d287b648000b0a2a0223cec3760c))
|
|
333
|
+
* **math-inline:** make response area button to fit in response template area ([efaa45d](https://github.com/pie-framework/pie-elements/commit/efaa45d2dc936c8d3dec6158e1e2e22392025e31))
|
|
334
|
+
* **math-inline, extended-text-entry:** use new editors ([2123b8a](https://github.com/pie-framework/pie-elements/commit/2123b8a6d930852a629140053a8459dbc75f281f))
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
6
340
|
## [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)
|
|
7
341
|
|
|
8
342
|
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
@@ -37,9 +37,9 @@ 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
|
|
|
@@ -114,49 +114,69 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
114
114
|
imageSupport = _this$props2.imageSupport,
|
|
115
115
|
onModelChanged = _this$props2.onModelChanged,
|
|
116
116
|
configuration = _this$props2.configuration,
|
|
117
|
-
onConfigurationChanged = _this$props2.onConfigurationChanged
|
|
117
|
+
onConfigurationChanged = _this$props2.onConfigurationChanged,
|
|
118
|
+
uploadSoundSupport = _this$props2.uploadSoundSupport;
|
|
118
119
|
|
|
119
120
|
var _ref = configuration || {},
|
|
121
|
+
_ref$allowTrailingZer = _ref.allowTrailingZeros,
|
|
122
|
+
allowTrailingZeros = _ref$allowTrailingZer === void 0 ? {} : _ref$allowTrailingZer,
|
|
120
123
|
_ref$feedback = _ref.feedback,
|
|
121
124
|
feedback = _ref$feedback === void 0 ? {} : _ref$feedback,
|
|
122
|
-
_ref$
|
|
123
|
-
|
|
124
|
-
_ref$
|
|
125
|
-
|
|
126
|
-
_ref$
|
|
127
|
-
|
|
128
|
-
_ref$rationale = _ref.rationale,
|
|
129
|
-
rationale = _ref$rationale === void 0 ? {} : _ref$rationale,
|
|
125
|
+
_ref$ignoreOrder = _ref.ignoreOrder,
|
|
126
|
+
ignoreOrder = _ref$ignoreOrder === void 0 ? {} : _ref$ignoreOrder,
|
|
127
|
+
_ref$maxImageWidth = _ref.maxImageWidth,
|
|
128
|
+
maxImageWidth = _ref$maxImageWidth === void 0 ? {} : _ref$maxImageWidth,
|
|
129
|
+
_ref$maxImageHeight = _ref.maxImageHeight,
|
|
130
|
+
maxImageHeight = _ref$maxImageHeight === void 0 ? {} : _ref$maxImageHeight,
|
|
130
131
|
_ref$prompt = _ref.prompt,
|
|
131
132
|
prompt = _ref$prompt === void 0 ? {} : _ref$prompt,
|
|
133
|
+
_ref$rationale = _ref.rationale,
|
|
134
|
+
rationale = _ref$rationale === void 0 ? {} : _ref$rationale,
|
|
135
|
+
_ref$responseType = _ref.responseType,
|
|
136
|
+
responseType = _ref$responseType === void 0 ? {} : _ref$responseType,
|
|
132
137
|
_ref$scoringType = _ref.scoringType,
|
|
133
138
|
scoringType = _ref$scoringType === void 0 ? {} : _ref$scoringType,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
_ref$
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
settingsPanelDisabled = _ref.settingsPanelDisabled,
|
|
140
|
+
_ref$spellCheck = _ref.spellCheck,
|
|
141
|
+
spellCheck = _ref$spellCheck === void 0 ? {} : _ref$spellCheck,
|
|
142
|
+
_ref$studentInstructi = _ref.studentInstructions,
|
|
143
|
+
studentInstructions = _ref$studentInstructi === void 0 ? {} : _ref$studentInstructi,
|
|
144
|
+
_ref$teacherInstructi = _ref.teacherInstructions,
|
|
145
|
+
teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi,
|
|
146
|
+
_ref$withRubric = _ref.withRubric,
|
|
147
|
+
withRubric = _ref$withRubric === void 0 ? {} : _ref$withRubric;
|
|
140
148
|
|
|
141
149
|
var _ref2 = model || {},
|
|
142
|
-
|
|
150
|
+
feedbackEnabled = _ref2.feedbackEnabled,
|
|
143
151
|
promptEnabled = _ref2.promptEnabled,
|
|
152
|
+
rationaleEnabled = _ref2.rationaleEnabled,
|
|
153
|
+
spellCheckEnabled = _ref2.spellCheckEnabled,
|
|
144
154
|
teacherInstructionsEnabled = _ref2.teacherInstructionsEnabled,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
var toolbarOpts = {};
|
|
148
|
-
|
|
149
|
-
switch (model.toolbarEditorPosition) {
|
|
150
|
-
case 'top':
|
|
151
|
-
toolbarOpts.position = 'top';
|
|
152
|
-
break;
|
|
153
|
-
|
|
154
|
-
default:
|
|
155
|
-
toolbarOpts.position = 'bottom';
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
155
|
+
toolbarEditorPosition = _ref2.toolbarEditorPosition;
|
|
158
156
|
|
|
157
|
+
log('[render] model', model);
|
|
158
|
+
var toolbarOpts = {
|
|
159
|
+
position: toolbarEditorPosition === 'top' ? 'top' : 'bottom'
|
|
160
|
+
};
|
|
161
|
+
var defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
|
|
162
|
+
var defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
|
|
163
|
+
var panelSettings = {
|
|
164
|
+
responseType: responseType.settings && radio(responseType.label, [_utils.ResponseTypes.simple, _utils.ResponseTypes.advanced]),
|
|
165
|
+
feedbackEnabled: feedback.settings && toggle(feedback.label),
|
|
166
|
+
promptEnabled: prompt.settings && toggle(prompt.label)
|
|
167
|
+
};
|
|
168
|
+
var panelProperties = {
|
|
169
|
+
teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
|
|
170
|
+
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
171
|
+
rationaleEnabled: rationale.settings && toggle(rationale.label),
|
|
172
|
+
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
173
|
+
scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),
|
|
174
|
+
'ignoreOrder.enabled': ignoreOrder.settings && toggle(ignoreOrder.label),
|
|
175
|
+
'allowTrailingZeros.enabled': allowTrailingZeros.settings && toggle(allowTrailingZeros.label),
|
|
176
|
+
rubricEnabled: (withRubric === null || withRubric === void 0 ? void 0 : withRubric.settings) && toggle(withRubric === null || withRubric === void 0 ? void 0 : withRubric.label)
|
|
177
|
+
};
|
|
159
178
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
179
|
+
hideSettings: settingsPanelDisabled,
|
|
160
180
|
settings: /*#__PURE__*/_react["default"].createElement(Panel, {
|
|
161
181
|
model: model,
|
|
162
182
|
configuration: configuration,
|
|
@@ -167,19 +187,8 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
167
187
|
return onConfigurationChanged(config);
|
|
168
188
|
},
|
|
169
189
|
groups: {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
feedbackEnabled: feedback.settings && toggle(feedback.label),
|
|
173
|
-
'promptEnabled': prompt.settings && toggle(prompt.label)
|
|
174
|
-
},
|
|
175
|
-
'Properties': {
|
|
176
|
-
teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
|
|
177
|
-
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
178
|
-
rationaleEnabled: rationale.settings && toggle(rationale.label),
|
|
179
|
-
scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),
|
|
180
|
-
'ignoreOrder.enabled': ignoreOrder.settings && toggle(ignoreOrder.label),
|
|
181
|
-
'allowTrailingZeros.enabled': allowTrailingZeros.settings && toggle(allowTrailingZeros.label)
|
|
182
|
-
}
|
|
190
|
+
Settings: panelSettings,
|
|
191
|
+
Properties: panelProperties
|
|
183
192
|
}
|
|
184
193
|
})
|
|
185
194
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -193,15 +202,26 @@ var Configure = /*#__PURE__*/function (_React$Component) {
|
|
|
193
202
|
onChange: this.changeTeacherInstructions,
|
|
194
203
|
imageSupport: imageSupport,
|
|
195
204
|
nonEmpty: false,
|
|
196
|
-
toolbarOpts: toolbarOpts
|
|
205
|
+
toolbarOpts: toolbarOpts,
|
|
206
|
+
spellCheck: spellCheckEnabled,
|
|
207
|
+
maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
|
|
208
|
+
maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
|
|
209
|
+
uploadSoundSupport: uploadSoundSupport,
|
|
210
|
+
languageCharactersProps: [{
|
|
211
|
+
language: 'spanish'
|
|
212
|
+
}, {
|
|
213
|
+
language: 'special'
|
|
214
|
+
}]
|
|
197
215
|
})), /*#__PURE__*/_react["default"].createElement(_generalConfigBlock["default"], {
|
|
198
216
|
imageSupport: imageSupport,
|
|
217
|
+
uploadSoundSupport: uploadSoundSupport,
|
|
199
218
|
model: model,
|
|
200
219
|
configuration: configuration,
|
|
201
220
|
onChange: this.onChange,
|
|
202
221
|
rationaleEnabled: rationaleEnabled,
|
|
203
222
|
promptEnabled: promptEnabled,
|
|
204
|
-
toolbarOpts: toolbarOpts
|
|
223
|
+
toolbarOpts: toolbarOpts,
|
|
224
|
+
spellCheck: spellCheckEnabled
|
|
205
225
|
}), feedbackEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.FeedbackConfig, {
|
|
206
226
|
feedback: model.feedback,
|
|
207
227
|
onChange: this.onFeedbackChange,
|
|
@@ -219,7 +239,8 @@ exports.Configure = Configure;
|
|
|
219
239
|
classes: _propTypes["default"].object,
|
|
220
240
|
model: _propTypes["default"].object.isRequired,
|
|
221
241
|
configuration: _propTypes["default"].object.isRequired,
|
|
222
|
-
imageSupport: _propTypes["default"].object
|
|
242
|
+
imageSupport: _propTypes["default"].object,
|
|
243
|
+
uploadSoundSupport: _propTypes["default"].object
|
|
223
244
|
});
|
|
224
245
|
|
|
225
246
|
var _default = (0, _styles.withStyles)(styles)(Configure);
|
|
@@ -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","ignoreOrder","allowTrailingZeros","rationaleEnabled","promptEnabled","teacherInstructionsEnabled","feedbackEnabled","toolbarOpts","toolbarEditorPosition","position","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,OA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AAGE,QAAA,QAAQ,EAAE,KAAKyB,yBAHjB;AAIE,QAAA,YAAY,EAAEtB,YAJhB;AAKE,QAAA,QAAQ,EAAE,KALZ;AAME,QAAA,WAAW,EAAEa;AANf,QADF,CAFJ,eAcE,gCAAC,8BAAD;AACE,QAAA,YAAY,EAAEb,YADhB;AAEE,QAAA,KAAK,EAAEN,KAFT;AAGE,QAAA,aAAa,EAAEO,aAHjB;AAIE,QAAA,QAAQ,EAAE,KAAKsB,QAJjB;AAKE,QAAA,gBAAgB,EAAEd,gBALpB;AAME,QAAA,aAAa,EAAEC,aANjB;AAOE,QAAA,WAAW,EAAEG;AAPf,QAdF,EAwBID,eAAe,iBACb,gCAAC,wBAAD;AACE,QAAA,QAAQ,EAAElB,KAAK,CAACI,QADlB;AAEE,QAAA,QAAQ,EAAE,KAAK0B,gBAFjB;AAGE,QAAA,WAAW,EAAEX;AAHf,QAzBN,CADF,CAjCF,CADF,CADF;AAyED;;;EA9H4BY,kBAAMC,S;;;iCAAxBjC,S,eACQ;AACjBG,EAAAA,cAAc,EAAE+B,sBAAUC,IADT;AAEjB1B,EAAAA,sBAAsB,EAAEyB,sBAAUC,IAFjB;AAGjB7B,EAAAA,OAAO,EAAE4B,sBAAUE,MAHF;AAIjBnC,EAAAA,KAAK,EAAEiC,sBAAUE,MAAV,CAAiBC,UAJP;AAKjB7B,EAAAA,aAAa,EAAE0B,sBAAUE,MAAV,CAAiBC,UALf;AAMjB9B,EAAAA,YAAY,EAAE2B,sBAAUE;AANP,C;;eAgIN,wBAAWlD,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 } = configuration || {};\n log('[render] model', model);\n const { rationaleEnabled, promptEnabled, teacherInstructionsEnabled, feedbackEnabled } = 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 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 '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 />\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 />\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"}
|
|
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","uploadSoundSupport","allowTrailingZeros","ignoreOrder","maxImageWidth","maxImageHeight","rationale","responseType","scoringType","settingsPanelDisabled","spellCheck","studentInstructions","withRubric","feedbackEnabled","promptEnabled","rationaleEnabled","spellCheckEnabled","teacherInstructionsEnabled","toolbarEditorPosition","toolbarOpts","position","defaultImageMaxWidth","defaultImageMaxHeight","panelSettings","label","ResponseTypes","simple","advanced","panelProperties","studentInstructionsEnabled","rubricEnabled","config","Settings","Properties","changeTeacherInstructions","language","onChange","onFeedbackChange","React","Component","PropTypes","func","object","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;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,CAACC,KAAD;AAAA,SAAY;AACzBC,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,KADkB;AAOzBE,IAAAA,OAAO,EAAE;AACPJ,MAAAA,SAAS,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AADzB,KAPgB;AAUzBG,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEX,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAFrB,KAVW;AAczBM,IAAAA,MAAM,EAAE;AACND,MAAAA,UAAU,EAAEX,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAD3B;AAENI,MAAAA,KAAK,EAAE;AAFD;AAdiB,GAAZ;AAAA,CAAf;;IAoBaG,S;;;;;;;;;;;;;;;iGAWA,UAACC,KAAD,EAAW;AACpB,YAAKC,KAAL,CAAWC,cAAX,CAA0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AQ,EAAErB,KAAK,CAACI,QAAhC;AAA0C,QAAA,QAAQ,EAAE,KAAKyC,gBAAzD;AAA2E,QAAA,WAAW,EAAElB;AAAxF,QAhCJ,CADF,CAfF,CADF,CADF;AAyDD;;;EA1I4BmB,kBAAMC,S;;;iCAAxBhD,S,eACQ;AACjBG,EAAAA,cAAc,EAAE8C,sBAAUC,IADT;AAEjBzC,EAAAA,sBAAsB,EAAEwC,sBAAUC,IAFjB;AAGjB5C,EAAAA,OAAO,EAAE2C,sBAAUE,MAHF;AAIjBlD,EAAAA,KAAK,EAAEgD,sBAAUE,MAAV,CAAiBC,UAJP;AAKjB5C,EAAAA,aAAa,EAAEyC,sBAAUE,MAAV,CAAiBC,UALf;AAMjB7C,EAAAA,YAAY,EAAE0C,sBAAUE,MANP;AAOjBzC,EAAAA,kBAAkB,EAAEuC,sBAAUE;AAPb,C;;eA4IN,wBAAWjE,MAAX,EAAmBc,SAAnB,C","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport { FeedbackConfig, settings, layout, InputContainer } 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 uploadSoundSupport: 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, uploadSoundSupport } =\n this.props;\n const {\n allowTrailingZeros = {},\n feedback = {},\n ignoreOrder = {},\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n rationale = {},\n responseType = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n withRubric = {},\n } = configuration || {};\n const {\n feedbackEnabled,\n promptEnabled,\n rationaleEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n toolbarEditorPosition,\n } = model || {};\n\n log('[render] model', model);\n\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const panelSettings = {\n responseType: responseType.settings && radio(responseType.label, [ResponseTypes.simple, ResponseTypes.advanced]),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n };\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\n 'ignoreOrder.enabled': ignoreOrder.settings && toggle(ignoreOrder.label),\n 'allowTrailingZeros.enabled': allowTrailingZeros.settings && toggle(allowTrailingZeros.label),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n return (\n <div>\n <layout.ConfigLayout\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={(model) => onModelChanged(model)}\n onChangeConfiguration={(config) => onConfigurationChanged(config)}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\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 uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n />\n </InputContainer>\n )}\n\n <GeneralConfigBlock\n imageSupport={imageSupport}\n uploadSoundSupport={uploadSoundSupport}\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 feedback={model.feedback} onChange={this.onFeedbackChange} toolbarOpts={toolbarOpts} />\n )}\n </div>\n </div>\n </layout.ConfigLayout>\n </div>\n );\n }\n}\n\nexport default withStyles(styles)(Configure);\n"],"file":"configure.js"}
|
|
@@ -65,6 +65,12 @@ var _default = {
|
|
|
65
65
|
settings: true,
|
|
66
66
|
label: 'Rationale'
|
|
67
67
|
},
|
|
68
|
+
settingsPanelDisabled: false,
|
|
69
|
+
spellCheck: {
|
|
70
|
+
label: 'Spellcheck',
|
|
71
|
+
settings: false,
|
|
72
|
+
enabled: true
|
|
73
|
+
},
|
|
68
74
|
scoringType: {
|
|
69
75
|
settings: false,
|
|
70
76
|
label: 'Scoring Type'
|
|
@@ -90,6 +96,20 @@ var _default = {
|
|
|
90
96
|
settings: false,
|
|
91
97
|
label: 'Allow Trailing Zeros',
|
|
92
98
|
enabled: true
|
|
99
|
+
},
|
|
100
|
+
maxImageWidth: {
|
|
101
|
+
teacherInstructions: 300,
|
|
102
|
+
prompt: 300,
|
|
103
|
+
rationale: 300
|
|
104
|
+
},
|
|
105
|
+
maxImageHeight: {
|
|
106
|
+
teacherInstructions: 300,
|
|
107
|
+
prompt: 300,
|
|
108
|
+
rationale: 300
|
|
109
|
+
},
|
|
110
|
+
withRubric: {
|
|
111
|
+
settings: false,
|
|
112
|
+
label: 'Add Rubric'
|
|
93
113
|
}
|
|
94
114
|
}
|
|
95
115
|
};
|
|
@@ -1 +1 @@
|
|
|
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","studentInstructions","teacherInstructions","ignoreOrder","
|
|
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","settingsPanelDisabled","spellCheck","enabled","studentInstructions","teacherInstructions","ignoreOrder","allowTrailingZeros","maxImageWidth","maxImageHeight","withRubric"],"mappings":";;;;;;;AAAA;;AAEA;AACA;AACA;AACA;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IA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,EAAE,GAFM;AAGdF,MAAAA,SAAS,EAAE;AAHG,KAtDH;AA2Db2B,IAAAA,UAAU,EAAE;AACVX,MAAAA,QAAQ,EAAE,KADA;AAEVC,MAAAA,KAAK,EAAE;AAFG;AA3DC;AArCF,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: '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 settingsPanelDisabled: false,\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 withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n },\n};\n"],"file":"defaults.js"}
|