@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,43 @@
1
+ import {
2
+ computedContext
3
+ } from "./chunk-M43YVT6M.js";
4
+ import {
5
+ __decorateClass
6
+ } from "./chunk-H2JE6IVU.js";
7
+
8
+ // src/lib/qti-test/components/test-section-buttons-stamp.ts
9
+ import { html, LitElement } from "lit";
10
+ import { customElement } from "lit/decorators.js";
11
+ import { prepareTemplate } from "stampino";
12
+ import { consume } from "@lit/context";
13
+ var TestSectionButtonsStamp = class extends LitElement {
14
+ createRenderRoot() {
15
+ return this;
16
+ }
17
+ constructor() {
18
+ super();
19
+ this._internals = this.attachInternals();
20
+ this._internals.ariaLabel = "pagination";
21
+ }
22
+ connectedCallback() {
23
+ super.connectedCallback();
24
+ const templateElement = this.querySelector("template");
25
+ this.myTemplate = prepareTemplate(templateElement);
26
+ }
27
+ render() {
28
+ if (!this.computedContext) return html``;
29
+ const sections = this.computedContext.testParts.flatMap((testPart) => testPart.sections);
30
+ return html` ${sections.map((item) => this.myTemplate({ item }))} `;
31
+ }
32
+ };
33
+ __decorateClass([
34
+ consume({ context: computedContext, subscribe: true })
35
+ ], TestSectionButtonsStamp.prototype, "computedContext", 2);
36
+ TestSectionButtonsStamp = __decorateClass([
37
+ customElement("test-section-buttons-stamp")
38
+ ], TestSectionButtonsStamp);
39
+
40
+ export {
41
+ TestSectionButtonsStamp
42
+ };
43
+ //# sourceMappingURL=chunk-JX3F6YCC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/qti-test/components/test-section-buttons-stamp.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { prepareTemplate } from 'stampino';\nimport { consume } from '@lit/context';\n\nimport { computedContext } from '../../exports/computed.context';\n\nimport type { ComputedContext } from '../../exports/computed.context';\nimport type { TemplateFunction } from 'stampino';\n\n@customElement('test-section-buttons-stamp')\nexport class TestSectionButtonsStamp extends LitElement {\n @consume({ context: computedContext, subscribe: true })\n private computedContext: ComputedContext;\n\n myTemplate: TemplateFunction;\n private _internals: ElementInternals;\n\n protected createRenderRoot(): HTMLElement | DocumentFragment {\n return this;\n }\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n this._internals.ariaLabel = 'pagination';\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n const templateElement = this.querySelector<HTMLTemplateElement>('template');\n this.myTemplate = prepareTemplate(templateElement);\n }\n\n render() {\n if (!this.computedContext) return html``;\n const sections = this.computedContext.testParts.flatMap(testPart => testPart.sections);\n\n return html` ${sections.map(item => this.myTemplate({ item }))} `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-section-buttons-stamp': TestSectionButtonsStamp;\n }\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,MAAM,kBAAkB;AACjC,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAChC,SAAS,eAAe;AAQjB,IAAM,0BAAN,cAAsC,WAAW;AAAA,EAO5C,mBAAmD;AAC3D,WAAO;AAAA,EACT;AAAA,EAEA,cAAc;AACZ,UAAM;AACN,SAAK,aAAa,KAAK,gBAAgB;AACvC,SAAK,WAAW,YAAY;AAAA,EAC9B;AAAA,EAEA,oBAA0B;AACxB,UAAM,kBAAkB;AACxB,UAAM,kBAAkB,KAAK,cAAmC,UAAU;AAC1E,SAAK,aAAa,gBAAgB,eAAe;AAAA,EACnD;AAAA,EAEA,SAAS;AACP,QAAI,CAAC,KAAK,gBAAiB,QAAO;AAClC,UAAM,WAAW,KAAK,gBAAgB,UAAU,QAAQ,cAAY,SAAS,QAAQ;AAErF,WAAO,QAAQ,SAAS,IAAI,UAAQ,KAAK,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAAA,EAChE;AACF;AA3BU;AAAA,EADP,QAAQ,EAAE,SAAS,iBAAiB,WAAW,KAAK,CAAC;AAAA,GAD3C,wBAEH;AAFG,0BAAN;AAAA,EADN,cAAc,4BAA4B;AAAA,GAC9B;","names":[]}
@@ -0,0 +1,249 @@
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
+ // const initContext = this.initContext.find(i => i.identifier === item.identifier) || {};
79
+ /* PK: on test connected we can build the computed context */
80
+ _handleTestConnected(event) {
81
+ console.log("1", this.initContext);
82
+ this.initContext = null;
83
+ this._testElement = event.detail;
84
+ const testPartElements = Array.from(this._testElement?.querySelectorAll(`qti-test-part`) || []);
85
+ this.computedContext = {
86
+ identifier: this._testElement.identifier,
87
+ title: this._testElement.title,
88
+ testParts: testPartElements.map((testPart) => {
89
+ const sectionElements = [...testPart.querySelectorAll(`qti-assessment-section`)];
90
+ return {
91
+ active: false,
92
+ identifier: testPart.identifier,
93
+ navigationMode: testPart.navigationMode,
94
+ submissionMode: testPart.submissionMode,
95
+ sections: sectionElements.map((section) => {
96
+ const itemElements = [...section.querySelectorAll(`qti-assessment-item-ref`)];
97
+ return {
98
+ active: false,
99
+ identifier: section.identifier,
100
+ title: section.title,
101
+ items: itemElements.map((item) => {
102
+ let itemContext = {};
103
+ if (this.initContext) {
104
+ const initContext = this.initContext.find((i) => i.identifier === item.identifier);
105
+ itemContext = initContext;
106
+ }
107
+ console.log("itemContext", itemContext);
108
+ return {
109
+ ...itemContext,
110
+ active: false,
111
+ identifier: item.identifier,
112
+ href: item.href,
113
+ variables: []
114
+ };
115
+ })
116
+ };
117
+ })
118
+ };
119
+ })
120
+ };
121
+ }
122
+ /* PK: on item connected we can add item only properties in the xml */
123
+ _handleItemConnected(event) {
124
+ console.log("2", this.initContext);
125
+ const itemElement = event.detail;
126
+ this.computedContext = {
127
+ ...this.computedContext,
128
+ testParts: this.computedContext.testParts.map((testPart) => {
129
+ return {
130
+ ...testPart,
131
+ sections: testPart.sections.map((section) => {
132
+ return {
133
+ ...section,
134
+ items: section.items.map((item) => {
135
+ if (item.identifier !== itemElement.parentElement.getAttribute("identifier")) {
136
+ return item;
137
+ }
138
+ return {
139
+ ...item,
140
+ assessmentItemIdentifier: itemElement.getAttribute("identifier"),
141
+ label: itemElement.getAttribute("label"),
142
+ title: itemElement.title,
143
+ adaptive: itemElement.adaptive == "true" || false,
144
+ timeDependent: itemElement.timeDependent == "true" || false,
145
+ variables: itemElement._context.variables
146
+ };
147
+ })
148
+ };
149
+ })
150
+ };
151
+ })
152
+ };
153
+ }
154
+ /* PK: on every change of the candidate we will recomputed the computedContext */
155
+ willUpdate(_changedProperties) {
156
+ if (!this.computedContext) return;
157
+ let itemIndex = 1;
158
+ this.computedContext = {
159
+ ...this.computedContext,
160
+ testParts: this.computedContext.testParts.map((testPart) => {
161
+ return {
162
+ ...testPart,
163
+ active: this._sessionContext?.navPartId === testPart.identifier || false,
164
+ sections: testPart.sections.map((section) => {
165
+ return {
166
+ ...section,
167
+ active: this._sessionContext?.navSectionId === section.identifier || false,
168
+ completed: section.items.every(
169
+ (item) => this._testContext.items.find((i) => i.identifier === item.identifier)?.variables.find((v) => v.identifier === "completionStatus").value === "completed"
170
+ ),
171
+ items: section.items.map((item) => {
172
+ const itemContext = this._testContext?.items.find((i) => i.identifier === item.identifier);
173
+ const computedItem = { ...item, ...itemContext };
174
+ const rawscore = computedItem.variables?.find((vr) => vr.identifier == "SCORE")?.value;
175
+ const score = parseInt(rawscore?.toString());
176
+ const completionStatus = computedItem.variables?.find((v) => v.identifier === "completionStatus")?.value;
177
+ const categories = computedItem.category ? computedItem.category?.split(" ") : [];
178
+ const type = categories.includes(this.configContext?.infoItemCategory) ? "info" : "regular";
179
+ const active = this._sessionContext?.navItemId === computedItem.identifier || false;
180
+ const correct = (
181
+ // this._testContext.view === 'scorer' &&
182
+ type == "regular" && score !== void 0 && !isNaN(score) && score > 0 || false
183
+ );
184
+ const incorrect = (
185
+ // this._testContext.view === 'scorer' &&
186
+ type == "regular" && score !== void 0 && !isNaN(score) && score <= 0 || false
187
+ );
188
+ const completed = (
189
+ // this._testContext.view === 'candidate' &&
190
+ completionStatus === "completed"
191
+ );
192
+ const response = computedItem.variables?.find((v) => v.identifier === "RESPONSE")?.value || "";
193
+ const index = categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;
194
+ const view = this._sessionContext.view;
195
+ return {
196
+ ...computedItem,
197
+ // rawscore, // not necessary for outside world
198
+ // score, // not necessary for outside world
199
+ // completionStatus, // not necessary for outside world
200
+ // categories, // not necessary for outside world
201
+ type,
202
+ active,
203
+ correct,
204
+ incorrect,
205
+ completed,
206
+ index,
207
+ response,
208
+ view
209
+ };
210
+ })
211
+ };
212
+ })
213
+ };
214
+ })
215
+ };
216
+ }
217
+ };
218
+ __decorateClass([
219
+ property({ type: String })
220
+ ], TestNavigation.prototype, "identifier", 2);
221
+ __decorateClass([
222
+ state()
223
+ ], TestNavigation.prototype, "initContext", 2);
224
+ __decorateClass([
225
+ state(),
226
+ consume({ context: testContext, subscribe: true })
227
+ ], TestNavigation.prototype, "_testContext", 2);
228
+ __decorateClass([
229
+ state(),
230
+ consume({ context: sessionContext, subscribe: true })
231
+ ], TestNavigation.prototype, "_sessionContext", 2);
232
+ __decorateClass([
233
+ state()
234
+ ], TestNavigation.prototype, "configContext", 2);
235
+ __decorateClass([
236
+ state(),
237
+ provide({ context: computedContext })
238
+ ], TestNavigation.prototype, "computedContext", 2);
239
+ __decorateClass([
240
+ property({ type: Boolean, attribute: "auto-score-items" })
241
+ ], TestNavigation.prototype, "autoScoreItems", 2);
242
+ TestNavigation = __decorateClass([
243
+ customElement("test-navigation")
244
+ ], TestNavigation);
245
+
246
+ export {
247
+ TestNavigation
248
+ };
249
+ //# sourceMappingURL=chunk-JXMZQ3DF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/qti-test/components/test-navigation.ts"],"sourcesContent":["import { consume, provide } from '@lit/context';\nimport { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\n\nimport { testContext } from '../../exports/test.context';\nimport { sessionContext } from '../../exports/session.context';\nimport { computedContext } from '../../exports/computed.context';\n\nimport type { ComputedItemContext } from '../../exports/computed-item.context';\nimport type { QtiAssessmentItem } from '../../qti-components';\nimport type { OutcomeVariable } from '../../exports/variables';\nimport type { ComputedContext } from '../../exports/computed.context';\nimport type { PropertyValues } from 'lit';\nimport type { QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest, QtiTestPart } from '../core';\nimport type { ConfigContext } from '../../exports/config.context';\nimport type { SessionContext } from '../../exports/session.context';\nimport type { TestContext } from '../../exports/test.context';\n\ntype CustomEventMap = {\n 'test-end-attempt': CustomEvent;\n 'test-show-correct-response': CustomEvent<{ value: boolean }>;\n};\n\ndeclare global {\n interface GlobalEventHandlersEventMap extends CustomEventMap {}\n}\n\n@customElement('test-navigation')\nexport class TestNavigation extends LitElement {\n @property({ type: String }) identifier = undefined;\n\n @state()\n public initContext: { identifier: string; [key: string]: any }[] = [];\n\n @state()\n @consume({ context: testContext, subscribe: true })\n protected _testContext?: TestContext;\n\n @state()\n @consume({ context: sessionContext, subscribe: true })\n protected _sessionContext?: SessionContext;\n\n @state()\n protected configContext: ConfigContext = {};\n\n @state()\n @provide({ context: computedContext })\n protected computedContext: ComputedContext;\n\n @property({ type: Boolean, attribute: 'auto-score-items' }) autoScoreItems = false;\n\n private _testElement: QtiAssessmentTest;\n\n constructor() {\n super();\n this.addEventListener('qti-assessment-test-connected', this._handleTestConnected.bind(this));\n this.addEventListener('qti-assessment-item-connected', this._handleItemConnected.bind(this));\n\n this.addEventListener('qti-interaction-changed', this._handleInteractionChanged.bind(this));\n\n this.addEventListener('test-end-attempt', this._handleTestEndAttempt.bind(this));\n this.addEventListener('test-show-correct-response', this._handleTestShowCorrectResponse.bind(this));\n this.addEventListener('test-update-outcome-variable', this._handleTestUpdateOutcomeVariable.bind(this));\n }\n\n /**\n * Handles the 'test-end-attempt' event.\n * @private\n * @listens TestNavigation#test-end-attempt\n * @param {CustomEvent} event - The custom event object.\n */\n private _handleTestEndAttempt(_event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this._sessionContext.navItemId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;\n qtiAssessmentItemEl.processResponse(true, reportValidityAfterScoring);\n }\n\n /**\n * Handles the 'test-end-attempt' event.\n * @private\n * @listens TestNavigation#test-show-correct-response\n * @param {CustomEvent} event - The custom event object.\n */\n private _handleTestShowCorrectResponse(event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this._sessionContext.navItemId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n qtiAssessmentItemEl.showCorrectResponse(event.detail);\n }\n\n private _handleTestUpdateOutcomeVariable(event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${event.detail.assessmentItemRefId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n qtiAssessmentItemEl.setOutcomeVariable(event.detail.outcomeVariableId, event.detail.value);\n }\n\n private _handleInteractionChanged(_event: CustomEvent) {\n if (this.autoScoreItems) {\n const assessmentItem = (_event.composedPath()[0] as HTMLElement).closest('qti-assessment-item');\n const scoreOutcomeIdentifier = assessmentItem.variables.find(v => v.identifier === 'SCORE') as OutcomeVariable;\n if (\n scoreOutcomeIdentifier &&\n scoreOutcomeIdentifier.externalScored === null &&\n assessmentItem.adaptive === 'false'\n ) {\n assessmentItem.processResponse();\n }\n }\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n // const initContext = this.initContext.find(i => i.identifier === item.identifier) || {};\n\n /* PK: on test connected we can build the computed context */\n private _handleTestConnected(event: CustomEvent) {\n console.log('1', this.initContext);\n\n this.initContext = null;\n this._testElement = event.detail as QtiAssessmentTest;\n const testPartElements = Array.from(this._testElement?.querySelectorAll<QtiTestPart>(`qti-test-part`) || []);\n this.computedContext = {\n 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(item => {\n let itemContext = {};\n if (this.initContext) {\n const initContext = this.initContext.find(i => i.identifier === item.identifier);\n itemContext = initContext;\n }\n console.log('itemContext', itemContext);\n\n return {\n ...itemContext,\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 console.log('2', this.initContext);\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;AAz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B;AAElC,uBAAO;AAAA,kBACL,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,kBAKH;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,gBACF;AAAA,cACF,CAAC;AAAA,YACH;AAAA,UACF,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF;AACF;AApP8B;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GADf,eACiB;AAGrB;AAAA,EADN,MAAM;AAAA,GAHI,eAIJ;AAIG;AAAA,EAFT,MAAM;AAAA,EACN,QAAQ,EAAE,SAAS,aAAa,WAAW,KAAK,CAAC;AAAA,GAPvC,eAQD;AAIA;AAAA,EAFT,MAAM;AAAA,EACN,QAAQ,EAAE,SAAS,gBAAgB,WAAW,KAAK,CAAC;AAAA,GAX1C,eAYD;AAGA;AAAA,EADT,MAAM;AAAA,GAdI,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,248 @@
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
+ // const initContext = this.initContext.find(i => i.identifier === item.identifier) || {};
79
+ /* PK: on test connected we can build the computed context */
80
+ _handleTestConnected(event) {
81
+ console.log("1", this.initContext);
82
+ this.initContext = null;
83
+ this._testElement = event.detail;
84
+ const testPartElements = Array.from(this._testElement?.querySelectorAll(`qti-test-part`) || []);
85
+ this.computedContext = {
86
+ identifier: this._testElement.identifier,
87
+ title: this._testElement.title,
88
+ testParts: testPartElements.map((testPart) => {
89
+ const sectionElements = [...testPart.querySelectorAll(`qti-assessment-section`)];
90
+ return {
91
+ active: false,
92
+ identifier: testPart.identifier,
93
+ navigationMode: testPart.navigationMode,
94
+ submissionMode: testPart.submissionMode,
95
+ sections: sectionElements.map((section) => {
96
+ const itemElements = [...section.querySelectorAll(`qti-assessment-item-ref`)];
97
+ return {
98
+ active: false,
99
+ identifier: section.identifier,
100
+ title: section.title,
101
+ items: itemElements.map((item) => {
102
+ let itemContext = {};
103
+ if (this.initContext) {
104
+ const initContext = this.initContext.find((i) => i.identifier === item.identifier);
105
+ itemContext = initContext;
106
+ }
107
+ return {
108
+ ...itemContext,
109
+ active: false,
110
+ identifier: item.identifier,
111
+ href: item.href,
112
+ variables: []
113
+ };
114
+ })
115
+ };
116
+ })
117
+ };
118
+ })
119
+ };
120
+ }
121
+ /* PK: on item connected we can add item only properties in the xml */
122
+ _handleItemConnected(event) {
123
+ console.log("2", this.initContext);
124
+ const itemElement = event.detail;
125
+ this.computedContext = {
126
+ ...this.computedContext,
127
+ testParts: this.computedContext.testParts.map((testPart) => {
128
+ return {
129
+ ...testPart,
130
+ sections: testPart.sections.map((section) => {
131
+ return {
132
+ ...section,
133
+ items: section.items.map((item) => {
134
+ if (item.identifier !== itemElement.parentElement.getAttribute("identifier")) {
135
+ return item;
136
+ }
137
+ return {
138
+ ...item,
139
+ assessmentItemIdentifier: itemElement.getAttribute("identifier"),
140
+ label: itemElement.getAttribute("label"),
141
+ title: itemElement.title,
142
+ adaptive: itemElement.adaptive == "true" || false,
143
+ timeDependent: itemElement.timeDependent == "true" || false,
144
+ variables: itemElement._context.variables
145
+ };
146
+ })
147
+ };
148
+ })
149
+ };
150
+ })
151
+ };
152
+ }
153
+ /* PK: on every change of the candidate we will recomputed the computedContext */
154
+ willUpdate(_changedProperties) {
155
+ if (!this.computedContext) return;
156
+ let itemIndex = 1;
157
+ this.computedContext = {
158
+ ...this.computedContext,
159
+ testParts: this.computedContext.testParts.map((testPart) => {
160
+ return {
161
+ ...testPart,
162
+ active: this._sessionContext?.navPartId === testPart.identifier || false,
163
+ sections: testPart.sections.map((section) => {
164
+ return {
165
+ ...section,
166
+ active: this._sessionContext?.navSectionId === section.identifier || false,
167
+ completed: section.items.every(
168
+ (item) => this._testContext.items.find((i) => i.identifier === item.identifier)?.variables.find((v) => v.identifier === "completionStatus").value === "completed"
169
+ ),
170
+ items: section.items.map((item) => {
171
+ const itemContext = this._testContext?.items.find((i) => i.identifier === item.identifier);
172
+ const computedItem = { ...item, ...itemContext };
173
+ const rawscore = computedItem.variables?.find((vr) => vr.identifier == "SCORE")?.value;
174
+ const score = parseInt(rawscore?.toString());
175
+ const completionStatus = computedItem.variables?.find((v) => v.identifier === "completionStatus")?.value;
176
+ const categories = computedItem.category ? computedItem.category?.split(" ") : [];
177
+ const type = categories.includes(this.configContext?.infoItemCategory) ? "info" : "regular";
178
+ const active = this._sessionContext?.navItemId === computedItem.identifier || false;
179
+ const correct = (
180
+ // this._testContext.view === 'scorer' &&
181
+ type == "regular" && score !== void 0 && !isNaN(score) && score > 0 || false
182
+ );
183
+ const incorrect = (
184
+ // this._testContext.view === 'scorer' &&
185
+ type == "regular" && score !== void 0 && !isNaN(score) && score <= 0 || false
186
+ );
187
+ const completed = (
188
+ // this._testContext.view === 'candidate' &&
189
+ completionStatus === "completed"
190
+ );
191
+ const response = computedItem.variables?.find((v) => v.identifier === "RESPONSE")?.value || "";
192
+ const index = categories.includes(this.configContext?.infoItemCategory) ? null : itemIndex++;
193
+ const view = this._sessionContext.view;
194
+ return {
195
+ ...computedItem,
196
+ // rawscore, // not necessary for outside world
197
+ // score, // not necessary for outside world
198
+ // completionStatus, // not necessary for outside world
199
+ // categories, // not necessary for outside world
200
+ type,
201
+ active,
202
+ correct,
203
+ incorrect,
204
+ completed,
205
+ index,
206
+ response,
207
+ view
208
+ };
209
+ })
210
+ };
211
+ })
212
+ };
213
+ })
214
+ };
215
+ }
216
+ };
217
+ __decorateClass([
218
+ property({ type: String })
219
+ ], TestNavigation.prototype, "identifier", 2);
220
+ __decorateClass([
221
+ state()
222
+ ], TestNavigation.prototype, "initContext", 2);
223
+ __decorateClass([
224
+ state(),
225
+ consume({ context: testContext, subscribe: true })
226
+ ], TestNavigation.prototype, "_testContext", 2);
227
+ __decorateClass([
228
+ state(),
229
+ consume({ context: sessionContext, subscribe: true })
230
+ ], TestNavigation.prototype, "_sessionContext", 2);
231
+ __decorateClass([
232
+ state()
233
+ ], TestNavigation.prototype, "configContext", 2);
234
+ __decorateClass([
235
+ state(),
236
+ provide({ context: computedContext })
237
+ ], TestNavigation.prototype, "computedContext", 2);
238
+ __decorateClass([
239
+ property({ type: Boolean, attribute: "auto-score-items" })
240
+ ], TestNavigation.prototype, "autoScoreItems", 2);
241
+ TestNavigation = __decorateClass([
242
+ customElement("test-navigation")
243
+ ], TestNavigation);
244
+
245
+ export {
246
+ TestNavigation
247
+ };
248
+ //# sourceMappingURL=chunk-K7JGTBMV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/qti-test/components/test-navigation.ts"],"sourcesContent":["import { consume, provide } from '@lit/context';\nimport { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\n\nimport { testContext } from '../../exports/test.context';\nimport { sessionContext } from '../../exports/session.context';\nimport { computedContext } from '../../exports/computed.context';\n\nimport type { ComputedItemContext } from '../../exports/computed-item.context';\nimport type { QtiAssessmentItem } from '../../qti-components';\nimport type { OutcomeVariable } from '../../exports/variables';\nimport type { ComputedContext } from '../../exports/computed.context';\nimport type { PropertyValues } from 'lit';\nimport type { QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest, QtiTestPart } from '../core';\nimport type { ConfigContext } from '../../exports/config.context';\nimport type { SessionContext } from '../../exports/session.context';\nimport type { TestContext } from '../../exports/test.context';\n\ntype CustomEventMap = {\n 'test-end-attempt': CustomEvent;\n 'test-show-correct-response': CustomEvent<{ value: boolean }>;\n};\n\ndeclare global {\n interface GlobalEventHandlersEventMap extends CustomEventMap {}\n}\n\n@customElement('test-navigation')\nexport class TestNavigation extends LitElement {\n @property({ type: String }) identifier = undefined;\n\n @state()\n public initContext: { identifier: string; [key: string]: any }[] = [];\n\n @state()\n @consume({ context: testContext, subscribe: true })\n protected _testContext?: TestContext;\n\n @state()\n @consume({ context: sessionContext, subscribe: true })\n protected _sessionContext?: SessionContext;\n\n @state()\n protected configContext: ConfigContext = {};\n\n @state()\n @provide({ context: computedContext })\n protected computedContext: ComputedContext;\n\n @property({ type: Boolean, attribute: 'auto-score-items' }) autoScoreItems = false;\n\n private _testElement: QtiAssessmentTest;\n\n constructor() {\n super();\n this.addEventListener('qti-assessment-test-connected', this._handleTestConnected.bind(this));\n this.addEventListener('qti-assessment-item-connected', this._handleItemConnected.bind(this));\n\n this.addEventListener('qti-interaction-changed', this._handleInteractionChanged.bind(this));\n\n this.addEventListener('test-end-attempt', this._handleTestEndAttempt.bind(this));\n this.addEventListener('test-show-correct-response', this._handleTestShowCorrectResponse.bind(this));\n this.addEventListener('test-update-outcome-variable', this._handleTestUpdateOutcomeVariable.bind(this));\n }\n\n /**\n * Handles the 'test-end-attempt' event.\n * @private\n * @listens TestNavigation#test-end-attempt\n * @param {CustomEvent} event - The custom event object.\n */\n private _handleTestEndAttempt(_event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this._sessionContext.navItemId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n const reportValidityAfterScoring = this.configContext?.reportValidityAfterScoring === true ? true : false;\n qtiAssessmentItemEl.processResponse(true, reportValidityAfterScoring);\n }\n\n /**\n * Handles the 'test-end-attempt' event.\n * @private\n * @listens TestNavigation#test-show-correct-response\n * @param {CustomEvent} event - The custom event object.\n */\n private _handleTestShowCorrectResponse(event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this._sessionContext.navItemId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n qtiAssessmentItemEl.showCorrectResponse(event.detail);\n }\n\n private _handleTestUpdateOutcomeVariable(event: CustomEvent) {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${event.detail.assessmentItemRefId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n qtiAssessmentItemEl.setOutcomeVariable(event.detail.outcomeVariableId, event.detail.value);\n }\n\n private _handleInteractionChanged(_event: CustomEvent) {\n if (this.autoScoreItems) {\n const assessmentItem = (_event.composedPath()[0] as HTMLElement).closest('qti-assessment-item');\n const scoreOutcomeIdentifier = assessmentItem.variables.find(v => v.identifier === 'SCORE') as OutcomeVariable;\n if (\n scoreOutcomeIdentifier &&\n scoreOutcomeIdentifier.externalScored === null &&\n assessmentItem.adaptive === 'false'\n ) {\n assessmentItem.processResponse();\n }\n }\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n // const initContext = this.initContext.find(i => i.identifier === item.identifier) || {};\n\n /* PK: on test connected we can build the computed context */\n private _handleTestConnected(event: CustomEvent) {\n console.log('1', this.initContext);\n\n this.initContext = null;\n this._testElement = event.detail as QtiAssessmentTest;\n const testPartElements = Array.from(this._testElement?.querySelectorAll<QtiTestPart>(`qti-test-part`) || []);\n this.computedContext = {\n 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(item => {\n let itemContext = {};\n if (this.initContext) {\n const initContext = this.initContext.find(i => i.identifier === item.identifier);\n itemContext = initContext;\n }\n\n return {\n ...itemContext,\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 console.log('2', this.initContext);\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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