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

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 (121) hide show
  1. package/configure/lib/defaults.js +216 -0
  2. package/configure/lib/defaults.js.map +1 -0
  3. package/configure/lib/index.js +241 -0
  4. package/configure/lib/index.js.map +1 -0
  5. package/configure/lib/main.js +221 -0
  6. package/configure/lib/main.js.map +1 -0
  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 +1383 -0
  9. package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +5 -0
  10. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
  11. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
  12. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +1270 -0
  13. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +584 -0
  14. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +143 -0
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +204 -0
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +602 -0
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +361 -0
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +556 -0
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +380 -0
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +296 -0
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +14 -0
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +18 -0
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +544 -0
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +94 -0
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +215 -0
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +1 -0
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +13 -0
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +1 -0
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +15 -0
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +803 -0
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +602 -0
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +8 -0
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +180 -0
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +1 -0
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +6 -0
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +531 -0
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +374 -0
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +85 -0
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +161 -0
  52. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +1 -0
  53. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +330 -0
  54. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +1 -0
  55. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +103 -0
  56. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +1 -0
  57. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +24 -0
  58. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +257 -0
  59. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +1640 -0
  60. package/configure/node_modules/@pie-element/rubric/LICENSE.md +5 -0
  61. package/configure/node_modules/@pie-element/rubric/README.md +3 -0
  62. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +197 -0
  63. package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +1471 -0
  64. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +59 -0
  65. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +1 -0
  66. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +194 -0
  67. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +1 -0
  68. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +160 -0
  69. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +1 -0
  70. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js +555 -0
  71. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js.map +1 -0
  72. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js +24 -0
  73. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js.map +1 -0
  74. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js +172 -0
  75. package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js.map +1 -0
  76. package/configure/node_modules/@pie-element/rubric/configure/package.json +17 -0
  77. package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +173 -0
  78. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +39 -0
  79. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +127 -0
  80. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +87 -0
  81. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/authoring.jsx +427 -0
  82. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/index.js +9 -0
  83. package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/point-menu.jsx +94 -0
  84. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +17 -0
  85. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +536 -0
  86. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +51 -0
  87. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +1 -0
  88. package/configure/node_modules/@pie-element/rubric/controller/package.json +13 -0
  89. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +31 -0
  90. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +42 -0
  91. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +382 -0
  92. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +292 -0
  93. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +8 -0
  94. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +8 -0
  95. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +2 -0
  96. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +226 -0
  97. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +161 -0
  98. package/configure/node_modules/@pie-element/rubric/lib/index.js +88 -0
  99. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +1 -0
  100. package/configure/node_modules/@pie-element/rubric/lib/main.js +187 -0
  101. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +1 -0
  102. package/configure/node_modules/@pie-element/rubric/lib/print.js +114 -0
  103. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +1 -0
  104. package/configure/node_modules/@pie-element/rubric/package.json +26 -0
  105. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +23003 -0
  106. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +50 -0
  107. package/configure/node_modules/@pie-element/rubric/src/index.js +34 -0
  108. package/configure/node_modules/@pie-element/rubric/src/main.jsx +136 -0
  109. package/configure/node_modules/@pie-element/rubric/src/print.js +63 -0
  110. package/configure/package.json +2 -2
  111. package/controller/lib/defaults.js +134 -0
  112. package/controller/lib/defaults.js.map +1 -0
  113. package/controller/lib/index.js +307 -0
  114. package/controller/lib/index.js.map +1 -0
  115. package/controller/lib/utils.js +13 -0
  116. package/controller/lib/utils.js.map +1 -0
  117. package/lib/index.js +232 -0
  118. package/lib/index.js.map +1 -0
  119. package/lib/print.js +201 -0
  120. package/lib/print.js.map +1 -0
  121. package/package.json +4 -4
