@pie-element/complex-rubric 3.8.4-next.0 → 3.8.4-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +2430 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +5 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +2298 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +584 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +152 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +223 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +546 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +361 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +556 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +380 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +296 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +118 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +18 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +1539 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +19 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +215 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +13 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +15 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +1628 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +1202 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +8 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +117 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +6 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +861 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +614 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +91 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +164 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +330 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +103 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +24 -0
- package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +257 -0
- package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +2713 -0
- package/configure/node_modules/@pie-element/rubric/LICENSE.md +5 -0
- package/configure/node_modules/@pie-element/rubric/README.md +3 -0
- package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +197 -0
- package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +2506 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +68 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +197 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +162 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js +573 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js +24 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js +172 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/package.json +18 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +167 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +42 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/index.js +129 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +89 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/authoring.jsx +449 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/index.js +9 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/point-menu.jsx +94 -0
- package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +17 -0
- package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +1532 -0
- package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js +16 -0
- package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +59 -0
- package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/controller/package.json +13 -0
- package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +33 -0
- package/configure/node_modules/@pie-element/rubric/controller/src/defaults.js +8 -0
- package/configure/node_modules/@pie-element/rubric/controller/src/index.js +41 -0
- package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +712 -0
- package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +532 -0
- package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +8 -0
- package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +8 -0
- package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +2 -0
- package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +391 -0
- package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +281 -0
- package/configure/node_modules/@pie-element/rubric/lib/index.js +94 -0
- package/configure/node_modules/@pie-element/rubric/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/lib/main.js +270 -0
- package/configure/node_modules/@pie-element/rubric/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/lib/print.js +114 -0
- package/configure/node_modules/@pie-element/rubric/lib/print.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/module/configure.js +1 -0
- package/configure/node_modules/@pie-element/rubric/module/controller.js +113 -0
- package/configure/node_modules/@pie-element/rubric/module/demo.js +33 -0
- package/configure/node_modules/@pie-element/rubric/module/element.js +1 -0
- package/configure/node_modules/@pie-element/rubric/module/index.html +21 -0
- package/configure/node_modules/@pie-element/rubric/module/manifest.json +10 -0
- package/configure/node_modules/@pie-element/rubric/module/print-demo.js +71 -0
- package/configure/node_modules/@pie-element/rubric/module/print.html +18 -0
- package/configure/node_modules/@pie-element/rubric/module/print.js +1 -0
- package/configure/node_modules/@pie-element/rubric/package.json +26 -0
- package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +1815 -0
- package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +49 -0
- package/configure/node_modules/@pie-element/rubric/src/index.js +37 -0
- package/configure/node_modules/@pie-element/rubric/src/main.jsx +219 -0
- package/configure/node_modules/@pie-element/rubric/src/print.js +63 -0
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +5 -1
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,614 @@
|
|
|
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`.
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
var _mathRendering = require("@pie-lib/pie-toolbox/math-rendering");
|
|
31
|
+
|
|
32
|
+
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); }; }
|
|
33
|
+
|
|
34
|
+
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; } }
|
|
35
|
+
|
|
36
|
+
var MultiTraitRubric = /*#__PURE__*/function (_HTMLElement) {
|
|
37
|
+
(0, _inherits2["default"])(MultiTraitRubric, _HTMLElement);
|
|
38
|
+
|
|
39
|
+
var _super = _createSuper(MultiTraitRubric);
|
|
40
|
+
|
|
41
|
+
function MultiTraitRubric() {
|
|
42
|
+
var _this;
|
|
43
|
+
|
|
44
|
+
(0, _classCallCheck2["default"])(this, MultiTraitRubric);
|
|
45
|
+
_this = _super.call(this);
|
|
46
|
+
_this._model = {};
|
|
47
|
+
_this._session = null;
|
|
48
|
+
return _this;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
(0, _createClass2["default"])(MultiTraitRubric, [{
|
|
52
|
+
key: "model",
|
|
53
|
+
set: function set(s) {
|
|
54
|
+
this._model = s;
|
|
55
|
+
this.dispatchEvent(new _piePlayerEvents.ModelSetEvent(this.tagName.toLowerCase(), this._session, !!this._model));
|
|
56
|
+
|
|
57
|
+
this._render();
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
key: "session",
|
|
61
|
+
get: function get() {
|
|
62
|
+
return this._session;
|
|
63
|
+
},
|
|
64
|
+
set: function set(s) {
|
|
65
|
+
this._session = s;
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
key: "connectedCallback",
|
|
69
|
+
value: function connectedCallback() {
|
|
70
|
+
this._render();
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
key: "_render",
|
|
74
|
+
value: function _render() {
|
|
75
|
+
var _this2 = this;
|
|
76
|
+
|
|
77
|
+
var el = /*#__PURE__*/_react["default"].createElement(_main["default"], {
|
|
78
|
+
model: this._model,
|
|
79
|
+
session: this._session
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
_reactDom["default"].render(el, this, function () {
|
|
83
|
+
(0, _mathRendering.renderMath)(_this2);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}]);
|
|
87
|
+
return MultiTraitRubric;
|
|
88
|
+
}( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(HTMLElement));
|
|
89
|
+
|
|
90
|
+
exports["default"] = MultiTraitRubric;
|
|
91
|
+
//# 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;;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;AAAA;;AACR,UAAMC,EAAE,gBAAGC,kBAAMC,aAAN,CAAoBC,gBAApB,EAA0B;AAAEC,QAAAA,KAAK,EAAE,KAAKZ,MAAd;AAAsBa,QAAAA,OAAO,EAAE,KAAKZ;AAApC,OAA1B,CAAX;;AAEAa,2BAASC,MAAT,CAAgBP,EAAhB,EAAoB,IAApB,EAA0B,YAAM;AAC9B,uCAAW,MAAX;AACD,OAFD;AAGD;;;kDAhC2CQ,W","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { ModelSetEvent } from '@pie-framework/pie-player-events';\nimport Main from './main';\nimport { renderMath } from '@pie-lib/pie-toolbox/math-rendering';\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(Main, { model: this._model, session: this._session });\n\n ReactDOM.render(el, this, () => {\n renderMath(this);\n });\n }\n}\n"],"file":"index.js"}
|