@pie-element/ebsr 10.2.6-next.34 → 10.2.6-next.40

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.
@@ -10,7 +10,7 @@
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-element/multiple-choice": "^9.5.1",
12
12
  "@pie-framework/pie-configure-events": "^1.2.0",
13
- "@pie-lib/pie-toolbox": "2.4.1",
13
+ "@pie-lib/pie-toolbox": "2.5.0",
14
14
  "lodash": "^4.17.15",
15
15
  "prop-types": "^15.6.2",
16
16
  "react": "^16.8.1",
@@ -7,7 +7,7 @@
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "2.4.1",
10
+ "@pie-lib/pie-toolbox": "2.5.0",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -1,6 +1,6 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.4.1/module/index.js";
2
2
  import MultipleChoiceConfigure from '@pie-element/multiple-choice/configure/lib';
3
- import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.4.0/module/index.js";
3
+ import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.4.1/module/index.js";
4
4
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
5
  function getDefaultExportFromCjs(x) {
6
6
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -23478,6 +23478,12 @@ var _default = {
23478
23478
  mathInline: {
23479
23479
  primaryCorrectWithAlternates: 'Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.'
23480
23480
  },
23481
+ multipleChoice: {
23482
+ minSelections_one: 'This question requires at least {{minSelections}} answer.',
23483
+ minSelections_other: 'This question requires at least {{minSelections}} answers.',
23484
+ maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
23485
+ maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
23486
+ },
23481
23487
  selectText: {
23482
23488
  correctAnswerSelected: 'Correct answer selected',
23483
23489
  correctAnswerNotSelected: 'Correct answer not selected',
@@ -23568,6 +23574,12 @@ var _default = {
23568
23574
  mathInline: {
23569
23575
  primaryCorrectWithAlternates: 'Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.'
23570
23576
  },
23577
+ multipleChoice: {
23578
+ minSelections_one: 'Esta pregunta requiere al menos {{minSelections}} respuesta.',
23579
+ minSelections_other: 'Esta pregunta requiere al menos {{minSelections}} respuestas.',
23580
+ maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
23581
+ maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
23582
+ },
23571
23583
  selectText: {
23572
23584
  correctAnswerSelected: 'Respuesta correcta seleccionada',
23573
23585
  correctAnswerNotSelected: 'Respuesta correcta no seleccionada',
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.4.1/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.4.0/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.4.1/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
5
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -8493,6 +8493,12 @@ var en = {};
8493
8493
  mathInline: {
8494
8494
  primaryCorrectWithAlternates: 'Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.'
8495
8495
  },
8496
+ multipleChoice: {
8497
+ minSelections_one: 'This question requires at least {{minSelections}} answer.',
8498
+ minSelections_other: 'This question requires at least {{minSelections}} answers.',
8499
+ maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
8500
+ maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
8501
+ },
8496
8502
  selectText: {
8497
8503
  correctAnswerSelected: 'Correct answer selected',
8498
8504
  correctAnswerNotSelected: 'Correct answer not selected',
@@ -8580,6 +8586,12 @@ var es = {};
8580
8586
  mathInline: {
8581
8587
  primaryCorrectWithAlternates: 'Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.'
8582
8588
  },
8589
+ multipleChoice: {
8590
+ minSelections_one: 'Esta pregunta requiere al menos {{minSelections}} respuesta.',
8591
+ minSelections_other: 'Esta pregunta requiere al menos {{minSelections}} respuestas.',
8592
+ maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
8593
+ maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
8594
+ },
8583
8595
  selectText: {
8584
8596
  correctAnswerSelected: 'Respuesta correcta seleccionada',
8585
8597
  correctAnswerNotSelected: 'Respuesta correcta no seleccionada',
@@ -12513,7 +12525,7 @@ class Choice extends React$3.Component {
12513
12525
  };
12514
12526
  }
12515
12527
  render() {
12516
- const {choice, index, choicesLength, showCorrect, isEvaluateMode, choiceMode, disabled, checked, correctness, displayKey, classes, choicesLayout, gridColumns, isSelectionButtonBelow} = this.props;
12528
+ const {choice, index, choicesLength, showCorrect, isEvaluateMode, choiceMode, disabled, checked, correctness, displayKey, classes, choicesLayout, gridColumns, isSelectionButtonBelow, selectedAnswerBackgroundColor} = this.props;
12517
12529
  const choiceClass = 'choice' + (index === choicesLength - 1 ? ' last' : '');
12518
12530
  const feedback = !isEvaluateMode || showCorrect ? '' : choice.feedback;
12519
12531
  const choiceProps = {
@@ -12535,13 +12547,17 @@ class Choice extends React$3.Component {
12535
12547
  [classes.noBorder]: index === choicesLength - 1 || choicesLayout !== 'vertical',
12536
12548
  [classes.horizontalLayout]: choicesLayout === 'horizontal'
12537
12549
  });
12550
+ const choiceBackground = selectedAnswerBackgroundColor && checked ? selectedAnswerBackgroundColor : 'initial';
12538
12551
  return React$3.createElement('div', {
12539
12552
  className: choiceClass,
12540
12553
  key: index,
12554
+ style: {
12555
+ backgroundColor: choiceBackground
12556
+ },
12541
12557
  __self: this,
12542
12558
  __source: {
12543
12559
  fileName: _jsxFileName$2,
12544
- lineNumber: 62
12560
+ lineNumber: 65
12545
12561
  }
12546
12562
  }, React$3.createElement(ChoiceInput$1, {
12547
12563
  ...choiceProps,
@@ -12549,7 +12565,7 @@ class Choice extends React$3.Component {
12549
12565
  __self: this,
12550
12566
  __source: {
12551
12567
  fileName: _jsxFileName$2,
12552
- lineNumber: 63
12568
+ lineNumber: 66
12553
12569
  }
12554
12570
  }));
12555
12571
  }
@@ -12570,12 +12586,15 @@ Choice.propTypes = {
12570
12586
  displayKey: PropTypes$2.string,
12571
12587
  choicesLayout: PropTypes$2.oneOf(['vertical', 'grid', 'horizontal']),
12572
12588
  gridColumns: PropTypes$2.string,
12589
+ selectedAnswerBackgroundColor: PropTypes$2.string,
12573
12590
  isSelectionButtonBelow: PropTypes$2.bool
12574
12591
  };
12575
12592
  var StyledChoice = styles$b.withStyles(theme => ({
12576
12593
  choice: {
12577
12594
  paddingTop: theme.spacing.unit * 2.5,
12578
12595
  paddingBottom: theme.spacing.unit + 2,
12596
+ paddingLeft: theme.spacing.unit + 2,
12597
+ paddingRight: theme.spacing.unit + 2,
12579
12598
  borderBottom: `1px solid ${theme.palette.grey[300]}`
12580
12599
  },
12581
12600
  noBorder: {
@@ -12665,6 +12684,7 @@ class MultipleChoice$1 extends React$2.Component {
12665
12684
  alwaysShowCorrect: PropTypes$1.bool,
12666
12685
  animationsDisabled: PropTypes$1.bool,
12667
12686
  language: PropTypes$1.string,
12687
+ selectedAnswerBackgroundColor: PropTypes$1.string,
12668
12688
  onShowCorrectToggle: PropTypes$1.func,
12669
12689
  isSelectionButtonBelow: PropTypes$1.bool,
12670
12690
  minSelections: PropTypes$1.number,
@@ -12796,14 +12816,14 @@ class MultipleChoice$1 extends React$2.Component {
12796
12816
  __self: this,
12797
12817
  __source: {
12798
12818
  fileName: _jsxFileName$1,
12799
- lineNumber: 224
12819
+ lineNumber: 225
12800
12820
  }
12801
12821
  }, "Multiple Choice Question") : React$2.createElement('h2', {
12802
12822
  className: classes.srOnly,
12803
12823
  __self: this,
12804
12824
  __source: {
12805
12825
  fileName: _jsxFileName$1,
12806
- lineNumber: 226
12826
+ lineNumber: 227
12807
12827
  }
12808
12828
  }, "Multiple Select Question");
12809
12829
  }
@@ -12824,7 +12844,7 @@ class MultipleChoice$1 extends React$2.Component {
12824
12844
  __self: this,
12825
12845
  __source: {
12826
12846
  fileName: _jsxFileName$1,
12827
- lineNumber: 258
12847
+ lineNumber: 259
12828
12848
  }
12829
12849
  });
12830
12850
  return React$2.createElement('div', {
@@ -12832,21 +12852,21 @@ class MultipleChoice$1 extends React$2.Component {
12832
12852
  __self: this,
12833
12853
  __source: {
12834
12854
  fileName: _jsxFileName$1,
12835
- lineNumber: 267
12855
+ lineNumber: 268
12836
12856
  }
12837
12857
  }, partLabel && React$2.createElement('h3', {
12838
12858
  className: classes.partLabel,
12839
12859
  __self: this,
12840
12860
  __source: {
12841
12861
  fileName: _jsxFileName$1,
12842
- lineNumber: 268
12862
+ lineNumber: 269
12843
12863
  }
12844
12864
  }, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
12845
12865
  className: classes.teacherInstructions,
12846
12866
  __self: this,
12847
12867
  __source: {
12848
12868
  fileName: _jsxFileName$1,
12849
- lineNumber: 273
12869
+ lineNumber: 274
12850
12870
  }
12851
12871
  }, !animationsDisabled ? React$2.createElement(Collapsible, {
12852
12872
  labels: {
@@ -12856,14 +12876,14 @@ class MultipleChoice$1 extends React$2.Component {
12856
12876
  __self: this,
12857
12877
  __source: {
12858
12878
  fileName: _jsxFileName$1,
12859
- lineNumber: 275
12879
+ lineNumber: 276
12860
12880
  }
12861
12881
  }, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
12862
12882
  className: classes.fieldset,
12863
12883
  __self: this,
12864
12884
  __source: {
12865
12885
  fileName: _jsxFileName$1,
12866
- lineNumber: 289
12886
+ lineNumber: 290
12867
12887
  }
12868
12888
  }, React$2.createElement(PreviewPrompt, {
12869
12889
  className: "prompt",
@@ -12873,7 +12893,7 @@ class MultipleChoice$1 extends React$2.Component {
12873
12893
  __self: this,
12874
12894
  __source: {
12875
12895
  fileName: _jsxFileName$1,
12876
- lineNumber: 290
12896
+ lineNumber: 291
12877
12897
  }
12878
12898
  }), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
12879
12899
  show: showCorrectAnswerToggle,
@@ -12883,7 +12903,7 @@ class MultipleChoice$1 extends React$2.Component {
12883
12903
  __self: this,
12884
12904
  __source: {
12885
12905
  fileName: _jsxFileName$1,
12886
- lineNumber: 293
12906
+ lineNumber: 294
12887
12907
  }
12888
12908
  }), React$2.createElement('div', {
12889
12909
  className: classNames({
@@ -12894,10 +12914,11 @@ class MultipleChoice$1 extends React$2.Component {
12894
12914
  __self: this,
12895
12915
  __source: {
12896
12916
  fileName: _jsxFileName$1,
12897
- lineNumber: 301
12917
+ lineNumber: 302
12898
12918
  }
12899
12919
  }, choices.map((choice, index) => React$2.createElement(StyledChoice, {
12900
12920
  choicesLayout: this.props.choicesLayout,
12921
+ selectedAnswerBackgroundColor: this.props.selectedAnswerBackgroundColor,
12901
12922
  gridColumns: gridColumns,
12902
12923
  key: `choice-${index}`,
12903
12924
  choice: choice,
@@ -12916,14 +12937,14 @@ class MultipleChoice$1 extends React$2.Component {
12916
12937
  __self: this,
12917
12938
  __source: {
12918
12939
  fileName: _jsxFileName$1,
12919
- lineNumber: 309
12940
+ lineNumber: 310
12920
12941
  }
12921
12942
  })))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
12922
12943
  className: classes.errorText,
12923
12944
  __self: this,
12924
12945
  __source: {
12925
12946
  fileName: _jsxFileName$1,
12926
- lineNumber: 332
12947
+ lineNumber: 334
12927
12948
  }
12928
12949
  }, translator.t(`translation:multipleChoice:minSelections_${minSelections === 1 ? 'one' : 'other'}`, {
12929
12950
  lng: language,
@@ -12933,7 +12954,7 @@ class MultipleChoice$1 extends React$2.Component {
12933
12954
  __self: this,
12934
12955
  __source: {
12935
12956
  fileName: _jsxFileName$1,
12936
- lineNumber: 340
12957
+ lineNumber: 342
12937
12958
  }
12938
12959
  }, translator.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
12939
12960
  lng: language,
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "5.4.0"
11
+ "version": "5.4.1"
12
12
  }
13
13
  ]
14
14
  }
package/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.4.1/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.4.0/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.4.1/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
5
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -8456,6 +8456,12 @@ var en = {};
8456
8456
  mathInline: {
8457
8457
  primaryCorrectWithAlternates: 'Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.'
8458
8458
  },
8459
+ multipleChoice: {
8460
+ minSelections_one: 'This question requires at least {{minSelections}} answer.',
8461
+ minSelections_other: 'This question requires at least {{minSelections}} answers.',
8462
+ maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
8463
+ maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
8464
+ },
8459
8465
  selectText: {
8460
8466
  correctAnswerSelected: 'Correct answer selected',
8461
8467
  correctAnswerNotSelected: 'Correct answer not selected',
@@ -8543,6 +8549,12 @@ var es = {};
8543
8549
  mathInline: {
8544
8550
  primaryCorrectWithAlternates: 'Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.'
8545
8551
  },
8552
+ multipleChoice: {
8553
+ minSelections_one: 'Esta pregunta requiere al menos {{minSelections}} respuesta.',
8554
+ minSelections_other: 'Esta pregunta requiere al menos {{minSelections}} respuestas.',
8555
+ maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
8556
+ maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
8557
+ },
8546
8558
  selectText: {
8547
8559
  correctAnswerSelected: 'Respuesta correcta seleccionada',
8548
8560
  correctAnswerNotSelected: 'Respuesta correcta no seleccionada',
@@ -12476,7 +12488,7 @@ class Choice extends React$3.Component {
12476
12488
  };
12477
12489
  }
12478
12490
  render() {
12479
- const {choice, index, choicesLength, showCorrect, isEvaluateMode, choiceMode, disabled, checked, correctness, displayKey, classes, choicesLayout, gridColumns, isSelectionButtonBelow} = this.props;
12491
+ const {choice, index, choicesLength, showCorrect, isEvaluateMode, choiceMode, disabled, checked, correctness, displayKey, classes, choicesLayout, gridColumns, isSelectionButtonBelow, selectedAnswerBackgroundColor} = this.props;
12480
12492
  const choiceClass = 'choice' + (index === choicesLength - 1 ? ' last' : '');
12481
12493
  const feedback = !isEvaluateMode || showCorrect ? '' : choice.feedback;
12482
12494
  const choiceProps = {
@@ -12498,13 +12510,17 @@ class Choice extends React$3.Component {
12498
12510
  [classes.noBorder]: index === choicesLength - 1 || choicesLayout !== 'vertical',
12499
12511
  [classes.horizontalLayout]: choicesLayout === 'horizontal'
12500
12512
  });
12513
+ const choiceBackground = selectedAnswerBackgroundColor && checked ? selectedAnswerBackgroundColor : 'initial';
12501
12514
  return React$3.createElement('div', {
12502
12515
  className: choiceClass,
12503
12516
  key: index,
12517
+ style: {
12518
+ backgroundColor: choiceBackground
12519
+ },
12504
12520
  __self: this,
12505
12521
  __source: {
12506
12522
  fileName: _jsxFileName$2,
12507
- lineNumber: 62
12523
+ lineNumber: 65
12508
12524
  }
12509
12525
  }, React$3.createElement(ChoiceInput$1, {
12510
12526
  ...choiceProps,
@@ -12512,7 +12528,7 @@ class Choice extends React$3.Component {
12512
12528
  __self: this,
12513
12529
  __source: {
12514
12530
  fileName: _jsxFileName$2,
12515
- lineNumber: 63
12531
+ lineNumber: 66
12516
12532
  }
12517
12533
  }));
12518
12534
  }
@@ -12533,12 +12549,15 @@ Choice.propTypes = {
12533
12549
  displayKey: PropTypes$2.string,
12534
12550
  choicesLayout: PropTypes$2.oneOf(['vertical', 'grid', 'horizontal']),
12535
12551
  gridColumns: PropTypes$2.string,
12552
+ selectedAnswerBackgroundColor: PropTypes$2.string,
12536
12553
  isSelectionButtonBelow: PropTypes$2.bool
12537
12554
  };
12538
12555
  var StyledChoice = styles$b.withStyles(theme => ({
12539
12556
  choice: {
12540
12557
  paddingTop: theme.spacing.unit * 2.5,
12541
12558
  paddingBottom: theme.spacing.unit + 2,
12559
+ paddingLeft: theme.spacing.unit + 2,
12560
+ paddingRight: theme.spacing.unit + 2,
12542
12561
  borderBottom: `1px solid ${theme.palette.grey[300]}`
12543
12562
  },
12544
12563
  noBorder: {
@@ -12628,6 +12647,7 @@ class MultipleChoice$1 extends React$2.Component {
12628
12647
  alwaysShowCorrect: PropTypes$1.bool,
12629
12648
  animationsDisabled: PropTypes$1.bool,
12630
12649
  language: PropTypes$1.string,
12650
+ selectedAnswerBackgroundColor: PropTypes$1.string,
12631
12651
  onShowCorrectToggle: PropTypes$1.func,
12632
12652
  isSelectionButtonBelow: PropTypes$1.bool,
12633
12653
  minSelections: PropTypes$1.number,
@@ -12759,14 +12779,14 @@ class MultipleChoice$1 extends React$2.Component {
12759
12779
  __self: this,
12760
12780
  __source: {
12761
12781
  fileName: _jsxFileName$1,
12762
- lineNumber: 224
12782
+ lineNumber: 225
12763
12783
  }
12764
12784
  }, "Multiple Choice Question") : React$2.createElement('h2', {
12765
12785
  className: classes.srOnly,
12766
12786
  __self: this,
12767
12787
  __source: {
12768
12788
  fileName: _jsxFileName$1,
12769
- lineNumber: 226
12789
+ lineNumber: 227
12770
12790
  }
12771
12791
  }, "Multiple Select Question");
12772
12792
  }
@@ -12787,7 +12807,7 @@ class MultipleChoice$1 extends React$2.Component {
12787
12807
  __self: this,
12788
12808
  __source: {
12789
12809
  fileName: _jsxFileName$1,
12790
- lineNumber: 258
12810
+ lineNumber: 259
12791
12811
  }
12792
12812
  });
12793
12813
  return React$2.createElement('div', {
@@ -12795,21 +12815,21 @@ class MultipleChoice$1 extends React$2.Component {
12795
12815
  __self: this,
12796
12816
  __source: {
12797
12817
  fileName: _jsxFileName$1,
12798
- lineNumber: 267
12818
+ lineNumber: 268
12799
12819
  }
12800
12820
  }, partLabel && React$2.createElement('h3', {
12801
12821
  className: classes.partLabel,
12802
12822
  __self: this,
12803
12823
  __source: {
12804
12824
  fileName: _jsxFileName$1,
12805
- lineNumber: 268
12825
+ lineNumber: 269
12806
12826
  }
12807
12827
  }, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
12808
12828
  className: classes.teacherInstructions,
12809
12829
  __self: this,
12810
12830
  __source: {
12811
12831
  fileName: _jsxFileName$1,
12812
- lineNumber: 273
12832
+ lineNumber: 274
12813
12833
  }
12814
12834
  }, !animationsDisabled ? React$2.createElement(Collapsible, {
12815
12835
  labels: {
@@ -12819,14 +12839,14 @@ class MultipleChoice$1 extends React$2.Component {
12819
12839
  __self: this,
12820
12840
  __source: {
12821
12841
  fileName: _jsxFileName$1,
12822
- lineNumber: 275
12842
+ lineNumber: 276
12823
12843
  }
12824
12844
  }, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
12825
12845
  className: classes.fieldset,
12826
12846
  __self: this,
12827
12847
  __source: {
12828
12848
  fileName: _jsxFileName$1,
12829
- lineNumber: 289
12849
+ lineNumber: 290
12830
12850
  }
12831
12851
  }, React$2.createElement(PreviewPrompt, {
12832
12852
  className: "prompt",
@@ -12836,7 +12856,7 @@ class MultipleChoice$1 extends React$2.Component {
12836
12856
  __self: this,
12837
12857
  __source: {
12838
12858
  fileName: _jsxFileName$1,
12839
- lineNumber: 290
12859
+ lineNumber: 291
12840
12860
  }
12841
12861
  }), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
12842
12862
  show: showCorrectAnswerToggle,
@@ -12846,7 +12866,7 @@ class MultipleChoice$1 extends React$2.Component {
12846
12866
  __self: this,
12847
12867
  __source: {
12848
12868
  fileName: _jsxFileName$1,
12849
- lineNumber: 293
12869
+ lineNumber: 294
12850
12870
  }
12851
12871
  }), React$2.createElement('div', {
12852
12872
  className: classNames({
@@ -12857,10 +12877,11 @@ class MultipleChoice$1 extends React$2.Component {
12857
12877
  __self: this,
12858
12878
  __source: {
12859
12879
  fileName: _jsxFileName$1,
12860
- lineNumber: 301
12880
+ lineNumber: 302
12861
12881
  }
12862
12882
  }, choices.map((choice, index) => React$2.createElement(StyledChoice, {
12863
12883
  choicesLayout: this.props.choicesLayout,
12884
+ selectedAnswerBackgroundColor: this.props.selectedAnswerBackgroundColor,
12864
12885
  gridColumns: gridColumns,
12865
12886
  key: `choice-${index}`,
12866
12887
  choice: choice,
@@ -12879,14 +12900,14 @@ class MultipleChoice$1 extends React$2.Component {
12879
12900
  __self: this,
12880
12901
  __source: {
12881
12902
  fileName: _jsxFileName$1,
12882
- lineNumber: 309
12903
+ lineNumber: 310
12883
12904
  }
12884
12905
  })))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
12885
12906
  className: classes.errorText,
12886
12907
  __self: this,
12887
12908
  __source: {
12888
12909
  fileName: _jsxFileName$1,
12889
- lineNumber: 332
12910
+ lineNumber: 334
12890
12911
  }
12891
12912
  }, translator$1.t(`translation:multipleChoice:minSelections_${minSelections === 1 ? 'one' : 'other'}`, {
12892
12913
  lng: language,
@@ -12896,7 +12917,7 @@ class MultipleChoice$1 extends React$2.Component {
12896
12917
  __self: this,
12897
12918
  __source: {
12898
12919
  fileName: _jsxFileName$1,
12899
- lineNumber: 340
12920
+ lineNumber: 342
12900
12921
  }
12901
12922
  }, translator$1.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
12902
12923
  lng: language,
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.2.6-next.34+1bf85f10a",
3
+ "version": "10.2.6-next.40+c2131410e",
4
4
  "description": "",
5
5
  "repository": "pie-framework/pie-elements",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-element/multiple-choice": "^9.5.2-next.34+1bf85f10a",
10
+ "@pie-element/multiple-choice": "^9.5.2-next.40+c2131410e",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
- "@pie-lib/pie-toolbox": "2.4.1",
12
+ "@pie-lib/pie-toolbox": "2.5.0",
13
13
  "classnames": "^2.2.5",
14
14
  "debug": "^4.1.1",
15
15
  "lodash": "^4.17.11"
16
16
  },
17
17
  "author": "pie framework developers",
18
18
  "license": "ISC",
19
- "gitHead": "1bf85f10abdec54911ebbade6b8a54c17d00870a",
19
+ "gitHead": "c2131410e19605093ca77afb8234b31708db01b1",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },