@pie-element/charting 5.11.3 → 6.0.0

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.
@@ -140,6 +140,26 @@ Indicates the label for the item that has to be displayed in the Settings Panel
140
140
  Indicates the value of the item if it affects config-ui
141
141
  (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
142
142
 
143
+ # `authorNewCategoryDefaults` (object, required)
144
+
145
+ Properties of the `authorNewCategoryDefaults` object:
146
+
147
+ ## `settings` (boolean)
148
+
149
+ Indicates if the item has to be displayed in the Settings Panel
150
+
151
+ ## `label` (string)
152
+
153
+ Indicates the label for the new category
154
+
155
+ ## `interactive` (boolean)
156
+
157
+ Indicates if new category is interactive
158
+
159
+ ## `editable` (boolean)
160
+
161
+ Indicates if new category is editable
162
+
143
163
  # `maxImageWidth` (object)
144
164
 
145
165
  Properties of the `maxImageWidth` object:
@@ -184,6 +204,90 @@ Indicates if the item has to be displayed in the Settings Panel
184
204
 
185
205
  Indicates the label for the item that has to be displayed in the Settings Panel
186
206
 
207
+ # `chartingOptions` (object)
208
+
209
+ Properties of the `chartingOptions` object:
210
+
211
+ ## `changeInteractive` (object)
212
+
213
+ Properties of the `changeInteractive` object:
214
+
215
+ ### `settings` (boolean)
216
+
217
+ Indicates if the item has to be displayed in the Settings Panel
218
+
219
+ ### `authoringLabel` (string)
220
+
221
+ Indicates the label for the option
222
+
223
+ ### `settingsLabel` (string)
224
+
225
+ Indicates the label for the item that has to be displayed in the Settings Panel
226
+
227
+ ## `changeEditable` (object)
228
+
229
+ Properties of the `changeEditable` object:
230
+
231
+ ### `settings` (boolean)
232
+
233
+ Indicates if the item has to be displayed in the Settings Panel
234
+
235
+ ### `authoringLabel` (string)
236
+
237
+ Indicates the label for the option
238
+
239
+ ### `settingsLabel` (string)
240
+
241
+ Indicates the label for the item that has to be displayed in the Settings Panel
242
+
243
+ ## `addCategory` (object)
244
+
245
+ Properties of the `addCategory` object:
246
+
247
+ ### `settings` (boolean)
248
+
249
+ Indicates if the item has to be displayed in the Settings Panel
250
+
251
+ ### `authoringLabel` (string)
252
+
253
+ Indicates the label for the option
254
+
255
+ ### `settingsLabel` (string)
256
+
257
+ Indicates the label for the item that has to be displayed in the Settings Panel
258
+
259
+ # `availableChartTypes` (object)
260
+
261
+ Properties of the `availableChartTypes` object:
262
+
263
+ ## `bar` (string, required)
264
+
265
+ Indicates if bar chart is available and the label used for it.
266
+
267
+ ## `histogram` (string, required)
268
+
269
+ Indicates if histogram is available and the label used for it.
270
+
271
+ ## `lineDot` (string, required)
272
+
273
+ Indicates if line chart with dots is available and the label used for it.
274
+
275
+ ## `lineCross` (string, required)
276
+
277
+ Indicates if line chart with crosses is available and the label used for it.
278
+
279
+ ## `dotPlot` (string, required)
280
+
281
+ Indicates if dot plot is available and the label used for it.
282
+
283
+ ## `linePlot` (string, required)
284
+
285
+ Indicates if line plot is available and the label used for it.
286
+
287
+ # `chartTypeLabel` (string, required)
288
+
289
+ Indicates the label for the chart type
290
+
187
291
  # `showPrompt` (boolean)
188
292
 
189
293
  Determines whether prompt field will be displayed or not
@@ -304,6 +408,26 @@ Indicates the label for the item that has to be displayed in the Settings Panel
304
408
  Indicates the value of the item if it affects config-ui
305
409
  (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
306
410
 
411
+ ## `AuthorNewCategoryDefaults` (object)
412
+
413
+ Properties of the `AuthorNewCategoryDefaults` object:
414
+
415
+ ### `settings` (boolean)
416
+
417
+ Indicates if the item has to be displayed in the Settings Panel
418
+
419
+ ### `label` (string)
420
+
421
+ Indicates the label for the new category
422
+
423
+ ### `interactive` (boolean)
424
+
425
+ Indicates if new category is interactive
426
+
427
+ ### `editable` (boolean)
428
+
429
+ Indicates if new category is editable
430
+
307
431
  ## `ConfigureMaxImageDimensionsProp` (object)
308
432
 
309
433
  Properties of the `ConfigureMaxImageDimensionsProp` object:
@@ -318,4 +442,100 @@ Indicates the max dimension for images in prompt - this is also the default dime
318
442
 
319
443
  ### `rationale` (number)
320
444
 
321
- Indicates the max dimension for images in rationale
445
+ Indicates the max dimension for images in rationale
446
+
447
+ ## `ChartingOptions` (object)
448
+
449
+ Properties of the `ChartingOptions` object:
450
+
451
+ ### `changeInteractive` (object)
452
+
453
+ Properties of the `changeInteractive` object:
454
+
455
+ #### `settings` (boolean)
456
+
457
+ Indicates if the item has to be displayed in the Settings Panel
458
+
459
+ #### `authoringLabel` (string)
460
+
461
+ Indicates the label for the option
462
+
463
+ #### `settingsLabel` (string)
464
+
465
+ Indicates the label for the item that has to be displayed in the Settings Panel
466
+
467
+ ### `changeEditable` (object)
468
+
469
+ Properties of the `changeEditable` object:
470
+
471
+ #### `settings` (boolean)
472
+
473
+ Indicates if the item has to be displayed in the Settings Panel
474
+
475
+ #### `authoringLabel` (string)
476
+
477
+ Indicates the label for the option
478
+
479
+ #### `settingsLabel` (string)
480
+
481
+ Indicates the label for the item that has to be displayed in the Settings Panel
482
+
483
+ ### `addCategory` (object)
484
+
485
+ Properties of the `addCategory` object:
486
+
487
+ #### `settings` (boolean)
488
+
489
+ Indicates if the item has to be displayed in the Settings Panel
490
+
491
+ #### `authoringLabel` (string)
492
+
493
+ Indicates the label for the option
494
+
495
+ #### `settingsLabel` (string)
496
+
497
+ Indicates the label for the item that has to be displayed in the Settings Panel
498
+
499
+ ## `ChartingOption` (object)
500
+
501
+ Properties of the `ChartingOption` object:
502
+
503
+ ### `settings` (boolean)
504
+
505
+ Indicates if the item has to be displayed in the Settings Panel
506
+
507
+ ### `authoringLabel` (string)
508
+
509
+ Indicates the label for the option
510
+
511
+ ### `settingsLabel` (string)
512
+
513
+ Indicates the label for the item that has to be displayed in the Settings Panel
514
+
515
+ ## `AvailableChartTypes` (object)
516
+
517
+ Properties of the `AvailableChartTypes` object:
518
+
519
+ ### `bar` (string, required)
520
+
521
+ Indicates if bar chart is available and the label used for it.
522
+
523
+ ### `histogram` (string, required)
524
+
525
+ Indicates if histogram is available and the label used for it.
526
+
527
+ ### `lineDot` (string, required)
528
+
529
+ Indicates if line chart with dots is available and the label used for it.
530
+
531
+ ### `lineCross` (string, required)
532
+
533
+ Indicates if line chart with crosses is available and the label used for it.
534
+
535
+ ### `dotPlot` (string, required)
536
+
537
+ Indicates if dot plot is available and the label used for it.
538
+
539
+ ### `linePlot` (string, required)
540
+
541
+ Indicates if line plot is available and the label used for it.
@@ -2,7 +2,6 @@ exports.model = (id, element) => ({
2
2
  id,
3
3
  element,
4
4
  addCategoryEnabled: true,
5
- categoryDefaultLabel: 'Category',
6
5
  chartType: 'bar',
7
6
  correctAnswer: {
8
7
  data: [
@@ -8,11 +8,6 @@
8
8
  "type": "boolean",
9
9
  "title": "addCategoryEnabled"
10
10
  },
11
- "categoryDefaultLabel": {
12
- "description": "Indicates default value for a new category's label",
13
- "type": "string",
14
- "title": "categoryDefaultLabel"
15
- },
16
11
  "chartType": {
17
12
  "enum": [
18
13
  "bar",
@@ -53,7 +48,7 @@
53
48
  "title": "value"
54
49
  },
55
50
  "interactive": {
56
- "description": "Indicates if category label & value are interactive",
51
+ "description": "Indicates if category value is interactive",
57
52
  "type": "boolean",
58
53
  "title": "interactive"
59
54
  },
@@ -123,7 +118,7 @@
123
118
  "title": "value"
124
119
  },
125
120
  "interactive": {
126
- "description": "Indicates if category label & value are interactive",
121
+ "description": "Indicates if category value is interactive",
127
122
  "type": "boolean",
128
123
  "title": "interactive"
129
124
  },
@@ -203,7 +198,7 @@
203
198
  "title": "value"
204
199
  },
205
200
  "interactive": {
206
- "description": "Indicates if category label & value are interactive",
201
+ "description": "Indicates if category value is interactive",
207
202
  "type": "boolean",
208
203
  "title": "interactive"
209
204
  },
@@ -273,7 +268,7 @@
273
268
  "title": "value"
274
269
  },
275
270
  "interactive": {
276
- "description": "Indicates if category label & value are interactive",
271
+ "description": "Indicates if category value is interactive",
277
272
  "type": "boolean",
278
273
  "title": "interactive"
279
274
  },
@@ -508,6 +503,26 @@
508
503
  "type": "boolean",
509
504
  "title": "rubricEnabled"
510
505
  },
506
+ "changeInteractiveEnabled": {
507
+ "description": "Indicates if teacher can enable/disable data[]:interactive",
508
+ "type": "boolean",
509
+ "title": "changeInteractiveEnabled"
510
+ },
511
+ "changeEditableEnabled": {
512
+ "description": "Indicates if teacher can enable/disable data[]:editable",
513
+ "type": "boolean",
514
+ "title": "changeEditableEnabled"
515
+ },
516
+ "changeAddCategoryEnabled": {
517
+ "description": "Indicates if teacher can enable/disable addCategoryEnabled",
518
+ "type": "boolean",
519
+ "title": "changeAddCategoryEnabled"
520
+ },
521
+ "studentNewCategoryDefaultLabel": {
522
+ "description": "Label for new category in correct response and player's chart",
523
+ "type": "string",
524
+ "title": "studentNewCategoryDefaultLabel"
525
+ },
511
526
  "id": {
512
527
  "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
513
528
  "type": "string",
@@ -521,7 +536,9 @@
521
536
  },
522
537
  "required": [
523
538
  "addCategoryEnabled",
524
- "categoryDefaultLabel",
539
+ "changeAddCategoryEnabled",
540
+ "changeEditableEnabled",
541
+ "changeInteractiveEnabled",
525
542
  "chartType",
526
543
  "correctAnswer",
527
544
  "data",
@@ -534,6 +551,7 @@
534
551
  "rubricEnabled",
535
552
  "spellCheckEnabled",
536
553
  "studentInstructionsEnabled",
554
+ "studentNewCategoryDefaultLabel",
537
555
  "teacherInstructionsEnabled"
538
556
  ],
539
557
  "definitions": {
@@ -615,6 +633,32 @@
615
633
  }
616
634
  }
617
635
  },
