@pie-element/complex-rubric 5.3.4-next.3 → 6.0.0-beta.0

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 (145) hide show
  1. package/configure/lib/defaults.js +52 -24
  2. package/configure/lib/defaults.js.map +1 -1
  3. package/configure/lib/index.js +103 -194
  4. package/configure/lib/index.js.map +1 -1
  5. package/configure/lib/main.js +140 -199
  6. package/configure/lib/main.js.map +1 -1
  7. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +1 -0
  8. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +2491 -0
  9. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
  10. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
  11. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +2333 -0
  12. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +429 -0
  13. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
  14. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +181 -0
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +157 -0
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +455 -0
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +206 -0
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +451 -0
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +275 -0
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +233 -0
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +87 -0
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +24 -0
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +1571 -0
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +18 -0
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +158 -0
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +1 -0
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +11 -0
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +1 -0
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +14 -0
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +1628 -0
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +1202 -0
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +8 -0
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +117 -0
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +1 -0
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +6 -0
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +861 -0
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +614 -0
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +54 -0
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +1 -0
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +123 -0
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +1 -0
  52. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +248 -0
  53. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +1 -0
  54. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +83 -0
  55. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +1 -0
  56. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +32 -0
  57. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +257 -0
  58. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +2774 -0
  59. package/configure/node_modules/@pie-element/rubric/README.md +3 -0
  60. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +197 -0
  61. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +2541 -0
  62. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +67 -0
  63. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +1 -0
  64. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +135 -0
  65. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +1 -0
  66. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +103 -0
  67. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +1 -0
  68. package/configure/node_modules/@pie-element/rubric/configure/package.json +24 -0
  69. package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +178 -0
  70. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +42 -0
  71. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +139 -0
  72. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +87 -0
  73. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +17 -0
  74. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +1564 -0
  75. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js +15 -0
  76. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js.map +1 -0
  77. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +46 -0
  78. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +1 -0
  79. package/configure/node_modules/@pie-element/rubric/controller/package.json +12 -0
  80. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +33 -0
  81. package/configure/node_modules/@pie-element/rubric/controller/src/defaults.js +8 -0
  82. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +41 -0
  83. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +712 -0
  84. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +532 -0
  85. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +8 -0
  86. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +8 -0
  87. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +2 -0
  88. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +391 -0
  89. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +281 -0
  90. package/configure/node_modules/@pie-element/rubric/lib/index.js +52 -0
  91. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +1 -0
  92. package/configure/node_modules/@pie-element/rubric/lib/main.js +210 -0
  93. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +1 -0
  94. package/configure/node_modules/@pie-element/rubric/lib/print.js +71 -0
  95. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +1 -0
  96. package/configure/node_modules/@pie-element/rubric/package.json +30 -0
  97. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +2641 -0
  98. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +49 -0
  99. package/configure/node_modules/@pie-element/rubric/src/index.js +48 -0
  100. package/configure/node_modules/@pie-element/rubric/src/main.jsx +226 -0
  101. package/configure/node_modules/@pie-element/rubric/src/print.js +74 -0
  102. package/configure/node_modules/clsx/clsx.d.ts +6 -0
  103. package/configure/node_modules/clsx/dist/clsx.js +1 -0
  104. package/configure/node_modules/clsx/dist/clsx.m.js +1 -0
  105. package/configure/node_modules/clsx/dist/clsx.min.js +1 -0
  106. package/configure/node_modules/clsx/license +9 -0
  107. package/configure/node_modules/clsx/package.json +37 -0
  108. package/configure/node_modules/clsx/readme.md +88 -0
  109. package/configure/package.json +12 -9
  110. package/configure/src/__tests__/index.test.js +30 -5
  111. package/configure/src/__tests__/main.test.jsx +39 -23
  112. package/configure/src/index.js +13 -6
  113. package/configure/src/main.jsx +16 -15
  114. package/controller/lib/defaults.js +11 -15
  115. package/controller/lib/defaults.js.map +1 -1
  116. package/controller/lib/index.js +117 -180
  117. package/controller/lib/index.js.map +1 -1
  118. package/controller/lib/utils.js +1 -3
  119. package/controller/lib/utils.js.map +1 -1
  120. package/controller/package.json +1 -1
  121. package/lib/index.js +113 -204
  122. package/lib/index.js.map +1 -1
  123. package/lib/print.js +96 -190
  124. package/lib/print.js.map +1 -1
  125. package/package.json +10 -14
  126. package/src/__tests__/index.test.js +25 -7
  127. package/configure/src/__tests__/__snapshots__/main.test.jsx.snap +0 -193
  128. package/esm/configure.js +0 -15856
  129. package/esm/configure.js.map +0 -1
  130. package/esm/controller.js +0 -281
  131. package/esm/controller.js.map +0 -1
  132. package/esm/element.js +0 -179
  133. package/esm/element.js.map +0 -1
  134. package/esm/package.json +0 -3
  135. package/esm/print.js +0 -163
  136. package/esm/print.js.map +0 -1
  137. package/module/configure.js +0 -1
  138. package/module/controller.js +0 -262
  139. package/module/demo.js +0 -221
  140. package/module/element.js +0 -1
  141. package/module/index.html +0 -21
  142. package/module/manifest.json +0 -22
  143. package/module/print-demo.js +0 -259
  144. package/module/print.html +0 -18
  145. package/module/print.js +0 -1
