@citolab/qti-components 7.0.9 → 7.0.10

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 (344) hide show
  1. package/cdn/chunks/chunk-22SOGZF4.js +1 -0
  2. package/cdn/chunks/chunk-2TYVSDOR.js +10 -0
  3. package/cdn/chunks/chunk-2UE47PDO.js +8 -0
  4. package/cdn/chunks/chunk-3AZDOXQ2.js +1 -0
  5. package/cdn/chunks/chunk-3JYWJ2NK.js +7 -0
  6. package/cdn/chunks/chunk-46LUBNDT.js +1 -0
  7. package/cdn/chunks/chunk-4AQLM6EU.js +1 -0
  8. package/cdn/chunks/chunk-4F3SWHSX.js +3537 -0
  9. package/cdn/chunks/chunk-4JDR4LHD.js +7 -0
  10. package/cdn/chunks/chunk-4PRM73PT.js +3530 -0
  11. package/cdn/chunks/chunk-4PWQZQY3.js +17 -0
  12. package/cdn/chunks/chunk-5A43OJRS.js +24 -0
  13. package/cdn/chunks/chunk-5E2MIJGV.js +0 -0
  14. package/cdn/chunks/chunk-5ETOPNVH.js +1 -0
  15. package/cdn/chunks/chunk-5HNHSP7A.js +3530 -0
  16. package/cdn/chunks/chunk-5JUDXKGO.js +7 -0
  17. package/cdn/chunks/chunk-6A2O5DS7.js +1 -0
  18. package/cdn/chunks/chunk-6FKGN7HB.js +1 -0
  19. package/cdn/chunks/chunk-7AZEP5VB.js +8 -0
  20. package/cdn/chunks/chunk-7CQK5FSF.js +3530 -0
  21. package/cdn/chunks/chunk-APXB6KK5.js +8 -0
  22. package/cdn/chunks/chunk-AV37OE2S.js +1 -0
  23. package/cdn/chunks/chunk-AWIOWT4I.js +1 -0
  24. package/cdn/chunks/chunk-BB6R7AIH.js +8 -0
  25. package/cdn/chunks/chunk-CKOTA237.js +1 -0
  26. package/cdn/chunks/chunk-CZTZFTHC.js +8 -0
  27. package/cdn/chunks/chunk-D3JZV5XV.js +1 -0
  28. package/cdn/chunks/chunk-DI3XOGVR.js +951 -0
  29. package/cdn/chunks/chunk-DSZDMYQL.js +1 -0
  30. package/cdn/chunks/chunk-ELG6OUC7.js +1 -0
  31. package/cdn/chunks/chunk-EQNTO3QG.js +8 -0
  32. package/cdn/chunks/chunk-ESTNU24A.js +1 -0
  33. package/cdn/chunks/chunk-EUHRWJ5R.js +48 -0
  34. package/cdn/chunks/chunk-EVPWT7PO.js +1 -0
  35. package/cdn/chunks/chunk-EXAWEKDS.js +1 -0
  36. package/cdn/chunks/chunk-FCESHSJ3.js +73 -0
  37. package/cdn/chunks/chunk-G457CJP5.js +1 -0
  38. package/cdn/chunks/chunk-GIFBDBLN.js +8 -0
  39. package/cdn/chunks/chunk-GIYY5ZKS.js +939 -0
  40. package/cdn/chunks/chunk-GTFFARVB.js +8 -0
  41. package/cdn/chunks/chunk-GYPMDM7U.js +41 -0
  42. package/cdn/chunks/chunk-HG75NNFK.js +1 -0
  43. package/cdn/chunks/chunk-HV4JN3XB.js +1 -0
  44. package/cdn/chunks/chunk-HXPYDFGQ.js +8 -0
  45. package/cdn/chunks/chunk-IDGQY66Q.js +8 -0
  46. package/cdn/chunks/chunk-J5BEBS4Y.js +1 -0
  47. package/cdn/chunks/chunk-JLT3S3BD.js +1 -0
  48. package/cdn/chunks/chunk-K2TKSKEN.js +1 -0
  49. package/cdn/chunks/chunk-K4LCPCDE.js +1 -0
  50. package/cdn/chunks/chunk-KFA5RO3O.js +1 -0
  51. package/cdn/chunks/chunk-KFLS5ISA.js +1 -0
  52. package/cdn/chunks/chunk-KJEXS4DB.js +1 -0
  53. package/cdn/chunks/chunk-L33RHCU4.js +1 -0
  54. package/cdn/chunks/chunk-LPXDIJR2.js +1 -0
  55. package/cdn/chunks/chunk-LQ3DVN7N.js +1 -0
  56. package/cdn/chunks/chunk-LXNE62HZ.js +1 -0
  57. package/cdn/chunks/chunk-M2YG5XJI.js +8 -0
  58. package/cdn/chunks/chunk-M5OZ7YYR.js +3537 -0
  59. package/cdn/chunks/chunk-MCB43U5P.js +1 -0
  60. package/cdn/chunks/chunk-NFO577XB.js +939 -0
  61. package/cdn/chunks/chunk-NXTUDFAR.js +8 -0
  62. package/cdn/chunks/chunk-PAQSIIBJ.js +939 -0
  63. package/cdn/chunks/chunk-PAWTFMTX.js +8 -0
  64. package/cdn/chunks/chunk-PP4PDVVF.js +1 -0
  65. package/cdn/chunks/chunk-PZ7WEWHR.js +41 -0
  66. package/cdn/chunks/chunk-QEQPGKII.js +939 -0
  67. package/cdn/chunks/chunk-QICNOCJ6.js +1 -0
  68. package/cdn/chunks/chunk-QII27W7O.js +1 -0
  69. package/cdn/chunks/chunk-QYXRVCGM.js +6 -0
  70. package/cdn/chunks/chunk-REVF4YJC.js +8 -0
  71. package/cdn/chunks/chunk-S7SSPYIM.js +1 -0
  72. package/cdn/chunks/chunk-SCAVRW3H.js +1 -0
  73. package/cdn/chunks/chunk-TAJ4OCKW.js +3530 -0
  74. package/cdn/chunks/chunk-TH2YUX3A.js +17 -0
  75. package/cdn/chunks/chunk-TV7GYNJO.js +1 -0
  76. package/cdn/chunks/chunk-UXPSLBXO.js +1 -0
  77. package/cdn/chunks/chunk-VCH5D4D5.js +1 -0
  78. package/cdn/chunks/chunk-VE4IM4WS.js +8 -0
  79. package/cdn/chunks/chunk-VQPS5EII.js +939 -0
  80. package/cdn/chunks/chunk-WIDUHBF5.js +8 -0
  81. package/cdn/chunks/chunk-WTMZDTN4.js +1 -0
  82. package/cdn/chunks/chunk-X6XFTJQH.js +8 -0
  83. package/cdn/chunks/chunk-XEXDWGVU.js +939 -0
  84. package/cdn/chunks/chunk-XHBOTQFL.js +1 -0
  85. package/cdn/chunks/chunk-Y3GKQGXZ.js +8 -0
  86. package/cdn/chunks/chunk-YM6G2V57.js +8 -0
  87. package/cdn/chunks/chunk-YWZPZLWC.js +1 -0
  88. package/cdn/chunks/chunk-YYGAT2GT.js +1 -0
  89. package/cdn/chunks/chunk-Z7NL2OYT.js +1 -0
  90. package/cdn/chunks/chunk-ZCSHWAC6.js +1 -0
  91. package/cdn/chunks/chunk-ZILMGYR5.js +1 -0
  92. package/cdn/chunks/chunk-ZJMQOR5E.js +0 -0
  93. package/cdn/chunks/chunk-ZXVHR32G.js +1 -0
  94. package/cdn/exports/config.context.js +1 -1
  95. package/cdn/exports/interaction.js +1 -1
  96. package/cdn/index.global.js +1 -1
  97. package/cdn/index.js +1 -1
  98. package/cdn/qti-components/index.js +1 -1
  99. package/cdn/qti-item/core/index.js +1 -1
  100. package/cdn/qti-test/components/index.js +1 -1
  101. package/cdn/qti-test/components/test-container.js +1 -1
  102. package/cdn/qti-test/components/test-end-attempt.js +1 -1
  103. package/cdn/qti-test/components/test-item-link.js +1 -1
  104. package/cdn/qti-test/components/test-navigation.js +1 -1
  105. package/cdn/qti-test/components/test-next.js +1 -1
  106. package/cdn/qti-test/components/test-paging-buttons-stamp copy.js +1 -0
  107. package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
  108. package/cdn/qti-test/components/test-paging-buttons-stamp.stories copy.css +1 -0
  109. package/cdn/qti-test/components/test-paging-buttons-stamp.stories copy.js +264 -0
  110. package/cdn/qti-test/components/test-prev.js +1 -1
  111. package/cdn/qti-test/components/test-print-item-variables.js +1 -0
  112. package/cdn/qti-test/components/test-section-buttons-stamp.js +1 -0
  113. package/cdn/qti-test/components/test-section-link.js +1 -0
  114. package/cdn/qti-test/components/test-show-correct-response.js +1 -1
  115. package/cdn/qti-test/core/index.js +1 -1
  116. package/dist/chunks/chunk-25BRPHJE.js +630 -0
  117. package/dist/chunks/chunk-25BRPHJE.js.map +1 -0
  118. package/dist/chunks/chunk-25ZCG5KD.js +6432 -0
  119. package/dist/chunks/chunk-25ZCG5KD.js.map +1 -0
  120. package/dist/chunks/chunk-2Q7RXYGX.js +213 -0
  121. package/dist/chunks/chunk-2Q7RXYGX.js.map +1 -0
  122. package/dist/chunks/chunk-2VA7CRTS.js +30 -0
  123. package/dist/chunks/chunk-2VA7CRTS.js.map +1 -0
  124. package/dist/chunks/chunk-36RGXVXQ.js +3634 -0
  125. package/dist/chunks/chunk-36RGXVXQ.js.map +1 -0
  126. package/dist/chunks/chunk-3F566AXX.js +210 -0
  127. package/dist/chunks/chunk-3F566AXX.js.map +1 -0
  128. package/dist/chunks/chunk-4475MTP7.js +630 -0
  129. package/dist/chunks/chunk-4475MTP7.js.map +1 -0
  130. package/dist/chunks/chunk-4GJ5LAU5.js +631 -0
  131. package/dist/chunks/chunk-4GJ5LAU5.js.map +1 -0
  132. package/dist/chunks/chunk-4HI4Q5TO.js +3641 -0
  133. package/dist/chunks/chunk-4HI4Q5TO.js.map +1 -0
  134. package/dist/chunks/chunk-4L5S7AON.js +621 -0
  135. package/dist/chunks/chunk-4L5S7AON.js.map +1 -0
  136. package/dist/chunks/chunk-52EWQN42.js +634 -0
  137. package/dist/chunks/chunk-52EWQN42.js.map +1 -0
  138. package/dist/chunks/chunk-5BSOZZMV.js +621 -0
  139. package/dist/chunks/chunk-5BSOZZMV.js.map +1 -0
  140. package/dist/chunks/chunk-5DFTIWBN.js +95 -0
  141. package/dist/chunks/chunk-5DFTIWBN.js.map +1 -0
  142. package/dist/chunks/chunk-5DZX4TPP.js +45 -0
  143. package/dist/chunks/chunk-5DZX4TPP.js.map +1 -0
  144. package/dist/chunks/chunk-5FQYXHVK.js +213 -0
  145. package/dist/chunks/chunk-5FQYXHVK.js.map +1 -0
  146. package/dist/chunks/chunk-5JJ7ELEU.js +39 -0
  147. package/dist/chunks/chunk-5JJ7ELEU.js.map +1 -0
  148. package/dist/chunks/chunk-5OMC3DTZ.js +3628 -0
  149. package/dist/chunks/chunk-5OMC3DTZ.js.map +1 -0
  150. package/dist/chunks/chunk-63WMM765.js +30 -0
  151. package/dist/chunks/chunk-63WMM765.js.map +1 -0
  152. package/dist/chunks/chunk-7ABTMTDB.js +86 -0
  153. package/dist/chunks/chunk-7ABTMTDB.js.map +1 -0
  154. package/dist/chunks/chunk-7K6TWSAK.js +626 -0
  155. package/dist/chunks/chunk-7K6TWSAK.js.map +1 -0
  156. package/dist/chunks/chunk-7QZ4E5WZ.js +210 -0
  157. package/dist/chunks/chunk-7QZ4E5WZ.js.map +1 -0
  158. package/dist/chunks/chunk-7RB2AUJE.js +622 -0
  159. package/dist/chunks/chunk-7RB2AUJE.js.map +1 -0
  160. package/dist/chunks/chunk-7WZH7TKG.js +210 -0
  161. package/dist/chunks/chunk-7WZH7TKG.js.map +1 -0
  162. package/dist/chunks/chunk-7YREO7KD.js +214 -0
  163. package/dist/chunks/chunk-7YREO7KD.js.map +1 -0
  164. package/dist/chunks/chunk-AI3BVEE3.js +102 -0
  165. package/dist/chunks/chunk-AI3BVEE3.js.map +1 -0
  166. package/dist/chunks/chunk-AZOWZY7V.js +95 -0
  167. package/dist/chunks/chunk-AZOWZY7V.js.map +1 -0
  168. package/dist/chunks/chunk-AZZW7WYD.js +3634 -0
  169. package/dist/chunks/chunk-AZZW7WYD.js.map +1 -0
  170. package/dist/chunks/chunk-B4YBRGOO.js +72 -0
  171. package/dist/chunks/chunk-B4YBRGOO.js.map +1 -0
  172. package/dist/chunks/chunk-BBFU7KGH.js +6432 -0
  173. package/dist/chunks/chunk-BBFU7KGH.js.map +1 -0
  174. package/dist/chunks/chunk-BCX6AQCQ.js +210 -0
  175. package/dist/chunks/chunk-BCX6AQCQ.js.map +1 -0
  176. package/dist/chunks/chunk-BJHVTP5W.js +95 -0
  177. package/dist/chunks/chunk-BJHVTP5W.js.map +1 -0
  178. package/dist/chunks/chunk-BOMM6A7V.js +19 -0
  179. package/dist/chunks/chunk-BOMM6A7V.js.map +1 -0
  180. package/dist/chunks/chunk-C5Q3SNXK.js +623 -0
  181. package/dist/chunks/chunk-C5Q3SNXK.js.map +1 -0
  182. package/dist/chunks/chunk-CONPNDHF.js +6416 -0
  183. package/dist/chunks/chunk-CONPNDHF.js.map +1 -0
  184. package/dist/chunks/chunk-CP63JV6J.js +56 -0
  185. package/dist/chunks/chunk-CP63JV6J.js.map +1 -0
  186. package/dist/chunks/chunk-DRATSVXW.js +99 -0
  187. package/dist/chunks/chunk-DRATSVXW.js.map +1 -0
  188. package/dist/chunks/chunk-E7UCMQNT.js +98 -0
  189. package/dist/chunks/chunk-E7UCMQNT.js.map +1 -0
  190. package/dist/chunks/chunk-ECTTGUKY.js +72 -0
  191. package/dist/chunks/chunk-ECTTGUKY.js.map +1 -0
  192. package/dist/chunks/chunk-F3JNWOBS.js +630 -0
  193. package/dist/chunks/chunk-F3JNWOBS.js.map +1 -0
  194. package/dist/chunks/chunk-FKOHVQD5.js +565 -0
  195. package/dist/chunks/chunk-FKOHVQD5.js.map +1 -0
  196. package/dist/chunks/chunk-FKYQ474Y.js +634 -0
  197. package/dist/chunks/chunk-FKYQ474Y.js.map +1 -0
  198. package/dist/chunks/chunk-FRNEKC5E.js +211 -0
  199. package/dist/chunks/chunk-FRNEKC5E.js.map +1 -0
  200. package/dist/chunks/chunk-GM2VH33L.js +214 -0
  201. package/dist/chunks/chunk-GM2VH33L.js.map +1 -0
  202. package/dist/chunks/chunk-HRCCW6MA.js +8 -0
  203. package/dist/chunks/chunk-HRCCW6MA.js.map +1 -0
  204. package/dist/chunks/chunk-ILL4KEGU.js +616 -0
  205. package/dist/chunks/chunk-ILL4KEGU.js.map +1 -0
  206. package/dist/chunks/chunk-IPWVQUFB.js +641 -0
  207. package/dist/chunks/chunk-IPWVQUFB.js.map +1 -0
  208. package/dist/chunks/chunk-IQVU7D3B.js +1 -0
  209. package/dist/chunks/chunk-IQVU7D3B.js.map +1 -0
  210. package/dist/chunks/chunk-JCEYFPPV.js +100 -0
  211. package/dist/chunks/chunk-JCEYFPPV.js.map +1 -0
  212. package/dist/chunks/chunk-JMIFSDZ7.js +52 -0
  213. package/dist/chunks/chunk-JMIFSDZ7.js.map +1 -0
  214. package/dist/chunks/chunk-JPATXTKN.js +629 -0
  215. package/dist/chunks/chunk-JPATXTKN.js.map +1 -0
  216. package/dist/chunks/chunk-KB5LRYDB.js +1 -0
  217. package/dist/chunks/chunk-KB5LRYDB.js.map +1 -0
  218. package/dist/chunks/chunk-KEF7X2OE.js +3621 -0
  219. package/dist/chunks/chunk-KEF7X2OE.js.map +1 -0
  220. package/dist/chunks/chunk-L5B7J2ZT.js +43 -0
  221. package/dist/chunks/chunk-L5B7J2ZT.js.map +1 -0
  222. package/dist/chunks/chunk-LU3O7U7W.js +45 -0
  223. package/dist/chunks/chunk-LU3O7U7W.js.map +1 -0
  224. package/dist/chunks/chunk-M3ONQ3OO.js +45 -0
  225. package/dist/chunks/chunk-M3ONQ3OO.js.map +1 -0
  226. package/dist/chunks/chunk-MBF6HEKO.js +39 -0
  227. package/dist/chunks/chunk-MBF6HEKO.js.map +1 -0
  228. package/dist/chunks/chunk-NW6WMWBC.js +94 -0
  229. package/dist/chunks/chunk-NW6WMWBC.js.map +1 -0
  230. package/dist/chunks/chunk-NXSALC5S.js +633 -0
  231. package/dist/chunks/chunk-NXSALC5S.js.map +1 -0
  232. package/dist/chunks/chunk-OTLH5OUZ.js +44 -0
  233. package/dist/chunks/chunk-OTLH5OUZ.js.map +1 -0
  234. package/dist/chunks/chunk-P7CW3RY4.js +6538 -0
  235. package/dist/chunks/chunk-P7CW3RY4.js.map +1 -0
  236. package/dist/chunks/chunk-PWOPGMKY.js +210 -0
  237. package/dist/chunks/chunk-PWOPGMKY.js.map +1 -0
  238. package/dist/chunks/chunk-QC5NBP3D.js +44 -0
  239. package/dist/chunks/chunk-QC5NBP3D.js.map +1 -0
  240. package/dist/chunks/chunk-QHWSY3K6.js +30 -0
  241. package/dist/chunks/chunk-QHWSY3K6.js.map +1 -0
  242. package/dist/chunks/chunk-QL3I5UMG.js +43 -0
  243. package/dist/chunks/chunk-QL3I5UMG.js.map +1 -0
  244. package/dist/chunks/chunk-QV4U5W67.js +43 -0
  245. package/dist/chunks/chunk-QV4U5W67.js.map +1 -0
  246. package/dist/chunks/chunk-R7HYOALH.js +213 -0
  247. package/dist/chunks/chunk-R7HYOALH.js.map +1 -0
  248. package/dist/chunks/chunk-SC5PDBVU.js +629 -0
  249. package/dist/chunks/chunk-SC5PDBVU.js.map +1 -0
  250. package/dist/chunks/chunk-SFRILOXM.js +624 -0
  251. package/dist/chunks/chunk-SFRILOXM.js.map +1 -0
  252. package/dist/chunks/chunk-ST5C4HZG.js +3621 -0
  253. package/dist/chunks/chunk-ST5C4HZG.js.map +1 -0
  254. package/dist/chunks/chunk-T524XBVZ.js +45 -0
  255. package/dist/chunks/chunk-T524XBVZ.js.map +1 -0
  256. package/dist/chunks/chunk-TN5UCQIV.js +614 -0
  257. package/dist/chunks/chunk-TN5UCQIV.js.map +1 -0
  258. package/dist/chunks/chunk-TWGONQQT.js +44 -0
  259. package/dist/chunks/chunk-TWGONQQT.js.map +1 -0
  260. package/dist/chunks/chunk-UDDWTISS.js +615 -0
  261. package/dist/chunks/chunk-UDDWTISS.js.map +1 -0
  262. package/dist/chunks/chunk-URMN5M77.js +36 -0
  263. package/dist/chunks/chunk-URMN5M77.js.map +1 -0
  264. package/dist/chunks/chunk-VPMLJM47.js +621 -0
  265. package/dist/chunks/chunk-VPMLJM47.js.map +1 -0
  266. package/dist/chunks/chunk-WYIX3HQR.js +634 -0
  267. package/dist/chunks/chunk-WYIX3HQR.js.map +1 -0
  268. package/dist/chunks/chunk-XISZU4KI.js +614 -0
  269. package/dist/chunks/chunk-XISZU4KI.js.map +1 -0
  270. package/dist/chunks/chunk-Y32L6VYU.js +91 -0
  271. package/dist/chunks/chunk-Y32L6VYU.js.map +1 -0
  272. package/dist/chunks/chunk-Y35P6GUT.js +99 -0
  273. package/dist/chunks/chunk-Y35P6GUT.js.map +1 -0
  274. package/dist/chunks/chunk-YUWIMPXO.js +75 -0
  275. package/dist/chunks/chunk-YUWIMPXO.js.map +1 -0
  276. package/dist/chunks/chunk-ZJHKJMHR.js +52 -0
  277. package/dist/chunks/chunk-ZJHKJMHR.js.map +1 -0
  278. package/dist/chunks/chunk-ZO73DF5R.js +36 -0
  279. package/dist/chunks/chunk-ZO73DF5R.js.map +1 -0
  280. package/dist/chunks/chunk-ZRA43QD3.js +52 -0
  281. package/dist/chunks/chunk-ZRA43QD3.js.map +1 -0
  282. package/dist/exports/computed.context.d.ts +3 -1
  283. package/dist/exports/computed.context.js +1 -1
  284. package/dist/exports/config.context.d.ts +1 -0
  285. package/dist/exports/config.context.js +4 -3
  286. package/dist/exports/config.context.js.map +1 -1
  287. package/dist/exports/interaction.d.ts +5 -2
  288. package/dist/exports/interaction.js +1 -1
  289. package/dist/exports/item.context.d.ts +1 -1
  290. package/dist/exports/qti-assessment-item.context.d.ts +1 -1
  291. package/dist/exports/qti-condition-expression.d.ts +1 -1
  292. package/dist/exports/qti-expression.d.ts +1 -1
  293. package/dist/exports/session.context.d.ts +3 -3
  294. package/dist/exports/test.context.d.ts +1 -1
  295. package/dist/exports/variables.d.ts +1 -1
  296. package/dist/index.d.ts +9 -6
  297. package/dist/index.js +26 -15
  298. package/dist/item.css +14 -1
  299. package/dist/qti-components/index.d.ts +4 -4
  300. package/dist/qti-components/index.js +2 -2
  301. package/dist/qti-components-jsx.d.ts +82 -36
  302. package/dist/qti-item/core/index.js +1 -1
  303. package/dist/qti-loader/index.d.ts +3 -3
  304. package/dist/qti-response-declaration-BwciEk5R.d.ts +1022 -0
  305. package/dist/qti-response-declaration-CCx746w0.d.ts +1023 -0
  306. package/dist/qti-response-declaration-CRGM9w_b.d.ts +1023 -0
  307. package/dist/qti-response-declaration-CbWRpo5c.d.ts +1033 -0
  308. package/dist/qti-test/components/index.d.ts +10 -8
  309. package/dist/qti-test/components/index.js +22 -11
  310. package/dist/qti-test/components/test-container.js +1 -1
  311. package/dist/qti-test/components/test-end-attempt.d.ts +0 -3
  312. package/dist/qti-test/components/test-end-attempt.js +1 -3
  313. package/dist/qti-test/components/test-item-link.js +1 -1
  314. package/dist/qti-test/components/test-navigation.d.ts +21 -8
  315. package/dist/qti-test/components/test-navigation.js +2 -3
  316. package/dist/qti-test/components/test-next.js +2 -2
  317. package/dist/qti-test/components/test-paging-buttons-stamp copy.js +44 -0
  318. package/dist/qti-test/components/test-paging-buttons-stamp copy.js.map +1 -0
  319. package/dist/qti-test/components/test-paging-buttons-stamp.js +2 -2
  320. package/dist/qti-test/components/test-paging-buttons-stamp.stories copy.css +93 -0
  321. package/dist/qti-test/components/test-paging-buttons-stamp.stories copy.css.map +1 -0
  322. package/dist/qti-test/components/test-paging-buttons-stamp.stories copy.js +9774 -0
  323. package/dist/qti-test/components/test-paging-buttons-stamp.stories copy.js.map +1 -0
  324. package/dist/qti-test/components/test-prev.js +2 -2
  325. package/dist/qti-test/components/test-print-item-variables.d.ts +15 -0
  326. package/dist/qti-test/components/test-print-item-variables.js +9 -0
  327. package/dist/qti-test/components/test-print-item-variables.js.map +1 -0
  328. package/dist/qti-test/components/test-section-buttons-stamp.d.ts +20 -0
  329. package/dist/qti-test/components/test-section-buttons-stamp.js +9 -0
  330. package/dist/qti-test/components/test-section-buttons-stamp.js.map +1 -0
  331. package/dist/qti-test/components/test-section-link.d.ts +18 -0
  332. package/dist/qti-test/components/test-section-link.js +9 -0
  333. package/dist/qti-test/components/test-section-link.js.map +1 -0
  334. package/dist/qti-test/components/test-show-correct-response.d.ts +0 -3
  335. package/dist/qti-test/components/test-show-correct-response.js +1 -3
  336. package/dist/qti-test/core/index.d.ts +5 -5
  337. package/dist/qti-test/core/index.js +1 -1
  338. package/dist/qti-test-part-8W7-lWmu.d.ts +85 -0
  339. package/dist/qti-test-part-BEPYFFNO.d.ts +85 -0
  340. package/dist/qti-test-part-CTzSuEgA.d.ts +85 -0
  341. package/dist/qti-test-part-CcFpkf1G.d.ts +85 -0
  342. package/dist/variables-D70AFbp2.d.ts +47 -0
  343. package/dist/vscode.html-custom-data.json +35 -10
  344. package/package.json +2 -1