636
+ "AuthorNewCategoryDefaults": {
637
+ "title": "AuthorNewCategoryDefaults",
638
+ "type": "object",
639
+ "properties": {
640
+ "settings": {
641
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
642
+ "type": "boolean",
643
+ "title": "settings"
644
+ },
645
+ "label": {
646
+ "description": "Indicates the label for the new category",
647
+ "type": "string",
648
+ "title": "label"
649
+ },
650
+ "interactive": {
651
+ "description": "Indicates if new category is interactive",
652
+ "type": "boolean",
653
+ "title": "interactive"
654
+ },
655
+ "editable": {
656
+ "description": "Indicates if new category is editable",
657
+ "type": "boolean",
658
+ "title": "editable"
659
+ }
660
+ }
661
+ },
618
662
  "ConfigureMaxImageDimensionsProp": {
619
663
  "title": "ConfigureMaxImageDimensionsProp",
620
664
  "type": "object",
@@ -636,6 +680,140 @@
636
680
  }
637
681
  }
638
682
  },
683
+ "ChartingOptions": {
684
+ "title": "ChartingOptions",
685
+ "type": "object",
686
+ "properties": {
687
+ "changeInteractive": {
688
+ "title": "ChartingOption",
689
+ "type": "object",
690
+ "properties": {
691
+ "settings": {
692
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
693
+ "type": "boolean",
694
+ "title": "settings"
695
+ },
696
+ "authoringLabel": {
697
+ "description": "Indicates the label for the option",
698
+ "type": "string",
699
+ "title": "authoringLabel"
700
+ },
701
+ "settingsLabel": {
702
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
703
+ "type": "string",
704
+ "title": "settingsLabel"
705
+ }
706
+ }
707
+ },
708
+ "changeEditable": {
709
+ "title": "ChartingOption",
710
+ "type": "object",
711
+ "properties": {
712
+ "settings": {
713
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
714
+ "type": "boolean",
715
+ "title": "settings"
716
+ },
717
+ "authoringLabel": {
718
+ "description": "Indicates the label for the option",
719
+ "type": "string",
720
+ "title": "authoringLabel"
721
+ },
722
+ "settingsLabel": {
723
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
724
+ "type": "string",
725
+ "title": "settingsLabel"
726
+ }
727
+ }
728
+ },
729
+ "addCategory": {
730
+ "title": "ChartingOption",
731
+ "type": "object",
732
+ "properties": {
733
+ "settings": {
734
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
735
+ "type": "boolean",
736
+ "title": "settings"
737
+ },
738
+ "authoringLabel": {
739
+ "description": "Indicates the label for the option",
740
+ "type": "string",
741
+ "title": "authoringLabel"
742
+ },
743
+ "settingsLabel": {
744
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
745
+ "type": "string",
746
+ "title": "settingsLabel"
747
+ }
748
+ }
749
+ }
750
+ }
751
+ },
752
+ "ChartingOption": {
753
+ "title": "ChartingOption",
754
+ "type": "object",
755
+ "properties": {
756
+ "settings": {
757
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
758
+ "type": "boolean",
759
+ "title": "settings"
760
+ },
761
+ "authoringLabel": {
762
+ "description": "Indicates the label for the option",
763
+ "type": "string",
764
+ "title": "authoringLabel"
765
+ },
766
+ "settingsLabel": {
767
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
768
+ "type": "string",
769
+ "title": "settingsLabel"
770
+ }
771
+ }
772
+ },
773
+ "AvailableChartTypes": {
774
+ "title": "AvailableChartTypes",
775
+ "type": "object",
776
+ "properties": {
777
+ "bar": {
778
+ "description": "Indicates if bar chart is available and the label used for it.",
779
+ "type": "string",
780
+ "title": "bar"
781
+ },
782
+ "histogram": {
783
+ "description": "Indicates if histogram is available and the label used for it.",
784
+ "type": "string",
785
+ "title": "histogram"
786
+ },
787
+ "lineDot": {
788
+ "description": "Indicates if line chart with dots is available and the label used for it.",
789
+ "type": "string",
790
+ "title": "lineDot"
791
+ },
792
+ "lineCross": {
793
+ "description": "Indicates if line chart with crosses is available and the label used for it.",
794
+ "type": "string",
795
+ "title": "lineCross"
796
+ },
797
+ "dotPlot": {
798
+ "description": "Indicates if dot plot is available and the label used for it.",
799
+ "type": "string",
800
+ "title": "dotPlot"
801
+ },
802
+ "linePlot": {
803
+ "description": "Indicates if line plot is available and the label used for it.",
804
+ "type": "string",
805
+ "title": "linePlot"
806
+ }
807
+ },
808
+ "required": [
809
+ "bar",
810
+ "dotPlot",
811
+ "histogram",
812
+ "lineCross",
813
+ "lineDot",
814
+ "linePlot"
815
+ ]
816
+ },
639
817
  "Answer": {
640
818
  "title": "Answer",
641
819
  "type": "object",
@@ -664,7 +842,7 @@
664
842
  "title": "value"
665
843
  },
666
844
  "interactive": {
667
- "description": "Indicates if category label & value are interactive",
845
+ "description": "Indicates if category value is interactive",
668
846
  "type": "boolean",
669
847
  "title": "interactive"
670
848
  },
@@ -734,7 +912,7 @@
734
912
  "title": "value"
735
913
  },
736
914
  "interactive": {
737
- "description": "Indicates if category label & value are interactive",
915
+ "description": "Indicates if category value is interactive",
738
916
  "type": "boolean",
739
917
  "title": "interactive"
740
918
  },
@@ -810,7 +988,7 @@
810
988
  "title": "value"
811
989
  },
812
990
  "interactive": {
813
- "description": "Indicates if category label & value are interactive",
991
+ "description": "Indicates if category value is interactive",
814
992
  "type": "boolean",
815
993
  "title": "interactive"
816
994
  },