@citolab/qti-components 10.0.0-next.19 → 10.0.0-next.20
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 +176 -176
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/{chunk-4UO6AGJ6.js → chunk-2A52V5TQ.js} +3 -3
- package/dist/{chunk-Y7RSSGDY.js → chunk-5BP2A7BI.js} +2 -2
- package/dist/{chunk-WTGUKDVH.js → chunk-DAESCCLR.js} +2 -2
- package/dist/{chunk-QKCVC4HF.js → chunk-GJWA6LLT.js} +2 -2
- package/dist/{chunk-XBBTYGCX.js → chunk-GPC53O7P.js} +3 -3
- package/dist/{chunk-XBBTYGCX.js.map → chunk-GPC53O7P.js.map} +1 -1
- package/dist/{chunk-MFKH6BZM.js → chunk-H6DO5UHC.js} +3 -3
- package/dist/{chunk-HSOILZC6.js → chunk-KQ2LED4X.js} +2 -2
- package/dist/{chunk-3FQZRJFH.js → chunk-LPYZVKHX.js} +2 -2
- package/dist/{chunk-JE6X3IZT.js → chunk-ORQFZNJW.js} +192 -64
- package/dist/chunk-ORQFZNJW.js.map +1 -0
- package/dist/{chunk-QECECKEC.js → chunk-TSJGL6FI.js} +2 -2
- package/dist/{chunk-MXY66QOH.js → chunk-TZCOXFPB.js} +2 -2
- package/dist/{chunk-DAOLVUTR.js → chunk-XWRZP2RM.js} +2 -2
- package/dist/{chunk-YRXH3YMJ.js → chunk-Y6Q3F2S7.js} +7 -7
- package/dist/{chunk-YRXH3YMJ.js.map → chunk-Y6Q3F2S7.js.map} +1 -1
- package/dist/{chunk-LORYM4U2.js → chunk-ZRORBAHB.js} +3 -3
- package/dist/chunk-ZRORBAHB.js.map +1 -0
- package/dist/computed.types.d-6Ht-HNRx.d.ts +80 -0
- package/dist/corrections.d.ts +2 -2
- package/dist/corrections.js +8 -8
- package/dist/elements.js +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +14 -14
- package/dist/interactions.js +3 -3
- package/dist/item.js +4 -4
- package/dist/loader.js +2 -2
- package/dist/processing.js +3 -3
- package/dist/{qti-test-state-BAf5AmJ2.d.ts → qti-test-state-CF9S8X9C.d.ts} +1 -1
- package/dist/{qti-test.d-CRqJF2DM.d.ts → qti-test.d-sskv-dEN.d.ts} +1 -1
- package/dist/test-plugin-api.d.ts +2 -2
- package/dist/test.d.ts +4 -4
- package/dist/test.js +5 -5
- package/dist/transformers.js +1 -1
- package/package.json +6 -5
- package/dist/chunk-JE6X3IZT.js.map +0 -1
- package/dist/chunk-LORYM4U2.js.map +0 -1
- package/dist/computed.types.d-D4wskgi0.d.ts +0 -51
- /package/dist/{chunk-4UO6AGJ6.js.map → chunk-2A52V5TQ.js.map} +0 -0
- /package/dist/{chunk-Y7RSSGDY.js.map → chunk-5BP2A7BI.js.map} +0 -0
- /package/dist/{chunk-WTGUKDVH.js.map → chunk-DAESCCLR.js.map} +0 -0
- /package/dist/{chunk-QKCVC4HF.js.map → chunk-GJWA6LLT.js.map} +0 -0
- /package/dist/{chunk-MFKH6BZM.js.map → chunk-H6DO5UHC.js.map} +0 -0
- /package/dist/{chunk-HSOILZC6.js.map → chunk-KQ2LED4X.js.map} +0 -0
- /package/dist/{chunk-3FQZRJFH.js.map → chunk-LPYZVKHX.js.map} +0 -0
- /package/dist/{chunk-QECECKEC.js.map → chunk-TSJGL6FI.js.map} +0 -0
- /package/dist/{chunk-MXY66QOH.js.map → chunk-TZCOXFPB.js.map} +0 -0
- /package/dist/{chunk-DAOLVUTR.js.map → chunk-XWRZP2RM.js.map} +0 -0
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ComputedItemContext } from './session.context.d-9gRdGK4T.js';
|
|
2
2
|
export { I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-9gRdGK4T.js';
|
|
3
|
-
import { C as ComputedContext } from './computed.types.d-
|
|
4
|
-
export { a as ComputedItem } from './computed.types.d-
|
|
3
|
+
import { C as ComputedContext } from './computed.types.d-6Ht-HNRx.js';
|
|
4
|
+
export { a as ComputedItem, S as SessionControl } from './computed.types.d-6Ht-HNRx.js';
|
|
5
5
|
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-Dm11aAuw.js';
|
|
6
6
|
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, V as ValidityKind, c as ValidityTrigger, i as inferRecordFieldBaseType, d as interactionContext, e as isRecordValue, r as readRecordFieldValues } from './record.d-N1Bq7e1f.js';
|
|
7
7
|
import { I as ItemContext } from './item.types.d-Zc6ZQDhu.js';
|
package/dist/base.js
CHANGED
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-4DB4SC5K.js";
|
|
7
7
|
import {
|
|
8
8
|
qtiTransformItem
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZRORBAHB.js";
|
|
10
10
|
import {
|
|
11
11
|
computedItemContext,
|
|
12
12
|
configContext,
|
|
13
13
|
qtiContext
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GPC53O7P.js";
|
|
15
15
|
|
|
16
16
|
// ../qti-item/dist/components/item-container/item-container.js
|
|
17
17
|
import { consume } from "@lit/context";
|
|
@@ -349,4 +349,4 @@ export {
|
|
|
349
349
|
QtiItem,
|
|
350
350
|
qtiItemElements
|
|
351
351
|
};
|
|
352
|
-
//# sourceMappingURL=chunk-
|
|
352
|
+
//# sourceMappingURL=chunk-2A52V5TQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
qtiProcessingElements
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LPYZVKHX.js";
|
|
4
4
|
|
|
5
5
|
// ../qti-processing/dist/register.js
|
|
6
6
|
for (const { tag, ctor } of qtiProcessingElements) {
|
|
@@ -8,4 +8,4 @@ for (const { tag, ctor } of qtiProcessingElements) {
|
|
|
8
8
|
customElements.define(tag, ctor);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-5BP2A7BI.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
elements8,
|
|
22
22
|
elements9,
|
|
23
23
|
qtiInteractionElements
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TZCOXFPB.js";
|
|
25
25
|
|
|
26
26
|
// ../qti-interactions/dist/register-all.js
|
|
27
27
|
for (const { tag, ctor } of qtiInteractionElements) {
|
|
@@ -176,4 +176,4 @@ for (const { tag, ctor } of elements21) {
|
|
|
176
176
|
customElements.define(tag, ctor);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-DAESCCLR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
qtiTestElements
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ORQFZNJW.js";
|
|
4
4
|
|
|
5
5
|
// ../qti-test/dist/register.js
|
|
6
6
|
for (const { tag, ctor } of qtiTestElements) {
|
|
@@ -8,4 +8,4 @@ for (const { tag, ctor } of qtiTestElements) {
|
|
|
8
8
|
customElements.define(tag, ctor);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-GJWA6LLT.js.map
|
|
@@ -987,11 +987,11 @@ var QtiFeedback = class extends LitElement4 {
|
|
|
987
987
|
if (!this._computedContext)
|
|
988
988
|
return true;
|
|
989
989
|
const activeItem = this._computedContext.testParts?.find((tp) => tp.active)?.sections.flatMap((s) => s.items).find((i) => i.active);
|
|
990
|
-
if (!activeItem || activeItem.showFeedback)
|
|
990
|
+
if (!activeItem || activeItem.sessionControl?.showFeedback)
|
|
991
991
|
return true;
|
|
992
992
|
if (activeItem.adaptive)
|
|
993
993
|
return activeItem.completionStatus !== "completed";
|
|
994
|
-
const maxAttempts = activeItem.maxAttempts ?? 1;
|
|
994
|
+
const maxAttempts = activeItem.sessionControl?.maxAttempts ?? 1;
|
|
995
995
|
if (maxAttempts <= 0)
|
|
996
996
|
return true;
|
|
997
997
|
const numAttempts = Number(this._context?.variables?.find((v) => v.identifier === "numAttempts")?.value) || 0;
|
|
@@ -1400,4 +1400,4 @@ export {
|
|
|
1400
1400
|
getCustomOperator,
|
|
1401
1401
|
ScoringHelper
|
|
1402
1402
|
};
|
|
1403
|
-
//# sourceMappingURL=chunk-
|
|
1403
|
+
//# sourceMappingURL=chunk-GPC53O7P.js.map
|