@citolab/qti-components 7.3.7 → 7.3.8
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-3BEVQM67.js +1 -0
- package/cdn/chunks/chunk-3HBM5P77.js +10 -0
- package/cdn/chunks/chunk-3NI5EZGT.js +1 -0
- package/cdn/chunks/chunk-3ZXHWV4A.js +1 -0
- package/cdn/chunks/chunk-45WBUWKJ.js +1464 -0
- package/cdn/chunks/chunk-5HB6NHET.js +10 -0
- package/cdn/chunks/chunk-7ZQLABN5.js +1 -0
- package/cdn/chunks/chunk-AYTGWUAR.js +5 -0
- package/cdn/chunks/chunk-BWNOR2ZO.js +5 -0
- package/cdn/chunks/chunk-C6FDJRQY.js +1 -0
- package/cdn/chunks/chunk-CKTJQ6KH.js +6 -0
- package/cdn/chunks/chunk-CN7W6GOC.js +1464 -0
- package/cdn/chunks/chunk-CVWDNTZ4.js +1 -0
- package/cdn/chunks/chunk-E5PYXB7J.js +8 -0
- package/cdn/chunks/chunk-EDCTRKNL.js +8 -0
- package/cdn/chunks/chunk-GQYC5YRR.js +5 -0
- package/cdn/chunks/chunk-GTIYG2IF.js +1 -0
- package/cdn/chunks/chunk-I2XQ2PK2.js +5 -0
- package/cdn/chunks/chunk-IQAPAISV.js +1464 -0
- package/cdn/chunks/chunk-JNQBMIVC.js +1 -0
- package/cdn/chunks/chunk-JTQD7GG4.js +2 -0
- package/cdn/chunks/chunk-KEN5E6SJ.js +48 -0
- package/cdn/chunks/chunk-KQIKEZGX.js +1464 -0
- package/cdn/chunks/chunk-MQHEPZOS.js +8 -0
- package/cdn/chunks/chunk-NUAZT6SC.js +5 -0
- package/cdn/chunks/chunk-O7CJ4U75.js +1464 -0
- package/cdn/chunks/chunk-OJCLBKDS.js +8 -0
- package/cdn/chunks/chunk-POPZFSZF.js +1464 -0
- package/cdn/chunks/chunk-R6EQLIKS.js +8 -0
- package/cdn/chunks/chunk-RGC42PCV.js +5 -0
- package/cdn/chunks/chunk-RN4632JX.js +1 -0
- package/cdn/chunks/chunk-UAT6Z2UZ.js +5 -0
- package/cdn/chunks/chunk-VII6VQT3.js +5 -0
- package/cdn/chunks/chunk-XCHINPXS.js +5 -0
- package/cdn/chunks/chunk-XK6X5AFS.js +1464 -0
- package/cdn/chunks/chunk-XPQTMSAT.js +1 -0
- package/cdn/chunks/chunk-XTYGD5NO.js +48 -0
- package/cdn/chunks/chunk-ZDCQL2NF.js +5 -0
- package/cdn/chunks/chunk-ZX4E556R.js +8 -0
- package/cdn/exports/interaction.js +1 -1
- package/cdn/exports/qti-condition-expression.js +1 -1
- package/cdn/exports/qti-expression.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/components/item-container.js +1 -1
- package/cdn/qti-item/components/item-show-correct-response.js +1 -1
- package/cdn/qti-item/components/print-item-variables.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-navigation.js +1 -1
- package/cdn/qti-test/components/test-next.js +1 -1
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
- package/cdn/qti-test/components/test-prev.js +1 -1
- package/cdn/qti-test/components/test-print-context.js +1 -1
- package/cdn/qti-test/components/test-print-item-variables.js +1 -1
- package/cdn/qti-test/components/test-scoring-buttons.js +1 -1
- package/cdn/qti-test/components/test-scoring-feedback.js +1 -1
- package/cdn/qti-test/components/test-section-buttons-stamp.js +1 -1
- package/cdn/qti-test/components/test-show-correct-response.js +1 -1
- package/cdn/qti-test/components/test-stamp.js +1 -1
- package/cdn/qti-test/components/test-view-toggle.js +1 -1
- package/cdn/qti-test/components/test-view.js +1 -1
- package/cdn/qti-test/core/index.js +1 -1
- package/dist/chunks/chunk-4LANPT4E.js +92 -0
- package/dist/chunks/chunk-4LANPT4E.js.map +1 -0
- package/dist/chunks/chunk-ES3I66SM.js +7960 -0
- package/dist/chunks/chunk-ES3I66SM.js.map +1 -0
- package/dist/chunks/chunk-JCD6FX42.js +887 -0
- package/dist/chunks/chunk-JCD6FX42.js.map +1 -0
- package/dist/chunks/chunk-JJOLQOBD.js +7968 -0
- package/dist/chunks/chunk-JJOLQOBD.js.map +1 -0
- package/dist/chunks/chunk-LTWSACPT.js +887 -0
- package/dist/chunks/chunk-LTWSACPT.js.map +1 -0
- package/dist/chunks/chunk-MKBNHCCA.js +887 -0
- package/dist/chunks/chunk-MKBNHCCA.js.map +1 -0
- package/dist/chunks/chunk-N4WLIMRF.js +7968 -0
- package/dist/chunks/chunk-N4WLIMRF.js.map +1 -0
- package/dist/chunks/chunk-TCKEOWDY.js +887 -0
- package/dist/chunks/chunk-TCKEOWDY.js.map +1 -0
- package/dist/chunks/chunk-VTFEJLBG.js +7968 -0
- package/dist/chunks/chunk-VTFEJLBG.js.map +1 -0
- package/dist/exports/computed-item.context.d.ts +1 -1
- package/dist/exports/computed.context.d.ts +2 -2
- package/dist/exports/interaction.d.ts +1 -1
- 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 +2 -2
- package/dist/exports/test.context.d.ts +1 -1
- package/dist/exports/variables.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -18
- package/dist/qti-components/index.d.ts +2 -2
- package/dist/qti-components/index.js +2 -2
- package/dist/qti-components-jsx.d.ts +2 -2
- package/dist/qti-item/components/item-show-correct-response.d.ts +1 -1
- package/dist/qti-item/components/print-item-variables.d.ts +1 -1
- package/dist/qti-item/core/index.d.ts +1 -1
- package/dist/qti-loader/index.d.ts +1 -1
- package/dist/qti-response-declaration-C43F4MzH.d.ts +1358 -0
- package/dist/qti-test/components/index.d.ts +2 -2
- package/dist/qti-test/components/index.js +8 -8
- package/dist/qti-test/components/test-navigation.d.ts +2 -2
- package/dist/qti-test/components/test-next.d.ts +2 -2
- package/dist/qti-test/components/test-prev.d.ts +2 -2
- package/dist/qti-test/components/test-print-context.d.ts +2 -2
- package/dist/qti-test/components/test-print-item-variables.d.ts +2 -2
- package/dist/qti-test/components/test-scoring-buttons.d.ts +2 -2
- package/dist/qti-test/components/test-scoring-feedback.d.ts +2 -2
- package/dist/qti-test/components/test-show-correct-response.d.ts +2 -2
- package/dist/qti-test/core/index.d.ts +3 -3
- package/dist/qti-test/core/index.js +3 -3
- package/dist/qti-test-feedback-B4R9lYWU.d.ts +85 -0
- package/dist/vscode.html-custom-data.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-AV6ISYP4.js";import{a as p}from"./chunk-42P7F3FC.js";import{d as m,i as a}from"./chunk-65CZNGQC.js";import{a as l}from"./chunk-P6SSTAJ2.js";import{b as n}from"./chunk-7WJYJA45.js";import{a as r}from"./chunk-JR322KXH.js";var t=class extends a{createRenderRoot(){return this}constructor(){super(),this._internals=this.attachInternals(),this._internals.ariaLabel="pagination"}connectedCallback(){super.connectedCallback();let e=this.querySelector("template");this.myTemplate=s(e)}render(){if(!this.computedContext)return m``;let e=this.computedContext.testParts.flatMap(o=>o.sections);return m` ${e.map(o=>this.myTemplate({item:o}))} `}};r([n({context:l,subscribe:!0})],t.prototype,"computedContext",2),t=r([p("test-section-buttons-stamp")],t);export{t as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as x}from"./chunk-AV6ISYP4.js";import{a as v,b as f,c as p}from"./chunk-42P7F3FC.js";import{d as r,g as c,i as d}from"./chunk-65CZNGQC.js";import{a as h}from"./chunk-P6SSTAJ2.js";import{b as u}from"./chunk-7WJYJA45.js";import{a as o}from"./chunk-JR322KXH.js";var e=class extends d{constructor(){super(...arguments);this.debug=!1;this.stampContext={view:"candidate",activeItem:{},activeSection:{items:[]},activeTestpart:{items:[],sections:[]},test:{}}}createRenderRoot(){return this}connectedCallback(){super.connectedCallback();let m=this.querySelector("template");if(!m){this.myTemplate=null;return}this.myTemplate=x(m)}willUpdate(m){if(!this.computedContext)return;let i=this.computedContext.testParts.find(t=>t.active),n=i?.sections.find(t=>t.active),l=n?.items.find(t=>t.active),{variables:P,...C}=l||{};if(!i||!n||!l)return;let y={...i,items:i.sections.flatMap(t=>t.items.map(({variables:a,...s})=>s)),sections:i.sections.map(t=>({...t,items:t.items.map(({variables:a,...s})=>s)}))},T={...n,items:n.items.map(({variables:t,...a})=>a)},{testParts:k,...b}=this.computedContext;this.stampContext={view:this.computedContext.view,activeItem:C,activeSection:T,activeTestpart:y,test:b}}render(){return r` ${this.debug?r`<small><pre>${JSON.stringify(this.stampContext,null,2)}</pre></small>`:c}
|
|
2
|
+
${this.myTemplate?this.myTemplate(this.stampContext):c}`}};o([f({type:Boolean,reflect:!0})],e.prototype,"debug",2),o([p(),u({context:h,subscribe:!0})],e.prototype,"computedContext",2),o([p()],e.prototype,"stampContext",2),e=o([v("test-stamp")],e);export{e as a};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import{a as m}from"./chunk-42P7F3FC.js";import{a as d,d as a,i as l}from"./chunk-65CZNGQC.js";import{a as b}from"./chunk-P6SSTAJ2.js";import{b as c}from"./chunk-7WJYJA45.js";import{a as i}from"./chunk-JR322KXH.js";var o=class extends l{render(){let s=this.computedContext?.testParts.flatMap(t=>t.sections.flatMap(p=>p.items)).find(t=>t.active);if(!s||!s.variables)return a``;let u=s.variables.filter(t=>t.type==="response"),f=s.variables.filter(t=>t.type==="outcome"),n=(t,p)=>a`
|
|
2
|
+
<h3>${p}</h3>
|
|
3
|
+
<table>
|
|
4
|
+
<thead>
|
|
5
|
+
<tr>
|
|
6
|
+
<th>Identifier</th>
|
|
7
|
+
<th>Value</th>
|
|
8
|
+
<th>Cardinality</th>
|
|
9
|
+
<th>Base Type</th>
|
|
10
|
+
<th>Correct Response / Mappings</th>
|
|
11
|
+
</tr>
|
|
12
|
+
</thead>
|
|
13
|
+
<tbody>
|
|
14
|
+
${t.map(e=>{let h=e.correctResponse?Array.isArray(e.correctResponse)?e.correctResponse.join(", "):e.correctResponse:"",x=e.mapping?.mapEntries?.map(r=>`${r.mapKey}=${r.mappedValue}pt`).join(", ")||"",y=e.areaMapping?.areaMapEntries?.map(r=>`${r.shape}(${r.coords})=${r.mappedValue}pt`).join(", ")||"";return a`
|
|
15
|
+
<tr>
|
|
16
|
+
<td>${e.identifier}</td>
|
|
17
|
+
<td>${Array.isArray(e.value)?e.value.join(", "):e.value}</td>
|
|
18
|
+
<td>${e.cardinality}</td>
|
|
19
|
+
<td>${e.baseType}</td>
|
|
20
|
+
<td>${h||x||y}</td>
|
|
21
|
+
</tr>
|
|
22
|
+
`})}
|
|
23
|
+
</tbody>
|
|
24
|
+
</table>
|
|
25
|
+
`;return a`
|
|
26
|
+
${n(u,"Response Variables")} ${n(f,"Outcome Variables")}
|
|
27
|
+
`}};o.styles=d`
|
|
28
|
+
table {
|
|
29
|
+
width: 100%;
|
|
30
|
+
border-collapse: collapse;
|
|
31
|
+
margin: 20px 0;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
text-align: left;
|
|
34
|
+
}
|
|
35
|
+
th,
|
|
36
|
+
td {
|
|
37
|
+
border: 1px solid #ddd;
|
|
38
|
+
padding: 8px;
|
|
39
|
+
}
|
|
40
|
+
th {
|
|
41
|
+
background-color: #f4f4f4;
|
|
42
|
+
font-weight: bold;
|
|
43
|
+
}
|
|
44
|
+
h3 {
|
|
45
|
+
margin-top: 20px;
|
|
46
|
+
font-size: 16px;
|
|
47
|
+
}
|
|
48
|
+
`,i([c({context:b,subscribe:!0})],o.prototype,"computedContext",2),o=i([m("test-print-item-variables")],o);export{o as a};
|