@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,615 @@
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
+ } else if (detail.type === "section") {
78
+ const itemIds = this._getSectionItemIds(detail.id);
79
+ this._loadItems(itemIds);
80
+ }
81
+ }
82
+ );
83
+ this.addEventListener("qti-assessment-test-connected", (e) => {
84
+ this._testElement = e.detail;
85
+ let id;
86
+ if (this.navigate === "section") {
87
+ id = this._testElement.querySelector("qti-assessment-section")?.identifier;
88
+ } else {
89
+ id = this.sessionContext.navItemId ?? this._testElement.querySelector("qti-assessment-item-ref")?.identifier;
90
+ }
91
+ if (id) {
92
+ this.dispatchEvent(
93
+ new CustomEvent("qti-request-navigation", {
94
+ detail: { type: this.navigate === "section" ? "section" : "item", id },
95
+ bubbles: true,
96
+ composed: true
97
+ })
98
+ );
99
+ }
100
+ });
101
+ }
102
+ async _loadItems(itemIds) {
103
+ let results;
104
+ if (!this._testElement || itemIds.length === 0) return;
105
+ const itemRefEls = itemIds.map(
106
+ (id) => this._testElement.querySelector(`qti-assessment-item-ref[identifier="${id}"]`)
107
+ );
108
+ if (itemRefEls.includes(null)) {
109
+ console.warn(`One or more items not found: ${itemIds}`);
110
+ return;
111
+ }
112
+ this._clearLoadedItems();
113
+ this.sessionContext = { ...this.sessionContext, navItemLoading: true };
114
+ const itemLoadPromises = itemRefEls.map(async (itemRef) => {
115
+ if (!itemRef) return null;
116
+ return { itemRef, doc: await this._loadItemRequest(itemRef.href) };
117
+ });
118
+ try {
119
+ results = await Promise.all(itemLoadPromises);
120
+ results.forEach(({ itemRef, doc }) => {
121
+ if (itemRef && doc) itemRef.xmlDoc = doc;
122
+ });
123
+ requestAnimationFrame(() => {
124
+ this.dispatchEvent(
125
+ new CustomEvent("qti-test-connected", {
126
+ detail: results.map(({ itemRef }) => ({ identifier: itemRef?.identifier, element: itemRef })),
127
+ bubbles: true,
128
+ composed: true
129
+ })
130
+ );
131
+ console.info(`Loaded ${results.length} items successfully.`);
132
+ });
133
+ } catch (error) {
134
+ console.error("Error loading items:", error);
135
+ }
136
+ return results;
137
+ }
138
+ _getSectionItemIds(navSectionId) {
139
+ const sectionRefEl = this._testElement?.querySelector(
140
+ `qti-assessment-section[identifier="${navSectionId}"]`
141
+ );
142
+ if (!sectionRefEl) {
143
+ console.warn(`Section with identifier "${navSectionId}" not found.`);
144
+ return [];
145
+ }
146
+ return Array.from(
147
+ this._testElement.querySelectorAll(
148
+ `qti-assessment-section[identifier="${navSectionId}"] > qti-assessment-item-ref`
149
+ )
150
+ ).map((itemRef) => itemRef.identifier);
151
+ }
152
+ _clearLoadedItems() {
153
+ const itemRefEls = this._testElement?.querySelectorAll(
154
+ `qti-assessment-test qti-assessment-item-ref`
155
+ );
156
+ Array.from(itemRefEls || []).forEach((itemElement) => {
157
+ itemElement.xmlDoc = null;
158
+ });
159
+ }
160
+ _loadItemRequest(href) {
161
+ const event = new CustomEvent("qti-load-item-request", {
162
+ bubbles: true,
163
+ composed: true,
164
+ detail: { href, promise: null }
165
+ });
166
+ this.dispatchEvent(event);
167
+ return event.detail.promise;
168
+ }
169
+ }
170
+ __decorateClass([
171
+ property2({ type: String })
172
+ ], TestNavigationClass.prototype, "navigate", 2);
173
+ return TestNavigationClass;
174
+ };
175
+
176
+ // src/lib/qti-test/core/mixins/test-view.mixin.ts
177
+ var TestViewMixin = (superClass) => {
178
+ class TestViewClass extends superClass {
179
+ constructor(...args) {
180
+ super(...args);
181
+ this.sessionContext = { ...this.sessionContext, view: "candidate" };
182
+ this.addEventListener("on-test-switch-view", (e) => {
183
+ this.sessionContext = { ...this.sessionContext, view: e.detail };
184
+ this._updateElementView();
185
+ });
186
+ this.addEventListener("qti-assessment-test-connected", () => {
187
+ this._updateElementView();
188
+ });
189
+ this.addEventListener("qti-assessment-item-connected", (e) => {
190
+ this._updateElementView();
191
+ this._setCorrectResponseVisibility(e.detail);
192
+ });
193
+ }
194
+ willUpdate(changedProperties) {
195
+ super.willUpdate(changedProperties);
196
+ if (changedProperties.has("sessionContext")) {
197
+ this._updateElementView();
198
+ }
199
+ }
200
+ // Method to handle view updates for elements based on the current context view
201
+ _updateElementView() {
202
+ if (this.testElement && this.testElement) {
203
+ const viewElements = Array.from(this.testElement.querySelectorAll("[view]"));
204
+ viewElements.forEach((element) => {
205
+ element.classList.toggle("show", element.getAttribute("view") === this.sessionContext.view);
206
+ });
207
+ const assessmentItem = this.testElement.querySelector(
208
+ `qti-assessment-item[identifier="${this.sessionContext.navItemId}"]`
209
+ );
210
+ if (assessmentItem) {
211
+ assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
212
+ }
213
+ }
214
+ }
215
+ // Event handler for connected QTI assessment items
216
+ _setCorrectResponseVisibility(assessmentItem) {
217
+ assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
218
+ }
219
+ }
220
+ return TestViewClass;
221
+ };
222
+
223
+ // src/lib/qti-test/core/test-base.ts
224
+ import { provide } from "@lit/context";
225
+ import { LitElement } from "lit";
226
+ import { state } from "lit/decorators.js";
227
+ var TestBase = class extends LitElement {
228
+ constructor() {
229
+ super();
230
+ this.testContext = { items: [], testOutcomeVariables: [] };
231
+ this.sessionContext = {};
232
+ /**
233
+ * Updates the variables of an assessment item in the test context.
234
+ * - Matches the assessment item with the corresponding test context item.
235
+ * - If the item is not found, logs a warning.
236
+ * - Updates variables in the test context if exactly one variable exists.
237
+ * - Otherwise, syncs the assessment item's variables with the test context.
238
+ *
239
+ * @param assessmentItem - The assessment item to update.
240
+ */
241
+ this._updateItemInTestContext = (assessmentItem) => {
242
+ const { identifier, variables } = assessmentItem;
243
+ const itemContext = this.testContext.items.find((i) => i?.identifier === identifier);
244
+ if (!itemContext) {
245
+ console.warn(`Item IDs between assessment.xml and item.xml should match: ${identifier} is not found!`);
246
+ return;
247
+ }
248
+ if (itemContext.variables?.length === 1) {
249
+ this._updateItemVariablesInTestContext(identifier, variables);
250
+ } else {
251
+ assessmentItem.variables = [...itemContext.variables || []];
252
+ }
253
+ };
254
+ this.addEventListener("qti-assessment-test-connected", (e) => {
255
+ if (this.testContext && this.testContext.items.length > 0) return;
256
+ this.testElement = e.detail;
257
+ const items = Array.from(this.testElement.querySelectorAll("qti-assessment-item-ref")).map((itemRef) => {
258
+ return {
259
+ href: itemRef.href,
260
+ identifier: itemRef.identifier,
261
+ category: itemRef.category,
262
+ variables: [
263
+ {
264
+ identifier: "completionStatus",
265
+ value: "not_attempted",
266
+ type: "outcome"
267
+ }
268
+ ]
269
+ };
270
+ });
271
+ this.testContext = { ...this.testContext, items };
272
+ });
273
+ this.addEventListener("qti-assessment-item-connected", (e) => {
274
+ this._updateItemInTestContext(e.detail);
275
+ });
276
+ this.addEventListener("qti-outcome-changed", (e) => {
277
+ const assessmentitem = e.composedPath()[0];
278
+ this._updateItemVariablesInTestContext(assessmentitem.identifier, assessmentitem.variables);
279
+ });
280
+ }
281
+ // get testContext(): TestContext {
282
+ // return this._testContext;
283
+ // }
284
+ // // /* restores the context by updating existing items and adding new items from the "contextToRestore" parameter into the "this._context.items" array. */
285
+ // set testContext(testContext: TestContext) {
286
+ // if (this._testContext.items.length > 0) {
287
+ // console.warn(
288
+ // 'testContext already set and can not be overwritten. Set the testContext before loading the assessment test'
289
+ // );
290
+ // return;
291
+ // }
292
+ // if (testContext === null || testContext === undefined) return;
293
+ // this._testContext = { ...testContext }; // Clone the context to avoid modifying the original object
294
+ // // // append the items that are not yet in the context and replace the ones that are
295
+ // testContext.items?.forEach(itemContext => {
296
+ // const existingItemContext = this._testContext.items.find(i => i.identifier === itemContext.identifier);
297
+ // if (existingItemContext) {
298
+ // existingItemContext.variables = itemContext.variables;
299
+ // } else {
300
+ // this._testContext.items.push(itemContext);
301
+ // }
302
+ // });
303
+ // }
304
+ _updateItemVariablesInTestContext(identifier, variables) {
305
+ this.testContext = {
306
+ ...this.testContext,
307
+ // Spread existing test context properties
308
+ items: this.testContext.items.map((itemContext) => {
309
+ if (itemContext.identifier !== identifier) {
310
+ return itemContext;
311
+ }
312
+ return {
313
+ ...itemContext,
314
+ // Keep other properties of the item context
315
+ variables: variables.map((variable) => {
316
+ const matchingVariable = itemContext.variables.find((v) => v.identifier === variable.identifier);
317
+ return matchingVariable ? { ...matchingVariable, ...variable } : variable;
318
+ })
319
+ };
320
+ })
321
+ };
322
+ }
323
+ };
324
+ __decorateClass([
325
+ state(),
326
+ provide({ context: testContext })
327
+ ], TestBase.prototype, "testContext", 2);
328
+ __decorateClass([
329
+ state(),
330
+ provide({ context: sessionContext })
331
+ ], TestBase.prototype, "sessionContext", 2);
332
+
333
+ // src/lib/qti-test/core/mixins/test-processing.mixin.ts
334
+ var TestProcessingMixin = (superClass) => {
335
+ class TestProcessingElement extends superClass {
336
+ constructor(...args) {
337
+ super(...args);
338
+ this.addEventListener("qti-register-variable", (e) => {
339
+ this.testContext = {
340
+ ...this.testContext,
341
+ testOutcomeVariables: [...this.testContext.testOutcomeVariables || [], e.detail.variable]
342
+ };
343
+ e.stopPropagation();
344
+ });
345
+ this.addEventListener(
346
+ "qti-set-outcome-value",
347
+ (e) => {
348
+ const { outcomeIdentifier, value } = e.detail;
349
+ this.updateOutcomeVariable(outcomeIdentifier, value);
350
+ e.stopPropagation();
351
+ }
352
+ );
353
+ }
354
+ outcomeProcessing() {
355
+ const outcomeProcessor = this.querySelector("qti-outcome-processing");
356
+ if (!outcomeProcessor) return false;
357
+ outcomeProcessor?.process();
358
+ return true;
359
+ }
360
+ /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
361
+ updateOutcomeVariable(identifier, value) {
362
+ const outcomeVariable = this.getOutcome(identifier);
363
+ if (!outcomeVariable) {
364
+ console.warn(`Can not set qti-outcome-identifier: ${identifier}, it is not available`);
365
+ return;
366
+ }
367
+ this.testContext = {
368
+ ...this.testContext,
369
+ testOutcomeVariables: this.testContext.testOutcomeVariables?.map((v) => {
370
+ if (v.identifier !== identifier) {
371
+ return v;
372
+ }
373
+ return {
374
+ ...v,
375
+ value: outcomeVariable.cardinality === "single" ? value : [...v.value, value]
376
+ };
377
+ })
378
+ };
379
+ }
380
+ getOutcome(identifier) {
381
+ return this.getVariable(identifier);
382
+ }
383
+ getVariable(identifier) {
384
+ return this.testContext.testOutcomeVariables?.find((v) => v.identifier === identifier) || null;
385
+ }
386
+ /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
387
+ }
388
+ return TestProcessingElement;
389
+ };
390
+
391
+ // src/lib/qti-test/core/qti-test.ts
392
+ var QtiTest = class extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestProcessingMixin(TestBase)))) {
393
+ // export class QtiTest extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestBase))) {
394
+ /**
395
+ * Renders the component's template.
396
+ * Provides a default `<slot>` for content projection.
397
+ */
398
+ async connectedCallback() {
399
+ super.connectedCallback();
400
+ await this.updateComplete;
401
+ this.dispatchEvent(new CustomEvent("qti-test-connected", { detail: this }));
402
+ }
403
+ render() {
404
+ return html`<slot></slot>`;
405
+ }
406
+ };
407
+ QtiTest = __decorateClass([
408
+ customElement("qti-test")
409
+ ], QtiTest);
410
+
411
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-item-ref.ts
412
+ import { consume } from "@lit/context";
413
+ import { html as html2, LitElement as LitElement2 } from "lit";
414
+ import { property as property3 } from "lit/decorators.js";
415
+ var stringToBooleanConverter = {
416
+ fromAttribute(value) {
417
+ return value === "true";
418
+ },
419
+ toAttribute(value) {
420
+ return value ? "true" : "false";
421
+ }
422
+ };
423
+ var QtiAssessmentItemRef = class extends LitElement2 {
424
+ constructor() {
425
+ super(...arguments);
426
+ this.weigths = /* @__PURE__ */ new Map();
427
+ }
428
+ // the XMLDocument
429
+ createRenderRoot() {
430
+ return this;
431
+ }
432
+ get assessmentItem() {
433
+ return this.renderRoot?.querySelector("qti-assessment-item");
434
+ }
435
+ async connectedCallback() {
436
+ super.connectedCallback();
437
+ await this.updateComplete;
438
+ this.dispatchEvent(
439
+ new CustomEvent("qti-assessment-item-ref-connected", {
440
+ bubbles: true,
441
+ composed: true,
442
+ detail: { identifier: this.identifier, href: this.href, category: this.category }
443
+ })
444
+ );
445
+ }
446
+ render() {
447
+ return html2`${this.xmlDoc}`;
448
+ }
449
+ };
450
+ __decorateClass([
451
+ property3({ type: String })
452
+ ], QtiAssessmentItemRef.prototype, "category", 2);
453
+ __decorateClass([
454
+ property3({ type: String })
455
+ ], QtiAssessmentItemRef.prototype, "identifier", 2);
456
+ __decorateClass([
457
+ property3({ type: Boolean, converter: stringToBooleanConverter })
458
+ ], QtiAssessmentItemRef.prototype, "required", 2);
459
+ __decorateClass([
460
+ property3({ type: Boolean, converter: stringToBooleanConverter })
461
+ ], QtiAssessmentItemRef.prototype, "fixed", 2);
462
+ __decorateClass([
463
+ property3({ type: String })
464
+ ], QtiAssessmentItemRef.prototype, "href", 2);
465
+ __decorateClass([
466
+ consume({ context: testContext, subscribe: true })
467
+ ], QtiAssessmentItemRef.prototype, "_testContext", 2);
468
+ __decorateClass([
469
+ property3({ type: Object, attribute: false })
470
+ ], QtiAssessmentItemRef.prototype, "xmlDoc", 2);
471
+ if (!customElements.get("qti-assessment-item-ref")) {
472
+ customElements.define("qti-assessment-item-ref", QtiAssessmentItemRef);
473
+ }
474
+
475
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-section.ts
476
+ import { consume as consume2 } from "@lit/context";
477
+ import { html as html3, LitElement as LitElement3 } from "lit";
478
+ import { property as property4 } from "lit/decorators.js";
479
+ var stringToBooleanConverter2 = {
480
+ fromAttribute(value) {
481
+ return value === "true";
482
+ },
483
+ toAttribute(value) {
484
+ return value ? "true" : "false";
485
+ }
486
+ };
487
+ var QtiAssessmentSection = class extends LitElement3 {
488
+ async connectedCallback() {
489
+ super.connectedCallback();
490
+ await this.updateComplete;
491
+ this.dispatchEvent(
492
+ new Event("qti-assessment-section-connected", {
493
+ bubbles: true,
494
+ composed: true
495
+ })
496
+ );
497
+ }
498
+ render() {
499
+ return html3`<slot name="qti-rubric-block"></slot><slot></slot>`;
500
+ }
501
+ };
502
+ __decorateClass([
503
+ property4({ type: String })
504
+ ], QtiAssessmentSection.prototype, "identifier", 2);
505
+ __decorateClass([
506
+ property4({ type: String })
507
+ ], QtiAssessmentSection.prototype, "required", 2);
508
+ __decorateClass([
509
+ property4({ type: Boolean, converter: stringToBooleanConverter2 })
510
+ ], QtiAssessmentSection.prototype, "fixed", 2);
511
+ __decorateClass([
512
+ property4({ type: String })
513
+ ], QtiAssessmentSection.prototype, "title", 2);
514
+ __decorateClass([
515
+ property4({ type: Boolean, converter: stringToBooleanConverter2 })
516
+ ], QtiAssessmentSection.prototype, "visible", 2);
517
+ __decorateClass([
518
+ property4({ type: Boolean, converter: stringToBooleanConverter2, attribute: "keep-together" })
519
+ ], QtiAssessmentSection.prototype, "keepTogether", 2);
520
+ __decorateClass([
521
+ consume2({ context: testContext, subscribe: true })
522
+ ], QtiAssessmentSection.prototype, "_testContext", 2);
523
+ if (!customElements.get("qti-assessment-section")) {
524
+ customElements.define("qti-assessment-section", QtiAssessmentSection);
525
+ }
526
+
527
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-test.ts
528
+ import { consume as consume3 } from "@lit/context";
529
+ import { html as html4, LitElement as LitElement4 } from "lit";
530
+ import { customElement as customElement2, property as property5 } from "lit/decorators.js";
531
+ var QtiAssessmentTest = class extends LitElement4 {
532
+ async connectedCallback() {
533
+ super.connectedCallback();
534
+ await this.updateComplete;
535
+ this.dispatchEvent(
536
+ new CustomEvent("qti-assessment-test-connected", {
537
+ detail: this,
538
+ bubbles: true,
539
+ composed: true
540
+ })
541
+ );
542
+ }
543
+ render() {
544
+ return html4` <slot></slot>`;
545
+ }
546
+ };
547
+ __decorateClass([
548
+ property5({ type: String })
549
+ ], QtiAssessmentTest.prototype, "identifier", 2);
550
+ __decorateClass([
551
+ property5({ type: String })
552
+ ], QtiAssessmentTest.prototype, "title", 2);
553
+ __decorateClass([
554
+ consume3({ context: testContext, subscribe: true })
555
+ ], QtiAssessmentTest.prototype, "_testContext", 2);
556
+ QtiAssessmentTest = __decorateClass([
557
+ customElement2("qti-assessment-test")
558
+ ], QtiAssessmentTest);
559
+
560
+ // src/lib/qti-test/core/qti-assessment-test/qti-test-part.ts
561
+ import { html as html5, LitElement as LitElement5 } from "lit";
562
+ import { customElement as customElement3, property as property6 } from "lit/decorators.js";
563
+ var QtiTestPart = class extends LitElement5 {
564
+ constructor() {
565
+ super(...arguments);
566
+ this.identifier = "";
567
+ this.title = "";
568
+ this.class = "";
569
+ this.NavigationMode = "nonlinear";
570
+ this.submissionMode = "individual";
571
+ }
572
+ async connectedCallback() {
573
+ super.connectedCallback();
574
+ await this.updateComplete;
575
+ this.dispatchEvent(
576
+ new Event("qti-test-part-connected", {
577
+ bubbles: true,
578
+ composed: true
579
+ })
580
+ );
581
+ }
582
+ render() {
583
+ return html5` <slot></slot>`;
584
+ }
585
+ };
586
+ __decorateClass([
587
+ property6({ type: String })
588
+ ], QtiTestPart.prototype, "identifier", 2);
589
+ __decorateClass([
590
+ property6({ type: String })
591
+ ], QtiTestPart.prototype, "title", 2);
592
+ __decorateClass([
593
+ property6({ type: String })
594
+ ], QtiTestPart.prototype, "class", 2);
595
+ __decorateClass([
596
+ property6({ type: String, attribute: "navigation-mode" })
597
+ ], QtiTestPart.prototype, "NavigationMode", 2);
598
+ __decorateClass([
599
+ property6({ type: String, attribute: "submission-mode" })
600
+ ], QtiTestPart.prototype, "submissionMode", 2);
601
+ QtiTestPart = __decorateClass([
602
+ customElement3("qti-test-part")
603
+ ], QtiTestPart);
604
+ if (!customElements.get("qti-test-part")) {
605
+ customElements.define("qti-test-part", QtiTestPart);
606
+ }
607
+
608
+ export {
609
+ QtiTest,
610
+ QtiAssessmentItemRef,
611
+ QtiAssessmentSection,
612
+ QtiAssessmentTest,
613
+ QtiTestPart
614
+ };
615
+ //# sourceMappingURL=chunk-UDDWTISS.js.map