@pie-element/complex-rubric 2.10.1-next.11 → 2.10.1-next.12

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 (115) hide show
  1. package/configure/package.json +2 -2
  2. package/controller/package.json +1 -1
  3. package/module/configure.js +233613 -0
  4. package/module/controller.js +379 -0
  5. package/module/demo.js +221 -0
  6. package/module/element.js +231245 -0
  7. package/module/index.html +21 -0
  8. package/module/manifest.json +14 -0
  9. package/module/print-demo.js +259 -0
  10. package/module/print.html +18 -0
  11. package/module/print.js +231217 -0
  12. package/package.json +4 -4
  13. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +0 -1
  14. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +0 -1383
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +0 -5
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +0 -55
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +0 -1
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +0 -1270
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +0 -584
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +0 -1
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +0 -143
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +0 -1
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +0 -204
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +0 -1
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +0 -602
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +0 -1
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +0 -361
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +0 -1
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +0 -556
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +0 -1
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +0 -380
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +0 -1
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +0 -296
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +0 -1
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +0 -14
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +0 -1
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +0 -18
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +0 -1
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +0 -544
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +0 -94
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +0 -1
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +0 -215
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +0 -1
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +0 -13
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +0 -1
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +0 -15
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +0 -803
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +0 -602
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +0 -8
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +0 -180
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +0 -1
  52. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +0 -6
  53. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +0 -531
  54. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +0 -374
  55. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +0 -85
  56. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +0 -1
  57. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +0 -161
  58. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +0 -1
  59. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +0 -330
  60. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +0 -1
  61. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +0 -103
  62. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +0 -1
  63. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +0 -24
  64. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +0 -257
  65. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +0 -1640
  66. package/configure/node_modules/@pie-element/rubric/LICENSE.md +0 -5
  67. package/configure/node_modules/@pie-element/rubric/README.md +0 -3
  68. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +0 -197
  69. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +0 -1471
  70. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +0 -59
  71. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +0 -1
  72. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +0 -194
  73. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +0 -1
  74. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +0 -160
  75. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +0 -1
  76. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js +0 -555
  77. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js.map +0 -1
  78. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js +0 -24
  79. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js.map +0 -1
  80. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js +0 -172
  81. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js.map +0 -1
  82. package/configure/node_modules/@pie-element/rubric/configure/package.json +0 -17
  83. package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +0 -173
  84. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +0 -39
  85. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +0 -127
  86. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +0 -87
  87. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/authoring.jsx +0 -427
  88. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/index.js +0 -9
  89. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/point-menu.jsx +0 -94
  90. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +0 -17
  91. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +0 -536
  92. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +0 -51
  93. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +0 -1
  94. package/configure/node_modules/@pie-element/rubric/controller/package.json +0 -13
  95. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +0 -31
  96. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +0 -42
  97. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +0 -382
  98. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +0 -292
  99. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +0 -8
  100. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +0 -8
  101. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +0 -2
  102. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +0 -226
  103. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +0 -161
  104. package/configure/node_modules/@pie-element/rubric/lib/index.js +0 -88
  105. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +0 -1
  106. package/configure/node_modules/@pie-element/rubric/lib/main.js +0 -187
  107. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +0 -1
  108. package/configure/node_modules/@pie-element/rubric/lib/print.js +0 -114
  109. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +0 -1
  110. package/configure/node_modules/@pie-element/rubric/package.json +0 -26
  111. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +0 -23003
  112. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +0 -50
  113. package/configure/node_modules/@pie-element/rubric/src/index.js +0 -34
  114. package/configure/node_modules/@pie-element/rubric/src/main.jsx +0 -136
  115. package/configure/node_modules/@pie-element/rubric/src/print.js +0 -63