@@ -0,0 +1,602 @@
1
+ Config Object for @pie-elements/multi-trait-rubric
2
+
3
+ The schema defines the following properties:
4
+
5
+ # `baseInputConfiguration` (object)
6
+
7
+ Properties of the `baseInputConfiguration` object:
8
+
9
+ ## `math` (object)
10
+
11
+ Properties of the `math` object:
12
+
13
+ ### `disabled` (boolean)
14
+
15
+ Indicates if the plugin is disabled or not
16
+
17
+ ## `audio` (object)
18
+
19
+ Properties of the `audio` object:
20
+
21
+ ### `disabled` (boolean)
22
+
23
+ Indicates if the plugin is disabled or not
24
+
25
+ ## `video` (object)
26
+
27
+ Properties of the `video` object:
28
+
29
+ ### `disabled` (boolean)
30
+
31
+ Indicates if the plugin is disabled or not
32
+
33
+ ## `image` (object)
34
+
35
+ Properties of the `image` object:
36
+
37
+ ### `disabled` (boolean)
38
+
39
+ Indicates if the plugin is disabled or not
40
+
41
+ ## `customPlugins` (array)
42
+
43
+ An array of objects that determine custom plugins.
44
+ 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).
45
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
46
+
47
+ The object is an array with all elements of the type `object`.
48
+
49
+ The array object has the following properties:
50
+
51
+ ### `event` (string, required)
52
+
53
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
54
+ PIE will emit the event prefixed with "PIE-".
55
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
56
+
57
+ ### `iconAlt` (string, required)
58
+
59
+ The alt for the custom button icon
60
+
61
+ ### `iconType` (string, required)
62
+
63
+ The icon type.
64
+ Currently, only "SVG" is supported.
65
+
66
+ ### `icon` (string, required)
67
+
68
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
69
+
70
+ # `expandedInput` (object)
71
+
72
+ Properties of the `expandedInput` object:
73
+
74
+ ## `inputConfiguration` (object)
75
+
76
+ Properties of the `inputConfiguration` object:
77
+
78
+ ### `math` (object)
79
+
80
+ Properties of the `math` object:
81
+
82
+ #### `disabled` (boolean)
83
+
84
+ Indicates if the plugin is disabled or not
85
+
86
+ ### `audio` (object)
87
+
88
+ Properties of the `audio` object:
89
+
90
+ #### `disabled` (boolean)
91
+
92
+ Indicates if the plugin is disabled or not
93
+
94
+ ### `video` (object)
95
+
96
+ Properties of the `video` object:
97
+
98
+ #### `disabled` (boolean)
99
+
100
+ Indicates if the plugin is disabled or not
101
+
102
+ ### `image` (object)
103
+
104
+ Properties of the `image` object:
105
+
106
+ #### `disabled` (boolean)
107
+
108
+ Indicates if the plugin is disabled or not
109
+
110
+ ### `customPlugins` (array)
111
+
112
+ An array of objects that determine custom plugins.
113
+ 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).
114
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
115
+
116
+ The object is an array with all elements of the type `object`.
117
+
118
+ The array object has the following properties:
119
+
120
+ #### `event` (string, required)
121
+
122
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
123
+ PIE will emit the event prefixed with "PIE-".
124
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
125
+
126
+ #### `iconAlt` (string, required)
127
+
128
+ The alt for the custom button icon
129
+
130
+ #### `iconType` (string, required)
131
+
132
+ The icon type.
133
+ Currently, only "SVG" is supported.
134
+
135
+ #### `icon` (string, required)
136
+
137
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
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
+ # `labelInput` (object)
148
+
149
+ Properties of the `labelInput` object:
150
+
151
+ ## `inputConfiguration` (object)
152
+
153
+ Properties of the `inputConfiguration` object:
154
+
155
+ ### `math` (object)
156
+
157
+ Properties of the `math` object:
158
+
159
+ #### `disabled` (boolean)
160
+
161
+ Indicates if the plugin is disabled or not
162
+
163
+ ### `audio` (object)
164
+
165
+ Properties of the `audio` object:
166
+
167
+ #### `disabled` (boolean)
168
+
169
+ Indicates if the plugin is disabled or not
170
+
171
+ ### `video` (object)
172
+
173
+ Properties of the `video` object:
174
+
175
+ #### `disabled` (boolean)
176
+
177
+ Indicates if the plugin is disabled or not
178
+
179
+ ### `image` (object)
180
+
181
+ Properties of the `image` object:
182
+
183
+ #### `disabled` (boolean)
184
+
185
+ Indicates if the plugin is disabled or not
186
+
187
+ ### `customPlugins` (array)
188
+
189
+ An array of objects that determine custom plugins.
190
+ 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).
191
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
192
+
193
+ The object is an array with all elements of the type `object`.
194
+
195
+ The array object has the following properties:
196
+
197
+ #### `event` (string, required)
198
+
199
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
200
+ PIE will emit the event prefixed with "PIE-".
201
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
202
+
203
+ #### `iconAlt` (string, required)
204
+
205
+ The alt for the custom button icon
206
+
207
+ #### `iconType` (string, required)
208
+
209
+ The icon type.
210
+ Currently, only "SVG" is supported.
211
+
212
+ #### `icon` (string, required)
213
+
214
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
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
+ # `excludeZeroDialogBoxContent` (object)
225
+
226
+ Properties of the `excludeZeroDialogBoxContent` object:
227
+
228
+ ## `title` (string)
229
+
230
+ Dialog box title
231
+
232
+ ## `text` (string)
233
+
234
+ Dialog box text
235
+
236
+ # `includeZeroDialogBoxContent` (object)
237
+
238
+ Properties of the `includeZeroDialogBoxContent` object:
239
+
240
+ ## `title` (string)
241
+
242
+ Dialog box title
243
+
244
+ ## `text` (string)
245
+
246
+ Dialog box text
247
+
248
+ # `deleteScaleDialogBoxContent` (object)
249
+
250
+ Properties of the `deleteScaleDialogBoxContent` object:
251
+
252
+ ## `title` (string)
253
+
254
+ Dialog box title
255
+
256
+ ## `text` (string)
257
+
258
+ Dialog box text
259
+
260
+ # `maxPointsDialogBoxContent` (object)
261
+
262
+ Properties of the `maxPointsDialogBoxContent` object:
263
+
264
+ ## `title` (string)
265
+
266
+ Dialog box title
267
+
268
+ ## `text` (string)
269
+
270
+ Dialog box text
271
+
272
+ # `settingsPanelDisabled` (boolean)
273
+
274
+ Indicates if the settings panel is not available
275
+
276
+ # `showExcludeZero` (object)
277
+
278
+ Properties of the `showExcludeZero` object:
279
+
280
+ ## `settings` (boolean)
281
+
282
+ Indicates if the item has to be displayed in the Settings Panel
283
+
284
+ ## `label` (string)
285
+
286
+ Indicates the label for the item that has to be displayed in the Settings Panel
287
+
288
+ # `showScorePointLabels` (object)
289
+
290
+ Properties of the `showScorePointLabels` object:
291
+
292
+ ## `settings` (boolean)
293
+
294
+ Indicates if the item has to be displayed in the Settings Panel
295
+
296
+ ## `label` (string)
297
+
298
+ Indicates the label for the item that has to be displayed in the Settings Panel
299
+
300
+ # `showDescription` (object)
301
+
302
+ Properties of the `showDescription` object:
303
+
304
+ ## `settings` (boolean)
305
+
306
+ Indicates if the item has to be displayed in the Settings Panel
307
+
308
+ ## `label` (string)
309
+
310
+ Indicates the label for the item that has to be displayed in the Settings Panel
311
+
312
+ # `showVisibleToStudent` (object)
313
+
314
+ Properties of the `showVisibleToStudent` object:
315
+
316
+ ## `settings` (boolean)
317
+
318
+ Indicates if the item has to be displayed in the Settings Panel
319
+
320
+ ## `label` (string)
321
+
322
+ Indicates the label for the item that has to be displayed in the Settings Panel
323
+
324
+ # `showHalfScoring` (object)
325
+
326
+ Properties of the `showHalfScoring` object:
327
+
328
+ ## `settings` (boolean)
329
+
330
+ Indicates if the item has to be displayed in the Settings Panel
331
+
332
+ ## `label` (string)
333
+
334
+ Indicates the label for the item that has to be displayed in the Settings Panel
335
+
336
+ # `spellCheck` (object)
337
+
338
+ Properties of the `spellCheck` object:
339
+
340
+ ## `settings` (boolean)
341
+
342
+ Indicates if the item has to be displayed in the Settings Panel
343
+
344
+ ## `label` (string)
345
+
346
+ Indicates the label for the item that has to be displayed in the Settings Panel
347
+
348
+ # `width` (string, required)
349
+
350
+ How large (in px) should multi-trait-rubric be
351
+
352
+ # `minNoOfTraits` (number)
353
+
354
+ Minimum number of traits
355
+
356
+ # `maxNoOfTraits` (number)
357
+
358
+ Maximum number of traits
359
+
360
+ # `minNoOfScales` (number)
361
+
362
+ Minimum number of scales
363
+
364
+ # `maxNoOfScales` (number)
365
+
366
+ Maximum number of scales
367
+
368
+ # `defaultTraitLabel` (string)
369
+
370
+ The default trait label for new created scales.
371
+ If it's not defined, it will default to the label of the first trait.
372
+
373
+ # `mathMlOptions` (object)
374
+
375
+ Properties of the `mathMlOptions` object:
376
+
377
+ ## `mmlOutput` (number)
378
+
379
+ Indicates if model should have mathML output instead of latex
380
+
381
+ ## `mmlEditing` (number)
382
+
383
+ Indicates if mathML that's already in model should be editable
384
+
385
+ # `maxMaxPoints` (number)
386
+
387
+ Indicates the max limit for scoring points
388
+
389
+ ---
390
+
391
+ # Sub Schemas
392
+
393
+ The schema defines the following additional types:
394
+
395
+ ## `EditableHtmlConfigureProp` (object)
396
+
397
+ Properties of the `EditableHtmlConfigureProp` object:
398
+
399
+ ### `math` (object)
400
+
401
+ Properties of the `math` object:
402
+
403
+ #### `disabled` (boolean)
404
+
405
+ Indicates if the plugin is disabled or not
406
+
407
+ ### `audio` (object)
408
+
409
+ Properties of the `audio` object:
410
+
411
+ #### `disabled` (boolean)
412
+
413
+ Indicates if the plugin is disabled or not
414
+
415
+ ### `video` (object)
416
+
417
+ Properties of the `video` object:
418
+
419
+ #### `disabled` (boolean)
420
+
421
+ Indicates if the plugin is disabled or not
422
+
423
+ ### `image` (object)
424
+
425
+ Properties of the `image` object:
426
+
427
+ #### `disabled` (boolean)
428
+
429
+ Indicates if the plugin is disabled or not
430
+
431
+ ### `customPlugins` (array)
432
+
433
+ An array of objects that determine custom plugins.
434
+ 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).
435
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
436
+
437
+ The object is an array with all elements of the type `object`.
438
+
439
+ The array object has the following properties:
440
+
441
+ #### `event` (string, required)
442
+
443
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
444
+ PIE will emit the event prefixed with "PIE-".
445
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
446
+
447
+ #### `iconAlt` (string, required)
448
+
449
+ The alt for the custom button icon
450
+
451
+ #### `iconType` (string, required)
452
+
453
+ The icon type.
454
+ Currently, only "SVG" is supported.
455
+
456
+ #### `icon` (string, required)
457
+
458
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
459
+
460
+ ## `EditableHtmlButtonConfigure` (object)
461
+
462
+ Properties of the `EditableHtmlButtonConfigure` object:
463
+
464
+ ### `disabled` (boolean)
465
+
466
+ Indicates if the plugin is disabled or not
467
+
468
+ ## `CustomPlugin` (object)
469
+
470
+ Properties of the `CustomPlugin` object:
471
+
472
+ ### `event` (string, required)
473
+
474
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
475
+ PIE will emit the event prefixed with "PIE-".
476
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
477
+
478
+ ### `iconAlt` (string, required)
479
+
480
+ The alt for the custom button icon
481
+
482
+ ### `iconType` (string, required)
483
+
484
+ The icon type.
485
+ Currently, only "SVG" is supported.
486
+
487
+ ### `icon` (string, required)
488
+
489
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
490
+
491
+ ## `EditableHtmlPluginConfigure` (object)
492
+
493
+ Properties of the `EditableHtmlPluginConfigure` object:
494
+
495
+ ### `inputConfiguration` (object)
496
+
497
+ Properties of the `inputConfiguration` object:
498
+
499
+ #### `math` (object)
500
+
501
+ Properties of the `math` object:
502
+
503
+ ##### `disabled` (boolean)
504
+
505
+ Indicates if the plugin is disabled or not
506
+
507
+ #### `audio` (object)
508
+
509
+ Properties of the `audio` object:
510
+
511
+ ##### `disabled` (boolean)
512
+
513
+ Indicates if the plugin is disabled or not
514
+
515
+ #### `video` (object)
516
+
517
+ Properties of the `video` object:
518
+
519
+ ##### `disabled` (boolean)
520
+
521
+ Indicates if the plugin is disabled or not
522
+
523
+ #### `image` (object)
524
+
525
+ Properties of the `image` object:
526
+
527
+ ##### `disabled` (boolean)
528
+
529
+ Indicates if the plugin is disabled or not
530
+
531
+ #### `customPlugins` (array)
532
+
533
+ An array of objects that determine custom plugins.
534
+ 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).
535
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
536
+
537
+ The object is an array with all elements of the type `object`.
538
+
539
+ The array object has the following properties:
540
+
541
+ ##### `event` (string, required)
542
+
543
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
544
+ PIE will emit the event prefixed with "PIE-".
545
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
546
+
547
+ ##### `iconAlt` (string, required)
548
+
549
+ The alt for the custom button icon
550
+
551
+ ##### `iconType` (string, required)
552
+
553
+ The icon type.
554
+ Currently, only "SVG" is supported.
555
+
556
+ ##### `icon` (string, required)
557
+
558
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
559
+
560
+ ### `settings` (boolean)
561
+
562
+ Indicates if the item has to be displayed in the Settings Panel
563
+
564
+ ### `label` (string)
565
+
566
+ Indicates the label for the item that has to be displayed in the Settings Panel
567
+
568
+ ## `DialogContent` (object)
569
+
570
+ Properties of the `DialogContent` object:
571
+
572
+ ### `title` (string)
573
+
574
+ Dialog box title
575
+
576
+ ### `text` (string)
577
+
578
+ Dialog box text
579
+
580
+ ## `ConfigureProp` (object)
581
+
582
+ Properties of the `ConfigureProp` object:
583
+
584
+ ### `settings` (boolean)
585
+
586
+ Indicates if the item has to be displayed in the Settings Panel
587
+
588
+ ### `label` (string)
589
+
590
+ Indicates the label for the item that has to be displayed in the Settings Panel
591
+
592
+ ## `ConfigureMathMLProp` (object)
593
+
594
+ Properties of the `ConfigureMathMLProp` object:
595
+
596
+ ### `mmlOutput` (number)
597
+
598
+ Indicates if model should have mathML output instead of latex
599
+
600
+ ### `mmlEditing` (number)
601
+
602
+ 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
+ 'multi-trait-rubric': '../..',
6
+ },
7
+ models: [model('1', 'multi-trait-rubric')],
8
+ };