@citolab/qti-components 7.1.6 → 7.2.1

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 (411) hide show
  1. package/cdn/chunks/chunk-2CXOEWW3.js +5 -0
  2. package/cdn/chunks/chunk-2GVQHMFN.js +5 -0
  3. package/cdn/chunks/chunk-34TLO462.js +1 -0
  4. package/cdn/chunks/chunk-3AUZHOWF.js +5 -0
  5. package/cdn/chunks/chunk-3BTFQ7WO.js +5 -0
  6. package/cdn/chunks/chunk-3G52PPHF.js +1 -0
  7. package/cdn/chunks/chunk-3T7FMZJJ.js +5 -0
  8. package/cdn/chunks/chunk-3WMAQ764.js +23 -0
  9. package/cdn/chunks/chunk-3XYZ63C3.js +1 -0
  10. package/cdn/chunks/chunk-42AQQPRG.js +5 -0
  11. package/cdn/chunks/chunk-43VY76CQ.js +5 -0
  12. package/cdn/chunks/chunk-4VDQDT6F.js +1 -0
  13. package/cdn/chunks/chunk-4XDZ5XHU.js +1007 -0
  14. package/cdn/chunks/chunk-52V4Q43H.js +5 -0
  15. package/cdn/chunks/chunk-5DVS53XB.js +1007 -0
  16. package/cdn/chunks/chunk-5SM3KVCK.js +5 -0
  17. package/cdn/chunks/chunk-6BZPFYLZ.js +1 -0
  18. package/cdn/chunks/chunk-7B6HAKFL.js +1 -0
  19. package/cdn/chunks/chunk-7BENQ76L.js +1 -0
  20. package/cdn/chunks/chunk-A5GQJBQ4.js +5 -0
  21. package/cdn/chunks/chunk-A6PJTNI7.js +23 -0
  22. package/cdn/chunks/chunk-AFBSMLI4.js +5 -0
  23. package/cdn/chunks/chunk-AU2GM346.js +23 -0
  24. package/cdn/chunks/chunk-B345O2HX.js +1 -0
  25. package/cdn/chunks/chunk-B3RMHCUZ.js +1 -0
  26. package/cdn/chunks/chunk-BFPXRWNH.js +5 -0
  27. package/cdn/chunks/chunk-BGBABJCL.js +5 -0
  28. package/cdn/chunks/chunk-BKSBIZJA.js +5 -0
  29. package/cdn/chunks/chunk-BWG4B5VP.js +0 -0
  30. package/cdn/chunks/chunk-C25LH4KA.js +1 -0
  31. package/cdn/chunks/chunk-CDCBI3YD.js +1 -0
  32. package/cdn/chunks/chunk-CQPD5NPM.js +1 -0
  33. package/cdn/chunks/chunk-CS6UCV2Q.js +5 -0
  34. package/cdn/chunks/chunk-D74A6CWS.js +8 -0
  35. package/cdn/chunks/chunk-DFZQWABG.js +5 -0
  36. package/cdn/chunks/chunk-DHZMASGY.js +5 -0
  37. package/cdn/chunks/chunk-EZ7OIK2M.js +1007 -0
  38. package/cdn/chunks/chunk-F2WLIUYH.js +5 -0
  39. package/cdn/chunks/chunk-F3ZZJBV2.js +5 -0
  40. package/cdn/chunks/chunk-FCH2GIHD.js +1 -0
  41. package/cdn/chunks/chunk-FKUEIENC.js +5 -0
  42. package/cdn/chunks/chunk-FMCWO2FJ.js +17 -0
  43. package/cdn/chunks/chunk-FQW2YR3J.js +1 -0
  44. package/cdn/chunks/chunk-FVEUVB2H.js +23 -0
  45. package/cdn/chunks/chunk-GMF365YO.js +16 -0
  46. package/cdn/chunks/chunk-GWRXCQHZ.js +23 -0
  47. package/cdn/chunks/chunk-HAXNBTTE.js +1 -0
  48. package/cdn/chunks/chunk-HEAJ2NEA.js +1007 -0
  49. package/cdn/chunks/chunk-HKBOCCDM.js +5 -0
  50. package/cdn/chunks/chunk-HRLTVAPZ.js +5 -0
  51. package/cdn/chunks/chunk-HZ5STZXK.js +5 -0
  52. package/cdn/chunks/chunk-I5HGXKPD.js +1007 -0
  53. package/cdn/chunks/chunk-IELXBBZK.js +5 -0
  54. package/cdn/chunks/chunk-IHL5T5GX.js +5 -0
  55. package/cdn/chunks/chunk-IHVEZOAV.js +5 -0
  56. package/cdn/chunks/chunk-J2M4UG43.js +1 -0
  57. package/cdn/chunks/chunk-JAMSX45C.js +1 -0
  58. package/cdn/chunks/chunk-JEPI46VU.js +5 -0
  59. package/cdn/chunks/chunk-JSQUXTN4.js +1033 -0
  60. package/cdn/chunks/chunk-JXDOR5ZC.js +1 -0
  61. package/cdn/chunks/chunk-JXU7B3Q3.js +5 -0
  62. package/cdn/chunks/chunk-JZCJOPJ4.js +1007 -0
  63. package/cdn/chunks/chunk-KKEW6E2D.js +5 -0
  64. package/cdn/chunks/chunk-L4UTGAI5.js +5 -0
  65. package/cdn/chunks/chunk-LMLG3NBM.js +5 -0
  66. package/cdn/chunks/chunk-MM2ZXHVH.js +5 -0
  67. package/cdn/chunks/chunk-NQQE76LE.js +1 -0
  68. package/cdn/chunks/chunk-O6CWZJXT.js +28 -0
  69. package/cdn/chunks/chunk-OK2KV5ZV.js +1033 -0
  70. package/cdn/chunks/chunk-OSEDGNNB.js +1007 -0
  71. package/cdn/chunks/chunk-PJFHT7NY.js +5 -0
  72. package/cdn/chunks/chunk-PKWOG7OF.js +5 -0
  73. package/cdn/chunks/chunk-PTG4PTFS.js +5 -0
  74. package/cdn/chunks/chunk-PX7O5JO2.js +1033 -0
  75. package/cdn/chunks/chunk-QBLSG366.js +1033 -0
  76. package/cdn/chunks/chunk-QIRSCGXH.js +1007 -0
  77. package/cdn/chunks/chunk-RIPDQPTC.js +5 -0
  78. package/cdn/chunks/chunk-RO5THFZ6.js +5 -0
  79. package/cdn/chunks/chunk-SNS5XDXU.js +1033 -0
  80. package/cdn/chunks/chunk-SQ3RENJ6.js +5 -0
  81. package/cdn/chunks/chunk-SUOAWPV7.js +23 -0
  82. package/cdn/chunks/chunk-T43NJLH5.js +5 -0
  83. package/cdn/chunks/chunk-TIH5N4LQ.js +1007 -0
  84. package/cdn/chunks/chunk-TOUJRNTD.js +1007 -0
  85. package/cdn/chunks/chunk-TSMKXWWV.js +5 -0
  86. package/cdn/chunks/chunk-TU4L55WU.js +5 -0
  87. package/cdn/chunks/chunk-UDPQY4OA.js +1007 -0
  88. package/cdn/chunks/chunk-ULI6NOVG.js +23 -0
  89. package/cdn/chunks/chunk-UTEMKKYS.js +1 -0
  90. package/cdn/chunks/chunk-UV3CSMRU.js +5 -0
  91. package/cdn/chunks/chunk-V2RDHKE2.js +5 -0
  92. package/cdn/chunks/chunk-VQLIWL6K.js +5 -0
  93. package/cdn/chunks/chunk-VZEUFE5C.js +3455 -0
  94. package/cdn/chunks/chunk-W5B2MLGL.js +1 -0
  95. package/cdn/chunks/chunk-WJGOCWFB.js +1 -0
  96. package/cdn/chunks/chunk-WLQN7SVZ.js +1033 -0
  97. package/cdn/chunks/chunk-WUX2JPB5.js +17 -0
  98. package/cdn/chunks/chunk-X7FRU3B6.js +5 -0
  99. package/cdn/chunks/chunk-XAGT5BEK.js +1033 -0
  100. package/cdn/chunks/chunk-XS46RWY6.js +5 -0
  101. package/cdn/chunks/chunk-XTNESJMB.js +5 -0
  102. package/cdn/chunks/chunk-Y2EDF22E.js +16 -0
  103. package/cdn/chunks/chunk-YE4ZNHXG.js +23 -0
  104. package/cdn/chunks/chunk-YMFPA4QO.js +5 -0
  105. package/cdn/chunks/chunk-YRK3ZLQP.js +1033 -0
  106. package/cdn/chunks/chunk-ZOMLA6TY.js +1033 -0
  107. package/cdn/index.global.js +1 -1
  108. package/cdn/index.js +1 -1
  109. package/cdn/qti-components/index.js +1 -1
  110. package/cdn/qti-item/components/item-container.js +1 -1
  111. package/cdn/qti-item/core/index.js +1 -1
  112. package/cdn/qti-loader/index.js +1 -1
  113. package/cdn/qti-test/components/index.js +1 -1
  114. package/cdn/qti-test/components/test-container.js +1 -1
  115. package/cdn/qti-test/components/test-navigation.js +1 -1
  116. package/cdn/qti-test/components/test-next.js +1 -1
  117. package/cdn/qti-test/components/test-scoring-buttons.js +1 -1
  118. package/cdn/qti-test/components/test-scoring-feedback.js +1 -1
  119. package/cdn/qti-test/components/test-stamp.js +1 -0
  120. package/cdn/qti-test/components/test-view-toggle.js +1 -1
  121. package/cdn/qti-test/core/index.js +1 -1
  122. package/cdn/qti-transformers/index.js +1 -1
  123. package/dist/chunks/chunk-2GPGOKL6.js +94 -0
  124. package/dist/chunks/chunk-2GPGOKL6.js.map +1 -0
  125. package/dist/chunks/chunk-2J22QBLB.js +94 -0
  126. package/dist/chunks/chunk-2J22QBLB.js.map +1 -0
  127. package/dist/chunks/chunk-34F2DVNP.js +85 -0
  128. package/dist/chunks/chunk-34F2DVNP.js.map +1 -0
  129. package/dist/chunks/chunk-3TM6VQEG.js +375 -0
  130. package/dist/chunks/chunk-3TM6VQEG.js.map +1 -0
  131. package/dist/chunks/chunk-3YVVZ2MO.js +374 -0
  132. package/dist/chunks/chunk-3YVVZ2MO.js.map +1 -0
  133. package/dist/chunks/chunk-46RFKXS6.js +94 -0
  134. package/dist/chunks/chunk-46RFKXS6.js.map +1 -0
  135. package/dist/chunks/chunk-47BWT37I.js +94 -0
  136. package/dist/chunks/chunk-47BWT37I.js.map +1 -0
  137. package/dist/chunks/chunk-4EXSIVXY.js +68 -0
  138. package/dist/chunks/chunk-4EXSIVXY.js.map +1 -0
  139. package/dist/chunks/chunk-4IPSXNHA.js +870 -0
  140. package/dist/chunks/chunk-4IPSXNHA.js.map +1 -0
  141. package/dist/chunks/chunk-4JL6LXWC.js +94 -0
  142. package/dist/chunks/chunk-4JL6LXWC.js.map +1 -0
  143. package/dist/chunks/chunk-4TQ3YR2O.js +31 -0
  144. package/dist/chunks/chunk-4TQ3YR2O.js.map +1 -0
  145. package/dist/chunks/chunk-4VEH63K4.js +854 -0
  146. package/dist/chunks/chunk-4VEH63K4.js.map +1 -0
  147. package/dist/chunks/chunk-5FKTC6XV.js +99 -0
  148. package/dist/chunks/chunk-5FKTC6XV.js.map +1 -0
  149. package/dist/chunks/chunk-5SZAGP4N.js +863 -0
  150. package/dist/chunks/chunk-5SZAGP4N.js.map +1 -0
  151. package/dist/chunks/chunk-64EQ3AQ4.js +240 -0
  152. package/dist/chunks/chunk-64EQ3AQ4.js.map +1 -0
  153. package/dist/chunks/chunk-6MECYIS2.js +94 -0
  154. package/dist/chunks/chunk-6MECYIS2.js.map +1 -0
  155. package/dist/chunks/chunk-6T5ICOX2.js +94 -0
  156. package/dist/chunks/chunk-6T5ICOX2.js.map +1 -0
  157. package/dist/chunks/chunk-6ZK4ZDQA.js +94 -0
  158. package/dist/chunks/chunk-6ZK4ZDQA.js.map +1 -0
  159. package/dist/chunks/chunk-7KTTLJUH.js +45 -0
  160. package/dist/chunks/chunk-7KTTLJUH.js.map +1 -0
  161. package/dist/chunks/chunk-7LFQ6D75.js +95 -0
  162. package/dist/chunks/chunk-7LFQ6D75.js.map +1 -0
  163. package/dist/chunks/chunk-7T5WVG7T.js +853 -0
  164. package/dist/chunks/chunk-7T5WVG7T.js.map +1 -0
  165. package/dist/chunks/chunk-A5IAS5VV.js +54 -0
  166. package/dist/chunks/chunk-A5IAS5VV.js.map +1 -0
  167. package/dist/chunks/chunk-ABDJRZ2V.js +78 -0
  168. package/dist/chunks/chunk-ABDJRZ2V.js.map +1 -0
  169. package/dist/chunks/chunk-AN33KA5S.js +94 -0
  170. package/dist/chunks/chunk-AN33KA5S.js.map +1 -0
  171. package/dist/chunks/chunk-B2SP77UV.js +818 -0
  172. package/dist/chunks/chunk-B2SP77UV.js.map +1 -0
  173. package/dist/chunks/chunk-BB7V3D2X.js +250 -0
  174. package/dist/chunks/chunk-BB7V3D2X.js.map +1 -0
  175. package/dist/chunks/chunk-BJAP2552.js +6893 -0
  176. package/dist/chunks/chunk-BJAP2552.js.map +1 -0
  177. package/dist/chunks/chunk-BSPLGP2R.js +627 -0
  178. package/dist/chunks/chunk-BSPLGP2R.js.map +1 -0
  179. package/dist/chunks/chunk-BWUEY6V5.js +818 -0
  180. package/dist/chunks/chunk-BWUEY6V5.js.map +1 -0
  181. package/dist/chunks/chunk-C7YUIKFQ.js +249 -0
  182. package/dist/chunks/chunk-C7YUIKFQ.js.map +1 -0
  183. package/dist/chunks/chunk-CIZ7HKZC.js +42 -0
  184. package/dist/chunks/chunk-CIZ7HKZC.js.map +1 -0
  185. package/dist/chunks/chunk-CJSBOJOH.js +6888 -0
  186. package/dist/chunks/chunk-CJSBOJOH.js.map +1 -0
  187. package/dist/chunks/chunk-CYB63HHS.js +31 -0
  188. package/dist/chunks/chunk-CYB63HHS.js.map +1 -0
  189. package/dist/chunks/chunk-DFSZKFKS.js +43 -0
  190. package/dist/chunks/chunk-DFSZKFKS.js.map +1 -0
  191. package/dist/chunks/chunk-DNRSH4DB.js +854 -0
  192. package/dist/chunks/chunk-DNRSH4DB.js.map +1 -0
  193. package/dist/chunks/chunk-DPDCXMHW.js +81 -0
  194. package/dist/chunks/chunk-DPDCXMHW.js.map +1 -0
  195. package/dist/chunks/chunk-DQ62VQEH.js +627 -0
  196. package/dist/chunks/chunk-DQ62VQEH.js.map +1 -0
  197. package/dist/chunks/chunk-E4G74EVO.js +99 -0
  198. package/dist/chunks/chunk-E4G74EVO.js.map +1 -0
  199. package/dist/chunks/chunk-E7YBWRAI.js +870 -0
  200. package/dist/chunks/chunk-E7YBWRAI.js.map +1 -0
  201. package/dist/chunks/chunk-EA7DHOYO.js +6903 -0
  202. package/dist/chunks/chunk-EA7DHOYO.js.map +1 -0
  203. package/dist/chunks/chunk-EAFJQRTV.js +56 -0
  204. package/dist/chunks/chunk-EAFJQRTV.js.map +1 -0
  205. package/dist/chunks/chunk-EL4TPH56.js +94 -0
  206. package/dist/chunks/chunk-EL4TPH56.js.map +1 -0
  207. package/dist/chunks/chunk-ERWBN3ZB.js +6899 -0
  208. package/dist/chunks/chunk-ERWBN3ZB.js.map +1 -0
  209. package/dist/chunks/chunk-FI6LX4IS.js +853 -0
  210. package/dist/chunks/chunk-FI6LX4IS.js.map +1 -0
  211. package/dist/chunks/chunk-FORIPEB2.js +241 -0
  212. package/dist/chunks/chunk-FORIPEB2.js.map +1 -0
  213. package/dist/chunks/chunk-G3TG4ADZ.js +8 -0
  214. package/dist/chunks/chunk-G3TG4ADZ.js.map +1 -0
  215. package/dist/chunks/chunk-H4XZSMVR.js +375 -0
  216. package/dist/chunks/chunk-H4XZSMVR.js.map +1 -0
  217. package/dist/chunks/chunk-H6O2X4MD.js +42 -0
  218. package/dist/chunks/chunk-H6O2X4MD.js.map +1 -0
  219. package/dist/chunks/chunk-H7W3RQS4.js +627 -0
  220. package/dist/chunks/chunk-H7W3RQS4.js.map +1 -0
  221. package/dist/chunks/chunk-HMHM2W7Z.js +241 -0
  222. package/dist/chunks/chunk-HMHM2W7Z.js.map +1 -0
  223. package/dist/chunks/chunk-I3RHYDUK.js +6917 -0
  224. package/dist/chunks/chunk-I3RHYDUK.js.map +1 -0
  225. package/dist/chunks/chunk-IHNLBY62.js +42 -0
  226. package/dist/chunks/chunk-IHNLBY62.js.map +1 -0
  227. package/dist/chunks/chunk-ILA6BNIO.js +31 -0
  228. package/dist/chunks/chunk-ILA6BNIO.js.map +1 -0
  229. package/dist/chunks/chunk-JFZF77EN.js +31 -0
  230. package/dist/chunks/chunk-JFZF77EN.js.map +1 -0
  231. package/dist/chunks/chunk-JOQ2E6SE.js +92 -0
  232. package/dist/chunks/chunk-JOQ2E6SE.js.map +1 -0
  233. package/dist/chunks/chunk-JQBEZ43O.js +240 -0
  234. package/dist/chunks/chunk-JQBEZ43O.js.map +1 -0
  235. package/dist/chunks/chunk-JQQ755AG.js +854 -0
  236. package/dist/chunks/chunk-JQQ755AG.js.map +1 -0
  237. package/dist/chunks/chunk-JRDTY7YA.js +627 -0
  238. package/dist/chunks/chunk-JRDTY7YA.js.map +1 -0
  239. package/dist/chunks/chunk-JU7QJQ6F.js +853 -0
  240. package/dist/chunks/chunk-JU7QJQ6F.js.map +1 -0
  241. package/dist/chunks/chunk-JVAVUINW.js +870 -0
  242. package/dist/chunks/chunk-JVAVUINW.js.map +1 -0
  243. package/dist/chunks/chunk-K6LM7XK5.js +94 -0
  244. package/dist/chunks/chunk-K6LM7XK5.js.map +1 -0
  245. package/dist/chunks/chunk-K6PU3ZO4.js +853 -0
  246. package/dist/chunks/chunk-K6PU3ZO4.js.map +1 -0
  247. package/dist/chunks/chunk-KD26ZB2H.js +3445 -0
  248. package/dist/chunks/chunk-KD26ZB2H.js.map +1 -0
  249. package/dist/chunks/chunk-KGL6SIOD.js +6893 -0
  250. package/dist/chunks/chunk-KGL6SIOD.js.map +1 -0
  251. package/dist/chunks/chunk-KIRLKN6I.js +68 -0
  252. package/dist/chunks/chunk-KIRLKN6I.js.map +1 -0
  253. package/dist/chunks/chunk-L74KEUIS.js +94 -0
  254. package/dist/chunks/chunk-L74KEUIS.js.map +1 -0
  255. package/dist/chunks/chunk-LD4XIWJQ.js +6908 -0
  256. package/dist/chunks/chunk-LD4XIWJQ.js.map +1 -0
  257. package/dist/chunks/chunk-LEXNKJYF.js +6888 -0
  258. package/dist/chunks/chunk-LEXNKJYF.js.map +1 -0
  259. package/dist/chunks/chunk-LHF73NOA.js +6899 -0
  260. package/dist/chunks/chunk-LHF73NOA.js.map +1 -0
  261. package/dist/chunks/chunk-LVE5GKDT.js +94 -0
  262. package/dist/chunks/chunk-LVE5GKDT.js.map +1 -0
  263. package/dist/chunks/chunk-LVZHVB7F.js +31 -0
  264. package/dist/chunks/chunk-LVZHVB7F.js.map +1 -0
  265. package/dist/chunks/chunk-MGLNBEW4.js +33 -0
  266. package/dist/chunks/chunk-MGLNBEW4.js.map +1 -0
  267. package/dist/chunks/chunk-MS7YRGNG.js +56 -0
  268. package/dist/chunks/chunk-MS7YRGNG.js.map +1 -0
  269. package/dist/chunks/chunk-N25ZKAHQ.js +50 -0
  270. package/dist/chunks/chunk-N25ZKAHQ.js.map +1 -0
  271. package/dist/chunks/chunk-N46CJQRI.js +94 -0
  272. package/dist/chunks/chunk-N46CJQRI.js.map +1 -0
  273. package/dist/chunks/chunk-N4QWREF4.js +375 -0
  274. package/dist/chunks/chunk-N4QWREF4.js.map +1 -0
  275. package/dist/chunks/chunk-NM3JA4DH.js +6893 -0
  276. package/dist/chunks/chunk-NM3JA4DH.js.map +1 -0
  277. package/dist/chunks/chunk-NOHVLBCB.js +371 -0
  278. package/dist/chunks/chunk-NOHVLBCB.js.map +1 -0
  279. package/dist/chunks/chunk-NQSOVEFB.js +31 -0
  280. package/dist/chunks/chunk-NQSOVEFB.js.map +1 -0
  281. package/dist/chunks/chunk-OA7AFFCB.js +866 -0
  282. package/dist/chunks/chunk-OA7AFFCB.js.map +1 -0
  283. package/dist/chunks/chunk-OLNSD7FR.js +31 -0
  284. package/dist/chunks/chunk-OLNSD7FR.js.map +1 -0
  285. package/dist/chunks/chunk-OREE4FRY.js +42 -0
  286. package/dist/chunks/chunk-OREE4FRY.js.map +1 -0
  287. package/dist/chunks/chunk-P66WO2Q5.js +870 -0
  288. package/dist/chunks/chunk-P66WO2Q5.js.map +1 -0
  289. package/dist/chunks/chunk-PKOIFI5C.js +853 -0
  290. package/dist/chunks/chunk-PKOIFI5C.js.map +1 -0
  291. package/dist/chunks/chunk-Q5QUG5DL.js +870 -0
  292. package/dist/chunks/chunk-Q5QUG5DL.js.map +1 -0
  293. package/dist/chunks/chunk-QFV3VHZ4.js +43 -0
  294. package/dist/chunks/chunk-QFV3VHZ4.js.map +1 -0
  295. package/dist/chunks/chunk-QTKNSVUO.js +854 -0
  296. package/dist/chunks/chunk-QTKNSVUO.js.map +1 -0
  297. package/dist/chunks/chunk-QYH6VORA.js +6895 -0
  298. package/dist/chunks/chunk-QYH6VORA.js.map +1 -0
  299. package/dist/chunks/chunk-RSGEN2FF.js +6917 -0
  300. package/dist/chunks/chunk-RSGEN2FF.js.map +1 -0
  301. package/dist/chunks/chunk-S4YY5LQ6.js +870 -0
  302. package/dist/chunks/chunk-S4YY5LQ6.js.map +1 -0
  303. package/dist/chunks/chunk-S6XGFD5B.js +6893 -0
  304. package/dist/chunks/chunk-S6XGFD5B.js.map +1 -0
  305. package/dist/chunks/chunk-SKXNZMFN.js +870 -0
  306. package/dist/chunks/chunk-SKXNZMFN.js.map +1 -0
  307. package/dist/chunks/chunk-SOT463MH.js +68 -0
  308. package/dist/chunks/chunk-SOT463MH.js.map +1 -0
  309. package/dist/chunks/chunk-SZMR2BFI.js +94 -0
  310. package/dist/chunks/chunk-SZMR2BFI.js.map +1 -0
  311. package/dist/chunks/chunk-TDKYWAGB.js +50 -0
  312. package/dist/chunks/chunk-TDKYWAGB.js.map +1 -0
  313. package/dist/chunks/chunk-TDNCAAAT.js +627 -0
  314. package/dist/chunks/chunk-TDNCAAAT.js.map +1 -0
  315. package/dist/chunks/chunk-TVOHUHS4.js +94 -0
  316. package/dist/chunks/chunk-TVOHUHS4.js.map +1 -0
  317. package/dist/chunks/chunk-UE3R54FP.js +853 -0
  318. package/dist/chunks/chunk-UE3R54FP.js.map +1 -0
  319. package/dist/chunks/chunk-UUEOV5NM.js +1 -0
  320. package/dist/chunks/chunk-UUEOV5NM.js.map +1 -0
  321. package/dist/chunks/chunk-UZRIKXLU.js +94 -0
  322. package/dist/chunks/chunk-UZRIKXLU.js.map +1 -0
  323. package/dist/chunks/chunk-VAYGVW5R.js +6903 -0
  324. package/dist/chunks/chunk-VAYGVW5R.js.map +1 -0
  325. package/dist/chunks/chunk-VEWD22O5.js +383 -0
  326. package/dist/chunks/chunk-VEWD22O5.js.map +1 -0
  327. package/dist/chunks/chunk-VF32HLF4.js +81 -0
  328. package/dist/chunks/chunk-VF32HLF4.js.map +1 -0
  329. package/dist/chunks/chunk-VY7QNZVM.js +6893 -0
  330. package/dist/chunks/chunk-VY7QNZVM.js.map +1 -0
  331. package/dist/chunks/chunk-W4FWEMCO.js +871 -0
  332. package/dist/chunks/chunk-W4FWEMCO.js.map +1 -0
  333. package/dist/chunks/chunk-W5VRVGBL.js +81 -0
  334. package/dist/chunks/chunk-W5VRVGBL.js.map +1 -0
  335. package/dist/chunks/chunk-WDGXLQLI.js +94 -0
  336. package/dist/chunks/chunk-WDGXLQLI.js.map +1 -0
  337. package/dist/chunks/chunk-WLVDQ3UA.js +6898 -0
  338. package/dist/chunks/chunk-WLVDQ3UA.js.map +1 -0
  339. package/dist/chunks/chunk-WTTOJHIM.js +371 -0
  340. package/dist/chunks/chunk-WTTOJHIM.js.map +1 -0
  341. package/dist/chunks/chunk-WZZOX7S2.js +853 -0
  342. package/dist/chunks/chunk-WZZOX7S2.js.map +1 -0
  343. package/dist/chunks/chunk-X2G652U7.js +6903 -0
  344. package/dist/chunks/chunk-X2G652U7.js.map +1 -0
  345. package/dist/chunks/chunk-XKQP4R6O.js +380 -0
  346. package/dist/chunks/chunk-XKQP4R6O.js.map +1 -0
  347. package/dist/chunks/chunk-Y7BBA7SG.js +6895 -0
  348. package/dist/chunks/chunk-Y7BBA7SG.js.map +1 -0
  349. package/dist/chunks/chunk-Z3SN77PI.js +31 -0
  350. package/dist/chunks/chunk-Z3SN77PI.js.map +1 -0
  351. package/dist/chunks/chunk-ZECYUSVI.js +43 -0
  352. package/dist/chunks/chunk-ZECYUSVI.js.map +1 -0
  353. package/dist/chunks/chunk-ZSPVMGE5.js +94 -0
  354. package/dist/chunks/chunk-ZSPVMGE5.js.map +1 -0
  355. package/dist/chunks/chunk-ZTXBJYUG.js +94 -0
  356. package/dist/chunks/chunk-ZTXBJYUG.js.map +1 -0
  357. package/dist/exports/computed-item.context.d.ts +1 -1
  358. package/dist/exports/computed.context.d.ts +1 -1
  359. package/dist/exports/interaction.d.ts +1 -1
  360. package/dist/exports/item.context.d.ts +1 -1
  361. package/dist/exports/qti-assessment-item.context.d.ts +1 -1
  362. package/dist/exports/qti-condition-expression.d.ts +1 -1
  363. package/dist/exports/qti-expression.d.ts +1 -1
  364. package/dist/exports/session.context.d.ts +2 -2
  365. package/dist/exports/test.context.d.ts +1 -1
  366. package/dist/exports/variables.d.ts +1 -1
  367. package/dist/index.d.ts +7 -2
  368. package/dist/index.js +37 -21
  369. package/dist/item.css +26 -130
  370. package/dist/qti-components/index.d.ts +2 -2
  371. package/dist/qti-components/index.js +2 -2
  372. package/dist/qti-components-jsx.d.ts +91 -9
  373. package/dist/qti-item/components/item-container.js +3 -3
  374. package/dist/qti-item/components/item-show-correct-response.d.ts +1 -1
  375. package/dist/qti-item/components/print-item-variables.d.ts +1 -1
  376. package/dist/qti-item/core/index.d.ts +1 -1
  377. package/dist/qti-item/core/index.js +3 -3
  378. package/dist/qti-loader/index.d.ts +1 -1
  379. package/dist/qti-loader/index.js +2 -2
  380. package/dist/qti-response-declaration-C3kpm650.d.ts +1171 -0
  381. package/dist/qti-response-declaration-CNh-wf6q.d.ts +1146 -0
  382. package/dist/qti-test/components/index.d.ts +7 -2
  383. package/dist/qti-test/components/index.js +27 -11
  384. package/dist/qti-test/components/test-container.js +3 -3
  385. package/dist/qti-test/components/test-navigation.d.ts +3 -2
  386. package/dist/qti-test/components/test-navigation.js +1 -1
  387. package/dist/qti-test/components/test-next.d.ts +1 -1
  388. package/dist/qti-test/components/test-next.js +1 -1
  389. package/dist/qti-test/components/test-prev.d.ts +1 -1
  390. package/dist/qti-test/components/test-print-context.d.ts +1 -1
  391. package/dist/qti-test/components/test-print-item-variables.d.ts +1 -1
  392. package/dist/qti-test/components/test-scoring-buttons.d.ts +2 -1
  393. package/dist/qti-test/components/test-scoring-buttons.js +1 -1
  394. package/dist/qti-test/components/test-scoring-feedback.d.ts +9 -1273
  395. package/dist/qti-test/components/test-scoring-feedback.js +4 -60
  396. package/dist/qti-test/components/test-scoring-feedback.js.map +1 -1
  397. package/dist/qti-test/components/test-show-correct-response.d.ts +1 -1
  398. package/dist/qti-test/components/test-stamp.d.ts +18 -0
  399. package/dist/qti-test/components/test-stamp.js +9 -0
  400. package/dist/qti-test/components/test-stamp.js.map +1 -0
  401. package/dist/qti-test/components/test-view-toggle.d.ts +2 -2
  402. package/dist/qti-test/components/test-view-toggle.js +1 -1
  403. package/dist/qti-test/core/index.d.ts +4 -4
  404. package/dist/qti-test/core/index.js +3 -3
  405. package/dist/qti-test-feedback-CG8nrjhS.d.ts +98 -0
  406. package/dist/qti-test-feedback-DaBphqnZ.d.ts +98 -0
  407. package/dist/qti-test-feedback-R38tNXBH.d.ts +98 -0
  408. package/dist/qti-transformers/index.d.ts +4 -1
  409. package/dist/qti-transformers/index.js +1 -1
  410. package/dist/vscode.html-custom-data.json +38 -13
  411. package/package.json +4 -4
