@citolab/qti-components 7.0.4 → 7.0.6-next.0

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 (280) hide show
  1. package/cdn/chunk-25BMUTLC.js +1 -0
  2. package/cdn/chunk-3DWLPGTE.js +1 -0
  3. package/cdn/chunk-7BKWTY4S.js +1 -0
  4. package/cdn/chunk-7CQ4ETXL.js +1 -0
  5. package/cdn/chunk-7ENNZNJ4.js +1 -0
  6. package/cdn/chunk-7LGM2TQA.js +1 -0
  7. package/cdn/chunk-CYJMNT76.js +0 -0
  8. package/cdn/chunk-DLMFCDQX.js +1 -0
  9. package/cdn/chunk-DPR6SGCZ.js +1 -0
  10. package/cdn/chunk-EQGXFSYL.js +8 -0
  11. package/cdn/chunk-F5VW77RE.js +1 -0
  12. package/cdn/chunk-FNVXN5CO.js +1 -0
  13. package/cdn/chunk-GB7DLBFM.js +0 -0
  14. package/cdn/chunk-GBB54IPA.js +8 -0
  15. package/cdn/chunk-GPDDPZFH.js +1 -0
  16. package/cdn/chunk-H4A34YRT.js +0 -0
  17. package/cdn/chunk-ITXNNGVQ.js +0 -0
  18. package/cdn/chunk-IV7UP34N.js +5 -0
  19. package/cdn/chunk-IZZ36JQV.js +0 -0
  20. package/cdn/chunk-JNT54FPI.js +1 -0
  21. package/cdn/chunk-JS4S7ZI7.js +1 -0
  22. package/cdn/chunk-L26FOTPN.js +17 -0
  23. package/cdn/chunk-LA7TBIPQ.js +0 -0
  24. package/cdn/chunk-LVW3MHTI.js +23 -0
  25. package/cdn/chunk-POT65ZY7.js +1 -0
  26. package/cdn/chunk-Q7PVZA43.js +5 -0
  27. package/cdn/chunk-QJPHXAUE.js +1 -0
  28. package/cdn/chunk-QP57JHGY.js +11 -0
  29. package/cdn/chunk-RB6CONZW.js +3 -0
  30. package/cdn/chunk-RSRX5JYB.js +1 -0
  31. package/cdn/chunk-TG6AE3DB.js +0 -0
  32. package/cdn/chunk-V6YPUNZC.js +0 -0
  33. package/cdn/chunk-VI2WKTN4.js +1 -0
  34. package/cdn/chunk-W7X6GNEX.js +902 -0
  35. package/cdn/chunk-Y63VPWCG.js +3523 -0
  36. package/cdn/chunk-ZEX7TYC7.js +8 -0
  37. package/cdn/index.global.js +45 -45
  38. package/cdn/index.js +1 -4783
  39. package/cdn/qti-components/index.global.js +226 -0
  40. package/cdn/qti-components/index.js +1 -0
  41. package/cdn/qti-item/components/index.global.js +149 -0
  42. package/cdn/qti-item/components/index.js +1 -0
  43. package/cdn/qti-item/components/item-container.global.js +149 -0
  44. package/cdn/qti-item/components/item-container.js +1 -0
  45. package/cdn/qti-item/index.global.js +149 -0
  46. package/cdn/qti-item/index.js +1 -0
  47. package/cdn/qti-item/qti-item.global.js +114 -0
  48. package/cdn/qti-item/qti-item.js +1 -0
  49. package/cdn/qti-loader/index.global.js +1 -0
  50. package/cdn/qti-loader/index.js +1 -0
  51. package/cdn/qti-test/components/index.global.js +242 -0
  52. package/cdn/qti-test/components/index.js +1 -0
  53. package/cdn/qti-test/components/styles.global.js +44 -0
  54. package/cdn/qti-test/components/styles.js +1 -0
  55. package/cdn/qti-test/components/test-component.abstract.global.js +170 -0
  56. package/cdn/qti-test/components/test-component.abstract.js +1 -0
  57. package/cdn/qti-test/components/test-container.global.js +149 -0
  58. package/cdn/qti-test/components/test-container.js +1 -0
  59. package/cdn/qti-test/components/test-item-link.global.js +170 -0
  60. package/cdn/qti-test/components/test-item-link.js +1 -0
  61. package/cdn/qti-test/components/test-next.global.js +170 -0
  62. package/cdn/qti-test/components/test-next.js +1 -0
  63. package/cdn/qti-test/components/test-next.spec.global.js +297 -0
  64. package/cdn/qti-test/components/test-next.spec.js +713 -0
  65. package/cdn/qti-test/components/test-paging-buttons-stamp.global.js +207 -0
  66. package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -0
  67. package/cdn/qti-test/components/test-prev.global.js +170 -0
  68. package/cdn/qti-test/components/test-prev.js +1 -0
  69. package/cdn/qti-test/components/test-view.global.js +170 -0
  70. package/cdn/qti-test/components/test-view.js +1 -0
  71. package/cdn/qti-test/context/index.global.js +58 -0
  72. package/cdn/qti-test/context/index.js +1 -0
  73. package/cdn/qti-test/context/test.context.global.js +58 -0
  74. package/cdn/qti-test/context/test.context.js +1 -0
  75. package/cdn/qti-test/index.global.js +242 -0
  76. package/cdn/qti-test/index.js +1 -0
  77. package/cdn/qti-test/mixins/index.global.js +1 -0
  78. package/cdn/qti-test/mixins/index.js +1 -0
  79. package/cdn/qti-test/mixins/test-loader.mixin.global.js +1 -0
  80. package/cdn/qti-test/mixins/test-loader.mixin.js +1 -0
  81. package/cdn/qti-test/mixins/test-navigation.mixin.global.js +1 -0
  82. package/cdn/qti-test/mixins/test-navigation.mixin.js +1 -0
  83. package/cdn/qti-test/mixins/test-view.mixin.global.js +1 -0
  84. package/cdn/qti-test/mixins/test-view.mixin.js +1 -0
  85. package/cdn/qti-test/qti-assessment-test/index.global.js +170 -0
  86. package/cdn/qti-test/qti-assessment-test/index.js +1 -0
  87. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.global.js +170 -0
  88. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.js +1 -0
  89. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.global.js +170 -0
  90. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.js +1 -0
  91. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.global.js +170 -0
  92. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.js +1 -0
  93. package/cdn/qti-test/qti-assessment-test/qti-test-part.global.js +114 -0
  94. package/cdn/qti-test/qti-assessment-test/qti-test-part.js +1 -0
  95. package/cdn/qti-test/qti-test.global.js +170 -0
  96. package/cdn/qti-test/qti-test.js +1 -0
  97. package/cdn/qti-test/test-base.global.js +170 -0
  98. package/cdn/qti-test/test-base.js +1 -0
  99. package/cdn/qti-transformers/index.global.js +1 -0
  100. package/cdn/qti-transformers/index.js +1 -0
  101. package/dist/{transformers/index.js → chunk-2OA7E3E7.js} +2 -1
  102. package/dist/chunk-2OA7E3E7.js.map +1 -0
  103. package/dist/chunk-37X6KZO3.js +1 -0
  104. package/dist/chunk-37X6KZO3.js.map +1 -0
  105. package/dist/chunk-3WLCQQN7.js +3529 -0
  106. package/dist/chunk-3WLCQQN7.js.map +1 -0
  107. package/dist/chunk-3YVIK6LO.js +1 -0
  108. package/dist/chunk-3YVIK6LO.js.map +1 -0
  109. package/dist/chunk-44VE5POH.js +55 -0
  110. package/dist/chunk-44VE5POH.js.map +1 -0
  111. package/dist/chunk-4CSM2PCC.js +37 -0
  112. package/dist/chunk-4CSM2PCC.js.map +1 -0
  113. package/dist/chunk-4YG2FPKK.js +31 -0
  114. package/dist/chunk-4YG2FPKK.js.map +1 -0
  115. package/dist/chunk-7A6KCSAU.js +44 -0
  116. package/dist/chunk-7A6KCSAU.js.map +1 -0
  117. package/dist/chunk-ENVUIH2A.js +118 -0
  118. package/dist/chunk-ENVUIH2A.js.map +1 -0
  119. package/dist/chunk-ENZVY5X6.js +20 -0
  120. package/dist/chunk-ENZVY5X6.js.map +1 -0
  121. package/dist/chunk-EUCEENQQ.js +6253 -0
  122. package/dist/chunk-EUCEENQQ.js.map +1 -0
  123. package/dist/chunk-FNFNAV3G.js +56 -0
  124. package/dist/chunk-FNFNAV3G.js.map +1 -0
  125. package/dist/chunk-GSFDTSLL.js +1 -0
  126. package/dist/chunk-GSFDTSLL.js.map +1 -0
  127. package/dist/chunk-GTYLWGDG.js +43 -0
  128. package/dist/chunk-GTYLWGDG.js.map +1 -0
  129. package/dist/chunk-IAFQ5ZPI.js +29 -0
  130. package/dist/chunk-IAFQ5ZPI.js.map +1 -0
  131. package/dist/chunk-JDHBXMKF.js +78 -0
  132. package/dist/chunk-JDHBXMKF.js.map +1 -0
  133. package/dist/chunk-L7MBIXEX.js +50 -0
  134. package/dist/chunk-L7MBIXEX.js.map +1 -0
  135. package/dist/chunk-LYFMLDNV.js +1 -0
  136. package/dist/chunk-LYFMLDNV.js.map +1 -0
  137. package/dist/chunk-NNPTSZGC.js +1 -0
  138. package/dist/chunk-NNPTSZGC.js.map +1 -0
  139. package/dist/chunk-NQM35JUI.js +1 -0
  140. package/dist/chunk-NQM35JUI.js.map +1 -0
  141. package/dist/chunk-ODUHPWTX.js +65 -0
  142. package/dist/chunk-ODUHPWTX.js.map +1 -0
  143. package/dist/chunk-OGHHCP23.js +36 -0
  144. package/dist/chunk-OGHHCP23.js.map +1 -0
  145. package/dist/chunk-OQZW2B47.js +75 -0
  146. package/dist/chunk-OQZW2B47.js.map +1 -0
  147. package/dist/chunk-OXDOQVRL.js +63 -0
  148. package/dist/chunk-OXDOQVRL.js.map +1 -0
  149. package/dist/chunk-PBSMP6VF.js +128 -0
  150. package/dist/chunk-PBSMP6VF.js.map +1 -0
  151. package/dist/chunk-Q7OPFS4A.js +1 -0
  152. package/dist/chunk-Q7OPFS4A.js.map +1 -0
  153. package/dist/chunk-R4HSV7U7.js +10 -0
  154. package/dist/chunk-R4HSV7U7.js.map +1 -0
  155. package/dist/chunk-TXRSYXG3.js +50 -0
  156. package/dist/chunk-TXRSYXG3.js.map +1 -0
  157. package/dist/chunk-U3RLYKL5.js +51 -0
  158. package/dist/chunk-U3RLYKL5.js.map +1 -0
  159. package/dist/chunk-UB5K44DB.js +30 -0
  160. package/dist/chunk-UB5K44DB.js.map +1 -0
  161. package/dist/chunk-VODOQFTJ.js +72 -0
  162. package/dist/chunk-VODOQFTJ.js.map +1 -0
  163. package/dist/chunk-VW7VIQBE.js +34 -0
  164. package/dist/chunk-VW7VIQBE.js.map +1 -0
  165. package/dist/chunk-X4ZBUCOD.js +94 -0
  166. package/dist/chunk-X4ZBUCOD.js.map +1 -0
  167. package/dist/chunk-XFHB6KQW.js +1 -0
  168. package/dist/chunk-XFHB6KQW.js.map +1 -0
  169. package/dist/chunk-XNBWN7N2.js +94 -0
  170. package/dist/chunk-XNBWN7N2.js.map +1 -0
  171. package/dist/index.d.ts +18 -503
  172. package/dist/index.js +169 -13584
  173. package/dist/index.js.map +1 -1
  174. package/dist/item.css +10 -10
  175. package/dist/qti-components/index.d.ts +150 -0
  176. package/dist/qti-components/index.js +189 -0
  177. package/dist/qti-components/index.js.map +1 -0
  178. package/dist/qti-components-jsx.d.ts +93 -147
  179. package/dist/qti-item/components/index.d.ts +3 -0
  180. package/dist/qti-item/components/index.js +12 -0
  181. package/dist/qti-item/components/index.js.map +1 -0
  182. package/dist/qti-item/components/item-container.d.ts +40 -0
  183. package/dist/qti-item/components/item-container.js +11 -0
  184. package/dist/qti-item/components/item-container.js.map +1 -0
  185. package/dist/qti-item/index.d.ts +4 -0
  186. package/dist/qti-item/index.js +17 -0
  187. package/dist/qti-item/index.js.map +1 -0
  188. package/dist/qti-item/qti-item.d.ts +25 -0
  189. package/dist/qti-item/qti-item.js +8 -0
  190. package/dist/qti-item/qti-item.js.map +1 -0
  191. package/dist/{loader → qti-loader}/index.d.ts +1 -1
  192. package/dist/qti-loader/index.js +11 -0
  193. package/dist/qti-loader/index.js.map +1 -0
  194. package/dist/{qti-simple-choice-D0GiMrqD.d.ts → qti-simple-choice-DxWcdKHi.d.ts} +30 -40
  195. package/dist/qti-test/components/index.d.ts +13 -0
  196. package/dist/qti-test/components/index.js +40 -0
  197. package/dist/qti-test/components/index.js.map +1 -0
  198. package/dist/qti-test/components/styles.d.ts +8 -0
  199. package/dist/qti-test/components/styles.js +14 -0
  200. package/dist/qti-test/components/styles.js.map +1 -0
  201. package/dist/qti-test/components/test-component.abstract.d.ts +23 -0
  202. package/dist/qti-test/components/test-component.abstract.js +12 -0
  203. package/dist/qti-test/components/test-component.abstract.js.map +1 -0
  204. package/dist/qti-test/components/test-container.d.ts +37 -0
  205. package/dist/qti-test/components/test-container.js +11 -0
  206. package/dist/qti-test/components/test-container.js.map +1 -0
  207. package/dist/qti-test/components/test-item-link.d.ts +21 -0
  208. package/dist/qti-test/components/test-item-link.js +14 -0
  209. package/dist/qti-test/components/test-item-link.js.map +1 -0
  210. package/dist/qti-test/components/test-next.d.ts +32 -0
  211. package/dist/qti-test/components/test-next.js +14 -0
  212. package/dist/qti-test/components/test-next.js.map +1 -0
  213. package/dist/qti-test/components/test-next.spec.d.ts +16 -0
  214. package/dist/qti-test/components/test-next.spec.js +45923 -0
  215. package/dist/qti-test/components/test-next.spec.js.map +1 -0
  216. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +22 -0
  217. package/dist/qti-test/components/test-paging-buttons-stamp.js +13 -0
  218. package/dist/qti-test/components/test-paging-buttons-stamp.js.map +1 -0
  219. package/dist/qti-test/components/test-prev.d.ts +32 -0
  220. package/dist/qti-test/components/test-prev.js +14 -0
  221. package/dist/qti-test/components/test-prev.js.map +1 -0
  222. package/dist/qti-test/components/test-view.d.ts +27 -0
  223. package/dist/qti-test/components/test-view.js +13 -0
  224. package/dist/qti-test/components/test-view.js.map +1 -0
  225. package/dist/qti-test/context/index.d.ts +6 -0
  226. package/dist/qti-test/context/index.js +11 -0
  227. package/dist/qti-test/context/index.js.map +1 -0
  228. package/dist/qti-test/context/test.context.d.ts +6 -0
  229. package/dist/qti-test/context/test.context.js +10 -0
  230. package/dist/qti-test/context/test.context.js.map +1 -0
  231. package/dist/qti-test/index.d.ts +14 -0
  232. package/dist/qti-test/index.js +72 -0
  233. package/dist/qti-test/index.js.map +1 -0
  234. package/dist/qti-test/mixins/index.d.ts +8 -0
  235. package/dist/qti-test/mixins/index.js +18 -0
  236. package/dist/qti-test/mixins/index.js.map +1 -0
  237. package/dist/qti-test/mixins/test-loader.mixin.d.ts +8 -0
  238. package/dist/qti-test/mixins/test-loader.mixin.js +9 -0
  239. package/dist/qti-test/mixins/test-loader.mixin.js.map +1 -0
  240. package/dist/qti-test/mixins/test-navigation.mixin.d.ts +22 -0
  241. package/dist/qti-test/mixins/test-navigation.mixin.js +8 -0
  242. package/dist/qti-test/mixins/test-navigation.mixin.js.map +1 -0
  243. package/dist/qti-test/mixins/test-view.mixin.d.ts +6 -0
  244. package/dist/qti-test/mixins/test-view.mixin.js +8 -0
  245. package/dist/qti-test/mixins/test-view.mixin.js.map +1 -0
  246. package/dist/qti-test/qti-assessment-test/index.d.ts +6 -0
  247. package/dist/qti-test/qti-assessment-test/index.js +23 -0
  248. package/dist/qti-test/qti-assessment-test/index.js.map +1 -0
  249. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.d.ts +6 -0
  250. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js +10 -0
  251. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js.map +1 -0
  252. package/dist/qti-test/qti-assessment-test/qti-assessment-section.d.ts +6 -0
  253. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js +10 -0
  254. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js.map +1 -0
  255. package/dist/qti-test/qti-assessment-test/qti-assessment-test.d.ts +6 -0
  256. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js +10 -0
  257. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js.map +1 -0
  258. package/dist/qti-test/qti-assessment-test/qti-test-part.d.ts +19 -0
  259. package/dist/qti-test/qti-assessment-test/qti-test-part.js +8 -0
  260. package/dist/qti-test/qti-assessment-test/qti-test-part.js.map +1 -0
  261. package/dist/qti-test/qti-test.d.ts +68 -0
  262. package/dist/qti-test/qti-test.js +16 -0
  263. package/dist/qti-test/qti-test.js.map +1 -0
  264. package/dist/qti-test/test-base.d.ts +6 -0
  265. package/dist/qti-test/test-base.js +10 -0
  266. package/dist/qti-test/test-base.js.map +1 -0
  267. package/dist/qti-transformers/index.js +12 -0
  268. package/dist/qti-transformers/index.js.map +1 -0
  269. package/dist/test-base-BJwG9Ie8.d.ts +109 -0
  270. package/dist/vscode.html-custom-data.json +49 -38
  271. package/package.json +28 -52
  272. package/dist/custom-element-eslint-rules.js +0 -329
  273. package/dist/custom-elements.json +0 -27271
  274. package/dist/loader/index.js +0 -310
  275. package/dist/loader/index.js.map +0 -1
  276. package/dist/qti-simple-choice-CfgBEvdI.d.ts +0 -1143
  277. package/dist/qti-simple-choice-UTrFa_RQ.d.ts +0 -1177
  278. package/dist/qti-simple-choice-zEsDq3c0.d.ts +0 -1147
  279. package/dist/transformers/index.js.map +0 -1
  280. /package/dist/{transformers → qti-transformers}/index.d.ts +0 -0
