@citolab/qti-components 7.3.20 → 7.3.21

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 (275) hide show
  1. package/cdn/chunks/chunk-2BSPQRNR.js +6 -0
  2. package/cdn/chunks/chunk-2IJBTWWT.js +2 -0
  3. package/cdn/chunks/chunk-3BPUHYAN.js +1 -0
  4. package/cdn/chunks/chunk-3CVBBZDT.js +17 -0
  5. package/cdn/chunks/chunk-3IBGLVHA.js +1 -0
  6. package/cdn/chunks/chunk-4AGE7DVK.js +48 -0
  7. package/cdn/chunks/chunk-4DXCBZFR.js +3698 -0
  8. package/cdn/chunks/chunk-4FBS7ODL.js +6 -0
  9. package/cdn/chunks/chunk-4IWCVQQJ.js +8 -0
  10. package/cdn/chunks/chunk-522JFYKC.js +6 -0
  11. package/cdn/chunks/chunk-5L5JXKEA.js +1 -0
  12. package/cdn/chunks/chunk-5TEGKCEI.js +48 -0
  13. package/cdn/chunks/chunk-5WLHU3FH.js +8 -0
  14. package/cdn/chunks/chunk-6ELXCFB2.js +1 -0
  15. package/cdn/chunks/chunk-6Q3S6QYF.js +1471 -0
  16. package/cdn/chunks/chunk-6SGFGN34.js +8 -0
  17. package/cdn/chunks/chunk-6XVY32RS.js +1 -0
  18. package/cdn/chunks/chunk-6ZE2IMSJ.js +1471 -0
  19. package/cdn/chunks/chunk-73RDXCTO.js +1 -0
  20. package/cdn/chunks/chunk-73YTM4JU.js +8 -0
  21. package/cdn/chunks/chunk-A57EJSRU.js +1 -0
  22. package/cdn/chunks/chunk-AAZIKH5Z.js +3650 -0
  23. package/cdn/chunks/chunk-AMJIIPBQ.js +48 -0
  24. package/cdn/chunks/chunk-BGFVQO5N.js +8 -0
  25. package/cdn/chunks/chunk-BRXZ5HLX.js +8 -0
  26. package/cdn/chunks/chunk-BSBPPIVO.js +5 -0
  27. package/cdn/chunks/chunk-BURSTFDF.js +2 -0
  28. package/cdn/chunks/chunk-C7AO3IVZ.js +48 -0
  29. package/cdn/chunks/chunk-CTNAGYH7.js +1 -0
  30. package/cdn/chunks/chunk-DESMFZJW.js +5 -0
  31. package/cdn/chunks/chunk-DNBBQ7LY.js +1 -0
  32. package/cdn/chunks/chunk-DP5FVJRS.js +21 -0
  33. package/cdn/chunks/chunk-E46BCOOW.js +1 -0
  34. package/cdn/chunks/chunk-EGFC4XQG.js +5 -0
  35. package/cdn/chunks/chunk-EQ4LUVQK.js +8 -0
  36. package/cdn/chunks/chunk-EXVHRHST.js +8 -0
  37. package/cdn/chunks/chunk-FC7HXYUV.js +8 -0
  38. package/cdn/chunks/chunk-FEJUVLN4.js +6 -0
  39. package/cdn/chunks/chunk-FLQBFTRW.js +37 -0
  40. package/cdn/chunks/chunk-FUGKKQ6E.js +1 -0
  41. package/cdn/chunks/chunk-FWFPMNDO.js +5 -0
  42. package/cdn/chunks/chunk-FYXNIYGH.js +1 -0
  43. package/cdn/chunks/chunk-GFO3YUEH.js +1 -0
  44. package/cdn/chunks/chunk-HAE5ZHID.js +1 -0
  45. package/cdn/chunks/chunk-HCXHHI6V.js +18 -0
  46. package/cdn/chunks/chunk-HDMF4QZO.js +48 -0
  47. package/cdn/chunks/chunk-HKUIQBCM.js +1 -0
  48. package/cdn/chunks/chunk-HKWYQB5Z.js +37 -0
  49. package/cdn/chunks/chunk-HO6JOQX4.js +25 -0
  50. package/cdn/chunks/chunk-HTH5YCZO.js +8 -0
  51. package/cdn/chunks/chunk-IHVTWACH.js +8 -0
  52. package/cdn/chunks/chunk-ILEDSBLL.js +8 -0
  53. package/cdn/chunks/chunk-IYZLVTNL.js +5 -0
  54. package/cdn/chunks/chunk-J5P2GBPV.js +1 -0
  55. package/cdn/chunks/chunk-KASON6Y7.js +17 -0
  56. package/cdn/chunks/chunk-KKQK6WIG.js +1 -0
  57. package/cdn/chunks/chunk-LBMZYOKF.js +8 -0
  58. package/cdn/chunks/chunk-LC7KE332.js +1 -0
  59. package/cdn/chunks/chunk-LIUOA3YV.js +1 -0
  60. package/cdn/chunks/chunk-LO4MJ72X.js +8 -0
  61. package/cdn/chunks/chunk-LRGALTZX.js +1 -0
  62. package/cdn/chunks/chunk-LRIOWAOJ.js +8 -0
  63. package/cdn/chunks/chunk-LVKOQVTZ.js +17 -0
  64. package/cdn/chunks/chunk-M4VO4BD3.js +1471 -0
  65. package/cdn/chunks/chunk-M53CKFQE.js +5 -0
  66. package/cdn/chunks/chunk-MD33BNWM.js +1 -0
  67. package/cdn/chunks/chunk-MLEUGPRW.js +8 -0
  68. package/cdn/chunks/chunk-MM76ZODZ.js +8 -0
  69. package/cdn/chunks/chunk-MQVMYZ75.js +1 -0
  70. package/cdn/chunks/chunk-MRQ46JRY.js +8 -0
  71. package/cdn/chunks/chunk-MSOBQUON.js +10 -0
  72. package/cdn/chunks/chunk-NDMZ2RAB.js +48 -0
  73. package/cdn/chunks/chunk-NJP4VZB3.js +8 -0
  74. package/cdn/chunks/chunk-NO3TZB6T.js +5 -0
  75. package/cdn/chunks/chunk-NRY6IJSD.js +5 -0
  76. package/cdn/chunks/chunk-O4RAJ3LM.js +25 -0
  77. package/cdn/chunks/chunk-OEZI5WCY.js +18 -0
  78. package/cdn/chunks/chunk-OR67S36X.js +5 -0
  79. package/cdn/chunks/chunk-OSLUHYFD.js +8 -0
  80. package/cdn/chunks/chunk-P6L4B5GC.js +1 -0
  81. package/cdn/chunks/chunk-PF74FX32.js +1 -0
  82. package/cdn/chunks/chunk-PFCJVHJ3.js +10 -0
  83. package/cdn/chunks/chunk-PP62N3C4.js +8 -0
  84. package/cdn/chunks/chunk-PQLJWD6V.js +21 -0
  85. package/cdn/chunks/chunk-PTQFS3S5.js +2 -0
  86. package/cdn/chunks/chunk-PU7OABT3.js +1 -0
  87. package/cdn/chunks/chunk-Q2CKZUYX.js +1 -0
  88. package/cdn/chunks/chunk-QEFO63QX.js +8 -0
  89. package/cdn/chunks/chunk-QIZBL4QP.js +1 -0
  90. package/cdn/chunks/chunk-RGNFAPWY.js +2 -0
  91. package/cdn/chunks/chunk-RHEBGA4B.js +1 -0
  92. package/cdn/chunks/chunk-S5QDLZ6J.js +1 -0
  93. package/cdn/chunks/chunk-SBWSYKE5.js +5 -0
  94. package/cdn/chunks/chunk-SXRIA7VB.js +8 -0
  95. package/cdn/chunks/chunk-SYTQX5DA.js +1 -0
  96. package/cdn/chunks/chunk-TLK5RNXE.js +1 -0
  97. package/cdn/chunks/chunk-TR7WXOQR.js +1 -0
  98. package/cdn/chunks/chunk-UMDZKG6K.js +1 -0
  99. package/cdn/chunks/chunk-UNK5GKOK.js +5 -0
  100. package/cdn/chunks/chunk-V2AJKKRF.js +1470 -0
  101. package/cdn/chunks/chunk-VEG7LKS3.js +48 -0
  102. package/cdn/chunks/chunk-VQ2JX2OE.js +5 -0
  103. package/cdn/chunks/chunk-W73FT5JE.js +48 -0
  104. package/cdn/chunks/chunk-W7O6UFTQ.js +5 -0
  105. package/cdn/chunks/chunk-WCCTDLQ4.js +8 -0
  106. package/cdn/chunks/chunk-WV5B4HNF.js +1471 -0
  107. package/cdn/chunks/chunk-WWMMW7RJ.js +1 -0
  108. package/cdn/chunks/chunk-X3JAXGAZ.js +8 -0
  109. package/cdn/chunks/chunk-XJWUPDZ4.js +10 -0
  110. package/cdn/chunks/chunk-XMKJLLUL.js +1 -0
  111. package/cdn/chunks/chunk-XMS6AFBV.js +5 -0
  112. package/cdn/chunks/chunk-XSVPZFGN.js +1 -0
  113. package/cdn/chunks/chunk-Y2P4IF3E.js +1 -0
  114. package/cdn/chunks/chunk-YCBNF5QU.js +17 -0
  115. package/cdn/chunks/chunk-YEGYR7SL.js +5 -0
  116. package/cdn/chunks/chunk-YHLQ2JQ2.js +1 -0
  117. package/cdn/chunks/chunk-ZO5G6CHW.js +1470 -0
  118. package/cdn/chunks/chunk-ZPCQH3EY.js +10 -0
  119. package/cdn/chunks/chunk-ZUQ72RIQ.js +8 -0
  120. package/cdn/chunks/chunk-ZZNCHSYH.js +5 -0
  121. package/cdn/exports/computed-item.context.js +1 -1
  122. package/cdn/exports/computed.context.js +1 -1
  123. package/cdn/exports/config.context.js +1 -1
  124. package/cdn/exports/interaction.js +1 -1
  125. package/cdn/exports/qti-assessment-item.context.js +1 -1
  126. package/cdn/exports/qti-condition-expression.js +1 -1
  127. package/cdn/exports/qti-expression.js +1 -1
  128. package/cdn/exports/qti.context.js +1 -1
  129. package/cdn/exports/session.context.js +1 -1
  130. package/cdn/exports/test.context.js +1 -1
  131. package/cdn/index.global.js +1 -1
  132. package/cdn/index.js +1 -1
  133. package/cdn/qti-components/index.js +1 -1
  134. package/cdn/qti-item/components/item-container.js +1 -1
  135. package/cdn/qti-item/components/item-correct-response-mode.js +1 -1
  136. package/cdn/qti-item/components/item-show-candidate-correction.js +1 -1
  137. package/cdn/qti-item/components/item-show-correct-response.js +1 -1
  138. package/cdn/qti-item/components/print-item-variables.js +1 -1
  139. package/cdn/qti-item/components/styles.js +1 -1
  140. package/cdn/qti-item/core/index.js +1 -1
  141. package/cdn/qti-test/components/index.js +1 -1
  142. package/cdn/qti-test/components/styles.js +1 -1
  143. package/cdn/qti-test/components/test-check-item.js +1 -1
  144. package/cdn/qti-test/components/test-container.js +1 -1
  145. package/cdn/qti-test/components/test-end-attempt.js +1 -1
  146. package/cdn/qti-test/components/test-item-link.js +1 -1
  147. package/cdn/qti-test/components/test-navigation.js +1 -1
  148. package/cdn/qti-test/components/test-next.js +1 -1
  149. package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
  150. package/cdn/qti-test/components/test-prev.js +1 -1
  151. package/cdn/qti-test/components/test-print-context.js +1 -1
  152. package/cdn/qti-test/components/test-print-item-variables.js +1 -1
  153. package/cdn/qti-test/components/test-scoring-buttons.js +1 -1
  154. package/cdn/qti-test/components/test-scoring-feedback.js +1 -1
  155. package/cdn/qti-test/components/test-section-buttons-stamp.js +1 -1
  156. package/cdn/qti-test/components/test-section-link.js +1 -1
  157. package/cdn/qti-test/components/test-show-correct-response.js +1 -1
  158. package/cdn/qti-test/components/test-stamp.js +1 -1
  159. package/cdn/qti-test/components/test-view-toggle.js +1 -1
  160. package/cdn/qti-test/components/test-view.js +1 -1
  161. package/cdn/qti-test/core/index.js +1 -1
  162. package/dist/chunks/chunk-3JJM4BKK.js +367 -0
  163. package/dist/chunks/chunk-3JJM4BKK.js.map +1 -0
  164. package/dist/chunks/chunk-3LX4O663.js +3688 -0
  165. package/dist/chunks/chunk-3LX4O663.js.map +1 -0
  166. package/dist/chunks/chunk-4PG2PZHY.js +8924 -0
  167. package/dist/chunks/chunk-4PG2PZHY.js.map +1 -0
  168. package/dist/chunks/chunk-55C6NAK5.js +142 -0
  169. package/dist/chunks/chunk-55C6NAK5.js.map +1 -0
  170. package/dist/chunks/chunk-5P64MALP.js +3640 -0
  171. package/dist/chunks/chunk-5P64MALP.js.map +1 -0
  172. package/dist/chunks/chunk-65YQSKWV.js +94 -0
  173. package/dist/chunks/chunk-65YQSKWV.js.map +1 -0
  174. package/dist/chunks/chunk-ARBFS6D6.js +8924 -0
  175. package/dist/chunks/chunk-ARBFS6D6.js.map +1 -0
  176. package/dist/chunks/chunk-EB3ZESWL.js +367 -0
  177. package/dist/chunks/chunk-EB3ZESWL.js.map +1 -0
  178. package/dist/chunks/chunk-ERYHQVOT.js +8 -0
  179. package/dist/chunks/chunk-ERYHQVOT.js.map +1 -0
  180. package/dist/chunks/chunk-FL72PF4D.js +19 -0
  181. package/dist/chunks/chunk-FL72PF4D.js.map +1 -0
  182. package/dist/chunks/chunk-HFAUM56X.js +208 -0
  183. package/dist/chunks/chunk-HFAUM56X.js.map +1 -0
  184. package/dist/chunks/chunk-JOASLKRQ.js +914 -0
  185. package/dist/chunks/chunk-JOASLKRQ.js.map +1 -0
  186. package/dist/chunks/chunk-K4QJBUIX.js +367 -0
  187. package/dist/chunks/chunk-K4QJBUIX.js.map +1 -0
  188. package/dist/chunks/chunk-KYN4AAHS.js +8839 -0
  189. package/dist/chunks/chunk-KYN4AAHS.js.map +1 -0
  190. package/dist/chunks/chunk-MLRMRXGZ.js +367 -0
  191. package/dist/chunks/chunk-MLRMRXGZ.js.map +1 -0
  192. package/dist/chunks/chunk-MOIHNOX3.js +94 -0
  193. package/dist/chunks/chunk-MOIHNOX3.js.map +1 -0
  194. package/dist/chunks/chunk-P2PRB5IZ.js +94 -0
  195. package/dist/chunks/chunk-P2PRB5IZ.js.map +1 -0
  196. package/dist/chunks/chunk-PF5X3SZR.js +94 -0
  197. package/dist/chunks/chunk-PF5X3SZR.js.map +1 -0
  198. package/dist/chunks/chunk-QCB6P7DH.js +146 -0
  199. package/dist/chunks/chunk-QCB6P7DH.js.map +1 -0
  200. package/dist/chunks/chunk-QU7KR7VX.js +367 -0
  201. package/dist/chunks/chunk-QU7KR7VX.js.map +1 -0
  202. package/dist/chunks/chunk-RTSIFU3A.js +8924 -0
  203. package/dist/chunks/chunk-RTSIFU3A.js.map +1 -0
  204. package/dist/chunks/chunk-SZ3DDAJ7.js +142 -0
  205. package/dist/chunks/chunk-SZ3DDAJ7.js.map +1 -0
  206. package/dist/chunks/chunk-SZTQ6IWR.js +8835 -0
  207. package/dist/chunks/chunk-SZTQ6IWR.js.map +1 -0
  208. package/dist/chunks/chunk-UUM4KYBV.js +914 -0
  209. package/dist/chunks/chunk-UUM4KYBV.js.map +1 -0
  210. package/dist/chunks/chunk-V4L4ONOK.js +914 -0
  211. package/dist/chunks/chunk-V4L4ONOK.js.map +1 -0
  212. package/dist/chunks/chunk-V7ACRMW7.js +914 -0
  213. package/dist/chunks/chunk-V7ACRMW7.js.map +1 -0
  214. package/dist/chunks/chunk-WEKBCXNI.js +8839 -0
  215. package/dist/chunks/chunk-WEKBCXNI.js.map +1 -0
  216. package/dist/chunks/chunk-WN6TJQI2.js +103 -0
  217. package/dist/chunks/chunk-WN6TJQI2.js.map +1 -0
  218. package/dist/chunks/chunk-XM2JOPVU.js +914 -0
  219. package/dist/chunks/chunk-XM2JOPVU.js.map +1 -0
  220. package/dist/chunks/chunk-ZZIDNW4D.js +914 -0
  221. package/dist/chunks/chunk-ZZIDNW4D.js.map +1 -0
  222. package/dist/exports/computed-item.context.d.ts +2 -1
  223. package/dist/exports/computed.context.d.ts +3 -2
  224. package/dist/exports/config.context.d.ts +1 -0
  225. package/dist/exports/config.context.js +1 -1
  226. package/dist/exports/interaction.d.ts +2 -1
  227. package/dist/exports/interaction.js +5 -2
  228. package/dist/exports/item.context.d.ts +2 -1
  229. package/dist/exports/qti-assessment-item.context.d.ts +2 -1
  230. package/dist/exports/qti-condition-expression.d.ts +2 -1
  231. package/dist/exports/qti-condition-expression.js +3 -3
  232. package/dist/exports/qti-expression.d.ts +2 -1
  233. package/dist/exports/qti-expression.js +2 -2
  234. package/dist/exports/qti-test.d.ts +3 -2
  235. package/dist/exports/session.context.d.ts +3 -2
  236. package/dist/exports/test.context.d.ts +2 -1
  237. package/dist/exports/variables.d.ts +2 -1
  238. package/dist/index.d.ts +4 -4
  239. package/dist/index.js +12 -12
  240. package/dist/item.css +66 -6
  241. package/dist/qti-components/index.d.ts +16 -5
  242. package/dist/qti-components/index.js +6 -6
  243. package/dist/qti-components-jsx.d.ts +29 -18
  244. package/dist/qti-item/components/item-container.js +2 -2
  245. package/dist/qti-item/components/item-correct-response-mode.js +1 -1
  246. package/dist/qti-item/components/item-show-candidate-correction.d.ts +2 -1
  247. package/dist/qti-item/components/item-show-correct-response.d.ts +2 -1
  248. package/dist/qti-item/components/print-item-variables.d.ts +2 -1
  249. package/dist/qti-item/core/index.d.ts +1 -1
  250. package/dist/qti-item/core/index.js +4 -4
  251. package/dist/qti-loader/index.d.ts +2 -1
  252. package/dist/qti-response-declaration-BKOw2_Pl.d.ts +1378 -0
  253. package/dist/qti-response-declaration-DKr08ANy.d.ts +1397 -0
  254. package/dist/qti-response-declaration-Dz6D30cF.d.ts +1397 -0
  255. package/dist/qti-response-declaration-d_tAAEFq.d.ts +1378 -0
  256. package/dist/qti-test/components/index.d.ts +3 -3
  257. package/dist/qti-test/components/index.js +4 -4
  258. package/dist/qti-test/components/test-container.js +2 -2
  259. package/dist/qti-test/components/test-navigation.d.ts +2 -2
  260. package/dist/qti-test/components/test-navigation.js +2 -2
  261. package/dist/qti-test/components/test-next.d.ts +3 -2
  262. package/dist/qti-test/components/test-prev.d.ts +3 -2
  263. package/dist/qti-test/components/test-print-context.d.ts +3 -2
  264. package/dist/qti-test/components/test-print-item-variables.d.ts +3 -2
  265. package/dist/qti-test/components/test-scoring-buttons.d.ts +3 -2
  266. package/dist/qti-test/components/test-scoring-feedback.d.ts +3 -2
  267. package/dist/qti-test/components/test-show-correct-response.d.ts +3 -2
  268. package/dist/qti-test/core/index.d.ts +4 -3
  269. package/dist/qti-test/core/index.js +7 -7
  270. package/dist/qti-test-feedback-Bskvq3FE.d.ts +91 -0
  271. package/dist/qti-test-feedback-CZsbp6z4.d.ts +91 -0
  272. package/dist/qti-test-feedback-dSr4W5Ft.d.ts +91 -0
  273. package/dist/qti-test-feedback-jBGxkr5n.d.ts +91 -0
  274. package/dist/vscode.html-custom-data.json +3 -2
  275. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/qti-test/core/qti-test.ts","../../src/lib/qti-test/core/mixins/test-navigation.mixin.ts","../../src/lib/qti-test/core/mixins/test-view.mixin.ts","../../src/lib/qti-test/core/test-base.ts","../../src/lib/qti-test/core/mixins/test-processing.mixin.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-assessment-item-ref.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-assessment-section.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-assessment-test.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-test-part.ts","../../src/lib/qti-test/core/qti-assessment-test/qti-test-feedback.ts"],"sourcesContent":["import { html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\nimport { TestNavigationMixin, TestViewMixin } from './mixins';\nimport { TestBase } from './test-base';\nimport { TestProcessingMixin } from './mixins/test-processing.mixin';\n\nimport type { IQtiTest } from '../../exports/qti-test';\n\n/**\n * `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.\n *\n * This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.\n *\n * ### Example Usage\n *\n * Minimal example including navigation:\n *\n * ```html\n * <qti-test>\n * <test-navigation>\n * <test-container test-url=\"./path/to/assessment.xml\"></test-container>\n * <nav class=\"flex\">\n * <test-prev></test-prev>\n * <test-next></test-next>\n * </nav>\n * </test-navigation>\n * </qti-test>\n * ```\n *\n * Use the following file structure\n * A qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.\n *\n * ```plaintext\n * Root/\n * ├── index.html\n * └── /assets/api/examples/\n * ├── assessmenttest.xml\n * └── imsmanifest.xml\n *\n * ```\n *\n * ### Test components\n *\n * Use test components inside the qti-test component for added functionality.\n * ### Test next\n * `<test-next> | TestNext`\n *\n * ### Test prev\n *\n * `<test-prev> | TestPrev`\n * ### Test components\n *\n * You can use normal class names to style the elements.\n * And you can use the `test-prev` and `test-next` elements to navigate through the test.\n *\n */\n@customElement('qti-test')\nexport class QtiTest extends TestNavigationMixin(TestViewMixin(TestProcessingMixin(TestBase))) implements IQtiTest {\n // export class QtiTest extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestBase))) {\n\n /**\n * Renders the component's template.\n * Provides a default `<slot>` for content projection.\n */\n async connectedCallback(): Promise<void> {\n super.connectedCallback();\n await this.updateComplete;\n this.dispatchEvent(new CustomEvent('qti-test-connected', { detail: this }));\n }\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-test': QtiTest;\n }\n}\n","import { property } from 'lit/decorators.js';\n\nimport { qtiTransformItem } from '../../../qti-transformers';\n\nimport type { QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest } from '../qti-assessment-test';\nimport type { TestBase } from '../test-base';\n\ntype Constructor<T = {}> = abstract new (...args: any[]) => T;\n\n// Define error types for better error handling\nenum NavigationErrorType {\n ITEM_NOT_FOUND = 'item-not-found',\n SECTION_NOT_FOUND = 'section-not-found',\n LOAD_ERROR = 'load-error',\n NETWORK_ERROR = 'network-error',\n TIMEOUT_ERROR = 'timeout-error'\n}\n\ninterface NavigationError {\n type: NavigationErrorType;\n message: string;\n details?: any;\n itemId?: string;\n sectionId?: string;\n}\n\ndeclare class TestNavigationInterface {}\nexport const TestNavigationMixin = <T extends Constructor<TestBase>>(superClass: T) => {\n abstract class TestNavigationClass extends superClass implements TestNavigationInterface {\n @property({ type: String }) navigate: 'item' | 'section' | null = null;\n @property({ type: Boolean, attribute: 'cache-transform' }) cacheTransform: boolean = false;\n @property({ type: Number }) requestTimeout: number = 30000; // Default timeout of 30 seconds\n @property({ type: Boolean }) showLoadingIndicators: boolean = true;\n\n protected _testElement: QtiAssessmentTest;\n private _activeRequests: XMLHttpRequest[] = [];\n private _navigationInProgress: boolean = false;\n private _lastError: NavigationError | null = null;\n private _lastNavigationRequestId: string | null = null;\n private _targetNavigation: { type: 'item' | 'section'; id: string } | null = null;\n\n constructor(...args: any[]) {\n super(...args);\n\n // Handle navigation requests\n this.addEventListener(\n 'qti-request-navigation',\n async ({ detail }: CustomEvent<{ type: 'item' | 'section'; id: string }>) => {\n if (!detail?.id) return;\n\n // Track this navigation request's unique identifier\n // Using timestamp and a counter for uniqueness\n const navigationRequestId = `nav_${Date.now()}_${Math.random()}`;\n this._lastNavigationRequestId = navigationRequestId;\n\n try {\n // Set navigation in progress and clear errors\n this._navigationInProgress = true;\n this._lastError = null;\n this._dispatchStatusEvent({ loading: true, type: detail.type, id: detail.id });\n\n // Cancel any pending requests before starting new ones\n this._cancelActiveRequests();\n\n // Store the navigation target for quick navigation\n this._targetNavigation = { type: detail.type, id: detail.id };\n\n if (detail.type === 'item') {\n await this._navigateToItem(detail.id);\n } else if (detail.type === 'section') {\n await this._navigateToSection(detail.id);\n }\n\n // Verify this is still the most recent navigation request\n // If not, we don't need to do anything more as a newer request superseded this one\n if (this._lastNavigationRequestId !== navigationRequestId) {\n console.log('Navigation was superseded by a newer request');\n return;\n }\n } catch (error) {\n // Only process error if this is still the most recent navigation\n if (this._lastNavigationRequestId === navigationRequestId) {\n // Convert error to NavigationError if it's not already\n const navError = this._normalizeError(error, detail.type, detail.id);\n this._lastError = navError;\n\n // Dispatch the error event\n this._dispatchErrorEvent(navError);\n\n console.error(`Navigation error (${navError.type}):`, navError.message, navError.details);\n }\n } finally {\n // Only update navigation status if this is still the active request\n if (this._lastNavigationRequestId === navigationRequestId) {\n // Always mark navigation as completed\n this._navigationInProgress = false;\n this._dispatchStatusEvent({ loading: false, type: detail.type, id: detail.id });\n }\n }\n }\n );\n\n // Handle test connection\n this.addEventListener('qti-assessment-test-connected', (e: CustomEvent<QtiAssessmentTest>) => {\n this._testElement = e.detail;\n this._initializeNavigation();\n });\n }\n\n /**\n * Initialize navigation when test is first connected\n */\n private _initializeNavigation(): void {\n let id: string | undefined;\n\n if (this.navigate === 'section') {\n id = this._testElement.querySelector<QtiAssessmentSection>('qti-assessment-section')?.identifier;\n }\n if (this.navigate === 'item') {\n id =\n this.sessionContext.navItemRefId ??\n this._testElement.querySelector<QtiAssessmentItemRef>('qti-assessment-item-ref')?.identifier;\n }\n if (id) {\n this.dispatchEvent(\n new CustomEvent('qti-request-navigation', {\n detail: { type: this.navigate === 'section' ? 'section' : 'item', id },\n bubbles: true,\n composed: true\n })\n );\n }\n }\n\n public navigateTo(type: 'item' | 'section', id?: string): void {\n // if no id, take the first qti-assessment-item-ref\n if (!id) {\n if (type === 'section') {\n id = this._testElement?.querySelector<QtiAssessmentSection>('qti-assessment-section')?.identifier;\n }\n if (type === 'item') {\n id = this._testElement?.querySelector<QtiAssessmentItemRef>('qti-assessment-item-ref')?.identifier;\n }\n }\n this.dispatchEvent(\n new CustomEvent('qti-request-navigation', {\n detail: { type, id },\n bubbles: true,\n composed: true\n })\n );\n }\n /**\n * Navigates to a specific item\n */\n private async _navigateToItem(itemId: string): Promise<void> {\n const itemRefEl = this._testElement?.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${itemId}\"]`\n );\n\n if (!itemRefEl) {\n throw {\n type: NavigationErrorType.ITEM_NOT_FOUND,\n message: `Item with identifier \"${itemId}\" not found.`,\n itemId\n };\n }\n\n // Update the session context immediately to record navigation intent\n // This ensures we remember the target item even if loading is interrupted\n const navPartId = itemRefEl.closest('qti-test-part')?.identifier;\n const navSectionId = itemRefEl.closest('qti-assessment-section')?.identifier;\n\n // Set loading state and update navigation context first\n this.sessionContext = {\n ...this.sessionContext,\n navPartId,\n navSectionId,\n navItemRefId: itemId,\n navItemLoading: true\n };\n\n // console.log('Navigating to item:', itemId);\n\n // Then attempt to load the item content\n try {\n await this._loadItems([itemId]);\n } finally {\n // Even if loading fails or is interrupted, update loading state\n // This ensures we don't get stuck in a loading state\n this.sessionContext = {\n ...this.sessionContext,\n navItemLoading: false\n };\n }\n }\n\n /**\n * Navigates to a specific section\n */\n private async _navigateToSection(sectionId: string): Promise<void> {\n const sectionRefEl = this._testElement?.querySelector<QtiAssessmentSection>(\n `qti-assessment-section[identifier=\"${sectionId}\"]`\n );\n\n if (!sectionRefEl) {\n throw {\n type: NavigationErrorType.SECTION_NOT_FOUND,\n message: `Section with identifier \"${sectionId}\" not found.`,\n sectionId\n };\n }\n\n // Get navigation context first\n const navPartId = sectionRefEl.closest('qti-test-part')?.identifier;\n\n // Update navigation state before loading items\n this.sessionContext = {\n ...this.sessionContext,\n navPartId,\n navSectionId: sectionId,\n navItemRefId: null,\n navItemLoading: true\n };\n\n // Then attempt to load the section's items\n try {\n const itemIds = this._getSectionItemIds(sectionId);\n await this._loadItems(itemIds);\n } finally {\n // Update loading state even if loading fails or is interrupted\n this.sessionContext = {\n ...this.sessionContext,\n navItemLoading: false\n };\n }\n }\n\n /**\n * Normalize different error types into a consistent NavigationError format\n */\n private _normalizeError(error: any, navigationType: string, id: string): NavigationError {\n // If it's already a NavigationError, return it\n if (error && error.type && Object.values(NavigationErrorType).includes(error.type)) {\n return error as NavigationError;\n }\n\n // For XMLHttpRequest related errors\n if (error instanceof DOMException && error.name === 'AbortError') {\n return {\n type: NavigationErrorType.NETWORK_ERROR,\n message: 'Navigation was cancelled because a new navigation was requested.',\n details: error\n };\n }\n\n // For timeout errors\n if (error.name === 'TimeoutError' || (error.message && error.message.includes('timeout'))) {\n return {\n type: NavigationErrorType.TIMEOUT_ERROR,\n message: 'Request timed out. Please check your network connection.',\n details: error\n };\n }\n\n // For network errors\n if (error instanceof TypeError && error.message.includes('network')) {\n return {\n type: NavigationErrorType.NETWORK_ERROR,\n message: 'A network error occurred. Please check your connection.',\n details: error\n };\n }\n\n // Default to load error for anything else\n return {\n type: NavigationErrorType.LOAD_ERROR,\n message: `Failed to load ${navigationType}: ${id}`,\n details: error,\n itemId: navigationType === 'item' ? id : undefined,\n sectionId: navigationType === 'section' ? id : undefined\n };\n }\n\n /**\n * Dispatch error event to notify the UI\n */\n private _dispatchErrorEvent(error: NavigationError): void {\n this.dispatchEvent(\n new CustomEvent('qti-navigation-error', {\n detail: error,\n bubbles: true,\n composed: true\n })\n );\n }\n\n /**\n * Dispatch status event to indicate loading state\n */\n private _dispatchStatusEvent(status: { loading: boolean; type: string; id: string }): void {\n if (this.showLoadingIndicators) {\n this.dispatchEvent(\n new CustomEvent('qti-navigation-status', {\n detail: status,\n bubbles: true,\n composed: true\n })\n );\n }\n }\n\n /**\n * Cancels all active HTTP requests\n */\n private _cancelActiveRequests(): void {\n if (this._activeRequests.length > 0) {\n console.info(`Cancelling ${this._activeRequests.length} pending requests`);\n this._activeRequests.forEach(request => {\n if (request && request.readyState !== 4) {\n // 4 is DONE\n request.abort();\n }\n });\n this._activeRequests = [];\n }\n }\n\n /**\n * Load items with improved error handling and timeout\n */\n private async _loadItems(\n itemIds: string[]\n ): Promise<{ itemRef: QtiAssessmentItemRef; doc: any; request: XMLHttpRequest }[]> {\n if (!this._testElement || itemIds.length === 0) return;\n\n const itemRefEls = itemIds.map(id =>\n this._testElement!.querySelector<QtiAssessmentItemRef>(`qti-assessment-item-ref[identifier=\"${id}\"]`)\n );\n\n // Check for missing items\n const missingItems = itemRefEls.reduce((missing, el, index) => {\n if (!el) missing.push(itemIds[index]);\n return missing;\n }, [] as string[]);\n\n if (missingItems.length > 0) {\n const error: NavigationError = {\n type: NavigationErrorType.ITEM_NOT_FOUND,\n message: `One or more items not found: ${missingItems.join(', ')}`,\n details: { missingItems }\n };\n throw error;\n }\n\n this._clearLoadedItems();\n // Note: We no longer update navItemLoading here since it's handled in the navigation methods\n\n const itemLoadPromises = itemRefEls.map(async itemRef => {\n if (!itemRef) return null;\n\n // Create a timeout promise\n const timeoutPromise = new Promise((_, reject) => {\n setTimeout(() => {\n reject({\n name: 'TimeoutError',\n message: `Request for item ${itemRef.identifier} timed out after ${this.requestTimeout}ms`\n });\n }, this.requestTimeout);\n });\n\n try {\n const { promise, request } = qtiTransformItem(this.cacheTransform).load(itemRef.href);\n\n // Track the request so it can be cancelled if needed\n if (request instanceof XMLHttpRequest) {\n this._activeRequests.push(request);\n }\n\n // Race the item loading against the timeout\n const apiResult = await Promise.race([promise, timeoutPromise]);\n return {\n itemRef,\n doc: (apiResult as any).htmlDoc(),\n request\n };\n } catch (error) {\n // If this is a cancellation or timeout, don't rethrow\n if (\n (error instanceof DOMException && error.name === 'AbortError') ||\n (error && error.name === 'TimeoutError')\n ) {\n console.log(\n `Request for item ${itemRef.identifier} was ${error.name === 'TimeoutError' ? 'timed out' : 'aborted'}`\n );\n return null;\n }\n\n // For other errors, add item context and rethrow\n error.itemId = itemRef.identifier;\n throw error;\n }\n });\n\n try {\n const results = await Promise.all(itemLoadPromises);\n\n // Filter out any null results (from aborted or timed out requests)\n const validResults = results.filter(result => result !== null);\n\n // Apply loaded docs to item refs\n validResults.forEach(({ itemRef, doc }) => {\n if (itemRef && doc) itemRef.xmlDoc = doc;\n });\n\n // Clear the active requests list after all are complete\n this._activeRequests = [];\n\n // Dispatch test loaded event\n requestAnimationFrame(() => {\n this.dispatchEvent(\n new CustomEvent('qti-test-loaded', {\n detail: validResults.map(({ itemRef }) => ({\n identifier: itemRef?.identifier,\n element: itemRef\n })),\n bubbles: true,\n composed: true\n })\n );\n });\n\n // If no valid results but we had items to load, this is an error\n if (validResults.length === 0 && itemIds.length > 0) {\n throw {\n type: NavigationErrorType.LOAD_ERROR,\n message: 'All item requests failed to load',\n details: { itemIds }\n };\n }\n\n return validResults;\n } catch (error) {\n console.error('Error loading items:', error);\n throw error;\n }\n }\n\n /**\n * Gets all item IDs in a section\n */\n private _getSectionItemIds(navSectionId: string): string[] {\n const sectionRefEl = this._testElement?.querySelector<QtiAssessmentSection>(\n `qti-assessment-section[identifier=\"${navSectionId}\"]`\n );\n\n if (!sectionRefEl) {\n throw {\n type: NavigationErrorType.SECTION_NOT_FOUND,\n message: `Section with identifier \"${navSectionId}\" not found.`,\n sectionId: navSectionId\n };\n }\n\n return Array.from(\n this._testElement!.querySelectorAll<QtiAssessmentItemRef>(\n `qti-assessment-section[identifier=\"${navSectionId}\"] > qti-assessment-item-ref`\n )\n ).map(itemRef => itemRef.identifier);\n }\n\n /**\n * Clears all loaded items\n */\n private _clearLoadedItems(): void {\n const itemRefEls = this._testElement?.querySelectorAll<QtiAssessmentItemRef>(\n `qti-assessment-test qti-assessment-item-ref`\n );\n Array.from(itemRefEls || []).forEach(itemElement => {\n itemElement.xmlDoc = null;\n });\n }\n\n /**\n * Retry the last failed navigation\n */\n public retryNavigation(): void {\n if (this._lastError) {\n const type = this._lastError.itemId ? 'item' : 'section';\n const id = this._lastError.itemId || this._lastError.sectionId;\n\n if (id) {\n this.dispatchEvent(\n new CustomEvent('qti-request-navigation', {\n detail: { type, id },\n bubbles: true,\n composed: true\n })\n );\n }\n } else if (this._targetNavigation) {\n // If we have a target navigation but no error, we can retry that\n this.dispatchEvent(\n new CustomEvent('qti-request-navigation', {\n detail: this._targetNavigation,\n bubbles: true,\n composed: true\n })\n );\n }\n }\n }\n\n return TestNavigationClass as Constructor<TestNavigationInterface> & T;\n};\n","import type { QtiAssessmentItemRef } from '../qti-assessment-test';\nimport type { QtiAssessmentItem } from '../../../qti-components';\nimport type { TestBase } from '../test-base';\n\nexport type View = 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor' | '';\n\ntype Constructor<T = {}> = abstract new (...args: any[]) => T;\n\ndeclare class TestViewInterface {}\n\nexport const TestViewMixin = <T extends Constructor<TestBase>>(superClass: T) => {\n abstract class TestViewClass extends superClass implements TestViewInterface {\n constructor(...args: any[]) {\n super(...args);\n this.sessionContext = { ...this.sessionContext, view: 'candidate' };\n\n this.addEventListener('on-test-switch-view', (e: CustomEvent<View>) => {\n this.sessionContext = { ...this.sessionContext, view: e.detail };\n this._updateElementView();\n });\n this.addEventListener('qti-assessment-test-connected', () => {\n this._updateElementView();\n });\n this.addEventListener('qti-assessment-item-connected', (e: CustomEvent) => {\n this._updateElementView();\n this._setCorrectResponseVisibility(e.detail);\n });\n }\n\n willUpdate(changedProperties: Map<string | number | symbol, unknown>) {\n super.willUpdate(changedProperties);\n if (changedProperties.has('sessionContext')) {\n this._updateElementView();\n }\n }\n\n // Method to handle view updates for elements based on the current context view\n private _updateElementView() {\n if (this._testElement) {\n const viewElements = Array.from(this._testElement.querySelectorAll('[view]'));\n\n viewElements.forEach((element: HTMLElement) => {\n element.classList.toggle('show', element.getAttribute('view') === this.sessionContext.view);\n });\n\n const assessmentItemRef = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this.sessionContext.navItemRefId}\"]`\n );\n const assessmentItem = assessmentItemRef?.assessmentItem;\n\n if (assessmentItem) {\n assessmentItem.showCorrectResponse(this.sessionContext.view === 'scorer');\n }\n }\n }\n\n // Event handler for connected QTI assessment items\n private _setCorrectResponseVisibility(assessmentItem: QtiAssessmentItem): void {\n assessmentItem.showCorrectResponse(this.sessionContext.view === 'scorer');\n }\n }\n\n return TestViewClass as Constructor<TestViewInterface> & T;\n};\n","import { provide } from '@lit/context';\nimport { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { INITIAL_TEST_CONTEXT, testContext } from '../../exports/test.context';\nimport { INITIAL_SESSION_CONTEXT, type SessionContext, sessionContext } from '../../exports/session.context';\n\nimport type { ItemContext } from '../../exports/item.context';\nimport type { TestContext } from '../../exports/test.context';\nimport type { QtiAssessmentItemRef, QtiAssessmentTest } from './qti-assessment-test';\nimport type { QtiAssessmentItem } from '../../qti-components/';\nimport type { OutcomeVariable, VariableDeclaration, VariableValue } from '../../exports/variables';\n\nexport abstract class TestBase extends LitElement {\n @property({ attribute: false, type: Object })\n @provide({ context: testContext })\n public testContext: Readonly<TestContext> = INITIAL_TEST_CONTEXT;\n\n @property({ attribute: false, type: Object })\n @provide({ context: sessionContext })\n public sessionContext: Readonly<SessionContext> = INITIAL_SESSION_CONTEXT;\n\n protected _testElement: QtiAssessmentTest;\n\n updateItemVariables(itemRefID: string, variables: VariableValue<string | string[] | null>[]): void {\n // Update variables in the testContext for the specified itemRefID\n const itemContext = this.testContext.items.find(item => item.identifier === itemRefID);\n if (itemContext) {\n itemContext.variables = itemContext.variables.map(variable => {\n const updatedVariable = variables.find(v => v.identifier === variable.identifier);\n return updatedVariable ? { ...variable, ...updatedVariable } : variable;\n });\n }\n // if the qti-assessment-item-ref has a qti-assessment-item, then update this item as well\n const itemRef = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${itemRefID}\"]`\n );\n if (itemRef && itemRef.assessmentItem) {\n if (itemRef.assessmentItem) {\n itemRef.assessmentItem.variables = variables;\n }\n }\n }\n\n constructor() {\n super();\n\n /**\n * When the test is connected, the items are updated in the test context.\n * An existing context item is updated with the itemRef properties if nessesary.\n */\n this.addEventListener('qti-assessment-test-connected', (e: CustomEvent<QtiAssessmentTest>) => {\n this.testContext = INITIAL_TEST_CONTEXT; // new test, new test context!\n this.sessionContext = INITIAL_SESSION_CONTEXT; // new test, new session context!\n if (this.testContext && this.testContext.items.length > 0) return;\n\n this._testElement = e.detail;\n const items = Array.from(this._testElement.querySelectorAll('qti-assessment-item-ref')).map(itemRef => {\n return {\n href: itemRef.href,\n identifier: itemRef.identifier,\n category: itemRef.category,\n variables: [\n {\n identifier: 'completionStatus',\n value: 'not_attempted',\n type: 'outcome'\n } as OutcomeVariable\n ]\n };\n });\n this.testContext = { ...this.testContext, items };\n });\n\n this.addEventListener('qti-assessment-item-connected', (e: CustomEvent<QtiAssessmentItem>) => {\n const assessmentItem = e.detail as QtiAssessmentItem;\n const assessmentRefId = assessmentItem.closest('qti-assessment-item-ref')?.identifier;\n if (assessmentRefId) {\n assessmentItem.assessmentItemRefId = assessmentRefId;\n }\n this._updateItemInTestContext(e.detail);\n });\n\n this.addEventListener('qti-item-context-updated', (e: CustomEvent<{ itemContext: ItemContext }>) => {\n // const assessmentitem = e.composedPath()[0] as QtiAssessmentItem;\n this._updateItemVariablesInTestContext(e.detail.itemContext.identifier, e.detail.itemContext.variables);\n });\n }\n\n private _updateItemVariablesInTestContext(\n identifier: string,\n variables: readonly VariableDeclaration<string | string[] | null>[]\n ): void {\n // Update the test context with modified variables for the specified item\n this.testContext = {\n ...this.testContext, // Spread existing test context properties\n items: this.testContext.items.map(itemContext => {\n // If the item identifier doesn't match, keep it unchanged\n if (itemContext.identifier !== identifier) {\n return itemContext;\n }\n\n // Update the matching item with new variables\n return {\n ...itemContext, // Keep other properties of the item context\n variables: variables.map(variable => {\n // Find a matching variable in the current item context\n const matchingVariable = itemContext.variables.find(v => v.identifier === variable.identifier);\n\n // Merge matching variable with the new one, or use the new variable if no match\n return matchingVariable ? { ...matchingVariable, ...variable } : variable;\n })\n };\n })\n };\n this.dispatchEvent(\n new CustomEvent('qti-test-context-updated', { detail: this.testContext, bubbles: false, composed: false })\n );\n }\n\n /**\n * Updates the variables of an assessment item in the test context.\n * - Matches the assessment item with the corresponding test context item.\n * - If the item is not found, logs a warning.\n * - Updates variables in the test context if exactly one variable exists.\n * - Otherwise, syncs the assessment item's variables with the test context.\n *\n * @param assessmentItem - The assessment item to update.\n */\n private _updateItemInTestContext = (assessmentItem: QtiAssessmentItem): void => {\n const context = (assessmentItem as any)._context;\n const identifier = context.identifier;\n const fullVariables = context.variables;\n\n // console.log(this._testContext);\n // Find the corresponding item in the test context by identifier\n const itemContext = this.testContext.items.find(i => i?.identifier === identifier);\n\n if (!itemContext) {\n console.warn(`Item IDs between assessment.xml and item.xml should match: ${identifier} is not found!`);\n return;\n }\n\n // Update variables in the test context or sync them to the assessment item\n if (itemContext.variables?.length === 1) {\n // The loaded qti-assessment-item itself has variables which are not in test context yet.\n this._updateItemVariablesInTestContext(identifier, fullVariables);\n } else {\n // Sync the assessment item's variables with the test context\n assessmentItem.variables = [...(itemContext.variables || [])];\n }\n };\n}\n","import type { OutcomeVariable, VariableDeclaration } from '../../../exports/variables';\nimport type { QtiOutcomeProcessing } from '../../../qti-components';\nimport type { TestBase } from '../test-base';\n\ntype Constructor<T = {}> = abstract new (...args: any[]) => T;\n\ndeclare class TestProcessingInterface {\n updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;\n getOutcome(identifier: string): Readonly<OutcomeVariable>;\n getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;\n outcomeProcessing(): boolean;\n}\nexport const TestProcessingMixin = <T extends Constructor<TestBase>>(superClass: T) => {\n abstract class TestProcessingElement extends superClass implements TestProcessingInterface {\n constructor(...args: any[]) {\n super(...args);\n this.addEventListener('qti-register-variable', (e: CustomEvent<{ variable: any }>) => {\n this.testContext = {\n ...this.testContext,\n testOutcomeVariables: [...(this.testContext.testOutcomeVariables || []), e.detail.variable]\n };\n e.stopPropagation();\n });\n // wordt aangeroepen vanuit de processingtemplate\n this.addEventListener(\n 'qti-set-outcome-value',\n (e: CustomEvent<{ outcomeIdentifier: string; value: string | string[] }>) => {\n const { outcomeIdentifier, value } = e.detail;\n this.updateOutcomeVariable(outcomeIdentifier, value);\n e.stopPropagation();\n }\n );\n }\n\n outcomeProcessing(): boolean {\n const outcomeProcessor = this.querySelector('qti-outcome-processing') as unknown as QtiOutcomeProcessing;\n if (!outcomeProcessor) return false;\n outcomeProcessor?.process();\n return true;\n }\n\n /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */\n\n public updateOutcomeVariable(identifier: string, value: string | string[] | undefined) {\n const outcomeVariable = this.getOutcome(identifier);\n if (!outcomeVariable) {\n console.warn(`Can not set qti-outcome-identifier: ${identifier}, it is not available`);\n return;\n }\n this.testContext = {\n ...this.testContext,\n testOutcomeVariables: this.testContext.testOutcomeVariables?.map(v => {\n if (v.identifier !== identifier) {\n return v;\n }\n return {\n ...v,\n value: outcomeVariable.cardinality === 'single' ? value : [...v.value, value as string]\n };\n })\n };\n }\n\n public getOutcome(identifier: string): Readonly<OutcomeVariable> {\n return this.getVariable(identifier) as OutcomeVariable;\n }\n public getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>> {\n return this.testContext.testOutcomeVariables?.find(v => v.identifier === identifier) || null;\n }\n /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */\n }\n\n return TestProcessingElement as Constructor<TestProcessingInterface> & T;\n};\n","import { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prepareTemplate } from '@heximal/templates';\n\nimport type { TemplateFunction } from '@heximal/templates';\nimport type { QtiAssessmentItem } from '../../../qti-components';\n\n// Converter function to interpret \"true\" and \"false\" as booleans\nconst stringToBooleanConverter = {\n fromAttribute(value: string): boolean {\n return value === 'true';\n },\n toAttribute(value: boolean): string {\n return value ? 'true' : 'false';\n }\n};\n\n// @customElement('qti-assessment-item-ref')\nexport class QtiAssessmentItemRef extends LitElement {\n @property({ type: String }) category?: string;\n @property({ type: String }) identifier?: string;\n @property({ type: Boolean, converter: stringToBooleanConverter }) required?: boolean;\n @property({ type: Boolean, converter: stringToBooleanConverter }) fixed?: boolean;\n @property({ type: String }) href?: string;\n\n // @consume({ context: computedContext, subscribe: true })\n // private computedContext: ComputedContext;\n\n weigths: Map<string, number> = new Map();\n\n @property({ type: Object, attribute: false })\n xmlDoc!: DocumentFragment; // the XMLDocument\n\n protected createRenderRoot(): HTMLElement | DocumentFragment {\n return this;\n }\n\n get assessmentItem(): QtiAssessmentItem | null {\n return this.renderRoot?.querySelector('qti-assessment-item');\n }\n\n myTemplate: TemplateFunction;\n\n async connectedCallback(): Promise<void> {\n // debugger;\n super.connectedCallback();\n\n /*\n searches for the template element to use in the qti-test component\n can be used to render extra things for an item, like a bookmark, index nummer\n put this in your test-container component\n <template item-ref>\n <div>Extra content</div>\n </template>\n */\n const templateElement = ((this.getRootNode() as any).host as HTMLElement)\n .closest('qti-test')\n .querySelector<HTMLTemplateElement>('template[item-ref]');\n\n if (templateElement) this.myTemplate = prepareTemplate(templateElement);\n\n await this.updateComplete;\n\n this.dispatchEvent(\n new CustomEvent('qti-assessment-item-ref-connected', {\n bubbles: true,\n composed: true,\n detail: { identifier: this.identifier, href: this.href, category: this.category }\n })\n );\n }\n\n render() {\n return this.myTemplate ? this.myTemplate({ xmlDoc: this.xmlDoc }) : this.xmlDoc;\n }\n}\n\nif (!customElements.get('qti-assessment-item-ref')) {\n customElements.define('qti-assessment-item-ref', QtiAssessmentItemRef);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-assessment-item-ref': QtiAssessmentItemRef;\n }\n}\n","import { consume } from '@lit/context';\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { testContext } from '../../../exports/test.context';\n\nimport type { TestContext } from '../../../exports/test.context';\n\n// https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#Root_AssessmentSection\n\nconst stringToBooleanConverter = {\n fromAttribute(value: string): boolean {\n return value === 'true';\n },\n toAttribute(value: boolean): string {\n return value ? 'true' : 'false';\n }\n};\n\nexport class QtiAssessmentSection extends LitElement {\n @property({ type: String }) identifier: string;\n @property({ type: String }) required: string;\n @property({ type: Boolean, converter: stringToBooleanConverter }) fixed: boolean;\n\n get title(): string {\n return this._title;\n }\n set title(value: string) {\n this._title = value;\n this.removeAttribute('title');\n this.setAttribute('data-title', value);\n }\n @property({ type: Boolean, converter: stringToBooleanConverter }) visible: boolean;\n @property({ type: Boolean, converter: stringToBooleanConverter, attribute: 'keep-together' }) keepTogether: boolean;\n\n @consume({ context: testContext, subscribe: true })\n public _testContext?: TestContext;\n\n private _title = '';\n\n async connectedCallback(): Promise<void> {\n this._title = this.getAttribute('title') || '';\n super.connectedCallback();\n await this.updateComplete;\n this.dispatchEvent(\n new Event('qti-assessment-section-connected', {\n bubbles: true,\n composed: true\n })\n );\n }\n\n render() {\n return html`<slot name=\"qti-rubric-block\"></slot><slot></slot>`;\n }\n}\n\nif (!customElements.get('qti-assessment-section')) {\n customElements.define('qti-assessment-section', QtiAssessmentSection);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-assessment-section': QtiAssessmentSection;\n }\n}\n","import { consume } from '@lit/context';\nimport { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { testContext } from '../../../exports/test.context';\n\nimport type { TestContext } from '../../../exports/test.context';\n\n@customElement('qti-assessment-test')\nexport class QtiAssessmentTest extends LitElement {\n @property({ type: String }) identifier: string;\n @property({ type: String })\n get title(): string {\n return this._title;\n }\n set title(value: string) {\n this._title = value;\n this.removeAttribute('title');\n this.setAttribute('data-title', value);\n }\n\n @consume({ context: testContext, subscribe: true })\n public _testContext?: TestContext;\n private _title = '';\n\n async connectedCallback(): Promise<void> {\n super.connectedCallback();\n await this.updateComplete;\n this.dispatchEvent(\n new CustomEvent('qti-assessment-test-connected', {\n detail: this,\n bubbles: true,\n composed: true\n })\n );\n }\n\n render() {\n return html` <slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-assessment-test': QtiAssessmentTest;\n }\n}\n","import { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n@customElement('qti-test-part')\nexport class QtiTestPart extends LitElement {\n @property({ type: String }) identifier: string = '';\n get title(): string {\n return this._title;\n }\n set title(value: string) {\n this._title = value;\n this.removeAttribute('title');\n this.setAttribute('data-title', value);\n }\n @property({ type: String }) class: string = '';\n\n @property({ type: String, attribute: 'navigation-mode' })\n navigationMode: 'linear' | 'nonlinear' = 'nonlinear';\n\n @property({ type: String, attribute: 'submission-mode' })\n submissionMode: 'individual' | 'simultaneous' = 'individual';\n\n private _title = '';\n\n async connectedCallback(): Promise<void> {\n super.connectedCallback();\n await this.updateComplete;\n this.dispatchEvent(\n new Event('qti-test-part-connected', {\n bubbles: true,\n composed: true\n })\n );\n }\n\n render() {\n return html` <slot></slot>`;\n }\n}\n\nif (!customElements.get('qti-test-part')) {\n customElements.define('qti-test-part', QtiTestPart);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-test-part': QtiTestPart;\n }\n}\n","import { customElement } from 'lit/decorators.js';\nimport { css, html } from 'lit';\n\nimport { QtiModalFeedback } from '../../../qti-components';\n\n@customElement('qti-test-feedback')\nexport class QtiTestFeedback extends QtiModalFeedback {\n static styles = css`\n :host {\n color: gray;\n }\n `;\n override render() {\n return html``;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-test-feedback': QtiTestFeedback;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,qBAAqB;;;ACD9B,SAAS,gBAAgB;AAUzB,IAAK,sBAAL,kBAAKA,yBAAL;AACE,EAAAA,qBAAA,oBAAiB;AACjB,EAAAA,qBAAA,uBAAoB;AACpB,EAAAA,qBAAA,gBAAa;AACb,EAAAA,qBAAA,mBAAgB;AAChB,EAAAA,qBAAA,mBAAgB;AALb,SAAAA;AAAA,GAAA;AAiBE,IAAM,sBAAsB,CAAkC,eAAkB;AAAA,EACrF,MAAe,4BAA4B,WAA8C;AAAA,IAavF,eAAe,MAAa;AAC1B,YAAM,GAAG,IAAI;AAba,sBAAsC;AACP,4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,gBAAgB,OAAO;AAC5B,SAAK,aAAa,cAAc,KAAK;AAAA,EACvC;AAAA,EAWA,MAAM,oBAAmC;AACvC,UAAM,kBAAkB;AACxB,UAAM,KAAK;AACX,SAAK;AAAA,MACH,IAAI,MAAM,2BAA2B;AAAA,QACnC,SAAS;AAAA,QACT,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAOC;AAAA,EACT;AACF;AAjC8B;AAAA,EAA3BC,UAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GADf,YACiB;AASA;AAAA,EAA3BA,UAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAVf,YAUiB;AAG5B;AAAA,EADCA,UAAS,EAAE,MAAM,QAAQ,WAAW,kBAAkB,CAAC;AAAA,GAZ7C,YAaX;AAGA;AAAA,EADCA,UAAS,EAAE,MAAM,QAAQ,WAAW,kBAAkB,CAAC;AAAA,GAf7C,YAgBX;AAhBW,cAAN;AAAA,EADNC,eAAc,eAAe;AAAA,GACjB;AAoCb,IAAI,CAAC,eAAe,IAAI,eAAe,GAAG;AACxC,iBAAe,OAAO,iBAAiB,WAAW;AACpD;;;ACzCA,SAAS,iBAAAC,sBAAqB;AAC9B,SAAS,KAAK,QAAAC,aAAY;AAKnB,IAAM,kBAAN,cAA8B,iBAAiB;AAAA,EAM3C,SAAS;AAChB,WAAOC;AAAA,EACT;AACF;AATa,gBACJ,SAAS;AAAA;AAAA;AAAA;AAAA;AADL,kBAAN;AAAA,EADNC,eAAc,mBAAmB;AAAA,GACrB;","names":["NavigationErrorType","property","property","LitElement","property","LitElement","property","html","LitElement","property","stringToBooleanConverter","LitElement","html","property","consume","html","LitElement","customElement","property","LitElement","html","property","consume","customElement","html","LitElement","customElement","property","LitElement","html","property","customElement","customElement","html","html","customElement"]}
@@ -1,8 +1,9 @@
1
- import { a8 as VariableDeclaration } from '../qti-response-declaration-xVcD4HvN.js';
1
+ import { a7 as VariableDeclaration } from '../qti-response-declaration-Dz6D30cF.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
  import './expression-result.js';
5
5
  import './interaction.interface.js';
6
+ import './config.context.js';
6
7
  import 'lit-html/directives/ref.js';
7
8
  import './qti.context.js';
8
9
 
@@ -1,10 +1,11 @@
1
- import { V as View } from '../qti-test-feedback-B1kTnqnI.js';
1
+ import { V as View } from '../qti-test-feedback-dSr4W5Ft.js';
2
2
  import { ComputedItemContext } from './computed-item.context.js';
3
- import '../qti-response-declaration-xVcD4HvN.js';
3
+ import '../qti-response-declaration-Dz6D30cF.js';
4
4
  import 'lit-html';
5
5
  import 'lit';
6
6
  import './expression-result.js';
7
7
  import './interaction.interface.js';
8
+ import './config.context.js';
8
9
  import 'lit-html/directives/ref.js';
9
10
  import './qti.context.js';
10
11
  import '@heximal/templates';
@@ -4,6 +4,7 @@ interface ConfigContext {
4
4
  reportValidityAfterScoring?: boolean;
5
5
  disableAfterIfMaxChoicesReached?: boolean;
6
6
  correctResponseMode?: CorrectResponseMode;
7
+ inlineChoicePrompt?: string;
7
8
  }
8
9
  declare const configContext: {
9
10
  __context__: Readonly<ConfigContext>;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  configContext
3
- } from "../chunks/chunk-NRKCQIQS.js";
3
+ } from "../chunks/chunk-ERYHQVOT.js";
4
4
  import "../chunks/chunk-H2JE6IVU.js";
5
5
  export {
6
6
  configContext
@@ -1,5 +1,6 @@
1
1
  import 'lit';
2
- export { ac as Interaction } from '../qti-response-declaration-xVcD4HvN.js';
2
+ import './config.context.js';
3
+ export { ad as Correctness, a9 as Interaction } from '../qti-response-declaration-Dz6D30cF.js';
3
4
  import './interaction.interface.js';
4
5
  import 'lit-html';
5
6
  import './expression-result.js';
@@ -1,9 +1,12 @@
1
1
  import {
2
+ Correctness,
2
3
  Interaction
3
- } from "../chunks/chunk-KJQYKXDV.js";
4
- import "../chunks/chunk-NRKCQIQS.js";
4
+ } from "../chunks/chunk-HFAUM56X.js";
5
+ import "../chunks/chunk-NJNQOQUU.js";
6
+ import "../chunks/chunk-ERYHQVOT.js";
5
7
  import "../chunks/chunk-H2JE6IVU.js";
6
8
  export {
9
+ Correctness,
7
10
  Interaction
8
11
  };
9
12
  //# sourceMappingURL=interaction.js.map
@@ -1,7 +1,8 @@
1
- export { a4 as ItemContext, ad as itemContextVariables } from '../qti-response-declaration-xVcD4HvN.js';
1
+ export { a3 as ItemContext, ae as itemContextVariables } from '../qti-response-declaration-Dz6D30cF.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
  import './expression-result.js';
5
5
  import './interaction.interface.js';
6
+ import './config.context.js';
6
7
  import 'lit-html/directives/ref.js';
7
8
  import './qti.context.js';
@@ -1,8 +1,9 @@
1
- import { a4 as ItemContext } from '../qti-response-declaration-xVcD4HvN.js';
1
+ import { a3 as ItemContext } from '../qti-response-declaration-Dz6D30cF.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
  import './expression-result.js';
5
5
  import './interaction.interface.js';
6
+ import './config.context.js';
6
7
  import 'lit-html/directives/ref.js';
7
8
  import './qti.context.js';
8
9
 
@@ -1,8 +1,9 @@
1
- import { a5 as QtiExpression } from '../qti-response-declaration-xVcD4HvN.js';
1
+ import { a4 as QtiExpression } from '../qti-response-declaration-Dz6D30cF.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
  import './expression-result.js';
5
5
  import './interaction.interface.js';
6
+ import './config.context.js';
6
7
  import 'lit-html/directives/ref.js';
7
8
  import './qti.context.js';
8
9
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  QtiConditionExpression
3
- } from "../chunks/chunk-DPJNXSTI.js";
4
- import "../chunks/chunk-GFCOR6TX.js";
5
- import "../chunks/chunk-NJNQOQUU.js";
3
+ } from "../chunks/chunk-FL72PF4D.js";
4
+ import "../chunks/chunk-QCB6P7DH.js";
6
5
  import "../chunks/chunk-H6KHXSIO.js";
