@citolab/qti-components 7.0.9 → 7.0.10
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.
- package/cdn/chunks/chunk-22SOGZF4.js +1 -0
- package/cdn/chunks/chunk-2TYVSDOR.js +10 -0
- package/cdn/chunks/chunk-2UE47PDO.js +8 -0
- package/cdn/chunks/chunk-3AZDOXQ2.js +1 -0
- package/cdn/chunks/chunk-3JYWJ2NK.js +7 -0
- package/cdn/chunks/chunk-46LUBNDT.js +1 -0
- package/cdn/chunks/chunk-4AQLM6EU.js +1 -0
- package/cdn/chunks/chunk-4F3SWHSX.js +3537 -0
- package/cdn/chunks/chunk-4JDR4LHD.js +7 -0
- package/cdn/chunks/chunk-4PRM73PT.js +3530 -0
- package/cdn/chunks/chunk-4PWQZQY3.js +17 -0
- package/cdn/chunks/chunk-5A43OJRS.js +24 -0
- package/cdn/chunks/chunk-5E2MIJGV.js +0 -0
- package/cdn/chunks/chunk-5ETOPNVH.js +1 -0
- package/cdn/chunks/chunk-5HNHSP7A.js +3530 -0
- package/cdn/chunks/chunk-5JUDXKGO.js +7 -0
- package/cdn/chunks/chunk-6A2O5DS7.js +1 -0
- package/cdn/chunks/chunk-6FKGN7HB.js +1 -0
- package/cdn/chunks/chunk-7AZEP5VB.js +8 -0
- package/cdn/chunks/chunk-7CQK5FSF.js +3530 -0
- package/cdn/chunks/chunk-APXB6KK5.js +8 -0
- package/cdn/chunks/chunk-AV37OE2S.js +1 -0
- package/cdn/chunks/chunk-AWIOWT4I.js +1 -0
- package/cdn/chunks/chunk-BB6R7AIH.js +8 -0
- package/cdn/chunks/chunk-CKOTA237.js +1 -0
- package/cdn/chunks/chunk-CZTZFTHC.js +8 -0
- package/cdn/chunks/chunk-D3JZV5XV.js +1 -0
- package/cdn/chunks/chunk-DI3XOGVR.js +951 -0
- package/cdn/chunks/chunk-DSZDMYQL.js +1 -0
- package/cdn/chunks/chunk-ELG6OUC7.js +1 -0
- package/cdn/chunks/chunk-EQNTO3QG.js +8 -0
- package/cdn/chunks/chunk-ESTNU24A.js +1 -0
- package/cdn/chunks/chunk-EUHRWJ5R.js +48 -0
- package/cdn/chunks/chunk-EVPWT7PO.js +1 -0
- package/cdn/chunks/chunk-EXAWEKDS.js +1 -0
- package/cdn/chunks/chunk-FCESHSJ3.js +73 -0
- package/cdn/chunks/chunk-G457CJP5.js +1 -0
- package/cdn/chunks/chunk-GIFBDBLN.js +8 -0
- package/cdn/chunks/chunk-GIYY5ZKS.js +939 -0
- package/cdn/chunks/chunk-GTFFARVB.js +8 -0
- package/cdn/chunks/chunk-GYPMDM7U.js +41 -0
- package/cdn/chunks/chunk-HG75NNFK.js +1 -0
- package/cdn/chunks/chunk-HV4JN3XB.js +1 -0
- package/cdn/chunks/chunk-HXPYDFGQ.js +8 -0
- package/cdn/chunks/chunk-IDGQY66Q.js +8 -0
- package/cdn/chunks/chunk-J5BEBS4Y.js +1 -0
- package/cdn/chunks/chunk-JLT3S3BD.js +1 -0
- package/cdn/chunks/chunk-K2TKSKEN.js +1 -0
- package/cdn/chunks/chunk-K4LCPCDE.js +1 -0
- package/cdn/chunks/chunk-KFA5RO3O.js +1 -0
- package/cdn/chunks/chunk-KFLS5ISA.js +1 -0
- package/cdn/chunks/chunk-KJEXS4DB.js +1 -0
- package/cdn/chunks/chunk-L33RHCU4.js +1 -0
- package/cdn/chunks/chunk-LPXDIJR2.js +1 -0
- package/cdn/chunks/chunk-LQ3DVN7N.js +1 -0
- package/cdn/chunks/chunk-LXNE62HZ.js +1 -0
- package/cdn/chunks/chunk-M2YG5XJI.js +8 -0
- package/cdn/chunks/chunk-M5OZ7YYR.js +3537 -0
- package/cdn/chunks/chunk-MCB43U5P.js +1 -0
- package/cdn/chunks/chunk-NFO577XB.js +939 -0
- package/cdn/chunks/chunk-NXTUDFAR.js +8 -0
- package/cdn/chunks/chunk-PAQSIIBJ.js +939 -0
- package/cdn/chunks/chunk-PAWTFMTX.js +8 -0
- package/cdn/chunks/chunk-PP4PDVVF.js +1 -0
- package/cdn/chunks/chunk-PZ7WEWHR.js +41 -0
- package/cdn/chunks/chunk-QEQPGKII.js +939 -0
- package/cdn/chunks/chunk-QICNOCJ6.js +1 -0
- package/cdn/chunks/chunk-QII27W7O.js +1 -0
- package/cdn/chunks/chunk-QYXRVCGM.js +6 -0
- package/cdn/chunks/chunk-REVF4YJC.js +8 -0
- package/cdn/chunks/chunk-S7SSPYIM.js +1 -0
- package/cdn/chunks/chunk-SCAVRW3H.js +1 -0
- package/cdn/chunks/chunk-TAJ4OCKW.js +3530 -0
- package/cdn/chunks/chunk-TH2YUX3A.js +17 -0
- package/cdn/chunks/chunk-TV7GYNJO.js +1 -0
- package/cdn/chunks/chunk-UXPSLBXO.js +1 -0
- package/cdn/chunks/chunk-VCH5D4D5.js +1 -0
- package/cdn/chunks/chunk-VE4IM4WS.js +8 -0
- package/cdn/chunks/chunk-VQPS5EII.js +939 -0
- package/cdn/chunks/chunk-WIDUHBF5.js +8 -0
- package/cdn/chunks/chunk-WTMZDTN4.js +1 -0
- package/cdn/chunks/chunk-X6XFTJQH.js +8 -0
- package/cdn/chunks/chunk-XEXDWGVU.js +939 -0
- package/cdn/chunks/chunk-XHBOTQFL.js +1 -0
- package/cdn/chunks/chunk-Y3GKQGXZ.js +8 -0
- package/cdn/chunks/chunk-YM6G2V57.js +8 -0
- package/cdn/chunks/chunk-YWZPZLWC.js +1 -0
- package/cdn/chunks/chunk-YYGAT2GT.js +1 -0
- package/cdn/chunks/chunk-Z7NL2OYT.js +1 -0
- package/cdn/chunks/chunk-ZCSHWAC6.js +1 -0
- package/cdn/chunks/chunk-ZILMGYR5.js +1 -0
- package/cdn/chunks/chunk-ZJMQOR5E.js +0 -0
- package/cdn/chunks/chunk-ZXVHR32G.js +1 -0
- package/cdn/exports/config.context.js +1 -1
- package/cdn/exports/interaction.js +1 -1
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +1 -1
- package/cdn/qti-components/index.js +1 -1
- package/cdn/qti-item/core/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/test-container.js +1 -1
- package/cdn/qti-test/components/test-end-attempt.js +1 -1
- package/cdn/qti-test/components/test-item-link.js +1 -1
- package/cdn/qti-test/components/test-navigation.js +1 -1
- package/cdn/qti-test/components/test-next.js +1 -1
- package/cdn/qti-test/components/test-paging-buttons-stamp copy.js +1 -0
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
- package/cdn/qti-test/components/test-paging-buttons-stamp.stories copy.css +1 -0
- package/cdn/qti-test/components/test-paging-buttons-stamp.stories copy.js +264 -0
- package/cdn/qti-test/components/test-prev.js +1 -1
- package/cdn/qti-test/components/test-print-item-variables.js +1 -0
- package/cdn/qti-test/components/test-section-buttons-stamp.js +1 -0
- package/cdn/qti-test/components/test-section-link.js +1 -0
- package/cdn/qti-test/components/test-show-correct-response.js +1 -1
- package/cdn/qti-test/core/index.js +1 -1
- package/dist/chunks/chunk-25BRPHJE.js +630 -0
- package/dist/chunks/chunk-25BRPHJE.js.map +1 -0
- package/dist/chunks/chunk-25ZCG5KD.js +6432 -0
- package/dist/chunks/chunk-25ZCG5KD.js.map +1 -0
- package/dist/chunks/chunk-2Q7RXYGX.js +213 -0
- package/dist/chunks/chunk-2Q7RXYGX.js.map +1 -0
- package/dist/chunks/chunk-2VA7CRTS.js +30 -0
- package/dist/chunks/chunk-2VA7CRTS.js.map +1 -0
- package/dist/chunks/chunk-36RGXVXQ.js +3634 -0
- package/dist/chunks/chunk-36RGXVXQ.js.map +1 -0
- package/dist/chunks/chunk-3F566AXX.js +210 -0
- package/dist/chunks/chunk-3F566AXX.js.map +1 -0
- package/dist/chunks/chunk-4475MTP7.js +630 -0
- package/dist/chunks/chunk-4475MTP7.js.map +1 -0
- package/dist/chunks/chunk-4GJ5LAU5.js +631 -0
- package/dist/chunks/chunk-4GJ5LAU5.js.map +1 -0
- package/dist/chunks/chunk-4HI4Q5TO.js +3641 -0
- package/dist/chunks/chunk-4HI4Q5TO.js.map +1 -0
- package/dist/chunks/chunk-4L5S7AON.js +621 -0
- package/dist/chunks/chunk-4L5S7AON.js.map +1 -0
- package/dist/chunks/chunk-52EWQN42.js +634 -0
- package/dist/chunks/chunk-52EWQN42.js.map +1 -0
- package/dist/chunks/chunk-5BSOZZMV.js +621 -0
- package/dist/chunks/chunk-5BSOZZMV.js.map +1 -0
- package/dist/chunks/chunk-5DFTIWBN.js +95 -0
- package/dist/chunks/chunk-5DFTIWBN.js.map +1 -0
- package/dist/chunks/chunk-5DZX4TPP.js +45 -0
- package/dist/chunks/chunk-5DZX4TPP.js.map +1 -0
- package/dist/chunks/chunk-5FQYXHVK.js +213 -0
- package/dist/chunks/chunk-5FQYXHVK.js.map +1 -0
- package/dist/chunks/chunk-5JJ7ELEU.js +39 -0
- package/dist/chunks/chunk-5JJ7ELEU.js.map +1 -0
- package/dist/chunks/chunk-5OMC3DTZ.js +3628 -0
- package/dist/chunks/chunk-5OMC3DTZ.js.map +1 -0
- package/dist/chunks/chunk-63WMM765.js +30 -0
- package/dist/chunks/chunk-63WMM765.js.map +1 -0
- package/dist/chunks/chunk-7ABTMTDB.js +86 -0
- package/dist/chunks/chunk-7ABTMTDB.js.map +1 -0
- package/dist/chunks/chunk-7K6TWSAK.js +626 -0
- package/dist/chunks/chunk-7K6TWSAK.js.map +1 -0
- package/dist/chunks/chunk-7QZ4E5WZ.js +210 -0
- package/dist/chunks/chunk-7QZ4E5WZ.js.map +1 -0
- package/dist/chunks/chunk-7RB2AUJE.js +622 -0
- package/dist/chunks/chunk-7RB2AUJE.js.map +1 -0
- package/dist/chunks/chunk-7WZH7TKG.js +210 -0
- package/dist/chunks/chunk-7WZH7TKG.js.map +1 -0
- package/dist/chunks/chunk-7YREO7KD.js +214 -0
- package/dist/chunks/chunk-7YREO7KD.js.map +1 -0
- package/dist/chunks/chunk-AI3BVEE3.js +102 -0
- package/dist/chunks/chunk-AI3BVEE3.js.map +1 -0
- package/dist/chunks/chunk-AZOWZY7V.js +95 -0
- package/dist/chunks/chunk-AZOWZY7V.js.map +1 -0
- package/dist/chunks/chunk-AZZW7WYD.js +3634 -0
- package/dist/chunks/chunk-AZZW7WYD.js.map +1 -0
- package/dist/chunks/chunk-B4YBRGOO.js +72 -0
- package/dist/chunks/chunk-B4YBRGOO.js.map +1 -0
- package/dist/chunks/chunk-BBFU7KGH.js +6432 -0
- package/dist/chunks/chunk-BBFU7KGH.js.map +1 -0
- package/dist/chunks/chunk-BCX6AQCQ.js +210 -0
- package/dist/chunks/chunk-BCX6AQCQ.js.map +1 -0
- package/dist/chunks/chunk-BJHVTP5W.js +95 -0
- package/dist/chunks/chunk-BJHVTP5W.js.map +1 -0
- package/dist/chunks/chunk-BOMM6A7V.js +19 -0
- package/dist/chunks/chunk-BOMM6A7V.js.map +1 -0
- package/dist/chunks/chunk-C5Q3SNXK.js +623 -0
- package/dist/chunks/chunk-C5Q3SNXK.js.map +1 -0
- package/dist/chunks/chunk-CONPNDHF.js +6416 -0
- package/dist/chunks/chunk-CONPNDHF.js.map +1 -0
- package/dist/chunks/chunk-CP63JV6J.js +56 -0
- package/dist/chunks/chunk-CP63JV6J.js.map +1 -0
- package/dist/chunks/chunk-DRATSVXW.js +99 -0
- package/dist/chunks/chunk-DRATSVXW.js.map +1 -0
- package/dist/chunks/chunk-E7UCMQNT.js +98 -0
- package/dist/chunks/chunk-E7UCMQNT.js.map +1 -0
- package/dist/chunks/chunk-ECTTGUKY.js +72 -0
- package/dist/chunks/chunk-ECTTGUKY.js.map +1 -0
- package/dist/chunks/chunk-F3JNWOBS.js +630 -0
- package/dist/chunks/chunk-F3JNWOBS.js.map +1 -0
- package/dist/chunks/chunk-FKOHVQD5.js +565 -0
- package/dist/chunks/chunk-FKOHVQD5.js.map +1 -0
- package/dist/chunks/chunk-FKYQ474Y.js +634 -0
- package/dist/chunks/chunk-FKYQ474Y.js.map +1 -0
- package/dist/chunks/chunk-FRNEKC5E.js +211 -0
- package/dist/chunks/chunk-FRNEKC5E.js.map +1 -0
- package/dist/chunks/chunk-GM2VH33L.js +214 -0
- package/dist/chunks/chunk-GM2VH33L.js.map +1 -0
- package/dist/chunks/chunk-HRCCW6MA.js +8 -0
- package/dist/chunks/chunk-HRCCW6MA.js.map +1 -0
- package/dist/chunks/chunk-ILL4KEGU.js +616 -0
- package/dist/chunks/chunk-ILL4KEGU.js.map +1 -0
- package/dist/chunks/chunk-IPWVQUFB.js +641 -0
- package/dist/chunks/chunk-IPWVQUFB.js.map +1 -0
- package/dist/chunks/chunk-IQVU7D3B.js +1 -0
- package/dist/chunks/chunk-IQVU7D3B.js.map +1 -0
- package/dist/chunks/chunk-JCEYFPPV.js +100 -0
- package/dist/chunks/chunk-JCEYFPPV.js.map +1 -0
- package/dist/chunks/chunk-JMIFSDZ7.js +52 -0
- package/dist/chunks/chunk-JMIFSDZ7.js.map +1 -0
- package/dist/chunks/chunk-JPATXTKN.js +629 -0
- package/dist/chunks/chunk-JPATXTKN.js.map +1 -0
- package/dist/chunks/chunk-KB5LRYDB.js +1 -0
- package/dist/chunks/chunk-KB5LRYDB.js.map +1 -0
- package/dist/chunks/chunk-KEF7X2OE.js +3621 -0
- package/dist/chunks/chunk-KEF7X2OE.js.map +1 -0
- package/dist/chunks/chunk-L5B7J2ZT.js +43 -0
- package/dist/chunks/chunk-L5B7J2ZT.js.map +1 -0
- package/dist/chunks/chunk-LU3O7U7W.js +45 -0
- package/dist/chunks/chunk-LU3O7U7W.js.map +1 -0
- package/dist/chunks/chunk-M3ONQ3OO.js +45 -0
- package/dist/chunks/chunk-M3ONQ3OO.js.map +1 -0
- package/dist/chunks/chunk-MBF6HEKO.js +39 -0
- package/dist/chunks/chunk-MBF6HEKO.js.map +1 -0
- package/dist/chunks/chunk-NW6WMWBC.js +94 -0
- package/dist/chunks/chunk-NW6WMWBC.js.map +1 -0
- package/dist/chunks/chunk-NXSALC5S.js +633 -0
- package/dist/chunks/chunk-NXSALC5S.js.map +1 -0
- package/dist/chunks/chunk-OTLH5OUZ.js +44 -0
- package/dist/chunks/chunk-OTLH5OUZ.js.map +1 -0
- package/dist/chunks/chunk-P7CW3RY4.js +6538 -0
- package/dist/chunks/chunk-P7CW3RY4.js.map +1 -0
- package/dist/chunks/chunk-PWOPGMKY.js +210 -0
- package/dist/chunks/chunk-PWOPGMKY.js.map +1 -0
- package/dist/chunks/chunk-QC5NBP3D.js +44 -0
- package/dist/chunks/chunk-QC5NBP3D.js.map +1 -0
- package/dist/chunks/chunk-QHWSY3K6.js +30 -0
- package/dist/chunks/chunk-QHWSY3K6.js.map +1 -0
- package/dist/chunks/chunk-QL3I5UMG.js +43 -0
- package/dist/chunks/chunk-QL3I5UMG.js.map +1 -0
- package/dist/chunks/chunk-QV4U5W67.js +43 -0
- package/dist/chunks/chunk-QV4U5W67.js.map +1 -0
- package/dist/chunks/chunk-R7HYOALH.js +213 -0
- package/dist/chunks/chunk-R7HYOALH.js.map +1 -0
- package/dist/chunks/chunk-SC5PDBVU.js +629 -0
- package/dist/chunks/chunk-SC5PDBVU.js.map +1 -0
- package/dist/chunks/chunk-SFRILOXM.js +624 -0
- package/dist/chunks/chunk-SFRILOXM.js.map +1 -0
- package/dist/chunks/chunk-ST5C4HZG.js +3621 -0
- package/dist/chunks/chunk-ST5C4HZG.js.map +1 -0
- package/dist/chunks/chunk-T524XBVZ.js +45 -0
- package/dist/chunks/chunk-T524XBVZ.js.map +1 -0
- package/dist/chunks/chunk-TN5UCQIV.js +614 -0
- package/dist/chunks/chunk-TN5UCQIV.js.map +1 -0
- package/dist/chunks/chunk-TWGONQQT.js +44 -0
- package/dist/chunks/chunk-TWGONQQT.js.map +1 -0
- package/dist/chunks/chunk-UDDWTISS.js +615 -0
- package/dist/chunks/chunk-UDDWTISS.js.map +1 -0
- package/dist/chunks/chunk-URMN5M77.js +36 -0
- package/dist/chunks/chunk-URMN5M77.js.map +1 -0
- package/dist/chunks/chunk-VPMLJM47.js +621 -0
- package/dist/chunks/chunk-VPMLJM47.js.map +1 -0
- package/dist/chunks/chunk-WYIX3HQR.js +634 -0
- package/dist/chunks/chunk-WYIX3HQR.js.map +1 -0
- package/dist/chunks/chunk-XISZU4KI.js +614 -0
- package/dist/chunks/chunk-XISZU4KI.js.map +1 -0
- package/dist/chunks/chunk-Y32L6VYU.js +91 -0
- package/dist/chunks/chunk-Y32L6VYU.js.map +1 -0
- package/dist/chunks/chunk-Y35P6GUT.js +99 -0
- package/dist/chunks/chunk-Y35P6GUT.js.map +1 -0
- package/dist/chunks/chunk-YUWIMPXO.js +75 -0
- package/dist/chunks/chunk-YUWIMPXO.js.map +1 -0
- package/dist/chunks/chunk-ZJHKJMHR.js +52 -0
- package/dist/chunks/chunk-ZJHKJMHR.js.map +1 -0
- package/dist/chunks/chunk-ZO73DF5R.js +36 -0
- package/dist/chunks/chunk-ZO73DF5R.js.map +1 -0
- package/dist/chunks/chunk-ZRA43QD3.js +52 -0
- package/dist/chunks/chunk-ZRA43QD3.js.map +1 -0
- package/dist/exports/computed.context.d.ts +3 -1
- package/dist/exports/computed.context.js +1 -1
- package/dist/exports/config.context.d.ts +1 -0
- package/dist/exports/config.context.js +4 -3
- package/dist/exports/config.context.js.map +1 -1
- package/dist/exports/interaction.d.ts +5 -2
- package/dist/exports/interaction.js +1 -1
- package/dist/exports/item.context.d.ts +1 -1
- package/dist/exports/qti-assessment-item.context.d.ts +1 -1
- package/dist/exports/qti-condition-expression.d.ts +1 -1
- package/dist/exports/qti-expression.d.ts +1 -1
- package/dist/exports/session.context.d.ts +3 -3
- package/dist/exports/test.context.d.ts +1 -1
- package/dist/exports/variables.d.ts +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.js +26 -15
- package/dist/item.css +14 -1
- package/dist/qti-components/index.d.ts +4 -4
- package/dist/qti-components/index.js +2 -2
- package/dist/qti-components-jsx.d.ts +82 -36
- package/dist/qti-item/core/index.js +1 -1
- package/dist/qti-loader/index.d.ts +3 -3
- package/dist/qti-response-declaration-BwciEk5R.d.ts +1022 -0
- package/dist/qti-response-declaration-CCx746w0.d.ts +1023 -0
- package/dist/qti-response-declaration-CRGM9w_b.d.ts +1023 -0
- package/dist/qti-response-declaration-CbWRpo5c.d.ts +1033 -0
- package/dist/qti-test/components/index.d.ts +10 -8
- package/dist/qti-test/components/index.js +22 -11
- package/dist/qti-test/components/test-container.js +1 -1
- package/dist/qti-test/components/test-end-attempt.d.ts +0 -3
- package/dist/qti-test/components/test-end-attempt.js +1 -3
- package/dist/qti-test/components/test-item-link.js +1 -1
- package/dist/qti-test/components/test-navigation.d.ts +21 -8
- package/dist/qti-test/components/test-navigation.js +2 -3
- package/dist/qti-test/components/test-next.js +2 -2
- package/dist/qti-test/components/test-paging-buttons-stamp copy.js +44 -0
- package/dist/qti-test/components/test-paging-buttons-stamp copy.js.map +1 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.js +2 -2
- package/dist/qti-test/components/test-paging-buttons-stamp.stories copy.css +93 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.stories copy.css.map +1 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.stories copy.js +9774 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.stories copy.js.map +1 -0
- package/dist/qti-test/components/test-prev.js +2 -2
- package/dist/qti-test/components/test-print-item-variables.d.ts +15 -0
- package/dist/qti-test/components/test-print-item-variables.js +9 -0
- package/dist/qti-test/components/test-print-item-variables.js.map +1 -0
- package/dist/qti-test/components/test-section-buttons-stamp.d.ts +20 -0
- package/dist/qti-test/components/test-section-buttons-stamp.js +9 -0
- package/dist/qti-test/components/test-section-buttons-stamp.js.map +1 -0
- package/dist/qti-test/components/test-section-link.d.ts +18 -0
- package/dist/qti-test/components/test-section-link.js +9 -0
- package/dist/qti-test/components/test-section-link.js.map +1 -0
- package/dist/qti-test/components/test-show-correct-response.d.ts +0 -3
- package/dist/qti-test/components/test-show-correct-response.js +1 -3
- package/dist/qti-test/core/index.d.ts +5 -5
- package/dist/qti-test/core/index.js +1 -1
- package/dist/qti-test-part-8W7-lWmu.d.ts +85 -0
- package/dist/qti-test-part-BEPYFFNO.d.ts +85 -0
- package/dist/qti-test-part-CTzSuEgA.d.ts +85 -0
- package/dist/qti-test-part-CcFpkf1G.d.ts +85 -0
- package/dist/variables-D70AFbp2.d.ts +47 -0
- package/dist/vscode.html-custom-data.json +35 -10
- package/package.json +2 -1
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sessionContext
|
|
3
|
+
} from "./chunk-QTH3WLGY.js";
|
|
4
|
+
import {
|
|
5
|
+
testContext
|
|
6
|
+
} from "./chunk-ODLYMQOS.js";
|
|
7
|
+
import {
|
|
8
|
+
qtiTransformItem
|
|
9
|
+
} from "./chunk-XDMSEAYC.js";
|
|
10
|
+
import {
|
|
11
|
+
__decorateClass
|
|
12
|
+
} from "./chunk-H2JE6IVU.js";
|
|
13
|
+
|
|
14
|
+
// src/lib/qti-test/core/qti-test.ts
|
|
15
|
+
import { html } from "lit";
|
|
16
|
+
import { customElement } from "lit/decorators.js";
|
|
17
|
+
|
|
18
|
+
// src/lib/qti-test/core/mixins/test-loader.mixin.ts
|
|
19
|
+
import { property } from "lit/decorators.js";
|
|
20
|
+
var setSessionData = (key, value) => sessionStorage.setItem(key, JSON.stringify(value));
|
|
21
|
+
var getSessionData = (key) => sessionStorage.getItem(key) ? JSON.parse(sessionStorage.getItem(key)) : null;
|
|
22
|
+
var TestLoaderMixin = (superClass) => {
|
|
23
|
+
class TestLoaderClass extends superClass {
|
|
24
|
+
constructor(...args) {
|
|
25
|
+
super(...args);
|
|
26
|
+
this.autoStoreRestoreContext = null;
|
|
27
|
+
this.navItemId = null;
|
|
28
|
+
this.addEventListener("qti-load-item-request", ({ detail }) => {
|
|
29
|
+
detail.promise = (async () => {
|
|
30
|
+
const api = await qtiTransformItem().load(`${detail.href}`, detail.cancelPreviousRequest);
|
|
31
|
+
return api.htmlDoc();
|
|
32
|
+
})();
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
async connectedCallback() {
|
|
36
|
+
super.connectedCallback();
|
|
37
|
+
if (this.navItemId) {
|
|
38
|
+
this.sessionContext = { ...this.sessionContext, navItemId: this.navItemId };
|
|
39
|
+
}
|
|
40
|
+
if (this.autoStoreRestoreContext) {
|
|
41
|
+
const testContext2 = getSessionData(this.autoStoreRestoreContext);
|
|
42
|
+
if (testContext2) {
|
|
43
|
+
this.testContext = testContext2;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
updated(changedProperties) {
|
|
48
|
+
if (changedProperties.has("testContext")) {
|
|
49
|
+
if (this.autoStoreRestoreContext) {
|
|
50
|
+
setSessionData(this.autoStoreRestoreContext, this.testContext);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
__decorateClass([
|
|
56
|
+
property({ type: String, attribute: "auto-store-restore" })
|
|
57
|
+
], TestLoaderClass.prototype, "autoStoreRestoreContext", 2);
|
|
58
|
+
__decorateClass([
|
|
59
|
+
property({ type: String, attribute: "nav-item-id" })
|
|
60
|
+
], TestLoaderClass.prototype, "navItemId", 2);
|
|
61
|
+
return TestLoaderClass;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// src/lib/qti-test/core/mixins/test-navigation.mixin.ts
|
|
65
|
+
import { property as property2 } from "lit/decorators.js";
|
|
66
|
+
var TestNavigationMixin = (superClass) => {
|
|
67
|
+
class TestNavigationClass extends superClass {
|
|
68
|
+
constructor(...args) {
|
|
69
|
+
super(...args);
|
|
70
|
+
this.navigate = "item";
|
|
71
|
+
this.addEventListener(
|
|
72
|
+
"qti-request-navigation",
|
|
73
|
+
({ detail }) => {
|
|
74
|
+
if (!detail?.id) return;
|
|
75
|
+
this._clearLoadedItems();
|
|
76
|
+
if (detail.type === "item") {
|
|
77
|
+
this._loadSingleItem(detail.id);
|
|
78
|
+
} else if (detail.type === "section") {
|
|
79
|
+
this._loadSectionItems(detail.id);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
this.addEventListener("qti-assessment-test-connected", (e) => {
|
|
84
|
+
this._testElement = e.detail;
|
|
85
|
+
let id = this._testElement.querySelector("qti-assessment-item-ref").identifier;
|
|
86
|
+
if (this.navigate === "section") {
|
|
87
|
+
id = this._testElement.querySelector("qti-assessment-section").identifier;
|
|
88
|
+
}
|
|
89
|
+
if (id) {
|
|
90
|
+
this.dispatchEvent(
|
|
91
|
+
new CustomEvent("qti-request-navigation", {
|
|
92
|
+
detail: { type: this.navigate === "section" ? this.navigate : "item", id },
|
|
93
|
+
bubbles: true,
|
|
94
|
+
composed: true
|
|
95
|
+
})
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
_loadSingleItem(navItemId, cancelPreviousRequest = true) {
|
|
101
|
+
return new Promise((resolve, reject) => {
|
|
102
|
+
const itemRefEl = this._testElement?.querySelector(
|
|
103
|
+
`qti-assessment-item-ref[identifier="${navItemId}"]`
|
|
104
|
+
);
|
|
105
|
+
if (!itemRefEl) {
|
|
106
|
+
console.warn(`Item with identifier "${navItemId}" not found.`);
|
|
107
|
+
return reject(new Error(`Item not found: ${navItemId}`));
|
|
108
|
+
}
|
|
109
|
+
const href = itemRefEl.href;
|
|
110
|
+
const navPartId = itemRefEl.closest("qti-test-part")?.identifier;
|
|
111
|
+
const navSectionId = itemRefEl.closest("qti-assessment-section")?.identifier;
|
|
112
|
+
this.sessionContext = { ...this.sessionContext, navPartId, navSectionId, navItemId, navItemLoading: true };
|
|
113
|
+
const promise = this._loadItemRequest(href, cancelPreviousRequest);
|
|
114
|
+
promise?.then((doc) => {
|
|
115
|
+
itemRefEl.xmlDoc = doc;
|
|
116
|
+
requestAnimationFrame(
|
|
117
|
+
() => this.dispatchEvent(
|
|
118
|
+
new CustomEvent("qti-test-connected", {
|
|
119
|
+
detail: [{ identifier: navItemId, element: itemRefEl }],
|
|
120
|
+
bubbles: true,
|
|
121
|
+
composed: true
|
|
122
|
+
})
|
|
123
|
+
)
|
|
124
|
+
);
|
|
125
|
+
this.sessionContext = { ...this.sessionContext, navItemLoading: false };
|
|
126
|
+
resolve();
|
|
127
|
+
}).catch((error) => {
|
|
128
|
+
console.error("Failed to load item:", error);
|
|
129
|
+
reject(error);
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
_loadSectionItems(navSectionId) {
|
|
134
|
+
const sectionRefEl = this._testElement?.querySelector(
|
|
135
|
+
`qti-assessment-section[identifier="${navSectionId}"]`
|
|
136
|
+
);
|
|
137
|
+
if (!sectionRefEl) {
|
|
138
|
+
console.warn(`Section with identifier "${navSectionId}" not found.`);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const itemRefEls = this._testElement?.querySelectorAll(
|
|
142
|
+
`qti-assessment-section[identifier="${navSectionId}"] > qti-assessment-item-ref`
|
|
143
|
+
);
|
|
144
|
+
const navPartId = sectionRefEl.closest("qti-test-part")?.identifier;
|
|
145
|
+
this.sessionContext = { ...this.sessionContext, navPartId, navSectionId, navItemId: null };
|
|
146
|
+
const items = Array.from(itemRefEls || []).map((itemRef) => itemRef.identifier);
|
|
147
|
+
const promises = items.map((itemId) => this._loadSingleItem(itemId, false));
|
|
148
|
+
Promise.all(promises).then((results) => {
|
|
149
|
+
console.info("All items in section loaded successfully.");
|
|
150
|
+
}).catch((error) => {
|
|
151
|
+
console.error("One or more items failed to load:", error);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
_clearLoadedItems() {
|
|
155
|
+
const itemRefEls = this._testElement?.querySelectorAll(
|
|
156
|
+
`qti-assessment-test qti-assessment-item-ref`
|
|
157
|
+
);
|
|
158
|
+
Array.from(itemRefEls || []).forEach((itemElement) => {
|
|
159
|
+
itemElement.xmlDoc = null;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
_loadItemRequest(href, cancelPreviousRequest = true) {
|
|
163
|
+
const event = new CustomEvent("qti-load-item-request", {
|
|
164
|
+
bubbles: true,
|
|
165
|
+
composed: true,
|
|
166
|
+
detail: {
|
|
167
|
+
href,
|
|
168
|
+
promise: null,
|
|
169
|
+
cancelPreviousRequest
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
this.dispatchEvent(event);
|
|
173
|
+
return event.detail.promise;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
__decorateClass([
|
|
177
|
+
property2({ type: String })
|
|
178
|
+
], TestNavigationClass.prototype, "navigate", 2);
|
|
179
|
+
return TestNavigationClass;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
// src/lib/qti-test/core/mixins/test-view.mixin.ts
|
|
183
|
+
var TestViewMixin = (superClass) => {
|
|
184
|
+
class TestViewClass extends superClass {
|
|
185
|
+
constructor(...args) {
|
|
186
|
+
super(...args);
|
|
187
|
+
this.sessionContext = { ...this.sessionContext, view: "candidate" };
|
|
188
|
+
this.addEventListener("on-test-switch-view", (e) => {
|
|
189
|
+
this.sessionContext = { ...this.sessionContext, view: e.detail };
|
|
190
|
+
this._updateElementView();
|
|
191
|
+
});
|
|
192
|
+
this.addEventListener("qti-assessment-test-connected", () => {
|
|
193
|
+
this._updateElementView();
|
|
194
|
+
});
|
|
195
|
+
this.addEventListener("qti-assessment-item-connected", (e) => {
|
|
196
|
+
this._updateElementView();
|
|
197
|
+
this._setCorrectResponseVisibility(e.detail);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
willUpdate(changedProperties) {
|
|
201
|
+
super.willUpdate(changedProperties);
|
|
202
|
+
if (changedProperties.has("sessionContext")) {
|
|
203
|
+
this._updateElementView();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
// Method to handle view updates for elements based on the current context view
|
|
207
|
+
_updateElementView() {
|
|
208
|
+
if (this.testElement && this.testElement) {
|
|
209
|
+
const viewElements = Array.from(this.testElement.querySelectorAll("[view]"));
|
|
210
|
+
viewElements.forEach((element) => {
|
|
211
|
+
element.classList.toggle("show", element.getAttribute("view") === this.sessionContext.view);
|
|
212
|
+
});
|
|
213
|
+
const assessmentItem = this.testElement.querySelector(
|
|
214
|
+
`qti-assessment-item[identifier="${this.sessionContext.navItemId}"]`
|
|
215
|
+
);
|
|
216
|
+
if (assessmentItem) {
|
|
217
|
+
assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
// Event handler for connected QTI assessment items
|
|
222
|
+
_setCorrectResponseVisibility(assessmentItem) {
|
|
223
|
+
assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return TestViewClass;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
// src/lib/qti-test/core/test-base.ts
|
|
230
|
+
import { provide } from "@lit/context";
|
|
231
|
+
import { LitElement } from "lit";
|
|
232
|
+
import { state as state2 } from "lit/decorators.js";
|
|
233
|
+
var TestBase = class extends LitElement {
|
|
234
|
+
constructor() {
|
|
235
|
+
super();
|
|
236
|
+
this.testContext = { items: [], testOutcomeVariables: [] };
|
|
237
|
+
this.sessionContext = {};
|
|
238
|
+
/**
|
|
239
|
+
* Updates the variables of an assessment item in the test context.
|
|
240
|
+
* - Matches the assessment item with the corresponding test context item.
|
|
241
|
+
* - If the item is not found, logs a warning.
|
|
242
|
+
* - Updates variables in the test context if exactly one variable exists.
|
|
243
|
+
* - Otherwise, syncs the assessment item's variables with the test context.
|
|
244
|
+
*
|
|
245
|
+
* @param assessmentItem - The assessment item to update.
|
|
246
|
+
*/
|
|
247
|
+
this._updateItemInTestContext = (assessmentItem) => {
|
|
248
|
+
const { identifier, variables } = assessmentItem;
|
|
249
|
+
const itemContext = this.testContext.items.find((i) => i?.identifier === identifier);
|
|
250
|
+
if (!itemContext) {
|
|
251
|
+
console.warn(`Item IDs between assessment.xml and item.xml should match: ${identifier} is not found!`);
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
if (itemContext.variables?.length === 1) {
|
|
255
|
+
this._updateItemVariablesInTestContext(identifier, variables);
|
|
256
|
+
} else {
|
|
257
|
+
assessmentItem.variables = [...itemContext.variables || []];
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
this.addEventListener("qti-assessment-test-connected", (e) => {
|
|
261
|
+
if (this.testContext && this.testContext.items.length > 0) return;
|
|
262
|
+
this.testElement = e.detail;
|
|
263
|
+
const items = Array.from(this.testElement.querySelectorAll("qti-assessment-item-ref")).map((itemRef) => {
|
|
264
|
+
return {
|
|
265
|
+
href: itemRef.href,
|
|
266
|
+
identifier: itemRef.identifier,
|
|
267
|
+
category: itemRef.category,
|
|
268
|
+
variables: [
|
|
269
|
+
{
|
|
270
|
+
identifier: "completionStatus",
|
|
271
|
+
value: "not_attempted",
|
|
272
|
+
type: "outcome"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
};
|
|
276
|
+
});
|
|
277
|
+
this.testContext = { ...this.testContext, items };
|
|
278
|
+
});
|
|
279
|
+
this.addEventListener("qti-assessment-item-connected", (e) => {
|
|
280
|
+
this._updateItemInTestContext(e.detail);
|
|
281
|
+
});
|
|
282
|
+
this.addEventListener("qti-outcome-changed", (e) => {
|
|
283
|
+
const assessmentitem = e.composedPath()[0];
|
|
284
|
+
this._updateItemVariablesInTestContext(assessmentitem.identifier, assessmentitem.variables);
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
// get testContext(): TestContext {
|
|
288
|
+
// return this._testContext;
|
|
289
|
+
// }
|
|
290
|
+
// // /* restores the context by updating existing items and adding new items from the "contextToRestore" parameter into the "this._context.items" array. */
|
|
291
|
+
// set testContext(testContext: TestContext) {
|
|
292
|
+
// if (this._testContext.items.length > 0) {
|
|
293
|
+
// console.warn(
|
|
294
|
+
// 'testContext already set and can not be overwritten. Set the testContext before loading the assessment test'
|
|
295
|
+
// );
|
|
296
|
+
// return;
|
|
297
|
+
// }
|
|
298
|
+
// if (testContext === null || testContext === undefined) return;
|
|
299
|
+
// this._testContext = { ...testContext }; // Clone the context to avoid modifying the original object
|
|
300
|
+
// // // append the items that are not yet in the context and replace the ones that are
|
|
301
|
+
// testContext.items?.forEach(itemContext => {
|
|
302
|
+
// const existingItemContext = this._testContext.items.find(i => i.identifier === itemContext.identifier);
|
|
303
|
+
// if (existingItemContext) {
|
|
304
|
+
// existingItemContext.variables = itemContext.variables;
|
|
305
|
+
// } else {
|
|
306
|
+
// this._testContext.items.push(itemContext);
|
|
307
|
+
// }
|
|
308
|
+
// });
|
|
309
|
+
// }
|
|
310
|
+
_updateItemVariablesInTestContext(identifier, variables) {
|
|
311
|
+
this.testContext = {
|
|
312
|
+
...this.testContext,
|
|
313
|
+
// Spread existing test context properties
|
|
314
|
+
items: this.testContext.items.map((itemContext) => {
|
|
315
|
+
if (itemContext.identifier !== identifier) {
|
|
316
|
+
return itemContext;
|
|
317
|
+
}
|
|
318
|
+
return {
|
|
319
|
+
...itemContext,
|
|
320
|
+
// Keep other properties of the item context
|
|
321
|
+
variables: variables.map((variable) => {
|
|
322
|
+
const matchingVariable = itemContext.variables.find((v) => v.identifier === variable.identifier);
|
|
323
|
+
return matchingVariable ? { ...matchingVariable, ...variable } : variable;
|
|
324
|
+
})
|
|
325
|
+
};
|
|
326
|
+
})
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
__decorateClass([
|
|
331
|
+
state2(),
|
|
332
|
+
provide({ context: testContext })
|
|
333
|
+
], TestBase.prototype, "testContext", 2);
|
|
334
|
+
__decorateClass([
|
|
335
|
+
state2(),
|
|
336
|
+
provide({ context: sessionContext })
|
|
337
|
+
], TestBase.prototype, "sessionContext", 2);
|
|
338
|
+
|
|
339
|
+
// src/lib/qti-test/core/mixins/test-processing.mixin.ts
|
|
340
|
+
var TestProcessingMixin = (superClass) => {
|
|
341
|
+
class TestProcessingElement extends superClass {
|
|
342
|
+
constructor(...args) {
|
|
343
|
+
super(...args);
|
|
344
|
+
this.addEventListener("qti-register-variable", (e) => {
|
|
345
|
+
this.testContext = {
|
|
346
|
+
...this.testContext,
|
|
347
|
+
testOutcomeVariables: [...this.testContext.testOutcomeVariables || [], e.detail.variable]
|
|
348
|
+
};
|
|
349
|
+
e.stopPropagation();
|
|
350
|
+
});
|
|
351
|
+
this.addEventListener(
|
|
352
|
+
"qti-set-outcome-value",
|
|
353
|
+
(e) => {
|
|
354
|
+
const { outcomeIdentifier, value } = e.detail;
|
|
355
|
+
this.updateOutcomeVariable(outcomeIdentifier, value);
|
|
356
|
+
e.stopPropagation();
|
|
357
|
+
}
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
outcomeProcessing() {
|
|
361
|
+
const outcomeProcessor = this.querySelector("qti-outcome-processing");
|
|
362
|
+
if (!outcomeProcessor) return false;
|
|
363
|
+
outcomeProcessor?.process();
|
|
364
|
+
return true;
|
|
365
|
+
}
|
|
366
|
+
/* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
|
|
367
|
+
updateOutcomeVariable(identifier, value) {
|
|
368
|
+
const outcomeVariable = this.getOutcome(identifier);
|
|
369
|
+
if (!outcomeVariable) {
|
|
370
|
+
console.warn(`Can not set qti-outcome-identifier: ${identifier}, it is not available`);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
this.testContext = {
|
|
374
|
+
...this.testContext,
|
|
375
|
+
testOutcomeVariables: this.testContext.testOutcomeVariables?.map((v) => {
|
|
376
|
+
if (v.identifier !== identifier) {
|
|
377
|
+
return v;
|
|
378
|
+
}
|
|
379
|
+
return {
|
|
380
|
+
...v,
|
|
381
|
+
value: outcomeVariable.cardinality === "single" ? value : [...v.value, value]
|
|
382
|
+
};
|
|
383
|
+
})
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
getOutcome(identifier) {
|
|
387
|
+
return this.getVariable(identifier);
|
|
388
|
+
}
|
|
389
|
+
getVariable(identifier) {
|
|
390
|
+
return this.testContext.testOutcomeVariables?.find((v) => v.identifier === identifier) || null;
|
|
391
|
+
}
|
|
392
|
+
/* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
|
|
393
|
+
}
|
|
394
|
+
return TestProcessingElement;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
// src/lib/qti-test/core/qti-test.ts
|
|
398
|
+
var QtiTest = class extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestProcessingMixin(TestBase)))) {
|
|
399
|
+
// export class QtiTest extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestBase))) {
|
|
400
|
+
/**
|
|
401
|
+
* Renders the component's template.
|
|
402
|
+
* Provides a default `<slot>` for content projection.
|
|
403
|
+
*/
|
|
404
|
+
async connectedCallback() {
|
|
405
|
+
super.connectedCallback();
|
|
406
|
+
await this.updateComplete;
|
|
407
|
+
this.dispatchEvent(new CustomEvent("qti-test-connected", { detail: this }));
|
|
408
|
+
}
|
|
409
|
+
render() {
|
|
410
|
+
return html`<slot></slot>`;
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
QtiTest = __decorateClass([
|
|
414
|
+
customElement("qti-test")
|
|
415
|
+
], QtiTest);
|
|
416
|
+
|
|
417
|
+
// src/lib/qti-test/core/qti-assessment-test/qti-assessment-item-ref.ts
|
|
418
|
+
import { consume } from "@lit/context";
|
|
419
|
+
import { html as html2, LitElement as LitElement2 } from "lit";
|
|
420
|
+
import { property as property3 } from "lit/decorators.js";
|
|
421
|
+
var stringToBooleanConverter = {
|
|
422
|
+
fromAttribute(value) {
|
|
423
|
+
return value === "true";
|
|
424
|
+
},
|
|
425
|
+
toAttribute(value) {
|
|
426
|
+
return value ? "true" : "false";
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
var QtiAssessmentItemRef = class extends LitElement2 {
|
|
430
|
+
constructor() {
|
|
431
|
+
super(...arguments);
|
|
432
|
+
this.weigths = /* @__PURE__ */ new Map();
|
|
433
|
+
}
|
|
434
|
+
// the XMLDocument
|
|
435
|
+
createRenderRoot() {
|
|
436
|
+
return this;
|
|
437
|
+
}
|
|
438
|
+
get assessmentItem() {
|
|
439
|
+
return this.renderRoot?.querySelector("qti-assessment-item");
|
|
440
|
+
}
|
|
441
|
+
async connectedCallback() {
|
|
442
|
+
super.connectedCallback();
|
|
443
|
+
await this.updateComplete;
|
|
444
|
+
this.dispatchEvent(
|
|
445
|
+
new CustomEvent("qti-assessment-item-ref-connected", {
|
|
446
|
+
bubbles: true,
|
|
447
|
+
composed: true,
|
|
448
|
+
detail: { identifier: this.identifier, href: this.href, category: this.category }
|
|
449
|
+
})
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
render() {
|
|
453
|
+
return html2`${this.xmlDoc}`;
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
__decorateClass([
|
|
457
|
+
property3({ type: String })
|
|
458
|
+
], QtiAssessmentItemRef.prototype, "category", 2);
|
|
459
|
+
__decorateClass([
|
|
460
|
+
property3({ type: String })
|
|
461
|
+
], QtiAssessmentItemRef.prototype, "identifier", 2);
|
|
462
|
+
__decorateClass([
|
|
463
|
+
property3({ type: Boolean, converter: stringToBooleanConverter })
|
|
464
|
+
], QtiAssessmentItemRef.prototype, "required", 2);
|
|
465
|
+
__decorateClass([
|
|
466
|
+
property3({ type: Boolean, converter: stringToBooleanConverter })
|
|
467
|
+
], QtiAssessmentItemRef.prototype, "fixed", 2);
|
|
468
|
+
__decorateClass([
|
|
469
|
+
property3({ type: String })
|
|
470
|
+
], QtiAssessmentItemRef.prototype, "href", 2);
|
|
471
|
+
__decorateClass([
|
|
472
|
+
consume({ context: testContext, subscribe: true })
|
|
473
|
+
], QtiAssessmentItemRef.prototype, "_testContext", 2);
|
|
474
|
+
__decorateClass([
|
|
475
|
+
property3({ type: Object, attribute: false })
|
|
476
|
+
], QtiAssessmentItemRef.prototype, "xmlDoc", 2);
|
|
477
|
+
if (!customElements.get("qti-assessment-item-ref")) {
|
|
478
|
+
customElements.define("qti-assessment-item-ref", QtiAssessmentItemRef);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
// src/lib/qti-test/core/qti-assessment-test/qti-assessment-section.ts
|
|
482
|
+
import { consume as consume2 } from "@lit/context";
|
|
483
|
+
import { html as html3, LitElement as LitElement3 } from "lit";
|
|
484
|
+
import { property as property4 } from "lit/decorators.js";
|
|
485
|
+
var stringToBooleanConverter2 = {
|
|
486
|
+
fromAttribute(value) {
|
|
487
|
+
return value === "true";
|
|
488
|
+
},
|
|
489
|
+
toAttribute(value) {
|
|
490
|
+
return value ? "true" : "false";
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
var QtiAssessmentSection = class extends LitElement3 {
|
|
494
|
+
async connectedCallback() {
|
|
495
|
+
super.connectedCallback();
|
|
496
|
+
await this.updateComplete;
|
|
497
|
+
this.dispatchEvent(
|
|
498
|
+
new Event("qti-assessment-section-connected", {
|
|
499
|
+
bubbles: true,
|
|
500
|
+
composed: true
|
|
501
|
+
})
|
|
502
|
+
);
|
|
503
|
+
}
|
|
504
|
+
render() {
|
|
505
|
+
return html3`<slot name="qti-rubric-block"></slot><slot></slot>`;
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
__decorateClass([
|
|
509
|
+
property4({ type: String })
|
|
510
|
+
], QtiAssessmentSection.prototype, "identifier", 2);
|
|
511
|
+
__decorateClass([
|
|
512
|
+
property4({ type: String })
|
|
513
|
+
], QtiAssessmentSection.prototype, "required", 2);
|
|
514
|
+
__decorateClass([
|
|
515
|
+
property4({ type: Boolean, converter: stringToBooleanConverter2 })
|
|
516
|
+
], QtiAssessmentSection.prototype, "fixed", 2);
|
|
517
|
+
__decorateClass([
|
|
518
|
+
property4({ type: String })
|
|
519
|
+
], QtiAssessmentSection.prototype, "title", 2);
|
|
520
|
+
__decorateClass([
|
|
521
|
+
property4({ type: Boolean, converter: stringToBooleanConverter2 })
|
|
522
|
+
], QtiAssessmentSection.prototype, "visible", 2);
|
|
523
|
+
__decorateClass([
|
|
524
|
+
property4({ type: Boolean, converter: stringToBooleanConverter2, attribute: "keep-together" })
|
|
525
|
+
], QtiAssessmentSection.prototype, "keepTogether", 2);
|
|
526
|
+
__decorateClass([
|
|
527
|
+
consume2({ context: testContext, subscribe: true })
|
|
528
|
+
], QtiAssessmentSection.prototype, "_testContext", 2);
|
|
529
|
+
if (!customElements.get("qti-assessment-section")) {
|
|
530
|
+
customElements.define("qti-assessment-section", QtiAssessmentSection);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
// src/lib/qti-test/core/qti-assessment-test/qti-assessment-test.ts
|
|
534
|
+
import { consume as consume3 } from "@lit/context";
|
|
535
|
+
import { html as html4, LitElement as LitElement4 } from "lit";
|
|
536
|
+
import { customElement as customElement2, property as property5 } from "lit/decorators.js";
|
|
537
|
+
var QtiAssessmentTest = class extends LitElement4 {
|
|
538
|
+
async connectedCallback() {
|
|
539
|
+
super.connectedCallback();
|
|
540
|
+
await this.updateComplete;
|
|
541
|
+
this.dispatchEvent(
|
|
542
|
+
new CustomEvent("qti-assessment-test-connected", {
|
|
543
|
+
detail: this,
|
|
544
|
+
bubbles: true,
|
|
545
|
+
composed: true
|
|
546
|
+
})
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
render() {
|
|
550
|
+
return html4` <slot></slot>`;
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
__decorateClass([
|
|
554
|
+
property5({ type: String })
|
|
555
|
+
], QtiAssessmentTest.prototype, "identifier", 2);
|
|
556
|
+
__decorateClass([
|
|
557
|
+
property5({ type: String })
|
|
558
|
+
], QtiAssessmentTest.prototype, "title", 2);
|
|
559
|
+
__decorateClass([
|
|
560
|
+
consume3({ context: testContext, subscribe: true })
|
|
561
|
+
], QtiAssessmentTest.prototype, "_testContext", 2);
|
|
562
|
+
QtiAssessmentTest = __decorateClass([
|
|
563
|
+
customElement2("qti-assessment-test")
|
|
564
|
+
], QtiAssessmentTest);
|
|
565
|
+
|
|
566
|
+
// src/lib/qti-test/core/qti-assessment-test/qti-test-part.ts
|
|
567
|
+
import { html as html5, LitElement as LitElement5 } from "lit";
|
|
568
|
+
import { customElement as customElement3, property as property6 } from "lit/decorators.js";
|
|
569
|
+
var QtiTestPart = class extends LitElement5 {
|
|
570
|
+
constructor() {
|
|
571
|
+
super(...arguments);
|
|
572
|
+
this.identifier = "";
|
|
573
|
+
this.title = "";
|
|
574
|
+
this.class = "";
|
|
575
|
+
this.NavigationMode = "nonlinear";
|
|
576
|
+
this.submissionMode = "individual";
|
|
577
|
+
}
|
|
578
|
+
async connectedCallback() {
|
|
579
|
+
super.connectedCallback();
|
|
580
|
+
await this.updateComplete;
|
|
581
|
+
this.dispatchEvent(
|
|
582
|
+
new Event("qti-test-part-connected", {
|
|
583
|
+
bubbles: true,
|
|
584
|
+
composed: true
|
|
585
|
+
})
|
|
586
|
+
);
|
|
587
|
+
}
|
|
588
|
+
render() {
|
|
589
|
+
return html5` <slot></slot>`;
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
__decorateClass([
|
|
593
|
+
property6({ type: String })
|
|
594
|
+
], QtiTestPart.prototype, "identifier", 2);
|
|
595
|
+
__decorateClass([
|
|
596
|
+
property6({ type: String })
|
|
597
|
+
], QtiTestPart.prototype, "title", 2);
|
|
598
|
+
__decorateClass([
|
|
599
|
+
property6({ type: String })
|
|
600
|
+
], QtiTestPart.prototype, "class", 2);
|
|
601
|
+
__decorateClass([
|
|
602
|
+
property6({ type: String, attribute: "navigation-mode" })
|
|
603
|
+
], QtiTestPart.prototype, "NavigationMode", 2);
|
|
604
|
+
__decorateClass([
|
|
605
|
+
property6({ type: String, attribute: "submission-mode" })
|
|
606
|
+
], QtiTestPart.prototype, "submissionMode", 2);
|
|
607
|
+
QtiTestPart = __decorateClass([
|
|
608
|
+
customElement3("qti-test-part")
|
|
609
|
+
], QtiTestPart);
|
|
610
|
+
if (!customElements.get("qti-test-part")) {
|
|
611
|
+
customElements.define("qti-test-part", QtiTestPart);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export {
|
|
615
|
+
QtiTest,
|
|
616
|
+
QtiAssessmentItemRef,
|
|
617
|
+
QtiAssessmentSection,
|
|
618
|
+
QtiAssessmentTest,
|
|
619
|
+
QtiTestPart
|
|
620
|
+
};
|
|
621
|
+
//# sourceMappingURL=chunk-VPMLJM47.js.map
|