@@ -0,0 +1,634 @@
1
+ import {
2
+ sessionContext
3
+ } from "./chunk-QTH3WLGY.js";
4
+ import {
5
+ testContext
6
+ } from "./chunk-ODLYMQOS.js";
7
+ import {
8
+ qtiTransformItem
9
+ } from "./chunk-XDMSEAYC.js";
10
+ import {
11
+ __decorateClass
12
+ } from "./chunk-H2JE6IVU.js";
13
+
14
+ // src/lib/qti-test/core/qti-test.ts
15
+ import { html } from "lit";
16
+ import { customElement } from "lit/decorators.js";
17
+
18
+ // src/lib/qti-test/core/mixins/test-loader.mixin.ts
19
+ import { property } from "lit/decorators.js";
20
+ var setSessionData = (key, value) => sessionStorage.setItem(key, JSON.stringify(value));
21
+ var getSessionData = (key) => sessionStorage.getItem(key) ? JSON.parse(sessionStorage.getItem(key)) : null;
22
+ var TestLoaderMixin = (superClass) => {
23
+ class TestLoaderClass extends superClass {
24
+ constructor(...args) {
25
+ super(...args);
26
+ this.autoStoreRestoreContext = null;
27
+ this.navItemId = null;
28
+ this.addEventListener("qti-load-item-request", ({ detail }) => {
29
+ detail.promise = (async () => {
30
+ const api = await qtiTransformItem().load(`${detail.href}`, detail.cancelPreviousRequest);
31
+ return api.htmlDoc();
32
+ })();
33
+ });
34
+ }
35
+ async connectedCallback() {
36
+ super.connectedCallback();
37
+ if (this.navItemId) {
38
+ this.sessionContext = { ...this.sessionContext, navItemId: this.navItemId };
39
+ }
40
+ if (this.autoStoreRestoreContext) {
41
+ const testContext2 = getSessionData(this.autoStoreRestoreContext);
42
+ if (testContext2) {
43
+ this.testContext = testContext2;
44
+ }
45
+ }
46
+ }
47
+ updated(changedProperties) {
48
+ if (changedProperties.has("testContext")) {
49
+ if (this.autoStoreRestoreContext) {
50
+ setSessionData(this.autoStoreRestoreContext, this.testContext);
51
+ }
52
+ }
53
+ }
54
+ }
55
+ __decorateClass([
56
+ property({ type: String, attribute: "auto-store-restore" })
57
+ ], TestLoaderClass.prototype, "autoStoreRestoreContext", 2);
58
+ __decorateClass([
59
+ property({ type: String, attribute: "nav-item-id" })
60
+ ], TestLoaderClass.prototype, "navItemId", 2);
61
+ return TestLoaderClass;
62
+ };
63
+
64
+ // src/lib/qti-test/core/mixins/test-navigation.mixin.ts
65
+ import { property as property2 } from "lit/decorators.js";
66
+ var TestNavigationMixin = (superClass) => {
67
+ class TestNavigationClass extends superClass {
68
+ constructor(...args) {
69
+ super(...args);
70
+ this.navigate = "item";
71
+ this.addEventListener(
72
+ "qti-request-navigation",
73
+ async ({ detail }) => {
74
+ if (!detail?.id) return;
75
+ if (detail.type === "item") {
76
+ await this._loadItems([detail.id]);
77
+ const navItemId = detail.id;
78
+ const itemRefEl = this._testElement?.querySelector(
79
+ `qti-assessment-item-ref[identifier="${detail.id}"]`
80
+ );
81
+ const navPartId = itemRefEl.closest("qti-test-part")?.identifier;
82
+ const navSectionId = itemRefEl.closest("qti-assessment-section")?.identifier;
83
+ this.sessionContext = { ...this.sessionContext, navPartId, navSectionId, navItemId, navItemLoading: false };
84
+ } else if (detail.type === "section") {
85
+ const itemIds = this._getSectionItemIds(detail.id);
86
+ await this._loadItems(itemIds);
87
+ const navSectionId = detail.id;
88
+ const sectionRefEl = this._testElement?.querySelector(
89
+ `qti-assessment-item-ref[identifier="${navSectionId}"]`
90
+ );
91
+ const navPartId = sectionRefEl.closest("qti-test-part")?.identifier;
92
+ this.sessionContext = {
93
+ ...this.sessionContext,
94
+ navPartId,
95
+ navSectionId,
96
+ navItemId: null,
97
+ navItemLoading: false
98
+ };
99
+ }
100
+ }
101
+ );
102
+ this.addEventListener("qti-assessment-test-connected", (e) => {
103
+ this._testElement = e.detail;
104
+ let id;
105
+ if (this.navigate === "section") {
106
+ id = this._testElement.querySelector("qti-assessment-section")?.identifier;
107
+ } else {
108
+ id = this.sessionContext.navItemId ?? this._testElement.querySelector("qti-assessment-item-ref")?.identifier;
109
+ }
110
+ if (id) {
111
+ this.dispatchEvent(
112
+ new CustomEvent("qti-request-navigation", {
113
+ detail: { type: this.navigate === "section" ? "section" : "item", id },
114
+ bubbles: true,
115
+ composed: true
116
+ })
117
+ );
118
+ }
119
+ });
120
+ }
121
+ async _loadItems(itemIds) {
122
+ let results;
123
+ if (!this._testElement || itemIds.length === 0) return;
124
+ const itemRefEls = itemIds.map(
125
+ (id) => this._testElement.querySelector(`qti-assessment-item-ref[identifier="${id}"]`)
126
+ );
127
+ if (itemRefEls.includes(null)) {
128
+ console.warn(`One or more items not found: ${itemIds}`);
129
+ return;
130
+ }
131
+ this._clearLoadedItems();
132
+ this.sessionContext = { ...this.sessionContext, navItemLoading: true };
133
+ const itemLoadPromises = itemRefEls.map(async (itemRef) => {
134
+ if (!itemRef) return null;
135
+ return { itemRef, doc: await this._loadItemRequest(itemRef.href) };
136
+ });
137
+ try {
138
+ results = await Promise.all(itemLoadPromises);
139
+ results.forEach(({ itemRef, doc }) => {
140
+ if (itemRef && doc) itemRef.xmlDoc = doc;
141
+ });
142
+ requestAnimationFrame(() => {
143
+ this.dispatchEvent(
144
+ new CustomEvent("qti-test-connected", {
145
+ detail: results.map(({ itemRef }) => ({ identifier: itemRef?.identifier, element: itemRef })),
146
+ bubbles: true,
147
+ composed: true
148
+ })
149
+ );
150
+ console.info(`Loaded ${results.length} items successfully.`);
151
+ });
152
+ } catch (error) {
153
+ console.error("Error loading items:", error);
154
+ }
155
+ return results;
156
+ }
157
+ _getSectionItemIds(navSectionId) {
158
+ const sectionRefEl = this._testElement?.querySelector(
159
+ `qti-assessment-section[identifier="${navSectionId}"]`
160
+ );
161
+ if (!sectionRefEl) {
162
+ console.warn(`Section with identifier "${navSectionId}" not found.`);
163
+ return [];
164
+ }
165
+ return Array.from(
166
+ this._testElement.querySelectorAll(
167
+ `qti-assessment-section[identifier="${navSectionId}"] > qti-assessment-item-ref`
168
+ )
169
+ ).map((itemRef) => itemRef.identifier);
170
+ }
171
+ _clearLoadedItems() {
172
+ const itemRefEls = this._testElement?.querySelectorAll(
173
+ `qti-assessment-test qti-assessment-item-ref`
174
+ );
175
+ Array.from(itemRefEls || []).forEach((itemElement) => {
176
+ itemElement.xmlDoc = null;
177
+ });
178
+ }
179
+ _loadItemRequest(href) {
180
+ const event = new CustomEvent("qti-load-item-request", {
181
+ bubbles: true,
182
+ composed: true,
183
+ detail: { href, promise: null }
184
+ });
185
+ this.dispatchEvent(event);
186
+ return event.detail.promise;
187
+ }
188
+ }
189
+ __decorateClass([
190
+ property2({ type: String })
191
+ ], TestNavigationClass.prototype, "navigate", 2);
192
+ return TestNavigationClass;
193
+ };
194
+
195
+ // src/lib/qti-test/core/mixins/test-view.mixin.ts
196
+ var TestViewMixin = (superClass) => {
197
+ class TestViewClass extends superClass {
198
+ constructor(...args) {
199
+ super(...args);
200
+ this.sessionContext = { ...this.sessionContext, view: "candidate" };
201
+ this.addEventListener("on-test-switch-view", (e) => {
202
+ this.sessionContext = { ...this.sessionContext, view: e.detail };
203
+ this._updateElementView();
204
+ });
205
+ this.addEventListener("qti-assessment-test-connected", () => {
206
+ this._updateElementView();
207
+ });
208
+ this.addEventListener("qti-assessment-item-connected", (e) => {
209
+ this._updateElementView();
210
+ this._setCorrectResponseVisibility(e.detail);
211
+ });
212
+ }
213
+ willUpdate(changedProperties) {
214
+ super.willUpdate(changedProperties);
215
+ if (changedProperties.has("sessionContext")) {
216
+ this._updateElementView();
217
+ }
218
+ }
219
+ // Method to handle view updates for elements based on the current context view
220
+ _updateElementView() {
221
+ if (this.testElement && this.testElement) {
222
+ const viewElements = Array.from(this.testElement.querySelectorAll("[view]"));
223
+ viewElements.forEach((element) => {
224
+ element.classList.toggle("show", element.getAttribute("view") === this.sessionContext.view);
225
+ });
226
+ const assessmentItem = this.testElement.querySelector(
227
+ `qti-assessment-item[identifier="${this.sessionContext.navItemId}"]`
228
+ );
229
+ if (assessmentItem) {
230
+ assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
231
+ }
232
+ }
233
+ }
234
+ // Event handler for connected QTI assessment items
235
+ _setCorrectResponseVisibility(assessmentItem) {
236
+ assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
237
+ }
238
+ }
239
+ return TestViewClass;
240
+ };
241
+
242
+ // src/lib/qti-test/core/test-base.ts
243
+ import { provide } from "@lit/context";
244
+ import { LitElement } from "lit";
245
+ import { state } from "lit/decorators.js";
246
+ var TestBase = class extends LitElement {
247
+ constructor() {
248
+ super();
249
+ this.testContext = { items: [], testOutcomeVariables: [] };
250
+ this.sessionContext = {};
251
+ /**
252
+ * Updates the variables of an assessment item in the test context.
253
+ * - Matches the assessment item with the corresponding test context item.
254
+ * - If the item is not found, logs a warning.
255
+ * - Updates variables in the test context if exactly one variable exists.
256
+ * - Otherwise, syncs the assessment item's variables with the test context.
257
+ *
258
+ * @param assessmentItem - The assessment item to update.
259
+ */
260
+ this._updateItemInTestContext = (assessmentItem) => {
261
+ const { identifier, variables } = assessmentItem;
262
+ const itemContext = this.testContext.items.find((i) => i?.identifier === identifier);
263
+ if (!itemContext) {
264
+ console.warn(`Item IDs between assessment.xml and item.xml should match: ${identifier} is not found!`);
265
+ return;
266
+ }
267
+ if (itemContext.variables?.length === 1) {
268
+ this._updateItemVariablesInTestContext(identifier, variables);
269
+ } else {
270
+ assessmentItem.variables = [...itemContext.variables || []];
271
+ }
272
+ };
273
+ this.addEventListener("qti-assessment-test-connected", (e) => {
274
+ if (this.testContext && this.testContext.items.length > 0) return;
275
+ this.testElement = e.detail;
276
+ const items = Array.from(this.testElement.querySelectorAll("qti-assessment-item-ref")).map((itemRef) => {
277
+ return {
278
+ href: itemRef.href,
279
+ identifier: itemRef.identifier,
280
+ category: itemRef.category,
281
+ variables: [
282
+ {
283
+ identifier: "completionStatus",
284
+ value: "not_attempted",
285
+ type: "outcome"
286
+ }
287
+ ]
288
+ };
289
+ });
290
+ this.testContext = { ...this.testContext, items };
291
+ });
292
+ this.addEventListener("qti-assessment-item-connected", (e) => {
293
+ this._updateItemInTestContext(e.detail);
294
+ });
295
+ this.addEventListener("qti-outcome-changed", (e) => {
296
+ const assessmentitem = e.composedPath()[0];
297
+ this._updateItemVariablesInTestContext(assessmentitem.identifier, assessmentitem.variables);
298
+ });
299
+ }
300
+ // get testContext(): TestContext {
301
+ // return this._testContext;
302
+ // }
303
+ // // /* restores the context by updating existing items and adding new items from the "contextToRestore" parameter into the "this._context.items" array. */
304
+ // set testContext(testContext: TestContext) {
305
+ // if (this._testContext.items.length > 0) {
306
+ // console.warn(
307
+ // 'testContext already set and can not be overwritten. Set the testContext before loading the assessment test'
308
+ // );
309
+ // return;
310
+ // }
311
+ // if (testContext === null || testContext === undefined) return;
312
+ // this._testContext = { ...testContext }; // Clone the context to avoid modifying the original object
313
+ // // // append the items that are not yet in the context and replace the ones that are
314
+ // testContext.items?.forEach(itemContext => {
315
+ // const existingItemContext = this._testContext.items.find(i => i.identifier === itemContext.identifier);
316
+ // if (existingItemContext) {
317
+ // existingItemContext.variables = itemContext.variables;
318
+ // } else {
319
+ // this._testContext.items.push(itemContext);
320
+ // }
321
+ // });
322
+ // }
323
+ _updateItemVariablesInTestContext(identifier, variables) {
324
+ this.testContext = {
325
+ ...this.testContext,
326
+ // Spread existing test context properties
327
+ items: this.testContext.items.map((itemContext) => {
328
+ if (itemContext.identifier !== identifier) {
329
+ return itemContext;
330
+ }
331
+ return {
332
+ ...itemContext,
333
+ // Keep other properties of the item context
334
+ variables: variables.map((variable) => {
335
+ const matchingVariable = itemContext.variables.find((v) => v.identifier === variable.identifier);
336
+ return matchingVariable ? { ...matchingVariable, ...variable } : variable;
337
+ })
338
+ };
339
+ })
340
+ };
341
+ }
342
+ };
343
+ __decorateClass([
344
+ state(),
345
+ provide({ context: testContext })
346
+ ], TestBase.prototype, "testContext", 2);
347
+ __decorateClass([
348
+ state(),
349
+ provide({ context: sessionContext })
350
+ ], TestBase.prototype, "sessionContext", 2);
351
+
352
+ // src/lib/qti-test/core/mixins/test-processing.mixin.ts
353
+ var TestProcessingMixin = (superClass) => {
354
+ class TestProcessingElement extends superClass {
355
+ constructor(...args) {
356
+ super(...args);
357
+ this.addEventListener("qti-register-variable", (e) => {
358
+ this.testContext = {
359
+ ...this.testContext,
360
+ testOutcomeVariables: [...this.testContext.testOutcomeVariables || [], e.detail.variable]
361
+ };
362
+ e.stopPropagation();
363
+ });
364
+ this.addEventListener(
365
+ "qti-set-outcome-value",
366
+ (e) => {
367
+ const { outcomeIdentifier, value } = e.detail;
368
+ this.updateOutcomeVariable(outcomeIdentifier, value);
369
+ e.stopPropagation();
370
+ }
371
+ );
372
+ }
373
+ outcomeProcessing() {
374
+ const outcomeProcessor = this.querySelector("qti-outcome-processing");
375
+ if (!outcomeProcessor) return false;
376
+ outcomeProcessor?.process();
377
+ return true;
378
+ }
379
+ /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
380
+ updateOutcomeVariable(identifier, value) {
381
+ const outcomeVariable = this.getOutcome(identifier);
382
+ if (!outcomeVariable) {
383
+ console.warn(`Can not set qti-outcome-identifier: ${identifier}, it is not available`);
384
+ return;
385
+ }
386
+ this.testContext = {
387
+ ...this.testContext,
388
+ testOutcomeVariables: this.testContext.testOutcomeVariables?.map((v) => {
389
+ if (v.identifier !== identifier) {
390
+ return v;
391
+ }
392
+ return {
393
+ ...v,
394
+ value: outcomeVariable.cardinality === "single" ? value : [...v.value, value]
395
+ };
396
+ })
397
+ };
398
+ }
399
+ getOutcome(identifier) {
400
+ return this.getVariable(identifier);
401
+ }
402
+ getVariable(identifier) {
403
+ return this.testContext.testOutcomeVariables?.find((v) => v.identifier === identifier) || null;
404
+ }
405
+ /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
406
+ }
407
+ return TestProcessingElement;
408
+ };
409
+
410
+ // src/lib/qti-test/core/qti-test.ts
411
+ var QtiTest = class extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestProcessingMixin(TestBase)))) {
412
+ // export class QtiTest extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestBase))) {
413
+ /**
414
+ * Renders the component's template.
415
+ * Provides a default `<slot>` for content projection.
416
+ */
417
+ async connectedCallback() {
418
+ super.connectedCallback();
419
+ await this.updateComplete;
420
+ this.dispatchEvent(new CustomEvent("qti-test-connected", { detail: this }));
421
+ }
422
+ render() {
423
+ return html`<slot></slot>`;
424
+ }
425
+ };
426
+ QtiTest = __decorateClass([
427
+ customElement("qti-test")
428
+ ], QtiTest);
429
+
430
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-item-ref.ts
431
+ import { consume } from "@lit/context";
432
+ import { html as html2, LitElement as LitElement2 } from "lit";
433
+ import { property as property3 } from "lit/decorators.js";
434
+ var stringToBooleanConverter = {
435
+ fromAttribute(value) {
436
+ return value === "true";
437
+ },
438
+ toAttribute(value) {
439
+ return value ? "true" : "false";
440
+ }
441
+ };
442
+ var QtiAssessmentItemRef = class extends LitElement2 {
443
+ constructor() {
444
+ super(...arguments);
445
+ this.weigths = /* @__PURE__ */ new Map();
446
+ }
447
+ // the XMLDocument
448
+ createRenderRoot() {
449
+ return this;
450
+ }
451
+ get assessmentItem() {
452
+ return this.renderRoot?.querySelector("qti-assessment-item");
453
+ }
454
+ async connectedCallback() {
455
+ super.connectedCallback();
456
+ await this.updateComplete;
457
+ this.dispatchEvent(
458
+ new CustomEvent("qti-assessment-item-ref-connected", {
459
+ bubbles: true,
460
+ composed: true,
461
+ detail: { identifier: this.identifier, href: this.href, category: this.category }
462
+ })
463
+ );
464
+ }
465
+ render() {
466
+ return html2`${this.xmlDoc}`;
467
+ }
468
+ };
469
+ __decorateClass([
470
+ property3({ type: String })
471
+ ], QtiAssessmentItemRef.prototype, "category", 2);
472
+ __decorateClass([
473
+ property3({ type: String })
474
+ ], QtiAssessmentItemRef.prototype, "identifier", 2);
475
+ __decorateClass([
476
+ property3({ type: Boolean, converter: stringToBooleanConverter })
477
+ ], QtiAssessmentItemRef.prototype, "required", 2);
478
+ __decorateClass([
479
+ property3({ type: Boolean, converter: stringToBooleanConverter })
480
+ ], QtiAssessmentItemRef.prototype, "fixed", 2);
481
+ __decorateClass([
482
+ property3({ type: String })
483
+ ], QtiAssessmentItemRef.prototype, "href", 2);
484
+ __decorateClass([
485
+ consume({ context: testContext, subscribe: true })
486
+ ], QtiAssessmentItemRef.prototype, "_testContext", 2);
487
+ __decorateClass([
488
+ property3({ type: Object, attribute: false })
489
+ ], QtiAssessmentItemRef.prototype, "xmlDoc", 2);
490
+ if (!customElements.get("qti-assessment-item-ref")) {
491
+ customElements.define("qti-assessment-item-ref", QtiAssessmentItemRef);
492
+ }
493
+
494
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-section.ts
495
+ import { consume as consume2 } from "@lit/context";
496
+ import { html as html3, LitElement as LitElement3 } from "lit";
497
+ import { property as property4 } from "lit/decorators.js";
498
+ var stringToBooleanConverter2 = {
499
+ fromAttribute(value) {
500
+ return value === "true";
501
+ },
502
+ toAttribute(value) {
503
+ return value ? "true" : "false";
504
+ }
505
+ };
506
+ var QtiAssessmentSection = class extends LitElement3 {
507
+ async connectedCallback() {
508
+ super.connectedCallback();
509
+ await this.updateComplete;
510
+ this.dispatchEvent(
511
+ new Event("qti-assessment-section-connected", {
512
+ bubbles: true,
513
+ composed: true
514
+ })
515
+ );
516
+ }
517
+ render() {
518
+ return html3`<slot name="qti-rubric-block"></slot><slot></slot>`;
519
+ }
520
+ };
521
+ __decorateClass([
522
+ property4({ type: String })
523
+ ], QtiAssessmentSection.prototype, "identifier", 2);
524
+ __decorateClass([
525
+ property4({ type: String })
526
+ ], QtiAssessmentSection.prototype, "required", 2);
527
+ __decorateClass([
528
+ property4({ type: Boolean, converter: stringToBooleanConverter2 })
529
+ ], QtiAssessmentSection.prototype, "fixed", 2);
530
+ __decorateClass([
531
+ property4({ type: String })
532
+ ], QtiAssessmentSection.prototype, "title", 2);
533
+ __decorateClass([
534
+ property4({ type: Boolean, converter: stringToBooleanConverter2 })
535
+ ], QtiAssessmentSection.prototype, "visible", 2);
536
+ __decorateClass([
537
+ property4({ type: Boolean, converter: stringToBooleanConverter2, attribute: "keep-together" })
538
+ ], QtiAssessmentSection.prototype, "keepTogether", 2);
539
+ __decorateClass([
540
+ consume2({ context: testContext, subscribe: true })
541
+ ], QtiAssessmentSection.prototype, "_testContext", 2);
542
+ if (!customElements.get("qti-assessment-section")) {
543
+ customElements.define("qti-assessment-section", QtiAssessmentSection);
544
+ }
545
+
546
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-test.ts
547
+ import { consume as consume3 } from "@lit/context";
548
+ import { html as html4, LitElement as LitElement4 } from "lit";
549
+ import { customElement as customElement2, property as property5 } from "lit/decorators.js";
550
+ var QtiAssessmentTest = class extends LitElement4 {
551
+ async connectedCallback() {
552
+ super.connectedCallback();
553
+ await this.updateComplete;
554
+ this.dispatchEvent(
555
+ new CustomEvent("qti-assessment-test-connected", {
556
+ detail: this,
557
+ bubbles: true,
558
+ composed: true
559
+ })
560
+ );
561
+ }
562
+ render() {
563
+ return html4` <slot></slot>`;
564
+ }
565
+ };
566
+ __decorateClass([
567
+ property5({ type: String })
568
+ ], QtiAssessmentTest.prototype, "identifier", 2);
569
+ __decorateClass([
570
+ property5({ type: String })
571
+ ], QtiAssessmentTest.prototype, "title", 2);
572
+ __decorateClass([
573
+ consume3({ context: testContext, subscribe: true })
574
+ ], QtiAssessmentTest.prototype, "_testContext", 2);
575
+ QtiAssessmentTest = __decorateClass([
576
+ customElement2("qti-assessment-test")
577
+ ], QtiAssessmentTest);
578
+
579
+ // src/lib/qti-test/core/qti-assessment-test/qti-test-part.ts
580
+ import { html as html5, LitElement as LitElement5 } from "lit";
581
+ import { customElement as customElement3, property as property6 } from "lit/decorators.js";
582
+ var QtiTestPart = class extends LitElement5 {
583
+ constructor() {
584
+ super(...arguments);
585
+ this.identifier = "";
586
+ this.title = "";
587
+ this.class = "";
588
+ this.NavigationMode = "nonlinear";
589
+ this.submissionMode = "individual";
590
+ }
591
+ async connectedCallback() {
592
+ super.connectedCallback();
593
+ await this.updateComplete;
594
+ this.dispatchEvent(
595
+ new Event("qti-test-part-connected", {
596
+ bubbles: true,
597
+ composed: true
598
+ })
599
+ );
600
+ }
601
+ render() {
602
+ return html5` <slot></slot>`;
603
+ }
604
+ };
605
+ __decorateClass([
606
+ property6({ type: String })
607
+ ], QtiTestPart.prototype, "identifier", 2);
608
+ __decorateClass([
609
+ property6({ type: String })
610
+ ], QtiTestPart.prototype, "title", 2);
611
+ __decorateClass([
612
+ property6({ type: String })
613
+ ], QtiTestPart.prototype, "class", 2);
614
+ __decorateClass([
615
+ property6({ type: String, attribute: "navigation-mode" })
616
+ ], QtiTestPart.prototype, "NavigationMode", 2);
617
+ __decorateClass([
618
+ property6({ type: String, attribute: "submission-mode" })
619
+ ], QtiTestPart.prototype, "submissionMode", 2);
620
+ QtiTestPart = __decorateClass([
621
+ customElement3("qti-test-part")
622
+ ], QtiTestPart);
623
+ if (!customElements.get("qti-test-part")) {
624
+ customElements.define("qti-test-part", QtiTestPart);
625
+ }
626
+
627
+ export {
628
+ QtiTest,
629
+ QtiAssessmentItemRef,
630
+ QtiAssessmentSection,
631
+ QtiAssessmentTest,
632
+ QtiTestPart
633
+ };
634
+ //# sourceMappingURL=chunk-WYIX3HQR.js.map