@pie-element/ebsr 10.3.6-next.0 → 10.3.6-next.3
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 +18 -16
- package/module/print.js +18 -16
- package/package.json +3 -3
package/module/element.js
CHANGED
|
@@ -12630,7 +12630,8 @@ const styles$1 = theme => ({
|
|
|
12630
12630
|
backgroundColor: color.background(),
|
|
12631
12631
|
'& *': {
|
|
12632
12632
|
'-webkit-font-smoothing': 'antialiased'
|
|
12633
|
-
}
|
|
12633
|
+
},
|
|
12634
|
+
position: 'relative'
|
|
12634
12635
|
},
|
|
12635
12636
|
partLabel: {
|
|
12636
12637
|
display: 'block',
|
|
@@ -12814,14 +12815,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12814
12815
|
__self: this,
|
|
12815
12816
|
__source: {
|
|
12816
12817
|
fileName: _jsxFileName$1,
|
|
12817
|
-
lineNumber:
|
|
12818
|
+
lineNumber: 211
|
|
12818
12819
|
}
|
|
12819
12820
|
}, "Multiple Choice Question") : React$2.createElement('h2', {
|
|
12820
12821
|
className: classes.srOnly,
|
|
12821
12822
|
__self: this,
|
|
12822
12823
|
__source: {
|
|
12823
12824
|
fileName: _jsxFileName$1,
|
|
12824
|
-
lineNumber:
|
|
12825
|
+
lineNumber: 213
|
|
12825
12826
|
}
|
|
12826
12827
|
}, "Multiple Select Question");
|
|
12827
12828
|
}
|
|
@@ -12843,7 +12844,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12843
12844
|
__self: this,
|
|
12844
12845
|
__source: {
|
|
12845
12846
|
fileName: _jsxFileName$1,
|
|
12846
|
-
lineNumber:
|
|
12847
|
+
lineNumber: 248
|
|
12847
12848
|
}
|
|
12848
12849
|
});
|
|
12849
12850
|
const getMultipleChoiceMinSelectionErrorMessage = () => {
|
|
@@ -12866,25 +12867,26 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12866
12867
|
return '';
|
|
12867
12868
|
};
|
|
12868
12869
|
return React$2.createElement('div', {
|
|
12870
|
+
id: 'main-container',
|
|
12869
12871
|
className: classNames(classes.main, className, 'multiple-choice'),
|
|
12870
12872
|
__self: this,
|
|
12871
12873
|
__source: {
|
|
12872
12874
|
fileName: _jsxFileName$1,
|
|
12873
|
-
lineNumber:
|
|
12875
|
+
lineNumber: 271
|
|
12874
12876
|
}
|
|
12875
12877
|
}, partLabel && React$2.createElement('h3', {
|
|
12876
12878
|
className: classes.partLabel,
|
|
12877
12879
|
__self: this,
|
|
12878
12880
|
__source: {
|
|
12879
12881
|
fileName: _jsxFileName$1,
|
|
12880
|
-
lineNumber:
|
|
12882
|
+
lineNumber: 272
|
|
12881
12883
|
}
|
|
12882
12884
|
}, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
|
|
12883
12885
|
className: classes.teacherInstructions,
|
|
12884
12886
|
__self: this,
|
|
12885
12887
|
__source: {
|
|
12886
12888
|
fileName: _jsxFileName$1,
|
|
12887
|
-
lineNumber:
|
|
12889
|
+
lineNumber: 277
|
|
12888
12890
|
}
|
|
12889
12891
|
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
12890
12892
|
labels: {
|
|
@@ -12894,14 +12896,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12894
12896
|
__self: this,
|
|
12895
12897
|
__source: {
|
|
12896
12898
|
fileName: _jsxFileName$1,
|
|
12897
|
-
lineNumber:
|
|
12899
|
+
lineNumber: 279
|
|
12898
12900
|
}
|
|
12899
12901
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
|
|
12900
12902
|
className: classes.fieldset,
|
|
12901
12903
|
__self: this,
|
|
12902
12904
|
__source: {
|
|
12903
12905
|
fileName: _jsxFileName$1,
|
|
12904
|
-
lineNumber:
|
|
12906
|
+
lineNumber: 293
|
|
12905
12907
|
}
|
|
12906
12908
|
}, React$2.createElement(PreviewPrompt, {
|
|
12907
12909
|
className: "prompt",
|
|
@@ -12912,7 +12914,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12912
12914
|
__self: this,
|
|
12913
12915
|
__source: {
|
|
12914
12916
|
fileName: _jsxFileName$1,
|
|
12915
|
-
lineNumber:
|
|
12917
|
+
lineNumber: 294
|
|
12916
12918
|
}
|
|
12917
12919
|
}), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
12918
12920
|
show: showCorrectAnswerToggle,
|
|
@@ -12922,7 +12924,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12922
12924
|
__self: this,
|
|
12923
12925
|
__source: {
|
|
12924
12926
|
fileName: _jsxFileName$1,
|
|
12925
|
-
lineNumber:
|
|
12927
|
+
lineNumber: 303
|
|
12926
12928
|
}
|
|
12927
12929
|
}), React$2.createElement('div', {
|
|
12928
12930
|
className: classNames({
|
|
@@ -12933,7 +12935,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12933
12935
|
__self: this,
|
|
12934
12936
|
__source: {
|
|
12935
12937
|
fileName: _jsxFileName$1,
|
|
12936
|
-
lineNumber:
|
|
12938
|
+
lineNumber: 311
|
|
12937
12939
|
}
|
|
12938
12940
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
12939
12941
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -12956,21 +12958,21 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12956
12958
|
__self: this,
|
|
12957
12959
|
__source: {
|
|
12958
12960
|
fileName: _jsxFileName$1,
|
|
12959
|
-
lineNumber:
|
|
12961
|
+
lineNumber: 319
|
|
12960
12962
|
}
|
|
12961
12963
|
})))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
|
|
12962
12964
|
className: classes.errorText,
|
|
12963
12965
|
__self: this,
|
|
12964
12966
|
__source: {
|
|
12965
12967
|
fileName: _jsxFileName$1,
|
|
12966
|
-
lineNumber:
|
|
12968
|
+
lineNumber: 343
|
|
12967
12969
|
}
|
|
12968
12970
|
}, getMultipleChoiceMinSelectionErrorMessage()), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
|
|
12969
12971
|
className: classes.errorText,
|
|
12970
12972
|
__self: this,
|
|
12971
12973
|
__source: {
|
|
12972
12974
|
fileName: _jsxFileName$1,
|
|
12973
|
-
lineNumber:
|
|
12975
|
+
lineNumber: 348
|
|
12974
12976
|
}
|
|
12975
12977
|
}, translator.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
|
|
12976
12978
|
lng: language,
|
|
@@ -13218,7 +13220,7 @@ class MultipleChoice extends HTMLElement {
|
|
|
13218
13220
|
if (audio && !isInsidePrompt) return;
|
|
13219
13221
|
if (!audio) return;
|
|
13220
13222
|
const info = this._createAudioInfoToast();
|
|
13221
|
-
const container = this.querySelector('
|
|
13223
|
+
const container = this.querySelector('#main-container');
|
|
13222
13224
|
const enableAudio = () => {
|
|
13223
13225
|
if (this.querySelector('#play-audio-info')) {
|
|
13224
13226
|
audio.play();
|
package/module/print.js
CHANGED
|
@@ -12593,7 +12593,8 @@ const styles$1 = theme => ({
|
|
|
12593
12593
|
backgroundColor: color.background(),
|
|
12594
12594
|
'& *': {
|
|
12595
12595
|
'-webkit-font-smoothing': 'antialiased'
|
|
12596
|
-
}
|
|
12596
|
+
},
|
|
12597
|
+
position: 'relative'
|
|
12597
12598
|
},
|
|
12598
12599
|
partLabel: {
|
|
12599
12600
|
display: 'block',
|
|
@@ -12777,14 +12778,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12777
12778
|
__self: this,
|
|
12778
12779
|
__source: {
|
|
12779
12780
|
fileName: _jsxFileName$1,
|
|
12780
|
-
lineNumber:
|
|
12781
|
+
lineNumber: 211
|
|
12781
12782
|
}
|
|
12782
12783
|
}, "Multiple Choice Question") : React$2.createElement('h2', {
|
|
12783
12784
|
className: classes.srOnly,
|
|
12784
12785
|
__self: this,
|
|
12785
12786
|
__source: {
|
|
12786
12787
|
fileName: _jsxFileName$1,
|
|
12787
|
-
lineNumber:
|
|
12788
|
+
lineNumber: 213
|
|
12788
12789
|
}
|
|
12789
12790
|
}, "Multiple Select Question");
|
|
12790
12791
|
}
|
|
@@ -12806,7 +12807,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12806
12807
|
__self: this,
|
|
12807
12808
|
__source: {
|
|
12808
12809
|
fileName: _jsxFileName$1,
|
|
12809
|
-
lineNumber:
|
|
12810
|
+
lineNumber: 248
|
|
12810
12811
|
}
|
|
12811
12812
|
});
|
|
12812
12813
|
const getMultipleChoiceMinSelectionErrorMessage = () => {
|
|
@@ -12829,25 +12830,26 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12829
12830
|
return '';
|
|
12830
12831
|
};
|
|
12831
12832
|
return React$2.createElement('div', {
|
|
12833
|
+
id: 'main-container',
|
|
12832
12834
|
className: classNames(classes.main, className, 'multiple-choice'),
|
|
12833
12835
|
__self: this,
|
|
12834
12836
|
__source: {
|
|
12835
12837
|
fileName: _jsxFileName$1,
|
|
12836
|
-
lineNumber:
|
|
12838
|
+
lineNumber: 271
|
|
12837
12839
|
}
|
|
12838
12840
|
}, partLabel && React$2.createElement('h3', {
|
|
12839
12841
|
className: classes.partLabel,
|
|
12840
12842
|
__self: this,
|
|
12841
12843
|
__source: {
|
|
12842
12844
|
fileName: _jsxFileName$1,
|
|
12843
|
-
lineNumber:
|
|
12845
|
+
lineNumber: 272
|
|
12844
12846
|
}
|
|
12845
12847
|
}, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
|
|
12846
12848
|
className: classes.teacherInstructions,
|
|
12847
12849
|
__self: this,
|
|
12848
12850
|
__source: {
|
|
12849
12851
|
fileName: _jsxFileName$1,
|
|
12850
|
-
lineNumber:
|
|
12852
|
+
lineNumber: 277
|
|
12851
12853
|
}
|
|
12852
12854
|
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
12853
12855
|
labels: {
|
|
@@ -12857,14 +12859,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12857
12859
|
__self: this,
|
|
12858
12860
|
__source: {
|
|
12859
12861
|
fileName: _jsxFileName$1,
|
|
12860
|
-
lineNumber:
|
|
12862
|
+
lineNumber: 279
|
|
12861
12863
|
}
|
|
12862
12864
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
|
|
12863
12865
|
className: classes.fieldset,
|
|
12864
12866
|
__self: this,
|
|
12865
12867
|
__source: {
|
|
12866
12868
|
fileName: _jsxFileName$1,
|
|
12867
|
-
lineNumber:
|
|
12869
|
+
lineNumber: 293
|
|
12868
12870
|
}
|
|
12869
12871
|
}, React$2.createElement(PreviewPrompt, {
|
|
12870
12872
|
className: "prompt",
|
|
@@ -12875,7 +12877,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12875
12877
|
__self: this,
|
|
12876
12878
|
__source: {
|
|
12877
12879
|
fileName: _jsxFileName$1,
|
|
12878
|
-
lineNumber:
|
|
12880
|
+
lineNumber: 294
|
|
12879
12881
|
}
|
|
12880
12882
|
}), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
12881
12883
|
show: showCorrectAnswerToggle,
|
|
@@ -12885,7 +12887,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12885
12887
|
__self: this,
|
|
12886
12888
|
__source: {
|
|
12887
12889
|
fileName: _jsxFileName$1,
|
|
12888
|
-
lineNumber:
|
|
12890
|
+
lineNumber: 303
|
|
12889
12891
|
}
|
|
12890
12892
|
}), React$2.createElement('div', {
|
|
12891
12893
|
className: classNames({
|
|
@@ -12896,7 +12898,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12896
12898
|
__self: this,
|
|
12897
12899
|
__source: {
|
|
12898
12900
|
fileName: _jsxFileName$1,
|
|
12899
|
-
lineNumber:
|
|
12901
|
+
lineNumber: 311
|
|
12900
12902
|
}
|
|
12901
12903
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
12902
12904
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -12919,21 +12921,21 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12919
12921
|
__self: this,
|
|
12920
12922
|
__source: {
|
|
12921
12923
|
fileName: _jsxFileName$1,
|
|
12922
|
-
lineNumber:
|
|
12924
|
+
lineNumber: 319
|
|
12923
12925
|
}
|
|
12924
12926
|
})))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
|
|
12925
12927
|
className: classes.errorText,
|
|
12926
12928
|
__self: this,
|
|
12927
12929
|
__source: {
|
|
12928
12930
|
fileName: _jsxFileName$1,
|
|
12929
|
-
lineNumber:
|
|
12931
|
+
lineNumber: 343
|
|
12930
12932
|
}
|
|
12931
12933
|
}, getMultipleChoiceMinSelectionErrorMessage()), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
|
|
12932
12934
|
className: classes.errorText,
|
|
12933
12935
|
__self: this,
|
|
12934
12936
|
__source: {
|
|
12935
12937
|
fileName: _jsxFileName$1,
|
|
12936
|
-
lineNumber:
|
|
12938
|
+
lineNumber: 348
|
|
12937
12939
|
}
|
|
12938
12940
|
}, translator$1.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
|
|
12939
12941
|
lng: language,
|
|
@@ -13218,7 +13220,7 @@ class MultipleChoice extends HTMLElement {
|
|
|
13218
13220
|
if (audio && !isInsidePrompt) return;
|
|
13219
13221
|
if (!audio) return;
|
|
13220
13222
|
const info = this._createAudioInfoToast();
|
|
13221
|
-
const container = this.querySelector('
|
|
13223
|
+
const container = this.querySelector('#main-container');
|
|
13222
13224
|
const enableAudio = () => {
|
|
13223
13225
|
if (this.querySelector('#play-audio-info')) {
|
|
13224
13226
|
audio.play();
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "10.3.6-next.
|
|
3
|
+
"version": "10.3.6-next.3+da6ef2782",
|
|
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.12.1-next.
|
|
10
|
+
"@pie-element/multiple-choice": "^9.12.1-next.3+da6ef2782",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
12
|
"@pie-lib/pie-toolbox": "2.9.1",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"author": "pie framework developers",
|
|
18
18
|
"license": "ISC",
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "da6ef2782bf676c671fed5c47b1faf86bd47ea54",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|