@citolab/qti-components 7.0.3 → 7.0.5

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 (283) hide show
  1. package/cdn/chunks/chunk-4UJBK6JO.js +1 -0
  2. package/cdn/chunks/chunk-5FCXUJAG.js +23 -0
  3. package/cdn/chunks/chunk-5O3Z7TDV.js +1 -0
  4. package/cdn/chunks/chunk-65LFT33L.js +8 -0
  5. package/cdn/chunks/chunk-6D25UFJR.js +8 -0
  6. package/cdn/chunks/chunk-6DMSHH5X.js +0 -0
  7. package/cdn/chunks/chunk-6UGPNL7M.js +1 -0
  8. package/cdn/chunks/chunk-CFXQCNG6.js +3523 -0
  9. package/cdn/chunks/chunk-CSUKVUZF.js +3 -0
  10. package/cdn/chunks/chunk-CSY3WI5A.js +1 -0
  11. package/cdn/chunks/chunk-DAZR7RUI.js +0 -0
  12. package/cdn/chunks/chunk-EHK76KRT.js +1 -0
  13. package/cdn/chunks/chunk-EOPEMJS3.js +0 -0
  14. package/cdn/chunks/chunk-G5O7EN45.js +5 -0
  15. package/cdn/chunks/chunk-GEFUIFM7.js +0 -0
  16. package/cdn/chunks/chunk-JLNHEMQG.js +1 -0
  17. package/cdn/chunks/chunk-LPWIM7QJ.js +902 -0
  18. package/cdn/chunks/chunk-M3YRM3AV.js +1 -0
  19. package/cdn/chunks/chunk-M6BOWL2U.js +1 -0
  20. package/cdn/chunks/chunk-P5IE36FO.js +8 -0
  21. package/cdn/chunks/chunk-PXH5KN5O.js +1 -0
  22. package/cdn/chunks/chunk-RBEI6NIF.js +1 -0
  23. package/cdn/chunks/chunk-SMKIYFFI.js +1 -0
  24. package/cdn/chunks/chunk-SRLMW23F.js +0 -0
  25. package/cdn/chunks/chunk-T3YDLD2H.js +11 -0
  26. package/cdn/chunks/chunk-T4HD2C4F.js +1 -0
  27. package/cdn/chunks/chunk-T6IXJ4W4.js +1 -0
  28. package/cdn/chunks/chunk-TFAUBGP2.js +0 -0
  29. package/cdn/chunks/chunk-UIEC4LXR.js +17 -0
  30. package/cdn/chunks/chunk-V44O3GTW.js +0 -0
  31. package/cdn/chunks/chunk-V6B54FQW.js +5 -0
  32. package/cdn/chunks/chunk-V6KX6BQN.js +1 -0
  33. package/cdn/chunks/chunk-VYANBI35.js +1 -0
  34. package/cdn/chunks/chunk-XUJ7TXHW.js +1 -0
  35. package/cdn/chunks/chunk-ZIZLFFSG.js +0 -0
  36. package/cdn/index.css +1 -0
  37. package/cdn/index.global.js +45 -45
  38. package/cdn/index.js +354 -4148
  39. package/cdn/qti-components/index.global.js +226 -0
  40. package/cdn/qti-components/index.js +924 -0
  41. package/cdn/qti-item/components/index.css +1 -0
  42. package/cdn/qti-item/components/index.global.js +149 -0
  43. package/cdn/qti-item/components/index.js +3549 -0
  44. package/cdn/qti-item/components/item-container.css +1 -0
  45. package/cdn/qti-item/components/item-container.global.js +149 -0
  46. package/cdn/qti-item/components/item-container.js +3549 -0
  47. package/cdn/qti-item/index.css +1 -0
  48. package/cdn/qti-item/index.global.js +149 -0
  49. package/cdn/qti-item/index.js +3549 -0
  50. package/cdn/qti-item/qti-item.global.js +114 -0
  51. package/cdn/qti-item/qti-item.js +1 -0
  52. package/cdn/qti-loader/index.global.js +1 -0
  53. package/cdn/qti-loader/index.js +23 -0
  54. package/cdn/qti-test/components/index.css +1 -0
  55. package/cdn/qti-test/components/index.global.js +242 -0
  56. package/cdn/qti-test/components/index.js +3598 -0
  57. package/cdn/qti-test/components/styles.global.js +44 -0
  58. package/cdn/qti-test/components/styles.js +17 -0
  59. package/cdn/qti-test/components/test-component.abstract.global.js +170 -0
  60. package/cdn/qti-test/components/test-component.abstract.js +1 -0
  61. package/cdn/qti-test/components/test-container.css +1 -0
  62. package/cdn/qti-test/components/test-container.global.js +149 -0
  63. package/cdn/qti-test/components/test-container.js +3549 -0
  64. package/cdn/qti-test/components/test-item-link.global.js +170 -0
  65. package/cdn/qti-test/components/test-item-link.js +24 -0
  66. package/cdn/qti-test/components/test-next.global.js +170 -0
  67. package/cdn/qti-test/components/test-next.js +24 -0
  68. package/cdn/qti-test/components/test-next.spec.css +1 -0
  69. package/cdn/qti-test/components/test-next.spec.global.js +297 -0
  70. package/cdn/qti-test/components/test-next.spec.js +5215 -0
  71. package/cdn/qti-test/components/test-paging-buttons-stamp.global.js +207 -0
  72. package/cdn/qti-test/components/test-paging-buttons-stamp.js +3 -0
  73. package/cdn/qti-test/components/test-prev.global.js +170 -0
  74. package/cdn/qti-test/components/test-prev.js +24 -0
  75. package/cdn/qti-test/components/test-view.global.js +170 -0
  76. package/cdn/qti-test/components/test-view.js +11 -0
  77. package/cdn/qti-test/context/index.global.js +58 -0
  78. package/cdn/qti-test/context/index.js +1 -0
  79. package/cdn/qti-test/context/test.context.global.js +58 -0
  80. package/cdn/qti-test/context/test.context.js +1 -0
  81. package/cdn/qti-test/index.css +1 -0
  82. package/cdn/qti-test/index.global.js +242 -0
  83. package/cdn/qti-test/index.js +3598 -0
  84. package/cdn/qti-test/mixins/index.global.js +1 -0
  85. package/cdn/qti-test/mixins/index.js +23 -0
  86. package/cdn/qti-test/mixins/test-loader.mixin.global.js +1 -0
  87. package/cdn/qti-test/mixins/test-loader.mixin.js +23 -0
  88. package/cdn/qti-test/mixins/test-navigation.mixin.global.js +1 -0
  89. package/cdn/qti-test/mixins/test-navigation.mixin.js +1 -0
  90. package/cdn/qti-test/mixins/test-view.mixin.global.js +1 -0
  91. package/cdn/qti-test/mixins/test-view.mixin.js +1 -0
  92. package/cdn/qti-test/qti-assessment-test/index.global.js +170 -0
  93. package/cdn/qti-test/qti-assessment-test/index.js +1 -0
  94. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.global.js +170 -0
  95. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.js +1 -0
  96. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.global.js +170 -0
  97. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.js +1 -0
  98. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.global.js +170 -0
  99. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.js +1 -0
  100. package/cdn/qti-test/qti-assessment-test/qti-test-part.global.js +114 -0
  101. package/cdn/qti-test/qti-assessment-test/qti-test-part.js +1 -0
  102. package/cdn/qti-test/qti-test.global.js +170 -0
  103. package/cdn/qti-test/qti-test.js +23 -0
  104. package/cdn/qti-test/test-base.global.js +170 -0
  105. package/cdn/qti-test/test-base.js +1 -0
  106. package/cdn/qti-transformers/index.global.js +1 -0
  107. package/cdn/qti-transformers/index.js +23 -0
  108. package/dist/chunks/chunk-3G2DDBJW.js +44 -0
  109. package/dist/chunks/chunk-3G2DDBJW.js.map +1 -0
  110. package/dist/chunks/chunk-3NLCJYSX.js +1 -0
  111. package/dist/chunks/chunk-3NLCJYSX.js.map +1 -0
  112. package/dist/chunks/chunk-3OXGDCSU.js +6253 -0
  113. package/dist/chunks/chunk-3OXGDCSU.js.map +1 -0
  114. package/dist/chunks/chunk-3ROZMGAN.js +43 -0
  115. package/dist/chunks/chunk-3ROZMGAN.js.map +1 -0
  116. package/dist/chunks/chunk-4O5F7WV7.js +30 -0
  117. package/dist/chunks/chunk-4O5F7WV7.js.map +1 -0
  118. package/dist/chunks/chunk-6YE2KJ4C.js +55 -0
  119. package/dist/chunks/chunk-6YE2KJ4C.js.map +1 -0
  120. package/dist/chunks/chunk-AAQCM2FP.js +56 -0
  121. package/dist/chunks/chunk-AAQCM2FP.js.map +1 -0
  122. package/dist/chunks/chunk-D3RGDWKP.js +37 -0
  123. package/dist/chunks/chunk-D3RGDWKP.js.map +1 -0
  124. package/dist/chunks/chunk-DJLE6EV2.js +36 -0
  125. package/dist/chunks/chunk-DJLE6EV2.js.map +1 -0
  126. package/dist/chunks/chunk-ELDMXTUQ.js +31 -0
  127. package/dist/chunks/chunk-ELDMXTUQ.js.map +1 -0
  128. package/dist/chunks/chunk-EW5CTHAD.js +1 -0
  129. package/dist/chunks/chunk-EW5CTHAD.js.map +1 -0
  130. package/dist/chunks/chunk-HWA4A3SR.js +50 -0
  131. package/dist/chunks/chunk-HWA4A3SR.js.map +1 -0
  132. package/dist/chunks/chunk-IKZWK2C5.js +1 -0
  133. package/dist/chunks/chunk-IKZWK2C5.js.map +1 -0
  134. package/dist/chunks/chunk-IP7JSYO6.js +1 -0
  135. package/dist/chunks/chunk-IP7JSYO6.js.map +1 -0
  136. package/dist/chunks/chunk-JE6BMXZU.js +94 -0
  137. package/dist/chunks/chunk-JE6BMXZU.js.map +1 -0
  138. package/dist/chunks/chunk-JSPJGWGT.js +20 -0
  139. package/dist/chunks/chunk-JSPJGWGT.js.map +1 -0
  140. package/dist/chunks/chunk-LKINC6JO.js +118 -0
  141. package/dist/chunks/chunk-LKINC6JO.js.map +1 -0
  142. package/dist/chunks/chunk-LROTNPC2.js +94 -0
  143. package/dist/chunks/chunk-LROTNPC2.js.map +1 -0
  144. package/dist/chunks/chunk-MTMT2RMF.js +63 -0
  145. package/dist/chunks/chunk-MTMT2RMF.js.map +1 -0
  146. package/dist/chunks/chunk-NDJZGJUR.js +65 -0
  147. package/dist/chunks/chunk-NDJZGJUR.js.map +1 -0
  148. package/dist/chunks/chunk-OE2LFIH2.js +1 -0
  149. package/dist/chunks/chunk-OE2LFIH2.js.map +1 -0
  150. package/dist/chunks/chunk-OJ2XGDWK.js +1 -0
  151. package/dist/chunks/chunk-OJ2XGDWK.js.map +1 -0
  152. package/dist/chunks/chunk-PUBGXXTM.js +50 -0
  153. package/dist/chunks/chunk-PUBGXXTM.js.map +1 -0
  154. package/dist/chunks/chunk-QRCUNRP5.js +75 -0
  155. package/dist/chunks/chunk-QRCUNRP5.js.map +1 -0
  156. package/dist/chunks/chunk-S6JJYCO7.js +51 -0
  157. package/dist/chunks/chunk-S6JJYCO7.js.map +1 -0
  158. package/dist/chunks/chunk-U3AALKEP.js +1 -0
  159. package/dist/chunks/chunk-U3AALKEP.js.map +1 -0
  160. package/dist/chunks/chunk-UCQFSRYF.js +34 -0
  161. package/dist/chunks/chunk-UCQFSRYF.js.map +1 -0
  162. package/dist/chunks/chunk-URGVQ64M.js +1 -0
  163. package/dist/chunks/chunk-URGVQ64M.js.map +1 -0
  164. package/dist/chunks/chunk-V4FXK4TP.js +128 -0
  165. package/dist/chunks/chunk-V4FXK4TP.js.map +1 -0
  166. package/dist/chunks/chunk-W4B23OIP.js +72 -0
  167. package/dist/chunks/chunk-W4B23OIP.js.map +1 -0
  168. package/dist/chunks/chunk-XDFXD3BI.js +10 -0
  169. package/dist/chunks/chunk-XDFXD3BI.js.map +1 -0
  170. package/dist/chunks/chunk-XDMSEAYC.js +294 -0
  171. package/dist/chunks/chunk-XDMSEAYC.js.map +1 -0
  172. package/dist/chunks/chunk-XPDS72XY.js +29 -0
  173. package/dist/chunks/chunk-XPDS72XY.js.map +1 -0
  174. package/dist/chunks/chunk-Y6UWSECL.js +3529 -0
  175. package/dist/chunks/chunk-Y6UWSECL.js.map +1 -0
  176. package/dist/chunks/chunk-ZEFOMZNY.js +78 -0
  177. package/dist/chunks/chunk-ZEFOMZNY.js.map +1 -0
  178. package/dist/index-Cvrd4KQA.d.ts +109 -0
  179. package/dist/index.d.ts +18 -469
  180. package/dist/index.js +2717 -8728
  181. package/dist/index.js.map +1 -1
  182. package/dist/item.css +10 -78
  183. package/dist/qti-components/index.d.ts +150 -0
  184. package/dist/qti-components/index.js +6525 -0
  185. package/dist/qti-components/index.js.map +1 -0
  186. package/dist/qti-components-jsx.d.ts +159 -184
  187. package/dist/qti-item/components/index.d.ts +3 -0
  188. package/dist/qti-item/components/index.js +3856 -0
  189. package/dist/qti-item/components/index.js.map +1 -0
  190. package/dist/qti-item/components/item-container.d.ts +40 -0
  191. package/dist/qti-item/components/item-container.js +3856 -0
  192. package/dist/qti-item/components/item-container.js.map +1 -0
  193. package/dist/qti-item/index.d.ts +4 -0
  194. package/dist/qti-item/index.js +3869 -0
  195. package/dist/qti-item/index.js.map +1 -0
  196. package/dist/qti-item/qti-item.d.ts +25 -0
  197. package/dist/qti-item/qti-item.js +26 -0
  198. package/dist/qti-item/qti-item.js.map +1 -0
  199. package/dist/{loader → qti-loader}/index.d.ts +1 -1
  200. package/dist/{loader → qti-loader}/index.js +5 -0
  201. package/dist/{loader → qti-loader}/index.js.map +1 -1
  202. package/dist/{qti-simple-choice-UTrFa_RQ.d.ts → qti-simple-choice-DxWcdKHi.d.ts} +71 -90
  203. package/dist/qti-test/components/index.d.ts +13 -0
  204. package/dist/qti-test/components/index.js +4144 -0
  205. package/dist/qti-test/components/index.js.map +1 -0
  206. package/dist/qti-test/components/styles.d.ts +8 -0
  207. package/dist/qti-test/components/styles.js +29 -0
  208. package/dist/qti-test/components/styles.js.map +1 -0
  209. package/dist/qti-test/components/test-component.abstract.d.ts +23 -0
  210. package/dist/qti-test/components/test-component.abstract.js +149 -0
  211. package/dist/qti-test/components/test-component.abstract.js.map +1 -0
  212. package/dist/qti-test/components/test-container.d.ts +37 -0
  213. package/dist/qti-test/components/test-container.js +3782 -0
  214. package/dist/qti-test/components/test-container.js.map +1 -0
  215. package/dist/qti-test/components/test-item-link.d.ts +21 -0
  216. package/dist/qti-test/components/test-item-link.js +202 -0
  217. package/dist/qti-test/components/test-item-link.js.map +1 -0
  218. package/dist/qti-test/components/test-next.d.ts +32 -0
  219. package/dist/qti-test/components/test-next.js +209 -0
  220. package/dist/qti-test/components/test-next.js.map +1 -0
  221. package/dist/qti-test/components/test-next.spec.d.ts +16 -0
  222. package/dist/qti-test/components/test-next.spec.js +56915 -0
  223. package/dist/qti-test/components/test-next.spec.js.map +1 -0
  224. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +22 -0
  225. package/dist/qti-test/components/test-paging-buttons-stamp.js +218 -0
  226. package/dist/qti-test/components/test-paging-buttons-stamp.js.map +1 -0
  227. package/dist/qti-test/components/test-prev.d.ts +32 -0
  228. package/dist/qti-test/components/test-prev.js +209 -0
  229. package/dist/qti-test/components/test-prev.js.map +1 -0
  230. package/dist/qti-test/components/test-view.d.ts +27 -0
  231. package/dist/qti-test/components/test-view.js +209 -0
  232. package/dist/qti-test/components/test-view.js.map +1 -0
  233. package/dist/qti-test/context/index.d.ts +6 -0
  234. package/dist/qti-test/context/index.js +9 -0
  235. package/dist/qti-test/context/index.js.map +1 -0
  236. package/dist/qti-test/context/test.context.d.ts +6 -0
  237. package/dist/qti-test/context/test.context.js +9 -0
  238. package/dist/qti-test/context/test.context.js.map +1 -0
  239. package/dist/qti-test/index.d.ts +14 -0
  240. package/dist/qti-test/index.js +4746 -0
  241. package/dist/qti-test/index.js.map +1 -0
  242. package/dist/qti-test/mixins/index.d.ts +8 -0
  243. package/dist/qti-test/mixins/index.js +350 -0
  244. package/dist/qti-test/mixins/index.js.map +1 -0
  245. package/dist/qti-test/mixins/test-loader.mixin.d.ts +8 -0
  246. package/dist/qti-test/mixins/test-loader.mixin.js +240 -0
  247. package/dist/qti-test/mixins/test-loader.mixin.js.map +1 -0
  248. package/dist/qti-test/mixins/test-navigation.mixin.d.ts +22 -0
  249. package/dist/qti-test/mixins/test-navigation.mixin.js +64 -0
  250. package/dist/qti-test/mixins/test-navigation.mixin.js.map +1 -0
  251. package/dist/qti-test/mixins/test-view.mixin.d.ts +6 -0
  252. package/dist/qti-test/mixins/test-view.mixin.js +50 -0
  253. package/dist/qti-test/mixins/test-view.mixin.js.map +1 -0
  254. package/dist/qti-test/qti-assessment-test/index.d.ts +6 -0
  255. package/dist/qti-test/qti-assessment-test/index.js +221 -0
  256. package/dist/qti-test/qti-assessment-test/index.js.map +1 -0
  257. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.d.ts +6 -0
  258. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js +85 -0
  259. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js.map +1 -0
  260. package/dist/qti-test/qti-assessment-test/qti-assessment-section.d.ts +6 -0
  261. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js +73 -0
  262. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js.map +1 -0
  263. package/dist/qti-test/qti-assessment-test/qti-assessment-test.d.ts +6 -0
  264. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js +54 -0
  265. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js.map +1 -0
  266. package/dist/qti-test/qti-assessment-test/qti-test-part.d.ts +19 -0
  267. package/dist/qti-test/qti-assessment-test/qti-test-part.js +62 -0
  268. package/dist/qti-test/qti-assessment-test/qti-test-part.js.map +1 -0
  269. package/dist/qti-test/qti-test.d.ts +68 -0
  270. package/dist/qti-test/qti-test.js +500 -0
  271. package/dist/qti-test/qti-test.js.map +1 -0
  272. package/dist/qti-test/test-base.d.ts +6 -0
  273. package/dist/qti-test/test-base.js +137 -0
  274. package/dist/qti-test/test-base.js.map +1 -0
  275. package/dist/{transformers → qti-transformers}/index.d.ts +1 -0
  276. package/dist/{transformers → qti-transformers}/index.js +5 -0
  277. package/dist/{transformers → qti-transformers}/index.js.map +1 -1
  278. package/dist/test-base-BJwG9Ie8.d.ts +109 -0
  279. package/dist/vscode.css-custom-data.json +1 -37
  280. package/dist/vscode.html-custom-data.json +70 -45
  281. package/package.json +29 -51
  282. package/dist/custom-element-eslint-rules.js +0 -337
  283. package/dist/custom-elements.json +0 -27271
