@pie-element/complex-rubric 0.0.2-next.4424

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/LICENSE.md +5 -0
  2. package/README.md +3 -0
  3. package/configure/lib/defaults.js +99 -0
  4. package/configure/lib/defaults.js.map +1 -0
  5. package/configure/lib/index.js +232 -0
  6. package/configure/lib/index.js.map +1 -0
  7. package/configure/lib/main.js +165 -0
  8. package/configure/lib/main.js.map +1 -0
  9. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +1 -0
  10. package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +376 -0
  11. package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +5 -0
  12. package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
  13. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
  14. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +344 -0
  15. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +455 -0
  16. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +82 -0
  18. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +112 -0
  20. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
  21. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +438 -0
  22. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
  23. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +324 -0
  24. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
  25. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +490 -0
  26. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
  27. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +334 -0
  28. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
  29. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +254 -0
  30. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
  31. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +29 -0
  32. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
  33. package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +22 -0
  34. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
  35. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +66 -0
  36. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +9 -0
  37. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
  38. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +122 -0
  39. package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.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 +226 -0
  42. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +169 -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 +108 -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 +282 -0
  48. package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +189 -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 +99 -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 +209 -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 +731 -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 +615 -0
  64. package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +93 -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/package.json +16 -0
  67. package/configure/node_modules/@pie-element/rubric/configure/src/index.js +38 -0
  68. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +17 -0
  69. package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +105 -0
  70. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +14 -0
  71. package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +1 -0
  72. package/configure/node_modules/@pie-element/rubric/controller/package.json +9 -0
  73. package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +35 -0
  74. package/configure/node_modules/@pie-element/rubric/controller/src/index.js +6 -0
  75. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +24 -0
  76. package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +19 -0
  77. package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +8 -0
  78. package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +8 -0
  79. package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +3 -0
  80. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +62 -0
  81. package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +35 -0
  82. package/configure/node_modules/@pie-element/rubric/lib/index.js +88 -0
  83. package/configure/node_modules/@pie-element/rubric/lib/index.js.map +1 -0
  84. package/configure/node_modules/@pie-element/rubric/lib/main.js +171 -0
  85. package/configure/node_modules/@pie-element/rubric/lib/main.js.map +1 -0
  86. package/configure/node_modules/@pie-element/rubric/lib/print.js +114 -0
  87. package/configure/node_modules/@pie-element/rubric/lib/print.js.map +1 -0
  88. package/configure/node_modules/@pie-element/rubric/package.json +25 -0
  89. package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +22767 -0
  90. package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +48 -0
  91. package/configure/node_modules/@pie-element/rubric/src/index.js +38 -0
  92. package/configure/node_modules/@pie-element/rubric/src/main.jsx +117 -0
  93. package/configure/node_modules/@pie-element/rubric/src/print.js +63 -0
  94. package/configure/package.json +22 -0
  95. package/configure/src/__tests__/__snapshots__/main.test.jsx.snap +106 -0
  96. package/configure/src/__tests__/index.test.js +41 -0
  97. package/configure/src/__tests__/main.test.jsx +104 -0
  98. package/configure/src/defaults.js +122 -0
  99. package/configure/src/index.js +138 -0
  100. package/configure/src/main.jsx +117 -0
  101. package/controller/lib/defaults.js +99 -0
  102. package/controller/lib/defaults.js.map +1 -0
  103. package/controller/lib/index.js +147 -0
  104. package/controller/lib/index.js.map +1 -0
  105. package/controller/package.json +12 -0
  106. package/controller/src/__tests__/index.test.js +58 -0
  107. package/controller/src/defaults.js +121 -0
  108. package/controller/src/index.js +81 -0
  109. package/docs/config-schema.json +427 -0
  110. package/docs/config-schema.json.md +315 -0
  111. package/docs/demo/config.js +8 -0
  112. package/docs/demo/generate.js +119 -0
  113. package/docs/demo/index.html +1 -0
  114. package/docs/demo/session.js +6 -0
  115. package/docs/pie-schema.json +994 -0
  116. package/docs/pie-schema.json.md +660 -0
  117. package/lib/index.js +176 -0
  118. package/lib/index.js.map +1 -0
  119. package/package.json +25 -0
  120. package/src/__tests__/index.test.js +166 -0
  121. package/src/index.js +106 -0
