@citolab/qti-components 7.3.0 → 7.3.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.
Files changed (393) hide show
  1. package/cdn/chunks/chunk-2F7QLIQX.js +2 -0
  2. package/cdn/chunks/chunk-2TNA4LAA.js +5 -0
  3. package/cdn/chunks/chunk-3KGTXIVH.js +8 -0
  4. package/cdn/chunks/chunk-3XOKPK45.js +2 -0
  5. package/cdn/chunks/chunk-42P7F3FC.js +73 -0
  6. package/cdn/chunks/chunk-4DVWMPIY.js +1 -0
  7. package/cdn/chunks/chunk-4HPXSOYI.js +8 -0
  8. package/cdn/chunks/chunk-4NRLYCX4.js +1 -0
  9. package/cdn/chunks/chunk-57WZEH27.js +8 -0
  10. package/cdn/chunks/chunk-5EXLLJZQ.js +1 -0
  11. package/cdn/chunks/chunk-5F23N5NY.js +1 -0
  12. package/cdn/chunks/chunk-5PA3GEIX.js +2 -0
  13. package/cdn/chunks/chunk-5TWGFLOQ.js +8 -0
  14. package/cdn/chunks/chunk-65CZNGQC.js +55 -0
  15. package/cdn/chunks/chunk-65EW446C.js +6 -0
  16. package/cdn/chunks/chunk-6BGG2JJR.js +24 -0
  17. package/cdn/chunks/chunk-6IUESNBB.js +8 -0
  18. package/cdn/chunks/chunk-6K2ZYRFF.js +8 -0
  19. package/cdn/chunks/chunk-774W6MHT.js +8 -0
  20. package/cdn/chunks/chunk-7Q4OOYXA.js +1 -0
  21. package/cdn/chunks/chunk-7VGFTHNK.js +1492 -0
  22. package/cdn/chunks/chunk-7WJYJA45.js +59 -0
  23. package/cdn/chunks/chunk-AA47N7CH.js +1 -0
  24. package/cdn/chunks/chunk-AEDTBA25.js +1 -0
  25. package/cdn/chunks/chunk-AZLSV74C.js +8 -0
  26. package/cdn/chunks/chunk-BB7HFL7K.js +1 -0
  27. package/cdn/chunks/chunk-BMOQZEO2.js +1 -0
  28. package/cdn/chunks/chunk-C26NWYVO.js +2 -0
  29. package/cdn/chunks/chunk-CIIKVJF7.js +2 -0
  30. package/cdn/chunks/chunk-CMGZUMGV.js +2 -0
  31. package/cdn/chunks/chunk-D4A6UBNV.js +41 -0
  32. package/cdn/chunks/chunk-DCSFLPLR.js +8 -0
  33. package/cdn/chunks/chunk-DDA3QNFL.js +1 -0
  34. package/cdn/chunks/chunk-DEWOG57H.js +1 -0
  35. package/cdn/chunks/chunk-DHC7PAPQ.js +8 -0
  36. package/cdn/chunks/chunk-DNY4M5BB.js +8 -0
  37. package/cdn/chunks/chunk-DPR3I67K.js +1 -0
  38. package/cdn/chunks/chunk-DQTXWGN5.js +48 -0
  39. package/cdn/chunks/chunk-DTLI3JJ6.js +8 -0
  40. package/cdn/chunks/chunk-DZTNCG5K.js +2 -0
  41. package/cdn/chunks/chunk-E46WIJKQ.js +5 -0
  42. package/cdn/chunks/chunk-ER2TCZX3.js +8 -0
  43. package/cdn/chunks/chunk-EVDUKDZH.js +1 -0
  44. package/cdn/chunks/chunk-EWRXIRZJ.js +8 -0
  45. package/cdn/chunks/chunk-EZJSKOLP.js +5 -0
  46. package/cdn/chunks/chunk-F6VI7SEZ.js +5 -0
  47. package/cdn/chunks/chunk-FGR3JZXL.js +48 -0
  48. package/cdn/chunks/chunk-FREEF447.js +2 -0
  49. package/cdn/chunks/chunk-G66B3SKF.js +2 -0
  50. package/cdn/chunks/chunk-GFVOBN7D.js +8 -0
  51. package/cdn/chunks/chunk-GOXH3AYH.js +5 -0
  52. package/cdn/chunks/chunk-GVKNKCU6.js +1492 -0
  53. package/cdn/chunks/chunk-H3WTP2FL.js +2 -0
  54. package/cdn/chunks/chunk-HE62L5UT.js +1 -0
  55. package/cdn/chunks/chunk-HH6AFB54.js +1492 -0
  56. package/cdn/chunks/chunk-IEHCQ5EK.js +2 -0
  57. package/cdn/chunks/chunk-IEOQ2ZTN.js +3461 -0
  58. package/cdn/chunks/chunk-IPAFN4CK.js +1 -0
  59. package/cdn/chunks/chunk-JHBAY3L2.js +8 -0
  60. package/cdn/chunks/chunk-JKUNDLQR.js +1 -0
  61. package/cdn/chunks/chunk-KLXWDMHE.js +1 -0
  62. package/cdn/chunks/chunk-KP5NLKZ5.js +1 -0
  63. package/cdn/chunks/chunk-KXXIBL5Z.js +8 -0
  64. package/cdn/chunks/chunk-LBB5CUEL.js +8 -0
  65. package/cdn/chunks/chunk-LHAF7DPW.js +2 -0
  66. package/cdn/chunks/chunk-LUNOUEBJ.js +8 -0
  67. package/cdn/chunks/chunk-M3RRG6KY.js +1 -0
  68. package/cdn/chunks/chunk-M4LLTEOD.js +8 -0
  69. package/cdn/chunks/chunk-MH2Z24XO.js +1 -0
  70. package/cdn/chunks/chunk-N3YBYEEI.js +2 -0
  71. package/cdn/chunks/chunk-N5BGKNYJ.js +5 -0
  72. package/cdn/chunks/chunk-NPVEQKUL.js +2 -0
  73. package/cdn/chunks/chunk-ODMQDF6O.js +1 -0
  74. package/cdn/chunks/chunk-OW2KBDBG.js +8 -0
  75. package/cdn/chunks/chunk-PQJD55CB.js +8 -0
  76. package/cdn/chunks/chunk-PUI3LIFH.js +0 -0
  77. package/cdn/chunks/chunk-QHO7IBHQ.js +2 -0
  78. package/cdn/chunks/chunk-QTTXN3LY.js +2 -0
  79. package/cdn/chunks/chunk-RQHP2XKF.js +8 -0
  80. package/cdn/chunks/chunk-RUQA3BBO.js +8 -0
  81. package/cdn/chunks/chunk-RZGOUINM.js +1 -0
  82. package/cdn/chunks/chunk-SAXGGMLU.js +8 -0
  83. package/cdn/chunks/chunk-SDSLRCON.js +1 -0
  84. package/cdn/chunks/chunk-SDWXKOZK.js +8 -0
  85. package/cdn/chunks/chunk-T4K75PFT.js +1 -0
  86. package/cdn/chunks/chunk-TC54XTRL.js +17 -0
  87. package/cdn/chunks/chunk-TDS4LYUD.js +8 -0
  88. package/cdn/chunks/chunk-U5Y5T4ZS.js +17 -0
  89. package/cdn/chunks/chunk-U7DWV6B3.js +5 -0
  90. package/cdn/chunks/chunk-UB5MEEVK.js +8 -0
  91. package/cdn/chunks/chunk-UN2WT4WS.js +2 -0
  92. package/cdn/chunks/chunk-UU5PAEUU.js +1 -0
  93. package/cdn/chunks/chunk-UX37G5GZ.js +8 -0
  94. package/cdn/chunks/chunk-UZYJ2YET.js +1 -0
  95. package/cdn/chunks/chunk-VGNWADCN.js +1 -0
  96. package/cdn/chunks/chunk-VXQNVDBK.js +1 -0
  97. package/cdn/chunks/chunk-W6GUPXZV.js +1492 -0
  98. package/cdn/chunks/chunk-WC5YAZM2.js +5 -0
  99. package/cdn/chunks/chunk-WLTLNYTT.js +8 -0
  100. package/cdn/chunks/chunk-WNRGD6XK.js +1 -0
  101. package/cdn/chunks/chunk-X6XQ42NC.js +1 -0
  102. package/cdn/chunks/chunk-X6XRXEW2.js +2 -0
  103. package/cdn/chunks/chunk-XB37N5IN.js +1 -0
  104. package/cdn/chunks/chunk-XCXGSLM4.js +2 -0
  105. package/cdn/chunks/chunk-XFUCW4CT.js +5 -0
  106. package/cdn/chunks/chunk-XQIN4PIX.js +10 -0
  107. package/cdn/chunks/chunk-XY3YXM26.js +8 -0
  108. package/cdn/chunks/chunk-YGJSWINU.js +1 -0
  109. package/cdn/chunks/chunk-YXM5LVFL.js +1 -0
  110. package/cdn/chunks/chunk-YXZ773BI.js +1 -0
  111. package/cdn/chunks/chunk-YZCE7WOL.js +1 -0
  112. package/cdn/chunks/chunk-ZJK77QYF.js +8 -0
  113. package/cdn/chunks/chunk-ZSLIH67U.js +1 -0
  114. package/cdn/exports/computed-item.context.js +1 -1
  115. package/cdn/exports/computed.context.js +1 -1
  116. package/cdn/exports/config.context.js +1 -1
  117. package/cdn/exports/interaction.js +1 -1
  118. package/cdn/exports/qti-assessment-item.context.js +1 -1
  119. package/cdn/exports/qti-condition-expression.js +1 -1
  120. package/cdn/exports/qti-expression.js +1 -1
  121. package/cdn/exports/session.context.js +1 -1
  122. package/cdn/exports/test.context.js +1 -1
  123. package/cdn/index.global.js +1 -1
  124. package/cdn/index.js +1 -1
  125. package/cdn/qti-components/index.js +1 -1
  126. package/cdn/qti-item/components/item-container.js +1 -1
  127. package/cdn/qti-item/components/item-show-correct-response.js +1 -1
  128. package/cdn/qti-item/components/print-item-variables.js +1 -1
  129. package/cdn/qti-item/components/styles.js +1 -1
  130. package/cdn/qti-item/core/index.js +1 -1
  131. package/cdn/qti-test/components/index.js +1 -1
  132. package/cdn/qti-test/components/styles.js +1 -1
  133. package/cdn/qti-test/components/test-check-item.js +1 -0
  134. package/cdn/qti-test/components/test-container.js +1 -1
  135. package/cdn/qti-test/components/test-end-attempt.js +1 -1
  136. package/cdn/qti-test/components/test-item-link.js +1 -1
  137. package/cdn/qti-test/components/test-navigation.js +1 -1
  138. package/cdn/qti-test/components/test-next.js +1 -1
  139. package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
  140. package/cdn/qti-test/components/test-prev.js +1 -1
  141. package/cdn/qti-test/components/test-print-context.js +1 -1
  142. package/cdn/qti-test/components/test-print-item-variables.js +1 -1
  143. package/cdn/qti-test/components/test-scoring-buttons.js +1 -1
  144. package/cdn/qti-test/components/test-scoring-feedback.js +1 -1
  145. package/cdn/qti-test/components/test-section-buttons-stamp.js +1 -1
  146. package/cdn/qti-test/components/test-section-link.js +1 -1
  147. package/cdn/qti-test/components/test-show-correct-response.js +1 -1
  148. package/cdn/qti-test/components/test-stamp.js +1 -1
  149. package/cdn/qti-test/components/test-view-toggle.js +1 -1
  150. package/cdn/qti-test/components/test-view.js +1 -1
  151. package/cdn/qti-test/core/index.js +1 -1
  152. package/dist/chunks/chunk-24ZEUR6V.js +91 -0
  153. package/dist/chunks/chunk-24ZEUR6V.js.map +1 -0
  154. package/dist/chunks/chunk-25SPL2N7.js +296 -0
  155. package/dist/chunks/chunk-25SPL2N7.js.map +1 -0
  156. package/dist/chunks/chunk-2L6I23IQ.js +308 -0
  157. package/dist/chunks/chunk-2L6I23IQ.js.map +1 -0
  158. package/dist/chunks/chunk-3FIHHFFC.js +307 -0
  159. package/dist/chunks/chunk-3FIHHFFC.js.map +1 -0
  160. package/dist/chunks/chunk-3IAZELYI.js +90 -0
  161. package/dist/chunks/chunk-3IAZELYI.js.map +1 -0
  162. package/dist/chunks/chunk-3YJPKRFS.js +91 -0
  163. package/dist/chunks/chunk-3YJPKRFS.js.map +1 -0
  164. package/dist/chunks/chunk-5AZFPSD4.js +87 -0
  165. package/dist/chunks/chunk-5AZFPSD4.js.map +1 -0
  166. package/dist/chunks/chunk-5OZP32ZZ.js +90 -0
  167. package/dist/chunks/chunk-5OZP32ZZ.js.map +1 -0
  168. package/dist/chunks/chunk-5QGG5BMS.js +45 -0
  169. package/dist/chunks/chunk-5QGG5BMS.js.map +1 -0
  170. package/dist/chunks/chunk-5SU6S5L4.js +94 -0
  171. package/dist/chunks/chunk-5SU6S5L4.js.map +1 -0
  172. package/dist/chunks/chunk-5WHKITF6.js +90 -0
  173. package/dist/chunks/chunk-5WHKITF6.js.map +1 -0
  174. package/dist/chunks/chunk-64JRMFTB.js +93 -0
  175. package/dist/chunks/chunk-64JRMFTB.js.map +1 -0
  176. package/dist/chunks/chunk-6BNGNEZW.js +308 -0
  177. package/dist/chunks/chunk-6BNGNEZW.js.map +1 -0
  178. package/dist/chunks/chunk-6DMR7L77.js +44 -0
  179. package/dist/chunks/chunk-6DMR7L77.js.map +1 -0
  180. package/dist/chunks/chunk-6N4WVDBR.js +95 -0
  181. package/dist/chunks/chunk-6N4WVDBR.js.map +1 -0
  182. package/dist/chunks/chunk-6SGCKTJ6.js +88 -0
  183. package/dist/chunks/chunk-6SGCKTJ6.js.map +1 -0
  184. package/dist/chunks/chunk-6U3U2UIA.js +887 -0
  185. package/dist/chunks/chunk-6U3U2UIA.js.map +1 -0
  186. package/dist/chunks/chunk-745MFIEL.js +238 -0
  187. package/dist/chunks/chunk-745MFIEL.js.map +1 -0
  188. package/dist/chunks/chunk-7NNYV6VG.js +95 -0
  189. package/dist/chunks/chunk-7NNYV6VG.js.map +1 -0
  190. package/dist/chunks/chunk-7OMJMXHK.js +50 -0
  191. package/dist/chunks/chunk-7OMJMXHK.js.map +1 -0
  192. package/dist/chunks/chunk-7YI2I5U2.js +238 -0
  193. package/dist/chunks/chunk-7YI2I5U2.js.map +1 -0
  194. package/dist/chunks/chunk-AOXSRF6N.js +7309 -0
  195. package/dist/chunks/chunk-AOXSRF6N.js.map +1 -0
  196. package/dist/chunks/chunk-B7BLTXGS.js +88 -0
  197. package/dist/chunks/chunk-B7BLTXGS.js.map +1 -0
  198. package/dist/chunks/chunk-BI3RICFC.js +300 -0
  199. package/dist/chunks/chunk-BI3RICFC.js.map +1 -0
  200. package/dist/chunks/chunk-BTZQDUT6.js +44 -0
  201. package/dist/chunks/chunk-BTZQDUT6.js.map +1 -0
  202. package/dist/chunks/chunk-CTPQMLOA.js +88 -0
  203. package/dist/chunks/chunk-CTPQMLOA.js.map +1 -0
  204. package/dist/chunks/chunk-DGPPAIBY.js +307 -0
  205. package/dist/chunks/chunk-DGPPAIBY.js.map +1 -0
  206. package/dist/chunks/chunk-DJ7XZ2UR.js +91 -0
  207. package/dist/chunks/chunk-DJ7XZ2UR.js.map +1 -0
  208. package/dist/chunks/chunk-DLCEFRYR.js +887 -0
  209. package/dist/chunks/chunk-DLCEFRYR.js.map +1 -0
  210. package/dist/chunks/chunk-DLVJXJLB.js +90 -0
  211. package/dist/chunks/chunk-DLVJXJLB.js.map +1 -0
  212. package/dist/chunks/chunk-EVOMGJVT.js +95 -0
  213. package/dist/chunks/chunk-EVOMGJVT.js.map +1 -0
  214. package/dist/chunks/chunk-EYWDGFIX.js +89 -0
  215. package/dist/chunks/chunk-EYWDGFIX.js.map +1 -0
  216. package/dist/chunks/chunk-F5OPIJ4X.js +90 -0
  217. package/dist/chunks/chunk-F5OPIJ4X.js.map +1 -0
  218. package/dist/chunks/chunk-FEXZ676E.js +304 -0
  219. package/dist/chunks/chunk-FEXZ676E.js.map +1 -0
  220. package/dist/chunks/chunk-FH34FO6K.js +238 -0
  221. package/dist/chunks/chunk-FH34FO6K.js.map +1 -0
  222. package/dist/chunks/chunk-FIAJJAPH.js +85 -0
  223. package/dist/chunks/chunk-FIAJJAPH.js.map +1 -0
  224. package/dist/chunks/chunk-FQVFSQFE.js +238 -0
  225. package/dist/chunks/chunk-FQVFSQFE.js.map +1 -0
  226. package/dist/chunks/chunk-G3M2356A.js +889 -0
  227. package/dist/chunks/chunk-G3M2356A.js.map +1 -0
  228. package/dist/chunks/chunk-GA2EWU3T.js +102 -0
  229. package/dist/chunks/chunk-GA2EWU3T.js.map +1 -0
  230. package/dist/chunks/chunk-GEEYD5SH.js +7310 -0
  231. package/dist/chunks/chunk-GEEYD5SH.js.map +1 -0
  232. package/dist/chunks/chunk-GIHLVK5S.js +103 -0
  233. package/dist/chunks/chunk-GIHLVK5S.js.map +1 -0
  234. package/dist/chunks/chunk-GV4LNJKM.js +248 -0
  235. package/dist/chunks/chunk-GV4LNJKM.js.map +1 -0
  236. package/dist/chunks/chunk-H2HBYOZZ.js +90 -0
  237. package/dist/chunks/chunk-H2HBYOZZ.js.map +1 -0
  238. package/dist/chunks/chunk-H6RDLSTK.js +87 -0
  239. package/dist/chunks/chunk-H6RDLSTK.js.map +1 -0
  240. package/dist/chunks/chunk-HIFFHC2Z.js +887 -0
  241. package/dist/chunks/chunk-HIFFHC2Z.js.map +1 -0
  242. package/dist/chunks/chunk-HUQGTGCK.js +91 -0
  243. package/dist/chunks/chunk-HUQGTGCK.js.map +1 -0
  244. package/dist/chunks/chunk-IAZM2LUL.js +87 -0
  245. package/dist/chunks/chunk-IAZM2LUL.js.map +1 -0
  246. package/dist/chunks/chunk-IDRQNT6W.js +86 -0
  247. package/dist/chunks/chunk-IDRQNT6W.js.map +1 -0
  248. package/dist/chunks/chunk-IRKYNGZN.js +90 -0
  249. package/dist/chunks/chunk-IRKYNGZN.js.map +1 -0
  250. package/dist/chunks/chunk-IWQR5TSB.js +43 -0
  251. package/dist/chunks/chunk-IWQR5TSB.js.map +1 -0
  252. package/dist/chunks/chunk-J4RNYEIE.js +85 -0
  253. package/dist/chunks/chunk-J4RNYEIE.js.map +1 -0
  254. package/dist/chunks/chunk-K5F4CT37.js +82 -0
  255. package/dist/chunks/chunk-K5F4CT37.js.map +1 -0
  256. package/dist/chunks/chunk-L7HOSFNE.js +307 -0
  257. package/dist/chunks/chunk-L7HOSFNE.js.map +1 -0
  258. package/dist/chunks/chunk-LBL5YIK7.js +94 -0
  259. package/dist/chunks/chunk-LBL5YIK7.js.map +1 -0
  260. package/dist/chunks/chunk-MGC6UY5C.js +85 -0
  261. package/dist/chunks/chunk-MGC6UY5C.js.map +1 -0
  262. package/dist/chunks/chunk-MK5KU4FM.js +7303 -0
  263. package/dist/chunks/chunk-MK5KU4FM.js.map +1 -0
  264. package/dist/chunks/chunk-MKPVFZUH.js +88 -0
  265. package/dist/chunks/chunk-MKPVFZUH.js.map +1 -0
  266. package/dist/chunks/chunk-MTWSJYVA.js +86 -0
  267. package/dist/chunks/chunk-MTWSJYVA.js.map +1 -0
  268. package/dist/chunks/chunk-NJTIAZBT.js +236 -0
  269. package/dist/chunks/chunk-NJTIAZBT.js.map +1 -0
  270. package/dist/chunks/chunk-O2AQND3R.js +889 -0
  271. package/dist/chunks/chunk-O2AQND3R.js.map +1 -0
  272. package/dist/chunks/chunk-O2SG4LAF.js +294 -0
  273. package/dist/chunks/chunk-O2SG4LAF.js.map +1 -0
  274. package/dist/chunks/chunk-POGGEBHU.js +294 -0
  275. package/dist/chunks/chunk-POGGEBHU.js.map +1 -0
  276. package/dist/chunks/chunk-PRO3U224.js +91 -0
  277. package/dist/chunks/chunk-PRO3U224.js.map +1 -0
  278. package/dist/chunks/chunk-PWLZEXO4.js +89 -0
  279. package/dist/chunks/chunk-PWLZEXO4.js.map +1 -0
  280. package/dist/chunks/chunk-Q7Q24WJK.js +227 -0
  281. package/dist/chunks/chunk-Q7Q24WJK.js.map +1 -0
  282. package/dist/chunks/chunk-QBRVWBMH.js +230 -0
  283. package/dist/chunks/chunk-QBRVWBMH.js.map +1 -0
  284. package/dist/chunks/chunk-R5EYCFY4.js +91 -0
  285. package/dist/chunks/chunk-R5EYCFY4.js.map +1 -0
  286. package/dist/chunks/chunk-RHXLL5D3.js +264 -0
  287. package/dist/chunks/chunk-RHXLL5D3.js.map +1 -0
  288. package/dist/chunks/chunk-SGNRQWTB.js +887 -0
  289. package/dist/chunks/chunk-SGNRQWTB.js.map +1 -0
  290. package/dist/chunks/chunk-SOKWNLL4.js +89 -0
  291. package/dist/chunks/chunk-SOKWNLL4.js.map +1 -0
  292. package/dist/chunks/chunk-TWYN56XO.js +92 -0
  293. package/dist/chunks/chunk-TWYN56XO.js.map +1 -0
  294. package/dist/chunks/chunk-U2662SPQ.js +887 -0
  295. package/dist/chunks/chunk-U2662SPQ.js.map +1 -0
  296. package/dist/chunks/chunk-UNYT7ZNM.js +85 -0
  297. package/dist/chunks/chunk-UNYT7ZNM.js.map +1 -0
  298. package/dist/chunks/chunk-UUZFQW3D.js +889 -0
  299. package/dist/chunks/chunk-UUZFQW3D.js.map +1 -0
  300. package/dist/chunks/chunk-VIBFS7K3.js +229 -0
  301. package/dist/chunks/chunk-VIBFS7K3.js.map +1 -0
  302. package/dist/chunks/chunk-VVPQCJL6.js +264 -0
  303. package/dist/chunks/chunk-VVPQCJL6.js.map +1 -0
  304. package/dist/chunks/chunk-VY73H2OD.js +238 -0
  305. package/dist/chunks/chunk-VY73H2OD.js.map +1 -0
  306. package/dist/chunks/chunk-W7DAMVVM.js +90 -0
  307. package/dist/chunks/chunk-W7DAMVVM.js.map +1 -0
  308. package/dist/chunks/chunk-WTV3RW6F.js +91 -0
  309. package/dist/chunks/chunk-WTV3RW6F.js.map +1 -0
  310. package/dist/chunks/chunk-XB2AUIYM.js +232 -0
  311. package/dist/chunks/chunk-XB2AUIYM.js.map +1 -0
  312. package/dist/chunks/chunk-XBJQTK4U.js +91 -0
  313. package/dist/chunks/chunk-XBJQTK4U.js.map +1 -0
  314. package/dist/chunks/chunk-XH6AMJFY.js +238 -0
  315. package/dist/chunks/chunk-XH6AMJFY.js.map +1 -0
  316. package/dist/chunks/chunk-XNQ4ARRB.js +90 -0
  317. package/dist/chunks/chunk-XNQ4ARRB.js.map +1 -0
  318. package/dist/chunks/chunk-Y5S4XHSH.js +133 -0
  319. package/dist/chunks/chunk-Y5S4XHSH.js.map +1 -0
  320. package/dist/chunks/chunk-YC72WJT5.js +88 -0
  321. package/dist/chunks/chunk-YC72WJT5.js.map +1 -0
  322. package/dist/chunks/chunk-YMQNOCS2.js +246 -0
  323. package/dist/chunks/chunk-YMQNOCS2.js.map +1 -0
  324. package/dist/chunks/chunk-Z6EJ36PR.js +307 -0
  325. package/dist/chunks/chunk-Z6EJ36PR.js.map +1 -0
  326. package/dist/chunks/chunk-ZEEFMPDJ.js +238 -0
  327. package/dist/chunks/chunk-ZEEFMPDJ.js.map +1 -0
  328. package/dist/chunks/chunk-ZGSNDSK3.js +1 -0
  329. package/dist/chunks/chunk-ZGSNDSK3.js.map +1 -0
  330. package/dist/chunks/chunk-ZLULX3V3.js +264 -0
  331. package/dist/chunks/chunk-ZLULX3V3.js.map +1 -0
  332. package/dist/chunks/chunk-ZO6ZTWFN.js +99 -0
  333. package/dist/chunks/chunk-ZO6ZTWFN.js.map +1 -0
  334. package/dist/chunks/chunk-ZSAPTO2I.js +85 -0
  335. package/dist/chunks/chunk-ZSAPTO2I.js.map +1 -0
  336. package/dist/chunks/chunk-ZW6ND3PL.js +307 -0
  337. package/dist/chunks/chunk-ZW6ND3PL.js.map +1 -0
  338. package/dist/exports/computed-item.context.d.ts +1 -1
  339. package/dist/exports/computed.context.d.ts +2 -2
  340. package/dist/exports/interaction.d.ts +1 -1
  341. package/dist/exports/item.context.d.ts +1 -1
  342. package/dist/exports/qti-assessment-item.context.d.ts +1 -1
  343. package/dist/exports/qti-condition-expression.d.ts +1 -1
  344. package/dist/exports/qti-expression.d.ts +1 -1
  345. package/dist/exports/session.context.d.ts +2 -2
  346. package/dist/exports/test.context.d.ts +1 -1
  347. package/dist/exports/variables.d.ts +1 -1
  348. package/dist/index.d.ts +3 -2
  349. package/dist/index.js +19 -16
  350. package/dist/qti-components/index.d.ts +2 -2
  351. package/dist/qti-components/index.js +1 -1
  352. package/dist/qti-components-jsx.d.ts +63 -18
  353. package/dist/qti-item/components/item-show-correct-response.d.ts +1 -1
  354. package/dist/qti-item/components/print-item-variables.d.ts +1 -1
  355. package/dist/qti-item/core/index.d.ts +1 -1
  356. package/dist/qti-loader/index.d.ts +1 -1
  357. package/dist/qti-response-declaration-0TYT5oEz.d.ts +1171 -0
  358. package/dist/qti-response-declaration-B0WM2iOU.d.ts +1113 -0
  359. package/dist/qti-response-declaration-tkYP2TfV.d.ts +1112 -0
  360. package/dist/qti-response-declaration-y-C5AMTr.d.ts +1115 -0
  361. package/dist/qti-test/components/index.d.ts +3 -2
  362. package/dist/qti-test/components/index.js +17 -14
  363. package/dist/qti-test/components/test-check-item.d.ts +16 -0
  364. package/dist/qti-test/components/test-check-item.js +9 -0
  365. package/dist/qti-test/components/test-check-item.js.map +1 -0
  366. package/dist/qti-test/components/test-navigation.d.ts +2 -2
  367. package/dist/qti-test/components/test-navigation.js +1 -1
  368. package/dist/qti-test/components/test-next.d.ts +2 -3
  369. package/dist/qti-test/components/test-next.js +1 -4
  370. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +3 -0
  371. package/dist/qti-test/components/test-paging-buttons-stamp.js +1 -1
  372. package/dist/qti-test/components/test-prev.d.ts +2 -2
  373. package/dist/qti-test/components/test-prev.js +1 -2
  374. package/dist/qti-test/components/test-print-context.d.ts +2 -2
  375. package/dist/qti-test/components/test-print-item-variables.d.ts +2 -2
  376. package/dist/qti-test/components/test-scoring-buttons.d.ts +2 -2
  377. package/dist/qti-test/components/test-scoring-buttons.js +1 -1
  378. package/dist/qti-test/components/test-scoring-feedback.d.ts +2 -2
  379. package/dist/qti-test/components/test-section-buttons-stamp.d.ts +3 -0
  380. package/dist/qti-test/components/test-section-buttons-stamp.js +1 -1
  381. package/dist/qti-test/components/test-show-correct-response.d.ts +5 -2
  382. package/dist/qti-test/components/test-show-correct-response.js +1 -1
  383. package/dist/qti-test/components/test-stamp.d.ts +8 -2
  384. package/dist/qti-test/components/test-stamp.js +1 -1
  385. package/dist/qti-test/core/index.d.ts +4 -3
  386. package/dist/qti-test/core/index.js +2 -2
  387. package/dist/qti-test-feedback-Bth3dOO1.d.ts +85 -0
  388. package/dist/qti-test-feedback-C6Z0bJMR.d.ts +85 -0
  389. package/dist/qti-test-feedback-CcyKpmkY.d.ts +85 -0
  390. package/dist/qti-test-feedback-D8AwiYTL.d.ts +85 -0
  391. package/dist/vscode.html-custom-data.json +30 -13
  392. package/package.json +6 -5
  393. package/readme.md +4 -0