@@ -0,0 +1,532 @@
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
+ ## `blockquote` (object)
69
+
70
+ Properties of the `blockquote` object:
71
+
72
+ ### `disabled` (boolean)
73
+
74
+ Indicates if the plugin is disabled or not
75
+
76
+ ## `h3` (object)
77
+
78
+ Properties of the `h3` object:
79
+
80
+ ### `disabled` (boolean)
81
+
82
+ Indicates if the plugin is disabled or not
83
+
84
+ ## `characters` (object)
85
+
86
+ Properties of the `characters` object:
87
+
88
+ ### `disabled` (boolean)
89
+
90
+ Indicates if the plugin is disabled or not
91
+
92
+ ## `bold` (object)
93
+
94
+ Properties of the `bold` object:
95
+
96
+ ### `disabled` (boolean)
97
+
98
+ Indicates if the plugin is disabled or not
99
+
100
+ ## `html` (object)
101
+
102
+ Properties of the `html` object:
103
+
104
+ ### `disabled` (boolean)
105
+
106
+ Indicates if the plugin is disabled or not
107
+
108
+ ## `italic` (object)
109
+
110
+ Properties of the `italic` object:
111
+
112
+ ### `disabled` (boolean)
113
+
114
+ Indicates if the plugin is disabled or not
115
+
116
+ ## `ol_list` (object)
117
+
118
+ Properties of the `ol_list` object:
119
+
120
+ ### `disabled` (boolean)
121
+
122
+ Indicates if the plugin is disabled or not
123
+
124
+ ## `redo` (object)
125
+
126
+ Properties of the `redo` object:
127
+
128
+ ### `disabled` (boolean)
129
+
130
+ Indicates if the plugin is disabled or not
131
+
132
+ ## `strikethrough` (object)
133
+
134
+ Properties of the `strikethrough` object:
135
+
136
+ ### `disabled` (boolean)
137
+
138
+ Indicates if the plugin is disabled or not
139
+
140
+ ## `sub` (object)
141
+
142
+ Properties of the `sub` object:
143
+
144
+ ### `disabled` (boolean)
145
+
146
+ Indicates if the plugin is disabled or not
147
+
148
+ ## `sup` (object)
149
+
150
+ Properties of the `sup` object:
151
+
152
+ ### `disabled` (boolean)
153
+
154
+ Indicates if the plugin is disabled or not
155
+
156
+ ## `table` (object)
157
+
158
+ Properties of the `table` object:
159
+
160
+ ### `disabled` (boolean)
161
+
162
+ Indicates if the plugin is disabled or not
163
+
164
+ ## `ul_list` (object)
165
+
166
+ Properties of the `ul_list` object:
167
+
168
+ ### `disabled` (boolean)
169
+
170
+ Indicates if the plugin is disabled or not
171
+
172
+ ## `underline` (object)
173
+
174
+ Properties of the `underline` object:
175
+
176
+ ### `disabled` (boolean)
177
+
178
+ Indicates if the plugin is disabled or not
179
+
180
+ ## `undo` (object)
181
+
182
+ Properties of the `undo` object:
183
+
184
+ ### `disabled` (boolean)
185
+
186
+ Indicates if the plugin is disabled or not
187
+
188
+ # `settingsPanelDisabled` (boolean)
189
+
190
+ Indicates if the settings panel is not available
191
+
192
+ # `showExcludeZero` (object)
193
+
194
+ Properties of the `showExcludeZero` object:
195
+
196
+ ## `settings` (boolean)
197
+
198
+ Indicates if the item has to be displayed in the Settings Panel
199
+
200
+ ## `label` (string)
201
+
202
+ Indicates the label for the item that has to be displayed in the Settings Panel
203
+
204
+ # `showMaxPoint` (object)
205
+
206
+ Properties of the `showMaxPoint` object:
207
+
208
+ ## `settings` (boolean)
209
+
210
+ Indicates if the item has to be displayed in the Settings Panel
211
+
212
+ ## `label` (string)
213
+
214
+ Indicates the label for the item that has to be displayed in the Settings Panel
215
+
216
+ # `width` (string)
217
+
218
+ How large can the rubric be
219
+
220
+ # `mathMlOptions` (object)
221
+
222
+ Properties of the `mathMlOptions` object:
223
+
224
+ ## `mmlOutput` (number)
225
+
226
+ Indicates if model should have mathML output instead of latex
227
+
228
+ ## `mmlEditing` (number)
229
+
230
+ Indicates if mathML that's already in model should be editable
231
+
232
+ # `maxMaxPoints` (number)
233
+
234
+ Indicates the max limit for scoring points
235
+
236
+ # `showPrompt` (boolean)
237
+
238
+ Determines whether prompt field will be displayed or not
239
+
240
+ Default: `true`
241
+
242
+ # `promptLabel` (string)
243
+
244
+ The label for the item stem/prompt field
245
+
246
+ Default: `"Item Stemm"`
247
+
248
+ # `contentDimensions` (object)
249
+
250
+ Indicates the dimensions configuration for the authoring container
251
+ Note: Some items have a default minimum width because of their content, but if
252
+ the minWidth is lower than this, the overflow behavior will take care of that
253
+
254
+ Properties of the `contentDimensions` object:
255
+
256
+ ## `maxHeight` (string,number)
257
+
258
+ Indicates the max height of the authoring container
259
+
260
+ Default: `"undefined"`
261
+
262
+ ## `maxWidth` (string,number)
263
+
264
+ Indicates the max width of the authoring container
265
+
266
+ Default: `"undefined"`
267
+
268
+ ## `minHeight` (string,number)
269
+
270
+ Indicates the min height of the authoring container
271
+
272
+ Default: `"undefined"`
273
+
274
+ ## `minWidth` (string,number)
275
+
276
+ Indicates the min width of the authoring container
277
+
278
+ Default: `"undefined"`
279
+
280
+ Default: `": {}"`
281
+
282
+ # `settingsPartialScoring` (boolean)
283
+
284
+ Indicates whether the settings panel wil allow the author to modify settings for partial scoring
285
+
286
+ Default: `true`
287
+
288
+ ---
289
+
290
+ # Sub Schemas
291
+
292
+ The schema defines the following additional types:
293
+
294
+ ## `EditableHtmlConfigureProp` (object)
295
+
296
+ Properties of the `EditableHtmlConfigureProp` object:
297
+
298
+ ### `math` (object)
299
+
300
+ Properties of the `math` object:
301
+
302
+ #### `disabled` (boolean)
303
+
304
+ Indicates if the plugin is disabled or not
305
+
306
+ ### `audio` (object)
307
+
308
+ Properties of the `audio` object:
309
+
310
+ #### `disabled` (boolean)
311
+
312
+ Indicates if the plugin is disabled or not
313
+
314
+ ### `video` (object)
315
+
316
+ Properties of the `video` object:
317
+
318
+ #### `disabled` (boolean)
319
+
320
+ Indicates if the plugin is disabled or not
321
+
322
+ ### `image` (object)
323
+
324
+ Properties of the `image` object:
325
+
326
+ #### `disabled` (boolean)
327
+
328
+ Indicates if the plugin is disabled or not
329
+
330
+ ### `customPlugins` (array)
331
+
332
+ An array of objects that determine custom plugins.
333
+ 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).
334
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
335
+
336
+ The object is an array with all elements of the type `object`.
337
+
338
+ The array object has the following properties:
339
+
340
+ #### `event` (string, required)
341
+
342
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
343
+ PIE will emit the event prefixed with "PIE-".
344
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
345
+
346
+ #### `iconAlt` (string, required)
347
+
348
+ The alt for the custom button icon
349
+
350
+ #### `iconType` (string, required)
351
+
352
+ The icon type.
353
+ Currently, only "SVG" is supported.
354
+
355
+ #### `icon` (string, required)
356
+
357
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
358
+
359
+ ### `blockquote` (object)
360
+
361
+ Properties of the `blockquote` object:
362
+
363
+ #### `disabled` (boolean)
364
+
365
+ Indicates if the plugin is disabled or not
366
+
367
+ ### `h3` (object)
368
+
369
+ Properties of the `h3` object:
370
+
371
+ #### `disabled` (boolean)
372
+
373
+ Indicates if the plugin is disabled or not
374
+
375
+ ### `characters` (object)
376
+
377
+ Properties of the `characters` object:
378
+
379
+ #### `disabled` (boolean)
380
+
381
+ Indicates if the plugin is disabled or not
382
+
383
+ ### `bold` (object)
384
+
385
+ Properties of the `bold` object:
386
+
387
+ #### `disabled` (boolean)
388
+
389
+ Indicates if the plugin is disabled or not
390
+
391
+ ### `html` (object)
392
+
393
+ Properties of the `html` object:
394
+
395
+ #### `disabled` (boolean)
396
+
397
+ Indicates if the plugin is disabled or not
398
+
399
+ ### `italic` (object)
400
+
401
+ Properties of the `italic` object:
402
+
403
+ #### `disabled` (boolean)
404
+
405
+ Indicates if the plugin is disabled or not
406
+
407
+ ### `ol_list` (object)
408
+
409
+ Properties of the `ol_list` object:
410
+
411
+ #### `disabled` (boolean)
412
+
413
+ Indicates if the plugin is disabled or not
414
+
415
+ ### `redo` (object)
416
+
417
+ Properties of the `redo` object:
418
+
419
+ #### `disabled` (boolean)
420
+
421
+ Indicates if the plugin is disabled or not
422
+
423
+ ### `strikethrough` (object)
424
+
425
+ Properties of the `strikethrough` object:
426
+
427
+ #### `disabled` (boolean)
428
+
429
+ Indicates if the plugin is disabled or not
430
+
431
+ ### `sub` (object)
432
+
433
+ Properties of the `sub` object:
434
+
435
+ #### `disabled` (boolean)
436
+
437
+ Indicates if the plugin is disabled or not
438
+
439
+ ### `sup` (object)
440
+
441
+ Properties of the `sup` object:
442
+
443
+ #### `disabled` (boolean)
444
+
445
+ Indicates if the plugin is disabled or not
446
+
447
+ ### `table` (object)
448
+
449
+ Properties of the `table` object:
450
+
451
+ #### `disabled` (boolean)
452
+
453
+ Indicates if the plugin is disabled or not
454
+
455
+ ### `ul_list` (object)
456
+
457
+ Properties of the `ul_list` object:
458
+
459
+ #### `disabled` (boolean)
460
+
461
+ Indicates if the plugin is disabled or not
462
+
463
+ ### `underline` (object)
464
+
465
+ Properties of the `underline` object:
466
+
467
+ #### `disabled` (boolean)
468
+
469
+ Indicates if the plugin is disabled or not
470
+
471
+ ### `undo` (object)
472
+
473
+ Properties of the `undo` object:
474
+
475
+ #### `disabled` (boolean)
476
+
477
+ Indicates if the plugin is disabled or not
478
+
479
+ ## `EditableHtmlButtonConfigure` (object)
480
+
481
+ Properties of the `EditableHtmlButtonConfigure` object:
482
+
483
+ ### `disabled` (boolean)
484
+
485
+ Indicates if the plugin is disabled or not
486
+
487
+ ## `CustomPlugin` (object)
488
+
489
+ Properties of the `CustomPlugin` object:
490
+
491
+ ### `event` (string, required)
492
+
493
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
494
+ PIE will emit the event prefixed with "PIE-".
495
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
496
+
497
+ ### `iconAlt` (string, required)
498
+
499
+ The alt for the custom button icon
500
+
501
+ ### `iconType` (string, required)
502
+
503
+ The icon type.
504
+ Currently, only "SVG" is supported.
505
+
506
+ ### `icon` (string, required)
507
+
508
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
509
+
510
+ ## `ConfigureProp` (object)
511
+
512
+ Properties of the `ConfigureProp` object:
513
+
514
+ ### `settings` (boolean)
515
+
516
+ Indicates if the item has to be displayed in the Settings Panel
517
+
518
+ ### `label` (string)
519
+
520
+ Indicates the label for the item that has to be displayed in the Settings Panel
521
+
522
+ ## `ConfigureMathMLProp` (object)
523
+
524
+ Properties of the `ConfigureMathMLProp` object:
525
+
526
+ ### `mmlOutput` (number)
527
+
528
+ Indicates if model should have mathML output instead of latex
529
+
530
+ ### `mmlEditing` (number)
531
+
532
+ Indicates if mathML that's already in model should be editable
@@ -0,0 +1,8 @@
1
+ const { model } = require('./generate');
2
+
3
+ module.exports = {
4
+ elements: {
5
+ 'pie-rubric': '../..',
6
+ },
7
+ models: [model('1', 'pie-rubric')],
8
+ };
@@ -0,0 +1,8 @@
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
+ });
@@ -0,0 +1,2 @@
1
+ <p />
2
+ <pie-rubric pie-id="1"></pie-rubric>