@citolab/qti-components 7.3.23 → 7.4.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 (293) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +5485 -1
  3. package/custom-elements.json +29837 -0
  4. package/dist/chunks/chunk-4BDOB6KY.js +365 -0
  5. package/dist/chunks/chunk-4BDOB6KY.js.map +1 -0
  6. package/dist/chunks/{chunk-LF6SO3JU.js → chunk-7RW7LCEJ.js} +459 -587
  7. package/dist/chunks/chunk-7RW7LCEJ.js.map +1 -0
  8. package/dist/chunks/chunk-APBAIN6D.js +2237 -0
  9. package/dist/chunks/chunk-APBAIN6D.js.map +1 -0
  10. package/dist/chunks/{chunk-22IRJWWY.js → chunk-C5RLRG3L.js} +1 -1
  11. package/dist/chunks/chunk-C5RLRG3L.js.map +1 -0
  12. package/dist/chunks/{chunk-AZIKAG7K.js → chunk-DVQQ7I6Y.js} +1 -1
  13. package/dist/chunks/chunk-DVQQ7I6Y.js.map +1 -0
  14. package/dist/chunks/{chunk-QCB6P7DH.js → chunk-GAAFN7QF.js} +1 -1
  15. package/dist/chunks/{chunk-QCB6P7DH.js.map → chunk-GAAFN7QF.js.map} +1 -1
  16. package/dist/chunks/chunk-K47QFOQX.js +175 -0
  17. package/dist/chunks/chunk-K47QFOQX.js.map +1 -0
  18. package/dist/chunks/{chunk-FL72PF4D.js → chunk-SV4K25ZI.js} +2 -2
  19. package/dist/custom-elements.json +29837 -0
  20. package/dist/exports/computed-item.context.d.ts +1 -7
  21. package/dist/exports/computed.context.d.ts +2 -10
  22. package/dist/exports/computed.context.js +1 -1
  23. package/dist/exports/interaction.d.ts +45 -7
  24. package/dist/exports/item.context.d.ts +10 -7
  25. package/dist/exports/qti-assessment-item.context.d.ts +2 -7
  26. package/dist/exports/qti-condition-expression.d.ts +4 -5
  27. package/dist/exports/qti-condition-expression.js +2 -2
  28. package/dist/exports/qti-expression.d.ts +22 -7
  29. package/dist/exports/qti-expression.js +1 -1
  30. package/dist/exports/qti-test.d.ts +10 -38
  31. package/dist/exports/session.context.d.ts +2 -13
  32. package/dist/exports/session.context.js +1 -1
  33. package/dist/exports/test.context.d.ts +2 -7
  34. package/dist/exports/variables.d.ts +1 -7
  35. package/dist/index.d.ts +12 -31
  36. package/dist/index.js +38 -95
  37. package/{cdn/chunks/chunk-5TDBMEY5.js → dist/item.css} +7 -24
  38. package/dist/qti-assessment-item-l-mN3teH.d.ts +105 -0
  39. package/dist/qti-components/index.d.ts +1173 -16
  40. package/dist/qti-components/index.js +6 -5
  41. package/dist/qti-components-jsx.d.ts +4463 -0
  42. package/dist/qti-item/index.d.ts +114 -0
  43. package/dist/qti-item/index.js +19 -0
  44. package/dist/qti-loader/index.d.ts +2 -5
  45. package/dist/qti-loader/index.js +24 -4
  46. package/dist/qti-loader/index.js.map +1 -1
  47. package/dist/qti-modal-feedback-PKbhO-3w.d.ts +30 -0
  48. package/dist/qti-test/index.d.ts +480 -0
  49. package/dist/qti-test/index.js +69 -0
  50. package/dist/{qti-test-feedback-CZsbp6z4.d.ts → qti-test-BwvOhz_-.d.ts} +45 -18
  51. package/dist/variables-BCkyLoXK.d.ts +55 -0
  52. package/dist/vscode.css-custom-data.json +11 -0
  53. package/dist/vscode.html-custom-data.json +1135 -0
  54. package/package.json +74 -116
  55. package/cdn/chunks/chunk-2BSPQRNR.js +0 -6
  56. package/cdn/chunks/chunk-3CVBBZDT.js +0 -17
  57. package/cdn/chunks/chunk-3IBGLVHA.js +0 -1
  58. package/cdn/chunks/chunk-3YQMAZEO.js +0 -29
  59. package/cdn/chunks/chunk-5UQLGV7F.js +0 -5
  60. package/cdn/chunks/chunk-5WLHU3FH.js +0 -8
  61. package/cdn/chunks/chunk-6SGFGN34.js +0 -8
  62. package/cdn/chunks/chunk-6XVY32RS.js +0 -1
  63. package/cdn/chunks/chunk-7ME56ODO.js +0 -1
  64. package/cdn/chunks/chunk-CZDMOYYF.js +0 -1
  65. package/cdn/chunks/chunk-DNBBQ7LY.js +0 -1
  66. package/cdn/chunks/chunk-DP5FVJRS.js +0 -21
  67. package/cdn/chunks/chunk-E6IOJ4MV.js +0 -23
  68. package/cdn/chunks/chunk-G76Y52EL.js +0 -1471
  69. package/cdn/chunks/chunk-HCXHHI6V.js +0 -18
  70. package/cdn/chunks/chunk-HDMF4QZO.js +0 -48
  71. package/cdn/chunks/chunk-HKWYQB5Z.js +0 -37
  72. package/cdn/chunks/chunk-J5P2GBPV.js +0 -1
  73. package/cdn/chunks/chunk-KWPDTFYH.js +0 -1
  74. package/cdn/chunks/chunk-LIUOA3YV.js +0 -1
  75. package/cdn/chunks/chunk-LO2NM3CE.js +0 -1
  76. package/cdn/chunks/chunk-MD33BNWM.js +0 -1
  77. package/cdn/chunks/chunk-MRQ46JRY.js +0 -8
  78. package/cdn/chunks/chunk-NJP4VZB3.js +0 -8
  79. package/cdn/chunks/chunk-O4RAJ3LM.js +0 -25
  80. package/cdn/chunks/chunk-OSLUHYFD.js +0 -8
  81. package/cdn/chunks/chunk-P6SSTAJ2.js +0 -1
  82. package/cdn/chunks/chunk-PP62N3C4.js +0 -8
  83. package/cdn/chunks/chunk-PU7OABT3.js +0 -1
  84. package/cdn/chunks/chunk-PUI3LIFH.js +0 -0
  85. package/cdn/chunks/chunk-QBAXWCYQ.js +0 -5
  86. package/cdn/chunks/chunk-QEFO63QX.js +0 -8
  87. package/cdn/chunks/chunk-QQCGUVEV.js +0 -1
  88. package/cdn/chunks/chunk-QQR6POPY.js +0 -1
  89. package/cdn/chunks/chunk-RGNFAPWY.js +0 -2
  90. package/cdn/chunks/chunk-S5QDLZ6J.js +0 -1
  91. package/cdn/chunks/chunk-SEM2PEP6.js +0 -5
  92. package/cdn/chunks/chunk-SVVO2SFS.js +0 -1
  93. package/cdn/chunks/chunk-TCHROQU3.js +0 -1
  94. package/cdn/chunks/chunk-UMDZKG6K.js +0 -1
  95. package/cdn/chunks/chunk-VEG7LKS3.js +0 -48
  96. package/cdn/chunks/chunk-WCCTDLQ4.js +0 -8
  97. package/cdn/chunks/chunk-X4FA36TC.js +0 -1
  98. package/cdn/chunks/chunk-XJ2CFTZP.js +0 -1
  99. package/cdn/chunks/chunk-XUJ7TXHW.js +0 -1
  100. package/cdn/chunks/chunk-YCBNF5QU.js +0 -17
  101. package/cdn/chunks/chunk-YHLQ2JQ2.js +0 -1
  102. package/cdn/chunks/chunk-ZPCQH3EY.js +0 -10
  103. package/cdn/exports/computed-item.context.js +0 -1
  104. package/cdn/exports/computed.context.js +0 -1
  105. package/cdn/exports/config.context.js +0 -1
  106. package/cdn/exports/expression-result.js +0 -0
  107. package/cdn/exports/interaction.interface.js +0 -0
  108. package/cdn/exports/interaction.js +0 -1
  109. package/cdn/exports/item.context.js +0 -1
  110. package/cdn/exports/qti-assessment-item.context.js +0 -1
  111. package/cdn/exports/qti-condition-expression.js +0 -1
  112. package/cdn/exports/qti-expression.js +0 -1
  113. package/cdn/exports/qti-test.js +0 -0
  114. package/cdn/exports/qti.context.js +0 -1
  115. package/cdn/exports/session.context.js +0 -1
  116. package/cdn/exports/test.context.js +0 -1
  117. package/cdn/exports/variables.js +0 -0
  118. package/cdn/qti-components/index.js +0 -1
  119. package/cdn/qti-item/components/item-container.js +0 -1
  120. package/cdn/qti-item/components/item-correct-response-mode.js +0 -10
  121. package/cdn/qti-item/components/item-show-candidate-correction.js +0 -8
  122. package/cdn/qti-item/components/item-show-correct-response.js +0 -1
  123. package/cdn/qti-item/components/print-item-variables.js +0 -1
  124. package/cdn/qti-item/components/styles.js +0 -1
  125. package/cdn/qti-item/core/index.js +0 -1
  126. package/cdn/qti-loader/index.js +0 -1
  127. package/cdn/qti-test/components/index.js +0 -1
  128. package/cdn/qti-test/components/styles.js +0 -1
  129. package/cdn/qti-test/components/test-check-item.js +0 -1
  130. package/cdn/qti-test/components/test-container.js +0 -1
  131. package/cdn/qti-test/components/test-end-attempt.js +0 -1
  132. package/cdn/qti-test/components/test-item-link.js +0 -1
  133. package/cdn/qti-test/components/test-navigation.js +0 -1
  134. package/cdn/qti-test/components/test-next.js +0 -1
  135. package/cdn/qti-test/components/test-paging-buttons-stamp.js +0 -1
  136. package/cdn/qti-test/components/test-prev.js +0 -1
  137. package/cdn/qti-test/components/test-print-context.js +0 -1
  138. package/cdn/qti-test/components/test-print-item-variables.js +0 -1
  139. package/cdn/qti-test/components/test-scoring-buttons.js +0 -1
  140. package/cdn/qti-test/components/test-scoring-feedback.js +0 -1
  141. package/cdn/qti-test/components/test-section-buttons-stamp.js +0 -1
  142. package/cdn/qti-test/components/test-section-link.js +0 -1
  143. package/cdn/qti-test/components/test-show-correct-response.js +0 -1
  144. package/cdn/qti-test/components/test-stamp.js +0 -1
  145. package/cdn/qti-test/components/test-view-toggle.js +0 -1
  146. package/cdn/qti-test/components/test-view.js +0 -1
  147. package/cdn/qti-test/core/index.js +0 -1
  148. package/cdn/qti-transformers/index.js +0 -1
  149. package/dist/chunks/chunk-22IRJWWY.js.map +0 -1
  150. package/dist/chunks/chunk-36G5MQKR.js +0 -85
  151. package/dist/chunks/chunk-36G5MQKR.js.map +0 -1
  152. package/dist/chunks/chunk-5KCXO2RP.js +0 -36
  153. package/dist/chunks/chunk-5KCXO2RP.js.map +0 -1
  154. package/dist/chunks/chunk-5ZHHNEDA.js +0 -30
  155. package/dist/chunks/chunk-5ZHHNEDA.js.map +0 -1
  156. package/dist/chunks/chunk-7K44TDQO.js +0 -91
  157. package/dist/chunks/chunk-7K44TDQO.js.map +0 -1
  158. package/dist/chunks/chunk-7OMJMXHK.js +0 -50
  159. package/dist/chunks/chunk-7OMJMXHK.js.map +0 -1
  160. package/dist/chunks/chunk-AZIKAG7K.js.map +0 -1
  161. package/dist/chunks/chunk-BLBSZDQ4.js +0 -52
  162. package/dist/chunks/chunk-BLBSZDQ4.js.map +0 -1
  163. package/dist/chunks/chunk-CP34TICQ.js +0 -45
  164. package/dist/chunks/chunk-CP34TICQ.js.map +0 -1
  165. package/dist/chunks/chunk-CTESMSQO.js +0 -56
  166. package/dist/chunks/chunk-CTESMSQO.js.map +0 -1
  167. package/dist/chunks/chunk-DZAMXOSC.js +0 -30
  168. package/dist/chunks/chunk-DZAMXOSC.js.map +0 -1
  169. package/dist/chunks/chunk-E6V3JHVT.js +0 -31
  170. package/dist/chunks/chunk-E6V3JHVT.js.map +0 -1
  171. package/dist/chunks/chunk-EJZQSOHU.js +0 -85
  172. package/dist/chunks/chunk-EJZQSOHU.js.map +0 -1
  173. package/dist/chunks/chunk-EMVOKXSA.js +0 -84
  174. package/dist/chunks/chunk-EMVOKXSA.js.map +0 -1
  175. package/dist/chunks/chunk-ETLOKJAG.js +0 -94
  176. package/dist/chunks/chunk-ETLOKJAG.js.map +0 -1
  177. package/dist/chunks/chunk-GAHXUFMQ.js +0 -93
  178. package/dist/chunks/chunk-GAHXUFMQ.js.map +0 -1
  179. package/dist/chunks/chunk-KG5Z2CKO.js +0 -86
  180. package/dist/chunks/chunk-KG5Z2CKO.js.map +0 -1
  181. package/dist/chunks/chunk-KSXNC564.js +0 -43
  182. package/dist/chunks/chunk-KSXNC564.js.map +0 -1
  183. package/dist/chunks/chunk-LF6SO3JU.js.map +0 -1
  184. package/dist/chunks/chunk-ODHS7HDB.js +0 -94
  185. package/dist/chunks/chunk-ODHS7HDB.js.map +0 -1
  186. package/dist/chunks/chunk-QU7KR7VX.js +0 -367
  187. package/dist/chunks/chunk-QU7KR7VX.js.map +0 -1
  188. package/dist/chunks/chunk-TU6COU44.js +0 -82
  189. package/dist/chunks/chunk-TU6COU44.js.map +0 -1
  190. package/dist/chunks/chunk-TUKEQ36K.js +0 -60
  191. package/dist/chunks/chunk-TUKEQ36K.js.map +0 -1
  192. package/dist/chunks/chunk-TWYN56XO.js +0 -92
  193. package/dist/chunks/chunk-TWYN56XO.js.map +0 -1
  194. package/dist/chunks/chunk-UHQVQBCL.js +0 -89
  195. package/dist/chunks/chunk-UHQVQBCL.js.map +0 -1
  196. package/dist/chunks/chunk-WFFIUFJJ.js +0 -28
  197. package/dist/chunks/chunk-WFFIUFJJ.js.map +0 -1
  198. package/dist/chunks/chunk-WN6TJQI2.js +0 -103
  199. package/dist/chunks/chunk-WN6TJQI2.js.map +0 -1
  200. package/dist/chunks/chunk-WPEFNKMC.js +0 -923
  201. package/dist/chunks/chunk-WPEFNKMC.js.map +0 -1
  202. package/dist/chunks/chunk-YPMZLHGG.js +0 -52
  203. package/dist/chunks/chunk-YPMZLHGG.js.map +0 -1
  204. package/dist/chunks/chunk-YWEWSQJR.js +0 -40
  205. package/dist/chunks/chunk-YWEWSQJR.js.map +0 -1
  206. package/dist/chunks/chunk-ZGSNDSK3.js +0 -1
  207. package/dist/chunks/chunk-ZGSNDSK3.js.map +0 -1
  208. package/dist/qti-item/components/item-container.d.ts +0 -40
  209. package/dist/qti-item/components/item-container.js +0 -11
  210. package/dist/qti-item/components/item-container.js.map +0 -1
  211. package/dist/qti-item/components/item-correct-response-mode.d.ts +0 -17
  212. package/dist/qti-item/components/item-correct-response-mode.js +0 -62
  213. package/dist/qti-item/components/item-correct-response-mode.js.map +0 -1
  214. package/dist/qti-item/components/item-show-candidate-correction.d.ts +0 -34
  215. package/dist/qti-item/components/item-show-candidate-correction.js +0 -88
  216. package/dist/qti-item/components/item-show-candidate-correction.js.map +0 -1
  217. package/dist/qti-item/components/item-show-correct-response.d.ts +0 -33
  218. package/dist/qti-item/components/item-show-correct-response.js +0 -10
  219. package/dist/qti-item/components/item-show-correct-response.js.map +0 -1
  220. package/dist/qti-item/components/print-item-variables.d.ts +0 -23
  221. package/dist/qti-item/components/print-item-variables.js +0 -9
  222. package/dist/qti-item/components/print-item-variables.js.map +0 -1
  223. package/dist/qti-item/components/styles.d.ts +0 -8
  224. package/dist/qti-item/components/styles.js +0 -14
  225. package/dist/qti-item/components/styles.js.map +0 -1
  226. package/dist/qti-item/core/index.d.ts +0 -51
  227. package/dist/qti-item/core/index.js +0 -26
  228. package/dist/qti-response-declaration-DKr08ANy.d.ts +0 -1397
  229. package/dist/qti-test/components/index.d.ts +0 -33
  230. package/dist/qti-test/components/index.js +0 -87
  231. package/dist/qti-test/components/styles.d.ts +0 -8
  232. package/dist/qti-test/components/styles.js +0 -14
  233. package/dist/qti-test/components/styles.js.map +0 -1
  234. package/dist/qti-test/components/test-check-item.d.ts +0 -16
  235. package/dist/qti-test/components/test-check-item.js +0 -9
  236. package/dist/qti-test/components/test-check-item.js.map +0 -1
  237. package/dist/qti-test/components/test-container.d.ts +0 -39
  238. package/dist/qti-test/components/test-container.js +0 -11
  239. package/dist/qti-test/components/test-container.js.map +0 -1
  240. package/dist/qti-test/components/test-end-attempt.d.ts +0 -16
  241. package/dist/qti-test/components/test-end-attempt.js +0 -9
  242. package/dist/qti-test/components/test-end-attempt.js.map +0 -1
  243. package/dist/qti-test/components/test-item-link.d.ts +0 -18
  244. package/dist/qti-test/components/test-item-link.js +0 -9
  245. package/dist/qti-test/components/test-item-link.js.map +0 -1
  246. package/dist/qti-test/components/test-navigation.d.ts +0 -73
  247. package/dist/qti-test/components/test-navigation.js +0 -13
  248. package/dist/qti-test/components/test-navigation.js.map +0 -1
  249. package/dist/qti-test/components/test-next.d.ts +0 -48
  250. package/dist/qti-test/components/test-next.js +0 -12
  251. package/dist/qti-test/components/test-next.js.map +0 -1
  252. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +0 -23
  253. package/dist/qti-test/components/test-paging-buttons-stamp.js +0 -9
  254. package/dist/qti-test/components/test-paging-buttons-stamp.js.map +0 -1
  255. package/dist/qti-test/components/test-prev.d.ts +0 -46
  256. package/dist/qti-test/components/test-prev.js +0 -12
  257. package/dist/qti-test/components/test-prev.js.map +0 -1
  258. package/dist/qti-test/components/test-print-context.d.ts +0 -25
  259. package/dist/qti-test/components/test-print-context.js +0 -9
  260. package/dist/qti-test/components/test-print-context.js.map +0 -1
  261. package/dist/qti-test/components/test-print-item-variables.d.ts +0 -27
  262. package/dist/qti-test/components/test-print-item-variables.js +0 -9
  263. package/dist/qti-test/components/test-print-item-variables.js.map +0 -1
  264. package/dist/qti-test/components/test-scoring-buttons.d.ts +0 -32
  265. package/dist/qti-test/components/test-scoring-buttons.js +0 -9
  266. package/dist/qti-test/components/test-scoring-buttons.js.map +0 -1
  267. package/dist/qti-test/components/test-scoring-feedback.d.ts +0 -27
  268. package/dist/qti-test/components/test-scoring-feedback.js +0 -9
  269. package/dist/qti-test/components/test-scoring-feedback.js.map +0 -1
  270. package/dist/qti-test/components/test-section-buttons-stamp.d.ts +0 -23
  271. package/dist/qti-test/components/test-section-buttons-stamp.js +0 -9
  272. package/dist/qti-test/components/test-section-buttons-stamp.js.map +0 -1
  273. package/dist/qti-test/components/test-section-link.d.ts +0 -18
  274. package/dist/qti-test/components/test-section-link.js +0 -9
  275. package/dist/qti-test/components/test-section-link.js.map +0 -1
  276. package/dist/qti-test/components/test-show-correct-response.d.ts +0 -39
  277. package/dist/qti-test/components/test-show-correct-response.js +0 -10
  278. package/dist/qti-test/components/test-show-correct-response.js.map +0 -1
  279. package/dist/qti-test/components/test-stamp.d.ts +0 -31
  280. package/dist/qti-test/components/test-stamp.js +0 -9
  281. package/dist/qti-test/components/test-stamp.js.map +0 -1
  282. package/dist/qti-test/components/test-view-toggle.d.ts +0 -19
  283. package/dist/qti-test/components/test-view-toggle.js +0 -9
  284. package/dist/qti-test/components/test-view-toggle.js.map +0 -1
  285. package/dist/qti-test/components/test-view.d.ts +0 -24
  286. package/dist/qti-test/components/test-view.js +0 -10
  287. package/dist/qti-test/components/test-view.js.map +0 -1
  288. package/dist/qti-test/core/index.d.ts +0 -105
  289. package/dist/qti-test/core/index.js +0 -36
  290. package/dist/qti-test/core/index.js.map +0 -1
  291. /package/dist/chunks/{chunk-FL72PF4D.js.map → chunk-SV4K25ZI.js.map} +0 -0
  292. /package/dist/qti-item/{core/index.js.map → index.js.map} +0 -0
  293. /package/dist/qti-test/{components/index.js.map → index.js.map} +0 -0
@@ -1,16 +1,386 @@
1
- import { a8 as ChoicesInterface, a9 as Interaction, Y as QtiRule, Z as QtiRuleBase, aa as QtiExpressionBase, a4 as QtiExpression, a3 as ItemContext, ab as ResponseVariable, a5 as VariableDeclaration } from '../qti-response-declaration-DKr08ANy.js';
2
- export { O as Orientation, U as QtiAreaMapEntry, T as QtiAreaMapping, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, _ as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, v as QtiHottext, x as QtiInlineChoice, w as QtiInlineChoiceInteraction, J as QtiItemBody, P as QtiLookupOutcomeValue, S as QtiMapEntry, R as QtiMapping, y as QtiMatchInteraction, z as QtiMediaInteraction, f as QtiModalFeedback, A as QtiOrderInteraction, a1 as QtiOutcomeDeclaration, K as QtiOutcomeProcessing, L as QtiOutcomeProcessingProcessor, B as QtiPortableCustomInteraction, C as QtiPositionObjectStage, M as QtiPrompt, a2 as QtiResponseDeclaration, N as QtiResponseProcessing, $ as QtiRubricBlock, D as QtiSelectPointInteraction, E as QtiSimpleAssociableChoice, F as QtiSimpleChoice, G as QtiSliderInteraction, a0 as QtiStylesheet, W as QtiSubtract, H as QtiTextEntryInteraction, I as QtiUploadInteraction, V as areaShape, X as qtiSubtractMixin } from '../qti-response-declaration-DKr08ANy.js';
3
- import * as lit_html from 'lit-html';
1
+ export { Q as QtiAssessmentItem } from '../qti-assessment-item-l-mN3teH.js';
4
2
  import * as lit from 'lit';
