@citolab/qti-components 7.2.2 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/cdn/chunks/chunk-2PEB7XOI.js +1 -0
  2. package/cdn/chunks/chunk-2YSPUZLT.js +2 -0
  3. package/cdn/chunks/chunk-3HVTDMTS.js +1 -0
  4. package/cdn/chunks/chunk-3YJ5LGHO.js +1 -0
  5. package/cdn/chunks/chunk-4HD4LAOA.js +2 -0
  6. package/cdn/chunks/chunk-4PXGOA73.js +1 -0
  7. package/cdn/chunks/chunk-4U6VOTDY.js +2 -0
  8. package/cdn/chunks/chunk-5B5ZBB3H.js +2 -0
  9. package/cdn/chunks/chunk-6KJL4I6M.js +1 -0
  10. package/cdn/chunks/chunk-7ASLC5ZB.js +1 -0
  11. package/cdn/chunks/chunk-7OAHC7YP.js +1 -0
  12. package/cdn/chunks/chunk-7P7BX6D6.js +1 -0
  13. package/cdn/chunks/chunk-AH2FX4HG.js +1 -0
  14. package/cdn/chunks/chunk-ALDED3YL.js +1 -0
  15. package/cdn/chunks/chunk-AOQNGPU3.js +1 -0
  16. package/cdn/chunks/chunk-ARYTJGGM.js +8 -0
  17. package/cdn/chunks/chunk-BS7S3RPY.js +1 -0
  18. package/cdn/chunks/chunk-BSL7QSJS.js +1 -0
  19. package/cdn/chunks/chunk-C2RWTG52.js +1 -0
  20. package/cdn/chunks/chunk-DKMPPZUE.js +2 -0
  21. package/cdn/chunks/chunk-DNPPZXZF.js +1 -0
  22. package/cdn/chunks/chunk-EJQGI6MR.js +1 -0
  23. package/cdn/chunks/chunk-EKAFL2KP.js +1 -0
  24. package/cdn/chunks/chunk-F63HVNEI.js +1 -0
  25. package/cdn/chunks/chunk-FKNSURIA.js +2 -0
  26. package/cdn/chunks/chunk-FNCQNHCU.js +1 -0
  27. package/cdn/chunks/chunk-GTDTMMHF.js +2 -0
  28. package/cdn/chunks/chunk-GYF5ZDB3.js +1 -0
  29. package/cdn/chunks/chunk-H6ZOKOLE.js +1 -0
  30. package/cdn/chunks/chunk-HCAWI7AZ.js +1 -0
  31. package/cdn/chunks/chunk-I25TBSYM.js +8 -0
  32. package/cdn/chunks/chunk-IAXDPXPS.js +2 -0
  33. package/cdn/chunks/chunk-JATFFFTP.js +1 -0
  34. package/cdn/chunks/chunk-JFCDOKX7.js +2 -0
  35. package/cdn/chunks/chunk-JSCH2J4L.js +2 -0
  36. package/cdn/chunks/chunk-LZMZV6TD.js +2 -0
  37. package/cdn/chunks/chunk-MR6ZHDES.js +1 -0
  38. package/cdn/chunks/chunk-N6A5NZLH.js +1 -0
  39. package/cdn/chunks/chunk-NNGQPZRR.js +2 -0
  40. package/cdn/chunks/chunk-NTHP3CIK.js +1 -0
  41. package/cdn/chunks/chunk-NUS4RU5N.js +1 -0
  42. package/cdn/chunks/chunk-OJTWWSZH.js +1 -0
  43. package/cdn/chunks/chunk-P6SSTAJ2.js +1 -0
  44. package/cdn/chunks/chunk-PACSO5NR.js +1 -0
  45. package/cdn/chunks/chunk-Q4UYMUWQ.js +1 -0
  46. package/cdn/chunks/chunk-QNNLXEUP.js +1 -0
  47. package/cdn/chunks/chunk-R345NUSS.js +2 -0
  48. package/cdn/chunks/chunk-RATUNBN5.js +1 -0
  49. package/cdn/chunks/chunk-RAXTSUAP.js +1 -0
  50. package/cdn/chunks/chunk-SGUBIUUK.js +1 -0
  51. package/cdn/chunks/chunk-SKCRMPN3.js +8 -0
  52. package/cdn/chunks/chunk-SXYEFBGL.js +2 -0
  53. package/cdn/chunks/chunk-TDDS7QJB.js +48 -0
  54. package/cdn/chunks/chunk-TDKNW4KB.js +1 -0
  55. package/cdn/chunks/chunk-TTH5243V.js +1 -0
  56. package/cdn/chunks/chunk-U4D7JJMM.js +1 -0
  57. package/cdn/chunks/chunk-UGQPBOTB.js +17 -0
  58. package/cdn/chunks/chunk-UO3YPQWX.js +1 -0
  59. package/cdn/chunks/chunk-UOYDBSKF.js +1 -0
  60. package/cdn/chunks/chunk-W3L3NJQM.js +1 -0
  61. package/cdn/chunks/chunk-XDXLBDGD.js +2 -0
  62. package/cdn/chunks/chunk-XLVU3CES.js +1 -0
  63. package/cdn/chunks/chunk-YL5IGHSU.js +1 -0
  64. package/cdn/chunks/chunk-ZNLWZYAX.js +5 -0
  65. package/cdn/chunks/chunk-ZWUH2GAI.js +1 -0
  66. package/cdn/exports/computed.context.js +1 -1
  67. package/cdn/index.js +1 -1
  68. package/cdn/qti-test/components/index.js +1 -1
  69. package/cdn/qti-test/components/test-navigation.js +1 -1
  70. package/cdn/qti-test/components/test-next.js +1 -1
  71. package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
  72. package/cdn/qti-test/components/test-prev.js +1 -1
  73. package/cdn/qti-test/components/test-print-context.js +1 -1
  74. package/cdn/qti-test/components/test-print-item-variables.js +1 -1
  75. package/cdn/qti-test/components/test-scoring-buttons.js +1 -1
  76. package/cdn/qti-test/components/test-scoring-feedback.js +1 -1
  77. package/cdn/qti-test/components/test-scoring-toggle.js +1 -0
  78. package/cdn/qti-test/components/test-section-buttons-stamp.js +1 -1
  79. package/cdn/qti-test/components/test-show-correct-response.js +1 -1
  80. package/cdn/qti-test/components/test-stamp.js +1 -1
  81. package/cdn/qti-test/components/test-view-toggle copy.js +1 -0
  82. package/cdn/qti-test/components/test-view-toggle.js +1 -1
  83. package/cdn/qti-test/core/index.js +1 -1
  84. package/dist/chunks/chunk-22IRJWWY.js +10 -0
  85. package/dist/chunks/chunk-22IRJWWY.js.map +1 -0
  86. package/dist/chunks/chunk-254VCWDJ.js +249 -0
  87. package/dist/chunks/chunk-254VCWDJ.js.map +1 -0
  88. package/dist/chunks/chunk-2SJOPI6B.js +45 -0
  89. package/dist/chunks/chunk-2SJOPI6B.js.map +1 -0
  90. package/dist/chunks/chunk-2WZXGGU3.js +85 -0
  91. package/dist/chunks/chunk-2WZXGGU3.js.map +1 -0
  92. package/dist/chunks/chunk-36G5MQKR.js +85 -0
  93. package/dist/chunks/chunk-36G5MQKR.js.map +1 -0
  94. package/dist/chunks/chunk-3L7UTYZ5.js +92 -0
  95. package/dist/chunks/chunk-3L7UTYZ5.js.map +1 -0
  96. package/dist/chunks/chunk-3N546FXF.js +81 -0
  97. package/dist/chunks/chunk-3N546FXF.js.map +1 -0
  98. package/dist/chunks/chunk-3QOIGEC7.js +92 -0
  99. package/dist/chunks/chunk-3QOIGEC7.js.map +1 -0
  100. package/dist/chunks/chunk-3UAT3IXP.js +85 -0
  101. package/dist/chunks/chunk-3UAT3IXP.js.map +1 -0
  102. package/dist/chunks/chunk-4KYSAVEL.js +85 -0
  103. package/dist/chunks/chunk-4KYSAVEL.js.map +1 -0
  104. package/dist/chunks/chunk-4OGJBG35.js +8 -0
  105. package/dist/chunks/chunk-4OGJBG35.js.map +1 -0
  106. package/dist/chunks/chunk-4UEAQMY4.js +28 -0
  107. package/dist/chunks/chunk-4UEAQMY4.js.map +1 -0
  108. package/dist/chunks/chunk-5F52D6LQ.js +64 -0
  109. package/dist/chunks/chunk-5F52D6LQ.js.map +1 -0
  110. package/dist/chunks/chunk-5FEXUWZH.js +28 -0
  111. package/dist/chunks/chunk-5FEXUWZH.js.map +1 -0
  112. package/dist/chunks/chunk-6ELX5242.js +234 -0
  113. package/dist/chunks/chunk-6ELX5242.js.map +1 -0
  114. package/dist/chunks/chunk-6FJB3RNO.js +65 -0
  115. package/dist/chunks/chunk-6FJB3RNO.js.map +1 -0
  116. package/dist/chunks/chunk-6HSX33RT.js +239 -0
  117. package/dist/chunks/chunk-6HSX33RT.js.map +1 -0
  118. package/dist/chunks/chunk-6KHKAHVS.js +235 -0
  119. package/dist/chunks/chunk-6KHKAHVS.js.map +1 -0
  120. package/dist/chunks/chunk-6YAR3VHX.js +56 -0
  121. package/dist/chunks/chunk-6YAR3VHX.js.map +1 -0
  122. package/dist/chunks/chunk-7SGVY6AL.js +85 -0
  123. package/dist/chunks/chunk-7SGVY6AL.js.map +1 -0
  124. package/dist/chunks/chunk-7ZME7TLK.js +81 -0
  125. package/dist/chunks/chunk-7ZME7TLK.js.map +1 -0
  126. package/dist/chunks/chunk-AZIKAG7K.js +8 -0
  127. package/dist/chunks/chunk-AZIKAG7K.js.map +1 -0
  128. package/dist/chunks/chunk-B2J3M334.js +92 -0
  129. package/dist/chunks/chunk-B2J3M334.js.map +1 -0
  130. package/dist/chunks/chunk-BEFR3ACM.js +241 -0
  131. package/dist/chunks/chunk-BEFR3ACM.js.map +1 -0
  132. package/dist/chunks/chunk-BSDFAZ5E.js +43 -0
  133. package/dist/chunks/chunk-BSDFAZ5E.js.map +1 -0
  134. package/dist/chunks/chunk-BTNZ5BZC.js +99 -0
  135. package/dist/chunks/chunk-BTNZ5BZC.js.map +1 -0
  136. package/dist/chunks/chunk-CL26AHAV.js +65 -0
  137. package/dist/chunks/chunk-CL26AHAV.js.map +1 -0
  138. package/dist/chunks/chunk-CLLDFOBO.js +64 -0
  139. package/dist/chunks/chunk-CLLDFOBO.js.map +1 -0
  140. package/dist/chunks/chunk-CO4K3UIU.js +81 -0
  141. package/dist/chunks/chunk-CO4K3UIU.js.map +1 -0
  142. package/dist/chunks/chunk-CRFBT36M.js +85 -0
  143. package/dist/chunks/chunk-CRFBT36M.js.map +1 -0
  144. package/dist/chunks/chunk-CRI6TK2F.js +81 -0
  145. package/dist/chunks/chunk-CRI6TK2F.js.map +1 -0
  146. package/dist/chunks/chunk-CS3XEHIS.js +64 -0
  147. package/dist/chunks/chunk-CS3XEHIS.js.map +1 -0
  148. package/dist/chunks/chunk-D47JA24G.js +85 -0
  149. package/dist/chunks/chunk-D47JA24G.js.map +1 -0
  150. package/dist/chunks/chunk-DIEBUNEE.js +83 -0
  151. package/dist/chunks/chunk-DIEBUNEE.js.map +1 -0
  152. package/dist/chunks/chunk-DLBPLBZU.js +85 -0
  153. package/dist/chunks/chunk-DLBPLBZU.js.map +1 -0
  154. package/dist/chunks/chunk-DNBDU6ZU.js +45 -0
  155. package/dist/chunks/chunk-DNBDU6ZU.js.map +1 -0
  156. package/dist/chunks/chunk-DNLC7HVK.js +870 -0
  157. package/dist/chunks/chunk-DNLC7HVK.js.map +1 -0
  158. package/dist/chunks/chunk-DSAPUEWR.js +81 -0
  159. package/dist/chunks/chunk-DSAPUEWR.js.map +1 -0
  160. package/dist/chunks/chunk-DZAOLWAS.js +238 -0
  161. package/dist/chunks/chunk-DZAOLWAS.js.map +1 -0
  162. package/dist/chunks/chunk-E572KIOQ.js +83 -0
  163. package/dist/chunks/chunk-E572KIOQ.js.map +1 -0
  164. package/dist/chunks/chunk-EIIKSMCN.js +96 -0
  165. package/dist/chunks/chunk-EIIKSMCN.js.map +1 -0
  166. package/dist/chunks/chunk-EJZQSOHU.js +85 -0
  167. package/dist/chunks/chunk-EJZQSOHU.js.map +1 -0
  168. package/dist/chunks/chunk-EP4SJRC6.js +99 -0
  169. package/dist/chunks/chunk-EP4SJRC6.js.map +1 -0
  170. package/dist/chunks/chunk-EXNO2VEU.js +85 -0
  171. package/dist/chunks/chunk-EXNO2VEU.js.map +1 -0
  172. package/dist/chunks/chunk-FAMJLVHG.js +92 -0
  173. package/dist/chunks/chunk-FAMJLVHG.js.map +1 -0
  174. package/dist/chunks/chunk-FBE6FA2H.js +45 -0
  175. package/dist/chunks/chunk-FBE6FA2H.js.map +1 -0
  176. package/dist/chunks/chunk-FEIMJLFV.js +85 -0
  177. package/dist/chunks/chunk-FEIMJLFV.js.map +1 -0
  178. package/dist/chunks/chunk-FIN4YG3K.js +233 -0
  179. package/dist/chunks/chunk-FIN4YG3K.js.map +1 -0
  180. package/dist/chunks/chunk-FQMHR6ZF.js +92 -0
  181. package/dist/chunks/chunk-FQMHR6ZF.js.map +1 -0
  182. package/dist/chunks/chunk-FS7SRRSA.js +96 -0
  183. package/dist/chunks/chunk-FS7SRRSA.js.map +1 -0
  184. package/dist/chunks/chunk-G5R527RC.js +90 -0
  185. package/dist/chunks/chunk-G5R527RC.js.map +1 -0
  186. package/dist/chunks/chunk-GBGZRLXO.js +45 -0
  187. package/dist/chunks/chunk-GBGZRLXO.js.map +1 -0
  188. package/dist/chunks/chunk-GBU4IXYM.js +95 -0
  189. package/dist/chunks/chunk-GBU4IXYM.js.map +1 -0
  190. package/dist/chunks/chunk-GDZ632HR.js +244 -0
  191. package/dist/chunks/chunk-GDZ632HR.js.map +1 -0
  192. package/dist/chunks/chunk-GE7AVAEW.js +99 -0
  193. package/dist/chunks/chunk-GE7AVAEW.js.map +1 -0
  194. package/dist/chunks/chunk-GXXWWT6Y.js +96 -0
  195. package/dist/chunks/chunk-GXXWWT6Y.js.map +1 -0
  196. package/dist/chunks/chunk-H7YSTWT5.js +45 -0
  197. package/dist/chunks/chunk-H7YSTWT5.js.map +1 -0
  198. package/dist/chunks/chunk-HAP4ICAJ.js +8 -0
  199. package/dist/chunks/chunk-HAP4ICAJ.js.map +1 -0
  200. package/dist/chunks/chunk-HARRGXYA.js +243 -0
  201. package/dist/chunks/chunk-HARRGXYA.js.map +1 -0
  202. package/dist/chunks/chunk-HNCSSLU6.js +95 -0
  203. package/dist/chunks/chunk-HNCSSLU6.js.map +1 -0
  204. package/dist/chunks/chunk-IDZOOEB2.js +85 -0
  205. package/dist/chunks/chunk-IDZOOEB2.js.map +1 -0
  206. package/dist/chunks/chunk-IGSFWBNK.js +235 -0
  207. package/dist/chunks/chunk-IGSFWBNK.js.map +1 -0
  208. package/dist/chunks/chunk-IPRRYKZD.js +95 -0
  209. package/dist/chunks/chunk-IPRRYKZD.js.map +1 -0
  210. package/dist/chunks/chunk-J3I5LKXH.js +60 -0
  211. package/dist/chunks/chunk-J3I5LKXH.js.map +1 -0
  212. package/dist/chunks/chunk-JDSSQE7I.js +56 -0
  213. package/dist/chunks/chunk-JDSSQE7I.js.map +1 -0
  214. package/dist/chunks/chunk-JKX62AOP.js +8 -0
  215. package/dist/chunks/chunk-JKX62AOP.js.map +1 -0
  216. package/dist/chunks/chunk-JMYRH33D.js +84 -0
  217. package/dist/chunks/chunk-JMYRH33D.js.map +1 -0
  218. package/dist/chunks/chunk-JX3F6YCC.js +43 -0
  219. package/dist/chunks/chunk-JX3F6YCC.js.map +1 -0
  220. package/dist/chunks/chunk-JXMZQ3DF.js +249 -0
  221. package/dist/chunks/chunk-JXMZQ3DF.js.map +1 -0
  222. package/dist/chunks/chunk-K7JGTBMV.js +248 -0
  223. package/dist/chunks/chunk-K7JGTBMV.js.map +1 -0
  224. package/dist/chunks/chunk-KBQUCIRG.js +233 -0
  225. package/dist/chunks/chunk-KBQUCIRG.js.map +1 -0
  226. package/dist/chunks/chunk-KGVAUC45.js +242 -0
  227. package/dist/chunks/chunk-KGVAUC45.js.map +1 -0
  228. package/dist/chunks/chunk-KH3ZEJAY.js +95 -0
  229. package/dist/chunks/chunk-KH3ZEJAY.js.map +1 -0
  230. package/dist/chunks/chunk-KIK3YNR7.js +95 -0
  231. package/dist/chunks/chunk-KIK3YNR7.js.map +1 -0
  232. package/dist/chunks/chunk-KKV6WBJ2.js +234 -0
  233. package/dist/chunks/chunk-KKV6WBJ2.js.map +1 -0
  234. package/dist/chunks/chunk-KWCQRFC3.js +56 -0
  235. package/dist/chunks/chunk-KWCQRFC3.js.map +1 -0
  236. package/dist/chunks/chunk-KWUJVUKA.js +99 -0
  237. package/dist/chunks/chunk-KWUJVUKA.js.map +1 -0
  238. package/dist/chunks/chunk-LMWMNMIU.js +99 -0
  239. package/dist/chunks/chunk-LMWMNMIU.js.map +1 -0
  240. package/dist/chunks/chunk-LSTECKJV.js +56 -0
  241. package/dist/chunks/chunk-LSTECKJV.js.map +1 -0
  242. package/dist/chunks/chunk-LWBXN5C4.js +66 -0
  243. package/dist/chunks/chunk-LWBXN5C4.js.map +1 -0
  244. package/dist/chunks/chunk-LXQKATBH.js +91 -0
  245. package/dist/chunks/chunk-LXQKATBH.js.map +1 -0
  246. package/dist/chunks/chunk-M2PGI5QL.js +92 -0
  247. package/dist/chunks/chunk-M2PGI5QL.js.map +1 -0
  248. package/dist/chunks/chunk-M3D3T5OO.js +45 -0
  249. package/dist/chunks/chunk-M3D3T5OO.js.map +1 -0
  250. package/dist/chunks/chunk-M43YVT6M.js +8 -0
  251. package/dist/chunks/chunk-M43YVT6M.js.map +1 -0
  252. package/dist/chunks/chunk-MJMLVDAV.js +82 -0
  253. package/dist/chunks/chunk-MJMLVDAV.js.map +1 -0
  254. package/dist/chunks/chunk-MNYMPXJZ.js +95 -0
  255. package/dist/chunks/chunk-MNYMPXJZ.js.map +1 -0
  256. package/dist/chunks/chunk-MT3XAJZC.js +61 -0
  257. package/dist/chunks/chunk-MT3XAJZC.js.map +1 -0
  258. package/dist/chunks/chunk-MYRQCWA6.js +81 -0
  259. package/dist/chunks/chunk-MYRQCWA6.js.map +1 -0
  260. package/dist/chunks/chunk-NY5T6G3K.js +8 -0
  261. package/dist/chunks/chunk-NY5T6G3K.js.map +1 -0
  262. package/dist/chunks/chunk-NYR2RLEI.js +65 -0
  263. package/dist/chunks/chunk-NYR2RLEI.js.map +1 -0
  264. package/dist/chunks/chunk-O3WD4F3W.js +92 -0
  265. package/dist/chunks/chunk-O3WD4F3W.js.map +1 -0
  266. package/dist/chunks/chunk-OALKFNG4.js +99 -0
  267. package/dist/chunks/chunk-OALKFNG4.js.map +1 -0
  268. package/dist/chunks/chunk-OB2TPXBB.js +85 -0
  269. package/dist/chunks/chunk-OB2TPXBB.js.map +1 -0
  270. package/dist/chunks/chunk-OH5UJYOH.js +83 -0
  271. package/dist/chunks/chunk-OH5UJYOH.js.map +1 -0
  272. package/dist/chunks/chunk-OLDZGCD4.js +45 -0
  273. package/dist/chunks/chunk-OLDZGCD4.js.map +1 -0
  274. package/dist/chunks/chunk-ONVGVU57.js +243 -0
  275. package/dist/chunks/chunk-ONVGVU57.js.map +1 -0
  276. package/dist/chunks/chunk-OWELU5YR.js +43 -0
  277. package/dist/chunks/chunk-OWELU5YR.js.map +1 -0
  278. package/dist/chunks/chunk-P4CAO52E.js +43 -0
  279. package/dist/chunks/chunk-P4CAO52E.js.map +1 -0
  280. package/dist/chunks/chunk-P6SNSCN4.js +235 -0
  281. package/dist/chunks/chunk-P6SNSCN4.js.map +1 -0
  282. package/dist/chunks/chunk-PJIOSYIC.js +241 -0
  283. package/dist/chunks/chunk-PJIOSYIC.js.map +1 -0
  284. package/dist/chunks/chunk-PRYR7UB6.js +95 -0
  285. package/dist/chunks/chunk-PRYR7UB6.js.map +1 -0
  286. package/dist/chunks/chunk-PSGZN2AP.js +8 -0
  287. package/dist/chunks/chunk-PSGZN2AP.js.map +1 -0
  288. package/dist/chunks/chunk-PWNPDEWD.js +43 -0
  289. package/dist/chunks/chunk-PWNPDEWD.js.map +1 -0
  290. package/dist/chunks/chunk-QHGH7FF6.js +28 -0
  291. package/dist/chunks/chunk-QHGH7FF6.js.map +1 -0
  292. package/dist/chunks/chunk-QKAKO3CZ.js +233 -0
  293. package/dist/chunks/chunk-QKAKO3CZ.js.map +1 -0
  294. package/dist/chunks/chunk-QSFYRRIN.js +85 -0
  295. package/dist/chunks/chunk-QSFYRRIN.js.map +1 -0
  296. package/dist/chunks/chunk-QVPOOZ5O.js +64 -0
  297. package/dist/chunks/chunk-QVPOOZ5O.js.map +1 -0
  298. package/dist/chunks/chunk-QXKGZ752.js +43 -0
  299. package/dist/chunks/chunk-QXKGZ752.js.map +1 -0
  300. package/dist/chunks/chunk-QZ4TYR6G.js +43 -0
  301. package/dist/chunks/chunk-QZ4TYR6G.js.map +1 -0
  302. package/dist/chunks/chunk-R5HX7O5I.js +81 -0
  303. package/dist/chunks/chunk-R5HX7O5I.js.map +1 -0
  304. package/dist/chunks/chunk-RF2VC7DN.js +239 -0
  305. package/dist/chunks/chunk-RF2VC7DN.js.map +1 -0
  306. package/dist/chunks/chunk-RIPZMRDA.js +238 -0
  307. package/dist/chunks/chunk-RIPZMRDA.js.map +1 -0
  308. package/dist/chunks/chunk-RKBUP3WS.js +28 -0
  309. package/dist/chunks/chunk-RKBUP3WS.js.map +1 -0
  310. package/dist/chunks/chunk-RTPJGNMA.js +230 -0
  311. package/dist/chunks/chunk-RTPJGNMA.js.map +1 -0
  312. package/dist/chunks/chunk-S6F2NHT6.js +85 -0
  313. package/dist/chunks/chunk-S6F2NHT6.js.map +1 -0
  314. package/dist/chunks/chunk-SI7DUJBA.js +28 -0
  315. package/dist/chunks/chunk-SI7DUJBA.js.map +1 -0
  316. package/dist/chunks/chunk-SRCICFU7.js +28 -0
  317. package/dist/chunks/chunk-SRCICFU7.js.map +1 -0
  318. package/dist/chunks/chunk-SXRET5LH.js +235 -0
  319. package/dist/chunks/chunk-SXRET5LH.js.map +1 -0
  320. package/dist/chunks/chunk-THUTSBBP.js +56 -0
  321. package/dist/chunks/chunk-THUTSBBP.js.map +1 -0
  322. package/dist/chunks/chunk-TPZRDVLI.js +85 -0
  323. package/dist/chunks/chunk-TPZRDVLI.js.map +1 -0
  324. package/dist/chunks/chunk-TYH4XFYQ.js +84 -0
  325. package/dist/chunks/chunk-TYH4XFYQ.js.map +1 -0
  326. package/dist/chunks/chunk-TZGAS66M.js +56 -0
  327. package/dist/chunks/chunk-TZGAS66M.js.map +1 -0
  328. package/dist/chunks/chunk-U54LOZ6V.js +235 -0
  329. package/dist/chunks/chunk-U54LOZ6V.js.map +1 -0
  330. package/dist/chunks/chunk-U7WNOBID.js +235 -0
  331. package/dist/chunks/chunk-U7WNOBID.js.map +1 -0
  332. package/dist/chunks/chunk-UDZ6DBC4.js +65 -0
  333. package/dist/chunks/chunk-UDZ6DBC4.js.map +1 -0
  334. package/dist/chunks/chunk-UF7XJJHR.js +56 -0
  335. package/dist/chunks/chunk-UF7XJJHR.js.map +1 -0
  336. package/dist/chunks/chunk-UFJLGWZN.js +95 -0
  337. package/dist/chunks/chunk-UFJLGWZN.js.map +1 -0
  338. package/dist/chunks/chunk-UNB4FVMX.js +248 -0
  339. package/dist/chunks/chunk-UNB4FVMX.js.map +1 -0
  340. package/dist/chunks/chunk-US5NIIW7.js +244 -0
  341. package/dist/chunks/chunk-US5NIIW7.js.map +1 -0
  342. package/dist/chunks/chunk-VMAASK34.js +234 -0
  343. package/dist/chunks/chunk-VMAASK34.js.map +1 -0
  344. package/dist/chunks/chunk-VN2QDEVU.js +250 -0
  345. package/dist/chunks/chunk-VN2QDEVU.js.map +1 -0
  346. package/dist/chunks/chunk-W5FVZTR6.js +56 -0
  347. package/dist/chunks/chunk-W5FVZTR6.js.map +1 -0
  348. package/dist/chunks/chunk-WFFIUFJJ.js +28 -0
  349. package/dist/chunks/chunk-WFFIUFJJ.js.map +1 -0
  350. package/dist/chunks/chunk-WFSIKRZ3.js +95 -0
  351. package/dist/chunks/chunk-WFSIKRZ3.js.map +1 -0
  352. package/dist/chunks/chunk-WHTJNLWJ.js +235 -0
  353. package/dist/chunks/chunk-WHTJNLWJ.js.map +1 -0
  354. package/dist/chunks/chunk-X7TJEF7P.js +78 -0
  355. package/dist/chunks/chunk-X7TJEF7P.js.map +1 -0
  356. package/dist/chunks/chunk-XCECF27R.js +45 -0
  357. package/dist/chunks/chunk-XCECF27R.js.map +1 -0
  358. package/dist/chunks/chunk-XCJMG5II.js +229 -0
  359. package/dist/chunks/chunk-XCJMG5II.js.map +1 -0
  360. package/dist/chunks/chunk-XNNXOUDF.js +245 -0
  361. package/dist/chunks/chunk-XNNXOUDF.js.map +1 -0
  362. package/dist/chunks/chunk-YBFPPPMD.js +233 -0
  363. package/dist/chunks/chunk-YBFPPPMD.js.map +1 -0
  364. package/dist/chunks/chunk-YQXKY6CK.js +99 -0
  365. package/dist/chunks/chunk-YQXKY6CK.js.map +1 -0
  366. package/dist/chunks/chunk-YS4T2ORC.js +86 -0
  367. package/dist/chunks/chunk-YS4T2ORC.js.map +1 -0
  368. package/dist/chunks/chunk-YSK5NQO6.js +235 -0
  369. package/dist/chunks/chunk-YSK5NQO6.js.map +1 -0
  370. package/dist/chunks/chunk-YZSGZTWA.js +8 -0
  371. package/dist/chunks/chunk-YZSGZTWA.js.map +1 -0
  372. package/dist/chunks/chunk-Z6FBIC76.js +83 -0
  373. package/dist/chunks/chunk-Z6FBIC76.js.map +1 -0
  374. package/dist/chunks/chunk-ZNU2BCTJ.js +95 -0
  375. package/dist/chunks/chunk-ZNU2BCTJ.js.map +1 -0
  376. package/dist/chunks/chunk-ZTFOPRHT.js +242 -0
  377. package/dist/chunks/chunk-ZTFOPRHT.js.map +1 -0
  378. package/dist/chunks/chunk-ZZFSVIVR.js +85 -0
  379. package/dist/chunks/chunk-ZZFSVIVR.js.map +1 -0
  380. package/dist/exports/computed-item.context.d.ts +3 -0
  381. package/dist/exports/computed-item.context.js +1 -1
  382. package/dist/exports/computed.context.d.ts +5 -0
  383. package/dist/exports/computed.context.js +1 -1
  384. package/dist/exports/session.context.d.ts +16 -1
  385. package/dist/exports/session.context.js +1 -1
  386. package/dist/index.d.ts +2 -1
  387. package/dist/index.js +20 -20
  388. package/dist/qti-components-jsx.d.ts +5 -4
  389. package/dist/qti-item/components/item-show-correct-response.js +2 -2
  390. package/dist/qti-item/components/print-item-variables.js +2 -2
  391. package/dist/qti-item/core/index.js +4 -4
  392. package/dist/qti-test/components/index.d.ts +4 -3
  393. package/dist/qti-test/components/index.js +15 -15
  394. package/dist/qti-test/components/test-navigation.d.ts +4 -3
  395. package/dist/qti-test/components/test-navigation.js +3 -3
  396. package/dist/qti-test/components/test-next.d.ts +4 -1
  397. package/dist/qti-test/components/test-next.js +2 -2
  398. package/dist/qti-test/components/test-paging-buttons-stamp.js +2 -2
  399. package/dist/qti-test/components/test-prev.d.ts +4 -1
  400. package/dist/qti-test/components/test-prev.js +2 -2
  401. package/dist/qti-test/components/test-print-context.d.ts +4 -1
  402. package/dist/qti-test/components/test-print-context.js +2 -2
  403. package/dist/qti-test/components/test-print-item-variables.d.ts +4 -1
  404. package/dist/qti-test/components/test-print-item-variables.js +2 -2
  405. package/dist/qti-test/components/test-scoring-buttons.d.ts +7 -1
  406. package/dist/qti-test/components/test-scoring-buttons.js +2 -2
  407. package/dist/qti-test/components/test-scoring-feedback.d.ts +4 -1
  408. package/dist/qti-test/components/test-scoring-feedback.js +2 -2
  409. package/dist/qti-test/components/test-scoring-toggle.d.ts +20 -0
  410. package/dist/qti-test/components/test-scoring-toggle.js +9 -0
  411. package/dist/qti-test/components/test-scoring-toggle.js.map +1 -0
  412. package/dist/qti-test/components/test-section-buttons-stamp.js +2 -2
  413. package/dist/qti-test/components/test-show-correct-response.d.ts +4 -1
  414. package/dist/qti-test/components/test-show-correct-response.js +2 -2
  415. package/dist/qti-test/components/test-stamp.d.ts +2 -2
  416. package/dist/qti-test/components/test-stamp.js +2 -2
  417. package/dist/qti-test/components/test-view-toggle copy.js +63 -0
  418. package/dist/qti-test/components/test-view-toggle copy.js.map +1 -0
  419. package/dist/qti-test/components/test-view-toggle.d.ts +4 -3
  420. package/dist/qti-test/components/test-view-toggle.js +2 -2
  421. package/dist/qti-test/components/test-view.js +2 -2
  422. package/dist/qti-test/core/index.d.ts +3 -2
  423. package/dist/qti-test/core/index.js +2 -2
  424. package/dist/qti-test-feedback-BGPOO6Zu.d.ts +98 -0
  425. package/dist/qti-test-feedback-C2mE_Xcg.d.ts +85 -0
  426. package/dist/vscode.html-custom-data.json +1 -1
  427. package/package.json +17 -17