@@ -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
+ };
@@ -0,0 +1,108 @@
1
+ exports.model = (id, element) => ({
2
+ id,
3
+ element,
4
+ visibleToStudent: true,
5
+ halfScoring: false,
6
+ excludeZero: true,
7
+ pointLabels: true,
8
+ description: false,
9
+ standards: false,
10
+ scales: [
11
+ {
12
+ maxPoints: 4,
13
+ scorePointsLabels: ['Non-Scorable', 'Developing', 'Progressing', 'Effective', 'Strong'],
14
+ traitLabel: 'Trait',
15
+ traits: [
16
+ {
17
+ name: 'Ideas',
18
+ standards: [],
19
+ description: 'the main message',
20
+ scorePointsDescriptors: [
21
+ 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
22
+ 'Topic undefined and/or difficult to follow\n' + '\n' + 'Details are unclear',
23
+ 'Topic too broad\n' + '\n' + 'Details are limited',
24
+ 'Writing stays on topic\n' + '\n' + 'Complete details given',
25
+ 'Strong control of topic\n' + '\n' + 'Relevant, accurate, specific details that support topic',
26
+ ],
27
+ },
28
+ {
29
+ name: 'Organization',
30
+ standards: [],
31
+ description: 'the internal structure of the piece',
32
+ scorePointsDescriptors: [
33
+ 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
34
+ 'Does not have a beginning, middle and/or end\n' + '\n' + 'Does not have a lead and/or conclusion\n' + '\n' + 'Transitions confusing and/or not present\n' + '\n' + 'Not written in logical order\n' + '\n' + 'No sign of paragraphing / incorrect paragraphing',
35
+ 'Weak beginning, middle and end\n' + '\n' + 'Has evidence of a lead and/or conclusion but missing elements\n' + '\n' + 'Transitions are used sometimes\n' + '\n' + 'Some logical order\n' + '\n' + 'Most paragraphing incorrect',
36
+ 'Has an acceptable beginning, middle and end\n' + '\n' + 'Includes a lead and conclusion\n' + '\n' + 'Transitions are used correctly\n' + '\n' + 'Mostly logical order\n' + '\n' + 'Mostly correct paragraphing',
37
+ 'Has an effective beginning, middle and end\n' + '\n' + 'Powerful introduction / lead and conclusion\n' + '\n' + 'Effective transitions\n' + '\n' + 'Logical order / sequencing\n' + '\n' + 'Uses appropriate paragraphing',
38
+ ],
39
+ },
40
+ {
41
+ name: 'Word Choice',
42
+ standards: [],
43
+ description: 'the vocabulary a writer chooses to convey meaning',
44
+ scorePointsDescriptors: [
45
+ 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
46
+ 'Vocabulary is limited/used incorrectly\n' + '\n' + 'No figurative language; words do not convey meaning',
47
+ 'Generally correct words\n' + '\n' + 'Attempt at figurative language\n' + '\n' + 'and/or words convey general meaning',
48
+ 'Some active verbs and precise nouns\n' + '\n' + 'Effective use of figurative language and/or words that enhance meaning',
49
+ 'Powerful and engaging words\n' + '\n' + 'Artful use of figurative language and/or sensory detail',
50
+ ],
51
+ },
52
+ {
53
+ name: 'Sentence Fluency',
54
+ standards: [],
55
+ description: 'the rhythm and flow of the language',
56
+ scorePointsDescriptors: [
57
+ 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
58
+ 'No sentences are clear\n' + '\n' + 'No variety in sentence structure\n' + '\n' + 'Frequent run-ons and/or fragments are present',
59
+ 'Some sentences are clear\n' + '\n' + 'Sentence variety used rarely\n' + '\n' + 'Some run-ons and/or fragments are present',
60
+ 'Most sentences are clear\n' + '\n' + 'Some sentence variety is used\n' + '\n' + 'Run-ons and/or fragments are rare',
61
+ 'All Sentences are clear\n' + '\n' + 'Variety of sentence structure is used\n' + '\n' + 'Run-ons and/or fragments are not present',
62
+ ],
63
+ },
64
+ {
65
+ name: 'Conventions',
66
+ standards: [],
67
+ description: 'the mechanical correctness',
68
+ scorePointsDescriptors: [
69
+ 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
70
+ 'Many distracting errors are present in grammar, punctuation, capitalization and/or spelling',
71
+ 'Errors in grammar, punctuation, capitalization and/or spelling are present and some distract from meaning',
72
+ 'Errors in grammar, punctuation, capitalization and/or spelling are present but don’t distract from meaning',
73
+ 'Few errors in grammar, punctuation,\n' + '\n' + 'capitalization and/or spelling',
74
+ ],
75
+ },
76
+ {
77
+ name: 'Voice',
78
+ standards: [],
79
+ description: 'the personal tone and flavor of the author\'s message',
80
+ scorePointsDescriptors: [
81
+ 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
82
+ 'Not concerned with audience or purpose\n' + '\n' + 'No viewpoint (perspective) used\n' + '\n' + 'Writing is mechanical and lifeless',
83
+ 'Shows beginning awareness of audience/purpose\n' + '\n' + 'Some viewpoint (perspective) used throughout the piece\n' + '\n' + 'Writing is distant, too formal or informal',
84
+ 'Awareness of audience; purpose is clear most of the time\n' + '\n' + 'Uses viewpoint (perspective) throughout most of the paper\n' + '\n' + 'Writing is pleasant, agreeable and satisfying',
85
+ 'Powerful connection with audience; purpose is clearly communicated\n' + '\n' + 'Maintains strong viewpoint (perspective) throughout entire piece\n' + '\n' + 'Writing is expressive, engaging and has lots of energy',
86
+ ],
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ maxPoints: 5,
92
+ scorePointsLabels: ['Non-Scorable', 'Unsatisfactory', 'Satisfactory'],
93
+ traitLabel: 'Category',
94
+ traits: [
95
+ {
96
+ name: 'Presentation',
97
+ standards: [],
98
+ description: '',
99
+ scorePointsDescriptors: [
100
+ 'Handwriting is unreadable, or response is blank, not in English, or too brief to evaluate. ',
101
+ 'Handwriting poor\n' + '\n' + 'Overall appearance is distracting to unacceptable',
102
+ 'Handwriting is generally legible\n' + '\n' + 'Overall appearance is acceptable or better',
103
+ ],
104
+ },
105
+ ]
106
+ }
107
+ ]
108
+ });
@@ -0,0 +1 @@
1
+ <multi-trait-rubric pie-id="1"> </multi-trait-rubric>
@@ -0,0 +1,6 @@
1
+ module.exports = [
2
+ {
3
+ id: '1',
4
+ element: 'multi-trait-rubric',
5
+ }
6
+ ];
@@ -0,0 +1,282 @@
1
+ {
2
+ "description": "Model for the MultiTraitRubric Interaction",
3
+ "additionalProperties": false,
4
+ "type": "object",
5
+ "properties": {
6
+ "halfScoring": {
7
+ "description": "Indicates if half scoring is enabled",
8
+ "type": "boolean",
9
+ "title": "halfScoring"
10
+ },
11
+ "pointLabels": {
12
+ "description": "Indicates if point labels should be shown",
13
+ "type": "boolean",
14
+ "title": "pointLabels"
15
+ },
16
+ "visibleToStudent": {
17
+ "description": "Indicates if should be visible to student",
18
+ "type": "boolean",
19
+ "title": "visibleToStudent"
20
+ },
21
+ "description": {
22
+ "description": "Indicates if description should be shown",
23
+ "type": "boolean",
24
+ "title": "description"
25
+ },
26
+ "standards": {
27
+ "description": "Indicates if standards should be shown",
28
+ "type": "boolean",
29
+ "title": "standards"
30
+ },
31
+ "excludeZero": {
32
+ "description": "Indicates if scoring should start at 0 or 1",
33
+ "type": "boolean",
34
+ "title": "excludeZero"
35
+ },
36
+ "spellCheckEnabled": {
37
+ "description": "Indicates if spellcheck is enabled for the author. Default value is true",
38
+ "type": "boolean",
39
+ "title": "spellCheckEnabled"
40
+ },
41
+ "scales": {
42
+ "description": "scales",
43
+ "type": "array",
44
+ "items": {
45
+ "title": "Scale",
46
+ "type": "object",
47
+ "properties": {
48
+ "maxPoints": {
49
+ "description": "Indicates max limit for scoring points",
50
+ "type": "number",
51
+ "title": "maxPoints"
52
+ },
53
+ "scorePointsLabels": {
54
+ "description": "Score labels. Starting from 0 to max.",
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string"
58
+ },
59
+ "title": "scorePointsLabels"
60
+ },
61
+ "traitLabel": {
62
+ "description": "Trait label",
63
+ "type": "string",
64
+ "title": "traitLabel"
65
+ },
66
+ "traits": {
67
+ "description": "Traits",
68
+ "type": "array",
69
+ "items": {
70
+ "title": "Trait",
71
+ "type": "object",
72
+ "properties": {
73
+ "name": {
74
+ "description": "Trait name",
75
+ "type": "string",
76
+ "title": "name"
77
+ },
78
+ "standards": {
79
+ "description": "Trait standards",
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string"
83
+ },
84
+ "title": "standards"
85
+ },
86
+ "description": {
87
+ "description": "Trait description",
88
+ "type": "string",
89
+ "title": "description"
90
+ },
91
+ "scorePointsDescriptors": {
92
+ "description": "Score point descriptors. Starting from 0 to max.",
93
+ "type": "array",
94
+ "items": {
95
+ "type": "string"
96
+ },
97
+ "title": "scorePointsDescriptors"
98
+ }
99
+ },
100
+ "required": [
101
+ "description",
102
+ "name",
103
+ "scorePointsDescriptors",
104
+ "standards"
105
+ ]
106
+ },
107
+ "title": "traits"
108
+ }
109
+ },
110
+ "required": [
111
+ "maxPoints",
112
+ "scorePointsLabels",
113
+ "traitLabel",
114
+ "traits"
115
+ ]
116
+ },
117
+ "title": "scales"
118
+ },
119
+ "id": {
120
+ "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
121
+ "type": "string",
122
+ "title": "id"
123
+ },
124
+ "element": {
125
+ "description": "The html Element tag name",
126
+ "type": "string",
127
+ "title": "element"
128
+ }
129
+ },
130
+ "required": [
131
+ "element",
132
+ "id",
133
+ "scales",
134
+ "spellCheckEnabled"
135
+ ],
136
+ "definitions": {
137
+ "DialogContent": {
138
+ "title": "DialogContent",
139
+ "type": "object",
140
+ "properties": {
141
+ "title": {
142
+ "description": "Dialog box title",
143
+ "type": "string",
144
+ "title": "title"
145
+ },
146
+ "text": {
147
+ "description": "Dialog box text",
148
+ "type": "string",
149
+ "title": "text"
150
+ }
151
+ }
152
+ },
153
+ "ConfigureProp": {
154
+ "title": "ConfigureProp",
155
+ "type": "object",
156
+ "properties": {
157
+ "settings": {
158
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
159
+ "type": "boolean",
160
+ "title": "settings"
161
+ },
162
+ "label": {
163
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
164
+ "type": "string",
165
+ "title": "label"
166
+ }
167
+ }
168
+ },
169
+ "Scale": {
170
+ "title": "Scale",
171
+ "type": "object",
172
+ "properties": {
173
+ "maxPoints": {
174
+ "description": "Indicates max limit for scoring points",
175
+ "type": "number",
176
+ "title": "maxPoints"
177
+ },
178
+ "scorePointsLabels": {
179
+ "description": "Score labels. Starting from 0 to max.",
180
+ "type": "array",
181
+ "items": {
182
+ "type": "string"
183
+ },
184
+ "title": "scorePointsLabels"
185
+ },
186
+ "traitLabel": {
187
+ "description": "Trait label",
188
+ "type": "string",
189
+ "title": "traitLabel"
190
+ },
191
+ "traits": {
192
+ "description": "Traits",
193
+ "type": "array",
194
+ "items": {
195
+ "title": "Trait",
196
+ "type": "object",
197
+ "properties": {
198
+ "name": {
199
+ "description": "Trait name",
200
+ "type": "string",
201
+ "title": "name"
202
+ },
203
+ "standards": {
204
+ "description": "Trait standards",
205
+ "type": "array",
206
+ "items": {
207
+ "type": "string"
208
+ },
209
+ "title": "standards"
210
+ },
211
+ "description": {
212
+ "description": "Trait description",
213
+ "type": "string",
214
+ "title": "description"
215
+ },
216
+ "scorePointsDescriptors": {
217
+ "description": "Score point descriptors. Starting from 0 to max.",
218
+ "type": "array",
219
+ "items": {
220
+ "type": "string"
221
+ },
222
+ "title": "scorePointsDescriptors"
223
+ }
224
+ },
225
+ "required": [
226
+ "description",
227
+ "name",
228
+ "scorePointsDescriptors",
229
+ "standards"
230
+ ]
231
+ },
232
+ "title": "traits"
233
+ }
234
+ },
235
+ "required": [
236
+ "maxPoints",
237
+ "scorePointsLabels",
238
+ "traitLabel",
239
+ "traits"
240
+ ]
241
+ },
242
+ "Trait": {
243
+ "title": "Trait",
244
+ "type": "object",
245
+ "properties": {
246
+ "name": {
247
+ "description": "Trait name",
248
+ "type": "string",
249
+ "title": "name"
250
+ },
251
+ "standards": {
252
+ "description": "Trait standards",
253
+ "type": "array",
254
+ "items": {
255
+ "type": "string"
256
+ },
257
+ "title": "standards"
258
+ },
259
+ "description": {
260
+ "description": "Trait description",
261
+ "type": "string",
262
+ "title": "description"
263
+ },
264
+ "scorePointsDescriptors": {
265
+ "description": "Score point descriptors. Starting from 0 to max.",
266
+ "type": "array",
267
+ "items": {
268
+ "type": "string"
269
+ },
270
+ "title": "scorePointsDescriptors"
271
+ }
272
+ },
273
+ "required": [
274
+ "description",
275
+ "name",
276
+ "scorePointsDescriptors",
277
+ "standards"
278
+ ]
279
+ }
280
+ },
281
+ "$schema": "http://json-schema.org/draft-07/schema#"
282
+ }
@@ -0,0 +1,189 @@
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
+ ## `DialogContent` (object)
98
+
99
+ Properties of the `DialogContent` object:
100
+
101
+ ### `title` (string)
102
+
103
+ Dialog box title
104
+
105
+ ### `text` (string)
106
+
107
+ Dialog box text
108
+
109
+ ## `ConfigureProp` (object)
110
+
111
+ Properties of the `ConfigureProp` object:
112
+
113
+ ### `settings` (boolean)
114
+
115
+ Indicates if the item has to be displayed in the Settings Panel
116
+
117
+ ### `label` (string)
118
+
119
+ Indicates the label for the item that has to be displayed in the Settings Panel
120
+
121
+ ## `Scale` (object)
122
+
123
+ Properties of the `Scale` object:
124
+
125
+ ### `maxPoints` (number, required)
126
+
127
+ Indicates max limit for scoring points
128
+
129
+ ### `scorePointsLabels` (array, required)
130
+
131
+ Score labels. Starting from 0 to max.
132
+
133
+ The object is an array with all elements of the type `string`.
134
+
135
+ ### `traitLabel` (string, required)
136
+
137
+ Trait label
138
+
139
+ ### `traits` (array, required)
140
+
141
+ Traits
142
+
143
+ The object is an array with all elements of the type `object`.
144
+
145
+ The array object has the following properties:
146
+
147
+ #### `name` (string, required)
148
+
149
+ Trait name
150
+
151
+ #### `standards` (array, required)
152
+
153
+ Trait standards
154
+
155
+ The object is an array with all elements of the type `string`.
156
+
157
+ #### `description` (string, required)
158
+
159
+ Trait description
160
+
161
+ #### `scorePointsDescriptors` (array, required)
162
+
163
+ Score point descriptors. Starting from 0 to max.
164
+
165
+ The object is an array with all elements of the type `string`.
166
+
167
+ ## `Trait` (object)
168
+
169
+ Properties of the `Trait` object:
170
+
171
+ ### `name` (string, required)
172
+
173
+ Trait name
174
+
175
+ ### `standards` (array, required)
176
+
177
+ Trait standards
178
+
179
+ The object is an array with all elements of the type `string`.
180
+
181
+ ### `description` (string, required)
182
+
183
+ Trait description
184
+
185
+ ### `scorePointsDescriptors` (array, required)
186
+
187
+ Score point descriptors. Starting from 0 to max.
188
+
189
+ The object is an array with all elements of the type `string`.
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
+
16
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
17
+
18
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
19
+
20
+ var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
21
+
22
+ var _react = _interopRequireDefault(require("react"));
23
+
24
+ var _reactDom = _interopRequireDefault(require("react-dom"));
25
+
26
+ var _piePlayerEvents = require("@pie-framework/pie-player-events");
27
+
28
+ var _main = _interopRequireDefault(require("./main"));
29
+
30
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
31
+
32
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
33
+
34
+ var MultiTraitRubric = /*#__PURE__*/function (_HTMLElement) {
35
+ (0, _inherits2["default"])(MultiTraitRubric, _HTMLElement);
36
+
37
+ var _super = _createSuper(MultiTraitRubric);
38
+
39
+ function MultiTraitRubric() {
40
+ var _this;
41
+
42
+ (0, _classCallCheck2["default"])(this, MultiTraitRubric);
43
+ _this = _super.call(this);
44
+ _this._model = {};
45
+ _this._session = null;
46
+ return _this;
47
+ }
48
+
49
+ (0, _createClass2["default"])(MultiTraitRubric, [{
50
+ key: "model",
51
+ set: function set(s) {
52
+ this._model = s;
53
+ this.dispatchEvent(new _piePlayerEvents.ModelSetEvent(this.tagName.toLowerCase(), this._session, !!this._model));
54
+
55
+ this._render();
56
+ }
57
+ }, {
58
+ key: "session",
59
+ get: function get() {
60
+ return this._session;
61
+ },
62
+ set: function set(s) {
63
+ this._session = s;
64
+ }
65
+ }, {
66
+ key: "connectedCallback",
67
+ value: function connectedCallback() {
68
+ this._render();
69
+ }
70
+ }, {
71
+ key: "_render",
72
+ value: function _render() {
73
+ var el = /*#__PURE__*/_react["default"].createElement(_main["default"], {
74
+ model: this._model,
75
+ session: this._session
76
+ });
77
+
78
+ _reactDom["default"].render(el, this);
79
+ }
80
+ }]);
81
+ return MultiTraitRubric;
82
+ }( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(HTMLElement));
83
+
84
+ exports["default"] = MultiTraitRubric;
85
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.js"],"names":["MultiTraitRubric","_model","_session","s","dispatchEvent","ModelSetEvent","tagName","toLowerCase","_render","el","React","createElement","Main","model","session","ReactDOM","render","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;IAEqBA,gB;;;;;AACnB,8BAAc;AAAA;;AAAA;AACZ;AACA,UAAKC,MAAL,GAAc,EAAd;AACA,UAAKC,QAAL,GAAgB,IAAhB;AAHY;AAIb;;;;SAED,aAAUC,CAAV,EAAa;AACX,WAAKF,MAAL,GAAcE,CAAd;AACA,WAAKC,aAAL,CAAmB,IAAIC,8BAAJ,CAAkB,KAAKC,OAAL,CAAaC,WAAb,EAAlB,EAA8C,KAAKL,QAAnD,EAA6D,CAAC,CAAC,KAAKD,MAApE,CAAnB;;AAEA,WAAKO,OAAL;AACD;;;SAMD,eAAc;AACZ,aAAO,KAAKN,QAAZ;AACD,K;SAND,aAAYC,CAAZ,EAAe;AACb,WAAKD,QAAL,GAAgBC,CAAhB;AACD;;;WAMD,6BAAoB;AAClB,WAAKK,OAAL;AACD;;;WAED,mBAAU;AACR,UAAMC,EAAE,gBAAGC,kBAAMC,aAAN,CACTC,gBADS,EAET;AAAEC,QAAAA,KAAK,EAAE,KAAKZ,MAAd;AAAsBa,QAAAA,OAAO,EAAE,KAAKZ;AAApC,OAFS,CAAX;;AAKAa,2BAASC,MAAT,CAAgBP,EAAhB,EAAoB,IAApB;AACD;;;kDAjC2CQ,W","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { ModelSetEvent } from '@pie-framework/pie-player-events';\nimport Main from './main';\n\nexport default class MultiTraitRubric extends HTMLElement {\n constructor() {\n super();\n this._model = {};\n this._session = 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(\n Main,\n { model: this._model, session: this._session }\n );\n\n ReactDOM.render(el, this);\n }\n}\n"],"file":"index.js"}