@pie-element/complex-rubric 6.0.0-beta.1 → 6.0.0-next.42

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 (116) hide show
  1. package/CHANGELOG.md +0 -11
  2. package/configure/CHANGELOG.md +0 -11
  3. package/configure/package.json +6 -6
  4. package/configure/src/__tests__/index.test.js +15 -0
  5. package/configure/src/__tests__/main.test.jsx +7 -0
  6. package/module/configure.js +1 -0
  7. package/module/controller.js +262 -0
  8. package/module/demo.js +221 -0
  9. package/module/element.js +1 -0
  10. package/module/index.html +21 -0
  11. package/module/manifest.json +22 -0
  12. package/module/print-demo.js +259 -0
  13. package/module/print.html +18 -0
  14. package/package.json +5 -5
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +0 -1
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +0 -2491
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +0 -55
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +0 -1
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +0 -2333
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +0 -429
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +0 -1
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +0 -181
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +0 -1
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +0 -157
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +0 -1
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +0 -455
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +0 -1
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +0 -206
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +0 -1
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +0 -451
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +0 -1
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +0 -275
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +0 -1
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +0 -233
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +0 -1
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +0 -87
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +0 -1
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +0 -24
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +0 -1
  40. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +0 -1571
  41. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +0 -18
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +0 -1
  43. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +0 -158
  44. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +0 -1
  45. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +0 -11
  46. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +0 -1
  47. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +0 -14
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +0 -1628
  49. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +0 -1202
  50. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +0 -8
  51. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +0 -117
  52. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +0 -1
  53. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +0 -6
  54. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +0 -861
  55. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +0 -614
  56. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +0 -54
  57. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +0 -1
  58. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +0 -123
  59. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +0 -1
  60. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +0 -248
  61. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +0 -1
  62. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +0 -83
  63. package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +0 -1
  64. package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +0 -32
  65. package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +0 -257
  66. package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +0 -2774
  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 -2541
  70. package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +0 -67
  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 -135
  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 -103
  75. package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +0 -1
  76. package/configure/node_modules/@pie-element/rubric/configure/package.json +0 -24
  77. package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +0 -178
  78. package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +0 -42
  79. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +0 -139
  80. package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +0 -87
  81. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +0 -17
  82. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +0 -1564
  83. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js +0 -15
  84. package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js.map +0 -1
  85. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +0 -46
  86. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +0 -1
  87. package/configure/node_modules/@pie-element/rubric/controller/package.json +0 -12
  88. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +0 -33
  89. package/configure/node_modules/@pie-element/rubric/controller/src/defaults.js +0 -8
  90. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +0 -41
  91. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +0 -712
  92. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +0 -532
  93. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +0 -8
  94. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +0 -8
  95. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +0 -2
  96. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +0 -391
  97. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +0 -281
  98. package/configure/node_modules/@pie-element/rubric/lib/index.js +0 -52
  99. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +0 -1
  100. package/configure/node_modules/@pie-element/rubric/lib/main.js +0 -210
  101. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +0 -1
  102. package/configure/node_modules/@pie-element/rubric/lib/print.js +0 -71
  103. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +0 -1
  104. package/configure/node_modules/@pie-element/rubric/package.json +0 -30
  105. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +0 -2641
  106. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +0 -49
  107. package/configure/node_modules/@pie-element/rubric/src/index.js +0 -48
  108. package/configure/node_modules/@pie-element/rubric/src/main.jsx +0 -226
  109. package/configure/node_modules/@pie-element/rubric/src/print.js +0 -74
  110. package/configure/node_modules/clsx/clsx.d.ts +0 -6
  111. package/configure/node_modules/clsx/dist/clsx.js +0 -1
  112. package/configure/node_modules/clsx/dist/clsx.m.js +0 -1
  113. package/configure/node_modules/clsx/dist/clsx.min.js +0 -1
  114. package/configure/node_modules/clsx/license +0 -9
  115. package/configure/node_modules/clsx/package.json +0 -37
  116. package/configure/node_modules/clsx/readme.md +0 -88