6
+ import "../chunks/chunk-NJNQOQUU.js";
7
7
  import "../chunks/chunk-H2JE6IVU.js";
8
8
  export {
9
9
  QtiConditionExpression
@@ -1,7 +1,8 @@
1
1
  import 'lit-html';
2
2
  import 'lit';
3
3
  import './qti.context.js';
4
- export { a5 as QtiExpression, a9 as QtiExpressionBase } from '../qti-response-declaration-xVcD4HvN.js';
4
+ export { a4 as QtiExpression, aa as QtiExpressionBase } from '../qti-response-declaration-Dz6D30cF.js';
5
5
  import './expression-result.js';
6
6
  import './interaction.interface.js';
7
+ import './config.context.js';
7
8
  import 'lit-html/directives/ref.js';
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  QtiExpression
3
- } from "../chunks/chunk-GFCOR6TX.js";
4
- import "../chunks/chunk-NJNQOQUU.js";
3
+ } from "../chunks/chunk-QCB6P7DH.js";
5
4
  import "../chunks/chunk-H6KHXSIO.js";
5
+ import "../chunks/chunk-NJNQOQUU.js";
6
6
  import "../chunks/chunk-H2JE6IVU.js";
7
7
  export {
8
8
  QtiExpression
@@ -1,12 +1,13 @@
1
1
  import { LitElement } from 'lit';
2
2
  import { TestContext } from './test.context.js';
3
3
  import { SessionContext } from './session.context.js';
4
- import { a6 as VariableValue, a7 as OutcomeVariable, a8 as VariableDeclaration } from '../qti-response-declaration-xVcD4HvN.js';
5
- import '../qti-test-feedback-B1kTnqnI.js';
4
+ import { a5 as VariableValue, a6 as OutcomeVariable, a7 as VariableDeclaration } from '../qti-response-declaration-Dz6D30cF.js';
5
+ import '../qti-test-feedback-dSr4W5Ft.js';
6
6
  import '@heximal/templates';
7
7
  import 'lit-html';
8
8
  import './expression-result.js';
9
9
  import './interaction.interface.js';
10
+ import './config.context.js';
10
11
  import 'lit-html/directives/ref.js';
11
12
  import './qti.context.js';
12
13
 
@@ -1,9 +1,10 @@
1
- import { V as View } from '../qti-test-feedback-B1kTnqnI.js';
2
- import '../qti-response-declaration-xVcD4HvN.js';
1
+ import { V as View } from '../qti-test-feedback-dSr4W5Ft.js';
2
+ import '../qti-response-declaration-Dz6D30cF.js';
3
3
  import 'lit-html';
4
4
  import 'lit';
5
5
  import './expression-result.js';
6
6
  import './interaction.interface.js';
7
+ import './config.context.js';
7
8
  import 'lit-html/directives/ref.js';
8
9
  import './qti.context.js';
9
10
  import '@heximal/templates';
@@ -1,8 +1,9 @@
1
- import { a4 as ItemContext, a8 as VariableDeclaration } from '../qti-response-declaration-xVcD4HvN.js';
1
+ import { a3 as ItemContext, a7 as VariableDeclaration } from '../qti-response-declaration-Dz6D30cF.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
  import './expression-result.js';
5
5
  import './interaction.interface.js';
6
+ import './config.context.js';
6
7
  import 'lit-html/directives/ref.js';
7
8
  import './qti.context.js';
8
9
 
@@ -1,7 +1,8 @@
1
- export { a7 as OutcomeVariable, aa as ResponseVariable, ab as TemplateVariable, a8 as VariableDeclaration, a6 as VariableValue } from '../qti-response-declaration-xVcD4HvN.js';
1
+ export { a6 as OutcomeVariable, ab as ResponseVariable, ac as TemplateVariable, a7 as VariableDeclaration, a5 as VariableValue } from '../qti-response-declaration-Dz6D30cF.js';
2
2
  import './expression-result.js';
3
3
  import 'lit-html';
4
4
  import 'lit';
5
5
  import './interaction.interface.js';
6
+ import './config.context.js';
6
7
  import 'lit-html/directives/ref.js';
7
8
  import './qti.context.js';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { O as Orientation, V as QtiAreaMapEntry, U as QtiAreaMapping, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, $ as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, w as QtiHottext, v as QtiHottextInteraction, y as QtiInlineChoice, x as QtiInlineChoiceInteraction, K as QtiItemBody, R as QtiLookupOutcomeValue, T as QtiMapEntry, S as QtiMapping, z as QtiMatchInteraction, A as QtiMediaInteraction, f as QtiModalFeedback, B as QtiOrderInteraction, a2 as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, M as QtiOutcomeProcessingProcessor, C as QtiPortableCustomInteraction, D as QtiPositionObjectStage, N as QtiPrompt, a3 as QtiResponseDeclaration, P as QtiResponseProcessing, a0 as QtiRubricBlock, Z as QtiRule, _ as QtiRuleBase, E as QtiSelectPointInteraction, F as QtiSimpleAssociableChoice, G as QtiSimpleChoice, H as QtiSliderInteraction, a1 as QtiStylesheet, X as QtiSubtract, I as QtiTextEntryInteraction, J as QtiUploadInteraction, W as areaShape, Y as qtiSubtractMixin } from './qti-response-declaration-xVcD4HvN.js';
2
- export { QtiAnd, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, qtiAndMixin } from './qti-components/index.js';
1
+ export { O as Orientation, U as QtiAreaMapEntry, T as QtiAreaMapping, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, _ as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, v as QtiHottext, x as QtiInlineChoice, w as QtiInlineChoiceInteraction, J as QtiItemBody, P as QtiLookupOutcomeValue, S as QtiMapEntry, R as QtiMapping, y as QtiMatchInteraction, z as QtiMediaInteraction, f as QtiModalFeedback, A as QtiOrderInteraction, a1 as QtiOutcomeDeclaration, K as QtiOutcomeProcessing, L as QtiOutcomeProcessingProcessor, B as QtiPortableCustomInteraction, C as QtiPositionObjectStage, M as QtiPrompt, a2 as QtiResponseDeclaration, N as QtiResponseProcessing, $ as QtiRubricBlock, Y as QtiRule, Z as QtiRuleBase, D as QtiSelectPointInteraction, E as QtiSimpleAssociableChoice, F as QtiSimpleChoice, G as QtiSliderInteraction, a0 as QtiStylesheet, W as QtiSubtract, H as QtiTextEntryInteraction, I as QtiUploadInteraction, V as areaShape, X as qtiSubtractMixin } from './qti-response-declaration-Dz6D30cF.js';
2
+ export { QtiAnd, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiHottextInteraction, QtiIndex, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, qtiAndMixin } from './qti-components/index.js';
3
3
  export { QtiTest } from './qti-test/core/index.js';
4
- export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, d as QtiTestFeedback, c as QtiTestPart } from './qti-test-feedback-B1kTnqnI.js';
4
+ export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, d as QtiTestFeedback, c as QtiTestPart } from './qti-test-feedback-dSr4W5Ft.js';
5
5
  export { INITIAL_TEST_CONTEXT, TestContext, testContext } from './exports/test.context.js';
