@citolab/qti-components 9.0.0 → 9.2.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 +220 -212
- package/dist/base.d.ts +54 -11
- package/dist/base.js +11 -1
- package/dist/{chunk-GBDTBHUQ.js → chunk-7PXUE2GR.js} +3376 -3252
- package/dist/chunk-7PXUE2GR.js.map +1 -0
- package/dist/chunk-A32YH4H5.js +7 -0
- package/dist/chunk-A32YH4H5.js.map +1 -0
- 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-WTV7NQHO.js → chunk-GPGUXZ3X.js} +20 -6
- package/dist/{chunk-WTV7NQHO.js.map → chunk-GPGUXZ3X.js.map} +1 -1
- 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-3MQNPN7A.js → chunk-RAJQKCQ3.js} +68 -11
- 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-HDEG6BAZ.js → chunk-TLAVOBEM.js} +16 -8
- package/dist/chunk-TLAVOBEM.js.map +1 -0
- package/dist/{chunk-3NPCS4IT.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/{chunk-DXEWBTJB.js → chunk-ZOQVTG5L.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 +37 -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 +1947 -98
- 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-BfAZE6UF.d.ts} +61 -9
- 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 +8 -6
- package/dist/transformers.js +1 -1
- package/package.json +13 -12
- package/dist/chunk-3MQNPN7A.js.map +0 -1
- package/dist/chunk-3VQSUWCK.js.map +0 -1
- package/dist/chunk-5BXJRO5O.js.map +0 -1
- package/dist/chunk-GBDTBHUQ.js.map +0 -1
- package/dist/chunk-HDEG6BAZ.js.map +0 -1
- package/dist/chunk-TLTYXWW7.js +0 -7
- package/dist/chunk-TLTYXWW7.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-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-3NPCS4IT.js.map → chunk-YIYHCHHM.js.map} +0 -0
- /package/dist/{chunk-KCK27QBP.js.map → chunk-ZG7FBQFP.js.map} +0 -0
- /package/dist/{chunk-DXEWBTJB.js.map → chunk-ZOQVTG5L.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 TestTtsPlay, E as TestTtsPrev, F as TestTtsResume, G as TestTtsStop, H as TestView, J as TestViewToggle, K as TtsContext, L as ttsContext } from './qti-test.d-BfAZE6UF.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-ZOQVTG5L.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-GPGUXZ3X.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,
|
|
@@ -73,8 +74,8 @@ import {
|
|
|
73
74
|
TestView,
|
|
74
75
|
TestViewToggle,
|
|
75
76
|
ttsContext
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import "./chunk-
|
|
77
|
+
} from "./chunk-7PXUE2GR.js";
|
|
78
|
+
import "./chunk-JLZCZVRX.js";
|
|
78
79
|
import {
|
|
79
80
|
QtiAssessmentItem,
|
|
80
81
|
QtiAssessmentStimulusRef,
|
|
@@ -95,8 +96,8 @@ import {
|
|
|
95
96
|
QtiTemplateConstraint,
|
|
96
97
|
QtiTemplateDeclaration,
|
|
97
98
|
QtiTemplateProcessing
|
|
98
|
-
} from "./chunk-
|
|
99
|
-
import "./chunk-
|
|
99
|
+
} from "./chunk-REKCRWJV.js";
|
|
100
|
+
import "./chunk-FG5JAWSN.js";
|
|
100
101
|
import {
|
|
101
102
|
QtiAssociableHotspot,
|
|
102
103
|
QtiAssociateInteraction,
|
|
@@ -131,25 +132,26 @@ import {
|
|
|
131
132
|
QtiTextEntryInteraction,
|
|
132
133
|
QtiUploadInteraction,
|
|
133
134
|
qtiInteractionElements
|
|
134
|
-
} from "./chunk-
|
|
135
|
-
import "./chunk-
|
|
135
|
+
} from "./chunk-JGPWBIVD.js";
|
|
136
|
+
import "./chunk-YIYHCHHM.js";
|
|
136
137
|
import {
|
|
137
138
|
ItemContainer,
|
|
138
139
|
ItemPrintVariables,
|
|
140
|
+
ItemViewMixin,
|
|
139
141
|
QtiItem
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import "./chunk-
|
|
142
|
+
} from "./chunk-RAJQKCQ3.js";
|
|
143
|
+
import "./chunk-A32YH4H5.js";
|
|
142
144
|
import "./chunk-4DB4SC5K.js";
|
|
143
145
|
import {
|
|
144
146
|
getItemByUri,
|
|
145
147
|
getManifestInfo
|
|
146
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-LFVPS7KB.js";
|
|
147
149
|
import {
|
|
148
150
|
qtiTransformItem,
|
|
149
151
|
qtiTransformManifest,
|
|
150
152
|
qtiTransformTest
|
|
151
|
-
} from "./chunk-
|
|
152
|
-
import "./chunk-
|
|
153
|
+
} from "./chunk-TLAVOBEM.js";
|
|
154
|
+
import "./chunk-ZG7FBQFP.js";
|
|
153
155
|
import {
|
|
154
156
|
QtiAnd,
|
|
155
157
|
QtiAnyN,
|
|
@@ -164,6 +166,8 @@ import {
|
|
|
164
166
|
QtiDurationLt,
|
|
165
167
|
QtiEqual,
|
|
166
168
|
QtiEqualRounded,
|
|
169
|
+
QtiExitResponse,
|
|
170
|
+
QtiExitTest,
|
|
167
171
|
QtiFieldValue,
|
|
168
172
|
QtiGcd,
|
|
169
173
|
QtiGt,
|
|
@@ -181,6 +185,7 @@ import {
|
|
|
181
185
|
QtiMapResponse,
|
|
182
186
|
QtiMapResponsePoint,
|
|
183
187
|
QtiMatch,
|
|
188
|
+
QtiMathConstant,
|
|
184
189
|
QtiMathOperator,
|
|
185
190
|
QtiMax,
|
|
186
191
|
QtiMember,
|
|
@@ -205,6 +210,7 @@ import {
|
|
|
205
210
|
QtiResponseElse,
|
|
206
211
|
QtiResponseElseIf,
|
|
207
212
|
QtiResponseIf,
|
|
213
|
+
QtiResponseProcessingFragment,
|
|
208
214
|
QtiRound,
|
|
209
215
|
QtiRoundTo,
|
|
210
216
|
QtiSetCorrectResponse,
|
|
@@ -223,7 +229,7 @@ import {
|
|
|
223
229
|
QtiVariable,
|
|
224
230
|
qtiAndMixin,
|
|
225
231
|
qtiSubtractMixin
|
|
226
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-G5RQ5GKG.js";
|
|
227
233
|
import {
|
|
228
234
|
CustomStateSetShim,
|
|
229
235
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -231,6 +237,8 @@ import {
|
|
|
231
237
|
Interaction,
|
|
232
238
|
IsNullOrUndefined,
|
|
233
239
|
QtiConditionExpression,
|
|
240
|
+
QtiExitResponseSignal,
|
|
241
|
+
QtiExitTestSignal,
|
|
234
242
|
QtiExpression,
|
|
235
243
|
QtiFeedback,
|
|
236
244
|
QtiRuleElement,
|
|
@@ -245,6 +253,7 @@ import {
|
|
|
245
253
|
convertNumberToUniversalFormat,
|
|
246
254
|
decimalSeparator,
|
|
247
255
|
dropRegion,
|
|
256
|
+
getCustomOperator,
|
|
248
257
|
installCustomStateSetFallback,
|
|
249
258
|
interactionContext,
|
|
250
259
|
isSeed,
|
|
@@ -255,6 +264,7 @@ import {
|
|
|
255
264
|
parsePoint,
|
|
256
265
|
parseResponseAttribute,
|
|
257
266
|
qtiContext,
|
|
267
|
+
registerCustomOperator,
|
|
258
268
|
removeDoubleSlashes,
|
|
259
269
|
responseAttributeConverter,
|
|
260
270
|
serializePair,
|
|
@@ -262,8 +272,9 @@ import {
|
|
|
262
272
|
serializeResponseAttribute,
|
|
263
273
|
sessionContext,
|
|
264
274
|
testContext,
|
|
275
|
+
unregisterCustomOperator,
|
|
265
276
|
validationMessage
|
|
266
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-YVZWNLF4.js";
|
|
267
278
|
export {
|
|
268
279
|
CandidateCorrectionMixin,
|
|
269
280
|
ChoiceCorrectionMixin,
|
|
@@ -279,6 +290,7 @@ export {
|
|
|
279
290
|
ItemPrintVariables,
|
|
280
291
|
ItemShowCandidateCorrection,
|
|
281
292
|
ItemShowCorrectResponse,
|
|
293
|
+
ItemViewMixin,
|
|
282
294
|
QtiAnd,
|
|
283
295
|
QtiAnyN,
|
|
284
296
|
QtiAssessmentItem,
|
|
@@ -311,6 +323,10 @@ export {
|
|
|
311
323
|
QtiEndAttemptInteraction,
|
|
312
324
|
QtiEqual,
|
|
313
325
|
QtiEqualRounded,
|
|
326
|
+
QtiExitResponse,
|
|
327
|
+
QtiExitResponseSignal,
|
|
328
|
+
QtiExitTest,
|
|
329
|
+
QtiExitTestSignal,
|
|
314
330
|
QtiExpression,
|
|
315
331
|
QtiExtendedTextInteraction,
|
|
316
332
|
QtiExtendedTextInteractionCorrection,
|
|
@@ -363,6 +379,7 @@ export {
|
|
|
363
379
|
QtiMatch,
|
|
364
380
|
QtiMatchInteraction,
|
|
365
381
|
QtiMatchInteractionCorrection,
|
|
382
|
+
QtiMathConstant,
|
|
366
383
|
QtiMathOperator,
|
|
367
384
|
QtiMax,
|
|
368
385
|
QtiMediaInteraction,
|
|
@@ -372,6 +389,7 @@ export {
|
|
|
372
389
|
QtiMultiple,
|
|
373
390
|
QtiNot,
|
|
374
391
|
QtiNull,
|
|
392
|
+
QtiNumberSelected,
|
|
375
393
|
QtiOr,
|
|
376
394
|
QtiOrderInteraction,
|
|
377
395
|
QtiOrderInteractionCorrection,
|
|
@@ -401,6 +419,7 @@ export {
|
|
|
401
419
|
QtiResponseElseIf,
|
|
402
420
|
QtiResponseIf,
|
|
403
421
|
QtiResponseProcessing,
|
|
422
|
+
QtiResponseProcessingFragment,
|
|
404
423
|
QtiRound,
|
|
405
424
|
QtiRoundTo,
|
|
406
425
|
QtiRubricBlock,
|
|
@@ -479,6 +498,7 @@ export {
|
|
|
479
498
|
correctionPart,
|
|
480
499
|
decimalSeparator,
|
|
481
500
|
dropRegion,
|
|
501
|
+
getCustomOperator,
|
|
482
502
|
getItemByUri,
|
|
483
503
|
getManifestInfo,
|
|
484
504
|
installCustomStateSetFallback,
|
|
@@ -497,6 +517,7 @@ export {
|
|
|
497
517
|
qtiTransformItem,
|
|
498
518
|
qtiTransformManifest,
|
|
499
519
|
qtiTransformTest,
|
|
520
|
+
registerCustomOperator,
|
|
500
521
|
removeDoubleSlashes,
|
|
501
522
|
responseAttributeConverter,
|
|
502
523
|
serializePair,
|
|
@@ -505,6 +526,7 @@ export {
|
|
|
505
526
|
sessionContext,
|
|
506
527
|
testContext,
|
|
507
528
|
ttsContext,
|
|
529
|
+
unregisterCustomOperator,
|
|
508
530
|
validationMessage
|
|
509
531
|
};
|
|
510
532
|
//# 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;
|