@citolab/qti-components 7.27.2 → 7.27.3
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 +216 -202
- package/dist/base.js +1 -1
- package/dist/{chunk-QUWFDFGZ.js → chunk-3XXXAWMZ.js} +18 -18
- package/dist/{chunk-TORB5UN2.js → chunk-A7HX4462.js} +291 -242
- package/dist/chunk-A7HX4462.js.map +1 -0
- package/dist/{chunk-KY3II5OX.js → chunk-CSYOTHK2.js} +220 -189
- package/dist/chunk-CSYOTHK2.js.map +1 -0
- package/dist/{chunk-G5ZUC3OT.js → chunk-CVB5ISWF.js} +23 -23
- package/dist/chunk-CVB5ISWF.js.map +1 -0
- package/dist/{chunk-TZMDZQFG.js → chunk-D6EHVZG2.js} +467 -217
- package/dist/chunk-D6EHVZG2.js.map +1 -0
- package/dist/{chunk-DG5TP35K.js → chunk-DGIXWHK3.js} +5 -5
- package/dist/{chunk-DG5TP35K.js.map → chunk-DGIXWHK3.js.map} +1 -1
- package/dist/{chunk-GG36UR7F.js → chunk-PHCCFYNE.js} +12 -12
- package/dist/{chunk-GG36UR7F.js.map → chunk-PHCCFYNE.js.map} +1 -1
- package/dist/{chunk-75ME6QG5.js → chunk-WMPG7ULB.js} +17 -17
- package/dist/elements.js +3 -3
- package/dist/index.js +8 -8
- package/dist/interactions.d.ts +8 -7
- package/dist/interactions.js +3 -3
- package/dist/item.js +3 -3
- package/dist/processing.js +2 -2
- package/dist/qti-components-jsx.d.ts +202 -202
- package/dist/test.js +5 -5
- package/package.json +11 -11
- package/dist/chunk-G5ZUC3OT.js.map +0 -1
- package/dist/chunk-KY3II5OX.js.map +0 -1
- package/dist/chunk-TORB5UN2.js.map +0 -1
- package/dist/chunk-TZMDZQFG.js.map +0 -1
- /package/dist/{chunk-QUWFDFGZ.js.map → chunk-3XXXAWMZ.js.map} +0 -0
- /package/dist/{chunk-75ME6QG5.js.map → chunk-WMPG7ULB.js.map} +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
item_default,
|
|
3
3
|
m
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CVB5ISWF.js";
|
|
5
5
|
import {
|
|
6
6
|
qtiTransformItem
|
|
7
7
|
} from "./chunk-K7HR6ZAY.js";
|
|
8
8
|
import {
|
|
9
|
+
T,
|
|
9
10
|
c,
|
|
10
11
|
computedItemContext,
|
|
11
12
|
configContext,
|
|
@@ -15,9 +16,8 @@ import {
|
|
|
15
16
|
n,
|
|
16
17
|
r,
|
|
17
18
|
t,
|
|
18
|
-
watch
|
|
19
|
-
|
|
20
|
-
} from "./chunk-TORB5UN2.js";
|
|
19
|
+
watch
|
|
20
|
+
} from "./chunk-A7HX4462.js";
|
|
21
21
|
import {
|
|
22
22
|
__decorateClass,
|
|
23
23
|
__privateAdd,
|
|
@@ -67,10 +67,10 @@ var ItemContainer = class extends i2 {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return
|
|
70
|
+
return T`
|
|
71
71
|
${__privateGet(this, _templateContent)}
|
|
72
72
|
<slot></slot>
|
|
73
|
-
${m(this.itemDoc,
|
|
73
|
+
${m(this.itemDoc, T`<span>Loading...</span>`)}
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
@@ -78,7 +78,7 @@ _templateContent = new WeakMap();
|
|
|
78
78
|
_ItemContainer_instances = new WeakSet();
|
|
79
79
|
initializeTemplateContent_fn = function() {
|
|
80
80
|
const template = this.querySelector("template");
|
|
81
|
-
__privateSet(this, _templateContent, template ? template.content :
|
|
81
|
+
__privateSet(this, _templateContent, template ? template.content : T``);
|
|
82
82
|
};
|
|
83
83
|
applyStyles_fn = function() {
|
|
84
84
|
const sheet = new CSSStyleSheet();
|
|
@@ -117,7 +117,7 @@ var ItemCorrectResponseMode = class extends i2 {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
|
-
return
|
|
120
|
+
return T`
|
|
121
121
|
<label part="label" for="modeSelect">${this.label}</label>
|
|
122
122
|
<select
|
|
123
123
|
part="select"
|
|
@@ -128,7 +128,7 @@ var ItemCorrectResponseMode = class extends i2 {
|
|
|
128
128
|
}}
|
|
129
129
|
>
|
|
130
130
|
${Object.keys(this._options).map(
|
|
131
|
-
(value) =>
|
|
131
|
+
(value) => T`<option value="${value}" ?selected=${value === this.itemContext?.correctResponseMode}>
|
|
132
132
|
${this._options[value]}
|
|
133
133
|
</option>`
|
|
134
134
|
)}
|
|
@@ -208,7 +208,7 @@ var ItemShowCandidateCorrection = class extends i2 {
|
|
|
208
208
|
this.disabled = !__privateGet(this, _hasCorrectResponse);
|
|
209
209
|
}
|
|
210
210
|
render() {
|
|
211
|
-
return
|
|
211
|
+
return T` <div @click="${__privateMethod(this, _ItemShowCandidateCorrection_instances, toggleState_fn)}">${__privateMethod(this, _ItemShowCandidateCorrection_instances, getDisplayedText_fn).call(this)}</div> `;
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
_hasCorrectResponse = new WeakMap();
|
|
@@ -284,7 +284,7 @@ var ItemShowCorrectResponse = class extends i2 {
|
|
|
284
284
|
this.disabled = !__privateGet(this, _hasCorrectResponse2);
|
|
285
285
|
}
|
|
286
286
|
render() {
|
|
287
|
-
return
|
|
287
|
+
return T` <div @click="${__privateMethod(this, _ItemShowCorrectResponse_instances, toggleState_fn2)}">${__privateMethod(this, _ItemShowCorrectResponse_instances, getDisplayedText_fn2).call(this)}</div> `;
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
_hasCorrectResponse2 = new WeakMap();
|
|
@@ -336,10 +336,10 @@ ItemShowCorrectResponse = __decorateClass([
|
|
|
336
336
|
var ItemPrintVariables = class extends i2 {
|
|
337
337
|
render() {
|
|
338
338
|
const activeItem = this.computedContext;
|
|
339
|
-
if (!activeItem || !activeItem.variables) return
|
|
339
|
+
if (!activeItem || !activeItem.variables) return T``;
|
|
340
340
|
const responseVariables = activeItem.variables.filter((v) => v.type === "response");
|
|
341
341
|
const outcomeVariables = activeItem.variables.filter((v) => v.type === "outcome");
|
|
342
|
-
const renderTable = (variables, title) =>
|
|
342
|
+
const renderTable = (variables, title) => T`
|
|
343
343
|
<h3>${title}</h3>
|
|
344
344
|
<table>
|
|
345
345
|
<thead>
|
|
@@ -356,7 +356,7 @@ var ItemPrintVariables = class extends i2 {
|
|
|
356
356
|
const correctResponse = v.correctResponse ? Array.isArray(v.correctResponse) ? v.correctResponse.join(", ") : v.correctResponse : "";
|
|
357
357
|
const mapEntries = v.mapping?.mapEntries?.map((m2) => `${m2.mapKey}=${m2.mappedValue}pt`).join(", ") || "";
|
|
358
358
|
const areaMapEntries = v.areaMapping?.areaMapEntries?.map((m2) => `${m2.shape}(${m2.coords})=${m2.mappedValue}pt`).join(", ") || "";
|
|
359
|
-
return
|
|
359
|
+
return T`
|
|
360
360
|
<tr>
|
|
361
361
|
<td>${v.identifier}</td>
|
|
362
362
|
<td>${Array.isArray(v.value) ? v.value.join(", ") : v.value}</td>
|
|
@@ -369,7 +369,7 @@ var ItemPrintVariables = class extends i2 {
|
|
|
369
369
|
</tbody>
|
|
370
370
|
</table>
|
|
371
371
|
`;
|
|
372
|
-
return
|
|
372
|
+
return T`
|
|
373
373
|
${renderTable(responseVariables, "Response Variables")} ${renderTable(outcomeVariables, "Outcome Variables")}
|
|
374
374
|
`;
|
|
375
375
|
}
|
|
@@ -424,7 +424,7 @@ var QtiItem = class extends i2 {
|
|
|
424
424
|
this.addEventListener("item-switch-correct-response-mode", __privateGet(this, _onHandleSwitchCorrectResponseMode));
|
|
425
425
|
}
|
|
426
426
|
render() {
|
|
427
|
-
return
|
|
427
|
+
return T`<slot></slot>`;
|
|
428
428
|
}
|
|
429
429
|
disconnectedCallback() {
|
|
430
430
|
super.disconnectedCallback();
|
|
@@ -507,4 +507,4 @@ export {
|
|
|
507
507
|
ItemPrintVariables,
|
|
508
508
|
QtiItem
|
|
509
509
|
};
|
|
510
|
-
//# sourceMappingURL=chunk-
|
|
510
|
+
//# sourceMappingURL=chunk-WMPG7ULB.js.map
|
package/dist/elements.js
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
QtiRubricBlock,
|
|
17
17
|
QtiStylesheet,
|
|
18
18
|
QtiTemplateDeclaration
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-3XXXAWMZ.js";
|
|
20
|
+
import "./chunk-DGIXWHK3.js";
|
|
21
21
|
import "./chunk-K7HR6ZAY.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-A7HX4462.js";
|
|
23
23
|
import "./chunk-QXBXORM3.js";
|
|
24
24
|
export {
|
|
25
25
|
QtiAssessmentItem,
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
QtiSliderInteraction,
|
|
32
32
|
QtiTextEntryInteraction,
|
|
33
33
|
QtiUploadInteraction
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CSYOTHK2.js";
|
|
35
35
|
import {
|
|
36
36
|
ItemContainer,
|
|
37
37
|
ItemCorrectResponseMode,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
ItemShowCandidateCorrection,
|
|
40
40
|
ItemShowCorrectResponse,
|
|
41
41
|
QtiItem
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WMPG7ULB.js";
|
|
43
43
|
import {
|
|
44
44
|
getItemByUri,
|
|
45
45
|
getManifestInfo
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
QtiVariable,
|
|
94
94
|
qtiAndMixin,
|
|
95
95
|
qtiSubtractMixin
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-PHCCFYNE.js";
|
|
97
97
|
import {
|
|
98
98
|
QtiAssessmentItemRef,
|
|
99
99
|
QtiAssessmentSection,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
TestStamp,
|
|
120
120
|
TestView,
|
|
121
121
|
TestViewToggle
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-D6EHVZG2.js";
|
|
123
123
|
import {
|
|
124
124
|
QtiAssessmentItem,
|
|
125
125
|
QtiAssessmentStimulusRef,
|
|
@@ -138,9 +138,9 @@ import {
|
|
|
138
138
|
QtiRubricBlock,
|
|
139
139
|
QtiStylesheet,
|
|
140
140
|
QtiTemplateDeclaration
|
|
141
|
-
} from "./chunk-
|
|
142
|
-
import "./chunk-
|
|
143
|
-
import "./chunk-
|
|
141
|
+
} from "./chunk-3XXXAWMZ.js";
|
|
142
|
+
import "./chunk-DGIXWHK3.js";
|
|
143
|
+
import "./chunk-CVB5ISWF.js";
|
|
144
144
|
import {
|
|
145
145
|
qtiTransformItem,
|
|
146
146
|
qtiTransformManifest,
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
removeDoubleSlashes,
|
|
170
170
|
sessionContext,
|
|
171
171
|
testContext
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-A7HX4462.js";
|
|
173
173
|
import "./chunk-QXBXORM3.js";
|
|
174
174
|
export {
|
|
175
175
|
Correctness,
|
package/dist/interactions.d.ts
CHANGED
|
@@ -399,7 +399,7 @@ declare global {
|
|
|
399
399
|
|
|
400
400
|
declare const QtiSimpleAssociableChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
401
401
|
declare class QtiSimpleAssociableChoice extends QtiSimpleAssociableChoice_base {
|
|
402
|
-
static styles:
|
|
402
|
+
static styles: CSSResultGroup;
|
|
403
403
|
/** the minimal number of selections a candidate must make */
|
|
404
404
|
matchMin: number;
|
|
405
405
|
/** the maximum number of selections a candidate must make, the other options will be disabled when max options is checked */
|
|
@@ -798,7 +798,7 @@ declare global {
|
|
|
798
798
|
}
|
|
799
799
|
|
|
800
800
|
declare class QtiGapImg extends LitElement {
|
|
801
|
-
static styles:
|
|
801
|
+
static styles: CSSResultGroup;
|
|
802
802
|
tabindex: number | undefined;
|
|
803
803
|
connectedCallback(): void;
|
|
804
804
|
}
|
|
@@ -810,7 +810,7 @@ declare global {
|
|
|
810
810
|
|
|
811
811
|
declare const QtiGapText_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
812
812
|
declare class QtiGapText extends QtiGapText_base {
|
|
813
|
-
static styles:
|
|
813
|
+
static styles: CSSResultGroup;
|
|
814
814
|
tabindex: number | undefined;
|
|
815
815
|
connectedCallback(): void;
|
|
816
816
|
render(): lit.TemplateResult<1>;
|
|
@@ -822,7 +822,7 @@ declare global {
|
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
declare class QtiGap extends LitElement {
|
|
825
|
-
static styles:
|
|
825
|
+
static styles: CSSResultGroup;
|
|
826
826
|
tabindex: number | undefined;
|
|
827
827
|
render(): lit.TemplateResult<1>;
|
|
828
828
|
}
|
|
@@ -849,7 +849,7 @@ declare global {
|
|
|
849
849
|
|
|
850
850
|
declare const QtiHottext_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
851
851
|
declare class QtiHottext extends QtiHottext_base {
|
|
852
|
-
static styles:
|
|
852
|
+
static styles: CSSResultGroup;
|
|
853
853
|
render(): lit.TemplateResult<1>;
|
|
854
854
|
}
|
|
855
855
|
declare global {
|
|
@@ -880,7 +880,7 @@ declare global {
|
|
|
880
880
|
|
|
881
881
|
declare const QtiHotspotChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
882
882
|
declare class QtiHotspotChoice extends QtiHotspotChoice_base {
|
|
883
|
-
static styles:
|
|
883
|
+
static styles: CSSResultGroup;
|
|
884
884
|
order: number;
|
|
885
885
|
orderCorrect: number;
|
|
886
886
|
}
|
|
@@ -891,7 +891,7 @@ declare global {
|
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
declare class QtiAssociableHotspot extends LitElement {
|
|
894
|
-
static styles:
|
|
894
|
+
static styles: CSSResultGroup;
|
|
895
895
|
connectedCallback(): void;
|
|
896
896
|
render(): lit.TemplateResult<1>;
|
|
897
897
|
}
|
|
@@ -902,6 +902,7 @@ declare global {
|
|
|
902
902
|
}
|
|
903
903
|
|
|
904
904
|
declare class QtiPrompt extends LitElement {
|
|
905
|
+
static styles: CSSResultGroup;
|
|
905
906
|
render(): lit.TemplateResult<1>;
|
|
906
907
|
connectedCallback(): void;
|
|
907
908
|
}
|
package/dist/interactions.js
CHANGED
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
QtiSliderInteraction,
|
|
32
32
|
QtiTextEntryInteraction,
|
|
33
33
|
QtiUploadInteraction
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-CSYOTHK2.js";
|
|
35
|
+
import "./chunk-DGIXWHK3.js";
|
|
36
|
+
import "./chunk-A7HX4462.js";
|
|
37
37
|
import "./chunk-QXBXORM3.js";
|
|
38
38
|
export {
|
|
39
39
|
QtiAssociableHotspot,
|
package/dist/item.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
ItemShowCandidateCorrection,
|
|
6
6
|
ItemShowCorrectResponse,
|
|
7
7
|
QtiItem
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-WMPG7ULB.js";
|
|
9
|
+
import "./chunk-CVB5ISWF.js";
|
|
10
10
|
import "./chunk-K7HR6ZAY.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-A7HX4462.js";
|
|
12
12
|
import "./chunk-QXBXORM3.js";
|
|
13
13
|
export {
|
|
14
14
|
ItemContainer,
|
package/dist/processing.js
CHANGED