@@ -387,24 +387,24 @@ declare abstract class Interaction extends LitElement implements IInteraction {
387
387
  }
388
388
 
389
389
  declare class QtiExtendedTextInteraction extends Interaction {
390
- private _rows;
390
+ static styles: CSSResultGroup;
391
+ protected _rows: number;
391
392
  /** expected length is mapped to the property maxlength on the textarea */
392
393
  expectedLength: number;
393
394
  patternMask: string;
394
395
  /** text appearing in the extended-text-nteraction if it is empty */
395
396
  placeholderText: string;
396
397
  dataPatternmaskMessage: string;
397
- private _value;
398
+ protected _value: string;
398
399
  classNames: any;
399
400
  handleclassNamesChange(_: any, classes: string): void;
400
401
  get value(): string | string[];
401
402
  set value(val: string | string[]);
402
403
  validate(): boolean;
403
404
  reportValidity(): boolean;
404
- static get styles(): lit.CSSResult[];
405
405
  render(): lit_html.TemplateResult<1>;
406
406
  protected textChanged(event: Event): void;
407
- private setEmptyAttribute;
407
+ protected setEmptyAttribute(text: string): void;
408
408
  }
409
409
  declare global {
410
410
  interface HTMLElementTagNameMap {
@@ -444,7 +444,6 @@ interface ChoicesInterface extends IInteraction {
444
444
 
445
445
  declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
446
446
  declare class QtiHottextInteraction extends QtiHottextInteraction_base {
447
- connectedCallback(): void;
448
447
  render: () => lit_html.TemplateResult<1>;
449
448
  }
450
449
  declare global {
@@ -461,8 +460,8 @@ interface OptionType {
461
460
  declare class QtiInlineChoiceInteraction extends Interaction {
462
461
  static get styles(): lit.CSSResult[];
463
462
  static inputWidthClass: string[];
464
- options: OptionType[];
465
- correctOption: string;
463
+ protected options: OptionType[];
464
+ protected correctOption: string;
466
465
  dataPrompt: string;
467
466
  render(): lit_html.TemplateResult<1>;
468
467
  connectedCallback(): void;
@@ -472,7 +471,7 @@ declare class QtiInlineChoiceInteraction extends Interaction {
472
471
  set value(value: string);
473
472
  get value(): string;
474
473
  set correctResponse(value: string | string[]);
475
- choiceSelected(event: Event): void;
474
+ protected choiceSelected(event: Event): void;
476
475
  }
477
476
  declare global {
478
477
  interface HTMLElementTagNameMap {
@@ -739,11 +738,11 @@ declare global {
739
738
 
740
739
  declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
741
740
  declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
742
- private _childrenMap;
743
741
  static styles: CSSResultGroup;
744
- private _registerChoiceHandler;
742
+ protected _childrenMap: Element[];
743
+ protected _registerChoiceHandler: (event: CustomEvent) => void;
745
744
  constructor();
746
- private _registerChoice;
745
+ protected _registerChoice(event: CustomEvent): void;
747
746
  render(): lit_html.TemplateResult<1>;
748
747
  disconnectedCallback(): void;
749
748
  }
@@ -784,12 +783,12 @@ declare global {
784
783
  }
785
784
  }
786
785
 
787
- declare class QtiEndAttemptInteraction extends Interaction {
788
- countAttempt: string;
789
- title: 'end attempt';
790
- validate(): boolean;
791
- get value(): string | string[];
792
- set value(_: string | string[]);
786
+ declare class QtiEndAttemptInteraction extends LitElement {
787
+ responseIdentifier: any;
788
+ disabled: boolean;
789
+ /** 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) */
790
+ countAttempt: 'true' | 'false' | null;
791
+ title: string;
793
792
  render(): lit_html.TemplateResult<1>;
794
793
  endAttempt(_: Event): void;
795
794
  }
@@ -812,23 +811,14 @@ declare global {
812
811
  }
813
812
 
814
813
  declare class QtiGraphicAssociateInteraction extends Interaction {
815
- choiceOrdering: boolean;
816
- hotspots: any;
817
- startPoint: any;
818
- endPoint: any;
819
- _lines: any[];
820
- startCoord: {
821
- x: any;
822
- y: any;
823
- };
824
- mouseCoord: {
825
- x: number;
826
- y: number;
827
- };
828
- svgContainer: any;
829
- grImage: any;
830
- static styles: lit.CSSResult[];
831
- svg: SVGSVGElement;
814
+ static styles: CSSResultGroup;
815
+ private hotspots;
816
+ private startPoint;
817
+ private endPoint;
818
+ private _lines;
819
+ private startCoord;
820
+ private mouseCoord;
821
+ private grImage;
832
822
  constructor();
833
823
  reset(): void;
834
824
  validate(): boolean;
@@ -861,9 +851,9 @@ declare global {
861
851
 
862
852
  declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
863
853
  declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
864
- choiceOrdering: boolean;
854
+ static styles: CSSResultGroup;
855
+ protected choiceOrdering: boolean;
865
856
  protected _choiceElements: Choice[];
866
- static styles: lit.CSSResult[];
867
857
  render(): lit_html.TemplateResult<1>;
868
858
  private setHotspotOrder;
869
859
  private positionHotspotOnRegister;
@@ -878,7 +868,7 @@ declare global {
878
868
 
879
869
  declare const QtiHotspotInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
880
870
  declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
881
- static styles: lit.CSSResult[];
871
+ static styles: CSSResultGroup;
882
872
  render(): lit_html.TemplateResult<1>;
883
873
  private positionHotspotOnRegister;
884
874
  connectedCallback(): void;
@@ -958,8 +948,8 @@ declare global {
958
948
  declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
959
949
  declare class QtiOrderInteraction extends QtiOrderInteraction_base {
960
950
  static styles: lit.CSSResult;
961
- childrenMap: Element[];
962
- nrChoices: number;
951
+ protected childrenMap: Element[];
952
+ protected nrChoices: number;
963
953
  correctResponses: string[];
964
954
  showCorrectResponses: boolean;
965
955
  /** orientation of choices */
@@ -1165,4 +1155,4 @@ declare global {
1165
1155
  }
1166
1156
  }
1167
1157
 
1168
- 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 };
1158
+ export { type QtiRuleBase as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiHottextInteraction as D, QtiInlineChoiceInteraction as E, type Orientation as F, QtiChoiceInteraction as G, QtiUploadInteraction as H, type InteractionChangedDetails as I, QtiOutcomeProcessing as J, QtiOutcomeProcessingProcessor as K, QtiResponseProcessing as L, type Multiple as M, QtiLookupOutcomeValue as N, type OutcomeChangedDetails as O, QtiAnd as P, type QtiInteractionChanged as Q, type ResponseInteraction as R, qtiAndMixin as S, QtiConditionExpression as T, type QtiExpressionBase as U, type VariableValue as V, QtiExpression as W, QtiMapping as X, QtiSubtract as Y, qtiSubtractMixin as Z, QtiRule as _, type QtiOutcomeChanged as a, QtiPortableCustomInteraction as a0, QtiAssociateInteraction as a1, QtiCustomInteraction as a2, QtiEndAttemptInteraction as a3, QtiGapMatchInteraction as a4, QtiGraphicAssociateInteraction as a5, QtiGraphicGapMatchInteraction as a6, QtiGraphicOrderInteraction as a7, QtiHotspotInteraction as a8, QtiMatchInteraction as a9, QtiMediaInteraction as aa, QtiOrderInteraction as ab, QtiPositionObjectStage as ac, QtiSelectPointInteraction as ad, QtiSliderInteraction as ae, type ItemContext 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 Ordered as b, type Cardinality as c, type directedPair as d, type VariableDeclaration as e, type float as f, type OutcomeVariable as g, type ResponseVariable as h, type integer as i, QtiAssessmentItem as j, QtiAssessmentStimulusRef as k, type ChoiceInterface as l, ActiveElementMixin as m, QtiItemBody as n, QtiPrompt as o, QtiStylesheet as p, QtiOutcomeDeclaration as q, QtiResponseDeclaration as r, QtiCompanionMaterialsInfo as s, QtiContentBody as t, QtiRubricBlock as u, QtiFeedbackBlock as v, QtiFeedbackInline as w, QtiModalFeedback as x, QtiExtendedTextInteraction as y, QtiTextEntryInteraction as z };
@@ -0,0 +1,13 @@
1
+ export { TestComponent } from './test-component.abstract.js';
2
+ export { TestNext } from './test-next.js';
3
+ export { TestPrev } from './test-prev.js';
4
+ export { TestView } from './test-view.js';
5
+ export { TestItemLink } from './test-item-link.js';
6
+ export { TestContainer } from './test-container.js';
7
+ export { TestPagingButtonsStamp } from './test-paging-buttons-stamp.js';
8
+ import 'lit';
9
+ import '../../test-base-BJwG9Ie8.js';
10
+ import '../qti-assessment-test/qti-test-part.js';
11
+ import 'lit-html';
12
+ import '../../qti-simple-choice-DxWcdKHi.js';
13
+ import 'lit-html/directives/ref.js';
@@ -0,0 +1,40 @@
1
+ import "../../chunk-GSFDTSLL.js";
2
+ import {
3
+ TestContainer
4
+ } from "../../chunk-X4ZBUCOD.js";
5
+ import {
6
+ TestItemLink
7
+ } from "../../chunk-GTYLWGDG.js";
8
+ import {
9
+ TestNext
10
+ } from "../../chunk-L7MBIXEX.js";
11
+ import {
12
+ TestPagingButtonsStamp
13
+ } from "../../chunk-JDHBXMKF.js";
14
+ import {
15
+ TestPrev
16
+ } from "../../chunk-TXRSYXG3.js";
17
+ import {
18
+ TestView
19
+ } from "../../chunk-VODOQFTJ.js";
20
+ import "../../chunk-UB5K44DB.js";
21
+ import {
22
+ TestComponent
23
+ } from "../../chunk-ENVUIH2A.js";
24
+ import "../../chunk-4CSM2PCC.js";
25
+ import "../../chunk-3WLCQQN7.js";
26
+ import "../../chunk-4YG2FPKK.js";
27
+ import "../../chunk-2OA7E3E7.js";
28
+ import "../../chunk-XFHB6KQW.js";
29
+ import "../../chunk-R4HSV7U7.js";
30
+ import "../../chunk-44VE5POH.js";
31
+ export {
32
+ TestComponent,
33
+ TestContainer,
34
+ TestItemLink,
35
+ TestNext,
36
+ TestPagingButtonsStamp,
37
+ TestPrev,
38
+ TestView
39
+ };
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,8 @@
1
+ import * as lit from 'lit';
2
+
3
+ declare const form: lit.CSSResult;
4
+ declare const btn: lit.CSSResult;
5
+ declare const dis: lit.CSSResult;
6
+ declare const ind: lit.CSSResult;
7
+
8
+ export { btn, dis, form, ind };
@@ -0,0 +1,14 @@
1
+ import {
2
+ btn,
3
+ dis,
4
+ form,
5
+ ind
6
+ } from "../../chunk-UB5K44DB.js";
7
+ import "../../chunk-44VE5POH.js";
8
+ export {
9
+ btn,
10
+ dis,
11
+ form,
12
+ ind
13
+ };
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,23 @@
1
+ import { LitElement } from 'lit';
2
+ import { T as TestContext, c as TestElement } from '../../test-base-BJwG9Ie8.js';
3
+ import '../qti-assessment-test/qti-test-part.js';
4
+ import 'lit-html';
5
+ import '../../qti-simple-choice-DxWcdKHi.js';
6
+ import 'lit-html/directives/ref.js';
7
+
8
+ declare abstract class TestComponent extends LitElement {
9
+ disabled: boolean;
10
+ protected _testContext?: TestContext;
11
+ protected _testElement?: TestElement;
12
+ _handleTestElementChange(_oldValue: TestElement, newValue: TestElement): void;
13
+ protected _internals: ElementInternals;
14
+ protected items: any;
15
+ protected itemIndex: any;
16
+ protected view: any;
17
+ constructor();
18
+ protected willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
19
+ protected _switchView(view: string): void;
20
+ protected _requestItem(identifier: string): void;
21
+ }
22
+
23
+ export { TestComponent };
@@ -0,0 +1,12 @@
1
+ import {
2
+ TestComponent
3
+ } from "../../chunk-ENVUIH2A.js";
4
+ import "../../chunk-4CSM2PCC.js";
5
+ import "../../chunk-4YG2FPKK.js";
6
+ import "../../chunk-XFHB6KQW.js";
7
+ import "../../chunk-R4HSV7U7.js";
8
+ import "../../chunk-44VE5POH.js";
9
+ export {
10
+ TestComponent
11
+ };
12
+ //# sourceMappingURL=test-component.abstract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,37 @@
1
+ import * as lit_html from 'lit-html';
2
+ import { LitElement } from 'lit';
3
+
4
+ /**
5
+ * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
6
+ * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
7
+ * The element loads the test from the provided URL and renders it inside the shadow DOM.
8
+ *
9
+ * ```html
10
+ * <qti-test>
11
+ * <test-container class="m-4 bg-white" test-url="./path/to/assessmenttest.xml"></test-container>
12
+ * </qti-test>
13
+ * ```
14
+ */
15
+ declare class TestContainer extends LitElement {
16
+ /** URL of the item to load */
17
+ testURL: string;
18
+ /** A parsed HTML document */
19
+ testDoc: DocumentFragment;
20
+ /** The raw XML string */
21
+ testXML: string;
22
+ /** Template content if provided */
23
+ private templateContent;
24
+ protected handleTestURLChange(): Promise<void>;
25
+ protected handleTestXMLChange(): void;
26
+ connectedCallback(): Promise<void>;
27
+ private initializeTemplateContent;
28
+ private applyStyles;
29
+ render(): lit_html.TemplateResult<1>;
30
+ }
31
+ declare global {
32
+ interface HTMLElementTagNameMap {
33
+ 'test-container': TestContainer;
34
+ }
35
+ }
36
+
37
+ export { TestContainer };
@@ -0,0 +1,11 @@
1
+ import {
2
+ TestContainer
3
+ } from "../../chunk-X4ZBUCOD.js";
4
+ import "../../chunk-3WLCQQN7.js";
5
+ import "../../chunk-4YG2FPKK.js";
6
+ import "../../chunk-2OA7E3E7.js";
7
+ import "../../chunk-44VE5POH.js";
8
+ export {
9
+ TestContainer
10
+ };
11
+ //# sourceMappingURL=test-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,21 @@
1
+ import * as lit_html from 'lit-html';
2
+ import * as lit from 'lit';
3
+ import { TestComponent } from './test-component.abstract.js';
4
+ import '../../test-base-BJwG9Ie8.js';
5
+ import '../qti-assessment-test/qti-test-part.js';
6
+ import '../../qti-simple-choice-DxWcdKHi.js';
7
+ import 'lit-html/directives/ref.js';
8
+
9
+ declare class TestItemLink extends TestComponent {
10
+ static styles: lit.CSSResult;
11
+ private itemId;
12
+ constructor();
13
+ render(): lit_html.TemplateResult<1>;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'test-item-link': TestItemLink;
18
+ }
19
+ }
20
+
21
+ export { TestItemLink };
@@ -0,0 +1,14 @@
1
+ import {
2
+ TestItemLink
3
+ } from "../../chunk-GTYLWGDG.js";
4
+ import "../../chunk-UB5K44DB.js";
5
+ import "../../chunk-ENVUIH2A.js";
6
+ import "../../chunk-4CSM2PCC.js";
7
+ import "../../chunk-4YG2FPKK.js";
8
+ import "../../chunk-XFHB6KQW.js";
9
+ import "../../chunk-R4HSV7U7.js";
10
+ import "../../chunk-44VE5POH.js";
11
+ export {
12
+ TestItemLink
13
+ };
14
+ //# sourceMappingURL=test-item-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,32 @@
1
+ import * as lit_html from 'lit-html';
2
+ import * as lit from 'lit';
3
+ import { TestComponent } from './test-component.abstract.js';
4
+ import '../../test-base-BJwG9Ie8.js';
5
+ import '../qti-assessment-test/qti-test-part.js';
6
+ import '../../qti-simple-choice-DxWcdKHi.js';
7
+ import 'lit-html/directives/ref.js';
8
+
9
+ /**
10
+ * Represents a custom element for navigating to the next test item.
11
+ *
12
+ * @remarks
13
+ * This element provides functionality for navigating to the next test item.
14
+ *
15
+ * @example
16
+ * ```html
17
+ * <test-next></test-next>
18
+ * ```
19
+ */
20
+ declare class TestNext extends TestComponent {
21
+ static styles: lit.CSSResult;
22
+ constructor();
23
+ willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
24
+ render(): lit_html.TemplateResult<1>;
25
+ }
26
+ declare global {
27
+ interface HTMLElementTagNameMap {
28
+ 'test-next': TestNext;
29
+ }
30
+ }
31
+
32
+ export { TestNext };
@@ -0,0 +1,14 @@
1
+ import {
2
+ TestNext
3
+ } from "../../chunk-L7MBIXEX.js";
4
+ import "../../chunk-UB5K44DB.js";
5
+ import "../../chunk-ENVUIH2A.js";
6
+ import "../../chunk-4CSM2PCC.js";
7
+ import "../../chunk-4YG2FPKK.js";
8
+ import "../../chunk-XFHB6KQW.js";
9
+ import "../../chunk-R4HSV7U7.js";
10
+ import "../../chunk-44VE5POH.js";
11
+ export {
12
+ TestNext
13
+ };
14
+ //# sourceMappingURL=test-next.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,16 @@
1
+ import '../qti-test.js';
2
+ import '../../test-base-BJwG9Ie8.js';
3
+ import '../qti-assessment-test/qti-test-part.js';
4
+ import '../../qti-simple-choice-DxWcdKHi.js';
5
+ import './test-next.js';
6
+ import './test-prev.js';
7
+ import './test-view.js';
8
+ import './test-item-link.js';
9
+ import './test-container.js';
10
+ import './test-paging-buttons-stamp.js';
11
+ import '../../qti-item/qti-item.js';
12
+ import '../../qti-item/components/item-container.js';
13
+ import 'lit-html';
14
+ import 'lit';
15
+ import 'lit-html/directives/ref.js';
16
+ import './test-component.abstract.js';