6
6
  export { TestNavigation } from './qti-test/components/test-navigation.js';
7
7
  export { TestNext } from './qti-test/components/test-next.js';
@@ -31,6 +31,7 @@ import 'lit-html';
31
31
  import 'lit';
32
32
  import './exports/expression-result.js';
33
33
  import './exports/interaction.interface.js';
34
+ import './exports/config.context.js';
34
35
  import 'lit-html/directives/ref.js';
35
36
  import './exports/qti.context.js';
36
37
  import './exports/qti-condition-expression.js';
@@ -39,5 +40,4 @@ import './exports/qti-test.js';
39
40
  import '@heximal/templates';
40
41
  import './exports/computed.context.js';
41
42
  import './exports/computed-item.context.js';
42
- import './exports/config.context.js';
43
43
  import 'storybook/internal/types';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  QtiItem
3
- } from "./chunks/chunk-HYMSLOZ7.js";
3
+ } from "./chunks/chunk-WN6TJQI2.js";
4
4
  import {
5
5
  QtiAssessmentItemRef,
6
6
  QtiAssessmentSection,
@@ -8,7 +8,7 @@ import {
8
8
  QtiTest,
9
9
  QtiTestFeedback,
10
10
  QtiTestPart
11
- } from "./chunks/chunk-DDSFGYAK.js";
11
+ } from "./chunks/chunk-XM2JOPVU.js";
12
12
  import "./chunks/chunk-ZGSNDSK3.js";
