@pie-element/charting 2.7.19 → 2.7.20-beta.1445

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.
@@ -35,6 +35,79 @@
35
35
  }
36
36
  }
37
37
  },
38
+ "spellCheck": {
39
+ "title": "ConfigureProp",
40
+ "type": "object",
41
+ "properties": {
42
+ "settings": {
43
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
44
+ "type": "boolean",
45
+ "title": "settings"
46
+ },
47
+ "label": {
48
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
49
+ "type": "string",
50
+ "title": "label"
51
+ }
52
+ }
53
+ },
54
+ "titlePlaceholder": {
55
+ "title": "ConfigureProp",
56
+ "type": "object",
57
+ "properties": {
58
+ "settings": {
59
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
60
+ "type": "boolean",
61
+ "title": "settings"
62
+ },
63
+ "label": {
64
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
65
+ "type": "string",
66
+ "title": "label"
67
+ }
68
+ }
69
+ },
70
+ "labelsPlaceholders": {
71
+ "title": "LabelsPlaceholderConfigProp",
72
+ "type": "object",
73
+ "properties": {
74
+ "top": {
75
+ "description": "This value is empty for charting. The property exist in order to be consistent with graphing configuration.",
76
+ "type": "string",
77
+ "title": "top"
78
+ },
79
+ "right": {
80
+ "description": "This value is empty for charting. The property exist in order to be consistent with graphing configuration.",
81
+ "type": "string",
82
+ "title": "right"
83
+ },
84
+ "bottom": {
85
+ "description": "Indicates the placeholder for the bottom label",
86
+ "type": "string",
87
+ "title": "bottom"
88
+ },
89
+ "left": {
90
+ "description": "Indicates the placeholder for the left label",
91
+ "type": "string",
92
+ "title": "left"
93
+ },
94
+ "settings": {
95
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
96
+ "type": "boolean",
97
+ "title": "settings"
98
+ },
99
+ "label": {
100
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
101
+ "type": "string",
102
+ "title": "label"
103
+ },
104
+ "enabled": {
105
+ "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
106
+ "type": "boolean",
107
+ "title": "enabled"
108
+ }
109
+ }
110
+ },
38
111
  "scoringType": {
39
112
  "title": "ConfigureProp",
40
113
  "type": "object",
@@ -51,6 +124,11 @@
51
124
  }
52
125
  }
53
126
  },
127
+ "settingsPanelDisabled": {
128
+ "description": "Indicates if the settings panel is not available",
129
+ "type": "boolean",
130
+ "title": "settingsPanelDisabled"
131
+ },
54
132
  "studentInstructions": {
55
133
  "title": "ConfigureProp",
56
134
  "type": "object",
@@ -104,6 +182,64 @@
104
182
  }
105
183
  }
106
184
  },
185
+ "maxImageWidth": {
186
+ "title": "ConfigureMaxImageDimensionsProp",
187
+ "type": "object",
188
+ "properties": {
189
+ "teacherInstructions": {
190
+ "description": "Indicates the max dimension for images in teacher instructions",
191
+ "type": "number",
192
+ "title": "teacherInstructions"
193
+ },
194
+ "prompt": {
195
+ "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",
196
+ "type": "number",
197
+ "title": "prompt"
198
+ },
199
+ "rationale": {
200
+ "description": "Indicates the max dimension for images in rationale",
201
+ "type": "number",
202
+ "title": "rationale"
203
+ }
204
+ }
205
+ },
206
+ "maxImageHeight": {
207
+ "title": "ConfigureMaxImageDimensionsProp",
208
+ "type": "object",
209
+ "properties": {
210
+ "teacherInstructions": {
211
+ "description": "Indicates the max dimension for images in teacher instructions",
212
+ "type": "number",
213
+ "title": "teacherInstructions"
214
+ },
215
+ "prompt": {
216
+ "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",
217
+ "type": "number",
218
+ "title": "prompt"
219
+ },
220
+ "rationale": {
221
+ "description": "Indicates the max dimension for images in rationale",
222
+ "type": "number",
223
+ "title": "rationale"
224
+ }
225
+ }
226
+ },
227
+ "withRubric": {
228
+ "title": "ConfigureProp",
229
+ "type": "object",
230
+ "properties": {
231
+ "settings": {
232
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
233
+ "type": "boolean",
234
+ "title": "settings"
235
+ },
236
+ "label": {
237
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
238
+ "type": "string",
239
+ "title": "label"
240
+ }
241
+ }
242
+ },
107
243
  "showPrompt": {
108
244
  "description": "Determines whether prompt field will be displayed or not",
109
245
  "default": true,
@@ -140,6 +276,47 @@
140
276
  }
