@pie-element/ebsr 10.5.12-next.5 → 10.6.0

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 CHANGED
@@ -3,6 +3,23 @@
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.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.5.11...@pie-element/ebsr@10.6.0) (2025-07-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-363 ([10ce402](https://github.com/pie-framework/pie-elements/commit/10ce402bcb1c0c9c24dfc9ecff2e13c4de14a753))
12
+
13
+
14
+ ### Features
15
+
16
+ * update pie-lib/pie toolbox PD-5082, PD-5081, PD-3797, PD-5083, revert PD-363, PD-653 ([9214466](https://github.com/pie-framework/pie-elements/commit/92144667464f18c213c7ab1d769595e43b553dab))
17
+ * update pie-lib/pie-toolbox PD-5082, PD-5081, PD-3797, PD-5083, PD-4885, PD-5097, PD-5100, PD-5131, PD-5080 ([dc67b1c](https://github.com/pie-framework/pie-elements/commit/dc67b1c735b2adb60943e5d145e739ce4e39a428))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [10.5.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.5.10...@pie-element/ebsr@10.5.11) (2025-07-03)
7
24
 
8
25
 
@@ -3,6 +3,23 @@
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.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.4.11...@pie-element/ebsr-configure@10.5.0) (2025-07-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-363 ([10ce402](https://github.com/pie-framework/pie-elements/commit/10ce402bcb1c0c9c24dfc9ecff2e13c4de14a753))
12
+
13
+
14
+ ### Features
15
+
16
+ * update pie-lib/pie toolbox PD-5082, PD-5081, PD-3797, PD-5083, revert PD-363, PD-653 ([9214466](https://github.com/pie-framework/pie-elements/commit/92144667464f18c213c7ab1d769595e43b553dab))
17
+ * update pie-lib/pie-toolbox PD-5082, PD-5081, PD-3797, PD-5083, PD-4885, PD-5097, PD-5100, PD-5131, PD-5080 ([dc67b1c](https://github.com/pie-framework/pie-elements/commit/dc67b1c735b2adb60943e5d145e739ce4e39a428))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [10.4.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.4.10...@pie-element/ebsr-configure@10.4.11) (2025-07-03)
7
24
 
8
25
  **Note:** Version bump only for package @pie-element/ebsr-configure
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr-configure",
3
3
  "private": true,
4
- "version": "10.4.11",
4
+ "version": "10.5.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "author": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
- "@pie-element/multiple-choice": "^9.17.0",
11
+ "@pie-element/multiple-choice": "^9.18.0",
12
12
  "@pie-framework/pie-configure-events": "^1.2.0",
13
- "@pie-lib/pie-toolbox": "2.20.0",
13
+ "@pie-lib/pie-toolbox": "2.22.0",
14
14
  "lodash": "^4.17.15",
15
15
  "prop-types": "^15.6.2",
16
16
  "react": "^16.8.1",
@@ -3,6 +3,23 @@
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.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-controller@8.2.10...@pie-element/ebsr-controller@8.3.0) (2025-07-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-363 ([10ce402](https://github.com/pie-framework/pie-elements/commit/10ce402bcb1c0c9c24dfc9ecff2e13c4de14a753))
12
+
13
+
14
+ ### Features
15
+
16
+ * update pie-lib/pie toolbox PD-5082, PD-5081, PD-3797, PD-5083, revert PD-363, PD-653 ([9214466](https://github.com/pie-framework/pie-elements/commit/92144667464f18c213c7ab1d769595e43b553dab))
17
+ * update pie-lib/pie-toolbox PD-5082, PD-5081, PD-3797, PD-5083, PD-4885, PD-5097, PD-5100, PD-5131, PD-5080 ([dc67b1c](https://github.com/pie-framework/pie-elements/commit/dc67b1c735b2adb60943e5d145e739ce4e39a428))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [8.2.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-controller@8.2.9...@pie-element/ebsr-controller@8.2.10) (2025-06-27)
7
24
 
8
25
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr-controller",
3
3
  "private": true,
4
- "version": "8.2.10",
4
+ "version": "8.3.0",
5
5
  "description": "",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "2.20.0",
10
+ "@pie-lib/pie-toolbox": "2.22.0",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -1,6 +1,6 @@
1
- import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.1.4/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.3.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@8.1.1/module/index.js";
3
+ import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@8.3.0/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;
@@ -6203,8 +6203,16 @@ var _default = {
6203
6203
  },
6204
6204
  charting: {
6205
6205
  addCategory: 'Add category',
6206
+ actions: 'Actions',
6207
+ add: 'Add',
6208
+ "delete": 'Delete',
6206
6209
  newLabel: 'New label',
6207
- reachedLimit_other: "There can't be more than {{count}} categories."
6210
+ reachedLimit_other: "There can't be more than {{count}} categories.",
6211
+ keyLegend: {
6212
+ incorrectAnswer: 'Student incorrect answer',
6213
+ correctAnswer: 'Student correct answer',
6214
+ correctKeyAnswer: 'Answer key correct'
6215
+ }
6208
6216
  },
6209
6217
  graphing: {
6210
6218
  point: 'Point',
@@ -6233,9 +6241,10 @@ var _default = {
6233
6241
  minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
6234
6242
  },
6235
6243
  selectText: {
6236
- correctAnswerSelected: 'Correct answer selected',
6237
- correctAnswerNotSelected: 'Correct answer not selected',
6238
- incorrectSelection: 'Incorrect selection'
6244
+ correctAnswerSelected: 'Correct',
6245
+ correctAnswerNotSelected: 'Correct Answer Not Selected',
6246
+ incorrectSelection: 'Incorrect Selection',
6247
+ key: 'Key'
6239
6248
  }
6240
6249
  },
6241
6250
  common: {
@@ -6300,8 +6309,16 @@ var _default = {
6300
6309
  },
6301
6310
  charting: {
6302
6311
  addCategory: 'Añadir categoría',
6312
+ actions: 'Acciones',
6313
+ add: 'Añadir',
6314
+ "delete": 'Eliminar',
6303
6315
  newLabel: 'Nueva etiqueta',
6304
- reachedLimit_other: 'No puede haber más de {{count}} categorías.'
6316
+ reachedLimit_other: 'No puede haber más de {{count}} categorías.',
6317
+ keyLegend: {
6318
+ incorrectAnswer: 'Respuesta incorrecta del estudiante',
6319
+ correctAnswer: 'Respuesta correcta del estudiante',
6320
+ correctKeyAnswer: 'Clave de respuesta correcta'
6321
+ }
6305
6322
  },
6306
6323
  graphing: {
6307
6324
  point: 'Punto',
@@ -6330,9 +6347,10 @@ var _default = {
6330
6347
  minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
6331
6348
  },
6332
6349
  selectText: {
6333
- correctAnswerSelected: 'Respuesta correcta seleccionada',
6334
- correctAnswerNotSelected: 'Respuesta correcta no seleccionada',
6335
- incorrectSelection: 'Selección incorrecta'
6350
+ correctAnswerSelected: 'Respuesta Correcta',
6351
+ correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',
6352
+ incorrectSelection: 'Selección Incorrecta',
6353
+ key: 'Clave'
6336
6354
  }
6337
6355
  },
6338
6356
  common: {
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.1.4/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@8.1.1/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.3.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@8.3.0/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;
@@ -8471,8 +8471,16 @@ var en = {};
8471
8471
  },
8472
8472
  charting: {
8473
8473
  addCategory: 'Add category',
8474
+ actions: 'Actions',
8475
+ add: 'Add',
8476
+ "delete": 'Delete',
8474
8477
  newLabel: 'New label',
8475
- reachedLimit_other: "There can't be more than {{count}} categories."
8478
+ reachedLimit_other: "There can't be more than {{count}} categories.",
8479
+ keyLegend: {
8480
+ incorrectAnswer: 'Student incorrect answer',
8481
+ correctAnswer: 'Student correct answer',
8482
+ correctKeyAnswer: 'Answer key correct'
8483
+ }
8476
8484
  },
8477
8485
  graphing: {
8478
8486
  point: 'Point',
@@ -8501,9 +8509,10 @@ var en = {};
8501
8509
  minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
8502
8510
  },
8503
8511
  selectText: {
8504
- correctAnswerSelected: 'Correct answer selected',
8505
- correctAnswerNotSelected: 'Correct answer not selected',
8506
- incorrectSelection: 'Incorrect selection'
8512
+ correctAnswerSelected: 'Correct',
8513
+ correctAnswerNotSelected: 'Correct Answer Not Selected',
8514
+ incorrectSelection: 'Incorrect Selection',
8515
+ key: 'Key'
8507
8516
  }
8508
8517
  },
8509
8518
  common: {
@@ -8565,8 +8574,16 @@ var es = {};
8565
8574
  },
8566
8575
  charting: {
8567
8576
  addCategory: 'Añadir categoría',
8577
+ actions: 'Acciones',
8578
+ add: 'Añadir',
8579
+ "delete": 'Eliminar',
8568
8580
  newLabel: 'Nueva etiqueta',
8569
- reachedLimit_other: 'No puede haber más de {{count}} categorías.'
8581
+ reachedLimit_other: 'No puede haber más de {{count}} categorías.',
8582
+ keyLegend: {
8583
+ incorrectAnswer: 'Respuesta incorrecta del estudiante',
8584
+ correctAnswer: 'Respuesta correcta del estudiante',
8585
+ correctKeyAnswer: 'Clave de respuesta correcta'
8586
+ }
8570
8587
  },
8571
8588
  graphing: {
8572
8589
  point: 'Punto',
@@ -8595,9 +8612,10 @@ var es = {};
8595
8612
  minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
8596
8613
  },
8597
8614
  selectText: {
8598
- correctAnswerSelected: 'Respuesta correcta seleccionada',
8599
- correctAnswerNotSelected: 'Respuesta correcta no seleccionada',
8600
- incorrectSelection: 'Selección incorrecta'
8615
+ correctAnswerSelected: 'Respuesta Correcta',
8616
+ correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',
8617
+ incorrectSelection: 'Selección Incorrecta',
8618
+ key: 'Clave'
8601
8619
  }
8602
8620
  },
8603
8621
  common: {
@@ -12885,14 +12903,14 @@ class MultipleChoice$1 extends React$2.Component {
12885
12903
  if (mode !== 'gather') {
12886
12904
  return null;
12887
12905
  }
12888
- return choiceMode === 'radio' ? React$2.createElement('h2', {
12906
+ return choiceMode === 'radio' ? React$2.createElement('h3', {
12889
12907
  className: classes.srOnly,
12890
12908
  __self: this,
12891
12909
  __source: {
12892
12910
  fileName: _jsxFileName$1,
12893
12911
  lineNumber: 220
12894
12912
  }
12895
- }, "Multiple Choice Question") : React$2.createElement('h2', {
12913
+ }, "Multiple Choice Question") : React$2.createElement('h3', {
12896
12914
  className: classes.srOnly,
12897
12915
  __self: this,
12898
12916
  __source: {
@@ -12908,8 +12926,10 @@ class MultipleChoice$1 extends React$2.Component {
12908
12926
  if (fieldset.contains(activeEl) && activeEl !== fieldset) {
12909
12927
  return;
12910
12928
  }
12911
- if (_optionalChain$2([this, 'access', _3 => _3.firstInputRef, 'optionalAccess', _4 => _4.current])) {
12912
- this.firstInputRef.current.focus();
12929
+ if (!e.relatedTarget || fieldset.compareDocumentPosition(e.relatedTarget) & Node.DOCUMENT_POSITION_PRECEDING) {
12930
+ if (_optionalChain$2([this, 'access', _3 => _3.firstInputRef, 'optionalAccess', _4 => _4.current])) {
12931
+ this.firstInputRef.current.focus();
12932
+ }
12913
12933
  }
12914
12934
  };
12915
12935
  }
@@ -12930,7 +12950,7 @@ class MultipleChoice$1 extends React$2.Component {
12930
12950
  __self: this,
12931
12951
  __source: {
12932
12952
  fileName: _jsxFileName$1,
12933
- lineNumber: 269
12953
+ lineNumber: 272
12934
12954
  }
12935
12955
  });
12936
12956
  const getMultipleChoiceMinSelectionErrorMessage = () => {
@@ -12958,21 +12978,21 @@ class MultipleChoice$1 extends React$2.Component {
12958
12978
  __self: this,
12959
12979
  __source: {
12960
12980
  fileName: _jsxFileName$1,
12961
- lineNumber: 296
12981
+ lineNumber: 299
12962
12982
  }
12963
- }, partLabel && React$2.createElement('h3', {
12983
+ }, partLabel && React$2.createElement('h2', {
12964
12984
  className: classes.partLabel,
12965
12985
  __self: this,
12966
12986
  __source: {
12967
12987
  fileName: _jsxFileName$1,
12968
- lineNumber: 297
12988
+ lineNumber: 300
12969
12989
  }
12970
12990
  }, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
12971
12991
  className: classes.teacherInstructions,
12972
12992
  __self: this,
12973
12993
  __source: {
12974
12994
  fileName: _jsxFileName$1,
12975
- lineNumber: 302
12995
+ lineNumber: 305
12976
12996
  }
12977
12997
  }, !animationsDisabled ? React$2.createElement(Collapsible, {
12978
12998
  labels: {
@@ -12982,7 +13002,7 @@ class MultipleChoice$1 extends React$2.Component {
12982
13002
  __self: this,
12983
13003
  __source: {
12984
13004
  fileName: _jsxFileName$1,
12985
- lineNumber: 304
13005
+ lineNumber: 307
12986
13006
  }
12987
13007
  }, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
12988
13008
  tabIndex: 0,
@@ -12992,7 +13012,7 @@ class MultipleChoice$1 extends React$2.Component {
12992
13012
  __self: this,
12993
13013
  __source: {
12994
13014
  fileName: _jsxFileName$1,
12995
- lineNumber: 318
13015
+ lineNumber: 321
12996
13016
  }
12997
13017
  }, React$2.createElement(PreviewPrompt, {
12998
13018
  className: "prompt",
@@ -13004,7 +13024,7 @@ class MultipleChoice$1 extends React$2.Component {
13004
13024
  __self: this,
13005
13025
  __source: {
13006
13026
  fileName: _jsxFileName$1,
13007
- lineNumber: 324
13027
+ lineNumber: 327
13008
13028
  }
13009
13029
  }), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
13010
13030
  show: showCorrectAnswerToggle,
@@ -13014,7 +13034,7 @@ class MultipleChoice$1 extends React$2.Component {
13014
13034
  __self: this,
13015
13035
  __source: {
13016
13036
  fileName: _jsxFileName$1,
13017
- lineNumber: 334
13037
+ lineNumber: 337
13018
13038
  }
13019
13039
  }), React$2.createElement('div', {
13020
13040
  className: classNames({
@@ -13025,7 +13045,7 @@ class MultipleChoice$1 extends React$2.Component {
13025
13045
  __self: this,
13026
13046
  __source: {
13027
13047
  fileName: _jsxFileName$1,
13028
- lineNumber: 342
13048
+ lineNumber: 345
13029
13049
  }
13030
13050
  }, choices.map((choice, index) => React$2.createElement(StyledChoice, {
13031
13051
  autoFocusRef: index === 0 ? this.firstInputRef : null,
@@ -13050,21 +13070,21 @@ class MultipleChoice$1 extends React$2.Component {
13050
13070
  __self: this,
13051
13071
  __source: {
13052
13072
  fileName: _jsxFileName$1,
13053
- lineNumber: 350
13073
+ lineNumber: 353
13054
13074
  }
13055
13075
  })))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
13056
13076
  className: classes.errorText,
13057
13077
  __self: this,
13058
13078
  __source: {
13059
13079
  fileName: _jsxFileName$1,
13060
- lineNumber: 376
13080
+ lineNumber: 379
13061
13081
  }
13062
13082
  }, getMultipleChoiceMinSelectionErrorMessage()), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
13063
13083
  className: classes.errorText,
13064
13084
  __self: this,
13065
13085
  __source: {
13066
13086
  fileName: _jsxFileName$1,
13067
- lineNumber: 379
13087
+ lineNumber: 382
13068
13088
  }
13069
13089
  }, translator.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
13070
13090
  lng: language,
@@ -4,11 +4,11 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "5.1.4"
7
+ "version": "5.3.0"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "8.1.1"
11
+ "version": "8.3.0"
12
12
  }
13
13
  ]
14
14
  }
package/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.1.4/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@8.1.1/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.3.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@8.3.0/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;
@@ -8434,8 +8434,16 @@ var en = {};
8434
8434
  },
8435
8435
  charting: {
8436
8436
  addCategory: 'Add category',
8437
+ actions: 'Actions',
8438
+ add: 'Add',
8439
+ "delete": 'Delete',
8437
8440
  newLabel: 'New label',
8438
- reachedLimit_other: "There can't be more than {{count}} categories."
8441
+ reachedLimit_other: "There can't be more than {{count}} categories.",
8442
+ keyLegend: {
8443
+ incorrectAnswer: 'Student incorrect answer',
8444
+ correctAnswer: 'Student correct answer',
8445
+ correctKeyAnswer: 'Answer key correct'
8446
+ }
8439
8447
  },
8440
8448
  graphing: {
8441
8449
  point: 'Point',
@@ -8464,9 +8472,10 @@ var en = {};
8464
8472
  minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
8465
8473
  },
8466
8474
  selectText: {
8467
- correctAnswerSelected: 'Correct answer selected',
8468
- correctAnswerNotSelected: 'Correct answer not selected',
8469
- incorrectSelection: 'Incorrect selection'
8475
+ correctAnswerSelected: 'Correct',
8476
+ correctAnswerNotSelected: 'Correct Answer Not Selected',
8477
+ incorrectSelection: 'Incorrect Selection',
8478
+ key: 'Key'
8470
8479
  }
8471
8480
  },
8472
8481
  common: {
@@ -8528,8 +8537,16 @@ var es = {};
8528
8537
  },
8529
8538
  charting: {
8530
8539
  addCategory: 'Añadir categoría',
8540
+ actions: 'Acciones',
8541
+ add: 'Añadir',
8542
+ "delete": 'Eliminar',
8531
8543
  newLabel: 'Nueva etiqueta',
8532
- reachedLimit_other: 'No puede haber más de {{count}} categorías.'
8544
+ reachedLimit_other: 'No puede haber más de {{count}} categorías.',
8545
+ keyLegend: {
8546
+ incorrectAnswer: 'Respuesta incorrecta del estudiante',
8547
+ correctAnswer: 'Respuesta correcta del estudiante',
8548
+ correctKeyAnswer: 'Clave de respuesta correcta'
8549
+ }
8533
8550
  },
8534
8551
  graphing: {
8535
8552
  point: 'Punto',
@@ -8558,9 +8575,10 @@ var es = {};
8558
8575
  minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
8559
8576
  },
8560
8577
  selectText: {
8561
- correctAnswerSelected: 'Respuesta correcta seleccionada',
8562
- correctAnswerNotSelected: 'Respuesta correcta no seleccionada',
8563
- incorrectSelection: 'Selección incorrecta'
8578
+ correctAnswerSelected: 'Respuesta Correcta',
8579
+ correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',
8580
+ incorrectSelection: 'Selección Incorrecta',
8581
+ key: 'Clave'
8564
8582
  }
8565
8583
  },
8566
8584
  common: {
@@ -12848,14 +12866,14 @@ class MultipleChoice$1 extends React$2.Component {
12848
12866
  if (mode !== 'gather') {
12849
12867
  return null;
12850
12868
  }
12851
- return choiceMode === 'radio' ? React$2.createElement('h2', {
12869
+ return choiceMode === 'radio' ? React$2.createElement('h3', {
12852
12870
  className: classes.srOnly,
12853
12871
  __self: this,
12854
12872
  __source: {
12855
12873
  fileName: _jsxFileName$1,
12856
12874
  lineNumber: 220
12857
12875
  }
12858
- }, "Multiple Choice Question") : React$2.createElement('h2', {
12876
+ }, "Multiple Choice Question") : React$2.createElement('h3', {
12859
12877
  className: classes.srOnly,
12860
12878
  __self: this,
12861
12879
  __source: {
@@ -12871,8 +12889,10 @@ class MultipleChoice$1 extends React$2.Component {
12871
12889
  if (fieldset.contains(activeEl) && activeEl !== fieldset) {
12872
12890
  return;
12873
12891
  }
12874
- if (_optionalChain$1([this, 'access', _3 => _3.firstInputRef, 'optionalAccess', _4 => _4.current])) {
12875
- this.firstInputRef.current.focus();
12892
+ if (!e.relatedTarget || fieldset.compareDocumentPosition(e.relatedTarget) & Node.DOCUMENT_POSITION_PRECEDING) {
12893
+ if (_optionalChain$1([this, 'access', _3 => _3.firstInputRef, 'optionalAccess', _4 => _4.current])) {
12894
+ this.firstInputRef.current.focus();
12895
+ }
12876
12896
  }
12877
12897
  };
12878
12898
  }
@@ -12893,7 +12913,7 @@ class MultipleChoice$1 extends React$2.Component {
12893
12913
  __self: this,
12894
12914
  __source: {
12895
12915
  fileName: _jsxFileName$1,
12896
- lineNumber: 269
12916
+ lineNumber: 272
12897
12917
  }
12898
12918
  });
12899
12919
  const getMultipleChoiceMinSelectionErrorMessage = () => {
@@ -12921,21 +12941,21 @@ class MultipleChoice$1 extends React$2.Component {
12921
12941
  __self: this,
12922
12942
  __source: {
12923
12943
  fileName: _jsxFileName$1,
12924
- lineNumber: 296
12944
+ lineNumber: 299
12925
12945
  }
12926
- }, partLabel && React$2.createElement('h3', {
12946
+ }, partLabel && React$2.createElement('h2', {
12927
12947
  className: classes.partLabel,
12928
12948
  __self: this,
12929
12949
  __source: {
12930
12950
  fileName: _jsxFileName$1,
12931
- lineNumber: 297
12951
+ lineNumber: 300
12932
12952
  }
12933
12953
  }, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
12934
12954
  className: classes.teacherInstructions,
12935
12955
  __self: this,
12936
12956
  __source: {
12937
12957
  fileName: _jsxFileName$1,
12938
- lineNumber: 302
12958
+ lineNumber: 305
12939
12959
  }
12940
12960
  }, !animationsDisabled ? React$2.createElement(Collapsible, {
12941
12961
  labels: {
@@ -12945,7 +12965,7 @@ class MultipleChoice$1 extends React$2.Component {
12945
12965
  __self: this,
12946
12966
  __source: {
12947
12967
  fileName: _jsxFileName$1,
12948
- lineNumber: 304
12968
+ lineNumber: 307
12949
12969
  }
12950
12970
  }, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
12951
12971
  tabIndex: 0,
@@ -12955,7 +12975,7 @@ class MultipleChoice$1 extends React$2.Component {
12955
12975
  __self: this,
12956
12976
  __source: {
12957
12977
  fileName: _jsxFileName$1,
12958
- lineNumber: 318
12978
+ lineNumber: 321
12959
12979
  }
12960
12980
  }, React$2.createElement(PreviewPrompt, {
12961
12981
  className: "prompt",
@@ -12967,7 +12987,7 @@ class MultipleChoice$1 extends React$2.Component {
12967
12987
  __self: this,
12968
12988
  __source: {
12969
12989
  fileName: _jsxFileName$1,
12970
- lineNumber: 324
12990
+ lineNumber: 327
12971
12991
  }
12972
12992
  }), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
12973
12993
  show: showCorrectAnswerToggle,
@@ -12977,7 +12997,7 @@ class MultipleChoice$1 extends React$2.Component {
12977
12997
  __self: this,
12978
12998
  __source: {
12979
12999
  fileName: _jsxFileName$1,
12980
- lineNumber: 334
13000
+ lineNumber: 337
12981
13001
  }
12982
13002
  }), React$2.createElement('div', {
12983
13003
  className: classNames({
@@ -12988,7 +13008,7 @@ class MultipleChoice$1 extends React$2.Component {
12988
13008
  __self: this,
12989
13009
  __source: {
12990
13010
  fileName: _jsxFileName$1,
12991
- lineNumber: 342
13011
+ lineNumber: 345
12992
13012
  }
12993
13013
  }, choices.map((choice, index) => React$2.createElement(StyledChoice, {
12994
13014
  autoFocusRef: index === 0 ? this.firstInputRef : null,
@@ -13013,21 +13033,21 @@ class MultipleChoice$1 extends React$2.Component {
13013
13033
  __self: this,
13014
13034
  __source: {
13015
13035
  fileName: _jsxFileName$1,
13016
- lineNumber: 350
13036
+ lineNumber: 353
13017
13037
  }
13018
13038
  })))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
13019
13039
  className: classes.errorText,
13020
13040
  __self: this,
13021
13041
  __source: {
13022
13042
  fileName: _jsxFileName$1,
13023
- lineNumber: 376
13043
+ lineNumber: 379
13024
13044
  }
13025
13045
  }, getMultipleChoiceMinSelectionErrorMessage()), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
13026
13046
  className: classes.errorText,
13027
13047
  __self: this,
13028
13048
  __source: {
13029
13049
  fileName: _jsxFileName$1,
13030
- lineNumber: 379
13050
+ lineNumber: 382
13031
13051
  }
13032
13052
  }, translator$1.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
13033
13053
  lng: language,
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.5.12-next.5+d97e157ba",
3
+ "version": "10.6.0",
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.17.1-next.5+d97e157ba",
10
+ "@pie-element/multiple-choice": "^9.18.0",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
- "@pie-lib/pie-toolbox": "2.20.0",
12
+ "@pie-lib/pie-toolbox": "2.22.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": "d97e157bac69c61c41989fc98b37e27f1bdd78c8",
19
+ "gitHead": "dd63ede533364a1b0ff314c56027404314877feb",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },