@citolab/qti-components 7.0.8 → 7.0.9-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (545) hide show
  1. package/cdn/chunks/chunk-3AHQU35T.js +1 -0
  2. package/cdn/chunks/chunk-4AGTWY6I.js +1 -0
  3. package/cdn/{chunk-A536ZOJJ.js → chunks/chunk-6EIGTAJQ.js} +2 -4
  4. package/cdn/chunks/chunk-6UEXCXHG.js +17 -0
  5. package/cdn/chunks/chunk-BJL2ZC5L.js +1 -0
  6. package/{dist/chunks/chunk-NZQKGIJP.js → cdn/chunks/chunk-DKMHSSEK.js} +13 -24
  7. package/cdn/chunks/chunk-EG3QNAM6.js +939 -0
  8. package/cdn/chunks/chunk-FB3WTNRH.js +8 -0
  9. package/cdn/chunks/chunk-GCKESRQG.js +1 -0
  10. package/cdn/chunks/{chunk-4ILXLVT5.js → chunk-I5J4YQIW.js} +13 -34
  11. package/cdn/chunks/chunk-IKDNYCM7.js +1 -0
  12. package/cdn/chunks/chunk-KDO3T66B.js +1 -0
  13. package/cdn/chunks/chunk-KQPTKMFJ.js +1 -0
  14. package/cdn/chunks/chunk-M5PPZ5M3.js +59 -0
  15. package/cdn/chunks/chunk-O5MMIBRR.js +10 -0
  16. package/cdn/chunks/chunk-OEXGDZO2.js +8 -0
  17. package/cdn/chunks/{chunk-RXKI3AO4.js → chunk-R45JL2ZY.js} +1 -1
  18. package/cdn/chunks/chunk-W2VSEYLY.js +8 -0
  19. package/cdn/chunks/chunk-WYDU2FBY.js +8 -0
  20. package/cdn/chunks/chunk-X7T7HK65.js +8 -0
  21. package/cdn/chunks/{chunk-X2KBNXRO.js → chunk-YIYKK4RV.js} +1 -1
  22. package/cdn/exports/computed.context.js +1 -0
  23. package/cdn/exports/config.context.js +1 -0
  24. package/cdn/exports/qti-assessment-item.context.js +1 -1
  25. package/cdn/exports/qti-condition-expression.js +1 -1
  26. package/cdn/exports/qti-expression.js +1 -1
  27. package/cdn/exports/session.context.js +1 -0
  28. package/cdn/exports/test.context.js +1 -0
  29. package/cdn/index.global.js +1 -1
  30. package/cdn/index.js +1 -1
  31. package/cdn/qti-components/index.js +1 -1
  32. package/cdn/qti-item/core/index.js +1 -1
  33. package/cdn/qti-test/components/index.js +1 -1
  34. package/cdn/qti-test/components/test-container.js +1 -3549
  35. package/cdn/qti-test/components/test-end-attempt.js +1 -1
  36. package/cdn/qti-test/components/test-item-link.js +1 -1
  37. package/cdn/qti-test/components/test-navigation.js +1 -0
  38. package/cdn/qti-test/components/test-next.js +1 -1
  39. package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
  40. package/cdn/qti-test/components/test-prev.js +1 -1
  41. package/cdn/qti-test/components/test-show-correct-response.js +1 -1
  42. package/cdn/qti-test/components/test-view.js +1 -1
  43. package/cdn/qti-test/core/index.js +1 -1
  44. package/dist/chunks/chunk-3A4IOMBQ.js +8 -0
  45. package/dist/chunks/chunk-3A4IOMBQ.js.map +1 -0
  46. package/dist/chunks/{chunk-E4TWZ2DL.js → chunk-5E4OEZCA.js} +495 -179
  47. package/dist/chunks/chunk-5E4OEZCA.js.map +1 -0
  48. package/dist/chunks/{chunk-J2SHENRN.js → chunk-BH5H7BSS.js} +107 -21
  49. package/dist/chunks/chunk-BH5H7BSS.js.map +1 -0
  50. package/dist/chunks/chunk-CBYNKDSF.js +1 -0
  51. package/dist/chunks/{chunk-WWN5AD6V.js → chunk-CHINL5UJ.js} +12 -7
  52. package/dist/chunks/chunk-CHINL5UJ.js.map +1 -0
  53. package/dist/chunks/{chunk-W4272Q5U.js → chunk-CWCYTL3F.js} +18 -8
  54. package/dist/chunks/chunk-CWCYTL3F.js.map +1 -0
  55. package/dist/chunks/{chunk-GQ5P3NWC.js → chunk-FZVLLSCM.js} +18 -8
  56. package/dist/chunks/chunk-FZVLLSCM.js.map +1 -0
  57. package/dist/chunks/chunk-GNCPECOC.js +45 -0
  58. package/dist/chunks/chunk-GNCPECOC.js.map +1 -0
  59. package/dist/chunks/{chunk-YOXF6JPS.js → chunk-GRYVMG5Q.js} +135 -193
  60. package/dist/chunks/chunk-GRYVMG5Q.js.map +1 -0
  61. package/dist/chunks/{chunk-BPHQLJWE.js → chunk-I7HVKMDI.js} +2 -2
  62. package/dist/chunks/chunk-I7HVKMDI.js.map +1 -0
  63. package/dist/chunks/chunk-J4MM4JXS.js +8 -0
  64. package/dist/chunks/chunk-J4MM4JXS.js.map +1 -0
  65. package/dist/chunks/{chunk-FV7HWK54.js → chunk-JUAS2TVR.js} +1 -1
  66. package/dist/chunks/chunk-JUAS2TVR.js.map +1 -0
  67. package/dist/chunks/chunk-K6EUKFNW.js +43 -0
  68. package/dist/chunks/chunk-K6EUKFNW.js.map +1 -0
  69. package/dist/chunks/chunk-LZ7UIV5O.js +91 -0
  70. package/dist/chunks/chunk-LZ7UIV5O.js.map +1 -0
  71. package/dist/chunks/{chunk-KOEILLVS.js → chunk-NJNQOQUU.js} +1 -1
  72. package/dist/chunks/chunk-NJNQOQUU.js.map +1 -0
  73. package/dist/chunks/chunk-ODLYMQOS.js +8 -0
  74. package/dist/chunks/chunk-ODLYMQOS.js.map +1 -0
  75. package/dist/chunks/{chunk-XSI6FXGD.js → chunk-OOQLWOYU.js} +2 -2
  76. package/dist/chunks/{chunk-NHA53UTY.js → chunk-PR6AZWRP.js} +3 -6
  77. package/dist/chunks/chunk-PR6AZWRP.js.map +1 -0
  78. package/dist/chunks/chunk-QAA6MWGE.js +170 -0
  79. package/dist/chunks/chunk-QAA6MWGE.js.map +1 -0
  80. package/dist/{chunk-2CHF3TMY.js → chunks/chunk-QGPXAPBK.js} +119 -20
  81. package/dist/chunks/chunk-QGPXAPBK.js.map +1 -0
  82. package/dist/chunks/chunk-QTH3WLGY.js +8 -0
  83. package/dist/chunks/chunk-QTH3WLGY.js.map +1 -0
  84. package/dist/chunks/{chunk-DLUJN2FW.js → chunk-W7ZXKJ5O.js} +1 -1
  85. package/dist/chunks/chunk-W7ZXKJ5O.js.map +1 -0
  86. package/dist/chunks/{chunk-OIRWOI3E.js → chunk-WRHEO7NG.js} +1 -1
  87. package/dist/chunks/chunk-WRHEO7NG.js.map +1 -0
  88. package/dist/chunks/chunk-WXART76T.js +95 -0
  89. package/dist/chunks/chunk-WXART76T.js.map +1 -0
  90. package/dist/exports/computed.context.d.ts +30 -0
  91. package/dist/exports/computed.context.js +8 -0
  92. package/dist/exports/config.context.d.ts +8 -0
  93. package/dist/exports/config.context.js +8 -0
  94. package/dist/exports/interaction.js +1 -1
  95. package/dist/exports/item.context.d.ts +3 -3
  96. package/dist/exports/item.context.js +1 -1
  97. package/dist/exports/qti-assessment-item.context.d.ts +1 -1
  98. package/dist/exports/qti-assessment-item.context.js +1 -1
  99. package/dist/exports/qti-condition-expression.d.ts +1 -1
  100. package/dist/exports/qti-condition-expression.js +3 -3
  101. package/dist/exports/qti-expression.d.ts +1 -1
  102. package/dist/exports/qti-expression.js +2 -2
  103. package/dist/exports/session.context.d.ts +12 -0
  104. package/dist/exports/session.context.js +8 -0
  105. package/dist/exports/test.context.d.ts +16 -0
  106. package/dist/exports/test.context.js +8 -0
  107. package/dist/exports/variables.d.ts +1 -1
  108. package/dist/index.d.ts +11 -6
  109. package/dist/index.js +62 -55
  110. package/dist/item.css +7 -16
  111. package/dist/qti-components/index.d.ts +44 -26
  112. package/dist/qti-components/index.js +11 -7
  113. package/dist/qti-components-jsx.d.ts +144 -86
  114. package/dist/qti-item/core/index.js +2 -3
  115. package/dist/qti-loader/index.d.ts +2 -2
  116. package/dist/qti-loader/index.js +1 -1
  117. package/dist/{qti-response-declaration-Di9CsqiJ.d.ts → qti-response-declaration-CESClJ3_.d.ts} +7 -3
  118. package/dist/qti-test/components/index.d.ts +11 -5
  119. package/dist/qti-test/components/index.js +28 -19
  120. package/dist/qti-test/components/test-container.d.ts +3 -1
  121. package/dist/qti-test/components/test-container.js +6 -3778
  122. package/dist/qti-test/components/test-container.js.map +1 -1
  123. package/dist/qti-test/components/test-end-attempt.d.ts +4 -11
  124. package/dist/qti-test/components/test-end-attempt.js +3 -5
  125. package/dist/qti-test/components/test-item-link.d.ts +2 -11
  126. package/dist/qti-test/components/test-item-link.js +1 -5
  127. package/dist/qti-test/components/test-navigation.d.ts +35 -0
  128. package/dist/qti-test/components/test-navigation.js +12 -0
  129. package/dist/qti-test/components/test-navigation.js.map +1 -0
  130. package/dist/qti-test/components/test-next.d.ts +12 -12
  131. package/dist/qti-test/components/test-next.js +4 -4
  132. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +8 -15
  133. package/dist/qti-test/components/test-paging-buttons-stamp.js +2 -5
  134. package/dist/qti-test/components/test-prev.d.ts +11 -12
  135. package/dist/qti-test/components/test-prev.js +4 -4
  136. package/dist/qti-test/components/test-show-correct-response.d.ts +4 -11
  137. package/dist/qti-test/components/test-show-correct-response.js +3 -5
  138. package/dist/qti-test/components/test-view.d.ts +3 -12
  139. package/dist/qti-test/components/test-view.js +2 -4
  140. package/dist/qti-test/core/index.d.ts +18 -48
  141. package/dist/qti-test/core/index.js +7 -12
  142. package/dist/{test.context-C2LBA3w4.d.ts → qti-test-part-BAM_WUTL.d.ts} +17 -33
  143. package/dist/{variables-cO3DzqJy.d.ts → variables-DNDfraER.d.ts} +14 -1
  144. package/dist/vscode.html-custom-data.json +49 -30
  145. package/package.json +20 -19
  146. package/cdn/chunk-4DFVJE2A.js +0 -48
  147. package/cdn/chunk-4I75QSIL.js +0 -8
  148. package/cdn/chunk-5WCOPF7O.js +0 -73
  149. package/cdn/chunk-66PERJA3.js +0 -939
  150. package/cdn/chunk-6WNSQ7U6.js +0 -939
  151. package/cdn/chunk-AT2C24P4.js +0 -8
  152. package/cdn/chunk-BLKKKK6C.js +0 -11
  153. package/cdn/chunk-DC2R556M.js +0 -5
  154. package/cdn/chunk-GALSGMIP.js +0 -5
  155. package/cdn/chunk-IXSX4SJX.js +0 -1
  156. package/cdn/chunk-KYOTSBCX.js +0 -1
  157. package/cdn/chunk-L4TDHAKL.js +0 -24
  158. package/cdn/chunk-LVW3MHTI.js +0 -23
  159. package/cdn/chunk-M6AATWPS.js +0 -59
  160. package/cdn/chunk-MFWSHIPH.js +0 -17
  161. package/cdn/chunk-QGKK4T2J.js +0 -8
  162. package/cdn/chunk-ROXN2HIJ.js +0 -8
  163. package/cdn/chunk-SQDSHH6N.js +0 -3539
  164. package/cdn/chunk-TJMODUN5.js +0 -8
  165. package/cdn/chunk-VI2WKTN4.js +0 -1
  166. package/cdn/chunk-Z6SKK5ZX.js +0 -8
  167. package/cdn/chunks/chunk-3GO57DNP.js +0 -0
  168. package/cdn/chunks/chunk-3V6LA7B3.js +0 -8
  169. package/cdn/chunks/chunk-4PEUIMDK.js +0 -8
  170. package/cdn/chunks/chunk-4WXQYE2P.js +0 -8
  171. package/cdn/chunks/chunk-5P7CTN7Q.js +0 -11
  172. package/cdn/chunks/chunk-5X76K77R.js +0 -8
  173. package/cdn/chunks/chunk-6MCYE7P5.js +0 -1
  174. package/cdn/chunks/chunk-6PW2L463.js +0 -0
  175. package/cdn/chunks/chunk-6S4CDN3T.js +0 -43
  176. package/cdn/chunks/chunk-76VGZJCP.js +0 -934
  177. package/cdn/chunks/chunk-7RBGYKOX.js +0 -5
  178. package/cdn/chunks/chunk-7XYBFL7U.js +0 -934
  179. package/cdn/chunks/chunk-AJJJAZWM.js +0 -1
  180. package/cdn/chunks/chunk-ANDPD7F2.js +0 -5
  181. package/cdn/chunks/chunk-ARHBUT6F.js +0 -5
  182. package/cdn/chunks/chunk-AUHO2E7V.js +0 -934
  183. package/cdn/chunks/chunk-CZ3CSGCE.js +0 -934
  184. package/cdn/chunks/chunk-D3GR6AUG.js +0 -43
  185. package/cdn/chunks/chunk-DZCKF45D.js +0 -5
  186. package/cdn/chunks/chunk-EFU4L43Q.js +0 -8
  187. package/cdn/chunks/chunk-FM5C34DM.js +0 -934
  188. package/cdn/chunks/chunk-FRS2J3OS.js +0 -59
  189. package/cdn/chunks/chunk-GMK2YRB2.js +0 -934
  190. package/cdn/chunks/chunk-H2V2RXUW.js +0 -11
  191. package/cdn/chunks/chunk-HUMOYGEM.js +0 -43
  192. package/cdn/chunks/chunk-IMJOPCFR.js +0 -1
  193. package/cdn/chunks/chunk-IQZ7AOCQ.js +0 -8
  194. package/cdn/chunks/chunk-J3JSSCM6.js +0 -5
  195. package/cdn/chunks/chunk-KHLUVO6Y.js +0 -8
  196. package/cdn/chunks/chunk-LARBLB7K.js +0 -8
  197. package/cdn/chunks/chunk-LNFCEHB3.js +0 -934
  198. package/cdn/chunks/chunk-MJMONWKB.js +0 -3539
  199. package/cdn/chunks/chunk-N5OHGRGG.js +0 -8
  200. package/cdn/chunks/chunk-NDHSIO2G.js +0 -8
  201. package/cdn/chunks/chunk-NRY3WHJD.js +0 -5
  202. package/cdn/chunks/chunk-PKT2SJQD.js +0 -8
  203. package/cdn/chunks/chunk-PPWEIKLT.js +0 -1
  204. package/cdn/chunks/chunk-PT523RSK.js +0 -8
  205. package/cdn/chunks/chunk-QD3NT5PG.js +0 -934
  206. package/cdn/chunks/chunk-QTK4CPHP.js +0 -8
  207. package/cdn/chunks/chunk-QV6I5NVQ.js +0 -8
  208. package/cdn/chunks/chunk-R33OODNX.js +0 -1
  209. package/cdn/chunks/chunk-RIXTWE2H.js +0 -8
  210. package/cdn/chunks/chunk-ROZIP5LG.js +0 -8
  211. package/cdn/chunks/chunk-RPZVSBLM.js +0 -8
  212. package/cdn/chunks/chunk-SATSEEWJ.js +0 -934
  213. package/cdn/chunks/chunk-SXM25YH3.js +0 -934
  214. package/cdn/chunks/chunk-T2KKTMAT.js +0 -934
  215. package/cdn/chunks/chunk-TEYXRLTI.js +0 -8
  216. package/cdn/chunks/chunk-TQBDBMWL.js +0 -5
  217. package/cdn/chunks/chunk-TV3SPOLH.js +0 -8
  218. package/cdn/chunks/chunk-TVDTF6P6.js +0 -934
  219. package/cdn/chunks/chunk-U2TE6TOV.js +0 -934
  220. package/cdn/chunks/chunk-W5Y3ZU2W.js +0 -5
  221. package/cdn/chunks/chunk-WPGJ54IP.js +0 -1
  222. package/cdn/chunks/chunk-YHWMZAZD.js +0 -43
  223. package/cdn/chunks/chunk-YVZ742ID.js +0 -934
  224. package/cdn/chunks/chunk-YWH4TGMA.js +0 -5
  225. package/cdn/chunks/chunk-YXR6KSZI.js +0 -11
  226. package/cdn/qti-components/index.global.js +0 -226
  227. package/cdn/qti-item/components/index.global.js +0 -149
  228. package/cdn/qti-item/components/index.js +0 -3549
  229. package/cdn/qti-item/components/item-container.global.js +0 -149
  230. package/cdn/qti-item/components/item-container.js +0 -3549
  231. package/cdn/qti-item/core/index.global.js +0 -149
  232. package/cdn/qti-item/index.global.js +0 -149
  233. package/cdn/qti-item/index.js +0 -3549
  234. package/cdn/qti-item/qti-item.global.js +0 -114
  235. package/cdn/qti-item/qti-item.js +0 -1
  236. package/cdn/qti-loader/index.global.js +0 -1
  237. package/cdn/qti-test/components/index.global.js +0 -207
  238. package/cdn/qti-test/components/styles.global.js +0 -44
  239. package/cdn/qti-test/components/test-component.abstract.global.js +0 -170
  240. package/cdn/qti-test/components/test-component.abstract.js +0 -1
  241. package/cdn/qti-test/components/test-container.global.js +0 -149
  242. package/cdn/qti-test/components/test-item-link.global.js +0 -170
  243. package/cdn/qti-test/components/test-next.global.js +0 -170
  244. package/cdn/qti-test/components/test-next.spec.css +0 -1
  245. package/cdn/qti-test/components/test-next.spec.global.js +0 -64
  246. package/cdn/qti-test/components/test-next.spec.js +0 -713
  247. package/cdn/qti-test/components/test-paging-buttons-stamp.global.js +0 -207
  248. package/cdn/qti-test/components/test-prev.global.js +0 -170
  249. package/cdn/qti-test/components/test-view.global.js +0 -170
  250. package/cdn/qti-test/context/index.global.js +0 -58
  251. package/cdn/qti-test/context/index.js +0 -1
  252. package/cdn/qti-test/context/test.context.global.js +0 -58
  253. package/cdn/qti-test/context/test.context.js +0 -1
  254. package/cdn/qti-test/core/index.global.js +0 -205
  255. package/cdn/qti-test/index.global.js +0 -242
  256. package/cdn/qti-test/index.js +0 -3598
  257. package/cdn/qti-test/mixins/index.global.js +0 -1
  258. package/cdn/qti-test/mixins/index.js +0 -23
  259. package/cdn/qti-test/mixins/test-loader.mixin.global.js +0 -1
  260. package/cdn/qti-test/mixins/test-loader.mixin.js +0 -23
  261. package/cdn/qti-test/mixins/test-navigation.mixin.global.js +0 -1
  262. package/cdn/qti-test/mixins/test-navigation.mixin.js +0 -1
  263. package/cdn/qti-test/mixins/test-view.mixin.global.js +0 -1
  264. package/cdn/qti-test/mixins/test-view.mixin.js +0 -1
  265. package/cdn/qti-test/qti-assessment-test/index.global.js +0 -170
  266. package/cdn/qti-test/qti-assessment-test/index.js +0 -1
  267. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.global.js +0 -170
  268. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.js +0 -1
  269. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.global.js +0 -170
  270. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.js +0 -1
  271. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.global.js +0 -170
  272. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.js +0 -1
  273. package/cdn/qti-test/qti-assessment-test/qti-test-part.global.js +0 -114
  274. package/cdn/qti-test/qti-assessment-test/qti-test-part.js +0 -1
  275. package/cdn/qti-test/qti-test.global.js +0 -170
  276. package/cdn/qti-test/qti-test.js +0 -23
  277. package/cdn/qti-test/test-base.global.js +0 -170
  278. package/cdn/qti-test/test-base.js +0 -1
  279. package/cdn/qti-transformers/index.global.js +0 -1
  280. package/dist/chunk-2CHF3TMY.js.map +0 -1
  281. package/dist/chunk-2LWLX7WV.js +0 -6307
  282. package/dist/chunk-2LWLX7WV.js.map +0 -1
  283. package/dist/chunk-2OA7E3E7.js +0 -294
  284. package/dist/chunk-2OA7E3E7.js.map +0 -1
  285. package/dist/chunk-3G364JZC.js +0 -72
  286. package/dist/chunk-3G364JZC.js.map +0 -1
  287. package/dist/chunk-44VE5POH.js +0 -55
  288. package/dist/chunk-4YG2FPKK.js +0 -31
  289. package/dist/chunk-4YG2FPKK.js.map +0 -1
  290. package/dist/chunk-6TUE644E.js +0 -569
  291. package/dist/chunk-6TUE644E.js.map +0 -1
  292. package/dist/chunk-6ZMD232X.js +0 -78
  293. package/dist/chunk-6ZMD232X.js.map +0 -1
  294. package/dist/chunk-AYRSHIHA.js +0 -50
  295. package/dist/chunk-AYRSHIHA.js.map +0 -1
  296. package/dist/chunk-BN32D5J2.js +0 -43
  297. package/dist/chunk-BN32D5J2.js.map +0 -1
  298. package/dist/chunk-CJRXRBRQ.js +0 -50
  299. package/dist/chunk-CJRXRBRQ.js.map +0 -1
  300. package/dist/chunk-GPJ6WTE5.js +0 -118
  301. package/dist/chunk-GPJ6WTE5.js.map +0 -1
  302. package/dist/chunk-KAUHKHPH.js +0 -50
  303. package/dist/chunk-KAUHKHPH.js.map +0 -1
  304. package/dist/chunk-MAC76UNI.js +0 -1
  305. package/dist/chunk-QYN5S4EM.js +0 -107
  306. package/dist/chunk-QYN5S4EM.js.map +0 -1
  307. package/dist/chunk-UB5K44DB.js +0 -30
  308. package/dist/chunk-UB5K44DB.js.map +0 -1
  309. package/dist/chunk-UJTJIU3C.js +0 -43
  310. package/dist/chunk-UJTJIU3C.js.map +0 -1
  311. package/dist/chunk-XVQZ5JI5.js +0 -50
  312. package/dist/chunk-XVQZ5JI5.js.map +0 -1
  313. package/dist/chunk-XW3PQRKW.js +0 -6306
  314. package/dist/chunk-XW3PQRKW.js.map +0 -1
  315. package/dist/chunk-YQ7EXOAK.js +0 -10
  316. package/dist/chunk-YQ7EXOAK.js.map +0 -1
  317. package/dist/chunks/chunk-2V6LQV2K.js +0 -50
  318. package/dist/chunks/chunk-2V6LQV2K.js.map +0 -1
  319. package/dist/chunks/chunk-3EU75IUF.js +0 -118
  320. package/dist/chunks/chunk-3EU75IUF.js.map +0 -1
  321. package/dist/chunks/chunk-3QQFMVDS.js +0 -118
  322. package/dist/chunks/chunk-3QQFMVDS.js.map +0 -1
  323. package/dist/chunks/chunk-4GNVYCBN.js +0 -627
  324. package/dist/chunks/chunk-4GNVYCBN.js.map +0 -1
  325. package/dist/chunks/chunk-4MQV5IRV.js +0 -59
  326. package/dist/chunks/chunk-4MQV5IRV.js.map +0 -1
  327. package/dist/chunks/chunk-4WVLWWYJ.js +0 -50
  328. package/dist/chunks/chunk-4WVLWWYJ.js.map +0 -1
  329. package/dist/chunks/chunk-5KVGRLYT.js +0 -10
  330. package/dist/chunks/chunk-5KVGRLYT.js.map +0 -1
  331. package/dist/chunks/chunk-5PCD2B62.js +0 -6091
  332. package/dist/chunks/chunk-5PCD2B62.js.map +0 -1
  333. package/dist/chunks/chunk-5RTLOB3Q.js +0 -59
  334. package/dist/chunks/chunk-5RTLOB3Q.js.map +0 -1
  335. package/dist/chunks/chunk-6JXR63MH.js +0 -50
  336. package/dist/chunks/chunk-6JXR63MH.js.map +0 -1
  337. package/dist/chunks/chunk-6PAEJQSQ.js +0 -6058
  338. package/dist/chunks/chunk-6PAEJQSQ.js.map +0 -1
  339. package/dist/chunks/chunk-6QT4LIPL.js +0 -623
  340. package/dist/chunks/chunk-6QT4LIPL.js.map +0 -1
  341. package/dist/chunks/chunk-7QMCKYDR.js +0 -43
  342. package/dist/chunks/chunk-7QMCKYDR.js.map +0 -1
  343. package/dist/chunks/chunk-A24F75DB.js +0 -72
  344. package/dist/chunks/chunk-A24F75DB.js.map +0 -1
  345. package/dist/chunks/chunk-AUWATZ65.js +0 -10
  346. package/dist/chunks/chunk-AUWATZ65.js.map +0 -1
  347. package/dist/chunks/chunk-AXTEKPP5.js +0 -6084
  348. package/dist/chunks/chunk-AXTEKPP5.js.map +0 -1
  349. package/dist/chunks/chunk-B6MJCAOF.js +0 -6063
  350. package/dist/chunks/chunk-B6MJCAOF.js.map +0 -1
  351. package/dist/chunks/chunk-BJ2JLJIJ.js +0 -623
  352. package/dist/chunks/chunk-BJ2JLJIJ.js.map +0 -1
  353. package/dist/chunks/chunk-BPHQLJWE.js.map +0 -1
  354. package/dist/chunks/chunk-CD3E4M5Y.js +0 -107
  355. package/dist/chunks/chunk-CD3E4M5Y.js.map +0 -1
  356. package/dist/chunks/chunk-CEXAR7BF.js +0 -52
  357. package/dist/chunks/chunk-CEXAR7BF.js.map +0 -1
  358. package/dist/chunks/chunk-CWYAQA25.js +0 -6067
  359. package/dist/chunks/chunk-CWYAQA25.js.map +0 -1
  360. package/dist/chunks/chunk-D3QX5N57.js +0 -6117
  361. package/dist/chunks/chunk-D3QX5N57.js.map +0 -1
  362. package/dist/chunks/chunk-DLUJN2FW.js.map +0 -1
  363. package/dist/chunks/chunk-DNHDFXTV.js +0 -59
  364. package/dist/chunks/chunk-DNHDFXTV.js.map +0 -1
  365. package/dist/chunks/chunk-E4TWZ2DL.js.map +0 -1
  366. package/dist/chunks/chunk-FV7HWK54.js.map +0 -1
  367. package/dist/chunks/chunk-GQ5P3NWC.js.map +0 -1
  368. package/dist/chunks/chunk-GSWZT6N2.js +0 -50
  369. package/dist/chunks/chunk-GSWZT6N2.js.map +0 -1
  370. package/dist/chunks/chunk-HHVRU3AJ.js +0 -107
  371. package/dist/chunks/chunk-HHVRU3AJ.js.map +0 -1
  372. package/dist/chunks/chunk-HOTNM5DT.js +0 -1
  373. package/dist/chunks/chunk-IWG66KQQ.js +0 -107
  374. package/dist/chunks/chunk-IWG66KQQ.js.map +0 -1
  375. package/dist/chunks/chunk-J2SHENRN.js.map +0 -1
  376. package/dist/chunks/chunk-K6ATVWMP.js +0 -6091
  377. package/dist/chunks/chunk-K6ATVWMP.js.map +0 -1
  378. package/dist/chunks/chunk-KOEILLVS.js.map +0 -1
  379. package/dist/chunks/chunk-KYAIMBP5.js +0 -78
  380. package/dist/chunks/chunk-KYAIMBP5.js.map +0 -1
  381. package/dist/chunks/chunk-LNISKMIL.js +0 -6063
  382. package/dist/chunks/chunk-LNISKMIL.js.map +0 -1
  383. package/dist/chunks/chunk-LNKJEW5E.js +0 -627
  384. package/dist/chunks/chunk-LNKJEW5E.js.map +0 -1
  385. package/dist/chunks/chunk-LXJA3VP2.js +0 -72
  386. package/dist/chunks/chunk-LXJA3VP2.js.map +0 -1
  387. package/dist/chunks/chunk-MLT7V47R.js +0 -100
  388. package/dist/chunks/chunk-MLT7V47R.js.map +0 -1
  389. package/dist/chunks/chunk-N5FPZNMX.js +0 -43
  390. package/dist/chunks/chunk-N5FPZNMX.js.map +0 -1
  391. package/dist/chunks/chunk-NHA53UTY.js.map +0 -1
  392. package/dist/chunks/chunk-NZQKGIJP.js.map +0 -1
  393. package/dist/chunks/chunk-O6WEZVEM.js +0 -43
  394. package/dist/chunks/chunk-O6WEZVEM.js.map +0 -1
  395. package/dist/chunks/chunk-OIRWOI3E.js.map +0 -1
  396. package/dist/chunks/chunk-PWOY6REC.js +0 -6064
  397. package/dist/chunks/chunk-PWOY6REC.js.map +0 -1
  398. package/dist/chunks/chunk-QJELKGWM.js +0 -6061
  399. package/dist/chunks/chunk-QJELKGWM.js.map +0 -1
  400. package/dist/chunks/chunk-QUB54PXZ.js +0 -50
  401. package/dist/chunks/chunk-QUB54PXZ.js.map +0 -1
  402. package/dist/chunks/chunk-RX3BRYYI.js +0 -59
  403. package/dist/chunks/chunk-RX3BRYYI.js.map +0 -1
  404. package/dist/chunks/chunk-UEEMM6H2.js +0 -6090
  405. package/dist/chunks/chunk-UEEMM6H2.js.map +0 -1
  406. package/dist/chunks/chunk-UFYWCLXF.js +0 -10
  407. package/dist/chunks/chunk-UFYWCLXF.js.map +0 -1
  408. package/dist/chunks/chunk-UN2IFSGC.js +0 -1
  409. package/dist/chunks/chunk-VAPB5TN4.js +0 -46
  410. package/dist/chunks/chunk-VAPB5TN4.js.map +0 -1
  411. package/dist/chunks/chunk-VBF3GCZK.js +0 -50
  412. package/dist/chunks/chunk-VBF3GCZK.js.map +0 -1
  413. package/dist/chunks/chunk-W4272Q5U.js.map +0 -1
  414. package/dist/chunks/chunk-WWN5AD6V.js.map +0 -1
  415. package/dist/chunks/chunk-X226BX2U.js +0 -78
  416. package/dist/chunks/chunk-X226BX2U.js.map +0 -1
  417. package/dist/chunks/chunk-XCHS3RTZ.js +0 -107
  418. package/dist/chunks/chunk-XCHS3RTZ.js.map +0 -1
  419. package/dist/chunks/chunk-YFC3BVN2.js +0 -78
  420. package/dist/chunks/chunk-YFC3BVN2.js.map +0 -1
  421. package/dist/chunks/chunk-YOXF6JPS.js.map +0 -1
  422. package/dist/chunks/chunk-YQB6YLNW.js +0 -78
  423. package/dist/chunks/chunk-YQB6YLNW.js.map +0 -1
  424. package/dist/chunks/chunk-Z5THRO6Z.js +0 -46
  425. package/dist/chunks/chunk-Z5THRO6Z.js.map +0 -1
  426. package/dist/chunks/chunk-ZHAJ3CMP.js +0 -6091
  427. package/dist/chunks/chunk-ZHAJ3CMP.js.map +0 -1
  428. package/dist/chunks/chunk-ZPNJ2HP5.js +0 -71
  429. package/dist/chunks/chunk-ZPNJ2HP5.js.map +0 -1
  430. package/dist/chunks/chunk-ZQXZ6PK7.js +0 -649
  431. package/dist/chunks/chunk-ZQXZ6PK7.js.map +0 -1
  432. package/dist/custom-element-eslint-rules.js +0 -337
  433. package/dist/custom-elements.json +0 -27158
  434. package/dist/loader/index.d.ts +0 -20
  435. package/dist/loader/index.js +0 -310
  436. package/dist/loader/index.js.map +0 -1
  437. package/dist/qti-components/index.cjs +0 -6773
  438. package/dist/qti-components/index.cjs.map +0 -1
  439. package/dist/qti-components/index.d.cts +0 -150
  440. package/dist/qti-item/components/index.d.ts +0 -3
  441. package/dist/qti-item/components/index.js +0 -3856
  442. package/dist/qti-item/components/index.js.map +0 -1
  443. package/dist/qti-item/components/item-container.d.ts +0 -40
  444. package/dist/qti-item/components/item-container.js +0 -3856
  445. package/dist/qti-item/components/item-container.js.map +0 -1
  446. package/dist/qti-item/index.cjs +0 -89
  447. package/dist/qti-item/index.cjs.map +0 -1
  448. package/dist/qti-item/index.d.cts +0 -24
  449. package/dist/qti-item/index.d.ts +0 -4
  450. package/dist/qti-item/index.js +0 -3869
  451. package/dist/qti-item/index.js.map +0 -1
  452. package/dist/qti-item/qti-item.d.ts +0 -25
  453. package/dist/qti-item/qti-item.js +0 -26
  454. package/dist/qti-item/qti-item.js.map +0 -1
  455. package/dist/qti-loader/index.cjs +0 -332
  456. package/dist/qti-loader/index.cjs.map +0 -1
  457. package/dist/qti-loader/index.d.cts +0 -20
  458. package/dist/qti-response-declaration-DAeBp8HH.d.ts +0 -1008
  459. package/dist/qti-response-declaration-ucAqd0qK.d.ts +0 -1034
  460. package/dist/qti-simple-choice-3M44uWiN.d.ts +0 -1153
  461. package/dist/qti-simple-choice-B5GnzbqW.d.ts +0 -1080
  462. package/dist/qti-simple-choice-BOLF9wXz.d.ts +0 -1170
  463. package/dist/qti-simple-choice-BeixIkA0.d.ts +0 -1088
  464. package/dist/qti-simple-choice-BiEjEO6s.d.ts +0 -1152
  465. package/dist/qti-simple-choice-Bo_ikO6H.d.ts +0 -1198
  466. package/dist/qti-simple-choice-C0CcrtK5.d.ts +0 -1169
  467. package/dist/qti-simple-choice-Cgh1-Jbr.d.cts +0 -1185
  468. package/dist/qti-simple-choice-Cgh1-Jbr.d.ts +0 -1185
  469. package/dist/qti-simple-choice-Cn5y-Ta8.d.ts +0 -1158
  470. package/dist/qti-simple-choice-D0GiMrqD.d.ts +0 -1168
  471. package/dist/qti-simple-choice-DxWcdKHi.d.ts +0 -1158
  472. package/dist/qti-simple-choice-R_LxBTp8.d.ts +0 -1158
  473. package/dist/qti-simple-choice-hAIyfF0z.d.ts +0 -1114
  474. package/dist/qti-simple-choice-o4rje1RA.d.ts +0 -1176
  475. package/dist/qti-simple-choice-v2GxpPNh.d.ts +0 -1181
  476. package/dist/qti-test/components/test-component.abstract.d.ts +0 -26
  477. package/dist/qti-test/components/test-component.abstract.js +0 -11
  478. package/dist/qti-test/components/test-next.spec.css +0 -2481
  479. package/dist/qti-test/components/test-next.spec.css.map +0 -1
  480. package/dist/qti-test/components/test-next.spec.d.ts +0 -13
  481. package/dist/qti-test/components/test-next.spec.js +0 -45904
  482. package/dist/qti-test/components/test-next.spec.js.map +0 -1
  483. package/dist/qti-test/context/index.d.ts +0 -6
  484. package/dist/qti-test/context/index.js +0 -9
  485. package/dist/qti-test/context/index.js.map +0 -1
  486. package/dist/qti-test/context/test.context.d.ts +0 -6
  487. package/dist/qti-test/context/test.context.js +0 -9
  488. package/dist/qti-test/context/test.context.js.map +0 -1
  489. package/dist/qti-test/index.cjs +0 -4823
  490. package/dist/qti-test/index.cjs.map +0 -1
  491. package/dist/qti-test/index.d.cts +0 -304
  492. package/dist/qti-test/index.d.ts +0 -14
  493. package/dist/qti-test/index.js +0 -4746
  494. package/dist/qti-test/index.js.map +0 -1
  495. package/dist/qti-test/mixins/index.d.ts +0 -8
  496. package/dist/qti-test/mixins/index.js +0 -350
  497. package/dist/qti-test/mixins/index.js.map +0 -1
  498. package/dist/qti-test/mixins/test-loader.mixin.d.ts +0 -8
  499. package/dist/qti-test/mixins/test-loader.mixin.js +0 -240
  500. package/dist/qti-test/mixins/test-loader.mixin.js.map +0 -1
  501. package/dist/qti-test/mixins/test-navigation.mixin.d.ts +0 -22
  502. package/dist/qti-test/mixins/test-navigation.mixin.js +0 -64
  503. package/dist/qti-test/mixins/test-navigation.mixin.js.map +0 -1
  504. package/dist/qti-test/mixins/test-view.mixin.d.ts +0 -6
  505. package/dist/qti-test/mixins/test-view.mixin.js +0 -50
  506. package/dist/qti-test/mixins/test-view.mixin.js.map +0 -1
  507. package/dist/qti-test/qti-assessment-test/index.d.ts +0 -6
  508. package/dist/qti-test/qti-assessment-test/index.js +0 -221
  509. package/dist/qti-test/qti-assessment-test/index.js.map +0 -1
  510. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.d.ts +0 -6
  511. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js +0 -85
  512. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js.map +0 -1
  513. package/dist/qti-test/qti-assessment-test/qti-assessment-section.d.ts +0 -6
  514. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js +0 -73
  515. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js.map +0 -1
  516. package/dist/qti-test/qti-assessment-test/qti-assessment-test.d.ts +0 -6
  517. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js +0 -54
  518. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js.map +0 -1
  519. package/dist/qti-test/qti-assessment-test/qti-test-part.d.ts +0 -19
  520. package/dist/qti-test/qti-assessment-test/qti-test-part.js +0 -62
  521. package/dist/qti-test/qti-assessment-test/qti-test-part.js.map +0 -1
  522. package/dist/qti-test/qti-test.d.ts +0 -68
  523. package/dist/qti-test/qti-test.js +0 -500
  524. package/dist/qti-test/qti-test.js.map +0 -1
  525. package/dist/qti-test/test-base.d.ts +0 -6
  526. package/dist/qti-test/test-base.js +0 -137
  527. package/dist/qti-test/test-base.js.map +0 -1
  528. package/dist/qti-transformers/index.cjs +0 -316
  529. package/dist/qti-transformers/index.cjs.map +0 -1
  530. package/dist/qti-transformers/index.d.cts +0 -75
  531. package/dist/test-base-BJwG9Ie8.d.ts +0 -109
  532. package/dist/test.context-Bx-606B3.d.ts +0 -99
  533. package/dist/test.context-CB5V4xJz.d.ts +0 -99
  534. package/dist/test.context-CaENAJNk.d.ts +0 -101
  535. package/dist/test.context-CmsDQ8k2.d.ts +0 -99
  536. package/dist/transformers/index.d.ts +0 -76
  537. package/dist/transformers/index.js +0 -293
  538. package/dist/transformers/index.js.map +0 -1
  539. /package/cdn/{chunk-22HAPLRD.js → chunks/chunk-MTNLMWSG.js} +0 -0
  540. /package/dist/{chunk-44VE5POH.js.map → chunks/chunk-CBYNKDSF.js.map} +0 -0
  541. /package/dist/chunks/{chunk-XSI6FXGD.js.map → chunk-OOQLWOYU.js.map} +0 -0
  542. /package/dist/{chunk-MAC76UNI.js.map → exports/computed.context.js.map} +0 -0
  543. /package/dist/{chunks/chunk-HOTNM5DT.js.map → exports/config.context.js.map} +0 -0
  544. /package/dist/{chunks/chunk-UN2IFSGC.js.map → exports/session.context.js.map} +0 -0
  545. /package/dist/{qti-test/components/test-component.abstract.js.map → exports/test.context.js.map} +0 -0
