@citolab/qti-components 10.0.0-next.15 → 10.0.0-next.17
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 +1503 -2931
- package/dist/base.d.ts +37 -11
- package/dist/base.js +8 -1
- package/dist/{chunk-G2EIC7H2.js → chunk-7MYZHZWV.js} +955 -364
- package/dist/chunk-7MYZHZWV.js.map +1 -0
- package/dist/chunk-DJ7PB252.js +7 -0
- package/dist/chunk-DJ7PB252.js.map +1 -0
- package/dist/{chunk-F553IZPL.js → chunk-J3F3JSCW.js} +2 -2
- package/dist/chunk-J6VX4N7M.js +197 -0
- package/dist/chunk-J6VX4N7M.js.map +1 -0
- package/dist/{chunk-32PI7KWX.js → chunk-L3LBSAGZ.js} +2 -2
- package/dist/{chunk-WIUPAUJV.js → chunk-L7J2ZOJL.js} +2 -2
- package/dist/{chunk-IM5AKPIJ.js → chunk-NZ7ZC4SP.js} +96 -4
- package/dist/chunk-NZ7ZC4SP.js.map +1 -0
- package/dist/{chunk-XY5DHYIH.js → chunk-OG5HIRHE.js} +3 -3
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/{chunk-HT3LSWXL.js → chunk-QLGUI5VG.js} +2 -2
- package/dist/chunk-UCXLDQYA.js +56 -0
- package/dist/chunk-UCXLDQYA.js.map +1 -0
- package/dist/{chunk-5AJZGRWI.js → chunk-UDJ7MHLF.js} +4 -4
- package/dist/chunk-UDJ7MHLF.js.map +1 -0
- package/dist/{chunk-MIQZBDTB.js → chunk-UURHLJVM.js} +107 -1809
- package/dist/chunk-UURHLJVM.js.map +1 -0
- package/dist/{chunk-IWNRQVNW.js → chunk-V5GL7PTC.js} +2 -2
- package/dist/{chunk-QT7WQXCS.js → chunk-WGUQCB2Z.js} +28 -82
- package/dist/chunk-WGUQCB2Z.js.map +1 -0
- package/dist/chunk-WWY2H2YO.js +7 -0
- package/dist/chunk-WWY2H2YO.js.map +1 -0
- package/dist/{chunk-URYYGVTA.js → chunk-ZAHZVBV7.js} +60 -75
- package/dist/chunk-ZAHZVBV7.js.map +1 -0
- package/dist/{computed.types.d-IXACuBr7.d.ts → computed.types.d-D4wskgi0.d.ts} +2 -2
- package/dist/corrections.d.ts +123 -20
- package/dist/corrections.js +11 -11
- package/dist/corrections.js.map +1 -1
- package/dist/elements.d.ts +35 -112
- package/dist/elements.js +8 -5
- package/dist/index.d.ts +18 -14
- package/dist/index.js +29 -63
- package/dist/interactions.d.ts +84 -17
- package/dist/interactions.js +4 -3
- package/dist/item.css +1057 -2383
- package/dist/item.d.ts +6 -4
- package/dist/item.js +5 -4
- package/dist/item.types.d-Zc6ZQDhu.d.ts +25 -0
- package/dist/loader.d.ts +4 -2
- package/dist/loader.js +1 -0
- package/dist/processing.d.ts +4 -3
- package/dist/processing.js +4 -3
- package/dist/public-events.d-3dGip9pd.d.ts +105 -0
- package/dist/qti-components-jsx.d.ts +4058 -4421
- package/dist/{qti-condition-expression.d-B-T1NNl0.d.ts → qti-condition-expression.d-7Kd4LBxn.d.ts} +1 -1
- package/dist/{qti-expression.d-B-Cfbqlb.d.ts → qti-expression.d-iH3w6mqf.d.ts} +2 -1
- package/dist/{qti-feedback.d-GAqMqAt6.d.ts → qti-feedback.d-CT0W-8Gm.d.ts} +2 -2
- package/dist/{qti-item.d-pFcNk0th.d.ts → qti-item.d-CLChmRvB.d.ts} +2 -1
- package/dist/qti-test-state-BAf5AmJ2.d.ts +68 -0
- package/dist/qti-test-state.d-D8Q89RzZ.d.ts +57 -0
- package/dist/{qti-test.d-BjhVQnQy.d.ts → qti-test.d-COzv7YZG.d.ts} +14 -548
- package/dist/{qti-text-entry-interaction.d-DECzpIzi.d.ts → qti-text-entry-interaction.d-DsUyecBC.d.ts} +144 -43
- package/dist/{record.d-CljDLwRz.d.ts → record.d-BfZhFr0L.d.ts} +34 -3
- package/dist/{session.context.d-DW09Lrie.d.ts → session.context.d-9gRdGK4T.d.ts} +2 -2
- package/dist/test-plugin-api.d.ts +134 -0
- package/dist/test-plugin-api.js +19 -0
- package/dist/test-plugin-api.js.map +1 -0
- package/dist/test.d.ts +16 -158
- package/dist/test.js +13 -52
- package/dist/transformers.js +1 -0
- package/dist/{item.types.d-DuVR0ZVK.d.ts → variables.d-DWHlTszN.d.ts} +1 -23
- package/package.json +13 -9
- package/dist/chunk-5AJZGRWI.js.map +0 -1
- package/dist/chunk-G2EIC7H2.js.map +0 -1
- package/dist/chunk-IM5AKPIJ.js.map +0 -1
- package/dist/chunk-MIQZBDTB.js.map +0 -1
- package/dist/chunk-QT7WQXCS.js.map +0 -1
- package/dist/chunk-RNLSNH4N.js +0 -7
- package/dist/chunk-RNLSNH4N.js.map +0 -1
- package/dist/chunk-URYYGVTA.js.map +0 -1
- /package/dist/{chunk-F553IZPL.js.map → chunk-J3F3JSCW.js.map} +0 -0
- /package/dist/{chunk-32PI7KWX.js.map → chunk-L3LBSAGZ.js.map} +0 -0
- /package/dist/{chunk-WIUPAUJV.js.map → chunk-L7J2ZOJL.js.map} +0 -0
- /package/dist/{chunk-XY5DHYIH.js.map → chunk-OG5HIRHE.js.map} +0 -0
- /package/dist/{chunk-HT3LSWXL.js.map → chunk-QLGUI5VG.js.map} +0 -0
- /package/dist/{chunk-IWNRQVNW.js.map → chunk-V5GL7PTC.js.map} +0 -0
package/dist/elements.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-V5GL7PTC.js";
|
|
2
2
|
import {
|
|
3
|
-
PUBLIC_ITEM_EVENTS,
|
|
4
3
|
QtiAssessmentItem,
|
|
5
4
|
QtiAssessmentStimulus,
|
|
6
5
|
QtiAssessmentStimulusRef,
|
|
@@ -20,15 +19,19 @@ import {
|
|
|
20
19
|
QtiStylesheet,
|
|
21
20
|
QtiTemplateConstraint,
|
|
22
21
|
QtiTemplateDeclaration,
|
|
23
|
-
QtiTemplateProcessing
|
|
22
|
+
QtiTemplateProcessing
|
|
23
|
+
} from "./chunk-WGUQCB2Z.js";
|
|
24
|
+
import {
|
|
25
|
+
PUBLIC_ITEM_EVENTS,
|
|
24
26
|
dispatchDeclared,
|
|
25
27
|
dispatchPublic,
|
|
26
28
|
listenDeclared,
|
|
27
29
|
listenPublic
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UCXLDQYA.js";
|
|
29
31
|
import "./chunk-4DB4SC5K.js";
|
|
30
32
|
import "./chunk-LORYM4U2.js";
|
|
31
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-NZ7ZC4SP.js";
|
|
34
|
+
import "./chunk-PZ5AY32C.js";
|
|
32
35
|
export {
|
|
33
36
|
PUBLIC_ITEM_EVENTS,
|
|
34
37
|
QtiAssessmentItem,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as
|
|
2
|
-
export { IMyQtiTest, IQtiTest, ITestProcessingMixin,
|
|
3
|
-
export {
|
|
1
|
+
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestContainer, q as TestEndAttempt, r as TestNavigation, s as TestNext, t as TestPrev, u as TestSubmit } from './qti-test.d-COzv7YZG.js';
|
|
2
|
+
export { IMyQtiTest, IQtiTest, ITestProcessingMixin, pluginElements } from './test.js';
|
|
3
|
+
export { Q as QTI_TEST_STATE_VERSION, a as QtiTestPluginState, b as QtiTestState, c as QtiTestStateItem, d as QtiTestStateSession, e as QtiTestStateValue, p as pluginState } from './qti-test-state-BAf5AmJ2.js';
|
|
4
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-CLChmRvB.js';
|
|
4
5
|
export { ItemViewMixin } from './item.js';
|
|
5
|
-
export {
|
|
6
|
+
export { F as FeedbackEventDetail, P as PUBLIC_ITEM_EVENTS, a as PublicEventDeclaration, b as PublicItemEventMap, c as PublicItemEventName, R as RubricPlacement, d as dispatchDeclared, e as dispatchPublic, l as listenDeclared, f as listenPublic } from './public-events.d-3dGip9pd.js';
|
|
7
|
+
export { QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing } from './elements.js';
|
|
6
8
|
export { QtiCustomInteraction, QtiEndAttemptInteraction, QtiMediaInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiUploadInteraction, qtiInteractionElements } from './interactions.js';
|
|
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, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-
|
|
9
|
+
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, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-DsUyecBC.js';
|
|
8
10
|
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-Bb9vnLzP.js';
|
|
9
11
|
export { qtiTransformManifest } from './transformers.js';
|
|
10
12
|
export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
|
|
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-
|
|
13
|
-
export { C as ComputedContext, a as ComputedItem } from './computed.types.d-
|
|
13
|
+
export { CustomOperator, CustomOperatorValue, CustomStateSetShim, CustomStateSupport, IsNullOrUndefined, STATE_ALIASES, ScoringHelper, boxSizing, classifyCustomStateSupport, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, getCustomOperator, hasState, installCustomStateSetFallback, itemContext, registerCustomOperator, removeDoubleSlashes, setState, unregisterCustomOperator, validationMessage } from './base.js';
|
|
14
|
+
export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-9gRdGK4T.js';
|
|
15
|
+
export { C as ComputedContext, a as ComputedItem } from './computed.types.d-D4wskgi0.js';
|
|
14
16
|
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-CCqlJXpE.js';
|
|
15
|
-
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, i as inferRecordFieldBaseType,
|
|
16
|
-
export {
|
|
17
|
+
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, V as ValidityKind, c as ValidityTrigger, i as inferRecordFieldBaseType, d as interactionContext, e as isRecordValue, r as readRecordFieldValues } from './record.d-BfZhFr0L.js';
|
|
18
|
+
export { I as ItemContext, i as itemContextVariables } from './item.types.d-Zc6ZQDhu.js';
|
|
17
19
|
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';
|
|
18
|
-
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-
|
|
19
|
-
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-
|
|
20
|
-
export { Q as QtiConditionExpression } from './qti-condition-expression.d-
|
|
20
|
+
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-iH3w6mqf.js';
|
|
21
|
+
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-CT0W-8Gm.js';
|
|
22
|
+
export { Q as QtiConditionExpression } from './qti-condition-expression.d-7Kd4LBxn.js';
|
|
21
23
|
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';
|
|
24
|
+
export { B as BaseType, C as Calculate, a as Cardinality, I as InterpolationTableEntry, M as Multiple, O as Ordered, b as OutcomeVariable, Q as QtiAreaMapEntry, c as QtiAreaMapping, d as QtiMapEntry, e as QtiMapping, R as ResponseInteraction, f as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, g as VariableValue, h as areaShape, i as directedPair, j as float, k as integer } from './variables.d-DWHlTszN.js';
|
|
22
25
|
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';
|
|
23
26
|
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-CeKP0Ooi.js';
|
|
24
27
|
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';
|
|
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,
|
|
28
|
+
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, TestNavigationCorrection, TestShowCorrectResponse, correctionPart } from './corrections.js';
|
|
26
29
|
import 'lit';
|
|
27
30
|
import '@heximal/templates';
|
|
31
|
+
import './qti-test-state.d-D8Q89RzZ.js';
|
|
28
32
|
import 'lit/directives/ref.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-QLGUI5VG.js";
|
|
2
|
+
import {
|
|
3
|
+
pluginState
|
|
4
|
+
} from "./chunk-DJ7PB252.js";
|
|
2
5
|
import {
|
|
3
6
|
CandidateCorrectionMixin,
|
|
4
7
|
ChoiceCorrectionMixin,
|
|
@@ -31,11 +34,10 @@ import {
|
|
|
31
34
|
QtiSliderInteractionCorrection,
|
|
32
35
|
QtiTestCorrection,
|
|
33
36
|
QtiTextEntryInteractionCorrection,
|
|
34
|
-
TestCheckItemCorrection,
|
|
35
37
|
TestNavigationCorrection,
|
|
36
38
|
TestShowCorrectResponse,
|
|
37
39
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ZAHZVBV7.js";
|
|
39
41
|
import {
|
|
40
42
|
QTI_TEST_STATE_VERSION,
|
|
41
43
|
QtiAssessmentItemRef,
|
|
@@ -53,40 +55,17 @@ import {
|
|
|
53
55
|
QtiTestPart,
|
|
54
56
|
QtiTestVariables,
|
|
55
57
|
QtiTestVariablesExpression,
|
|
56
|
-
TestBookmark,
|
|
57
|
-
TestCheckItem,
|
|
58
58
|
TestContainer,
|
|
59
59
|
TestEndAttempt,
|
|
60
|
-
TestItemLink,
|
|
61
|
-
TestItemToSpeech,
|
|
62
60
|
TestNavigation,
|
|
63
61
|
TestNext,
|
|
64
62
|
TestPrev,
|
|
65
|
-
TestPrintContext,
|
|
66
|
-
TestPrintState,
|
|
67
|
-
TestPrintVariables,
|
|
68
|
-
TestScoringButtons,
|
|
69
|
-
TestScoringFeedback,
|
|
70
|
-
TestSectionLink,
|
|
71
|
-
TestStamp,
|
|
72
63
|
TestSubmit,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
TestTtsPrev,
|
|
78
|
-
TestTtsResume,
|
|
79
|
-
TestTtsStop,
|
|
80
|
-
TestView,
|
|
81
|
-
TestViewToggle,
|
|
82
|
-
bookmarkedItems,
|
|
83
|
-
pluginElements,
|
|
84
|
-
pluginState,
|
|
85
|
-
ttsElements
|
|
86
|
-
} from "./chunk-MIQZBDTB.js";
|
|
87
|
-
import "./chunk-IWNRQVNW.js";
|
|
64
|
+
pluginElements
|
|
65
|
+
} from "./chunk-UURHLJVM.js";
|
|
66
|
+
import "./chunk-J6VX4N7M.js";
|
|
67
|
+
import "./chunk-V5GL7PTC.js";
|
|
88
68
|
import {
|
|
89
|
-
PUBLIC_ITEM_EVENTS,
|
|
90
69
|
QtiAssessmentItem,
|
|
91
70
|
QtiAssessmentStimulus,
|
|
92
71
|
QtiAssessmentStimulusRef,
|
|
@@ -106,13 +85,16 @@ import {
|
|
|
106
85
|
QtiStylesheet,
|
|
107
86
|
QtiTemplateConstraint,
|
|
108
87
|
QtiTemplateDeclaration,
|
|
109
|
-
QtiTemplateProcessing
|
|
88
|
+
QtiTemplateProcessing
|
|
89
|
+
} from "./chunk-WGUQCB2Z.js";
|
|
90
|
+
import {
|
|
91
|
+
PUBLIC_ITEM_EVENTS,
|
|
110
92
|
dispatchDeclared,
|
|
111
93
|
dispatchPublic,
|
|
112
94
|
listenDeclared,
|
|
113
95
|
listenPublic
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import "./chunk-
|
|
96
|
+
} from "./chunk-UCXLDQYA.js";
|
|
97
|
+
import "./chunk-J3F3JSCW.js";
|
|
116
98
|
import {
|
|
117
99
|
QtiAssociableHotspot,
|
|
118
100
|
QtiAssociateInteraction,
|
|
@@ -149,15 +131,15 @@ import {
|
|
|
149
131
|
inlineScriptText,
|
|
150
132
|
inlineStyleText,
|
|
151
133
|
qtiInteractionElements
|
|
152
|
-
} from "./chunk-
|
|
153
|
-
import "./chunk-
|
|
134
|
+
} from "./chunk-7MYZHZWV.js";
|
|
135
|
+
import "./chunk-L7J2ZOJL.js";
|
|
154
136
|
import {
|
|
155
137
|
ItemContainer,
|
|
156
138
|
ItemPrintVariables,
|
|
157
139
|
ItemViewMixin,
|
|
158
140
|
QtiItem
|
|
159
|
-
} from "./chunk-
|
|
160
|
-
import "./chunk-
|
|
141
|
+
} from "./chunk-OG5HIRHE.js";
|
|
142
|
+
import "./chunk-WWY2H2YO.js";
|
|
161
143
|
import "./chunk-4DB4SC5K.js";
|
|
162
144
|
import {
|
|
163
145
|
getItemByUri,
|
|
@@ -168,7 +150,7 @@ import {
|
|
|
168
150
|
qtiTransformManifest,
|
|
169
151
|
qtiTransformTest
|
|
170
152
|
} from "./chunk-LORYM4U2.js";
|
|
171
|
-
import "./chunk-
|
|
153
|
+
import "./chunk-L3LBSAGZ.js";
|
|
172
154
|
import {
|
|
173
155
|
QtiAnd,
|
|
174
156
|
QtiAnyN,
|
|
@@ -246,7 +228,7 @@ import {
|
|
|
246
228
|
QtiVariable,
|
|
247
229
|
qtiAndMixin,
|
|
248
230
|
qtiSubtractMixin
|
|
249
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-UDJ7MHLF.js";
|
|
250
232
|
import {
|
|
251
233
|
CustomStateSetShim,
|
|
252
234
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -260,6 +242,7 @@ import {
|
|
|
260
242
|
QtiFeedback,
|
|
261
243
|
QtiRuleElement,
|
|
262
244
|
QtiVariableDeclaration,
|
|
245
|
+
STATE_ALIASES,
|
|
263
246
|
ScoringHelper,
|
|
264
247
|
asSeed,
|
|
265
248
|
boxSizing,
|
|
@@ -271,6 +254,7 @@ import {
|
|
|
271
254
|
decimalSeparator,
|
|
272
255
|
dropRegion,
|
|
273
256
|
getCustomOperator,
|
|
257
|
+
hasState,
|
|
274
258
|
inferRecordFieldBaseType,
|
|
275
259
|
installCustomStateSetFallback,
|
|
276
260
|
interactionContext,
|
|
@@ -291,10 +275,12 @@ import {
|
|
|
291
275
|
serializePoint,
|
|
292
276
|
serializeResponseAttribute,
|
|
293
277
|
sessionContext,
|
|
278
|
+
setState,
|
|
294
279
|
testContext,
|
|
295
280
|
unregisterCustomOperator,
|
|
296
281
|
validationMessage
|
|
297
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-NZ7ZC4SP.js";
|
|
283
|
+
import "./chunk-PZ5AY32C.js";
|
|
298
284
|
export {
|
|
299
285
|
CandidateCorrectionMixin,
|
|
300
286
|
ChoiceCorrectionMixin,
|
|
@@ -486,38 +472,17 @@ export {
|
|
|
486
472
|
QtiUploadInteraction,
|
|
487
473
|
QtiVariable,
|
|
488
474
|
QtiVariableDeclaration,
|
|
475
|
+
STATE_ALIASES,
|
|
489
476
|
ScoringHelper,
|
|
490
|
-
TestBookmark,
|
|
491
|
-
TestCheckItem,
|
|
492
|
-
TestCheckItemCorrection,
|
|
493
477
|
TestContainer,
|
|
494
478
|
TestEndAttempt,
|
|
495
|
-
TestItemLink,
|
|
496
|
-
TestItemToSpeech,
|
|
497
479
|
TestNavigation,
|
|
498
480
|
TestNavigationCorrection,
|
|
499
481
|
TestNext,
|
|
500
482
|
TestPrev,
|
|
501
|
-
TestPrintContext,
|
|
502
|
-
TestPrintState,
|
|
503
|
-
TestPrintVariables,
|
|
504
|
-
TestScoringButtons,
|
|
505
|
-
TestScoringFeedback,
|
|
506
|
-
TestSectionLink,
|
|
507
483
|
TestShowCorrectResponse,
|
|
508
|
-
TestStamp,
|
|
509
484
|
TestSubmit,
|
|
510
|
-
TestTtsNext,
|
|
511
|
-
TestTtsPause,
|
|
512
|
-
TestTtsPick,
|
|
513
|
-
TestTtsPlay,
|
|
514
|
-
TestTtsPrev,
|
|
515
|
-
TestTtsResume,
|
|
516
|
-
TestTtsStop,
|
|
517
|
-
TestView,
|
|
518
|
-
TestViewToggle,
|
|
519
485
|
asSeed,
|
|
520
|
-
bookmarkedItems,
|
|
521
486
|
boxSizing,
|
|
522
487
|
classifyCustomStateSupport,
|
|
523
488
|
computedContext,
|
|
@@ -532,6 +497,7 @@ export {
|
|
|
532
497
|
getCustomOperator,
|
|
533
498
|
getItemByUri,
|
|
534
499
|
getManifestInfo,
|
|
500
|
+
hasState,
|
|
535
501
|
inferRecordFieldBaseType,
|
|
536
502
|
inlineScriptText,
|
|
537
503
|
inlineStyleText,
|
|
@@ -564,8 +530,8 @@ export {
|
|
|
564
530
|
serializePoint,
|
|
565
531
|
serializeResponseAttribute,
|
|
566
532
|
sessionContext,
|
|
533
|
+
setState,
|
|
567
534
|
testContext,
|
|
568
|
-
ttsElements,
|
|
569
535
|
unregisterCustomOperator,
|
|
570
536
|
validationMessage
|
|
571
537
|
};
|
package/dist/interactions.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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, B 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-
|
|
2
|
-
export { O as Orientation, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-
|
|
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, B 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-DsUyecBC.js';
|
|
2
|
+
export { O as Orientation, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-DsUyecBC.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
|
-
import { CSSResultGroup, LitElement
|
|
5
|
-
import { I as Interaction } from './record.d-
|
|
4
|
+
import { CSSResultGroup, LitElement } from 'lit';
|
|
5
|
+
import { I as Interaction, c as ValidityTrigger } from './record.d-BfZhFr0L.js';
|
|
6
6
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
7
7
|
import './config.context.d-CCqlJXpE.js';
|
|
8
|
-
import './
|
|
8
|
+
import './variables.d-DWHlTszN.js';
|
|
9
|
+
import './item.types.d-Zc6ZQDhu.js';
|
|
9
10
|
import './qti.context.d-CejJMlfZ.js';
|
|
10
11
|
import 'lit/directives/ref.js';
|
|
11
12
|
|
|
@@ -13,6 +14,10 @@ import 'lit/directives/ref.js';
|
|
|
13
14
|
* Upload interaction: candidates attach a file as their response.
|
|
14
15
|
*
|
|
15
16
|
* @slot prompt - The prompt shown above the file input.
|
|
17
|
+
*
|
|
18
|
+
* @csspart input - The file input element.
|
|
19
|
+
* @cssstate disabled - The interaction is switched off.
|
|
20
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
16
21
|
*/
|
|
17
22
|
declare class QtiUploadInteraction extends Interaction {
|
|
18
23
|
#private;
|
|
@@ -33,27 +38,76 @@ declare global {
|
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
/**
|
|
36
|
-
* Position
|
|
41
|
+
* Position object interaction (QTI 3, 3.2.16): the candidate places copies of an image (the
|
|
42
|
+
* object) on another image (the stage, the parent `qti-position-object-stage`). The response is a
|
|
43
|
+
* list of `point`s, each the object's centre point in the stage image's own coordinates (its
|
|
44
|
+
* `width`/`height` attributes, else its natural size), whatever size the stage is shown at.
|
|
45
|
+
*
|
|
46
|
+
* Placing:
|
|
47
|
+
* - drag the object onto the stage, or click it and then click the stage;
|
|
48
|
+
* - keyboard: focus the object and press Enter or Space to place a copy at the stage's centre;
|
|
49
|
+
* on a placed copy, the arrow keys move it (Shift: ten times as far) and Delete or Backspace
|
|
50
|
+
* removes it;
|
|
51
|
+
* - drag a placed copy to move it, or off the stage to remove it.
|
|
52
|
+
*
|
|
53
|
+
* At `max-choices` (default 1; 0 = no limit) no further copy is placed and the host carries
|
|
54
|
+
* `:state(used)`. Area-mapping areas are never shown, only the candidate's positions.
|
|
37
55
|
*
|
|
38
|
-
* @
|
|
56
|
+
* @customElement qti-position-object-interaction
|
|
57
|
+
* @slot - The object image (`img` or `picture`).
|
|
58
|
+
* @attr {number} [max-choices=1] - Most positions; 0 = no limit.
|
|
59
|
+
* @attr {number} [min-choices=0] - Fewest positions for a valid response.
|
|
60
|
+
* @attr {string} center-point - The object's centre point, `x y` (or `x,y`) from its top-left, in
|
|
61
|
+
* the object's own pixels. Default: the centre of its box.
|
|
62
|
+
*
|
|
63
|
+
* @csspart object - The object to place, beside the stage. Tokens: `selected` while a click has
|
|
64
|
+
* picked it up (the next click on the stage places it); `used` at `max-choices`.
|
|
65
|
+
* @csspart point - Each placed copy on the stage.
|
|
66
|
+
* @csspart message - The validation message, hidden until `reportValidity` shows it.
|
|
67
|
+
* @cssstate used - Every allowed copy is placed (`max-choices` reached).
|
|
68
|
+
* @cssstate disabled - The interaction is switched off.
|
|
69
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
39
70
|
*/
|
|
40
|
-
declare class QtiPositionObjectInteraction extends
|
|
71
|
+
declare class QtiPositionObjectInteraction extends Interaction {
|
|
72
|
+
#private;
|
|
41
73
|
static styles: CSSResultGroup;
|
|
74
|
+
maxChoices: number;
|
|
75
|
+
minChoices: number;
|
|
76
|
+
centerPoint: string | null;
|
|
77
|
+
response: string[] | null;
|
|
78
|
+
/** Bumped when the stage image changes size, so the copies are placed again. */
|
|
79
|
+
private _layout;
|
|
80
|
+
/** A copy following the pointer: the index it moves (-1: a new one) and where it is, in client px. */
|
|
81
|
+
private _drag;
|
|
82
|
+
/** The object was clicked: the next click on the stage places it. */
|
|
83
|
+
private _armed;
|
|
84
|
+
protected _handleResponseChange: () => void;
|
|
85
|
+
validate(): boolean;
|
|
86
|
+
reportValidity(options?: {
|
|
87
|
+
trigger?: ValidityTrigger;
|
|
88
|
+
}): boolean;
|
|
89
|
+
reset(): void;
|
|
90
|
+
connectedCallback(): void;
|
|
91
|
+
disconnectedCallback(): void;
|
|
42
92
|
render(): lit.TemplateResult<1>;
|
|
43
93
|
}
|
|
94
|
+
declare global {
|
|
95
|
+
interface HTMLElementTagNameMap {
|
|
96
|
+
'qti-position-object-interaction': QtiPositionObjectInteraction;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
44
99
|
|
|
100
|
+
/**
|
|
101
|
+
* The stage of one or more position object interactions: the image the objects are placed on, and
|
|
102
|
+
* the containing block of their placed copies. Layout only: each `qti-position-object-interaction`
|
|
103
|
+
* inside it handles its own input and response, measured against this stage's image.
|
|
104
|
+
*
|
|
105
|
+
* @customElement qti-position-object-stage
|
|
106
|
+
* @slot - The stage image (`img` or `picture`), then the interactions.
|
|
107
|
+
*/
|
|
45
108
|
declare class QtiPositionObjectStage extends LitElement {
|
|
46
109
|
static styles: CSSResultGroup;
|
|
47
|
-
choiceOrdering: boolean;
|
|
48
|
-
startX: any;
|
|
49
|
-
startY: any;
|
|
50
|
-
dragElement: any;
|
|
51
110
|
render(): lit.TemplateResult<1>;
|
|
52
|
-
constructor();
|
|
53
|
-
dragElementHandler(event: MouseEvent): void;
|
|
54
|
-
firstUpdated(a: PropertyValueMap<any>): void;
|
|
55
|
-
removeMoveListener(): void;
|
|
56
|
-
disconnectedCallback(): void;
|
|
57
111
|
}
|
|
58
112
|
declare global {
|
|
59
113
|
interface HTMLElementTagNameMap {
|
|
@@ -66,6 +120,11 @@ declare global {
|
|
|
66
120
|
*
|
|
67
121
|
* @slot prompt - The prompt shown above the media element.
|
|
68
122
|
* @slot - Default slot for the embedded media element.
|
|
123
|
+
*
|
|
124
|
+
* No parts: the media element is slotted light DOM and is styled directly.
|
|
125
|
+
*
|
|
126
|
+
* @cssstate disabled - The interaction is switched off.
|
|
127
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
69
128
|
*/
|
|
70
129
|
declare class QtiMediaInteraction extends Interaction {
|
|
71
130
|
#private;
|
|
@@ -99,6 +158,9 @@ declare global {
|
|
|
99
158
|
* session, so no further attempt can start (QTI info model §2.5).
|
|
100
159
|
*
|
|
101
160
|
* @csspart button - The end-attempt button element.
|
|
161
|
+
*
|
|
162
|
+
* No states: the element has no internals; `disabled` and `readonly` are read off the item and
|
|
163
|
+
* land on the button's `disabled` attribute.
|
|
102
164
|
*/
|
|
103
165
|
declare class QtiEndAttemptInteraction extends LitElement {
|
|
104
166
|
#private;
|
|
@@ -148,6 +210,11 @@ declare global {
|
|
|
148
210
|
*
|
|
149
211
|
* Messages are sent to all parent windows to support embedding scenarios like Storybook
|
|
150
212
|
* where window.top might not be the actual host application.
|
|
213
|
+
*
|
|
214
|
+
* No parts: the interaction renders inside an iframe it owns, and the iframe is not themed.
|
|
215
|
+
*
|
|
216
|
+
* @cssstate disabled - The interaction is switched off.
|
|
217
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
151
218
|
*/
|
|
152
219
|
declare class QtiCustomInteraction extends Interaction {
|
|
153
220
|
#private;
|
package/dist/interactions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-J3F3JSCW.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssociableHotspot,
|
|
4
4
|
QtiAssociateInteraction,
|
|
@@ -35,9 +35,10 @@ import {
|
|
|
35
35
|
inlineScriptText,
|
|
36
36
|
inlineStyleText,
|
|
37
37
|
qtiInteractionElements
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7MYZHZWV.js";
|
|
39
39
|
import "./chunk-4DB4SC5K.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-NZ7ZC4SP.js";
|
|
41
|
+
import "./chunk-PZ5AY32C.js";
|
|
41
42
|
export {
|
|
42
43
|
QtiAssociableHotspot,
|
|
43
44
|
QtiAssociateInteraction,
|