package/dist/index.d.ts CHANGED
@@ -1,470 +1,19 @@
1
- import * as lit_html from 'lit-html';
2
- import * as lit from 'lit';
3
- import { LitElement } from 'lit';
4
- import { Q as QtiRule, a as QtiRuleBase, b as QtiExpressionBase, c as QtiExpression, B as BaseType, d as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext, e as QtiAssessmentItem } from './qti-simple-choice-UTrFa_RQ.js';
5
- export { s as ActiveElementMixin, A as ActiveElementMixinInterface, C as Calculate, n as Cardinality, r as ChoiceInterface, ai as Interaction, f as InteractionChangedDetails, M as Multiple, m as Ordered, N as Orientation, O as OutcomeChangedDetails, p as OutcomeVariable, X as QtiAnd, q as QtiAssessmentStimulusRef, aj as QtiAssociableHotspot, a1 as QtiAssociateInteraction, P as QtiChoiceInteraction, y as QtiCompanionMaterialsInfo, z as QtiContentBody, a2 as QtiCustomInteraction, ah as QtiCustomOperator, a3 as QtiEndAttemptInteraction, H as QtiExtendedTextInteraction, E as QtiFeedbackBlock, F as QtiFeedbackInline, ak as QtiGap, al as QtiGapImg, a4 as QtiGapMatchInteraction, am as QtiGapText, a5 as QtiGraphicAssociateInteraction, a6 as QtiGraphicGapMatchInteraction, a7 as QtiGraphicOrderInteraction, an as QtiHotspotChoice, a8 as QtiHotspotInteraction, ao as QtiHottext, K as QtiHottextInteraction, ap as QtiInlineChoice, L as QtiInlineChoiceInteraction, g as QtiInteractionChanged, t as QtiItemBody, W as QtiLookupOutcomeValue, Z as QtiMapping, a9 as QtiMatchInteraction, aa as QtiMediaInteraction, G as QtiModalFeedback, ab as QtiOrderInteraction, h as QtiOutcomeChanged, w as QtiOutcomeDeclaration, S as QtiOutcomeProcessing, T as QtiOutcomeProcessingProcessor, a0 as QtiPortableCustomInteraction, ac as QtiPositionObjectStage, u as QtiPrompt, x as QtiResponseDeclaration, U as QtiResponseProcessing, D as QtiRubricBlock, ad as QtiSelectPointInteraction, aq as QtiSimpleAssociableChoice, ar as QtiSimpleChoice, ae as QtiSliderInteraction, v as QtiStylesheet, _ as QtiSubtract, J as QtiTextEntryInteraction, j as ResponseInteraction, o as VariableValue, i as directedPair, k as float, l as integer, ag as itemContext, af as itemContextVariables, Y as qtiAndMixin, $ as qtiSubtractMixin } from './qti-simple-choice-UTrFa_RQ.js';
1
+ export { QtiTest } from './qti-test/qti-test.js';
2
+ export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, T as TestContext, c as TestElement, t as testContext, d as testElement } from './test-base-BJwG9Ie8.js';
3
+ export { QtiTestPart } from './qti-test/qti-assessment-test/qti-test-part.js';
4
+ export { TestComponent } from './qti-test/components/test-component.abstract.js';
5
+ export { TestNext } from './qti-test/components/test-next.js';
6
+ export { TestPrev } from './qti-test/components/test-prev.js';
7
+ export { TestView } from './qti-test/components/test-view.js';
8
+ export { TestItemLink } from './qti-test/components/test-item-link.js';
9
+ export { TestContainer } from './qti-test/components/test-container.js';
10
+ export { TestPagingButtonsStamp } from './qti-test/components/test-paging-buttons-stamp.js';
11
+ export { QtiItem } from './qti-item/qti-item.js';
12
+ export { ItemContainer } from './qti-item/components/item-container.js';
13
+ export { m as ActiveElementMixin, A as ActiveElementMixinInterface, B as BaseType, C as Calculate, c as Cardinality, l as ChoiceInterface, aj as Interaction, I as InteractionChangedDetails, af as ItemContext, M as Multiple, b as Ordered, F as Orientation, O as OutcomeChangedDetails, g as OutcomeVariable, P as QtiAnd, j as QtiAssessmentItem, k as QtiAssessmentStimulusRef, ak as QtiAssociableHotspot, a1 as QtiAssociateInteraction, G as QtiChoiceInteraction, s as QtiCompanionMaterialsInfo, T as QtiConditionExpression, t as QtiContentBody, a2 as QtiCustomInteraction, ai as QtiCustomOperator, a3 as QtiEndAttemptInteraction, W as QtiExpression, U as QtiExpressionBase, y as QtiExtendedTextInteraction, v as QtiFeedbackBlock, w as QtiFeedbackInline, al as QtiGap, am as QtiGapImg, a4 as QtiGapMatchInteraction, an as QtiGapText, a5 as QtiGraphicAssociateInteraction, a6 as QtiGraphicGapMatchInteraction, a7 as QtiGraphicOrderInteraction, ao as QtiHotspotChoice, a8 as QtiHotspotInteraction, ap as QtiHottext, D as QtiHottextInteraction, aq as QtiInlineChoice, E as QtiInlineChoiceInteraction, Q as QtiInteractionChanged, n as QtiItemBody, N as QtiLookupOutcomeValue, X as QtiMapping, a9 as QtiMatchInteraction, aa as QtiMediaInteraction, x as QtiModalFeedback, ab as QtiOrderInteraction, a as QtiOutcomeChanged, q as QtiOutcomeDeclaration, J as QtiOutcomeProcessing, K as QtiOutcomeProcessingProcessor, a0 as QtiPortableCustomInteraction, ac as QtiPositionObjectStage, o as QtiPrompt, r as QtiResponseDeclaration, L as QtiResponseProcessing, u as QtiRubricBlock, _ as QtiRule, $ as QtiRuleBase, ad as QtiSelectPointInteraction, ar as QtiSimpleAssociableChoice, as as QtiSimpleChoice, ae as QtiSliderInteraction, p as QtiStylesheet, Y as QtiSubtract, z as QtiTextEntryInteraction, H as QtiUploadInteraction, R as ResponseInteraction, h as ResponseVariable, e as VariableDeclaration, V as VariableValue, d as directedPair, f as float, i as integer, ah as itemContext, ag as itemContextVariables, S as qtiAndMixin, Z as qtiSubtractMixin } from './qti-simple-choice-DxWcdKHi.js';
14
+ export { QtiBaseValue, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiGt, QtiGte, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPrintedVariable, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable } from './qti-components/index.js';
15
+ export { ManifestInfo, getItemByUri, getManifestInfo } from './qti-loader/index.js';
16
+ export { qtiTransformItem, qtiTransformManifest, qtiTransformTest, transformItemApi, transformTestApi } from './qti-transformers/index.js';
17
+ import 'lit-html';
18
+ import 'lit';
6
19
  import 'lit-html/directives/ref.js';
