@pie-element/ebsr 7.0.22 → 7.0.24-next.2

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 (144) hide show
  1. package/CHANGELOG.md +0 -16
  2. package/configure/CHANGELOG.md +0 -16
  3. package/configure/lib/main.js +6 -4
  4. package/configure/lib/main.js.map +1 -1
  5. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
  6. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +1793 -0
  7. package/{LICENSE.md → configure/node_modules/@pie-element/multiple-choice/LICENSE.md} +0 -0
  8. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
  9. package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
  10. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +1334 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +104 -0
  14. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +198 -0
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +599 -0
  18. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
  20. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
  21. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +20 -0
  22. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
  23. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +768 -0
  24. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +18 -0
  25. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +305 -0
  27. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
  28. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +36 -0
  29. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
  30. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
  31. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +353 -0
  32. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +277 -0
  33. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
  34. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +52 -0
  35. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
  36. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
  37. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +338 -0
  38. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +274 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +298 -0
  40. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
  41. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +157 -0
  42. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
  43. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
  44. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
  45. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +151 -0
  46. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
  47. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +97 -0
  48. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +254 -0
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
  52. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
  53. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +35 -0
  54. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
  55. package/configure/node_modules/@pie-element/multiple-choice/module/configure.js +843 -0
  56. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/controller.js +17304 -17374
  57. package/configure/node_modules/@pie-element/multiple-choice/module/demo.js +77 -0
  58. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/element.js +42 -171
  59. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/index.html +1 -1
  60. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/manifest.json +4 -4
  61. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/print-demo.js +46 -46
  62. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/print.html +1 -1
  63. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/print.js +70 -259
  64. package/configure/node_modules/@pie-element/multiple-choice/package.json +34 -0
  65. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  66. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +427 -0
  67. package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  68. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  69. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  70. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  71. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  72. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  73. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  74. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  75. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  76. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  77. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  78. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +275 -0
  79. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  80. package/configure/node_modules/@pie-lib/math-rendering/package.json +19 -0
  81. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  82. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  83. package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  84. package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  85. package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  86. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  87. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  88. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  89. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  90. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  91. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +234 -0
  92. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  93. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +602 -0
  94. package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  95. package/configure/node_modules/@pie-lib/render-ui/README.md +33 -0
  96. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  97. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  98. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  99. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  100. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  101. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  102. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  103. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  104. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  105. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  106. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  107. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  108. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  109. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  110. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  111. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  112. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  113. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  114. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  115. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  116. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  117. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  118. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  119. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  120. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  121. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  122. package/configure/node_modules/@pie-lib/render-ui/package.json +30 -0
  123. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  124. package/configure/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  125. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  126. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  127. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  128. package/configure/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  129. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  130. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  131. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  132. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  133. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  134. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  135. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  136. package/configure/package.json +3 -3
  137. package/configure/src/__tests__/index.test.js +4 -2
  138. package/configure/src/main.jsx +8 -3
  139. package/controller/lib/index.js +79 -3
  140. package/controller/lib/index.js.map +1 -1
  141. package/controller/src/index.js +55 -0
  142. package/package.json +3 -3
  143. package/module/configure.js +0 -472
  144. package/module/demo.js +0 -77