5
- import { PropertyValues, LitElement, nothing } from 'lit';
3
+ import { LitElement, CSSResultGroup, PropertyValues, PropertyValueMap, nothing } from 'lit';
4
+ import * as lit_html from 'lit-html';
5
+ import { Calculate, Cardinality, BaseType } from '../exports/expression-result.js';
6
+ import { a as QtiFeedback } from '../qti-modal-feedback-PKbhO-3w.js';
7
+ export { Q as QtiModalFeedback } from '../qti-modal-feedback-PKbhO-3w.js';
8
+ import { IInteraction } from '../exports/interaction.interface.js';
9
+ import { Interaction, Correctness } from '../exports/interaction.js';
10
+ import { ConfigContext } from '../exports/config.context.js';
11
+ import { ItemContext } from '../exports/item.context.js';
12
+ import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
13
+ import { QtiExpression, QtiExpressionBase } from '../exports/qti-expression.js';
6
14
  import { QtiConditionExpression } from '../exports/qti-condition-expression.js';
7
- import { BaseType } from '../exports/expression-result.js';
8
15
  import { TestContext } from '../exports/test.context.js';
9
- import '../exports/interaction.interface.js';
10
- import '../exports/config.context.js';
11
- import 'lit-html/directives/ref.js';
16
+ import { R as ResponseVariable, V as VariableDeclaration } from '../variables-BCkyLoXK.js';
17
+ export { c as QtiAreaMapEntry, b as QtiAreaMapping, a as QtiMapEntry, Q as QtiMapping, d as areaShape } from '../variables-BCkyLoXK.js';
12
18
  import '../exports/qti.context.js';
13
19
 
