@pie-element/math-inline 5.6.3 → 5.6.4-next.1008
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/docs/config-schema.json
CHANGED
|
@@ -67,6 +67,22 @@
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
+
"spellCheck": {
|
|
71
|
+
"title": "ConfigureProp",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"settings": {
|
|
75
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"title": "settings"
|
|
78
|
+
},
|
|
79
|
+
"label": {
|
|
80
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
81
|
+
"type": "string",
|
|
82
|
+
"title": "label"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
70
86
|
"scoringType": {
|
|
71
87
|
"title": "ConfigureProp",
|
|
72
88
|
"type": "object",
|
|
@@ -115,6 +131,95 @@
|
|
|
115
131
|
}
|
|
116
132
|
}
|
|
117
133
|
},
|
|
134
|
+
"ignoreOrder": {
|
|
135
|
+
"title": "ConfigurePropWithEnabled",
|
|
136
|
+
"type": "object",
|
|
137
|
+
"properties": {
|
|
138
|
+
"settings": {
|
|
139
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"title": "settings"
|
|
142
|
+
},
|
|
143
|
+
"label": {
|
|
144
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
145
|
+
"type": "string",
|
|
146
|
+
"title": "label"
|
|
147
|
+
},
|
|
148
|
+
"enabled": {
|
|
149
|
+
"description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"title": "enabled"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"allowTrailingZeros": {
|
|
156
|
+
"title": "ConfigurePropWithEnabled",
|
|
157
|
+
"type": "object",
|
|
158
|
+
"properties": {
|
|
159
|
+
"settings": {
|
|
160
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"title": "settings"
|
|
163
|
+
},
|
|
164
|
+
"label": {
|
|
165
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
166
|
+
"type": "string",
|
|
167
|
+
"title": "label"
|
|
168
|
+
},
|
|
169
|
+
"enabled": {
|
|
170
|
+
"description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"title": "enabled"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"maxResponseAreas": {
|
|
177
|
+
"description": "Maximum number of response areas",
|
|
178
|
+
"type": "number",
|
|
179
|
+
"title": "maxResponseAreas"
|
|
180
|
+
},
|
|
181
|
+
"maxImageWidth": {
|
|
182
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
183
|
+
"type": "object",
|
|
184
|
+
"properties": {
|
|
185
|
+
"teacherInstructions": {
|
|
186
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
187
|
+
"type": "number",
|
|
188
|
+
"title": "teacherInstructions"
|
|
189
|
+
},
|
|
190
|
+
"prompt": {
|
|
191
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
192
|
+
"type": "number",
|
|
193
|
+
"title": "prompt"
|
|
194
|
+
},
|
|
195
|
+
"rationale": {
|
|
196
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
197
|
+
"type": "number",
|
|
198
|
+
"title": "rationale"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"maxImageHeight": {
|
|
203
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
204
|
+
"type": "object",
|
|
205
|
+
"properties": {
|
|
206
|
+
"teacherInstructions": {
|
|
207
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
208
|
+
"type": "number",
|
|
209
|
+
"title": "teacherInstructions"
|
|
210
|
+
},
|
|
211
|
+
"prompt": {
|
|
212
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
213
|
+
"type": "number",
|
|
214
|
+
"title": "prompt"
|
|
215
|
+
},
|
|
216
|
+
"rationale": {
|
|
217
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
218
|
+
"type": "number",
|
|
219
|
+
"title": "rationale"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
118
223
|
"showPrompt": {
|
|
119
224
|
"description": "Determines whether prompt field will be displayed or not",
|
|
120
225
|
"default": true,
|
|
@@ -150,6 +255,48 @@
|
|
|
150
255
|
"title": "label"
|
|
151
256
|
}
|
|
152
257
|
}
|
|
258
|
+
},
|
|
259
|
+
"ConfigurePropWithEnabled": {
|
|
260
|
+
"title": "ConfigurePropWithEnabled",
|
|
261
|
+
"type": "object",
|
|
262
|
+
"properties": {
|
|
263
|
+
"settings": {
|
|
264
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
265
|
+
"type": "boolean",
|
|
266
|
+
"title": "settings"
|
|
267
|
+
},
|
|
268
|
+
"label": {
|
|
269
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
270
|
+
"type": "string",
|
|
271
|
+
"title": "label"
|
|
272
|
+
},
|
|
273
|
+
"enabled": {
|
|
274
|
+
"description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
|
|
275
|
+
"type": "boolean",
|
|
276
|
+
"title": "enabled"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
281
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
282
|
+
"type": "object",
|
|
283
|
+
"properties": {
|
|
284
|
+
"teacherInstructions": {
|
|
285
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
286
|
+
"type": "number",
|
|
287
|
+
"title": "teacherInstructions"
|
|
288
|
+
},
|
|
289
|
+
"prompt": {
|
|
290
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
291
|
+
"type": "number",
|
|
292
|
+
"title": "prompt"
|
|
293
|
+
},
|
|
294
|
+
"rationale": {
|
|
295
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
296
|
+
"type": "number",
|
|
297
|
+
"title": "rationale"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
153
300
|
}
|
|
154
301
|
},
|
|
155
302
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -50,6 +50,18 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
50
50
|
|
|
51
51
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
52
52
|
|
|
53
|
+
# `spellCheck` (object)
|
|
54
|
+
|
|
55
|
+
Properties of the `spellCheck` object:
|
|
56
|
+
|
|
57
|
+
## `settings` (boolean)
|
|
58
|
+
|
|
59
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
60
|
+
|
|
61
|
+
## `label` (string)
|
|
62
|
+
|
|
63
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
64
|
+
|
|
53
65
|
# `scoringType` (object)
|
|
54
66
|
|
|
55
67
|
Properties of the `scoringType` object:
|
|
@@ -86,6 +98,76 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
86
98
|
|
|
87
99
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
88
100
|
|
|
101
|
+
# `ignoreOrder` (object)
|
|
102
|
+
|
|
103
|
+
Properties of the `ignoreOrder` object:
|
|
104
|
+
|
|
105
|
+
## `settings` (boolean)
|
|
106
|
+
|
|
107
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
108
|
+
|
|
109
|
+
## `label` (string)
|
|
110
|
+
|
|
111
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
112
|
+
|
|
113
|
+
## `enabled` (boolean)
|
|
114
|
+
|
|
115
|
+
Indicates the value of the item if it affects config-ui
|
|
116
|
+
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
117
|
+
|
|
118
|
+
# `allowTrailingZeros` (object)
|
|
119
|
+
|
|
120
|
+
Properties of the `allowTrailingZeros` object:
|
|
121
|
+
|
|
122
|
+
## `settings` (boolean)
|
|
123
|
+
|
|
124
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
125
|
+
|
|
126
|
+
## `label` (string)
|
|
127
|
+
|
|
128
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
129
|
+
|
|
130
|
+
## `enabled` (boolean)
|
|
131
|
+
|
|
132
|
+
Indicates the value of the item if it affects config-ui
|
|
133
|
+
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
134
|
+
|
|
135
|
+
# `maxResponseAreas` (number)
|
|
136
|
+
|
|
137
|
+
Maximum number of response areas
|
|
138
|
+
|
|
139
|
+
# `maxImageWidth` (object)
|
|
140
|
+
|
|
141
|
+
Properties of the `maxImageWidth` object:
|
|
142
|
+
|
|
143
|
+
## `teacherInstructions` (number)
|
|
144
|
+
|
|
145
|
+
Indicates the max dimension for images in teacher instructions
|
|
146
|
+
|
|
147
|
+
## `prompt` (number)
|
|
148
|
+
|
|
149
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
150
|
+
|
|
151
|
+
## `rationale` (number)
|
|
152
|
+
|
|
153
|
+
Indicates the max dimension for images in rationale
|
|
154
|
+
|
|
155
|
+
# `maxImageHeight` (object)
|
|
156
|
+
|
|
157
|
+
Properties of the `maxImageHeight` object:
|
|
158
|
+
|
|
159
|
+
## `teacherInstructions` (number)
|
|
160
|
+
|
|
161
|
+
Indicates the max dimension for images in teacher instructions
|
|
162
|
+
|
|
163
|
+
## `prompt` (number)
|
|
164
|
+
|
|
165
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
166
|
+
|
|
167
|
+
## `rationale` (number)
|
|
168
|
+
|
|
169
|
+
Indicates the max dimension for images in rationale
|
|
170
|
+
|
|
89
171
|
# `showPrompt` (boolean)
|
|
90
172
|
|
|
91
173
|
Determines whether prompt field will be displayed or not
|
|
@@ -120,4 +202,37 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
120
202
|
|
|
121
203
|
### `label` (string)
|
|
122
204
|
|
|
123
|
-
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
205
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
206
|
+
|
|
207
|
+
## `ConfigurePropWithEnabled` (object)
|
|
208
|
+
|
|
209
|
+
Properties of the `ConfigurePropWithEnabled` object:
|
|
210
|
+
|
|
211
|
+
### `settings` (boolean)
|
|
212
|
+
|
|
213
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
214
|
+
|
|
215
|
+
### `label` (string)
|
|
216
|
+
|
|
217
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
218
|
+
|
|
219
|
+
### `enabled` (boolean)
|
|
220
|
+
|
|
221
|
+
Indicates the value of the item if it affects config-ui
|
|
222
|
+
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
223
|
+
|
|
224
|
+
## `ConfigureMaxImageDimensionsProp` (object)
|
|
225
|
+
|
|
226
|
+
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
|
227
|
+
|
|
228
|
+
### `teacherInstructions` (number)
|
|
229
|
+
|
|
230
|
+
Indicates the max dimension for images in teacher instructions
|
|
231
|
+
|
|
232
|
+
### `prompt` (number)
|
|
233
|
+
|
|
234
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
235
|
+
|
|
236
|
+
### `rationale` (number)
|
|
237
|
+
|
|
238
|
+
Indicates the max dimension for images in rationale
|
package/docs/demo/generate.js
CHANGED
|
@@ -11,24 +11,27 @@ const initialModel = {
|
|
|
11
11
|
validation: 'literal'
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
+
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.',
|
|
14
15
|
rationale:
|
|
15
16
|
'<p>The correct answer is:</p><ul><li><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>r</mi><mo>=</mo><msqrt><mfrac><mi>V</mi><mrow><mn>7</mn><mi>π</mi></mrow></mfrac></msqrt></math></li></ul>',
|
|
16
|
-
}
|
|
17
|
+
};
|
|
17
18
|
|
|
18
19
|
const E262456 = {
|
|
19
20
|
'equationEditor': 3,
|
|
21
|
+
'toolbarEditorPosition': 'bottom',
|
|
20
22
|
'prompt': '<p><strong>B.</strong> Find the value of the expression that you wrote in part A to find how much money the band members made.</p>\n\n<p>Use the on-screen keyboard to type your answer in the box below.</p>\n',
|
|
21
23
|
'expression': '${{response}}',
|
|
22
24
|
'responses': [
|
|
23
25
|
{
|
|
24
26
|
'allowSpaces': true,
|
|
25
|
-
'validation': 'symbolic',
|
|
27
|
+
// 'validation': 'symbolic',
|
|
26
28
|
'answer': '$410',
|
|
27
29
|
'id': '1'
|
|
28
30
|
}
|
|
29
31
|
],
|
|
32
|
+
'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.',
|
|
30
33
|
'responseType': 'Advanced Multi'
|
|
31
|
-
}
|
|
34
|
+
};
|
|
32
35
|
|
|
33
36
|
|
|
34
37
|
exports.model = (id, element) => ({
|
package/docs/pie-schema.json
CHANGED
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
},
|
|
226
226
|
"validation": {
|
|
227
227
|
"description": "Indicates what type of validation should be applied on the response",
|
|
228
|
-
"default": "is
|
|
228
|
+
"default": "is literal",
|
|
229
229
|
"enum": [
|
|
230
230
|
"literal",
|
|
231
231
|
"symbolic"
|
|
@@ -233,6 +233,18 @@
|
|
|
233
233
|
"type": "string",
|
|
234
234
|
"title": "validation"
|
|
235
235
|
},
|
|
236
|
+
"ignoreOrder": {
|
|
237
|
+
"description": "Indicates if the order of expression elements in literal validation can be ignore - whilst the expression is still mathematically correct",
|
|
238
|
+
"default": "is false",
|
|
239
|
+
"type": "boolean",
|
|
240
|
+
"title": "ignoreOrder"
|
|
241
|
+
},
|
|
242
|
+
"allowTrailingZeros": {
|
|
243
|
+
"description": "Indicates the allowance of trailing zeros in expressions - whilst the expression is still mathematically correct",
|
|
244
|
+
"default": "is false",
|
|
245
|
+
"type": "boolean",
|
|
246
|
+
"title": "allowTrailingZeros"
|
|
247
|
+
},
|
|
236
248
|
"answer": {
|
|
237
249
|
"description": "The answer for the question",
|
|
238
250
|
"type": "string",
|
|
@@ -268,9 +280,11 @@
|
|
|
268
280
|
}
|
|
269
281
|
},
|
|
270
282
|
"required": [
|
|
283
|
+
"allowTrailingZeros",
|
|
271
284
|
"alternates",
|
|
272
285
|
"answer",
|
|
273
286
|
"id",
|
|
287
|
+
"ignoreOrder",
|
|
274
288
|
"validation"
|
|
275
289
|
]
|
|
276
290
|
},
|
|
@@ -290,7 +304,7 @@
|
|
|
290
304
|
},
|
|
291
305
|
"validation": {
|
|
292
306
|
"description": "Indicates what type of validation should be applied on the response",
|
|
293
|
-
"default": "is
|
|
307
|
+
"default": "is literal",
|
|
294
308
|
"enum": [
|
|
295
309
|
"literal",
|
|
296
310
|
"symbolic"
|
|
@@ -298,6 +312,18 @@
|
|
|
298
312
|
"type": "string",
|
|
299
313
|
"title": "validation"
|
|
300
314
|
},
|
|
315
|
+
"ignoreOrder": {
|
|
316
|
+
"description": "Indicates if the order of expression elements in literal validation can be ignore - whilst the expression is still mathematically correct",
|
|
317
|
+
"default": "is false",
|
|
318
|
+
"type": "boolean",
|
|
319
|
+
"title": "ignoreOrder"
|
|
320
|
+
},
|
|
321
|
+
"allowTrailingZeros": {
|
|
322
|
+
"description": "Indicates the allowance of trailing zeros in expressions - whilst the expression is still mathematically correct",
|
|
323
|
+
"default": "is false",
|
|
324
|
+
"type": "boolean",
|
|
325
|
+
"title": "allowTrailingZeros"
|
|
326
|
+
},
|
|
301
327
|
"answer": {
|
|
302
328
|
"description": "The answer for the question",
|
|
303
329
|
"type": "string",
|
|
@@ -333,9 +359,11 @@
|
|
|
333
359
|
}
|
|
334
360
|
},
|
|
335
361
|
"required": [
|
|
362
|
+
"allowTrailingZeros",
|
|
336
363
|
"alternates",
|
|
337
364
|
"answer",
|
|
338
365
|
"id",
|
|
366
|
+
"ignoreOrder",
|
|
339
367
|
"validation"
|
|
340
368
|
]
|
|
341
369
|
},
|
|
@@ -344,6 +372,18 @@
|
|
|
344
372
|
"type": "boolean",
|
|
345
373
|
"title": "partialScoring"
|
|
346
374
|
},
|
|
375
|
+
"ignoreOrderDefault": {
|
|
376
|
+
"description": "Indicates the default value for ignoreOrder, in case that it's not set",
|
|
377
|
+
"default": "is false",
|
|
378
|
+
"type": "boolean",
|
|
379
|
+
"title": "ignoreOrderDefault"
|
|
380
|
+
},
|
|
381
|
+
"allowTrailingZerosDefault": {
|
|
382
|
+
"description": "Indicates the default value for allowTrailingZeros, in case that it's not set",
|
|
383
|
+
"default": "is false",
|
|
384
|
+
"type": "boolean",
|
|
385
|
+
"title": "allowTrailingZerosDefault"
|
|
386
|
+
},
|
|
347
387
|
"rationale": {
|
|
348
388
|
"description": "Indicates the value for rationale",
|
|
349
389
|
"type": "string",
|
|
@@ -386,6 +426,11 @@
|
|
|
386
426
|
"type": "boolean",
|
|
387
427
|
"title": "rationaleEnabled"
|
|
388
428
|
},
|
|
429
|
+
"spellCheckEnabled": {
|
|
430
|
+
"description": "Indicates if spellcheck is enabled for the author. Default value is true",
|
|
431
|
+
"type": "boolean",
|
|
432
|
+
"title": "spellCheckEnabled"
|
|
433
|
+
},
|
|
389
434
|
"studentInstructionsEnabled": {
|
|
390
435
|
"description": "Indicates if Student Instructions are enabled",
|
|
391
436
|
"type": "boolean",
|
|
@@ -396,6 +441,21 @@
|
|
|
396
441
|
"type": "boolean",
|
|
397
442
|
"title": "teacherInstructionsEnabled"
|
|
398
443
|
},
|
|
444
|
+
"note": {
|
|
445
|
+
"description": "Indicates the note for the answer",
|
|
446
|
+
"type": "string",
|
|
447
|
+
"title": "note"
|
|
448
|
+
},
|
|
449
|
+
"toolbarEditorPosition": {
|
|
450
|
+
"description": "Indicates the editor's toolbar position which can be 'bottom' or 'top'",
|
|
451
|
+
"default": ": 'bottom'",
|
|
452
|
+
"enum": [
|
|
453
|
+
"bottom",
|
|
454
|
+
"top"
|
|
455
|
+
],
|
|
456
|
+
"type": "string",
|
|
457
|
+
"title": "toolbarEditorPosition"
|
|
458
|
+
},
|
|
399
459
|
"id": {
|
|
400
460
|
"description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
|
|
401
461
|
"type": "string",
|
|
@@ -408,12 +468,15 @@
|
|
|
408
468
|
}
|
|
409
469
|
},
|
|
410
470
|
"required": [
|
|
471
|
+
"allowTrailingZerosDefault",
|
|
411
472
|
"element",
|
|
412
473
|
"expression",
|
|
413
474
|
"feedbackEnabled",
|
|
414
475
|
"id",
|
|
476
|
+
"ignoreOrderDefault",
|
|
415
477
|
"rationaleEnabled",
|
|
416
478
|
"responses",
|
|
479
|
+
"spellCheckEnabled",
|
|
417
480
|
"studentInstructionsEnabled",
|
|
418
481
|
"teacherInstructionsEnabled"
|
|
419
482
|
],
|
|
@@ -434,6 +497,48 @@
|
|
|
434
497
|
}
|
|
435
498
|
}
|
|
436
499
|
},
|
|
500
|
+
"ConfigurePropWithEnabled": {
|
|
501
|
+
"title": "ConfigurePropWithEnabled",
|
|
502
|
+
"type": "object",
|
|
503
|
+
"properties": {
|
|
504
|
+
"settings": {
|
|
505
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
506
|
+
"type": "boolean",
|
|
507
|
+
"title": "settings"
|
|
508
|
+
},
|
|
509
|
+
"label": {
|
|
510
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
511
|
+
"type": "string",
|
|
512
|
+
"title": "label"
|
|
513
|
+
},
|
|
514
|
+
"enabled": {
|
|
515
|
+
"description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
|
|
516
|
+
"type": "boolean",
|
|
517
|
+
"title": "enabled"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
522
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
523
|
+
"type": "object",
|
|
524
|
+
"properties": {
|
|
525
|
+
"teacherInstructions": {
|
|
526
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
527
|
+
"type": "number",
|
|
528
|
+
"title": "teacherInstructions"
|
|
529
|
+
},
|
|
530
|
+
"prompt": {
|
|
531
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
532
|
+
"type": "number",
|
|
533
|
+
"title": "prompt"
|
|
534
|
+
},
|
|
535
|
+
"rationale": {
|
|
536
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
537
|
+
"type": "number",
|
|
538
|
+
"title": "rationale"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
},
|
|
437
542
|
"ComplexFeedbackType": {
|
|
438
543
|
"title": "ComplexFeedbackType",
|
|
439
544
|
"type": "object",
|
|
@@ -660,7 +765,7 @@
|
|
|
660
765
|
},
|
|
661
766
|
"validation": {
|
|
662
767
|
"description": "Indicates what type of validation should be applied on the response",
|
|
663
|
-
"default": "is
|
|
768
|
+
"default": "is literal",
|
|
664
769
|
"enum": [
|
|
665
770
|
"literal",
|
|
666
771
|
"symbolic"
|
|
@@ -668,6 +773,18 @@
|
|
|
668
773
|
"type": "string",
|
|
669
774
|
"title": "validation"
|
|
670
775
|
},
|
|
776
|
+
"ignoreOrder": {
|
|
777
|
+
"description": "Indicates if the order of expression elements in literal validation can be ignore - whilst the expression is still mathematically correct",
|
|
778
|
+
"default": "is false",
|
|
779
|
+
"type": "boolean",
|
|
780
|
+
"title": "ignoreOrder"
|
|
781
|
+
},
|
|
782
|
+
"allowTrailingZeros": {
|
|
783
|
+
"description": "Indicates the allowance of trailing zeros in expressions - whilst the expression is still mathematically correct",
|
|
784
|
+
"default": "is false",
|
|
785
|
+
"type": "boolean",
|
|
786
|
+
"title": "allowTrailingZeros"
|
|
787
|
+
},
|
|
671
788
|
"answer": {
|
|
672
789
|
"description": "The answer for the question",
|
|
673
790
|
"type": "string",
|
|
@@ -703,9 +820,11 @@
|
|
|
703
820
|
}
|
|
704
821
|
},
|
|
705
822
|
"required": [
|
|
823
|
+
"allowTrailingZeros",
|
|
706
824
|
"alternates",
|
|
707
825
|
"answer",
|
|
708
826
|
"id",
|
|
827
|
+
"ignoreOrder",
|
|
709
828
|
"validation"
|
|
710
829
|
]
|
|
711
830
|
},
|