@pie-element/charting 5.11.3-next.93 → 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.
@@ -160,18 +160,6 @@ Indicates if new category is interactive
160
160
 
161
161
  Indicates if new category is editable
162
162
 
163
- # `studentNewCategoryDefaultLabel` (object, required)
164
-
165
- Properties of the `studentNewCategoryDefaultLabel` object:
166
-
167
- ## `settings` (boolean)
168
-
169
- Indicates if the item has to be displayed in the Settings Panel
170
-
171
- ## `label` (string)
172
-
173
- Indicates the label for the item that has to be displayed in the Settings Panel
174
-
175
163
  # `maxImageWidth` (object)
176
164
 
177
165
  Properties of the `maxImageWidth` object:
@@ -216,6 +204,90 @@ Indicates if the item has to be displayed in the Settings Panel
216
204
 
217
205
  Indicates the label for the item that has to be displayed in the Settings Panel
218
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
+
219
291
  # `showPrompt` (boolean)
220
292
 
221
293
  Determines whether prompt field will be displayed or not
@@ -370,4 +442,100 @@ Indicates the max dimension for images in prompt - this is also the default dime
370
442
 
371
443
  ### `rationale` (number)
372
444
 
373
- 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.
@@ -503,6 +503,26 @@
503
503
  "type": "boolean",
504
504
  "title": "rubricEnabled"
505
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
+ },
506
526
  "id": {
507
527
  "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
508
528
  "type": "string",
@@ -516,6 +536,9 @@
516
536
  },
517
537
  "required": [
518
538
  "addCategoryEnabled",
539
+ "changeAddCategoryEnabled",
540
+ "changeEditableEnabled",
541
+ "changeInteractiveEnabled",
519
542
  "chartType",
520
543
  "correctAnswer",
521
544
  "data",
@@ -528,6 +551,7 @@
528
551
  "rubricEnabled",
529
552
  "spellCheckEnabled",
530
553
  "studentInstructionsEnabled",
554
+ "studentNewCategoryDefaultLabel",
531
555
  "teacherInstructionsEnabled"
532
556
  ],
533
557
  "definitions": {
@@ -656,6 +680,140 @@
656
680
  }
657
681
  }
