@citolab/qti-components 7.1.0 → 7.1.2
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/chunks/chunk-27WPPEWB.js +1 -0
- package/cdn/chunks/chunk-2HL3OFY7.js +1 -0
- package/cdn/chunks/chunk-33UT2QKP.js +5 -0
- package/cdn/chunks/chunk-3M3VWZCU.js +8 -0
- package/cdn/chunks/chunk-3QAOJL7Y.js +1007 -0
- package/cdn/chunks/chunk-3R4ZTZYA.js +5 -0
- package/cdn/chunks/chunk-6DWYLZ5E.js +5 -0
- package/cdn/chunks/chunk-6RVWXAM7.js +8 -0
- package/cdn/chunks/chunk-7HXSSTSU.js +1 -0
- package/cdn/chunks/chunk-7JXSJZV5.js +8 -0
- package/cdn/chunks/chunk-7QMIMK5V.js +5 -0
- package/cdn/chunks/chunk-7RLNGBXK.js +1 -0
- package/cdn/chunks/chunk-AHZ3W4YP.js +8 -0
- package/cdn/chunks/chunk-BGHD6LZP.js +1007 -0
- package/cdn/chunks/chunk-C73FEG6J.js +1 -0
- package/cdn/chunks/chunk-CFS5WXCD.js +1 -0
- package/cdn/chunks/chunk-CZDMOYYF.js +1 -0
- package/cdn/chunks/chunk-EBVKDAVL.js +5 -0
- package/cdn/chunks/chunk-EEFB2V7Q.js +27 -0
- package/cdn/chunks/chunk-ELZQC26E.js +5 -0
- package/cdn/chunks/chunk-EPOG3VSF.js +5 -0
- package/cdn/chunks/chunk-FDKTSUOQ.js +48 -0
- package/cdn/chunks/chunk-FJOHSSA3.js +1 -0
- package/cdn/chunks/chunk-G5YNM432.js +5 -0
- package/cdn/chunks/chunk-GIJVMMKY.js +1007 -0
- package/cdn/chunks/chunk-GNIERKRX.js +1007 -0
- package/cdn/chunks/chunk-GTHARXCW.js +10 -0
- package/cdn/chunks/chunk-IRLG6H7G.js +1 -0
- package/cdn/chunks/chunk-J3F2YSRA.js +1007 -0
- package/cdn/chunks/chunk-J4ISS5TZ.js +5 -0
- package/cdn/chunks/chunk-KBJYE746.js +5 -0
- package/cdn/chunks/chunk-KIH2VB5Z.js +1 -0
- package/cdn/chunks/chunk-KJJG5SSY.js +1 -0
- package/cdn/chunks/chunk-KLRM2GAU.js +8 -0
- package/cdn/chunks/chunk-KQT5S3DK.js +5 -0
- package/cdn/chunks/chunk-LDKKOMIK.js +3570 -0
- package/cdn/chunks/chunk-LDXZOGPY.js +10 -0
- package/cdn/chunks/chunk-LUVDXKE2.js +5 -0
- package/cdn/chunks/chunk-LZQKENA3.js +1 -0
- package/cdn/chunks/chunk-MGLK2Q6K.js +5 -0
- package/cdn/chunks/chunk-MK2CR5DP.js +1 -0
- package/cdn/chunks/chunk-N5JQAYOR.js +1 -0
- package/cdn/chunks/chunk-NJUBWVY3.js +10 -0
- package/cdn/chunks/chunk-NQKAQ6AU.js +1007 -0
- package/cdn/chunks/chunk-NW5VVFA5.js +5 -0
- package/cdn/chunks/chunk-OYUWBJSX.js +1 -0
- package/cdn/chunks/chunk-PBZODDGJ.js +1 -0
- package/cdn/chunks/chunk-PJFJOZNR.js +48 -0
- package/cdn/chunks/chunk-PMIMCEQ2.js +1 -0
- package/cdn/chunks/chunk-PYOOOJUP.js +3547 -0
- package/cdn/chunks/chunk-Q6HFDDZ4.js +1 -0
- package/cdn/chunks/chunk-QQR6POPY.js +1 -0
- package/cdn/chunks/chunk-QS2LH2IW.js +1007 -0
- package/cdn/chunks/chunk-QUFRWTHS.js +1 -0
- package/cdn/chunks/chunk-RJB5E47I.js +1 -0
- package/cdn/chunks/chunk-SFY52QPM.js +1 -0
- package/cdn/chunks/chunk-SUXBSENJ.js +48 -0
- package/cdn/chunks/chunk-SYO32O6X.js +1 -0
- package/cdn/chunks/chunk-TUWPPE7H.js +1 -0
- package/cdn/chunks/chunk-UHILPQTT.js +10 -0
- package/cdn/chunks/chunk-UOY4MCKX.js +6 -0
- package/cdn/chunks/chunk-VLCD4DFD.js +8 -0
- package/cdn/chunks/chunk-VRTU4ZV6.js +48 -0
- package/cdn/chunks/chunk-VXDODYB5.js +1007 -0
- package/cdn/chunks/chunk-W7GYEQJQ.js +1 -0
- package/cdn/chunks/chunk-WNI2D7SG.js +1 -0
- package/cdn/chunks/chunk-WNJ3YFMW.js +1 -0
- package/cdn/chunks/chunk-WRFAZSRX.js +1007 -0
- package/cdn/chunks/chunk-WTUTTA5R.js +1 -0
- package/cdn/chunks/chunk-WVVKSWZV.js +5 -0
- package/cdn/chunks/chunk-WXFIEBQR.js +0 -0
- package/cdn/chunks/chunk-X75XIXUI.js +10 -0
- package/cdn/chunks/chunk-XPI6OOWN.js +27 -0
- package/cdn/chunks/chunk-YBPCVJIX.js +10 -0
- package/cdn/chunks/chunk-YTSCJPU2.js +1007 -0
- package/cdn/chunks/chunk-YZQZGOYM.js +1 -0
- package/cdn/chunks/chunk-ZHVOZ7WZ.js +1007 -0
- package/cdn/exports/session.context.js +1 -1
- package/cdn/exports/test.context.js +1 -1
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +1 -1
- package/cdn/qti-components/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/test-navigation.js +1 -1
- package/cdn/qti-test/components/test-print-context.js +1 -0
- package/cdn/qti-test/components/test-print-item-variables copy.js +1 -0
- package/cdn/qti-test/components/test-print-item-variables.js +1 -1
- package/cdn/qti-test/components/test-print-item-variables.stories copy.js +233 -0
- package/cdn/qti-test/components/test-print-test-context.js +1 -0
- package/cdn/qti-test/components/test-view.js +1 -1
- package/cdn/qti-test/core/index.js +1 -1
- package/dist/chunks/chunk-2BVFKYAB.js +659 -0
- package/dist/chunks/chunk-2BVFKYAB.js.map +1 -0
- package/dist/chunks/chunk-2RXVRB7Z.js +659 -0
- package/dist/chunks/chunk-2RXVRB7Z.js.map +1 -0
- package/dist/chunks/chunk-2ZTRBYHP.js +660 -0
- package/dist/chunks/chunk-2ZTRBYHP.js.map +1 -0
- package/dist/chunks/chunk-36LEJZEY.js +87 -0
- package/dist/chunks/chunk-36LEJZEY.js.map +1 -0
- package/dist/chunks/chunk-373M5NVS.js +62 -0
- package/dist/chunks/chunk-373M5NVS.js.map +1 -0
- package/dist/chunks/chunk-3DEV5ARX.js +89 -0
- package/dist/chunks/chunk-3DEV5ARX.js.map +1 -0
- package/dist/chunks/chunk-3GCBMXXY.js +62 -0
- package/dist/chunks/chunk-3GCBMXXY.js.map +1 -0
- package/dist/chunks/chunk-3NH5KOQ4.js +89 -0
- package/dist/chunks/chunk-3NH5KOQ4.js.map +1 -0
- package/dist/chunks/chunk-4BDSKOGB.js +6873 -0
- package/dist/chunks/chunk-4BDSKOGB.js.map +1 -0
- package/dist/chunks/chunk-4BIRH5VP.js +99 -0
- package/dist/chunks/chunk-4BIRH5VP.js.map +1 -0
- package/dist/chunks/chunk-4O3EJ3SA.js +3884 -0
- package/dist/chunks/chunk-4O3EJ3SA.js.map +1 -0
- package/dist/chunks/chunk-4Z3IMDB5.js +84 -0
- package/dist/chunks/chunk-4Z3IMDB5.js.map +1 -0
- package/dist/chunks/chunk-6ITJ2I3A.js +82 -0
- package/dist/chunks/chunk-6ITJ2I3A.js.map +1 -0
- package/dist/chunks/chunk-75ZDJN64.js +32 -0
- package/dist/chunks/chunk-75ZDJN64.js.map +1 -0
- package/dist/chunks/chunk-76SJLOAE.js +84 -0
- package/dist/chunks/chunk-76SJLOAE.js.map +1 -0
- package/dist/chunks/chunk-7JS7FRDO.js +89 -0
- package/dist/chunks/chunk-7JS7FRDO.js.map +1 -0
- package/dist/chunks/chunk-7WL6TAJE.js +6872 -0
- package/dist/chunks/chunk-7WL6TAJE.js.map +1 -0
- package/dist/chunks/chunk-AD5H6KYS.js +78 -0
- package/dist/chunks/chunk-AD5H6KYS.js.map +1 -0
- package/dist/chunks/chunk-AQLCQATM.js +62 -0
- package/dist/chunks/chunk-AQLCQATM.js.map +1 -0
- package/dist/chunks/chunk-AWQHFFVL.js +659 -0
- package/dist/chunks/chunk-AWQHFFVL.js.map +1 -0
- package/dist/chunks/chunk-BLUHTHXX.js +6877 -0
- package/dist/chunks/chunk-BLUHTHXX.js.map +1 -0
- package/dist/chunks/chunk-BO6QD3VK.js +27 -0
- package/dist/chunks/chunk-BO6QD3VK.js.map +1 -0
- package/dist/chunks/chunk-BQ22JHXC.js +6877 -0
- package/dist/chunks/chunk-BQ22JHXC.js.map +1 -0
- package/dist/chunks/chunk-BWM6SEM3.js +659 -0
- package/dist/chunks/chunk-BWM6SEM3.js.map +1 -0
- package/dist/chunks/chunk-C2FVCRYJ.js +660 -0
- package/dist/chunks/chunk-C2FVCRYJ.js.map +1 -0
- package/dist/chunks/chunk-CIVMCP3W.js +78 -0
- package/dist/chunks/chunk-CIVMCP3W.js.map +1 -0
- package/dist/chunks/chunk-CJADUWEC.js +10 -0
- package/dist/chunks/chunk-CJADUWEC.js.map +1 -0
- package/dist/chunks/chunk-DCKLAFBL.js +79 -0
- package/dist/chunks/chunk-DCKLAFBL.js.map +1 -0
- package/dist/chunks/chunk-EHRC7LG6.js +3638 -0
- package/dist/chunks/chunk-EHRC7LG6.js.map +1 -0
- package/dist/chunks/chunk-ELXD2ZSR.js +218 -0
- package/dist/chunks/chunk-ELXD2ZSR.js.map +1 -0
- package/dist/chunks/chunk-EQUEIZJL.js +27 -0
- package/dist/chunks/chunk-EQUEIZJL.js.map +1 -0
- package/dist/chunks/chunk-EREPAU3B.js +80 -0
- package/dist/chunks/chunk-EREPAU3B.js.map +1 -0
- package/dist/chunks/chunk-EXOIDEQ6.js +660 -0
- package/dist/chunks/chunk-EXOIDEQ6.js.map +1 -0
- package/dist/chunks/chunk-FFF7WZJF.js +33 -0
- package/dist/chunks/chunk-FFF7WZJF.js.map +1 -0
- package/dist/chunks/chunk-FJJMZEPV.js +95 -0
- package/dist/chunks/chunk-FJJMZEPV.js.map +1 -0
- package/dist/chunks/chunk-G5DLHZE2.js +659 -0
- package/dist/chunks/chunk-G5DLHZE2.js.map +1 -0
- package/dist/chunks/chunk-HD63HGFY.js +52 -0
- package/dist/chunks/chunk-HD63HGFY.js.map +1 -0
- package/dist/chunks/chunk-HUKKTEBP.js +99 -0
- package/dist/chunks/chunk-HUKKTEBP.js.map +1 -0
- package/dist/chunks/chunk-HXGGGOV2.js +86 -0
- package/dist/chunks/chunk-HXGGGOV2.js.map +1 -0
- package/dist/chunks/chunk-HZYAIUVZ.js +6872 -0
- package/dist/chunks/chunk-HZYAIUVZ.js.map +1 -0
- package/dist/chunks/chunk-IT744RXI.js +75 -0
- package/dist/chunks/chunk-IT744RXI.js.map +1 -0
- package/dist/chunks/chunk-IXVOEGNZ.js +87 -0
- package/dist/chunks/chunk-IXVOEGNZ.js.map +1 -0
- package/dist/chunks/chunk-JEM74SR3.js +85 -0
- package/dist/chunks/chunk-JEM74SR3.js.map +1 -0
- package/dist/chunks/chunk-JP22YLJ6.js +219 -0
- package/dist/chunks/chunk-JP22YLJ6.js.map +1 -0
- package/dist/chunks/chunk-JVGOS45U.js +660 -0
- package/dist/chunks/chunk-JVGOS45U.js.map +1 -0
- package/dist/chunks/chunk-JWVGRAWQ.js +6872 -0
- package/dist/chunks/chunk-JWVGRAWQ.js.map +1 -0
- package/dist/chunks/chunk-JWX6ZOZ6.js +86 -0
- package/dist/chunks/chunk-JWX6ZOZ6.js.map +1 -0
- package/dist/chunks/chunk-JZMZLOTW.js +32 -0
- package/dist/chunks/chunk-JZMZLOTW.js.map +1 -0
- package/dist/chunks/chunk-KS3SCUUO.js +92 -0
- package/dist/chunks/chunk-KS3SCUUO.js.map +1 -0
- package/dist/chunks/chunk-LOPCNZ26.js +95 -0
- package/dist/chunks/chunk-LOPCNZ26.js.map +1 -0
- package/dist/chunks/chunk-LSNOL7NJ.js +6872 -0
- package/dist/chunks/chunk-LSNOL7NJ.js.map +1 -0
- package/dist/chunks/chunk-M4E2ACHZ.js +75 -0
- package/dist/chunks/chunk-M4E2ACHZ.js.map +1 -0
- package/dist/chunks/chunk-MQS7RZFR.js +85 -0
- package/dist/chunks/chunk-MQS7RZFR.js.map +1 -0
- package/dist/chunks/chunk-N3JFTFIL.js +79 -0
- package/dist/chunks/chunk-N3JFTFIL.js.map +1 -0
- package/dist/chunks/chunk-OSMLF3OH.js +6868 -0
- package/dist/chunks/chunk-OSMLF3OH.js.map +1 -0
- package/dist/chunks/chunk-OWWUE3LK.js +660 -0
- package/dist/chunks/chunk-OWWUE3LK.js.map +1 -0
- package/dist/chunks/chunk-P36CLOLO.js +27 -0
- package/dist/chunks/chunk-P36CLOLO.js.map +1 -0
- package/dist/chunks/chunk-PL32YWZA.js +30 -0
- package/dist/chunks/chunk-PL32YWZA.js.map +1 -0
- package/dist/chunks/chunk-Q5JLRHTY.js +659 -0
- package/dist/chunks/chunk-Q5JLRHTY.js.map +1 -0
- package/dist/chunks/chunk-RB227QQP.js +659 -0
- package/dist/chunks/chunk-RB227QQP.js.map +1 -0
- package/dist/chunks/chunk-TC5ZLAPV.js +218 -0
- package/dist/chunks/chunk-TC5ZLAPV.js.map +1 -0
- package/dist/chunks/chunk-TRSEENUK.js +45 -0
- package/dist/chunks/chunk-TRSEENUK.js.map +1 -0
- package/dist/chunks/chunk-U7VUCT7D.js +659 -0
- package/dist/chunks/chunk-U7VUCT7D.js.map +1 -0
- package/dist/chunks/chunk-UEX52I7G.js +1 -0
- package/dist/chunks/chunk-UEX52I7G.js.map +1 -0
- package/dist/chunks/chunk-UFRDMBKM.js +43 -0
- package/dist/chunks/chunk-UFRDMBKM.js.map +1 -0
- package/dist/chunks/chunk-USJXIVR4.js +6872 -0
- package/dist/chunks/chunk-USJXIVR4.js.map +1 -0
- package/dist/chunks/chunk-UZ4QB5IO.js +10 -0
- package/dist/chunks/chunk-UZ4QB5IO.js.map +1 -0
- package/dist/chunks/chunk-V2EYNAG4.js +659 -0
- package/dist/chunks/chunk-V2EYNAG4.js.map +1 -0
- package/dist/chunks/chunk-WJBYWKIF.js +32 -0
- package/dist/chunks/chunk-WJBYWKIF.js.map +1 -0
- package/dist/chunks/chunk-WOVQFPIV.js +6872 -0
- package/dist/chunks/chunk-WOVQFPIV.js.map +1 -0
- package/dist/chunks/chunk-WPUMEBSF.js +33 -0
- package/dist/chunks/chunk-WPUMEBSF.js.map +1 -0
- package/dist/chunks/chunk-WVVYYP6F.js +218 -0
- package/dist/chunks/chunk-WVVYYP6F.js.map +1 -0
- package/dist/chunks/chunk-XSHHCMRC.js +217 -0
- package/dist/chunks/chunk-XSHHCMRC.js.map +1 -0
- package/dist/chunks/chunk-XZTGFLMB.js +6872 -0
- package/dist/chunks/chunk-XZTGFLMB.js.map +1 -0
- package/dist/chunks/chunk-ZBMTSE6Q.js +660 -0
- package/dist/chunks/chunk-ZBMTSE6Q.js.map +1 -0
- package/dist/chunks/chunk-ZMTMIG3C.js +77 -0
- package/dist/chunks/chunk-ZMTMIG3C.js.map +1 -0
- package/dist/chunks/chunk-ZSR4X4I6.js +638 -0
- package/dist/chunks/chunk-ZSR4X4I6.js.map +1 -0
- package/dist/exports/interaction.js +1 -1
- package/dist/exports/session.context.d.ts +1 -1
- package/dist/exports/session.context.js +3 -1
- package/dist/exports/test.context.d.ts +2 -1
- package/dist/exports/test.context.js +3 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +20 -12
- package/dist/qti-components/index.js +2 -2
- package/dist/qti-components-jsx.d.ts +35 -2
- package/dist/qti-response-declaration-5PnLgbOQ.d.ts +1143 -0
- package/dist/qti-response-declaration-PJkGU8F8.d.ts +1151 -0
- package/dist/qti-test/components/index.d.ts +2 -1
- package/dist/qti-test/components/index.js +13 -9
- package/dist/qti-test/components/test-navigation.d.ts +1 -1
- package/dist/qti-test/components/test-navigation.js +3 -3
- package/dist/qti-test/components/test-print-context.d.ts +20 -0
- package/dist/qti-test/components/test-print-context.js +9 -0
- package/dist/qti-test/components/test-print-context.js.map +1 -0
- package/dist/qti-test/components/test-print-item-variables copy.js +86 -0
- package/dist/qti-test/components/test-print-item-variables copy.js.map +1 -0
- package/dist/qti-test/components/test-print-item-variables.d.ts +2 -2
- package/dist/qti-test/components/test-print-item-variables.js +1 -1
- package/dist/qti-test/components/test-print-item-variables.stories copy.js +9731 -0
- package/dist/qti-test/components/test-print-item-variables.stories copy.js.map +1 -0
- package/dist/qti-test/components/test-print-test-context.js +86 -0
- package/dist/qti-test/components/test-print-test-context.js.map +1 -0
- package/dist/qti-test/components/test-view.js +2 -2
- package/dist/qti-test/core/index.d.ts +3 -3
- package/dist/qti-test/core/index.js +15 -3
- package/dist/qti-test-feedback-BuFBq7JH.d.ts +97 -0
- package/dist/qti-test-feedback-CZsPCqSt.d.ts +97 -0
- package/dist/qti-test-feedback-CaNdRC7L.d.ts +96 -0
- package/dist/qti-test-part-BIeEZIWw.d.ts +85 -0
- package/dist/qti-test-part-C_jSX7Zz.d.ts +85 -0
- package/dist/vscode.html-custom-data.json +17 -6
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__decorateClass
|
|
3
|
+
} from "./chunk-H2JE6IVU.js";
|
|
4
|
+
|
|
5
|
+
// src/lib/exports/interaction.ts
|
|
6
|
+
import { property, state } from "lit/decorators.js";
|
|
7
|
+
import { LitElement } from "lit";
|
|
8
|
+
var Interaction = class extends LitElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.disabled = false;
|
|
12
|
+
this.readonly = false;
|
|
13
|
+
this._internals = this.attachInternals();
|
|
14
|
+
}
|
|
15
|
+
get correctResponse() {
|
|
16
|
+
return this._correctResponse;
|
|
17
|
+
}
|
|
18
|
+
set correctResponse(val) {
|
|
19
|
+
this._correctResponse = val;
|
|
20
|
+
}
|
|
21
|
+
reportValidity() {
|
|
22
|
+
return this._internals.reportValidity();
|
|
23
|
+
}
|
|
24
|
+
reset() {
|
|
25
|
+
this.value = "";
|
|
26
|
+
}
|
|
27
|
+
toggleCorrectResponse(responseVariable, show) {
|
|
28
|
+
this.correctResponse = show ? responseVariable?.correctResponse : responseVariable.cardinality === "single" ? "" : [];
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
super.connectedCallback();
|
|
32
|
+
this.dispatchEvent(
|
|
33
|
+
new CustomEvent("qti-register-interaction", {
|
|
34
|
+
bubbles: true,
|
|
35
|
+
composed: true,
|
|
36
|
+
cancelable: false,
|
|
37
|
+
detail: {
|
|
38
|
+
interactionElement: this,
|
|
39
|
+
responseIdentifier: this.responseIdentifier
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
saveResponse(value) {
|
|
45
|
+
this.dispatchEvent(
|
|
46
|
+
new CustomEvent("qti-interaction-response", {
|
|
47
|
+
bubbles: true,
|
|
48
|
+
composed: true,
|
|
49
|
+
cancelable: false,
|
|
50
|
+
detail: {
|
|
51
|
+
responseIdentifier: this.responseIdentifier,
|
|
52
|
+
response: Array.isArray(value) ? [...value] : value
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
Interaction.formAssociated = true;
|
|
59
|
+
__decorateClass([
|
|
60
|
+
property({ type: String, attribute: "response-identifier" })
|
|
61
|
+
], Interaction.prototype, "responseIdentifier", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
property({ reflect: true, type: Boolean })
|
|
64
|
+
], Interaction.prototype, "disabled", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
property({ reflect: true, type: Boolean })
|
|
67
|
+
], Interaction.prototype, "readonly", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
state()
|
|
70
|
+
], Interaction.prototype, "_correctResponse", 2);
|
|
71
|
+
|
|
72
|
+
export {
|
|
73
|
+
Interaction
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=chunk-IT744RXI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/exports/interaction.ts"],"sourcesContent":["import { property, state } from 'lit/decorators.js';\nimport { LitElement } from 'lit';\n\nimport type { ResponseVariable } from './variables';\nimport type { IInteraction } from './interaction.interface';\n\nexport abstract class Interaction extends LitElement implements IInteraction {\n static formAssociated = true;\n\n @property({ type: String, attribute: 'response-identifier' }) responseIdentifier;\n\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n @property({ reflect: true, type: Boolean }) readonly = false;\n\n @state()\n protected _correctResponse: string | string[];\n\n protected _internals: ElementInternals;\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n get correctResponse(): Readonly<string | string[]> {\n return this._correctResponse;\n }\n set correctResponse(val: Readonly<string | string[]>) {\n this._correctResponse = val as string | string[];\n }\n abstract validate(): boolean;\n\n public reportValidity(): boolean {\n return this._internals.reportValidity();\n }\n\n public reset(): void {\n this.value = '';\n }\n\n abstract get value(): string | string[] | null;\n abstract set value(val: string | string[] | null);\n\n public toggleCorrectResponse(responseVariable: ResponseVariable, show: boolean) {\n this.correctResponse = show\n ? responseVariable?.correctResponse\n : responseVariable.cardinality === 'single'\n ? ''\n : [];\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n\n this.dispatchEvent(\n new CustomEvent('qti-register-interaction', {\n bubbles: true,\n composed: true,\n cancelable: false,\n detail: {\n interactionElement: this,\n responseIdentifier: this.responseIdentifier\n }\n })\n );\n }\n\n public saveResponse(value: string | string[]) {\n this.dispatchEvent(\n new CustomEvent('qti-interaction-response', {\n bubbles: true,\n composed: true,\n cancelable: false,\n detail: {\n responseIdentifier: this.responseIdentifier,\n response: Array.isArray(value) ? [...value] : value\n }\n })\n );\n }\n}\n"],"mappings":";;;;;AAAA,SAAS,UAAU,aAAa;AAChC,SAAS,kBAAkB;AAKpB,IAAe,cAAf,cAAmC,WAAmC;AAAA,EAc3E,cAAc;AACZ,UAAM;AAVoC,oBAAW;AAEX,oBAAW;AASrD,SAAK,aAAa,KAAK,gBAAgB;AAAA,EACzC;AAAA,EACA,IAAI,kBAA+C;AACjD,WAAO,KAAK;AAAA,EACd;AAAA,EACA,IAAI,gBAAgB,KAAkC;AACpD,SAAK,mBAAmB;AAAA,EA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
__decorateClass
|
|
6
|
+
} from "./chunk-H2JE6IVU.js";
|
|
7
|
+
|
|
8
|
+
// src/lib/qti-test/components/test-print-context.ts
|
|
9
|
+
import { html, LitElement } from "lit";
|
|
10
|
+
import { consume } from "@lit/context";
|
|
11
|
+
import { customElement, property } from "lit/decorators.js";
|
|
12
|
+
var TestPrintContext = class extends LitElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.mode = "summed";
|
|
16
|
+
}
|
|
17
|
+
// Store previous active item reference
|
|
18
|
+
render() {
|
|
19
|
+
const activeItems = this.computedContext?.testParts.flatMap(
|
|
20
|
+
(testPart) => testPart.sections.flatMap((section) => section.items).find((item) => item.active)
|
|
21
|
+
);
|
|
22
|
+
if (!activeItems) return html``;
|
|
23
|
+
const activeItem = activeItems.length > 0 ? activeItems[0] : null;
|
|
24
|
+
if (activeItem) {
|
|
25
|
+
const responseVariables = activeItem.variables?.filter((v) => {
|
|
26
|
+
if (v.type !== "response") {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
if (v.identifier.toLowerCase().startsWith("response")) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
if (v.correctResponse) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const sortedResponseVariables = responseVariables?.sort((a, b) => a.identifier.localeCompare(b.identifier));
|
|
37
|
+
const correctResponseArray = sortedResponseVariables.map((r) => {
|
|
38
|
+
if (r.mapping && r.mapping.mapEntries.length > 0) {
|
|
39
|
+
return r.mapping.mapEntries.map((m) => {
|
|
40
|
+
return `${m.mapKey}=${m.mappedValue}pt `;
|
|
41
|
+
}).join("&");
|
|
42
|
+
}
|
|
43
|
+
if (r.areaMapping && r.areaMapping.areaMapEntries.length > 0) {
|
|
44
|
+
return r.areaMapping.areaMapEntries.map((m) => {
|
|
45
|
+
return `${m.coords} ${m.shape}=${m.mappedValue}`;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (r.correctResponse) {
|
|
49
|
+
return Array.isArray(r.correctResponse) ? r.correctResponse.join("&") : r.correctResponse;
|
|
50
|
+
}
|
|
51
|
+
return [];
|
|
52
|
+
});
|
|
53
|
+
const correctResponse = correctResponseArray.join("&");
|
|
54
|
+
const response = sortedResponseVariables.length === 0 ? "" : sortedResponseVariables?.map((v) => {
|
|
55
|
+
if (Array.isArray(v.value)) {
|
|
56
|
+
return v.value.join("&");
|
|
57
|
+
}
|
|
58
|
+
return v.value;
|
|
59
|
+
}).join("#");
|
|
60
|
+
const itemToReturn = {
|
|
61
|
+
...activeItem,
|
|
62
|
+
response,
|
|
63
|
+
correctResponse: this._previousActiveItem?.identifier === activeItem.identifier && this._previousActiveItem?.correctResponse ? this._previousActiveItem.correctResponse : correctResponse
|
|
64
|
+
};
|
|
65
|
+
if (this.mode === "summed") {
|
|
66
|
+
delete itemToReturn.variables;
|
|
67
|
+
}
|
|
68
|
+
this._previousActiveItem = itemToReturn;
|
|
69
|
+
return html` <small><pre>${JSON.stringify(itemToReturn, null, 2)}</pre></small> `;
|
|
70
|
+
}
|
|
71
|
+
return html``;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
__decorateClass([
|
|
75
|
+
consume({ context: computedContext, subscribe: true })
|
|
76
|
+
], TestPrintContext.prototype, "computedContext", 2);
|
|
77
|
+
__decorateClass([
|
|
78
|
+
property({ type: String, reflect: true })
|
|
79
|
+
], TestPrintContext.prototype, "mode", 2);
|
|
80
|
+
TestPrintContext = __decorateClass([
|
|
81
|
+
customElement("test-print-context")
|
|
82
|
+
], TestPrintContext);
|
|
83
|
+
|
|
84
|
+
export {
|
|
85
|
+
TestPrintContext
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=chunk-IXVOEGNZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/qti-test/components/test-print-context.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { consume } from '@lit/context';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { computedContext } from '../../exports/computed.context';\n\nimport type { ResponseVariable } from '../../exports/variables';\nimport type { ComputedContext, ComputedItem } from '../../exports/computed.context';\n\n@customElement('test-print-context')\nexport class TestPrintContext extends LitElement {\n @consume({ context: computedContext, subscribe: true })\n public computedContext?: ComputedContext;\n\n @property({ type: String, reflect: true })\n public mode: 'summed' | 'complete' = 'summed';\n\n private _previousActiveItem?: ComputedItem & { correctResponse: string; response: string }; // Store previous active item reference\n\n render() {\n const activeItems = this.computedContext?.testParts.flatMap(testPart =>\n testPart.sections.flatMap(section => section.items).find(item => item.active)\n );\n if (!activeItems) return html``;\n const activeItem = activeItems.length > 0 ? activeItems[0] : null;\n if (activeItem) {\n const responseVariables: ResponseVariable[] = activeItem.variables?.filter(v => {\n if (v.type !== 'response') {\n return false;\n }\n if (v.identifier.toLowerCase().startsWith('response')) {\n return true;\n }\n if ((v as ResponseVariable).correctResponse) {\n return true;\n }\n });\n // sort the response variables by the order of the string: identifier\n const sortedResponseVariables = responseVariables?.sort((a, b) => a.identifier.localeCompare(b.identifier));\n const correctResponseArray = sortedResponseVariables.map(r => {\n if (r.mapping && r.mapping.mapEntries.length > 0) {\n return r.mapping.mapEntries\n .map(m => {\n return `${m.mapKey}=${m.mappedValue}pt `;\n })\n .join('&');\n }\n if (r.areaMapping && r.areaMapping.areaMapEntries.length > 0) {\n return r.areaMapping.areaMapEntries.map(m => {\n return `${m.coords} ${m.shape}=${m.mappedValue}`;\n });\n }\n if (r.correctResponse) {\n return Array.isArray(r.correctResponse) ? r.correctResponse.join('&') : r.correctResponse;\n }\n return [];\n });\n const correctResponse = correctResponseArray.join('&');\n const response =\n sortedResponseVariables.length === 0\n ? ''\n : sortedResponseVariables\n ?.map(v => {\n if (Array.isArray(v.value)) {\n return v.value.join('&');\n }\n return v.value;\n })\n .join('#');\n const itemToReturn = {\n ...activeItem,\n response,\n correctResponse:\n this._previousActiveItem?.identifier === activeItem.identifier && this._previousActiveItem?.correctResponse\n ? this._previousActiveItem.correctResponse\n : correctResponse\n };\n if (this.mode === 'summed') {\n delete itemToReturn.variables;\n }\n this._previousActiveItem = itemToReturn;\n return html` <small><pre>${JSON.stringify(itemToReturn, null, 2)}</pre></small> `;\n }\n return html``;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-print-context': TestPrintContext;\n }\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,MAAM,kBAAkB;AACjC,SAAS,eAAe;AACxB,SAAS,eAAe,gBAAgB;AAQjC,IAAM,mBAAN,cAA+B,WAAW;AAAA,EAA1C;AAAA;AAKL,SAAO,OAA8B;AAAA;AAAA;AAAA,EAIrC,SAAS;AACP,UAAM,cAAc,KAAK,iBAAiB,UAAU;AAAA,MAAQ,cAC1D,SAAS,SAAS,QAAQ,aAAW,QAAQ,KAAK,EAAE,KAAK,UAAQ,KAAK,MAAM;AAAA,IAC9E;AACA,QAAI,CAAC,YAAa,QAAO;AACzB,UAAM,aAAa,YAAY,SAAS,IAAI,YAAY,CAAC,IAAI;AAC7D,QAAI,YAAY;AACd,YAAM,oBAAwC,WAAW,WAAW,OAAO,OAAK;AAC9E,YAAI,EAAE,SAAS,YAAY;AACzB,iBAAO;AAAA,QACT;AACA,YAAI,EAAE,WAAW,YAAY,EAAE,WAAW,UAAU,GAAG;AACrD,iBAAO;AAAA,QACT;AACA,YAAK,EAAuB,iBAAiB;AAC3C,iBAAO;AAAA,QACT;AAAA,MACF,CAAC;AAED,YAAM,0BAA0B,mBAAmB,KAAK,CAAC,GAAG,MAAM,EAAE,WAAW,cAAc,EAAE,UAAU,CAAC;AAC1G,YAAM,uBAAuB,wBAAwB,IAAI,OAAK;AAC5D,YAAI,EAAE,WAAW,EAAE,QAAQ,WAAW,SAAS,GAAG;AAChD,iBAAO,EAAE,QAAQ,WACd,IAAI,OAAK;AACR,mBAAO,GAAG,EAAE,MAAM,IAAI,EAAE,WAAW;AAAA,UACrC,CAAC,EACA,KAA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
|
+
} from "./chunk-6Z5YR5U2.js";
|
|
4
|
+
import {
|
|
5
|
+
__decorateClass
|
|
6
|
+
} from "./chunk-H2JE6IVU.js";
|
|
7
|
+
|
|
8
|
+
// src/lib/qti-test/components/test-print-item-variables.ts
|
|
9
|
+
import { html, css, LitElement } from "lit";
|
|
10
|
+
import { consume } from "@lit/context";
|
|
11
|
+
import { customElement } from "lit/decorators.js";
|
|
12
|
+
var TestPrintVariables = class extends LitElement {
|
|
13
|
+
render() {
|
|
14
|
+
const activeItem = this.computedContext?.testParts.flatMap((testPart) => testPart.sections.flatMap((section) => section.items)).find((item) => item.active);
|
|
15
|
+
if (!activeItem || !activeItem.variables) return html``;
|
|
16
|
+
const responseVariables = activeItem.variables.filter((v) => v.type === "response");
|
|
17
|
+
const outcomeVariables = activeItem.variables.filter((v) => v.type === "outcome");
|
|
18
|
+
const renderTable = (variables, title) => html`
|
|
19
|
+
<h3>${title}</h3>
|
|
20
|
+
<table>
|
|
21
|
+
<thead>
|
|
22
|
+
<tr>
|
|
23
|
+
<th>Identifier</th>
|
|
24
|
+
<th>Value</th>
|
|
25
|
+
<th>Cardinality</th>
|
|
26
|
+
<th>Base Type</th>
|
|
27
|
+
<th>Correct Response / Mappings</th>
|
|
28
|
+
</tr>
|
|
29
|
+
</thead>
|
|
30
|
+
<tbody>
|
|
31
|
+
${variables.map((v) => {
|
|
32
|
+
const correctResponse = v.correctResponse ? Array.isArray(v.correctResponse) ? v.correctResponse.join(", ") : v.correctResponse : "";
|
|
33
|
+
const mapEntries = v.mapping?.mapEntries?.map((m) => `${m.mapKey}=${m.mappedValue}pt`).join(", ") || "";
|
|
34
|
+
const areaMapEntries = v.areaMapping?.areaMapEntries?.map((m) => `${m.shape}=${m.mappedValue}pt`).join(", ") || "";
|
|
35
|
+
return html`
|
|
36
|
+
<tr>
|
|
37
|
+
<td>${v.identifier}</td>
|
|
38
|
+
<td>${Array.isArray(v.value) ? v.value.join(", ") : v.value}</td>
|
|
39
|
+
<td>${v.cardinality}</td>
|
|
40
|
+
<td>${v.baseType}</td>
|
|
41
|
+
<td>${correctResponse || mapEntries || areaMapEntries}</td>
|
|
42
|
+
</tr>
|
|
43
|
+
`;
|
|
44
|
+
})}
|
|
45
|
+
</tbody>
|
|
46
|
+
</table>
|
|
47
|
+
`;
|
|
48
|
+
return html`
|
|
49
|
+
${renderTable(responseVariables, "Response Variables")} ${renderTable(outcomeVariables, "Outcome Variables")}
|
|
50
|
+
`;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
TestPrintVariables.styles = css`
|
|
54
|
+
table {
|
|
55
|
+
width: 100%;
|
|
56
|
+
border-collapse: collapse;
|
|
57
|
+
margin: 20px 0;
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
text-align: left;
|
|
60
|
+
}
|
|
61
|
+
th,
|
|
62
|
+
td {
|
|
63
|
+
border: 1px solid #ddd;
|
|
64
|
+
padding: 8px;
|
|
65
|
+
}
|
|
66
|
+
th {
|
|
67
|
+
background-color: #f4f4f4;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
}
|
|
70
|
+
h3 {
|
|
71
|
+
margin-top: 20px;
|
|
72
|
+
font-size: 16px;
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
75
|
+
__decorateClass([
|
|
76
|
+
consume({ context: computedContext, subscribe: true })
|
|
77
|
+
], TestPrintVariables.prototype, "computedContext", 2);
|
|
78
|
+
TestPrintVariables = __decorateClass([
|
|
79
|
+
customElement("test-print-item-variables")
|
|
80
|
+
], TestPrintVariables);
|
|
81
|
+
|
|
82
|
+
export {
|
|
83
|
+
TestPrintVariables
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=chunk-JEM74SR3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/qti-test/components/test-print-item-variables.ts"],"sourcesContent":["import { html, css, LitElement } from 'lit';\nimport { consume } from '@lit/context';\nimport { customElement } from 'lit/decorators.js';\n\nimport { computedContext } from '../../exports/computed.context';\n\nimport type { ResponseVariable } from '../../exports/variables';\nimport type { ComputedContext } from '../../exports/computed.context';\n\n@customElement('test-print-item-variables')\nexport class TestPrintVariables extends LitElement {\n @consume({ context: computedContext, subscribe: true })\n public computedContext?: ComputedContext;\n\n static styles = css`\n table {\n width: 100%;\n border-collapse: collapse;\n margin: 20px 0;\n font-size: 14px;\n text-align: left;\n }\n th,\n td {\n border: 1px solid #ddd;\n padding: 8px;\n }\n th {\n background-color: #f4f4f4;\n font-weight: bold;\n }\n h3 {\n margin-top: 20px;\n font-size: 16px;\n }\n `;\n\n render() {\n const activeItem = this.computedContext?.testParts\n .flatMap(testPart => testPart.sections.flatMap(section => section.items))\n .find(item => item.active);\n\n if (!activeItem || !activeItem.variables) return html``;\n\n const responseVariables: ResponseVariable[] = activeItem.variables.filter(v => v.type === 'response');\n const outcomeVariables = activeItem.variables.filter(v => v.type === 'outcome');\n\n const renderTable = (variables: ResponseVariable[], title: string) => html`\n <h3>${title}</h3>\n <table>\n <thead>\n <tr>\n <th>Identifier</th>\n <th>Value</th>\n <th>Cardinality</th>\n <th>Base Type</th>\n <th>Correct Response / Mappings</th>\n </tr>\n </thead>\n <tbody>\n ${variables.map(v => {\n const correctResponse = v.correctResponse\n ? Array.isArray(v.correctResponse)\n ? v.correctResponse.join(', ')\n : v.correctResponse\n : '';\n\n const mapEntries = v.mapping?.mapEntries?.map(m => `${m.mapKey}=${m.mappedValue}pt`).join(', ') || '';\n\n const areaMapEntries =\n v.areaMapping?.areaMapEntries?.map(m => `${m.shape}=${m.mappedValue}pt`).join(', ') || '';\n\n return html`\n <tr>\n <td>${v.identifier}</td>\n <td>${Array.isArray(v.value) ? v.value.join(', ') : v.value}</td>\n <td>${v.cardinality}</td>\n <td>${v.baseType}</td>\n <td>${correctResponse || mapEntries || areaMapEntries}</td>\n </tr>\n `;\n })}\n </tbody>\n </table>\n `;\n\n return html`\n ${renderTable(responseVariables, 'Response Variables')} ${renderTable(outcomeVariables, 'Outcome Vari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B,cAAc,cAAc;AAAA;AAAA;AAAA,IAG3D,CAAC,CAAC;AAAA;AAAA;AAAA;AAKR,WAAO;AAAA,QACH,YAAY,mBAAmB,oBAAoB,CAAC,IAAI,YAAY,kBAAkB,mBAAmB,CAAC;AAAA;AAAA,EAEhH;AACF;AAhFa,mBAIJ,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAFT;AAAA,EADN,QAAQ,EAAE,SAAS,iBAAiB,WAAW,KAAK,CAAC;AAAA,GAD3C,mBAEJ;AAFI,qBAAN;AAAA,EADN,cAAc,2BAA2B;AAAA,GAC7B;","names":[]}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sessionContext
|
|
3
|
+
} from "./chunk-UZ4QB5IO.js";
|
|
4
|
+
import {
|
|
5
|
+
testContext
|
|
6
|
+
} from "./chunk-CJADUWEC.js";
|
|
7
|
+
import {
|
|
8
|
+
computedContext
|
|
9
|
+
} from "./chunk-6Z5YR5U2.js";
|
|
10
|
+
import {
|
|
11
|
+
__decorateClass
|
|
12
|
+
} from "./chunk-H2JE6IVU.js";
|
|
13
|
+
|
|
14
|
+
// src/lib/qti-test/components/test-navigation.ts
|
|
15
|
+
import { consume, provide } from "@lit/context";
|
|
16
|
+
import { html, LitElement } from "lit";
|
|
17
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
18
|
+
var TestNavigation = class extends LitElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.identifier = void 0;
|
|
22
|
+
this.initContext = [];
|
|
23
|
+
this.configContext = {};
|
|
24
|
+
this.autoScoreItems = false;
|
|
25
|
+
this.addEventListener("qti-assessment-test-connected", this._handleTestConnected.bind(this));
|
|
26
|
+
this.addEventListener("qti-assessment-item-connected", this._handleItemConnected.bind(this));
|
|
27
|
+
this.addEventListener("qti-interaction-changed", this._handleInteractionChanged.bind(this));
|
|
28
|
+
this.addEventListener("test-end-attempt", this._handleTestEndAttempt.bind(this));
|
|
29
|
+
this.addEventListener("test-show-correct-response", this._handleTestShowCorrectResponse.bind(this));
|
|
30
|
+
}
|
|
31
|
+
_handleTestEndAttempt(_event) {
|
|
32
|
+
const qtiItemEl = this._testElement.querySelector(
|
|
33
|
+
`qti-assessment-item-ref[identifier="${this._sessionContext.navItemId}"]`
|
|
34
|
+
);
|
|
35
|
+
const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
|
|
36
|
+
const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;
|
|
37
|
+
qtiAssessmentItemEl.processResponse(true, reportValidityAfterScoring);
|
|
38
|
+
}
|
|
39
|
+
_handleTestShowCorrectResponse(event) {
|
|
40
|
+
const qtiItemEl = this._testElement.querySelector(
|
|
41
|
+
`qti-assessment-item-ref[identifier="${this._sessionContext.navItemId}"]`
|
|
42
|
+
);
|
|
43
|
+
const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
|
|
44
|
+
qtiAssessmentItemEl.showCorrectResponse(event.detail);
|
|
45
|
+
}
|
|
46
|
+
_handleInteractionChanged(_event) {
|
|
47
|
+
if (this.autoScoreItems) {
|
|
48
|
+
const assessmentItem = _event.composedPath()[0].closest("qti-assessment-item");
|
|
49
|
+
const scoreOutcomeIdentifier = assessmentItem.variables.find((v) => v.identifier === "SCORE");
|
|
50
|
+
if (scoreOutcomeIdentifier.externalScored === null && assessmentItem.adaptive === "false") {
|
|
51
|
+
assessmentItem.processResponse();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
return html`<slot></slot>`;
|
|
57
|
+
}
|
|
58
|
+
/* PK: on test connected we can build the computed context */
|
|
59
|
+
_handleTestConnected(event) {
|
|
60
|
+
this._testElement = event.detail;
|
|
61
|
+
const testPartElements = Array.from(this._testElement?.querySelectorAll(`qti-test-part`) || []);
|
|
62
|
+
this.computedContext = {
|
|
63
|
+
testParts: testPartElements.map((testPart) => {
|
|
64
|
+
const sectionElements = [...testPart.querySelectorAll(`qti-assessment-section`)];
|
|
65
|
+
return {
|
|
66
|
+
active: false,
|
|
67
|
+
identifier: testPart.identifier,
|
|
68
|
+
sections: sectionElements.map((section) => {
|
|
69
|
+
const itemElements = [...section.querySelectorAll(`qti-assessment-item-ref`)];
|
|
70
|
+
return {
|
|
71
|
+
active: false,
|
|
72
|
+
identifier: section.identifier,
|
|
73
|
+
title: section.title,
|
|
74
|
+
items: itemElements.map((item) => {
|
|
75
|
+
return {
|
|
76
|
+
active: false,
|
|
77
|
+
identifier: item.identifier,
|
|
78
|
+
href: item.href,
|
|
79
|
+
variables: []
|
|
80
|
+
};
|
|
81
|
+
})
|
|
82
|
+
};
|
|
83
|
+
})
|
|
84
|
+
};
|
|
85
|
+
})
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/* PK: on item connected we can add item only properties in the xml */
|
|
89
|
+
_handleItemConnected(event) {
|
|
90
|
+
const itemElement = event.detail;
|
|
91
|
+
this.computedContext = {
|
|
92
|
+
...this.computedContext,
|
|
93
|
+
testParts: this.computedContext.testParts.map((testPart) => {
|
|
94
|
+
return {
|
|
95
|
+
...testPart,
|
|
96
|
+
sections: testPart.sections.map((section) => {
|
|
97
|
+
return {
|
|
98
|
+
...section,
|
|
99
|
+
items: section.items.map((item) => {
|
|
100
|
+
if (item.identifier !== itemElement.identifier) {
|
|
101
|
+
return item;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
...item,
|
|
105
|
+
label: itemElement.getAttribute("label"),
|
|
106
|
+
title: itemElement.title,
|
|
107
|
+
adaptive: itemElement.adaptive == "true" || false,
|
|
108
|
+
timeDependent: itemElement.timeDependent == "true" || false,
|
|
109
|
+
variables: itemElement._context.variables
|
|
110
|
+
};
|
|
111
|
+
})
|
|
112
|
+
};
|
|
113
|
+
})
|
|
114
|
+
};
|
|
115
|
+
})
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/* PK: on every change of the candidate we will recomputed the computedContext */
|
|
119
|
+
willUpdate(_changedProperties) {
|
|
120
|
+
if (!this.computedContext) return;
|
|
121
|
+
let itemIndex = 1;
|
|
122
|
+
this.computedContext = {
|
|
123
|
+
...this.computedContext,
|
|
124
|
+
testParts: this.computedContext.testParts.map((testPart) => {
|
|
125
|
+
return {
|
|
126
|
+
...testPart,
|
|
127
|
+
active: this._sessionContext?.navPartId === testPart.identifier || false,
|
|
128
|
+
sections: testPart.sections.map((section) => {
|
|
129
|
+
return {
|
|
130
|
+
...section,
|
|
131
|
+
active: this._sessionContext?.navSectionId === section.identifier || false,
|
|
132
|
+
completed: section.items.every(
|
|
133
|
+
(item) => this._testContext.items.find((i) => i.identifier === item.identifier)?.variables.find((v) => v.identifier === "completionStatus").value === "completed"
|
|
134
|
+
),
|
|
135
|
+
items: section.items.map((item) => {
|
|
136
|
+
const itemContext = this._testContext?.items.find((i) => i.identifier === item.identifier);
|
|
137
|
+
let computedItem;
|
|
138
|
+
if (this.initContext) {
|
|
139
|
+
const initContext = this.initContext.find((i) => i.identifier === item.identifier);
|
|
140
|
+
computedItem = { ...item, ...itemContext, ...initContext };
|
|
141
|
+
} else {
|
|
142
|
+
computedItem = { ...item, ...itemContext };
|
|
143
|
+
}
|
|
144
|
+
const rawscore = computedItem.variables?.find((vr) => vr.identifier == "SCORE")?.value;
|
|
145
|
+
const score = parseInt(rawscore?.toString());
|
|
146
|
+
const completionStatus = computedItem.variables?.find((v) => v.identifier === "completionStatus")?.value;
|
|
147
|
+
const categories = computedItem.category ? computedItem.category?.split(" ") : [];
|
|
148
|
+
const type = categories.includes(this.configContext?.infoItemCategory) ? "info" : "regular";
|
|
149
|
+
const active = this._sessionContext?.navItemId === computedItem.identifier || false;
|
|
150
|
+
const correct = (
|
|
151
|
+
// this._testContext.view === 'scorer' &&
|
|
152
|
+
type == "regular" && score !== void 0 && !isNaN(score) && score > 0 || false
|
|
153
|
+
);
|
|
154
|
+
const incorrect = (
|
|
155
|
+
// this._testContext.view === 'scorer' &&
|
|
156
|
+
type == "regular" && score !== void 0 && !isNaN(score) && score <= 0 || false
|
|
157
|
+
);
|
|
158
|
+
const completed = (
|
|
159
|
+
// this._testContext.view === 'candidate' &&
|
|
160
|
+
completionStatus === "completed"
|
|
161
|
+
);
|
|
162
|
+
const response = computedItem.variables?.find((v) => v.identifier === "RESPONSE")?.value || "";
|
|
163
|
+
const index = categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;
|
|
164
|
+
const view = this._sessionContext.view;
|
|
165
|
+
return {
|
|
166
|
+
...computedItem,
|
|
167
|
+
// rawscore, // not necessary for outside world
|
|
168
|
+
// score, // not necessary for outside world
|
|
169
|
+
// completionStatus, // not necessary for outside world
|
|
170
|
+
// categories, // not necessary for outside world
|
|
171
|
+
type,
|
|
172
|
+
active,
|
|
173
|
+
correct,
|
|
174
|
+
incorrect,
|
|
175
|
+
completed,
|
|
176
|
+
index,
|
|
177
|
+
response,
|
|
178
|
+
view
|
|
179
|
+
};
|
|
180
|
+
})
|
|
181
|
+
};
|
|
182
|
+
})
|
|
183
|
+
};
|
|
184
|
+
})
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
__decorateClass([
|
|
189
|
+
property({ type: String })
|
|
190
|
+
], TestNavigation.prototype, "identifier", 2);
|
|
191
|
+
__decorateClass([
|
|
192
|
+
state()
|
|
193
|
+
], TestNavigation.prototype, "initContext", 2);
|
|
194
|
+
__decorateClass([
|
|
195
|
+
state(),
|
|
196
|
+
consume({ context: testContext, subscribe: true })
|
|
197
|
+
], TestNavigation.prototype, "_testContext", 2);
|
|
198
|
+
__decorateClass([
|
|
199
|
+
state(),
|
|
200
|
+
consume({ context: sessionContext, subscribe: true })
|
|
201
|
+
], TestNavigation.prototype, "_sessionContext", 2);
|
|
202
|
+
__decorateClass([
|
|
203
|
+
state()
|
|
204
|
+
], TestNavigation.prototype, "configContext", 2);
|
|
205
|
+
__decorateClass([
|
|
206
|
+
state(),
|
|
207
|
+
provide({ context: computedContext })
|
|
208
|
+
], TestNavigation.prototype, "computedContext", 2);
|
|
209
|
+
__decorateClass([
|
|
210
|
+
property({ type: Boolean, attribute: "auto-score-items" })
|
|
211
|
+
], TestNavigation.prototype, "autoScoreItems", 2);
|
|
212
|
+
TestNavigation = __decorateClass([
|
|
213
|
+
customElement("test-navigation")
|
|
214
|
+
], TestNavigation);
|
|
215
|
+
|
|
216
|
+
export {
|
|
217
|
+
TestNavigation
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=chunk-JP22YLJ6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/qti-test/components/test-navigation.ts"],"sourcesContent":["import { consume, provide } from '@lit/context';\nimport { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\n\nimport { testContext } from '../../exports/test.context';\nimport { sessionContext } from '../../exports/session.context';\nimport { computedContext } from '../../exports/computed.context';\n\nimport type { ComputedItemContext } from '../../exports/computed-item.context';\nimport type { QtiAssessmentItem } from '../../qti-components';\nimport type { OutcomeVariable } from '../../exports/variables';\nimport type { ComputedContext } from '../../exports/computed.context';\nimport type { PropertyValues } from 'lit';\nimport type { QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest, QtiTestPart } from '../core';\nimport type { ConfigContext } from '../../exports/config.context';\nimport type { SessionContext } from '../../exports/session.context';\nimport type { TestContext } from '../../exports/test.context';\n\ntype CustomEventMap = {\n 'test-end-attempt': CustomEvent;\n 'test-show-correct-response': CustomEvent<{ value: boolean }>;\n};\n\ndeclare global {\n interface GlobalEventHandlersEventMap extends CustomEventMap {}\n}\n\n@customElement('test-navigation')\nexport class TestNavigation extends LitElement {\n @property({ type: String }) identifier = undefined;\n\n @state()\n public initContext: { identifier: string; [key: string]: any }[] = [];\n\n @state()\n @consume({ context: testContext, subscribe: true })\n public _testContext?: TestContext;\n\n @state()\n @consume({ context: sessionContext, subscribe: true })\n public _sessionContext?: SessionContext;\n\n @state()\n public configContext: ConfigContext = {};\n\n @state()\n @provide({ context: computedContext })\n public computedContext: ComputedContext;\n\n @property({ type: Boolean, attribute: 'auto-score-items' }) autoScoreItems = false;\n\n private _testElement: QtiAssessmentTest;\n\n constructor() {\n super();\n this.addEventListener('qti-assessment-test-connected', this._handleTestConnected.bind(this));\n this.addEventListener('qti-assessment-item-connected', this._handleItemConnected.bind(this));\n\n this.addEventListener('qti-interaction-changed', this._handleInteractionChanged.bind(this));\n\n this.addEventListener('test-end-attempt', this._handleTestEndAttempt.bind(this));\n this.addEventListener('test-show-correct-response', this._handleTestShowCorrectResponse.bind(this));\n }\n\n private _handleTestEndAttempt(_event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this._sessionContext.navItemId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;\n qtiAssessmentItemEl.processResponse(true, reportValidityAfterScoring);\n }\n\n private _handleTestShowCorrectResponse(event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this._sessionContext.navItemId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n qtiAssessmentItemEl.showCorrectResponse(event.detail);\n }\n\n private _handleInteractionChanged(_event: CustomEvent) {\n if (this.autoScoreItems) {\n const assessmentItem = (_event.composedPath()[0] as HTMLElement).closest('qti-assessment-item');\n const scoreOutcomeIdentifier = assessmentItem.variables.find(v => v.identifier === 'SCORE') as OutcomeVariable;\n if (scoreOutcomeIdentifier.externalScored === null && assessmentItem.adaptive === 'false') {\n assessmentItem.processResponse();\n }\n }\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n /* PK: on test connected we can build the computed context */\n _handleTestConnected(event: CustomEvent) {\n this._testElement = event.detail as QtiAssessmentTest;\n const testPartElements = Array.from(this._testElement?.querySelectorAll<QtiTestPart>(`qti-test-part`) || []);\n this.computedContext = {\n testParts: testPartElements.map(testPart => {\n const sectionElements = [...testPart.querySelectorAll<QtiAssessmentSection>(`qti-assessment-section`)];\n return {\n active: false,\n identifier: testPart.identifier,\n sections: sectionElements.map(section => {\n const itemElements = [...section.querySelectorAll<QtiAssessmentItemRef>(`qti-assessment-item-ref`)];\n return {\n active: false,\n identifier: section.identifier,\n title: section.title,\n items: itemElements.map(item => {\n return {\n active: false,\n identifier: item.identifier,\n href: item.href,\n variables: []\n } as ComputedItemContext;\n })\n };\n })\n };\n })\n };\n\n // const sections = this.computedContext?.testParts.flatMap(testPart => testPart.sections);\n\n // let id;\n // if (this.navigate === 'section') {\n // id = sections.find(section => section.active).identifier;\n // }\n // if (this.navigate === 'item') {\n // id = sections.flatMap(section => section.items).find(item => item.active).identifier;\n // }\n\n // if (id) {\n // this.dispatchEvent(\n // new CustomEvent('qti-request-navigation', {\n // detail: { type: this.navigate, id },\n // bubbles: true,\n // composed: true\n // })\n // );\n // }\n }\n\n /* PK: on item connected we can add item only properties in the xml */\n _handleItemConnected(event: CustomEvent) {\n const itemElement = event.detail as QtiAssessmentItem;\n this.computedContext = {\n ...this.computedContext,\n testParts: this.computedContext.testParts.map(testPart => {\n return {\n ...testPart,\n sections: testPart.sections.map(section => {\n return {\n ...section,\n items: section.items.map(item => {\n if (item.identifier !== itemElement.identifier) {\n return item;\n }\n return {\n ...item,\n label: itemElement.getAttribute('label'),\n title: itemElement.title,\n adaptive: itemElement.adaptive == 'true' || false,\n timeDependent: itemElement.timeDependent == 'true' || false,\n variables: (itemElement as any)._context.variables\n };\n })\n };\n })\n };\n })\n };\n }\n\n /* PK: on every change of the candidate we will recomputed the computedContext */\n protected willUpdate(_changedProperties: PropertyValues): void {\n if (!this.computedContext) return;\n\n let itemIndex = 1;\n this.computedContext = {\n ...this.computedContext,\n testParts: this.computedContext.testParts.map(testPart => {\n return {\n ...testPart,\n active: this._sessionContext?.navPartId === testPart.identifier || false,\n sections: testPart.sections.map(section => {\n return {\n ...section,\n active: this._sessionContext?.navSectionId === section.identifier || false,\n completed: section.items.every(\n item =>\n this._testContext.items\n .find(i => i.identifier === item.identifier)\n ?.variables.find(v => v.identifier === 'completionStatus').value === 'completed'\n ),\n\n items: section.items.map(item => {\n const itemContext = this._testContext?.items.find(i => i.identifier === item.identifier);\n let computedItem;\n\n if (this.initContext) {\n const initContext = this.initContext.find(i => i.identifier === item.identifier);\n computedItem = { ...item, ...itemContext, ...initContext };\n } else {\n computedItem = { ...item, ...itemContext };\n }\n\n const rawscore = computedItem.variables?.find(vr => vr.identifier == 'SCORE')?.value;\n const score = parseInt(rawscore?.toString());\n const completionStatus = computedItem.variables?.find(v => v.identifier === 'completionStatus')?.value;\n const categories = computedItem.category ? computedItem.category?.split(' ') : [];\n\n const type = categories.includes(this.configContext?.infoItemCategory) ? 'info' : 'regular'; // rounded-full\n const active = this._sessionContext?.navItemId === computedItem.identifier || false; // !border-sky-600\n\n const correct =\n // this._testContext.view === 'scorer' &&\n (type == 'regular' && score !== undefined && !isNaN(score) && score > 0) || false; // bg-green-100 border-green-400\n const incorrect =\n // this._testContext.view === 'scorer' &&\n (type == 'regular' && score !== undefined && !isNaN(score) && score <= 0) || false; // bg-red-100 border-red-400\n const completed =\n // this._testContext.view === 'candidate' &&\n completionStatus === 'completed';\n // || item.category === this.host._configContext?.infoItemCategory || false\n const response = computedItem.variables?.find(v => v.identifier === 'RESPONSE')?.value || '';\n\n const index = categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;\n\n const view = this._sessionContext.view;\n\n return {\n ...computedItem,\n // rawscore, // not necessary for outside world\n // score, // not necessary for outside world\n // completionStatus, // not necessary for outside world\n // categories, // not necessary for outside world\n type,\n active,\n correct,\n incorrect,\n completed,\n index,\n response,\n view\n };\n })\n };\n })\n };\n })\n };\n }\n}\n"],"mappings":";;;;;;;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