@pie-element/categorize 6.6.0 → 6.6.1-beta.587
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 +538 -0
- package/configure/CHANGELOG.md +474 -0
- package/configure/lib/defaults.js +56 -5
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/design/builder.js +8 -5
- package/configure/lib/design/builder.js.map +1 -1
- package/configure/lib/design/buttons.js +6 -4
- package/configure/lib/design/buttons.js.map +1 -1
- package/configure/lib/design/categories/RowLabel.js +68 -0
- package/configure/lib/design/categories/RowLabel.js.map +1 -0
- package/configure/lib/design/categories/alternateResponses.js +122 -18
- package/configure/lib/design/categories/alternateResponses.js.map +1 -1
- package/configure/lib/design/categories/category.js +53 -6
- package/configure/lib/design/categories/category.js.map +1 -1
- package/configure/lib/design/categories/choice-preview.js +19 -6
- package/configure/lib/design/categories/choice-preview.js.map +1 -1
- package/configure/lib/design/categories/droppable-placeholder.js +25 -5
- package/configure/lib/design/categories/droppable-placeholder.js.map +1 -1
- package/configure/lib/design/categories/index.js +172 -82
- package/configure/lib/design/categories/index.js.map +1 -1
- package/configure/lib/design/choices/choice.js +83 -13
- package/configure/lib/design/choices/choice.js.map +1 -1
- package/configure/lib/design/choices/config.js +10 -136
- package/configure/lib/design/choices/config.js.map +1 -1
- package/configure/lib/design/choices/index.js +89 -13
- package/configure/lib/design/choices/index.js.map +1 -1
- package/configure/lib/design/header.js +18 -6
- package/configure/lib/design/header.js.map +1 -1
- package/configure/lib/design/index.js +165 -50
- package/configure/lib/design/index.js.map +1 -1
- package/configure/lib/design/input-header.js +69 -11
- package/configure/lib/design/input-header.js.map +1 -1
- package/configure/lib/index.js +18 -4
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/main.js +4 -2
- package/configure/lib/main.js.map +1 -1
- package/configure/lib/utils.js +27 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +9 -9
- package/controller/CHANGELOG.md +128 -0
- package/controller/lib/defaults.js +20 -1
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +173 -30
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/utils.js +60 -0
- package/controller/lib/utils.js.map +1 -0
- package/controller/package.json +4 -4
- package/docs/config-schema.json +181 -0
- package/docs/config-schema.json.md +141 -1
- package/docs/demo/config.js +2 -2
- package/docs/demo/generate.js +5 -8
- package/docs/demo/index.html +1 -1
- package/docs/pie-schema.json +63 -11
- package/docs/pie-schema.json.md +51 -11
- package/lib/categorize/categories.js +30 -24
- package/lib/categorize/categories.js.map +1 -1
- package/lib/categorize/category.js +15 -12
- package/lib/categorize/category.js.map +1 -1
- package/lib/categorize/choice.js +19 -12
- package/lib/categorize/choice.js.map +1 -1
- package/lib/categorize/choices.js +35 -16
- package/lib/categorize/choices.js.map +1 -1
- package/lib/categorize/droppable-placeholder.js +6 -4
- package/lib/categorize/droppable-placeholder.js.map +1 -1
- package/lib/categorize/grid-content.js +3 -3
- package/lib/categorize/grid-content.js.map +1 -1
- package/lib/categorize/index.js +71 -37
- package/lib/categorize/index.js.map +1 -1
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/package.json +9 -8
package/docs/config-schema.json
CHANGED
|
@@ -35,6 +35,22 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
+
"spellCheck": {
|
|
39
|
+
"title": "ConfigureProp",
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"settings": {
|
|
43
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"title": "settings"
|
|
46
|
+
},
|
|
47
|
+
"label": {
|
|
48
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"title": "label"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
38
54
|
"scoringType": {
|
|
39
55
|
"title": "ConfigureProp",
|
|
40
56
|
"type": "object",
|
|
@@ -51,6 +67,11 @@
|
|
|
51
67
|
}
|
|
52
68
|
}
|
|
53
69
|
},
|
|
70
|
+
"settingsPanelDisabled": {
|
|
71
|
+
"description": "Indicates if the settings panel is not available",
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"title": "settingsPanelDisabled"
|
|
74
|
+
},
|
|
54
75
|
"studentInstructions": {
|
|
55
76
|
"title": "ConfigureProp",
|
|
56
77
|
"type": "object",
|
|
@@ -83,6 +104,130 @@
|
|
|
83
104
|
}
|
|
84
105
|
}
|
|
85
106
|
},
|
|
107
|
+
"minChoices": {
|
|
108
|
+
"description": "Minimum number of choices",
|
|
109
|
+
"type": "number",
|
|
110
|
+
"title": "minChoices"
|
|
111
|
+
},
|
|
112
|
+
"maxChoices": {
|
|
113
|
+
"description": "Maximum number of choices",
|
|
114
|
+
"type": "number",
|
|
115
|
+
"title": "maxChoices"
|
|
116
|
+
},
|
|
117
|
+
"choicesPosition": {
|
|
118
|
+
"title": "ConfigureProp",
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"settings": {
|
|
122
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"title": "settings"
|
|
125
|
+
},
|
|
126
|
+
"label": {
|
|
127
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
128
|
+
"type": "string",
|
|
129
|
+
"title": "label"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"maxCategories": {
|
|
134
|
+
"description": "Maximum number of categories",
|
|
135
|
+
"type": "number",
|
|
136
|
+
"title": "maxCategories"
|
|
137
|
+
},
|
|
138
|
+
"minCategoriesPerRow": {
|
|
139
|
+
"description": "Minimum value of categories per row",
|
|
140
|
+
"type": "number",
|
|
141
|
+
"title": "minCategoriesPerRow"
|
|
142
|
+
},
|
|
143
|
+
"maxImageWidth": {
|
|
144
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"teacherInstructions": {
|
|
148
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
149
|
+
"type": "number",
|
|
150
|
+
"title": "teacherInstructions"
|
|
151
|
+
},
|
|
152
|
+
"prompt": {
|
|
153
|
+
"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",
|
|
154
|
+
"type": "number",
|
|
155
|
+
"title": "prompt"
|
|
156
|
+
},
|
|
157
|
+
"rationale": {
|
|
158
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
159
|
+
"type": "number",
|
|
160
|
+
"title": "rationale"
|
|
161
|
+
},
|
|
162
|
+
"choices": {
|
|
163
|
+
"description": "Indicates the max dimension for images in choices",
|
|
164
|
+
"type": "number",
|
|
165
|
+
"title": "choices"
|
|
166
|
+
},
|
|
167
|
+
"rowLabel": {
|
|
168
|
+
"description": "Indicates the max dimension for images in row labels",
|
|
169
|
+
"type": "number",
|
|
170
|
+
"title": "rowLabel"
|
|
171
|
+
},
|
|
172
|
+
"categoryLabel": {
|
|
173
|
+
"description": "Indicates the max dimension for images in category labels",
|
|
174
|
+
"type": "number",
|
|
175
|
+
"title": "categoryLabel"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"maxImageHeight": {
|
|
180
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
181
|
+
"type": "object",
|
|
182
|
+
"properties": {
|
|
183
|
+
"teacherInstructions": {
|
|
184
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
185
|
+
"type": "number",
|
|
186
|
+
"title": "teacherInstructions"
|
|
187
|
+
},
|
|
188
|
+
"prompt": {
|
|
189
|
+
"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",
|
|
190
|
+
"type": "number",
|
|
191
|
+
"title": "prompt"
|
|
192
|
+
},
|
|
193
|
+
"rationale": {
|
|
194
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
195
|
+
"type": "number",
|
|
196
|
+
"title": "rationale"
|
|
197
|
+
},
|
|
198
|
+
"choices": {
|
|
199
|
+
"description": "Indicates the max dimension for images in choices",
|
|
200
|
+
"type": "number",
|
|
201
|
+
"title": "choices"
|
|
202
|
+
},
|
|
203
|
+
"rowLabel": {
|
|
204
|
+
"description": "Indicates the max dimension for images in row labels",
|
|
205
|
+
"type": "number",
|
|
206
|
+
"title": "rowLabel"
|
|
207
|
+
},
|
|
208
|
+
"categoryLabel": {
|
|
209
|
+
"description": "Indicates the max dimension for images in category labels",
|
|
210
|
+
"type": "number",
|
|
211
|
+
"title": "categoryLabel"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"withRubric": {
|
|
216
|
+
"title": "ConfigureProp",
|
|
217
|
+
"type": "object",
|
|
218
|
+
"properties": {
|
|
219
|
+
"settings": {
|
|
220
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
221
|
+
"type": "boolean",
|
|
222
|
+
"title": "settings"
|
|
223
|
+
},
|
|
224
|
+
"label": {
|
|
225
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
226
|
+
"type": "string",
|
|
227
|
+
"title": "label"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
86
231
|
"showPrompt": {
|
|
87
232
|
"description": "Determines whether prompt field will be displayed or not",
|
|
88
233
|
"default": true,
|
|
@@ -118,6 +263,42 @@
|
|
|
118
263
|
"title": "label"
|
|
119
264
|
}
|
|
120
265
|
}
|
|
266
|
+
},
|
|
267
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
268
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
269
|
+
"type": "object",
|
|
270
|
+
"properties": {
|
|
271
|
+
"teacherInstructions": {
|
|
272
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
273
|
+
"type": "number",
|
|
274
|
+
"title": "teacherInstructions"
|
|
275
|
+
},
|
|
276
|
+
"prompt": {
|
|
277
|
+
"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",
|
|
278
|
+
"type": "number",
|
|
279
|
+
"title": "prompt"
|
|
280
|
+
},
|
|
281
|
+
"rationale": {
|
|
282
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
283
|
+
"type": "number",
|
|
284
|
+
"title": "rationale"
|
|
285
|
+
},
|
|
286
|
+
"choices": {
|
|
287
|
+
"description": "Indicates the max dimension for images in choices",
|
|
288
|
+
"type": "number",
|
|
289
|
+
"title": "choices"
|
|
290
|
+
},
|
|
291
|
+
"rowLabel": {
|
|
292
|
+
"description": "Indicates the max dimension for images in row labels",
|
|
293
|
+
"type": "number",
|
|
294
|
+
"title": "rowLabel"
|
|
295
|
+
},
|
|
296
|
+
"categoryLabel": {
|
|
297
|
+
"description": "Indicates the max dimension for images in category labels",
|
|
298
|
+
"type": "number",
|
|
299
|
+
"title": "categoryLabel"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
121
302
|
}
|
|
122
303
|
},
|
|
123
304
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -26,6 +26,18 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
26
26
|
|
|
27
27
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
28
28
|
|
|
29
|
+
# `spellCheck` (object)
|
|
30
|
+
|
|
31
|
+
Properties of the `spellCheck` object:
|
|
32
|
+
|
|
33
|
+
## `settings` (boolean)
|
|
34
|
+
|
|
35
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
36
|
+
|
|
37
|
+
## `label` (string)
|
|
38
|
+
|
|
39
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
40
|
+
|
|
29
41
|
# `scoringType` (object)
|
|
30
42
|
|
|
31
43
|
Properties of the `scoringType` object:
|
|
@@ -38,6 +50,10 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
38
50
|
|
|
39
51
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
40
52
|
|
|
53
|
+
# `settingsPanelDisabled` (boolean)
|
|
54
|
+
|
|
55
|
+
Indicates if the settings panel is not available
|
|
56
|
+
|
|
41
57
|
# `studentInstructions` (object)
|
|
42
58
|
|
|
43
59
|
Properties of the `studentInstructions` object:
|
|
@@ -62,6 +78,102 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
62
78
|
|
|
63
79
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
64
80
|
|
|
81
|
+
# `minChoices` (number)
|
|
82
|
+
|
|
83
|
+
Minimum number of choices
|
|
84
|
+
|
|
85
|
+
# `maxChoices` (number)
|
|
86
|
+
|
|
87
|
+
Maximum number of choices
|
|
88
|
+
|
|
89
|
+
# `choicesPosition` (object)
|
|
90
|
+
|
|
91
|
+
Properties of the `choicesPosition` object:
|
|
92
|
+
|
|
93
|
+
## `settings` (boolean)
|
|
94
|
+
|
|
95
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
96
|
+
|
|
97
|
+
## `label` (string)
|
|
98
|
+
|
|
99
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
100
|
+
|
|
101
|
+
# `maxCategories` (number)
|
|
102
|
+
|
|
103
|
+
Maximum number of categories
|
|
104
|
+
|
|
105
|
+
# `minCategoriesPerRow` (number)
|
|
106
|
+
|
|
107
|
+
Minimum value of categories per row
|
|
108
|
+
|
|
109
|
+
# `maxImageWidth` (object)
|
|
110
|
+
|
|
111
|
+
Properties of the `maxImageWidth` object:
|
|
112
|
+
|
|
113
|
+
## `teacherInstructions` (number)
|
|
114
|
+
|
|
115
|
+
Indicates the max dimension for images in teacher instructions
|
|
116
|
+
|
|
117
|
+
## `prompt` (number)
|
|
118
|
+
|
|
119
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
120
|
+
|
|
121
|
+
## `rationale` (number)
|
|
122
|
+
|
|
123
|
+
Indicates the max dimension for images in rationale
|
|
124
|
+
|
|
125
|
+
## `choices` (number)
|
|
126
|
+
|
|
127
|
+
Indicates the max dimension for images in choices
|
|
128
|
+
|
|
129
|
+
## `rowLabel` (number)
|
|
130
|
+
|
|
131
|
+
Indicates the max dimension for images in row labels
|
|
132
|
+
|
|
133
|
+
## `categoryLabel` (number)
|
|
134
|
+
|
|
135
|
+
Indicates the max dimension for images in category labels
|
|
136
|
+
|
|
137
|
+
# `maxImageHeight` (object)
|
|
138
|
+
|
|
139
|
+
Properties of the `maxImageHeight` object:
|
|
140
|
+
|
|
141
|
+
## `teacherInstructions` (number)
|
|
142
|
+
|
|
143
|
+
Indicates the max dimension for images in teacher instructions
|
|
144
|
+
|
|
145
|
+
## `prompt` (number)
|
|
146
|
+
|
|
147
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
148
|
+
|
|
149
|
+
## `rationale` (number)
|
|
150
|
+
|
|
151
|
+
Indicates the max dimension for images in rationale
|
|
152
|
+
|
|
153
|
+
## `choices` (number)
|
|
154
|
+
|
|
155
|
+
Indicates the max dimension for images in choices
|
|
156
|
+
|
|
157
|
+
## `rowLabel` (number)
|
|
158
|
+
|
|
159
|
+
Indicates the max dimension for images in row labels
|
|
160
|
+
|
|
161
|
+
## `categoryLabel` (number)
|
|
162
|
+
|
|
163
|
+
Indicates the max dimension for images in category labels
|
|
164
|
+
|
|
165
|
+
# `withRubric` (object)
|
|
166
|
+
|
|
167
|
+
Properties of the `withRubric` object:
|
|
168
|
+
|
|
169
|
+
## `settings` (boolean)
|
|
170
|
+
|
|
171
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
172
|
+
|
|
173
|
+
## `label` (string)
|
|
174
|
+
|
|
175
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
176
|
+
|
|
65
177
|
# `showPrompt` (boolean)
|
|
66
178
|
|
|
67
179
|
Determines whether prompt field will be displayed or not
|
|
@@ -96,4 +208,32 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
96
208
|
|
|
97
209
|
### `label` (string)
|
|
98
210
|
|
|
99
|
-
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
211
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
212
|
+
|
|
213
|
+
## `ConfigureMaxImageDimensionsProp` (object)
|
|
214
|
+
|
|
215
|
+
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
|
216
|
+
|
|
217
|
+
### `teacherInstructions` (number)
|
|
218
|
+
|
|
219
|
+
Indicates the max dimension for images in teacher instructions
|
|
220
|
+
|
|
221
|
+
### `prompt` (number)
|
|
222
|
+
|
|
223
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
224
|
+
|
|
225
|
+
### `rationale` (number)
|
|
226
|
+
|
|
227
|
+
Indicates the max dimension for images in rationale
|
|
228
|
+
|
|
229
|
+
### `choices` (number)
|
|
230
|
+
|
|
231
|
+
Indicates the max dimension for images in choices
|
|
232
|
+
|
|
233
|
+
### `rowLabel` (number)
|
|
234
|
+
|
|
235
|
+
Indicates the max dimension for images in row labels
|
|
236
|
+
|
|
237
|
+
### `categoryLabel` (number)
|
|
238
|
+
|
|
239
|
+
Indicates the max dimension for images in category labels
|
package/docs/demo/config.js
CHANGED
package/docs/demo/generate.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const E234 = {
|
|
2
2
|
choicesPosition: 'below',
|
|
3
3
|
lockChoiceOrder: false,
|
|
4
|
-
choicesPerRow: 2,
|
|
5
4
|
choices: [
|
|
6
5
|
{
|
|
7
6
|
content: 'built on board',
|
|
@@ -37,8 +36,7 @@ const E234 = {
|
|
|
37
36
|
categoriesPerRow: 2,
|
|
38
37
|
rationale:
|
|
39
38
|
'<p>Traditional equipment must be carried on board or shipped from Earth. 3D-printed equipment can be built on demand or rebuilt if it gets lost or broken.</p>',
|
|
40
|
-
prompt:
|
|
41
|
-
'<p>Drag <span class="relative-emphasis">two</span> phrases into each of the categories.</p>',
|
|
39
|
+
prompt: '<p>Drag <span class="relative-emphasis">two</span> phrases into each of the categories.</p>',
|
|
42
40
|
partialScoring: true,
|
|
43
41
|
correctResponse: [
|
|
44
42
|
{
|
|
@@ -51,8 +49,8 @@ const E234 = {
|
|
|
51
49
|
},
|
|
52
50
|
],
|
|
53
51
|
};
|
|
52
|
+
|
|
54
53
|
// const E236 = {
|
|
55
|
-
// choicesPerRow: 2,
|
|
56
54
|
// choices: [
|
|
57
55
|
// {
|
|
58
56
|
// id: '0',
|
|
@@ -123,7 +121,6 @@ const E234 = {
|
|
|
123
121
|
// lockChoiceOrder: false,
|
|
124
122
|
// };
|
|
125
123
|
// const E216 = {
|
|
126
|
-
// choicesPerRow: 2,
|
|
127
124
|
// choices: [
|
|
128
125
|
// {
|
|
129
126
|
// categoryCount: 1,
|
|
@@ -244,7 +241,6 @@ const E234 = {
|
|
|
244
241
|
// ],
|
|
245
242
|
// choicesPosition: 'below',
|
|
246
243
|
// lockChoiceOrder: false,
|
|
247
|
-
// choicesPerRow: 2,
|
|
248
244
|
// choices: [
|
|
249
245
|
// {
|
|
250
246
|
// content: '<em>f</em>(<em>x</em>) is increasing',
|
|
@@ -304,11 +300,9 @@ exports.model = (id, element) => ({
|
|
|
304
300
|
categoryCount: 2,
|
|
305
301
|
},
|
|
306
302
|
],
|
|
307
|
-
choicesPerRow: 4,
|
|
308
303
|
choicesPosition: 'below',
|
|
309
304
|
choicesLabel: '',
|
|
310
305
|
lockChoiceOrder: true,
|
|
311
|
-
removeTilesAfterPlacing: false,
|
|
312
306
|
categoriesPerRow: 2,
|
|
313
307
|
categories: [
|
|
314
308
|
{
|
|
@@ -336,10 +330,13 @@ exports.model = (id, element) => ({
|
|
|
336
330
|
alternateResponses: [['id-rosie', 'id-morcov'], ['id-morcov']],
|
|
337
331
|
},
|
|
338
332
|
],
|
|
333
|
+
note: 'The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.',
|
|
339
334
|
rowLabels: ['', ''],
|
|
340
335
|
partialScoring: true,
|
|
341
336
|
feedbackEnabled: true,
|
|
342
337
|
rationaleEnabled: true,
|
|
343
338
|
teacherInstructionsEnabled: true,
|
|
344
339
|
studentInstructionsEnabled: true,
|
|
340
|
+
toolbarEditorPosition: 'bottom',
|
|
341
|
+
rubricEnabled: false,
|
|
345
342
|
});
|
package/docs/demo/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<categorize-element pie-id="1"></categorize-element>
|
|
1
|
+
<categorize-element pie-id="1"></categorize-element>
|
package/docs/pie-schema.json
CHANGED
|
@@ -42,12 +42,6 @@
|
|
|
42
42
|
},
|
|
43
43
|
"title": "choices"
|
|
44
44
|
},
|
|
45
|
-
"choicesPerRow": {
|
|
46
|
-
"description": "The number of columns in which to present the choices",
|
|
47
|
-
"default": 2,
|
|
48
|
-
"type": "number",
|
|
49
|
-
"title": "choicesPerRow"
|
|
50
|
-
},
|
|
51
45
|
"categoriesPerRow": {
|
|
52
46
|
"description": "The number of columns in which to present the categories",
|
|
53
47
|
"default": 2,
|
|
@@ -84,11 +78,6 @@
|
|
|
84
78
|
"type": "boolean",
|
|
85
79
|
"title": "promptEnabled"
|
|
86
80
|
},
|
|
87
|
-
"removeTilesAfterPlacing": {
|
|
88
|
-
"description": "Indicates if the choice, after it is dragged into a category, should be removed from the choices\narea or should remain in place.",
|
|
89
|
-
"type": "boolean",
|
|
90
|
-
"title": "removeTilesAfterPlacing"
|
|
91
|
-
},
|
|
92
81
|
"categories": {
|
|
93
82
|
"description": "The categories in which choices may be placed",
|
|
94
83
|
"type": "array",
|
|
@@ -379,6 +368,11 @@
|
|
|
379
368
|
"type": "boolean",
|
|
380
369
|
"title": "rationaleEnabled"
|
|
381
370
|
},
|
|
371
|
+
"spellCheckEnabled": {
|
|
372
|
+
"description": "Indicates if spellcheck is enabled for the author. Default value is true",
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"title": "spellCheckEnabled"
|
|
375
|
+
},
|
|
382
376
|
"studentInstructionsEnabled": {
|
|
383
377
|
"description": "Indicates if Student Instructions are enabled",
|
|
384
378
|
"type": "boolean",
|
|
@@ -389,6 +383,26 @@
|
|
|
389
383
|
"type": "boolean",
|
|
390
384
|
"title": "teacherInstructionsEnabled"
|
|
391
385
|
},
|
|
386
|
+
"note": {
|
|
387
|
+
"description": "Indicates the note for the answer",
|
|
388
|
+
"type": "string",
|
|
389
|
+
"title": "note"
|
|
390
|
+
},
|
|
391
|
+
"toolbarEditorPosition": {
|
|
392
|
+
"description": "Indicates the editor's toolbar position which can be 'bottom' or 'top'",
|
|
393
|
+
"default": ": 'bottom'",
|
|
394
|
+
"enum": [
|
|
395
|
+
"bottom",
|
|
396
|
+
"top"
|
|
397
|
+
],
|
|
398
|
+
"type": "string",
|
|
399
|
+
"title": "toolbarEditorPosition"
|
|
400
|
+
},
|
|
401
|
+
"rubricEnabled": {
|
|
402
|
+
"description": "Indicates if Rubric is enabled",
|
|
403
|
+
"type": "boolean",
|
|
404
|
+
"title": "rubricEnabled"
|
|
405
|
+
},
|
|
392
406
|
"id": {
|
|
393
407
|
"description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
|
|
394
408
|
"type": "string",
|
|
@@ -408,6 +422,8 @@
|
|
|
408
422
|
"id",
|
|
409
423
|
"prompt",
|
|
410
424
|
"rationaleEnabled",
|
|
425
|
+
"rubricEnabled",
|
|
426
|
+
"spellCheckEnabled",
|
|
411
427
|
"studentInstructionsEnabled",
|
|
412
428
|
"teacherInstructionsEnabled"
|
|
413
429
|
],
|
|
@@ -428,6 +444,42 @@
|
|
|
428
444
|
}
|
|
429
445
|
}
|
|
430
446
|
},
|
|
447
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
448
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
449
|
+
"type": "object",
|
|
450
|
+
"properties": {
|
|
451
|
+
"teacherInstructions": {
|
|
452
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
453
|
+
"type": "number",
|
|
454
|
+
"title": "teacherInstructions"
|
|
455
|
+
},
|
|
456
|
+
"prompt": {
|
|
457
|
+
"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",
|
|
458
|
+
"type": "number",
|
|
459
|
+
"title": "prompt"
|
|
460
|
+
},
|
|
461
|
+
"rationale": {
|
|
462
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
463
|
+
"type": "number",
|
|
464
|
+
"title": "rationale"
|
|
465
|
+
},
|
|
466
|
+
"choices": {
|
|
467
|
+
"description": "Indicates the max dimension for images in choices",
|
|
468
|
+
"type": "number",
|
|
469
|
+
"title": "choices"
|
|
470
|
+
},
|
|
471
|
+
"rowLabel": {
|
|
472
|
+
"description": "Indicates the max dimension for images in row labels",
|
|
473
|
+
"type": "number",
|
|
474
|
+
"title": "rowLabel"
|
|
475
|
+
},
|
|
476
|
+
"categoryLabel": {
|
|
477
|
+
"description": "Indicates the max dimension for images in category labels",
|
|
478
|
+
"type": "number",
|
|
479
|
+
"title": "categoryLabel"
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
431
483
|
"CategoryChoice": {
|
|
432
484
|
"title": "CategoryChoice",
|
|
433
485
|
"type": "object",
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -22,12 +22,6 @@ The xhtml content for the choice
|
|
|
22
22
|
|
|
23
23
|
## `correctResponseCount` (string,number)
|
|
24
24
|
|
|
25
|
-
# `choicesPerRow` (number)
|
|
26
|
-
|
|
27
|
-
The number of columns in which to present the choices
|
|
28
|
-
|
|
29
|
-
Default: `2`
|
|
30
|
-
|
|
31
25
|
# `categoriesPerRow` (number)
|
|
32
26
|
|
|
33
27
|
The number of columns in which to present the categories
|
|
@@ -59,11 +53,6 @@ The question prompt or item stem
|
|
|
59
53
|
|
|
60
54
|
Indicates if the prompt is enabled
|
|
61
55
|
|
|
62
|
-
# `removeTilesAfterPlacing` (boolean)
|
|
63
|
-
|
|
64
|
-
Indicates if the choice, after it is dragged into a category, should be removed from the choices
|
|
65
|
-
area or should remain in place.
|
|
66
|
-
|
|
67
56
|
# `categories` (array, required)
|
|
68
57
|
|
|
69
58
|
The categories in which choices may be placed
|
|
@@ -156,6 +145,10 @@ Indicates if Feedback is enabled
|
|
|
156
145
|
|
|
157
146
|
Indicates if Rationale are enabled
|
|
158
147
|
|
|
148
|
+
# `spellCheckEnabled` (boolean, required)
|
|
149
|
+
|
|
150
|
+
Indicates if spellcheck is enabled for the author. Default value is true
|
|
151
|
+
|
|
159
152
|
# `studentInstructionsEnabled` (boolean, required)
|
|
160
153
|
|
|
161
154
|
Indicates if Student Instructions are enabled
|
|
@@ -164,6 +157,25 @@ Indicates if Student Instructions are enabled
|
|
|
164
157
|
|
|
165
158
|
Indicates if Teacher Instructions are enabled
|
|
166
159
|
|
|
160
|
+
# `note` (string)
|
|
161
|
+
|
|
162
|
+
Indicates the note for the answer
|
|
163
|
+
|
|
164
|
+
# `toolbarEditorPosition` (string, enum)
|
|
165
|
+
|
|
166
|
+
Indicates the editor's toolbar position which can be 'bottom' or 'top'
|
|
167
|
+
|
|
168
|
+
This element must be one of the following enum values:
|
|
169
|
+
|
|
170
|
+
* `bottom`
|
|
171
|
+
* `top`
|
|
172
|
+
|
|
173
|
+
Default: `": 'bottom'"`
|
|
174
|
+
|
|
175
|
+
# `rubricEnabled` (boolean, required)
|
|
176
|
+
|
|
177
|
+
Indicates if Rubric is enabled
|
|
178
|
+
|
|
167
179
|
# `id` (string, required)
|
|
168
180
|
|
|
169
181
|
Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
|
|
@@ -190,6 +202,34 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
190
202
|
|
|
191
203
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
192
204
|
|
|
205
|
+
## `ConfigureMaxImageDimensionsProp` (object)
|
|
206
|
+
|
|
207
|
+
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
|
208
|
+
|
|
209
|
+
### `teacherInstructions` (number)
|
|
210
|
+
|
|
211
|
+
Indicates the max dimension for images in teacher instructions
|
|
212
|
+
|
|
213
|
+
### `prompt` (number)
|
|
214
|
+
|
|
215
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
216
|
+
|
|
217
|
+
### `rationale` (number)
|
|
218
|
+
|
|
219
|
+
Indicates the max dimension for images in rationale
|
|
220
|
+
|
|
221
|
+
### `choices` (number)
|
|
222
|
+
|
|
223
|
+
Indicates the max dimension for images in choices
|
|
224
|
+
|
|
225
|
+
### `rowLabel` (number)
|
|
226
|
+
|
|
227
|
+
Indicates the max dimension for images in row labels
|
|
228
|
+
|
|
229
|
+
### `categoryLabel` (number)
|
|
230
|
+
|
|
231
|
+
Indicates the max dimension for images in category labels
|
|
232
|
+
|
|
193
233
|
## `CategoryChoice` (object)
|
|
194
234
|
|
|
195
235
|
Properties of the `CategoryChoice` object:
|