20
+ /**
21
+ * Represents a custom element for referencing an assessment stimulus.
22
+ */
23
+ declare class QtiAssessmentStimulusRef extends LitElement {
24
+ /**
25
+ * The identifier of the stimulus.
26
+ */
27
+ identifier: string;
28
+ /**
29
+ * The href of the stimulus.
30
+ */
31
+ href: string;
32
+ /**
33
+ * Lifecycle method called when the element is connected to the DOM.
34
+ * Loads and appends the stimulus if the 'qti-assessment-stimulus-ref-connected' event is not prevented.
35
+ */
36
+ connectedCallback(): Promise<void>;
37
+ /**
38
+ * Loads and appends the stimulus to the specified element.
39
+ * @param stimulusRef - The element to which the stimulus will be appended.
40
+ */
41
+ updateStimulusRef(stimulusRef: Element): Promise<void>;
42
+ }
43
+ declare global {
44
+ interface HTMLElementTagNameMap {
45
+ 'qti-assessment-stimulus-ref': QtiAssessmentStimulusRef;
46
+ }
47
+ }
48
+
49
+ declare class QtiCompanionMaterialsInfo extends LitElement {
50
+ }
51
+ declare global {
52
+ interface HTMLElementTagNameMap {
53
+ 'qti-companion-materials-info': QtiCompanionMaterialsInfo;
54
+ }
55
+ }
56
+
57
+ /**
58
+ * https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
59
+ * <qti-custom-operator class="js.org">
60
+ <qti-base-value base-type="string"><![CDATA[
61
+ console.log(context.variables);
62
+ return 'B'
63
+ document.querySelector('qti-end-attempt-interaction').disabled = true;
64
+ ]]></qti-base-value>
65
+ </qti-custom-operator>
66
+ </qti-set-outcome-value>
67
+ */
68
+ declare class QtiCustomOperator extends LitElement implements Calculate {
69
+ private operatorFunction;
70
+ private _context?;
71
+ render(): lit_html.TemplateResult<1>;
72
+ handleSlotChange(): void;
73
+ calculate(): any;
74
+ }
75
+ declare global {
76
+ interface HTMLElementTagNameMap {
77
+ 'qti-custom-operator': QtiCustomOperator;
78
+ }
79
+ }
80
+
81
+ declare class QtiFeedbackBlock extends QtiFeedback {
82
+ static styles: lit.CSSResult;
83
+ render(): lit_html.TemplateResult<1>;
84
+ connectedCallback(): void;
85
+ }
86
+ declare global {
87
+ interface HTMLElementTagNameMap {
88
+ 'qti-feedback-block': QtiFeedbackBlock;
89
+ }
90
+ }
91
+
92
+ declare class QtiFeedbackInline extends QtiFeedback {
93
+ static styles: lit.CSSResult;
94
+ render: () => lit_html.TemplateResult<1>;
95
+ connectedCallback(): void;
96
+ }
97
+ declare global {
98
+ interface HTMLElementTagNameMap {
99
+ 'qti-feedback-inline': QtiFeedbackInline;
100
+ }
101
+ }
102
+
103
+ declare class QtiAssociableHotspot extends LitElement {
104
+ static styles: lit.CSSResult;
105
+ connectedCallback(): void;
106
+ render(): lit_html.TemplateResult<1>;
107
+ }
108
+ declare global {
109
+ interface HTMLElementTagNameMap {
110
+ 'qti-associable-hotspot': QtiAssociableHotspot;
111
+ }
112
+ }
113
+
114
+ declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
115
+ declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
116
+ static styles: CSSResultGroup;
117
+ protected _childrenMap: Element[];
118
+ protected _registerChoiceHandler: (event: CustomEvent) => void;
119
+ constructor();
120
+ protected _registerChoice(event: CustomEvent): void;
121
+ render(): lit_html.TemplateResult<1>;
122
+ disconnectedCallback(): void;
123
+ }
124
+ declare global {
125
+ interface HTMLElementTagNameMap {
126
+ 'qti-associate-interaction': QtiAssociateInteraction;
127
+ }
128
+ }
129
+
130
+ interface ChoiceInterface {
131
+ identifier: string;
132
+ disabled: boolean;
133
+ readonly: boolean;
134
+ }
135
+ /**
136
+ * A mixin that adds choice functionality to a LitElement-based class.
137
+ * It dispatches events with a custom `type` and handles selection logic.
138
+ *
139
+ * @param Base - The base class to extend.
140
+ * @param type - The type of the choice, used in event names.
141
+ * @returns A new class extending the base class with choice functionality.
142
+ */
143
+ interface ActiveElementMixinInterface {
144
+ identifier: string;
145
+ tabIndex: number;
146
+ disabled: boolean;
147
+ readonly: boolean;
148
+ internals: ElementInternals;
149
+ }
150
+
151
+ type Choice = HTMLElement & ChoiceInterface & {
152
+ internals: ElementInternals;
153
+ };
154
+ interface ChoicesInterface extends IInteraction {
155
+ minChoices: number;
156
+ maxChoices: number;
157
+ value: string | null;
158
+ response: string | string[] | null;
159
+ validate(): boolean;
160
+ reportValidity(): boolean;
161
+ }
162
+
163
+ type Orientation = 'horizontal' | 'vertical' | undefined;
164
+ declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
165
+ declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
166
+ static styles: CSSResultGroup;
167
+ /** @deprecated, use 'qti-orientation-horizontal' or 'qti-orientation-vertical' instead */
168
+ orientation: Orientation;
169
+ private _handleSlotChange;
170
+ render(): lit_html.TemplateResult<1>;
171
+ }
172
+ declare global {
173
+ interface HTMLElementTagNameMap {
174
+ 'qti-choice-interaction': QtiChoiceInteraction;
175
+ }
176
+ }
177
+
178
+ declare class QtiCustomInteraction extends Interaction {
179
+ private rawResponse;
180
+ constructor();
181
+ data: string;
182
+ baseItemUrl: string;
183
+ baseRefUrl: string;
184
+ id: string;
185
+ private _errorMessage;
186
+ manifest: {
187
+ script: string[];
188
+ style: string[];
189
+ media: string[];
190
+ };
191
+ connectedCallback(): void;
192
+ setupCES(): void;
193
+ private getIFrames;
194
+ private getInnerIFrames;
195
+ private postToWindowAndIframes;
196
+ handlePostMessage(event: MessageEvent): void;
197
+ validate(): boolean;
198
+ get response(): string | string[] | null;
199
+ set response(val: string | string[] | null);
200
+ disconnectedCallback(): void;
201
+ render(): lit_html.TemplateResult<1>;
202
+ }
203
+ declare global {
204
+ interface HTMLElementTagNameMap {
205
+ 'qti-custom-interaction': QtiCustomInteraction;
206
+ }
207
+ }
208
+
209
+ declare class QtiEndAttemptInteraction extends LitElement {
210
+ responseIdentifier: any;
211
+ disabled: boolean;
212
+ /** Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt) */
213
+ countAttempt: 'true' | 'false' | null;
214
+ title: string;
215
+ render(): lit_html.TemplateResult<1>;
216
+ endAttempt(_: Event): void;
217
+ }
218
+ declare global {
219
+ interface HTMLElementTagNameMap {
220
+ 'qti-end-attempt-interaction': QtiEndAttemptInteraction;
221
+ }
222
+ }
223
+
224
+ declare class QtiExtendedTextInteraction extends Interaction {
225
+ static styles: CSSResultGroup;
226
+ protected _rows: number;
227
+ /** expected length is mapped to the property maxlength on the textarea */
228
+ expectedLength: number;
229
+ patternMask: string;
230
+ /** text appearing in the extended-text-interaction if it is empty */
231
+ placeholderText: string;
232
+ dataPatternmaskMessage: string;
233
+ classNames: any;
234
+ handleclassNamesChange(_: any, classes: string): void;
235
+ response: string | null;
236
+ protected _handleResponseChange: () => void;
237
+ get value(): string | null;
238
+ set value(val: string | null);
239
+ validate(): boolean;
240
+ toggleCorrectResponse(): void;
241
+ reportValidity(): boolean;
242
+ render(): lit_html.TemplateResult<1>;
243
+ protected textChanged(event: Event): void;
244
+ protected setEmptyAttribute(text: string): void;
245
+ }
246
+ declare global {
247
+ interface HTMLElementTagNameMap {
248
+ 'qti-extended-text-interaction': QtiExtendedTextInteraction;
249
+ }
250
+ }
251
+
252
+ declare class QtiGapImg extends LitElement {
253
+ static styles: lit.CSSResult;
254
+ tabindex: number | undefined;
255
+ connectedCallback(): void;
256
+ }
257
+ declare global {
258
+ interface HTMLElementTagNameMap {
259
+ 'qti-gap-img': QtiGapImg;
260
+ }
261
+ }
262
+
263
+ declare const QtiGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
264
+ declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
265
+ static styles: CSSResultGroup;
266
+ render(): lit_html.TemplateResult<1>;
267
+ toggleCorrectResponse(show: boolean): void;
268
+ }
269
+ declare global {
270
+ interface HTMLElementTagNameMap {
271
+ 'qti-gap-match-interaction': QtiGapMatchInteraction;
272
+ }
273
+ }
274
+
275
+ declare const QtiGapText_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
276
+ declare class QtiGapText extends QtiGapText_base {
277
+ static styles: lit.CSSResult;
278
+ tabindex: number | undefined;
279
+ connectedCallback(): void;
280
+ render(): lit_html.TemplateResult<1>;
281
+ }
282
+ declare global {
283
+ interface HTMLElementTagNameMap {
284
+ 'qti-gap-text': QtiGapText;
285
+ }
286
+ }
287
+
288
+ declare class QtiGap extends LitElement {
289
+ static styles: lit.CSSResult;
290
+ tabindex: number | undefined;
291
+ render(): lit_html.TemplateResult<1>;
292
+ }
293
+ declare global {
294
+ interface HTMLElementTagNameMap {
295
+ 'qti-gap': QtiGap;
296
+ }
297
+ }
298
+
299
+ declare class QtiGraphicAssociateInteraction extends Interaction {
300
+ static styles: CSSResultGroup;
301
+ private hotspots;
302
+ private startPoint;
303
+ private endPoint;
304
+ private _correctLines;
305
+ private startCoord;
306
+ private mouseCoord;
307
+ private grImage;
308
+ private _response;
309
+ constructor();
310
+ reset(): void;
311
+ validate(): boolean;
312
+ set response(val: string[]);
313
+ get response(): string[];
314
+ toggleInternalCorrectResponse(show: boolean): void;
315
+ render(): lit_html.TemplateResult<1>;
316
+ private positionHotspotOnRegister;
317
+ firstUpdated(): void;
318
+ disconnectedCallback(): void;
319
+ }
320
+ declare global {
321
+ interface HTMLElementTagNameMap {
322
+ 'qti-graphic-associate-interaction': QtiGraphicAssociateInteraction;
323
+ }
324
+ }
325
+
326
+ declare const QtiGraphicGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
327
+ declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
328
+ static styles: CSSResultGroup;
329
+ render(): lit_html.TemplateResult<1>;
330
+ private positionHotspotOnRegister;
331
+ connectedCallback(): void;
332
+ disconnectedCallback(): void;
333
+ }
334
+ declare global {
335
+ interface HTMLElementTagNameMap {
336
+ 'qti-graphic-gap-match-interaction': QtiGraphicGapMatchInteraction;
337
+ }
338
+ }
339
+
340
+ declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
341
+ declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
342
+ static styles: CSSResultGroup;
343
+ protected choiceOrdering: boolean;
344
+ protected _choiceElements: Choice[];
345
+ render(): lit_html.TemplateResult<1>;
346
+ private setHotspotOrder;
347
+ toggleCorrectResponse(show: boolean): void;
348
+ private positionHotspotOnRegister;
349
+ connectedCallback(): void;
350
+ disconnectedCallback(): void;
351
+ }
352
+ declare global {
353
+ interface HTMLElementTagNameMap {
354
+ 'qti-graphic-order-interaction': QtiGraphicOrderInteraction;
355
+ }
356
+ }
357
+
358
+ declare const QtiHotspotChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
359
+ declare class QtiHotspotChoice extends QtiHotspotChoice_base {
360
+ static styles: lit.CSSResult;
361
+ order: number;
362
+ orderCorrect: number;
363
+ }
364
+ declare global {
365
+ interface HTMLElementTagNameMap {
366
+ 'qti-hotspot-choice': QtiHotspotChoice;
367
+ }
368
+ }
369
+
370
+ declare const QtiHotspotInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
371
+ declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
372
+ static styles: CSSResultGroup;
373
+ render(): lit_html.TemplateResult<1>;
374
+ private positionHotspotOnRegister;
375
+ connectedCallback(): void;
376
+ disconnectedCallback(): void;
377
+ }
378
+ declare global {
379
+ interface HTMLElementTagNameMap {
380
+ 'qti-hotspot-interaction': QtiHotspotInteraction;
381
+ }
382
+ }
383
+
14
384
  declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
