@pie-element/ebsr 10.3.3-next.12 → 10.3.3-next.4
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +1 -1
- package/module/controller.js +6 -8
- package/module/element.js +23 -42
- package/module/manifest.json +1 -1
- package/module/print.js +23 -42
- package/package.json +4 -4
package/configure/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
11
|
"@pie-element/multiple-choice": "^9.9.1",
|
|
12
12
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
13
|
-
"@pie-lib/pie-toolbox": "2.
|
|
13
|
+
"@pie-lib/pie-toolbox": "2.8.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
|
15
15
|
"prop-types": "^15.6.2",
|
|
16
16
|
"react": "^16.8.1",
|
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -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@3.2.0/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.
|
|
3
|
+
import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.8.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;
|
package/module/controller.js
CHANGED
|
@@ -23479,11 +23479,10 @@ var _default = {
|
|
|
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
23481
|
multipleChoice: {
|
|
23482
|
-
|
|
23482
|
+
minSelections_one: 'This question requires at least {{minSelections}} answer.',
|
|
23483
|
+
minSelections_other: 'This question requires at least {{minSelections}} answers.',
|
|
23483
23484
|
maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
|
|
23484
|
-
maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
|
|
23485
|
-
minmaxSelections_equal: 'Select {{minSelections}}.',
|
|
23486
|
-
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
|
|
23485
|
+
maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
|
|
23487
23486
|
},
|
|
23488
23487
|
selectText: {
|
|
23489
23488
|
correctAnswerSelected: 'Correct answer selected',
|
|
@@ -23576,11 +23575,10 @@ var _default = {
|
|
|
23576
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.'
|
|
23577
23576
|
},
|
|
23578
23577
|
multipleChoice: {
|
|
23579
|
-
|
|
23578
|
+
minSelections_one: 'Esta pregunta requiere al menos {{minSelections}} respuesta.',
|
|
23579
|
+
minSelections_other: 'Esta pregunta requiere al menos {{minSelections}} respuestas.',
|
|
23580
23580
|
maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
|
|
23581
|
-
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
|
|
23582
|
-
minmaxSelections_equal: 'Seleccione {{minSelections}}.',
|
|
23583
|
-
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
|
|
23581
|
+
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
|
|
23584
23582
|
},
|
|
23585
23583
|
selectText: {
|
|
23586
23584
|
correctAnswerSelected: 'Respuesta correcta 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} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.2.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.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.8.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;
|
|
@@ -8494,11 +8494,10 @@ var en = {};
|
|
|
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
8496
|
multipleChoice: {
|
|
8497
|
-
|
|
8497
|
+
minSelections_one: 'This question requires at least {{minSelections}} answer.',
|
|
8498
|
+
minSelections_other: 'This question requires at least {{minSelections}} answers.',
|
|
8498
8499
|
maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
|
|
8499
|
-
maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
|
|
8500
|
-
minmaxSelections_equal: 'Select {{minSelections}}.',
|
|
8501
|
-
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
|
|
8500
|
+
maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
|
|
8502
8501
|
},
|
|
8503
8502
|
selectText: {
|
|
8504
8503
|
correctAnswerSelected: 'Correct answer selected',
|
|
@@ -8588,11 +8587,10 @@ var es = {};
|
|
|
8588
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.'
|
|
8589
8588
|
},
|
|
8590
8589
|
multipleChoice: {
|
|
8591
|
-
|
|
8590
|
+
minSelections_one: 'Esta pregunta requiere al menos {{minSelections}} respuesta.',
|
|
8591
|
+
minSelections_other: 'Esta pregunta requiere al menos {{minSelections}} respuestas.',
|
|
8592
8592
|
maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
|
|
8593
|
-
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
|
|
8594
|
-
minmaxSelections_equal: 'Seleccione {{minSelections}}.',
|
|
8595
|
-
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
|
|
8593
|
+
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
|
|
8596
8594
|
},
|
|
8597
8595
|
selectText: {
|
|
8598
8596
|
correctAnswerSelected: 'Respuesta correcta seleccionada',
|
|
@@ -12844,45 +12842,26 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12844
12842
|
lineNumber: 245
|
|
12845
12843
|
}
|
|
12846
12844
|
});
|
|
12847
|
-
const getMultipleChoiceMinSelectionErrorMessage = () => {
|
|
12848
|
-
if (minSelections && maxSelections) {
|
|
12849
|
-
return minSelections === maxSelections ? translator.t('translation:multipleChoice:minmaxSelections_equal', {
|
|
12850
|
-
lng: language,
|
|
12851
|
-
minSelections
|
|
12852
|
-
}) : translator.t('translation:multipleChoice:minmaxSelections_range', {
|
|
12853
|
-
lng: language,
|
|
12854
|
-
minSelections,
|
|
12855
|
-
maxSelections
|
|
12856
|
-
});
|
|
12857
|
-
}
|
|
12858
|
-
if (minSelections) {
|
|
12859
|
-
return translator.t('translation:multipleChoice:minSelections', {
|
|
12860
|
-
lng: language,
|
|
12861
|
-
minSelections
|
|
12862
|
-
});
|
|
12863
|
-
}
|
|
12864
|
-
return '';
|
|
12865
|
-
};
|
|
12866
12845
|
return React$2.createElement('div', {
|
|
12867
12846
|
className: classNames(classes.main, className, 'multiple-choice'),
|
|
12868
12847
|
__self: this,
|
|
12869
12848
|
__source: {
|
|
12870
12849
|
fileName: _jsxFileName$1,
|
|
12871
|
-
lineNumber:
|
|
12850
|
+
lineNumber: 254
|
|
12872
12851
|
}
|
|
12873
12852
|
}, partLabel && React$2.createElement('h3', {
|
|
12874
12853
|
className: classes.partLabel,
|
|
12875
12854
|
__self: this,
|
|
12876
12855
|
__source: {
|
|
12877
12856
|
fileName: _jsxFileName$1,
|
|
12878
|
-
lineNumber:
|
|
12857
|
+
lineNumber: 255
|
|
12879
12858
|
}
|
|
12880
12859
|
}, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
|
|
12881
12860
|
className: classes.teacherInstructions,
|
|
12882
12861
|
__self: this,
|
|
12883
12862
|
__source: {
|
|
12884
12863
|
fileName: _jsxFileName$1,
|
|
12885
|
-
lineNumber:
|
|
12864
|
+
lineNumber: 260
|
|
12886
12865
|
}
|
|
12887
12866
|
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
12888
12867
|
labels: {
|
|
@@ -12892,14 +12871,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12892
12871
|
__self: this,
|
|
12893
12872
|
__source: {
|
|
12894
12873
|
fileName: _jsxFileName$1,
|
|
12895
|
-
lineNumber:
|
|
12874
|
+
lineNumber: 262
|
|
12896
12875
|
}
|
|
12897
12876
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
|
|
12898
12877
|
className: classes.fieldset,
|
|
12899
12878
|
__self: this,
|
|
12900
12879
|
__source: {
|
|
12901
12880
|
fileName: _jsxFileName$1,
|
|
12902
|
-
lineNumber:
|
|
12881
|
+
lineNumber: 276
|
|
12903
12882
|
}
|
|
12904
12883
|
}, React$2.createElement(PreviewPrompt, {
|
|
12905
12884
|
className: "prompt",
|
|
@@ -12910,7 +12889,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12910
12889
|
__self: this,
|
|
12911
12890
|
__source: {
|
|
12912
12891
|
fileName: _jsxFileName$1,
|
|
12913
|
-
lineNumber:
|
|
12892
|
+
lineNumber: 277
|
|
12914
12893
|
}
|
|
12915
12894
|
}), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
12916
12895
|
show: showCorrectAnswerToggle,
|
|
@@ -12920,7 +12899,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12920
12899
|
__self: this,
|
|
12921
12900
|
__source: {
|
|
12922
12901
|
fileName: _jsxFileName$1,
|
|
12923
|
-
lineNumber:
|
|
12902
|
+
lineNumber: 286
|
|
12924
12903
|
}
|
|
12925
12904
|
}), React$2.createElement('div', {
|
|
12926
12905
|
className: classNames({
|
|
@@ -12931,7 +12910,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12931
12910
|
__self: this,
|
|
12932
12911
|
__source: {
|
|
12933
12912
|
fileName: _jsxFileName$1,
|
|
12934
|
-
lineNumber:
|
|
12913
|
+
lineNumber: 294
|
|
12935
12914
|
}
|
|
12936
12915
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
12937
12916
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -12954,21 +12933,24 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12954
12933
|
__self: this,
|
|
12955
12934
|
__source: {
|
|
12956
12935
|
fileName: _jsxFileName$1,
|
|
12957
|
-
lineNumber:
|
|
12936
|
+
lineNumber: 302
|
|
12958
12937
|
}
|
|
12959
12938
|
})))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
|
|
12960
12939
|
className: classes.errorText,
|
|
12961
12940
|
__self: this,
|
|
12962
12941
|
__source: {
|
|
12963
12942
|
fileName: _jsxFileName$1,
|
|
12964
|
-
lineNumber:
|
|
12943
|
+
lineNumber: 326
|
|
12965
12944
|
}
|
|
12966
|
-
},
|
|
12945
|
+
}, translator.t(`translation:multipleChoice:minSelections_${minSelections === 1 ? 'one' : 'other'}`, {
|
|
12946
|
+
lng: language,
|
|
12947
|
+
minSelections
|
|
12948
|
+
})), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
|
|
12967
12949
|
className: classes.errorText,
|
|
12968
12950
|
__self: this,
|
|
12969
12951
|
__source: {
|
|
12970
12952
|
fileName: _jsxFileName$1,
|
|
12971
|
-
lineNumber:
|
|
12953
|
+
lineNumber: 334
|
|
12972
12954
|
}
|
|
12973
12955
|
}, translator.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
|
|
12974
12956
|
lng: language,
|
|
@@ -13087,8 +13069,7 @@ const debug$1 = _dll_debug;
|
|
|
13087
13069
|
const {renderMath: renderMath} = _dll_pie_lib__pie_toolbox_math_rendering;
|
|
13088
13070
|
const log$1 = debug$1('pie-ui:multiple-choice');
|
|
13089
13071
|
const isComplete = (session, model, audioComplete) => {
|
|
13090
|
-
|
|
13091
|
-
if (autoplayAudioEnabled && completeAudioEnabled && !audioComplete) {
|
|
13072
|
+
if (model.autoplayAudioEnabled && !audioComplete) {
|
|
13092
13073
|
return false;
|
|
13093
13074
|
}
|
|
13094
13075
|
if (!session || !session.value) {
|
package/module/manifest.json
CHANGED
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} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.2.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.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.8.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;
|
|
@@ -8457,11 +8457,10 @@ var en = {};
|
|
|
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
8459
|
multipleChoice: {
|
|
8460
|
-
|
|
8460
|
+
minSelections_one: 'This question requires at least {{minSelections}} answer.',
|
|
8461
|
+
minSelections_other: 'This question requires at least {{minSelections}} answers.',
|
|
8461
8462
|
maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
|
|
8462
|
-
maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
|
|
8463
|
-
minmaxSelections_equal: 'Select {{minSelections}}.',
|
|
8464
|
-
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
|
|
8463
|
+
maxSelections_other: 'Only {{maxSelections}} answers are allowed.'
|
|
8465
8464
|
},
|
|
8466
8465
|
selectText: {
|
|
8467
8466
|
correctAnswerSelected: 'Correct answer selected',
|
|
@@ -8551,11 +8550,10 @@ var es = {};
|
|
|
8551
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.'
|
|
8552
8551
|
},
|
|
8553
8552
|
multipleChoice: {
|
|
8554
|
-
|
|
8553
|
+
minSelections_one: 'Esta pregunta requiere al menos {{minSelections}} respuesta.',
|
|
8554
|
+
minSelections_other: 'Esta pregunta requiere al menos {{minSelections}} respuestas.',
|
|
8555
8555
|
maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
|
|
8556
|
-
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
|
|
8557
|
-
minmaxSelections_equal: 'Seleccione {{minSelections}}.',
|
|
8558
|
-
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
|
|
8556
|
+
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.'
|
|
8559
8557
|
},
|
|
8560
8558
|
selectText: {
|
|
8561
8559
|
correctAnswerSelected: 'Respuesta correcta seleccionada',
|
|
@@ -12807,45 +12805,26 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12807
12805
|
lineNumber: 245
|
|
12808
12806
|
}
|
|
12809
12807
|
});
|
|
12810
|
-
const getMultipleChoiceMinSelectionErrorMessage = () => {
|
|
12811
|
-
if (minSelections && maxSelections) {
|
|
12812
|
-
return minSelections === maxSelections ? translator$1.t('translation:multipleChoice:minmaxSelections_equal', {
|
|
12813
|
-
lng: language,
|
|
12814
|
-
minSelections
|
|
12815
|
-
}) : translator$1.t('translation:multipleChoice:minmaxSelections_range', {
|
|
12816
|
-
lng: language,
|
|
12817
|
-
minSelections,
|
|
12818
|
-
maxSelections
|
|
12819
|
-
});
|
|
12820
|
-
}
|
|
12821
|
-
if (minSelections) {
|
|
12822
|
-
return translator$1.t('translation:multipleChoice:minSelections', {
|
|
12823
|
-
lng: language,
|
|
12824
|
-
minSelections
|
|
12825
|
-
});
|
|
12826
|
-
}
|
|
12827
|
-
return '';
|
|
12828
|
-
};
|
|
12829
12808
|
return React$2.createElement('div', {
|
|
12830
12809
|
className: classNames(classes.main, className, 'multiple-choice'),
|
|
12831
12810
|
__self: this,
|
|
12832
12811
|
__source: {
|
|
12833
12812
|
fileName: _jsxFileName$1,
|
|
12834
|
-
lineNumber:
|
|
12813
|
+
lineNumber: 254
|
|
12835
12814
|
}
|
|
12836
12815
|
}, partLabel && React$2.createElement('h3', {
|
|
12837
12816
|
className: classes.partLabel,
|
|
12838
12817
|
__self: this,
|
|
12839
12818
|
__source: {
|
|
12840
12819
|
fileName: _jsxFileName$1,
|
|
12841
|
-
lineNumber:
|
|
12820
|
+
lineNumber: 255
|
|
12842
12821
|
}
|
|
12843
12822
|
}, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
|
|
12844
12823
|
className: classes.teacherInstructions,
|
|
12845
12824
|
__self: this,
|
|
12846
12825
|
__source: {
|
|
12847
12826
|
fileName: _jsxFileName$1,
|
|
12848
|
-
lineNumber:
|
|
12827
|
+
lineNumber: 260
|
|
12849
12828
|
}
|
|
12850
12829
|
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
12851
12830
|
labels: {
|
|
@@ -12855,14 +12834,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12855
12834
|
__self: this,
|
|
12856
12835
|
__source: {
|
|
12857
12836
|
fileName: _jsxFileName$1,
|
|
12858
|
-
lineNumber:
|
|
12837
|
+
lineNumber: 262
|
|
12859
12838
|
}
|
|
12860
12839
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
|
|
12861
12840
|
className: classes.fieldset,
|
|
12862
12841
|
__self: this,
|
|
12863
12842
|
__source: {
|
|
12864
12843
|
fileName: _jsxFileName$1,
|
|
12865
|
-
lineNumber:
|
|
12844
|
+
lineNumber: 276
|
|
12866
12845
|
}
|
|
12867
12846
|
}, React$2.createElement(PreviewPrompt, {
|
|
12868
12847
|
className: "prompt",
|
|
@@ -12873,7 +12852,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12873
12852
|
__self: this,
|
|
12874
12853
|
__source: {
|
|
12875
12854
|
fileName: _jsxFileName$1,
|
|
12876
|
-
lineNumber:
|
|
12855
|
+
lineNumber: 277
|
|
12877
12856
|
}
|
|
12878
12857
|
}), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
12879
12858
|
show: showCorrectAnswerToggle,
|
|
@@ -12883,7 +12862,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12883
12862
|
__self: this,
|
|
12884
12863
|
__source: {
|
|
12885
12864
|
fileName: _jsxFileName$1,
|
|
12886
|
-
lineNumber:
|
|
12865
|
+
lineNumber: 286
|
|
12887
12866
|
}
|
|
12888
12867
|
}), React$2.createElement('div', {
|
|
12889
12868
|
className: classNames({
|
|
@@ -12894,7 +12873,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12894
12873
|
__self: this,
|
|
12895
12874
|
__source: {
|
|
12896
12875
|
fileName: _jsxFileName$1,
|
|
12897
|
-
lineNumber:
|
|
12876
|
+
lineNumber: 294
|
|
12898
12877
|
}
|
|
12899
12878
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
12900
12879
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -12917,21 +12896,24 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12917
12896
|
__self: this,
|
|
12918
12897
|
__source: {
|
|
12919
12898
|
fileName: _jsxFileName$1,
|
|
12920
|
-
lineNumber:
|
|
12899
|
+
lineNumber: 302
|
|
12921
12900
|
}
|
|
12922
12901
|
})))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
|
|
12923
12902
|
className: classes.errorText,
|
|
12924
12903
|
__self: this,
|
|
12925
12904
|
__source: {
|
|
12926
12905
|
fileName: _jsxFileName$1,
|
|
12927
|
-
lineNumber:
|
|
12906
|
+
lineNumber: 326
|
|
12928
12907
|
}
|
|
12929
|
-
},
|
|
12908
|
+
}, translator$1.t(`translation:multipleChoice:minSelections_${minSelections === 1 ? 'one' : 'other'}`, {
|
|
12909
|
+
lng: language,
|
|
12910
|
+
minSelections
|
|
12911
|
+
})), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
|
|
12930
12912
|
className: classes.errorText,
|
|
12931
12913
|
__self: this,
|
|
12932
12914
|
__source: {
|
|
12933
12915
|
fileName: _jsxFileName$1,
|
|
12934
|
-
lineNumber:
|
|
12916
|
+
lineNumber: 334
|
|
12935
12917
|
}
|
|
12936
12918
|
}, translator$1.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
|
|
12937
12919
|
lng: language,
|
|
@@ -13087,8 +13069,7 @@ const debug$1 = _dll_debug;
|
|
|
13087
13069
|
const {renderMath: renderMath} = _dll_pie_lib__pie_toolbox_math_rendering;
|
|
13088
13070
|
const log$1 = debug$1('pie-ui:multiple-choice');
|
|
13089
13071
|
const isComplete = (session, model, audioComplete) => {
|
|
13090
|
-
|
|
13091
|
-
if (autoplayAudioEnabled && completeAudioEnabled && !audioComplete) {
|
|
13072
|
+
if (model.autoplayAudioEnabled && !audioComplete) {
|
|
13092
13073
|
return false;
|
|
13093
13074
|
}
|
|
13094
13075
|
if (!session || !session.value) {
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "10.3.3-next.
|
|
3
|
+
"version": "10.3.3-next.4+0f34870c7",
|
|
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.9.2-next.
|
|
10
|
+
"@pie-element/multiple-choice": "^9.9.2-next.4+0f34870c7",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
|
-
"@pie-lib/pie-toolbox": "2.
|
|
12
|
+
"@pie-lib/pie-toolbox": "2.8.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": "
|
|
19
|
+
"gitHead": "0f34870c7515da0b0e096c380b0f8bc815cb7237",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|