@pie-element/ebsr 9.0.2-next.13 → 9.0.2-next.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
  2. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +2478 -0
  3. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +5 -0
  4. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
  5. package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
  6. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  7. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
  8. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +1949 -0
  9. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +133 -0
  10. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +248 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +610 -0
  14. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +18 -0
  18. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
  19. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +869 -0
  20. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +18 -0
  21. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
  22. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +306 -0
  23. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
  24. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +36 -0
  25. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
  27. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +614 -0
  28. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +469 -0
  29. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
  30. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +53 -0
  31. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
  32. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
  33. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +411 -0
  34. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +327 -0
  35. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +332 -0
  36. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
  37. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +165 -0
  38. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
  40. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
  41. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +156 -0
  42. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
  43. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +96 -0
  44. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
  45. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +359 -0
  46. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
  47. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
  48. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +35 -0
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multiple-choice/package.json +31 -0
  52. package/configure/package.json +2 -2
  53. package/controller/package.json +1 -1
  54. package/package.json +3 -3
@@ -0,0 +1,469 @@
1
+ Config Object for @pie-elements/multiple-choice
2
+
3
+ The schema defines the following properties:
4
+
5
+ # `answerChoiceCount` (number)
6
+
7
+ The number of empty choices to show in config view if no choice model is provided
8
+
9
+ Default: `4`
10
+
11
+ Additional restrictions:
12
+
13
+ * Minimum: `1`
14
+
15
+ # `addChoiceButton` (object)
16
+
17
+ Properties of the `addChoiceButton` object:
18
+
19
+ ## `settings` (boolean)
20
+
21
+ Indicates if the item has to be displayed in the Settings Panel
22
+
23
+ ## `label` (string)
24
+
25
+ Indicates the label for the item that has to be displayed in the Settings Panel
26
+
27
+ # `choiceMode` (object)
28
+
29
+ Properties of the `choiceMode` object:
30
+
31
+ ## `settings` (boolean)
32
+
33
+ Indicates if the item has to be displayed in the Settings Panel
34
+
35
+ ## `label` (string)
36
+
37
+ Indicates the label for the item that has to be displayed in the Settings Panel
38
+
39
+ # `choicePrefix` (object)
40
+
41
+ Properties of the `choicePrefix` object:
42
+
43
+ ## `settings` (boolean)
44
+
45
+ Indicates if the item has to be displayed in the Settings Panel
46
+
47
+ ## `label` (string)
48
+
49
+ Indicates the label for the item that has to be displayed in the Settings Panel
50
+
51
+ # `deleteChoice` (object)
52
+
53
+ Properties of the `deleteChoice` object:
54
+
55
+ ## `settings` (boolean)
56
+
57
+ Indicates if the item has to be displayed in the Settings Panel
58
+
59
+ ## `label` (string)
60
+
61
+ Indicates the label for the item that has to be displayed in the Settings Panel
62
+
63
+ # `feedback` (object)
64
+
65
+ Properties of the `feedback` object:
66
+
67
+ ## `settings` (boolean)
68
+
69
+ Indicates if the item has to be displayed in the Settings Panel
70
+
71
+ ## `label` (string)
72
+
73
+ Indicates the label for the item that has to be displayed in the Settings Panel
74
+
75
+ # `prompt` (object)
76
+
77
+ Properties of the `prompt` object:
78
+
79
+ ## `settings` (boolean)
80
+
81
+ Indicates if the item has to be displayed in the Settings Panel
82
+
83
+ ## `label` (string)
84
+
85
+ Indicates the label for the item that has to be displayed in the Settings Panel
86
+
87
+ # `spellCheck` (object)
88
+
89
+ Properties of the `spellCheck` object:
90
+
91
+ ## `settings` (boolean)
92
+
93
+ Indicates if the item has to be displayed in the Settings Panel
94
+
95
+ ## `label` (string)
96
+
97
+ Indicates the label for the item that has to be displayed in the Settings Panel
98
+
99
+ # `choicesLayout` (object)
100
+
101
+ Properties of the `choicesLayout` object:
102
+
103
+ ## `settings` (boolean)
104
+
105
+ Indicates if the item has to be displayed in the Settings Panel
106
+
107
+ ## `label` (string)
108
+
109
+ Indicates the label for the item that has to be displayed in the Settings Panel
110
+
111
+ # `gridColumns` (object)
112
+
113
+ Properties of the `gridColumns` object:
114
+
115
+ ## `settings` (boolean)
116
+
117
+ Indicates if the item has to be displayed in the Settings Panel
118
+
119
+ ## `label` (string)
120
+
121
+ Indicates the label for the item that has to be displayed in the Settings Panel
122
+
123
+ # `lockChoiceOrder` (object)
124
+
125
+ Properties of the `lockChoiceOrder` object:
126
+
127
+ ## `settings` (boolean)
128
+
129
+ Indicates if the item has to be displayed in the Settings Panel
130
+
131
+ ## `label` (string)
132
+
133
+ Indicates the label for the item that has to be displayed in the Settings Panel
134
+
135
+ # `partialScoring` (object)
136
+
137
+ Properties of the `partialScoring` object:
138
+
139
+ ## `settings` (boolean)
140
+
141
+ Indicates if the item has to be displayed in the Settings Panel
142
+
143
+ ## `label` (string)
144
+
145
+ Indicates the label for the item that has to be displayed in the Settings Panel
146
+
147
+ # `rationale` (object)
148
+
149
+ Properties of the `rationale` object:
150
+
151
+ ## `settings` (boolean)
152
+
153
+ Indicates if the item has to be displayed in the Settings Panel
154
+
155
+ ## `label` (string)
156
+
157
+ Indicates the label for the item that has to be displayed in the Settings Panel
158
+
159
+ # `scoringType` (object)
160
+
161
+ Properties of the `scoringType` object:
162
+
163
+ ## `settings` (boolean)
164
+
165
+ Indicates if the item has to be displayed in the Settings Panel
166
+
167
+ ## `label` (string)
168
+
169
+ Indicates the label for the item that has to be displayed in the Settings Panel
170
+
171
+ # `settingsPanelDisabled` (boolean)
172
+
173
+ Indicates if the settings panel is not available
174
+
175
+ # `studentInstructions` (object)
176
+
177
+ Properties of the `studentInstructions` object:
178
+
179
+ ## `settings` (boolean)
180
+
181
+ Indicates if the item has to be displayed in the Settings Panel
182
+
183
+ ## `label` (string)
184
+
185
+ Indicates the label for the item that has to be displayed in the Settings Panel
186
+
187
+ # `teacherInstructions` (object)
188
+
189
+ Properties of the `teacherInstructions` object:
190
+
191
+ ## `settings` (boolean)
192
+
193
+ Indicates if the item has to be displayed in the Settings Panel
194
+
195
+ ## `label` (string)
196
+
197
+ Indicates the label for the item that has to be displayed in the Settings Panel
198
+
199
+ # `sequentialChoiceLabels` (object)
200
+
201
+ Properties of the `sequentialChoiceLabels` object:
202
+
203
+ ## `settings` (boolean)
204
+
205
+ Indicates if the item has to be displayed in the Settings Panel
206
+
207
+ ## `label` (string)
208
+
209
+ Indicates the label for the item that has to be displayed in the Settings Panel
210
+
211
+ ## `enabled` (boolean)
212
+
213
+ Indicates the value of the item if it affects config-ui
214
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
215
+
216
+ # `accessibility` (object)
217
+
218
+ Properties of the `accessibility` object:
219
+
220
+ ## `settings` (boolean)
221
+
222
+ Indicates if the item has to be displayed in the Settings Panel
223
+
224
+ ## `label` (string)
225
+
226
+ Indicates the label for the item that has to be displayed in the Settings Panel
227
+
228
+ # `minAnswerChoices` (number)
229
+
230
+ Minimum number of answer choices
231
+
232
+ # `maxAnswerChoices` (number)
233
+
234
+ Maximum number of answer choices
235
+
236
+ # `maxImageWidth` (object)
237
+
238
+ Properties of the `maxImageWidth` object:
239
+
240
+ ## `teacherInstructions` (number)
241
+
242
+ Indicates the max dimension for images in teacher instructions
243
+
244
+ ## `prompt` (number)
245
+
246
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
247
+
248
+ ## `rationale` (number)
249
+
250
+ Indicates the max dimension for images in rationale
251
+
252
+ ## `choices` (number)
253
+
254
+ Indicates the max dimension for images in choices
255
+
256
+ # `maxImageHeight` (object)
257
+
258
+ Properties of the `maxImageHeight` object:
259
+
260
+ ## `teacherInstructions` (number)
261
+
262
+ Indicates the max dimension for images in teacher instructions
263
+
264
+ ## `prompt` (number)
265
+
266
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
267
+
268
+ ## `rationale` (number)
269
+
270
+ Indicates the max dimension for images in rationale
271
+
272
+ ## `choices` (number)
273
+
274
+ Indicates the max dimension for images in choices
275
+
276
+ # `withRubric` (object)
277
+
278
+ Properties of the `withRubric` object:
279
+
280
+ ## `settings` (boolean)
281
+
282
+ Indicates if the item has to be displayed in the Settings Panel
283
+
284
+ ## `label` (string)
285
+
286
+ Indicates the label for the item that has to be displayed in the Settings Panel
287
+
288
+ # `mathMlOptions` (object)
289
+
290
+ Properties of the `mathMlOptions` object:
291
+
292
+ ## `mmlOutput` (number)
293
+
294
+ Indicates if model should have mathML output instead of latex
295
+
296
+ ## `mmlEditing` (number)
297
+
298
+ Indicates if mathML that's already in model should be editable
299
+
300
+ # `language` (object)
301
+
302
+ Properties of the `language` object:
303
+
304
+ ## `settings` (boolean)
305
+
306
+ Indicates if the item has to be displayed in the Settings Panel
307
+
308
+ ## `label` (string)
309
+
310
+ Indicates the label for the item that has to be displayed in the Settings Panel
311
+
312
+ ## `enabled` (boolean)
313
+
314
+ Indicates the value of the item if it affects config-ui
315
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
316
+
317
+ # `languageChoices` (object)
318
+
319
+ Language choices configuration
320
+ Only available if language is enabled
321
+
322
+ Properties of the `languageChoices` object:
323
+
324
+ ## `label` (string, required)
325
+
326
+ ## `options` (array, required)
327
+
328
+ The object is an array with all elements of the type `object`.
329
+
330
+ The array object has the following properties:
331
+
332
+ ### `value` (string, required)
333
+
334
+ Value of the language option
335
+
336
+ ### `label` (string, required)
337
+
338
+ Label of the language option
339
+
340
+ # `showPrompt` (boolean)
341
+
342
+ Determines whether prompt field will be displayed or not
343
+
344
+ Default: `true`
345
+
346
+ # `promptLabel` (string)
347
+
348
+ The label for the item stem/prompt field
349
+
350
+ Default: `"Item Stemm"`
351
+
352
+ # `contentDimensions` (object)
353
+
354
+ Indicates the dimensions configuration for the authoring container
355
+ Note: Some items have a default minimum width because of their content, but if
356
+ the minWidth is lower than this, the overflow behavior will take care of that
357
+
358
+ Properties of the `contentDimensions` object:
359
+
360
+ ## `maxHeight` (string,number)
361
+
362
+ Indicates the max height of the authoring container
363
+
364
+ Default: `"undefined"`
365
+
366
+ ## `maxWidth` (string,number)
367
+
368
+ Indicates the max width of the authoring container
369
+
370
+ Default: `"undefined"`
371
+
372
+ ## `minHeight` (string,number)
373
+
374
+ Indicates the min height of the authoring container
375
+
376
+ Default: `"undefined"`
377
+
378
+ ## `minWidth` (string,number)
379
+
380
+ Indicates the min width of the authoring container
381
+
382
+ Default: `"undefined"`
383
+
384
+ Default: `": {}"`
385
+
386
+ # `settingsPartialScoring` (boolean)
387
+
388
+ Indicates whether the settings panel wil allow the author to modify settings for partial scoring
389
+
390
+ Default: `true`
391
+
392
+ ---
393
+
394
+ # Sub Schemas
395
+
396
+ The schema defines the following additional types:
397
+
398
+ ## `ConfigureProp` (object)
399
+
400
+ Properties of the `ConfigureProp` object:
401
+
402
+ ### `settings` (boolean)
403
+
404
+ Indicates if the item has to be displayed in the Settings Panel
405
+
406
+ ### `label` (string)
407
+
408
+ Indicates the label for the item that has to be displayed in the Settings Panel
409
+
410
+ ## `ConfigurePropWithEnabled` (object)
411
+
412
+ Properties of the `ConfigurePropWithEnabled` object:
413
+
414
+ ### `settings` (boolean)
415
+
416
+ Indicates if the item has to be displayed in the Settings Panel
417
+
418
+ ### `label` (string)
419
+
420
+ Indicates the label for the item that has to be displayed in the Settings Panel
421
+
422
+ ### `enabled` (boolean)
423
+
424
+ Indicates the value of the item if it affects config-ui
425
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
426
+
427
+ ## `ConfigureMaxImageDimensionsProp` (object)
428
+
429
+ Properties of the `ConfigureMaxImageDimensionsProp` object:
430
+
431
+ ### `teacherInstructions` (number)
432
+
433
+ Indicates the max dimension for images in teacher instructions
434
+
435
+ ### `prompt` (number)
436
+
437
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
438
+
439
+ ### `rationale` (number)
440
+
441
+ Indicates the max dimension for images in rationale
442
+
443
+ ### `choices` (number)
444
+
445
+ Indicates the max dimension for images in choices
446
+
447
+ ## `ConfigureMathMLProp` (object)
448
+
449
+ Properties of the `ConfigureMathMLProp` object:
450
+
451
+ ### `mmlOutput` (number)
452
+
453
+ Indicates if model should have mathML output instead of latex
454
+
455
+ ### `mmlEditing` (number)
456
+
457
+ Indicates if mathML that's already in model should be editable
458
+
459
+ ## `ConfigureLanguageOptionsProp` (object)
460
+
461
+ Properties of the `ConfigureLanguageOptionsProp` object:
462
+
463
+ ### `value` (string, required)
464
+
465
+ Value of the language option
466
+
467
+ ### `label` (string, required)
468
+
469
+ Label of the language option
@@ -0,0 +1,8 @@
1
+ const { model } = require('./generate');
2
+
3
+ module.exports = {
4
+ elements: {
5
+ 'multiple-choice': '../..',
6
+ },
7
+ models: [model('1', 'multiple-choice')],
8
+ };
@@ -0,0 +1,53 @@
1
+ exports.model = (id, element) => ({
2
+ id,
3
+ element,
4
+ choiceMode: 'checkbox',
5
+ choicePrefix: 'numbers',
6
+ choices: [
7
+ {
8
+ correct: true,
9
+ value: 'sweden',
10
+ label: 'Sweden',
11
+ feedback: {
12
+ type: 'none',
13
+ value: '',
14
+ },
15
+ accessibility: 'sweden',
16
+ },
17
+ {
18
+ value: 'iceland',
19
+ label: 'Iceland',
20
+ feedback: {
21
+ type: 'none',
22
+ value: '',
23
+ },
24
+ rationale: 'Rationale for Iceland',
25
+ accessibility: 'iceland',
26
+ },
27
+ {
28
+ value: 'norway',
29
+ label: 'Norway',
30
+ feedback: {
31
+ type: 'none',
32
+ value: '',
33
+ },
34
+ rationale: 'Rationale for Norway',
35
+ accessibility: 'norway',
36
+ },
37
+ {
38
+ correct: true,
39
+ value: 'finland',
40
+ label: 'Finland',
41
+ feedback: {
42
+ type: 'none',
43
+ value: '',
44
+ },
45
+ rationale: 'Rationale for Finland',
46
+ accessibility: 'finland',
47
+ },
48
+ ],
49
+ prompt: "",
50
+ promptEnabled: true,
51
+ toolbarEditorPosition: 'bottom',
52
+ rubricEnabled: false,
53
+ });
@@ -0,0 +1 @@
1
+ <multiple-choice pie-id="1"> </multiple-choice>
@@ -0,0 +1,7 @@
1
+ module.exports = [
2
+ {
3
+ id: '1',
4
+ element: 'multiple-choice',
5
+ // value: ['iceland', 'norway']
6
+ },
7
+ ];