@@ -0,0 +1,353 @@
1
+ {
2
+ "description": "Config Object for @pie-elements/multiple-choice",
3
+ "additionalProperties": false,
4
+ "type": "object",
5
+ "properties": {
6
+ "answerChoiceCount": {
7
+ "description": "The number of empty choices to show in config view if no choice model is provided",
8
+ "minimum": 1,
9
+ "default": 4,
10
+ "type": "number",
11
+ "title": "answerChoiceCount"
12
+ },
13
+ "addChoiceButton": {
14
+ "title": "ConfigureProp",
15
+ "type": "object",
16
+ "properties": {
17
+ "settings": {
18
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
19
+ "type": "boolean",
20
+ "title": "settings"
21
+ },
22
+ "label": {
23
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
24
+ "type": "string",
25
+ "title": "label"
26
+ }
27
+ }
28
+ },
29
+ "choiceMode": {
30
+ "title": "ConfigureProp",
31
+ "type": "object",
32
+ "properties": {
33
+ "settings": {
34
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
35
+ "type": "boolean",
36
+ "title": "settings"
37
+ },
38
+ "label": {
39
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
40
+ "type": "string",
41
+ "title": "label"
42
+ }
43
+ }
44
+ },
45
+ "choicePrefix": {
46
+ "title": "ConfigureProp",
47
+ "type": "object",
48
+ "properties": {
49
+ "settings": {
50
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
51
+ "type": "boolean",
52
+ "title": "settings"
53
+ },
54
+ "label": {
55
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
56
+ "type": "string",
57
+ "title": "label"
58
+ }
59
+ }
60
+ },
61
+ "deleteChoice": {
62
+ "title": "ConfigureProp",
63
+ "type": "object",
64
+ "properties": {
65
+ "settings": {
66
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
67
+ "type": "boolean",
68
+ "title": "settings"
69
+ },
70
+ "label": {
71
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
72
+ "type": "string",
73
+ "title": "label"
74
+ }
75
+ }
76
+ },
77
+ "feedback": {
78
+ "title": "ConfigureProp",
79
+ "type": "object",
80
+ "properties": {
81
+ "settings": {
82
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
83
+ "type": "boolean",
84
+ "title": "settings"
85
+ },
86
+ "label": {
87
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
88
+ "type": "string",
89
+ "title": "label"
90
+ }
91
+ }
92
+ },
93
+ "prompt": {
94
+ "title": "ConfigureProp",
95
+ "type": "object",
96
+ "properties": {
97
+ "settings": {
98
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
99
+ "type": "boolean",
100
+ "title": "settings"
101
+ },
102
+ "label": {
103
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
104
+ "type": "string",
105
+ "title": "label"
106
+ }
107
+ }
108
+ },
109
+ "spellCheck": {
110
+ "title": "ConfigureProp",
111
+ "type": "object",
112
+ "properties": {
113
+ "settings": {
114
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
115
+ "type": "boolean",
116
+ "title": "settings"
117
+ },
118
+ "label": {
119
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
120
+ "type": "string",
121
+ "title": "label"
122
+ }
123
+ }
124
+ },
125
+ "choicesLayout": {
126
+ "title": "ConfigureProp",
127
+ "type": "object",
128
+ "properties": {
129
+ "settings": {
130
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
131
+ "type": "boolean",
132
+ "title": "settings"
133
+ },
134
+ "label": {
135
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
136
+ "type": "string",
137
+ "title": "label"
138
+ }
139
+ }
140
+ },
141
+ "gridColumns": {
142
+ "title": "ConfigureProp",
143
+ "type": "object",
144
+ "properties": {
145
+ "settings": {
146
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
147
+ "type": "boolean",
148
+ "title": "settings"
149
+ },
150
+ "label": {
151
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
152
+ "type": "string",
153
+ "title": "label"
154
+ }
155
+ }
156
+ },
157
+ "lockChoiceOrder": {
158
+ "title": "ConfigureProp",
159
+ "type": "object",
160
+ "properties": {
161
+ "settings": {
162
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
163
+ "type": "boolean",
164
+ "title": "settings"
165
+ },
166
+ "label": {
167
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
168
+ "type": "string",
169
+ "title": "label"
170
+ }
171
+ }
172
+ },
173
+ "partialScoring": {
174
+ "title": "ConfigureProp",
175
+ "type": "object",
176
+ "properties": {
177
+ "settings": {
178
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
179
+ "type": "boolean",
180
+ "title": "settings"
181
+ },
182
+ "label": {
183
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
184
+ "type": "string",
185
+ "title": "label"
186
+ }
187
+ }
188
+ },
189
+ "rationale": {
190
+ "title": "ConfigureProp",
191
+ "type": "object",
192
+ "properties": {
193
+ "settings": {
194
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
195
+ "type": "boolean",
196
+ "title": "settings"
197
+ },
198
+ "label": {
199
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
200
+ "type": "string",
201
+ "title": "label"
202
+ }
203
+ }
204
+ },
205
+ "scoringType": {
206
+ "title": "ConfigureProp",
207
+ "type": "object",
208
+ "properties": {
209
+ "settings": {
210
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
211
+ "type": "boolean",
212
+ "title": "settings"
213
+ },
214
+ "label": {
215
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
216
+ "type": "string",
217
+ "title": "label"
218
+ }
219
+ }
220
+ },
221
+ "studentInstructions": {
222
+ "title": "ConfigureProp",
223
+ "type": "object",
224
+ "properties": {
225
+ "settings": {
226
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
227
+ "type": "boolean",
228
+ "title": "settings"
229
+ },
230
+ "label": {
231
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
232
+ "type": "string",
233
+ "title": "label"
234
+ }
235
+ }
236
+ },
237
+ "teacherInstructions": {
238
+ "title": "ConfigureProp",
239
+ "type": "object",
240
+ "properties": {
241
+ "settings": {
242
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
243
+ "type": "boolean",
244
+ "title": "settings"
245
+ },
246
+ "label": {
247
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
248
+ "type": "string",
249
+ "title": "label"
250
+ }
251
+ }
252
+ },
253
+ "sequentialChoiceLabels": {
254
+ "title": "ConfigurePropWithEnabled",
255
+ "type": "object",
256
+ "properties": {
257
+ "settings": {
258
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
259
+ "type": "boolean",
260
+ "title": "settings"
261
+ },
262
+ "label": {
263
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
264
+ "type": "string",
265
+ "title": "label"
266
+ },
267
+ "enabled": {
268
+ "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)",
269
+ "type": "boolean",
270
+ "title": "enabled"
271
+ }
272
+ }
273
+ },
274
+ "accessibility": {
275
+ "title": "ConfigureProp",
276
+ "type": "object",
277
+ "properties": {
278
+ "settings": {
279
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
280
+ "type": "boolean",
281
+ "title": "settings"
282
+ },
283
+ "label": {
284
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
285
+ "type": "string",
286
+ "title": "label"
287
+ }
288
+ }
289
+ },
290
+ "minAnswerChoices": {
291
+ "description": "Minimum number of answer choices",
292
+ "type": "number",
293
+ "title": "minAnswerChoices"
294
+ },
295
+ "maxAnswerChoices": {
296
+ "description": "Maximum number of answer choices",
297
+ "type": "number",
298
+ "title": "maxAnswerChoices"
299
+ },
300
+ "showPrompt": {
301
+ "description": "Determines whether prompt field will be displayed or not",
302
+ "default": true,
303
+ "type": "boolean",
304
+ "title": "showPrompt"
305
+ },
306
+ "promptLabel": {
307
+ "description": "The label for the item stem/prompt field",
308
+ "default": "Item Stemm",
309
+ "type": "string",
310
+ "title": "promptLabel"
311
+ }
312
+ },
313
+ "definitions": {
314
+ "ConfigureProp": {
315
+ "title": "ConfigureProp",
316
+ "type": "object",
317
+ "properties": {
318
+ "settings": {
319
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
320
+ "type": "boolean",
321
+ "title": "settings"
322
+ },
323
+ "label": {
324
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
325
+ "type": "string",
326
+ "title": "label"
327
+ }
328
+ }
329
+ },
330
+ "ConfigurePropWithEnabled": {
331
+ "title": "ConfigurePropWithEnabled",
332
+ "type": "object",
333
+ "properties": {
334
+ "settings": {
335
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
336
+ "type": "boolean",
337
+ "title": "settings"
338
+ },
339
+ "label": {
340
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
341
+ "type": "string",
342
+ "title": "label"
343
+ },
344
+ "enabled": {
345
+ "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)",
346
+ "type": "boolean",
347
+ "title": "enabled"
348
+ }
349
+ }
350
+ }
351
+ },
352
+ "$schema": "http://json-schema.org/draft-07/schema#"
353
+ }
@@ -0,0 +1,277 @@
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
+ # `studentInstructions` (object)
172
+
173
+ Properties of the `studentInstructions` object:
174
+
175
+ ## `settings` (boolean)
176
+
177
+ Indicates if the item has to be displayed in the Settings Panel
178
+
179
+ ## `label` (string)
180
+
181
+ Indicates the label for the item that has to be displayed in the Settings Panel
182
+
183
+ # `teacherInstructions` (object)
184
+
185
+ Properties of the `teacherInstructions` object:
186
+
187
+ ## `settings` (boolean)
188
+
189
+ Indicates if the item has to be displayed in the Settings Panel
190
+
191
+ ## `label` (string)
192
+
193
+ Indicates the label for the item that has to be displayed in the Settings Panel
194
+
195
+ # `sequentialChoiceLabels` (object)
196
+
197
+ Properties of the `sequentialChoiceLabels` object:
198
+
199
+ ## `settings` (boolean)
200
+
201
+ Indicates if the item has to be displayed in the Settings Panel
202
+
203
+ ## `label` (string)
204
+
205
+ Indicates the label for the item that has to be displayed in the Settings Panel
206
+
207
+ ## `enabled` (boolean)
208
+
209
+ Indicates the value of the item if it affects config-ui
210
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
211
+
212
+ # `accessibility` (object)
213
+
214
+ Properties of the `accessibility` object:
215
+
216
+ ## `settings` (boolean)
217
+
218
+ Indicates if the item has to be displayed in the Settings Panel
219
+
220
+ ## `label` (string)
221
+
222
+ Indicates the label for the item that has to be displayed in the Settings Panel
223
+
224
+ # `minAnswerChoices` (number)
225
+
226
+ Minimum number of answer choices
227
+
228
+ # `maxAnswerChoices` (number)
229
+
230
+ Maximum number of answer choices
231
+
232
+ # `showPrompt` (boolean)
233
+
234
+ Determines whether prompt field will be displayed or not
235
+
236
+ Default: `true`
237
+
238
+ # `promptLabel` (string)
239
+
240
+ The label for the item stem/prompt field
241
+
242
+ Default: `"Item Stemm"`
243
+
244
+ ---
245
+
246
+ # Sub Schemas
247
+
248
+ The schema defines the following additional types:
249
+
250
+ ## `ConfigureProp` (object)
251
+
252
+ Properties of the `ConfigureProp` object:
253
+
254
+ ### `settings` (boolean)
255
+
256
+ Indicates if the item has to be displayed in the Settings Panel
257
+
258
+ ### `label` (string)
259
+
260
+ Indicates the label for the item that has to be displayed in the Settings Panel
261
+
262
+ ## `ConfigurePropWithEnabled` (object)
263
+
264
+ Properties of the `ConfigurePropWithEnabled` object:
265
+
266
+ ### `settings` (boolean)
267
+
268
+ Indicates if the item has to be displayed in the Settings Panel
269
+
270
+ ### `label` (string)
271
+
272
+ Indicates the label for the item that has to be displayed in the Settings Panel
273
+
274
+ ### `enabled` (boolean)
275
+
276
+ Indicates the value of the item if it affects config-ui
277
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
@@ -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,52 @@
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: 'Which of these northern European countries are EU members? <math><mstack><msrow><mn>111</mn></msrow><msline/></mstack></math>',
50
+ promptEnabled: true,
51
+ toolbarEditorPosition: 'bottom'
52
+ });
@@ -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
+ ];