658
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
+ },
659
817
  "Answer": {
660
818
  "title": "Answer",
661
819
  "type": "object",
@@ -166,6 +166,22 @@ Indicates if Teacher Instructions are enabled
166
166
 
167
167
  Indicates if Rubric is enabled
168
168
 
169
+ # `changeInteractiveEnabled` (boolean, required)
170
+
171
+ Indicates if teacher can enable/disable data[]:interactive
172
+
173
+ # `changeEditableEnabled` (boolean, required)
174
+
175
+ Indicates if teacher can enable/disable data[]:editable
176
+
177
+ # `changeAddCategoryEnabled` (boolean, required)
178
+
179
+ Indicates if teacher can enable/disable addCategoryEnabled
180
+
181
+ # `studentNewCategoryDefaultLabel` (string, required)
182
+
183
+ Label for new category in correct response and player's chart
184
+
169
185
  # `id` (string, required)
170
186
 
171
187
  Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
@@ -278,6 +294,102 @@ Indicates the max dimension for images in prompt - this is also the default dime
278
294
 
279
295
  Indicates the max dimension for images in rationale
280
296
 
297
+ ## `ChartingOptions` (object)
298
+
299
+ Properties of the `ChartingOptions` object:
300
+
301
+ ### `changeInteractive` (object)
302
+
303
+ Properties of the `changeInteractive` object:
304
+
305
+ #### `settings` (boolean)
306
+
307
+ Indicates if the item has to be displayed in the Settings Panel
308
+
309
+ #### `authoringLabel` (string)
310
+
311
+ Indicates the label for the option
312
+
313
+ #### `settingsLabel` (string)
314
+
315
+ Indicates the label for the item that has to be displayed in the Settings Panel
316
+
317
+ ### `changeEditable` (object)
318
+
319
+ Properties of the `changeEditable` object:
320
+
321
+ #### `settings` (boolean)
322
+
323
+ Indicates if the item has to be displayed in the Settings Panel
324
+
325
+ #### `authoringLabel` (string)
326
+
327
+ Indicates the label for the option
328
+
329
+ #### `settingsLabel` (string)
330
+
331
+ Indicates the label for the item that has to be displayed in the Settings Panel
332
+
333
+ ### `addCategory` (object)
334
+
335
+ Properties of the `addCategory` object:
336
+
337
+ #### `settings` (boolean)
338
+
339
+ Indicates if the item has to be displayed in the Settings Panel
340
+
341
+ #### `authoringLabel` (string)
342
+
343
+ Indicates the label for the option
344
+
345
+ #### `settingsLabel` (string)
346
+
347
+ Indicates the label for the item that has to be displayed in the Settings Panel
348
+
349
+ ## `ChartingOption` (object)
350
+
351
+ Properties of the `ChartingOption` object:
352
+
353
+ ### `settings` (boolean)
354
+
355
+ Indicates if the item has to be displayed in the Settings Panel
356
+
357
+ ### `authoringLabel` (string)
358
+
359
+ Indicates the label for the option
360
+
361
+ ### `settingsLabel` (string)
362
+
363
+ Indicates the label for the item that has to be displayed in the Settings Panel
364
+
365
+ ## `AvailableChartTypes` (object)
366
+
367
+ Properties of the `AvailableChartTypes` object:
368
+
369
+ ### `bar` (string, required)
370
+
371
+ Indicates if bar chart is available and the label used for it.
372
+
373
+ ### `histogram` (string, required)
374
+
375
+ Indicates if histogram is available and the label used for it.
376
+
377
+ ### `lineDot` (string, required)
378
+
379
+ Indicates if line chart with dots is available and the label used for it.
380
+
381
+ ### `lineCross` (string, required)
382
+
383
+ Indicates if line chart with crosses is available and the label used for it.
384
+
385
+ ### `dotPlot` (string, required)
386
+
387
+ Indicates if dot plot is available and the label used for it.
388
+
389
+ ### `linePlot` (string, required)
390
+
391
+ Indicates if line plot is available and the label used for it.
392
+
281
393
  ## `Answer` (object)
282
394
 
283
395
  Properties of the `Answer` object:
package/lib/main.js CHANGED
@@ -91,7 +91,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
91
91
  range = model.range,
92
92
  title = model.title,
93
93
  addCategoryEnabled = model.addCategoryEnabled,
94
- studentCategoryDefaultLabel = model.studentCategoryDefaultLabel,
94
+ studentNewCategoryDefaultLabel = model.studentNewCategoryDefaultLabel,
95
95
  rationale = model.rationale,
96
96
  correctedAnswer = model.correctedAnswer,
97
97
  correctAnswer = model.correctAnswer;
@@ -130,7 +130,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
130
130
  title: title,
131
131
  onDataChange: this.changeData,
132
132
  addCategoryEnabled: false,
133
- categoryDefaultLabel: studentCategoryDefaultLabel
133
+ categoryDefaultLabel: studentNewCategoryDefaultLabel
134
134
  }) : /*#__PURE__*/_react["default"].createElement(_charting.Chart, {
135
135
  className: classes.chart,
136
136
  chartType: chartType,
@@ -142,7 +142,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
142
142
  title: title,
143
143
  onDataChange: this.changeData,
144
144
  addCategoryEnabled: addCategoryEnabled,
145
- categoryDefaultLabel: studentCategoryDefaultLabel
145
+ categoryDefaultLabel: studentNewCategoryDefaultLabel
146
146
  }), rationale && (0, _renderUi.hasText)(rationale) && /*#__PURE__*/_react["default"].createElement(_renderUi.Collapsible, {
147
147
  labels: {
148
148
  hidden: 'Show Rationale',
package/lib/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/main.jsx"],"names":["Main","props","data","setState","categories","onAnswersChange","showingCorrect","state","model","classes","teacherInstructions","prompt","chartType","size","domain","range","title","addCategoryEnabled","studentCategoryDefaultLabel","rationale","correctedAnswer","correctAnswer","correctData","map","interactive","editable","showToggle","length","mainContainer","collapsible","hidden","visible","toggleCorrect","chart","chartTypes","Bar","Histogram","LineDot","LineCross","DotPlot","LinePlot","changeData","nextProps","prevState","newCategories","defaultCategories","nextCategories","React","Component","PropTypes","object","isRequired","func","array","styles","theme","color","text","backgroundColor","background","overflowX","overflowY","marginTop","spacing","unit","marginBottom"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,I;;;;;AAUX,gBAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AADiB,mGAqBN,UAACC,IAAD;AAAA,aACX,MAAKC,QAAL,CACE;AACEC,QAAAA,UA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styles';\nimport { color, Collapsible, hasText, PreviewPrompt } from '@pie-lib/render-ui';\nimport { Chart, chartTypes } from '@pie-lib/charting';\nimport isArray from 'lodash/isArray';\nimport isEqual from 'lodash/isEqual';\nimport CorrectAnswerToggle from '@pie-lib/correct-answer-toggle';\n\nexport class Main extends React.Component {\n static propTypes = {\n classes: PropTypes.object,\n model: PropTypes.object.isRequired,\n onAnswersChange: PropTypes.func,\n categories: PropTypes.array,\n };\n\n static defaultProps = { classes: {} };\n\n constructor(props) {\n super(props);\n\n this.state = {\n categories: props.categories || props.model.data,\n showingCorrect: false,\n };\n }\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { categories: newCategories, model: { data: defaultCategories = [] } = {} } = nextProps;\n const { categories } = prevState;\n const nextCategories = isArray(newCategories) ? newCategories : defaultCategories;\n\n if (!isEqual(nextCategories, categories)) {\n return { categories: nextCategories };\n }\n\n return null;\n }\n\n changeData = (data) =>\n this.setState(\n {\n categories: data,\n },\n () => this.props.onAnswersChange(data),\n );\n\n toggleCorrect = (showingCorrect) => this.setState({ showingCorrect });\n\n render() {\n const { categories, showingCorrect } = this.state;\n const { model, classes } = this.props;\n const {\n teacherInstructions,\n prompt,\n chartType,\n size,\n domain,\n range,\n title,\n addCategoryEnabled,\n studentCategoryDefaultLabel,\n rationale,\n correctedAnswer,\n correctAnswer,\n } = model;\n\n const correctData =\n correctAnswer && correctAnswer.data\n ? correctAnswer.data.map((data) => {\n return {\n ...data,\n interactive: false,\n editable: false,\n };\n })\n : [];\n\n const showToggle = correctData && correctData.length > 0;\n\n return (\n <div className={classes.mainContainer}>\n {teacherInstructions && hasText(teacherInstructions) && (\n <Collapsible\n className={classes.collapsible}\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n <PreviewPrompt prompt={teacherInstructions} />\n </Collapsible>\n )}\n\n {prompt && <PreviewPrompt className=\"prompt\" prompt={prompt} />}\n\n <CorrectAnswerToggle show={showToggle} toggled={showingCorrect} onToggle={this.toggleCorrect} />\n\n {showingCorrect && showToggle ? (\n <Chart\n className={classes.chart}\n chartType={chartType}\n size={size}\n domain={domain}\n range={range}\n charts={[\n chartTypes.Bar(),\n chartTypes.Histogram(),\n chartTypes.LineDot(),\n chartTypes.LineCross(),\n chartTypes.DotPlot(),\n chartTypes.LinePlot(),\n ]}\n data={correctData || categories}\n title={title}\n onDataChange={this.changeData}\n addCategoryEnabled={false}\n categoryDefaultLabel={studentCategoryDefaultLabel}\n />\n ) : (\n <Chart\n className={classes.chart}\n chartType={chartType}\n size={size}\n domain={domain}\n range={range}\n charts={[\n chartTypes.Bar(),\n chartTypes.Histogram(),\n chartTypes.LineDot(),\n chartTypes.LineCross(),\n chartTypes.DotPlot(),\n chartTypes.LinePlot(),\n ]}\n data={correctedAnswer || categories}\n title={title}\n onDataChange={this.changeData}\n addCategoryEnabled={addCategoryEnabled}\n categoryDefaultLabel={studentCategoryDefaultLabel}\n />\n )}\n\n {rationale && hasText(rationale) && (\n <Collapsible labels={{ hidden: 'Show Rationale', visible: 'Hide Rationale' }}>\n <PreviewPrompt prompt={rationale} />\n </Collapsible>\n )}\n </div>\n );\n }\n}\n\nconst styles = (theme) => ({\n mainContainer: {\n color: color.text(),\n backgroundColor: color.background(),\n overflowX: 'scroll',\n overflowY: 'hidden',\n },\n chart: {\n marginTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n collapsible: {\n marginBottom: theme.spacing.unit * 2,\n },\n});\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
1
+ {"version":3,"sources":["../src/main.jsx"],"names":["Main","props","data","setState","categories","onAnswersChange","showingCorrect","state","model","classes","teacherInstructions","prompt","chartType","size","domain","range","title","addCategoryEnabled","studentNewCategoryDefaultLabel","rationale","correctedAnswer","correctAnswer","correctData","map","interactive","editable","showToggle","length","mainContainer","collapsible","hidden","visible","toggleCorrect","chart","chartTypes","Bar","Histogram","LineDot","LineCross","DotPlot","LinePlot","changeData","nextProps","prevState","newCategories","defaultCategories","nextCategories","React","Component","PropTypes","object","isRequired","func","array","styles","theme","color","text","backgroundColor","background","overflowX","overflowY","marginTop","spacing","unit","marginBottom"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,I;;;;;AAUX,gBAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AADiB,mGAqBN,UAACC,IAAD;AAAA,aACX,MAAKC,QAAL,CACE;AACEC,QAAAA,UAAU,EAAEF;AADd,OADF,EAIE;AAAA,eAAM,MAAKD,KAAL,CAAWI,eAAX,CAA2BH,IAA3B,CAAN;AAAA,OAJF,CADW;AAAA,KArBM;AAAA,sGA6BH,UAACI,cAAD;AAAA,aAAoB,MAAKH,QAAL,CAAc;AAAEG,QAAAA,cAAc,EAAdA;AAAF,OAAd,CAApB;AAAA,KA7BG;AAGjB,UAAKC,KAAL,GAAa;AACXH,MAAAA,UAAU,EAAEH,KAAK,CAACG,UAAN,IAAoBH,KAAK,CAACO,KAAN,CAAYN,IADjC;AAEXI,MAAAA,cAAc,EAAE;AAFL,KAAb;AAHiB;AAOlB;;;;WAwBD,kBAAS;AACP,wBAAuC,KAAKC,KAA5C;AAAA,UAAQH,UAAR,eAAQA,UAAR;AAAA,UAAoBE,cAApB,eAAoBA,cAApB;AACA,wBAA2B,KAAKL,KAAhC;AAAA,UAAQO,KAAR,eAAQA,KAAR;AAAA,UAAeC,OAAf,eAAeA,OAAf;AACA,UACEC,mBADF,GAaIF,KAbJ,CACEE,mBADF;AAAA,UAEEC,MAFF,GAaIH,KAbJ,CAEEG,MAFF;AAAA,UAGEC,SAHF,GAaIJ,KAbJ,CAGEI,SAHF;AAAA,UAIEC,IAJF,GAaIL,KAbJ,CAIEK,IAJF;AAAA,UAKEC,MALF,GAaIN,KAbJ,CAKEM,MALF;AAAA,UAMEC,KANF,GAaIP,KAbJ,CAMEO,KANF;AAA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ACQ,OAAN,CAAcC,IAAd,GAAqB,CAD3B;AAELC,MAAAA,YAAY,EAAEV,KAAK,CAACQ,OAAN,CAAcC,IAAd,GAAqB;AAF9B,KAPkB;AAWzBnC,IAAAA,WAAW,EAAE;AACXoC,MAAAA,YAAY,EAAEV,KAAK,CAACQ,OAAN,CAAcC,IAAd,GAAqB;AADxB;AAXY,GAAZ;AAAA,CAAf;;eAgBe,wBAAWV,MAAX,EAAmBtD,IAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport { color, Collapsible, hasText, PreviewPrompt } from '@pie-lib/render-ui';\nimport { Chart, chartTypes } from '@pie-lib/charting';\nimport isArray from 'lodash/isArray';\nimport isEqual from 'lodash/isEqual';\nimport CorrectAnswerToggle from '@pie-lib/correct-answer-toggle';\n\nexport class Main extends React.Component {\n static propTypes = {\n classes: PropTypes.object,\n model: PropTypes.object.isRequired,\n onAnswersChange: PropTypes.func,\n categories: PropTypes.array,\n };\n\n static defaultProps = { classes: {} };\n\n constructor(props) {\n super(props);\n\n this.state = {\n categories: props.categories || props.model.data,\n showingCorrect: false,\n };\n }\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { categories: newCategories, model: { data: defaultCategories = [] } = {} } = nextProps;\n const { categories } = prevState;\n const nextCategories = isArray(newCategories) ? newCategories : defaultCategories;\n\n if (!isEqual(nextCategories, categories)) {\n return { categories: nextCategories };\n }\n\n return null;\n }\n\n changeData = (data) =>\n this.setState(\n {\n categories: data,\n },\n () => this.props.onAnswersChange(data),\n );\n\n toggleCorrect = (showingCorrect) => this.setState({ showingCorrect });\n\n render() {\n const { categories, showingCorrect } = this.state;\n const { model, classes } = this.props;\n const {\n teacherInstructions,\n prompt,\n chartType,\n size,\n domain,\n range,\n title,\n addCategoryEnabled,\n studentNewCategoryDefaultLabel,\n rationale,\n correctedAnswer,\n correctAnswer,\n } = model;\n\n const correctData =\n correctAnswer && correctAnswer.data\n ? correctAnswer.data.map((data) => {\n return {\n ...data,\n interactive: false,\n editable: false,\n };\n })\n : [];\n\n const showToggle = correctData && correctData.length > 0;\n\n return (\n <div className={classes.mainContainer}>\n {teacherInstructions && hasText(teacherInstructions) && (\n <Collapsible\n className={classes.collapsible}\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n <PreviewPrompt prompt={teacherInstructions} />\n </Collapsible>\n )}\n\n {prompt && <PreviewPrompt className=\"prompt\" prompt={prompt} />}\n\n <CorrectAnswerToggle show={showToggle} toggled={showingCorrect} onToggle={this.toggleCorrect} />\n\n {showingCorrect && showToggle ? (\n <Chart\n className={classes.chart}\n chartType={chartType}\n size={size}\n domain={domain}\n range={range}\n charts={[\n chartTypes.Bar(),\n chartTypes.Histogram(),\n chartTypes.LineDot(),\n chartTypes.LineCross(),\n chartTypes.DotPlot(),\n chartTypes.LinePlot(),\n ]}\n data={correctData || categories}\n title={title}\n onDataChange={this.changeData}\n addCategoryEnabled={false}\n categoryDefaultLabel={studentNewCategoryDefaultLabel}\n />\n ) : (\n <Chart\n className={classes.chart}\n chartType={chartType}\n size={size}\n domain={domain}\n range={range}\n charts={[\n chartTypes.Bar(),\n chartTypes.Histogram(),\n chartTypes.LineDot(),\n chartTypes.LineCross(),\n chartTypes.DotPlot(),\n chartTypes.LinePlot(),\n ]}\n data={correctedAnswer || categories}\n title={title}\n onDataChange={this.changeData}\n addCategoryEnabled={addCategoryEnabled}\n categoryDefaultLabel={studentNewCategoryDefaultLabel}\n />\n )}\n\n {rationale && hasText(rationale) && (\n <Collapsible labels={{ hidden: 'Show Rationale', visible: 'Hide Rationale' }}>\n <PreviewPrompt prompt={rationale} />\n </Collapsible>\n )}\n </div>\n );\n }\n}\n\nconst styles = (theme) => ({\n mainContainer: {\n color: color.text(),\n backgroundColor: color.background(),\n overflowX: 'scroll',\n overflowY: 'hidden',\n },\n chart: {\n marginTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n collapsible: {\n marginBottom: theme.spacing.unit * 2,\n },\n});\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "5.11.3-next.93+0dc764598",
7
+ "version": "6.0.0",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@material-ui/core": "^3.9.2",
15
15
  "@pie-framework/pie-player-events": "^0.1.0",
16
- "@pie-lib/charting": "^5.9.0",
16
+ "@pie-lib/charting": "^5.12.0",
17
17
  "@pie-lib/correct-answer-toggle": "^2.3.74",
18
18
  "@pie-lib/math-rendering": "^2.5.14",
19
19
  "@pie-lib/render-ui": "^4.14.24",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "author": "",
27
27
  "license": "ISC",
28
- "gitHead": "0dc764598aea4f1814ee5e5cf7ffa8729085f7be",
28
+ "gitHead": "25e381e4b889639bb20875c517bcd6f127124fad",
29
29
  "main": "lib/index.js",
30
30
  "module": "src/index.js"
31
31
  }