@@ -1,614 +0,0 @@
1
- Model for the MultiTraitRubric Interaction
2
-
3
- The schema defines the following properties:
4
-
5
- # `halfScoring` (boolean)
6
-
7
- Indicates if half scoring is enabled
8
-
9
- # `pointLabels` (boolean)
10
-
11
- Indicates if point labels should be shown
12
-
13
- # `visibleToStudent` (boolean)
14
-
15
- Indicates if should be visible to student
16
-
17
- # `description` (boolean)
18
-
19
- Indicates if description should be shown
20
-
21
- # `standards` (boolean)
22
-
23
- Indicates if standards should be shown
24
-
25
- # `excludeZero` (boolean)
26
-
27
- Indicates if scoring should start at 0 or 1
28
-
29
- # `spellCheckEnabled` (boolean, required)
30
-
31
- Indicates if spellcheck is enabled for the author. Default value is true
32
-
33
- # `scales` (array, required)
34
-
35
- scales
36
-
37
- The object is an array with all elements of the type `object`.
38
-
39
- The array object has the following properties:
40
-
41
- ## `maxPoints` (number, required)
42
-
43
- Indicates max limit for scoring points
44
-
45
- ## `scorePointsLabels` (array, required)
46
-
47
- Score labels. Starting from 0 to max.
48
-
49
- The object is an array with all elements of the type `string`.
50
-
51
- ## `traitLabel` (string, required)
52
-
53
- Trait label
54
-
55
- ## `traits` (array, required)
56
-
57
- Traits
58
-
59
- The object is an array with all elements of the type `object`.
60
-
61
- The array object has the following properties:
62
-
63
- ### `name` (string, required)
64
-
65
- Trait name
66
-
67
- ### `standards` (array, required)
68
-
69
- Trait standards
70
-
71
- The object is an array with all elements of the type `string`.
72
-
73
- ### `description` (string, required)
74
-
75
- Trait description
76
-
77
- ### `scorePointsDescriptors` (array, required)
78
-
79
- Score point descriptors. Starting from 0 to max.
80
-
81
- The object is an array with all elements of the type `string`.
82
-
83
- # `id` (string, required)
84
-
85
- Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
86
-
87
- # `element` (string, required)
88
-
89
- The html Element tag name
90
-
91
- ---
92
-
93
- # Sub Schemas
94
-
95
- The schema defines the following additional types:
96
-
97
- ## `EditableHtmlConfigureProp` (object)
98
-
99
- Properties of the `EditableHtmlConfigureProp` object:
100
-
101
- ### `math` (object)
102
-
103
- Properties of the `math` object:
104
-
105
- #### `disabled` (boolean)
106
-
107
- Indicates if the plugin is disabled or not
108
-
109
- ### `audio` (object)
110
-
111
- Properties of the `audio` object:
112
-
113
- #### `disabled` (boolean)
114
-
115
- Indicates if the plugin is disabled or not
116
-
117
- ### `video` (object)
118
-
119
- Properties of the `video` object:
120
-
121
- #### `disabled` (boolean)
122
-
123
- Indicates if the plugin is disabled or not
124
-
125
- ### `image` (object)
126
-
127
- Properties of the `image` object:
128
-
129
- #### `disabled` (boolean)
130
-
131
- Indicates if the plugin is disabled or not
132
-
133
- ### `customPlugins` (array)
134
-
135
- An array of objects that determine custom plugins.
136
- 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).
137
- Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
138
-
139
- The object is an array with all elements of the type `object`.
140
-
141
- The array object has the following properties:
142
-
143
- #### `event` (string, required)
144
-
145
- The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
146
- PIE will emit the event prefixed with "PIE-".
147
- Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
148
-
149
- #### `iconAlt` (string, required)
150
-
151
- The alt for the custom button icon
152
-
153
- #### `iconType` (string, required)
154
-
155
- The icon type.
156
- Currently, only "SVG" is supported.
157
-
158
- #### `icon` (string, required)
159
-
160
- The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
161
-
162
- ### `blockquote` (object)
163
-
164
- Properties of the `blockquote` object:
165
-
166
- #### `disabled` (boolean)
167
-
168
- Indicates if the plugin is disabled or not
169
-
170
- ### `h3` (object)
171
-
172
- Properties of the `h3` object:
173
-
174
- #### `disabled` (boolean)
175
-
176
- Indicates if the plugin is disabled or not
177
-
178
- ### `characters` (object)
179
-
180
- Properties of the `characters` object:
181
-
182
- #### `disabled` (boolean)
183
-
184
- Indicates if the plugin is disabled or not
185
-
186
- ### `bold` (object)
187
-
188
- Properties of the `bold` object:
189
-
190
- #### `disabled` (boolean)
191
-
192
- Indicates if the plugin is disabled or not
193
-
194
- ### `html` (object)
195
-
196
- Properties of the `html` object:
197
-
198
- #### `disabled` (boolean)
199
-
200
- Indicates if the plugin is disabled or not
201
-
202
- ### `italic` (object)
203
-
204
- Properties of the `italic` object:
205
-
206
- #### `disabled` (boolean)
207
-
208
- Indicates if the plugin is disabled or not
209
-
210
- ### `ol_list` (object)
211
-
212
- Properties of the `ol_list` object:
213
-
214
- #### `disabled` (boolean)
215
-
216
- Indicates if the plugin is disabled or not
217
-
218
- ### `redo` (object)
219
-
220
- Properties of the `redo` object:
221
-
222
- #### `disabled` (boolean)
223
-
224
- Indicates if the plugin is disabled or not
225
-
226
- ### `strikethrough` (object)
227
-
228
- Properties of the `strikethrough` object:
229
-
230
- #### `disabled` (boolean)
231
-
232
- Indicates if the plugin is disabled or not
233
-
234
- ### `sub` (object)
235
-
236
- Properties of the `sub` object:
237
-
238
- #### `disabled` (boolean)
239
-
240
- Indicates if the plugin is disabled or not
241
-
242
- ### `sup` (object)
243
-
244
- Properties of the `sup` object:
245
-
246
- #### `disabled` (boolean)
247
-
248
- Indicates if the plugin is disabled or not
249
-
250
- ### `table` (object)
251
-
252
- Properties of the `table` object:
253
-
254
- #### `disabled` (boolean)
255
-
256
- Indicates if the plugin is disabled or not
257
-
258
- ### `ul_list` (object)
259
-
260
- Properties of the `ul_list` object:
261
-
262
- #### `disabled` (boolean)
263
-
264
- Indicates if the plugin is disabled or not
265
-
266
- ### `underline` (object)
267
-
268
- Properties of the `underline` object:
269
-
270
- #### `disabled` (boolean)
271
-
272
- Indicates if the plugin is disabled or not
273
-
274
- ### `undo` (object)
275
-
276
- Properties of the `undo` object:
277
-
278
- #### `disabled` (boolean)
279
-
280
- Indicates if the plugin is disabled or not
281
-
282
- ## `EditableHtmlButtonConfigure` (object)
283
-
284
- Properties of the `EditableHtmlButtonConfigure` object:
285
-
286
- ### `disabled` (boolean)
287
-
288
- Indicates if the plugin is disabled or not
289
-
290
- ## `CustomPlugin` (object)
291
-
292
- Properties of the `CustomPlugin` object:
293
-
294
- ### `event` (string, required)
295
-
296
- The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
297
- PIE will emit the event prefixed with "PIE-".
298
- Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
299
-
300
- ### `iconAlt` (string, required)
301
-
302
- The alt for the custom button icon
303
-
304
- ### `iconType` (string, required)
305
-
306
- The icon type.
307
- Currently, only "SVG" is supported.
308
-
309
- ### `icon` (string, required)
310
-
311
- The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
312
-
313
- ## `EditableHtmlPluginConfigure` (object)
314
-
315
- Properties of the `EditableHtmlPluginConfigure` object:
316
-
317
- ### `inputConfiguration` (object)
318
-
319
- Properties of the `inputConfiguration` object:
320
-
321
- #### `math` (object)
322
-
323
- Properties of the `math` object:
324
-
325
- ##### `disabled` (boolean)
326
-
327
- Indicates if the plugin is disabled or not
328
-
329
- #### `audio` (object)
330
-
331
- Properties of the `audio` object:
332
-
333
- ##### `disabled` (boolean)
334
-
335
- Indicates if the plugin is disabled or not
336
-
337
- #### `video` (object)
338
-
339
- Properties of the `video` object:
340
-
341
- ##### `disabled` (boolean)
342
-
343
- Indicates if the plugin is disabled or not
344
-
345
- #### `image` (object)
346
-
347
- Properties of the `image` object:
348
-
349
- ##### `disabled` (boolean)
350
-
351
- Indicates if the plugin is disabled or not
352
-
353
- #### `customPlugins` (array)
354
-
355
- An array of objects that determine custom plugins.
356
- 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).
357
- Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
358
-
359
- The object is an array with all elements of the type `object`.
360
-
361
- The array object has the following properties:
362
-
363
- ##### `event` (string, required)
364
-
365
- The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
366
- PIE will emit the event prefixed with "PIE-".
367
- Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
368
-
369
- ##### `iconAlt` (string, required)
370
-
371
- The alt for the custom button icon
372
-
373
- ##### `iconType` (string, required)
374
-
375
- The icon type.
376
- Currently, only "SVG" is supported.
377
-
378
- ##### `icon` (string, required)
379
-
380
- The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
381
-
382
- #### `blockquote` (object)
383
-
384
- Properties of the `blockquote` object:
385
-
386
- ##### `disabled` (boolean)
387
-
388
- Indicates if the plugin is disabled or not
389
-
390
- #### `h3` (object)
391
-
392
- Properties of the `h3` object:
393
-
394
- ##### `disabled` (boolean)
395
-
396
- Indicates if the plugin is disabled or not
397
-
398
- #### `characters` (object)
399
-
400
- Properties of the `characters` object:
401
-
402
- ##### `disabled` (boolean)
403
-
404
- Indicates if the plugin is disabled or not
405
-
406
- #### `bold` (object)
407
-
408
- Properties of the `bold` object:
409
-
410
- ##### `disabled` (boolean)
411
-
412
- Indicates if the plugin is disabled or not
413
-
414
- #### `html` (object)
415
-
416
- Properties of the `html` object:
417
-
418
- ##### `disabled` (boolean)
419
-
420
- Indicates if the plugin is disabled or not
421
-
422
- #### `italic` (object)
423
-
424
- Properties of the `italic` object:
425
-
426
- ##### `disabled` (boolean)
427
-
428
- Indicates if the plugin is disabled or not
429
-
430
- #### `ol_list` (object)
431
-
432
- Properties of the `ol_list` object:
433
-
434
- ##### `disabled` (boolean)
435
-
436
- Indicates if the plugin is disabled or not
437
-
438
- #### `redo` (object)
439
-
440
- Properties of the `redo` object:
441
-
442
- ##### `disabled` (boolean)
443
-
444
- Indicates if the plugin is disabled or not
445
-
446
- #### `strikethrough` (object)
447
-
448
- Properties of the `strikethrough` object:
449
-
450
- ##### `disabled` (boolean)
451
-
452
- Indicates if the plugin is disabled or not
453
-
454
- #### `sub` (object)
455
-
456
- Properties of the `sub` object:
457
-
458
- ##### `disabled` (boolean)
459
-
460
- Indicates if the plugin is disabled or not
461
-
462
- #### `sup` (object)
463
-
464
- Properties of the `sup` object:
465
-
466
- ##### `disabled` (boolean)
467
-
468
- Indicates if the plugin is disabled or not
469
-
470
- #### `table` (object)
471
-
472
- Properties of the `table` object:
473
-
474
- ##### `disabled` (boolean)
475
-
476
- Indicates if the plugin is disabled or not
477
-
478
- #### `ul_list` (object)
479
-
480
- Properties of the `ul_list` object:
481
-
482
- ##### `disabled` (boolean)
483
-
484
- Indicates if the plugin is disabled or not
485
-
486
- #### `underline` (object)
487
-
488
- Properties of the `underline` object:
489
-
490
- ##### `disabled` (boolean)
491
-
492
- Indicates if the plugin is disabled or not
493
-
494
- #### `undo` (object)
495
-
496
- Properties of the `undo` object:
497
-
498
- ##### `disabled` (boolean)
499
-
500
- Indicates if the plugin is disabled or not
501
-
502
- ### `settings` (boolean)
503
-
504
- Indicates if the item has to be displayed in the Settings Panel
505
-
506
- ### `label` (string)
507
-
508
- Indicates the label for the item that has to be displayed in the Settings Panel
509
-
510
- ## `DialogContent` (object)
511
-
512
- Properties of the `DialogContent` object:
513
-
514
- ### `title` (string)
515
-
516
- Dialog box title
517
-
518
- ### `text` (string)
519
-
520
- Dialog box text
521
-
522
- ## `ConfigureProp` (object)
523
-
524
- Properties of the `ConfigureProp` object:
525
-
526
- ### `settings` (boolean)
527
-
528
- Indicates if the item has to be displayed in the Settings Panel
529
-
530
- ### `label` (string)
531
-
532
- Indicates the label for the item that has to be displayed in the Settings Panel
533
-
534
- ## `ConfigureMathMLProp` (object)
535
-
536
- Properties of the `ConfigureMathMLProp` object:
537
-
538
- ### `mmlOutput` (number)
539
-
540
- Indicates if model should have mathML output instead of latex
541
-
542
- ### `mmlEditing` (number)
543
-
544
- Indicates if mathML that's already in model should be editable
545
-
546
- ## `Scale` (object)
547
-
548
- Properties of the `Scale` object:
549
-
550
- ### `maxPoints` (number, required)
551
-
552
- Indicates max limit for scoring points
553
-
554
- ### `scorePointsLabels` (array, required)
555
-
556
- Score labels. Starting from 0 to max.
557
-
558
- The object is an array with all elements of the type `string`.
559
-
560
- ### `traitLabel` (string, required)
561
-
562
- Trait label
563
-
564
- ### `traits` (array, required)
565
-
566
- Traits
567
-
568
- The object is an array with all elements of the type `object`.
569
-
570
- The array object has the following properties:
571
-
572
- #### `name` (string, required)
573
-
574
- Trait name
575
-
576
- #### `standards` (array, required)
577
-
578
- Trait standards
579
-
580
- The object is an array with all elements of the type `string`.
581
-
582
- #### `description` (string, required)
583
-
584
- Trait description
585
-
586
- #### `scorePointsDescriptors` (array, required)
587
-
588
- Score point descriptors. Starting from 0 to max.
589
-
590
- The object is an array with all elements of the type `string`.
591
-
592
- ## `Trait` (object)
593
-
594
- Properties of the `Trait` object:
595
-
596
- ### `name` (string, required)
597
-
598
- Trait name
599
-
600
- ### `standards` (array, required)
601
-
602
- Trait standards
603
-
604
- The object is an array with all elements of the type `string`.
605
-
606
- ### `description` (string, required)
607
-
608
- Trait description
609
-
610
- ### `scorePointsDescriptors` (array, required)
611
-
612
- Score point descriptors. Starting from 0 to max.
613
-
614
- The object is an array with all elements of the type `string`.
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _client = require("react-dom/client");
10
- var _piePlayerEvents = require("@pie-framework/pie-player-events");
11
- var _main = _interopRequireDefault(require("./main"));
12
- var _mathRendering = require("@pie-lib/math-rendering");
13
- class MultiTraitRubric extends HTMLElement {
14
- constructor() {
15
- super();
16
- this._model = {};
17
- this._session = null;
18
- this._root = null;
19
- }
20
- set model(s) {
21
- this._model = s;
22
- this.dispatchEvent(new _piePlayerEvents.ModelSetEvent(this.tagName.toLowerCase(), this._session, !!this._model));
23
- this._render();
24
- }
25
- set session(s) {
26
- this._session = s;
27
- }
28
- get session() {
29
- return this._session;
30
- }
31
- connectedCallback() {
32
- this._render();
33
- }
34
- _render() {
35
- const el = /*#__PURE__*/_react.default.createElement(_main.default, {
36
- model: this._model,
37
- session: this._session
38
- });
39
- if (!this._root) {
40
- this._root = (0, _client.createRoot)(this);
41
- }
42
- this._root.render(el);
43
- queueMicrotask(() => {
44
- (0, _mathRendering.renderMath)(this);
45
- });
46
- }
47
- disconnectedCallback() {
48
- if (this._root) {
49
- this._root.unmount();
50
- }
51
- }
52
- }
53
- exports.default = MultiTraitRubric;
54
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_client","_piePlayerEvents","_main","_mathRendering","MultiTraitRubric","HTMLElement","constructor","_model","_session","_root","model","s","dispatchEvent","ModelSetEvent","tagName","toLowerCase","_render","session","connectedCallback","el","React","createElement","Main","createRoot","render","queueMicrotask","renderMath","disconnectedCallback","unmount","exports","default"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { ModelSetEvent } from '@pie-framework/pie-player-events';\nimport Main from './main';\nimport { renderMath } from '@pie-lib/math-rendering';\n\nexport default class MultiTraitRubric extends HTMLElement {\n constructor() {\n super();\n this._model = {};\n this._session = null;\n this._root = null;\n }\n\n set model(s) {\n this._model = s;\n this.dispatchEvent(new ModelSetEvent(this.tagName.toLowerCase(), this._session, !!this._model));\n\n this._render();\n }\n\n set session(s) {\n this._session = s;\n }\n\n get session() {\n return this._session;\n }\n\n connectedCallback() {\n this._render();\n }\n\n _render() {\n const el = React.createElement(Main, { model: this._model, session: this._session });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n queueMicrotask(() => {\n renderMath(this);\n });\n }\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n }\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAEe,MAAMK,gBAAgB,SAASC,WAAW,CAAC;EACxDC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,MAAM,GAAG,CAAC,CAAC;IAChB,IAAI,CAACC,QAAQ,GAAG,IAAI;IACpB,IAAI,CAACC,KAAK,GAAG,IAAI;EACnB;EAEA,IAAIC,KAAKA,CAACC,CAAC,EAAE;IACX,IAAI,CAACJ,MAAM,GAAGI,CAAC;IACf,IAAI,CAACC,aAAa,CAAC,IAAIC,8BAAa,CAAC,IAAI,CAACC,OAAO,CAACC,WAAW,CAAC,CAAC,EAAE,IAAI,CAACP,QAAQ,EAAE,CAAC,CAAC,IAAI,CAACD,MAAM,CAAC,CAAC;IAE/F,IAAI,CAACS,OAAO,CAAC,CAAC;EAChB;EAEA,IAAIC,OAAOA,CAACN,CAAC,EAAE;IACb,IAAI,CAACH,QAAQ,GAAGG,CAAC;EACnB;EAEA,IAAIM,OAAOA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACT,QAAQ;EACtB;EAEAU,iBAAiBA,CAAA,EAAG;IAClB,IAAI,CAACF,OAAO,CAAC,CAAC;EAChB;EAEAA,OAAOA,CAAA,EAAG;IACR,MAAMG,EAAE,gBAAGC,cAAK,CAACC,aAAa,CAACC,aAAI,EAAE;MAAEZ,KAAK,EAAE,IAAI,CAACH,MAAM;MAAEU,OAAO,EAAE,IAAI,CAACT;IAAS,CAAC,CAAC;IAEpF,IAAI,CAAC,IAAI,CAACC,KAAK,EAAE;MACf,IAAI,CAACA,KAAK,GAAG,IAAAc,kBAAU,EAAC,IAAI,CAAC;IAC/B;IACA,IAAI,CAACd,KAAK,CAACe,MAAM,CAACL,EAAE,CAAC;IACrBM,cAAc,CAAC,MAAM;MACnB,IAAAC,yBAAU,EAAC,IAAI,CAAC;IAClB,CAAC,CAAC;EACJ;EAEAC,oBAAoBA,CAAA,EAAG;IACrB,IAAI,IAAI,CAAClB,KAAK,EAAE;MACd,IAAI,CAACA,KAAK,CAACmB,OAAO,CAAC,CAAC;IACtB;EACF;AACF;AAACC,OAAA,CAAAC,OAAA,GAAA1B,gBAAA","ignoreList":[]}