@citolab/qti-components 8.0.0 → 8.0.1
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 +591 -217
- package/dist/base.d.ts +135 -9
- package/dist/{chunk-MJVPNN7W.js → chunk-3AJOQCDU.js} +2 -2
- package/dist/chunk-7HC5SMCU.js +102 -0
- package/dist/chunk-7HC5SMCU.js.map +1 -0
- package/dist/{chunk-MGF5F3S2.js → chunk-CAO4JRLY.js} +2 -2
- package/dist/{chunk-5SJS36BI.js → chunk-F4BNJWYN.js} +1 -1
- package/dist/{chunk-5SJS36BI.js.map → chunk-F4BNJWYN.js.map} +1 -1
- package/dist/{chunk-5QYII4OZ.js → chunk-LVBIQDPM.js} +2 -2
- package/dist/{chunk-W4QZPCNC.js → chunk-QECOPVPO.js} +2 -2
- package/dist/{chunk-LZJHHZQ2.js → chunk-RXGDQDOV.js} +177 -173
- package/dist/chunk-RXGDQDOV.js.map +1 -0
- package/dist/{chunk-KYEZRYO6.js → chunk-XU7HNT4F.js} +4 -4
- package/dist/computed-item.types.d-BKZdSLLJ.d.ts +19 -0
- package/dist/computed.types.d-rKLSPvVG.d.ts +42 -0
- package/dist/config.context.d-BvU9r-Mg.d.ts +91 -0
- package/dist/corrections.d.ts +432 -1
- package/dist/corrections.js +5 -5
- package/dist/elements.d.ts +393 -1
- package/dist/index.d.ts +58 -9
- package/dist/index.js +16 -8
- package/dist/interaction.d-D4MstYRz.d.ts +115 -0
- package/dist/interaction.interface.d-CvjHM2bi.d.ts +46 -0
- package/dist/interactions.d.ts +1569 -1
- package/dist/interactions.js +2 -2
- package/dist/item.css +588 -214
- package/dist/item.d.ts +92 -1
- package/dist/item.js +3 -3
- package/dist/item.types.d-QU7LljEK.d.ts +82 -0
- package/dist/loader.d.ts +22 -1
- package/dist/processing.d.ts +730 -1
- package/dist/qti-components-jsx.d.ts +221 -231
- package/dist/qti-components-jsx.js +1 -0
- package/dist/qti-condition-expression.d-aMvBvpc6.d.ts +8 -0
- package/dist/qti-expression.d-BietT_8b.d.ts +31 -0
- package/dist/qti-feedback.d-DZbad0RN.d.ts +21 -0
- package/dist/qti-rule-base.d-ajOnfGXY.d.ts +16 -0
- package/dist/qti-transform-test.d-BL7GGFJj.d.ts +70 -0
- package/dist/qti.context.d-CejJMlfZ.d.ts +50 -0
- package/dist/response.d-_8y4kjGP.d.ts +106 -0
- package/dist/test.d.ts +699 -1
- package/dist/test.js +11 -3
- package/dist/transformers.d.ts +18 -1
- package/package.json +11 -8
- package/dist/chunk-LZJHHZQ2.js.map +0 -1
- package/dist/chunk-WCQ26LV7.js +0 -102
- package/dist/chunk-WCQ26LV7.js.map +0 -1
- /package/dist/{chunk-MJVPNN7W.js.map → chunk-3AJOQCDU.js.map} +0 -0
- /package/dist/{chunk-MGF5F3S2.js.map → chunk-CAO4JRLY.js.map} +0 -0
- /package/dist/{chunk-5QYII4OZ.js.map → chunk-LVBIQDPM.js.map} +0 -0
- /package/dist/{chunk-W4QZPCNC.js.map → chunk-QECOPVPO.js.map} +0 -0
- /package/dist/{chunk-KYEZRYO6.js.map → chunk-XU7HNT4F.js.map} +0 -0
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import type { Interaction } from "
|
|
2
|
-
import type { QtiVariableDeclaration } from "
|
|
3
|
-
import type { QtiExpression } from "
|
|
4
|
-
import type { QtiFeedback } from "
|
|
5
|
-
import type { QtiRuleElement } from "
|
|
6
|
-
import type { ItemContainer } from "
|
|
7
|
-
import type { ItemPrintVariables } from "
|
|
8
|
-
import type { QtiTemplateConstraint } from "
|
|
9
|
-
import type { QtiTemplateProcessing } from "
|
|
10
|
-
import type { QtiResponseProcessing } from "
|
|
11
|
-
import type { QtiAssessmentItem } from "
|
|
1
|
+
import type { Interaction } from "./base.js";
|
|
2
|
+
import type { QtiVariableDeclaration } from "./base.js";
|
|
3
|
+
import type { QtiExpression } from "./base.js";
|
|
4
|
+
import type { QtiFeedback } from "./base.js";
|
|
5
|
+
import type { QtiRuleElement } from "./base.js";
|
|
6
|
+
import type { ItemContainer } from "./item.js";
|
|
7
|
+
import type { ItemPrintVariables } from "./item.js";
|
|
8
|
+
import type { QtiTemplateConstraint } from "./elements.js";
|
|
9
|
+
import type { QtiTemplateProcessing } from "./elements.js";
|
|
10
|
+
import type { QtiResponseProcessing } from "./elements.js";
|
|
11
|
+
import type { QtiAssessmentItem } from "./elements.js";
|
|
12
12
|
import type {
|
|
13
13
|
QtiAssessmentStimulusRef,
|
|
14
14
|
QtiAssessmentStimulusRefConnectedEvent,
|
|
15
|
-
} from "
|
|
16
|
-
import type { QtiCompanionMaterialsInfo } from "
|
|
17
|
-
import type { QtiContentBody } from "
|
|
18
|
-
import type { QtiContextDeclaration } from "
|
|
19
|
-
import type { QtiCustomOperator } from "
|
|
20
|
-
import type { QtiFeedbackBlock } from "
|
|
21
|
-
import type { QtiFeedbackInline } from "
|
|
22
|
-
import type { QtiItemBody } from "
|
|
23
|
-
import type { QtiModalFeedback } from "
|
|
24
|
-
import type { QtiOutcomeDeclaration } from "
|
|
25
|
-
import type { QtiResponseDeclaration } from "
|
|
26
|
-
import type { QtiRubricBlock } from "
|
|
27
|
-
import type { QtiStylesheet } from "
|
|
28
|
-
import type { QtiTemplateDeclaration } from "
|
|
29
|
-
import type { QtiItem } from "
|
|
30
|
-
import type { QtiAssessmentItemRef } from "
|
|
31
|
-
import type { QtiAssessmentSection } from "
|
|
32
|
-
import type { QtiAssessmentTest } from "
|
|
33
|
-
import type { QtiTestPart } from "
|
|
34
|
-
import type { TestNavigation } from "
|
|
35
|
-
import type { TestContainer } from "
|
|
15
|
+
} from "./elements.js";
|
|
16
|
+
import type { QtiCompanionMaterialsInfo } from "./elements.js";
|
|
17
|
+
import type { QtiContentBody } from "./elements.js";
|
|
18
|
+
import type { QtiContextDeclaration } from "./elements.js";
|
|
19
|
+
import type { QtiCustomOperator } from "./elements.js";
|
|
20
|
+
import type { QtiFeedbackBlock } from "./elements.js";
|
|
21
|
+
import type { QtiFeedbackInline } from "./elements.js";
|
|
22
|
+
import type { QtiItemBody } from "./elements.js";
|
|
23
|
+
import type { QtiModalFeedback } from "./elements.js";
|
|
24
|
+
import type { QtiOutcomeDeclaration } from "./elements.js";
|
|
25
|
+
import type { QtiResponseDeclaration } from "./elements.js";
|
|
26
|
+
import type { QtiRubricBlock } from "./elements.js";
|
|
27
|
+
import type { QtiStylesheet } from "./elements.js";
|
|
28
|
+
import type { QtiTemplateDeclaration } from "./elements.js";
|
|
29
|
+
import type { QtiItem } from "./item.js";
|
|
30
|
+
import type { QtiAssessmentItemRef } from "./test.js";
|
|
31
|
+
import type { QtiAssessmentSection } from "./test.js";
|
|
32
|
+
import type { QtiAssessmentTest } from "./test.js";
|
|
33
|
+
import type { QtiTestPart } from "./test.js";
|
|
34
|
+
import type { TestNavigation } from "./test.js";
|
|
35
|
+
import type { TestContainer } from "./test.js";
|
|
36
36
|
import type {
|
|
37
37
|
QtiOutcomeProcessing,
|
|
38
38
|
QtiOutcomeProcessingProcessor,
|
|
39
|
-
} from "
|
|
40
|
-
import type { QtiTest } from "
|
|
41
|
-
import type { QtiTestFeedback } from "
|
|
42
|
-
import type {
|
|
43
|
-
import type {
|
|
44
|
-
import type {
|
|
45
|
-
import type {
|
|
46
|
-
import type {
|
|
47
|
-
import type {
|
|
48
|
-
import type {
|
|
49
|
-
import type {
|
|
50
|
-
import type {
|
|
51
|
-
import type {
|
|
52
|
-
import type {
|
|
53
|
-
import type {
|
|
54
|
-
import type {
|
|
55
|
-
import type {
|
|
56
|
-
import type {
|
|
39
|
+
} from "./test.js";
|
|
40
|
+
import type { QtiTest } from "./test.js";
|
|
41
|
+
import type { QtiTestFeedback } from "./test.js";
|
|
42
|
+
import type { QtiTestVariables, QtiTestVariablesExpression } from "./test.js";
|
|
43
|
+
import type { TestNext } from "./test.js";
|
|
44
|
+
import type { TestPrev } from "./test.js";
|
|
45
|
+
import type { TestView } from "./test.js";
|
|
46
|
+
import type { TestItemLink } from "./test.js";
|
|
47
|
+
import type { TestEndAttempt } from "./test.js";
|
|
48
|
+
import type { TestPagingButtonsStamp } from "./test.js";
|
|
49
|
+
import type { TestPrintVariables } from "./test.js";
|
|
50
|
+
import type { TestSectionButtonsStamp } from "./test.js";
|
|
51
|
+
import type { TestSectionLink } from "./test.js";
|
|
52
|
+
import type { TestPrintContext } from "./test.js";
|
|
53
|
+
import type { TestStamp } from "./test.js";
|
|
54
|
+
import type { TestScoringButtons } from "./test.js";
|
|
55
|
+
import type { TestViewToggle } from "./test.js";
|
|
56
|
+
import type { TestScoringFeedback } from "./test.js";
|
|
57
|
+
import type { TestCheckItem } from "./test.js";
|
|
57
58
|
import type {
|
|
58
59
|
TestTtsStop,
|
|
59
60
|
TestTtsResume,
|
|
@@ -64,136 +65,123 @@ import type {
|
|
|
64
65
|
TestItemToSpeech,
|
|
65
66
|
SpeechState,
|
|
66
67
|
ttsContext,
|
|
67
|
-
} from "
|
|
68
|
-
import type {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
} from "
|
|
72
|
-
import type {
|
|
73
|
-
import type {
|
|
74
|
-
import type {
|
|
75
|
-
import type {
|
|
76
|
-
import type {
|
|
77
|
-
import type {
|
|
78
|
-
import type {
|
|
79
|
-
import type {
|
|
80
|
-
import type {
|
|
81
|
-
import type {
|
|
82
|
-
import type {
|
|
83
|
-
import type {
|
|
84
|
-
import type {
|
|
85
|
-
import type {
|
|
86
|
-
import type {
|
|
87
|
-
import type {
|
|
88
|
-
import type {
|
|
89
|
-
import type {
|
|
90
|
-
import type {
|
|
91
|
-
import type {
|
|
92
|
-
import type {
|
|
93
|
-
import type {
|
|
94
|
-
import type {
|
|
95
|
-
import type {
|
|
96
|
-
import type {
|
|
97
|
-
import type {
|
|
98
|
-
import type {
|
|
99
|
-
import type {
|
|
100
|
-
import type {
|
|
101
|
-
import type {
|
|
102
|
-
import type {
|
|
103
|
-
import type {
|
|
104
|
-
import type {
|
|
105
|
-
import type {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
} from "
|
|
109
|
-
import type {
|
|
110
|
-
import type {
|
|
111
|
-
import type {
|
|
112
|
-
import type {
|
|
113
|
-
import type {
|
|
114
|
-
import type {
|
|
115
|
-
import type {
|
|
116
|
-
import type {
|
|
117
|
-
import type {
|
|
118
|
-
import type {
|
|
119
|
-
import type {
|
|
120
|
-
import type {
|
|
121
|
-
import type {
|
|
122
|
-
import type {
|
|
123
|
-
import type {
|
|
124
|
-
import type {
|
|
125
|
-
import type {
|
|
126
|
-
import type {
|
|
127
|
-
import type {
|
|
128
|
-
import type {
|
|
129
|
-
import type {
|
|
130
|
-
import type {
|
|
131
|
-
import type {
|
|
132
|
-
import type {
|
|
133
|
-
import type {
|
|
134
|
-
import type {
|
|
135
|
-
import type {
|
|
136
|
-
import type {
|
|
137
|
-
import type {
|
|
138
|
-
import type {
|
|
139
|
-
import type {
|
|
140
|
-
import type {
|
|
141
|
-
import type {
|
|
142
|
-
import type {
|
|
143
|
-
import type {
|
|
144
|
-
import type {
|
|
145
|
-
import type { QtiOrdered } from "packages/qti-processing/src/components/qti-ordered/qti-ordered.ts";
|
|
146
|
-
import type { QtiPower } from "packages/qti-processing/src/components/qti-power/qti-power.ts";
|
|
147
|
-
import type { QtiPatternMatch } from "packages/qti-processing/src/components/qti-pattern-match/qti-pattern-match.ts";
|
|
148
|
-
import type { QtiPrintedVariable } from "packages/qti-processing/src/components/qti-printed-variable/qti-printed-variable.ts";
|
|
149
|
-
import type { QtiProduct } from "packages/qti-processing/src/components/qti-product/qti-product.ts";
|
|
150
|
-
import type { QtiRepeat } from "packages/qti-processing/src/components/qti-repeat/qti-repeat.ts";
|
|
151
|
-
import type { QtiRule } from "packages/qti-processing/src/components/qti-rule/qti-rule.ts";
|
|
68
|
+
} from "./test.js";
|
|
69
|
+
import type { QtiSimpleAssociableChoice } from "./interactions.js";
|
|
70
|
+
import type { QtiAssociateInteraction } from "./interactions.js";
|
|
71
|
+
import type { QtiSimpleChoice } from "./interactions.js";
|
|
72
|
+
import type { QtiChoiceInteraction } from "./interactions.js";
|
|
73
|
+
import type { QtiAssociableHotspot } from "./interactions.js";
|
|
74
|
+
import type { QtiGap } from "./interactions.js";
|
|
75
|
+
import type { QtiGapImg } from "./interactions.js";
|
|
76
|
+
import type { QtiGapText } from "./interactions.js";
|
|
77
|
+
import type { QtiHotspotChoice } from "./interactions.js";
|
|
78
|
+
import type { QtiHottext } from "./interactions.js";
|
|
79
|
+
import type { QtiInlineChoice } from "./interactions.js";
|
|
80
|
+
import type { QtiPrompt } from "./interactions.js";
|
|
81
|
+
import type { QtiCustomInteraction } from "./interactions.js";
|
|
82
|
+
import type { QtiEndAttemptInteraction } from "./interactions.js";
|
|
83
|
+
import type { QtiExtendedTextInteraction } from "./interactions.js";
|
|
84
|
+
import type { QtiGapMatchInteraction } from "./interactions.js";
|
|
85
|
+
import type { QtiGraphicAssociateInteraction } from "./interactions.js";
|
|
86
|
+
import type { QtiGraphicGapMatchInteraction } from "./interactions.js";
|
|
87
|
+
import type { QtiGraphicOrderInteraction } from "./interactions.js";
|
|
88
|
+
import type { QtiHotspotInteraction } from "./interactions.js";
|
|
89
|
+
import type { QtiHottextInteraction } from "./interactions.js";
|
|
90
|
+
import type { QtiInlineChoiceInteraction } from "./interactions.js";
|
|
91
|
+
import type { QtiMatchInteraction } from "./interactions.js";
|
|
92
|
+
import type { QtiMediaInteraction } from "./interactions.js";
|
|
93
|
+
import type { QtiOrderInteraction } from "./interactions.js";
|
|
94
|
+
import type { QtiPortableCustomInteraction } from "./interactions.js";
|
|
95
|
+
import type { QtiPortableCustomInteractionTest } from "./interactions.js";
|
|
96
|
+
import type { QtiPositionObjectInteraction } from "./interactions.js";
|
|
97
|
+
import type { QtiPositionObjectStage } from "./interactions.js";
|
|
98
|
+
import type { QtiSelectPointInteraction } from "./interactions.js";
|
|
99
|
+
import type { QtiSliderInteraction } from "./interactions.js";
|
|
100
|
+
import type { QtiTextEntryInteraction } from "./interactions.js";
|
|
101
|
+
import type { QtiUploadInteraction } from "./interactions.js";
|
|
102
|
+
import type { QtiAnd, qtiAndMixin } from "./processing.js";
|
|
103
|
+
import type { QtiAnyN } from "./processing.js";
|
|
104
|
+
import type { QtiBaseValue } from "./processing.js";
|
|
105
|
+
import type { QtiContainerSize } from "./processing.js";
|
|
106
|
+
import type { QtiContains } from "./processing.js";
|
|
107
|
+
import type { QtiCorrect } from "./processing.js";
|
|
108
|
+
import type { QtiDefault } from "./processing.js";
|
|
109
|
+
import type { QtiEqualRounded } from "./processing.js";
|
|
110
|
+
import type { QtiRound } from "./processing.js";
|
|
111
|
+
import type { QtiRoundTo } from "./processing.js";
|
|
112
|
+
import type { QtiEqual } from "./processing.js";
|
|
113
|
+
import type { QtiDivide } from "./processing.js";
|
|
114
|
+
import type { QtiDurationGte } from "./processing.js";
|
|
115
|
+
import type { QtiDurationLt } from "./processing.js";
|
|
116
|
+
import type { QtiGcd } from "./processing.js";
|
|
117
|
+
import type { QtiGt } from "./processing.js";
|
|
118
|
+
import type { QtiGte } from "./processing.js";
|
|
119
|
+
import type { QtiInside } from "./processing.js";
|
|
120
|
+
import type { QtiIntegerDivide } from "./processing.js";
|
|
121
|
+
import type { QtiIntegerModulus } from "./processing.js";
|
|
122
|
+
import type { QtiIntegerToFloat } from "./processing.js";
|
|
123
|
+
import type { QtiLcm } from "./processing.js";
|
|
124
|
+
import type { QtiNull } from "./processing.js";
|
|
125
|
+
import type { QtiIsNull } from "./processing.js";
|
|
126
|
+
import type { QtiFieldValue } from "./processing.js";
|
|
127
|
+
import type { QtiLt } from "./processing.js";
|
|
128
|
+
import type { QtiLte } from "./processing.js";
|
|
129
|
+
import type { QtiMapResponse } from "./processing.js";
|
|
130
|
+
import type { QtiMapResponsePoint } from "./processing.js";
|
|
131
|
+
import type { QtiMathOperator } from "./processing.js";
|
|
132
|
+
import type { QtiMatch } from "./processing.js";
|
|
133
|
+
import type { QtiMax } from "./processing.js";
|
|
134
|
+
import type { QtiMember } from "./processing.js";
|
|
135
|
+
import type { QtiMin } from "./processing.js";
|
|
136
|
+
import type { QtiMultiple } from "./processing.js";
|
|
137
|
+
import type { QtiNot } from "./processing.js";
|
|
138
|
+
import type { QtiOr } from "./processing.js";
|
|
139
|
+
import type { QtiOrdered } from "./processing.js";
|
|
140
|
+
import type { QtiPower } from "./processing.js";
|
|
141
|
+
import type { QtiPatternMatch } from "./processing.js";
|
|
142
|
+
import type { QtiPrintedVariable } from "./processing.js";
|
|
143
|
+
import type { QtiProduct } from "./processing.js";
|
|
144
|
+
import type { QtiRepeat } from "./processing.js";
|
|
145
|
+
import type { QtiRule } from "./processing.js";
|
|
152
146
|
import type {
|
|
153
147
|
QtiSetCorrectResponse,
|
|
154
148
|
QtiSetCorrectResponseRule,
|
|
155
|
-
} from "
|
|
149
|
+
} from "./processing.js";
|
|
156
150
|
import type {
|
|
157
151
|
QtiSetTemplateValue,
|
|
158
152
|
QtiSetTemplateValueRule,
|
|
159
|
-
} from "
|
|
160
|
-
import type { QtiStatsOperator } from "
|
|
161
|
-
import type {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
} from "
|
|
165
|
-
import type {
|
|
166
|
-
import type {
|
|
167
|
-
import type {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
} from "
|
|
171
|
-
import type {
|
|
172
|
-
import type {
|
|
173
|
-
import type {
|
|
174
|
-
import type {
|
|
175
|
-
import type {
|
|
176
|
-
import type { QtiIndex } from "packages/qti-processing/src/components/qti-index/qti-index.ts";
|
|
177
|
-
import type { QtiLookupOutcomeValue } from "packages/qti-processing/src/components/qti-lookup-outcome-value/qti-lookup-outcome-value.ts";
|
|
178
|
-
import type { QtiResponseCondition } from "packages/qti-processing/src/components/qti-response-condition/qti-response-condition.ts";
|
|
179
|
-
import type { QtiResponseElse } from "packages/qti-processing/src/components/qti-response-else/qti-response-else.ts";
|
|
180
|
-
import type { QtiResponseIf } from "packages/qti-processing/src/components/qti-response-if/qti-response-if.ts";
|
|
181
|
-
import type { QtiResponseElseIf } from "packages/qti-processing/src/components/qti-response-else-if/qti-response-else-if.ts";
|
|
153
|
+
} from "./processing.js";
|
|
154
|
+
import type { QtiStatsOperator } from "./processing.js";
|
|
155
|
+
import type { QtiSubtract, qtiSubtractMixin } from "./processing.js";
|
|
156
|
+
import type { QtiSubstring } from "./processing.js";
|
|
157
|
+
import type { QtiStringMatch } from "./processing.js";
|
|
158
|
+
import type { QtiSum, QtiSumExpression } from "./processing.js";
|
|
159
|
+
import type { QtiTruncate } from "./processing.js";
|
|
160
|
+
import type { QtiVariable } from "./processing.js";
|
|
161
|
+
import type { QtiRandomInteger } from "./processing.js";
|
|
162
|
+
import type { QtiRandom } from "./processing.js";
|
|
163
|
+
import type { QtiDelete } from "./processing.js";
|
|
164
|
+
import type { QtiIndex } from "./processing.js";
|
|
165
|
+
import type { QtiLookupOutcomeValue } from "./processing.js";
|
|
166
|
+
import type { QtiResponseCondition } from "./processing.js";
|
|
167
|
+
import type { QtiResponseElse } from "./processing.js";
|
|
168
|
+
import type { QtiResponseIf } from "./processing.js";
|
|
169
|
+
import type { QtiResponseElseIf } from "./processing.js";
|
|
182
170
|
import type {
|
|
183
171
|
QtiSetOutcomeValue,
|
|
184
172
|
QtiSetOutcomeValueRule,
|
|
185
|
-
} from "
|
|
186
|
-
import type { QtiAssessmentItemCorrection } from "
|
|
187
|
-
import type { QtiItemCorrection } from "
|
|
173
|
+
} from "./processing.js";
|
|
174
|
+
import type { QtiAssessmentItemCorrection } from "./corrections.js";
|
|
175
|
+
import type { QtiItemCorrection } from "./corrections.js";
|
|
188
176
|
import type {
|
|
189
177
|
QtiTestCorrection,
|
|
190
178
|
TestNavigationCorrection,
|
|
191
179
|
TestCheckItemCorrection,
|
|
192
|
-
} from "
|
|
193
|
-
import type { ItemCorrectResponseMode } from "
|
|
194
|
-
import type { ItemShowCandidateCorrection } from "
|
|
195
|
-
import type { ItemShowCorrectResponse } from "
|
|
196
|
-
import type { TestShowCorrectResponse } from "
|
|
180
|
+
} from "./corrections.js";
|
|
181
|
+
import type { ItemCorrectResponseMode } from "./corrections.js";
|
|
182
|
+
import type { ItemShowCandidateCorrection } from "./corrections.js";
|
|
183
|
+
import type { ItemShowCorrectResponse } from "./corrections.js";
|
|
184
|
+
import type { TestShowCorrectResponse } from "./corrections.js";
|
|
197
185
|
|
|
198
186
|
/**
|
|
199
187
|
* This type can be used to create scoped tags for your components.
|
|
@@ -1113,6 +1101,25 @@ export type QtiTestFeedbackSolidJsProps = {
|
|
|
1113
1101
|
textContent?: string | number;
|
|
1114
1102
|
};
|
|
1115
1103
|
|
|
1104
|
+
export type QtiTestVariablesProps = {
|
|
1105
|
+
/** */
|
|
1106
|
+
_testContext?: QtiTestVariables["_testContext"];
|
|
1107
|
+
/** */
|
|
1108
|
+
getVariables?: QtiTestVariables["getVariables"];
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
export type QtiTestVariablesSolidJsProps = {
|
|
1112
|
+
/** */
|
|
1113
|
+
"prop:_testContext"?: QtiTestVariables["_testContext"];
|
|
1114
|
+
/** */
|
|
1115
|
+
"prop:getVariables"?: QtiTestVariables["getVariables"];
|
|
1116
|
+
|
|
1117
|
+
/** Set the innerHTML of the element */
|
|
1118
|
+
innerHTML?: string;
|
|
1119
|
+
/** Set the textContent of the element */
|
|
1120
|
+
textContent?: string | number;
|
|
1121
|
+
};
|
|
1122
|
+
|
|
1116
1123
|
export type TestNextProps = {
|
|
1117
1124
|
/** */
|
|
1118
1125
|
disabled?: TestNext["_internalDisabled"];
|
|
@@ -1509,25 +1516,6 @@ export type TestTtsNextSolidJsProps = {
|
|
|
1509
1516
|
textContent?: string | number;
|
|
1510
1517
|
};
|
|
1511
1518
|
|
|
1512
|
-
export type QtiTestVariablesProps = {
|
|
1513
|
-
/** */
|
|
1514
|
-
_testContext?: QtiTestVariables["_testContext"];
|
|
1515
|
-
/** */
|
|
1516
|
-
getVariables?: QtiTestVariables["getVariables"];
|
|
1517
|
-
};
|
|
1518
|
-
|
|
1519
|
-
export type QtiTestVariablesSolidJsProps = {
|
|
1520
|
-
/** */
|
|
1521
|
-
"prop:_testContext"?: QtiTestVariables["_testContext"];
|
|
1522
|
-
/** */
|
|
1523
|
-
"prop:getVariables"?: QtiTestVariables["getVariables"];
|
|
1524
|
-
|
|
1525
|
-
/** Set the innerHTML of the element */
|
|
1526
|
-
innerHTML?: string;
|
|
1527
|
-
/** Set the textContent of the element */
|
|
1528
|
-
textContent?: string | number;
|
|
1529
|
-
};
|
|
1530
|
-
|
|
1531
1519
|
export type QtiSimpleAssociableChoiceProps = {
|
|
1532
1520
|
/** Required. Value recorded in the response pair when this choice participates in an association. */
|
|
1533
1521
|
identifier?: QtiSimpleAssociableChoice["identifier"];
|
|
@@ -6536,6 +6524,26 @@ export type CustomElements = {
|
|
|
6536
6524
|
QtiTestFeedbackProps & BaseProps<QtiTestFeedback> & BaseEvents
|
|
6537
6525
|
>;
|
|
6538
6526
|
|
|
6527
|
+
/**
|
|
6528
|
+
*
|
|
6529
|
+
*
|
|
6530
|
+
* ## Attributes & Properties
|
|
6531
|
+
*
|
|
6532
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
6533
|
+
*
|
|
6534
|
+
* - `_testContext`: undefined (property only)
|
|
6535
|
+
* - `getVariables`: undefined (property only)
|
|
6536
|
+
*
|
|
6537
|
+
* ## Methods
|
|
6538
|
+
*
|
|
6539
|
+
* Methods that can be called to access component functionality.
|
|
6540
|
+
*
|
|
6541
|
+
* - `calculate() => Readonly<T>`: undefined
|
|
6542
|
+
*/
|
|
6543
|
+
"qti-test-variables": Partial<
|
|
6544
|
+
QtiTestVariablesProps & BaseProps<QtiTestVariables> & BaseEvents
|
|
6545
|
+
>;
|
|
6546
|
+
|
|
6539
6547
|
/**
|
|
6540
6548
|
* Represents a custom element for navigating to the next test item.
|
|
6541
6549
|
*
|
|
@@ -6940,26 +6948,6 @@ export type CustomElements = {
|
|
|
6940
6948
|
TestTtsNextProps & BaseProps<TestTtsNext> & BaseEvents
|
|
6941
6949
|
>;
|
|
6942
6950
|
|
|
6943
|
-
/**
|
|
6944
|
-
*
|
|
6945
|
-
*
|
|
6946
|
-
* ## Attributes & Properties
|
|
6947
|
-
*
|
|
6948
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
6949
|
-
*
|
|
6950
|
-
* - `_testContext`: undefined (property only)
|
|
6951
|
-
* - `getVariables`: undefined (property only)
|
|
6952
|
-
*
|
|
6953
|
-
* ## Methods
|
|
6954
|
-
*
|
|
6955
|
-
* Methods that can be called to access component functionality.
|
|
6956
|
-
*
|
|
6957
|
-
* - `calculate() => Readonly<T>`: undefined
|
|
6958
|
-
*/
|
|
6959
|
-
"qti-test-variables": Partial<
|
|
6960
|
-
QtiTestVariablesProps & BaseProps<QtiTestVariables> & BaseEvents
|
|
6961
|
-
>;
|
|
6962
|
-
|
|
6963
6951
|
/**
|
|
6964
6952
|
* A choice in one of the two match sets of `qti-match-interaction`, or in
|
|
6965
6953
|
* `qti-associate-interaction`.
|
|
@@ -8922,8 +8910,9 @@ export type CustomElements = {
|
|
|
8922
8910
|
*
|
|
8923
8911
|
* Custom selectors for styling elements within the component.
|
|
8924
8912
|
*
|
|
8913
|
+
* - `answer`: The answer-key line, revealed above the field when the correct response is shown.
|
|
8925
8914
|
* - `input`: The text input element.
|
|
8926
|
-
* - `
|
|
8915
|
+
* - `message`: The validation message, hidden until `reportValidity` shows it.
|
|
8927
8916
|
*/
|
|
8928
8917
|
"qti-text-entry-interaction": Partial<
|
|
8929
8918
|
QtiTextEntryInteractionProps &
|
|
@@ -11129,6 +11118,29 @@ export type CustomElementsSolidJs = {
|
|
|
11129
11118
|
BaseEvents
|
|
11130
11119
|
>;
|
|
11131
11120
|
|
|
11121
|
+
/**
|
|
11122
|
+
*
|
|
11123
|
+
*
|
|
11124
|
+
* ## Attributes & Properties
|
|
11125
|
+
*
|
|
11126
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
11127
|
+
*
|
|
11128
|
+
* - `_testContext`: undefined (property only)
|
|
11129
|
+
* - `getVariables`: undefined (property only)
|
|
11130
|
+
*
|
|
11131
|
+
* ## Methods
|
|
11132
|
+
*
|
|
11133
|
+
* Methods that can be called to access component functionality.
|
|
11134
|
+
*
|
|
11135
|
+
* - `calculate() => Readonly<T>`: undefined
|
|
11136
|
+
*/
|
|
11137
|
+
"qti-test-variables": Partial<
|
|
11138
|
+
QtiTestVariablesProps &
|
|
11139
|
+
QtiTestVariablesSolidJsProps &
|
|
11140
|
+
BaseProps<QtiTestVariables> &
|
|
11141
|
+
BaseEvents
|
|
11142
|
+
>;
|
|
11143
|
+
|
|
11132
11144
|
/**
|
|
11133
11145
|
* Represents a custom element for navigating to the next test item.
|
|
11134
11146
|
*
|
|
@@ -11593,29 +11605,6 @@ export type CustomElementsSolidJs = {
|
|
|
11593
11605
|
BaseEvents
|
|
11594
11606
|
>;
|
|
11595
11607
|
|
|
11596
|
-
/**
|
|
11597
|
-
*
|
|
11598
|
-
*
|
|
11599
|
-
* ## Attributes & Properties
|
|
11600
|
-
*
|
|
11601
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
11602
|
-
*
|
|
11603
|
-
* - `_testContext`: undefined (property only)
|
|
11604
|
-
* - `getVariables`: undefined (property only)
|
|
11605
|
-
*
|
|
11606
|
-
* ## Methods
|
|
11607
|
-
*
|
|
11608
|
-
* Methods that can be called to access component functionality.
|
|
11609
|
-
*
|
|
11610
|
-
* - `calculate() => Readonly<T>`: undefined
|
|
11611
|
-
*/
|
|
11612
|
-
"qti-test-variables": Partial<
|
|
11613
|
-
QtiTestVariablesProps &
|
|
11614
|
-
QtiTestVariablesSolidJsProps &
|
|
11615
|
-
BaseProps<QtiTestVariables> &
|
|
11616
|
-
BaseEvents
|
|
11617
|
-
>;
|
|
11618
|
-
|
|
11619
11608
|
/**
|
|
11620
11609
|
* A choice in one of the two match sets of `qti-match-interaction`, or in
|
|
11621
11610
|
* `qti-associate-interaction`.
|
|
@@ -13648,8 +13637,9 @@ export type CustomElementsSolidJs = {
|
|
|
13648
13637
|
*
|
|
13649
13638
|
* Custom selectors for styling elements within the component.
|
|
13650
13639
|
*
|
|
13640
|
+
* - `answer`: The answer-key line, revealed above the field when the correct response is shown.
|
|
13651
13641
|
* - `input`: The text input element.
|
|
13652
|
-
* - `
|
|
13642
|
+
* - `message`: The validation message, hidden until `reportValidity` shows it.
|
|
13653
13643
|
*/
|
|
13654
13644
|
"qti-text-entry-interaction": Partial<
|
|
13655
13645
|
QtiTextEntryInteractionProps &
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Q as QtiExpression } from './qti-expression.d-BietT_8b.js';
|
|
2
|
+
|
|
3
|
+
declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
|
|
4
|
+
calculate(): Readonly<boolean>;
|
|
5
|
+
getResult(): Readonly<boolean>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { QtiConditionExpression as Q };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { I as ItemContext, V as VariableDeclaration, f as ResponseVariable } from './item.types.d-QU7LljEK.js';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import { Q as QtiContext, a as QtiContextType } from './qti.context.d-CejJMlfZ.js';
|
|
5
|
+
|
|
6
|
+
interface TestContext {
|
|
7
|
+
items: (ItemContext & {
|
|
8
|
+
category?: string;
|
|
9
|
+
})[];
|
|
10
|
+
testOutcomeVariables?: VariableDeclaration<string | string[] | null>[];
|
|
11
|
+
}
|
|
12
|
+
declare const INITIAL_TEST_CONTEXT: Readonly<TestContext>;
|
|
13
|
+
declare const testContext: {
|
|
14
|
+
__context__: Readonly<TestContext>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
interface QtiExpressionBase<T> {
|
|
18
|
+
calculate(): Readonly<T>;
|
|
19
|
+
}
|
|
20
|
+
declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
|
|
21
|
+
protected result: any;
|
|
22
|
+
static styles: lit.CSSResult;
|
|
23
|
+
render(): lit.TemplateResult<1>;
|
|
24
|
+
calculate(): Readonly<T>;
|
|
25
|
+
protected getResult(): Readonly<T>;
|
|
26
|
+
protected context?: ItemContext;
|
|
27
|
+
protected qtiContext?: QtiContext;
|
|
28
|
+
getVariables: () => (ResponseVariable | VariableDeclaration<QtiContextType>)[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { INITIAL_TEST_CONTEXT as I, QtiExpression as Q, type TestContext as T, type QtiExpressionBase as a, testContext as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
import { a as Cardinality } from './item.types.d-QU7LljEK.js';
|
|
4
|
+
|
|
5
|
+
declare abstract class QtiVariableDeclaration extends LitElement {
|
|
6
|
+
render(): lit.TemplateResult<1>;
|
|
7
|
+
protected defaultValues(cardinality: Cardinality): string | string[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare abstract class QtiFeedback extends LitElement {
|
|
11
|
+
#private;
|
|
12
|
+
protected showHide: 'show' | 'hide';
|
|
13
|
+
outcomeIdentifier: string;
|
|
14
|
+
protected identifier: string;
|
|
15
|
+
showStatus: string;
|
|
16
|
+
private _context?;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
checkShowFeedback(outcomeIdentifier: string): void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { QtiFeedback as Q, QtiVariableDeclaration as a };
|