7
-
8
- declare class QtiResponseCondition extends QtiRule {
9
- render(): lit_html.TemplateResult<1>;
10
- process(): void;
11
- }
12
-
13
- declare class QtiSetOutcomeValue extends QtiRule {
14
- process(): void;
15
- }
16
- declare class QtiSetOutcomeValueRule<T> implements QtiRuleBase {
17
- private expression;
18
- constructor(expression: QtiExpressionBase<T>);
19
- process(): any;
20
- }
21
-
22
- declare class QtiResponseElse extends LitElement {
23
- render(): lit_html.TemplateResult<1>;
24
- calculate(): boolean;
25
- getSubRules(): QtiRule[];
26
- process(): void;
27
- }
28
-
29
- declare class QtiResponseIf extends QtiResponseElse {
30
- calculate(): boolean;
31
- getSubRules(): QtiRule[];
32
- }
33
-
34
- declare class QtiResponseElseIf extends QtiResponseIf {
35
- render(): lit_html.TemplateResult<1>;
36
- }
37
-
38
- declare class QtiBaseValue extends QtiExpression<string> {
39
- baseType: BaseType;
40
- getResult(): string;
41
- }
42
-
43
- declare class QtiContains extends QtiConditionExpression {
44
- getResult(): boolean;
45
- }
46
-
47
- declare class QtiCorrect extends QtiExpression<string | string[]> {
48
- get interpretation(): string;
49
- getResult(): string | string[];
50
- }
51
-
52
- declare class QtiEqualRounded extends QtiExpression<boolean> {
53
- roundingMode: 'decimalPlaces' | 'significantFigures';
54
- get figures(): number;
55
- getResult(): boolean;
56
- }
57
-
58
- declare class QtiEqual extends QtiExpression<boolean> {
59
- toleranceMode: 'exact' | 'relative' | 'absolute';
60
- getResult(): boolean;
61
- }
62
-
63
- declare class QtiGt extends QtiExpression<boolean> {
64
- getResult(): boolean;
65
- }
66
-
67
- declare class QtiGte extends QtiConditionExpression {
68
- getResult(): boolean;
69
- }
70
-
71
- declare class QtiIsNull extends QtiExpression<boolean> {
72
- getResult(): boolean;
73
- }
74
-
75
- declare class QtiLt extends QtiExpression<boolean> {
76
- getResult(): boolean;
77
- }
78
-
79
- declare class QtiLte extends QtiConditionExpression {
80
- getResult(): boolean;
81
- }
82
-
83
- declare class QtiMapResponse extends QtiExpression<number> {
84
- identifier: string;
85
- getResult(): number;
86
- }
87
-
88
- declare class QtiMatch extends QtiExpression<boolean> {
89
- getResult(): boolean;
90
- static match(valueToMap: ResponseVariable, correctValueInfo: ResponseVariable): boolean;
91
- }
92
-
93
- declare class QtiMember extends QtiExpression<boolean | null> {
94
- getResult(): boolean;
95
- }
96
-
97
- declare class QtiMultiple extends QtiExpression<VariableDeclaration<string | string[]>[]> {
98
- getResult(): ResponseVariable[];
99
- }
100
-
101
- declare class QtiNot extends QtiExpression<boolean> {
102
- render(): lit_html.TemplateResult<1>;
103
- getResult(): boolean;
104
- }
105
-
106
- declare class QtiOr extends QtiConditionExpression {
107
- getResult(): boolean;
108
- }
109
-
110
- declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
111
- getResult(): ResponseVariable[];
112
- }
113
-
114
- declare class QtiPrintedVariable extends LitElement {
115
- identifier: string;
116
- protected context?: ItemContext;
117
- render(): lit_html.TemplateResult<1>;
118
- calculate(): VariableDeclaration<string | string[]>;
119
- }
120
-
121
- declare class QtiProduct extends QtiExpression<number> {
122
- getResult(): number;
123
- }
124
-
125
- declare class QtiStringMatch extends QtiExpression<boolean> {
126
- caseSensitive: string;
127
- getResult(): boolean;
128
- }
129
-
130
- declare class QtiSum extends QtiExpression<number> {
131
- private _expression;
132
- constructor();
133
- getResult(): number;
134
- }
135
- declare class QtiSumExpression implements QtiExpressionBase<number> {
136
- private expressions;
137
- constructor(expressions: QtiExpressionBase<number>[]);
138
- calculate(): number;
139
- }
140
-
141
- declare class QtiVariable extends QtiExpression<string | string[]> {
142
- getResult(): Readonly<string | string[]>;
143
- }
144
-
145
- declare class QtiPositionObjectInteraction extends LitElement {
146
- render(): lit_html.TemplateResult<1>;
147
- static styles: lit.CSSResult[];
148
- }
149
-
150
- interface TestContext {
151
- items: (ItemContext & {
152
- category?: string;
153
- })[];
154
- testOutcomeVariables: VariableDeclaration<string | string[]>[];
155
- }
156
- declare const testContext: {
157
- __context__: Readonly<TestContext>;
158
- };
159
- type TestElement = {
160
- el: QtiAssessmentTest;
161
- };
162
- declare const testElement: {
163
- __context__: Readonly<TestElement>;
164
- };
165
-
166
- declare class QtiAssessmentItemRef extends LitElement {
167
- category?: string;
168
- identifier?: string;
169
- required?: boolean;
170
- fixed?: boolean;
171
- href?: string;
172
- _testContext?: TestContext;
173
- weigths: Map<string, number>;
174
- xmlDoc: DocumentFragment;
175
- protected createRenderRoot(): HTMLElement | DocumentFragment;
176
- get assessmentItem(): QtiAssessmentItem | null;
177
- connectedCallback(): Promise<void>;
178
- render(): lit_html.TemplateResult<1>;
179
- }
180
- declare global {
181
- interface HTMLElementTagNameMap {
182
- 'qti-assessment-item-ref': QtiAssessmentItemRef;
183
- }
184
- }
185
-
186
- declare class QtiAssessmentSection extends LitElement {
187
- identifier: string;
188
- required: string;
189
- fixed: boolean;
190
- title: string;
191
- visible: boolean;
192
- keepTogether: boolean;
193
- _testContext?: TestContext;
194
- connectedCallback(): Promise<void>;
195
- render(): lit_html.TemplateResult<1>;
196
- }
197
- declare global {
198
- interface HTMLElementTagNameMap {
199
- 'qti-assessment-section': QtiAssessmentSection;
200
- }
201
- }
202
-
203
- declare class QtiAssessmentTest extends LitElement {
204
- identifier: string;
205
- title: string;
206
- _testContext?: TestContext;
207
- connectedCallback(): Promise<void>;
208
- render(): lit_html.TemplateResult<1>;
209
- }
210
- declare global {
211
- interface HTMLElementTagNameMap {
212
- 'qti-assessment-test': QtiAssessmentTest;
213
- }
214
- }
215
-
216
- declare class QtiTestPart extends LitElement {
217
- identifier: string;
218
- title: string;
219
- class: string;
220
- NavigationMode: 'linear' | 'nonlinear';
221
- submissionMode: 'individual' | 'simultaneous';
222
- connectedCallback(): Promise<void>;
223
- render(): lit_html.TemplateResult<1>;
224
- }
225
- declare global {
226
- interface HTMLElementTagNameMap {
227
- 'qti-test-part': QtiTestPart;
228
- }
229
- }
230
-
231
- declare abstract class TestBase extends LitElement {
232
- protected _testContext: Readonly<TestContext>;
233
- protected testElement: TestElement;
234
- constructor();
235
- get context(): TestContext;
236
- set context(testContext: TestContext);
237
- private _updateItemVariablesInTestContext;
238
- /**
239
- * Updates the variables of an assessment item in the test context.
240
- * - Matches the assessment item with the corresponding test context item.
241
- * - If the item is not found, logs a warning.
242
- * - Updates variables in the test context if exactly one variable exists.
243
- * - Otherwise, syncs the assessment item's variables with the test context.
244
- *
245
- * @param assessmentItem - The assessment item to update.
246
- */
247
- private _updateItemInTestContext;
248
- connectedCallback(): void;
249
- }
250
-
251
- declare const QtiTest_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & typeof TestBase;
252
- /**
253
- * `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.
254
- *
255
- * This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.
256
- *
257
- * ### Example Usage
258
- *
259
- * Minimal markup:
260
- * ```html
261
- * <qti-test test="./path/to/assessment.xml">
262
- * <test-container></test-container>
263
- * </qti-test>
264
- * ```
265
- *
266
- * With navigation buttons:
267
- * ```html
268
- * <qti-test >
269
- * <test-container test-url="./path/to/assessment.xml"></test-container>
270
- * <div class="flex">
271
- * <test-prev></test-prev>
272
- * <test-next></test-next>
273
- * </div>
274
- * </qti-test>
275
- * ```
276
- *
277
- * You can use normal class names to style the elements.
278
- * And you can use the `test-prev` and `test-next` elements to navigate through the test.
279
- *
280
- * @attr {string} testURL - the relative location to the QTI assessment.xml file
281
- *
282
- * ### Features
283
- *
284
- * - **Dynamic Template Loading**:
285
- * If a `<template>` element is included as a child of `<qti-test>`, its content is dynamically appended to the shadow DOM.
286
- */
287
- declare class QtiTest extends QtiTest_base {
288
- /**
289
- * Lifecycle callback invoked when the element is added to the DOM.
290
- * Automatically appends the content of a `<template>` element (if present)
291
- * to the shadow DOM.
292
- */
293
- connectedCallback(): void;
294
- /**
295
- * Renders the component's template.
296
- * Provides a default `<slot>` for content projection.
297
- */
298
- render(): lit_html.TemplateResult<1>;
299
- }
300
- declare global {
301
- interface HTMLElementTagNameMap {
302
- 'qti-test': QtiTest;
303
- }
304
- }
305
-
306
- declare abstract class TestComponent extends LitElement {
307
- disabled: boolean;
308
- _testContext?: TestContext;
309
- _testElement?: TestElement;
310
- _handleTestElementChange(_oldValue: TestElement, newValue: TestElement): void;
311
- protected _internals: ElementInternals;
312
- protected items: any;
313
- protected itemIndex: any;
314
- protected view: any;
315
- constructor();
316
- willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
317
- protected _switchView(view: string): void;
318
- protected _requestItem(identifier: string): void;
319
- }
320
-
321
- /**
322
- * Represents a custom element for navigating to the next test item.
323
- *
324
- * @remarks
325
- * This element provides functionality for navigating to the next test item.
326
- *
327
- * @example
328
- * ```html
329
- * <test-next></test-next>
330
- * ```
331
- */
332
- declare class TestNext extends TestComponent {
333
- static styles: lit.CSSResult;
334
- constructor();
335
- willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
336
- render(): lit_html.TemplateResult<1>;
337
- }
338
- declare global {
339
- interface HTMLElementTagNameMap {
340
- 'test-next': TestNext;
341
- }
342
- }
343
-
344
- /**
345
- * Represents a custom element for navigating to the previous test item.
346
- *
347
- * @remarks
348
- * This element provides functionality for navigating to the previous test item.
349
- *
350
- * @example
351
- * ```html
352
- * <test-prev></test-prev>
353
- * ```
354
- */
355
- declare class TestPrev extends TestComponent {
356
- static styles: lit.CSSResult;
357
- constructor();
358
- willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
359
- render(): lit_html.TemplateResult<1>;
360
- }
361
- declare global {
362
- interface HTMLElementTagNameMap {
363
- 'test-previous': TestPrev;
364
- }
365
- }
366
-
367
- declare class TestView extends TestComponent {
368
- static DEFAULT_VIEW_OPTIONS: string[];
369
- label: string;
370
- viewOptions: string;
371
- _handleViewOptionsChange: (_: string, viewOptions: string) => void;
372
- private _viewOptions;
373
- render(): lit_html.TemplateResult<1>;
374
- }
375
- declare global {
376
- interface HTMLElementTagNameMap {
377
- 'test-view': TestView;
378
- }
379
- }
380
-
381
- declare class TestItemLink extends TestComponent {
382
- private itemId;
383
- constructor();
384
- render(): lit_html.TemplateResult<1>;
385
- }
386
- declare global {
387
- interface HTMLElementTagNameMap {
388
- 'test-item-link': TestItemLink;
389
- }
390
- }
391
-
392
- /**
393
- * `<test-container>` is a custom element designed for hosting the qti-assessment-test.
394
- * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
395
- *
396
- * ### Example Usage
397
- * The `test-container` element to hosts the visual representation of the items.
398
- * You can style the container by adding a class to the element.
399
- *
400
- * ```html
401
- * <qti-test testurl="./path/to/assessment.xml">
402
- * <test-container class="container bg-white m-2"></test-container>
403
- * </qti-test>
404
- * ```
405
- *
406
- * @tag test-container
407
- */
408
- declare class TestContainer extends LitElement {
409
- /**
410
- * Internal state for the dynamically loaded content.
411
- * This is a Promise resolving to the content that will be rendered.
412
- */
413
- private content;
414
- testURL: string;
415
- /**
416
- * Preloaded content from a `<template>` child, if present.
417
- */
418
- private preContent;
419
- /**
420
- * Lifecycle callback invoked when the element is added to the DOM.
421
- * Handles template preloading and dispatches a `qti-load-test-request` event
422
- * if no template is found.
423
- */
424
- connectedCallback(): Promise<void>;
425
- /**
426
- * Renders the component content.
427
- * Preloaded template content is rendered first, followed by the default slot
428
- * and dynamically loaded content.
429
- */
430
- render(): lit_html.TemplateResult<1>;
431
- }
432
- declare global {
433
- interface HTMLElementTagNameMap {
434
- 'test-container': TestContainer;
435
- }
436
- }
437
-
438
- declare class TestPagingButtonsStamp extends TestComponent {
439
- private maxDisplayedItems;
440
- private skipOnCategory;
441
- protected createRenderRoot(): this;
442
- constructor();
443
- render(): lit_html.TemplateResult<1>;
444
- }
445
- declare global {
446
- interface HTMLElementTagNameMap {
447
- 'test-paging-buttons-stamp': TestPagingButtonsStamp;
448
- }
449
- }
450
-
451
- type Constructor<T = {}> = new (...args: any[]) => T;
452
- interface QtiItemInterface {
453
- identifier?: string;
454
- href?: string;
455
- xmlDoc: DocumentFragment;
456
- assessmentItem: QtiAssessmentItem | null;
457
- }
458
- declare function QtiItemMixin<T extends Constructor<LitElement>>(Base: T): Constructor<QtiItemInterface> & T;
459
-
460
- declare const QtiItem_base: (new (...args: any[]) => QtiItemInterface) & typeof LitElement;
461
- declare class QtiItem extends QtiItem_base {
462
- connectedCallback(): void;
463
- }
464
- declare global {
465
- interface HTMLElementTagNameMap {
466
- 'qti-item': QtiItem;
467
- }
468
- }
469
-
470
- export { BaseType, ItemContext, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest, QtiBaseValue, QtiConditionExpression, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiExpression, QtiExpressionBase, QtiGt, QtiGte, QtiIsNull, QtiItem, type QtiItemInterface, QtiItemMixin, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPrintedVariable, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiRuleBase, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiTest, QtiTestPart, QtiVariable, ResponseVariable, TestContainer, type TestContext, type TestElement, TestItemLink, TestNext, TestPagingButtonsStamp, TestPrev, TestView, VariableDeclaration, testContext, testElement };