@pie-element/math-inline 10.0.1-esmbeta.3 → 10.0.1-next.11
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/CHANGELOG.md +8 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +7 -7
- package/controller/CHANGELOG.md +8 -0
- package/controller/package.json +3 -3
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/module/controller.js +84 -125
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +5 -1
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +10 -28
- package/esm/configure.css +0 -847
- package/esm/configure.js +0 -55766
- package/esm/configure.js.map +0 -1
- package/esm/controller.css +0 -847
- package/esm/controller.js +0 -1983
- package/esm/controller.js.map +0 -1
- package/esm/element.css +0 -847
- package/esm/element.js +0 -61893
- package/esm/element.js.map +0 -1
- package/esm/package.json +0 -4
- package/esm/print.css +0 -847
- package/esm/print.js +0 -44854
- package/esm/print.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [10.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@9.0.0...@pie-element/math-inline@10.1.0) (2025-10-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@8.8.11...@pie-element/math-inline@10.0.0) (2025-10-02)
|
|
7
15
|
|
|
8
16
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [9.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@9.0.0...@pie-element/math-inline-configure@9.1.0) (2025-10-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [9.0.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@8.7.0...@pie-element/math-inline-configure@9.0.1) (2025-10-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/math-inline-configure
|
package/configure/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/math-inline-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "9.0
|
|
4
|
+
"version": "9.1.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"@material-ui/icons": "^3.0.1",
|
|
12
12
|
"@pie-framework/mathquill": "^1.1.3",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
|
-
"@pie-lib/config-ui": "^11.
|
|
15
|
-
"@pie-lib/editable-html": "^11.
|
|
16
|
-
"@pie-lib/math-rendering": "^3.
|
|
17
|
-
"@pie-lib/math-toolbar": "^1.
|
|
18
|
-
"@pie-lib/render-ui": "^4.
|
|
19
|
-
"@pie-lib/test-utils": "^0.
|
|
14
|
+
"@pie-lib/config-ui": "^11.25.0",
|
|
15
|
+
"@pie-lib/editable-html": "^11.17.0",
|
|
16
|
+
"@pie-lib/math-rendering": "^3.18.0",
|
|
17
|
+
"@pie-lib/math-toolbar": "^1.27.0",
|
|
18
|
+
"@pie-lib/render-ui": "^4.31.0",
|
|
19
|
+
"@pie-lib/test-utils": "^0.18.0",
|
|
20
20
|
"classnames": "^2.2.5",
|
|
21
21
|
"debug": "^3.1.0",
|
|
22
22
|
"prop-types": "^15.6.2",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [8.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-controller@8.0.0...@pie-element/math-inline-controller@8.1.0) (2025-10-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/math-inline-controller
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [8.0.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-controller@7.4.11...@pie-element/math-inline-controller@8.0.1) (2025-10-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/math-inline-controller
|
package/controller/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/math-inline-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "8.0
|
|
4
|
+
"version": "8.1.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@pie-framework/math-validation": "^1.4.2",
|
|
13
|
-
"@pie-lib/feedback": "^0.
|
|
14
|
-
"@pie-lib/translator": "^2.
|
|
13
|
+
"@pie-lib/feedback": "^0.20.0",
|
|
14
|
+
"@pie-lib/translator": "^2.19.0",
|
|
15
15
|
"debug": "^3.1.0",
|
|
16
16
|
"lodash": "^4.17.15"
|
|
17
17
|
},
|
package/lib/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var _lodash = _interopRequireDefault(require("lodash"));
|
|
|
37
37
|
|
|
38
38
|
var _piePlayerEvents = require("@pie-framework/pie-player-events");
|
|
39
39
|
|
|
40
|
-
var _defaults = _interopRequireDefault(require("../configure/
|
|
40
|
+
var _defaults = _interopRequireDefault(require("../configure/lib/defaults"));
|
|
41
41
|
|
|
42
42
|
var _main = _interopRequireDefault(require("./main"));
|
|
43
43
|
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["log","MathInline","_configuration","defaults","configuration","sessionChangedEventCaller","_","debounce","dispatchEvent","SessionChangedEvent","tagName","toLowerCase","language","_model","lang","slice","setAttribute","playerContainer","closest","m","ModelSetEvent","setLangAttribute","_render","_session","s","c","Object","keys","map","key","el","React","createElement","Main","model","session","onSessionChange","sessionChanged","bind","ReactDOM","render","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,oBAAN,CAAZ;;IAIqBC,U;;;;;AACnB,wBAAc;AAAA;;AAAA;AACZ;AACA,UAAKC,cAAL,GAAsBC,qBAASC,aAA/B;AACA,UAAKC,yBAAL,GAAiCC,mBAAEC,QAAF,CAAW,YAAM;AAChD,YAAKC,aAAL,CAAmB,IAAIC,oCAAJ,CAAwB,MAAKC,OAAL,CAAaC,WAAb,EAAxB,EAAoD,IAApD,CAAnB;AACD,KAFgC,EAE9B,IAF8B,CAAjC;AAHY;AAMb;;;;WAED,4BAAmB;AACjB,UAAMC,QAAQ,GAAG,KAAKC,MAAL,6BAAsB,KAAKA,MAAL,CAAYD,QAAlC,IAA6C,KAAKC,MAAL,CAAYD,QAAzD,GAAoE,EAArF;AACA,UAAME,IAAI,GAAGF,QAAQ,GAAGA,QAAQ,CAACG,KAAT,CAAe,CAAf,EAAkB,CAAlB,CAAH,GAA0B,IAA/C;AACA,WAAKC,YAAL,CAAkB,MAAlB,EAA0BF,IAA1B,EAHiB,CAKjB;;AACA,UAAMG,eAAe,GAAG,KAAKC,OAAL,CAAa,mBAAb,CAAxB;;AACA,UAAID,eAAJ,EAAqB;AACnBA,QAAAA,eAAe,CAACD,YAAhB,CAA6B,MAA7B,EAAqCF,IAArC;AACD;AACF;;;SAED,aAAUK,CAAV,EAAa;AACX,WAAKN,MAAL,GAAcM,CAAd;AACA,WAAKX,aAAL,CAAmB,IAAIY,8BAAJ,CAAkB,KAAKP,MAAvB,EAA+B,IAA/B,EAAqC,CAAC,CAAC,KAAKA,MAA5C,CAAnB;AACA,WAAKQ,gBAAL;;AACA,WAAKC,OAAL;AACD;;;SAOD,eAAc;AACZ,aAAO,KAAKC,QAAZ;AACD,K;SAPD,aAAYC,CAAZ,EAAe;AACb,WAAKD,QAAL,GAAgBC,CAAhB;;AACA,WAAKF,OAAL;AACD;;;SAMD,aAAkBG,CAAlB,EAAqB;AACnB,WAAKvB,cAAL,GAAsBuB,CAAtB;;AACA,WAAKH,OAAL;AACD;;;WAED,wBAAeE,CAAf,EAAkB;AAAA;;AAChBE,MAAAA,MAAM,CAACC,IAAP,CAAYH,CAAZ,EAAeI,GAAf,CAAmB,UAACC,GAAD,EAAS;AAC1B,QAAA,MAAI,CAACN,QAAL,CAAcM,GAAd,IAAqBL,CAAC,CAACK,GAAD,CAAtB;AACD,OAFD;AAIA,WAAKxB,yBAAL;AACAL,MAAAA,GAAG,CAAC,WAAD,EAAc,KAAKuB,QAAnB,CAAH;AACD;;;WAED,6BAAoB;AAClB,WAAKP,YAAL,CAAkB,YAAlB,EAAgC,wBAAhC;AACA,WAAKA,YAAL,CAAkB,MAAlB,EAA0B,QAA1B;;AAEA,WAAKM,OAAL;AACD;;;WAED,mBAAU;AACR,UAAI,CAAC,KAAKT,MAAN,IAAgB,CAAC,KAAKU,QAA1B,EAAoC;AAClC;AACD;;AAED,UAAMO,EAAE,gBAAGC,kBAAMC,aAAN,CAAoBC,gBAApB,EAA0B;AACnCC,QAAAA,KAAK,EAAE,KAAKrB,MADuB;AAEnCsB,QAAAA,OAAO,EAAE,KAAKZ,QAFqB;AAGnCnB,QAAAA,aAAa,EAAE,KAAKF,cAHe;AAInCkC,QAAAA,eAAe,EAAE,KAAKC,cAAL,CAAoBC,IAApB,CAAyB,IAAzB;AAJkB,OAA1B,CAAX;;AAOAC,2BAASC,MAAT,CAAgBV,EAAhB,EAAoB,IAApB;AACD;;;kDAvEqCW,W","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport debug from 'debug';\nimport _ from 'lodash';\nimport { ModelSetEvent, SessionChangedEvent } from '@pie-framework/pie-player-events';\n\nimport defaults from '../configure/
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["log","MathInline","_configuration","defaults","configuration","sessionChangedEventCaller","_","debounce","dispatchEvent","SessionChangedEvent","tagName","toLowerCase","language","_model","lang","slice","setAttribute","playerContainer","closest","m","ModelSetEvent","setLangAttribute","_render","_session","s","c","Object","keys","map","key","el","React","createElement","Main","model","session","onSessionChange","sessionChanged","bind","ReactDOM","render","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,oBAAN,CAAZ;;IAIqBC,U;;;;;AACnB,wBAAc;AAAA;;AAAA;AACZ;AACA,UAAKC,cAAL,GAAsBC,qBAASC,aAA/B;AACA,UAAKC,yBAAL,GAAiCC,mBAAEC,QAAF,CAAW,YAAM;AAChD,YAAKC,aAAL,CAAmB,IAAIC,oCAAJ,CAAwB,MAAKC,OAAL,CAAaC,WAAb,EAAxB,EAAoD,IAApD,CAAnB;AACD,KAFgC,EAE9B,IAF8B,CAAjC;AAHY;AAMb;;;;WAED,4BAAmB;AACjB,UAAMC,QAAQ,GAAG,KAAKC,MAAL,6BAAsB,KAAKA,MAAL,CAAYD,QAAlC,IAA6C,KAAKC,MAAL,CAAYD,QAAzD,GAAoE,EAArF;AACA,UAAME,IAAI,GAAGF,QAAQ,GAAGA,QAAQ,CAACG,KAAT,CAAe,CAAf,EAAkB,CAAlB,CAAH,GAA0B,IAA/C;AACA,WAAKC,YAAL,CAAkB,MAAlB,EAA0BF,IAA1B,EAHiB,CAKjB;;AACA,UAAMG,eAAe,GAAG,KAAKC,OAAL,CAAa,mBAAb,CAAxB;;AACA,UAAID,eAAJ,EAAqB;AACnBA,QAAAA,eAAe,CAACD,YAAhB,CAA6B,MAA7B,EAAqCF,IAArC;AACD;AACF;;;SAED,aAAUK,CAAV,EAAa;AACX,WAAKN,MAAL,GAAcM,CAAd;AACA,WAAKX,aAAL,CAAmB,IAAIY,8BAAJ,CAAkB,KAAKP,MAAvB,EAA+B,IAA/B,EAAqC,CAAC,CAAC,KAAKA,MAA5C,CAAnB;AACA,WAAKQ,gBAAL;;AACA,WAAKC,OAAL;AACD;;;SAOD,eAAc;AACZ,aAAO,KAAKC,QAAZ;AACD,K;SAPD,aAAYC,CAAZ,EAAe;AACb,WAAKD,QAAL,GAAgBC,CAAhB;;AACA,WAAKF,OAAL;AACD;;;SAMD,aAAkBG,CAAlB,EAAqB;AACnB,WAAKvB,cAAL,GAAsBuB,CAAtB;;AACA,WAAKH,OAAL;AACD;;;WAED,wBAAeE,CAAf,EAAkB;AAAA;;AAChBE,MAAAA,MAAM,CAACC,IAAP,CAAYH,CAAZ,EAAeI,GAAf,CAAmB,UAACC,GAAD,EAAS;AAC1B,QAAA,MAAI,CAACN,QAAL,CAAcM,GAAd,IAAqBL,CAAC,CAACK,GAAD,CAAtB;AACD,OAFD;AAIA,WAAKxB,yBAAL;AACAL,MAAAA,GAAG,CAAC,WAAD,EAAc,KAAKuB,QAAnB,CAAH;AACD;;;WAED,6BAAoB;AAClB,WAAKP,YAAL,CAAkB,YAAlB,EAAgC,wBAAhC;AACA,WAAKA,YAAL,CAAkB,MAAlB,EAA0B,QAA1B;;AAEA,WAAKM,OAAL;AACD;;;WAED,mBAAU;AACR,UAAI,CAAC,KAAKT,MAAN,IAAgB,CAAC,KAAKU,QAA1B,EAAoC;AAClC;AACD;;AAED,UAAMO,EAAE,gBAAGC,kBAAMC,aAAN,CAAoBC,gBAApB,EAA0B;AACnCC,QAAAA,KAAK,EAAE,KAAKrB,MADuB;AAEnCsB,QAAAA,OAAO,EAAE,KAAKZ,QAFqB;AAGnCnB,QAAAA,aAAa,EAAE,KAAKF,cAHe;AAInCkC,QAAAA,eAAe,EAAE,KAAKC,cAAL,CAAoBC,IAApB,CAAyB,IAAzB;AAJkB,OAA1B,CAAX;;AAOAC,2BAASC,MAAT,CAAgBV,EAAhB,EAAoB,IAApB;AACD;;;kDAvEqCW,W","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport debug from 'debug';\nimport _ from 'lodash';\nimport { ModelSetEvent, SessionChangedEvent } from '@pie-framework/pie-player-events';\n\nimport defaults from '../configure/lib/defaults';\nimport Main from './main';\n\nconst log = debug('pie-ui:math-inline');\n\nexport { Main as Component };\n\nexport default class MathInline extends HTMLElement {\n constructor() {\n super();\n this._configuration = defaults.configuration;\n this.sessionChangedEventCaller = _.debounce(() => {\n this.dispatchEvent(new SessionChangedEvent(this.tagName.toLowerCase(), true));\n }, 1000);\n }\n\n setLangAttribute() {\n const language = this._model && typeof this._model.language ? this._model.language : '';\n const lang = language ? language.slice(0, 2) : 'en';\n this.setAttribute('lang', lang);\n\n // set the lang attribute for the nearest parent div with class 'player-container' for MPI items as per PD-2483\n const playerContainer = this.closest('.player-container');\n if (playerContainer) {\n playerContainer.setAttribute('lang', lang);\n }\n }\n\n set model(m) {\n this._model = m;\n this.dispatchEvent(new ModelSetEvent(this._model, true, !!this._model));\n this.setLangAttribute();\n this._render();\n }\n\n set session(s) {\n this._session = s;\n this._render();\n }\n\n get session() {\n return this._session;\n }\n\n set configuration(c) {\n this._configuration = c;\n this._render();\n }\n\n sessionChanged(s) {\n Object.keys(s).map((key) => {\n this._session[key] = s[key];\n });\n\n this.sessionChangedEventCaller();\n log('session: ', this._session);\n }\n\n connectedCallback() {\n this.setAttribute('aria-label', 'Math Response Question');\n this.setAttribute('role', 'region');\n\n this._render();\n }\n\n _render() {\n if (!this._model || !this._session) {\n return;\n }\n\n const el = React.createElement(Main, {\n model: this._model,\n session: this._session,\n configuration: this._configuration,\n onSessionChange: this.sessionChanged.bind(this),\n });\n\n ReactDOM.render(el, this);\n }\n}\n"],"file":"index.js"}
|
package/module/controller.js
CHANGED
|
@@ -976,68 +976,41 @@ function isEmpty(value) {
|
|
|
976
976
|
|
|
977
977
|
var isEmpty_1 = isEmpty;
|
|
978
978
|
|
|
979
|
-
function _extends$1() {
|
|
980
|
-
_extends$1 = Object.assign || function (target) {
|
|
981
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
982
|
-
var source = arguments[i];
|
|
983
|
-
|
|
984
|
-
for (var key in source) {
|
|
985
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
986
|
-
target[key] = source[key];
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
return target;
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
return _extends$1.apply(this, arguments);
|
|
995
|
-
}
|
|
996
|
-
|
|
997
979
|
const defaults$1 = {
|
|
998
|
-
correct: {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
custom: 'Correct'
|
|
1002
|
-
},
|
|
1003
|
-
incorrect: {
|
|
1004
|
-
type: 'default',
|
|
1005
|
-
default: 'Incorrect',
|
|
1006
|
-
custom: 'Incorrect'
|
|
1007
|
-
},
|
|
1008
|
-
partial: {
|
|
1009
|
-
type: 'default',
|
|
1010
|
-
default: 'Nearly',
|
|
1011
|
-
custom: 'Nearly'
|
|
1012
|
-
},
|
|
980
|
+
correct: { type: 'default', default: 'Correct', custom: 'Correct' },
|
|
981
|
+
incorrect: { type: 'default', default: 'Incorrect', custom: 'Incorrect' },
|
|
982
|
+
partial: { type: 'default', default: 'Nearly', custom: 'Nearly' },
|
|
1013
983
|
unanswered: {
|
|
1014
984
|
type: 'default',
|
|
1015
985
|
default: 'You have not entered a response',
|
|
1016
|
-
custom: 'You have not entered a response'
|
|
1017
|
-
}
|
|
986
|
+
custom: 'You have not entered a response',
|
|
987
|
+
},
|
|
1018
988
|
};
|
|
1019
989
|
|
|
990
|
+
// TODO: should replace getFeedbackForCorrectness
|
|
1020
991
|
/**
|
|
1021
992
|
* Get feedback for correctness
|
|
1022
993
|
* @param {'correct'|'incorrect'|'partial'} correctness
|
|
1023
994
|
* @param {Feedback} feedback
|
|
1024
995
|
*/
|
|
1025
|
-
|
|
1026
996
|
const getActualFeedbackForCorrectness = (correctness, feedback) => {
|
|
1027
|
-
feedback =
|
|
997
|
+
feedback = { ...defaults$1, ...feedback };
|
|
1028
998
|
|
|
999
|
+
// normalize correctness
|
|
1029
1000
|
correctness = correctness === 'partially-correct' ? 'partial' : correctness;
|
|
1001
|
+
|
|
1030
1002
|
const defaultFeedback = defaults$1[correctness] || {};
|
|
1031
1003
|
const fb = feedback[correctness] || defaultFeedback;
|
|
1004
|
+
|
|
1032
1005
|
return getActualFeedback(fb, defaultFeedback[fb.type || 'default']);
|
|
1033
|
-
};
|
|
1006
|
+
};
|
|
1034
1007
|
|
|
1008
|
+
// TODO: should replace getFeedback
|
|
1035
1009
|
/**
|
|
1036
1010
|
* Get the feedback from a {FeedbackConfig}
|
|
1037
1011
|
* @param {FeedbackConfig} feedback
|
|
1038
1012
|
* @param {string} fallback
|
|
1039
1013
|
*/
|
|
1040
|
-
|
|
1041
1014
|
const getActualFeedback = (feedback, fallback) => {
|
|
1042
1015
|
if (!feedback || feedback.type === 'none') {
|
|
1043
1016
|
return undefined;
|
|
@@ -1051,24 +1024,6 @@ const ResponseTypes = {
|
|
|
1051
1024
|
simple: 'Simple',
|
|
1052
1025
|
};
|
|
1053
1026
|
|
|
1054
|
-
function _extends() {
|
|
1055
|
-
_extends = Object.assign || function (target) {
|
|
1056
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1057
|
-
var source = arguments[i];
|
|
1058
|
-
|
|
1059
|
-
for (var key in source) {
|
|
1060
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1061
|
-
target[key] = source[key];
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
return target;
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
return _extends.apply(this, arguments);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
1027
|
function _typeof(obj) {
|
|
1073
1028
|
"@babel/helpers - typeof";
|
|
1074
1029
|
|
|
@@ -1089,7 +1044,7 @@ function _toPrimitive(input, hint) {
|
|
|
1089
1044
|
if (_typeof(input) !== "object" || input === null) return input;
|
|
1090
1045
|
var prim = input[Symbol.toPrimitive];
|
|
1091
1046
|
if (prim !== undefined) {
|
|
1092
|
-
var res = prim.call(input, hint);
|
|
1047
|
+
var res = prim.call(input, hint || "default");
|
|
1093
1048
|
if (_typeof(res) !== "object") return res;
|
|
1094
1049
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1095
1050
|
}
|
|
@@ -1214,7 +1169,7 @@ function _toArray(arr) {
|
|
|
1214
1169
|
}
|
|
1215
1170
|
|
|
1216
1171
|
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1217
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source),
|
|
1172
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1218
1173
|
var consoleLogger = {
|
|
1219
1174
|
type: 'logger',
|
|
1220
1175
|
log: function log(args) {
|
|
@@ -1413,7 +1368,8 @@ function pushPath(object, path, newValue, concat) {
|
|
|
1413
1368
|
obj = _getLastOfPath2.obj,
|
|
1414
1369
|
k = _getLastOfPath2.k;
|
|
1415
1370
|
obj[k] = obj[k] || [];
|
|
1416
|
-
obj[k].
|
|
1371
|
+
if (concat) obj[k] = obj[k].concat(newValue);
|
|
1372
|
+
if (!concat) obj[k].push(newValue);
|
|
1417
1373
|
}
|
|
1418
1374
|
function getPath(object, path) {
|
|
1419
1375
|
var _getLastOfPath3 = getLastOfPath(object, path),
|
|
@@ -1521,7 +1477,7 @@ function deepFind(obj, path) {
|
|
|
1521
1477
|
}
|
|
1522
1478
|
|
|
1523
1479
|
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1524
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source),
|
|
1480
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1525
1481
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1526
1482
|
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1527
1483
|
var ResourceStore = function (_EventEmitter) {
|
|
@@ -1693,11 +1649,11 @@ var postProcessor = {
|
|
|
1693
1649
|
};
|
|
1694
1650
|
|
|
1695
1651
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1696
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source),
|
|
1652
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1697
1653
|
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1698
1654
|
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1699
1655
|
var checkedLoadedFor = {};
|
|
1700
|
-
var Translator = function (_EventEmitter) {
|
|
1656
|
+
var Translator$1 = function (_EventEmitter) {
|
|
1701
1657
|
_inherits(Translator, _EventEmitter);
|
|
1702
1658
|
var _super = _createSuper$2(Translator);
|
|
1703
1659
|
function Translator(services) {
|
|
@@ -2504,7 +2460,7 @@ var PluralResolver = function () {
|
|
|
2504
2460
|
}();
|
|
2505
2461
|
|
|
2506
2462
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2507
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source),
|
|
2463
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2508
2464
|
function deepFindWithDefaults(data, defaultData, key) {
|
|
2509
2465
|
var keySeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.';
|
|
2510
2466
|
var ignoreJSONStructure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
@@ -2709,7 +2665,7 @@ var Interpolator = function () {
|
|
|
2709
2665
|
}();
|
|
2710
2666
|
|
|
2711
2667
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2712
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source),
|
|
2668
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2713
2669
|
function parseFormatStr(formatStr) {
|
|
2714
2670
|
var formatName = formatStr.toLowerCase().trim();
|
|
2715
2671
|
var formatOptions = {};
|
|
@@ -2847,7 +2803,7 @@ var Formatter = function () {
|
|
|
2847
2803
|
}();
|
|
2848
2804
|
|
|
2849
2805
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2850
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source),
|
|
2806
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2851
2807
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2852
2808
|
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2853
2809
|
function removePending(q, name) {
|
|
@@ -3184,7 +3140,7 @@ function transformOptions(options) {
|
|
|
3184
3140
|
}
|
|
3185
3141
|
|
|
3186
3142
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3187
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source),
|
|
3143
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3188
3144
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3189
3145
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3190
3146
|
function noop() {}
|
|
@@ -3306,7 +3262,7 @@ var I18n = function (_EventEmitter) {
|
|
|
3306
3262
|
s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);
|
|
3307
3263
|
if (s.i18nFormat.init) s.i18nFormat.init(this);
|
|
3308
3264
|
}
|
|
3309
|
-
this.translator = new Translator(this.services, this.options);
|
|
3265
|
+
this.translator = new Translator$1(this.services, this.options);
|
|
3310
3266
|
this.translator.on('*', function (event) {
|
|
3311
3267
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
3312
3268
|
args[_key2 - 1] = arguments[_key2];
|
|
@@ -3666,7 +3622,7 @@ var I18n = function (_EventEmitter) {
|
|
|
3666
3622
|
clone.services.utils = {
|
|
3667
3623
|
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
3668
3624
|
};
|
|
3669
|
-
clone.translator = new Translator(clone.services, clone.options);
|
|
3625
|
+
clone.translator = new Translator$1(clone.services, clone.options);
|
|
3670
3626
|
clone.translator.on('*', function (event) {
|
|
3671
3627
|
for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
3672
3628
|
args[_key4 - 1] = arguments[_key4];
|
|
@@ -3720,20 +3676,23 @@ instance.loadLanguages;
|
|
|
3720
3676
|
var en = {
|
|
3721
3677
|
translation: {
|
|
3722
3678
|
categorize: {
|
|
3723
|
-
limitMaxChoicesPerCategory:
|
|
3724
|
-
|
|
3679
|
+
limitMaxChoicesPerCategory:
|
|
3680
|
+
"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
|
|
3681
|
+
maxChoicesPerCategoryRestriction:
|
|
3682
|
+
'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].',
|
|
3725
3683
|
},
|
|
3726
3684
|
ebsr: {
|
|
3727
|
-
part: 'Part {{index}}'
|
|
3685
|
+
part: 'Part {{index}}',
|
|
3728
3686
|
},
|
|
3729
3687
|
numberLine: {
|
|
3730
3688
|
addElementLimit_one: 'You can only add {{count}} element',
|
|
3731
3689
|
addElementLimit_other: 'You can only add {{count}} elements',
|
|
3732
|
-
clearAll: 'Clear all'
|
|
3690
|
+
clearAll: 'Clear all',
|
|
3733
3691
|
},
|
|
3734
3692
|
imageClozeAssociation: {
|
|
3735
|
-
reachedLimit_one:
|
|
3736
|
-
|
|
3693
|
+
reachedLimit_one:
|
|
3694
|
+
'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
|
|
3695
|
+
reachedLimit_other: 'Full',
|
|
3737
3696
|
},
|
|
3738
3697
|
drawingResponse: {
|
|
3739
3698
|
fillColor: 'Fill color',
|
|
@@ -3749,7 +3708,7 @@ var en = {
|
|
|
3749
3708
|
green: 'Green',
|
|
3750
3709
|
white: 'White',
|
|
3751
3710
|
black: 'Black',
|
|
3752
|
-
onDoubleClick: 'Double click to edit this text. Press Enter to submit.'
|
|
3711
|
+
onDoubleClick: 'Double click to edit this text. Press Enter to submit.',
|
|
3753
3712
|
},
|
|
3754
3713
|
charting: {
|
|
3755
3714
|
addCategory: 'Add category',
|
|
@@ -3761,8 +3720,8 @@ var en = {
|
|
|
3761
3720
|
keyLegend: {
|
|
3762
3721
|
incorrectAnswer: 'Student incorrect answer',
|
|
3763
3722
|
correctAnswer: 'Student correct answer',
|
|
3764
|
-
correctKeyAnswer: 'Answer key correct'
|
|
3765
|
-
}
|
|
3723
|
+
correctKeyAnswer: 'Answer key correct',
|
|
3724
|
+
},
|
|
3766
3725
|
},
|
|
3767
3726
|
graphing: {
|
|
3768
3727
|
point: 'Point',
|
|
@@ -3778,24 +3737,25 @@ var en = {
|
|
|
3778
3737
|
vector: 'Vector',
|
|
3779
3738
|
label: 'Label',
|
|
3780
3739
|
redo: 'Redo',
|
|
3781
|
-
reset: 'Reset'
|
|
3740
|
+
reset: 'Reset',
|
|
3782
3741
|
},
|
|
3783
3742
|
mathInline: {
|
|
3784
|
-
primaryCorrectWithAlternates:
|
|
3743
|
+
primaryCorrectWithAlternates:
|
|
3744
|
+
'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.',
|
|
3785
3745
|
},
|
|
3786
3746
|
multipleChoice: {
|
|
3787
3747
|
minSelections: 'Select at least {{minSelections}}.',
|
|
3788
3748
|
maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
|
|
3789
3749
|
maxSelections_other: 'Only {{maxSelections}} answers are allowed.',
|
|
3790
3750
|
minmaxSelections_equal: 'Select {{minSelections}}.',
|
|
3791
|
-
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
|
|
3751
|
+
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.',
|
|
3792
3752
|
},
|
|
3793
3753
|
selectText: {
|
|
3794
3754
|
correctAnswerSelected: 'Correct',
|
|
3795
3755
|
correctAnswerNotSelected: 'Correct Answer Not Selected',
|
|
3796
3756
|
incorrectSelection: 'Incorrect Selection',
|
|
3797
|
-
key: 'Key'
|
|
3798
|
-
}
|
|
3757
|
+
key: 'Key',
|
|
3758
|
+
},
|
|
3799
3759
|
},
|
|
3800
3760
|
common: {
|
|
3801
3761
|
undo: 'Undo',
|
|
@@ -3804,31 +3764,35 @@ var en = {
|
|
|
3804
3764
|
incorrect: 'Incorrect',
|
|
3805
3765
|
showCorrectAnswer: 'Show correct answer',
|
|
3806
3766
|
hideCorrectAnswer: 'Hide correct answer',
|
|
3807
|
-
commonCorrectAnswerWithAlternates:
|
|
3767
|
+
commonCorrectAnswerWithAlternates:
|
|
3768
|
+
'Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.',
|
|
3808
3769
|
warning: 'Warning',
|
|
3809
3770
|
showNote: 'Show Note',
|
|
3810
3771
|
hideNote: 'Hide Note',
|
|
3811
|
-
cancel: 'Cancel'
|
|
3812
|
-
}
|
|
3772
|
+
cancel: 'Cancel',
|
|
3773
|
+
},
|
|
3813
3774
|
};
|
|
3814
3775
|
|
|
3815
3776
|
var es = {
|
|
3816
3777
|
translation: {
|
|
3817
3778
|
categorize: {
|
|
3818
|
-
limitMaxChoicesPerCategory:
|
|
3819
|
-
|
|
3779
|
+
limitMaxChoicesPerCategory:
|
|
3780
|
+
'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
3781
|
+
maxChoicesPerCategoryRestriction:
|
|
3782
|
+
'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta',
|
|
3820
3783
|
},
|
|
3821
3784
|
ebsr: {
|
|
3822
|
-
part: 'Parte {{index}}'
|
|
3785
|
+
part: 'Parte {{index}}',
|
|
3823
3786
|
},
|
|
3824
3787
|
numberLine: {
|
|
3825
3788
|
addElementLimit_one: 'Solo puedes agregar {{count}} elemento',
|
|
3826
3789
|
addElementLimit_other: 'Solo puedes agregar {{count}} elementos',
|
|
3827
|
-
clearAll: 'Borrar todo'
|
|
3790
|
+
clearAll: 'Borrar todo',
|
|
3828
3791
|
},
|
|
3829
3792
|
imageClozeAssociation: {
|
|
3830
|
-
reachedLimit_one:
|
|
3831
|
-
|
|
3793
|
+
reachedLimit_one:
|
|
3794
|
+
'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
3795
|
+
reachedLimit_other: 'Lleno',
|
|
3832
3796
|
},
|
|
3833
3797
|
drawingResponse: {
|
|
3834
3798
|
fillColor: 'Color de relleno',
|
|
@@ -3844,7 +3808,7 @@ var es = {
|
|
|
3844
3808
|
green: 'Verde',
|
|
3845
3809
|
white: 'Blanco',
|
|
3846
3810
|
black: 'Negro',
|
|
3847
|
-
onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar'
|
|
3811
|
+
onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar',
|
|
3848
3812
|
},
|
|
3849
3813
|
charting: {
|
|
3850
3814
|
addCategory: 'Añadir categoría',
|
|
@@ -3856,8 +3820,8 @@ var es = {
|
|
|
3856
3820
|
keyLegend: {
|
|
3857
3821
|
incorrectAnswer: 'Respuesta incorrecta del estudiante',
|
|
3858
3822
|
correctAnswer: 'Respuesta correcta del estudiante',
|
|
3859
|
-
correctKeyAnswer: 'Clave de respuesta correcta'
|
|
3860
|
-
}
|
|
3823
|
+
correctKeyAnswer: 'Clave de respuesta correcta',
|
|
3824
|
+
},
|
|
3861
3825
|
},
|
|
3862
3826
|
graphing: {
|
|
3863
3827
|
point: 'Punto',
|
|
@@ -3873,24 +3837,25 @@ var es = {
|
|
|
3873
3837
|
vector: 'Vector',
|
|
3874
3838
|
label: 'Etiqueta',
|
|
3875
3839
|
redo: 'Rehacer',
|
|
3876
|
-
reset: 'Reiniciar'
|
|
3840
|
+
reset: 'Reiniciar',
|
|
3877
3841
|
},
|
|
3878
3842
|
mathInline: {
|
|
3879
|
-
primaryCorrectWithAlternates:
|
|
3843
|
+
primaryCorrectWithAlternates:
|
|
3844
|
+
'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.',
|
|
3880
3845
|
},
|
|
3881
3846
|
multipleChoice: {
|
|
3882
3847
|
minSelections: 'Seleccione al menos {{minSelections}}.',
|
|
3883
3848
|
maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
|
|
3884
3849
|
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.',
|
|
3885
3850
|
minmaxSelections_equal: 'Seleccione {{minSelections}}.',
|
|
3886
|
-
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
|
|
3851
|
+
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.',
|
|
3887
3852
|
},
|
|
3888
3853
|
selectText: {
|
|
3889
3854
|
correctAnswerSelected: 'Respuesta Correcta',
|
|
3890
3855
|
correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',
|
|
3891
3856
|
incorrectSelection: 'Selección Incorrecta',
|
|
3892
|
-
key: 'Clave'
|
|
3893
|
-
}
|
|
3857
|
+
key: 'Clave',
|
|
3858
|
+
},
|
|
3894
3859
|
},
|
|
3895
3860
|
common: {
|
|
3896
3861
|
undo: 'Deshacer',
|
|
@@ -3899,12 +3864,13 @@ var es = {
|
|
|
3899
3864
|
incorrect: 'Incorrect',
|
|
3900
3865
|
showCorrectAnswer: 'Mostrar respuesta correcta',
|
|
3901
3866
|
hideCorrectAnswer: 'Ocultar respuesta correcta',
|
|
3902
|
-
commonCorrectAnswerWithAlternates:
|
|
3867
|
+
commonCorrectAnswerWithAlternates:
|
|
3868
|
+
'Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.',
|
|
3903
3869
|
warning: 'Advertencia',
|
|
3904
3870
|
showNote: 'Mostrar Nota',
|
|
3905
3871
|
hideNote: 'Ocultar Nota',
|
|
3906
|
-
cancel: 'Cancelar'
|
|
3907
|
-
}
|
|
3872
|
+
cancel: 'Cancelar',
|
|
3873
|
+
},
|
|
3908
3874
|
};
|
|
3909
3875
|
|
|
3910
3876
|
instance.init({
|
|
@@ -3913,15 +3879,15 @@ instance.init({
|
|
|
3913
3879
|
debug: true,
|
|
3914
3880
|
resources: {
|
|
3915
3881
|
en: en,
|
|
3916
|
-
es: es
|
|
3917
|
-
}
|
|
3882
|
+
es: es,
|
|
3883
|
+
},
|
|
3918
3884
|
});
|
|
3919
|
-
|
|
3920
|
-
|
|
3885
|
+
|
|
3886
|
+
var Translator = {
|
|
3887
|
+
translator: {
|
|
3888
|
+
...instance,
|
|
3921
3889
|
t: (key, options) => {
|
|
3922
|
-
const {
|
|
3923
|
-
lng
|
|
3924
|
-
} = options;
|
|
3890
|
+
const { lng } = options;
|
|
3925
3891
|
|
|
3926
3892
|
switch (lng) {
|
|
3927
3893
|
// these keys don't work with plurals, don't know why, so I added a workaround to convert them to the correct lng
|
|
@@ -3929,7 +3895,6 @@ var index = {
|
|
|
3929
3895
|
case 'en-US':
|
|
3930
3896
|
options.lng = 'en';
|
|
3931
3897
|
break;
|
|
3932
|
-
|
|
3933
3898
|
case 'es_ES':
|
|
3934
3899
|
case 'es-ES':
|
|
3935
3900
|
case 'es_MX':
|
|
@@ -3937,19 +3902,13 @@ var index = {
|
|
|
3937
3902
|
options.lng = 'es';
|
|
3938
3903
|
break;
|
|
3939
3904
|
}
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
}
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
value: 'en_US',
|
|
3948
|
-
label: 'English (US)'
|
|
3949
|
-
}, {
|
|
3950
|
-
value: 'es_ES',
|
|
3951
|
-
label: 'Spanish'
|
|
3952
|
-
}]
|
|
3905
|
+
return instance.t(key, { lng, ...options });
|
|
3906
|
+
},
|
|
3907
|
+
},
|
|
3908
|
+
languageOptions: [
|
|
3909
|
+
{ value: 'en_US', label: 'English (US)' },
|
|
3910
|
+
{ value: 'es_ES', label: 'Spanish' },
|
|
3911
|
+
],
|
|
3953
3912
|
};
|
|
3954
3913
|
|
|
3955
3914
|
var defaults = {
|
|
@@ -3979,7 +3938,7 @@ var defaults = {
|
|
|
3979
3938
|
validationDefault: 'literal',
|
|
3980
3939
|
};
|
|
3981
3940
|
|
|
3982
|
-
const { translator } =
|
|
3941
|
+
const { translator } = Translator;
|
|
3983
3942
|
|
|
3984
3943
|
const log = debug();
|
|
3985
3944
|
|