@citolab/qti-components 8.0.0 → 8.0.1

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