@citolab/qti-components 9.1.0 → 9.3.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.
Files changed (75) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +338 -213
  3. package/dist/base.d.ts +54 -11
  4. package/dist/base.js +11 -1
  5. package/dist/{chunk-XYQNTF5B.js → chunk-7VDR765S.js} +2 -2
  6. package/dist/{chunk-XE7BALDO.js → chunk-A32YH4H5.js} +2 -2
  7. package/dist/{chunk-XE7BALDO.js.map → chunk-A32YH4H5.js.map} +1 -1
  8. package/dist/{chunk-5SU3MP6Y.js → chunk-CQHGVPOT.js} +20 -6
  9. package/dist/{chunk-5SU3MP6Y.js.map → chunk-CQHGVPOT.js.map} +1 -1
  10. package/dist/{chunk-MKZ374OJ.js → chunk-FG5JAWSN.js} +2 -2
  11. package/dist/{chunk-3VQSUWCK.js → chunk-G5RQ5GKG.js} +407 -131
  12. package/dist/chunk-G5RQ5GKG.js.map +1 -0
  13. package/dist/{chunk-5BXJRO5O.js → chunk-JGPWBIVD.js} +389 -229
  14. package/dist/chunk-JGPWBIVD.js.map +1 -0
  15. package/dist/{chunk-RT6WZ3P7.js → chunk-JLZCZVRX.js} +2 -2
  16. package/dist/{chunk-6ITD55QE.js → chunk-LFVPS7KB.js} +2 -2
  17. package/dist/{chunk-DAUU2NJL.js → chunk-RAJQKCQ3.js} +66 -9
  18. package/dist/chunk-RAJQKCQ3.js.map +1 -0
  19. package/dist/{chunk-WKWCOV5P.js → chunk-REKCRWJV.js} +83 -21
  20. package/dist/chunk-REKCRWJV.js.map +1 -0
  21. package/dist/{chunk-QCPN7E6K.js → chunk-TDWLV5OD.js} +3767 -3271
  22. package/dist/chunk-TDWLV5OD.js.map +1 -0
  23. package/dist/{chunk-HDEG6BAZ.js → chunk-TLAVOBEM.js} +16 -8
  24. package/dist/chunk-TLAVOBEM.js.map +1 -0
  25. package/dist/{chunk-LDY4C2OT.js → chunk-YIYHCHHM.js} +2 -2
  26. package/dist/{chunk-WCWJPIUQ.js → chunk-YVZWNLF4.js} +191 -52
  27. package/dist/chunk-YVZWNLF4.js.map +1 -0
  28. package/dist/{chunk-KCK27QBP.js → chunk-ZG7FBQFP.js} +2 -2
  29. package/dist/{computed.types.d-CJarqC6s.d.ts → computed.types.d-DB5gfOh9.d.ts} +2 -16
  30. package/dist/corrections.d.ts +21 -10
  31. package/dist/corrections.js +20 -20
  32. package/dist/corrections.js.map +1 -1
  33. package/dist/elements.d.ts +43 -11
  34. package/dist/elements.js +4 -4
  35. package/dist/index.d.ts +14 -13
  36. package/dist/index.js +39 -15
  37. package/dist/{interaction.d-CJiMv8H7.d.ts → interaction.d-DegNJ5ZA.d.ts} +1 -1
  38. package/dist/interactions.d.ts +35 -35
  39. package/dist/interactions.js +3 -3
  40. package/dist/item.css +11 -2
  41. package/dist/item.d.ts +31 -82
  42. package/dist/item.js +7 -5
  43. package/dist/{item.types.d-QU7LljEK.d.ts → item.types.d-BDFrq19E.d.ts} +18 -2
  44. package/dist/loader.d.ts +3 -3
  45. package/dist/loader.js +2 -2
  46. package/dist/processing.d.ts +139 -20
  47. package/dist/processing.js +11 -3
  48. package/dist/qti-components-jsx.d.ts +2254 -132
  49. package/dist/{qti-condition-expression.d-CYwXOUb1.d.ts → qti-condition-expression.d-DLboq8bR.d.ts} +1 -1
  50. package/dist/{qti-expression.d-B_-m9emA.d.ts → qti-expression.d-BksT9iLB.d.ts} +26 -3
  51. package/dist/{qti-feedback.d-B1EIF-fU.d.ts → qti-feedback.d-D-w6-mJv.d.ts} +1 -1
  52. package/dist/qti-item.d-D_-9_0e6.d.ts +101 -0
  53. package/dist/qti-rule-base.d-Bdzg8eGH.d.ts +41 -0
  54. package/dist/{qti-test.d-C6lCEMRB.d.ts → qti-test.d-D-ELy0Mr.d.ts} +150 -20
  55. package/dist/{qti-text-entry-interaction.d-BGdfV9qG.d.ts → qti-text-entry-interaction.d-CATtcPyX.d.ts} +10 -9
  56. package/dist/session.context.d-Cjs0BkJB.d.ts +33 -0
  57. package/dist/test.d.ts +8 -8
  58. package/dist/test.js +10 -6
  59. package/dist/transformers.js +1 -1
  60. package/package.json +12 -11
  61. package/dist/chunk-3VQSUWCK.js.map +0 -1
  62. package/dist/chunk-5BXJRO5O.js.map +0 -1
  63. package/dist/chunk-DAUU2NJL.js.map +0 -1
  64. package/dist/chunk-HDEG6BAZ.js.map +0 -1
  65. package/dist/chunk-QCPN7E6K.js.map +0 -1
  66. package/dist/chunk-WCWJPIUQ.js.map +0 -1
  67. package/dist/chunk-WKWCOV5P.js.map +0 -1
  68. package/dist/computed-item.types.d-BKZdSLLJ.d.ts +0 -19
  69. package/dist/qti-rule-base.d-ajOnfGXY.d.ts +0 -16
  70. /package/dist/{chunk-XYQNTF5B.js.map → chunk-7VDR765S.js.map} +0 -0
  71. /package/dist/{chunk-MKZ374OJ.js.map → chunk-FG5JAWSN.js.map} +0 -0
  72. /package/dist/{chunk-RT6WZ3P7.js.map → chunk-JLZCZVRX.js.map} +0 -0
  73. /package/dist/{chunk-6ITD55QE.js.map → chunk-LFVPS7KB.js.map} +0 -0
  74. /package/dist/{chunk-LDY4C2OT.js.map → chunk-YIYHCHHM.js.map} +0 -0
  75. /package/dist/{chunk-KCK27QBP.js.map → chunk-ZG7FBQFP.js.map} +0 -0
