@pie-element/ebsr 9.19.1-next.18 → 9.19.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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/lib/print.js +1 -24
- package/lib/print.js.map +1 -1
- package/module/configure.js +2 -2
- package/module/element.js +2 -2
- package/module/manifest.json +2 -2
- package/module/print.js +201 -3452
- package/package.json +3 -4
- package/src/print.js +1 -24
package/package.json
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "9.19.1-next.
|
|
3
|
+
"version": "9.19.1-next.5+6084f693c",
|
|
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.22.1-next.
|
|
10
|
+
"@pie-element/multiple-choice": "^8.22.1-next.5+6084f693c",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
|
-
"@pie-lib/pie-toolbox": "1.29.0",
|
|
13
12
|
"classnames": "^2.2.5",
|
|
14
13
|
"debug": "^4.1.1",
|
|
15
14
|
"lodash": "^4.17.11"
|
|
16
15
|
},
|
|
17
16
|
"author": "pie framework developers",
|
|
18
17
|
"license": "ISC",
|
|
19
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "6084f693cf23739eba410d0a16ee53a292e9077d",
|
|
20
19
|
"scripts": {
|
|
21
20
|
"postpublish": "../../scripts/postpublish"
|
|
22
21
|
},
|
package/src/print.js
CHANGED
|
@@ -2,12 +2,10 @@ import cloneDeep from 'lodash/cloneDeep';
|
|
|
2
2
|
import MultipleChoice from '@pie-element/multiple-choice';
|
|
3
3
|
import debug from 'debug';
|
|
4
4
|
import get from 'lodash/get';
|
|
5
|
+
|
|
5
6
|
import { SessionChangedEvent } from '@pie-framework/pie-player-events';
|
|
6
7
|
const MC_TAG_NAME = 'ebsr-multiple-choice';
|
|
7
8
|
const SESSION_CHANGED = SessionChangedEvent.TYPE;
|
|
8
|
-
import Translator from '@pie-lib/pie-toolbox/translator';
|
|
9
|
-
|
|
10
|
-
const { translator } = Translator;
|
|
11
9
|
|
|
12
10
|
const log = debug('pie-element:ebsr:print');
|
|
13
11
|
|
|
@@ -116,30 +114,9 @@ export default class Ebsr extends HTMLElement {
|
|
|
116
114
|
|
|
117
115
|
setPartModel(part, key) {
|
|
118
116
|
if (this._model && this._model[key] && part) {
|
|
119
|
-
let labels = {
|
|
120
|
-
'partA': undefined,
|
|
121
|
-
'partB': undefined
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
if (this._model.partLabels) {
|
|
125
|
-
const language = this._model.language;
|
|
126
|
-
|
|
127
|
-
labels = {
|
|
128
|
-
'partA': translator.t('ebsr.part', {
|
|
129
|
-
lng: language,
|
|
130
|
-
index: this._model.partLabelType === 'Letters' ? 'A' : '1'
|
|
131
|
-
}),
|
|
132
|
-
'partB': translator.t('ebsr.part', {
|
|
133
|
-
lng: language,
|
|
134
|
-
index: this._model.partLabelType === 'Letters' ? 'B' : '2'
|
|
135
|
-
})
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
|
|
139
117
|
part.model = {
|
|
140
118
|
...preparePrintModel(this._model[key], this._options),
|
|
141
119
|
keyMode: this._model[key].choicePrefix,
|
|
142
|
-
partLabel: labels[key]
|
|
143
120
|
};
|
|
144
121
|
|
|
145
122
|
if (!part._session) {
|