@citolab/qti-components 7.3.5 → 7.3.7
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-2VU43EIZ.js +8 -0
- package/cdn/chunks/chunk-2WJEB7LD.js +1 -0
- package/cdn/chunks/chunk-34G25RYG.js +8 -0
- package/cdn/chunks/chunk-7543U7PC.js +1 -0
- package/cdn/chunks/chunk-A73O6JDN.js +5 -0
- package/cdn/chunks/chunk-AV6ISYP4.js +41 -0
- package/cdn/chunks/chunk-AYRVSFDB.js +1 -0
- package/cdn/chunks/chunk-BJRPEBBQ.js +1 -0
- package/cdn/chunks/chunk-C3UTBQLI.js +8 -0
- package/cdn/chunks/chunk-CHA2MSUC.js +1 -0
- package/cdn/chunks/chunk-D5X3UG54.js +1 -0
- package/cdn/chunks/chunk-DS3TJWSG.js +8 -0
- package/cdn/chunks/chunk-FTIKZVQS.js +0 -0
- package/cdn/chunks/chunk-GHYJJLM6.js +5 -0
- package/cdn/chunks/chunk-H5VQY4UD.js +1 -0
- package/cdn/chunks/chunk-IYTC7IL7.js +48 -0
- package/cdn/chunks/chunk-JB5OTSUJ.js +1 -0
- package/cdn/chunks/chunk-JR322KXH.js +1 -0
- package/cdn/chunks/chunk-JYB6NVDN.js +1 -0
- package/cdn/chunks/chunk-LXJSKVMQ.js +6 -0
- package/cdn/chunks/chunk-NN2AW26H.js +5 -0
- package/cdn/chunks/chunk-ONSO5XEG.js +1464 -0
- package/cdn/chunks/chunk-PMW5NIBL.js +8 -0
- package/cdn/chunks/chunk-Q54YYIH7.js +8 -0
- package/cdn/chunks/chunk-QIEEN6C7.js +8 -0
- package/cdn/chunks/chunk-RALUW4CJ.js +5 -0
- package/cdn/chunks/chunk-RTHQAQWR.js +2 -0
- package/cdn/chunks/chunk-SB62LFF7.js +10 -0
- package/cdn/chunks/chunk-TI7HI3OS.js +1464 -0
- package/cdn/chunks/chunk-VWTYL7A3.js +48 -0
- package/cdn/chunks/chunk-W4QXZT2Y.js +8 -0
- package/cdn/chunks/chunk-YNBLRM6A.js +1 -0
- package/cdn/chunks/chunk-ZPQBCZQ2.js +3589 -0
- package/cdn/exports/computed-item.context.js +1 -1
- package/cdn/exports/computed.context.js +1 -1
- package/cdn/exports/config.context.js +1 -1
- package/cdn/exports/interaction.js +1 -1
- package/cdn/exports/item.context.js +1 -1
- package/cdn/exports/qti-assessment-item.context.js +1 -1
- package/cdn/exports/qti-condition-expression.js +1 -1
- package/cdn/exports/qti-expression.js +1 -1
- package/cdn/exports/session.context.js +1 -1
- package/cdn/exports/test.context.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/components/styles.js +1 -1
- package/cdn/qti-item/core/index.js +1 -1
- package/cdn/qti-loader/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/styles.js +1 -1
- package/cdn/qti-test/components/test-check-item.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.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-section-link.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/cdn/qti-transformers/index.js +1 -1
- package/dist/chunks/chunk-3TX2EBTU.js +94 -0
- package/dist/chunks/chunk-3TX2EBTU.js.map +1 -0
- package/dist/chunks/chunk-7K44TDQO.js +91 -0
- package/dist/chunks/chunk-7K44TDQO.js.map +1 -0
- package/dist/chunks/chunk-AZJR5HSV.js +7960 -0
- package/dist/chunks/chunk-AZJR5HSV.js.map +1 -0
- package/dist/chunks/chunk-B3C3IFYR.js +7960 -0
- package/dist/chunks/chunk-B3C3IFYR.js.map +1 -0
- package/dist/chunks/chunk-BV2QSR2N.js +3 -0
- package/dist/chunks/chunk-BV2QSR2N.js.map +1 -0
- package/dist/chunks/chunk-CP34TICQ.js +45 -0
- package/dist/chunks/chunk-CP34TICQ.js.map +1 -0
- package/dist/chunks/chunk-EMVOKXSA.js +84 -0
- package/dist/chunks/chunk-EMVOKXSA.js.map +1 -0
- package/dist/chunks/chunk-GAHXUFMQ.js +93 -0
- package/dist/chunks/chunk-GAHXUFMQ.js.map +1 -0
- package/dist/chunks/chunk-GRQYHS5X.js +269 -0
- package/dist/chunks/chunk-GRQYHS5X.js.map +1 -0
- package/dist/chunks/chunk-KSXNC564.js +43 -0
- package/dist/chunks/chunk-KSXNC564.js.map +1 -0
- package/dist/chunks/chunk-LNL2LY75.js +94 -0
- package/dist/chunks/chunk-LNL2LY75.js.map +1 -0
- package/dist/chunks/chunk-NBCXOMMU.js +887 -0
- package/dist/chunks/chunk-NBCXOMMU.js.map +1 -0
- package/dist/chunks/chunk-NJ26K2SA.js +3579 -0
- package/dist/chunks/chunk-NJ26K2SA.js.map +1 -0
- package/dist/chunks/chunk-TUKEQ36K.js +60 -0
- package/dist/chunks/chunk-TUKEQ36K.js.map +1 -0
- package/dist/chunks/chunk-VVXIAK5M.js +82 -0
- package/dist/chunks/chunk-VVXIAK5M.js.map +1 -0
- package/dist/chunks/chunk-YKLITOZB.js +887 -0
- package/dist/chunks/chunk-YKLITOZB.js.map +1 -0
- package/dist/exports/computed.context.d.ts +2 -2
- package/dist/exports/session.context.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -13
- package/dist/item.css +0 -3
- package/dist/qti-components/index.js +2 -1
- package/dist/qti-components-jsx.d.ts +4 -8
- package/dist/qti-item/components/item-container.js +2 -2
- package/dist/qti-item/core/index.js +2 -2
- package/dist/qti-test/components/index.d.ts +2 -2
- package/dist/qti-test/components/index.js +12 -10
- package/dist/qti-test/components/test-container.js +2 -2
- package/dist/qti-test/components/test-navigation.d.ts +2 -2
- package/dist/qti-test/components/test-navigation.js +1 -1
- package/dist/qti-test/components/test-next.d.ts +18 -15
- package/dist/qti-test/components/test-next.js +4 -1
- package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +1 -1
- package/dist/qti-test/components/test-paging-buttons-stamp.js +1 -1
- package/dist/qti-test/components/test-prev.d.ts +19 -18
- package/dist/qti-test/components/test-prev.js +4 -1
- 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-buttons.js +1 -1
- package/dist/qti-test/components/test-scoring-feedback.d.ts +2 -2
- package/dist/qti-test/components/test-section-buttons-stamp.d.ts +1 -1
- package/dist/qti-test/components/test-section-buttons-stamp.js +1 -1
- package/dist/qti-test/components/test-show-correct-response.d.ts +2 -2
- package/dist/qti-test/components/test-stamp.d.ts +1 -1
- package/dist/qti-test/components/test-stamp.js +1 -1
- package/dist/qti-test/components/test-view-toggle.js +1 -1
- package/dist/qti-test/core/index.d.ts +3 -3
- package/dist/qti-test/core/index.js +3 -2
- package/dist/qti-test-feedback-DCZDtUuH.d.ts +85 -0
- package/dist/vscode.html-custom-data.json +4 -16
- package/package.json +3 -3
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import{a as m}from"./chunk-TCHROQU3.js";import{b as i}from"./chunk-7WJYJA45.js";import{a as l}from"./chunk-42P7F3FC.js";import{a as d,d as a,i as c}from"./chunk-65CZNGQC.js";import{a as p}from"./chunk-JR322KXH.js";var r=class extends c{render(){let s=this.computedContext;if(!s||!s.variables)return a``;let b=s.variables.filter(o=>o.type==="response"),u=s.variables.filter(o=>o.type==="outcome"),n=(o,h)=>a`
|
|
2
|
+
<h3>${h}</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
|
+
${o.map(e=>{let f=e.correctResponse?Array.isArray(e.correctResponse)?e.correctResponse.join(", "):e.correctResponse:"",x=e.mapping?.mapEntries?.map(t=>`${t.mapKey}=${t.mappedValue}pt`).join(", ")||"",y=e.areaMapping?.areaMapEntries?.map(t=>`${t.shape}(${t.coords})=${t.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>${f||x||y}</td>
|
|
21
|
+
</tr>
|
|
22
|
+
`})}
|
|
23
|
+
</tbody>
|
|
24
|
+
</table>
|
|
25
|
+
`;return a`
|
|
26
|
+
${n(b,"Response Variables")} ${n(u,"Outcome Variables")}
|
|
27
|
+
`}};r.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
|
+
`,p([i({context:m,subscribe:!0})],r.prototype,"computedContext",2),r=p([l("print-item-variables")],r);export{r as a};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{b as u,c as h}from"./chunk-U5Y5T4ZS.js";import{a as p}from"./chunk-XUJ7TXHW.js";import{a as c}from"./chunk-P6SSTAJ2.js";import{b as n}from"./chunk-7WJYJA45.js";import{a,b as l}from"./chunk-42P7F3FC.js";import{a as m,d as r,i as d}from"./chunk-65CZNGQC.js";import{a as s}from"./chunk-JR322KXH.js";var t=class extends d{constructor(){super();this._internalDisabled=!0;this.addEventListener("click",e=>{e.preventDefault(),this._internalDisabled||this._requestItem(this.sectionItems[this.itemIndex-1].identifier)})}_handleTestElementChange(e,o){o&&(this._internalDisabled=!1)}willUpdate(e){if(!this.computedContext)return;let o=this.computedContext?.testParts.find(i=>i.active);o&&(this.sectionItems=o.sections.flatMap(i=>i.items),this.itemIndex=this.sectionItems.findIndex(i=>i.active),this.checkDisabled())}checkDisabled(){this._internalDisabled=!this.computedContext||this.itemIndex===0||this.itemIndex===-1}_requestItem(e){this.dispatchEvent(new CustomEvent("qti-request-navigation",{composed:!0,bubbles:!0,detail:{type:"item",id:e}}))}render(){return r`<slot></slot>`}};t.styles=m`
|
|
2
|
+
:host {
|
|
3
|
+
${u};
|
|
4
|
+
}
|
|
5
|
+
:host([disabled]) {
|
|
6
|
+
${h};
|
|
7
|
+
}
|
|
8
|
+
`,s([l({type:Boolean,reflect:!0,attribute:"disabled"})],t.prototype,"_internalDisabled",2),s([n({context:c,subscribe:!0})],t.prototype,"computedContext",2),s([p("computedContext")],t.prototype,"_handleTestElementChange",1),t=s([a("test-prev")],t);export{t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-AV6ISYP4.js";import{a as l}from"./chunk-P6SSTAJ2.js";import{b as n}from"./chunk-7WJYJA45.js";import{a as p}from"./chunk-42P7F3FC.js";import{d as r,i as a}from"./chunk-65CZNGQC.js";import{a as o}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=i(e)}render(){if(!this.computedContext)return r``;let e=this.computedContext.testParts.flatMap(m=>m.sections.flatMap(s=>s.items));return r` ${e.map(m=>this.myTemplate({item:m,view:this.computedContext.view}))} `}};o([n({context:l,subscribe:!0})],t.prototype,"computedContext",2),t=o([p("test-paging-buttons-stamp")],t);export{t as a};
|