@citolab/qti-components 7.3.23 → 7.4.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.
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +5485 -1
- package/custom-elements.json +29837 -0
- package/dist/chunks/chunk-6K4ROGDD.js +364 -0
- package/dist/chunks/chunk-6K4ROGDD.js.map +1 -0
- package/dist/chunks/chunk-GUDRSXIP.js +189 -0
- package/dist/chunks/chunk-GUDRSXIP.js.map +1 -0
- package/dist/chunks/{chunk-WFUXZ4UT.js → chunk-JDY5GL7E.js} +13 -1
- package/dist/chunks/{chunk-WFUXZ4UT.js.map → chunk-JDY5GL7E.js.map} +1 -1
- package/dist/chunks/{chunk-LF6SO3JU.js → chunk-LN74Z5QM.js} +653 -450
- package/dist/chunks/chunk-LN74Z5QM.js.map +1 -0
- package/dist/chunks/{chunk-ELDMXTUQ.js → chunk-O5N4DCU6.js} +7 -2
- package/dist/chunks/chunk-O5N4DCU6.js.map +1 -0
- package/dist/chunks/chunk-TJ6ZOT7A.js +2235 -0
- package/dist/chunks/chunk-TJ6ZOT7A.js.map +1 -0
- package/dist/computed-item.context-DpK-sS0T.d.ts +19 -0
- package/dist/{exports/config.context.d.ts → config.context-CmQ9L62n.d.ts} +1 -4
- package/dist/custom-elements.json +29837 -0
- package/dist/index.d.ts +8 -39
- package/dist/index.js +34 -104
- package/{cdn/chunks/chunk-5TDBMEY5.js → dist/item.css} +7 -24
- package/dist/qti-assessment-item-D77dJ1Ot.d.ts +104 -0
- package/dist/qti-components/index.d.ts +1238 -19
- package/dist/qti-components/index.js +6 -14
- package/dist/qti-components-jsx.d.ts +4463 -0
- package/dist/qti-item/index.d.ts +113 -0
- package/dist/qti-item/index.js +16 -0
- package/dist/qti-loader/index.d.ts +2 -6
- package/dist/qti-loader/index.js +24 -5
- package/dist/qti-loader/index.js.map +1 -1
- package/dist/qti-test/index.d.ts +593 -0
- package/dist/qti-test/index.js +62 -0
- package/dist/qti-transformers/index.d.ts +38 -2
- package/dist/qti-transformers/index.js +1 -2
- package/dist/test.context-L609DNAz.d.ts +58 -0
- package/dist/variables-Vgyr6yyW.d.ts +58 -0
- package/dist/vscode.css-custom-data.json +11 -0
- package/dist/vscode.html-custom-data.json +1135 -0
- package/package.json +74 -116
- package/cdn/chunks/chunk-2BSPQRNR.js +0 -6
- package/cdn/chunks/chunk-3CVBBZDT.js +0 -17
- package/cdn/chunks/chunk-3IBGLVHA.js +0 -1
- package/cdn/chunks/chunk-3YQMAZEO.js +0 -29
- package/cdn/chunks/chunk-5UQLGV7F.js +0 -5
- package/cdn/chunks/chunk-5WLHU3FH.js +0 -8
- package/cdn/chunks/chunk-6SGFGN34.js +0 -8
- package/cdn/chunks/chunk-6XVY32RS.js +0 -1
- package/cdn/chunks/chunk-7ME56ODO.js +0 -1
- package/cdn/chunks/chunk-CZDMOYYF.js +0 -1
- package/cdn/chunks/chunk-DNBBQ7LY.js +0 -1
- package/cdn/chunks/chunk-DP5FVJRS.js +0 -21
- package/cdn/chunks/chunk-E6IOJ4MV.js +0 -23
- package/cdn/chunks/chunk-G76Y52EL.js +0 -1471
- package/cdn/chunks/chunk-HCXHHI6V.js +0 -18
- package/cdn/chunks/chunk-HDMF4QZO.js +0 -48
- package/cdn/chunks/chunk-HKWYQB5Z.js +0 -37
- package/cdn/chunks/chunk-J5P2GBPV.js +0 -1
- package/cdn/chunks/chunk-KWPDTFYH.js +0 -1
- package/cdn/chunks/chunk-LIUOA3YV.js +0 -1
- package/cdn/chunks/chunk-LO2NM3CE.js +0 -1
- package/cdn/chunks/chunk-MD33BNWM.js +0 -1
- package/cdn/chunks/chunk-MRQ46JRY.js +0 -8
- package/cdn/chunks/chunk-NJP4VZB3.js +0 -8
- package/cdn/chunks/chunk-O4RAJ3LM.js +0 -25
- package/cdn/chunks/chunk-OSLUHYFD.js +0 -8
- package/cdn/chunks/chunk-P6SSTAJ2.js +0 -1
- package/cdn/chunks/chunk-PP62N3C4.js +0 -8
- package/cdn/chunks/chunk-PU7OABT3.js +0 -1
- package/cdn/chunks/chunk-PUI3LIFH.js +0 -0
- package/cdn/chunks/chunk-QBAXWCYQ.js +0 -5
- package/cdn/chunks/chunk-QEFO63QX.js +0 -8
- package/cdn/chunks/chunk-QQCGUVEV.js +0 -1
- package/cdn/chunks/chunk-QQR6POPY.js +0 -1
- package/cdn/chunks/chunk-RGNFAPWY.js +0 -2
- package/cdn/chunks/chunk-S5QDLZ6J.js +0 -1
- package/cdn/chunks/chunk-SEM2PEP6.js +0 -5
- package/cdn/chunks/chunk-SVVO2SFS.js +0 -1
- package/cdn/chunks/chunk-TCHROQU3.js +0 -1
- package/cdn/chunks/chunk-UMDZKG6K.js +0 -1
- package/cdn/chunks/chunk-VEG7LKS3.js +0 -48
- package/cdn/chunks/chunk-WCCTDLQ4.js +0 -8
- package/cdn/chunks/chunk-X4FA36TC.js +0 -1
- package/cdn/chunks/chunk-XJ2CFTZP.js +0 -1
- package/cdn/chunks/chunk-XUJ7TXHW.js +0 -1
- package/cdn/chunks/chunk-YCBNF5QU.js +0 -17
- package/cdn/chunks/chunk-YHLQ2JQ2.js +0 -1
- package/cdn/chunks/chunk-ZPCQH3EY.js +0 -10
- package/cdn/exports/computed-item.context.js +0 -1
- package/cdn/exports/computed.context.js +0 -1
- package/cdn/exports/config.context.js +0 -1
- package/cdn/exports/expression-result.js +0 -0
- package/cdn/exports/interaction.interface.js +0 -0
- package/cdn/exports/interaction.js +0 -1
- package/cdn/exports/item.context.js +0 -1
- package/cdn/exports/qti-assessment-item.context.js +0 -1
- package/cdn/exports/qti-condition-expression.js +0 -1
- package/cdn/exports/qti-expression.js +0 -1
- package/cdn/exports/qti-test.js +0 -0
- package/cdn/exports/qti.context.js +0 -1
- package/cdn/exports/session.context.js +0 -1
- package/cdn/exports/test.context.js +0 -1
- package/cdn/exports/variables.js +0 -0
- package/cdn/qti-components/index.js +0 -1
- package/cdn/qti-item/components/item-container.js +0 -1
- package/cdn/qti-item/components/item-correct-response-mode.js +0 -10
- package/cdn/qti-item/components/item-show-candidate-correction.js +0 -8
- package/cdn/qti-item/components/item-show-correct-response.js +0 -1
- package/cdn/qti-item/components/print-item-variables.js +0 -1
- package/cdn/qti-item/components/styles.js +0 -1
- package/cdn/qti-item/core/index.js +0 -1
- package/cdn/qti-loader/index.js +0 -1
- package/cdn/qti-test/components/index.js +0 -1
- package/cdn/qti-test/components/styles.js +0 -1
- package/cdn/qti-test/components/test-check-item.js +0 -1
- package/cdn/qti-test/components/test-container.js +0 -1
- package/cdn/qti-test/components/test-end-attempt.js +0 -1
- package/cdn/qti-test/components/test-item-link.js +0 -1
- package/cdn/qti-test/components/test-navigation.js +0 -1
- package/cdn/qti-test/components/test-next.js +0 -1
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +0 -1
- package/cdn/qti-test/components/test-prev.js +0 -1
- package/cdn/qti-test/components/test-print-context.js +0 -1
- package/cdn/qti-test/components/test-print-item-variables.js +0 -1
- package/cdn/qti-test/components/test-scoring-buttons.js +0 -1
- package/cdn/qti-test/components/test-scoring-feedback.js +0 -1
- package/cdn/qti-test/components/test-section-buttons-stamp.js +0 -1
- package/cdn/qti-test/components/test-section-link.js +0 -1
- package/cdn/qti-test/components/test-show-correct-response.js +0 -1
- package/cdn/qti-test/components/test-stamp.js +0 -1
- package/cdn/qti-test/components/test-view-toggle.js +0 -1
- package/cdn/qti-test/components/test-view.js +0 -1
- package/cdn/qti-test/core/index.js +0 -1
- package/cdn/qti-transformers/index.js +0 -1
- package/dist/chunks/chunk-22IRJWWY.js +0 -10
- package/dist/chunks/chunk-22IRJWWY.js.map +0 -1
- package/dist/chunks/chunk-36G5MQKR.js +0 -85
- package/dist/chunks/chunk-36G5MQKR.js.map +0 -1
- package/dist/chunks/chunk-4OGJBG35.js +0 -8
- package/dist/chunks/chunk-4OGJBG35.js.map +0 -1
- package/dist/chunks/chunk-5KCXO2RP.js +0 -36
- package/dist/chunks/chunk-5KCXO2RP.js.map +0 -1
- package/dist/chunks/chunk-5ZHHNEDA.js +0 -30
- package/dist/chunks/chunk-5ZHHNEDA.js.map +0 -1
- package/dist/chunks/chunk-7K44TDQO.js +0 -91
- package/dist/chunks/chunk-7K44TDQO.js.map +0 -1
- package/dist/chunks/chunk-7OMJMXHK.js +0 -50
- package/dist/chunks/chunk-7OMJMXHK.js.map +0 -1
- package/dist/chunks/chunk-AZIKAG7K.js +0 -8
- package/dist/chunks/chunk-AZIKAG7K.js.map +0 -1
- package/dist/chunks/chunk-BLBSZDQ4.js +0 -52
- package/dist/chunks/chunk-BLBSZDQ4.js.map +0 -1
- package/dist/chunks/chunk-CJADUWEC.js +0 -10
- package/dist/chunks/chunk-CJADUWEC.js.map +0 -1
- package/dist/chunks/chunk-CP34TICQ.js +0 -45
- package/dist/chunks/chunk-CP34TICQ.js.map +0 -1
- package/dist/chunks/chunk-CTESMSQO.js +0 -56
- package/dist/chunks/chunk-CTESMSQO.js.map +0 -1
- package/dist/chunks/chunk-DZAMXOSC.js +0 -30
- package/dist/chunks/chunk-DZAMXOSC.js.map +0 -1
- package/dist/chunks/chunk-E6V3JHVT.js +0 -31
- package/dist/chunks/chunk-E6V3JHVT.js.map +0 -1
- package/dist/chunks/chunk-EJZQSOHU.js +0 -85
- package/dist/chunks/chunk-EJZQSOHU.js.map +0 -1
- package/dist/chunks/chunk-ELDMXTUQ.js.map +0 -1
- package/dist/chunks/chunk-EMVOKXSA.js +0 -84
- package/dist/chunks/chunk-EMVOKXSA.js.map +0 -1
- package/dist/chunks/chunk-ERYHQVOT.js +0 -8
- package/dist/chunks/chunk-ERYHQVOT.js.map +0 -1
- package/dist/chunks/chunk-ETLOKJAG.js +0 -94
- package/dist/chunks/chunk-ETLOKJAG.js.map +0 -1
- package/dist/chunks/chunk-FL72PF4D.js +0 -19
- package/dist/chunks/chunk-FL72PF4D.js.map +0 -1
- package/dist/chunks/chunk-GAHXUFMQ.js +0 -93
- package/dist/chunks/chunk-GAHXUFMQ.js.map +0 -1
- package/dist/chunks/chunk-H2JE6IVU.js +0 -15
- package/dist/chunks/chunk-H2JE6IVU.js.map +0 -1
- package/dist/chunks/chunk-H6KHXSIO.js +0 -8
- package/dist/chunks/chunk-H6KHXSIO.js.map +0 -1
- package/dist/chunks/chunk-HFAUM56X.js +0 -208
- package/dist/chunks/chunk-HFAUM56X.js.map +0 -1
- package/dist/chunks/chunk-JQ6HWGRY.js +0 -22
- package/dist/chunks/chunk-JQ6HWGRY.js.map +0 -1
- package/dist/chunks/chunk-KG5Z2CKO.js +0 -86
- package/dist/chunks/chunk-KG5Z2CKO.js.map +0 -1
- package/dist/chunks/chunk-KSXNC564.js +0 -43
- package/dist/chunks/chunk-KSXNC564.js.map +0 -1
- package/dist/chunks/chunk-LF6SO3JU.js.map +0 -1
- package/dist/chunks/chunk-NJNQOQUU.js +0 -8
- package/dist/chunks/chunk-NJNQOQUU.js.map +0 -1
- package/dist/chunks/chunk-ODHS7HDB.js +0 -94
- package/dist/chunks/chunk-ODHS7HDB.js.map +0 -1
- package/dist/chunks/chunk-QCB6P7DH.js +0 -146
- package/dist/chunks/chunk-QCB6P7DH.js.map +0 -1
- package/dist/chunks/chunk-QU7KR7VX.js +0 -367
- package/dist/chunks/chunk-QU7KR7VX.js.map +0 -1
- package/dist/chunks/chunk-TU6COU44.js +0 -82
- package/dist/chunks/chunk-TU6COU44.js.map +0 -1
- package/dist/chunks/chunk-TUKEQ36K.js +0 -60
- package/dist/chunks/chunk-TUKEQ36K.js.map +0 -1
- package/dist/chunks/chunk-TWYN56XO.js +0 -92
- package/dist/chunks/chunk-TWYN56XO.js.map +0 -1
- package/dist/chunks/chunk-UHQVQBCL.js +0 -89
- package/dist/chunks/chunk-UHQVQBCL.js.map +0 -1
- package/dist/chunks/chunk-WFFIUFJJ.js +0 -28
- package/dist/chunks/chunk-WFFIUFJJ.js.map +0 -1
- package/dist/chunks/chunk-WN6TJQI2.js +0 -103
- package/dist/chunks/chunk-WN6TJQI2.js.map +0 -1
- package/dist/chunks/chunk-WPEFNKMC.js +0 -923
- package/dist/chunks/chunk-WPEFNKMC.js.map +0 -1
- package/dist/chunks/chunk-YPMZLHGG.js +0 -52
- package/dist/chunks/chunk-YPMZLHGG.js.map +0 -1
- package/dist/chunks/chunk-YWEWSQJR.js +0 -40
- package/dist/chunks/chunk-YWEWSQJR.js.map +0 -1
- package/dist/chunks/chunk-ZGSNDSK3.js +0 -1
- package/dist/chunks/chunk-ZGSNDSK3.js.map +0 -1
- package/dist/exports/computed-item.context.d.ts +0 -29
- package/dist/exports/computed-item.context.js +0 -8
- package/dist/exports/computed-item.context.js.map +0 -1
- package/dist/exports/computed.context.d.ts +0 -42
- package/dist/exports/computed.context.js +0 -8
- package/dist/exports/computed.context.js.map +0 -1
- package/dist/exports/config.context.js +0 -8
- package/dist/exports/config.context.js.map +0 -1
- package/dist/exports/expression-result.d.ts +0 -19
- package/dist/exports/expression-result.js +0 -1
- package/dist/exports/expression-result.js.map +0 -1
- package/dist/exports/interaction.d.ts +0 -8
- package/dist/exports/interaction.interface.d.ts +0 -13
- package/dist/exports/interaction.interface.js +0 -1
- package/dist/exports/interaction.interface.js.map +0 -1
- package/dist/exports/interaction.js +0 -12
- package/dist/exports/interaction.js.map +0 -1
- package/dist/exports/item.context.d.ts +0 -8
- package/dist/exports/item.context.js +0 -8
- package/dist/exports/item.context.js.map +0 -1
- package/dist/exports/qti-assessment-item.context.d.ts +0 -14
- package/dist/exports/qti-assessment-item.context.js +0 -8
- package/dist/exports/qti-assessment-item.context.js.map +0 -1
- package/dist/exports/qti-condition-expression.d.ts +0 -15
- package/dist/exports/qti-condition-expression.js +0 -11
- package/dist/exports/qti-condition-expression.js.map +0 -1
- package/dist/exports/qti-expression.d.ts +0 -8
- package/dist/exports/qti-expression.js +0 -10
- package/dist/exports/qti-expression.js.map +0 -1
- package/dist/exports/qti-test.d.ts +0 -40
- package/dist/exports/qti-test.js +0 -1
- package/dist/exports/qti-test.js.map +0 -1
- package/dist/exports/qti.context.d.ts +0 -14
- package/dist/exports/qti.context.js +0 -8
- package/dist/exports/qti.context.js.map +0 -1
- package/dist/exports/session.context.d.ts +0 -26
- package/dist/exports/session.context.js +0 -10
- package/dist/exports/session.context.js.map +0 -1
- package/dist/exports/test.context.d.ts +0 -21
- package/dist/exports/test.context.js +0 -10
- package/dist/exports/test.context.js.map +0 -1
- package/dist/exports/variables.d.ts +0 -8
- package/dist/exports/variables.js +0 -1
- package/dist/exports/variables.js.map +0 -1
- package/dist/qti-item/components/item-container.d.ts +0 -40
- package/dist/qti-item/components/item-container.js +0 -11
- package/dist/qti-item/components/item-container.js.map +0 -1
- package/dist/qti-item/components/item-correct-response-mode.d.ts +0 -17
- package/dist/qti-item/components/item-correct-response-mode.js +0 -62
- package/dist/qti-item/components/item-correct-response-mode.js.map +0 -1
- package/dist/qti-item/components/item-show-candidate-correction.d.ts +0 -34
- package/dist/qti-item/components/item-show-candidate-correction.js +0 -88
- package/dist/qti-item/components/item-show-candidate-correction.js.map +0 -1
- package/dist/qti-item/components/item-show-correct-response.d.ts +0 -33
- package/dist/qti-item/components/item-show-correct-response.js +0 -10
- package/dist/qti-item/components/item-show-correct-response.js.map +0 -1
- package/dist/qti-item/components/print-item-variables.d.ts +0 -23
- package/dist/qti-item/components/print-item-variables.js +0 -9
- package/dist/qti-item/components/print-item-variables.js.map +0 -1
- package/dist/qti-item/components/styles.d.ts +0 -8
- package/dist/qti-item/components/styles.js +0 -14
- package/dist/qti-item/components/styles.js.map +0 -1
- package/dist/qti-item/core/index.d.ts +0 -51
- package/dist/qti-item/core/index.js +0 -26
- package/dist/qti-response-declaration-DKr08ANy.d.ts +0 -1397
- package/dist/qti-test/components/index.d.ts +0 -33
- package/dist/qti-test/components/index.js +0 -87
- package/dist/qti-test/components/styles.d.ts +0 -8
- package/dist/qti-test/components/styles.js +0 -14
- package/dist/qti-test/components/styles.js.map +0 -1
- package/dist/qti-test/components/test-check-item.d.ts +0 -16
- package/dist/qti-test/components/test-check-item.js +0 -9
- package/dist/qti-test/components/test-check-item.js.map +0 -1
- package/dist/qti-test/components/test-container.d.ts +0 -39
- package/dist/qti-test/components/test-container.js +0 -11
- package/dist/qti-test/components/test-container.js.map +0 -1
- package/dist/qti-test/components/test-end-attempt.d.ts +0 -16
- package/dist/qti-test/components/test-end-attempt.js +0 -9
- package/dist/qti-test/components/test-end-attempt.js.map +0 -1
- package/dist/qti-test/components/test-item-link.d.ts +0 -18
- package/dist/qti-test/components/test-item-link.js +0 -9
- package/dist/qti-test/components/test-item-link.js.map +0 -1
- package/dist/qti-test/components/test-navigation.d.ts +0 -73
- package/dist/qti-test/components/test-navigation.js +0 -13
- package/dist/qti-test/components/test-navigation.js.map +0 -1
- package/dist/qti-test/components/test-next.d.ts +0 -48
- package/dist/qti-test/components/test-next.js +0 -12
- package/dist/qti-test/components/test-next.js.map +0 -1
- package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +0 -23
- package/dist/qti-test/components/test-paging-buttons-stamp.js +0 -9
- package/dist/qti-test/components/test-paging-buttons-stamp.js.map +0 -1
- package/dist/qti-test/components/test-prev.d.ts +0 -46
- package/dist/qti-test/components/test-prev.js +0 -12
- package/dist/qti-test/components/test-prev.js.map +0 -1
- package/dist/qti-test/components/test-print-context.d.ts +0 -25
- package/dist/qti-test/components/test-print-context.js +0 -9
- package/dist/qti-test/components/test-print-context.js.map +0 -1
- package/dist/qti-test/components/test-print-item-variables.d.ts +0 -27
- package/dist/qti-test/components/test-print-item-variables.js +0 -9
- package/dist/qti-test/components/test-print-item-variables.js.map +0 -1
- package/dist/qti-test/components/test-scoring-buttons.d.ts +0 -32
- package/dist/qti-test/components/test-scoring-buttons.js +0 -9
- package/dist/qti-test/components/test-scoring-buttons.js.map +0 -1
- package/dist/qti-test/components/test-scoring-feedback.d.ts +0 -27
- package/dist/qti-test/components/test-scoring-feedback.js +0 -9
- package/dist/qti-test/components/test-scoring-feedback.js.map +0 -1
- package/dist/qti-test/components/test-section-buttons-stamp.d.ts +0 -23
- package/dist/qti-test/components/test-section-buttons-stamp.js +0 -9
- package/dist/qti-test/components/test-section-buttons-stamp.js.map +0 -1
- package/dist/qti-test/components/test-section-link.d.ts +0 -18
- package/dist/qti-test/components/test-section-link.js +0 -9
- package/dist/qti-test/components/test-section-link.js.map +0 -1
- package/dist/qti-test/components/test-show-correct-response.d.ts +0 -39
- package/dist/qti-test/components/test-show-correct-response.js +0 -10
- package/dist/qti-test/components/test-show-correct-response.js.map +0 -1
- package/dist/qti-test/components/test-stamp.d.ts +0 -31
- package/dist/qti-test/components/test-stamp.js +0 -9
- package/dist/qti-test/components/test-stamp.js.map +0 -1
- package/dist/qti-test/components/test-view-toggle.d.ts +0 -19
- package/dist/qti-test/components/test-view-toggle.js +0 -9
- package/dist/qti-test/components/test-view-toggle.js.map +0 -1
- package/dist/qti-test/components/test-view.d.ts +0 -24
- package/dist/qti-test/components/test-view.js +0 -10
- package/dist/qti-test/components/test-view.js.map +0 -1
- package/dist/qti-test/core/index.d.ts +0 -105
- package/dist/qti-test/core/index.js +0 -36
- package/dist/qti-test/core/index.js.map +0 -1
- package/dist/qti-test-feedback-CZsbp6z4.d.ts +0 -91
- package/dist/qti-transform-item-C9WtMeDR.d.ts +0 -39
- /package/dist/qti-item/{core/index.js.map → index.js.map} +0 -0
- /package/dist/qti-test/{components/index.js.map → index.js.map} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type QtiContextType = {
|
|
2
|
-
testIdentifier: string;
|
|
3
|
-
candidateIdentifier: string;
|
|
4
|
-
environmentIdentifier: string;
|
|
5
|
-
[key: string]: string | string[];
|
|
6
|
-
};
|
|
7
|
-
interface QtiContext {
|
|
8
|
-
QTI_CONTEXT: QtiContextType;
|
|
9
|
-
}
|
|
10
|
-
declare const qtiContext: {
|
|
11
|
-
__context__: Readonly<QtiContext>;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { type QtiContext, type QtiContextType, qtiContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { V as View } from '../qti-test-feedback-CZsbp6z4.js';
|
|
2
|
-
import '../qti-response-declaration-DKr08ANy.js';
|
|
3
|
-
import 'lit-html';
|
|
4
|
-
import 'lit';
|
|
5
|
-
import './expression-result.js';
|
|
6
|
-
import './interaction.interface.js';
|
|
7
|
-
import './config.context.js';
|
|
8
|
-
import 'lit-html/directives/ref.js';
|
|
9
|
-
import './qti.context.js';
|
|
10
|
-
import '@heximal/templates';
|
|
11
|
-
import './test.context.js';
|
|
12
|
-
|
|
13
|
-
interface SessionContext {
|
|
14
|
-
navPartId?: string | null;
|
|
15
|
-
navSectionId?: string | null;
|
|
16
|
-
navItemRefId?: string | null;
|
|
17
|
-
navItemLoading?: boolean;
|
|
18
|
-
navTestLoading?: boolean;
|
|
19
|
-
view?: View;
|
|
20
|
-
}
|
|
21
|
-
declare const INITIAL_SESSION_CONTEXT: Readonly<SessionContext>;
|
|
22
|
-
declare const sessionContext: {
|
|
23
|
-
__context__: Readonly<SessionContext>;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { INITIAL_SESSION_CONTEXT, type SessionContext, sessionContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { a3 as ItemContext, a5 as VariableDeclaration } from '../qti-response-declaration-DKr08ANy.js';
|
|
2
|
-
import 'lit-html';
|
|
3
|
-
import 'lit';
|
|
4
|
-
import './expression-result.js';
|
|
5
|
-
import './interaction.interface.js';
|
|
6
|
-
import './config.context.js';
|
|
7
|
-
import 'lit-html/directives/ref.js';
|
|
8
|
-
import './qti.context.js';
|
|
9
|
-
|
|
10
|
-
interface TestContext {
|
|
11
|
-
items: (ItemContext & {
|
|
12
|
-
category?: string;
|
|
13
|
-
})[];
|
|
14
|
-
testOutcomeVariables?: VariableDeclaration<string | string[] | null>[];
|
|
15
|
-
}
|
|
16
|
-
declare const INITIAL_TEST_CONTEXT: Readonly<TestContext>;
|
|
17
|
-
declare const testContext: {
|
|
18
|
-
__context__: Readonly<TestContext>;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { INITIAL_TEST_CONTEXT, type TestContext, testContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { a7 as OutcomeVariable, ab as ResponseVariable, ac as TemplateVariable, a5 as VariableDeclaration, a6 as VariableValue } from '../qti-response-declaration-DKr08ANy.js';
|
|
2
|
-
import './expression-result.js';
|
|
3
|
-
import 'lit-html';
|
|
4
|
-
import 'lit';
|
|
5
|
-
import './interaction.interface.js';
|
|
6
|
-
import './config.context.js';
|
|
7
|
-
import 'lit-html/directives/ref.js';
|
|
8
|
-
import './qti.context.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=variables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import { LitElement } from 'lit';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* `<item-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
6
|
-
* The `qti-assessment-item` will be placed inside the shadow DOM of this element.
|
|
7
|
-
* The element loads the item from the provided URL and renders it inside the shadow DOM.
|
|
8
|
-
*
|
|
9
|
-
* ### Styling
|
|
10
|
-
* Add a class to the element for styling.
|
|
11
|
-
*
|
|
12
|
-
* ```html
|
|
13
|
-
* <qti-item>
|
|
14
|
-
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
15
|
-
* </qti-item>
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
declare class ItemContainer extends LitElement {
|
|
19
|
-
/** URL of the item to load */
|
|
20
|
-
itemURL: string;
|
|
21
|
-
/** A parsed HTML document */
|
|
22
|
-
itemDoc: DocumentFragment;
|
|
23
|
-
/** The raw XML string */
|
|
24
|
-
itemXML: string;
|
|
25
|
-
/** Template content if provided */
|
|
26
|
-
private templateContent;
|
|
27
|
-
protected handleItemURLChange(): Promise<void>;
|
|
28
|
-
protected handleItemXMLChange(): void;
|
|
29
|
-
connectedCallback(): Promise<void>;
|
|
30
|
-
private initializeTemplateContent;
|
|
31
|
-
private applyStyles;
|
|
32
|
-
render(): lit_html.TemplateResult<1>;
|
|
33
|
-
}
|
|
34
|
-
declare global {
|
|
35
|
-
interface HTMLElementTagNameMap {
|
|
36
|
-
'item-container': ItemContainer;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export { ItemContainer };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ItemContainer
|
|
3
|
-
} from "../../chunks/chunk-ETLOKJAG.js";
|
|
4
|
-
import "../../chunks/chunk-LSEB52SP.js";
|
|
5
|
-
import "../../chunks/chunk-ELDMXTUQ.js";
|
|
6
|
-
import "../../chunks/chunk-WFUXZ4UT.js";
|
|
7
|
-
import "../../chunks/chunk-H2JE6IVU.js";
|
|
8
|
-
export {
|
|
9
|
-
ItemContainer
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=item-container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import { LitElement } from 'lit';
|
|
3
|
-
|
|
4
|
-
declare class ItemCorrectResponseMode extends LitElement {
|
|
5
|
-
private itemContext;
|
|
6
|
-
label: string;
|
|
7
|
-
private _options;
|
|
8
|
-
private _switchMode;
|
|
9
|
-
render(): lit_html.TemplateResult<1>;
|
|
10
|
-
}
|
|
11
|
-
declare global {
|
|
12
|
-
interface HTMLElementTagNameMap {
|
|
13
|
-
'item-correct-response-mode': ItemCorrectResponseMode;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { ItemCorrectResponseMode };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
configContext
|
|
3
|
-
} from "../../chunks/chunk-ERYHQVOT.js";
|
|
4
|
-
import {
|
|
5
|
-
__decorateClass
|
|
6
|
-
} from "../../chunks/chunk-H2JE6IVU.js";
|
|
7
|
-
|
|
8
|
-
// src/lib/qti-item/components/item-correct-response-mode.ts
|
|
9
|
-
import { html, LitElement } from "lit";
|
|
10
|
-
import { customElement, property, state } from "lit/decorators.js";
|
|
11
|
-
import { consume } from "@lit/context";
|
|
12
|
-
var ItemCorrectResponseMode = class extends LitElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.label = "Correct response mode";
|
|
16
|
-
this._options = {
|
|
17
|
-
internal: "Internal",
|
|
18
|
-
full: "Full (copy)"
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
_switchMode(view) {
|
|
22
|
-
this.dispatchEvent(
|
|
23
|
-
new CustomEvent("item-switch-correct-response-mode", {
|
|
24
|
-
detail: view,
|
|
25
|
-
bubbles: true
|
|
26
|
-
})
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
return html`
|
|
31
|
-
<label part="label" for="modeSelect">${this.label}</label>
|
|
32
|
-
<select
|
|
33
|
-
part="select"
|
|
34
|
-
id="modeSelect"
|
|
35
|
-
@change=${(e) => {
|
|
36
|
-
const el = e.target;
|
|
37
|
-
this._switchMode(el.value);
|
|
38
|
-
}}
|
|
39
|
-
>
|
|
40
|
-
${Object.keys(this._options).map(
|
|
41
|
-
(value) => html`<option value="${value}" ?selected=${value === this.itemContext?.correctResponseMode}>${this._options[value]}</option>`
|
|
42
|
-
)}
|
|
43
|
-
</select>
|
|
44
|
-
`;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
__decorateClass([
|
|
48
|
-
consume({ context: configContext, subscribe: true })
|
|
49
|
-
], ItemCorrectResponseMode.prototype, "itemContext", 2);
|
|
50
|
-
__decorateClass([
|
|
51
|
-
property({ type: String })
|
|
52
|
-
], ItemCorrectResponseMode.prototype, "label", 2);
|
|
53
|
-
__decorateClass([
|
|
54
|
-
state()
|
|
55
|
-
], ItemCorrectResponseMode.prototype, "_options", 2);
|
|
56
|
-
ItemCorrectResponseMode = __decorateClass([
|
|
57
|
-
customElement("item-correct-response-mode")
|
|
58
|
-
], ItemCorrectResponseMode);
|
|
59
|
-
export {
|
|
60
|
-
ItemCorrectResponseMode
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=item-correct-response-mode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/qti-item/components/item-correct-response-mode.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { consume } from '@lit/context';\n\nimport { configContext } from '../../exports/config.context.ts';\n\nimport type { ConfigContext, CorrectResponseMode } from '../../exports/config.context.ts';\n\n@customElement('item-correct-response-mode')\nexport class ItemCorrectResponseMode extends LitElement {\n @consume({ context: configContext, subscribe: true })\n private itemContext: ConfigContext;\n\n @property({ type: String })\n label = 'Correct response mode';\n\n @state()\n private _options = {\n internal: 'Internal',\n full: 'Full (copy)'\n };\n\n private _switchMode(view: CorrectResponseMode) {\n this.dispatchEvent(\n new CustomEvent('item-switch-correct-response-mode', {\n detail: view,\n bubbles: true\n })\n );\n }\n\n render() {\n return html`\n <label part=\"label\" for=\"modeSelect\">${this.label}</label>\n <select\n part=\"select\"\n id=\"modeSelect\"\n @change=${(e: Event) => {\n const el = e.target as HTMLSelectElement;\n this._switchMode(el.value as CorrectResponseMode);\n }}\n >\n ${Object.keys(this._options).map(\n value => html`<option value=\"${value}\" ?selected=${value === this.itemContext?.correctResponseMode}>${this._options[value]}</option>`\n )}\n </select>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'item-correct-response-mode': ItemCorrectResponseMode;\n }\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,MAAM,kBAAkB;AACjC,SAAS,eAAe,UAAU,aAAa;AAC/C,SAAS,eAAe;AAOjB,IAAM,0BAAN,cAAsC,WAAW;AAAA,EAAjD;AAAA;AAKL,iBAAQ;AAGR,SAAQ,WAAW;AAAA,MACjB,UAAU;AAAA,MACV,MAAM;AAAA,IACR;AAAA;AAAA,EAEQ,YAAY,MAA2B;AAC7C,SAAK;AAAA,MACH,IAAI,YAAY,qCAAqC;AAAA,QACnD,QAAQ;AAAA,QACR,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,6CACkC,KAAK,KAAK;AAAA;AAAA;AAAA;AAAA,kBAIrC,CAAC,MAAa;AACtB,YAAM,KAAK,EAAE;AACb,WAAK,YAAY,GAAG,KAA4B;AAAA,IAClD,CAAC;AAAA;AAAA,UAEC,OAAO,KAAK,KAAK,QAAQ,EAAE;AAAA,MAC3B,WAAS,sBAAsB,KAAK,eAAe,UAAU,KAAK,aAAa,mBAAmB,IAAI,KAAK,SAAS,KAAK,CAAC;AAAA,IAC5H,CAAC;AAAA;AAAA;AAAA,EAGP;AACF;AArCU;AAAA,EADP,QAAQ,EAAE,SAAS,eAAe,WAAW,KAAK,CAAC;AAAA,GADzC,wBAEH;AAGR;AAAA,EADC,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAJf,wBAKX;AAGQ;AAAA,EADP,MAAM;AAAA,GAPI,wBAQH;AARG,0BAAN;AAAA,EADN,cAAc,4BAA4B;AAAA,GAC9B;","names":[]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
4
|
-
import { ComputedItemContext } from '../../exports/computed-item.context.js';
|
|
5
|
-
import '../../qti-response-declaration-DKr08ANy.js';
|
|
6
|
-
import '../../exports/expression-result.js';
|
|
7
|
-
import '../../exports/interaction.interface.js';
|
|
8
|
-
import '../../exports/config.context.js';
|
|
9
|
-
import 'lit-html/directives/ref.js';
|
|
10
|
-
import '../../exports/qti.context.js';
|
|
11
|
-
|
|
12
|
-
declare class ItemShowCandidateCorrection extends LitElement {
|
|
13
|
-
computedContext?: ComputedItemContext;
|
|
14
|
-
static styles: lit.CSSResult;
|
|
15
|
-
shown: boolean;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
showCandidateCorrectionText: string;
|
|
18
|
-
hideCandidateCorrectionText: string;
|
|
19
|
-
noCorrectResponseText: string;
|
|
20
|
-
private _hasCorrectResponse;
|
|
21
|
-
private _previousActiveItem;
|
|
22
|
-
constructor();
|
|
23
|
-
updated(): void;
|
|
24
|
-
private _toggleState;
|
|
25
|
-
private _getDisplayedText;
|
|
26
|
-
render(): lit_html.TemplateResult<1>;
|
|
27
|
-
}
|
|
28
|
-
declare global {
|
|
29
|
-
interface HTMLElementTagNameMap {
|
|
30
|
-
'item-show-candidate-correction': ItemShowCandidateCorrection;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { ItemShowCandidateCorrection };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
btn,
|
|
3
|
-
dis
|
|
4
|
-
} from "../../chunks/chunk-DZAMXOSC.js";
|
|
5
|
-
import {
|
|
6
|
-
computedItemContext
|
|
7
|
-
} from "../../chunks/chunk-4OGJBG35.js";
|
|
8
|
-
import {
|
|
9
|
-
__decorateClass
|
|
10
|
-
} from "../../chunks/chunk-H2JE6IVU.js";
|
|
11
|
-
|
|
12
|
-
// src/lib/qti-item/components/item-show-candidate-correction.ts
|
|
13
|
-
import { css, html, LitElement } from "lit";
|
|
14
|
-
import { customElement, property } from "lit/decorators.js";
|
|
15
|
-
import { consume } from "@lit/context";
|
|
16
|
-
var ItemShowCandidateCorrection = class extends LitElement {
|
|
17
|
-
// Store previous active item reference
|
|
18
|
-
constructor() {
|
|
19
|
-
super();
|
|
20
|
-
this.shown = false;
|
|
21
|
-
this.disabled = false;
|
|
22
|
-
this.showCandidateCorrectionText = "Show candidate correction";
|
|
23
|
-
this.hideCandidateCorrectionText = "Hide candidate correction";
|
|
24
|
-
this.noCorrectResponseText = "No correct response specified";
|
|
25
|
-
this._hasCorrectResponse = false;
|
|
26
|
-
// correct response is removed on certain point
|
|
27
|
-
this._previousActiveItem = "";
|
|
28
|
-
}
|
|
29
|
-
updated() {
|
|
30
|
-
if (!this._hasCorrectResponse || this._previousActiveItem !== this.computedContext?.identifier) {
|
|
31
|
-
this._previousActiveItem = this.computedContext?.identifier;
|
|
32
|
-
const containsCorrectResponse = !!this.computedContext?.variables.some((v) => v["correctResponse"]);
|
|
33
|
-
const containsMapping = !!this.computedContext?.variables.some((v) => {
|
|
34
|
-
return v["mapping"]?.mapEntries?.length > 0 || v["areaMapping"]?.areaMapEntries?.length > 0;
|
|
35
|
-
});
|
|
36
|
-
this._hasCorrectResponse = containsCorrectResponse || containsMapping;
|
|
37
|
-
}
|
|
38
|
-
this.disabled = !this._hasCorrectResponse;
|
|
39
|
-
}
|
|
40
|
-
_toggleState() {
|
|
41
|
-
if (this.disabled) return;
|
|
42
|
-
this.dispatchEvent(
|
|
43
|
-
new CustomEvent("item-show-candidate-correction", {
|
|
44
|
-
detail: !this.shown,
|
|
45
|
-
bubbles: true
|
|
46
|
-
})
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
_getDisplayedText() {
|
|
50
|
-
return this.disabled ? this.noCorrectResponseText : this.shown ? this.hideCandidateCorrectionText : this.showCandidateCorrectionText;
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
return html` <div @click="${this._toggleState}">${this._getDisplayedText()}</div> `;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
ItemShowCandidateCorrection.styles = css`
|
|
57
|
-
:host {
|
|
58
|
-
${btn};
|
|
59
|
-
}
|
|
60
|
-
:host([disabled]) {
|
|
61
|
-
${dis};
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
__decorateClass([
|
|
65
|
-
consume({ context: computedItemContext, subscribe: true })
|
|
66
|
-
], ItemShowCandidateCorrection.prototype, "computedContext", 2);
|
|
67
|
-
__decorateClass([
|
|
68
|
-
property({ type: Boolean, reflect: true })
|
|
69
|
-
], ItemShowCandidateCorrection.prototype, "shown", 2);
|
|
70
|
-
__decorateClass([
|
|
71
|
-
property({ type: Boolean, reflect: true })
|
|
72
|
-
], ItemShowCandidateCorrection.prototype, "disabled", 2);
|
|
73
|
-
__decorateClass([
|
|
74
|
-
property({ type: String })
|
|
75
|
-
], ItemShowCandidateCorrection.prototype, "showCandidateCorrectionText", 2);
|
|
76
|
-
__decorateClass([
|
|
77
|
-
property({ type: String })
|
|
78
|
-
], ItemShowCandidateCorrection.prototype, "hideCandidateCorrectionText", 2);
|
|
79
|
-
__decorateClass([
|
|
80
|
-
property({ type: String })
|
|
81
|
-
], ItemShowCandidateCorrection.prototype, "noCorrectResponseText", 2);
|
|
82
|
-
ItemShowCandidateCorrection = __decorateClass([
|
|
83
|
-
customElement("item-show-candidate-correction")
|
|
84
|
-
], ItemShowCandidateCorrection);
|
|
85
|
-
export {
|
|
86
|
-
ItemShowCandidateCorrection
|
|
87
|
-
};
|
|
88
|
-
//# sourceMappingURL=item-show-candidate-correction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/qti-item/components/item-show-candidate-correction.ts"],"sourcesContent":["import { css, html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { consume } from '@lit/context';\n\nimport * as styles from './styles';\nimport { computedItemContext } from '../../exports/computed-item.context';\n\nimport type { ComputedItemContext } from '../../exports/computed-item.context';\n\n@customElement('item-show-candidate-correction')\nexport class ItemShowCandidateCorrection extends LitElement {\n @consume({ context: computedItemContext, subscribe: true })\n public computedContext?: ComputedItemContext;\n\n static styles = css`\n :host {\n ${styles.btn};\n }\n :host([disabled]) {\n ${styles.dis};\n }\n `;\n\n @property({ type: Boolean, reflect: true }) shown = false;\n @property({ type: Boolean, reflect: true }) disabled = false; // Reflects to `disabled` attribute\n @property({ type: String }) showCandidateCorrectionText = 'Show candidate correction';\n @property({ type: String }) hideCandidateCorrectionText = 'Hide candidate correction';\n @property({ type: String }) noCorrectResponseText = 'No correct response specified';\n\n private _hasCorrectResponse = false; // correct response is removed on certain point\n private _previousActiveItem = ''; // Store previous active item reference\n\n constructor() {\n super();\n }\n\n updated() {\n if (!this._hasCorrectResponse || this._previousActiveItem !== this.computedContext?.identifier) {\n this._previousActiveItem = this.computedContext?.identifier;\n const containsCorrectResponse = !!this.computedContext?.variables.some(v => v['correctResponse']);\n const containsMapping = !!this.computedContext?.variables.some(v => {\n return v['mapping']?.mapEntries?.length > 0 || v['areaMapping']?.areaMapEntries?.length > 0;\n });\n this._hasCorrectResponse = containsCorrectResponse || containsMapping;\n }\n this.disabled = !this._hasCorrectResponse;\n }\n\n private _toggleState() {\n if (this.disabled) return; // Prevent toggle if disabled\n\n this.dispatchEvent(\n new CustomEvent('item-show-candidate-correction', {\n detail: !this.shown,\n bubbles: true\n })\n );\n }\n\n private _getDisplayedText(): string {\n return this.disabled ? this.noCorrectResponseText : this.shown ? this.hideCandidateCorrectionText : this.showCandidateCorrectionText;\n }\n\n render() {\n return html` <div @click=\"${this._toggleState}\">${this._getDisplayedText()}</div> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'item-show-candidate-correction': ItemShowCandidateCorrection;\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,KAAK,MAAM,kBAAkB;AACtC,SAAS,eAAe,gBAAgB;AACxC,SAAS,eAAe;AAQjB,IAAM,8BAAN,cAA0C,WAAW;AAAA;AAAA,EAsB1D,cAAc;AACZ,UAAM;AAVoC,iBAAQ;AACR,oBAAW;AAC3B,uCAA8B;AAC9B,uCAA8B;AAC9B,iCAAwB;AAEpD,SAAQ,sBAAsB;AAC9B;AAAA,SAAQ,sBAAsB;AAAA,EAI9B;AAAA,EAEA,UAAU;AACR,QAAI,CAAC,KAAK,uBAAuB,KAAK,wBAAwB,KAAK,iBAAiB,YAAY;AAC9F,WAAK,sBAAsB,KAAK,iBAAiB;AACjD,YAAM,0BAA0B,CAAC,CAAC,KAAK,iBAAiB,UAAU,KAAK,OAAK,EAAE,iBAAiB,CAAC;AAChG,YAAM,kBAAkB,CAAC,CAAC,KAAK,iBAAiB,UAAU,KAAK,OAAK;AAClE,eAAO,EAAE,SAAS,GAAG,YAAY,SAAS,KAAK,EAAE,aAAa,GAAG,gBAAgB,SAAS;AAAA,MAC5F,CAAC;AACD,WAAK,sBAAsB,2BAA2B;AAAA,IACxD;AACA,SAAK,WAAW,CAAC,KAAK;AAAA,EACxB;AAAA,EAEQ,eAAe;AACrB,QAAI,KAAK,SAAU;AAEnB,SAAK;AAAA,MACH,IAAI,YAAY,kCAAkC;AAAA,QAChD,QAAQ,CAAC,KAAK;AAAA,QACd,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEQ,oBAA4B;AAClC,WAAO,KAAK,WAAW,KAAK,wBAAwB,KAAK,QAAQ,KAAK,8BAA8B,KAAK;AAAA,EAC3G;AAAA,EAEA,SAAS;AACP,WAAO,qBAAqB,KAAK,YAAY,KAAK,KAAK,kBAAkB,CAAC;AAAA,EAC5E;AACF;AAxDa,4BAIJ,SAAS;AAAA;AAAA,QAEH,GAAG;AAAA;AAAA;AAAA,QAGH,GAAG;AAAA;AAAA;AAPT;AAAA,EADN,QAAQ,EAAE,SAAS,qBAAqB,WAAW,KAAK,CAAC;AAAA,GAD/C,4BAEJ;AAWqC;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAb/B,4BAaiC;AACA;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAd/B,4BAciC;AAChB;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAff,4BAeiB;AACA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAhBf,4BAgBiB;AACA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAjBf,4BAiBiB;AAjBjB,8BAAN;AAAA,EADN,cAAc,gCAAgC;AAAA,GAClC;","names":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
4
|
-
import { ComputedItemContext } from '../../exports/computed-item.context.js';
|
|
5
|
-
import '../../qti-response-declaration-DKr08ANy.js';
|
|
6
|
-
import '../../exports/expression-result.js';
|
|
7
|
-
import '../../exports/interaction.interface.js';
|
|
8
|
-
import '../../exports/config.context.js';
|
|
9
|
-
import 'lit-html/directives/ref.js';
|
|
10
|
-
import '../../exports/qti.context.js';
|
|
11
|
-
|
|
12
|
-
declare class ItemShowCorrectResponse extends LitElement {
|
|
13
|
-
computedContext?: ComputedItemContext;
|
|
14
|
-
static styles: lit.CSSResult;
|
|
15
|
-
shown: boolean;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
showCorrectText: string;
|
|
18
|
-
hideCorrectText: string;
|
|
19
|
-
noCorrectResponseText: string;
|
|
20
|
-
private _hasCorrectResponse;
|
|
21
|
-
private _previousActiveItem;
|
|
22
|
-
updated(): void;
|
|
23
|
-
private _toggleState;
|
|
24
|
-
private _getDisplayedText;
|
|
25
|
-
render(): lit_html.TemplateResult<1>;
|
|
26
|
-
}
|
|
27
|
-
declare global {
|
|
28
|
-
interface HTMLElementTagNameMap {
|
|
29
|
-
'item-show-correct-response': ItemShowCorrectResponse;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { ItemShowCorrectResponse };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ItemShowCorrectResponse
|
|
3
|
-
} from "../../chunks/chunk-UHQVQBCL.js";
|
|
4
|
-
import "../../chunks/chunk-DZAMXOSC.js";
|
|
5
|
-
import "../../chunks/chunk-4OGJBG35.js";
|
|
6
|
-
import "../../chunks/chunk-H2JE6IVU.js";
|
|
7
|
-
export {
|
|
8
|
-
ItemShowCorrectResponse
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=item-show-correct-response.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
4
|
-
import { ComputedItemContext } from '../../exports/computed-item.context.js';
|
|
5
|
-
import '../../qti-response-declaration-DKr08ANy.js';
|
|
6
|
-
import '../../exports/expression-result.js';
|
|
7
|
-
import '../../exports/interaction.interface.js';
|
|
8
|
-
import '../../exports/config.context.js';
|
|
9
|
-
import 'lit-html/directives/ref.js';
|
|
10
|
-
import '../../exports/qti.context.js';
|
|
11
|
-
|
|
12
|
-
declare class PrintItemVariables extends LitElement {
|
|
13
|
-
protected computedContext?: ComputedItemContext;
|
|
14
|
-
static styles: lit.CSSResult;
|
|
15
|
-
render(): lit_html.TemplateResult<1>;
|
|
16
|
-
}
|
|
17
|
-
declare global {
|
|
18
|
-
interface HTMLElementTagNameMap {
|
|
19
|
-
'print-item-variables': PrintItemVariables;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { PrintItemVariables };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export { ItemContainer } from '../components/item-container.js';
|
|
2
|
-
export { PrintItemVariables } from '../components/print-item-variables.js';
|
|
3
|
-
export { ItemShowCorrectResponse } from '../components/item-show-correct-response.js';
|
|
4
|
-
import * as lit_html from 'lit-html';
|
|
5
|
-
import { LitElement } from 'lit';
|
|
6
|
-
import { ConfigContext } from '../../exports/config.context.js';
|
|
7
|
-
import { ComputedItemContext } from '../../exports/computed-item.context.js';
|
|
8
|
-
import '../../qti-response-declaration-DKr08ANy.js';
|
|
9
|
-
import '../../exports/expression-result.js';
|
|
10
|
-
import '../../exports/interaction.interface.js';
|
|
11
|
-
import 'lit-html/directives/ref.js';
|
|
12
|
-
import '../../exports/qti.context.js';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* `<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.
|
|
16
|
-
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
17
|
-
* Placing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.
|
|
18
|
-
* See `<item-container>` for more details.
|
|
19
|
-
*
|
|
20
|
-
* ```html
|
|
21
|
-
* <qti-item>
|
|
22
|
-
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
23
|
-
* </qti-item>
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare class QtiItem extends LitElement {
|
|
27
|
-
computedContext: ComputedItemContext;
|
|
28
|
-
private _qtiAssessmentItem?;
|
|
29
|
-
configContext: ConfigContext;
|
|
30
|
-
private _onItemContextChanged;
|
|
31
|
-
private _onAssessmentItemConnected;
|
|
32
|
-
private _onHandleShowCorrectResponse;
|
|
33
|
-
private _onHandleShowCandidateCorrection;
|
|
34
|
-
private _onHandleSwitchCorrectResponseMode;
|
|
35
|
-
constructor();
|
|
36
|
-
private _handleItemContextChanged;
|
|
37
|
-
private _handleAssessmentItemConnected;
|
|
38
|
-
private _handleShowCorrectResponse;
|
|
39
|
-
private _handleShowCandidateCorrection;
|
|
40
|
-
private _handleSwitchCorrectResponseMode;
|
|
41
|
-
private _updateItemVariablesInTestContext;
|
|
42
|
-
render(): lit_html.TemplateResult<1>;
|
|
43
|
-
disconnectedCallback(): void;
|
|
44
|
-
}
|
|
45
|
-
declare global {
|
|
46
|
-
interface HTMLElementTagNameMap {
|
|
47
|
-
'qti-item': QtiItem;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export { QtiItem };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
QtiItem
|
|
3
|
-
} from "../../chunks/chunk-WN6TJQI2.js";
|
|
4
|
-
import {
|
|
5
|
-
ItemContainer
|
|
6
|
-
} from "../../chunks/chunk-ETLOKJAG.js";
|
|
7
|
-
import "../../chunks/chunk-LSEB52SP.js";
|
|
8
|
-
import "../../chunks/chunk-ELDMXTUQ.js";
|
|
9
|
-
import "../../chunks/chunk-WFUXZ4UT.js";
|
|
10
|
-
import {
|
|
11
|
-
ItemShowCorrectResponse
|
|
12
|
-
} from "../../chunks/chunk-UHQVQBCL.js";
|
|
13
|
-
import "../../chunks/chunk-DZAMXOSC.js";
|
|
14
|
-
import {
|
|
15
|
-
PrintItemVariables
|
|
16
|
-
} from "../../chunks/chunk-EJZQSOHU.js";
|
|
17
|
-
import "../../chunks/chunk-4OGJBG35.js";
|
|
18
|
-
import "../../chunks/chunk-ERYHQVOT.js";
|
|
19
|
-
import "../../chunks/chunk-H2JE6IVU.js";
|
|
20
|
-
export {
|
|
21
|
-
ItemContainer,
|
|
22
|
-
ItemShowCorrectResponse,
|
|
23
|
-
PrintItemVariables,
|
|
24
|
-
QtiItem
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index.js.map
|