@@ -2,10 +2,10 @@ import {
2
2
  QtiTest,
3
3
  TestCheckItem,
4
4
  TestNavigation
5
- } from "./chunk-QCPN7E6K.js";
5
+ } from "./chunk-TDWLV5OD.js";
6
6
  import {
7
7
  QtiAssessmentItem
8
- } from "./chunk-WKWCOV5P.js";
8
+ } from "./chunk-REKCRWJV.js";
9
9
  import {
10
10
  QtiAssociateInteraction,
11
11
  QtiChoiceInteraction,
@@ -28,10 +28,10 @@ import {
28
28
  QtiSimpleChoice,
29
29
  QtiSliderInteraction,
30
30
  QtiTextEntryInteraction
31
- } from "./chunk-5BXJRO5O.js";
31
+ } from "./chunk-JGPWBIVD.js";
32
32
  import {
33
33
  QtiItem
34
- } from "./chunk-DAUU2NJL.js";
34
+ } from "./chunk-RAJQKCQ3.js";
35
35
  import {
36
36
  watch
37
37
  } from "./chunk-4DB4SC5K.js";
@@ -41,7 +41,7 @@ import {
41
41
  computedItemContext,
42
42
  configContext,
43
43
  responseAttributeConverter
44
- } from "./chunk-WCWJPIUQ.js";
44
+ } from "./chunk-YVZWNLF4.js";
45
45
 
46
46
  // ../qti-corrections/dist/components/item-correct-response-mode/item-correct-response-mode.js
47
47
  import { html, LitElement } from "lit";
@@ -1544,6 +1544,20 @@ var QtiItemCorrection = class extends QtiItem {
1544
1544
  correctResponseMode: event.detail
1545
1545
  };
1546
1546
  };
1547
+ /**
1548
+ * Scorer view IS the answer key, the same pairing `QtiTestCorrection` makes at test level.
1549
+ * A marker switching to `scorer` to read the rubric would otherwise have to ask for the key
1550
+ * separately, and the two would drift apart.
1551
+ *
1552
+ * `scorer` alone because that is what the test side does — not because no other audience has
1553
+ * a use for a key. An author reviewing their own item plainly wants one, and arguably a tutor
1554
+ * does too. If that is ever granted it has to be granted in both places at once, or the same
1555
+ * item answers differently depending on whether it is delivered inside a test.
1556
+ */
1557
+ updateAssessmentItemView(assessmentItem, view) {
1558
+ assessmentItem?.showCorrectResponse?.(view === "scorer");
1559
+ this.updateControlState("item-show-correct-response", view === "scorer");
1560
+ }
1547
1561
  constructor() {
1548
1562
  super();
1549
1563
  this.addEventListener("item-show-correct-response", this.#onShowCorrectResponse);
@@ -1647,4 +1661,4 @@ export {
1647
1661
  QtiTestCorrection,
1648
1662
  TestCheckItemCorrection
1649
1663
  };
1650
- //# sourceMappingURL=chunk-5SU3MP6Y.js.map
1664
+ //# sourceMappingURL=chunk-CQHGVPOT.js.map