@@ -1,1152 +0,0 @@
1
- import * as lit_html from 'lit-html';
2
- import * as lit from 'lit';
3
- import { LitElement, CSSResultGroup, PropertyValueMap } from 'lit';
4
- import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
5
-
6
- interface directedPair {
7
- destination: string;
8
- source: string;
9
- }
10
- interface ResponseInteraction {
11
- responseIdentifier: string;
12
- response: string | string[];
13
- }
14
- interface Calculate {
15
- calculate: () => string | string[];
16
- }
17
- type float = number;
18
- type integer = number;
19
- type BaseType = 'boolean' | 'directedPair' | 'duration' | 'float' | 'integer' | 'string' | 'identifier' | 'pair';
20
- type Multiple = string | string[][];
21
- type Ordered = string | string[][];
22
- type Cardinality = 'multiple' | 'ordered' | 'single';
23
-
24
- interface OutcomeChangedDetails {
25
- item: string;
26
- outcomeIdentifier: string;
27
- value: Readonly<string | string[]>;
28
- }
29
- type InteractionChangedDetails = ResponseInteraction & {
30
- item: string;
31
- };
32
-
33
- type QtiInteractionChanged = CustomEvent<InteractionChangedDetails>;
34
- declare global {
35
- interface GlobalEventHandlersEventMap {
36
- 'qti-interaction-changed': QtiInteractionChanged;
37
- }
38
- }
39
-
40
- type QtiOutcomeChanged = CustomEvent<OutcomeChangedDetails>;
41
- declare global {
42
- interface GlobalEventHandlersEventMap {
43
- 'qti-outcome-changed': QtiOutcomeChanged;
44
- }
45
- }
46
-
47
- declare class QtiMapping extends LitElement {
48
- defaultValue: number;
49
- lowerBound: number;
50
- upperBound: number;
51
- get mapEntries(): {
52
- mapKey: string;
53
- mappedValue: number;
54
- }[];
55
- }
56
-
57
- interface VariableValue<T> {
58
- identifier: string;
59
- value: Readonly<T>;
60
- type: 'outcome' | 'response';
61
- }
62
- interface VariableDeclaration<T> extends VariableValue<T> {
63
- cardinality?: Cardinality;
64
- baseType?: BaseType;
65
- }
66
- interface OutcomeVariable extends VariableDeclaration<string | string[] | null> {
67
- interpolationTable?: Map<number, number>;
68
- externalScored?: 'human' | 'externalMachine' | null;
69
- }
70
- interface ResponseVariable extends VariableDeclaration<string | string[] | null> {
71
- candidateResponse?: string | string[] | null;
72
- mapping?: QtiMapping;
73
- correctResponse?: string | string[] | null;
74
- }
75
-
76
- /**
77
- * @summary The qti-assessment-item element contains all the other QTI 3 item structures.
78
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.dltnnj87l0yj
79
- * @status stable
80
- * @since 4.0
81
- *
82
- * @dependency qti-feedback
83
- * @dependency qti-responseprocessing
84
- *
85
- * @slot - The default slot where all the other QTI 3 item structures go.
86
- *
87
- * @event qti-interaction-changed - Emitted when an interaction is changed.
88
- * @event qti-outcome-changed - Emitted when an outcome has changed.
89
- * @event qti-response-processing - Emitted when response-processing is called.
90
- *
91
- */
92
- declare class QtiAssessmentItem extends LitElement {
93
- title: string;
94
- identifier: string;
95
- adaptive: 'true' | 'false';
96
- timeDependent: 'true' | 'false' | null;
97
- disabled: boolean;
98
- _handleDisabledChange: (_: boolean, disabled: boolean) => void;
99
- readonly: boolean;
100
- _handleReadonlyChange: (_: boolean, readonly: boolean) => void;
101
- private _context;
102
- get variables(): VariableValue<string | string[] | null>[];
103
- set variables(value: VariableValue<string | string[] | null>[]);
104
- private _initialContext;
105
- private _feedbackElements;
106
- private _interactionElements;
107
- connectedCallback(): Promise<void>;
108
- /** @deprecated use variables property instead */
109
- set responses(myResponses: ResponseInteraction[]);
110
- render(): lit_html.TemplateResult<1>;
111
- constructor();
112
- showCorrectResponse(show: boolean): void;
113
- processResponse(countNumAttempts?: boolean): boolean;
114
- resetResponses(): void;
115
- getResponse(identifier: string): Readonly<ResponseVariable>;
116
- getOutcome(identifier: string): Readonly<OutcomeVariable>;
117
- getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;
118
- private handleUpdateResponseVariable;
119
- updateResponseVariable(identifier: string, value: string | string[] | undefined): void;
120
- updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
121
- validate(): boolean | null;
122
- private _getCompletionStatus;
123
- private _emit;
124
- }
125
- declare global {
126
- interface HTMLElementTagNameMap {
127
- 'qti-assessment-item': QtiAssessmentItem;
128
- }
129
- }
130
-
131
- /**
132
- * Represents a custom element for referencing an assessment stimulus.
133
- */
134
- declare class QtiAssessmentStimulusRef extends LitElement {
135
- /**
136
- * The identifier of the stimulus.
137
- */
138
- identifier: string;
139
- /**
140
- * The href of the stimulus.
141
- */
142
- href: string;
143
- /**
144
- * Lifecycle method called when the element is connected to the DOM.
145
- * Loads and appends the stimulus if the 'qti-assessment-stimulus-ref-connected' event is not prevented.
146
- */
147
- connectedCallback(): Promise<void>;
148
- /**
149
- * Loads and appends the stimulus to the specified element.
150
- * @param stimulusRef - The element to which the stimulus will be appended.
151
- */
152
- updateStimulusRef(stimulusRef: Element): Promise<void>;
153
- }
154
- declare global {
155
- interface HTMLElementTagNameMap {
156
- 'qti-assessment-stimulus-ref': QtiAssessmentStimulusRef;
157
- }
158
- }
159
-
160
- type Constructor$2<T = {}> = abstract new (...args: any[]) => T;
161
- interface ChoiceInterface {
162
- identifier: string;
163
- disabled: boolean;
164
- readonly: boolean;
165
- }
166
- /**
167
- * A mixin that adds choice functionality to a LitElement-based class.
168
- * It dispatches events with a custom `type` and handles selection logic.
169
- *
170
- * @param Base - The base class to extend.
171
- * @param type - The type of the choice, used in event names.
172
- * @returns A new class extending the base class with choice functionality.
173
- */
174
- interface ActiveElementMixinInterface {
175
- identifier: string;
176
- tabIndex: number;
177
- disabled: boolean;
178
- readonly: boolean;
179
- internals: ElementInternals;
180
- }
181
- declare function ActiveElementMixin<T extends Constructor$2<LitElement>>(Base: T, type: string): Constructor$2<ActiveElementMixinInterface> & T;
182
-
183
- /**
184
- * @summary The qti-item-body node contains the text, graphics, media objects and interactions that describe the item's content and information about how it is structured.
185
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.sphpo6lu6zqi
186
- * @status stable
187
- * @since 4.0
188
- *
189
- * @slot - item body content.
190
- * @slot qti-rubric-block - the qti rubric block is placed above the item
191
- *
192
- */
193
- declare class QtiItemBody extends LitElement {
194
- static styles: CSSResultGroup;
195
- render(): lit_html.TemplateResult<1>;
196
- }
197
- declare global {
198
- interface HTMLElementTagNameMap {
199
- 'qti-item-body': QtiItemBody;
200
- }
201
- }
202
-
203
- declare class QtiPrompt extends LitElement {
204
- render(): lit_html.TemplateResult<1>;
205
- connectedCallback(): void;
206
- }
207
- declare global {
208
- interface HTMLElementTagNameMap {
209
- 'qti-prompt': QtiPrompt;
210
- }
211
- }
212
-
213
- declare class QtiStylesheet extends LitElement {
214
- private styleElement;
215
- protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
216
- private minifyCss;
217
- disconnectedCallback(): void;
218
- }
219
- declare global {
220
- interface HTMLElementTagNameMap {
221
- 'qti-stylesheet': QtiStylesheet;
222
- }
223
- }
224
-
225
- interface ItemContext {
226
- href?: string;
227
- identifier: string;
228
- variables: ReadonlyArray<VariableDeclaration<string | string[]>>;
229
- }
230
- declare const itemContextVariables: VariableDeclaration<string | string[]>[];
231
- declare const itemContext: {
232
- __context__: ItemContext;
233
- };
234
-
235
- declare class QtiVariableDeclaration extends LitElement {
236
- render(): lit_html.TemplateResult<1>;
237
- protected defaultValues(variable: VariableDeclaration<string | string[] | null>): string | string[];
238
- }
239
- declare global {
240
- interface HTMLElementTagNameMap {
241
- 'qti-variabledeclaration': QtiVariableDeclaration;
242
- }
243
- }
244
-
245
- declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
246
- baseType: BaseType;
247
- externalScored: 'human' | 'externalMachine' | null;
248
- identifier: string;
249
- cardinality: Cardinality;
250
- itemContext?: ItemContext;
251
- static styles: lit.CSSResult[];
252
- render(): lit_html.TemplateResult<1>;
253
- get interpolationTable(): Map<number, number> | null;
254
- connectedCallback(): void;
255
- }
256
- declare global {
257
- interface HTMLElementTagNameMap {
258
- 'qti-outcome-declaration': QtiOutcomeDeclaration;
259
- }
260
- }
261
-
262
- declare class QtiResponseDeclaration extends QtiVariableDeclaration {
263
- baseType: BaseType;
264
- identifier: string;
265
- cardinality: Cardinality;
266
- itemContext?: ItemContext;
267
- static styles: lit.CSSResult[];
268
- render(): lit_html.TemplateResult<1>;
269
- connectedCallback(): void;
270
- private get correctResponse();
271
- private get mapping();
272
- }
273
- declare global {
274
- interface HTMLElementTagNameMap {
275
- 'qti-response-declaration': QtiResponseDeclaration;
276
- }
277
- }
278
-
279
- declare class QtiCompanionMaterialsInfo extends LitElement {
280
- }
281
- declare global {
282
- interface HTMLElementTagNameMap {
283
- 'qti-companion-materials-info': QtiCompanionMaterialsInfo;
284
- }
285
- }
286
-
287
- declare class QtiContentBody extends LitElement {
288
- render(): lit_html.TemplateResult<1>;
289
- }
290
- declare global {
291
- interface HTMLElementTagNameMap {
292
- 'qti-content-body': QtiContentBody;
293
- }
294
- }
295
-
296
- declare class QtiRubricBlock extends LitElement {
297
- id: any;
298
- use: 'instructions' | 'scoring' | 'navigation';
299
- view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
300
- classNames: any;
301
- handleclassNamesChange(): void;
302
- static styles: lit.CSSResult;
303
- render(): lit_html.TemplateResult<1>;
304
- connectedCallback(): void;
305
- }
306
- declare global {
307
- interface HTMLElementTagNameMap {
308
- 'qti-rubric-block': QtiRubricBlock;
309
- }
310
- }
311
-
312
- declare abstract class QtiFeedback extends LitElement {
313
- protected showHide: string;
314
- outcomeIdentifier: string;
315
- protected identifier: string;
316
- showStatus: string;
317
- private _context?;
318
- connectedCallback(): void;
319
- checkShowFeedback(outcomeIdentifier: string): void;
320
- private showFeedback;
321
- }
322
-
323
- declare class QtiFeedbackBlock extends QtiFeedback {
324
- static styles: lit.CSSResult;
325
- render(): lit_html.TemplateResult<1>;
326
- protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
327
- }
328
- declare global {
329
- interface HTMLElementTagNameMap {
330
- 'qti-feedback-block': QtiFeedbackBlock;
331
- }
332
- }
333
-
334
- declare class QtiFeedbackInline extends QtiFeedback {
335
- static styles: lit.CSSResult;
336
- render: () => lit_html.TemplateResult<1>;
337
- }
338
- declare global {
339
- interface HTMLElementTagNameMap {
340
- 'qti-feedback-inline': QtiFeedbackInline;
341
- }
342
- }
343
-
344
- declare class QtiModalFeedback extends QtiFeedback {
345
- static styles: lit.CSSResult;
346
- render(): lit_html.TemplateResult<1>;
347
- openFeedback(): void;
348
- closeFeedback(): void;
349
- protected firstUpdated(): void;
350
- protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
351
- }
352
- declare global {
353
- interface HTMLElementTagNameMap {
354
- 'qti-modal-feedback': QtiModalFeedback;
355
- }
356
- }
357
-
358
- interface IInteraction {
359
- correctResponse: Readonly<string | string[]>;
360
- value: string | string[];
361
- responseIdentifier: string;
362
- disabled: boolean;
363
- readonly: boolean;
364
- validate(): boolean;
365
- reportValidity(): boolean;
366
- reset(): void;
367
- saveResponse(value: string | string[]): void;
368
- }
369
-
370
- declare abstract class Interaction extends LitElement implements IInteraction {
371
- static formAssociated: boolean;
372
- responseIdentifier: any;
373
- disabled: boolean;
374
- readonly: boolean;
375
- protected _correctResponse: string | string[];
376
- protected _internals: ElementInternals;
377
- constructor();
378
- abstract validate(): boolean;
379
- reportValidity(): boolean;
380
- reset(): void;
381
- abstract get value(): string | string[];
382
- abstract set value(val: string | string[]);
383
- get correctResponse(): string | string[];
384
- set correctResponse(value: string | string[]);
385
- connectedCallback(): void;
386
- saveResponse(value: string | string[]): void;
387
- }
388
-
389
- declare class QtiExtendedTextInteraction extends Interaction {
390
- static styles: CSSResultGroup;
391
- protected _rows: number;
392
- /** expected length is mapped to the property maxlength on the textarea */
393
- expectedLength: number;
394
- patternMask: string;
395
- /** text appearing in the extended-text-nteraction if it is empty */
396
- placeholderText: string;
397
- dataPatternmaskMessage: string;
398
- protected _value: string;
399
- classNames: any;
400
- handleclassNamesChange(_: any, classes: string): void;
401
- get value(): string | string[];
402
- set value(val: string | string[]);
403
- validate(): boolean;
404
- reportValidity(): boolean;
405
- render(): lit_html.TemplateResult<1>;
406
- protected textChanged(event: Event): void;
407
- protected setEmptyAttribute(text: string): void;
408
- }
409
- declare global {
410
- interface HTMLElementTagNameMap {
411
- 'qti-extended-text-interaction': QtiExtendedTextInteraction;
412
- }
413
- }
414
-
415
- declare class QtiTextEntryInteraction extends Interaction {
416
- static styles: CSSResultGroup;
417
- expectedLength: number;
418
- patternMask: string;
419
- placeholderText: string;
420
- dataPatternmaskMessage: string;
421
- private _value;
422
- inputRef: lit_html_directives_ref_js.Ref<HTMLInputElement>;
423
- get value(): string | string[];
424
- set value(val: string | string[]);
425
- validate(): boolean;
426
- render(): lit_html.TemplateResult<1>;
427
- protected textChanged(event: Event): void;
428
- reportValidity(): boolean;
429
- reset(): void;
430
- private setEmptyAttribute;
431
- }
432
- declare global {
433
- interface HTMLElementTagNameMap {
434
- 'qti-text-entry-interaction': QtiTextEntryInteraction;
435
- }
436
- }
437
-
438
- type Choice = HTMLElement & ChoiceInterface & {
439
- internals: ElementInternals;
440
- };
441
- interface ChoicesInterface extends IInteraction {
442
- correctResponse: string | string[];
443
- }
444
-
445
- declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
446
- declare class QtiHottextInteraction extends QtiHottextInteraction_base {
447
- render: () => lit_html.TemplateResult<1>;
448
- }
449
- declare global {
450
- interface HTMLElementTagNameMap {
451
- 'qti-hottext-interaction': QtiHottextInteraction;
452
- }
453
- }
454
-
455
- declare class QtiInlineChoiceInteraction extends Interaction {
456
- static get styles(): lit.CSSResult[];
457
- static inputWidthClass: string[];
458
- private options;
459
- private correctOption;
460
- dataPrompt: string;
461
- render(): lit_html.TemplateResult<1>;
462
- connectedCallback(): void;
463
- disconnectedCallback(): void;
464
- validate(): boolean;
465
- reset(): void;
466
- set value(value: string);
467
- get value(): string;
468
- set correctResponse(value: string | string[]);
469
- private choiceSelected;
470
- }
471
- declare global {
472
- interface HTMLElementTagNameMap {
473
- 'qti-inline-choice-interaction': QtiInlineChoiceInteraction;
474
- }
475
- }
476
-
477
- type Orientation = 'horizontal' | 'vertical' | undefined;
478
- declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
479
- /**
480
- * An sample element.
481
- *
482
- * @slot - default slot of the choices
483
- * @slot prompt - slot of the prompt
484
- *
485
- * @csspart slot - The choice elements
486
- * @csspart prompt - The prompt
487
- * @csspart message - The validation message
488
- *
489
- * @cssprop [--qti-bg-active=#ffecec] - The active background color
490
- * @cssprop [--qti-border-active=#f86d70] - The active border color
491
- * @cssprop [--qti-padding-horizontal=1px] - The option horizontal padding
492
- * @cssprop [--qti-padding-vertical=solid] - The option vertical padding
493
- * @cssprop [--qti-border-radius=8px] - The option border radius
494
- */
495
- declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
496
- static styles: CSSResultGroup;
497
- constructor();
498
- /** @deprecated, use 'qti-orientation-horizontal' or 'qti-orientation-vertical' instead */
499
- orientation: Orientation;
500
- render(): lit_html.TemplateResult<1>;
501
- }
502
- declare global {
503
- interface HTMLElementTagNameMap {
504
- 'qti-choice-interaction': QtiChoiceInteraction;
505
- }
506
- }
507
-
508
- declare class QtiUploadInteraction extends Interaction {
509
- private _file;
510
- private _base64;
511
- reset(): void;
512
- validate(): boolean;
513
- get value(): string | string[] | null;
514
- set value(base64: string | null);
515
- static get properties(): {
516
- [x: string]: lit.PropertyDeclaration<unknown, unknown>;
517
- };
518
- static styles: lit.CSSResult[];
519
- render(): lit_html.TemplateResult<1>;
520
- private _onFileChange;
521
- private _convertToBase64;
522
- }
523
- declare global {
524
- interface HTMLElementTagNameMap {
525
- 'qti-upload-interaction': QtiUploadInteraction;
526
- }
527
- }
528
-
529
- declare class QtiOutcomeProcessing extends LitElement {
530
- static styles: lit.CSSResult[];
531
- render(): lit_html.TemplateResult<1>;
532
- process(): void;
533
- }
534
- declare global {
535
- interface HTMLElementTagNameMap {
536
- 'qti-outcome-processing': QtiOutcomeProcessing;
537
- }
538
- }
539
- declare class QtiOutcomeProcessingProcessor {
540
- process(rules: QtiRuleBase[]): void;
541
- }
542
-
543
- declare class QtiResponseProcessing extends LitElement {
544
- static styles: lit.CSSResult[];
545
- render(): lit_html.TemplateResult<1>;
546
- process(): void;
547
- firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
548
- private fragmentFromString;
549
- }
550
- declare global {
551
- interface HTMLElementTagNameMap {
552
- 'qti-response-processing': QtiResponseProcessing;
553
- }
554
- }
555
-
556
- interface QtiExpressionBase<T> {
557
- calculate(): Readonly<T>;
558
- }
559
- declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
560
- protected result: any;
561
- static styles: lit.CSSResult;
562
- render(): lit_html.TemplateResult<1>;
563
- calculate(): Readonly<T>;
564
- protected getResult(): Readonly<T>;
565
- protected context?: ItemContext;
566
- getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
567
- }
568
-
569
- declare class QtiRule extends LitElement implements QtiRuleBase {
570
- render(): lit_html.TemplateResult<1>;
571
- process(): void;
572
- }
573
- interface QtiRuleBase {
574
- process(): any;
575
- }
576
- declare global {
577
- interface HTMLElementTagNameMap {
578
- 'qti-rule': QtiRule;
579
- }
580
- }
581
-
582
- /**
583
- * The lookupOutcomeValue rule sets the value of an outcome variable to the value obtained
584
- * by looking up the value of the associated expression in the lookupTable associated
585
- * with the outcome's declaration.
586
- */
587
- declare class QtiLookupOutcomeValue extends QtiRule {
588
- identifier: string;
589
- get childExpression(): QtiExpression<string>;
590
- process(): number;
591
- }
592
- declare global {
593
- interface HTMLElementTagNameMap {
594
- 'qti-lookup-outcome-value': QtiLookupOutcomeValue;
595
- }
596
- }
597
-
598
- declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
599
- calculate(): Readonly<boolean>;
600
- getResult(): Readonly<boolean>;
601
- }
602
-
603
- type Constructor$1<T> = new (...args: any[]) => T;
604
- declare const QtiAnd_base: {
605
- new (...args: any[]): {
606
- calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
607
- };
608
- } & Constructor$1<QtiConditionExpression>;
609
- declare class QtiAnd extends QtiAnd_base {
610
- calculate(): boolean;
611
- }
612
- type MockQtiExpression$1<T> = {
613
- calculate: () => T;
614
- };
615
- type MockConstructor$1 = new (...args: any[]) => {};
616
- declare function qtiAndMixin<TBase extends MockConstructor$1>(Base: TBase): {
617
- new (...args: any[]): {
618
- calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
619
- };
620
- } & TBase;
621
-
622
- declare global {
623
- interface HTMLElementTagNameMap {
624
- 'qti-and': QtiAnd;
625
- }
626
- }
627
-
628
- type Constructor<T> = new (...args: any[]) => T;
629
- declare const QtiSubtract_base: {
630
- new (...args: any[]): {
631
- calculateChildren(children: Array<MockQtiExpression<any>>): number;
632
- };
633
- } & Constructor<QtiExpression<number>>;
634
- declare class QtiSubtract extends QtiSubtract_base {
635
- getResult(): number;
636
- }
637
- type MockQtiExpression<T> = {
638
- calculate: () => T;
639
- };
640
- type MockConstructor = new (...args: any[]) => {};
641
- declare function qtiSubtractMixin<TBase extends MockConstructor>(Base: TBase): {
642
- new (...args: any[]): {
643
- calculateChildren(children: Array<MockQtiExpression<any>>): number;
644
- };
645
- } & TBase;
646
-
647
- declare global {
648
- interface HTMLElementTagNameMap {
649
- 'qti-subtract': QtiSubtract;
650
- }
651
- }
652
-
653
- interface IMSpci<ConfigProperties> {
654
- typeIdentifier: string;
655
- /** @access public
656
- * @method getInstance Create a new instance of this portable custom interaction
657
- * Will be called by the qtiCustomInteractionContext
658
- * @param {DOM Element} dom - the DOM Element this PCI is being added to
659
- * @param {Object} configuration - the configuration to apply to this PCI
660
- * @param {String} state - a previous saved state to apply to this instance.
661
- * This must have been obtained from a prior call to getState on an
662
- * instance of this type (same typeIdentifier)
663
- */
664
- getInstance: (dom: HTMLElement, configuration: Configuration<ConfigProperties>, state: string) => void;
665
- /** @access public
666
- * @method getResponse
667
- * @return {Object} - the value to assign to the bound QTI response variable
668
- */
669
- getResponse: () => QtiVariableJSON;
670
- /** @access public
671
- * @method getState
672
- * @return {String} The current state of this PCI. May be passed to
673
- * getInstance to later restore this PCI instance.
674
- */
675
- getState: () => string;
676
- oncompleted?: () => void;
677
- destroy?: () => void;
678
- }
679
- declare type Configuration<T> = {
680
- onready: (pci: IMSpci<T>, state?: string) => void;
681
- properties: T;
682
- };
683
- declare type QtiVariableJSON = {
684
- [K in 'list' | 'base']?: {
685
- [Ka in 'boolean' | 'integer' | 'float' | 'string' | 'pair' | 'directedPair' | 'identifier']?: ResponseType;
686
- };
687
- };
688
- interface ModuleResolutionConfig {
689
- waitSeconds?: number;
690
- context?: string;
691
- catchError?: boolean;
692
- paths: {
693
- [key: string]: string | string[];
694
- };
695
- shim?: {
696
- [key: string]: {
697
- deps?: string[];
698
- exports?: string;
699
- };
700
- };
701
- }
702
-
703
- declare class QtiPortableCustomInteraction extends Interaction {
704
- private intervalId;
705
- private rawResponse;
706
- private pci;
707
- module: string;
708
- customInteractionTypeIdentifier: string;
709
- private _errorMessage;
710
- private convertQtiVariableJSON;
711
- private startChecking;
712
- private stopChecking;
713
- validate(): boolean;
714
- set value(_: string | string[]);
715
- get value(): string | string[];
716
- getTAOConfig(node: any): {};
717
- register(pci: IMSpci<unknown>): void;
718
- connectedCallback(): void;
719
- disconnectedCallback(): void;
720
- buildRequireConfig(): ModuleResolutionConfig;
721
- private combineRequireResolvePaths;
722
- private removeDoubleSlashes;
723
- loadConfig: (url: string, baseUrl?: string) => Promise<ModuleResolutionConfig>;
724
- getResolvablePathString: (path: string, basePath?: string) => string;
725
- getResolvablePath: (path: string | string[], basePath?: string) => string | string[];
726
- render(): lit_html.TemplateResult<1>;
727
- }
728
- declare global {
729
- interface HTMLElementTagNameMap {
730
- 'qti-portable-custom-interaction': QtiPortableCustomInteraction;
731
- }
732
- }
733
-
734
- declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
735
- declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
736
- static styles: CSSResultGroup;
737
- protected _childrenMap: Element[];
738
- protected _registerChoiceHandler: (event: CustomEvent) => void;
739
- constructor();
740
- protected _registerChoice(event: CustomEvent): void;
741
- render(): lit_html.TemplateResult<1>;
742
- disconnectedCallback(): void;
743
- }
744
- declare global {
745
- interface HTMLElementTagNameMap {
746
- 'qti-associate-interaction': QtiAssociateInteraction;
747
- }
748
- }
749
-
750
- declare class QtiCustomInteraction extends Interaction {
751
- private rawResponse;
752
- constructor();
753
- data: string;
754
- baseItemUrl: string;
755
- baseRefUrl: string;
756
- id: string;
757
- private _errorMessage;
758
- manifest: {
759
- script: string[];
760
- style: string[];
761
- media: string[];
762
- };
763
- connectedCallback(): void;
764
- setupCES(): void;
765
- private getIFrames;
766
- private getInnerIFrames;
767
- private postToWindowAndIframes;
768
- handlePostMessage(event: MessageEvent): void;
769
- validate(): boolean;
770
- get value(): string | string[];
771
- set value(val: string | string[]);
772
- disconnectedCallback(): void;
773
- render(): lit_html.TemplateResult<1>;
774
- }
775
- declare global {
776
- interface HTMLElementTagNameMap {
777
- 'qti-custom-interaction': QtiCustomInteraction;
778
- }
779
- }
780
-
781
- declare class QtiEndAttemptInteraction extends LitElement {
782
- responseIdentifier: any;
783
- disabled: boolean;
784
- countAttempt: 'true' | 'false';
785
- title: string;
786
- render(): lit_html.TemplateResult<1>;
787
- endAttempt(_: Event): void;
788
- }
789
- declare global {
790
- interface HTMLElementTagNameMap {
791
- 'qti-end-attempt-interaction': QtiEndAttemptInteraction;
792
- }
793
- }
794
-
795
- declare const QtiGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
796
- declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
797
- static styles: CSSResultGroup;
798
- render(): lit_html.TemplateResult<1>;
799
- set correctResponse(value: string | string[]);
800
- }
801
- declare global {
802
- interface HTMLElementTagNameMap {
803
- 'qti-gap-match-interaction': QtiGapMatchInteraction;
804
- }
805
- }
806
-
807
- declare class QtiGraphicAssociateInteraction extends Interaction {
808
- static styles: CSSResultGroup;
809
- private hotspots;
810
- private startPoint;
811
- private endPoint;
812
- private _lines;
813
- private startCoord;
814
- private mouseCoord;
815
- private grImage;
816
- constructor();
817
- reset(): void;
818
- validate(): boolean;
819
- set value(val: string | string[]);
820
- get value(): string | string[];
821
- render(): lit_html.TemplateResult<1>;
822
- private positionHotspotOnRegister;
823
- firstUpdated(e: any): void;
824
- disconnectedCallback(): void;
825
- }
826
- declare global {
827
- interface HTMLElementTagNameMap {
828
- 'qti-graphic-associate-interaction': QtiGraphicAssociateInteraction;
829
- }
830
- }
831
-
832
- declare const QtiGraphicGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
833
- declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
834
- static styles: CSSResultGroup;
835
- render(): lit_html.TemplateResult<1>;
836
- private positionHotspotOnRegister;
837
- connectedCallback(): void;
838
- disconnectedCallback(): void;
839
- }
840
- declare global {
841
- interface HTMLElementTagNameMap {
842
- 'qti-graphic-gap-match-interaction': QtiGraphicGapMatchInteraction;
843
- }
844
- }
845
-
846
- declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
847
- declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
848
- static styles: CSSResultGroup;
849
- protected choiceOrdering: boolean;
850
- protected _choiceElements: Choice[];
851
- render(): lit_html.TemplateResult<1>;
852
- private setHotspotOrder;
853
- private positionHotspotOnRegister;
854
- connectedCallback(): void;
855
- disconnectedCallback(): void;
856
- }
857
- declare global {
858
- interface HTMLElementTagNameMap {
859
- 'qti-graphic-order-interaction': QtiGraphicOrderInteraction;
860
- }
861
- }
862
-
863
- declare const QtiHotspotInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
864
- declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
865
- static styles: CSSResultGroup;
866
- render(): lit_html.TemplateResult<1>;
867
- private positionHotspotOnRegister;
868
- connectedCallback(): void;
869
- disconnectedCallback(): void;
870
- }
871
- declare global {
872
- interface HTMLElementTagNameMap {
873
- 'qti-hotspot-interaction': QtiHotspotInteraction;
874
- }
875
- }
876
-
877
- declare const QtiSimpleAssociableChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
878
- declare class QtiSimpleAssociableChoice extends QtiSimpleAssociableChoice_base {
879
- static styles: lit.CSSResult;
880
- /** the minimal number of selections a candidate must make */
881
- matchMin: number;
882
- /** the maximum number of selections a candidate must make, the other options will be disabled when max options is checked */
883
- matchMax: number;
884
- fixed: boolean;
885
- connectedCallback(): void;
886
- render(): lit_html.TemplateResult<1>;
887
- }
888
- declare global {
889
- interface HTMLElementTagNameMap {
890
- 'qti-simple-associable-choice': QtiSimpleAssociableChoice;
891
- }
892
- }
893
-
894
- declare const QtiMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
895
- declare class QtiMatchInteraction extends QtiMatchInteraction_base {
896
- static styles: CSSResultGroup;
897
- protected rows: QtiSimpleAssociableChoice[];
898
- protected cols: QtiSimpleAssociableChoice[];
899
- protected lastCheckedRadio: HTMLInputElement | null;
900
- class: string;
901
- protected _response: string | string[];
902
- get value(): string[];
903
- set value(val: string[]);
904
- responseIdentifier: string;
905
- protected correctOptions: string[];
906
- connectedCallback(): Promise<void>;
907
- protected handleRadioClick: (e: any) => void;
908
- protected handleRadioChange: (e: any) => void;
909
- set correctResponse(responseValue: string | string[]);
910
- render(): lit_html.TemplateResult<1>;
911
- }
912
- declare global {
913
- interface HTMLElementTagNameMap {
914
- 'qti-match-interaction': QtiMatchInteraction;
915
- }
916
- }
917
-
918
- declare class QtiMediaInteraction extends Interaction {
919
- private _value;
920
- reset(): void;
921
- validate(): boolean;
922
- get value(): string | string[];
923
- set value(val: string | string[]);
924
- static get properties(): {
925
- step: {
926
- type: NumberConstructor;
927
- attribute: string;
928
- default: number;
929
- };
930
- };
931
- static styles: lit.CSSResult[];
932
- render(): lit_html.TemplateResult<1>;
933
- constructor();
934
- connectedCallback(): void;
935
- }
936
- declare global {
937
- interface HTMLElementTagNameMap {
938
- 'qti-media-interaction': QtiMediaInteraction;
939
- }
940
- }
941
-
942
- declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
943
- declare class QtiOrderInteraction extends QtiOrderInteraction_base {
944
- static styles: lit.CSSResult;
945
- protected childrenMap: Element[];
946
- protected nrChoices: number;
947
- correctResponses: string[];
948
- showCorrectResponses: boolean;
949
- /** orientation of choices */
950
- orientation: 'horizontal' | 'vertical';
951
- render(): lit_html.TemplateResult<1>;
952
- set correctResponse(value: string | string[]);
953
- protected getResponse(): string[];
954
- firstUpdated(changedProps: any): Promise<void>;
955
- }
956
- declare global {
957
- interface HTMLElementTagNameMap {
958
- 'qti-order-interaction': QtiOrderInteraction;
959
- }
960
- }
961
-
962
- declare class QtiPositionObjectStage extends LitElement {
963
- choiceOrdering: boolean;
964
- startX: any;
965
- startY: any;
966
- dragElement: any;
967
- render(): lit_html.TemplateResult<1>;
968
- static styles: lit.CSSResult[];
969
- constructor();
970
- dragElementHandler(event: any): void;
971
- firstUpdated(a: any): void;
972
- removeMoveListener(): void;
973
- disconnectedCallback(): void;
974
- }
975
- declare global {
976
- interface HTMLElementTagNameMap {
977
- 'qti-position-object-stage': QtiPositionObjectStage;
978
- }
979
- }
980
-
981
- declare class QtiSelectPointInteraction extends Interaction {
982
- static styles: lit.CSSResult[];
983
- maxChoices: number;
984
- minChoices: number;
985
- private _points;
986
- private _imgElement;
987
- private _onImageClick;
988
- render(): lit_html.TemplateResult<1>;
989
- reset(): void;
990
- validate(): boolean;
991
- set value(val: string | string[]);
992
- get value(): string | string[];
993
- firstUpdated(): void;
994
- disconnectedCallback(): void;
995
- }
996
- declare global {
997
- interface HTMLElementTagNameMap {
998
- 'qti-select-point-interaction': QtiSelectPointInteraction;
999
- }
1000
- }
1001
-
1002
- declare class QtiSliderInteraction extends LitElement {
1003
- static formAssociated: boolean;
1004
- static styles: CSSResultGroup;
1005
- private _value;
1006
- private _internals;
1007
- private _rail;
1008
- min: number;
1009
- max: number;
1010
- step: number;
1011
- constructor();
1012
- connectedCallback(): void;
1013
- get value(): string;
1014
- set value(val: string);
1015
- private _updateValue;
1016
- render(): lit_html.TemplateResult<1>;
1017
- private _onMouseDown;
1018
- private _onTouchStart;
1019
- private _startDrag;
1020
- private _onDrag;
1021
- private _onDragEnd;
1022
- }
1023
- declare global {
1024
- interface HTMLElementTagNameMap {
1025
- 'qti-slider-interaction': QtiSliderInteraction;
1026
- }
1027
- }
1028
-
1029
- /**
1030
- * https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
1031
- * <qti-custom-operator class="js.org">
1032
- <qti-base-value base-type="string"><![CDATA[
1033
- console.log(context.variables);
1034
- return 'B'
1035
- document.querySelector('qti-end-attempt-interaction').disabled = true;
1036
- ]]></qti-base-value>
1037
- </qti-custom-operator>
1038
- </qti-set-outcome-value>
1039
- */
1040
- declare class QtiCustomOperator extends LitElement implements Calculate {
1041
- private operatorFunction;
1042
- private _context?;
1043
- render(): lit_html.TemplateResult<1>;
1044
- handleSlotChange(): void;
1045
- calculate(): any;
1046
- }
1047
- declare global {
1048
- interface HTMLElementTagNameMap {
1049
- 'qti-custom-operator': QtiCustomOperator;
1050
- }
1051
- }
1052
-
1053
- declare class QtiAssociableHotspot extends LitElement {
1054
- static styles: lit.CSSResult;
1055
- connectedCallback(): void;
1056
- render(): lit_html.TemplateResult<1>;
1057
- }
1058
- declare global {
1059
- interface HTMLElementTagNameMap {
1060
- 'qti-associable-hotspot': QtiAssociableHotspot;
1061
- }
1062
- }
1063
-
1064
- declare class QtiGap extends LitElement {
1065
- static styles: lit.CSSResult;
1066
- tabindex: number | undefined;
1067
- render(): lit_html.TemplateResult<1>;
1068
- }
1069
- declare global {
1070
- interface HTMLElementTagNameMap {
1071
- 'qti-gap': QtiGap;
1072
- }
1073
- }
1074
-
1075
- declare class QtiGapImg extends LitElement {
1076
- static styles: lit.CSSResult;
1077
- tabindex: number | undefined;
1078
- connectedCallback(): void;
1079
- }
1080
- declare global {
1081
- interface HTMLElementTagNameMap {
1082
- 'qti-gap-img': QtiGapImg;
1083
- }
1084
- }
1085
-
1086
- declare const QtiGapText_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
1087
- declare class QtiGapText extends QtiGapText_base {
1088
- static styles: lit.CSSResult;
1089
- tabindex: number | undefined;
1090
- connectedCallback(): void;
1091
- render(): lit_html.TemplateResult<1>;
1092
- }
1093
- declare global {
1094
- interface HTMLElementTagNameMap {
1095
- 'qti-gap-text': QtiGapText;
1096
- }
1097
- }
1098
-
1099
- declare const QtiHotspotChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
1100
- declare class QtiHotspotChoice extends QtiHotspotChoice_base {
1101
- static styles: lit.CSSResult;
1102
- order: number;
1103
- }
1104
- declare global {
1105
- interface HTMLElementTagNameMap {
1106
- 'qti-hotspot-choice': QtiHotspotChoice;
1107
- }
1108
- }
1109
-
1110
- declare const QtiHottext_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
1111
- declare class QtiHottext extends QtiHottext_base {
1112
- static styles: lit.CSSResult;
1113
- render(): lit_html.TemplateResult<1>;
1114
- }
1115
- declare global {
1116
- interface HTMLElementTagNameMap {
1117
- 'qti-hottext': QtiHottext;
1118
- }
1119
- }
1120
-
1121
- declare class QtiInlineChoice extends LitElement {
1122
- static get styles(): lit.CSSResult[];
1123
- identifier: string;
1124
- connectedCallback(): void;
1125
- disconnectedCallback(): void;
1126
- render(): lit_html.TemplateResult<1>;
1127
- private _onSelectInlineChoice;
1128
- }
1129
- declare global {
1130
- interface HTMLElementTagNameMap {
1131
- 'qti-inline-choice': QtiInlineChoice;
1132
- }
1133
- }
1134
-
1135
- declare const QtiSimpleChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
1136
- /**
1137
- * qti-order-interaction
1138
- * qti-choice-interaction
1139
- */
1140
- declare class QtiSimpleChoice extends QtiSimpleChoice_base {
1141
- static styles: lit.CSSResult;
1142
- marker: string;
1143
- get checked(): boolean;
1144
- render(): lit_html.TemplateResult<1>;
1145
- }
1146
- declare global {
1147
- interface HTMLElementTagNameMap {
1148
- 'qti-simple-choice': QtiSimpleChoice;
1149
- }
1150
- }
1151
-
1152
- export { QtiSubtract as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiRubricBlock as D, QtiFeedbackBlock as E, QtiFeedbackInline as F, QtiModalFeedback as G, QtiExtendedTextInteraction as H, type ItemContext as I, QtiTextEntryInteraction as J, QtiHottextInteraction as K, QtiInlineChoiceInteraction as L, type Multiple as M, type Orientation as N, type OutcomeChangedDetails as O, QtiChoiceInteraction as P, QtiRule as Q, type ResponseVariable as R, QtiUploadInteraction as S, QtiOutcomeProcessing as T, QtiOutcomeProcessingProcessor as U, type VariableDeclaration as V, QtiResponseProcessing as W, QtiLookupOutcomeValue as X, QtiAnd as Y, qtiAndMixin as Z, QtiMapping as _, type QtiRuleBase as a, qtiSubtractMixin as a0, QtiPortableCustomInteraction as a1, QtiAssociateInteraction as a2, QtiCustomInteraction as a3, QtiEndAttemptInteraction as a4, QtiGapMatchInteraction as a5, QtiGraphicAssociateInteraction as a6, QtiGraphicGapMatchInteraction as a7, QtiGraphicOrderInteraction as a8, QtiHotspotInteraction as a9, QtiMatchInteraction as aa, QtiMediaInteraction as ab, QtiOrderInteraction as ac, QtiPositionObjectStage as ad, QtiSelectPointInteraction as ae, QtiSliderInteraction as af, itemContextVariables as ag, itemContext as ah, QtiCustomOperator as ai, Interaction as aj, QtiAssociableHotspot as ak, QtiGap as al, QtiGapImg as am, QtiGapText as an, QtiHotspotChoice as ao, QtiHottext as ap, QtiInlineChoice as aq, QtiSimpleAssociableChoice as ar, QtiSimpleChoice as as, type QtiExpressionBase as b, QtiExpression as c, QtiConditionExpression as d, QtiAssessmentItem as e, type InteractionChangedDetails as f, type QtiInteractionChanged as g, type QtiOutcomeChanged as h, type directedPair as i, type ResponseInteraction as j, type float as k, type integer as l, type Ordered as m, type Cardinality as n, type VariableValue as o, type OutcomeVariable as p, QtiAssessmentStimulusRef as q, type ChoiceInterface as r, ActiveElementMixin as s, QtiItemBody as t, QtiPrompt as u, QtiStylesheet as v, QtiOutcomeDeclaration as w, QtiResponseDeclaration as x, QtiCompanionMaterialsInfo as y, QtiContentBody as z };