@citolab/qti-components 8.1.0 → 9.0.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 +288 -182
- package/dist/base.d.ts +5 -5
- package/dist/base.js +1 -1
- package/dist/{chunk-TXIB3SKC.js → chunk-3MQNPN7A.js} +3 -3
- package/dist/{chunk-6V3A7NQP.js → chunk-3NPCS4IT.js} +2 -2
- package/dist/{chunk-MK2I3MQB.js → chunk-3VQSUWCK.js} +175 -15
- package/dist/chunk-3VQSUWCK.js.map +1 -0
- package/dist/{chunk-4XR2JHCP.js → chunk-5BXJRO5O.js} +1816 -551
- package/dist/chunk-5BXJRO5O.js.map +1 -0
- package/dist/{chunk-NZLW6EX7.js → chunk-DXEWBTJB.js} +2 -2
- package/dist/{chunk-Q52IJELT.js → chunk-GBDTBHUQ.js} +602 -263
- package/dist/chunk-GBDTBHUQ.js.map +1 -0
- package/dist/chunk-KCK27QBP.js +11 -0
- package/dist/chunk-KCK27QBP.js.map +1 -0
- package/dist/chunk-MKZ374OJ.js +179 -0
- package/dist/chunk-MKZ374OJ.js.map +1 -0
- package/dist/{chunk-3IACYIU2.js → chunk-RT6WZ3P7.js} +2 -2
- package/dist/chunk-TLTYXWW7.js +7 -0
- package/dist/chunk-TLTYXWW7.js.map +1 -0
- package/dist/{chunk-EKXZI26R.js → chunk-WCWJPIUQ.js} +58 -6
- package/dist/chunk-WCWJPIUQ.js.map +1 -0
- package/dist/{chunk-6XJUP55A.js → chunk-WKWCOV5P.js} +3 -3
- package/dist/chunk-WKWCOV5P.js.map +1 -0
- package/dist/{chunk-CF3DXJWM.js → chunk-WTV7NQHO.js} +731 -715
- package/dist/chunk-WTV7NQHO.js.map +1 -0
- package/dist/{computed.types.d-DpKIYO6e.d.ts → computed.types.d-CJarqC6s.d.ts} +12 -0
- package/dist/corrections.d.ts +14 -4
- package/dist/corrections.js +82 -7
- package/dist/corrections.js.map +1 -1
- package/dist/elements.d.ts +1 -1
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +26 -24
- package/dist/interactions.js +14 -15
- package/dist/item.css +81 -0
- package/dist/item.d.ts +1 -1
- package/dist/item.js +4 -4
- package/dist/loader.d.ts +1 -1
- package/dist/processing.d.ts +29 -3
- package/dist/processing.js +3 -2
- package/dist/qti-components-jsx.d.ts +7883 -7250
- package/dist/{qti-condition-expression.d-aMvBvpc6.d.ts → qti-condition-expression.d-CYwXOUb1.d.ts} +1 -1
- package/dist/{qti-expression.d-BietT_8b.d.ts → qti-expression.d-B_-m9emA.d.ts} +11 -1
- package/dist/{qti-feedback.d-DZbad0RN.d.ts → qti-feedback.d-B1EIF-fU.d.ts} +1 -0
- package/dist/{qti-test.d-_YAlhDbt.d.ts → qti-test.d-C6lCEMRB.d.ts} +38 -3
- package/dist/test.d.ts +5 -5
- package/dist/test.js +7 -5
- package/package.json +9 -9
- package/dist/chunk-4XR2JHCP.js.map +0 -1
- package/dist/chunk-6XJUP55A.js.map +0 -1
- package/dist/chunk-CF3DXJWM.js.map +0 -1
- package/dist/chunk-EKXZI26R.js.map +0 -1
- package/dist/chunk-IXPDMYKH.js +0 -1420
- package/dist/chunk-IXPDMYKH.js.map +0 -1
- package/dist/chunk-IYC7LZV6.js +0 -7
- package/dist/chunk-IYC7LZV6.js.map +0 -1
- package/dist/chunk-MK2I3MQB.js.map +0 -1
- package/dist/chunk-Q52IJELT.js.map +0 -1
- /package/dist/{chunk-TXIB3SKC.js.map → chunk-3MQNPN7A.js.map} +0 -0
- /package/dist/{chunk-6V3A7NQP.js.map → chunk-3NPCS4IT.js.map} +0 -0
- /package/dist/{chunk-NZLW6EX7.js.map → chunk-DXEWBTJB.js.map} +0 -0
- /package/dist/{chunk-3IACYIU2.js.map → chunk-RT6WZ3P7.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as ItemContext, V as VariableDeclaration, f as ResponseVariable } from './item.types.d-QU7LljEK.js';
|
|
2
1
|
import * as lit from 'lit';
|
|
3
2
|
import { LitElement } from 'lit';
|
|
3
|
+
import { I as ItemContext, V as VariableDeclaration, f as ResponseVariable } from './item.types.d-QU7LljEK.js';
|
|
4
4
|
import { Q as QtiContext, a as QtiContextType } from './qti.context.d-CejJMlfZ.js';
|
|
5
5
|
|
|
6
6
|
interface TestContext {
|
|
@@ -25,6 +25,16 @@ declare abstract class QtiExpression<T> extends LitElement implements QtiExpress
|
|
|
25
25
|
protected getResult(): Readonly<T>;
|
|
26
26
|
protected context?: ItemContext;
|
|
27
27
|
protected qtiContext?: QtiContext;
|
|
28
|
+
protected _testContext?: TestContext;
|
|
29
|
+
/**
|
|
30
|
+
* Resolve a declared variable from the closest available scope: item-level
|
|
31
|
+
* first, then the test-level outcome variables. So an expression used in an
|
|
32
|
+
* assessmentTest's outcome processing can reference a test-level outcome
|
|
33
|
+
* (e.g. a total set earlier in the same run) — which the QTI variable
|
|
34
|
+
* expression is specified to do. Returns null when unresolved rather than
|
|
35
|
+
* throwing, so callers degrade gracefully.
|
|
36
|
+
*/
|
|
37
|
+
protected resolveVariable(identifier: string): VariableDeclaration<string | string[] | null> | null;
|
|
28
38
|
getVariables: () => (ResponseVariable | VariableDeclaration<QtiContextType>)[];
|
|
29
39
|
}
|
|
30
40
|
|
|
@@ -3,9 +3,9 @@ import { LitElement, PropertyValues, nothing } from 'lit';
|
|
|
3
3
|
import { t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-BL7GGFJj.js';
|
|
4
4
|
import { QtiAssessmentItem, QtiModalFeedback } from './elements.js';
|
|
5
5
|
import { TemplateFunction } from '@heximal/templates';
|
|
6
|
-
import { T as TestContext, Q as QtiExpression, a as QtiExpressionBase } from './qti-expression.d-
|
|
6
|
+
import { T as TestContext, Q as QtiExpression, a as QtiExpressionBase } from './qti-expression.d-B_-m9emA.js';
|
|
7
7
|
import { g as VariableValue, b as OutcomeVariable, V as VariableDeclaration } from './item.types.d-QU7LljEK.js';
|
|
8
|
-
import { S as SessionContext, C as ComputedContext, a as ComputedItem, V as View } from './computed.types.d-
|
|
8
|
+
import { S as SessionContext, C as ComputedContext, a as ComputedItem, V as View } from './computed.types.d-CJarqC6s.js';
|
|
9
9
|
import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
|
|
10
10
|
import { Q as QtiRuleBase } from './qti-rule-base.d-ajOnfGXY.js';
|
|
11
11
|
import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
@@ -66,6 +66,27 @@ declare global {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* @summary The qti-item-session-control element contains configurations relating to flow of test sessions.
|
|
71
|
+
* @documentation https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/imsqti_asi_v3p0p1_infomodel_v1p0.html#Derived_ItemSessionControl
|
|
72
|
+
*/
|
|
73
|
+
declare class QtiItemSessionControl extends LitElement {
|
|
74
|
+
maxAttempts: number;
|
|
75
|
+
showFeedback: boolean;
|
|
76
|
+
allowReview: boolean;
|
|
77
|
+
showSolution: boolean;
|
|
78
|
+
allowComment: boolean;
|
|
79
|
+
allowSkipping: boolean;
|
|
80
|
+
validateResponses: boolean;
|
|
81
|
+
connectedCallback(): Promise<void>;
|
|
82
|
+
render(): lit.TemplateResult<1>;
|
|
83
|
+
}
|
|
84
|
+
declare global {
|
|
85
|
+
interface HTMLElementTagNameMap {
|
|
86
|
+
'qti-item-session-control': QtiItemSessionControl;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
69
90
|
declare class QtiOutcomeProcessing extends LitElement {
|
|
70
91
|
static styles: lit.CSSResult[];
|
|
71
92
|
render(): lit.TemplateResult<1>;
|
|
@@ -191,6 +212,15 @@ declare class TestNavigation extends LitElement {
|
|
|
191
212
|
protected computedContext: ComputedContext;
|
|
192
213
|
autoScoreItems: boolean;
|
|
193
214
|
constructor();
|
|
215
|
+
/**
|
|
216
|
+
* Extension point for presentation packages reacting to an ended attempt.
|
|
217
|
+
* `done` is settled here — from the freshly latched optimality and the
|
|
218
|
+
* session-control cascade — because the computed context only catches up on
|
|
219
|
+
* the next update, after this event has finished bubbling.
|
|
220
|
+
*/
|
|
221
|
+
protected afterAttemptEnded(_assessmentItem: QtiAssessmentItem | undefined, _computedItem: ComputedItem | undefined, _done: boolean): void;
|
|
222
|
+
/** The computed-context entry for an item, from the session-control cascade. */
|
|
223
|
+
protected computedItemFor(identifier: string): ComputedItem | undefined;
|
|
194
224
|
/** The currently active assessment item, exposed for optional presentation extensions. */
|
|
195
225
|
protected get activeAssessmentItem(): QtiAssessmentItem | undefined;
|
|
196
226
|
render(): lit.TemplateResult<1>;
|
|
@@ -298,8 +328,13 @@ declare global {
|
|
|
298
328
|
}
|
|
299
329
|
|
|
300
330
|
declare class TestEndAttempt extends LitElement {
|
|
331
|
+
protected computedContext: ComputedContext;
|
|
332
|
+
_internalDisabled: boolean;
|
|
333
|
+
_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext): void;
|
|
301
334
|
static styles: lit.CSSResult;
|
|
302
335
|
constructor();
|
|
336
|
+
willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
|
|
337
|
+
checkDisabled(): void;
|
|
303
338
|
render(): lit.TemplateResult<1>;
|
|
304
339
|
}
|
|
305
340
|
declare global {
|
|
@@ -699,4 +734,4 @@ declare global {
|
|
|
699
734
|
}
|
|
700
735
|
}
|
|
701
736
|
|
|
702
|
-
export {
|
|
737
|
+
export { TestTtsPause as A, TestTtsPlay as B, TestTtsPrev as C, TestTtsResume as D, TestTtsStop as E, TestView as F, TestViewToggle as G, type TtsContext as H, type ITestNavigationMixin as I, ttsContext as J, QtiAssessmentItemRef as Q, type SpeechState as S, TestCheckItem as T, QtiAssessmentSection as a, QtiAssessmentTest as b, QtiItemSessionControl as c, QtiOutcomeProcessing as d, QtiOutcomeProcessingProcessor as e, QtiTest as f, QtiTestFeedback as g, QtiTestPart as h, QtiTestVariables as i, QtiTestVariablesExpression as j, TestContainer as k, TestEndAttempt as l, TestItemLink as m, TestItemToSpeech as n, TestNavigation as o, TestNext as p, TestPagingButtonsStamp as q, TestPrev as r, TestPrintContext as s, TestPrintVariables as t, TestScoringButtons as u, TestScoringFeedback as v, TestSectionButtonsStamp as w, TestSectionLink as x, TestStamp as y, TestTtsNext as z };
|
package/dist/test.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { I as ITestNavigationMixin } from './qti-test.d-
|
|
2
|
-
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, c as
|
|
1
|
+
import { I as ITestNavigationMixin } from './qti-test.d-C6lCEMRB.js';
|
|
2
|
+
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, c as QtiItemSessionControl, d as QtiOutcomeProcessing, e as QtiOutcomeProcessingProcessor, f as QtiTest, g as QtiTestFeedback, h as QtiTestPart, i as QtiTestVariables, j as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, k as TestContainer, l as TestEndAttempt, m as TestItemLink, n as TestItemToSpeech, o as TestNavigation, p as TestNext, q as TestPagingButtonsStamp, r as TestPrev, s as TestPrintContext, t as TestPrintVariables, u as TestScoringButtons, v as TestScoringFeedback, w as TestSectionButtonsStamp, x as TestSectionLink, y as TestStamp, z as TestTtsNext, A as TestTtsPause, B as TestTtsPlay, C as TestTtsPrev, D as TestTtsResume, E as TestTtsStop, F as TestView, G as TestViewToggle, H as TtsContext, J as ttsContext } from './qti-test.d-C6lCEMRB.js';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
4
|
import { g as VariableValue, b as OutcomeVariable, V as VariableDeclaration } from './item.types.d-QU7LljEK.js';
|
|
5
|
-
import { S as SessionContext } from './computed.types.d-
|
|
5
|
+
import { S as SessionContext } from './computed.types.d-CJarqC6s.js';
|
|
6
6
|
import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
|
|
7
|
-
import { T as TestContext } from './qti-expression.d-
|
|
7
|
+
import { T as TestContext } from './qti-expression.d-B_-m9emA.js';
|
|
8
8
|
import './qti-transform-test.d-BL7GGFJj.js';
|
|
9
9
|
import './elements.js';
|
|
10
10
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
11
|
-
import './qti-feedback.d-
|
|
11
|
+
import './qti-feedback.d-B1EIF-fU.js';
|
|
12
12
|
import './qti-rule-base.d-ajOnfGXY.js';
|
|
13
13
|
import '@heximal/templates';
|
|
14
14
|
import './qti.context.d-CejJMlfZ.js';
|
package/dist/test.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-DXEWBTJB.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssessmentItemRef,
|
|
4
4
|
QtiAssessmentSection,
|
|
5
5
|
QtiAssessmentTest,
|
|
6
|
+
QtiItemSessionControl,
|
|
6
7
|
QtiOutcomeProcessing,
|
|
7
8
|
QtiOutcomeProcessingProcessor,
|
|
8
9
|
QtiTest,
|
|
@@ -35,16 +36,17 @@ import {
|
|
|
35
36
|
TestView,
|
|
36
37
|
TestViewToggle,
|
|
37
38
|
ttsContext
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-GBDTBHUQ.js";
|
|
40
|
+
import "./chunk-WKWCOV5P.js";
|
|
41
|
+
import "./chunk-TLTYXWW7.js";
|
|
41
42
|
import "./chunk-4DB4SC5K.js";
|
|
42
43
|
import "./chunk-HDEG6BAZ.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-WCWJPIUQ.js";
|
|
44
45
|
export {
|
|
45
46
|
QtiAssessmentItemRef,
|
|
46
47
|
QtiAssessmentSection,
|
|
47
48
|
QtiAssessmentTest,
|
|
49
|
+
QtiItemSessionControl,
|
|
48
50
|
QtiOutcomeProcessing,
|
|
49
51
|
QtiOutcomeProcessingProcessor,
|
|
50
52
|
QtiTest,
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/qti-components",
|
|
3
3
|
"description": "QTI component utilities",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.0",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@heximal/templates": "^0.1.5",
|
|
8
8
|
"@lit/context": "^1.1.6",
|
|
9
|
-
"lit": "^3.3.
|
|
9
|
+
"lit": "^3.3.3"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@qti-components/base": "^2.
|
|
13
|
-
"@qti-components/corrections": "^0.
|
|
14
|
-
"@qti-components/elements": "^1.
|
|
12
|
+
"@qti-components/base": "^2.2.0",
|
|
13
|
+
"@qti-components/corrections": "^0.3.0",
|
|
14
|
+
"@qti-components/elements": "^1.7.0",
|
|
15
15
|
"@qti-components/interactions": "^1.10.4",
|
|
16
16
|
"@qti-components/item": "^1.4.3",
|
|
17
|
-
"@qti-components/
|
|
18
|
-
"@qti-components/processing": "^1.
|
|
17
|
+
"@qti-components/loader": "^1.3.3",
|
|
18
|
+
"@qti-components/processing": "^1.5.0",
|
|
19
|
+
"@qti-components/test": "^1.6.1",
|
|
19
20
|
"@qti-components/theme": "^2.1.0",
|
|
20
|
-
"@qti-components/transformers": "^1.7.2"
|
|
21
|
-
"@qti-components/loader": "^1.3.3"
|
|
21
|
+
"@qti-components/transformers": "^1.7.2"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|