@citolab/qti-components 9.1.0 → 9.3.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 +338 -213
- package/dist/base.d.ts +54 -11
- package/dist/base.js +11 -1
- package/dist/{chunk-XYQNTF5B.js → chunk-7VDR765S.js} +2 -2
- package/dist/{chunk-XE7BALDO.js → chunk-A32YH4H5.js} +2 -2
- package/dist/{chunk-XE7BALDO.js.map → chunk-A32YH4H5.js.map} +1 -1
- package/dist/{chunk-5SU3MP6Y.js → chunk-CQHGVPOT.js} +20 -6
- package/dist/{chunk-5SU3MP6Y.js.map → chunk-CQHGVPOT.js.map} +1 -1
- package/dist/{chunk-MKZ374OJ.js → chunk-FG5JAWSN.js} +2 -2
- package/dist/{chunk-3VQSUWCK.js → chunk-G5RQ5GKG.js} +407 -131
- package/dist/chunk-G5RQ5GKG.js.map +1 -0
- package/dist/{chunk-5BXJRO5O.js → chunk-JGPWBIVD.js} +389 -229
- package/dist/chunk-JGPWBIVD.js.map +1 -0
- package/dist/{chunk-RT6WZ3P7.js → chunk-JLZCZVRX.js} +2 -2
- package/dist/{chunk-6ITD55QE.js → chunk-LFVPS7KB.js} +2 -2
- package/dist/{chunk-DAUU2NJL.js → chunk-RAJQKCQ3.js} +66 -9
- package/dist/chunk-RAJQKCQ3.js.map +1 -0
- package/dist/{chunk-WKWCOV5P.js → chunk-REKCRWJV.js} +83 -21
- package/dist/chunk-REKCRWJV.js.map +1 -0
- package/dist/{chunk-QCPN7E6K.js → chunk-TDWLV5OD.js} +3767 -3271
- package/dist/chunk-TDWLV5OD.js.map +1 -0
- package/dist/{chunk-HDEG6BAZ.js → chunk-TLAVOBEM.js} +16 -8
- package/dist/chunk-TLAVOBEM.js.map +1 -0
- package/dist/{chunk-LDY4C2OT.js → chunk-YIYHCHHM.js} +2 -2
- package/dist/{chunk-WCWJPIUQ.js → chunk-YVZWNLF4.js} +191 -52
- package/dist/chunk-YVZWNLF4.js.map +1 -0
- package/dist/{chunk-KCK27QBP.js → chunk-ZG7FBQFP.js} +2 -2
- package/dist/{computed.types.d-CJarqC6s.d.ts → computed.types.d-DB5gfOh9.d.ts} +2 -16
- package/dist/corrections.d.ts +21 -10
- package/dist/corrections.js +20 -20
- package/dist/corrections.js.map +1 -1
- package/dist/elements.d.ts +43 -11
- package/dist/elements.js +4 -4
- package/dist/index.d.ts +14 -13
- package/dist/index.js +39 -15
- package/dist/{interaction.d-CJiMv8H7.d.ts → interaction.d-DegNJ5ZA.d.ts} +1 -1
- package/dist/interactions.d.ts +35 -35
- package/dist/interactions.js +3 -3
- package/dist/item.css +11 -2
- package/dist/item.d.ts +31 -82
- package/dist/item.js +7 -5
- package/dist/{item.types.d-QU7LljEK.d.ts → item.types.d-BDFrq19E.d.ts} +18 -2
- package/dist/loader.d.ts +3 -3
- package/dist/loader.js +2 -2
- package/dist/processing.d.ts +139 -20
- package/dist/processing.js +11 -3
- package/dist/qti-components-jsx.d.ts +2254 -132
- package/dist/{qti-condition-expression.d-CYwXOUb1.d.ts → qti-condition-expression.d-DLboq8bR.d.ts} +1 -1
- package/dist/{qti-expression.d-B_-m9emA.d.ts → qti-expression.d-BksT9iLB.d.ts} +26 -3
- package/dist/{qti-feedback.d-B1EIF-fU.d.ts → qti-feedback.d-D-w6-mJv.d.ts} +1 -1
- package/dist/qti-item.d-D_-9_0e6.d.ts +101 -0
- package/dist/qti-rule-base.d-Bdzg8eGH.d.ts +41 -0
- package/dist/{qti-test.d-C6lCEMRB.d.ts → qti-test.d-D-ELy0Mr.d.ts} +150 -20
- package/dist/{qti-text-entry-interaction.d-BGdfV9qG.d.ts → qti-text-entry-interaction.d-CATtcPyX.d.ts} +10 -9
- package/dist/session.context.d-Cjs0BkJB.d.ts +33 -0
- package/dist/test.d.ts +8 -8
- package/dist/test.js +10 -6
- package/dist/transformers.js +1 -1
- package/package.json +12 -11
- package/dist/chunk-3VQSUWCK.js.map +0 -1
- package/dist/chunk-5BXJRO5O.js.map +0 -1
- package/dist/chunk-DAUU2NJL.js.map +0 -1
- package/dist/chunk-HDEG6BAZ.js.map +0 -1
- package/dist/chunk-QCPN7E6K.js.map +0 -1
- package/dist/chunk-WCWJPIUQ.js.map +0 -1
- package/dist/chunk-WKWCOV5P.js.map +0 -1
- package/dist/computed-item.types.d-BKZdSLLJ.d.ts +0 -19
- package/dist/qti-rule-base.d-ajOnfGXY.d.ts +0 -16
- /package/dist/{chunk-XYQNTF5B.js.map → chunk-7VDR765S.js.map} +0 -0
- /package/dist/{chunk-MKZ374OJ.js.map → chunk-FG5JAWSN.js.map} +0 -0
- /package/dist/{chunk-RT6WZ3P7.js.map → chunk-JLZCZVRX.js.map} +0 -0
- /package/dist/{chunk-6ITD55QE.js.map → chunk-LFVPS7KB.js.map} +0 -0
- /package/dist/{chunk-LDY4C2OT.js.map → chunk-YIYHCHHM.js.map} +0 -0
- /package/dist/{chunk-KCK27QBP.js.map → chunk-ZG7FBQFP.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, Q as QtiAssessmentItemRef,
|
|
1
|
+
export { I as ITestNavigationMixin, a as ItemRefTemplateModel, Q as QtiAssessmentItemRef, b as QtiAssessmentSection, c as QtiAssessmentTest, d as QtiItemSessionControl, e as QtiNumberSelected, f as QtiOutcomeProcessing, g as QtiOutcomeProcessingProcessor, h as QtiTest, i as QtiTestFeedback, j as QtiTestPart, k as QtiTestVariables, l as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, m as TestContainer, n as TestEndAttempt, o as TestItemLink, p as TestItemToSpeech, q as TestNavigation, r as TestNext, s as TestPagingButtonsStamp, t as TestPrev, u as TestPrintContext, v as TestPrintVariables, w as TestScoringButtons, x as TestScoringFeedback, y as TestSectionButtonsStamp, z as TestSectionLink, A as TestStamp, B as TestTtsNext, C as TestTtsPause, D as TestTtsPick, E as TestTtsPlay, F as TestTtsPrev, G as TestTtsResume, H as TestTtsStop, J as TestView, K as TestViewToggle, L as TtsContext, M as ttsContext } from './qti-test.d-D-ELy0Mr.js';
|
|
2
2
|
export { IMyQtiTest, IQtiTest, ITestProcessingMixin } from './test.js';
|
|
3
|
-
export { ItemContainer, ItemPrintVariables, QtiItem } from './item.js';
|
|
3
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-D_-9_0e6.js';
|
|
4
|
+
export { ItemViewMixin } from './item.js';
|
|
4
5
|
export { QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing } from './elements.js';
|
|
5
6
|
export { QtiCustomInteraction, QtiEndAttemptInteraction, QtiMediaInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiUploadInteraction, qtiInteractionElements } from './interactions.js';
|
|
6
|
-
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-
|
|
7
|
+
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-CATtcPyX.js';
|
|
7
8
|
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-BL7GGFJj.js';
|
|
8
9
|
export { qtiTransformManifest } from './transformers.js';
|
|
9
10
|
export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
|
|
10
|
-
export { CustomStateSetShim, CustomStateSupport, IsNullOrUndefined, ScoringHelper, boxSizing, classifyCustomStateSupport, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, installCustomStateSetFallback, itemContext, removeDoubleSlashes, validationMessage } from './base.js';
|
|
11
|
-
export { C as ComputedItemContext } from './
|
|
12
|
-
export { C as ComputedContext, a as ComputedItem
|
|
11
|
+
export { CustomOperator, CustomOperatorValue, CustomStateSetShim, CustomStateSupport, IsNullOrUndefined, ScoringHelper, boxSizing, classifyCustomStateSupport, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, getCustomOperator, installCustomStateSetFallback, itemContext, registerCustomOperator, removeDoubleSlashes, unregisterCustomOperator, validationMessage } from './base.js';
|
|
12
|
+
export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-Cjs0BkJB.js';
|
|
13
|
+
export { C as ComputedContext, a as ComputedItem } from './computed.types.d-DB5gfOh9.js';
|
|
13
14
|
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BvU9r-Mg.js';
|
|
14
|
-
export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-
|
|
15
|
-
export { B as BaseType, C as Calculate, a as Cardinality, I as ItemContext, M as Multiple, O as Ordered,
|
|
15
|
+
export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-DegNJ5ZA.js';
|
|
16
|
+
export { B as BaseType, C as Calculate, a as Cardinality, I as InterpolationTableEntry, b as ItemContext, 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-BDFrq19E.js';
|
|
16
17
|
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';
|
|
17
|
-
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-
|
|
18
|
-
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-
|
|
19
|
-
export { Q as QtiConditionExpression } from './qti-condition-expression.d-
|
|
18
|
+
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-BksT9iLB.js';
|
|
19
|
+
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-D-w6-mJv.js';
|
|
20
|
+
export { Q as QtiConditionExpression } from './qti-condition-expression.d-DLboq8bR.js';
|
|
20
21
|
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';
|
|
21
22
|
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';
|
|
22
|
-
export { Q as
|
|
23
|
-
export { QtiAnd, QtiAnyN, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiDivide, QtiDurationGte, QtiDurationLt, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiInside, QtiIntegerDivide, QtiIntegerModulus, QtiIntegerToFloat, QtiIsNull, QtiLcm, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMax, QtiMember, QtiMin, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiOutcomeCondition, QtiOutcomeElse, QtiOutcomeElseIf, QtiOutcomeIf, QtiPatternMatch, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiRepeat, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiSetCorrectResponse, QtiSetCorrectResponseRule, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSetTemplateValue, QtiSetTemplateValueRule, QtiStatsOperator, QtiStringMatch, QtiSubstring, QtiSubtract, QtiSum, QtiSumExpression, QtiTruncate, QtiVariable, qtiAndMixin, qtiSubtractMixin } from './processing.js';
|
|
23
|
+
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-Bdzg8eGH.js';
|
|
24
|
+
export { QtiAnd, QtiAnyN, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiDivide, QtiDurationGte, QtiDurationLt, QtiEqual, QtiEqualRounded, QtiExitResponse, QtiExitTest, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiInside, QtiIntegerDivide, QtiIntegerModulus, QtiIntegerToFloat, QtiIsNull, QtiLcm, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathConstant, QtiMathOperator, QtiMax, QtiMember, QtiMin, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiOutcomeCondition, QtiOutcomeElse, QtiOutcomeElseIf, QtiOutcomeIf, QtiPatternMatch, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiRepeat, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessingFragment, QtiRound, QtiRoundTo, QtiSetCorrectResponse, QtiSetCorrectResponseRule, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSetTemplateValue, QtiSetTemplateValueRule, QtiStatsOperator, QtiStringMatch, QtiSubstring, QtiSubtract, QtiSum, QtiSumExpression, QtiTruncate, QtiVariable, qtiAndMixin, qtiSubtractMixin } from './processing.js';
|
|
24
25
|
export { CandidateCorrectionMixin, ChoiceCorrectionMixin, CorrectResponseInterface, CorrectResponseMixin, CorrectResponseMode, CorrectionConfig, Correctness, ItemCorrectResponseMode, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiAssessmentItemCorrection, QtiAssociateInteractionCorrection, QtiChoiceInteractionCorrection, QtiExtendedTextInteractionCorrection, QtiGapMatchInteractionCorrection, QtiGapTextCorrection, QtiGraphicAssociateInteractionCorrection, QtiGraphicGapMatchInteractionCorrection, QtiGraphicOrderInteractionCorrection, QtiHotspotChoiceCorrection, QtiHotspotInteractionCorrection, QtiHottextCorrection, QtiHottextInteractionCorrection, QtiInlineChoiceInteractionCorrection, QtiItemCorrection, QtiMatchInteractionCorrection, QtiOrderInteractionCorrection, QtiPortableCustomInteractionCorrection, QtiSelectPointInteractionCorrection, QtiSimpleAssociableChoiceCorrection, QtiSimpleChoiceCorrection, QtiSliderInteractionCorrection, QtiTestCorrection, QtiTextEntryInteractionCorrection, TestCheckItemCorrection, TestNavigationCorrection, TestShowCorrectResponse, correctionPart } from './corrections.js';
|
|
25
26
|
import 'lit';
|
|
26
27
|
import '@heximal/templates';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-7VDR765S.js";
|
|
2
2
|
import {
|
|
3
3
|
CandidateCorrectionMixin,
|
|
4
4
|
ChoiceCorrectionMixin,
|
|
@@ -35,12 +35,13 @@ import {
|
|
|
35
35
|
TestNavigationCorrection,
|
|
36
36
|
TestShowCorrectResponse,
|
|
37
37
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CQHGVPOT.js";
|
|
39
39
|
import {
|
|
40
40
|
QtiAssessmentItemRef,
|
|
41
41
|
QtiAssessmentSection,
|
|
42
42
|
QtiAssessmentTest,
|
|
43
43
|
QtiItemSessionControl,
|
|
44
|
+
QtiNumberSelected,
|
|
44
45
|
QtiOutcomeProcessing,
|
|
45
46
|
QtiOutcomeProcessingProcessor,
|
|
46
47
|
QtiTest,
|
|
@@ -66,6 +67,7 @@ import {
|
|
|
66
67
|
TestStamp,
|
|
67
68
|
TestTtsNext,
|
|
68
69
|
TestTtsPause,
|
|
70
|
+
TestTtsPick,
|
|
69
71
|
TestTtsPlay,
|
|
70
72
|
TestTtsPrev,
|
|
71
73
|
TestTtsResume,
|
|
@@ -73,8 +75,8 @@ import {
|
|
|
73
75
|
TestView,
|
|
74
76
|
TestViewToggle,
|
|
75
77
|
ttsContext
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-TDWLV5OD.js";
|
|
79
|
+
import "./chunk-JLZCZVRX.js";
|
|
78
80
|
import {
|
|
79
81
|
QtiAssessmentItem,
|
|
80
82
|
QtiAssessmentStimulusRef,
|
|
@@ -95,8 +97,8 @@ import {
|
|
|
95
97
|
QtiTemplateConstraint,
|
|
96
98
|
QtiTemplateDeclaration,
|
|
97
99
|
QtiTemplateProcessing
|
|
98
|
-
} from "./chunk-
|
|
99
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-REKCRWJV.js";
|
|
101
|
+
import "./chunk-FG5JAWSN.js";
|
|
100
102
|
import {
|
|
101
103
|
QtiAssociableHotspot,
|
|
102
104
|
QtiAssociateInteraction,
|
|
@@ -131,25 +133,26 @@ import {
|
|
|
131
133
|
QtiTextEntryInteraction,
|
|
132
134
|
QtiUploadInteraction,
|
|
133
135
|
qtiInteractionElements
|
|
134
|
-
} from "./chunk-
|
|
135
|
-
import "./chunk-
|
|
136
|
+
} from "./chunk-JGPWBIVD.js";
|
|
137
|
+
import "./chunk-YIYHCHHM.js";
|
|
136
138
|
import {
|
|
137
139
|
ItemContainer,
|
|
138
140
|
ItemPrintVariables,
|
|
141
|
+
ItemViewMixin,
|
|
139
142
|
QtiItem
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import "./chunk-
|
|
143
|
+
} from "./chunk-RAJQKCQ3.js";
|
|
144
|
+
import "./chunk-A32YH4H5.js";
|
|
142
145
|
import "./chunk-4DB4SC5K.js";
|
|
143
146
|
import {
|
|
144
147
|
getItemByUri,
|
|
145
148
|
getManifestInfo
|
|
146
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-LFVPS7KB.js";
|
|
147
150
|
import {
|
|
148
151
|
qtiTransformItem,
|
|
149
152
|
qtiTransformManifest,
|
|
150
153
|
qtiTransformTest
|
|
151
|
-
} from "./chunk-
|
|
152
|
-
import "./chunk-
|
|
154
|
+
} from "./chunk-TLAVOBEM.js";
|
|
155
|
+
import "./chunk-ZG7FBQFP.js";
|
|
153
156
|
import {
|
|
154
157
|
QtiAnd,
|
|
155
158
|
QtiAnyN,
|
|
@@ -164,6 +167,8 @@ import {
|
|
|
164
167
|
QtiDurationLt,
|
|
165
168
|
QtiEqual,
|
|
166
169
|
QtiEqualRounded,
|
|
170
|
+
QtiExitResponse,
|
|
171
|
+
QtiExitTest,
|
|
167
172
|
QtiFieldValue,
|
|
168
173
|
QtiGcd,
|
|
169
174
|
QtiGt,
|
|
@@ -181,6 +186,7 @@ import {
|
|
|
181
186
|
QtiMapResponse,
|
|
182
187
|
QtiMapResponsePoint,
|
|
183
188
|
QtiMatch,
|
|
189
|
+
QtiMathConstant,
|
|
184
190
|
QtiMathOperator,
|
|
185
191
|
QtiMax,
|
|
186
192
|
QtiMember,
|
|
@@ -205,6 +211,7 @@ import {
|
|
|
205
211
|
QtiResponseElse,
|
|
206
212
|
QtiResponseElseIf,
|
|
207
213
|
QtiResponseIf,
|
|
214
|
+
QtiResponseProcessingFragment,
|
|
208
215
|
QtiRound,
|
|
209
216
|
QtiRoundTo,
|
|
210
217
|
QtiSetCorrectResponse,
|
|
@@ -223,7 +230,7 @@ import {
|
|
|
223
230
|
QtiVariable,
|
|
224
231
|
qtiAndMixin,
|
|
225
232
|
qtiSubtractMixin
|
|
226
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-G5RQ5GKG.js";
|
|
227
234
|
import {
|
|
228
235
|
CustomStateSetShim,
|
|
229
236
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -231,6 +238,8 @@ import {
|
|
|
231
238
|
Interaction,
|
|
232
239
|
IsNullOrUndefined,
|
|
233
240
|
QtiConditionExpression,
|
|
241
|
+
QtiExitResponseSignal,
|
|
242
|
+
QtiExitTestSignal,
|
|
234
243
|
QtiExpression,
|
|
235
244
|
QtiFeedback,
|
|
236
245
|
QtiRuleElement,
|
|
@@ -245,6 +254,7 @@ import {
|
|
|
245
254
|
convertNumberToUniversalFormat,
|
|
246
255
|
decimalSeparator,
|
|
247
256
|
dropRegion,
|
|
257
|
+
getCustomOperator,
|
|
248
258
|
installCustomStateSetFallback,
|
|
249
259
|
interactionContext,
|
|
250
260
|
isSeed,
|
|
@@ -255,6 +265,7 @@ import {
|
|
|
255
265
|
parsePoint,
|
|
256
266
|
parseResponseAttribute,
|
|
257
267
|
qtiContext,
|
|
268
|
+
registerCustomOperator,
|
|
258
269
|
removeDoubleSlashes,
|
|
259
270
|
responseAttributeConverter,
|
|
260
271
|
serializePair,
|
|
@@ -262,8 +273,9 @@ import {
|
|
|
262
273
|
serializeResponseAttribute,
|
|
263
274
|
sessionContext,
|
|
264
275
|
testContext,
|
|
276
|
+
unregisterCustomOperator,
|
|
265
277
|
validationMessage
|
|
266
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-YVZWNLF4.js";
|
|
267
279
|
export {
|
|
268
280
|
CandidateCorrectionMixin,
|
|
269
281
|
ChoiceCorrectionMixin,
|
|
@@ -279,6 +291,7 @@ export {
|
|
|
279
291
|
ItemPrintVariables,
|
|
280
292
|
ItemShowCandidateCorrection,
|
|
281
293
|
ItemShowCorrectResponse,
|
|
294
|
+
ItemViewMixin,
|
|
282
295
|
QtiAnd,
|
|
283
296
|
QtiAnyN,
|
|
284
297
|
QtiAssessmentItem,
|
|
@@ -311,6 +324,10 @@ export {
|
|
|
311
324
|
QtiEndAttemptInteraction,
|
|
312
325
|
QtiEqual,
|
|
313
326
|
QtiEqualRounded,
|
|
327
|
+
QtiExitResponse,
|
|
328
|
+
QtiExitResponseSignal,
|
|
329
|
+
QtiExitTest,
|
|
330
|
+
QtiExitTestSignal,
|
|
314
331
|
QtiExpression,
|
|
315
332
|
QtiExtendedTextInteraction,
|
|
316
333
|
QtiExtendedTextInteractionCorrection,
|
|
@@ -363,6 +380,7 @@ export {
|
|
|
363
380
|
QtiMatch,
|
|
364
381
|
QtiMatchInteraction,
|
|
365
382
|
QtiMatchInteractionCorrection,
|
|
383
|
+
QtiMathConstant,
|
|
366
384
|
QtiMathOperator,
|
|
367
385
|
QtiMax,
|
|
368
386
|
QtiMediaInteraction,
|
|
@@ -372,6 +390,7 @@ export {
|
|
|
372
390
|
QtiMultiple,
|
|
373
391
|
QtiNot,
|
|
374
392
|
QtiNull,
|
|
393
|
+
QtiNumberSelected,
|
|
375
394
|
QtiOr,
|
|
376
395
|
QtiOrderInteraction,
|
|
377
396
|
QtiOrderInteractionCorrection,
|
|
@@ -401,6 +420,7 @@ export {
|
|
|
401
420
|
QtiResponseElseIf,
|
|
402
421
|
QtiResponseIf,
|
|
403
422
|
QtiResponseProcessing,
|
|
423
|
+
QtiResponseProcessingFragment,
|
|
404
424
|
QtiRound,
|
|
405
425
|
QtiRoundTo,
|
|
406
426
|
QtiRubricBlock,
|
|
@@ -463,6 +483,7 @@ export {
|
|
|
463
483
|
TestStamp,
|
|
464
484
|
TestTtsNext,
|
|
465
485
|
TestTtsPause,
|
|
486
|
+
TestTtsPick,
|
|
466
487
|
TestTtsPlay,
|
|
467
488
|
TestTtsPrev,
|
|
468
489
|
TestTtsResume,
|
|
@@ -479,6 +500,7 @@ export {
|
|
|
479
500
|
correctionPart,
|
|
480
501
|
decimalSeparator,
|
|
481
502
|
dropRegion,
|
|
503
|
+
getCustomOperator,
|
|
482
504
|
getItemByUri,
|
|
483
505
|
getManifestInfo,
|
|
484
506
|
installCustomStateSetFallback,
|
|
@@ -497,6 +519,7 @@ export {
|
|
|
497
519
|
qtiTransformItem,
|
|
498
520
|
qtiTransformManifest,
|
|
499
521
|
qtiTransformTest,
|
|
522
|
+
registerCustomOperator,
|
|
500
523
|
removeDoubleSlashes,
|
|
501
524
|
responseAttributeConverter,
|
|
502
525
|
serializePair,
|
|
@@ -505,6 +528,7 @@ export {
|
|
|
505
528
|
sessionContext,
|
|
506
529
|
testContext,
|
|
507
530
|
ttsContext,
|
|
531
|
+
unregisterCustomOperator,
|
|
508
532
|
validationMessage
|
|
509
533
|
};
|
|
510
534
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { C as ConfigContext, V as ValidationDisplayMode } from './config.context.d-BvU9r-Mg.js';
|
|
3
3
|
import { V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
4
|
-
import {
|
|
4
|
+
import { g as ResponseVariable } from './item.types.d-BDFrq19E.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* What a choice element should render and behave as. The same element — `qti-simple-choice`,
|
package/dist/interactions.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, z as QtiPortableCustomInteractionTest, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction, Q as QtiAssociableHotspot, d as QtiGap, e as QtiGapImg, g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, o as QtiInlineChoice, t as QtiPrompt, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice } from './qti-text-entry-interaction.d-CATtcPyX.js';
|
|
2
|
+
export { O as Orientation } from './qti-text-entry-interaction.d-CATtcPyX.js';
|
|
1
3
|
import * as lit from 'lit';
|
|
2
4
|
import { CSSResultGroup, LitElement, PropertyValueMap } from 'lit';
|
|
3
|
-
import { I as Interaction } from './interaction.d-
|
|
4
|
-
import { Q as QtiAssociableHotspot, d as QtiGap, e as QtiGapImg, g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, o as QtiInlineChoice, t as QtiPrompt, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, z as QtiPortableCustomInteractionTest, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-BGdfV9qG.js';
|
|
5
|
-
export { O as Orientation } from './qti-text-entry-interaction.d-BGdfV9qG.js';
|
|
6
|
-
import './config.context.d-BvU9r-Mg.js';
|
|
5
|
+
import { I as Interaction } from './interaction.d-DegNJ5ZA.js';
|
|
7
6
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
8
|
-
import './
|
|
7
|
+
import './config.context.d-BvU9r-Mg.js';
|
|
8
|
+
import './item.types.d-BDFrq19E.js';
|
|
9
9
|
import './qti.context.d-CejJMlfZ.js';
|
|
10
10
|
import 'lit/directives/ref.js';
|
|
11
11
|
|
|
@@ -178,36 +178,6 @@ declare global {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
declare const qtiInteractionElements: readonly [{
|
|
181
|
-
readonly tag: "qti-associable-hotspot";
|
|
182
|
-
readonly ctor: typeof QtiAssociableHotspot;
|
|
183
|
-
}, {
|
|
184
|
-
readonly tag: "qti-gap";
|
|
185
|
-
readonly ctor: typeof QtiGap;
|
|
186
|
-
}, {
|
|
187
|
-
readonly tag: "qti-gap-img";
|
|
188
|
-
readonly ctor: typeof QtiGapImg;
|
|
189
|
-
}, {
|
|
190
|
-
readonly tag: "qti-gap-text";
|
|
191
|
-
readonly ctor: typeof QtiGapText;
|
|
192
|
-
}, {
|
|
193
|
-
readonly tag: "qti-hotspot-choice";
|
|
194
|
-
readonly ctor: typeof QtiHotspotChoice;
|
|
195
|
-
}, {
|
|
196
|
-
readonly tag: "qti-hottext";
|
|
197
|
-
readonly ctor: typeof QtiHottext;
|
|
198
|
-
}, {
|
|
199
|
-
readonly tag: "qti-inline-choice";
|
|
200
|
-
readonly ctor: typeof QtiInlineChoice;
|
|
201
|
-
}, {
|
|
202
|
-
readonly tag: "qti-prompt";
|
|
203
|
-
readonly ctor: typeof QtiPrompt;
|
|
204
|
-
}, {
|
|
205
|
-
readonly tag: "qti-simple-associable-choice";
|
|
206
|
-
readonly ctor: typeof QtiSimpleAssociableChoice;
|
|
207
|
-
}, {
|
|
208
|
-
readonly tag: "qti-simple-choice";
|
|
209
|
-
readonly ctor: typeof QtiSimpleChoice;
|
|
210
|
-
}, {
|
|
211
181
|
readonly tag: "qti-associate-interaction";
|
|
212
182
|
readonly ctor: typeof QtiAssociateInteraction;
|
|
213
183
|
}, {
|
|
@@ -276,6 +246,36 @@ declare const qtiInteractionElements: readonly [{
|
|
|
276
246
|
}, {
|
|
277
247
|
readonly tag: "qti-upload-interaction";
|
|
278
248
|
readonly ctor: typeof QtiUploadInteraction;
|
|
249
|
+
}, {
|
|
250
|
+
readonly tag: "qti-associable-hotspot";
|
|
251
|
+
readonly ctor: typeof QtiAssociableHotspot;
|
|
252
|
+
}, {
|
|
253
|
+
readonly tag: "qti-gap";
|
|
254
|
+
readonly ctor: typeof QtiGap;
|
|
255
|
+
}, {
|
|
256
|
+
readonly tag: "qti-gap-img";
|
|
257
|
+
readonly ctor: typeof QtiGapImg;
|
|
258
|
+
}, {
|
|
259
|
+
readonly tag: "qti-gap-text";
|
|
260
|
+
readonly ctor: typeof QtiGapText;
|
|
261
|
+
}, {
|
|
262
|
+
readonly tag: "qti-hotspot-choice";
|
|
263
|
+
readonly ctor: typeof QtiHotspotChoice;
|
|
264
|
+
}, {
|
|
265
|
+
readonly tag: "qti-hottext";
|
|
266
|
+
readonly ctor: typeof QtiHottext;
|
|
267
|
+
}, {
|
|
268
|
+
readonly tag: "qti-inline-choice";
|
|
269
|
+
readonly ctor: typeof QtiInlineChoice;
|
|
270
|
+
}, {
|
|
271
|
+
readonly tag: "qti-prompt";
|
|
272
|
+
readonly ctor: typeof QtiPrompt;
|
|
273
|
+
}, {
|
|
274
|
+
readonly tag: "qti-simple-associable-choice";
|
|
275
|
+
readonly ctor: typeof QtiSimpleAssociableChoice;
|
|
276
|
+
}, {
|
|
277
|
+
readonly tag: "qti-simple-choice";
|
|
278
|
+
readonly ctor: typeof QtiSimpleChoice;
|
|
279
279
|
}];
|
|
280
280
|
|
|
281
281
|
export { QtiAssociableHotspot, QtiAssociateInteraction, QtiChoiceInteraction, QtiCustomInteraction, QtiEndAttemptInteraction, QtiExtendedTextInteraction, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiMatchInteraction, QtiMediaInteraction, QtiOrderInteraction, QtiPortableCustomInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiPrompt, QtiSelectPointInteraction, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiTextEntryInteraction, QtiUploadInteraction, qtiInteractionElements };
|
package/dist/interactions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-FG5JAWSN.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssociableHotspot,
|
|
4
4
|
QtiAssociateInteraction,
|
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
QtiTextEntryInteraction,
|
|
34
34
|
QtiUploadInteraction,
|
|
35
35
|
qtiInteractionElements
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JGPWBIVD.js";
|
|
37
37
|
import "./chunk-4DB4SC5K.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-YVZWNLF4.js";
|
|
39
39
|
export {
|
|
40
40
|
QtiAssociableHotspot,
|
|
41
41
|
QtiAssociateInteraction,
|
package/dist/item.css
CHANGED
|
@@ -6034,13 +6034,22 @@ qti-feedback-block::part(feedback) {
|
|
|
6034
6034
|
* including the `qti-extended` slot consumers are told to author in.
|
|
6035
6035
|
*/
|
|
6036
6036
|
|
|
6037
|
-
|
|
6037
|
+
/*
|
|
6038
|
+
* `view` on content marks WHO it is for, and content not addressed to the current audience is
|
|
6039
|
+
* hidden until `TestViewMixin` / `ItemViewMixin` marks it `.show`.
|
|
6040
|
+
*
|
|
6041
|
+
* `qti-item` is excluded because its `view` says which audience to resolve, not who the element
|
|
6042
|
+
* is for. Without the exclusion `<qti-item view="scorer">` would hide the item it configures,
|
|
6043
|
+
* wherever this sheet reaches the host — which it does in a shadow root that adopts it above
|
|
6044
|
+
* `qti-item` rather than inside `item-container`.
|
|
6045
|
+
*/
|
|
6046
|
+
[view]:not(qti-item),
|
|
6038
6047
|
qti-outcome-declaration,
|
|
6039
6048
|
qti-response-declaration {
|
|
6040
6049
|
display: none;
|
|
6041
6050
|
}
|
|
6042
6051
|
|
|
6043
|
-
[view].show {
|
|
6052
|
+
[view]:not(qti-item).show {
|
|
6044
6053
|
display: block;
|
|
6045
6054
|
}
|
|
6046
6055
|
|
package/dist/item.d.ts
CHANGED
|
@@ -1,92 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-D_-9_0e6.js';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
import {
|
|
4
|
-
import { C as ComputedItemContext } from './computed-item.types.d-BKZdSLLJ.js';
|
|
3
|
+
import { V as View } from './session.context.d-Cjs0BkJB.js';
|
|
5
4
|
import { QtiAssessmentItem } from './elements.js';
|
|
6
|
-
import
|
|
7
|
-
import './
|
|
5
|
+
import './qti.context.d-CejJMlfZ.js';
|
|
6
|
+
import './config.context.d-BvU9r-Mg.js';
|
|
7
|
+
import './item.types.d-BDFrq19E.js';
|
|
8
8
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
9
|
-
import './qti-feedback.d-
|
|
10
|
-
import './qti-rule-base.d-
|
|
9
|
+
import './qti-feedback.d-D-w6-mJv.js';
|
|
10
|
+
import './qti-rule-base.d-Bdzg8eGH.js';
|
|
11
11
|
|
|
12
|
+
type Constructor<T = {}> = abstract new (...args: any[]) => T;
|
|
13
|
+
declare class ItemViewInterface {
|
|
14
|
+
view: View;
|
|
15
|
+
updateAssessmentItemView(assessmentItem: QtiAssessmentItem, view: View): void;
|
|
16
|
+
}
|
|
12
17
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* The element loads the item from the provided URL and renders it inside the shadow DOM.
|
|
18
|
+
* The audience a standalone item is presented to — the item-level counterpart of
|
|
19
|
+
* `TestViewMixin`.
|
|
16
20
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
21
|
+
* QTI tags view-specific content with a `view` attribute (`qti-rubric-block view="scorer"` is
|
|
22
|
+
* the common one: the answer model a marker reads). The item stylesheet hides every `[view]`
|
|
23
|
+
* element and reveals it again through a `.show` class, so something has to put that class on.
|
|
24
|
+
* Inside a test `TestViewMixin` does it off `sessionContext.view`. An item delivered on its own
|
|
25
|
+
* has no session, and before this mixin nothing at item level did it either — the hide shipped
|
|
26
|
+
* in `item.css` without its matching show, so a rubric block in a standalone item could not be
|
|
27
|
+
* displayed at all, by any public API. That is what this closes.
|
|
19
28
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
23
|
-
* </qti-item>
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare class ItemContainer extends LitElement {
|
|
27
|
-
#private;
|
|
28
|
-
/** Scoped registry used by the item shadow root. Must be set before connection. */
|
|
29
|
-
customElementRegistry: CustomElementRegistry | null;
|
|
30
|
-
/** URL of the item to load */
|
|
31
|
-
itemURL: string | null;
|
|
32
|
-
/** A parsed HTML document */
|
|
33
|
-
itemDoc: DocumentFragment | null;
|
|
34
|
-
/** The raw XML string */
|
|
35
|
-
itemXML: string | null;
|
|
36
|
-
protected qtiContext: QtiContext;
|
|
37
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
38
|
-
protected handleItemURLChange(): Promise<void>;
|
|
39
|
-
protected handleItemXMLChange(): void;
|
|
40
|
-
connectedCallback(): Promise<void>;
|
|
41
|
-
render(): lit.TemplateResult<1>;
|
|
42
|
-
}
|
|
43
|
-
declare global {
|
|
44
|
-
interface HTMLElementTagNameMap {
|
|
45
|
-
'item-container': ItemContainer;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare class ItemPrintVariables extends LitElement {
|
|
50
|
-
protected computedContext?: ComputedItemContext;
|
|
51
|
-
static styles: lit.CSSResult;
|
|
52
|
-
render(): lit.TemplateResult<1>;
|
|
53
|
-
}
|
|
54
|
-
declare global {
|
|
55
|
-
interface HTMLElementTagNameMap {
|
|
56
|
-
'item-print-variables': ItemPrintVariables;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* `<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.
|
|
62
|
-
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
63
|
-
* Placing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.
|
|
64
|
-
* See `<item-container>` for more details.
|
|
29
|
+
* Deliberately a plain property rather than a session context: a session is the thing a
|
|
30
|
+
* standalone item does not have, and `<qti-item view="scorer">` is the whole API.
|
|
65
31
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
32
|
+
* The view is not itself a correction concept: it says which audience the item is for, and what
|
|
33
|
+
* that implies about answer keys is a separate question with a different answer per audience. So
|
|
34
|
+
* this mixin only resolves the view and paints nothing. Packages that add
|
|
35
|
+
* view-dependent presentation hook in through {@link updateAssessmentItemView}; that is where
|
|
36
|
+
* `@qti-components/corrections` pairs `scorer` with the answer key, exactly as
|
|
37
|
+
* `QtiTestCorrection` does at test level.
|
|
71
38
|
*/
|
|
72
|
-
declare
|
|
73
|
-
#private;
|
|
74
|
-
computedContext: ComputedItemContext;
|
|
75
|
-
protected assessmentItem?: QtiAssessmentItem;
|
|
76
|
-
configContext: ConfigContext;
|
|
77
|
-
/**
|
|
78
|
-
* Provided so that descendants (e.g. `<item-container>`) can read the QTI runtime
|
|
79
|
-
* context for standalone item delivery, including the optional shuffle `seed`.
|
|
80
|
-
*/
|
|
81
|
-
qtiContext: QtiContext;
|
|
82
|
-
constructor();
|
|
83
|
-
render(): lit.TemplateResult<1>;
|
|
84
|
-
disconnectedCallback(): void;
|
|
85
|
-
}
|
|
86
|
-
declare global {
|
|
87
|
-
interface HTMLElementTagNameMap {
|
|
88
|
-
'qti-item': QtiItem;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
39
|
+
declare const ItemViewMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<ItemViewInterface> & T;
|
|
91
40
|
|
|
92
|
-
export {
|
|
41
|
+
export { ItemViewMixin };
|
package/dist/item.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-YIYHCHHM.js";
|
|
2
2
|
import {
|
|
3
3
|
ItemContainer,
|
|
4
4
|
ItemPrintVariables,
|
|
5
|
+
ItemViewMixin,
|
|
5
6
|
QtiItem
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-RAJQKCQ3.js";
|
|
8
|
+
import "./chunk-A32YH4H5.js";
|
|
8
9
|
import "./chunk-4DB4SC5K.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-TLAVOBEM.js";
|
|
11
|
+
import "./chunk-YVZWNLF4.js";
|
|
11
12
|
export {
|
|
12
13
|
ItemContainer,
|
|
13
14
|
ItemPrintVariables,
|
|
15
|
+
ItemViewMixin,
|
|
14
16
|
QtiItem
|
|
15
17
|
};
|
|
16
18
|
//# sourceMappingURL=item.js.map
|
|
@@ -51,8 +51,24 @@ interface VariableDeclaration<T> extends VariableValue<T> {
|
|
|
51
51
|
cardinality?: Cardinality;
|
|
52
52
|
baseType?: BaseType;
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* One `qti-interpolation-table-entry`. `sourceValue` is the *lower bound* of a
|
|
56
|
+
* range rather than a value to match exactly, so the entries have to keep their
|
|
57
|
+
* document order: the first whose bound the source value clears wins.
|
|
58
|
+
*/
|
|
59
|
+
interface InterpolationTableEntry {
|
|
60
|
+
sourceValue: number;
|
|
61
|
+
targetValue: number;
|
|
62
|
+
/** Whether `sourceValue` itself is in range. Defaults to true, per the spec. */
|
|
63
|
+
includeBoundary: boolean;
|
|
64
|
+
}
|
|
54
65
|
interface OutcomeVariable extends VariableDeclaration<string | string[] | null> {
|
|
55
|
-
interpolationTable?:
|
|
66
|
+
interpolationTable?: InterpolationTableEntry[];
|
|
67
|
+
/**
|
|
68
|
+
* A qti-match-table's entries. Its targets are not necessarily numeric — a
|
|
69
|
+
* match table may map onto identifiers or strings — so they stay as written.
|
|
70
|
+
*/
|
|
71
|
+
matchTable?: Map<number, string>;
|
|
56
72
|
externalScored?: 'human' | 'externalMachine' | null;
|
|
57
73
|
}
|
|
58
74
|
interface ResponseVariable extends VariableDeclaration<string | string[] | null> {
|
|
@@ -79,4 +95,4 @@ interface ItemContext {
|
|
|
79
95
|
}
|
|
80
96
|
declare const itemContextVariables: VariableDeclaration<string | string[]>[];
|
|
81
97
|
|
|
82
|
-
export { type BaseType as B, type Calculate as C, type
|
|
98
|
+
export { type BaseType as B, type Calculate as C, type InterpolationTableEntry as I, type Multiple as M, type Ordered as O, type QtiAreaMapEntry as Q, type ResponseInteraction as R, type TemplateVariable as T, type VariableDeclaration as V, type Cardinality as a, type ItemContext as b, type OutcomeVariable as c, type QtiAreaMapping as d, type QtiMapEntry as e, type QtiMapping as f, type ResponseVariable as g, type VariableValue as h, type areaShape as i, type directedPair as j, type float as k, type integer as l, itemContextVariables as m };
|
package/dist/loader.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { QtiAssessmentItem } from './elements.js';
|
|
2
2
|
import 'lit';
|
|
3
|
-
import './item.types.d-
|
|
3
|
+
import './item.types.d-BDFrq19E.js';
|
|
4
4
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
5
|
-
import './qti-feedback.d-
|
|
6
|
-
import './qti-rule-base.d-
|
|
5
|
+
import './qti-feedback.d-D-w6-mJv.js';
|
|
6
|
+
import './qti-rule-base.d-Bdzg8eGH.js';
|
|
7
7
|
|
|
8
8
|
type ManifestInfo = {
|
|
9
9
|
testIdentifier: string;
|