@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.
- package/CHANGELOG.md +0 -16
- package/configure/CHANGELOG.md +0 -16
- package/configure/lib/main.js +6 -4
- package/configure/lib/main.js.map +1 -1
- package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
- package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +1793 -0
- package/{LICENSE.md → configure/node_modules/@pie-element/multiple-choice/LICENSE.md} +0 -0
- package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
- package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
- package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +1334 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +104 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +198 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +599 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +20 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +768 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +18 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +305 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +36 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +353 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +277 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +52 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +338 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +274 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +298 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +157 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +151 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +97 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +254 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +35 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/configure.js +843 -0
- package/{module → configure/node_modules/@pie-element/multiple-choice/module}/controller.js +17304 -17374
- package/configure/node_modules/@pie-element/multiple-choice/module/demo.js +77 -0
- package/{module → configure/node_modules/@pie-element/multiple-choice/module}/element.js +42 -171
- package/{module → configure/node_modules/@pie-element/multiple-choice/module}/index.html +1 -1
- package/{module → configure/node_modules/@pie-element/multiple-choice/module}/manifest.json +4 -4
- package/{module → configure/node_modules/@pie-element/multiple-choice/module}/print-demo.js +46 -46
- package/{module → configure/node_modules/@pie-element/multiple-choice/module}/print.html +1 -1
- package/{module → configure/node_modules/@pie-element/multiple-choice/module}/print.js +70 -259
- package/configure/node_modules/@pie-element/multiple-choice/package.json +34 -0
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +427 -0
- package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +275 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/package.json +19 -0
- package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
- package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
- package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
- package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
- package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +234 -0
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +602 -0
- package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
- package/configure/node_modules/@pie-lib/render-ui/README.md +33 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/package.json +30 -0
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
- package/configure/node_modules/@pie-lib/render-ui/src/color.js +48 -0
- package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
- package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
- package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
- package/configure/node_modules/@pie-lib/render-ui/src/index.js +27 -0
- package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
- package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
- package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
- package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
- package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
- package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
- package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
- package/configure/package.json +3 -3
- package/configure/src/__tests__/index.test.js +4 -2
- package/configure/src/main.jsx +8 -3
- package/controller/lib/index.js +79 -3
- package/controller/lib/index.js.map +1 -1
- package/controller/src/index.js +55 -0
- package/package.json +3 -3
- package/module/configure.js +0 -472
- 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,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>
|