@@ -1,382 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "baseInputConfiguration": {
5
- "title": "EditableHtmlConfigureProp",
6
- "type": "object",
7
- "properties": {
8
- "math": {
9
- "title": "EditableHtmlButtonConfigure",
10
- "type": "object",
11
- "properties": {
12
- "disabled": {
13
- "description": "Indicates if the plugin is disabled or not",
14
- "type": "boolean",
15
- "title": "disabled"
16
- }
17
- }
18
- },
19
- "audio": {
20
- "title": "EditableHtmlButtonConfigure",
21
- "type": "object",
22
- "properties": {
23
- "disabled": {
24
- "description": "Indicates if the plugin is disabled or not",
25
- "type": "boolean",
26
- "title": "disabled"
27
- }
28
- }
29
- },
30
- "video": {
31
- "title": "EditableHtmlButtonConfigure",
32
- "type": "object",
33
- "properties": {
34
- "disabled": {
35
- "description": "Indicates if the plugin is disabled or not",
36
- "type": "boolean",
37
- "title": "disabled"
38
- }
39
- }
40
- },
41
- "image": {
42
- "title": "EditableHtmlButtonConfigure",
43
- "type": "object",
44
- "properties": {
45
- "disabled": {
46
- "description": "Indicates if the plugin is disabled or not",
47
- "type": "boolean",
48
- "title": "disabled"
49
- }
50
- }
51
- },
52
- "customPlugins": {
53
- "description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
54
- "type": "array",
55
- "items": {
56
- "title": "CustomPlugin",
57
- "type": "object",
58
- "properties": {
59
- "event": {
60
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
61
- "type": "string",
62
- "title": "event"
63
- },
64
- "iconAlt": {
65
- "description": "The alt for the custom button icon",
66
- "type": "string",
67
- "title": "iconAlt"
68
- },
69
- "iconType": {
70
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
71
- "type": "string",
72
- "title": "iconType"
73
- },
74
- "icon": {
75
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
76
- "type": "string",
77
- "title": "icon"
78
- }
79
- },
80
- "required": [
81
- "event",
82
- "icon",
83
- "iconAlt",
84
- "iconType"
85
- ]
86
- },
87
- "title": "customPlugins"
88
- }
89
- }
90
- },
91
- "settingsPanelDisabled": {
92
- "description": "Indicates if the settings panel is not available",
93
- "type": "boolean",
94
- "title": "settingsPanelDisabled"
95
- },
96
- "showExcludeZero": {
97
- "title": "ConfigureProp",
98
- "type": "object",
99
- "properties": {
100
- "settings": {
101
- "description": "Indicates if the item has to be displayed in the Settings Panel",
102
- "type": "boolean",
103
- "title": "settings"
104
- },
105
- "label": {
106
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
107
- "type": "string",
108
- "title": "label"
109
- }
110
- }
111
- },
112
- "showMaxPoint": {
113
- "title": "ConfigureProp",
114
- "type": "object",
115
- "properties": {
116
- "settings": {
117
- "description": "Indicates if the item has to be displayed in the Settings Panel",
118
- "type": "boolean",
119
- "title": "settings"
120
- },
121
- "label": {
122
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
123
- "type": "string",
124
- "title": "label"
125
- }
126
- }
127
- },
128
- "width": {
129
- "description": "How large can the rubric be",
130
- "type": "string",
131
- "title": "width"
132
- },
133
- "mathMlOptions": {
134
- "title": "ConfigureMathMLProp",
135
- "type": "object",
136
- "properties": {
137
- "mmlOutput": {
138
- "description": "Indicates if model should have mathML output instead of latex",
139
- "type": "number",
140
- "title": "mmlOutput"
141
- },
142
- "mmlEditing": {
143
- "description": "Indicates if mathML that's already in model should be editable",
144
- "type": "number",
145
- "title": "mmlEditing"
146
- }
147
- }
148
- },
149
- "maxMaxPoints": {
150
- "description": "Indicates the max limit for scoring points",
151
- "type": "number",
152
- "title": "maxMaxPoints"
153
- },
154
- "showPrompt": {
155
- "description": "Determines whether prompt field will be displayed or not",
156
- "default": true,
157
- "type": "boolean",
158
- "title": "showPrompt"
159
- },
160
- "promptLabel": {
161
- "description": "The label for the item stem/prompt field",
162
- "default": "Item Stemm",
163
- "type": "string",
164
- "title": "promptLabel"
165
- },
166
- "contentDimensions": {
167
- "description": "Indicates the dimensions configuration for the authoring container\nNote: Some items have a default minimum width because of their content, but if\nthe minWidth is lower than this, the overflow behavior will take care of that",
168
- "default": ": {}",
169
- "type": "object",
170
- "properties": {
171
- "maxHeight": {
172
- "description": "Indicates the max height of the authoring container",
173
- "default": "undefined",
174
- "type": [
175
- "string",
176
- "number"
177
- ],
178
- "title": "maxHeight"
179
- },
180
- "maxWidth": {
181
- "description": "Indicates the max width of the authoring container",
182
- "default": "undefined",
183
- "type": [
184
- "string",
185
- "number"
186
- ],
187
- "title": "maxWidth"
188
- },
189
- "minHeight": {
190
- "description": "Indicates the min height of the authoring container",
191
- "default": "undefined",
192
- "type": [
193
- "string",
194
- "number"
195
- ],
196
- "title": "minHeight"
197
- },
198
- "minWidth": {
199
- "description": "Indicates the min width of the authoring container",
200
- "default": "undefined",
201
- "type": [
202
- "string",
203
- "number"
204
- ],
205
- "title": "minWidth"
206
- }
207
- },
208
- "title": "contentDimensions"
209
- },
210
- "settingsPartialScoring": {
211
- "description": "Indicates whether the settings panel wil allow the author to modify settings for partial scoring",
212
- "default": true,
213
- "type": "boolean",
214
- "title": "settingsPartialScoring"
215
- }
216
- },
217
- "definitions": {
218
- "EditableHtmlConfigureProp": {
219
- "title": "EditableHtmlConfigureProp",
220
- "type": "object",
221
- "properties": {
222
- "math": {
223
- "title": "EditableHtmlButtonConfigure",
224
- "type": "object",
225
- "properties": {
226
- "disabled": {
227
- "description": "Indicates if the plugin is disabled or not",
228
- "type": "boolean",
229
- "title": "disabled"
230
- }
231
- }
232
- },
233
- "audio": {
234
- "title": "EditableHtmlButtonConfigure",
235
- "type": "object",
236
- "properties": {
237
- "disabled": {
238
- "description": "Indicates if the plugin is disabled or not",
239
- "type": "boolean",
240
- "title": "disabled"
241
- }
242
- }
243
- },
244
- "video": {
245
- "title": "EditableHtmlButtonConfigure",
246
- "type": "object",
247
- "properties": {
248
- "disabled": {
249
- "description": "Indicates if the plugin is disabled or not",
250
- "type": "boolean",
251
- "title": "disabled"
252
- }
253
- }
254
- },
255
- "image": {
256
- "title": "EditableHtmlButtonConfigure",
257
- "type": "object",
258
- "properties": {
259
- "disabled": {
260
- "description": "Indicates if the plugin is disabled or not",
261
- "type": "boolean",
262
- "title": "disabled"
263
- }
264
- }
265
- },
266
- "customPlugins": {
267
- "description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
268
- "type": "array",
269
- "items": {
270
- "title": "CustomPlugin",
271
- "type": "object",
272
- "properties": {
273
- "event": {
274
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
275
- "type": "string",
276
- "title": "event"
277
- },
278
- "iconAlt": {
279
- "description": "The alt for the custom button icon",
280
- "type": "string",
281
- "title": "iconAlt"
282
- },
283
- "iconType": {
284
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
285
- "type": "string",
286
- "title": "iconType"
287
- },
288
- "icon": {
289
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
290
- "type": "string",
291
- "title": "icon"
292
- }
293
- },
294
- "required": [
295
- "event",
296
- "icon",
297
- "iconAlt",
298
- "iconType"
299
- ]
300
- },
301
- "title": "customPlugins"
302
- }
303
- }
304
- },
305
- "EditableHtmlButtonConfigure": {
306
- "title": "EditableHtmlButtonConfigure",
307
- "type": "object",
308
- "properties": {
309
- "disabled": {
310
- "description": "Indicates if the plugin is disabled or not",
311
- "type": "boolean",
312
- "title": "disabled"
313
- }
314
- }
315
- },
316
- "CustomPlugin": {
317
- "title": "CustomPlugin",
318
- "type": "object",
319
- "properties": {
320
- "event": {
321
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
322
- "type": "string",
323
- "title": "event"
324
- },
325
- "iconAlt": {
326
- "description": "The alt for the custom button icon",
327
- "type": "string",
328
- "title": "iconAlt"
329
- },
330
- "iconType": {
331
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
332
- "type": "string",
333
- "title": "iconType"
334
- },
335
- "icon": {
336
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
337
- "type": "string",
338
- "title": "icon"
339
- }
340
- },
341
- "required": [
342
- "event",
343
- "icon",
344
- "iconAlt",
345
- "iconType"
346
- ]
347
- },
348
- "ConfigureProp": {
349
- "title": "ConfigureProp",
350
- "type": "object",
351
- "properties": {
352
- "settings": {
353
- "description": "Indicates if the item has to be displayed in the Settings Panel",
354
- "type": "boolean",
355
- "title": "settings"
356
- },
357
- "label": {
358
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
359
- "type": "string",
360
- "title": "label"
361
- }
362
- }
363
- },
364
- "ConfigureMathMLProp": {
365
- "title": "ConfigureMathMLProp",
366
- "type": "object",
367
- "properties": {
368
- "mmlOutput": {
369
- "description": "Indicates if model should have mathML output instead of latex",
370
- "type": "number",
371
- "title": "mmlOutput"
372
- },
373
- "mmlEditing": {
374
- "description": "Indicates if mathML that's already in model should be editable",
375
- "type": "number",
376
- "title": "mmlEditing"
377
- }
378
- }
379
- }
380
- },
381
- "$schema": "http://json-schema.org/draft-07/schema#"
382
- }
@@ -1,292 +0,0 @@
1
- The schema defines the following properties:
2
-
3
- # `baseInputConfiguration` (object)
4
-
5
- Properties of the `baseInputConfiguration` object:
6
-
7
- ## `math` (object)
8
-
9
- Properties of the `math` object:
10
-
11
- ### `disabled` (boolean)
12
-
13
- Indicates if the plugin is disabled or not
14
-
15
- ## `audio` (object)
16
-
17
- Properties of the `audio` object:
18
-
19
- ### `disabled` (boolean)
20
-
21
- Indicates if the plugin is disabled or not
22
-
23
- ## `video` (object)
24
-
25
- Properties of the `video` object:
26
-
27
- ### `disabled` (boolean)
28
-
29
- Indicates if the plugin is disabled or not
30
-
31
- ## `image` (object)
32
-
33
- Properties of the `image` object:
34
-
35
- ### `disabled` (boolean)
36
-
37
- Indicates if the plugin is disabled or not
38
-
39
- ## `customPlugins` (array)
40
-
41
- An array of objects that determine custom plugins.
42
- A custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).
43
- Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
44
-
45
- The object is an array with all elements of the type `object`.
46
-
47
- The array object has the following properties:
48
-
49
- ### `event` (string, required)
50
-
51
- The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
52
- PIE will emit the event prefixed with "PIE-".
53
- Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
54
-
55
- ### `iconAlt` (string, required)
56
-
57
- The alt for the custom button icon
58
-
59
- ### `iconType` (string, required)
60
-
61
- The icon type.
62
- Currently, only "SVG" is supported.
63
-
64
- ### `icon` (string, required)
65
-
66
- The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
67
-
68
- # `settingsPanelDisabled` (boolean)
69
-
70
- Indicates if the settings panel is not available
71
-
72
- # `showExcludeZero` (object)
73
-
74
- Properties of the `showExcludeZero` object:
75
-
76
- ## `settings` (boolean)
77
-
78
- Indicates if the item has to be displayed in the Settings Panel
79
-
80
- ## `label` (string)
81
-
82
- Indicates the label for the item that has to be displayed in the Settings Panel
83
-
84
- # `showMaxPoint` (object)
85
-
86
- Properties of the `showMaxPoint` object:
87
-
88
- ## `settings` (boolean)
89
-
90
- Indicates if the item has to be displayed in the Settings Panel
91
-
92
- ## `label` (string)
93
-
94
- Indicates the label for the item that has to be displayed in the Settings Panel
95
-
96
- # `width` (string)
97
-
98
- How large can the rubric be
99
-
100
- # `mathMlOptions` (object)
101
-
102
- Properties of the `mathMlOptions` object:
103
-
104
- ## `mmlOutput` (number)
105
-
106
- Indicates if model should have mathML output instead of latex
107
-
108
- ## `mmlEditing` (number)
109
-
110
- Indicates if mathML that's already in model should be editable
111
-
112
- # `maxMaxPoints` (number)
113
-
114
- Indicates the max limit for scoring points
115
-
116
- # `showPrompt` (boolean)
117
-
118
- Determines whether prompt field will be displayed or not
119
-
120
- Default: `true`
121
-
122
- # `promptLabel` (string)
123
-
124
- The label for the item stem/prompt field
125
-
126
- Default: `"Item Stemm"`
127
-
128
- # `contentDimensions` (object)
129
-
130
- Indicates the dimensions configuration for the authoring container
131
- Note: Some items have a default minimum width because of their content, but if
132
- the minWidth is lower than this, the overflow behavior will take care of that
133
-
134
- Properties of the `contentDimensions` object:
135
-
136
- ## `maxHeight` (string,number)
137
-
138
- Indicates the max height of the authoring container
139
-
140
- Default: `"undefined"`
141
-
142
- ## `maxWidth` (string,number)
143
-
144
- Indicates the max width of the authoring container
145
-
146
- Default: `"undefined"`
147
-
148
- ## `minHeight` (string,number)
149
-
150
- Indicates the min height of the authoring container
151
-
152
- Default: `"undefined"`
153
-
154
- ## `minWidth` (string,number)
155
-
156
- Indicates the min width of the authoring container
157
-
158
- Default: `"undefined"`
159
-
160
- Default: `": {}"`
161
-
162
- # `settingsPartialScoring` (boolean)
163
-
164
- Indicates whether the settings panel wil allow the author to modify settings for partial scoring
165
-
166
- Default: `true`
167
-
168
- ---
169
-
170
- # Sub Schemas
171
-
172
- The schema defines the following additional types:
173
-
174
- ## `EditableHtmlConfigureProp` (object)
175
-
176
- Properties of the `EditableHtmlConfigureProp` object:
177
-
178
- ### `math` (object)
179
-
180
- Properties of the `math` object:
181
-
182
- #### `disabled` (boolean)
183
-
184
- Indicates if the plugin is disabled or not
185
-
186
- ### `audio` (object)
187
-
188
- Properties of the `audio` object:
189
-
190
- #### `disabled` (boolean)
191
-
192
- Indicates if the plugin is disabled or not
193
-
194
- ### `video` (object)
195
-
196
- Properties of the `video` object:
197
-
198
- #### `disabled` (boolean)
199
-
200
- Indicates if the plugin is disabled or not
201
-
202
- ### `image` (object)
203
-
204
- Properties of the `image` object:
205
-
206
- #### `disabled` (boolean)
207
-
208
- Indicates if the plugin is disabled or not
209
-
210
- ### `customPlugins` (array)
211
-
212
- An array of objects that determine custom plugins.
213
- A custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).
214
- Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
215
-
216
- The object is an array with all elements of the type `object`.
217
-
218
- The array object has the following properties:
219
-
220
- #### `event` (string, required)
221
-
222
- The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
223
- PIE will emit the event prefixed with "PIE-".
224
- Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
225
-
226
- #### `iconAlt` (string, required)
227
-
228
- The alt for the custom button icon
229
-
230
- #### `iconType` (string, required)
231
-
232
- The icon type.
233
- Currently, only "SVG" is supported.
234
-
235
- #### `icon` (string, required)
236
-
237
- The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
238
-
239
- ## `EditableHtmlButtonConfigure` (object)
240
-
241
- Properties of the `EditableHtmlButtonConfigure` object:
242
-
243
- ### `disabled` (boolean)
244
-
245
- Indicates if the plugin is disabled or not
246
-
247
- ## `CustomPlugin` (object)
248
-
249
- Properties of the `CustomPlugin` object:
250
-
251
- ### `event` (string, required)
252
-
253
- The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
254
- PIE will emit the event prefixed with "PIE-".
255
- Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
256
-
257
- ### `iconAlt` (string, required)
258
-
259
- The alt for the custom button icon
260
-
261
- ### `iconType` (string, required)
262
-
263
- The icon type.
264
- Currently, only "SVG" is supported.
265
-
266
- ### `icon` (string, required)
267
-
268
- The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
269
-
270
- ## `ConfigureProp` (object)
271
-
272
- Properties of the `ConfigureProp` object:
273
-
274
- ### `settings` (boolean)
275
-
276
- Indicates if the item has to be displayed in the Settings Panel
277
-
278
- ### `label` (string)
279
-
280
- Indicates the label for the item that has to be displayed in the Settings Panel
281
-
282
- ## `ConfigureMathMLProp` (object)
283
-
284
- Properties of the `ConfigureMathMLProp` object:
285
-
286
- ### `mmlOutput` (number)
287
-
288
- Indicates if model should have mathML output instead of latex
289
-
290
- ### `mmlEditing` (number)
291
-
292
- Indicates if mathML that's already in model should be editable
@@ -1,8 +0,0 @@
1
- const { model } = require('./generate');
2
-
3
- module.exports = {
4
- elements: {
5
- 'pie-rubric': '../..',
6
- },
7
- models: [model('1', 'pie-rubric')],
8
- };
@@ -1,8 +0,0 @@
1
- exports.model = (id, element) => ({
2
- id,
3
- element,
4
- points: ['nothing right', 'a teeny bit right', 'mostly right', 'bingo'],
5
- sampleAnswers: [null, 'just right', 'not left', null],
6
- maxPoints: 3,
7
- excludeZero: false,
8
- });
@@ -1,2 +0,0 @@
1
- <p />
2
- <pie-rubric pie-id="1"></pie-rubric>