@citolab/qti-components 6.0.20 → 6.0.23
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/dist/audience-context-444478f4.d.ts +8 -0
- package/dist/chunk-3O4URV5U.cjs +1 -0
- package/dist/chunk-5GG2XAUT.js +1 -0
- package/dist/chunk-6RJ7J4AE.cjs +1 -0
- package/dist/{chunk-5RZQOWDC.js → chunk-EHTDKAYF.js} +27 -5
- package/dist/chunk-GGEPFBR7.cjs +1 -0
- package/dist/chunk-HOQW4KDA.cjs +1 -0
- package/dist/{chunk-AQI672QR.js → chunk-VI35S4EM.cjs} +28 -6
- package/dist/context/index.cjs +1 -0
- package/dist/context/index.d.cts +1 -0
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.js +1 -1
- package/dist/custom-elements.json +653 -600
- package/dist/decorators/index.cjs +1 -0
- package/dist/decorators/index.d.cts +37 -0
- package/dist/index.cjs +2911 -0
- package/dist/index.css +25 -3
- package/dist/index.d.cts +1052 -0
- package/dist/index.d.ts +38 -41
- package/dist/index.js +98 -66
- package/dist/{qti-assessment-item-f1fcf393.d.ts → qti-assessment-item-e8a67444.d.ts} +17 -28
- package/dist/qti-components/index.cjs +419 -0
- package/dist/qti-components/index.d.cts +561 -0
- package/dist/qti-components/index.d.ts +24 -14
- package/dist/qti-components/index.js +76 -66
- package/dist/qti-item/index.cjs +1 -0
- package/dist/qti-item/index.d.cts +4 -0
- package/dist/qti-item/index.d.ts +2 -2
- package/dist/qti-item/index.js +1 -1
- package/dist/{qti-item-8c26fa9e.d.ts → qti-item-77742afa.d.ts} +1 -1
- package/dist/qti-item-react/index.cjs +1 -0
- package/dist/qti-item-react/index.d.cts +30 -0
- package/dist/qti-item-react/index.d.ts +3 -3
- package/dist/qti-item-react/index.js +1 -1
- package/dist/{qti-simple-choice-3e910d03.d.ts → qti-simple-choice-b4b79072.d.ts} +2 -2
- package/dist/qti-transform/index.cjs +17 -0
- package/dist/qti-transform/index.d.cts +17 -0
- package/package.json +25 -15
- package/dist/chunk-FIJLDR56.js +0 -2204
- package/dist/chunk-HQKT4SJF.js +0 -1
- package/dist/chunk-RPGALUIV.js +0 -1
- package/dist/chunk-UD6XWG6V.js +0 -2205
- package/dist/context-a957e50e.d.ts +0 -9
- package/dist/qti-assessment-item-68bcc951.d.ts +0 -121
- package/dist/qti-item-e1fc6a70.d.ts +0 -30
- package/dist/qti-simple-choice-ca9b86db.d.ts +0 -352
- package/dist/qti-simple-choice-d1392d78.d.ts +0 -352
|
@@ -14,7 +14,7 @@ interface Calculate {
|
|
|
14
14
|
}
|
|
15
15
|
type float = number;
|
|
16
16
|
type integer = number;
|
|
17
|
-
type BaseType = 'boolean' | 'directedPair' | 'float' | 'integer' | 'string' | 'identifier' | 'pair';
|
|
17
|
+
type BaseType = 'boolean' | 'directedPair' | 'duration' | 'float' | 'integer' | 'string' | 'identifier' | 'pair';
|
|
18
18
|
type Multiple = string | string[][];
|
|
19
19
|
type Ordered = string | string[][];
|
|
20
20
|
type Cardinality = 'multiple' | 'ordered' | 'single';
|
|
@@ -36,35 +36,21 @@ declare class QtiMapping extends LitElement {
|
|
|
36
36
|
}[];
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
declare class ResponseVariable implements VariableDeclaration<string | string[]> {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
constructor({ mapping, correctResponse, cardinality, baseType, identifier, }: {
|
|
48
|
-
mapping: QtiMapping;
|
|
49
|
-
correctResponse: string | string[];
|
|
50
|
-
cardinality: Cardinality;
|
|
51
|
-
baseType: BaseType;
|
|
52
|
-
identifier: string;
|
|
53
|
-
});
|
|
54
|
-
get mapping(): QtiMapping;
|
|
55
|
-
get correctResponse(): string | string[];
|
|
56
|
-
get cardinality(): Cardinality;
|
|
57
|
-
get baseType(): BaseType;
|
|
58
|
-
get identifier(): string;
|
|
59
|
-
get value(): string | string[];
|
|
60
|
-
set value(val: string | string[]);
|
|
39
|
+
declare class ResponseVariable implements VariableDeclaration<string | string[] | undefined> {
|
|
40
|
+
identifier: string;
|
|
41
|
+
cardinality: Cardinality;
|
|
42
|
+
baseType: BaseType;
|
|
43
|
+
value: string | string[] | undefined;
|
|
44
|
+
candidateResponse: string | string[];
|
|
45
|
+
mapping: QtiMapping;
|
|
46
|
+
correctResponse: string | string[];
|
|
61
47
|
}
|
|
62
48
|
|
|
63
|
-
declare class OutcomeVariable implements VariableDeclaration<number> {
|
|
49
|
+
declare class OutcomeVariable implements VariableDeclaration<number | string | string[] | undefined> {
|
|
64
50
|
identifier: string;
|
|
65
51
|
cardinality: Cardinality;
|
|
66
52
|
baseType: BaseType;
|
|
67
|
-
value: number;
|
|
53
|
+
value: number | string | string[] | undefined;
|
|
68
54
|
}
|
|
69
55
|
|
|
70
56
|
/**
|
|
@@ -79,7 +65,8 @@ declare class OutcomeVariable implements VariableDeclaration<number> {
|
|
|
79
65
|
* @slot - The default slot where all the other QTI 3 item structures go.
|
|
80
66
|
*
|
|
81
67
|
* @event qti-interaction-changed - Emitted when an interaction is changed.
|
|
82
|
-
* @event qti-outcome-changed - Emitted when
|
|
68
|
+
* @event qti-outcome-changed - Emitted when an outcome has changed.
|
|
69
|
+
* @event qti-response-processing - Emitted when response-processing is called.
|
|
83
70
|
*
|
|
84
71
|
*/
|
|
85
72
|
declare class QtiAssessmentItem extends LitElement {
|
|
@@ -90,6 +77,7 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
90
77
|
readonly: boolean;
|
|
91
78
|
title: string;
|
|
92
79
|
identifier: string;
|
|
80
|
+
private _numAttempts;
|
|
93
81
|
render(): lit_html.TemplateResult<1>;
|
|
94
82
|
_handleDisabledChange: (_: boolean, disabled: boolean) => void;
|
|
95
83
|
_handleReadonlyChange: (_: boolean, readonly: boolean) => void;
|
|
@@ -102,14 +90,15 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
102
90
|
set responses(myResponses: ResponseInteraction[]);
|
|
103
91
|
resetInteractions(): void;
|
|
104
92
|
validateResponses(): boolean;
|
|
105
|
-
|
|
93
|
+
getVariable(identifier: string): VariableDeclaration<number | string | string[] | undefined>;
|
|
106
94
|
getResponse(identifier: string): ResponseVariable | null;
|
|
107
95
|
getOutcome(identifier: string): OutcomeVariable | null;
|
|
108
96
|
private registerFeedbackElement;
|
|
109
97
|
private registerInteractionElement;
|
|
110
98
|
private interactionResponse;
|
|
111
99
|
private outcomeChanged;
|
|
112
|
-
|
|
100
|
+
private showFeedback;
|
|
101
|
+
setOutcomeValue(identifier: string, value: string | number): void;
|
|
113
102
|
}
|
|
114
103
|
declare global {
|
|
115
104
|
interface HTMLElementTagNameMap {
|