@pie-element/ebsr 10.5.3-hotfix.0 → 10.5.3-hotfix.1
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/module/element.js +32 -21
- package/module/print.js +32 -21
- package/package.json +2 -2
package/module/element.js
CHANGED
|
@@ -12713,7 +12713,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12713
12713
|
MultipleChoice$1.prototype.__init2.call(this);
|
|
12714
12714
|
MultipleChoice$1.prototype.__init3.call(this);
|
|
12715
12715
|
this.state = {
|
|
12716
|
-
showCorrect: this.props.alwaysShowCorrect || false,
|
|
12716
|
+
showCorrect: this.props.options && this.props.alwaysShowCorrect || false,
|
|
12717
12717
|
maxSelectionsErrorState: false
|
|
12718
12718
|
};
|
|
12719
12719
|
this.onToggle = this.onToggle.bind(this);
|
|
@@ -12764,7 +12764,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12764
12764
|
}
|
|
12765
12765
|
});
|
|
12766
12766
|
}
|
|
12767
|
-
if (nextProps.alwaysShowCorrect && this.state.showCorrect !== true) {
|
|
12767
|
+
if (nextProps.options && nextProps.alwaysShowCorrect && this.state.showCorrect !== true) {
|
|
12768
12768
|
this.setState({
|
|
12769
12769
|
showCorrect: true
|
|
12770
12770
|
}, () => {
|
|
@@ -12838,7 +12838,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12838
12838
|
}, "Multiple Select Question");
|
|
12839
12839
|
}
|
|
12840
12840
|
render() {
|
|
12841
|
-
const {mode, disabled, className, choices = [], choiceMode, gridColumns, partLabel, prompt, responseCorrect, teacherInstructions, classes, alwaysShowCorrect, animationsDisabled, language, isSelectionButtonBelow, minSelections, maxSelections, autoplayAudioEnabled, session, customAudioButton} = this.props;
|
|
12841
|
+
const {mode, disabled, className, choices = [], choiceMode, gridColumns, partLabel, prompt, responseCorrect, teacherInstructions, classes, alwaysShowCorrect, animationsDisabled, language, isSelectionButtonBelow, minSelections, maxSelections, autoplayAudioEnabled, session, customAudioButton, options} = this.props;
|
|
12842
12842
|
const {showCorrect, maxSelectionsErrorState} = this.state;
|
|
12843
12843
|
const isEvaluateMode = mode === 'evaluate';
|
|
12844
12844
|
const showCorrectAnswerToggle = isEvaluateMode && !responseCorrect;
|
|
@@ -12854,7 +12854,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12854
12854
|
__self: this,
|
|
12855
12855
|
__source: {
|
|
12856
12856
|
fileName: _jsxFileName$1,
|
|
12857
|
-
lineNumber:
|
|
12857
|
+
lineNumber: 264
|
|
12858
12858
|
}
|
|
12859
12859
|
});
|
|
12860
12860
|
const getMultipleChoiceMinSelectionErrorMessage = () => {
|
|
@@ -12882,21 +12882,21 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12882
12882
|
__self: this,
|
|
12883
12883
|
__source: {
|
|
12884
12884
|
fileName: _jsxFileName$1,
|
|
12885
|
-
lineNumber:
|
|
12885
|
+
lineNumber: 287
|
|
12886
12886
|
}
|
|
12887
12887
|
}, partLabel && React$2.createElement('h3', {
|
|
12888
12888
|
className: classes.partLabel,
|
|
12889
12889
|
__self: this,
|
|
12890
12890
|
__source: {
|
|
12891
12891
|
fileName: _jsxFileName$1,
|
|
12892
|
-
lineNumber:
|
|
12892
|
+
lineNumber: 288
|
|
12893
12893
|
}
|
|
12894
12894
|
}, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
|
|
12895
12895
|
className: classes.teacherInstructions,
|
|
12896
12896
|
__self: this,
|
|
12897
12897
|
__source: {
|
|
12898
12898
|
fileName: _jsxFileName$1,
|
|
12899
|
-
lineNumber:
|
|
12899
|
+
lineNumber: 293
|
|
12900
12900
|
}
|
|
12901
12901
|
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
12902
12902
|
labels: {
|
|
@@ -12906,14 +12906,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12906
12906
|
__self: this,
|
|
12907
12907
|
__source: {
|
|
12908
12908
|
fileName: _jsxFileName$1,
|
|
12909
|
-
lineNumber:
|
|
12909
|
+
lineNumber: 295
|
|
12910
12910
|
}
|
|
12911
12911
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
|
|
12912
12912
|
className: classes.fieldset,
|
|
12913
12913
|
__self: this,
|
|
12914
12914
|
__source: {
|
|
12915
12915
|
fileName: _jsxFileName$1,
|
|
12916
|
-
lineNumber:
|
|
12916
|
+
lineNumber: 309
|
|
12917
12917
|
}
|
|
12918
12918
|
}, React$2.createElement(PreviewPrompt, {
|
|
12919
12919
|
className: "prompt",
|
|
@@ -12925,9 +12925,9 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12925
12925
|
__self: this,
|
|
12926
12926
|
__source: {
|
|
12927
12927
|
fileName: _jsxFileName$1,
|
|
12928
|
-
lineNumber:
|
|
12928
|
+
lineNumber: 310
|
|
12929
12929
|
}
|
|
12930
|
-
}), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
12930
|
+
}), !(options && alwaysShowCorrect) && React$2.createElement(CorrectAnswerToggle, {
|
|
12931
12931
|
show: showCorrectAnswerToggle,
|
|
12932
12932
|
toggled: showCorrect,
|
|
12933
12933
|
onToggle: this.onToggle.bind(this),
|
|
@@ -12935,7 +12935,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12935
12935
|
__self: this,
|
|
12936
12936
|
__source: {
|
|
12937
12937
|
fileName: _jsxFileName$1,
|
|
12938
|
-
lineNumber:
|
|
12938
|
+
lineNumber: 320
|
|
12939
12939
|
}
|
|
12940
12940
|
}), React$2.createElement('div', {
|
|
12941
12941
|
className: classNames({
|
|
@@ -12946,7 +12946,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12946
12946
|
__self: this,
|
|
12947
12947
|
__source: {
|
|
12948
12948
|
fileName: _jsxFileName$1,
|
|
12949
|
-
lineNumber:
|
|
12949
|
+
lineNumber: 328
|
|
12950
12950
|
}
|
|
12951
12951
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
12952
12952
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -12969,21 +12969,21 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12969
12969
|
__self: this,
|
|
12970
12970
|
__source: {
|
|
12971
12971
|
fileName: _jsxFileName$1,
|
|
12972
|
-
lineNumber:
|
|
12972
|
+
lineNumber: 336
|
|
12973
12973
|
}
|
|
12974
12974
|
})))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
|
|
12975
12975
|
className: classes.errorText,
|
|
12976
12976
|
__self: this,
|
|
12977
12977
|
__source: {
|
|
12978
12978
|
fileName: _jsxFileName$1,
|
|
12979
|
-
lineNumber:
|
|
12979
|
+
lineNumber: 360
|
|
12980
12980
|
}
|
|
12981
12981
|
}, getMultipleChoiceMinSelectionErrorMessage()), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
|
|
12982
12982
|
className: classes.errorText,
|
|
12983
12983
|
__self: this,
|
|
12984
12984
|
__source: {
|
|
12985
12985
|
fileName: _jsxFileName$1,
|
|
12986
|
-
lineNumber:
|
|
12986
|
+
lineNumber: 365
|
|
12987
12987
|
}
|
|
12988
12988
|
}, translator.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
|
|
12989
12989
|
lng: language,
|
|
@@ -13008,6 +13008,7 @@ class Main extends React$1.Component {
|
|
|
13008
13008
|
this.propTypes = {
|
|
13009
13009
|
model: PropTypes.object,
|
|
13010
13010
|
session: PropTypes.object,
|
|
13011
|
+
options: PropTypes.object,
|
|
13011
13012
|
onChoiceChanged: PropTypes.func,
|
|
13012
13013
|
classes: PropTypes.object.isRequired,
|
|
13013
13014
|
onShowCorrectToggle: PropTypes.func,
|
|
@@ -13027,7 +13028,7 @@ class Main extends React$1.Component {
|
|
|
13027
13028
|
super(props);
|
|
13028
13029
|
}
|
|
13029
13030
|
render() {
|
|
13030
|
-
const {model, onChoiceChanged, session, onShowCorrectToggle} = this.props;
|
|
13031
|
+
const {model, onChoiceChanged, session, onShowCorrectToggle, options} = this.props;
|
|
13031
13032
|
const {extraCSSRules, fontSizeFactor} = model;
|
|
13032
13033
|
return React$1.createElement(PreviewLayout, {
|
|
13033
13034
|
extraCSSRules: extraCSSRules,
|
|
@@ -13035,17 +13036,18 @@ class Main extends React$1.Component {
|
|
|
13035
13036
|
__self: this,
|
|
13036
13037
|
__source: {
|
|
13037
13038
|
fileName: _jsxFileName,
|
|
13038
|
-
lineNumber:
|
|
13039
|
+
lineNumber: 38
|
|
13039
13040
|
}
|
|
13040
13041
|
}, React$1.createElement(MultipleChoice$2, {
|
|
13041
13042
|
...model,
|
|
13043
|
+
options: options,
|
|
13042
13044
|
session: session,
|
|
13043
13045
|
onChoiceChanged: onChoiceChanged,
|
|
13044
13046
|
onShowCorrectToggle: onShowCorrectToggle,
|
|
13045
13047
|
__self: this,
|
|
13046
13048
|
__source: {
|
|
13047
13049
|
fileName: _jsxFileName,
|
|
13048
|
-
lineNumber:
|
|
13050
|
+
lineNumber: 39
|
|
13049
13051
|
}
|
|
13050
13052
|
}));
|
|
13051
13053
|
}
|
|
@@ -13065,14 +13067,14 @@ const Root = props => React$1.createElement(styles$b.MuiThemeProvider, {
|
|
|
13065
13067
|
__self: undefined,
|
|
13066
13068
|
__source: {
|
|
13067
13069
|
fileName: _jsxFileName,
|
|
13068
|
-
lineNumber:
|
|
13070
|
+
lineNumber: 60
|
|
13069
13071
|
}
|
|
13070
13072
|
}, React$1.createElement(Styled, {
|
|
13071
13073
|
...props,
|
|
13072
13074
|
__self: undefined,
|
|
13073
13075
|
__source: {
|
|
13074
13076
|
fileName: _jsxFileName,
|
|
13075
|
-
lineNumber:
|
|
13077
|
+
lineNumber: 61
|
|
13076
13078
|
}
|
|
13077
13079
|
}));
|
|
13078
13080
|
const {concat: concat} = _dll_lodash;
|
|
@@ -13154,6 +13156,7 @@ class MultipleChoice extends HTMLElement {
|
|
|
13154
13156
|
super();
|
|
13155
13157
|
this._model = null;
|
|
13156
13158
|
this._session = null;
|
|
13159
|
+
this._options = null;
|
|
13157
13160
|
this.audioComplete = false;
|
|
13158
13161
|
this._boundHandleKeyDown = this.handleKeyDown.bind(this);
|
|
13159
13162
|
this._keyboardEventsEnabled = false;
|
|
@@ -13162,6 +13165,7 @@ class MultipleChoice extends HTMLElement {
|
|
|
13162
13165
|
var element = React.createElement(Root, {
|
|
13163
13166
|
model: this._model,
|
|
13164
13167
|
session: this._session,
|
|
13168
|
+
options: this._options,
|
|
13165
13169
|
onChoiceChanged: this._onChange.bind(this),
|
|
13166
13170
|
onShowCorrectToggle: this.onShowCorrectToggle.bind(this)
|
|
13167
13171
|
});
|
|
@@ -13208,6 +13212,13 @@ class MultipleChoice extends HTMLElement {
|
|
|
13208
13212
|
get session() {
|
|
13209
13213
|
return this._session;
|
|
13210
13214
|
}
|
|
13215
|
+
get options() {
|
|
13216
|
+
return this._options;
|
|
13217
|
+
}
|
|
13218
|
+
set options(o) {
|
|
13219
|
+
this._options = o;
|
|
13220
|
+
this._rerender();
|
|
13221
|
+
}
|
|
13211
13222
|
set session(s) {
|
|
13212
13223
|
this._session = s;
|
|
13213
13224
|
this._rerender();
|
package/module/print.js
CHANGED
|
@@ -12676,7 +12676,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12676
12676
|
MultipleChoice$1.prototype.__init2.call(this);
|
|
12677
12677
|
MultipleChoice$1.prototype.__init3.call(this);
|
|
12678
12678
|
this.state = {
|
|
12679
|
-
showCorrect: this.props.alwaysShowCorrect || false,
|
|
12679
|
+
showCorrect: this.props.options && this.props.alwaysShowCorrect || false,
|
|
12680
12680
|
maxSelectionsErrorState: false
|
|
12681
12681
|
};
|
|
12682
12682
|
this.onToggle = this.onToggle.bind(this);
|
|
@@ -12727,7 +12727,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12727
12727
|
}
|
|
12728
12728
|
});
|
|
12729
12729
|
}
|
|
12730
|
-
if (nextProps.alwaysShowCorrect && this.state.showCorrect !== true) {
|
|
12730
|
+
if (nextProps.options && nextProps.alwaysShowCorrect && this.state.showCorrect !== true) {
|
|
12731
12731
|
this.setState({
|
|
12732
12732
|
showCorrect: true
|
|
12733
12733
|
}, () => {
|
|
@@ -12801,7 +12801,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12801
12801
|
}, "Multiple Select Question");
|
|
12802
12802
|
}
|
|
12803
12803
|
render() {
|
|
12804
|
-
const {mode, disabled, className, choices = [], choiceMode, gridColumns, partLabel, prompt, responseCorrect, teacherInstructions, classes, alwaysShowCorrect, animationsDisabled, language, isSelectionButtonBelow, minSelections, maxSelections, autoplayAudioEnabled, session, customAudioButton} = this.props;
|
|
12804
|
+
const {mode, disabled, className, choices = [], choiceMode, gridColumns, partLabel, prompt, responseCorrect, teacherInstructions, classes, alwaysShowCorrect, animationsDisabled, language, isSelectionButtonBelow, minSelections, maxSelections, autoplayAudioEnabled, session, customAudioButton, options} = this.props;
|
|
12805
12805
|
const {showCorrect, maxSelectionsErrorState} = this.state;
|
|
12806
12806
|
const isEvaluateMode = mode === 'evaluate';
|
|
12807
12807
|
const showCorrectAnswerToggle = isEvaluateMode && !responseCorrect;
|
|
@@ -12817,7 +12817,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12817
12817
|
__self: this,
|
|
12818
12818
|
__source: {
|
|
12819
12819
|
fileName: _jsxFileName$1,
|
|
12820
|
-
lineNumber:
|
|
12820
|
+
lineNumber: 264
|
|
12821
12821
|
}
|
|
12822
12822
|
});
|
|
12823
12823
|
const getMultipleChoiceMinSelectionErrorMessage = () => {
|
|
@@ -12845,21 +12845,21 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12845
12845
|
__self: this,
|
|
12846
12846
|
__source: {
|
|
12847
12847
|
fileName: _jsxFileName$1,
|
|
12848
|
-
lineNumber:
|
|
12848
|
+
lineNumber: 287
|
|
12849
12849
|
}
|
|
12850
12850
|
}, partLabel && React$2.createElement('h3', {
|
|
12851
12851
|
className: classes.partLabel,
|
|
12852
12852
|
__self: this,
|
|
12853
12853
|
__source: {
|
|
12854
12854
|
fileName: _jsxFileName$1,
|
|
12855
|
-
lineNumber:
|
|
12855
|
+
lineNumber: 288
|
|
12856
12856
|
}
|
|
12857
12857
|
}, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
|
|
12858
12858
|
className: classes.teacherInstructions,
|
|
12859
12859
|
__self: this,
|
|
12860
12860
|
__source: {
|
|
12861
12861
|
fileName: _jsxFileName$1,
|
|
12862
|
-
lineNumber:
|
|
12862
|
+
lineNumber: 293
|
|
12863
12863
|
}
|
|
12864
12864
|
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
12865
12865
|
labels: {
|
|
@@ -12869,14 +12869,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12869
12869
|
__self: this,
|
|
12870
12870
|
__source: {
|
|
12871
12871
|
fileName: _jsxFileName$1,
|
|
12872
|
-
lineNumber:
|
|
12872
|
+
lineNumber: 295
|
|
12873
12873
|
}
|
|
12874
12874
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
|
|
12875
12875
|
className: classes.fieldset,
|
|
12876
12876
|
__self: this,
|
|
12877
12877
|
__source: {
|
|
12878
12878
|
fileName: _jsxFileName$1,
|
|
12879
|
-
lineNumber:
|
|
12879
|
+
lineNumber: 309
|
|
12880
12880
|
}
|
|
12881
12881
|
}, React$2.createElement(PreviewPrompt, {
|
|
12882
12882
|
className: "prompt",
|
|
@@ -12888,9 +12888,9 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12888
12888
|
__self: this,
|
|
12889
12889
|
__source: {
|
|
12890
12890
|
fileName: _jsxFileName$1,
|
|
12891
|
-
lineNumber:
|
|
12891
|
+
lineNumber: 310
|
|
12892
12892
|
}
|
|
12893
|
-
}), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
12893
|
+
}), !(options && alwaysShowCorrect) && React$2.createElement(CorrectAnswerToggle, {
|
|
12894
12894
|
show: showCorrectAnswerToggle,
|
|
12895
12895
|
toggled: showCorrect,
|
|
12896
12896
|
onToggle: this.onToggle.bind(this),
|
|
@@ -12898,7 +12898,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12898
12898
|
__self: this,
|
|
12899
12899
|
__source: {
|
|
12900
12900
|
fileName: _jsxFileName$1,
|
|
12901
|
-
lineNumber:
|
|
12901
|
+
lineNumber: 320
|
|
12902
12902
|
}
|
|
12903
12903
|
}), React$2.createElement('div', {
|
|
12904
12904
|
className: classNames({
|
|
@@ -12909,7 +12909,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12909
12909
|
__self: this,
|
|
12910
12910
|
__source: {
|
|
12911
12911
|
fileName: _jsxFileName$1,
|
|
12912
|
-
lineNumber:
|
|
12912
|
+
lineNumber: 328
|
|
12913
12913
|
}
|
|
12914
12914
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
12915
12915
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -12932,21 +12932,21 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12932
12932
|
__self: this,
|
|
12933
12933
|
__source: {
|
|
12934
12934
|
fileName: _jsxFileName$1,
|
|
12935
|
-
lineNumber:
|
|
12935
|
+
lineNumber: 336
|
|
12936
12936
|
}
|
|
12937
12937
|
})))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
|
|
12938
12938
|
className: classes.errorText,
|
|
12939
12939
|
__self: this,
|
|
12940
12940
|
__source: {
|
|
12941
12941
|
fileName: _jsxFileName$1,
|
|
12942
|
-
lineNumber:
|
|
12942
|
+
lineNumber: 360
|
|
12943
12943
|
}
|
|
12944
12944
|
}, getMultipleChoiceMinSelectionErrorMessage()), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
|
|
12945
12945
|
className: classes.errorText,
|
|
12946
12946
|
__self: this,
|
|
12947
12947
|
__source: {
|
|
12948
12948
|
fileName: _jsxFileName$1,
|
|
12949
|
-
lineNumber:
|
|
12949
|
+
lineNumber: 365
|
|
12950
12950
|
}
|
|
12951
12951
|
}, translator$1.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
|
|
12952
12952
|
lng: language,
|
|
@@ -12971,6 +12971,7 @@ class Main extends React$1.Component {
|
|
|
12971
12971
|
this.propTypes = {
|
|
12972
12972
|
model: PropTypes.object,
|
|
12973
12973
|
session: PropTypes.object,
|
|
12974
|
+
options: PropTypes.object,
|
|
12974
12975
|
onChoiceChanged: PropTypes.func,
|
|
12975
12976
|
classes: PropTypes.object.isRequired,
|
|
12976
12977
|
onShowCorrectToggle: PropTypes.func,
|
|
@@ -12990,7 +12991,7 @@ class Main extends React$1.Component {
|
|
|
12990
12991
|
super(props);
|
|
12991
12992
|
}
|
|
12992
12993
|
render() {
|
|
12993
|
-
const {model, onChoiceChanged, session, onShowCorrectToggle} = this.props;
|
|
12994
|
+
const {model, onChoiceChanged, session, onShowCorrectToggle, options} = this.props;
|
|
12994
12995
|
const {extraCSSRules, fontSizeFactor} = model;
|
|
12995
12996
|
return React$1.createElement(PreviewLayout, {
|
|
12996
12997
|
extraCSSRules: extraCSSRules,
|
|
@@ -12998,17 +12999,18 @@ class Main extends React$1.Component {
|
|
|
12998
12999
|
__self: this,
|
|
12999
13000
|
__source: {
|
|
13000
13001
|
fileName: _jsxFileName,
|
|
13001
|
-
lineNumber:
|
|
13002
|
+
lineNumber: 38
|
|
13002
13003
|
}
|
|
13003
13004
|
}, React$1.createElement(MultipleChoice$2, {
|
|
13004
13005
|
...model,
|
|
13006
|
+
options: options,
|
|
13005
13007
|
session: session,
|
|
13006
13008
|
onChoiceChanged: onChoiceChanged,
|
|
13007
13009
|
onShowCorrectToggle: onShowCorrectToggle,
|
|
13008
13010
|
__self: this,
|
|
13009
13011
|
__source: {
|
|
13010
13012
|
fileName: _jsxFileName,
|
|
13011
|
-
lineNumber:
|
|
13013
|
+
lineNumber: 39
|
|
13012
13014
|
}
|
|
13013
13015
|
}));
|
|
13014
13016
|
}
|
|
@@ -13028,14 +13030,14 @@ const Root = props => React$1.createElement(styles$b.MuiThemeProvider, {
|
|
|
13028
13030
|
__self: undefined,
|
|
13029
13031
|
__source: {
|
|
13030
13032
|
fileName: _jsxFileName,
|
|
13031
|
-
lineNumber:
|
|
13033
|
+
lineNumber: 60
|
|
13032
13034
|
}
|
|
13033
13035
|
}, React$1.createElement(Styled, {
|
|
13034
13036
|
...props,
|
|
13035
13037
|
__self: undefined,
|
|
13036
13038
|
__source: {
|
|
13037
13039
|
fileName: _jsxFileName,
|
|
13038
|
-
lineNumber:
|
|
13040
|
+
lineNumber: 61
|
|
13039
13041
|
}
|
|
13040
13042
|
}));
|
|
13041
13043
|
var lib = {};
|
|
@@ -13154,6 +13156,7 @@ class MultipleChoice extends HTMLElement {
|
|
|
13154
13156
|
super();
|
|
13155
13157
|
this._model = null;
|
|
13156
13158
|
this._session = null;
|
|
13159
|
+
this._options = null;
|
|
13157
13160
|
this.audioComplete = false;
|
|
13158
13161
|
this._boundHandleKeyDown = this.handleKeyDown.bind(this);
|
|
13159
13162
|
this._keyboardEventsEnabled = false;
|
|
@@ -13162,6 +13165,7 @@ class MultipleChoice extends HTMLElement {
|
|
|
13162
13165
|
var element = React.createElement(Root, {
|
|
13163
13166
|
model: this._model,
|
|
13164
13167
|
session: this._session,
|
|
13168
|
+
options: this._options,
|
|
13165
13169
|
onChoiceChanged: this._onChange.bind(this),
|
|
13166
13170
|
onShowCorrectToggle: this.onShowCorrectToggle.bind(this)
|
|
13167
13171
|
});
|
|
@@ -13208,6 +13212,13 @@ class MultipleChoice extends HTMLElement {
|
|
|
13208
13212
|
get session() {
|
|
13209
13213
|
return this._session;
|
|
13210
13214
|
}
|
|
13215
|
+
get options() {
|
|
13216
|
+
return this._options;
|
|
13217
|
+
}
|
|
13218
|
+
set options(o) {
|
|
13219
|
+
this._options = o;
|
|
13220
|
+
this._rerender();
|
|
13221
|
+
}
|
|
13211
13222
|
set session(s) {
|
|
13212
13223
|
this._session = s;
|
|
13213
13224
|
this._rerender();
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "10.5.3-hotfix.
|
|
3
|
+
"version": "10.5.3-hotfix.1",
|
|
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.15.3-hotfix.
|
|
10
|
+
"@pie-element/multiple-choice": "^9.15.3-hotfix.1",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
12
|
"@pie-lib/pie-toolbox": "2.14.3",
|
|
13
13
|
"classnames": "^2.2.5",
|