13
13
  import {
14
14
  TestScoringFeedback
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunks/chunk-YPMZLHGG.js";
37
37
  import {
38
38
  TestNavigation
39
- } from "./chunks/chunk-MI7IF36Z.js";
39
+ } from "./chunks/chunk-QU7KR7VX.js";
40
40
  import {
41
41
  TestNext
42
42
  } from "./chunks/chunk-7K44TDQO.js";
@@ -60,7 +60,7 @@ import {
60
60
  } from "./chunks/chunk-7OMJMXHK.js";
61
61
  import {
62
62
  TestContainer
63
- } from "./chunks/chunk-HEP5QRPW.js";
63
+ } from "./chunks/chunk-P2PRB5IZ.js";
64
64
  import {
65
65
  TestEndAttempt
66
66
  } from "./chunks/chunk-5KCXO2RP.js";
@@ -163,7 +163,7 @@ import {
163
163
  QtiVariable,
164
164
  qtiAndMixin,
165
165
  qtiSubtractMixin
166
- } from "./chunks/chunk-SRJF5RCP.js";
166
+ } from "./chunks/chunk-4PG2PZHY.js";
167
167
  import "./chunks/chunk-YWEWSQJR.js";
168
168
  import {
169
169
  getItemByUri,
@@ -171,8 +171,8 @@ import {
171
171
  } from "./chunks/chunk-E6V3JHVT.js";
172
172
  import {
173
173
  ItemContainer
174
- } from "./chunks/chunk-565QP4OA.js";
175
- import "./chunks/chunk-7XIK3UQX.js";
174
+ } from "./chunks/chunk-65YQSKWV.js";
175
+ import "./chunks/chunk-3LX4O663.js";
176
176
  import "./chunks/chunk-ELDMXTUQ.js";