@@ -0,0 +1,234 @@
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-YZSGZTWA.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(
100
+ (item) => ({
101
+ ...this.initContext?.find((i) => i.identifier === item.identifier),
102
+ active: false,
103
+ identifier: item.identifier,
104
+ href: item.href,
105
+ variables: []
106
+ })
107
+ )
108
+ };
109
+ })
110
+ };
111
+ })
112
+ };
113
+ }
114
+ /* PK: on item connected we can add item only properties in the xml */
115
+ _handleItemConnected(event) {
116
+ const itemElement = event.detail;
117
+ this.computedContext = {
118
+ ...this.computedContext,
119
+ testParts: this.computedContext.testParts.map((testPart) => {
120
+ return {
121
+ ...testPart,
122
+ sections: testPart.sections.map((section) => {
123
+ return {
124
+ ...section,
125
+ items: section.items.map((item) => {
126
+ if (item.identifier !== itemElement.parentElement.getAttribute("identifier")) {
127
+ return item;
128
+ }
129
+ return {
130
+ ...item,
131
+ assessmentItemIdentifier: itemElement.getAttribute("identifier"),
132
+ label: itemElement.getAttribute("label"),
133
+ title: itemElement.title,
134
+ adaptive: itemElement.adaptive == "true" || false,
135
+ timeDependent: itemElement.timeDependent == "true" || false,
136
+ variables: itemElement._context.variables
137
+ };
138
+ })
139
+ };
140
+ })
141
+ };
142
+ })
143
+ };
144
+ }
145
+ /* PK: on every change of the candidate we will recomputed the computedContext */
146
+ willUpdate(_changedProperties) {
147
+ if (!this.computedContext) return;
148
+ let itemIndex = 1;
149
+ this.computedContext = {
150
+ ...this.computedContext,
151
+ testParts: this.computedContext.testParts.map((testPart) => {
152
+ return {
153
+ ...testPart,
154
+ active: this._sessionContext?.navPartId === testPart.identifier || false,
155
+ sections: testPart.sections.map((section) => {
156
+ return {
157
+ ...section,
158
+ active: this._sessionContext?.navSectionId === section.identifier || false,
159
+ completed: section.items.every(
160
+ (item) => this._testContext.items.find((i) => i.identifier === item.identifier)?.variables.find((v) => v.identifier === "completionStatus").value === "completed"
161
+ ),
162
+ items: section.items.map((item) => {
163
+ const itemContext = this._testContext?.items.find((i) => i.identifier === item.identifier);
164
+ const computedItem = { ...item, ...itemContext };
165
+ const rawscore = computedItem.variables?.find((vr) => vr.identifier == "SCORE")?.value;
166
+ const score = parseInt(rawscore?.toString());
167
+ const completionStatus = computedItem.variables?.find((v) => v.identifier === "completionStatus")?.value;
168
+ const categories = computedItem.category ? computedItem.category?.split(" ") : [];
169
+ const type = categories.includes(this.configContext?.infoItemCategory) ? "info" : "regular";
170
+ const active = this._sessionContext?.navItemRefId === computedItem.identifier || false;
171
+ const correct = type == "regular" && score !== void 0 && !isNaN(score) && score > 0 || false;
172
+ const incorrect = type == "regular" && score !== void 0 && !isNaN(score) && score <= 0 || false;
173
+ const completed = completionStatus === "completed";
174
+ const response = computedItem.variables?.find((v) => v.identifier === "RESPONSE")?.value || "";
175
+ const index = categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;
176
+ const containsCorrectResponse = !!item?.variables?.some((v) => v["correctResponse"]);
177
+ const containsMapping = !!item?.variables?.some((v) => {
178
+ return v["mapping"]?.mapEntries?.length > 0 || v["areaMapping"]?.areaMapEntries?.length > 0;
179
+ });
180
+ const hasCorrectResponse = !containsCorrectResponse && !containsMapping;
181
+ return {
182
+ ...computedItem,
183
+ // score => correct / incorrect
184
+ // completionStatus, => completed
185
+ hasCorrectResponse,
186
+ categories,
187
+ type,
188
+ active,
189
+ correct,
190
+ incorrect,
191
+ completed,
192
+ index,
193
+ response
194
+ };
195
+ })
196
+ };
197
+ })
198
+ };
199
+ })
200
+ };
201
+ }
202
+ };
203
+ __decorateClass([
204
+ property({ type: String })
205
+ ], TestNavigation.prototype, "identifier", 2);
206
+ __decorateClass([
207
+ state()
208
+ ], TestNavigation.prototype, "initContext", 2);
209
+ __decorateClass([
210
+ state()
211
+ ], TestNavigation.prototype, "configContext", 2);
212
+ __decorateClass([
213
+ state(),
214
+ consume({ context: testContext, subscribe: true })
215
+ ], TestNavigation.prototype, "_testContext", 2);
216
+ __decorateClass([
217
+ state(),
218
+ consume({ context: sessionContext, subscribe: true })
219
+ ], TestNavigation.prototype, "_sessionContext", 2);
220
+ __decorateClass([
221
+ state(),
222
+ provide({ context: computedContext })
223
+ ], TestNavigation.prototype, "computedContext", 2);
224
+ __decorateClass([
225
+ property({ type: Boolean, attribute: "auto-score-items" })
226
+ ], TestNavigation.prototype, "autoScoreItems", 2);
227
+ TestNavigation = __decorateClass([
228
+ customElement("test-navigation")
229
+ ], TestNavigation);
230
+
231
+ export {
232
+ TestNavigation
233
+ };
234
+ //# sourceMappingURL=chunk-6ELX5242.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 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 return {\n active: false,\n identifier: section.identifier,\n title: section.title,\n items: itemElements.map(\n item =>\n ({\n ...this.initContext?.find(i => i.identifier === item.identifier),\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 const computedItem = { ...item, ...itemContext };\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';\n const active = this._sessionContext?.navItemRefId === computedItem.identifier || false;\n\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\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 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 ...computedItem,\n // score => correct / incorrect\n // completionStatus, => completed\n hasCorrectResponse,\n categories,\n type,\n active,\n correct,\n incorrect,\n completed,\n index,\n response\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;AAGpE,SAAO,gBAA+B,CAAC;AAcqB,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,SAAK,iBAAiB,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AO,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,65 @@
1
+ import {
2
+ sessionContext
3
+ } from "./chunk-UZ4QB5IO.js";
4
+ import {
5
+ __decorateClass
6
+ } from "./chunk-H2JE6IVU.js";
7
+
8
+ // src/lib/qti-test/components/test-view-toggle.ts
9
+ import { consume } from "@lit/context";
10
+ import { html, LitElement, nothing } from "lit";
11
+ import { customElement } from "lit/decorators.js";
12
+ import { prepareTemplate } from "stampino";
13
+ var TestViewToggle = class extends LitElement {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.viewOptions = ["candidate", "scorer", ""];
17
+ }
18
+ createRenderRoot() {
19
+ return this;
20
+ }
21
+ connectedCallback() {
22
+ super.connectedCallback();
23
+ const templateElement = this.querySelector("template");
24
+ if (!templateElement) {
25
+ this.myTemplate = null;
26
+ return;
27
+ }
28
+ this.myTemplate = prepareTemplate(templateElement);
29
+ }
30
+ _switchView(view) {
31
+ this.dispatchEvent(
32
+ new CustomEvent("on-test-switch-view", {
33
+ composed: true,
34
+ bubbles: true,
35
+ detail: view
36
+ })
37
+ );
38
+ }
39
+ firstUpdated(_changedProperties) {
40
+ this.addEventListener("click", (e) => {
41
+ if (this.sessionContext?.view === "scorer") {
42
+ this._switchView("candidate");
43
+ }
44
+ if (this.sessionContext?.view === "candidate") {
45
+ this._switchView("scorer");
46
+ }
47
+ });
48
+ }
49
+ render() {
50
+ return html`${this.myTemplate ? this.myTemplate({
51
+ view: this.sessionContext?.view
52
+ }) : nothing}`;
53
+ }
54
+ };
55
+ __decorateClass([
56
+ consume({ context: sessionContext, subscribe: true })
57
+ ], TestViewToggle.prototype, "sessionContext", 2);
58
+ TestViewToggle = __decorateClass([
59
+ customElement("test-view-toggle")
60
+ ], TestViewToggle);
61
+
62
+ export {
63
+ TestViewToggle
64
+ };
65
+ //# sourceMappingURL=chunk-6FJB3RNO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/qti-test/components/test-view-toggle.ts"],"sourcesContent":["import { consume } from '@lit/context';\nimport { html, LitElement, nothing } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { prepareTemplate } from 'stampino';\n\nimport { sessionContext } from '../../exports/session.context';\n\nimport type { PropertyValues } from 'lit';\nimport type { SessionContext } from '../../exports/session.context';\n\n@customElement('test-view-toggle')\nexport class TestViewToggle extends LitElement {\n myTemplate: any;\n\n protected createRenderRoot(): HTMLElement | DocumentFragment {\n return this;\n }\n\n @consume({ context: sessionContext, subscribe: true })\n private sessionContext: SessionContext;\n\n viewOptions = ['candidate', 'scorer', ''];\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 _switchView(view: string) {\n this.dispatchEvent(\n new CustomEvent('on-test-switch-view', {\n composed: true,\n bubbles: true,\n detail: view\n })\n );\n }\n\n protected firstUpdated(_changedProperties: PropertyValues): void {\n this.addEventListener('click', (e: CustomEvent) => {\n if (this.sessionContext?.view === 'scorer') {\n this._switchView('candidate');\n }\n if (this.sessionContext?.view === 'candidate') {\n this._switchView('scorer');\n }\n });\n }\n\n render() {\n return html`${this.myTemplate\n ? this.myTemplate({\n view: this.sessionContext?.view\n })\n : nothing}`;\n // <label for=\"viewToggle\" part=\"label\">\n // <input\n // type=\"checkbox\"\n // role=\"switch\"\n // aria-checked=${this.sessionContext?.view === 'scorer'}\n // id=\"viewToggle\"\n // class=${`${this.classForInput}`}\n // ?checked=${this.sessionContext?.view === 'scorer'}\n // @change=${(e: Event) => {\n // const el = e.target as HTMLInputElement;\n // if (el.checked) {\n // this._switchView('scorer');\n // } else {\n // this._switchView('candidate');\n // }\n // }}\n // />\n // </label>\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-view-toggle': TestViewToggle;\n }\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,eAAe;AACxB,SAAS,MAAM,YAAY,eAAe;AAC1C,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAQzB,IAAM,iBAAN,cAA6B,WAAW;AAAA,EAAxC;AAAA;AAUL,uBAAc,CAAC,aAAa,UAAU,EAAE;AAAA;AAAA,EAP9B,mBAAmD;AAC3D,WAAO;AAAA,EACT;AAAA,EAOA,oBAA0B;AACxB,UAAM,kBAAkB;AACxB,UAAM,kBAAkB,KAAK,cAAmC,UAAU;AAC1E,QAAI,CAAC,iBAAiB;AACpB,WAAK,aAAa;AAClB;AAAA,IACF;AACA,SAAK,aAAa,gBAAgB,eAAe;AAAA,EACnD;AAAA,EAEA,YAAY,MAAc;AACxB,SAAK;AAAA,MACH,IAAI,YAAY,uBAAuB;AAAA,QACrC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,QAAQ;AAAA,MACV,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEU,aAAa,oBAA0C;AAC/D,SAAK,iBAAiB,SAAS,CAAC,MAAmB;AACjD,UAAI,KAAK,gBAAgB,SAAS,UAAU;AAC1C,aAAK,YAAY,WAAW;AAAA,MAC9B;AACA,UAAI,KAAK,gBAAgB,SAAS,aAAa;AAC7C,aAAK,YAAY,QAAQ;AAAA,MAC3B;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,SAAS;AACP,WAAO,OAAO,KAAK,aACf,KAAK,WAAW;AAAA,MACd,MAAM,KAAK,gBAAgB;AAAA,IAC7B,CAAC,IACD,OAAO;AAAA,EAmBb;AACF;AA5DU;AAAA,EADP,QAAQ,EAAE,SAAS,gBAAgB,WAAW,KAAK,CAAC;AAAA,GAP1C,eAQH;AARG,iBAAN;AAAA,EADN,cAAc,kBAAkB;AAAA,GACpB;","names":[]}
@@ -0,0 +1,239 @@
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-DTZHLZH2.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._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
+ testParts: testPartElements.map((testPart) => {
86
+ const sectionElements = [...testPart.querySelectorAll(`qti-assessment-section`)];
87
+ return {
88
+ active: false,
89
+ identifier: testPart.identifier,
90
+ navigationMode: testPart.navigationMode,
91
+ submissionMode: testPart.submissionMode,
92
+ sections: sectionElements.map((section) => {
93
+ const itemElements = [...section.querySelectorAll(`qti-assessment-item-ref`)];
94
+ return {
95
+ active: false,
96
+ identifier: section.identifier,
97
+ title: section.title,
98
+ items: itemElements.map(
99
+ (item) => ({
100
+ ...this.initContext?.find((i) => i.identifier === item.identifier),
101
+ active: false,
102
+ identifier: item.identifier,
103
+ href: item.href,
104
+ variables: []
105
+ })
106
+ )
107
+ };
108
+ })
109
+ };
110
+ })
111
+ };
112
+ }
113
+ /* PK: on item connected we can add item only properties in the xml */
114
+ _handleItemConnected(event) {
115
+ const itemElement = event.detail;
116
+ this.computedContext = {
117
+ ...this.computedContext,
118
+ testParts: this.computedContext.testParts.map((testPart) => {
119
+ return {
120
+ ...testPart,
121
+ sections: testPart.sections.map((section) => {
122
+ return {
123
+ ...section,
124
+ items: section.items.map((item) => {
125
+ if (item.identifier !== itemElement.parentElement.getAttribute("identifier")) {
126
+ return item;
127
+ }
128
+ return {
129
+ ...item,
130
+ assessmentItemIdentifier: itemElement.getAttribute("identifier"),
131
+ label: itemElement.getAttribute("label"),
132
+ title: itemElement.title,
133
+ adaptive: itemElement.adaptive == "true" || false,
134
+ timeDependent: itemElement.timeDependent == "true" || false,
135
+ variables: itemElement._context.variables
136
+ };
137
+ })
138
+ };
139
+ })
140
+ };
141
+ })
142
+ };
143
+ }
144
+ /* PK: on every change of the candidate we will recomputed the computedContext */
145
+ willUpdate(_changedProperties) {
146
+ if (!this.computedContext) return;
147
+ let itemIndex = 1;
148
+ this.computedContext = {
149
+ ...this.computedContext,
150
+ testParts: this.computedContext.testParts.map((testPart) => {
151
+ return {
152
+ ...testPart,
153
+ active: this._sessionContext?.navPartId === testPart.identifier || false,
154
+ sections: testPart.sections.map((section) => {
155
+ return {
156
+ ...section,
157
+ active: this._sessionContext?.navSectionId === section.identifier || false,
158
+ completed: section.items.every(
159
+ (item) => this._testContext.items.find((i) => i.identifier === item.identifier)?.variables.find((v) => v.identifier === "completionStatus").value === "completed"
160
+ ),
161
+ items: section.items.map((item) => {
162
+ const itemContext = this._testContext?.items.find((i) => i.identifier === item.identifier);
163
+ const computedItem = { ...item, ...itemContext };
164
+ const rawscore = computedItem.variables?.find((vr) => vr.identifier == "SCORE")?.value;
165
+ const score = parseInt(rawscore?.toString());
166
+ const completionStatus = computedItem.variables?.find((v) => v.identifier === "completionStatus")?.value;
167
+ const categories = computedItem.category ? computedItem.category?.split(" ") : [];
168
+ const type = categories.includes(this.configContext?.infoItemCategory) ? "info" : "regular";
169
+ const active = this._sessionContext?.navItemId === computedItem.identifier || false;
170
+ const correct = (
171
+ // this._testContext.view === 'scorer' &&
172
+ type == "regular" && score !== void 0 && !isNaN(score) && score > 0 || false
173
+ );
174
+ const incorrect = (
175
+ // this._testContext.view === 'scorer' &&
176
+ type == "regular" && score !== void 0 && !isNaN(score) && score <= 0 || false
177
+ );
178
+ const completed = (
179
+ // this._testContext.view === 'candidate' &&
180
+ completionStatus === "completed"
181
+ );
182
+ const response = computedItem.variables?.find((v) => v.identifier === "RESPONSE")?.value || "";
183
+ const index = categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;
184
+ const view = this._sessionContext.view;
185
+ return {
186
+ ...computedItem,
187
+ // rawscore, // not necessary for outside world
188
+ // score, // not necessary for outside world
189
+ // completionStatus, // not necessary for outside world
190
+ // categories, // not necessary for outside world
191
+ type,
192
+ active,
193
+ correct,
194
+ incorrect,
195
+ completed,
196
+ index,
197
+ response,
198
+ view
199
+ };
200
+ })
201
+ };
202
+ })
203
+ };
204
+ })
205
+ };
206
+ }
207
+ };
208
+ __decorateClass([
209
+ property({ type: String })
210
+ ], TestNavigation.prototype, "identifier", 2);
211
+ __decorateClass([
212
+ state()
213
+ ], TestNavigation.prototype, "initContext", 2);
214
+ __decorateClass([
215
+ state()
216
+ ], TestNavigation.prototype, "configContext", 2);
217
+ __decorateClass([
218
+ state(),
219
+ consume({ context: testContext, subscribe: true })
220
+ ], TestNavigation.prototype, "_testContext", 2);
221
+ __decorateClass([
222
+ state(),
223
+ consume({ context: sessionContext, subscribe: true })
224
+ ], TestNavigation.prototype, "_sessionContext", 2);
225
+ __decorateClass([
226
+ state(),
227
+ provide({ context: computedContext })
228
+ ], TestNavigation.prototype, "computedContext", 2);
229
+ __decorateClass([
230
+ property({ type: Boolean, attribute: "auto-score-items" })
231
+ ], TestNavigation.prototype, "autoScoreItems", 2);
232
+ TestNavigation = __decorateClass([
233
+ customElement("test-navigation")
234
+ ], TestNavigation);
235
+
236
+ export {
237
+ TestNavigation
238
+ };
239
+ //# sourceMappingURL=chunk-6HSX33RT.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 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.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._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 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(\n item =>\n ({\n ...this.initContext?.find(i => i.identifier === item.identifier),\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 const computedItem = { ...item, ...itemContext };\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;AAGpE,SAAO,gBAA+B,CAAC;AAcqB,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,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,SAAS;AAAA,IACvE;AACA,UAAM,sBAAsB,UAAU;AACtC,UAAM,6BAA6B,KAAK,eAAe,+BAA+B,OAA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