@citolab/qti-components 8.1.0 → 8.2.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/cdn/index.global.js +1 -1
- package/cdn/index.js +274 -168
- package/dist/base.d.ts +5 -5
- package/dist/base.js +1 -1
- package/dist/{chunk-IXPDMYKH.js → chunk-43XBJ47H.js} +3 -3
- package/dist/{chunk-EKXZI26R.js → chunk-7D3NKAGZ.js} +54 -3
- package/dist/chunk-7D3NKAGZ.js.map +1 -0
- package/dist/{chunk-Q52IJELT.js → chunk-CRLXQZFA.js} +594 -259
- package/dist/chunk-CRLXQZFA.js.map +1 -0
- package/dist/{chunk-TXIB3SKC.js → chunk-LMGJOBJA.js} +3 -3
- package/dist/{chunk-6V3A7NQP.js → chunk-M7K5C522.js} +2 -2
- package/dist/{chunk-CF3DXJWM.js → chunk-OIUK5BFU.js} +22 -6
- package/dist/{chunk-CF3DXJWM.js.map → chunk-OIUK5BFU.js.map} +1 -1
- package/dist/{chunk-MK2I3MQB.js → chunk-OVBG223G.js} +4 -5
- package/dist/{chunk-MK2I3MQB.js.map → chunk-OVBG223G.js.map} +1 -1
- package/dist/{chunk-4XR2JHCP.js → chunk-Q6ZK4LRH.js} +26 -2
- package/dist/chunk-Q6ZK4LRH.js.map +1 -0
- package/dist/chunk-TLTYXWW7.js +7 -0
- package/dist/chunk-TLTYXWW7.js.map +1 -0
- package/dist/{chunk-3IACYIU2.js → chunk-U7YCXDYC.js} +2 -2
- package/dist/{chunk-NZLW6EX7.js → chunk-UC3T3NI3.js} +2 -2
- package/dist/{chunk-6XJUP55A.js → chunk-YLRMOX6C.js} +3 -3
- package/dist/chunk-YLRMOX6C.js.map +1 -0
- package/dist/{computed.types.d-DpKIYO6e.d.ts → computed.types.d-CJarqC6s.d.ts} +12 -0
- package/dist/corrections.d.ts +14 -4
- package/dist/corrections.js +7 -7
- package/dist/elements.d.ts +1 -1
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +14 -12
- package/dist/interactions.js +3 -3
- package/dist/item.css +81 -0
- package/dist/item.d.ts +1 -1
- package/dist/item.js +4 -4
- package/dist/loader.d.ts +1 -1
- package/dist/processing.d.ts +3 -3
- package/dist/processing.js +2 -2
- package/dist/qti-components-jsx.d.ts +7704 -7127
- package/dist/{qti-condition-expression.d-aMvBvpc6.d.ts → qti-condition-expression.d-CYwXOUb1.d.ts} +1 -1
- package/dist/{qti-expression.d-BietT_8b.d.ts → qti-expression.d-B_-m9emA.d.ts} +11 -1
- package/dist/{qti-feedback.d-DZbad0RN.d.ts → qti-feedback.d-B1EIF-fU.d.ts} +1 -0
- package/dist/{qti-test.d-_YAlhDbt.d.ts → qti-test.d-C6lCEMRB.d.ts} +38 -3
- package/dist/test.d.ts +5 -5
- package/dist/test.js +7 -5
- package/package.json +9 -9
- package/dist/chunk-4XR2JHCP.js.map +0 -1
- package/dist/chunk-6XJUP55A.js.map +0 -1
- package/dist/chunk-EKXZI26R.js.map +0 -1
- package/dist/chunk-IYC7LZV6.js +0 -7
- package/dist/chunk-IYC7LZV6.js.map +0 -1
- package/dist/chunk-Q52IJELT.js.map +0 -1
- /package/dist/{chunk-IXPDMYKH.js.map → chunk-43XBJ47H.js.map} +0 -0
- /package/dist/{chunk-TXIB3SKC.js.map → chunk-LMGJOBJA.js.map} +0 -0
- /package/dist/{chunk-6V3A7NQP.js.map → chunk-M7K5C522.js.map} +0 -0
- /package/dist/{chunk-3IACYIU2.js.map → chunk-U7YCXDYC.js.map} +0 -0
- /package/dist/{chunk-NZLW6EX7.js.map → chunk-UC3T3NI3.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
item_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TLTYXWW7.js";
|
|
4
4
|
import {
|
|
5
5
|
watch
|
|
6
6
|
} from "./chunk-4DB4SC5K.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
computedItemContext,
|
|
12
12
|
configContext,
|
|
13
13
|
qtiContext
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7D3NKAGZ.js";
|
|
15
15
|
|
|
16
16
|
// ../qti-item/dist/components/item-container/item-container.js
|
|
17
17
|
import { consume } from "@lit/context";
|
|
@@ -292,4 +292,4 @@ export {
|
|
|
292
292
|
QtiItem,
|
|
293
293
|
qtiItemElements
|
|
294
294
|
};
|
|
295
|
-
//# sourceMappingURL=chunk-
|
|
295
|
+
//# sourceMappingURL=chunk-LMGJOBJA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
qtiItemElements
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LMGJOBJA.js";
|
|
4
4
|
|
|
5
5
|
// ../qti-item/dist/register.js
|
|
6
6
|
for (const { tag, ctor } of qtiItemElements) {
|
|
@@ -8,4 +8,4 @@ for (const { tag, ctor } of qtiItemElements) {
|
|
|
8
8
|
customElements.define(tag, ctor);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-M7K5C522.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
QtiTest,
|
|
3
3
|
TestCheckItem,
|
|
4
4
|
TestNavigation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CRLXQZFA.js";
|
|
6
6
|
import {
|
|
7
7
|
QtiAssessmentItem
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YLRMOX6C.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-
|
|
31
|
+
} from "./chunk-Q6ZK4LRH.js";
|
|
32
32
|
import {
|
|
33
33
|
QtiItem
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LMGJOBJA.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-
|
|
44
|
+
} from "./chunk-7D3NKAGZ.js";
|
|
45
45
|
|
|
46
46
|
// ../qti-corrections/dist/mixins/correct-response.mixin.js
|
|
47
47
|
import { property, state } from "lit/decorators.js";
|
|
@@ -592,6 +592,22 @@ var TestNavigationCorrection = class extends TestNavigation {
|
|
|
592
592
|
this.removeEventListener("test-show-candidate-correction", this.#onShowCandidateCorrection);
|
|
593
593
|
super.disconnectedCallback();
|
|
594
594
|
}
|
|
595
|
+
/**
|
|
596
|
+
* Reflect correctness back to the candidate after an ended attempt, for items
|
|
597
|
+
* the assessment opted in via the standard `qti-item-session-control
|
|
598
|
+
* show-solution` (QTI 3.0 ItemSessionControl.show-solution) — the player takes
|
|
599
|
+
* no opinion of its own:
|
|
600
|
+
* - candidate correction (a mark on the learner's selection) after every attempt;
|
|
601
|
+
* - the correct response (a mark on the right answer) once the item is done —
|
|
602
|
+
* the candidate reached the optimal outcome, or ran out of attempts.
|
|
603
|
+
*/
|
|
604
|
+
afterAttemptEnded(assessmentItem, computedItem, done) {
|
|
605
|
+
if (!assessmentItem || !computedItem?.showSolution)
|
|
606
|
+
return;
|
|
607
|
+
const correctable = assessmentItem;
|
|
608
|
+
correctable.showCandidateCorrection?.(true);
|
|
609
|
+
correctable.showCorrectResponse?.(done);
|
|
610
|
+
}
|
|
595
611
|
};
|
|
596
612
|
var QtiTestCorrection = class extends QtiTest {
|
|
597
613
|
updateAssessmentItemView(assessmentItem, view) {
|
|
@@ -1631,4 +1647,4 @@ export {
|
|
|
1631
1647
|
QtiSliderInteractionCorrection,
|
|
1632
1648
|
QtiTextEntryInteractionCorrection
|
|
1633
1649
|
};
|
|
1634
|
-
//# sourceMappingURL=chunk-
|
|
1650
|
+
//# sourceMappingURL=chunk-OIUK5BFU.js.map
|