@@ -0,0 +1,627 @@
1
+ import {
2
+ INITIAL_SESSION_CONTEXT,
3
+ sessionContext
4
+ } from "./chunk-UZ4QB5IO.js";
5
+ import {
6
+ INITIAL_TEST_CONTEXT,
7
+ testContext
8
+ } from "./chunk-CJADUWEC.js";
9
+ import {
10
+ QtiModalFeedback
11
+ } from "./chunk-S6XGFD5B.js";
12
+ import {
13
+ qtiTransformItem
14
+ } from "./chunk-LLVJY74K.js";
15
+ import {
16
+ __decorateClass
17
+ } from "./chunk-H2JE6IVU.js";
18
+
19
+ // src/lib/qti-test/core/qti-test.ts
20
+ import { html } from "lit";
21
+ import { customElement } from "lit/decorators.js";
22
+
23
+ // src/lib/qti-test/core/mixins/test-loader.mixin.ts
24
+ import { property } from "lit/decorators.js";
25
+ var TestLoaderMixin = (superClass) => {
26
+ class TestLoaderClass extends superClass {
27
+ constructor(...args) {
28
+ super(...args);
29
+ this.cacheTransform = false;
30
+ this.addEventListener("qti-load-item-request", ({ detail }) => {
31
+ detail.promise = (async () => {
32
+ const api = await qtiTransformItem(this.cacheTransform).load(detail.href, detail.cancelPreviousRequest);
33
+ return api.htmlDoc();
34
+ })();
35
+ });
36
+ }
37
+ // willUpdate(changedProperties: Map<string | number | symbol, unknown>) {
38
+ // if (changedProperties.has('testContext')) {
39
+ // if (this.storeSession) {
40
+ // setSessionData<Readonly<TestContext>>(this.storeSession, this.testContext);
41
+ // }
42
+ // }
43
+ // }
44
+ }
45
+ __decorateClass([
46
+ property({ type: Boolean, attribute: "cache-transform" })
47
+ ], TestLoaderClass.prototype, "cacheTransform", 2);
48
+ return TestLoaderClass;
49
+ };
50
+
51
+ // src/lib/qti-test/core/mixins/test-navigation.mixin.ts
52
+ import { property as property2 } from "lit/decorators.js";
53
+ var TestNavigationMixin = (superClass) => {
54
+ class TestNavigationClass extends superClass {
55
+ constructor(...args) {
56
+ super(...args);
57
+ this.navigate = "item";
58
+ this.addEventListener(
59
+ "qti-request-navigation",
60
+ async ({ detail }) => {
61
+ if (!detail?.id) return;
62
+ if (detail.type === "item") {
63
+ await this._loadItems([detail.id]);
64
+ const navItemId = detail.id;
65
+ const itemRefEl = this._testElement?.querySelector(
66
+ `qti-assessment-item-ref[identifier="${detail.id}"]`
67
+ );
68
+ const navPartId = itemRefEl.closest("qti-test-part")?.identifier;
69
+ const navSectionId = itemRefEl.closest("qti-assessment-section")?.identifier;
70
+ this.sessionContext = { ...this.sessionContext, navPartId, navSectionId, navItemId, navItemLoading: false };
71
+ } else if (detail.type === "section") {
72
+ const itemIds = this._getSectionItemIds(detail.id);
73
+ await this._loadItems(itemIds);
74
+ const navSectionId = detail.id;
75
+ const sectionRefEl = this._testElement?.querySelector(
76
+ `qti-assessment-section[identifier="${navSectionId}"]`
77
+ );
78
+ const navPartId = sectionRefEl.closest("qti-test-part")?.identifier;
79
+ this.sessionContext = {
80
+ ...this.sessionContext,
81
+ navPartId,
82
+ navSectionId,
83
+ navItemId: null,
84
+ navItemLoading: false
85
+ };
86
+ }
87
+ }
88
+ );
89
+ this.addEventListener("qti-assessment-test-connected", (e) => {
90
+ this._testElement = e.detail;
91
+ let id;
92
+ if (this.navigate === "section") {
93
+ id = this._testElement.querySelector("qti-assessment-section")?.identifier;
94
+ } else {
95
+ id = this.sessionContext.navItemId ?? this._testElement.querySelector("qti-assessment-item-ref")?.identifier;
96
+ }
97
+ if (id) {
98
+ this.dispatchEvent(
99
+ new CustomEvent("qti-request-navigation", {
100
+ detail: { type: this.navigate === "section" ? "section" : "item", id },
101
+ bubbles: true,
102
+ composed: true
103
+ })
104
+ );
105
+ }
106
+ });
107
+ }
108
+ async _loadItems(itemIds) {
109
+ let results;
110
+ if (!this._testElement || itemIds.length === 0) return;
111
+ const itemRefEls = itemIds.map(
112
+ (id) => this._testElement.querySelector(`qti-assessment-item-ref[identifier="${id}"]`)
113
+ );
114
+ if (itemRefEls.includes(null)) {
115
+ console.warn(`One or more items not found: ${itemIds}`);
116
+ return;
117
+ }
118
+ this._clearLoadedItems();
119
+ this.sessionContext = { ...this.sessionContext, navItemLoading: true };
120
+ const itemLoadPromises = itemRefEls.map(async (itemRef) => {
121
+ if (!itemRef) return null;
122
+ return { itemRef, doc: await this._loadItemRequest(itemRef.href, itemRef.identifier) };
123
+ });
124
+ try {
125
+ results = await Promise.all(itemLoadPromises);
126
+ results.forEach(({ itemRef, doc }) => {
127
+ if (itemRef && doc) itemRef.xmlDoc = doc;
128
+ });
129
+ requestAnimationFrame(() => {
130
+ this.dispatchEvent(
131
+ new CustomEvent("qti-test-loaded", {
132
+ detail: results.map(({ itemRef }) => ({ identifier: itemRef?.identifier, element: itemRef })),
133
+ bubbles: true,
134
+ composed: true
135
+ })
136
+ );
137
+ });
138
+ } catch (error) {
139
+ console.error("Error loading items:", error);
140
+ }
141
+ return results;
142
+ }
143
+ _getSectionItemIds(navSectionId) {
144
+ const sectionRefEl = this._testElement?.querySelector(
145
+ `qti-assessment-section[identifier="${navSectionId}"]`
146
+ );
147
+ if (!sectionRefEl) {
148
+ console.warn(`Section with identifier "${navSectionId}" not found.`);
149
+ return [];
150
+ }
151
+ return Array.from(
152
+ this._testElement.querySelectorAll(
153
+ `qti-assessment-section[identifier="${navSectionId}"] > qti-assessment-item-ref`
154
+ )
155
+ ).map((itemRef) => itemRef.identifier);
156
+ }
157
+ _clearLoadedItems() {
158
+ const itemRefEls = this._testElement?.querySelectorAll(
159
+ `qti-assessment-test qti-assessment-item-ref`
160
+ );
161
+ Array.from(itemRefEls || []).forEach((itemElement) => {
162
+ itemElement.xmlDoc = null;
163
+ });
164
+ }
165
+ _loadItemRequest(href, identifier) {
166
+ const event = new CustomEvent("qti-load-item-request", {
167
+ bubbles: true,
168
+ composed: true,
169
+ detail: { href, identifier, promise: null }
170
+ });
171
+ this.dispatchEvent(event);
172
+ return event.detail.promise;
173
+ }
174
+ }
175
+ __decorateClass([
176
+ property2({ type: String })
177
+ ], TestNavigationClass.prototype, "navigate", 2);
178
+ return TestNavigationClass;
179
+ };
180
+
181
+ // src/lib/qti-test/core/mixins/test-view.mixin.ts
182
+ var TestViewMixin = (superClass) => {
183
+ class TestViewClass extends superClass {
184
+ constructor(...args) {
185
+ super(...args);
186
+ this.sessionContext = { ...this.sessionContext, view: "candidate" };
187
+ this.addEventListener("on-test-switch-view", (e) => {
188
+ this.sessionContext = { ...this.sessionContext, view: e.detail };
189
+ this._updateElementView();
190
+ });
191
+ this.addEventListener("qti-assessment-test-connected", () => {
192
+ this._updateElementView();
193
+ });
194
+ this.addEventListener("qti-assessment-item-connected", (e) => {
195
+ this._updateElementView();
196
+ this._setCorrectResponseVisibility(e.detail);
197
+ });
198
+ }
199
+ willUpdate(changedProperties) {
200
+ super.willUpdate(changedProperties);
201
+ if (changedProperties.has("sessionContext")) {
202
+ this._updateElementView();
203
+ }
204
+ }
205
+ // Method to handle view updates for elements based on the current context view
206
+ _updateElementView() {
207
+ if (this._testElement && this._testElement) {
208
+ const viewElements = Array.from(this._testElement.querySelectorAll("[view]"));
209
+ viewElements.forEach((element) => {
210
+ element.classList.toggle("show", element.getAttribute("view") === this.sessionContext.view);
211
+ });
212
+ const assessmentItem = this._testElement.querySelector(
213
+ `qti-assessment-item[identifier="${this.sessionContext.navItemId}"]`
214
+ );
215
+ if (assessmentItem) {
216
+ assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
217
+ }
218
+ }
219
+ }
220
+ // Event handler for connected QTI assessment items
221
+ _setCorrectResponseVisibility(assessmentItem) {
222
+ assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
223
+ }
224
+ }
225
+ return TestViewClass;
226
+ };
227
+
228
+ // src/lib/qti-test/core/test-base.ts
229
+ import { provide } from "@lit/context";
230
+ import { LitElement } from "lit";
231
+ import { property as property3 } from "lit/decorators.js";
232
+ var TestBase = class extends LitElement {
233
+ constructor() {
234
+ super();
235
+ this.testContext = INITIAL_TEST_CONTEXT;
236
+ this.sessionContext = INITIAL_SESSION_CONTEXT;
237
+ /**
238
+ * Updates the variables of an assessment item in the test context.
239
+ * - Matches the assessment item with the corresponding test context item.
240
+ * - If the item is not found, logs a warning.
241
+ * - Updates variables in the test context if exactly one variable exists.
242
+ * - Otherwise, syncs the assessment item's variables with the test context.
243
+ *
244
+ * @param assessmentItem - The assessment item to update.
245
+ */
246
+ this._updateItemInTestContext = (assessmentItem) => {
247
+ const context = assessmentItem._context;
248
+ const identifier = context.identifier;
249
+ const fullVariables = context.variables;
250
+ const itemContext = this.testContext.items.find((i) => i?.identifier === identifier);
251
+ if (!itemContext) {
252
+ console.warn(`Item IDs between assessment.xml and item.xml should match: ${identifier} is not found!`);
253
+ return;
254
+ }
255
+ if (itemContext.variables?.length === 1) {
256
+ this._updateItemVariablesInTestContext(identifier, fullVariables);
257
+ } else {
258
+ assessmentItem.variables = [...itemContext.variables || []];
259
+ }
260
+ };
261
+ this.addEventListener("qti-assessment-test-connected", (e) => {
262
+ this.testContext = INITIAL_TEST_CONTEXT;
263
+ this.sessionContext = INITIAL_SESSION_CONTEXT;
264
+ if (this.testContext && this.testContext.items.length > 0) return;
265
+ this._testElement = e.detail;
266
+ const items = Array.from(this._testElement.querySelectorAll("qti-assessment-item-ref")).map((itemRef) => {
267
+ return {
268
+ href: itemRef.href,
269
+ identifier: itemRef.identifier,
270
+ category: itemRef.category,
271
+ variables: [
272
+ {
273
+ identifier: "completionStatus",
274
+ value: "not_attempted",
275
+ type: "outcome"
276
+ }
277
+ ]
278
+ };
279
+ });
280
+ this.testContext = { ...this.testContext, items };
281
+ });
282
+ this.addEventListener("qti-assessment-item-connected", (e) => {
283
+ const assessmentItem = e.detail;
284
+ const assessmentRefId = assessmentItem.closest("qti-assessment-item-ref")?.identifier;
285
+ if (assessmentRefId) {
286
+ assessmentItem.assessmentItemRefId = assessmentRefId;
287
+ }
288
+ this._updateItemInTestContext(e.detail);
289
+ });
290
+ this.addEventListener("qti-item-context-updated", (e) => {
291
+ this._updateItemVariablesInTestContext(e.detail.itemContext.identifier, e.detail.itemContext.variables);
292
+ });
293
+ }
294
+ _updateItemVariablesInTestContext(identifier, variables) {
295
+ this.testContext = {
296
+ ...this.testContext,
297
+ // Spread existing test context properties
298
+ items: this.testContext.items.map((itemContext) => {
299
+ if (itemContext.identifier !== identifier) {
300
+ return itemContext;
301
+ }
302
+ return {
303
+ ...itemContext,
304
+ // Keep other properties of the item context
305
+ variables: variables.map((variable) => {
306
+ const matchingVariable = itemContext.variables.find((v) => v.identifier === variable.identifier);
307
+ return matchingVariable ? { ...matchingVariable, ...variable } : variable;
308
+ })
309
+ };
310
+ })
311
+ };
312
+ this.dispatchEvent(
313
+ new CustomEvent("qti-test-context-updated", { detail: this.testContext, bubbles: false, composed: false })
314
+ );
315
+ }
316
+ };
317
+ __decorateClass([
318
+ property3({ attribute: false, type: Object }),
319
+ provide({ context: testContext })
320
+ ], TestBase.prototype, "testContext", 2);
321
+ __decorateClass([
322
+ property3({ attribute: false, type: Object }),
323
+ provide({ context: sessionContext })
324
+ ], TestBase.prototype, "sessionContext", 2);
325
+
326
+ // src/lib/qti-test/core/mixins/test-processing.mixin.ts
327
+ var TestProcessingMixin = (superClass) => {
328
+ class TestProcessingElement extends superClass {
329
+ constructor(...args) {
330
+ super(...args);
331
+ this.addEventListener("qti-register-variable", (e) => {
332
+ this.testContext = {
333
+ ...this.testContext,
334
+ testOutcomeVariables: [...this.testContext.testOutcomeVariables || [], e.detail.variable]
335
+ };
336
+ e.stopPropagation();
337
+ });
338
+ this.addEventListener(
339
+ "qti-set-outcome-value",
340
+ (e) => {
341
+ const { outcomeIdentifier, value } = e.detail;
342
+ this.updateOutcomeVariable(outcomeIdentifier, value);
343
+ e.stopPropagation();
344
+ }
345
+ );
346
+ }
347
+ outcomeProcessing() {
348
+ const outcomeProcessor = this.querySelector("qti-outcome-processing");
349
+ if (!outcomeProcessor) return false;
350
+ outcomeProcessor?.process();
351
+ return true;
352
+ }
353
+ /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
354
+ updateOutcomeVariable(identifier, value) {
355
+ const outcomeVariable = this.getOutcome(identifier);
356
+ if (!outcomeVariable) {
357
+ console.warn(`Can not set qti-outcome-identifier: ${identifier}, it is not available`);
358
+ return;
359
+ }
360
+ this.testContext = {
361
+ ...this.testContext,
362
+ testOutcomeVariables: this.testContext.testOutcomeVariables?.map((v) => {
363
+ if (v.identifier !== identifier) {
364
+ return v;
365
+ }
366
+ return {
367
+ ...v,
368
+ value: outcomeVariable.cardinality === "single" ? value : [...v.value, value]
369
+ };
370
+ })
371
+ };
372
+ }
373
+ getOutcome(identifier) {
374
+ return this.getVariable(identifier);
375
+ }
376
+ getVariable(identifier) {
377
+ return this.testContext.testOutcomeVariables?.find((v) => v.identifier === identifier) || null;
378
+ }
379
+ /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
380
+ }
381
+ return TestProcessingElement;
382
+ };
383
+
384
+ // src/lib/qti-test/core/qti-test.ts
385
+ var QtiTest = class extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestProcessingMixin(TestBase)))) {
386
+ // export class QtiTest extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestBase))) {
387
+ /**
388
+ * Renders the component's template.
389
+ * Provides a default `<slot>` for content projection.
390
+ */
391
+ async connectedCallback() {
392
+ super.connectedCallback();
393
+ await this.updateComplete;
394
+ this.dispatchEvent(new CustomEvent("qti-test-connected", { detail: this }));
395
+ }
396
+ render() {
397
+ return html`<slot></slot>`;
398
+ }
399
+ };
400
+ QtiTest = __decorateClass([
401
+ customElement("qti-test")
402
+ ], QtiTest);
403
+
404
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-item-ref.ts
405
+ import { LitElement as LitElement2 } from "lit";
406
+ import { property as property4 } from "lit/decorators.js";
407
+ import { prepareTemplate } from "stampino";
408
+ var stringToBooleanConverter = {
409
+ fromAttribute(value) {
410
+ return value === "true";
411
+ },
412
+ toAttribute(value) {
413
+ return value ? "true" : "false";
414
+ }
415
+ };
416
+ var QtiAssessmentItemRef = class extends LitElement2 {
417
+ constructor() {
418
+ super(...arguments);
419
+ // @consume({ context: computedContext, subscribe: true })
420
+ // private computedContext: ComputedContext;
421
+ this.weigths = /* @__PURE__ */ new Map();
422
+ }
423
+ // the XMLDocument
424
+ createRenderRoot() {
425
+ return this;
426
+ }
427
+ get assessmentItem() {
428
+ return this.renderRoot?.querySelector("qti-assessment-item");
429
+ }
430
+ async connectedCallback() {
431
+ super.connectedCallback();
432
+ const templateElement = this.getRootNode().host.closest("qti-test").querySelector("template[item-ref]");
433
+ if (templateElement) this.myTemplate = prepareTemplate(templateElement);
434
+ await this.updateComplete;
435
+ this.dispatchEvent(
436
+ new CustomEvent("qti-assessment-item-ref-connected", {
437
+ bubbles: true,
438
+ composed: true,
439
+ detail: { identifier: this.identifier, href: this.href, category: this.category }
440
+ })
441
+ );
442
+ }
443
+ render() {
444
+ return this.myTemplate ? this.myTemplate({ xmlDoc: this.xmlDoc }) : this.xmlDoc;
445
+ }
446
+ };
447
+ __decorateClass([
448
+ property4({ type: String })
449
+ ], QtiAssessmentItemRef.prototype, "category", 2);
450
+ __decorateClass([
451
+ property4({ type: String })
452
+ ], QtiAssessmentItemRef.prototype, "identifier", 2);
453
+ __decorateClass([
454
+ property4({ type: Boolean, converter: stringToBooleanConverter })
455
+ ], QtiAssessmentItemRef.prototype, "required", 2);
456
+ __decorateClass([
457
+ property4({ type: Boolean, converter: stringToBooleanConverter })
458
+ ], QtiAssessmentItemRef.prototype, "fixed", 2);
459
+ __decorateClass([
460
+ property4({ type: String })
461
+ ], QtiAssessmentItemRef.prototype, "href", 2);
462
+ __decorateClass([
463
+ property4({ type: Object, attribute: false })
464
+ ], QtiAssessmentItemRef.prototype, "xmlDoc", 2);
465
+ if (!customElements.get("qti-assessment-item-ref")) {
466
+ customElements.define("qti-assessment-item-ref", QtiAssessmentItemRef);
467
+ }
468
+
469
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-section.ts
470
+ import { consume } from "@lit/context";
471
+ import { html as html2, LitElement as LitElement3 } from "lit";
472
+ import { property as property5 } from "lit/decorators.js";
473
+ var stringToBooleanConverter2 = {
474
+ fromAttribute(value) {
475
+ return value === "true";
476
+ },
477
+ toAttribute(value) {
478
+ return value ? "true" : "false";
479
+ }
480
+ };
481
+ var QtiAssessmentSection = class extends LitElement3 {
482
+ async connectedCallback() {
483
+ super.connectedCallback();
484
+ await this.updateComplete;
485
+ this.dispatchEvent(
486
+ new Event("qti-assessment-section-connected", {
487
+ bubbles: true,
488
+ composed: true
489
+ })
490
+ );
491
+ }
492
+ render() {
493
+ return html2`<slot name="qti-rubric-block"></slot><slot></slot>`;
494
+ }
495
+ };
496
+ __decorateClass([
497
+ property5({ type: String })
498
+ ], QtiAssessmentSection.prototype, "identifier", 2);
499
+ __decorateClass([
500
+ property5({ type: String })
501
+ ], QtiAssessmentSection.prototype, "required", 2);
502
+ __decorateClass([
503
+ property5({ type: Boolean, converter: stringToBooleanConverter2 })
504
+ ], QtiAssessmentSection.prototype, "fixed", 2);
505
+ __decorateClass([
506
+ property5({ type: String })
507
+ ], QtiAssessmentSection.prototype, "title", 2);
508
+ __decorateClass([
509
+ property5({ type: Boolean, converter: stringToBooleanConverter2 })
510
+ ], QtiAssessmentSection.prototype, "visible", 2);
511
+ __decorateClass([
512
+ property5({ type: Boolean, converter: stringToBooleanConverter2, attribute: "keep-together" })
513
+ ], QtiAssessmentSection.prototype, "keepTogether", 2);
514
+ __decorateClass([
515
+ consume({ context: testContext, subscribe: true })
516
+ ], QtiAssessmentSection.prototype, "_testContext", 2);
517
+ if (!customElements.get("qti-assessment-section")) {
518
+ customElements.define("qti-assessment-section", QtiAssessmentSection);
519
+ }
520
+
521
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-test.ts
522
+ import { consume as consume2 } from "@lit/context";
523
+ import { html as html3, LitElement as LitElement4 } from "lit";
524
+ import { customElement as customElement2, property as property6 } from "lit/decorators.js";
525
+ var QtiAssessmentTest = class extends LitElement4 {
526
+ async connectedCallback() {
527
+ super.connectedCallback();
528
+ await this.updateComplete;
529
+ this.dispatchEvent(
530
+ new CustomEvent("qti-assessment-test-connected", {
531
+ detail: this,
532
+ bubbles: true,
533
+ composed: true
534
+ })
535
+ );
536
+ }
537
+ render() {
538
+ return html3` <slot></slot>`;
539
+ }
540
+ };
541
+ __decorateClass([
542
+ property6({ type: String })
543
+ ], QtiAssessmentTest.prototype, "identifier", 2);
544
+ __decorateClass([
545
+ property6({ type: String })
546
+ ], QtiAssessmentTest.prototype, "title", 2);
547
+ __decorateClass([
548
+ consume2({ context: testContext, subscribe: true })
549
+ ], QtiAssessmentTest.prototype, "_testContext", 2);
550
+ QtiAssessmentTest = __decorateClass([
551
+ customElement2("qti-assessment-test")
552
+ ], QtiAssessmentTest);
553
+
554
+ // src/lib/qti-test/core/qti-assessment-test/qti-test-part.ts
555
+ import { html as html4, LitElement as LitElement5 } from "lit";
556
+ import { customElement as customElement3, property as property7 } from "lit/decorators.js";
557
+ var QtiTestPart = class extends LitElement5 {
558
+ constructor() {
559
+ super(...arguments);
560
+ this.identifier = "";
561
+ this.title = "";
562
+ this.class = "";
563
+ this.NavigationMode = "nonlinear";
564
+ this.submissionMode = "individual";
565
+ }
566
+ async connectedCallback() {
567
+ super.connectedCallback();
568
+ await this.updateComplete;
569
+ this.dispatchEvent(
570
+ new Event("qti-test-part-connected", {
571
+ bubbles: true,
572
+ composed: true
573
+ })
574
+ );
575
+ }
576
+ render() {
577
+ return html4` <slot></slot>`;
578
+ }
579
+ };
580
+ __decorateClass([
581
+ property7({ type: String })
582
+ ], QtiTestPart.prototype, "identifier", 2);
583
+ __decorateClass([
584
+ property7({ type: String })
585
+ ], QtiTestPart.prototype, "title", 2);
586
+ __decorateClass([
587
+ property7({ type: String })
588
+ ], QtiTestPart.prototype, "class", 2);
589
+ __decorateClass([
590
+ property7({ type: String, attribute: "navigation-mode" })
591
+ ], QtiTestPart.prototype, "NavigationMode", 2);
592
+ __decorateClass([
593
+ property7({ type: String, attribute: "submission-mode" })
594
+ ], QtiTestPart.prototype, "submissionMode", 2);
595
+ QtiTestPart = __decorateClass([
596
+ customElement3("qti-test-part")
597
+ ], QtiTestPart);
598
+ if (!customElements.get("qti-test-part")) {
599
+ customElements.define("qti-test-part", QtiTestPart);
600
+ }
601
+
602
+ // src/lib/qti-test/core/qti-assessment-test/qti-test-feedback.ts
603
+ import { customElement as customElement4 } from "lit/decorators.js";
604
+ import { css, html as html5 } from "lit";
605
+ var QtiTestFeedback = class extends QtiModalFeedback {
606
+ render() {
607
+ return html5``;
608
+ }
609
+ };
610
+ QtiTestFeedback.styles = css`
611
+ :host {
612
+ color: gray;
613
+ }
614
+ `;
615
+ QtiTestFeedback = __decorateClass([
616
+ customElement4("qti-test-feedback")
617
+ ], QtiTestFeedback);
618
+
619
+ export {
620
+ QtiTest,
621
+ QtiAssessmentItemRef,
622
+ QtiAssessmentSection,
623
+ QtiAssessmentTest,
624
+ QtiTestPart,
625
+ QtiTestFeedback
626
+ };
627
+ //# sourceMappingURL=chunk-JRDTY7YA.js.map