15
385
  declare class QtiHottextInteraction extends QtiHottextInteraction_base {
16
386
  class: string;
@@ -21,11 +391,692 @@ declare class QtiHottextInteraction extends QtiHottextInteraction_base {
21
391
  private updateHostClasses;
22
392
  }
23
393
 
394
+ declare const QtiHottext_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
395
+ declare class QtiHottext extends QtiHottext_base {
396
+ static styles: lit.CSSResult;
397
+ render(): lit_html.TemplateResult<1>;
398
+ }
399
+ declare global {
400
+ interface HTMLElementTagNameMap {
401
+ 'qti-hottext': QtiHottext;
402
+ }
403
+ }
404
+
405
+ interface OptionType {
406
+ textContent: string;
407
+ value: string;
408
+ selected: boolean;
409
+ }
410
+ declare class QtiInlineChoiceInteraction extends Interaction {
411
+ get isInline(): boolean;
412
+ static get styles(): lit.CSSResult[];
413
+ static inputWidthClass: string[];
414
+ protected options: OptionType[];
415
+ protected correctOption: string;
416
+ dataPrompt: string;
417
+ configContext: ConfigContext;
418
+ render(): lit_html.TemplateResult<1>;
419
+ connectedCallback(): void;
420
+ disconnectedCallback(): void;
421
+ willUpdate(changed: PropertyValues<this>): void;
422
+ private _updateOptions;
423
+ validate(): boolean;
424
+ reset(): void;
425
+ set response(value: string | null);
426
+ get response(): string | null;
427
+ toggleInternalCorrectResponse(show: boolean): void;
428
+ protected choiceSelected(event: Event): void;
429
+ }
430
+ declare global {
431
+ interface HTMLElementTagNameMap {
432
+ 'qti-inline-choice-interaction': QtiInlineChoiceInteraction;
433
+ }
434
+ }
435
+
436
+ declare class QtiInlineChoice extends LitElement {
437
+ static get styles(): lit.CSSResult[];
438
+ identifier: string;
439
+ connectedCallback(): void;
440
+ disconnectedCallback(): void;
441
+ render(): lit_html.TemplateResult<1>;
442
+ private _onSelectInlineChoice;
443
+ }
444
+ declare global {
445
+ interface HTMLElementTagNameMap {
446
+ 'qti-inline-choice': QtiInlineChoice;
447
+ }
448
+ }
449
+
450
+ declare const QtiSimpleAssociableChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
451
+ declare class QtiSimpleAssociableChoice extends QtiSimpleAssociableChoice_base {
452
+ static styles: lit.CSSResult;
453
+ /** the minimal number of selections a candidate must make */
454
+ matchMin: number;
455
+ /** the maximum number of selections a candidate must make, the other options will be disabled when max options is checked */
456
+ matchMax: number;
457
+ fixed: boolean;
458
+ connectedCallback(): void;
459
+ render(): lit_html.TemplateResult<1>;
460
+ }
461
+ declare global {
462
+ interface HTMLElementTagNameMap {
463
+ 'qti-simple-associable-choice': QtiSimpleAssociableChoice;
464
+ }
465
+ }
466
+
467
+ declare const QtiMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
468
+ declare class QtiMatchInteraction extends QtiMatchInteraction_base {
469
+ static styles: CSSResultGroup;
470
+ protected sourceChoices: QtiSimpleAssociableChoice[];
471
+ protected targetChoices: QtiSimpleAssociableChoice[];
472
+ protected lastCheckedRadio: HTMLInputElement | null;
473
+ class: string;
474
+ protected _response: string | string[];
475
+ get response(): string[];
476
+ set response(val: string[]);
477
+ responseIdentifier: string;
478
+ protected correctOptions: {
479
+ source: string;
480
+ target: string;
481
+ }[];
482
+ connectedCallback(): Promise<void>;
483
+ protected handleRadioClick: (e: any) => void;
484
+ protected handleRadioChange: (e: any) => void;
485
+ validate(): boolean;
486
+ private getMatches;
487
+ toggleInternalCorrectResponse(show: boolean): void;
488
+ toggleCandidateCorrection(show: boolean): void;
489
+ render(): lit_html.TemplateResult<1>;
490
+ }
491
+ declare global {
492
+ interface HTMLElementTagNameMap {
493
+ 'qti-match-interaction': QtiMatchInteraction;
494
+ }
495
+ }
496
+
497
+ declare class QtiMediaInteraction extends Interaction {
498
+ private _value;
499
+ reset(): void;
500
+ validate(): boolean;
501
+ get response(): string | null;
502
+ set response(val: string | null);
503
+ static get properties(): {
504
+ step: {
505
+ type: NumberConstructor;
506
+ attribute: string;
507
+ default: number;
508
+ };
509
+ };
510
+ static styles: lit.CSSResult[];
511
+ render(): lit_html.TemplateResult<1>;
512
+ constructor();
513
+ connectedCallback(): void;
514
+ }
515
+ declare global {
516
+ interface HTMLElementTagNameMap {
517
+ 'qti-media-interaction': QtiMediaInteraction;
518
+ }
519
+ }
520
+
521
+ declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
522
+ declare class QtiOrderInteraction extends QtiOrderInteraction_base {
523
+ static styles: lit.CSSResult;
524
+ protected childrenMap: Element[];
525
+ protected nrChoices: number;
526
+ correctResponses: string[];
527
+ showCorrectResponses: boolean;
528
+ /** orientation of choices */
529
+ orientation: 'horizontal' | 'vertical';
530
+ render(): lit_html.TemplateResult<1>;
531
+ toggleCorrectResponse(show: boolean): void;
532
+ getValue(val: string[]): string[];
533
+ protected getResponse(): string[];
534
+ firstUpdated(changedProps: any): Promise<void>;
535
+ }
536
+ declare global {
537
+ interface HTMLElementTagNameMap {
538
+ 'qti-order-interaction': QtiOrderInteraction;
539
+ }
540
+ }
541
+
542
+ interface PciReadyPayload {
543
+ responseIdentifier: string;
544
+ status: 'interacting' | 'suspended' | 'closed' | 'solution' | 'review';
545
+ }
546
+ interface PciDonePayload {
547
+ responseIdentifier: string;
548
+ status: 'interacting' | 'suspended' | 'closed' | 'solution' | 'review';
549
+ outcome?: unknown;
550
+ }
551
+ interface ConfigProperties<T> {
552
+ properties: T;
553
+ templateVariables: Record<string, unknown>;
554
+ contextVariables: Record<string, unknown>;
555
+ boundTo: unknown;
556
+ responseIdentifier: string;
557
+ onready: (payload: PciReadyPayload) => void;
558
+ ondone?: (payload: PciDonePayload) => void;
559
+ status?: 'interacting' | 'suspended' | 'closed' | 'solution' | 'review';
560
+ }
561
+ interface IMSpci<T> {
562
+ typeIdentifier: string;
563
+ /** @access public
564
+ * @method getInstance Create a new instance of this portable custom interaction
565
+ * Will be called by the qtiCustomInteractionContext
566
+ * @param {DOM Element} dom - the DOM Element this PCI is being added to
567
+ * @param {Object} configuration - the configuration to apply to this PCI
568
+ * @param {String} state - a previous saved state to apply to this instance.
569
+ * This must have been obtained from a prior call to getState on an
570
+ * instance of this type (same typeIdentifier)
571
+ */
572
+ getInstance: (dom: HTMLElement, configuration: Configuration<T>, state: string) => void;
573
+ /** @access public
574
+ * @method getResponse
575
+ * @return {Object} - the value to assign to the bound QTI response variable
576
+ */
577
+ getResponse: () => QtiVariableJSON | undefined;
578
+ /** @access public
579
+ * @method setResponse
580
+ * @param {Object} value - the value to assign to the bound QTI response variable
581
+ * NOTE: This is not an official QTI method, so no guarantee it is implemented
582
+ * in all PCIs.
583
+ */
584
+ setResponse: (value: QtiVariableJSON) => void;
585
+ /** @access public
586
+ * @method getState
587
+ * @return {String} The current state of this PCI. May be passed to
588
+ * getInstance to later restore this PCI instance.
589
+ */
590
+ getState: () => string;
591
+ oncompleted?: () => void;
592
+ destroy?: () => void;
593
+ }
594
+ declare type Configuration<T> = {
595
+ onready: (pci: IMSpci<ConfigProperties<T>>, state?: string) => void;
596
+ properties: T;
597
+ };
598
+ type QtiFileData = {
599
+ data: string;
600
+ mime: string;
601
+ name?: string;
602
+ };
603
+ type QtiBaseBoolean = boolean;
604
+ type QtiBaseInteger = number;
605
+ type QtiBaseFloat = number;
606
+ type QtiBaseString = string;
607
+ type QtiBasePoint = [number, number];
608
+ type QtiBasePair = [string, string];
609
+ type QtiBaseDirectedPair = [string, string];
610
+ type QtiBaseDuration = string;
611
+ type QtiBaseFile = QtiFileData;
612
+ type QtiBaseUri = string;
613
+ type QtiBaseIntOrIdentifier = number | string;
614
+ type QtiBaseIdentifier = string;
615
+ type QtiRecordItem = {
616
+ name: string;
617
+ base?: QtiBaseTypeJSON | null;
618
+ list?: QtiListTypeJSON | null;
619
+ };
620
+ type ResponseVariableType = QtiVariableJSON;
621
+ type QtiBaseTypeJSON = {
622
+ boolean?: QtiBaseBoolean;
623
+ integer?: QtiBaseInteger;
624
+ float?: QtiBaseFloat;
625
+ string?: QtiBaseString;
626
+ point?: QtiBasePoint;
627
+ pair?: QtiBasePair;
628
+ directedPair?: QtiBaseDirectedPair;
629
+ duration?: QtiBaseDuration;
630
+ file?: QtiBaseFile;
631
+ uri?: QtiBaseUri;
632
+ intOrIdentifier?: QtiBaseIntOrIdentifier;
633
+ identifier?: QtiBaseIdentifier;
634
+ } | null;
635
+ type QtiListTypeJSON = {
636
+ boolean?: QtiBaseBoolean[];
637
+ integer?: QtiBaseInteger[];
638
+ float?: QtiBaseFloat[];
639
+ string?: QtiBaseString[];
640
+ point?: QtiBasePoint[];
641
+ pair?: QtiBasePair[];
642
+ directedPair?: QtiBaseDirectedPair[];
643
+ duration?: QtiBaseDuration[];
644
+ file?: QtiBaseFile[];
645
+ uri?: QtiBaseUri[];
646
+ intOrIdentifier?: QtiBaseIntOrIdentifier[];
647
+ identifier?: QtiBaseIdentifier[];
648
+ } | null;
649
+ declare type QtiVariableJSON = {
650
+ base?: QtiBaseTypeJSON;
651
+ list?: QtiListTypeJSON;
652
+ record?: QtiRecordItem[] | null;
653
+ };
654
+ interface ModuleResolutionConfig {
655
+ waitSeconds?: number;
656
+ context?: string;
657
+ catchError?: boolean;
658
+ paths: {
659
+ [key: string]: string | string[];
660
+ };
661
+ shim?: {
662
+ [key: string]: {
663
+ deps?: string[];
664
+ exports?: string;
665
+ };
666
+ };
667
+ }
668
+
669
+ declare class QtiPortableCustomInteraction extends Interaction {
670
+ private _value;
671
+ private pci;
672
+ protected _iframeLoaded: boolean;
673
+ protected _pendingMessages: Array<{
674
+ method: string;
675
+ params: any;
676
+ }>;
677
+ protected iframe: HTMLIFrameElement;
678
+ private _responseCheckInterval;
679
+ static styles: CSSResultGroup;
680
+ module: string;
681
+ customInteractionTypeIdentifier: string;
682
+ requirePathsJson: string;
683
+ requireShimJson: string;
684
+ requireJsUrl: string;
685
+ baseUrl: string;
686
+ useIframe: boolean;
687
+ useDefaultShims: boolean;
688
+ useDefaultPaths: boolean;
689
+ private _errorMessage;
690
+ protected context?: ItemContext;
691
+ response: string | string[];
692
+ private dom;
693
+ private _parsedRequirePaths;
694
+ private _parsedRequireShim;
695
+ /**
696
+ * Parse the require paths JSON string into an object
697
+ */
698
+ private getRequirePaths;
699
+ /**
700
+ * Parse the require shim JSON string into an object
701
+ */
702
+ private getRequireShim;
703
+ /**
704
+ * Get the default require paths
705
+ */
706
+ private getDefaultRequirePaths;
707
+ /**
708
+ * Get the default require shim
709
+ */
710
+ private getDefaultRequireShim;
711
+ /**
712
+ * Get the final require paths by combining defaults with user-provided paths
713
+ */
714
+ private getFinalRequirePaths;
715
+ /**
716
+ * Get the final require shim by combining defaults with user-provided shim
717
+ */
718
+ private getFinalRequireShim;
719
+ /**
720
+ * Converts QtiVariableJSON to a string or string array
721
+ */
722
+ private convertQtiVariableJSON;
723
+ /**
724
+ * Adds hyphenated versions of camelCase keys to properties object
725
+ */
726
+ private addHyphenatedKeys;
727
+ /**
728
+ * Converts response variables to QtiVariableJSON
729
+ */
730
+ protected responseVariablesToQtiVariableJSON(input: string | string[], cardinality: Cardinality, baseType: BaseType): QtiVariableJSON;
731
+ validate(): boolean;
732
+ set value(v: string | null);
733
+ get value(): string | null;
734
+ set boundTo(newValue: Record<string, ResponseVariableType>);
735
+ get boundTo(): Record<string, QtiVariableJSON>;
736
+ /**
737
+ * Unescape HTML entities in a string
738
+ */
739
+ private unescapeHtml;
740
+ /**
741
+ * Unescape HTML entities in all values of an object
742
+ */
743
+ private unescapeDataAttributes;
744
+ /**
745
+ * DIRECT MODE: Register PCI instance
746
+ */
747
+ register(pci: IMSpci<ConfigProperties<unknown>>): void;
748
+ disconnectedCallback(): void;
749
+ /**
750
+ * IFRAME MODE: Send message to iframe
751
+ */
752
+ protected sendMessageToIframe(method: string, params: any): void;
753
+ /**
754
+ * IFRAME MODE: Process pending messages
755
+ */
756
+ private processPendingMessages;
757
+ /**
758
+ * IFRAME MODE: Handle iframe messages
759
+ */
760
+ protected handleIframeMessage: (event: MessageEvent) => void;
761
+ /**
762
+ * IFRAME MODE: Create iframe element
763
+ */
764
+ protected createIframe(): void;
765
+ /**
766
+ * IFRAME MODE: Send initialization data to iframe
767
+ */
768
+ private sendIframeInitData;
769
+ /**
770
+ * IFRAME MODE: Get interaction modules from DOM
771
+ */
772
+ private getInteractionModules;
773
+ /**
774
+ * IFRAME MODE: Add markup and properties to iframe
775
+ */
776
+ private addMarkupToIframe;
777
+ /**
778
+ * IFRAME MODE: Initialize the interaction
779
+ */
780
+ private initializeInteraction;
781
+ connectedCallback(): void;
782
+ /**
783
+ * Stop checking for response changes
784
+ */
785
+ private stopResponseCheck;
786
+ private _onInteractionChanged;
787
+ /**
788
+ * DIRECT MODE: Build RequireJS configuration
789
+ */
790
+ buildRequireConfig(): ModuleResolutionConfig;
791
+ /**
792
+ * DIRECT MODE: Helper method to combine require paths
793
+ */
794
+ private combineRequireResolvePaths;
795
+ /**
796
+ * DIRECT MODE: Helper method to remove double slashes
797
+ */
798
+ private removeDoubleSlashes;
799
+ /**
800
+ * DIRECT MODE: Load config from URL
801
+ */
802
+ loadConfig: (url: string, baseUrl?: string) => Promise<ModuleResolutionConfig>;
803
+ /**
804
+ * DIRECT MODE: Helper method to get resolvable path string
805
+ */
806
+ getResolvablePathString: (path: string, basePath?: string) => string;
807
+ /**
808
+ * DIRECT MODE: Helper method to get resolvable path
809
+ */
810
+ getResolvablePath: (path: string | string[], basePath?: string) => string | string[];
811
+ /**
812
+ * IFRAME MODE: Generate iframe HTML content
813
+ */
814
+ protected generateIframeContent(): string;
815
+ /**
816
+ * Toggle the display of the correct response
817
+ * @param responseVariable The response variable containing the correct response
818
+ * @param show Whether to show or hide the correct response
819
+ */
820
+ toggleInternalCorrectResponse(show: boolean): void;
821
+ /**
822
+ * Method to disable the PCI for review mode
823
+ * This can be used when showing the correct response
824
+ */
825
+ disable(): void;
826
+ /**
827
+ * Method to enable the PCI for interactive mode
828
+ */
829
+ enable(): void;
830
+ private _previousState;
831
+ render(): lit_html.TemplateResult<1>;
832
+ }
833
+ declare global {
834
+ interface HTMLElementTagNameMap {
835
+ 'qti-portable-custom-interaction': QtiPortableCustomInteraction;
836
+ }
837
+ }
838
+
24
839
  declare class QtiPositionObjectInteraction extends LitElement {
25
840
  render(): lit_html.TemplateResult<1>;
26
841
  static styles: lit.CSSResult[];
27
842
  }
28
843
 
844
+ declare class QtiPositionObjectStage extends LitElement {
845
+ choiceOrdering: boolean;
846
+ startX: any;
847
+ startY: any;
848
+ dragElement: any;
849
+ render(): lit_html.TemplateResult<1>;
850
+ static styles: lit.CSSResult[];
851
+ constructor();
852
+ dragElementHandler(event: any): void;
853
+ firstUpdated(a: any): void;
854
+ removeMoveListener(): void;
855
+ disconnectedCallback(): void;
856
+ }
857
+ declare global {
858
+ interface HTMLElementTagNameMap {
859
+ 'qti-position-object-stage': QtiPositionObjectStage;
860
+ }
861
+ }
862
+
863
+ declare class QtiSelectPointInteraction extends Interaction {
864
+ static styles: lit.CSSResult[];
865
+ maxChoices: number;
866
+ minChoices: number;
867
+ response: string[] | null;
868
+ private _correctAreas;
869
+ private _responseCorrection;
870
+ private _imgElement;
871
+ private _scaleX;
872
+ private _scaleY;
873
+ private _imageWidthOriginal;
874
+ private _imageHeightOriginal;
875
+ private _onImageClick;
876
+ connectedCallback(): void;
877
+ private _onResize;
878
+ get responsePoints(): {
879
+ x: number;
880
+ y: number;
881
+ }[];
882
+ toggleCandidateCorrection(show: boolean): void;
883
+ toggleCorrectResponse(show: boolean): any;
884
+ updated(changedProperties: Map<string | number | symbol, unknown>): void;
885
+ render(): lit_html.TemplateResult<1>;
886
+ validate(): boolean;
887
+ private calculateScale;
888
+ firstUpdated(): void;
889
+ disconnectedCallback(): void;
890
+ }
891
+ declare global {
892
+ interface HTMLElementTagNameMap {
893
+ 'qti-select-point-interaction': QtiSelectPointInteraction;
894
+ }
895
+ }
896
+
897
+ declare const QtiSimpleChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
898
+ /**
899
+ * qti-order-interaction
900
+ * qti-choice-interaction
901
+ */
902
+ declare class QtiSimpleChoice extends QtiSimpleChoice_base {
903
+ templateIdentifier: string | null;
904
+ showHide: string | null;
905
+ fixed: boolean;
906
+ static styles: lit.CSSResult;
907
+ marker: string;
908
+ get checked(): boolean;
909
+ render(): lit_html.TemplateResult<1>;
910
+ }
911
+ declare global {
912
+ interface HTMLElementTagNameMap {
913
+ 'qti-simple-choice': QtiSimpleChoice;
914
+ }
915
+ }
916
+
917
+ declare class QtiSliderInteraction extends Interaction {
918
+ static styles: CSSResultGroup;
919
+ private _value;
920
+ private _correctResponseNumber;
921
+ private _rail;
922
+ min: number;
923
+ max: number;
924
+ step: number;
925
+ validate(): boolean;
926
+ connectedCallback(): void;
927
+ get response(): string;
928
+ set response(val: string);
929
+ toggleCorrectResponse(show: boolean): void;
930
+ private _updateValue;
931
+ render(): lit_html.TemplateResult<1>;
932
+ private _onMouseDown;
933
+ private _onTouchStart;
934
+ private _startDrag;
935
+ private _onDrag;
936
+ private _onDragEnd;
937
+ }
938
+ declare global {
939
+ interface HTMLElementTagNameMap {
940
+ 'qti-slider-interaction': QtiSliderInteraction;
941
+ }
942
+ }
943
+
944
+ declare class QtiTextEntryInteraction extends Interaction {
945
+ static styles: CSSResultGroup;
946
+ inputRef: lit_html_directives_ref_js.Ref<HTMLInputElement>;
947
+ expectedLength: number;
948
+ patternMask: string;
949
+ placeholderText: string;
950
+ dataPatternmaskMessage: string;
951
+ response: string | null;
952
+ private _input;
953
+ protected _handleValueChange: () => void;
954
+ get value(): string | null;
955
+ set value(val: string | null);
956
+ get correctness(): Readonly<Correctness | null>;
957
+ get isInline(): boolean;
958
+ validate(): boolean;
959
+ toggleInternalCorrectResponse(show: boolean): void;
960
+ render(): lit_html.TemplateResult<1>;
961
+ protected textChanged(event: Event): void;
962
+ reportValidity(): boolean;
963
+ reset(): void;
964
+ private setEmptyAttribute;
965
+ }
966
+ declare global {
967
+ interface HTMLElementTagNameMap {
968
+ 'qti-text-entry-interaction': QtiTextEntryInteraction;
969
+ }
970
+ }
971
+
972
+ declare class QtiUploadInteraction extends Interaction {
973
+ private _file;
974
+ private _base64;
975
+ reset(): void;
976
+ validate(): boolean;
977
+ get response(): string | null;
978
+ set response(base64: string | null);
979
+ static get properties(): {
980
+ [key: string]: lit.PropertyDeclaration<unknown, unknown>;
981
+ };
982
+ static styles: lit.CSSResult[];
983
+ render(): lit_html.TemplateResult<1>;
984
+ private _onFileChange;
985
+ private _convertToBase64;
986
+ }
987
+ declare global {
988
+ interface HTMLElementTagNameMap {
989
+ 'qti-upload-interaction': QtiUploadInteraction;
990
+ }
991
+ }
992
+
993
+ /**
994
+ * @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.
995
+ * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.sphpo6lu6zqi
996
+ * @status stable
997
+ * @since 4.0
998
+ *
999
+ * @slot - item body content.
1000
+ * @slot qti-rubric-block - the qti rubric block is placed above the item
1001
+ * @part qti-rubric-block - the qti rubric block part
1002
+ */
1003
+ declare class QtiItemBody extends LitElement {
1004
+ static styles: CSSResultGroup;
1005
+ render(): lit_html.TemplateResult<1>;
1006
+ }
1007
+ declare global {
1008
+ interface HTMLElementTagNameMap {
1009
+ 'qti-item-body': QtiItemBody;
1010
+ }
1011
+ }
1012
+
1013
+ declare class QtiRule extends LitElement implements QtiRuleBase {
1014
+ render(): lit_html.TemplateResult<1>;
1015
+ process(): void;
1016
+ }
1017
+ interface QtiRuleBase {
1018
+ process(): any;
1019
+ }
1020
+ declare global {
1021
+ interface HTMLElementTagNameMap {
1022
+ 'qti-rule': QtiRule;
1023
+ }
1024
+ }
1025
+
1026
+ declare class QtiOutcomeProcessing extends LitElement {
1027
+ static styles: lit.CSSResult[];
1028
+ render(): lit_html.TemplateResult<1>;
1029
+ process(): void;
1030
+ }
1031
+ declare global {
1032
+ interface HTMLElementTagNameMap {
1033
+ 'qti-outcome-processing': QtiOutcomeProcessing;
1034
+ }
1035
+ }
1036
+ declare class QtiOutcomeProcessingProcessor {
1037
+ process(rules: QtiRuleBase[]): void;
1038
+ }
1039
+
1040
+ declare class QtiPrompt extends LitElement {
1041
+ render(): lit_html.TemplateResult<1>;
1042
+ connectedCallback(): void;
1043
+ }
1044
+ declare global {
1045
+ interface HTMLElementTagNameMap {
1046
+ 'qti-prompt': QtiPrompt;
1047
+ }
1048
+ }
1049
+
1050
+ declare class QtiResponseProcessing extends LitElement {
1051
+ static styles: lit.CSSResult[];
1052
+ render(): lit_html.TemplateResult<1>;
1053
+ process(): void;
1054
+ firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
1055
+ private fragmentFromString;
1056
+ }
1057
+ declare global {
1058
+ interface HTMLElementTagNameMap {
1059
+ 'qti-response-processing': QtiResponseProcessing;
1060
+ }
1061
+ }
1062
+
1063
+ /**
1064
+ * The lookupOutcomeValue rule sets the value of an outcome variable to the value obtained
1065
+ * by looking up the value of the associated expression in the lookupTable associated
1066
+ * with the outcome's declaration.
1067
+ */
1068
+ declare class QtiLookupOutcomeValue extends QtiRule {
1069
+ identifier: string;
1070
+ protected context?: ItemContext;
1071
+ get childExpression(): QtiExpression<string>;
1072
+ process(): number;
1073
+ }
1074
+ declare global {
1075
+ interface HTMLElementTagNameMap {
1076
+ 'qti-lookup-outcome-value': QtiLookupOutcomeValue;
1077
+ }
1078
+ }
1079
+
29
1080
  declare class QtiResponseCondition extends QtiRule {
30
1081
  render(): lit_html.TemplateResult<1>;
31
1082
  process(): void;
@@ -73,22 +1124,22 @@ declare class QtiResponseElseIf extends QtiResponseIf {
73
1124
  render(): lit_html.TemplateResult<1>;
74
1125
  }
75
1126
 
76
- type Constructor<T> = new (...args: any[]) => T;
1127
+ type Constructor$1<T> = new (...args: any[]) => T;
77
1128
  declare const QtiAnd_base: {
78
1129
  new (...args: any[]): {
79
- calculateChildren(children: Array<MockQtiExpression<any>>): boolean;
1130
+ calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
80
1131
  };
81
- } & Constructor<QtiConditionExpression>;
1132
+ } & Constructor$1<QtiConditionExpression>;
82
1133
  declare class QtiAnd extends QtiAnd_base {
83
1134
  calculate(): boolean;
84
1135
  }
85
- type MockQtiExpression<T> = {
1136
+ type MockQtiExpression$1<T> = {
86
1137
  calculate: () => T;
87
1138
  };
88
- type MockConstructor = new (...args: any[]) => {};
89
- declare function qtiAndMixin<TBase extends MockConstructor>(Base: TBase): {
1139
+ type MockConstructor$1 = new (...args: any[]) => {};
1140
+ declare function qtiAndMixin<TBase extends MockConstructor$1>(Base: TBase): {
90
1141
  new (...args: any[]): {
91
- calculateChildren(children: Array<MockQtiExpression<any>>): boolean;
1142
+ calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
92
1143
  };
93
1144
  } & TBase;
94
1145
 
@@ -307,6 +1358,31 @@ declare class QtiProduct extends QtiExpression<number> {
307
1358
  getResult(): number;
308
1359
  }
309
1360
 
1361
+ type Constructor<T> = new (...args: any[]) => T;
1362
+ declare const QtiSubtract_base: {
1363
+ new (...args: any[]): {
1364
+ calculateChildren(children: Array<MockQtiExpression<any>>): number;
1365
+ };
1366
+ } & Constructor<QtiExpression<number>>;
1367
+ declare class QtiSubtract extends QtiSubtract_base {
1368
+ getResult(): number;
1369
+ }
1370
+ type MockQtiExpression<T> = {
1371
+ calculate: () => T;
1372
+ };
1373
+ type MockConstructor = new (...args: any[]) => {};
1374
+ declare function qtiSubtractMixin<TBase extends MockConstructor>(Base: TBase): {
1375
+ new (...args: any[]): {
1376
+ calculateChildren(children: Array<MockQtiExpression<any>>): number;
1377
+ };
1378
+ } & TBase;
1379
+
1380
+ declare global {
1381
+ interface HTMLElementTagNameMap {
1382
+ 'qti-subtract': QtiSubtract;
1383
+ }
1384
+ }
1385
+
310
1386
  declare class QtiStringMatch extends QtiExpression<boolean> {
311
1387
  caseSensitive: string;
312
1388
  getResult(): boolean;
@@ -359,4 +1435,85 @@ declare class QtiIndex extends QtiExpression<any> {
359
1435
  private lookupVariableValue;
360
1436
  }
361
1437
 
362
- export { QtiAnd, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiHottextInteraction, QtiIndex, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiRule, QtiRuleBase, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, qtiAndMixin };
1438
+ declare class QtiContentBody extends LitElement {
1439
+ render(): lit_html.TemplateResult<1>;
1440
+ }
1441
+ declare global {
1442
+ interface HTMLElementTagNameMap {
1443
+ 'qti-content-body': QtiContentBody;
1444
+ }
1445
+ }
1446
+
1447
+ declare class QtiRubricBlock extends LitElement {
1448
+ id: any;
1449
+ use: 'instructions' | 'scoring' | 'navigation';
1450
+ view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
1451
+ classNames: any;
1452
+ handleclassNamesChange(): void;
1453
+ static styles: lit.CSSResult;
1454
+ render(): lit_html.TemplateResult<1>;
1455
+ }
1456
+ declare global {
1457
+ interface HTMLElementTagNameMap {
1458
+ 'qti-rubric-block': QtiRubricBlock;
1459
+ }
1460
+ }
1461
+
1462
+ declare class QtiStylesheet extends LitElement {
1463
+ private styleElement;
1464
+ protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
1465
+ private minifyCss;
1466
+ disconnectedCallback(): void;
1467
+ }
1468
+ declare global {
1469
+ interface HTMLElementTagNameMap {
1470
+ 'qti-stylesheet': QtiStylesheet;
1471
+ }
1472
+ }
1473
+
1474
+ declare class QtiVariableDeclaration extends LitElement {
1475
+ render(): lit_html.TemplateResult<1>;
1476
+ protected defaultValues(cardinality: Cardinality): string | string[];
1477
+ }
1478
+ declare global {
1479
+ interface HTMLElementTagNameMap {
1480
+ 'qti-variabledeclaration': QtiVariableDeclaration;
1481
+ }
1482
+ }
1483
+
1484
+ declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
1485
+ baseType: BaseType;
1486
+ externalScored: 'human' | 'externalMachine' | null;
1487
+ identifier: string;
1488
+ cardinality: Cardinality;
1489
+ itemContext?: ItemContext;
1490
+ static styles: lit.CSSResult[];
1491
+ render(): lit_html.TemplateResult<1>;
1492
+ get interpolationTable(): Map<number, number> | null;
1493
+ connectedCallback(): void;
1494
+ }
1495
+ declare global {
1496
+ interface HTMLElementTagNameMap {
1497
+ 'qti-outcome-declaration': QtiOutcomeDeclaration;
1498
+ }
1499
+ }
1500
+
1501
+ declare class QtiResponseDeclaration extends QtiVariableDeclaration {
1502
+ baseType: BaseType;
1503
+ identifier: string;
1504
+ cardinality: Cardinality;
1505
+ itemContext?: ItemContext;
1506
+ static styles: lit.CSSResult[];
1507
+ render(): lit_html.TemplateResult<1>;
1508
+ connectedCallback(): void;
1509
+ private get correctResponse();
1510
+ private get mapping();
1511
+ private get areaMapping();
1512
+ }
1513
+ declare global {
1514
+ interface HTMLElementTagNameMap {
1515
+ 'qti-response-declaration': QtiResponseDeclaration;
1516
+ }
1517
+ }
1518
+
1519
+ export { type Orientation, QtiAnd, QtiAssessmentStimulusRef, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiContainerSize, QtiContains, QtiContentBody, QtiCorrect, QtiCustomInteraction, QtiCustomOperator, QtiDefault, QtiDelete, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiFieldValue, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGcd, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiIndex, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiItemBody, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMatchInteraction, QtiMathOperator, QtiMediaInteraction, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiOutcomeProcessing, QtiOutcomeProcessingProcessor, QtiPortableCustomInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiPower, QtiPrintedVariable, QtiProduct, QtiPrompt, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRound, QtiRoundTo, QtiRubricBlock, QtiRule, type QtiRuleBase, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSubtract, QtiSum, QtiSumExpression, QtiTextEntryInteraction, QtiUploadInteraction, QtiVariable, qtiAndMixin, qtiSubtractMixin };