141
277
  }
142
278
  },
279
+ "LabelsPlaceholderConfigProp": {
280
+ "title": "LabelsPlaceholderConfigProp",
281
+ "type": "object",
282
+ "properties": {
283
+ "top": {
284
+ "description": "This value is empty for charting. The property exist in order to be consistent with graphing configuration.",
285
+ "type": "string",
286
+ "title": "top"
287
+ },
288
+ "right": {
289
+ "description": "This value is empty for charting. The property exist in order to be consistent with graphing configuration.",
290
+ "type": "string",
291
+ "title": "right"
292
+ },
293
+ "bottom": {
294
+ "description": "Indicates the placeholder for the bottom label",
295
+ "type": "string",
296
+ "title": "bottom"
297
+ },
298
+ "left": {
299
+ "description": "Indicates the placeholder for the left label",
300
+ "type": "string",
301
+ "title": "left"
302
+ },
303
+ "settings": {
304
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
305
+ "type": "boolean",
306
+ "title": "settings"
307
+ },
308
+ "label": {
309
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
310
+ "type": "string",
311
+ "title": "label"
312
+ },
313
+ "enabled": {
314
+ "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
315
+ "type": "boolean",
316
+ "title": "enabled"
317
+ }
318
+ }
319
+ },
143
320
  "ConfigurePropWithEnabled": {
144
321
  "title": "ConfigurePropWithEnabled",
145
322
  "type": "object",
@@ -160,6 +337,27 @@
160
337
  "title": "enabled"
161
338
  }
162
339
  }
340
+ },
341
+ "ConfigureMaxImageDimensionsProp": {
342
+ "title": "ConfigureMaxImageDimensionsProp",
343
+ "type": "object",
344
+ "properties": {
345
+ "teacherInstructions": {
346
+ "description": "Indicates the max dimension for images in teacher instructions",
347
+ "type": "number",
348
+ "title": "teacherInstructions"
349
+ },
350
+ "prompt": {
351
+ "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",
352
+ "type": "number",
353
+ "title": "prompt"
354
+ },
355
+ "rationale": {
356
+ "description": "Indicates the max dimension for images in rationale",
357
+ "type": "number",
358
+ "title": "rationale"
359
+ }
360
+ }
163
361
  }
164
362
  },
165
363
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -26,6 +26,63 @@ Indicates if the item has to be displayed in the Settings Panel
26
26
 
27
27
  Indicates the label for the item that has to be displayed in the Settings Panel
28
28
 
29
+ # `spellCheck` (object)
30
+
31
+ Properties of the `spellCheck` object:
32
+
33
+ ## `settings` (boolean)
34
+
35
+ Indicates if the item has to be displayed in the Settings Panel
36
+
37
+ ## `label` (string)
38
+
39
+ Indicates the label for the item that has to be displayed in the Settings Panel
40
+
41
+ # `titlePlaceholder` (object)
42
+
43
+ Properties of the `titlePlaceholder` object:
44
+
45
+ ## `settings` (boolean)
46
+
47
+ Indicates if the item has to be displayed in the Settings Panel
48
+
49
+ ## `label` (string)
50
+
51
+ Indicates the label for the item that has to be displayed in the Settings Panel
52
+
53
+ # `labelsPlaceholders` (object)
54
+
55
+ Properties of the `labelsPlaceholders` object:
56
+
57
+ ## `top` (string)
58
+
59
+ This value is empty for charting. The property exist in order to be consistent with graphing configuration.
60
+
61
+ ## `right` (string)
62
+
63
+ This value is empty for charting. The property exist in order to be consistent with graphing configuration.
64
+
65
+ ## `bottom` (string)
66
+
67
+ Indicates the placeholder for the bottom label
68
+
69
+ ## `left` (string)
70
+
71
+ Indicates the placeholder for the left label
72
+
73
+ ## `settings` (boolean)
74
+
75
+ Indicates if the item has to be displayed in the Settings Panel
76
+
77
+ ## `label` (string)
78
+
79
+ Indicates the label for the item that has to be displayed in the Settings Panel
80
+
81
+ ## `enabled` (boolean)
82
+
83
+ Indicates the value of the item if it affects config-ui
84
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
85
+
29
86
  # `scoringType` (object)
