@pie-element/ebsr 9.15.1-next.0 → 9.15.1-next.5
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 +6 -0
- package/module/print.js +6 -0
- package/package.json +3 -3
package/module/element.js
CHANGED
|
@@ -9728,6 +9728,7 @@ class MultipleChoice extends HTMLElement {
|
|
|
9728
9728
|
});
|
|
9729
9729
|
this.setAttribute('aria-label', this._model.choiceMode === 'radio' ? 'Multiple Choice Question' : 'Multiple Correct Answer Question');
|
|
9730
9730
|
this.setAttribute('role', 'region');
|
|
9731
|
+
this.setLangAttribute();
|
|
9731
9732
|
ReactDOM.render(element, this, () => {
|
|
9732
9733
|
log$1('render complete - render math');
|
|
9733
9734
|
renderMath(this);
|
|
@@ -9765,6 +9766,11 @@ class MultipleChoice extends HTMLElement {
|
|
|
9765
9766
|
trailing: true
|
|
9766
9767
|
});
|
|
9767
9768
|
}
|
|
9769
|
+
setLangAttribute() {
|
|
9770
|
+
const language = this._model && typeof this._model.language ? this._model.language : '';
|
|
9771
|
+
const lang = language ? language.slice(0, 2) : 'en';
|
|
9772
|
+
this.setAttribute('lang', lang);
|
|
9773
|
+
}
|
|
9768
9774
|
set model(s) {
|
|
9769
9775
|
this._model = s;
|
|
9770
9776
|
this._rerender();
|
package/module/print.js
CHANGED
|
@@ -9691,6 +9691,7 @@ class MultipleChoice extends HTMLElement {
|
|
|
9691
9691
|
});
|
|
9692
9692
|
this.setAttribute('aria-label', this._model.choiceMode === 'radio' ? 'Multiple Choice Question' : 'Multiple Correct Answer Question');
|
|
9693
9693
|
this.setAttribute('role', 'region');
|
|
9694
|
+
this.setLangAttribute();
|
|
9694
9695
|
ReactDOM.render(element, this, () => {
|
|
9695
9696
|
log$1('render complete - render math');
|
|
9696
9697
|
renderMath(this);
|
|
@@ -9728,6 +9729,11 @@ class MultipleChoice extends HTMLElement {
|
|
|
9728
9729
|
trailing: true
|
|
9729
9730
|
});
|
|
9730
9731
|
}
|
|
9732
|
+
setLangAttribute() {
|
|
9733
|
+
const language = this._model && typeof this._model.language ? this._model.language : '';
|
|
9734
|
+
const lang = language ? language.slice(0, 2) : 'en';
|
|
9735
|
+
this.setAttribute('lang', lang);
|
|
9736
|
+
}
|
|
9731
9737
|
set model(s) {
|
|
9732
9738
|
this._model = s;
|
|
9733
9739
|
this._rerender();
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "9.15.1-next.
|
|
3
|
+
"version": "9.15.1-next.5+13679356e",
|
|
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": "^8.17.1-next.
|
|
10
|
+
"@pie-element/multiple-choice": "^8.17.1-next.5+13679356e",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"debug": "^4.1.1",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"author": "pie framework developers",
|
|
17
17
|
"license": "ISC",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "13679356ec1bc148cb4629364e415bb60cd77ec3",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|