177
177
  import {
178
178
  qtiTransformItem,
@@ -186,9 +186,8 @@ import "./chunks/chunk-DZAMXOSC.js";
186
186
  import {
187
187
  PrintItemVariables
188
188
  } from "./chunks/chunk-EJZQSOHU.js";
189
- import "./chunks/chunk-DPJNXSTI.js";
190
- import "./chunks/chunk-GFCOR6TX.js";
191
- import "./chunks/chunk-NJNQOQUU.js";
189
+ import "./chunks/chunk-FL72PF4D.js";
190
+ import "./chunks/chunk-QCB6P7DH.js";
192
191
  import "./chunks/chunk-H6KHXSIO.js";
193
192
  import "./chunks/chunk-22IRJWWY.js";
194
193
  import {
@@ -197,8 +196,9 @@ import {
197
196
  } from "./chunks/chunk-CJADUWEC.js";
198
197
  import "./chunks/chunk-4OGJBG35.js";
199
198
  import "./chunks/chunk-AZIKAG7K.js";
200
- import "./chunks/chunk-KJQYKXDV.js";
201
- import "./chunks/chunk-NRKCQIQS.js";
199
+ import "./chunks/chunk-HFAUM56X.js";
200
+ import "./chunks/chunk-NJNQOQUU.js";
201
+ import "./chunks/chunk-ERYHQVOT.js";
202
202
  import "./chunks/chunk-JQ6HWGRY.js";
203
203
  import "./chunks/chunk-H2JE6IVU.js";
204
204
  export {
package/dist/item.css CHANGED
@@ -10,6 +10,10 @@
10
10
  --qti-correct-light: #c8e6c9;
11
11
  --qti-correct: #66bb6a;
12
12
 
13
+ /** Partially correct colors */
14
+ --qti-partially-correct-light: #fff3e0;
15
+ --qti-partially-correct: #ffeb3b;
16
+
13
17
  /* Incorrect colors */
14
18
  --qti-incorrect-light: #ef9a9a;
15
19
  --qti-incorrect: #ef5350;
@@ -59,6 +63,9 @@
59
63
  /* Generic padding for all elements */
60
64
  --qti-padding-vertical: 0.5rem; /* py-2 */
61
65
  --qti-padding-horizontal: 0.5rem; /* px-2 */
66
+
67
+ /* Dropzones */
68
+ --qti-dropzone-padding: 0rem;
62
69
  }
63
70
 
64
71
  /* SVG masks and backgrounds */
@@ -86,8 +93,8 @@
86
93
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
87
94
  }
88
95
 
89
- /*
90
- Following are classes that can be applied to elements and element states, so they are not used directly
96
+ /*
97
+ Following are classes that can be applied to elements and element states, so they are not used directly
91
98
  The @apply directive is used to apply these classes to elements
92
99
  */
93
100
 
@@ -2253,6 +2260,24 @@ qti-response-declaration {
2253
2260
  }
2254
2261
 
2255
2262
  qti-text-entry-interaction {
2263
+ &:state(candidate-correct) {
2264
+ &::part(input) {
2265
+ background-color: var(--qti-correct);
2266
+ }
2267
+ }
2268
+
2269
+ &:state(candidate-partially-correct) {
2270
+ &::part(input) {
2271
+ background-color: var(--qti-partially-correct);
2272
+ }
2273
+ }
2274
+
2275
+ &:state(candidate-incorrect) {
2276
+ &::part(input) {
2277
+ background-color: var(--qti-incorrect);
2278
+ }
2279
+ }
2280
+
2256
2281
  &::part(input) {
2257
2282
  border-radius: 0;
2258
2283
  cursor: text;
@@ -2743,6 +2768,14 @@ qti-response-declaration {
2743
2768
  }
2744
2769
 
2745
2770
  qti-inline-choice-interaction {
2771
+ &:state(candidate-correct) {
2772
+ background-color: var(--qti-correct);
2773
+ }
2774
+
2775
+ &:state(candidate-incorrect) {
2776
+ background-color: var(--qti-incorrect);
2777
+ }
2778
+
2746
2779
  &::part(select) {
2747
2780
 
2748
2781
  &:hover {
@@ -3008,6 +3041,7 @@ qti-response-declaration {
3008
3041
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3009
3042
  }
3010
3043
 
3044
+ padding: var(--qti-dropzone-padding);
3011
3045
  margin-top: 0.5rem;
3012
3046
  gap: 0.5rem;
3013
3047
  display: flex;
@@ -3028,6 +3062,14 @@ qti-response-declaration {
3028
3062
 
3029
3063
  & > qti-simple-associable-choice {
3030
3064
 
3065
+ &:state(candidate-correct) {
3066
+ background-color: var(--qti-correct);
3067
+ }
3068
+
3069
+ &:state(candidate-incorrect) {
3070
+ background-color: var(--qti-incorrect);
3071
+ }
3072
+
3031
3073
  &::part(dropslot) {
3032
3074
  display: none;
3033
3075
  }
@@ -3573,6 +3615,15 @@ qti-response-declaration {
3573
3615
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3574
3616
 
3575
3617
  outline: none;
3618
+
3619
+ }
3620
+
3621
+ &::part(correct) {
3622
+ background-color: var(--qti-correct);
3623
+ }
3624
+
3625
+ &::part(incorrect) {
3626
+ background-color: var(--qti-incorrect);
3576
3627
  }
3577
3628
  }
3578
3629
 
@@ -3612,10 +3663,19 @@ qti-math-interaction::part(message) {
3612
3663
  }
3613
3664
 
3614
3665
  div.full-correct-response {
3615
- display: flex;
3616
- margin-top: 0.5rem;
3617
- gap: 0.5rem;
3618
- padding: 0.5rem;
3619
3666
  border: 1px solid #39a7c0;
3620
3667
  background-color: #d9e8ee;
3621
3668
  }
3669
+
3670
+ div.full-correct-response-block {
3671
+ display: block;
3672
+ margin-top: var(--qti-padding-vertical);
3673
+ padding: 0.5rem;
3674
+ }
3675
+
3676
+ div.full-correct-response-inline {
3677
+ display: inline-block;
3678
+ margin-left: var(--qti-padding-horizontal);
3679
+ margin-right: var(--qti-padding-horizontal);
3680
+ padding: 0.2rem;
3681
+ }
@@ -1,15 +1,26 @@
1
- import { Z as QtiRule, _ as QtiRuleBase, a9 as QtiExpressionBase, a5 as QtiExpression, a4 as ItemContext, aa as ResponseVariable, a8 as VariableDeclaration } from '../qti-response-declaration-xVcD4HvN.js';
2
- export { O as Orientation, V as QtiAreaMapEntry, U as QtiAreaMapping, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, $ as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, w as QtiHottext, v as QtiHottextInteraction, y as QtiInlineChoice, x as QtiInlineChoiceInteraction, K as QtiItemBody, R as QtiLookupOutcomeValue, T as QtiMapEntry, S as QtiMapping, z as QtiMatchInteraction, A as QtiMediaInteraction, f as QtiModalFeedback, B as QtiOrderInteraction, a2 as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, M as QtiOutcomeProcessingProcessor, C as QtiPortableCustomInteraction, D as QtiPositionObjectStage, N as QtiPrompt, a3 as QtiResponseDeclaration, P as QtiResponseProcessing, a0 as QtiRubricBlock, E as QtiSelectPointInteraction, F as QtiSimpleAssociableChoice, G as QtiSimpleChoice, H as QtiSliderInteraction, a1 as QtiStylesheet, X as QtiSubtract, I as QtiTextEntryInteraction, J as QtiUploadInteraction, W as areaShape, Y as qtiSubtractMixin } from '../qti-response-declaration-xVcD4HvN.js';
3
- import * as lit from 'lit';
4
- import { LitElement, nothing } from 'lit';
1
+ import { a8 as ChoicesInterface, a9 as Interaction, Y as QtiRule, Z as QtiRuleBase, aa as QtiExpressionBase, a4 as QtiExpression, a3 as ItemContext, ab as ResponseVariable, a7 as VariableDeclaration } from '../qti-response-declaration-Dz6D30cF.js';
2
+ export { O as Orientation, U as QtiAreaMapEntry, T as QtiAreaMapping, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, _ as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, v as QtiHottext, x as QtiInlineChoice, w as QtiInlineChoiceInteraction, J as QtiItemBody, P as QtiLookupOutcomeValue, S as QtiMapEntry, R as QtiMapping, y as QtiMatchInteraction, z as QtiMediaInteraction, f as QtiModalFeedback, A as QtiOrderInteraction, a1 as QtiOutcomeDeclaration, K as QtiOutcomeProcessing, L as QtiOutcomeProcessingProcessor, B as QtiPortableCustomInteraction, C as QtiPositionObjectStage, M as QtiPrompt, a2 as QtiResponseDeclaration, N as QtiResponseProcessing, $ as QtiRubricBlock, D as QtiSelectPointInteraction, E as QtiSimpleAssociableChoice, F as QtiSimpleChoice, G as QtiSliderInteraction, a0 as QtiStylesheet, W as QtiSubtract, H as QtiTextEntryInteraction, I as QtiUploadInteraction, V as areaShape, X as qtiSubtractMixin } from '../qti-response-declaration-Dz6D30cF.js';
5
3
  import * as lit_html from 'lit-html';
4
+ import * as lit from 'lit';
5
+ import { PropertyValues, LitElement, nothing } from 'lit';
6
6
  import { QtiConditionExpression } from '../exports/qti-condition-expression.js';
7
7
  import { BaseType } from '../exports/expression-result.js';
8
8
  import { TestContext } from '../exports/test.context.js';
9
9
  import '../exports/interaction.interface.js';
10
+ import '../exports/config.context.js';
10
11
  import 'lit-html/directives/ref.js';
11
12
  import '../exports/qti.context.js';
12
13
 
14
+ declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
15
+ declare class QtiHottextInteraction extends QtiHottextInteraction_base {
16
+ class: string;
17
+ private get classObject();
18
+ render: () => lit_html.TemplateResult<1>;
19
+ connectedCallback(): void;
20
+ updated(_changedProperties: PropertyValues): void;
21
+ private updateHostClasses;
22
+ }
23
+
13
24
  declare class QtiPositionObjectInteraction extends LitElement {
14
25
  render(): lit_html.TemplateResult<1>;
15
26
  static styles: lit.CSSResult[];
@@ -348,4 +359,4 @@ declare class QtiIndex extends QtiExpression<any> {
348
359
  private lookupVariableValue;
349
360
  }
350
361
 
351
- export { QtiAnd, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiRule, QtiRuleBase, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, qtiAndMixin };
362
+ export { QtiAnd, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiHottextInteraction, QtiIndex, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiRule, QtiRuleBase, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, qtiAndMixin };