30
87
 
31
88
  Properties of the `scoringType` object:
@@ -38,6 +95,10 @@ Indicates if the item has to be displayed in the Settings Panel
38
95
 
39
96
  Indicates the label for the item that has to be displayed in the Settings Panel
40
97
 
98
+ # `settingsPanelDisabled` (boolean)
99
+
100
+ Indicates if the settings panel is not available
101
+
41
102
  # `studentInstructions` (object)
42
103
 
43
104
  Properties of the `studentInstructions` object:
@@ -79,6 +140,50 @@ Indicates the label for the item that has to be displayed in the Settings Panel
79
140
  Indicates the value of the item if it affects config-ui
80
141
  (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
81
142
 
143
+ # `maxImageWidth` (object)
144
+
145
+ Properties of the `maxImageWidth` object:
146
+
147
+ ## `teacherInstructions` (number)
148
+
149
+ Indicates the max dimension for images in teacher instructions
150
+
151
+ ## `prompt` (number)
152
+
153
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
154
+
155
+ ## `rationale` (number)
156
+
157
+ Indicates the max dimension for images in rationale
158
+
159
+ # `maxImageHeight` (object)
160
+
161
+ Properties of the `maxImageHeight` object:
162
+
163
+ ## `teacherInstructions` (number)
164
+
165
+ Indicates the max dimension for images in teacher instructions
166
+
167
+ ## `prompt` (number)
168
+
169
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
170
+
171
+ ## `rationale` (number)
172
+
173
+ Indicates the max dimension for images in rationale
174
+
175
+ # `withRubric` (object)
176
+
177
+ Properties of the `withRubric` object:
178
+
179
+ ## `settings` (boolean)
180
+
181
+ Indicates if the item has to be displayed in the Settings Panel
182
+
183
+ ## `label` (string)
184
+
185
+ Indicates the label for the item that has to be displayed in the Settings Panel
186
+
82
187
  # `showPrompt` (boolean)
83
188
 
84
189
  Determines whether prompt field will be displayed or not
@@ -115,6 +220,39 @@ Indicates if the item has to be displayed in the Settings Panel
115
220
 
116
221
  Indicates the label for the item that has to be displayed in the Settings Panel
117
222
 
223
+ ## `LabelsPlaceholderConfigProp` (object)
224
+
225
+ Properties of the `LabelsPlaceholderConfigProp` object:
226
+
227
+ ### `top` (string)
228
+
229
+ This value is empty for charting. The property exist in order to be consistent with graphing configuration.
230
+
231
+ ### `right` (string)
232
+
233
+ This value is empty for charting. The property exist in order to be consistent with graphing configuration.
234
+
235
+ ### `bottom` (string)
236
+
237
+ Indicates the placeholder for the bottom label
238
+
239
+ ### `left` (string)
240
+
241
+ Indicates the placeholder for the left label
242
+
243
+ ### `settings` (boolean)
244
+
245
+ Indicates if the item has to be displayed in the Settings Panel
246
+
247
+ ### `label` (string)
248
+
249
+ Indicates the label for the item that has to be displayed in the Settings Panel
250
+
251
+ ### `enabled` (boolean)
252
+
253
+ Indicates the value of the item if it affects config-ui
254
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
255
+
118
256
  ## `ConfigurePropWithEnabled` (object)
119
257
 
120
258
  Properties of the `ConfigurePropWithEnabled` object:
@@ -130,4 +268,20 @@ Indicates the label for the item that has to be displayed in the Settings Panel
130
268
  ### `enabled` (boolean)
131
269
 
132
270
  Indicates the value of the item if it affects config-ui
133
- (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
271
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
272
+
273
+ ## `ConfigureMaxImageDimensionsProp` (object)
274
+
275
+ Properties of the `ConfigureMaxImageDimensionsProp` object:
276
+
277
+ ### `teacherInstructions` (number)
278
+
279
+ Indicates the max dimension for images in teacher instructions
280
+
281
+ ### `prompt` (number)
282
+
283
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
284
+
285
+ ### `rationale` (number)
286
+
287
+ Indicates the max dimension for images in rationale
@@ -2,7 +2,7 @@ const { model } = require('./generate');
2
2
 
3
3
  module.exports = {
4
4
  elements: {
5
- 'charting-element': '../..'
5
+ 'charting-element': '../..',
6
6
  },
7
- models: [model('1', 'charting-element')]
7
+ models: [model('1', 'charting-element')],
8
8
  };
@@ -1,7 +1,6 @@
1
1
  exports.model = (id, element) => ({
2
2
  id,
3
3
  element,
4
-
5
4
  addCategoryEnabled: true,
6
5
  categoryDefaultLabel: 'Category',
7
6
  chartType: 'bar',
@@ -10,62 +9,43 @@ exports.model = (id, element) => ({
10
9
  {
11
10
  label: 'A',
12
11
  value: 1,
13
- initial: true,
14
- interactive: false,
15
- editable: true,
16
- deletable: true
17
12
  },
18
13
  {
19
14
  label: 'B',
20
15
  value: 1,
21
- initial: true,
22
- interactive: true,
23
- editable: true,
24
- deletable: true
25
16
  },
26
17
  {
27
18
  label: 'C',
28
19
  value: 1,
29
- initial: true,
30
- interactive: true,
31
- editable: true,
32
- deletable: true
33
20
  },
34
- ]
21
+ ],
35
22
  },
36
23
  data: [
37
24
  {
38
25
  label: 'A',
39
26
  value: 1,
40
- initial: true,
41
27
  interactive: false,
42
- editable: true,
43
- deletable: true
28
+ editable: false,
44
29
  },
45
30
  {
46
31
  label: 'B',
47
32
  value: 1,
48
- initial: true,
49
33
  interactive: true,
50
- editable: true,
51
- deletable: true
34
+ editable: false,
52
35
  },
53
36
  {
54
37
  label: 'D',
55
38
  value: 2,
56
- initial: true,
57
39
  interactive: true,
58
- editable: true,
59
- deletable: true
40
+ editable: false,
60
41
  },
61
42
  ],
62
43
  domain: {
63
44
  label: 'Characters',
64
45
  },
65
- editCategoryEnabled: true,
66
46
  graph: {
67
47
  width: 480,
68
- height: 480
48
+ height: 480,
69
49
  },
70
50
  prompt: 'Here goes item stem!',
71
51
  promptEnabled: true,
@@ -77,4 +57,5 @@ exports.model = (id, element) => ({
77
57
  labelStep: 1,
78
58
  },
79
59
  title: 'This is a chart!',
60
+ rubricEnabled: false,
80
61
  });
@@ -6,26 +6,20 @@ module.exports = [
6
6
  // {
7
7
  // label: 'A',
8
8
  // value: 1,
9
- // initial: true,
10
9
  // interactive: false,
11
- // editable: true,
12
- // deletable: true
10
+ // editable: true
13
11
  // },
14
12
  // {
15
13
  // label: 'B',
16
14
  // value: 1,
17
- // initial: true,
18
15
  // interactive: true,
19
- // editable: true,
20
- // deletable: true
16
+ // editable: true
21
17
  // },
22
18
  // {
23
19
  // label: 'C',
24
20
  // value: 1,
25
- // initial: true,
26
21
  // interactive: true,
27
- // editable: true,
28
- // deletable: true
22
+ // editable: true
29
23
  // }
30
24
  // ]
31
25
  },