@citolab/qti-components 7.1.6 → 7.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/chunks/chunk-2GVQHMFN.js +5 -0
- package/cdn/chunks/chunk-34TLO462.js +1 -0
- package/cdn/chunks/chunk-3AUZHOWF.js +5 -0
- package/cdn/chunks/chunk-3BTFQ7WO.js +5 -0
- package/cdn/chunks/chunk-3G52PPHF.js +1 -0
- package/cdn/chunks/chunk-3T7FMZJJ.js +5 -0
- package/cdn/chunks/chunk-3WMAQ764.js +23 -0
- package/cdn/chunks/chunk-3XYZ63C3.js +1 -0
- package/cdn/chunks/chunk-43VY76CQ.js +5 -0
- package/cdn/chunks/chunk-4VDQDT6F.js +1 -0
- package/cdn/chunks/chunk-4XDZ5XHU.js +1007 -0
- package/cdn/chunks/chunk-52V4Q43H.js +5 -0
- package/cdn/chunks/chunk-5DVS53XB.js +1007 -0
- package/cdn/chunks/chunk-6BZPFYLZ.js +1 -0
- package/cdn/chunks/chunk-7B6HAKFL.js +1 -0
- package/cdn/chunks/chunk-7BENQ76L.js +1 -0
- package/cdn/chunks/chunk-A6PJTNI7.js +23 -0
- package/cdn/chunks/chunk-AFBSMLI4.js +5 -0
- package/cdn/chunks/chunk-AU2GM346.js +23 -0
- package/cdn/chunks/chunk-B345O2HX.js +1 -0
- package/cdn/chunks/chunk-B3RMHCUZ.js +1 -0
- package/cdn/chunks/chunk-BFPXRWNH.js +5 -0
- package/cdn/chunks/chunk-BGBABJCL.js +5 -0
- package/cdn/chunks/chunk-BKSBIZJA.js +5 -0
- package/cdn/chunks/chunk-BWG4B5VP.js +0 -0
- package/cdn/chunks/chunk-C25LH4KA.js +1 -0
- package/cdn/chunks/chunk-CDCBI3YD.js +1 -0
- package/cdn/chunks/chunk-CQPD5NPM.js +1 -0
- package/cdn/chunks/chunk-CS6UCV2Q.js +5 -0
- package/cdn/chunks/chunk-D74A6CWS.js +8 -0
- package/cdn/chunks/chunk-DFZQWABG.js +5 -0
- package/cdn/chunks/chunk-DHZMASGY.js +5 -0
- package/cdn/chunks/chunk-EZ7OIK2M.js +1007 -0
- package/cdn/chunks/chunk-F2WLIUYH.js +5 -0
- package/cdn/chunks/chunk-F3ZZJBV2.js +5 -0
- package/cdn/chunks/chunk-FCH2GIHD.js +1 -0
- package/cdn/chunks/chunk-FKUEIENC.js +5 -0
- package/cdn/chunks/chunk-FMCWO2FJ.js +17 -0
- package/cdn/chunks/chunk-FQW2YR3J.js +1 -0
- package/cdn/chunks/chunk-FVEUVB2H.js +23 -0
- package/cdn/chunks/chunk-GMF365YO.js +16 -0
- package/cdn/chunks/chunk-GWRXCQHZ.js +23 -0
- package/cdn/chunks/chunk-HAXNBTTE.js +1 -0
- package/cdn/chunks/chunk-HEAJ2NEA.js +1007 -0
- package/cdn/chunks/chunk-HKBOCCDM.js +5 -0
- package/cdn/chunks/chunk-HRLTVAPZ.js +5 -0
- package/cdn/chunks/chunk-HZ5STZXK.js +5 -0
- package/cdn/chunks/chunk-I5HGXKPD.js +1007 -0
- package/cdn/chunks/chunk-IELXBBZK.js +5 -0
- package/cdn/chunks/chunk-IHL5T5GX.js +5 -0
- package/cdn/chunks/chunk-J2M4UG43.js +1 -0
- package/cdn/chunks/chunk-JAMSX45C.js +1 -0
- package/cdn/chunks/chunk-JEPI46VU.js +5 -0
- package/cdn/chunks/chunk-JSQUXTN4.js +1033 -0
- package/cdn/chunks/chunk-JXDOR5ZC.js +1 -0
- package/cdn/chunks/chunk-JZCJOPJ4.js +1007 -0
- package/cdn/chunks/chunk-KKEW6E2D.js +5 -0
- package/cdn/chunks/chunk-L4UTGAI5.js +5 -0
- package/cdn/chunks/chunk-LMLG3NBM.js +5 -0
- package/cdn/chunks/chunk-MM2ZXHVH.js +5 -0
- package/cdn/chunks/chunk-NQQE76LE.js +1 -0
- package/cdn/chunks/chunk-O6CWZJXT.js +28 -0
- package/cdn/chunks/chunk-OSEDGNNB.js +1007 -0
- package/cdn/chunks/chunk-PJFHT7NY.js +5 -0
- package/cdn/chunks/chunk-PKWOG7OF.js +5 -0
- package/cdn/chunks/chunk-PTG4PTFS.js +5 -0
- package/cdn/chunks/chunk-QIRSCGXH.js +1007 -0
- package/cdn/chunks/chunk-RIPDQPTC.js +5 -0
- package/cdn/chunks/chunk-RO5THFZ6.js +5 -0
- package/cdn/chunks/chunk-SQ3RENJ6.js +5 -0
- package/cdn/chunks/chunk-SUOAWPV7.js +23 -0
- package/cdn/chunks/chunk-T43NJLH5.js +5 -0
- package/cdn/chunks/chunk-TIH5N4LQ.js +1007 -0
- package/cdn/chunks/chunk-TOUJRNTD.js +1007 -0
- package/cdn/chunks/chunk-TSMKXWWV.js +5 -0
- package/cdn/chunks/chunk-TU4L55WU.js +5 -0
- package/cdn/chunks/chunk-UDPQY4OA.js +1007 -0
- package/cdn/chunks/chunk-ULI6NOVG.js +23 -0
- package/cdn/chunks/chunk-UTEMKKYS.js +1 -0
- package/cdn/chunks/chunk-UV3CSMRU.js +5 -0
- package/cdn/chunks/chunk-V2RDHKE2.js +5 -0
- package/cdn/chunks/chunk-VQLIWL6K.js +5 -0
- package/cdn/chunks/chunk-VZEUFE5C.js +3455 -0
- package/cdn/chunks/chunk-W5B2MLGL.js +1 -0
- package/cdn/chunks/chunk-WJGOCWFB.js +1 -0
- package/cdn/chunks/chunk-WLQN7SVZ.js +1033 -0
- package/cdn/chunks/chunk-WUX2JPB5.js +17 -0
- package/cdn/chunks/chunk-X7FRU3B6.js +5 -0
- package/cdn/chunks/chunk-XS46RWY6.js +5 -0
- package/cdn/chunks/chunk-XTNESJMB.js +5 -0
- package/cdn/chunks/chunk-Y2EDF22E.js +16 -0
- package/cdn/chunks/chunk-YE4ZNHXG.js +23 -0
- package/cdn/chunks/chunk-YMFPA4QO.js +5 -0
- package/cdn/chunks/chunk-YRK3ZLQP.js +1033 -0
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +1 -1
- package/cdn/qti-components/index.js +1 -1
- package/cdn/qti-item/components/item-container.js +1 -1
- package/cdn/qti-item/core/index.js +1 -1
- package/cdn/qti-loader/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/test-container.js +1 -1
- package/cdn/qti-test/components/test-navigation.js +1 -1
- package/cdn/qti-test/components/test-next.js +1 -1
- package/cdn/qti-test/components/test-scoring-buttons.js +1 -1
- package/cdn/qti-test/components/test-scoring-feedback.js +1 -1
- package/cdn/qti-test/components/test-stamp.js +1 -0
- package/cdn/qti-test/components/test-view-toggle.js +1 -1
- package/cdn/qti-test/core/index.js +1 -1
- package/cdn/qti-transformers/index.js +1 -1
- package/dist/chunks/chunk-2GPGOKL6.js +94 -0
- package/dist/chunks/chunk-2GPGOKL6.js.map +1 -0
- package/dist/chunks/chunk-2J22QBLB.js +94 -0
- package/dist/chunks/chunk-2J22QBLB.js.map +1 -0
- package/dist/chunks/chunk-34F2DVNP.js +85 -0
- package/dist/chunks/chunk-34F2DVNP.js.map +1 -0
- package/dist/chunks/chunk-3TM6VQEG.js +375 -0
- package/dist/chunks/chunk-3TM6VQEG.js.map +1 -0
- package/dist/chunks/chunk-3YVVZ2MO.js +374 -0
- package/dist/chunks/chunk-3YVVZ2MO.js.map +1 -0
- package/dist/chunks/chunk-46RFKXS6.js +94 -0
- package/dist/chunks/chunk-46RFKXS6.js.map +1 -0
- package/dist/chunks/chunk-47BWT37I.js +94 -0
- package/dist/chunks/chunk-47BWT37I.js.map +1 -0
- package/dist/chunks/chunk-4EXSIVXY.js +68 -0
- package/dist/chunks/chunk-4EXSIVXY.js.map +1 -0
- package/dist/chunks/chunk-4JL6LXWC.js +94 -0
- package/dist/chunks/chunk-4JL6LXWC.js.map +1 -0
- package/dist/chunks/chunk-4TQ3YR2O.js +31 -0
- package/dist/chunks/chunk-4TQ3YR2O.js.map +1 -0
- package/dist/chunks/chunk-4VEH63K4.js +854 -0
- package/dist/chunks/chunk-4VEH63K4.js.map +1 -0
- package/dist/chunks/chunk-5FKTC6XV.js +99 -0
- package/dist/chunks/chunk-5FKTC6XV.js.map +1 -0
- package/dist/chunks/chunk-5SZAGP4N.js +863 -0
- package/dist/chunks/chunk-5SZAGP4N.js.map +1 -0
- package/dist/chunks/chunk-64EQ3AQ4.js +240 -0
- package/dist/chunks/chunk-64EQ3AQ4.js.map +1 -0
- package/dist/chunks/chunk-6MECYIS2.js +94 -0
- package/dist/chunks/chunk-6MECYIS2.js.map +1 -0
- package/dist/chunks/chunk-6T5ICOX2.js +94 -0
- package/dist/chunks/chunk-6T5ICOX2.js.map +1 -0
- package/dist/chunks/chunk-6ZK4ZDQA.js +94 -0
- package/dist/chunks/chunk-6ZK4ZDQA.js.map +1 -0
- package/dist/chunks/chunk-7KTTLJUH.js +45 -0
- package/dist/chunks/chunk-7KTTLJUH.js.map +1 -0
- package/dist/chunks/chunk-7LFQ6D75.js +95 -0
- package/dist/chunks/chunk-7LFQ6D75.js.map +1 -0
- package/dist/chunks/chunk-7T5WVG7T.js +853 -0
- package/dist/chunks/chunk-7T5WVG7T.js.map +1 -0
- package/dist/chunks/chunk-A5IAS5VV.js +54 -0
- package/dist/chunks/chunk-A5IAS5VV.js.map +1 -0
- package/dist/chunks/chunk-ABDJRZ2V.js +78 -0
- package/dist/chunks/chunk-ABDJRZ2V.js.map +1 -0
- package/dist/chunks/chunk-AN33KA5S.js +94 -0
- package/dist/chunks/chunk-AN33KA5S.js.map +1 -0
- package/dist/chunks/chunk-B2SP77UV.js +818 -0
- package/dist/chunks/chunk-B2SP77UV.js.map +1 -0
- package/dist/chunks/chunk-BB7V3D2X.js +250 -0
- package/dist/chunks/chunk-BB7V3D2X.js.map +1 -0
- package/dist/chunks/chunk-BJAP2552.js +6893 -0
- package/dist/chunks/chunk-BJAP2552.js.map +1 -0
- package/dist/chunks/chunk-BSPLGP2R.js +627 -0
- package/dist/chunks/chunk-BSPLGP2R.js.map +1 -0
- package/dist/chunks/chunk-BWUEY6V5.js +818 -0
- package/dist/chunks/chunk-BWUEY6V5.js.map +1 -0
- package/dist/chunks/chunk-C7YUIKFQ.js +249 -0
- package/dist/chunks/chunk-C7YUIKFQ.js.map +1 -0
- package/dist/chunks/chunk-CIZ7HKZC.js +42 -0
- package/dist/chunks/chunk-CIZ7HKZC.js.map +1 -0
- package/dist/chunks/chunk-CJSBOJOH.js +6888 -0
- package/dist/chunks/chunk-CJSBOJOH.js.map +1 -0
- package/dist/chunks/chunk-CYB63HHS.js +31 -0
- package/dist/chunks/chunk-CYB63HHS.js.map +1 -0
- package/dist/chunks/chunk-DFSZKFKS.js +43 -0
- package/dist/chunks/chunk-DFSZKFKS.js.map +1 -0
- package/dist/chunks/chunk-DNRSH4DB.js +854 -0
- package/dist/chunks/chunk-DNRSH4DB.js.map +1 -0
- package/dist/chunks/chunk-DPDCXMHW.js +81 -0
- package/dist/chunks/chunk-DPDCXMHW.js.map +1 -0
- package/dist/chunks/chunk-DQ62VQEH.js +627 -0
- package/dist/chunks/chunk-DQ62VQEH.js.map +1 -0
- package/dist/chunks/chunk-E4G74EVO.js +99 -0
- package/dist/chunks/chunk-E4G74EVO.js.map +1 -0
- package/dist/chunks/chunk-EA7DHOYO.js +6903 -0
- package/dist/chunks/chunk-EA7DHOYO.js.map +1 -0
- package/dist/chunks/chunk-EAFJQRTV.js +56 -0
- package/dist/chunks/chunk-EAFJQRTV.js.map +1 -0
- package/dist/chunks/chunk-EL4TPH56.js +94 -0
- package/dist/chunks/chunk-EL4TPH56.js.map +1 -0
- package/dist/chunks/chunk-FI6LX4IS.js +853 -0
- package/dist/chunks/chunk-FI6LX4IS.js.map +1 -0
- package/dist/chunks/chunk-FORIPEB2.js +241 -0
- package/dist/chunks/chunk-FORIPEB2.js.map +1 -0
- package/dist/chunks/chunk-G3TG4ADZ.js +8 -0
- package/dist/chunks/chunk-G3TG4ADZ.js.map +1 -0
- package/dist/chunks/chunk-H4XZSMVR.js +375 -0
- package/dist/chunks/chunk-H4XZSMVR.js.map +1 -0
- package/dist/chunks/chunk-H6O2X4MD.js +42 -0
- package/dist/chunks/chunk-H6O2X4MD.js.map +1 -0
- package/dist/chunks/chunk-H7W3RQS4.js +627 -0
- package/dist/chunks/chunk-H7W3RQS4.js.map +1 -0
- package/dist/chunks/chunk-HMHM2W7Z.js +241 -0
- package/dist/chunks/chunk-HMHM2W7Z.js.map +1 -0
- package/dist/chunks/chunk-I3RHYDUK.js +6917 -0
- package/dist/chunks/chunk-I3RHYDUK.js.map +1 -0
- package/dist/chunks/chunk-IHNLBY62.js +42 -0
- package/dist/chunks/chunk-IHNLBY62.js.map +1 -0
- package/dist/chunks/chunk-ILA6BNIO.js +31 -0
- package/dist/chunks/chunk-ILA6BNIO.js.map +1 -0
- package/dist/chunks/chunk-JFZF77EN.js +31 -0
- package/dist/chunks/chunk-JFZF77EN.js.map +1 -0
- package/dist/chunks/chunk-JOQ2E6SE.js +92 -0
- package/dist/chunks/chunk-JOQ2E6SE.js.map +1 -0
- package/dist/chunks/chunk-JQBEZ43O.js +240 -0
- package/dist/chunks/chunk-JQBEZ43O.js.map +1 -0
- package/dist/chunks/chunk-JQQ755AG.js +854 -0
- package/dist/chunks/chunk-JQQ755AG.js.map +1 -0
- package/dist/chunks/chunk-JRDTY7YA.js +627 -0
- package/dist/chunks/chunk-JRDTY7YA.js.map +1 -0
- package/dist/chunks/chunk-JU7QJQ6F.js +853 -0
- package/dist/chunks/chunk-JU7QJQ6F.js.map +1 -0
- package/dist/chunks/chunk-K6LM7XK5.js +94 -0
- package/dist/chunks/chunk-K6LM7XK5.js.map +1 -0
- package/dist/chunks/chunk-K6PU3ZO4.js +853 -0
- package/dist/chunks/chunk-K6PU3ZO4.js.map +1 -0
- package/dist/chunks/chunk-KD26ZB2H.js +3445 -0
- package/dist/chunks/chunk-KD26ZB2H.js.map +1 -0
- package/dist/chunks/chunk-KGL6SIOD.js +6893 -0
- package/dist/chunks/chunk-KGL6SIOD.js.map +1 -0
- package/dist/chunks/chunk-KIRLKN6I.js +68 -0
- package/dist/chunks/chunk-KIRLKN6I.js.map +1 -0
- package/dist/chunks/chunk-L74KEUIS.js +94 -0
- package/dist/chunks/chunk-L74KEUIS.js.map +1 -0
- package/dist/chunks/chunk-LEXNKJYF.js +6888 -0
- package/dist/chunks/chunk-LEXNKJYF.js.map +1 -0
- package/dist/chunks/chunk-LVE5GKDT.js +94 -0
- package/dist/chunks/chunk-LVE5GKDT.js.map +1 -0
- package/dist/chunks/chunk-LVZHVB7F.js +31 -0
- package/dist/chunks/chunk-LVZHVB7F.js.map +1 -0
- package/dist/chunks/chunk-MGLNBEW4.js +33 -0
- package/dist/chunks/chunk-MGLNBEW4.js.map +1 -0
- package/dist/chunks/chunk-MS7YRGNG.js +56 -0
- package/dist/chunks/chunk-MS7YRGNG.js.map +1 -0
- package/dist/chunks/chunk-N25ZKAHQ.js +50 -0
- package/dist/chunks/chunk-N25ZKAHQ.js.map +1 -0
- package/dist/chunks/chunk-N46CJQRI.js +94 -0
- package/dist/chunks/chunk-N46CJQRI.js.map +1 -0
- package/dist/chunks/chunk-N4QWREF4.js +375 -0
- package/dist/chunks/chunk-N4QWREF4.js.map +1 -0
- package/dist/chunks/chunk-NM3JA4DH.js +6893 -0
- package/dist/chunks/chunk-NM3JA4DH.js.map +1 -0
- package/dist/chunks/chunk-NOHVLBCB.js +371 -0
- package/dist/chunks/chunk-NOHVLBCB.js.map +1 -0
- package/dist/chunks/chunk-NQSOVEFB.js +31 -0
- package/dist/chunks/chunk-NQSOVEFB.js.map +1 -0
- package/dist/chunks/chunk-OA7AFFCB.js +866 -0
- package/dist/chunks/chunk-OA7AFFCB.js.map +1 -0
- package/dist/chunks/chunk-OLNSD7FR.js +31 -0
- package/dist/chunks/chunk-OLNSD7FR.js.map +1 -0
- package/dist/chunks/chunk-OREE4FRY.js +42 -0
- package/dist/chunks/chunk-OREE4FRY.js.map +1 -0
- package/dist/chunks/chunk-P66WO2Q5.js +870 -0
- package/dist/chunks/chunk-P66WO2Q5.js.map +1 -0
- package/dist/chunks/chunk-PKOIFI5C.js +853 -0
- package/dist/chunks/chunk-PKOIFI5C.js.map +1 -0
- package/dist/chunks/chunk-QFV3VHZ4.js +43 -0
- package/dist/chunks/chunk-QFV3VHZ4.js.map +1 -0
- package/dist/chunks/chunk-QTKNSVUO.js +854 -0
- package/dist/chunks/chunk-QTKNSVUO.js.map +1 -0
- package/dist/chunks/chunk-RSGEN2FF.js +6917 -0
- package/dist/chunks/chunk-RSGEN2FF.js.map +1 -0
- package/dist/chunks/chunk-S6XGFD5B.js +6893 -0
- package/dist/chunks/chunk-S6XGFD5B.js.map +1 -0
- package/dist/chunks/chunk-SOT463MH.js +68 -0
- package/dist/chunks/chunk-SOT463MH.js.map +1 -0
- package/dist/chunks/chunk-SZMR2BFI.js +94 -0
- package/dist/chunks/chunk-SZMR2BFI.js.map +1 -0
- package/dist/chunks/chunk-TDKYWAGB.js +50 -0
- package/dist/chunks/chunk-TDKYWAGB.js.map +1 -0
- package/dist/chunks/chunk-TDNCAAAT.js +627 -0
- package/dist/chunks/chunk-TDNCAAAT.js.map +1 -0
- package/dist/chunks/chunk-TVOHUHS4.js +94 -0
- package/dist/chunks/chunk-TVOHUHS4.js.map +1 -0
- package/dist/chunks/chunk-UE3R54FP.js +853 -0
- package/dist/chunks/chunk-UE3R54FP.js.map +1 -0
- package/dist/chunks/chunk-UUEOV5NM.js +1 -0
- package/dist/chunks/chunk-UUEOV5NM.js.map +1 -0
- package/dist/chunks/chunk-UZRIKXLU.js +94 -0
- package/dist/chunks/chunk-UZRIKXLU.js.map +1 -0
- package/dist/chunks/chunk-VAYGVW5R.js +6903 -0
- package/dist/chunks/chunk-VAYGVW5R.js.map +1 -0
- package/dist/chunks/chunk-VEWD22O5.js +383 -0
- package/dist/chunks/chunk-VEWD22O5.js.map +1 -0
- package/dist/chunks/chunk-VF32HLF4.js +81 -0
- package/dist/chunks/chunk-VF32HLF4.js.map +1 -0
- package/dist/chunks/chunk-VY7QNZVM.js +6893 -0
- package/dist/chunks/chunk-VY7QNZVM.js.map +1 -0
- package/dist/chunks/chunk-W4FWEMCO.js +871 -0
- package/dist/chunks/chunk-W4FWEMCO.js.map +1 -0
- package/dist/chunks/chunk-W5VRVGBL.js +81 -0
- package/dist/chunks/chunk-W5VRVGBL.js.map +1 -0
- package/dist/chunks/chunk-WDGXLQLI.js +94 -0
- package/dist/chunks/chunk-WDGXLQLI.js.map +1 -0
- package/dist/chunks/chunk-WTTOJHIM.js +371 -0
- package/dist/chunks/chunk-WTTOJHIM.js.map +1 -0
- package/dist/chunks/chunk-WZZOX7S2.js +853 -0
- package/dist/chunks/chunk-WZZOX7S2.js.map +1 -0
- package/dist/chunks/chunk-X2G652U7.js +6903 -0
- package/dist/chunks/chunk-X2G652U7.js.map +1 -0
- package/dist/chunks/chunk-XKQP4R6O.js +380 -0
- package/dist/chunks/chunk-XKQP4R6O.js.map +1 -0
- package/dist/chunks/chunk-Z3SN77PI.js +31 -0
- package/dist/chunks/chunk-Z3SN77PI.js.map +1 -0
- package/dist/chunks/chunk-ZECYUSVI.js +43 -0
- package/dist/chunks/chunk-ZECYUSVI.js.map +1 -0
- package/dist/chunks/chunk-ZSPVMGE5.js +94 -0
- package/dist/chunks/chunk-ZSPVMGE5.js.map +1 -0
- package/dist/chunks/chunk-ZTXBJYUG.js +94 -0
- package/dist/chunks/chunk-ZTXBJYUG.js.map +1 -0
- package/dist/exports/computed-item.context.d.ts +1 -1
- package/dist/exports/computed.context.d.ts +1 -1
- package/dist/exports/interaction.d.ts +1 -1
- package/dist/exports/item.context.d.ts +1 -1
- package/dist/exports/qti-assessment-item.context.d.ts +1 -1
- package/dist/exports/qti-condition-expression.d.ts +1 -1
- package/dist/exports/qti-expression.d.ts +1 -1
- package/dist/exports/session.context.d.ts +2 -2
- package/dist/exports/test.context.d.ts +1 -1
- package/dist/exports/variables.d.ts +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +28 -12
- package/dist/item.css +26 -130
- package/dist/qti-components/index.d.ts +2 -2
- package/dist/qti-components/index.js +2 -2
- package/dist/qti-components-jsx.d.ts +91 -9
- package/dist/qti-item/components/item-container.js +3 -3
- package/dist/qti-item/components/item-show-correct-response.d.ts +1 -1
- package/dist/qti-item/components/print-item-variables.d.ts +1 -1
- package/dist/qti-item/core/index.d.ts +1 -1
- package/dist/qti-item/core/index.js +3 -3
- package/dist/qti-loader/index.d.ts +1 -1
- package/dist/qti-loader/index.js +2 -2
- package/dist/qti-response-declaration-C3kpm650.d.ts +1171 -0
- package/dist/qti-test/components/index.d.ts +7 -2
- package/dist/qti-test/components/index.js +25 -9
- package/dist/qti-test/components/test-container.js +3 -3
- package/dist/qti-test/components/test-navigation.d.ts +3 -2
- package/dist/qti-test/components/test-navigation.js +1 -1
- package/dist/qti-test/components/test-next.d.ts +1 -1
- package/dist/qti-test/components/test-next.js +1 -1
- package/dist/qti-test/components/test-prev.d.ts +1 -1
- package/dist/qti-test/components/test-print-context.d.ts +1 -1
- package/dist/qti-test/components/test-print-item-variables.d.ts +1 -1
- package/dist/qti-test/components/test-scoring-buttons.d.ts +2 -1
- package/dist/qti-test/components/test-scoring-buttons.js +1 -1
- package/dist/qti-test/components/test-scoring-feedback.d.ts +9 -1273
- package/dist/qti-test/components/test-scoring-feedback.js +4 -60
- package/dist/qti-test/components/test-scoring-feedback.js.map +1 -1
- package/dist/qti-test/components/test-show-correct-response.d.ts +1 -1
- package/dist/qti-test/components/test-stamp.d.ts +18 -0
- package/dist/qti-test/components/test-stamp.js +9 -0
- package/dist/qti-test/components/test-stamp.js.map +1 -0
- package/dist/qti-test/components/test-view-toggle.d.ts +2 -2
- package/dist/qti-test/components/test-view-toggle.js +1 -1
- package/dist/qti-test/core/index.d.ts +4 -4
- package/dist/qti-test/core/index.js +3 -3
- package/dist/qti-test-feedback-CG8nrjhS.d.ts +98 -0
- package/dist/qti-test-feedback-R38tNXBH.d.ts +98 -0
- package/dist/qti-transformers/index.d.ts +4 -1
- package/dist/qti-transformers/index.js +1 -1
- package/dist/vscode.html-custom-data.json +38 -13
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/qti-test/core/qti-test.ts","../../src/lib/qti-test/core/mixins/test-navigation.mixin.ts","../../src/lib/qti-test/core/mixins/test-view.mixin.ts","../../src/lib/qti-test/core/test-base.ts","../../src/lib/qti-test/core/mixins/test-processing.mixin.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-assessment-item-ref.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-assessment-section.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-assessment-test.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-test-part.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-test-feedback.ts"],"sourcesContent":["import { html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\nimport { TestNavigationMixin, TestViewMixin } from './mixins';\nimport { TestBase } from './test-base';\nimport { TestProcessingMixin } from './mixins/test-processing.mixin';\n\n/**\n * `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.\n *\n * This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.\n *\n * ### Example Usage\n *\n * Minimal example including navigation:\n *\n * ```html\n * <qti-test>\n * <test-navigation>\n * <test-container test-url=\"./path/to/assessment.xml\"></test-container>\n * <nav class=\"flex\">\n * <test-prev></test-prev>\n * <test-next></test-next>\n * </nav>\n * </test-navigation>\n * </qti-test>\n * ```\n *\n * Use the following file structure\n * A qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.\n *\n * ```plaintext\n * Root/\n * ├── index.html\n * └── /assets/api/examples/\n * ├── assessmenttest.xml\n * └── imsmanifest.xml\n *\n * ```\n *\n * ### Test components\n *\n * Use test components inside the qti-test component for added functionality.\n * ### Test next\n * `<test-next> | TestNext`\n *\n * ### Test prev\n *\n * `<test-prev> | TestPrev`\n * ### Test components\n *\n * You can use normal class names to style the elements.\n * And you can use the `test-prev` and `test-next` elements to navigate through the test.\n *\n */\n@customElement('qti-test')\nexport class QtiTest extends TestNavigationMixin(TestViewMixin(TestProcessingMixin(TestBase))) {\n // export class QtiTest extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestBase))) {\n /**\n * Renders the component's template.\n * Provides a default `<slot>` for content projection.\n */\n async connectedCallback(): Promise<void> {\n super.connectedCallback();\n await this.updateComplete;\n this.dispatchEvent(new CustomEvent('qti-test-connected', { detail: this }));\n }\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-test': QtiTest;\n }\n}\n","import { property } from 'lit/decorators.js';\n\nimport { qtiTransformItem } from '../../../qti-transformers';\n\nimport type { QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest } from '../qti-assessment-test';\nimport type { TestBase } from '../test-base';\n\ntype Constructor<T = {}> = abstract new (...args: any[]) => T;\n\n// Define error types for better error handling\nenum NavigationErrorType {\n ITEM_NOT_FOUND = 'item-not-found',\n SECTION_NOT_FOUND = 'section-not-found',\n LOAD_ERROR = 'load-error',\n NETWORK_ERROR = 'network-error',\n TIMEOUT_ERROR = 'timeout-error'\n}\n\ninterface NavigationError {\n type: NavigationErrorType;\n message: string;\n details?: any;\n itemId?: string;\n sectionId?: string;\n}\n\ndeclare class TestNavigationInterface {}\nexport const TestNavigationMixin = <T extends Constructor<TestBase>>(superClass: T) => {\n abstract class TestNavigationClass extends superClass {\n @property({ type: String }) navigate: 'item' | 'section' | null = 'item';\n @property({ type: Boolean, attribute: 'cache-transform' }) cacheTransform: boolean = false;\n @property({ type: Number }) requestTimeout: number = 30000; // Default timeout of 30 seconds\n @property({ type: Boolean }) showLoadingIndicators: boolean = true;\n\n protected _testElement: QtiAssessmentTest;\n private _activeRequests: XMLHttpRequest[] = [];\n private _navigationInProgress: boolean = false;\n private _lastError: NavigationError | null = null;\n\n constructor(...args: any[]) {\n super(...args);\n\n // Handle navigation requests\n this.addEventListener(\n 'qti-request-navigation',\n async ({ detail }: CustomEvent<{ type: 'item' | 'section'; id: string }>) => {\n if (!detail?.id) return;\n\n try {\n // Set navigation in progress and clear errors\n this._navigationInProgress = true;\n this._lastError = null;\n this._dispatchStatusEvent({ loading: true, type: detail.type, id: detail.id });\n\n // Cancel any pending requests before starting new ones\n this._cancelActiveRequests();\n\n if (detail.type === 'item') {\n await this._navigateToItem(detail.id);\n } else if (detail.type === 'section') {\n await this._navigateToSection(detail.id);\n }\n } catch (error) {\n // Convert error to NavigationError if it's not already\n const navError = this._normalizeError(error, detail.type, detail.id);\n this._lastError = navError;\n\n // Dispatch the error event\n this._dispatchErrorEvent(navError);\n\n console.error(`Navigation error (${navError.type}):`, navError.message, navError.details);\n } finally {\n // Always mark navigation as completed\n this._navigationInProgress = false;\n this._dispatchStatusEvent({ loading: false, type: detail.type, id: detail.id });\n }\n }\n );\n\n // Handle test connection\n this.addEventListener('qti-assessment-test-connected', (e: CustomEvent<QtiAssessmentTest>) => {\n this._testElement = e.detail;\n this._initializeNavigation();\n });\n }\n\n /**\n * Initialize navigation when test is first connected\n */\n private _initializeNavigation(): void {\n let id: string | undefined;\n\n if (this.navigate === 'section') {\n id = this._testElement.querySelector<QtiAssessmentSection>('qti-assessment-section')?.identifier;\n }\n if (this.navigate === 'item') {\n id =\n this.sessionContext.navItemId ??\n this._testElement.querySelector<QtiAssessmentItemRef>('qti-assessment-item-ref')?.identifier;\n }\n if (id) {\n this.dispatchEvent(\n new CustomEvent('qti-request-navigation', {\n detail: { type: this.navigate === 'section' ? 'section' : 'item', id },\n bubbles: true,\n composed: true\n })\n );\n }\n }\n\n /**\n * Navigates to a specific item\n */\n private async _navigateToItem(itemId: string): Promise<void> {\n const itemRefEl = this._testElement?.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${itemId}\"]`\n );\n\n if (!itemRefEl) {\n throw {\n type: NavigationErrorType.ITEM_NOT_FOUND,\n message: `Item with identifier \"${itemId}\" not found.`,\n itemId\n };\n }\n\n await this._loadItems([itemId]);\n\n const navPartId = itemRefEl.closest('qti-test-part')?.identifier;\n const navSectionId = itemRefEl.closest('qti-assessment-section')?.identifier;\n\n this.sessionContext = {\n ...this.sessionContext,\n navPartId,\n navSectionId,\n navItemId: itemId,\n navItemLoading: false\n };\n }\n\n /**\n * Navigates to a specific section\n */\n private async _navigateToSection(sectionId: string): Promise<void> {\n const sectionRefEl = this._testElement?.querySelector<QtiAssessmentSection>(\n `qti-assessment-section[identifier=\"${sectionId}\"]`\n );\n\n if (!sectionRefEl) {\n throw {\n type: NavigationErrorType.SECTION_NOT_FOUND,\n message: `Section with identifier \"${sectionId}\" not found.`,\n sectionId\n };\n }\n\n const itemIds = this._getSectionItemIds(sectionId);\n await this._loadItems(itemIds);\n\n const navPartId = sectionRefEl.closest('qti-test-part')?.identifier;\n\n this.sessionContext = {\n ...this.sessionContext,\n navPartId,\n navSectionId: sectionId,\n navItemId: null,\n navItemLoading: false\n };\n }\n\n /**\n * Normalize different error types into a consistent NavigationError format\n */\n private _normalizeError(error: any, navigationType: string, id: string): NavigationError {\n // If it's already a NavigationError, return it\n if (error && error.type && Object.values(NavigationErrorType).includes(error.type)) {\n return error as NavigationError;\n }\n\n // For XMLHttpRequest related errors\n if (error instanceof DOMException && error.name === 'AbortError') {\n return {\n type: NavigationErrorType.NETWORK_ERROR,\n message: 'Navigation was cancelled because a new navigation was requested.',\n details: error\n };\n }\n\n // For timeout errors\n if (error.name === 'TimeoutError' || (error.message && error.message.includes('timeout'))) {\n return {\n type: NavigationErrorType.TIMEOUT_ERROR,\n message: 'Request timed out. Please check your network connection.',\n details: error\n };\n }\n\n // For network errors\n if (error instanceof TypeError && error.message.includes('network')) {\n return {\n type: NavigationErrorType.NETWORK_ERROR,\n message: 'A network error occurred. Please check your connection.',\n details: error\n };\n }\n\n // Default to load error for anything else\n return {\n type: NavigationErrorType.LOAD_ERROR,\n message: `Failed to load ${navigationType}: ${id}`,\n details: error,\n itemId: navigationType === 'item' ? id : undefined,\n sectionId: navigationType === 'section' ? id : undefined\n };\n }\n\n /**\n * Dispatch error event to notify the UI\n */\n private _dispatchErrorEvent(error: NavigationError): void {\n this.dispatchEvent(\n new CustomEvent('qti-navigation-error', {\n detail: error,\n bubbles: true,\n composed: true\n })\n );\n }\n\n /**\n * Dispatch status event to indicate loading state\n */\n private _dispatchStatusEvent(status: { loading: boolean; type: string; id: string }): void {\n if (this.showLoadingIndicators) {\n this.dispatchEvent(\n new CustomEvent('qti-navigation-status', {\n detail: status,\n bubbles: true,\n composed: true\n })\n );\n }\n }\n\n /**\n * Cancels all active HTTP requests\n */\n private _cancelActiveRequests(): void {\n if (this._activeRequests.length > 0) {\n console.log(`Cancelling ${this._activeRequests.length} pending requests`);\n this._activeRequests.forEach(request => {\n if (request && request.readyState !== 4) {\n // 4 is DONE\n request.abort();\n }\n });\n this._activeRequests = [];\n }\n }\n\n /**\n * Load items with improved error handling and timeout\n */\n private async _loadItems(\n itemIds: string[]\n ): Promise<{ itemRef: QtiAssessmentItemRef; doc: any; request: XMLHttpRequest }[]> {\n if (!this._testElement || itemIds.length === 0) return;\n\n const itemRefEls = itemIds.map(id =>\n this._testElement!.querySelector<QtiAssessmentItemRef>(`qti-assessment-item-ref[identifier=\"${id}\"]`)\n );\n\n // Check for missing items\n const missingItems = itemRefEls.reduce((missing, el, index) => {\n if (!el) missing.push(itemIds[index]);\n return missing;\n }, [] as string[]);\n\n if (missingItems.length > 0) {\n const error: NavigationError = {\n type: NavigationErrorType.ITEM_NOT_FOUND,\n message: `One or more items not found: ${missingItems.join(', ')}`,\n details: { missingItems }\n };\n throw error;\n }\n\n this._clearLoadedItems();\n this.sessionContext = { ...this.sessionContext, navItemLoading: true };\n\n const itemLoadPromises = itemRefEls.map(async itemRef => {\n if (!itemRef) return null;\n\n // Create a timeout promise\n const timeoutPromise = new Promise((_, reject) => {\n setTimeout(() => {\n reject({\n name: 'TimeoutError',\n message: `Request for item ${itemRef.identifier} timed out after ${this.requestTimeout}ms`\n });\n }, this.requestTimeout);\n });\n\n try {\n const { api, request } = qtiTransformItem(this.cacheTransform).load(itemRef.href);\n\n // Track the request so it can be cancelled if needed\n if (request instanceof XMLHttpRequest) {\n this._activeRequests.push(request);\n }\n\n // Race the item loading against the timeout\n const apiResult = await Promise.race([api, timeoutPromise]);\n return {\n itemRef,\n doc: (apiResult as any).htmlDoc(),\n request\n };\n } catch (error) {\n // If this is a cancellation or timeout, don't rethrow\n if (\n (error instanceof DOMException && error.name === 'AbortError') ||\n (error && error.name === 'TimeoutError')\n ) {\n console.log(\n `Request for item ${itemRef.identifier} was ${error.name === 'TimeoutError' ? 'timed out' : 'aborted'}`\n );\n return null;\n }\n\n // For other errors, add item context and rethrow\n error.itemId = itemRef.identifier;\n throw error;\n }\n });\n\n try {\n const results = await Promise.all(itemLoadPromises);\n\n // Filter out any null results (from aborted or timed out requests)\n const validResults = results.filter(result => result !== null);\n\n // Apply loaded docs to item refs\n validResults.forEach(({ itemRef, doc }) => {\n if (itemRef && doc) itemRef.xmlDoc = doc;\n });\n\n // Clear the active requests list after all are complete\n this._activeRequests = [];\n\n // Dispatch test loaded event\n requestAnimationFrame(() => {\n this.dispatchEvent(\n new CustomEvent('qti-test-loaded', {\n detail: validResults.map(({ itemRef }) => ({\n identifier: itemRef?.identifier,\n element: itemRef\n })),\n bubbles: true,\n composed: true\n })\n );\n });\n\n // If no valid results but we had items to load, this is an error\n if (validResults.length === 0 && itemIds.length > 0) {\n throw {\n type: NavigationErrorType.LOAD_ERROR,\n message: 'All item requests failed to load',\n details: { itemIds }\n };\n }\n\n return validResults;\n } catch (error) {\n console.error('Error loading items:', error);\n throw error;\n }\n }\n\n /**\n * Gets all item IDs in a section\n */\n private _getSectionItemIds(navSectionId: string): string[] {\n const sectionRefEl = this._testElement?.querySelector<QtiAssessmentSection>(\n `qti-assessment-section[identifier=\"${navSectionId}\"]`\n );\n\n if (!sectionRefEl) {\n throw {\n type: NavigationErrorType.SECTION_NOT_FOUND,\n message: `Section with identifier \"${navSectionId}\" not found.`,\n sectionId: navSectionId\n };\n }\n\n return Array.from(\n this._testElement!.querySelectorAll<QtiAssessmentItemRef>(\n `qti-assessment-section[identifier=\"${navSectionId}\"] > qti-assessment-item-ref`\n )\n ).map(itemRef => itemRef.identifier);\n }\n\n /**\n * Clears all loaded items\n */\n private _clearLoadedItems(): void {\n const itemRefEls = this._testElement?.querySelectorAll<QtiAssessmentItemRef>(\n `qti-assessment-test qti-assessment-item-ref`\n );\n Array.from(itemRefEls || []).forEach(itemElement => {\n itemElement.xmlDoc = null;\n });\n }\n\n /**\n * Retry the last failed navigation\n */\n public retryNavigation(): void {\n if (this._lastError) {\n const type = this._lastError.itemId ? 'item' : 'section';\n const id = this._lastError.itemId || this._lastError.sectionId;\n\n if (id) {\n this.dispatchEvent(\n new CustomEvent('qti-request-navigation', {\n detail: { type, id },\n bubbles: true,\n composed: true\n })\n );\n }\n }\n }\n }\n\n return TestNavigationClass as Constructor<TestNavigationInterface> & T;\n};\n","import type { QtiAssessmentItem } from '../../../qti-components';\nimport type { TestBase } from '../test-base';\n\nexport type View = 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor' | '';\n\ntype Constructor<T = {}> = abstract new (...args: any[]) => T;\n\ndeclare class TestViewInterface {}\n\nexport const TestViewMixin = <T extends Constructor<TestBase>>(superClass: T) => {\n abstract class TestViewClass extends superClass {\n constructor(...args: any[]) {\n super(...args);\n this.sessionContext = { ...this.sessionContext, view: 'candidate' };\n\n this.addEventListener('on-test-switch-view', (e: CustomEvent<View>) => {\n this.sessionContext = { ...this.sessionContext, view: e.detail };\n this._updateElementView();\n });\n this.addEventListener('qti-assessment-test-connected', () => {\n this._updateElementView();\n });\n this.addEventListener('qti-assessment-item-connected', (e: CustomEvent) => {\n this._updateElementView();\n this._setCorrectResponseVisibility(e.detail);\n });\n }\n\n willUpdate(changedProperties: Map<string | number | symbol, unknown>) {\n super.willUpdate(changedProperties);\n if (changedProperties.has('sessionContext')) {\n // if (previousContext && previousContext.view !== this.sessionContext.view) {\n this._updateElementView();\n // }\n }\n }\n\n // Method to handle view updates for elements based on the current context view\n private _updateElementView() {\n if (this._testElement && this._testElement) {\n const viewElements = Array.from(this._testElement.querySelectorAll('[view]'));\n\n viewElements.forEach((element: HTMLElement) => {\n element.classList.toggle('show', element.getAttribute('view') === this.sessionContext.view);\n });\n\n const assessmentItem = this._testElement.querySelector<QtiAssessmentItem>(\n `qti-assessment-item[identifier=\"${this.sessionContext.navItemId}\"]`\n );\n if (assessmentItem) {\n assessmentItem.showCorrectResponse(this.sessionContext.view === 'scorer');\n }\n }\n }\n\n // Event handler for connected QTI assessment items\n private _setCorrectResponseVisibility(assessmentItem: QtiAssessmentItem): void {\n assessmentItem.showCorrectResponse(this.sessionContext.view === 'scorer');\n }\n }\n\n return TestViewClass as Constructor<TestViewInterface> & T;\n};\n","import { provide } from '@lit/context';\nimport { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { INITIAL_TEST_CONTEXT, testContext } from '../../exports/test.context';\nimport { INITIAL_SESSION_CONTEXT, type SessionContext, sessionContext } from '../../exports/session.context';\n\nimport type { ItemContext } from '../../exports/item.context';\nimport type { TestContext } from '../../exports/test.context';\nimport type { QtiAssessmentTest } from './qti-assessment-test';\nimport type { QtiAssessmentItem } from '../../qti-components/';\nimport type { OutcomeVariable, VariableDeclaration } from '../../exports/variables';\n\nexport abstract class TestBase extends LitElement {\n @property({ attribute: false, type: Object })\n @provide({ context: testContext })\n public testContext: Readonly<TestContext> = INITIAL_TEST_CONTEXT;\n\n @property({ attribute: false, type: Object })\n @provide({ context: sessionContext })\n public sessionContext: Readonly<SessionContext> = INITIAL_SESSION_CONTEXT;\n\n protected _testElement: QtiAssessmentTest;\n\n constructor() {\n super();\n\n /**\n * When the test is connected, the items are updated in the test context.\n * An existing context item is updated with the itemRef properties if nessesary.\n */\n this.addEventListener('qti-assessment-test-connected', (e: CustomEvent<QtiAssessmentTest>) => {\n this.testContext = INITIAL_TEST_CONTEXT; // new test, new test context!\n this.sessionContext = INITIAL_SESSION_CONTEXT; // new test, new session context!\n if (this.testContext && this.testContext.items.length > 0) return;\n\n this._testElement = e.detail;\n const items = Array.from(this._testElement.querySelectorAll('qti-assessment-item-ref')).map(itemRef => {\n return {\n href: itemRef.href,\n identifier: itemRef.identifier,\n category: itemRef.category,\n variables: [\n {\n identifier: 'completionStatus',\n value: 'not_attempted',\n type: 'outcome'\n } as OutcomeVariable\n ]\n };\n });\n this.testContext = { ...this.testContext, items };\n });\n\n this.addEventListener('qti-assessment-item-connected', (e: CustomEvent<QtiAssessmentItem>) => {\n const assessmentItem = e.detail as QtiAssessmentItem;\n const assessmentRefId = assessmentItem.closest('qti-assessment-item-ref')?.identifier;\n if (assessmentRefId) {\n assessmentItem.assessmentItemRefId = assessmentRefId;\n }\n this._updateItemInTestContext(e.detail);\n });\n\n this.addEventListener('qti-item-context-updated', (e: CustomEvent<{ itemContext: ItemContext }>) => {\n // const assessmentitem = e.composedPath()[0] as QtiAssessmentItem;\n this._updateItemVariablesInTestContext(e.detail.itemContext.identifier, e.detail.itemContext.variables);\n });\n }\n\n private _updateItemVariablesInTestContext(\n identifier: string,\n variables: readonly VariableDeclaration<string | string[] | null>[]\n ): void {\n // Update the test context with modified variables for the specified item\n this.testContext = {\n ...this.testContext, // Spread existing test context properties\n items: this.testContext.items.map(itemContext => {\n // If the item identifier doesn't match, keep it unchanged\n if (itemContext.identifier !== identifier) {\n return itemContext;\n }\n\n // Update the matching item with new variables\n return {\n ...itemContext, // Keep other properties of the item context\n variables: variables.map(variable => {\n // Find a matching variable in the current item context\n const matchingVariable = itemContext.variables.find(v => v.identifier === variable.identifier);\n\n // Merge matching variable with the new one, or use the new variable if no match\n return matchingVariable ? { ...matchingVariable, ...variable } : variable;\n })\n };\n })\n };\n this.dispatchEvent(\n new CustomEvent('qti-test-context-updated', { detail: this.testContext, bubbles: false, composed: false })\n );\n }\n\n /**\n * Updates the variables of an assessment item in the test context.\n * - Matches the assessment item with the corresponding test context item.\n * - If the item is not found, logs a warning.\n * - Updates variables in the test context if exactly one variable exists.\n * - Otherwise, syncs the assessment item's variables with the test context.\n *\n * @param assessmentItem - The assessment item to update.\n */\n private _updateItemInTestContext = (assessmentItem: QtiAssessmentItem): void => {\n const context = (assessmentItem as any)._context;\n const identifier = context.identifier;\n const fullVariables = context.variables;\n\n // console.log(this._testContext);\n // Find the corresponding item in the test context by identifier\n const itemContext = this.testContext.items.find(i => i?.identifier === identifier);\n\n if (!itemContext) {\n console.warn(`Item IDs between assessment.xml and item.xml should match: ${identifier} is not found!`);\n return;\n }\n\n // Update variables in the test context or sync them to the assessment item\n if (itemContext.variables?.length === 1) {\n // The loaded qti-assessment-item itself has variables which are not in test context yet.\n this._updateItemVariablesInTestContext(identifier, fullVariables);\n } else {\n // Sync the assessment item's variables with the test context\n assessmentItem.variables = [...(itemContext.variables || [])];\n }\n };\n}\n","import type { OutcomeVariable, VariableDeclaration } from '../../../exports/variables';\nimport type { QtiOutcomeProcessing } from '../../../qti-components';\nimport type { TestBase } from '../test-base';\n\ntype Constructor<T = {}> = abstract new (...args: any[]) => T;\n\ndeclare class TestProcessingInterface {\n updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;\n getOutcome(identifier: string): Readonly<OutcomeVariable>;\n getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;\n outcomeProcessing(): boolean;\n}\nexport const TestProcessingMixin = <T extends Constructor<TestBase>>(superClass: T) => {\n abstract class TestProcessingElement extends superClass {\n constructor(...args: any[]) {\n super(...args);\n this.addEventListener('qti-register-variable', (e: CustomEvent<{ variable: any }>) => {\n this.testContext = {\n ...this.testContext,\n testOutcomeVariables: [...(this.testContext.testOutcomeVariables || []), e.detail.variable]\n };\n e.stopPropagation();\n });\n // wordt aangeroepen vanuit de processingtemplate\n this.addEventListener(\n 'qti-set-outcome-value',\n (e: CustomEvent<{ outcomeIdentifier: string; value: string | string[] }>) => {\n const { outcomeIdentifier, value } = e.detail;\n this.updateOutcomeVariable(outcomeIdentifier, value);\n e.stopPropagation();\n }\n );\n }\n\n outcomeProcessing(): boolean {\n const outcomeProcessor = this.querySelector('qti-outcome-processing') as unknown as QtiOutcomeProcessing;\n if (!outcomeProcessor) return false;\n outcomeProcessor?.process();\n return true;\n }\n\n /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */\n\n public updateOutcomeVariable(identifier: string, value: string | string[] | undefined) {\n const outcomeVariable = this.getOutcome(identifier);\n if (!outcomeVariable) {\n console.warn(`Can not set qti-outcome-identifier: ${identifier}, it is not available`);\n return;\n }\n this.testContext = {\n ...this.testContext,\n testOutcomeVariables: this.testContext.testOutcomeVariables?.map(v => {\n if (v.identifier !== identifier) {\n return v;\n }\n return {\n ...v,\n value: outcomeVariable.cardinality === 'single' ? value : [...v.value, value as string]\n };\n })\n };\n }\n\n public getOutcome(identifier: string): Readonly<OutcomeVariable> {\n return this.getVariable(identifier) as OutcomeVariable;\n }\n public getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>> {\n return this.testContext.testOutcomeVariables?.find(v => v.identifier === identifier) || null;\n }\n /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */\n }\n\n return TestProcessingElement as Constructor<TestProcessingInterface> & T;\n};\n","import { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prepareTemplate } from 'stampino';\n\nimport type { TemplateFunction } from 'stampino';\nimport type { QtiAssessmentItem } from '../../../qti-components';\n\n// Converter function to interpret \"true\" and \"false\" as booleans\nconst stringToBooleanConverter = {\n fromAttribute(value: string): boolean {\n return value === 'true';\n },\n toAttribute(value: boolean): string {\n return value ? 'true' : 'false';\n }\n};\n\n// @customElement('qti-assessment-item-ref')\nexport class QtiAssessmentItemRef extends LitElement {\n @property({ type: String }) category?: string;\n @property({ type: String }) identifier?: string;\n @property({ type: Boolean, converter: stringToBooleanConverter }) required?: boolean;\n @property({ type: Boolean, converter: stringToBooleanConverter }) fixed?: boolean;\n @property({ type: String }) href?: string;\n\n // @consume({ context: computedContext, subscribe: true })\n // private computedContext: ComputedContext;\n\n weigths: Map<string, number> = new Map();\n\n @property({ type: Object, attribute: false })\n xmlDoc!: DocumentFragment; // the XMLDocument\n\n protected createRenderRoot(): HTMLElement | DocumentFragment {\n return this;\n }\n\n get assessmentItem(): QtiAssessmentItem | null {\n return this.renderRoot?.querySelector('qti-assessment-item');\n }\n\n myTemplate: TemplateFunction;\n\n async connectedCallback(): Promise<void> {\n // debugger;\n super.connectedCallback();\n\n const templateElement = ((this.getRootNode() as any).host as HTMLElement)\n .closest('qti-test')\n .querySelector<HTMLTemplateElement>('template[item-ref]');\n\n if (templateElement) this.myTemplate = prepareTemplate(templateElement);\n\n await this.updateComplete;\n\n this.dispatchEvent(\n new CustomEvent('qti-assessment-item-ref-connected', {\n bubbles: true,\n composed: true,\n detail: { identifier: this.identifier, href: this.href, category: this.category }\n })\n );\n }\n\n render() {\n return this.myTemplate ? this.myTemplate({ xmlDoc: this.xmlDoc }) : this.xmlDoc;\n }\n}\n\nif (!customElements.get('qti-assessment-item-ref')) {\n customElements.define('qti-assessment-item-ref', QtiAssessmentItemRef);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-assessment-item-ref': QtiAssessmentItemRef;\n }\n}\n","import { consume } from '@lit/context';\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { testContext } from '../../../exports/test.context';\n\nimport type { TestContext } from '../../../exports/test.context';\n\n// https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#Root_AssessmentSection\n\nconst stringToBooleanConverter = {\n fromAttribute(value: string): boolean {\n return value === 'true';\n },\n toAttribute(value: boolean): string {\n return value ? 'true' : 'false';\n }\n};\n\nexport class QtiAssessmentSection extends LitElement {\n @property({ type: String }) identifier: string;\n @property({ type: String }) required: string;\n @property({ type: Boolean, converter: stringToBooleanConverter }) fixed: boolean;\n @property({ type: String }) title: string;\n @property({ type: Boolean, converter: stringToBooleanConverter }) visible: boolean;\n @property({ type: Boolean, converter: stringToBooleanConverter, attribute: 'keep-together' }) keepTogether: boolean;\n\n @consume({ context: testContext, subscribe: true })\n public _testContext?: TestContext;\n\n async connectedCallback(): Promise<void> {\n super.connectedCallback();\n await this.updateComplete;\n this.dispatchEvent(\n new Event('qti-assessment-section-connected', {\n bubbles: true,\n composed: true\n })\n );\n }\n\n render() {\n return html`<slot name=\"qti-rubric-block\"></slot><slot></slot>`;\n }\n}\n\nif (!customElements.get('qti-assessment-section')) {\n customElements.define('qti-assessment-section', QtiAssessmentSection);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-assessment-section': QtiAssessmentSection;\n }\n}\n","import { consume } from '@lit/context';\nimport { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { testContext } from '../../../exports/test.context';\n\nimport type { TestContext } from '../../../exports/test.context';\n\n@customElement('qti-assessment-test')\nexport class QtiAssessmentTest extends LitElement {\n @property({ type: String }) identifier: string;\n @property({ type: String }) title: string;\n\n @consume({ context: testContext, subscribe: true })\n public _testContext?: TestContext;\n\n async connectedCallback(): Promise<void> {\n super.connectedCallback();\n await this.updateComplete;\n this.dispatchEvent(\n new CustomEvent('qti-assessment-test-connected', {\n detail: this,\n bubbles: true,\n composed: true\n })\n );\n }\n\n render() {\n return html` <slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-assessment-test': QtiAssessmentTest;\n }\n}\n","import { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n@customElement('qti-test-part')\nexport class QtiTestPart extends LitElement {\n @property({ type: String }) identifier: string = '';\n @property({ type: String }) title: string = '';\n @property({ type: String }) class: string = '';\n\n @property({ type: String, attribute: 'navigation-mode' })\n NavigationMode: 'linear' | 'nonlinear' = 'nonlinear';\n\n @property({ type: String, attribute: 'submission-mode' })\n submissionMode: 'individual' | 'simultaneous' = 'individual';\n\n async connectedCallback(): Promise<void> {\n super.connectedCallback();\n await this.updateComplete;\n this.dispatchEvent(\n new Event('qti-test-part-connected', {\n bubbles: true,\n composed: true\n })\n );\n }\n\n render() {\n return html` <slot></slot>`;\n }\n}\n\nif (!customElements.get('qti-test-part')) {\n customElements.define('qti-test-part', QtiTestPart);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-test-part': QtiTestPart;\n }\n}\n","import { customElement } from 'lit/decorators.js';\nimport { css, html } from 'lit';\n\nimport { QtiModalFeedback } from '../../../qti-components';\n\n@customElement('qti-test-feedback')\nexport class QtiTestFeedback extends QtiModalFeedback {\n static styles = css`\n :host {\n color: gray;\n }\n `;\n override render() {\n return html``;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-test-feedback': QtiTestFeedback;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,qBAAqB;;;ACD9B,SAAS,gBAAgB;AAUzB,IAAK,sBAAL,kBAAKA,yBAAL;AACE,EAAAA,qBAAA,oBAAiB;AACjB,EAAAA,qBAAA,uBAAoB;AACpB,EAAAA,qBAAA,gBAAa;AACb,EAAAA,qBAAA,mBAAgB;AAChB,EAAAA,qBAAA,mBAAgB;AALb,SAAAA;AAAA,GAAA;AAiBE,IAAM,sBAAsB,CAAkC,eAAkB;AAAA,EACrF,MAAe,4BAA4B,WAAW;AAAA,IAWpD,eAAe,MAAa;AAC1B,YAAM,GAAG,IAAI;AAXa,sBAAsC;AACP,4BAA0B;AACzD,4BAAyB;AACxB,mCAAiC;AAG9D,WAAQ,kBAAoC,CAAC;AAC7C,WAAQ,wBAAiC;AACzC,WAAQ,aAAqC;AAM3C,WAAK;AAAA,QACH;AAAA,QACA,OAAO,EAAE,OAAO,MAA6D;AAC3E,cAAI,CAAC,QAAQ,GAAI;AAEjB,cAAI;AAEF,iBAAK,wBAAwB;AAC7B,iBAAK,aAAa;AAClB,iBAAK,qBAAqB,EAAE,SAAS,MAAM,MAAM,OAAO,MAAM,IAAI,OAAO,GAAG,C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ACvC,UAAM,kBAAkB;AACxB,UAAM,KAAK;AACX,SAAK;AAAA,MACH,IAAI,MAAM,2BAA2B;AAAA,QACnC,SAAS;AAAA,QACT,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAOC;AAAA,EACT;AACF;AAxB8B;AAAA,EAA3BC,UAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GADf,YACiB;AACA;AAAA,EAA3BA,UAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAFf,YAEiB;AACA;AAAA,EAA3BA,UAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAHf,YAGiB;AAG5B;AAAA,EADCA,UAAS,EAAE,MAAM,QAAQ,WAAW,kBAAkB,CAAC;AAAA,GAL7C,YAMX;AAGA;AAAA,EADCA,UAAS,EAAE,MAAM,QAAQ,WAAW,kBAAkB,CAAC;AAAA,GAR7C,YASX;AATW,cAAN;AAAA,EADNC,eAAc,eAAe;AAAA,GACjB;AA2Bb,IAAI,CAAC,eAAe,IAAI,eAAe,GAAG;AACxC,iBAAe,OAAO,iBAAiB,WAAW;AACpD;;;AChCA,SAAS,iBAAAC,sBAAqB;AAC9B,SAAS,KAAK,QAAAC,aAAY;AAKnB,IAAM,kBAAN,cAA8B,iBAAiB;AAAA,EAM3C,SAAS;AAChB,WAAOC;AAAA,EACT;AACF;AATa,gBACJ,SAAS;AAAA;AAAA;AAAA;AAAA;AADL,kBAAN;AAAA,EADNC,eAAc,mBAAmB;AAAA,GACrB;","names":["NavigationErrorType","property","property","LitElement","property","LitElement","property","html","LitElement","property","stringToBooleanConverter","LitElement","html","property","consume","html","LitElement","customElement","property","LitElement","html","property","consume","customElement","html","LitElement","customElement","property","LitElement","html","property","customElement","customElement","html","html","customElement"]}
|
|
@@ -0,0 +1,250 @@
|
|
|
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-G3TG4ADZ.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
|
+
this.addEventListener("test-update-outcome-variable", this._handleTestUpdateOutcomeVariable.bind(this));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Handles the 'test-end-attempt' event.
|
|
34
|
+
* @private
|
|
35
|
+
* @listens TestNavigation#test-end-attempt
|
|
36
|
+
* @param {CustomEvent} event - The custom event object.
|
|
37
|
+
*/
|
|
38
|
+
_handleTestEndAttempt(_event) {
|
|
39
|
+
const qtiItemEl = this._testElement.querySelector(
|
|
40
|
+
`qti-assessment-item-ref[identifier="${this._sessionContext.navItemId}"]`
|
|
41
|
+
);
|
|
42
|
+
const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
|
|
43
|
+
const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;
|
|
44
|
+
qtiAssessmentItemEl.processResponse(true, reportValidityAfterScoring);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Handles the 'test-end-attempt' event.
|
|
48
|
+
* @private
|
|
49
|
+
* @listens TestNavigation#test-show-correct-response
|
|
50
|
+
* @param {CustomEvent} event - The custom event object.
|
|
51
|
+
*/
|
|
52
|
+
_handleTestShowCorrectResponse(event) {
|
|
53
|
+
const qtiItemEl = this._testElement.querySelector(
|
|
54
|
+
`qti-assessment-item-ref[identifier="${this._sessionContext.navItemId}"]`
|
|
55
|
+
);
|
|
56
|
+
const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
|
|
57
|
+
qtiAssessmentItemEl.showCorrectResponse(event.detail);
|
|
58
|
+
}
|
|
59
|
+
_handleTestUpdateOutcomeVariable(event) {
|
|
60
|
+
const qtiItemEl = this._testElement.querySelector(
|
|
61
|
+
`qti-assessment-item-ref[identifier="${event.detail.assessmentItemRefId}"]`
|
|
62
|
+
);
|
|
63
|
+
const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
|
|
64
|
+
qtiAssessmentItemEl.setOutcomeVariable(event.detail.outcomeVariableId, event.detail.value);
|
|
65
|
+
}
|
|
66
|
+
_handleInteractionChanged(_event) {
|
|
67
|
+
if (this.autoScoreItems) {
|
|
68
|
+
const assessmentItem = _event.composedPath()[0].closest("qti-assessment-item");
|
|
69
|
+
const scoreOutcomeIdentifier = assessmentItem.variables.find((v) => v.identifier === "SCORE");
|
|
70
|
+
if (scoreOutcomeIdentifier && scoreOutcomeIdentifier.externalScored === null && assessmentItem.adaptive === "false") {
|
|
71
|
+
assessmentItem.processResponse();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return html`<slot></slot>`;
|
|
77
|
+
}
|
|
78
|
+
/* PK: on test connected we can build the computed context */
|
|
79
|
+
_handleTestConnected(event) {
|
|
80
|
+
this.initContext = null;
|
|
81
|
+
this._testElement = event.detail;
|
|
82
|
+
const testPartElements = Array.from(this._testElement?.querySelectorAll(`qti-test-part`) || []);
|
|
83
|
+
this.computedContext = {
|
|
84
|
+
testParts: testPartElements.map((testPart) => {
|
|
85
|
+
const sectionElements = [...testPart.querySelectorAll(`qti-assessment-section`)];
|
|
86
|
+
const itemElements = [...testPart.querySelectorAll(`qti-assessment-item-ref`)];
|
|
87
|
+
return {
|
|
88
|
+
active: false,
|
|
89
|
+
identifier: testPart.identifier,
|
|
90
|
+
items: itemElements.map((item) => {
|
|
91
|
+
return {
|
|
92
|
+
active: false,
|
|
93
|
+
identifier: item.identifier,
|
|
94
|
+
href: item.href,
|
|
95
|
+
variables: []
|
|
96
|
+
};
|
|
97
|
+
}),
|
|
98
|
+
sections: sectionElements.map((section) => {
|
|
99
|
+
const itemElements2 = [...section.querySelectorAll(`qti-assessment-item-ref`)];
|
|
100
|
+
return {
|
|
101
|
+
active: false,
|
|
102
|
+
identifier: section.identifier,
|
|
103
|
+
title: section.title,
|
|
104
|
+
items: itemElements2.map((item) => {
|
|
105
|
+
return {
|
|
106
|
+
active: false,
|
|
107
|
+
identifier: item.identifier,
|
|
108
|
+
href: item.href,
|
|
109
|
+
variables: []
|
|
110
|
+
};
|
|
111
|
+
})
|
|
112
|
+
};
|
|
113
|
+
})
|
|
114
|
+
};
|
|
115
|
+
})
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/* PK: on item connected we can add item only properties in the xml */
|
|
119
|
+
_handleItemConnected(event) {
|
|
120
|
+
const itemElement = event.detail;
|
|
121
|
+
this.computedContext = {
|
|
122
|
+
...this.computedContext,
|
|
123
|
+
testParts: this.computedContext.testParts.map((testPart) => {
|
|
124
|
+
return {
|
|
125
|
+
...testPart,
|
|
126
|
+
sections: testPart.sections.map((section) => {
|
|
127
|
+
return {
|
|
128
|
+
...section,
|
|
129
|
+
items: section.items.map((item) => {
|
|
130
|
+
if (item.identifier !== itemElement.parentElement.getAttribute("identifier")) {
|
|
131
|
+
return item;
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
...item,
|
|
135
|
+
assessmentItemIdentifier: itemElement.getAttribute("identifier"),
|
|
136
|
+
label: itemElement.getAttribute("label"),
|
|
137
|
+
title: itemElement.title,
|
|
138
|
+
adaptive: itemElement.adaptive == "true" || false,
|
|
139
|
+
timeDependent: itemElement.timeDependent == "true" || false,
|
|
140
|
+
variables: itemElement._context.variables
|
|
141
|
+
};
|
|
142
|
+
})
|
|
143
|
+
};
|
|
144
|
+
})
|
|
145
|
+
};
|
|
146
|
+
})
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/* PK: on every change of the candidate we will recomputed the computedContext */
|
|
150
|
+
willUpdate(_changedProperties) {
|
|
151
|
+
if (!this.computedContext) return;
|
|
152
|
+
let itemIndex = 1;
|
|
153
|
+
this.computedContext = {
|
|
154
|
+
...this.computedContext,
|
|
155
|
+
testParts: this.computedContext.testParts.map((testPart) => {
|
|
156
|
+
return {
|
|
157
|
+
...testPart,
|
|
158
|
+
active: this._sessionContext?.navPartId === testPart.identifier || false,
|
|
159
|
+
sections: testPart.sections.map((section) => {
|
|
160
|
+
return {
|
|
161
|
+
...section,
|
|
162
|
+
active: this._sessionContext?.navSectionId === section.identifier || false,
|
|
163
|
+
completed: section.items.every(
|
|
164
|
+
(item) => this._testContext.items.find((i) => i.identifier === item.identifier)?.variables.find((v) => v.identifier === "completionStatus").value === "completed"
|
|
165
|
+
),
|
|
166
|
+
items: section.items.map((item) => {
|
|
167
|
+
const itemContext = this._testContext?.items.find((i) => i.identifier === item.identifier);
|
|
168
|
+
let computedItem;
|
|
169
|
+
if (this.initContext) {
|
|
170
|
+
const initContext = this.initContext.find((i) => i.identifier === item.identifier);
|
|
171
|
+
computedItem = { ...item, ...itemContext, ...initContext };
|
|
172
|
+
} else {
|
|
173
|
+
computedItem = { ...item, ...itemContext };
|
|
174
|
+
}
|
|
175
|
+
const rawscore = computedItem.variables?.find((vr) => vr.identifier == "SCORE")?.value;
|
|
176
|
+
const score = parseInt(rawscore?.toString());
|
|
177
|
+
const completionStatus = computedItem.variables?.find((v) => v.identifier === "completionStatus")?.value;
|
|
178
|
+
const categories = computedItem.category ? computedItem.category?.split(" ") : [];
|
|
179
|
+
const type = categories.includes(this.configContext?.infoItemCategory) ? "info" : "regular";
|
|
180
|
+
const active = this._sessionContext?.navItemId === computedItem.identifier || false;
|
|
181
|
+
const correct = (
|
|
182
|
+
// this._testContext.view === 'scorer' &&
|
|
183
|
+
type == "regular" && score !== void 0 && !isNaN(score) && score > 0 || false
|
|
184
|
+
);
|
|
185
|
+
const incorrect = (
|
|
186
|
+
// this._testContext.view === 'scorer' &&
|
|
187
|
+
type == "regular" && score !== void 0 && !isNaN(score) && score <= 0 || false
|
|
188
|
+
);
|
|
189
|
+
const completed = (
|
|
190
|
+
// this._testContext.view === 'candidate' &&
|
|
191
|
+
completionStatus === "completed"
|
|
192
|
+
);
|
|
193
|
+
const response = computedItem.variables?.find((v) => v.identifier === "RESPONSE")?.value || "";
|
|
194
|
+
const index = categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;
|
|
195
|
+
const view = this._sessionContext.view;
|
|
196
|
+
return {
|
|
197
|
+
...computedItem,
|
|
198
|
+
// rawscore, // not necessary for outside world
|
|
199
|
+
// score, // not necessary for outside world
|
|
200
|
+
// completionStatus, // not necessary for outside world
|
|
201
|
+
// categories, // not necessary for outside world
|
|
202
|
+
type,
|
|
203
|
+
active,
|
|
204
|
+
correct,
|
|
205
|
+
incorrect,
|
|
206
|
+
completed,
|
|
207
|
+
index,
|
|
208
|
+
response,
|
|
209
|
+
view
|
|
210
|
+
};
|
|
211
|
+
})
|
|
212
|
+
};
|
|
213
|
+
})
|
|
214
|
+
};
|
|
215
|
+
})
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
__decorateClass([
|
|
220
|
+
property({ type: String })
|
|
221
|
+
], TestNavigation.prototype, "identifier", 2);
|
|
222
|
+
__decorateClass([
|
|
223
|
+
state()
|
|
224
|
+
], TestNavigation.prototype, "initContext", 2);
|
|
225
|
+
__decorateClass([
|
|
226
|
+
state(),
|
|
227
|
+
consume({ context: testContext, subscribe: true })
|
|
228
|
+
], TestNavigation.prototype, "_testContext", 2);
|
|
229
|
+
__decorateClass([
|
|
230
|
+
state(),
|
|
231
|
+
consume({ context: sessionContext, subscribe: true })
|
|
232
|
+
], TestNavigation.prototype, "_sessionContext", 2);
|
|
233
|
+
__decorateClass([
|
|
234
|
+
state()
|
|
235
|
+
], TestNavigation.prototype, "configContext", 2);
|
|
236
|
+
__decorateClass([
|
|
237
|
+
state(),
|
|
238
|
+
provide({ context: computedContext })
|
|
239
|
+
], TestNavigation.prototype, "computedContext", 2);
|
|
240
|
+
__decorateClass([
|
|
241
|
+
property({ type: Boolean, attribute: "auto-score-items" })
|
|
242
|
+
], TestNavigation.prototype, "autoScoreItems", 2);
|
|
243
|
+
TestNavigation = __decorateClass([
|
|
244
|
+
customElement("test-navigation")
|
|
245
|
+
], TestNavigation);
|
|
246
|
+
|
|
247
|
+
export {
|
|
248
|
+
TestNavigation
|
|
249
|
+
};
|
|
250
|
+
//# sourceMappingURL=chunk-BB7V3D2X.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 protected _testContext?: TestContext;\n\n @state()\n @consume({ context: sessionContext, subscribe: true })\n protected _sessionContext?: SessionContext;\n\n @state()\n protected configContext: ConfigContext = {};\n\n @state()\n @provide({ context: computedContext })\n protected 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 this.addEventListener('test-update-outcome-variable', this._handleTestUpdateOutcomeVariable.bind(this));\n }\n\n /**\n * Handles the 'test-end-attempt' event.\n * @private\n * @listens TestNavigation#test-end-attempt\n * @param {CustomEvent} event - The custom event object.\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 /**\n * Handles the 'test-end-attempt' event.\n * @private\n * @listens TestNavigation#test-show-correct-response\n * @param {CustomEvent} event - The custom event object.\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 _handleTestUpdateOutcomeVariable(event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${event.detail.assessmentItemRefId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n qtiAssessmentItemEl.setOutcomeVariable(event.detail.outcomeVariableId, event.detail.value);\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 (\n scoreOutcomeIdentifier &&\n scoreOutcomeIdentifier.externalScored === null &&\n assessmentItem.adaptive === 'false'\n ) {\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 private _handleTestConnected(event: CustomEvent) {\n this.initContext = null;\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 const itemElements = [...testPart.querySelectorAll<QtiAssessmentItemRef>(`qti-assessment-item-ref`)];\n return {\n active: false,\n identifier: testPart.identifier,\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 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\n /* PK: on item connected we can add item only properties in the xml */\n private _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.parentElement.getAttribute('identifier')) {\n return item;\n }\n return {\n ...item,\n assessmentItemIdentifier: itemElement.getAttribute('identifier'),\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":";;;;;;;;;;;;;;AAAA,SAAS,SAAS,eAAe;AACjC,SAAS,MAAM,kBAAkB;AACjC,SAAS,eAAe,UAAU,aAAa;AA0BxC,IAAM,iBAAN,cAA6B,WAAW;AAAA,EAyB7C,cAAc;AACZ,UAAM;AAzBoB,sBAAa;AAGzC,SAAO,cAA4D,CAAC;AAWpE,SAAU,gBAA+B,CAAC;AAMkB,0BAAiB;AAM3E,SAAK,iBAAiB,iCAAiC,KAAK,qBAAqB,KAAK,IAAI,CAAC;AAC3F,SAAK,iBAAiB,iCAAiC,KAAK,qBAAqB,KAAK,IAAI,CAAC;AAE3F,SAAK,iBAAiB,2BAA2B,KAAK,0BAA0B,KAAK,IAAI,CAAC;AAE1F,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