@pie-element/charting 13.0.4-next.20261011174919 → 13.0.4
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/dist/author/charting-config.d.ts +19 -4
- package/dist/author/configure.d.ts +39 -16
- package/dist/author/configure.js +76 -87
- package/dist/author/correct-response.d.ts +18 -1
- package/dist/author/defaults.d.ts +60 -58
- package/dist/author/index.d.ts +15 -38
- package/dist/author/index.js +12 -4
- package/dist/browser/author/index.js +22 -27
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/editor-runtime/author/index.js +22 -27
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/controller/index.js.map +1 -1
- package/dist/controller/defaults.d.ts +14 -13
- package/dist/controller/index.d.ts +113 -11
- package/dist/index.d.ts +1 -0
- package/dist/schemas/configuration.schema.json +571 -0
- package/dist/schemas/model.schema.json +594 -0
- package/dist/schemas/session.schema.json +86 -0
- package/dist/types.d.ts +333 -0
- package/package.json +19 -15
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/charting@13.0.4/dist/schemas/configuration.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"baseInputConfiguration": {
|
|
7
|
+
"$ref": "#/definitions/EditableHtmlConfigureProp",
|
|
8
|
+
"description": "Base editable html input configuration regarding plugins that are enabled/disabled E.g. audio, video, image"
|
|
9
|
+
},
|
|
10
|
+
"prompt": {
|
|
11
|
+
"$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
|
|
12
|
+
"description": "Prompt configuration"
|
|
13
|
+
},
|
|
14
|
+
"rationale": {
|
|
15
|
+
"$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
|
|
16
|
+
"description": "Rationale configuration"
|
|
17
|
+
},
|
|
18
|
+
"spellCheck": {
|
|
19
|
+
"$ref": "#/definitions/ConfigurePropWithEnabled",
|
|
20
|
+
"description": "Configuration for the author's spellcheck"
|
|
21
|
+
},
|
|
22
|
+
"titlePlaceholder": {
|
|
23
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
24
|
+
"description": "Configuration for the title's placeholder"
|
|
25
|
+
},
|
|
26
|
+
"labelsPlaceholders": {
|
|
27
|
+
"$ref": "#/definitions/ChartingLabelsPlaceholders",
|
|
28
|
+
"description": "Labels Placeholder configuration"
|
|
29
|
+
},
|
|
30
|
+
"scoringType": {
|
|
31
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
32
|
+
"description": "Scoring Type configuration"
|
|
33
|
+
},
|
|
34
|
+
"settingsPanelDisabled": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "Indicates if the settings panel is not available"
|
|
37
|
+
},
|
|
38
|
+
"studentInstructions": {
|
|
39
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
40
|
+
"description": "Student Instructions configuration"
|
|
41
|
+
},
|
|
42
|
+
"teacherInstructions": {
|
|
43
|
+
"$ref": "#/definitions/EditableHtmlPluginConfigureRequired",
|
|
44
|
+
"description": "Teacher Instructions configuration"
|
|
45
|
+
},
|
|
46
|
+
"title": {
|
|
47
|
+
"$ref": "#/definitions/ConfigurePropWithEnabled",
|
|
48
|
+
"description": "Chart title configuration. Not read by this element: `titlePlaceholder` sets the title's placeholder."
|
|
49
|
+
},
|
|
50
|
+
"instruction": {
|
|
51
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
52
|
+
"description": "Author instruction to build a new chart; `label` is the text shown above the form"
|
|
53
|
+
},
|
|
54
|
+
"authorNewCategoryDefaults": {
|
|
55
|
+
"$ref": "#/definitions/ChartingAuthorNewCategoryDefaults",
|
|
56
|
+
"description": "Configuration for new category in define chart"
|
|
57
|
+
},
|
|
58
|
+
"chartDimensions": {
|
|
59
|
+
"$ref": "#/definitions/ChartingDimensions",
|
|
60
|
+
"description": "Chart dimensions the author can set"
|
|
61
|
+
},
|
|
62
|
+
"studentNewCategoryDefaultLabel": {
|
|
63
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
64
|
+
"description": "Not read by this element: the model's `studentNewCategoryDefaultLabel` labels the categories students add"
|
|
65
|
+
},
|
|
66
|
+
"mathMlOptions": {
|
|
67
|
+
"$ref": "#/definitions/ConfigureMathMLProp",
|
|
68
|
+
"description": "Configuration for editable-html"
|
|
69
|
+
},
|
|
70
|
+
"maxImageWidth": {
|
|
71
|
+
"$ref": "#/definitions/ConfigureMaxImageDimensionsProp",
|
|
72
|
+
"description": "Maximum image width for input fields"
|
|
73
|
+
},
|
|
74
|
+
"maxImageHeight": {
|
|
75
|
+
"$ref": "#/definitions/ConfigureMaxImageDimensionsProp",
|
|
76
|
+
"description": "Maximum image height for input fields"
|
|
77
|
+
},
|
|
78
|
+
"withRubric": {
|
|
79
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
80
|
+
"description": "Rubric configuration - only relevant in environments that use pie-player-components"
|
|
81
|
+
},
|
|
82
|
+
"chartingOptions": {
|
|
83
|
+
"$ref": "#/definitions/ChartingOptions",
|
|
84
|
+
"description": "Authoring view settings for Charting"
|
|
85
|
+
},
|
|
86
|
+
"availableChartTypes": {
|
|
87
|
+
"$ref": "#/definitions/ChartingAvailableChartTypes",
|
|
88
|
+
"description": "Indicates the chart types that are available"
|
|
89
|
+
},
|
|
90
|
+
"chartTypeLabel": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Indicates the label for the chart type"
|
|
93
|
+
},
|
|
94
|
+
"language": {
|
|
95
|
+
"$ref": "#/definitions/ConfigurePropWithEnabled",
|
|
96
|
+
"description": "Language configuration"
|
|
97
|
+
},
|
|
98
|
+
"labelsCharactersLimit": {
|
|
99
|
+
"type": "number",
|
|
100
|
+
"description": "Indicates the maximum character limit for X and Y axis labels"
|
|
101
|
+
},
|
|
102
|
+
"languageChoices": {
|
|
103
|
+
"$ref": "#/definitions/ConfigureLanguageOptions",
|
|
104
|
+
"description": "Language choices configuration Only available if language is enabled"
|
|
105
|
+
},
|
|
106
|
+
"contentDimensions": {
|
|
107
|
+
"$ref": "#/definitions/ContentDimensions",
|
|
108
|
+
"description": "Dimensions of the authoring container"
|
|
109
|
+
},
|
|
110
|
+
"showPrompt": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"description": "Not read by this element: the model's `promptEnabled` shows the prompt"
|
|
113
|
+
},
|
|
114
|
+
"promptLabel": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"description": "Not read by this element: `prompt.label` labels the prompt"
|
|
117
|
+
},
|
|
118
|
+
"settingsPartialScoring": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"description": "Not read by this element: `scoringType.settings` shows the scoring control"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"description": "Config Object for `@pie-element/charting`",
|
|
124
|
+
"definitions": {
|
|
125
|
+
"EditableHtmlConfigureProp": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"math": {
|
|
129
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
130
|
+
},
|
|
131
|
+
"audio": {
|
|
132
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
133
|
+
},
|
|
134
|
+
"video": {
|
|
135
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
136
|
+
},
|
|
137
|
+
"image": {
|
|
138
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
139
|
+
},
|
|
140
|
+
"customPlugins": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": {
|
|
143
|
+
"$ref": "#/definitions/CustomPlugin"
|
|
144
|
+
},
|
|
145
|
+
"description": "An array of objects that determine custom plugins. A custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when the button gets pressed (event)."
|
|
146
|
+
},
|
|
147
|
+
"blockquote": {
|
|
148
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
149
|
+
},
|
|
150
|
+
"h3": {
|
|
151
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
152
|
+
},
|
|
153
|
+
"characters": {
|
|
154
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
155
|
+
},
|
|
156
|
+
"bold": {
|
|
157
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
158
|
+
},
|
|
159
|
+
"html": {
|
|
160
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
161
|
+
},
|
|
162
|
+
"italic": {
|
|
163
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
164
|
+
},
|
|
165
|
+
"ol_list": {
|
|
166
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
167
|
+
},
|
|
168
|
+
"redo": {
|
|
169
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
170
|
+
},
|
|
171
|
+
"strikethrough": {
|
|
172
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
173
|
+
},
|
|
174
|
+
"sub": {
|
|
175
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
176
|
+
},
|
|
177
|
+
"sup": {
|
|
178
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
179
|
+
},
|
|
180
|
+
"table": {
|
|
181
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
182
|
+
},
|
|
183
|
+
"ul_list": {
|
|
184
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
185
|
+
},
|
|
186
|
+
"underline": {
|
|
187
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
188
|
+
},
|
|
189
|
+
"undo": {
|
|
190
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
191
|
+
},
|
|
192
|
+
"textAlign": {
|
|
193
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
194
|
+
},
|
|
195
|
+
"showParagraphs": {
|
|
196
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
197
|
+
},
|
|
198
|
+
"separateParagraphs": {
|
|
199
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
200
|
+
},
|
|
201
|
+
"pasteFormatting": {
|
|
202
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
203
|
+
},
|
|
204
|
+
"superscript": {
|
|
205
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
206
|
+
},
|
|
207
|
+
"subscript": {
|
|
208
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
209
|
+
},
|
|
210
|
+
"languageCharacters": {
|
|
211
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
212
|
+
},
|
|
213
|
+
"responseArea": {
|
|
214
|
+
"$ref": "#/definitions/EditableHtmlButtonConfigure"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"description": "Toolbar plugins of an editable-html field, keyed by plugin name."
|
|
218
|
+
},
|
|
219
|
+
"EditableHtmlButtonConfigure": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"disabled": {
|
|
223
|
+
"type": "boolean",
|
|
224
|
+
"description": "Indicates if the plugin is disabled or not"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"CustomPlugin": {
|
|
229
|
+
"type": "object",
|
|
230
|
+
"properties": {
|
|
231
|
+
"event": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used). The event is emitted with the \"PIE-\" prefix."
|
|
234
|
+
},
|
|
235
|
+
"iconAlt": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "The alt for the custom button icon"
|
|
238
|
+
},
|
|
239
|
+
"iconType": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "The icon type. Currently, only \"SVG\" is supported."
|
|
242
|
+
},
|
|
243
|
+
"icon": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"description": "The icon string. Currently, only SVG is supported, so it needs to be a valid svg."
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"required": [
|
|
249
|
+
"event",
|
|
250
|
+
"iconAlt",
|
|
251
|
+
"iconType",
|
|
252
|
+
"icon"
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
"EditableHtmlPluginConfigureRequired": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"properties": {
|
|
258
|
+
"settings": {
|
|
259
|
+
"type": "boolean",
|
|
260
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
261
|
+
},
|
|
262
|
+
"label": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
265
|
+
},
|
|
266
|
+
"inputConfiguration": {
|
|
267
|
+
"$ref": "#/definitions/EditableHtmlConfigureProp",
|
|
268
|
+
"description": "Configuration for editable-html"
|
|
269
|
+
},
|
|
270
|
+
"required": {
|
|
271
|
+
"type": "boolean",
|
|
272
|
+
"description": "Indicates if the item is required and the value cannot be empty"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"ConfigurePropWithEnabled": {
|
|
277
|
+
"type": "object",
|
|
278
|
+
"properties": {
|
|
279
|
+
"settings": {
|
|
280
|
+
"type": "boolean",
|
|
281
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
282
|
+
},
|
|
283
|
+
"label": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
286
|
+
},
|
|
287
|
+
"enabled": {
|
|
288
|
+
"type": "boolean",
|
|
289
|
+
"description": "Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"ConfigureProp": {
|
|
294
|
+
"type": "object",
|
|
295
|
+
"properties": {
|
|
296
|
+
"settings": {
|
|
297
|
+
"type": "boolean",
|
|
298
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
299
|
+
},
|
|
300
|
+
"label": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"description": "Building blocks of an element's authoring configuration: the object a host passes to the `<tag>-config` custom element to decide which settings the author sees and how editors behave.\n\nEach element declares its own `<Name>Configuration` interface from these, and its JSON Schema is generated from that interface. Descriptions are carried over from the legacy `pie-elements` config schemas, so they appear in the generated schemas unchanged."
|
|
306
|
+
},
|
|
307
|
+
"ChartingLabelsPlaceholders": {
|
|
308
|
+
"type": "object",
|
|
309
|
+
"properties": {
|
|
310
|
+
"settings": {
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"description": "Not read by this element"
|
|
313
|
+
},
|
|
314
|
+
"label": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"description": "Not read by this element"
|
|
317
|
+
},
|
|
318
|
+
"enabled": {
|
|
319
|
+
"type": "boolean",
|
|
320
|
+
"description": "Not read by this element"
|
|
321
|
+
},
|
|
322
|
+
"top": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"description": "This value is empty for charting. The property exist in order to be consistent with graphing configuration."
|
|
325
|
+
},
|
|
326
|
+
"right": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"description": "This value is empty for charting. The property exist in order to be consistent with graphing configuration."
|
|
329
|
+
},
|
|
330
|
+
"bottom": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"description": "Indicates the placeholder for the bottom label"
|
|
333
|
+
},
|
|
334
|
+
"left": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "Indicates the placeholder for the left label"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"ChartingAuthorNewCategoryDefaults": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"properties": {
|
|
343
|
+
"settings": {
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"description": "Not read by this element"
|
|
346
|
+
},
|
|
347
|
+
"label": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"description": "Indicates the label for the new category"
|
|
350
|
+
},
|
|
351
|
+
"interactive": {
|
|
352
|
+
"type": "boolean",
|
|
353
|
+
"description": "Indicates if new category is interactive"
|
|
354
|
+
},
|
|
355
|
+
"editable": {
|
|
356
|
+
"type": "boolean",
|
|
357
|
+
"description": "Indicates if new category is editable"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"ChartingDimensions": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"properties": {
|
|
364
|
+
"settings": {
|
|
365
|
+
"type": "boolean",
|
|
366
|
+
"description": "Not read by this element"
|
|
367
|
+
},
|
|
368
|
+
"label": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"description": "Not read by this element"
|
|
371
|
+
},
|
|
372
|
+
"showInConfigPanel": {
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"description": "Shows the chart width and height controls"
|
|
375
|
+
},
|
|
376
|
+
"width": {
|
|
377
|
+
"$ref": "#/definitions/ChartingDimensionConstraints",
|
|
378
|
+
"description": "Width the author can set: `min` at least 50, `max` at most 700, `step` at most 200; 50, 700 and 20 when absent"
|
|
379
|
+
},
|
|
380
|
+
"height": {
|
|
381
|
+
"$ref": "#/definitions/ChartingDimensionConstraints",
|
|
382
|
+
"description": "Height the author can set: `min` at least 400, `max` at most 700, `step` at most 200; 400, 700 and 20 when absent"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"description": "Chart dimensions the author can set"
|
|
386
|
+
},
|
|
387
|
+
"ChartingDimensionConstraints": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"min": {
|
|
391
|
+
"type": "number",
|
|
392
|
+
"description": "Smallest value the author can set"
|
|
393
|
+
},
|
|
394
|
+
"max": {
|
|
395
|
+
"type": "number",
|
|
396
|
+
"description": "Largest value the author can set"
|
|
397
|
+
},
|
|
398
|
+
"step": {
|
|
399
|
+
"type": "number",
|
|
400
|
+
"description": "Step of the control; values under 1 count as 20"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"description": "Range of a chart dimension the author can set"
|
|
404
|
+
},
|
|
405
|
+
"ConfigureMathMLProp": {
|
|
406
|
+
"type": "object",
|
|
407
|
+
"properties": {
|
|
408
|
+
"mmlOutput": {
|
|
409
|
+
"type": "boolean",
|
|
410
|
+
"description": "Indicates if model should have mathML output instead of latex"
|
|
411
|
+
},
|
|
412
|
+
"mmlEditing": {
|
|
413
|
+
"type": "boolean",
|
|
414
|
+
"description": "Indicates if mathML that's already in model should be editable"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
419
|
+
"type": "object",
|
|
420
|
+
"properties": {
|
|
421
|
+
"teacherInstructions": {
|
|
422
|
+
"type": "number",
|
|
423
|
+
"description": "Indicates the max dimension for images in teacher instructions"
|
|
424
|
+
},
|
|
425
|
+
"prompt": {
|
|
426
|
+
"type": "number",
|
|
427
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified"
|
|
428
|
+
},
|
|
429
|
+
"rationale": {
|
|
430
|
+
"type": "number",
|
|
431
|
+
"description": "Indicates the max dimension for images in rationale"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"description": "Maximum image dimensions per editable field. Elements extend it with their own fields."
|
|
435
|
+
},
|
|
436
|
+
"ChartingOptions": {
|
|
437
|
+
"type": "object",
|
|
438
|
+
"properties": {
|
|
439
|
+
"changeInteractive": {
|
|
440
|
+
"$ref": "#/definitions/ChartingOption",
|
|
441
|
+
"description": "Indicates if teacher can enable/disable data[]:interactive"
|
|
442
|
+
},
|
|
443
|
+
"changeEditable": {
|
|
444
|
+
"$ref": "#/definitions/ChartingOption",
|
|
445
|
+
"description": "Indicates if teacher can enable/disable data[]:editable"
|
|
446
|
+
},
|
|
447
|
+
"addCategory": {
|
|
448
|
+
"$ref": "#/definitions/ChartingOption",
|
|
449
|
+
"description": "Indicates if teacher can enable/disable addCategoryEnabled"
|
|
450
|
+
},
|
|
451
|
+
"mathMlOptions": {
|
|
452
|
+
"$ref": "#/definitions/ConfigureMathMLProp",
|
|
453
|
+
"description": "Not read by this element: the configuration's top-level `mathMlOptions` applies"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"ChartingOption": {
|
|
458
|
+
"type": "object",
|
|
459
|
+
"properties": {
|
|
460
|
+
"settings": {
|
|
461
|
+
"type": "boolean",
|
|
462
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
463
|
+
},
|
|
464
|
+
"authoringLabel": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"description": "Indicates the label for the option"
|
|
467
|
+
},
|
|
468
|
+
"settingsLabel": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"ChartingAvailableChartTypes": {
|
|
475
|
+
"type": "object",
|
|
476
|
+
"properties": {
|
|
477
|
+
"bar": {
|
|
478
|
+
"type": "string",
|
|
479
|
+
"description": "Indicates if bar chart is available and the label used for it."
|
|
480
|
+
},
|
|
481
|
+
"histogram": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"description": "Indicates if histogram is available and the label used for it."
|
|
484
|
+
},
|
|
485
|
+
"lineDot": {
|
|
486
|
+
"type": "string",
|
|
487
|
+
"description": "Indicates if line chart with dots is available and the label used for it."
|
|
488
|
+
},
|
|
489
|
+
"lineCross": {
|
|
490
|
+
"type": "string",
|
|
491
|
+
"description": "Indicates if line chart with crosses is available and the label used for it."
|
|
492
|
+
},
|
|
493
|
+
"dotPlot": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"description": "Indicates if dot plot is available and the label used for it."
|
|
496
|
+
},
|
|
497
|
+
"linePlot": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"description": "Indicates if line plot is available and the label used for it."
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"description": "Indicates the chart types that are available and the label used for each; a type without a label is not offered"
|
|
503
|
+
},
|
|
504
|
+
"ConfigureLanguageOptions": {
|
|
505
|
+
"type": "object",
|
|
506
|
+
"properties": {
|
|
507
|
+
"label": {
|
|
508
|
+
"type": "string"
|
|
509
|
+
},
|
|
510
|
+
"options": {
|
|
511
|
+
"type": "array",
|
|
512
|
+
"items": {
|
|
513
|
+
"$ref": "#/definitions/ConfigureLanguageOptionsProp"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"required": [
|
|
518
|
+
"label",
|
|
519
|
+
"options"
|
|
520
|
+
]
|
|
521
|
+
},
|
|
522
|
+
"ConfigureLanguageOptionsProp": {
|
|
523
|
+
"type": "object",
|
|
524
|
+
"properties": {
|
|
525
|
+
"value": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"description": "Value of the language option"
|
|
528
|
+
},
|
|
529
|
+
"label": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"description": "Label of the language option"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"required": [
|
|
535
|
+
"value",
|
|
536
|
+
"label"
|
|
537
|
+
]
|
|
538
|
+
},
|
|
539
|
+
"ContentDimensions": {
|
|
540
|
+
"type": "object",
|
|
541
|
+
"properties": {
|
|
542
|
+
"maxHeight": {
|
|
543
|
+
"type": [
|
|
544
|
+
"string",
|
|
545
|
+
"number"
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
"maxWidth": {
|
|
549
|
+
"type": [
|
|
550
|
+
"string",
|
|
551
|
+
"number"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"minHeight": {
|
|
555
|
+
"type": [
|
|
556
|
+
"string",
|
|
557
|
+
"number"
|
|
558
|
+
]
|
|
559
|
+
},
|
|
560
|
+
"minWidth": {
|
|
561
|
+
"type": [
|
|
562
|
+
"string",
|
|
563
|
+
"number"
|
|
564
|
+
]
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"description": "Indicates the dimensions configuration for the authoring container. Note: Some items have a default minimum width because of their content, but if a lower minWidth is provided, it will be used."
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"additionalProperties": false
|
|
571
|
+
}
|