@citolab/qti-components 10.0.0-next.6 → 10.0.0-next.8
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 +1774 -222
- package/dist/base.d.ts +10 -10
- package/dist/base.js +7 -1
- package/dist/{chunk-GZVLORVJ.js → chunk-3TUGZHKB.js} +2 -2
- package/dist/{chunk-7IRGNPCV.js → chunk-BIU7J6B7.js} +16 -5
- package/dist/{chunk-7IRGNPCV.js.map → chunk-BIU7J6B7.js.map} +1 -1
- package/dist/{chunk-Z545U7O3.js → chunk-DJHH5D3E.js} +2 -2
- package/dist/{chunk-R7ZCUQU2.js → chunk-LCGPLQLE.js} +40 -4
- package/dist/chunk-LCGPLQLE.js.map +1 -0
- package/dist/{chunk-CXTHPEUN.js → chunk-M7X6TWSX.js} +2 -2
- package/dist/{chunk-W4NUIWRO.js → chunk-Q3C7XFVS.js} +2 -2
- package/dist/{chunk-VY2DM47N.js → chunk-RSSEBILM.js} +215 -124
- package/dist/chunk-RSSEBILM.js.map +1 -0
- package/dist/{chunk-O5HGNYB2.js → chunk-RWMY7KRT.js} +2 -2
- package/dist/{chunk-JZZMY3FA.js → chunk-T7YSBBAA.js} +37 -1
- package/dist/chunk-T7YSBBAA.js.map +1 -0
- package/dist/{chunk-WAHTXGBK.js → chunk-X7ZKR5D7.js} +6 -6
- package/dist/{chunk-QU23PPEZ.js → chunk-YOCOLMGB.js} +40 -5
- package/dist/{chunk-QU23PPEZ.js.map → chunk-YOCOLMGB.js.map} +1 -1
- package/dist/{chunk-KXYSYDIM.js → chunk-YOUQARPK.js} +2 -2
- package/dist/{computed.types.d-DvxBgnze.d.ts → computed.types.d-IXACuBr7.d.ts} +1 -1
- package/dist/corrections.d.ts +9 -9
- package/dist/corrections.js +7 -7
- package/dist/elements.d.ts +2 -2
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.js +22 -12
- package/dist/interactions.d.ts +4 -4
- package/dist/interactions.js +7 -3
- package/dist/item.d.ts +4 -4
- package/dist/item.js +3 -3
- package/dist/{item.types.d-B55QkJ92.d.ts → item.types.d-DuVR0ZVK.d.ts} +7 -1
- package/dist/loader.d.ts +2 -2
- package/dist/processing.d.ts +10 -3
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +21 -26
- package/dist/{qti-condition-expression.d-VJH6cWxf.d.ts → qti-condition-expression.d-B-T1NNl0.d.ts} +1 -1
- package/dist/{qti-expression.d-BPxEp8HU.d.ts → qti-expression.d-B-Cfbqlb.d.ts} +1 -1
- package/dist/{qti-feedback.d-wMYNVkkj.d.ts → qti-feedback.d-DbzPSJuK.d.ts} +1 -1
- package/dist/{qti-item.d-klsgIEKQ.d.ts → qti-item.d-B1gffYCL.d.ts} +1 -1
- package/dist/{qti-test.d-Cra3sS-2.d.ts → qti-test.d-CHIATIDg.d.ts} +4 -4
- package/dist/{qti-text-entry-interaction.d-828kFi2A.d.ts → qti-text-entry-interaction.d-utFyp1DH.d.ts} +14 -18
- package/dist/{interaction.d-g6XG0T0Z.d.ts → record.d-wB9uYs-j.d.ts} +34 -2
- package/dist/{session.context.d-DYAdqSer.d.ts → session.context.d-DW09Lrie.d.ts} +1 -1
- package/dist/test.d.ts +7 -7
- package/dist/test.js +4 -4
- package/package.json +9 -9
- package/dist/chunk-JZZMY3FA.js.map +0 -1
- package/dist/chunk-R7ZCUQU2.js.map +0 -1
- package/dist/chunk-VY2DM47N.js.map +0 -1
- /package/dist/{chunk-GZVLORVJ.js.map → chunk-3TUGZHKB.js.map} +0 -0
- /package/dist/{chunk-Z545U7O3.js.map → chunk-DJHH5D3E.js.map} +0 -0
- /package/dist/{chunk-CXTHPEUN.js.map → chunk-M7X6TWSX.js.map} +0 -0
- /package/dist/{chunk-W4NUIWRO.js.map → chunk-Q3C7XFVS.js.map} +0 -0
- /package/dist/{chunk-O5HGNYB2.js.map → chunk-RWMY7KRT.js.map} +0 -0
- /package/dist/{chunk-WAHTXGBK.js.map → chunk-X7ZKR5D7.js.map} +0 -0
- /package/dist/{chunk-KXYSYDIM.js.map → chunk-YOUQARPK.js.map} +0 -0
package/dist/base.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { C as ComputedItemContext } from './session.context.d-
|
|
2
|
-
export { I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-
|
|
3
|
-
import { C as ComputedContext } from './computed.types.d-
|
|
4
|
-
export { a as ComputedItem } from './computed.types.d-
|
|
1
|
+
import { C as ComputedItemContext } from './session.context.d-DW09Lrie.js';
|
|
2
|
+
export { I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-DW09Lrie.js';
|
|
3
|
+
import { C as ComputedContext } from './computed.types.d-IXACuBr7.js';
|
|
4
|
+
export { a as ComputedItem } from './computed.types.d-IXACuBr7.js';
|
|
5
5
|
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BvU9r-Mg.js';
|
|
6
|
-
export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './
|
|
7
|
-
import { b as ItemContext, B as BaseType } from './item.types.d-
|
|
8
|
-
export { C as Calculate, a as Cardinality, I as InterpolationTableEntry, M as Multiple, O as Ordered, c as OutcomeVariable, Q as QtiAreaMapEntry, d as QtiAreaMapping, e as QtiMapEntry, f as QtiMapping, R as ResponseInteraction, g as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, h as VariableValue, i as areaShape, j as directedPair, k as float, l as integer, m as itemContextVariables } from './item.types.d-
|
|
6
|
+
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, i as inferRecordFieldBaseType, c as interactionContext, d as isRecordValue, r as readRecordFieldValues } from './record.d-wB9uYs-j.js';
|
|
7
|
+
import { b as ItemContext, B as BaseType } from './item.types.d-DuVR0ZVK.js';
|
|
8
|
+
export { C as Calculate, a as Cardinality, I as InterpolationTableEntry, M as Multiple, O as Ordered, c as OutcomeVariable, Q as QtiAreaMapEntry, d as QtiAreaMapping, e as QtiMapEntry, f as QtiMapping, R as ResponseInteraction, g as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, h as VariableValue, i as areaShape, j as directedPair, k as float, l as integer, m as itemContextVariables } from './item.types.d-DuVR0ZVK.js';
|
|
9
9
|
export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
10
|
-
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-
|
|
10
|
+
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-B-Cfbqlb.js';
|
|
11
11
|
import * as lit from 'lit';
|
|
12
|
-
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-
|
|
13
|
-
export { Q as QtiConditionExpression } from './qti-condition-expression.d-
|
|
12
|
+
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-DbzPSJuK.js';
|
|
13
|
+
export { Q as QtiConditionExpression } from './qti-condition-expression.d-B-T1NNl0.js';
|
|
14
14
|
export { D as DirectedPair, I as Identifier, P as Point, R as ResponseValue, i as iterResponseValues, p as parsePair, a as parsePoint, b as parseResponseAttribute, r as responseAttributeConverter, s as serializePair, c as serializePoint, d as serializeResponseAttribute } from './response.d-_8y4kjGP.js';
|
|
15
15
|
export { F as FormAssociatedInteraction, I as IInteraction, R as ReadonlyInteraction, a as RegisteredInteraction, b as ResettableInteraction, c as ResponseIdentifiedInteraction, d as ResponseInteractionElement, V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
16
16
|
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-Bdzg8eGH.js';
|
package/dist/base.js
CHANGED
|
@@ -22,8 +22,10 @@ import {
|
|
|
22
22
|
decimalSeparator,
|
|
23
23
|
dropRegion,
|
|
24
24
|
getCustomOperator,
|
|
25
|
+
inferRecordFieldBaseType,
|
|
25
26
|
installCustomStateSetFallback,
|
|
26
27
|
interactionContext,
|
|
28
|
+
isRecordValue,
|
|
27
29
|
isSeed,
|
|
28
30
|
itemContext,
|
|
29
31
|
itemContextVariables,
|
|
@@ -32,6 +34,7 @@ import {
|
|
|
32
34
|
parsePoint,
|
|
33
35
|
parseResponseAttribute,
|
|
34
36
|
qtiContext,
|
|
37
|
+
readRecordFieldValues,
|
|
35
38
|
registerCustomOperator,
|
|
36
39
|
removeDoubleSlashes,
|
|
37
40
|
responseAttributeConverter,
|
|
@@ -42,7 +45,7 @@ import {
|
|
|
42
45
|
testContext,
|
|
43
46
|
unregisterCustomOperator,
|
|
44
47
|
validationMessage
|
|
45
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-T7YSBBAA.js";
|
|
46
49
|
export {
|
|
47
50
|
CustomStateSetShim,
|
|
48
51
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -67,8 +70,10 @@ export {
|
|
|
67
70
|
decimalSeparator,
|
|
68
71
|
dropRegion,
|
|
69
72
|
getCustomOperator,
|
|
73
|
+
inferRecordFieldBaseType,
|
|
70
74
|
installCustomStateSetFallback,
|
|
71
75
|
interactionContext,
|
|
76
|
+
isRecordValue,
|
|
72
77
|
isSeed,
|
|
73
78
|
itemContext,
|
|
74
79
|
itemContextVariables,
|
|
@@ -77,6 +82,7 @@ export {
|
|
|
77
82
|
parsePoint,
|
|
78
83
|
parseResponseAttribute,
|
|
79
84
|
qtiContext,
|
|
85
|
+
readRecordFieldValues,
|
|
80
86
|
registerCustomOperator,
|
|
81
87
|
removeDoubleSlashes,
|
|
82
88
|
responseAttributeConverter,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
computedItemContext,
|
|
12
12
|
configContext,
|
|
13
13
|
qtiContext
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-T7YSBBAA.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-3TUGZHKB.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
dispatchDeclared,
|
|
4
4
|
listenDeclared,
|
|
5
5
|
listenPublic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YOCOLMGB.js";
|
|
7
7
|
import {
|
|
8
8
|
item_css_default
|
|
9
9
|
} from "./chunk-QVZLJY75.js";
|
|
@@ -21,10 +21,11 @@ import {
|
|
|
21
21
|
QtiExpression,
|
|
22
22
|
computedContext,
|
|
23
23
|
configContext,
|
|
24
|
+
isRecordValue,
|
|
24
25
|
qtiContext,
|
|
25
26
|
sessionContext,
|
|
26
27
|
testContext
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-T7YSBBAA.js";
|
|
28
29
|
|
|
29
30
|
// ../qti-test/dist/components/qti-assessment-item-ref/qti-assessment-item-ref.js
|
|
30
31
|
import { LitElement, nothing as nothing2 } from "lit";
|
|
@@ -4151,6 +4152,16 @@ var __decorate23 = function(decorators, target, key, desc) {
|
|
|
4151
4152
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4152
4153
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4153
4154
|
};
|
|
4155
|
+
var formatVariableValue = (value) => {
|
|
4156
|
+
if (value === null || value === void 0)
|
|
4157
|
+
return "";
|
|
4158
|
+
if (Array.isArray(value))
|
|
4159
|
+
return value.map(formatVariableValue).join(", ");
|
|
4160
|
+
if (isRecordValue(value)) {
|
|
4161
|
+
return Object.entries(value).map(([field, fieldValue]) => `${field}: ${formatVariableValue(fieldValue)}`).join(", ");
|
|
4162
|
+
}
|
|
4163
|
+
return String(value);
|
|
4164
|
+
};
|
|
4154
4165
|
var TestPrintVariables = class extends LitElement21 {
|
|
4155
4166
|
static {
|
|
4156
4167
|
this.styles = css13`
|
|
@@ -4196,13 +4207,13 @@ var TestPrintVariables = class extends LitElement21 {
|
|
|
4196
4207
|
</thead>
|
|
4197
4208
|
<tbody>
|
|
4198
4209
|
${variables.map((v) => {
|
|
4199
|
-
const correctResponse =
|
|
4210
|
+
const correctResponse = formatVariableValue(v.correctResponse);
|
|
4200
4211
|
const mapEntries = v.mapping?.mapEntries?.map((m) => `${m.mapKey}=${m.mappedValue}pt`).join(", ") || "";
|
|
4201
4212
|
const areaMapEntries = v.areaMapping?.areaMapEntries?.map((m) => `${m.shape}(${m.coords})=${m.mappedValue}pt`).join(", ") || "";
|
|
4202
4213
|
return html20`
|
|
4203
4214
|
<tr>
|
|
4204
4215
|
<td>${v.identifier}</td>
|
|
4205
|
-
<td>${
|
|
4216
|
+
<td>${formatVariableValue(v.value)}</td>
|
|
4206
4217
|
<td>${v.cardinality}</td>
|
|
4207
4218
|
<td>${v.baseType}</td>
|
|
4208
4219
|
<td>${correctResponse || mapEntries || areaMapEntries}</td>
|
|
@@ -5455,4 +5466,4 @@ export {
|
|
|
5455
5466
|
* Portions Copyright (c) 2013, the Dart project authors.
|
|
5456
5467
|
*)
|
|
5457
5468
|
*/
|
|
5458
|
-
//# sourceMappingURL=chunk-
|
|
5469
|
+
//# sourceMappingURL=chunk-BIU7J6B7.js.map
|