@citolab/qti-components 7.28.1 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +6316 -2710
  3. package/dist/base.d.ts +100 -15
  4. package/dist/base.js +27 -6
  5. package/dist/chunk-3AJOQCDU.js +11 -0
  6. package/dist/chunk-3AJOQCDU.js.map +1 -0
  7. package/dist/chunk-64XSIBGO.js +241 -0
  8. package/dist/chunk-64XSIBGO.js.map +1 -0
  9. package/dist/chunk-7HC5SMCU.js +102 -0
  10. package/dist/chunk-7HC5SMCU.js.map +1 -0
  11. package/dist/{chunk-SP6S2WMG.js → chunk-7V4HJFHW.js} +3 -3
  12. package/dist/{chunk-SP6S2WMG.js.map → chunk-7V4HJFHW.js.map} +1 -1
  13. package/dist/chunk-CAO4JRLY.js +11 -0
  14. package/dist/chunk-CAO4JRLY.js.map +1 -0
  15. package/dist/{chunk-MPC7LIPC.js → chunk-F4BNJWYN.js} +4264 -3647
  16. package/dist/chunk-F4BNJWYN.js.map +1 -0
  17. package/dist/{chunk-3XV26R5M.js → chunk-H3J7LFRO.js} +829 -1005
  18. package/dist/chunk-H3J7LFRO.js.map +1 -0
  19. package/dist/{chunk-3WBG257S.js → chunk-IJD53WY6.js} +96 -74
  20. package/dist/chunk-IJD53WY6.js.map +1 -0
  21. package/dist/chunk-LVBIQDPM.js +1374 -0
  22. package/dist/chunk-LVBIQDPM.js.map +1 -0
  23. package/dist/{chunk-REI3AMCZ.js → chunk-NA2N2WSG.js} +1303 -1193
  24. package/dist/chunk-NA2N2WSG.js.map +1 -0
  25. package/dist/chunk-QECOPVPO.js +294 -0
  26. package/dist/chunk-QECOPVPO.js.map +1 -0
  27. package/dist/{chunk-HFCZFWSH.js → chunk-RXGDQDOV.js} +1993 -1764
  28. package/dist/chunk-RXGDQDOV.js.map +1 -0
  29. package/dist/chunk-V5G7X53Y.js +11 -0
  30. package/dist/chunk-V5G7X53Y.js.map +1 -0
  31. package/dist/{chunk-WDO2TRFM.js → chunk-WVVMNF74.js} +851 -925
  32. package/dist/chunk-WVVMNF74.js.map +1 -0
  33. package/dist/{chunk-FLJAKWXL.js → chunk-X3E5HXG2.js} +2 -2
  34. package/dist/chunk-XU7HNT4F.js +1608 -0
  35. package/dist/chunk-XU7HNT4F.js.map +1 -0
  36. package/dist/{computed-item.context-DfsW_96S.d.ts → computed-item.types.d-BKZdSLLJ.d.ts} +2 -5
  37. package/dist/{computed.context-DHbxad0N.d.ts → computed.types.d-rKLSPvVG.d.ts} +2 -5
  38. package/dist/config.context.d-BvU9r-Mg.d.ts +91 -0
  39. package/dist/corrections.d.ts +432 -0
  40. package/dist/corrections.js +84 -0
  41. package/dist/elements.d.ts +8 -14
  42. package/dist/elements.js +6 -5
  43. package/dist/index.d.ts +51 -16
  44. package/dist/index.js +193 -76
  45. package/dist/interaction.d-D4MstYRz.d.ts +115 -0
  46. package/dist/interaction.interface.d-CvjHM2bi.d.ts +46 -0
  47. package/dist/interactions.d.ts +1206 -552
  48. package/dist/interactions.js +19 -15
  49. package/dist/item.css +4228 -1656
  50. package/dist/item.d.ts +13 -55
  51. package/dist/item.js +6 -11
  52. package/dist/{variables-CMYcDbyW.d.ts → item.types.d-QU7LljEK.d.ts} +13 -1
  53. package/dist/loader.d.ts +4 -4
  54. package/dist/loader.js +2 -3
  55. package/dist/processing.d.ts +6 -7
  56. package/dist/processing.js +2 -3
  57. package/dist/qti-components-jsx.d.ts +5348 -2709
  58. package/dist/qti-components-jsx.js +1 -0
  59. package/dist/qti-condition-expression.d-aMvBvpc6.d.ts +8 -0
  60. package/dist/{qti-condition-expression-Dam-RER6.d.ts → qti-expression.d-BietT_8b.d.ts} +14 -9
  61. package/dist/{qti-feedback-ChmXhZuf.d.ts → qti-feedback.d-DZbad0RN.d.ts} +1 -1
  62. package/dist/{qti-transform-test-DoZaWItm.d.ts → qti-transform-test.d-BL7GGFJj.d.ts} +2 -2
  63. package/dist/response.d-_8y4kjGP.d.ts +106 -0
  64. package/dist/test.d.ts +199 -39
  65. package/dist/test.js +34 -11
  66. package/dist/transformers.d.ts +1 -1
  67. package/dist/transformers.js +1 -2
  68. package/package.json +24 -17
  69. package/custom-elements.json +0 -43251
  70. package/dist/chunk-3WBG257S.js.map +0 -1
  71. package/dist/chunk-3XV26R5M.js.map +0 -1
  72. package/dist/chunk-AQ5RJFM6.js +0 -3673
  73. package/dist/chunk-AQ5RJFM6.js.map +0 -1
  74. package/dist/chunk-HFCZFWSH.js.map +0 -1
  75. package/dist/chunk-MPC7LIPC.js.map +0 -1
  76. package/dist/chunk-QXBXORM3.js +0 -27
  77. package/dist/chunk-REI3AMCZ.js.map +0 -1
  78. package/dist/chunk-RLTYVS2I.js +0 -530
  79. package/dist/chunk-RLTYVS2I.js.map +0 -1
  80. package/dist/chunk-WDO2TRFM.js.map +0 -1
  81. package/dist/config.context-BjZ2bZSY.d.ts +0 -42
  82. package/dist/interaction-Bgzlw7Iu.d.ts +0 -110
  83. package/dist/item.context-CkUeDcaO.d.ts +0 -15
  84. package/dist/test.context-CByZZjkR.d.ts +0 -15
  85. /package/dist/{chunk-FLJAKWXL.js.map → chunk-X3E5HXG2.js.map} +0 -0
  86. /package/dist/{chunk-QXBXORM3.js.map → corrections.js.map} +0 -0
  87. /package/dist/{qti-rule-base-ajOnfGXY.d.ts → qti-rule-base.d-ajOnfGXY.d.ts} +0 -0
  88. /package/dist/{qti.context-CejJMlfZ.d.ts → qti.context.d-CejJMlfZ.d.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,23 +1,58 @@
1
- export { IMyQtiTest, IQtiTest, ITestNavigationMixin, ITestProcessingMixin, QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest, QtiTest, QtiTestFeedback, QtiTestPart, TestCheckItem, TestContainer, TestEndAttempt, TestItemLink, TestNavigation, TestNext, TestPagingButtonsStamp, TestPrev, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionButtonsStamp, TestSectionLink, TestShowCorrectResponse, TestStamp, TestView, TestViewToggle } from './test.js';
2
- export { ItemContainer, ItemCorrectResponseMode, ItemPrintVariables, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiItem } from './item.js';
1
+ export { IMyQtiTest, IQtiTest, ITestNavigationMixin, ITestProcessingMixin, QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest, QtiOutcomeProcessing, QtiOutcomeProcessingProcessor, QtiTest, QtiTestFeedback, QtiTestPart, QtiTestVariables, QtiTestVariablesExpression, SpeechState, TestCheckItem, TestContainer, TestEndAttempt, TestItemLink, TestItemToSpeech, TestNavigation, TestNext, TestPagingButtonsStamp, TestPrev, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionButtonsStamp, TestSectionLink, TestStamp, TestTtsNext, TestTtsPause, TestTtsPlay, TestTtsPrev, TestTtsResume, TestTtsStop, TestView, TestViewToggle, TtsContext, ttsContext } from './test.js';
2
+ export { ItemContainer, ItemPrintVariables, QtiItem } from './item.js';
3
3
  export { QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing } from './elements.js';
4
- export { Orientation, 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 } from './interactions.js';
5
- export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test-DoZaWItm.js';
4
+ export { Orientation, QtiAssociateInteraction, QtiChoiceInteraction, QtiCustomInteraction, QtiEndAttemptInteraction, QtiExtendedTextInteraction, QtiGapMatchInteraction, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoiceInteraction, QtiMatchInteraction, QtiMediaInteraction, QtiOrderInteraction, QtiPortableCustomInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiSelectPointInteraction, QtiSliderInteraction, QtiTextEntryInteraction, QtiUploadInteraction, qtiInteractionElements } from './interactions.js';
5
+ export * from '@qti-components/interactions-core/elements/qti-gap-img';
6
+ export * from '@qti-components/interactions-core/elements/qti-gap-text';
7
+ export * from '@qti-components/interactions-core/elements/qti-gap';
8
+ export * from '@qti-components/interactions-core/elements/qti-inline-choice';
9
+ export * from '@qti-components/interactions-core/elements/qti-hottext';
10
+ export * from '@qti-components/interactions-core/elements/qti-simple-associable-choice';
11
+ export * from '@qti-components/interactions-core/elements/qti-simple-choice';
12
+ export * from '@qti-components/interactions-core/elements/qti-hotspot-choice';
13
+ export * from '@qti-components/interactions-core/elements/qti-associable-hotspot';
14
+ export * from '@qti-components/interactions-core/elements/qti-prompt';
15
+ export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-BL7GGFJj.js';
6
16
  export { qtiTransformManifest } from './transformers.js';
7
17
  export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
8
- export { C as ComputedItemContext, c as computedItemContext } from './computed-item.context-DfsW_96S.js';
9
- export { C as ComputedContext, a as ComputedItem, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, c as computedContext, s as sessionContext } from './computed.context-DHbxad0N.js';
10
- export { C as ConfigContext, a as CorrectResponseMode, c as configContext } from './config.context-BjZ2bZSY.js';
11
- export { I as ItemContext, i as itemContextVariables } from './item.context-CkUeDcaO.js';
12
- export { IsNullOrUndefined, ScoringHelper, convertNumberToUniversalFormat, decimalSeparator, itemContext, removeDoubleSlashes } from './base.js';
13
- export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context-CejJMlfZ.js';
14
- export { I as INITIAL_TEST_CONTEXT, T as TestContext, t as testContext } from './test.context-CByZZjkR.js';
15
- export { C as Correctness, I as IInteraction, a as Interaction } from './interaction-Bgzlw7Iu.js';
16
- export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback-ChmXhZuf.js';
17
- export { Q as QtiConditionExpression, a as QtiExpression, b as QtiExpressionBase } from './qti-condition-expression-Dam-RER6.js';
18
- export { B as BaseType, C as Calculate, a as Cardinality, 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-CMYcDbyW.js';
19
- export { Q as QtiRuleBase, a as QtiRuleElement } from './qti-rule-base-ajOnfGXY.js';
18
+ export { IsNullOrUndefined, ScoringHelper, boxSizing, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, itemContext, removeDoubleSlashes, validationMessage } from './base.js';
19
+ export { C as ComputedItemContext } from './computed-item.types.d-BKZdSLLJ.js';
20
+ export { C as ComputedContext, a as ComputedItem, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './computed.types.d-rKLSPvVG.js';
21
+ export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BvU9r-Mg.js';
22
+ export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-D4MstYRz.js';
23
+ export { B as BaseType, C as Calculate, a as Cardinality, I as ItemContext, 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, l as itemContextVariables } from './item.types.d-QU7LljEK.js';
24
+ 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';
25
+ export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-BietT_8b.js';
26
+ export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-DZbad0RN.js';
27
+ export { Q as QtiConditionExpression } from './qti-condition-expression.d-aMvBvpc6.js';
28
+ 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';
29
+ 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';
30
+ export { Q as QtiRuleBase, a as QtiRuleElement } from './qti-rule-base.d-ajOnfGXY.js';
20
31
  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, 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';
32
+ 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';
21
33
  import 'lit';
22
34
  import '@heximal/templates';
35
+ import '@qti-components/elements/elements';
23
36
  import 'lit/directives/ref.js';
37
+ import '@qti-components/portable-custom-interaction/qti-portable-custom-test-interaction.js';
38
+ import '@qti-components/interactions-core/mixins/drag-drop-observables';
39
+ import '@qti-components/interactions-core/mixins/menu-auto-size';
40
+ import '@qti-components/interactions-core/mixins/choices/choices.mixin';
41
+ import '@qti-components/item/elements';
42
+ import '@qti-components/test/elements';
43
+ import '@qti-components/associate-interaction/elements';
44
+ import '@qti-components/choice-interaction/elements';
45
+ import '@qti-components/extended-text-interaction/elements';
46
+ import '@qti-components/gap-match-interaction/elements';
47
+ import '@qti-components/graphic-associate-interaction/elements';
48
+ import '@qti-components/graphic-gap-match-interaction/elements';
49
+ import '@qti-components/graphic-order-interaction/elements';
50
+ import '@qti-components/hotspot-interaction/elements';
51
+ import '@qti-components/hottext-interaction/elements';
52
+ import '@qti-components/inline-choice-interaction/elements';
53
+ import '@qti-components/match-interaction/elements';
54
+ import '@qti-components/order-interaction/elements';
55
+ import '@qti-components/portable-custom-interaction/elements';
56
+ import '@qti-components/select-point-interaction/elements';
57
+ import '@qti-components/slider-interaction/elements';
58
+ import '@qti-components/text-entry-interaction/elements';
package/dist/index.js CHANGED
@@ -1,12 +1,118 @@
1
+ import "./chunk-CAO4JRLY.js";
2
+ import {
3
+ CandidateCorrectionMixin,
4
+ ChoiceCorrectionMixin,
5
+ CorrectResponseMixin,
6
+ Correctness,
7
+ ItemCorrectResponseMode,
8
+ ItemShowCandidateCorrection,
9
+ ItemShowCorrectResponse,
10
+ QtiAssessmentItemCorrection,
11
+ QtiAssociateInteractionCorrection,
12
+ QtiChoiceInteractionCorrection,
13
+ QtiExtendedTextInteractionCorrection,
14
+ QtiGapMatchInteractionCorrection,
15
+ QtiGapTextCorrection,
16
+ QtiGraphicAssociateInteractionCorrection,
17
+ QtiGraphicGapMatchInteractionCorrection,
18
+ QtiGraphicOrderInteractionCorrection,
19
+ QtiHotspotChoiceCorrection,
20
+ QtiHotspotInteractionCorrection,
21
+ QtiHottextCorrection,
22
+ QtiHottextInteractionCorrection,
23
+ QtiInlineChoiceInteractionCorrection,
24
+ QtiItemCorrection,
25
+ QtiMatchInteractionCorrection,
26
+ QtiOrderInteractionCorrection,
27
+ QtiPortableCustomInteractionCorrection,
28
+ QtiSelectPointInteractionCorrection,
29
+ QtiSimpleAssociableChoiceCorrection,
30
+ QtiSimpleChoiceCorrection,
31
+ QtiSliderInteractionCorrection,
32
+ QtiTestCorrection,
33
+ QtiTextEntryInteractionCorrection,
34
+ TestCheckItemCorrection,
35
+ TestNavigationCorrection,
36
+ TestShowCorrectResponse,
37
+ correctionPart
38
+ } from "./chunk-XU7HNT4F.js";
39
+ import {
40
+ QtiAssessmentItemRef,
41
+ QtiAssessmentSection,
42
+ QtiAssessmentTest,
43
+ QtiOutcomeProcessing,
44
+ QtiOutcomeProcessingProcessor,
45
+ QtiTest,
46
+ QtiTestFeedback,
47
+ QtiTestPart,
48
+ QtiTestVariables,
49
+ QtiTestVariablesExpression,
50
+ TestCheckItem,
51
+ TestContainer,
52
+ TestEndAttempt,
53
+ TestItemLink,
54
+ TestItemToSpeech,
55
+ TestNavigation,
56
+ TestNext,
57
+ TestPagingButtonsStamp,
58
+ TestPrev,
59
+ TestPrintContext,
60
+ TestPrintVariables,
61
+ TestScoringButtons,
62
+ TestScoringFeedback,
63
+ TestSectionButtonsStamp,
64
+ TestSectionLink,
65
+ TestStamp,
66
+ TestTtsNext,
67
+ TestTtsPause,
68
+ TestTtsPlay,
69
+ TestTtsPrev,
70
+ TestTtsResume,
71
+ TestTtsStop,
72
+ TestView,
73
+ TestViewToggle,
74
+ ttsContext
75
+ } from "./chunk-RXGDQDOV.js";
76
+ import "./chunk-V5G7X53Y.js";
77
+ import {
78
+ QtiAssessmentItem,
79
+ QtiAssessmentStimulusRef,
80
+ QtiAssessmentStimulusRefConnectedEvent,
81
+ QtiCompanionMaterialsInfo,
82
+ QtiContentBody,
83
+ QtiContextDeclaration,
84
+ QtiCustomOperator,
85
+ QtiFeedbackBlock,
86
+ QtiFeedbackInline,
87
+ QtiItemBody,
88
+ QtiModalFeedback,
89
+ QtiOutcomeDeclaration,
90
+ QtiResponseDeclaration,
91
+ QtiResponseProcessing,
92
+ QtiRubricBlock,
93
+ QtiStylesheet,
94
+ QtiTemplateConstraint,
95
+ QtiTemplateDeclaration,
96
+ QtiTemplateProcessing
97
+ } from "./chunk-WVVMNF74.js";
1
98
  import {
2
99
  QtiAssociableHotspot,
3
- QtiAssociateInteraction,
4
- QtiChoiceInteraction,
5
100
  QtiCustomInteraction,
6
101
  QtiEndAttemptInteraction,
7
- QtiExtendedTextInteraction,
8
102
  QtiGap,
9
103
  QtiGapImg,
104
+ QtiInlineChoice,
105
+ QtiMediaInteraction,
106
+ QtiPositionObjectInteraction,
107
+ QtiPositionObjectStage,
108
+ QtiPrompt,
109
+ QtiUploadInteraction,
110
+ qtiInteractionElements
111
+ } from "./chunk-LVBIQDPM.js";
112
+ import {
113
+ QtiAssociateInteraction,
114
+ QtiChoiceInteraction,
115
+ QtiExtendedTextInteraction,
10
116
  QtiGapMatchInteraction,
11
117
  QtiGapText,
12
118
  QtiGraphicAssociateInteraction,
@@ -16,34 +122,34 @@ import {
16
122
  QtiHotspotInteraction,
17
123
  QtiHottext,
18
124
  QtiHottextInteraction,
19
- QtiInlineChoice,
20
125
  QtiInlineChoiceInteraction,
21
126
  QtiMatchInteraction,
22
- QtiMediaInteraction,
23
127
  QtiOrderInteraction,
24
128
  QtiPortableCustomInteraction,
25
- QtiPositionObjectInteraction,
26
- QtiPositionObjectStage,
27
- QtiPrompt,
28
129
  QtiSelectPointInteraction,
29
130
  QtiSimpleAssociableChoice,
30
131
  QtiSimpleChoice,
31
132
  QtiSliderInteraction,
32
- QtiTextEntryInteraction,
33
- QtiUploadInteraction
34
- } from "./chunk-MPC7LIPC.js";
133
+ QtiTextEntryInteraction
134
+ } from "./chunk-F4BNJWYN.js";
135
+ import "./chunk-X3E5HXG2.js";
136
+ import "./chunk-3AJOQCDU.js";
35
137
  import {
36
138
  ItemContainer,
37
- ItemCorrectResponseMode,
38
139
  ItemPrintVariables,
39
- ItemShowCandidateCorrection,
40
- ItemShowCorrectResponse,
41
140
  QtiItem
42
- } from "./chunk-RLTYVS2I.js";
141
+ } from "./chunk-QECOPVPO.js";
142
+ import "./chunk-7HC5SMCU.js";
143
+ import "./chunk-64XSIBGO.js";
43
144
  import {
44
145
  getItemByUri,
45
146
  getManifestInfo
46
- } from "./chunk-SP6S2WMG.js";
147
+ } from "./chunk-7V4HJFHW.js";
148
+ import {
149
+ qtiTransformItem,
150
+ qtiTransformManifest,
151
+ qtiTransformTest
152
+ } from "./chunk-IJD53WY6.js";
47
153
  import {
48
154
  QtiAnd,
49
155
  QtiAnyN,
@@ -113,63 +219,8 @@ import {
113
219
  QtiVariable,
114
220
  qtiAndMixin,
115
221
  qtiSubtractMixin
116
- } from "./chunk-REI3AMCZ.js";
117
- import {
118
- QtiAssessmentItemRef,
119
- QtiAssessmentSection,
120
- QtiAssessmentTest,
121
- QtiTest,
122
- QtiTestFeedback,
123
- QtiTestPart,
124
- TestCheckItem,
125
- TestContainer,
126
- TestEndAttempt,
127
- TestItemLink,
128
- TestNavigation,
129
- TestNext,
130
- TestPagingButtonsStamp,
131
- TestPrev,
132
- TestPrintContext,
133
- TestPrintVariables,
134
- TestScoringButtons,
135
- TestScoringFeedback,
136
- TestSectionButtonsStamp,
137
- TestSectionLink,
138
- TestShowCorrectResponse,
139
- TestStamp,
140
- TestView,
141
- TestViewToggle
142
- } from "./chunk-HFCZFWSH.js";
222
+ } from "./chunk-NA2N2WSG.js";
143
223
  import {
144
- QtiAssessmentItem,
145
- QtiAssessmentStimulusRef,
146
- QtiAssessmentStimulusRefConnectedEvent,
147
- QtiCompanionMaterialsInfo,
148
- QtiContentBody,
149
- QtiContextDeclaration,
150
- QtiCustomOperator,
151
- QtiFeedbackBlock,
152
- QtiFeedbackInline,
153
- QtiItemBody,
154
- QtiModalFeedback,
155
- QtiOutcomeDeclaration,
156
- QtiResponseDeclaration,
157
- QtiResponseProcessing,
158
- QtiRubricBlock,
159
- QtiStylesheet,
160
- QtiTemplateConstraint,
161
- QtiTemplateDeclaration,
162
- QtiTemplateProcessing
163
- } from "./chunk-WDO2TRFM.js";
164
- import "./chunk-FLJAKWXL.js";
165
- import "./chunk-AQ5RJFM6.js";
166
- import {
167
- qtiTransformItem,
168
- qtiTransformManifest,
169
- qtiTransformTest
170
- } from "./chunk-3WBG257S.js";
171
- import {
172
- Correctness,
173
224
  INITIAL_SESSION_CONTEXT,
174
225
  INITIAL_TEST_CONTEXT,
175
226
  Interaction,
@@ -181,21 +232,35 @@ import {
181
232
  QtiVariableDeclaration,
182
233
  ScoringHelper,
183
234
  asSeed,
235
+ boxSizing,
184
236
  computedContext,
185
237
  computedItemContext,
186
238
  configContext,
187
239
  convertNumberToUniversalFormat,
188
240
  decimalSeparator,
241
+ dropRegion,
242
+ interactionContext,
189
243
  isSeed,
190
244
  itemContext,
191
245
  itemContextVariables,
246
+ iterResponseValues,
247
+ parsePair,
248
+ parsePoint,
249
+ parseResponseAttribute,
192
250
  qtiContext,
193
251
  removeDoubleSlashes,
252
+ responseAttributeConverter,
253
+ serializePair,
254
+ serializePoint,
255
+ serializeResponseAttribute,
194
256
  sessionContext,
195
- testContext
196
- } from "./chunk-3XV26R5M.js";
197
- import "./chunk-QXBXORM3.js";
257
+ testContext,
258
+ validationMessage
259
+ } from "./chunk-H3J7LFRO.js";
198
260
  export {
261
+ CandidateCorrectionMixin,
262
+ ChoiceCorrectionMixin,
263
+ CorrectResponseMixin,
199
264
  Correctness,
200
265
  INITIAL_SESSION_CONTEXT,
201
266
  INITIAL_TEST_CONTEXT,
@@ -209,6 +274,7 @@ export {
209
274
  QtiAnd,
210
275
  QtiAnyN,
211
276
  QtiAssessmentItem,
277
+ QtiAssessmentItemCorrection,
212
278
  QtiAssessmentItemRef,
213
279
  QtiAssessmentSection,
214
280
  QtiAssessmentStimulusRef,
@@ -216,8 +282,10 @@ export {
216
282
  QtiAssessmentTest,
217
283
  QtiAssociableHotspot,
218
284
  QtiAssociateInteraction,
285
+ QtiAssociateInteractionCorrection,
219
286
  QtiBaseValue,
220
287
  QtiChoiceInteraction,
288
+ QtiChoiceInteractionCorrection,
221
289
  QtiCompanionMaterialsInfo,
222
290
  QtiConditionExpression,
223
291
  QtiContainerSize,
@@ -237,6 +305,7 @@ export {
237
305
  QtiEqualRounded,
238
306
  QtiExpression,
239
307
  QtiExtendedTextInteraction,
308
+ QtiExtendedTextInteractionCorrection,
240
309
  QtiFeedback,
241
310
  QtiFeedbackBlock,
242
311
  QtiFeedbackInline,
@@ -244,20 +313,30 @@ export {
244
313
  QtiGap,
245
314
  QtiGapImg,
246
315
  QtiGapMatchInteraction,
316
+ QtiGapMatchInteractionCorrection,
247
317
  QtiGapText,
318
+ QtiGapTextCorrection,
248
319
  QtiGcd,
249
320
  QtiGraphicAssociateInteraction,
321
+ QtiGraphicAssociateInteractionCorrection,
250
322
  QtiGraphicGapMatchInteraction,
323
+ QtiGraphicGapMatchInteractionCorrection,
251
324
  QtiGraphicOrderInteraction,
325
+ QtiGraphicOrderInteractionCorrection,
252
326
  QtiGt,
253
327
  QtiGte,
254
328
  QtiHotspotChoice,
329
+ QtiHotspotChoiceCorrection,
255
330
  QtiHotspotInteraction,
331
+ QtiHotspotInteractionCorrection,
256
332
  QtiHottext,
333
+ QtiHottextCorrection,
257
334
  QtiHottextInteraction,
335
+ QtiHottextInteractionCorrection,
258
336
  QtiIndex,
259
337
  QtiInlineChoice,
260
338
  QtiInlineChoiceInteraction,
339
+ QtiInlineChoiceInteractionCorrection,
261
340
  QtiInside,
262
341
  QtiIntegerDivide,
263
342
  QtiIntegerModulus,
@@ -265,6 +344,7 @@ export {
265
344
  QtiIsNull,
266
345
  QtiItem,
267
346
  QtiItemBody,
347
+ QtiItemCorrection,
268
348
  QtiLcm,
269
349
  QtiLookupOutcomeValue,
270
350
  QtiLt,
@@ -273,6 +353,7 @@ export {
273
353
  QtiMapResponsePoint,
274
354
  QtiMatch,
275
355
  QtiMatchInteraction,
356
+ QtiMatchInteractionCorrection,
276
357
  QtiMathOperator,
277
358
  QtiMax,
278
359
  QtiMediaInteraction,
@@ -284,10 +365,14 @@ export {
284
365
  QtiNull,
285
366
  QtiOr,
286
367
  QtiOrderInteraction,
368
+ QtiOrderInteractionCorrection,
287
369
  QtiOrdered,
288
370
  QtiOutcomeDeclaration,
371
+ QtiOutcomeProcessing,
372
+ QtiOutcomeProcessingProcessor,
289
373
  QtiPatternMatch,
290
374
  QtiPortableCustomInteraction,
375
+ QtiPortableCustomInteractionCorrection,
291
376
  QtiPositionObjectInteraction,
292
377
  QtiPositionObjectStage,
293
378
  QtiPower,
@@ -308,6 +393,7 @@ export {
308
393
  QtiRubricBlock,
309
394
  QtiRuleElement,
310
395
  QtiSelectPointInteraction,
396
+ QtiSelectPointInteractionCorrection,
311
397
  QtiSetCorrectResponse,
312
398
  QtiSetCorrectResponseRule,
313
399
  QtiSetOutcomeValue,
@@ -315,8 +401,11 @@ export {
315
401
  QtiSetTemplateValue,
316
402
  QtiSetTemplateValueRule,
317
403
  QtiSimpleAssociableChoice,
404
+ QtiSimpleAssociableChoiceCorrection,
318
405
  QtiSimpleChoice,
406
+ QtiSimpleChoiceCorrection,
319
407
  QtiSliderInteraction,
408
+ QtiSliderInteractionCorrection,
320
409
  QtiStatsOperator,
321
410
  QtiStringMatch,
322
411
  QtiStylesheet,
@@ -328,19 +417,26 @@ export {
328
417
  QtiTemplateDeclaration,
329
418
  QtiTemplateProcessing,
330
419
  QtiTest,
420
+ QtiTestCorrection,
331
421
  QtiTestFeedback,
332
422
  QtiTestPart,
423
+ QtiTestVariables,
424
+ QtiTestVariablesExpression,
333
425
  QtiTextEntryInteraction,
426
+ QtiTextEntryInteractionCorrection,
334
427
  QtiTruncate,
335
428
  QtiUploadInteraction,
336
429
  QtiVariable,
337
430
  QtiVariableDeclaration,
338
431
  ScoringHelper,
339
432
  TestCheckItem,
433
+ TestCheckItemCorrection,
340
434
  TestContainer,
341
435
  TestEndAttempt,
342
436
  TestItemLink,
437
+ TestItemToSpeech,
343
438
  TestNavigation,
439
+ TestNavigationCorrection,
344
440
  TestNext,
345
441
  TestPagingButtonsStamp,
346
442
  TestPrev,
@@ -352,27 +448,48 @@ export {
352
448
  TestSectionLink,
353
449
  TestShowCorrectResponse,
354
450
  TestStamp,
451
+ TestTtsNext,
452
+ TestTtsPause,
453
+ TestTtsPlay,
454
+ TestTtsPrev,
455
+ TestTtsResume,
456
+ TestTtsStop,
355
457
  TestView,
356
458
  TestViewToggle,
357
459
  asSeed,
460
+ boxSizing,
358
461
  computedContext,
359
462
  computedItemContext,
360
463
  configContext,
361
464
  convertNumberToUniversalFormat,
465
+ correctionPart,
362
466
  decimalSeparator,
467
+ dropRegion,
363
468
  getItemByUri,
364
469
  getManifestInfo,
470
+ interactionContext,
365
471
  isSeed,
366
472
  itemContext,
367
473
  itemContextVariables,
474
+ iterResponseValues,
475
+ parsePair,
476
+ parsePoint,
477
+ parseResponseAttribute,
368
478
  qtiAndMixin,
369
479
  qtiContext,
480
+ qtiInteractionElements,
370
481
  qtiSubtractMixin,
371
482
  qtiTransformItem,
372
483
  qtiTransformManifest,
373
484
  qtiTransformTest,
374
485
  removeDoubleSlashes,
486
+ responseAttributeConverter,
487
+ serializePair,
488
+ serializePoint,
489
+ serializeResponseAttribute,
375
490
  sessionContext,
376
- testContext
491
+ testContext,
492
+ ttsContext,
493
+ validationMessage
377
494
  };
378
495
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,115 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { C as ConfigContext, V as ValidationDisplayMode } from './config.context.d-BvU9r-Mg.js';
3
+ import { V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
4
+ import { f as ResponseVariable } from './item.types.d-QU7LljEK.js';
5
+
6
+ /**
7
+ * What a choice element should render and behave as. The same element — `qti-simple-choice`,
8
+ * `qti-hottext` — is a radio in one interaction and a checkbox in another. It cannot know this
9
+ * by itself.
10
+ *
11
+ * Note "drag" is deliberately *not* a choiceRole. In `qti-match-interaction` the same element
12
+ * type is a drag in one match-set and a drop target in the other, so draggability is positional,
13
+ * not a property of the interaction. It is derived from `draggablesSelector` instead. It is also
14
+ * not a valid ARIA role, so it may only ever be a custom state.
15
+ */
16
+ type ChoiceRole = 'radio' | 'checkbox';
17
+ /**
18
+ * State an interaction publishes to the choice elements inside it.
19
+ *
20
+ * Provided by the `qti-*-interaction`, never by `qti-assessment-item`: interactions must work
21
+ * standalone — in a plain form, in a story, in a vendor's app — with no QTI ancestor. Consumers
22
+ * must therefore tolerate its absence and fall back to a sensible default:
23
+ *
24
+ * const role = this.interactionContext?.choiceRole ?? null;
25
+ */
26
+ interface InteractionContext {
27
+ /** `null` when the interaction assigns no particular role to its choices. */
28
+ choiceRole: ChoiceRole | null;
29
+ /**
30
+ * The selector this interaction uses to recognise its draggable chips. An element tests
31
+ * itself with `this.matches(draggablesSelector)` and takes `:state(chip)` if it matches.
32
+ *
33
+ * Published rather than pushed because draggability can be positional: match-interaction's
34
+ * selector distinguishes the source match-set from the target one, so two elements of the
35
+ * same tag get different answers.
36
+ */
37
+ draggablesSelector: string | null;
38
+ }
39
+ declare const interactionContext: {
40
+ __context__: Readonly<InteractionContext>;
41
+ };
42
+
43
+ /**
44
+ * Shared QTI interaction base. Formative correction behavior is supplied by the
45
+ * `@qti-components/corrections` package.
46
+ */
47
+ declare abstract class Interaction extends LitElement implements ValidatableInteraction {
48
+ #private;
49
+ private _context;
50
+ /**
51
+ * Delivery configuration, from the nearest provider — `qti-test` or `qti-item`.
52
+ *
53
+ * **Public so it can be assigned directly, which is the development-time route.** An interaction
54
+ * has to work standalone, and in a story or a spec there is usually no provider above it — so
55
+ * setting the field is all that is needed:
56
+ *
57
+ * orderInteraction.configContext = { allowReorder: false, validationDisplayMode: 'none' };
58
+ *
59
+ * With no provider, nothing ever overwrites it. That is the whole contract, and its limit: where a
60
+ * provider DOES exist it re-emits on its next update and wins, because `@consume` writes this same
61
+ * field. There is no merging — set the value on the provider in that case.
62
+ *
63
+ * In a lit-html template, bind it as a property rather than assigning after the fact:
64
+ *
65
+ * html`<qti-order-interaction .configContext=${{ allowReorder: false }}>…`
66
+ *
67
+ * The binding is committed on the detached template clone, before the fragment is inserted, so it
68
+ * is in place by `connectedCallback` — which matters for anything that reads config on connect.
69
+ *
70
+ * It was `protected`, which fooled nobody: every caller reached it anyway through an
71
+ * `as any` / `as { configContext?: … }` cast. Public says what was already true and removes the
72
+ * casts, rather than pretending at an encapsulation the type system was the only thing enforcing.
73
+ */
74
+ configContext: ConfigContext;
75
+ protected _interactionContext: Readonly<InteractionContext>;
76
+ static formAssociated: boolean;
77
+ protected _internals: ElementInternals;
78
+ get internals(): ElementInternals;
79
+ responseIdentifier: string;
80
+ disabled: boolean;
81
+ readonly: boolean;
82
+ name: any;
83
+ /** Extension point used by wrappers that should not register as candidate inputs. */
84
+ protected get registersWithItem(): boolean;
85
+ get isInline(): boolean;
86
+ get responseVariable(): ResponseVariable | undefined;
87
+ abstract validate(): boolean;
88
+ get value(): string | null;
89
+ set value(val: string | null);
90
+ abstract get response(): string | string[] | null;
91
+ abstract set response(val: string | string[] | null);
92
+ reportValidity(): boolean;
93
+ protected get validationDisplayMode(): ValidationDisplayMode;
94
+ protected resolveAllowReorder(options?: {
95
+ defaultWhenUnset?: boolean;
96
+ }): boolean;
97
+ protected resolveDisableAfterMaxReached(options?: {
98
+ defaultWhenUnset?: boolean;
99
+ }): boolean;
100
+ protected setInteractionValidity(isValid: boolean, validityMessage?: string, anchor?: HTMLElement | null, options?: {
101
+ suppressInline?: boolean;
102
+ }): void;
103
+ protected updateInlineValidationMessage(): void;
104
+ protected clearInlineValidationMessage(): void;
105
+ protected getValidationMessageElement(): HTMLElement | null;
106
+ reset(): void;
107
+ formResetCallback(): void;
108
+ connectedCallback(): void;
109
+ saveResponse(value: string | string[], state?: string | null): void;
110
+ constructor();
111
+ /** Optional lifecycle bridge for interaction subclasses that do not need changed-property data. */
112
+ protected firstUpdated(_changedProperties?: PropertyValues<this>): void;
113
+ }
114
+
115
+ export { type ChoiceRole as C, Interaction as I, type InteractionContext as a, interactionContext as i };