@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,1198 +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
- }
348
- declare global {
349
- interface HTMLElementTagNameMap {
350
- 'qti-modal-feedback': QtiModalFeedback;
351
- }
352
- }
353
-
354
- interface IInteraction {
355
- correctResponse: Readonly<string | string[]>;
356
- value: string | string[];
357
- responseIdentifier: string;
358
- disabled: boolean;
359
- readonly: boolean;
360
- validate(): boolean;
361
- reportValidity(): boolean;
362
- reset(): void;
363
- saveResponse(value: string | string[]): void;
364
- }
365
-
366
- declare abstract class Interaction extends LitElement implements IInteraction {
367
- static formAssociated: boolean;
368
- responseIdentifier: any;
369
- disabled: boolean;
370
- readonly: boolean;
371
- protected _correctResponse: string | string[];
372
- protected _internals: ElementInternals;
373
- constructor();
374
- abstract validate(): boolean;
375
- reportValidity(): boolean;
376
- reset(): void;
377
- abstract get value(): string | string[];
378
- abstract set value(val: string | string[]);
379
- get correctResponse(): string | string[];
380
- set correctResponse(value: string | string[]);
381
- connectedCallback(): void;
382
- saveResponse(value: string | string[]): void;
383
- }
384
-
385
- declare class QtiExtendedTextInteraction extends Interaction {
386
- private _rows;
387
- /** expected length is mapped to the property maxlength on the textarea */
388
- expectedLength: number;
389
- patternMask: string;
390
- /** text appearing in the extended-text-nteraction if it is empty */
391
- placeholderText: string;
392
- dataPatternmaskMessage: string;
393
- private _value;
394
- classNames: any;
395
- handleclassNamesChange(_: any, classes: string): void;
396
- get value(): string | string[];
397
- set value(val: string | string[]);
398
- validate(): boolean;
399
- reportValidity(): boolean;
400
- static get styles(): lit.CSSResult[];
401
- render(): lit_html.TemplateResult<1>;
402
- protected textChanged(event: Event): void;
403
- private setEmptyAttribute;
404
- }
405
- declare global {
406
- interface HTMLElementTagNameMap {
407
- 'qti-extended-text-interaction': QtiExtendedTextInteraction;
408
- }
409
- }
410
-
411
- declare class QtiTextEntryInteraction extends Interaction {
412
- static styles: CSSResultGroup;
413
- expectedLength: number;
414
- patternMask: string;
415
- placeholderText: string;
416
- dataPatternmaskMessage: string;
417
- private _value;
418
- inputRef: lit_html_directives_ref_js.Ref<HTMLInputElement>;
419
- get value(): string | string[];
420
- set value(val: string | string[]);
421
- validate(): boolean;
422
- render(): lit_html.TemplateResult<1>;
423
- protected textChanged(event: Event): void;
424
- reportValidity(): boolean;
425
- reset(): void;
426
- private setEmptyAttribute;
427
- }
428
- declare global {
429
- interface HTMLElementTagNameMap {
430
- 'qti-text-entry-interaction': QtiTextEntryInteraction;
431
- }
432
- }
433
-
434
- type Choice = HTMLElement & ChoiceInterface & {
435
- internals: ElementInternals;
436
- };
437
- interface ChoicesInterface extends IInteraction {
438
- correctResponse: string | string[];
439
- }
440
-
441
- declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
442
- declare class QtiHottextInteraction extends QtiHottextInteraction_base {
443
- connectedCallback(): void;
444
- render: () => lit_html.TemplateResult<1>;
445
- }
446
- declare global {
447
- interface HTMLElementTagNameMap {
448
- 'qti-hottext-interaction': QtiHottextInteraction;
449
- }
450
- }
451
-
452
- interface OptionType {
453
- textContent: string;
454
- value: string;
455
- selected: boolean;
456
- }
457
- declare class QtiInlineChoiceInteraction extends Interaction {
458
- static get styles(): lit.CSSResult[];
459
- static inputWidthClass: string[];
460
- options: OptionType[];
461
- correctOption: string;
462
- dataPrompt: string;
463
- render(): lit_html.TemplateResult<1>;
464
- connectedCallback(): void;
465
- disconnectedCallback(): void;
466
- validate(): boolean;
467
- reset(): void;
468
- set value(value: string);
469
- get value(): string;
470
- set correctResponse(value: string | string[]);
471
- choiceSelected(event: Event): void;
472
- }
473
- declare global {
474
- interface HTMLElementTagNameMap {
475
- 'qti-inline-choice-interaction': QtiInlineChoiceInteraction;
476
- }
477
- }
478
-
479
- type Orientation = 'horizontal' | 'vertical' | undefined;
480
- declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
481
- /**
482
- * An sample element.
483
- *
484
- * @slot - default slot of the choices
485
- * @slot prompt - slot of the prompt
486
- *
487
- * @csspart slot - The choice elements
488
- * @csspart prompt - The prompt
489
- * @csspart message - The validation message
490
- *
491
- * @cssprop [--qti-bg-active=#ffecec] - The active background color
492
- * @cssprop [--qti-border-active=#f86d70] - The active border color
493
- * @cssprop [--qti-padding-horizontal=1px] - The option horizontal padding
494
- * @cssprop [--qti-padding-vertical=solid] - The option vertical padding
495
- * @cssprop [--qti-border-radius=8px] - The option border radius
496
- */
497
- declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
498
- static styles: CSSResultGroup;
499
- constructor();
500
- /** @deprecated, use 'qti-orientation-horizontal' or 'qti-orientation-vertical' instead */
501
- orientation: Orientation;
502
- render(): lit_html.TemplateResult<1>;
503
- }
504
- declare global {
505
- interface HTMLElementTagNameMap {
506
- 'qti-choice-interaction': QtiChoiceInteraction;
507
- }
508
- }
509
-
510
- declare class QtiUploadInteraction extends Interaction {
511
- private _file;
512
- private _base64;
513
- reset(): void;
514
- validate(): boolean;
515
- get value(): string | string[] | null;
516
- set value(base64: string | null);
517
- static get properties(): {
518
- [x: string]: lit.PropertyDeclaration<unknown, unknown>;
519
- };
520
- static styles: lit.CSSResult[];
521
- render(): lit_html.TemplateResult<1>;
522
- private _onFileChange;
523
- private _convertToBase64;
524
- }
525
- declare global {
526
- interface HTMLElementTagNameMap {
527
- 'qti-upload-interaction': QtiUploadInteraction;
528
- }
529
- }
530
-
531
- declare class QtiOutcomeProcessing extends LitElement {
532
- static styles: lit.CSSResult[];
533
- render(): lit_html.TemplateResult<1>;
534
- process(): void;
535
- }
536
- declare global {
537
- interface HTMLElementTagNameMap {
538
- 'qti-outcome-processing': QtiOutcomeProcessing;
539
- }
540
- }
541
- declare class QtiOutcomeProcessingProcessor {
542
- process(rules: QtiRuleBase[]): void;
543
- }
544
-
545
- declare class QtiResponseProcessing extends LitElement {
546
- static styles: lit.CSSResult[];
547
- render(): lit_html.TemplateResult<1>;
548
- process(): void;
549
- firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
550
- private fragmentFromString;
551
- }
552
- declare global {
553
- interface HTMLElementTagNameMap {
554
- 'qti-response-processing': QtiResponseProcessing;
555
- }
556
- }
557
-
558
- interface QtiExpressionBase<T> {
559
- calculate(): Readonly<T>;
560
- }
561
- declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
562
- protected result: any;
563
- static styles: lit.CSSResult;
564
- render(): lit_html.TemplateResult<1>;
565
- calculate(): Readonly<T>;
566
- protected getResult(): Readonly<T>;
567
- protected context?: ItemContext;
568
- getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
569
- }
570
-
571
- declare class QtiRule extends LitElement implements QtiRuleBase {
572
- render(): lit_html.TemplateResult<1>;
573
- process(): void;
574
- }
575
- interface QtiRuleBase {
576
- process(): any;
577
- }
578
- declare global {
579
- interface HTMLElementTagNameMap {
580
- 'qti-rule': QtiRule;
581
- }
582
- }
583
-
584
- /**
585
- * The lookupOutcomeValue rule sets the value of an outcome variable to the value obtained
586
- * by looking up the value of the associated expression in the lookupTable associated
587
- * with the outcome's declaration.
588
- */
589
- declare class QtiLookupOutcomeValue extends QtiRule {
590
- identifier: string;
591
- get childExpression(): QtiExpression<string>;
592
- process(): number;
593
- }
594
- declare global {
595
- interface HTMLElementTagNameMap {
596
- 'qti-lookup-outcome-value': QtiLookupOutcomeValue;
597
- }
598
- }
599
-
600
- declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
601
- calculate(): Readonly<boolean>;
602
- getResult(): Readonly<boolean>;
603
- }
604
-
605
- type Constructor$1<T> = new (...args: any[]) => T;
606
- declare const QtiAnd_base: {
607
- new (...args: any[]): {
608
- calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
609
- };
610
- } & Constructor$1<QtiConditionExpression>;
611
- declare class QtiAnd extends QtiAnd_base {
612
- calculate(): boolean;
613
- }
614
- type MockQtiExpression$1<T> = {
615
- calculate: () => T;
616
- };
617
- type MockConstructor$1 = new (...args: any[]) => {};
618
- declare function qtiAndMixin<TBase extends MockConstructor$1>(Base: TBase): {
619
- new (...args: any[]): {
620
- calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
621
- };
622
- } & TBase;
623
-
624
- declare global {
625
- interface HTMLElementTagNameMap {
626
- 'qti-and': QtiAnd;
627
- }
628
- }
629
-
630
- type Constructor<T> = new (...args: any[]) => T;
631
- declare const QtiSubtract_base: {
632
- new (...args: any[]): {
633
- calculateChildren(children: Array<MockQtiExpression<any>>): number;
634
- };
635
- } & Constructor<QtiExpression<number>>;
636
- declare class QtiSubtract extends QtiSubtract_base {
637
- getResult(): number;
638
- }
639
- type MockQtiExpression<T> = {
640
- calculate: () => T;
641
- };
642
- type MockConstructor = new (...args: any[]) => {};
643
- declare function qtiSubtractMixin<TBase extends MockConstructor>(Base: TBase): {
644
- new (...args: any[]): {
645
- calculateChildren(children: Array<MockQtiExpression<any>>): number;
646
- };
647
- } & TBase;
648
-
649
- declare global {
650
- interface HTMLElementTagNameMap {
651
- 'qti-subtract': QtiSubtract;
652
- }
653
- }
654
-
655
- interface IMSpci<ConfigProperties> {
656
- typeIdentifier: string;
657
- /** @access public
658
- * @method getInstance Create a new instance of this portable custom interaction
659
- * Will be called by the qtiCustomInteractionContext
660
- * @param {DOM Element} dom - the DOM Element this PCI is being added to
661
- * @param {Object} configuration - the configuration to apply to this PCI
662
- * @param {String} state - a previous saved state to apply to this instance.
663
- * This must have been obtained from a prior call to getState on an
664
- * instance of this type (same typeIdentifier)
665
- */
666
- getInstance: (dom: HTMLElement, configuration: Configuration<ConfigProperties>, state: string) => void;
667
- /** @access public
668
- * @method getResponse
669
- * @return {Object} - the value to assign to the bound QTI response variable
670
- */
671
- getResponse: () => QtiVariableJSON;
672
- /** @access public
673
- * @method getState
674
- * @return {String} The current state of this PCI. May be passed to
675
- * getInstance to later restore this PCI instance.
676
- */
677
- getState: () => string;
678
- oncompleted?: () => void;
679
- destroy?: () => void;
680
- }
681
- declare type Configuration<T> = {
682
- onready: (pci: IMSpci<T>, state?: string) => void;
683
- properties: T;
684
- };
685
- declare type QtiVariableJSON = {
686
- [K in 'list' | 'base']?: {
687
- [Ka in 'boolean' | 'integer' | 'float' | 'string' | 'pair' | 'directedPair' | 'identifier']?: ResponseType;
688
- };
689
- };
690
- interface ModuleResolutionConfig {
691
- waitSeconds?: number;
692
- context?: string;
693
- catchError?: boolean;
694
- paths: {
695
- [key: string]: string | string[];
696
- };
697
- shim?: {
698
- [key: string]: {
699
- deps?: string[];
700
- exports?: string;
701
- };
702
- };
703
- }
704
-
705
- declare class QtiPortableCustomInteraction extends Interaction {
706
- private intervalId;
707
- private rawResponse;
708
- private pci;
709
- module: string;
710
- customInteractionTypeIdentifier: string;
711
- private _errorMessage;
712
- private convertQtiVariableJSON;
713
- private startChecking;
714
- private stopChecking;
715
- validate(): boolean;
716
- set value(_: string | string[]);
717
- get value(): string | string[];
718
- getTAOConfig(node: any): {};
719
- register(pci: IMSpci<unknown>): void;
720
- connectedCallback(): void;
721
- disconnectedCallback(): void;
722
- buildRequireConfig(): ModuleResolutionConfig;
723
- private combineRequireResolvePaths;
724
- private removeDoubleSlashes;
725
- loadConfig: (url: string, baseUrl?: string) => Promise<ModuleResolutionConfig>;
726
- getResolvablePathString: (path: string, basePath?: string) => string;
727
- getResolvablePath: (path: string | string[], basePath?: string) => string | string[];
728
- render(): lit_html.TemplateResult<1>;
729
- }
730
- declare global {
731
- interface HTMLElementTagNameMap {
732
- 'qti-portable-custom-interaction': QtiPortableCustomInteraction;
733
- }
734
- }
735
-
736
- declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
737
- declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
738
- private _childrenMap;
739
- static styles: CSSResultGroup;
740
- private _registerChoiceHandler;
741
- constructor();
742
- private _registerChoice;
743
- render(): lit_html.TemplateResult<1>;
744
- disconnectedCallback(): void;
745
- }
746
- declare global {
747
- interface HTMLElementTagNameMap {
748
- 'qti-associate-interaction': QtiAssociateInteraction;
749
- }
750
- }
751
-
752
- declare class QtiCustomInteraction extends Interaction {
753
- private rawResponse;
754
- constructor();
755
- data: string;
756
- baseItemUrl: string;
757
- baseRefUrl: string;
758
- id: string;
759
- private _errorMessage;
760
- manifest: {
761
- script: string[];
762
- style: string[];
763
- media: string[];
764
- };
765
- connectedCallback(): void;
766
- setupCES(): void;
767
- private getIFrames;
768
- private getInnerIFrames;
769
- private postToWindowAndIframes;
770
- handlePostMessage(event: MessageEvent): void;
771
- validate(): boolean;
772
- get value(): string | string[];
773
- set value(val: string | string[]);
774
- disconnectedCallback(): void;
775
- render(): lit_html.TemplateResult<1>;
776
- }
777
- declare global {
778
- interface HTMLElementTagNameMap {
779
- 'qti-custom-interaction': QtiCustomInteraction;
780
- }
781
- }
782
-
783
- declare class QtiEndAttemptInteraction extends Interaction {
784
- countAttempt: string;
785
- title: 'end attempt';
786
- validate(): boolean;
787
- get value(): string | string[];
788
- set value(_: string | string[]);
789
- render(): lit_html.TemplateResult<1>;
790
- endAttempt(_: Event): void;
791
- }
792
- declare global {
793
- interface HTMLElementTagNameMap {
794
- 'qti-end-attempt-interaction': QtiEndAttemptInteraction;
795
- }
796
- }
797
-
798
- declare const QtiGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
799
- declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
800
- static styles: CSSResultGroup;
801
- render(): lit_html.TemplateResult<1>;
802
- set correctResponse(value: string | string[]);
803
- }
804
- declare global {
805
- interface HTMLElementTagNameMap {
806
- 'qti-gap-match-interaction': QtiGapMatchInteraction;
807
- }
808
- }
809
-
810
- declare class QtiGraphicAssociateInteraction extends Interaction {
811
- choiceOrdering: boolean;
812
- hotspots: any;
813
- startPoint: any;
814
- endPoint: any;
815
- _lines: any[];
816
- startCoord: {
817
- x: any;
818
- y: any;
819
- };
820
- mouseCoord: {
821
- x: number;
822
- y: number;
823
- };
824
- svgContainer: any;
825
- grImage: any;
826
- static styles: lit.CSSResult[];
827
- svg: SVGSVGElement;
828
- constructor();
829
- reset(): void;
830
- validate(): boolean;
831
- set value(val: string | string[]);
832
- get value(): string | string[];
833
- render(): lit_html.TemplateResult<1>;
834
- private positionHotspotOnRegister;
835
- firstUpdated(e: any): void;
836
- disconnectedCallback(): void;
837
- }
838
- declare global {
839
- interface HTMLElementTagNameMap {
840
- 'qti-graphic-associate-interaction': QtiGraphicAssociateInteraction;
841
- }
842
- }
843
-
844
- declare const QtiGraphicGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
845
- declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
846
- static styles: CSSResultGroup;
847
- render(): lit_html.TemplateResult<1>;
848
- private positionHotspotOnRegister;
849
- connectedCallback(): void;
850
- disconnectedCallback(): void;
851
- }
852
- declare global {
853
- interface HTMLElementTagNameMap {
854
- 'qti-graphic-gap-match-interaction': QtiGraphicGapMatchInteraction;
855
- }
856
- }
857
-
858
- declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
859
- declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
860
- choiceOrdering: boolean;
861
- protected _choiceElements: Choice[];
862
- static styles: lit.CSSResult[];
863
- render(): lit_html.TemplateResult<1>;
864
- private setHotspotOrder;
865
- private positionHotspotOnRegister;
866
- connectedCallback(): void;
867
- disconnectedCallback(): void;
868
- }
869
- declare global {
870
- interface HTMLElementTagNameMap {
871
- 'qti-graphic-order-interaction': QtiGraphicOrderInteraction;
872
- }
873
- }
874
-
875
- declare const QtiHotspotInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
876
- declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
877
- static styles: lit.CSSResult[];
878
- render(): lit_html.TemplateResult<1>;
879
- private positionHotspotOnRegister;
880
- connectedCallback(): void;
881
- disconnectedCallback(): void;
882
- }
883
- declare global {
884
- interface HTMLElementTagNameMap {
885
- 'qti-hotspot-interaction': QtiHotspotInteraction;
886
- }
887
- }
888
-
889
- declare const QtiSimpleAssociableChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
890
- declare class QtiSimpleAssociableChoice extends QtiSimpleAssociableChoice_base {
891
- static styles: lit.CSSResult;
892
- /** the minimal number of selections a candidate must make */
893
- matchMin: number;
894
- /** the maximum number of selections a candidate must make, the other options will be disabled when max options is checked */
895
- matchMax: number;
896
- fixed: boolean;
897
- connectedCallback(): void;
898
- render(): lit_html.TemplateResult<1>;
899
- }
900
- declare global {
901
- interface HTMLElementTagNameMap {
902
- 'qti-simple-associable-choice': QtiSimpleAssociableChoice;
903
- }
904
- }
905
-
906
- declare const QtiMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
907
- declare class QtiMatchInteraction extends QtiMatchInteraction_base {
908
- static styles: CSSResultGroup;
909
- protected rows: QtiSimpleAssociableChoice[];
910
- protected cols: QtiSimpleAssociableChoice[];
911
- protected lastCheckedRadio: HTMLInputElement | null;
912
- class: string;
913
- protected _response: string | string[];
914
- get value(): string[];
915
- set value(val: string[]);
916
- responseIdentifier: string;
917
- protected correctOptions: string[];
918
- connectedCallback(): Promise<void>;
919
- protected handleRadioClick: (e: any) => void;
920
- protected handleRadioChange: (e: any) => void;
921
- set correctResponse(responseValue: string | string[]);
922
- render(): lit_html.TemplateResult<1>;
923
- }
924
- declare global {
925
- interface HTMLElementTagNameMap {
926
- 'qti-match-interaction': QtiMatchInteraction;
927
- }
928
- }
929
-
930
- declare class QtiMediaInteraction extends Interaction {
931
- private _value;
932
- reset(): void;
933
- validate(): boolean;
934
- get value(): string | string[];
935
- set value(val: string | string[]);
936
- static get properties(): {
937
- step: {
938
- type: NumberConstructor;
939
- attribute: string;
940
- default: number;
941
- };
942
- };
943
- static styles: lit.CSSResult[];
944
- render(): lit_html.TemplateResult<1>;
945
- constructor();
946
- connectedCallback(): void;
947
- }
948
- declare global {
949
- interface HTMLElementTagNameMap {
950
- 'qti-media-interaction': QtiMediaInteraction;
951
- }
952
- }
953
-
954
- declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
955
- declare class QtiOrderInteraction extends QtiOrderInteraction_base {
956
- static styles: lit.CSSResult;
957
- childrenMap: Element[];
958
- nrChoices: number;
959
- correctResponses: string[];
960
- showCorrectResponses: boolean;
961
- /** orientation of choices */
962
- orientation: 'horizontal' | 'vertical';
963
- render(): lit_html.TemplateResult<1>;
964
- set correctResponse(value: string | string[]);
965
- protected getResponse(): string[];
966
- firstUpdated(changedProps: any): Promise<void>;
967
- }
968
- declare global {
969
- interface HTMLElementTagNameMap {
970
- 'qti-order-interaction': QtiOrderInteraction;
971
- }
972
- }
973
-
974
- declare class QtiPositionObjectStage extends LitElement {
975
- choiceOrdering: boolean;
976
- startX: any;
977
- startY: any;
978
- dragElement: any;
979
- render(): lit_html.TemplateResult<1>;
980
- static styles: lit.CSSResult[];
981
- constructor();
982
- dragElementHandler(event: any): void;
983
- firstUpdated(a: any): void;
984
- removeMoveListener(): void;
985
- disconnectedCallback(): void;
986
- }
987
- declare global {
988
- interface HTMLElementTagNameMap {
989
- 'qti-position-object-stage': QtiPositionObjectStage;
990
- }
991
- }
992
-
993
- declare class QtiSelectPointInteraction extends Interaction {
994
- static styles: lit.CSSResult[];
995
- maxChoices: number;
996
- minChoices: number;
997
- private _points;
998
- private _imgElement;
999
- private _onImageClick;
1000
- render(): lit_html.TemplateResult<1>;
1001
- reset(): void;
1002
- validate(): boolean;
1003
- set value(val: string | string[]);
1004
- get value(): string | string[];
1005
- firstUpdated(): void;
1006
- disconnectedCallback(): void;
1007
- }
1008
- declare global {
1009
- interface HTMLElementTagNameMap {
1010
- 'qti-select-point-interaction': QtiSelectPointInteraction;
1011
- }
1012
- }
1013
-
1014
- /**
1015
- * @summary The SliderInteraction.Type (qti-slider-interaction) presents the candidate with a control for selecting a numerical value between a lower and upper bound.
1016
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.s61xcrj4qcyj
1017
- * @status stable
1018
- * @since 6.0
1019
- *
1020
- * @event qti-register-interaction - emitted when the interaction wants to register itself
1021
- * @event qti-interaction-response - emitted when the interaction changes
1022
- *
1023
- * @cssprop --show-value - shows the current value while sliding
1024
- * @cssprop --show-ticks - shows the ticks according to steps
1025
- * @cssprop --show-bounds - shows value for lower and upper boundary
1026
- *
1027
- * @csspart slider -- slider inluding, bounds and ticks and value, use it for paddings and margins
1028
- * @csspart bounds -- div for bounds, containing two divs for with min, and max bounds value
1029
- * @csspart ticks -- div for ticks, use lineair gradient and exposed css variables for styling
1030
- * @csspart rail -- div for rail, style according to needs
1031
- * @csspart knob -- div, should be relative or absolute
1032
- * @csspart value -- div, containing value
1033
- *
1034
- * @slot - The default slot where <qti-simple-choice> must be placed.
1035
- * @slot prompt - slot where the prompt is placed.
1036
- */
1037
- declare class QtiSliderInteraction extends Interaction {
1038
- private _value;
1039
- csLive: CSSStyleDeclaration;
1040
- private _rail;
1041
- stepLabel: boolean;
1042
- reverse: boolean;
1043
- private _min;
1044
- set min(value: number);
1045
- get min(): number;
1046
- private _max;
1047
- set max(value: number);
1048
- get max(): number;
1049
- private _step;
1050
- set step(value: number);
1051
- get step(): number;
1052
- _handleDisabledChange: () => void;
1053
- _handleReadonlyChange: () => void;
1054
- reset(): void;
1055
- validate(): boolean;
1056
- get value(): string | string[];
1057
- set value(val: string | string[]);
1058
- constructor();
1059
- set response(myResponse: string | string[]);
1060
- static styles: lit.CSSResult[];
1061
- render(): lit_html.TemplateResult<1>;
1062
- connectedCallback(): void;
1063
- private _onTouchMove;
1064
- private _onMouseDown;
1065
- /** calculateValue gets x position and compares this with the total width in pixels */
1066
- private calculateValue;
1067
- private getPositionFromEvent;
1068
- }
1069
- declare global {
1070
- interface HTMLElementTagNameMap {
1071
- 'qti-slider-interaction': QtiSliderInteraction;
1072
- }
1073
- }
1074
-
1075
- /**
1076
- * https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
1077
- * <qti-custom-operator class="js.org">
1078
- <qti-base-value base-type="string"><![CDATA[
1079
- console.log(context.variables);
1080
- return 'B'
1081
- document.querySelector('qti-end-attempt-interaction').disabled = true;
1082
- ]]></qti-base-value>
1083
- </qti-custom-operator>
1084
- </qti-set-outcome-value>
1085
- */
1086
- declare class QtiCustomOperator extends LitElement implements Calculate {
1087
- private operatorFunction;
1088
- private _context?;
1089
- render(): lit_html.TemplateResult<1>;
1090
- handleSlotChange(): void;
1091
- calculate(): any;
1092
- }
1093
- declare global {
1094
- interface HTMLElementTagNameMap {
1095
- 'qti-custom-operator': QtiCustomOperator;
1096
- }
1097
- }
1098
-
1099
- declare class QtiAssociableHotspot extends LitElement {
1100
- static styles: lit.CSSResult;
1101
- connectedCallback(): void;
1102
- render(): lit_html.TemplateResult<1>;
1103
- }
1104
- declare global {
1105
- interface HTMLElementTagNameMap {
1106
- 'qti-associable-hotspot': QtiAssociableHotspot;
1107
- }
1108
- }
1109
-
1110
- declare class QtiGap extends LitElement {
1111
- static styles: lit.CSSResult;
1112
- tabindex: number | undefined;
1113
- render(): lit_html.TemplateResult<1>;
1114
- }
1115
- declare global {
1116
- interface HTMLElementTagNameMap {
1117
- 'qti-gap': QtiGap;
1118
- }
1119
- }
1120
-
1121
- declare class QtiGapImg extends LitElement {
1122
- static styles: lit.CSSResult;
1123
- tabindex: number | undefined;
1124
- connectedCallback(): void;
1125
- }
1126
- declare global {
1127
- interface HTMLElementTagNameMap {
1128
- 'qti-gap-img': QtiGapImg;
1129
- }
1130
- }
1131
-
1132
- declare const QtiGapText_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
1133
- declare class QtiGapText extends QtiGapText_base {
1134
- static styles: lit.CSSResult;
1135
- tabindex: number | undefined;
1136
- connectedCallback(): void;
1137
- render(): lit_html.TemplateResult<1>;
1138
- }
1139
- declare global {
1140
- interface HTMLElementTagNameMap {
1141
- 'qti-gap-text': QtiGapText;
1142
- }
1143
- }
1144
-
1145
- declare const QtiHotspotChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
1146
- declare class QtiHotspotChoice extends QtiHotspotChoice_base {
1147
- static styles: lit.CSSResult;
1148
- order: number;
1149
- }
1150
- declare global {
1151
- interface HTMLElementTagNameMap {
1152
- 'qti-hotspot-choice': QtiHotspotChoice;
1153
- }
1154
- }
1155
-
1156
- declare const QtiHottext_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
1157
- declare class QtiHottext extends QtiHottext_base {
1158
- static styles: lit.CSSResult;
1159
- render(): lit_html.TemplateResult<1>;
1160
- }
1161
- declare global {
1162
- interface HTMLElementTagNameMap {
1163
- 'qti-hottext': QtiHottext;
1164
- }
1165
- }
1166
-
1167
- declare class QtiInlineChoice extends LitElement {
1168
- static get styles(): lit.CSSResult[];
1169
- identifier: string;
1170
- connectedCallback(): void;
1171
- disconnectedCallback(): void;
1172
- render(): lit_html.TemplateResult<1>;
1173
- private _onSelectInlineChoice;
1174
- }
1175
- declare global {
1176
- interface HTMLElementTagNameMap {
1177
- 'qti-inline-choice': QtiInlineChoice;
1178
- }
1179
- }
1180
-
1181
- declare const QtiSimpleChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
1182
- /**
1183
- * qti-order-interaction
1184
- * qti-choice-interaction
1185
- */
1186
- declare class QtiSimpleChoice extends QtiSimpleChoice_base {
1187
- static styles: lit.CSSResult;
1188
- marker: string;
1189
- get checked(): boolean;
1190
- render(): lit_html.TemplateResult<1>;
1191
- }
1192
- declare global {
1193
- interface HTMLElementTagNameMap {
1194
- 'qti-simple-choice': QtiSimpleChoice;
1195
- }
1196
- }
1197
-
1198
- 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 };