@citolab/qti-components 7.28.0 → 8.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 +6178 -2946
- package/dist/base.d.ts +9 -50
- package/dist/base.js +31 -6
- package/dist/chunk-5QYII4OZ.js +1374 -0
- package/dist/chunk-5QYII4OZ.js.map +1 -0
- package/dist/{chunk-FK2IVMS3.js → chunk-5SJS36BI.js} +4264 -3647
- package/dist/chunk-5SJS36BI.js.map +1 -0
- package/dist/chunk-64XSIBGO.js +241 -0
- package/dist/chunk-64XSIBGO.js.map +1 -0
- package/dist/{chunk-F6WP6WEF.js → chunk-7V4HJFHW.js} +3 -3
- package/dist/{chunk-F6WP6WEF.js.map → chunk-7V4HJFHW.js.map} +1 -1
- package/dist/{chunk-Z2SUBRH5.js → chunk-H3J7LFRO.js} +834 -1005
- package/dist/chunk-H3J7LFRO.js.map +1 -0
- package/dist/chunk-IJD53WY6.js +719 -0
- package/dist/chunk-IJD53WY6.js.map +1 -0
- package/dist/chunk-KYEZRYO6.js +1608 -0
- package/dist/chunk-KYEZRYO6.js.map +1 -0
- package/dist/{chunk-PINGOK2F.js → chunk-LZJHHZQ2.js} +1979 -1775
- package/dist/chunk-LZJHHZQ2.js.map +1 -0
- package/dist/chunk-MGF5F3S2.js +11 -0
- package/dist/chunk-MGF5F3S2.js.map +1 -0
- package/dist/chunk-MJVPNN7W.js +11 -0
- package/dist/chunk-MJVPNN7W.js.map +1 -0
- package/dist/{chunk-YLIYPNMK.js → chunk-NA2N2WSG.js} +1303 -1193
- package/dist/chunk-NA2N2WSG.js.map +1 -0
- package/dist/chunk-V5G7X53Y.js +11 -0
- package/dist/chunk-V5G7X53Y.js.map +1 -0
- package/dist/chunk-W4QZPCNC.js +294 -0
- package/dist/chunk-W4QZPCNC.js.map +1 -0
- package/dist/chunk-WCQ26LV7.js +102 -0
- package/dist/chunk-WCQ26LV7.js.map +1 -0
- package/dist/{chunk-OQ77SE2W.js → chunk-WVVMNF74.js} +851 -925
- package/dist/chunk-WVVMNF74.js.map +1 -0
- package/dist/{chunk-N7S3GNUP.js → chunk-X3E5HXG2.js} +2 -2
- package/dist/corrections.d.ts +1 -0
- package/dist/corrections.js +84 -0
- package/dist/elements.d.ts +1 -399
- package/dist/elements.js +6 -5
- package/dist/index.d.ts +9 -23
- package/dist/index.js +189 -76
- package/dist/interactions.d.ts +1 -915
- package/dist/interactions.js +19 -15
- package/dist/item.css +4118 -1920
- package/dist/item.d.ts +1 -127
- package/dist/item.js +6 -11
- package/dist/loader.d.ts +1 -22
- package/dist/loader.js +2 -3
- package/dist/processing.d.ts +1 -731
- package/dist/processing.js +2 -3
- package/dist/qti-components-jsx.d.ts +5394 -2718
- package/dist/test.d.ts +1 -537
- package/dist/test.js +26 -11
- package/dist/transformers.d.ts +1 -18
- package/dist/transformers.js +1 -2
- package/package.json +20 -16
- package/custom-elements.json +0 -43161
- package/dist/chunk-BPIDAS3T.js +0 -495
- package/dist/chunk-BPIDAS3T.js.map +0 -1
- package/dist/chunk-FK2IVMS3.js.map +0 -1
- package/dist/chunk-LQZCSHN5.js +0 -3673
- package/dist/chunk-LQZCSHN5.js.map +0 -1
- package/dist/chunk-OQ77SE2W.js.map +0 -1
- package/dist/chunk-PINGOK2F.js.map +0 -1
- package/dist/chunk-QXBXORM3.js +0 -27
- package/dist/chunk-U2FLSHK7.js +0 -510
- package/dist/chunk-U2FLSHK7.js.map +0 -1
- package/dist/chunk-YLIYPNMK.js.map +0 -1
- package/dist/chunk-Z2SUBRH5.js.map +0 -1
- package/dist/computed-item.context-DfsW_96S.d.ts +0 -22
- package/dist/computed.context-DHbxad0N.d.ts +0 -45
- package/dist/config.context-BjZ2bZSY.d.ts +0 -42
- package/dist/interaction-Bgzlw7Iu.d.ts +0 -110
- package/dist/item.context-CkUeDcaO.d.ts +0 -15
- package/dist/qti-condition-expression-B1BYmCcq.d.ts +0 -26
- package/dist/qti-feedback-ChmXhZuf.d.ts +0 -21
- package/dist/qti-rule-base-ajOnfGXY.d.ts +0 -16
- package/dist/qti-transform-test-DMx816H0.d.ts +0 -68
- package/dist/qti.context-B8PSyIWm.d.ts +0 -14
- package/dist/test.context-CByZZjkR.d.ts +0 -15
- package/dist/variables-CMYcDbyW.d.ts +0 -70
- /package/dist/{chunk-N7S3GNUP.js.map → chunk-X3E5HXG2.js.map} +0 -0
- /package/dist/{chunk-QXBXORM3.js.map → corrections.js.map} +0 -0
package/dist/base.d.ts
CHANGED
|
@@ -1,50 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { Q as QtiConditionExpression, a as QtiExpression, b as QtiExpressionBase } from './qti-condition-expression-B1BYmCcq.js';
|
|
11
|
-
import { B as BaseType } from './variables-CMYcDbyW.js';
|
|
12
|
-
export { C as Calculate, a as Cardinality, M as Multiple, O as Ordered, b as OutcomeVariable, Q as QtiAreaMapEntry, c as QtiAreaMapping, d as QtiMapEntry, e as QtiMapping, R as ResponseInteraction, f as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, g as VariableValue, h as areaShape, i as directedPair, j as float, k as integer } from './variables-CMYcDbyW.js';
|
|
13
|
-
export { Q as QtiRuleBase, a as QtiRuleElement } from './qti-rule-base-ajOnfGXY.js';
|
|
14
|
-
import 'lit';
|
|
15
|
-
|
|
16
|
-
declare const itemContext: {
|
|
17
|
-
__context__: ItemContext;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
declare class ScoringHelper {
|
|
21
|
-
/**
|
|
22
|
-
* Checks if a given point is within a specified area.
|
|
23
|
-
* @param point The point to test, represented as a string "x y" (e.g., "102 113").
|
|
24
|
-
* @param areaKey The area definition, including shape and coordinates (e.g., "circle,102,113,16").
|
|
25
|
-
* @param baseType The base type of the response, must be "point" for this method to proceed.
|
|
26
|
-
* @returns True if the point is within the area; false otherwise.
|
|
27
|
-
*/
|
|
28
|
-
static isPointInArea(point: string, areaKey: string, baseType: string): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Checks if a point is inside a polygon using the ray-casting algorithm.
|
|
31
|
-
* @param point The point to test.
|
|
32
|
-
* @param vertices The vertices of the polygon in order (array of {x, y} objects).
|
|
33
|
-
* @returns True if the point is inside the polygon; false otherwise.
|
|
34
|
-
*/
|
|
35
|
-
static isPointInPolygon(point: {
|
|
36
|
-
x: number;
|
|
37
|
-
y: number;
|
|
38
|
-
}, vertices: {
|
|
39
|
-
x: number;
|
|
40
|
-
y: number;
|
|
41
|
-
}[]): boolean;
|
|
42
|
-
static compareSingleValues(value1: Readonly<string>, value2: Readonly<string>, baseType: BaseType): boolean;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare const decimalSeparator: () => string;
|
|
46
|
-
declare const convertNumberToUniversalFormat: (number: number | string) => string;
|
|
47
|
-
declare function IsNullOrUndefined(value: unknown): boolean;
|
|
48
|
-
declare function removeDoubleSlashes(str: string): string;
|
|
49
|
-
|
|
50
|
-
export { BaseType, IsNullOrUndefined, ItemContext, ScoringHelper, convertNumberToUniversalFormat, decimalSeparator, itemContext, removeDoubleSlashes };
|
|
1
|
+
export * from '@qti-components/base';
|
|
2
|
+
import '@qti-components/corrections';
|
|
3
|
+
import '@qti-components/elements';
|
|
4
|
+
import '@qti-components/test';
|
|
5
|
+
import '@qti-components/item';
|
|
6
|
+
import '@qti-components/interactions';
|
|
7
|
+
import '@qti-components/transformers';
|
|
8
|
+
import '@qti-components/loader';
|
|
9
|
+
import '@qti-components/processing';
|
package/dist/base.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Correctness,
|
|
3
2
|
INITIAL_SESSION_CONTEXT,
|
|
4
3
|
INITIAL_TEST_CONTEXT,
|
|
5
4
|
Interaction,
|
|
@@ -10,21 +9,33 @@ import {
|
|
|
10
9
|
QtiRuleElement,
|
|
11
10
|
QtiVariableDeclaration,
|
|
12
11
|
ScoringHelper,
|
|
12
|
+
asSeed,
|
|
13
|
+
boxSizing,
|
|
13
14
|
computedContext,
|
|
14
15
|
computedItemContext,
|
|
15
16
|
configContext,
|
|
16
17
|
convertNumberToUniversalFormat,
|
|
17
18
|
decimalSeparator,
|
|
19
|
+
dropRegion,
|
|
20
|
+
interactionContext,
|
|
21
|
+
isSeed,
|
|
18
22
|
itemContext,
|
|
19
23
|
itemContextVariables,
|
|
24
|
+
iterResponseValues,
|
|
25
|
+
parsePair,
|
|
26
|
+
parsePoint,
|
|
27
|
+
parseResponseAttribute,
|
|
20
28
|
qtiContext,
|
|
21
29
|
removeDoubleSlashes,
|
|
30
|
+
responseAttributeConverter,
|
|
31
|
+
serializePair,
|
|
32
|
+
serializePoint,
|
|
33
|
+
serializeResponseAttribute,
|
|
22
34
|
sessionContext,
|
|
23
|
-
testContext
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
testContext,
|
|
36
|
+
validationMessage
|
|
37
|
+
} from "./chunk-H3J7LFRO.js";
|
|
26
38
|
export {
|
|
27
|
-
Correctness,
|
|
28
39
|
INITIAL_SESSION_CONTEXT,
|
|
29
40
|
INITIAL_TEST_CONTEXT,
|
|
30
41
|
Interaction,
|
|
@@ -35,16 +46,30 @@ export {
|
|
|
35
46
|
QtiRuleElement,
|
|
36
47
|
QtiVariableDeclaration,
|
|
37
48
|
ScoringHelper,
|
|
49
|
+
asSeed,
|
|
50
|
+
boxSizing,
|
|
38
51
|
computedContext,
|
|
39
52
|
computedItemContext,
|
|
40
53
|
configContext,
|
|
41
54
|
convertNumberToUniversalFormat,
|
|
42
55
|
decimalSeparator,
|
|
56
|
+
dropRegion,
|
|
57
|
+
interactionContext,
|
|
58
|
+
isSeed,
|
|
43
59
|
itemContext,
|
|
44
60
|
itemContextVariables,
|
|
61
|
+
iterResponseValues,
|
|
62
|
+
parsePair,
|
|
63
|
+
parsePoint,
|
|
64
|
+
parseResponseAttribute,
|
|
45
65
|
qtiContext,
|
|
46
66
|
removeDoubleSlashes,
|
|
67
|
+
responseAttributeConverter,
|
|
68
|
+
serializePair,
|
|
69
|
+
serializePoint,
|
|
70
|
+
serializeResponseAttribute,
|
|
47
71
|
sessionContext,
|
|
48
|
-
testContext
|
|
72
|
+
testContext,
|
|
73
|
+
validationMessage
|
|
49
74
|
};
|
|
50
75
|
//# sourceMappingURL=base.js.map
|