@citolab/qti-components 10.0.0-next.20 → 10.0.0-next.21
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 +174 -174
- package/dist/{chunk-Y6Q3F2S7.js → chunk-55WWIRLN.js} +2 -2
- package/dist/{chunk-GJWA6LLT.js → chunk-JIDSFFFD.js} +2 -2
- package/dist/{chunk-ORQFZNJW.js → chunk-TB2OI3ED.js} +102 -86
- package/dist/chunk-TB2OI3ED.js.map +1 -0
- package/dist/corrections.d.ts +1 -1
- package/dist/corrections.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/{qti-test.d-sskv-dEN.d.ts → qti-test.d-DBT-YpRu.d.ts} +37 -0
- package/dist/test.d.ts +2 -2
- package/dist/test.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-ORQFZNJW.js.map +0 -1
- /package/dist/{chunk-Y6Q3F2S7.js.map → chunk-55WWIRLN.js.map} +0 -0
- /package/dist/{chunk-GJWA6LLT.js.map → chunk-JIDSFFFD.js.map} +0 -0
package/dist/corrections.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { QtiAssessmentItem } from './elements.js';
|
|
|
7
7
|
import { Q as QtiItem } from './qti-item.d-CxP6KtCH.js';
|
|
8
8
|
import './public-events.d-3dGip9pd.js';
|
|
9
9
|
import { V as View, C as ComputedItemContext } from './session.context.d-9gRdGK4T.js';
|
|
10
|
-
import { l as QtiTest, r as TestNavigation } from './qti-test.d-
|
|
10
|
+
import { l as QtiTest, r as TestNavigation } from './qti-test.d-DBT-YpRu.js';
|
|
11
11
|
import { a as ComputedItem, C as ComputedContext } from './computed.types.d-6Ht-HNRx.js';
|
|
12
12
|
import './config.context.d-Dm11aAuw.js';
|
|
13
13
|
import './interaction.interface.d-CvjHM2bi.js';
|
package/dist/corrections.js
CHANGED
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
TestNavigationCorrection,
|
|
34
34
|
TestShowCorrectResponse,
|
|
35
35
|
correctionPart
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-55WWIRLN.js";
|
|
37
37
|
import {
|
|
38
38
|
qtiTestElements
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TB2OI3ED.js";
|
|
40
40
|
import "./chunk-J6VX4N7M.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestContainer, q as TestEndAttempt, r as TestNavigation, s as TestNext, t as TestPrev, u as TestSubmit } from './qti-test.d-
|
|
1
|
+
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestContainer, q as TestEndAttempt, r as TestNavigation, s as TestNext, t as TestPrev, u as TestSubmit } from './qti-test.d-DBT-YpRu.js';
|
|
2
2
|
export { IMyQtiTest, IQtiTest, ITestProcessingMixin, pluginElements } from './test.js';
|
|
3
3
|
export { Q as QTI_TEST_STATE_VERSION, a as QtiTestPluginState, b as QtiTestState, c as QtiTestStateItem, d as QtiTestStateSession, e as QtiTestStateValue, p as pluginState } from './qti-test-state-CF9S8X9C.js';
|
|
4
4
|
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-CxP6KtCH.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-JIDSFFFD.js";
|
|
2
2
|
import {
|
|
3
3
|
pluginState
|
|
4
4
|
} from "./chunk-DJ7PB252.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
TestNavigationCorrection,
|
|
38
38
|
TestShowCorrectResponse,
|
|
39
39
|
correctionPart
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-55WWIRLN.js";
|
|
41
41
|
import {
|
|
42
42
|
QTI_TEST_STATE_VERSION,
|
|
43
43
|
QtiAssessmentItemRef,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
TestPrev,
|
|
63
63
|
TestSubmit,
|
|
64
64
|
pluginElements
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-TB2OI3ED.js";
|
|
66
66
|
import "./chunk-J6VX4N7M.js";
|
|
67
67
|
import "./chunk-TSJGL6FI.js";
|
|
68
68
|
import {
|
|
@@ -398,6 +398,41 @@ interface ITestStateMixin {
|
|
|
398
398
|
state: QtiTestState;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
/**
|
|
402
|
+
* What a `qti-assessment-item` says about itself, read from its XML when it is fetched: no live
|
|
403
|
+
* state, nothing that needs the item rendered. Plain JSON, so a server can read the same file.
|
|
404
|
+
*
|
|
405
|
+
* Experimental (0.x): roadmap 1 phase T1; see `plans/test-model.md`.
|
|
406
|
+
*/
|
|
407
|
+
interface ItemFacts {
|
|
408
|
+
/** The item's own `identifier`, which may differ from the item-ref's. */
|
|
409
|
+
identifier: string;
|
|
410
|
+
/** `adaptive`; false when absent (XSD default). */
|
|
411
|
+
adaptive: boolean;
|
|
412
|
+
/** `time-dependent`; false when absent. */
|
|
413
|
+
timeDependent: boolean;
|
|
414
|
+
/**
|
|
415
|
+
* A response declaration has a correct response, or a mapping with a map entry, or an area
|
|
416
|
+
* mapping with an area-map entry: something to compare a response with.
|
|
417
|
+
*/
|
|
418
|
+
hasCorrectResponse: boolean;
|
|
419
|
+
/** The item has `qti-response-processing`. */
|
|
420
|
+
hasResponseProcessing: boolean;
|
|
421
|
+
/** `external-scored` on the `SCORE` outcome declaration, or null when not externally scored. */
|
|
422
|
+
externalScored: 'human' | 'externalMachine' | null;
|
|
423
|
+
/** `label`, or null when absent. */
|
|
424
|
+
label: string | null;
|
|
425
|
+
/** `title`; empty when absent. */
|
|
426
|
+
title: string;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* The facts of every item fetched so far, by item-ref identifier, read from the item XML when
|
|
431
|
+
* `qti-test` loads it (`readItemFacts`). `test-navigation` puts them on the `computedContext` items.
|
|
432
|
+
* A new map on every change, so subscribers are notified. Internal: not exported, not API.
|
|
433
|
+
*/
|
|
434
|
+
type ItemFactsByRef = ReadonlyMap<string, ItemFacts>;
|
|
435
|
+
|
|
401
436
|
declare class TestNavigation extends LitElement {
|
|
402
437
|
#private;
|
|
403
438
|
identifier: string | undefined;
|
|
@@ -417,6 +452,8 @@ declare class TestNavigation extends LitElement {
|
|
|
417
452
|
configContext: ConfigContext;
|
|
418
453
|
protected _testContext?: TestContext;
|
|
419
454
|
protected _sessionContext?: SessionContext;
|
|
455
|
+
/** Read from each item's XML when `qti-test` fetches it; see `itemFactsContext`. */
|
|
456
|
+
protected _itemFacts?: ItemFactsByRef;
|
|
420
457
|
protected computedContext: ComputedContext;
|
|
421
458
|
autoScoreItems: boolean;
|
|
422
459
|
constructor();
|
package/dist/test.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as TestSubmit, v as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-
|
|
2
|
-
export { b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestContainer, q as TestEndAttempt, r as TestNavigation, s as TestNext, t as TestPrev } from './qti-test.d-
|
|
1
|
+
import { u as TestSubmit, v as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-DBT-YpRu.js';
|
|
2
|
+
export { b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestContainer, q as TestEndAttempt, r as TestNavigation, s as TestNext, t as TestPrev } from './qti-test.d-DBT-YpRu.js';
|
|
3
3
|
export { Q as QTI_TEST_STATE_VERSION, a as QtiTestPluginState, b as QtiTestState, c as QtiTestStateItem, d as QtiTestStateSession, e as QtiTestStateValue, p as pluginState } from './qti-test-state-CF9S8X9C.js';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { b as OutcomeVariable, V as VariableDeclaration } from './variables.d-DWHlTszN.js';
|
package/dist/test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-JIDSFFFD.js";
|
|
2
2
|
import {
|
|
3
3
|
pluginState
|
|
4
4
|
} from "./chunk-DJ7PB252.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
TestPrev,
|
|
27
27
|
TestSubmit,
|
|
28
28
|
pluginElements
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TB2OI3ED.js";
|
|
30
30
|
import "./chunk-J6VX4N7M.js";
|
|
31
31
|
import "./chunk-H6DO5UHC.js";
|
|
32
32
|
import "./chunk-UCXLDQYA.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/qti-components",
|
|
3
3
|
"description": "QTI component utilities",
|
|
4
|
-
"version": "10.0.0-next.
|
|
4
|
+
"version": "10.0.0-next.21",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@heximal/templates": "^0.1.5",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@qti-components/base": "^3.0.0-next.8",
|
|
14
14
|
"@qti-components/corrections": "^1.0.0-next.11",
|
|
15
|
-
"@qti-components/delivery": "^0.1.0-next.
|
|
15
|
+
"@qti-components/delivery": "^0.1.0-next.1",
|
|
16
16
|
"@qti-components/elements": "^2.0.0-next.7",
|
|
17
17
|
"@qti-components/interactions": "^1.10.5-next.8",
|
|
18
18
|
"@qti-components/item": "^1.5.1-next.7",
|
|
19
19
|
"@qti-components/loader": "^1.3.4-next.2",
|
|
20
20
|
"@qti-components/processing": "^1.6.1-next.5",
|
|
21
|
-
"@qti-components/test": "^2.0.0-next.
|
|
21
|
+
"@qti-components/test": "^2.0.0-next.17",
|
|
22
22
|
"@qti-components/theme": "^3.0.0-next.6",
|
|
23
23
|
"@qti-components/transformers": "^1.8.0-next.1"
|
|
24
24
|
},
|