@@ -0,0 +1,264 @@
1
+ import {
2
+ sessionContext
3
+ } from "./chunk-22IRJWWY.js";
4
+ import {
5
+ testContext
6
+ } from "./chunk-CJADUWEC.js";
7
+ import {
8
+ computedContext
9
+ } from "./chunk-AZIKAG7K.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.navItemRefId}"]`
41
+ );
42
+ const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
43
+ const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;
44
+ qtiAssessmentItemEl.processResponse(true, reportValidityAfterScoring);
45
+ }
46
+ createRenderRoot() {
47
+ return this;
48
+ }
49
+ // myTemplate: TemplateFunction;
50
+ // connectedCallback(): void {
51
+ // super.connectedCallback();
52
+ // const templateElement = this.querySelector<HTMLTemplateElement>('template');
53
+ // if (!templateElement) {
54
+ // this.myTemplate = null;
55
+ // return;
56
+ // }
57
+ // this.myTemplate = prepareTemplate(templateElement);
58
+ // }
59
+ /**
60
+ * Handles the 'test-end-attempt' event.
61
+ * @private
62
+ * @listens TestNavigation#test-show-correct-response
63
+ * @param {CustomEvent} event - The custom event object.
64
+ */
65
+ _handleTestShowCorrectResponse(event) {
66
+ const qtiItemEl = this._testElement.querySelector(
67
+ `qti-assessment-item-ref[identifier="${this._sessionContext.navItemRefId}"]`
68
+ );
69
+ const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
70
+ qtiAssessmentItemEl.showCorrectResponse(event.detail);
71
+ }
72
+ _handleTestUpdateOutcomeVariable(event) {
73
+ const qtiItemEl = this._testElement.querySelector(
74
+ `qti-assessment-item-ref[identifier="${event.detail.assessmentItemRefId}"]`
75
+ );
76
+ const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
77
+ qtiAssessmentItemEl.setOutcomeVariable(event.detail.outcomeVariableId, event.detail.value);
78
+ }
79
+ _handleInteractionChanged(_event) {
80
+ if (this.autoScoreItems) {
81
+ const assessmentItem = _event.composedPath()[0].closest("qti-assessment-item");
82
+ const scoreOutcomeIdentifier = assessmentItem.variables.find((v) => v.identifier === "SCORE");
83
+ if (scoreOutcomeIdentifier && scoreOutcomeIdentifier.externalScored === null && assessmentItem.adaptive === "false") {
84
+ const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;
85
+ assessmentItem.processResponse(true, reportValidityAfterScoring);
86
+ }
87
+ }
88
+ }
89
+ render() {
90
+ return html`<slot></slot>`;
91
+ }
92
+ /* PK: on test connected we can build the computed context */
93
+ _handleTestConnected(event) {
94
+ this._testElement = event.detail;
95
+ const testPartElements = Array.from(this._testElement?.querySelectorAll(`qti-test-part`) || []);
96
+ this.computedContext = {
97
+ identifier: this._testElement.identifier,
98
+ title: this._testElement.title,
99
+ view: this._sessionContext?.view,
100
+ testParts: testPartElements.map((testPart) => {
101
+ const sectionElements = [...testPart.querySelectorAll(`qti-assessment-section`)];
102
+ return {
103
+ active: false,
104
+ identifier: testPart.identifier,
105
+ navigationMode: testPart.navigationMode,
106
+ submissionMode: testPart.submissionMode,
107
+ sections: sectionElements.map((section) => {
108
+ const itemElements = [...section.querySelectorAll(`qti-assessment-item-ref`)];
109
+ return {
110
+ active: false,
111
+ identifier: section.identifier,
112
+ title: section.title,
113
+ items: itemElements.map((item) => ({
114
+ ...this.initContext?.find((i) => i.identifier === item.identifier),
115
+ active: false,
116
+ identifier: item.identifier,
117
+ categories: item.category ? item.category?.split(" ") : [],
118
+ href: item.href,
119
+ variables: []
120
+ }))
121
+ };
122
+ })
123
+ };
124
+ })
125
+ };
126
+ }
127
+ /* PK: on item connected we can add item only properties in the xml */
128
+ _handleItemConnected(event) {
129
+ const itemElement = event.detail;
130
+ this.computedContext = {
131
+ ...this.computedContext,
132
+ testParts: this.computedContext.testParts.map((testPart) => {
133
+ return {
134
+ ...testPart,
135
+ sections: testPart.sections.map((section) => {
136
+ return {
137
+ ...section,
138
+ items: section.items.map((item) => {
139
+ if (item.identifier !== itemElement.parentElement.getAttribute("identifier")) {
140
+ return item;
141
+ }
142
+ const scoreOutcome = item.variables.find((vr) => vr.identifier == "SCORE");
143
+ const externalScored = scoreOutcome?.externalScored;
144
+ const containsCorrectResponse = !!item?.variables?.some((v) => v["correctResponse"]);
145
+ const containsMapping = !!item?.variables?.some((v) => {
146
+ return v["mapping"]?.mapEntries?.length > 0 || v["areaMapping"]?.areaMapEntries?.length > 0;
147
+ });
148
+ const hasCorrectResponse = !containsCorrectResponse && !containsMapping;
149
+ return {
150
+ ...item,
151
+ assessmentItemIdentifier: itemElement.getAttribute("identifier"),
152
+ label: itemElement.getAttribute("label"),
153
+ title: itemElement.title,
154
+ externalScored,
155
+ adaptive: itemElement.adaptive == "true" || false,
156
+ timeDependent: itemElement.timeDependent == "true" || false,
157
+ variables: itemElement.variables,
158
+ hasCorrectResponse
159
+ };
160
+ })
161
+ };
162
+ })
163
+ };
164
+ })
165
+ };
166
+ }
167
+ /* PK: on every change of the candidate we will recomputed the computedContext */
168
+ willUpdate(_changedProperties) {
169
+ if (!this.computedContext) return;
170
+ let itemIndex = 1;
171
+ this.computedContext = {
172
+ ...this.computedContext,
173
+ view: this._sessionContext?.view,
174
+ testParts: this.computedContext.testParts.map((testPart) => {
175
+ return {
176
+ ...testPart,
177
+ active: this._sessionContext?.navPartId === testPart.identifier || false,
178
+ sections: testPart.sections.map((section) => {
179
+ return {
180
+ ...section,
181
+ active: this._sessionContext?.navSectionId === section.identifier || false,
182
+ completed: section.items.every(
183
+ (item) => this._testContext.items.find((i) => i.identifier === item.identifier)?.variables.find((v) => v.identifier === "completionStatus").value === "completed"
184
+ ),
185
+ items: section.items.map((item) => {
186
+ const itemContext = this._testContext?.items.find((i) => i.identifier === item.identifier);
187
+ const computedItem = {
188
+ ...item,
189
+ ...itemContext,
190
+ ...this.initContext?.find((i) => i.identifier === item.identifier)
191
+ };
192
+ const rawscore = computedItem.variables?.find((vr) => vr.identifier == "SCORE")?.value;
193
+ const score = parseInt(rawscore?.toString());
194
+ const completionStatus = computedItem.variables?.find((v) => v.identifier === "completionStatus")?.value;
195
+ const response = computedItem.variables?.find((v) => v.identifier === "RESPONSE")?.value || "";
196
+ const numAttempts = computedItem.variables?.find((v) => v.identifier === "numAttempts")?.value || 0;
197
+ const type = item.categories.includes(this.configContext?.infoItemCategory) ? "info" : "regular";
198
+ const active = this._sessionContext?.navItemRefId === computedItem.identifier || false;
199
+ const correct = type == "regular" && score !== void 0 && !isNaN(score) && score > 0 || false;
200
+ const incorrect = type == "regular" && score !== void 0 && !isNaN(score) && score <= 0 || false;
201
+ const completed = completionStatus === "completed";
202
+ const index = item.categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;
203
+ const rawMaxScore = item.variables?.find((vr) => vr.identifier == "MAXSCORE")?.value;
204
+ const maxScore = parseInt(rawMaxScore?.toString());
205
+ return {
206
+ ...computedItem,
207
+ completionStatus,
208
+ numAttempts,
209
+ score,
210
+ response,
211
+ index,
212
+ type,
213
+ active,
214
+ correct,
215
+ maxScore,
216
+ incorrect,
217
+ completed
218
+ };
219
+ })
220
+ };
221
+ })
222
+ };
223
+ })
224
+ };
225
+ this.dispatchEvent(
226
+ new CustomEvent("qti-computed-context-updated", {
227
+ detail: this.computedContext,
228
+ bubbles: true
229
+ })
230
+ );
231
+ }
232
+ };
233
+ __decorateClass([
234
+ property({ type: String })
235
+ ], TestNavigation.prototype, "identifier", 2);
236
+ __decorateClass([
237
+ state()
238
+ ], TestNavigation.prototype, "initContext", 2);
239
+ __decorateClass([
240
+ state()
241
+ ], TestNavigation.prototype, "configContext", 2);
242
+ __decorateClass([
243
+ state(),
244
+ consume({ context: testContext, subscribe: true })
245
+ ], TestNavigation.prototype, "_testContext", 2);
246
+ __decorateClass([
247
+ state(),
248
+ consume({ context: sessionContext, subscribe: true })
249
+ ], TestNavigation.prototype, "_sessionContext", 2);
250
+ __decorateClass([
251
+ state(),
252
+ provide({ context: computedContext })
253
+ ], TestNavigation.prototype, "computedContext", 2);
254
+ __decorateClass([
255
+ property({ type: Boolean, attribute: "auto-score-items" })
256
+ ], TestNavigation.prototype, "autoScoreItems", 2);
257
+ TestNavigation = __decorateClass([
258
+ customElement("test-navigation")
259
+ ], TestNavigation);
260
+
261
+ export {
262
+ TestNavigation
263
+ };
264
+ //# sourceMappingURL=chunk-VVPQCJL6.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// import { prepareTemplate } from 'stampino';\n\nimport { testContext } from '../../exports/test.context';\nimport { sessionContext } from '../../exports/session.context';\nimport { computedContext } from '../../exports/computed.context';\n\n// import type { View } from '../core/mixins/test-view.mixin';\n// import type { TemplateFunction } from 'stampino';\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 public configContext: ConfigContext = {};\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 @provide({ context: computedContext })\n protected computedContext: ComputedContext;\n\n @property({ type: Boolean, attribute: 'auto-score-items' }) autoScoreItems = false;\n\n // @state()\n // private stampContext: {\n // view?: View;\n // test?: unknown;\n // activeTestpart?: unknown;\n // activeSection?: unknown;\n // activeItem?: unknown;\n // } = {\n // view: 'candidate',\n // activeItem: {},\n // activeSection: {\n // items: []\n // },\n // activeTestpart: {\n // items: []\n // },\n // test: {}\n // };\n // @property({ type: Boolean, reflect: true }) public debug = 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.navItemRefId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;\n qtiAssessmentItemEl.processResponse(true, reportValidityAfterScoring);\n }\n\n protected createRenderRoot(): HTMLElement | DocumentFragment {\n return this;\n }\n\n // myTemplate: TemplateFunction;\n\n // connectedCallback(): void {\n // super.connectedCallback();\n // const templateElement = this.querySelector<HTMLTemplateElement>('template');\n // if (!templateElement) {\n // this.myTemplate = null;\n // return;\n // }\n // this.myTemplate = prepareTemplate(templateElement);\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.navItemRefId}\"]`\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 const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;\n assessmentItem.processResponse(true, reportValidityAfterScoring);\n }\n }\n }\n\n render() {\n // return this.myTemplate ? this.myTemplate(this.stampContext) : nothing;\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._testElement = event.detail as QtiAssessmentTest;\n const testPartElements = Array.from(this._testElement?.querySelectorAll<QtiTestPart>(`qti-test-part`) || []);\n this.computedContext = {\n identifier: this._testElement.identifier,\n title: this._testElement.title,\n view: this._sessionContext?.view,\n testParts: testPartElements.map(testPart => {\n const sectionElements = [...testPart.querySelectorAll<QtiAssessmentSection>(`qti-assessment-section`)];\n return {\n active: false,\n identifier: testPart.identifier,\n navigationMode: testPart.navigationMode,\n submissionMode: testPart.submissionMode,\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 ...this.initContext?.find(i => i.identifier === item.identifier),\n active: false,\n identifier: item.identifier,\n categories: item.category ? item.category?.split(' ') : [],\n href: item.href,\n variables: []\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\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\n const scoreOutcome = item.variables.find(vr => vr.identifier == 'SCORE') as OutcomeVariable;\n const externalScored = scoreOutcome?.externalScored;\n\n const containsCorrectResponse = !!item?.variables?.some(v => v['correctResponse']);\n const containsMapping = !!item?.variables?.some(v => {\n return v['mapping']?.mapEntries?.length > 0 || v['areaMapping']?.areaMapEntries?.length > 0;\n });\n const hasCorrectResponse = !containsCorrectResponse && !containsMapping;\n\n return {\n ...item,\n assessmentItemIdentifier: itemElement.getAttribute('identifier'),\n label: itemElement.getAttribute('label'),\n title: itemElement.title,\n externalScored,\n adaptive: itemElement.adaptive == 'true' || false,\n timeDependent: itemElement.timeDependent == 'true' || false,\n variables: itemElement.variables,\n hasCorrectResponse\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 view: this._sessionContext?.view,\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 const computedItem = {\n ...item,\n ...itemContext,\n ...this.initContext?.find(i => i.identifier === item.identifier)\n };\n\n const rawscore = computedItem.variables?.find(vr => vr.identifier == 'SCORE')?.value;\n const score = parseInt(rawscore?.toString());\n\n const completionStatus = computedItem.variables?.find(v => v.identifier === 'completionStatus')\n ?.value as string;\n\n const response = computedItem.variables?.find(v => v.identifier === 'RESPONSE')?.value || '';\n const numAttempts = computedItem.variables?.find(v => v.identifier === 'numAttempts')?.value || 0;\n\n const type = item.categories.includes(this.configContext?.infoItemCategory) ? 'info' : 'regular';\n const active = this._sessionContext?.navItemRefId === computedItem.identifier || false;\n const correct = (type == 'regular' && score !== undefined && !isNaN(score) && score > 0) || false;\n const incorrect = (type == 'regular' && score !== undefined && !isNaN(score) && score <= 0) || false;\n const completed = completionStatus === 'completed';\n const index = item.categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;\n\n const rawMaxScore = item.variables?.find(vr => vr.identifier == 'MAXSCORE')?.value;\n const maxScore = parseInt(rawMaxScore?.toString());\n\n return {\n ...computedItem,\n completionStatus,\n numAttempts,\n score,\n response,\n index,\n type,\n active,\n correct,\n maxScore,\n incorrect,\n completed\n };\n })\n };\n })\n };\n })\n };\n\n // const activeTestPart = this.computedContext.testParts.find(testPart => testPart.active);\n // const activeSection = activeTestPart?.sections.find(section => section.active);\n // const activeItem = activeSection?.items.find(item => item.active);\n // const { variables, ...augmentedItem } = activeItem || {};\n\n // if (!activeTestPart || !activeSection || !activeItem) {\n // this.stampContext = null;\n // return;\n // }\n\n // const augmentedTestPart = {\n // ...activeTestPart,\n // items: activeTestPart.sections.flatMap(section => section.items.map(({ variables, ...rest }) => rest)),\n // sections: activeTestPart.sections.map(section => ({\n // ...section,\n // items: section.items.map(({ variables, ...rest }) => rest)\n // }))\n // };\n\n // const augmentedSection = { ...activeSection, items: activeSection.items.map(({ variables, ...rest }) => rest) };\n // const { testParts, ...activeTest } = this.computedContext;\n\n // this.stampContext = {\n // view: this.computedContext.view,\n // activeItem: augmentedItem,\n // activeSection: augmentedSection,\n // activeTestpart: augmentedTestPart,\n // test: activeTest\n // };\n\n this.dispatchEvent(\n new CustomEvent('qti-computed-context-updated', {\n detail: this.computedContext,\n bubbles: true\n })\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,SAAS,eAAe;AACjC,SAAS,MAAM,kBAAkB;AACjC,SAAS,eAAe,UAAU,aAAa;AA4BxC,IAAM,iBAAN,cAA6B,WAAW;AAAA,EA6C7C,cAAc;AACZ,UAAM;AA7CoB,sBAAa;AAGzC,SAAO,cAA4D,CAAC;AAGpE,SAAO,gBAA+B,CAAC;AAcqB,0BAAiB;AA0B3E,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,SAAK,iBAAiB,oBAAoB,KAAK,sBAAsB,KAAK,IAAI,CAAC;AAC/E,SAAK,iBAAiB,8BAA8B,KAAK,+BAA+B,KAAK,IAAI,CAAC;AAClG,SAAK,iBAAiB,gCAAgC,KAAK,iCAAiC,KAAK,IAAI,CAAC;AAAA,EACxG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQQ,sBAAsB,QAAqB;AACjD,UAAM,YAAY,KAAK,aAAa;AAAA,MAClC,uCAAuC,KAAK,gBAAgB,YAAY;AAAA,IAC1E;AACA,UAAM,sBAAsB,UAAU;AACtC,UAAM,6BAA6B,KAAK,eAAe,+BAA+B,OAAO,OAAO;AACpG,wBAAoB,gBAAgB,MAAM,0BAA0B;AAAA,EACtE;AAAA,EAEU,mBAAmD;AAC3D,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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,gCAAgC;AAAA,QAC9C,QAAQ,KAAK;AAAA,QACb,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AAAA,EACF;AACF;AA9T8B;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GADf,eACiB;AAGrB;AAAA,EADN,MAAM;AAAA,GAHI,eAIJ;AAGA;AAAA,EADN,MAAM;AAAA,GANI,eAOJ;AAIG;AAAA,EAFT,MAAM;AAAA,EACN,QAAQ,EAAE,SAAS,aAAa,WAAW,KAAK,CAAC;AAAA,GAVvC,eAWD;AAIA;AAAA,EAFT,MAAM;AAAA,EACN,QAAQ,EAAE,SAAS,gBAAgB,WAAW,KAAK,CAAC;AAAA,GAd1C,eAeD;AAIA;AAAA,EAFT,MAAM;AAAA,EACN,QAAQ,EAAE,SAAS,gBAAgB,CAAC;AAAA,GAlB1B,eAmBD;AAEkD;AAAA,EAA3D,SAAS,EAAE,MAAM,SAAS,WAAW,mBAAmB,CAAC;AAAA,GArB/C,eAqBiD;AArBjD,iBAAN;AAAA,EADN,cAAc,iBAAiB;AAAA,GACnB;","names":[]}
@@ -0,0 +1,238 @@
1
+ import {
2
+ sessionContext
3
+ } from "./chunk-22IRJWWY.js";
4
+ import {
5
+ testContext
6
+ } from "./chunk-CJADUWEC.js";
7
+ import {
8
+ computedContext
9
+ } from "./chunk-AZIKAG7K.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.navItemRefId}"]`
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.navItemRefId}"]`
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._testElement = event.detail;
81
+ const testPartElements = Array.from(this._testElement?.querySelectorAll(`qti-test-part`) || []);
82
+ this.computedContext = {
83
+ identifier: this._testElement.identifier,
84
+ title: this._testElement.title,
85
+ view: this._sessionContext?.view,
86
+ testParts: testPartElements.map((testPart) => {
87
+ const sectionElements = [...testPart.querySelectorAll(`qti-assessment-section`)];
88
+ return {
89
+ active: false,
90
+ identifier: testPart.identifier,
91
+ navigationMode: testPart.navigationMode,
92
+ submissionMode: testPart.submissionMode,
93
+ sections: sectionElements.map((section) => {
94
+ const itemElements = [...section.querySelectorAll(`qti-assessment-item-ref`)];
95
+ return {
96
+ active: false,
97
+ identifier: section.identifier,
98
+ title: section.title,
99
+ items: itemElements.map((item) => {
100
+ return {
101
+ ...this.initContext?.find((i) => i.identifier === item.identifier),
102
+ active: false,
103
+ identifier: item.identifier,
104
+ categories: item.category ? item.category?.split(" ") : [],
105
+ href: item.href,
106
+ variables: []
107
+ };
108
+ })
109
+ };
110
+ })
111
+ };
112
+ })
113
+ };
114
+ }
115
+ /* PK: on item connected we can add item only properties in the xml */
116
+ _handleItemConnected(event) {
117
+ const itemElement = event.detail;
118
+ let itemIndex = 1;
119
+ this.computedContext = {
120
+ ...this.computedContext,
121
+ testParts: this.computedContext.testParts.map((testPart) => {
122
+ return {
123
+ ...testPart,
124
+ sections: testPart.sections.map((section) => {
125
+ return {
126
+ ...section,
127
+ items: section.items.map((item) => {
128
+ if (item.identifier !== itemElement.parentElement.getAttribute("identifier")) {
129
+ return item;
130
+ }
131
+ const rawMaxScore = item.variables?.find((vr) => vr.identifier == "MAXSCORE")?.value;
132
+ const maxScore = parseInt(rawMaxScore?.toString());
133
+ const scoreOutcome = item.variables.find((vr) => vr.identifier == "SCORE");
134
+ const externalScored = scoreOutcome?.externalScored;
135
+ const containsCorrectResponse = !!item?.variables?.some((v) => v["correctResponse"]);
136
+ const containsMapping = !!item?.variables?.some((v) => {
137
+ return v["mapping"]?.mapEntries?.length > 0 || v["areaMapping"]?.areaMapEntries?.length > 0;
138
+ });
139
+ const hasCorrectResponse = !containsCorrectResponse && !containsMapping;
140
+ const index = item.categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;
141
+ return {
142
+ ...item,
143
+ assessmentItemIdentifier: itemElement.getAttribute("identifier"),
144
+ label: itemElement.getAttribute("label"),
145
+ title: itemElement.title,
146
+ maxScore,
147
+ externalScored,
148
+ adaptive: itemElement.adaptive == "true" || false,
149
+ timeDependent: itemElement.timeDependent == "true" || false,
150
+ variables: itemElement.variables,
151
+ hasCorrectResponse,
152
+ index
153
+ };
154
+ })
155
+ };
156
+ })
157
+ };
158
+ })
159
+ };
160
+ }
161
+ /* PK: on every change of the candidate we will recomputed the computedContext */
162
+ willUpdate(_changedProperties) {
163
+ if (!this.computedContext) return;
164
+ this.computedContext = {
165
+ ...this.computedContext,
166
+ view: this._sessionContext?.view,
167
+ testParts: this.computedContext.testParts.map((testPart) => {
168
+ return {
169
+ ...testPart,
170
+ active: this._sessionContext?.navPartId === testPart.identifier || false,
171
+ sections: testPart.sections.map((section) => {
172
+ return {
173
+ ...section,
174
+ active: this._sessionContext?.navSectionId === section.identifier || false,
175
+ completed: section.items.every(
176
+ (item) => this._testContext.items.find((i) => i.identifier === item.identifier)?.variables.find((v) => v.identifier === "completionStatus").value === "completed"
177
+ ),
178
+ items: section.items.map((item) => {
179
+ const itemContext = this._testContext?.items.find((i) => i.identifier === item.identifier);
180
+ const computedItem = { ...item, ...itemContext };
181
+ const rawscore = computedItem.variables?.find((vr) => vr.identifier == "SCORE")?.value;
182
+ const score = parseInt(rawscore?.toString());
183
+ const completionStatus = computedItem.variables?.find((v) => v.identifier === "completionStatus")?.value;
184
+ const response = computedItem.variables?.find((v) => v.identifier === "RESPONSE")?.value || "";
185
+ const numAttempts = computedItem.variables?.find((v) => v.identifier === "NUMATTEMPTS")?.value || 0;
186
+ return {
187
+ ...computedItem,
188
+ completionStatus,
189
+ numAttempts,
190
+ score,
191
+ response
192
+ };
193
+ })
194
+ };
195
+ })
196
+ };
197
+ })
198
+ };
199
+ this.dispatchEvent(
200
+ new CustomEvent("test-computed-context-changed", {
201
+ detail: this.computedContext,
202
+ bubbles: true
203
+ })
204
+ );
205
+ }
206
+ };
207
+ __decorateClass([
208
+ property({ type: String })
209
+ ], TestNavigation.prototype, "identifier", 2);
210
+ __decorateClass([
211
+ state()
212
+ ], TestNavigation.prototype, "initContext", 2);
213
+ __decorateClass([
214
+ state()
215
+ ], TestNavigation.prototype, "configContext", 2);
216
+ __decorateClass([
217
+ state(),
218
+ consume({ context: testContext, subscribe: true })
219
+ ], TestNavigation.prototype, "_testContext", 2);
220
+ __decorateClass([
221
+ state(),
222
+ consume({ context: sessionContext, subscribe: true })
223
+ ], TestNavigation.prototype, "_sessionContext", 2);
224
+ __decorateClass([
225
+ state(),
226
+ provide({ context: computedContext })
227
+ ], TestNavigation.prototype, "computedContext", 2);
228
+ __decorateClass([
229
+ property({ type: Boolean, attribute: "auto-score-items" })
230
+ ], TestNavigation.prototype, "autoScoreItems", 2);
231
+ TestNavigation = __decorateClass([
232
+ customElement("test-navigation")
233
+ ], TestNavigation);
234
+
235
+ export {
236
+ TestNavigation
237
+ };
238
+ //# sourceMappingURL=chunk-VY73H2OD.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 { 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 public configContext: ConfigContext = {};\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 @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.navItemRefId}\"]`\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.navItemRefId}\"]`\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._testElement = event.detail as QtiAssessmentTest;\n const testPartElements = Array.from(this._testElement?.querySelectorAll<QtiTestPart>(`qti-test-part`) || []);\n this.computedContext = {\n identifier: this._testElement.identifier,\n title: this._testElement.title,\n view: this._sessionContext?.view,\n testParts: testPartElements.map(testPart => {\n const sectionElements = [...testPart.querySelectorAll<QtiAssessmentSection>(`qti-assessment-section`)];\n return {\n active: false,\n identifier: testPart.identifier,\n navigationMode: testPart.navigationMode,\n submissionMode: testPart.submissionMode,\n sections: sectionElements.map(section => {\n const itemElements = [...section.querySelectorAll<QtiAssessmentItemRef>(`qti-assessment-item-ref`)];\n\n return {\n active: false,\n identifier: section.identifier,\n title: section.title,\n items: itemElements.map(item => {\n return {\n ...this.initContext?.find(i => i.identifier === item.identifier),\n active: false,\n identifier: item.identifier,\n categories: item.category ? item.category?.split(' ') : [],\n href: item.href,\n variables: []\n };\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\n let itemIndex = 1;\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 const rawMaxScore = item.variables?.find(vr => vr.identifier == 'MAXSCORE')?.value;\n const maxScore = parseInt(rawMaxScore?.toString());\n\n const scoreOutcome = item.variables.find(vr => vr.identifier == 'SCORE') as OutcomeVariable;\n const externalScored = scoreOutcome?.externalScored;\n\n const containsCorrectResponse = !!item?.variables?.some(v => v['correctResponse']);\n const containsMapping = !!item?.variables?.some(v => {\n return v['mapping']?.mapEntries?.length > 0 || v['areaMapping']?.areaMapEntries?.length > 0;\n });\n const hasCorrectResponse = !containsCorrectResponse && !containsMapping;\n\n const index = item.categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;\n\n return {\n ...item,\n assessmentItemIdentifier: itemElement.getAttribute('identifier'),\n label: itemElement.getAttribute('label'),\n title: itemElement.title,\n maxScore,\n externalScored,\n adaptive: itemElement.adaptive == 'true' || false,\n timeDependent: itemElement.timeDependent == 'true' || false,\n variables: itemElement.variables,\n hasCorrectResponse,\n index\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 this.computedContext = {\n ...this.computedContext,\n view: this._sessionContext?.view,\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 const computedItem = { ...item, ...itemContext };\n\n const rawscore = computedItem.variables?.find(vr => vr.identifier == 'SCORE')?.value;\n const score = parseInt(rawscore?.toString());\n\n const completionStatus = computedItem.variables?.find(v => v.identifier === 'completionStatus')\n ?.value as string;\n\n const response = computedItem.variables?.find(v => v.identifier === 'RESPONSE')?.value || '';\n const numAttempts = computedItem.variables?.find(v => v.identifier === 'NUMATTEMPTS')?.value || 0;\n\n /*\n const type = categories.includes(this.configContext?.infoItemCategory) ? 'info' : 'regular';\n const active = this._sessionContext?.navItemRefId === computedItem.identifier || false;\n const correct = (type == 'regular' && score !== undefined && !isNaN(score) && score > 0) || false;\n const incorrect = (type == 'regular' && score !== undefined && !isNaN(score) && score <= 0) || false;\n const completed = completionStatus === 'completed';\n const index = categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;\n\n\n type,\n active,\n correct,\n incorrect,\n completed,\n index,\n */\n\n return {\n ...computedItem,\n completionStatus,\n numAttempts,\n score,\n response\n };\n })\n };\n })\n };\n })\n };\n\n this.dispatchEvent(\n new CustomEvent('test-computed-context-changed', {\n detail: this.computedContext,\n bubbles: true\n })\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,SAAS,eAAe;AACjC,SAAS,MAAM,kBAAk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