@citolab/qti-components 10.0.0-next.2 → 10.0.0-next.21

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 (94) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +4334 -2688
  3. package/dist/base.d.ts +39 -13
  4. package/dist/base.js +14 -1
  5. package/dist/{chunk-RU6332MD.js → chunk-2A52V5TQ.js} +4 -4
  6. package/dist/{chunk-2KP5UU5A.js → chunk-55WWIRLN.js} +117 -92
  7. package/dist/chunk-55WWIRLN.js.map +1 -0
  8. package/dist/{chunk-MI7774NV.js → chunk-5BP2A7BI.js} +2 -2
  9. package/dist/{chunk-35WWWFS6.js → chunk-DAESCCLR.js} +2 -2
  10. package/dist/chunk-DJ7PB252.js +7 -0
  11. package/dist/chunk-DJ7PB252.js.map +1 -0
  12. package/dist/{chunk-TDWJ6WZA.js → chunk-GPC53O7P.js} +166 -10
  13. package/dist/chunk-GPC53O7P.js.map +1 -0
  14. package/dist/{chunk-6U3YPHXU.js → chunk-H6DO5UHC.js} +277 -154
  15. package/dist/chunk-H6DO5UHC.js.map +1 -0
  16. package/dist/chunk-J6VX4N7M.js +197 -0
  17. package/dist/chunk-J6VX4N7M.js.map +1 -0
  18. package/dist/{chunk-3ZNECUPV.js → chunk-JIDSFFFD.js} +2 -2
  19. package/dist/{chunk-FD4AB6TM.js → chunk-KQ2LED4X.js} +2 -2
  20. package/dist/{chunk-6K3QWJHH.js → chunk-LPYZVKHX.js} +48 -7
  21. package/dist/chunk-LPYZVKHX.js.map +1 -0
  22. package/dist/chunk-PZ5AY32C.js +10 -0
  23. package/dist/chunk-PZ5AY32C.js.map +1 -0
  24. package/dist/{chunk-K3VKQ6QF.js → chunk-TB2OI3ED.js} +677 -1894
  25. package/dist/chunk-TB2OI3ED.js.map +1 -0
  26. package/dist/{chunk-GBZNFSFY.js → chunk-TSJGL6FI.js} +2 -2
  27. package/dist/{chunk-RSMYGGQK.js → chunk-TZCOXFPB.js} +1590 -610
  28. package/dist/chunk-TZCOXFPB.js.map +1 -0
  29. package/dist/chunk-UCXLDQYA.js +56 -0
  30. package/dist/chunk-UCXLDQYA.js.map +1 -0
  31. package/dist/chunk-WWY2H2YO.js +7 -0
  32. package/dist/chunk-WWY2H2YO.js.map +1 -0
  33. package/dist/{chunk-LFVPS7KB.js → chunk-XWRZP2RM.js} +2 -2
  34. package/dist/{chunk-TLAVOBEM.js → chunk-ZRORBAHB.js} +122 -3
  35. package/dist/chunk-ZRORBAHB.js.map +1 -0
  36. package/dist/computed.types.d-6Ht-HNRx.d.ts +80 -0
  37. package/dist/{config.context.d-BvU9r-Mg.d.ts → config.context.d-Dm11aAuw.d.ts} +21 -3
  38. package/dist/corrections.d.ts +137 -24
  39. package/dist/corrections.js +12 -12
  40. package/dist/corrections.js.map +1 -1
  41. package/dist/elements.d.ts +66 -73
  42. package/dist/elements.js +9 -6
  43. package/dist/index.d.ts +21 -17
  44. package/dist/index.js +47 -61
  45. package/dist/interactions.d.ts +98 -19
  46. package/dist/interactions.js +8 -3
  47. package/dist/item.css +1948 -1946
  48. package/dist/item.d.ts +8 -6
  49. package/dist/item.js +6 -5
  50. package/dist/item.types.d-Zc6ZQDhu.d.ts +25 -0
  51. package/dist/loader.d.ts +5 -3
  52. package/dist/loader.js +3 -2
  53. package/dist/processing.d.ts +19 -7
  54. package/dist/processing.js +4 -3
  55. package/dist/public-events.d-3dGip9pd.d.ts +105 -0
  56. package/dist/qti-components-jsx.d.ts +1780 -1727
  57. package/dist/{qti-condition-expression.d-VJH6cWxf.d.ts → qti-condition-expression.d-7Kd4LBxn.d.ts} +1 -1
  58. package/dist/{qti-expression.d-BPxEp8HU.d.ts → qti-expression.d-iH3w6mqf.d.ts} +2 -1
  59. package/dist/{qti-feedback.d-wMYNVkkj.d.ts → qti-feedback.d-CT0W-8Gm.d.ts} +8 -1
  60. package/dist/{qti-item.d-DgC1AQbY.d.ts → qti-item.d-CxP6KtCH.d.ts} +3 -2
  61. package/dist/{qti-rule-base.d-Bdzg8eGH.d.ts → qti-rule-base.d-CeKP0Ooi.d.ts} +2 -2
  62. package/dist/qti-test-state-CF9S8X9C.d.ts +68 -0
  63. package/dist/qti-test-state.d-D8Q89RzZ.d.ts +57 -0
  64. package/dist/{qti-test.d-DkpBNcsv.d.ts → qti-test.d-DBT-YpRu.d.ts} +124 -485
  65. package/dist/{qti-text-entry-interaction.d-q8u5BiVK.d.ts → qti-text-entry-interaction.d-m0EFv9no.d.ts} +221 -73
  66. package/dist/{qti-transform-test.d-BL7GGFJj.d.ts → qti-transform-test.d-Bb9vnLzP.d.ts} +1 -0
  67. package/dist/{interaction.d-g6XG0T0Z.d.ts → record.d-N1Bq7e1f.d.ts} +67 -4
  68. package/dist/{session.context.d-D5080LVx.d.ts → session.context.d-9gRdGK4T.d.ts} +7 -1
  69. package/dist/test-plugin-api.d.ts +134 -0
  70. package/dist/test-plugin-api.js +19 -0
  71. package/dist/test-plugin-api.js.map +1 -0
  72. package/dist/test.d.ts +26 -57
  73. package/dist/test.js +19 -48
  74. package/dist/transformers.d.ts +1 -1
  75. package/dist/transformers.js +2 -1
  76. package/dist/{item.types.d-B55QkJ92.d.ts → variables.d-DWHlTszN.d.ts} +8 -24
  77. package/package.json +16 -11
  78. package/dist/chunk-2KP5UU5A.js.map +0 -1
  79. package/dist/chunk-6K3QWJHH.js.map +0 -1
  80. package/dist/chunk-6U3YPHXU.js.map +0 -1
  81. package/dist/chunk-K3VKQ6QF.js.map +0 -1
  82. package/dist/chunk-RSMYGGQK.js.map +0 -1
  83. package/dist/chunk-TDWJ6WZA.js.map +0 -1
  84. package/dist/chunk-TLAVOBEM.js.map +0 -1
  85. package/dist/chunk-ZP6QQYSU.js +0 -7
  86. package/dist/chunk-ZP6QQYSU.js.map +0 -1
  87. package/dist/computed.types.d-gJrBeUMG.d.ts +0 -42
  88. /package/dist/{chunk-RU6332MD.js.map → chunk-2A52V5TQ.js.map} +0 -0
  89. /package/dist/{chunk-MI7774NV.js.map → chunk-5BP2A7BI.js.map} +0 -0
  90. /package/dist/{chunk-35WWWFS6.js.map → chunk-DAESCCLR.js.map} +0 -0
  91. /package/dist/{chunk-3ZNECUPV.js.map → chunk-JIDSFFFD.js.map} +0 -0
  92. /package/dist/{chunk-FD4AB6TM.js.map → chunk-KQ2LED4X.js.map} +0 -0
  93. /package/dist/{chunk-GBZNFSFY.js.map → chunk-TSJGL6FI.js.map} +0 -0
  94. /package/dist/{chunk-LFVPS7KB.js.map → chunk-XWRZP2RM.js.map} +0 -0
@@ -1,23 +1,26 @@
1
- import { I as Interaction } from './interaction.d-g6XG0T0Z.js';
1
+ import { I as Interaction } from './record.d-N1Bq7e1f.js';
2
2
  import { R as ResponseValue } from './response.d-_8y4kjGP.js';
3
3
  import * as lit from 'lit';
4
- import { LitElement } from 'lit';
5
- import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, C as Choice, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-q8u5BiVK.js';
4
+ import { PropertyValues, LitElement } from 'lit';
5
+ import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, C as Choice, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-m0EFv9no.js';
6
6
  import { QtiAssessmentItem } from './elements.js';
7
- import { Q as QtiItem } from './qti-item.d-DgC1AQbY.js';
8
- import { V as View, C as ComputedItemContext } from './session.context.d-D5080LVx.js';
9
- import { k as QtiTest, T as TestCheckItem, t as TestNavigation } from './qti-test.d-DkpBNcsv.js';
10
- import { a as ComputedItem, C as ComputedContext } from './computed.types.d-gJrBeUMG.js';
11
- import './config.context.d-BvU9r-Mg.js';
7
+ import { Q as QtiItem } from './qti-item.d-CxP6KtCH.js';
8
+ import './public-events.d-3dGip9pd.js';
9
+ import { V as View, C as ComputedItemContext } from './session.context.d-9gRdGK4T.js';
10
+ import { l as QtiTest, r as TestNavigation } from './qti-test.d-DBT-YpRu.js';
11
+ import { a as ComputedItem, C as ComputedContext } from './computed.types.d-6Ht-HNRx.js';
12
+ import './config.context.d-Dm11aAuw.js';
12
13
  import './interaction.interface.d-CvjHM2bi.js';
13
- import './item.types.d-B55QkJ92.js';
14
+ import './variables.d-DWHlTszN.js';
15
+ import './item.types.d-Zc6ZQDhu.js';
14
16
  import './qti.context.d-CejJMlfZ.js';
15
17
  import 'lit/directives/ref.js';
16
- import './qti-feedback.d-wMYNVkkj.js';
17
- import './qti-rule-base.d-Bdzg8eGH.js';
18
- import './qti-transform-test.d-BL7GGFJj.js';
19
- import './qti-expression.d-BPxEp8HU.js';
18
+ import './qti-feedback.d-CT0W-8Gm.js';
19
+ import './qti-rule-base.d-CeKP0Ooi.js';
20
+ import './qti-transform-test.d-Bb9vnLzP.js';
21
+ import './qti-expression.d-iH3w6mqf.js';
20
22
  import '@heximal/templates';
23
+ import './qti-test-state.d-D8Q89RzZ.js';
21
24
 
22
25
  type AbstractConstructor$2<T = {}> = abstract new (...args: any[]) => T;
23
26
  declare enum Correctness {
@@ -29,6 +32,13 @@ declare enum Correctness {
29
32
  * Adds correct-response and full-correct-response behaviour
30
33
  * on top of any `Interaction` subclass.
31
34
  *
35
+ * @cssstate answer-key - This host IS the answer key: the clone the full mode inserts after the
36
+ * interaction.
37
+ * @cssstate answer-key-shown - This host shows its answer key inline, next to the candidate's
38
+ * answer (internal mode; alias `show-correct-response` for one major). The clone also carries the `answer-key` attribute and sits in a
39
+ * `div.full-correct-response` wrapper, which a `<div>` has no internals to replace.
40
+ * @csspart correction - The verdict badge, bare `correction` until a verdict is set.
41
+ *
32
42
  * Usage:
33
43
  * ```ts
34
44
  * export abstract class CorrectableInteraction extends CorrectResponseMixin(Interaction) {}
@@ -64,8 +74,9 @@ interface CorrectResponseInterface {
64
74
  *
65
75
  * The component decides where the badge sits in the markup — last, after the label — and how big
66
76
  * its box is. It decides nothing about how it looks. The disc, the tick, the cross, and whether it
67
- * is lifted out of flow at all are the theme's, keyed on ::part(correction-correct) /
68
- * ::part(correction-incorrect).
77
+ * is lifted out of flow at all are the theme's, keyed on ::part(correction candidate-correct) /
78
+ * ::part(correction candidate-incorrect) / ::part(correction candidate-partial) (CONTRACT.md §3; the
79
+ * old single tokens correction-correct etc. stay on the part for one major).
69
80
  *
70
81
  * It replaces six implementations of one idea: four ::after glyph blocks in kennisnet, an
71
82
  * ::before/::after pair in order-interaction, and a .correct-option span that gap-match and match
@@ -75,17 +86,25 @@ interface CorrectResponseInterface {
75
86
  *
76
87
  * Reachable everywhere. A chip has three homes, and inside a drop target's shadow root the document
77
88
  * cannot see its badge: parts do not chain, so ::part(drag)::part(correction) is inert. A part
78
- * token survives exportparts, so one bare ::part(correction-correct) reaches the badge in the drag
89
+ * token survives exportparts, so one bare ::part(correction candidate-correct) reaches the badge in the drag
79
90
  * bank, on the floating clone, and inside a gap. Verified in Chromium.
80
91
  *
81
92
  * Deliberately not anchored, and not absolutely positioned. Both were tried; both left
82
93
  * qti-choice-interaction unable to reach layout stability, and the VRT stability detector spent 20
83
94
  * seconds waiting before capturing a half-settled frame. A theme that wants a corner badge can
84
- * position ::part(correction-correct) itself — it is a part, that is the point.
95
+ * position ::part(correction candidate-correct) itself — it is a part, that is the point.
85
96
  */
86
97
  declare const correctionPart: lit.CSSResult;
87
98
 
88
99
  type AbstractConstructor$1<T = {}> = abstract new (...args: any[]) => T;
100
+ /**
101
+ * Judges the interaction's own response against its correct response and exposes the verdict.
102
+ *
103
+ * @cssstate candidate-correct - The candidate's response is correct.
104
+ * @cssstate candidate-incorrect - The candidate's response is incorrect.
105
+ * @cssstate candidate-partial - The candidate's response is partially correct (alias `candidate-partially-correct`, one major).
106
+ * @csspart correction - The verdict badge; its second token is the verdict state (`candidate-correct`, `candidate-incorrect`, `candidate-partial`), followed by the old `correction-<verdict>` token for one major.
107
+ */
89
108
  declare const CandidateCorrectionMixin: <T extends AbstractConstructor$1<Interaction>>(superClass: T) => AbstractConstructor$1<CorrectResponseInterface> & T;
90
109
 
91
110
  type AbstractConstructor<T = {}> = abstract new (...args: any[]) => T;
@@ -93,7 +112,14 @@ type ChoicesCorrectionBase = Interaction & {
93
112
  readonly response: string | string[] | null;
94
113
  readonly internals: ElementInternals;
95
114
  };
96
- /** Adds per-choice candidate marking to interactions built on `ChoicesMixin`. */
115
+ /**
116
+ * Adds per-choice candidate marking to interactions built on `ChoicesMixin`.
117
+ *
118
+ * Each choice gets its own states (CONTRACT.md §3): the verdict through its `candidateCorrection`
119
+ * (`ActiveElementCorrectionMixin`), and `answer-key` when it is part of the correct response (alias
120
+ * `correct-response`, one major). A choice outside the key gets nothing; the old `incorrect-response`
121
+ * was never styled and is gone.
122
+ */
97
123
  declare const ChoiceCorrectionMixin: <T extends AbstractConstructor<ChoicesCorrectionBase>>(superClass: T) => AbstractConstructor<CorrectResponseInterface> & T;
98
124
 
99
125
  /** Presentation policy understood by correction-capable elements. */
@@ -110,29 +136,76 @@ interface ActiveElementCorrectionInterface {
110
136
  }
111
137
 
112
138
  declare const QtiGapTextCorrection_base: (abstract new (...args: any[]) => ActiveElementCorrectionInterface) & typeof QtiGapText;
139
+ /**
140
+ * `qti-gap-text` with a verdict badge after its label; the verdict states come from `ActiveElementCorrectionMixin`.
141
+ *
142
+ * @cssstate candidate-correct - The candidate's answer on this element is correct.
143
+ * @cssstate candidate-incorrect - The candidate's answer on this element is incorrect.
144
+ * @cssstate candidate-partial - The candidate's answer on this element is partially correct (alias `candidate-partially-correct`, one major).
145
+ * @csspart correction - The verdict badge; its second token is the verdict state (`candidate-correct`, `candidate-incorrect`, `candidate-partial`), followed by the old `correction-<verdict>` token for one major.
146
+ */
113
147
  declare class QtiGapTextCorrection extends QtiGapTextCorrection_base {
114
148
  static styles: lit.CSSResultGroup[];
115
149
  render(): lit.TemplateResult<1>;
116
150
  }
117
151
 
118
152
  declare const QtiHotspotChoiceCorrection_base: (abstract new (...args: any[]) => ActiveElementCorrectionInterface) & typeof QtiHotspotChoice;
153
+ /**
154
+ * A hotspot choice that carries a verdict and, in graphic-order, its position in the answer key.
155
+ *
156
+ * The position is the attribute `data-order-correct` (a hotspot paints it as a pin in CSS, so it is
157
+ * an attribute, not a state: the theme reads it as `[data-order-correct]`). The property still
158
+ * reflects to its old name `aria-ordercorrectvalue` for one major; `updated()` mirrors it.
159
+ *
160
+ * @cssstate candidate-correct - This hotspot's answer is correct.
161
+ * @cssstate candidate-incorrect - This hotspot's answer is incorrect.
162
+ * @cssstate candidate-partial - This hotspot's answer is partially correct (alias `candidate-partially-correct`, one major).
163
+ * @cssstate answer-key - In a hotspot interaction, this hotspot is part of the correct response (alias `correct-response`, one major).
164
+ */
119
165
  declare class QtiHotspotChoiceCorrection extends QtiHotspotChoiceCorrection_base {
120
166
  orderCorrect: number | null;
167
+ protected updated(changed: PropertyValues<this>): void;
121
168
  }
122
169
 
123
170
  declare const QtiHottextCorrection_base: (abstract new (...args: any[]) => ActiveElementCorrectionInterface) & typeof QtiHottext;
171
+ /**
172
+ * `qti-hottext` with a verdict badge after its label; the verdict states come from `ActiveElementCorrectionMixin`.
173
+ *
174
+ * @cssstate candidate-correct - The candidate's answer on this element is correct.
175
+ * @cssstate candidate-incorrect - The candidate's answer on this element is incorrect.
176
+ * @cssstate candidate-partial - The candidate's answer on this element is partially correct (alias `candidate-partially-correct`, one major).
177
+ * @cssstate answer-key - This element is part of the correct response (alias `correct-response`, one major).
178
+ * @csspart correction - The verdict badge; its second token is the verdict state (`candidate-correct`, `candidate-incorrect`, `candidate-partial`), followed by the old `correction-<verdict>` token for one major.
179
+ */
124
180
  declare class QtiHottextCorrection extends QtiHottextCorrection_base {
125
181
  static styles: lit.CSSResultGroup[];
126
182
  render(): lit.TemplateResult<1>;
127
183
  }
128
184
 
129
185
  declare const QtiSimpleAssociableChoiceCorrection_base: (abstract new (...args: any[]) => ActiveElementCorrectionInterface) & typeof QtiSimpleAssociableChoice;
186
+ /**
187
+ * `qti-simple-associable-choice` with a verdict badge after its label; the verdict states come from `ActiveElementCorrectionMixin`.
188
+ *
189
+ * @cssstate candidate-correct - The candidate's answer on this element is correct.
190
+ * @cssstate candidate-incorrect - The candidate's answer on this element is incorrect.
191
+ * @cssstate candidate-partial - The candidate's answer on this element is partially correct (alias `candidate-partially-correct`, one major).
192
+ * @csspart correction - The verdict badge; its second token is the verdict state (`candidate-correct`, `candidate-incorrect`, `candidate-partial`), followed by the old `correction-<verdict>` token for one major.
193
+ */
130
194
  declare class QtiSimpleAssociableChoiceCorrection extends QtiSimpleAssociableChoiceCorrection_base {
131
195
  static styles: lit.CSSResultGroup[];
132
196
  render(): lit.TemplateResult<1>;
133
197
  }
134
198
 
135
199
  declare const QtiSimpleChoiceCorrection_base: (abstract new (...args: any[]) => ActiveElementCorrectionInterface) & typeof QtiSimpleChoice;
200
+ /**
201
+ * `qti-simple-choice` with a verdict badge after its label; the verdict states come from `ActiveElementCorrectionMixin`.
202
+ *
203
+ * @cssstate candidate-correct - The candidate's answer on this element is correct.
204
+ * @cssstate candidate-incorrect - The candidate's answer on this element is incorrect.
205
+ * @cssstate candidate-partial - The candidate's answer on this element is partially correct (alias `candidate-partially-correct`, one major).
206
+ * @cssstate answer-key - This element is part of the correct response (alias `correct-response`, one major).
207
+ * @csspart correction - The verdict badge; its second token is the verdict state (`candidate-correct`, `candidate-incorrect`, `candidate-partial`), followed by the old `correction-<verdict>` token for one major.
208
+ */
136
209
  declare class QtiSimpleChoiceCorrection extends QtiSimpleChoiceCorrection_base {
137
210
  static styles: lit.CSSResultGroup[];
138
211
  render(): lit.TemplateResult<1>;
@@ -185,10 +258,6 @@ declare class TestNavigationCorrection extends TestNavigation {
185
258
  declare class QtiTestCorrection extends QtiTest {
186
259
  updateAssessmentItemView(assessmentItem: QtiAssessmentItem, view: View): void;
187
260
  }
188
- /** Check-item extension that reveals the correct response after scoring. */
189
- declare class TestCheckItemCorrection extends TestCheckItem {
190
- constructor();
191
- }
192
261
 
193
262
  declare class ItemCorrectResponseMode extends LitElement {
194
263
  #private;
@@ -241,12 +310,22 @@ declare global {
241
310
  }
242
311
 
243
312
  /**
244
- * @deprecated test-show-correct-response is deprecated and will be removed in the future.
313
+ * A button that shows and hides the correct response of the active item. Put it inside
314
+ * `<test-navigation>`: it reads the active item from there, and it is disabled when that item
315
+ * declares no correct response or mapping. It switches back to "show" when the candidate moves on.
316
+ *
317
+ * Needs the corrections build (`@citolab/qti-components/corrections`), whose `<test-navigation>`
318
+ * passes the request to the active item's `showCorrectResponse(show)`.
319
+ *
320
+ * @customElement test-show-correct-response
321
+ * @fires test-show-correct-response - `detail` is `true` to show the correct response, `false` to hide it.
245
322
  */
246
323
  declare class TestShowCorrectResponse extends LitElement {
247
324
  #private;
248
325
  computedContext?: ComputedContext;
249
326
  static styles: lit.CSSResult;
327
+ constructor();
328
+ connectedCallback(): void;
250
329
  shown: boolean;
251
330
  disabled: boolean;
252
331
  showCorrectText: string;
@@ -303,6 +382,11 @@ declare const QtiExtendedTextInteractionCorrection_base: (abstract new (...args:
303
382
  * - The verdict survives typing. It is a property, not the `showCandidateCorrection` toggle, so
304
383
  * `afterResponseVariableUpdated()` does not clear it. If a stale grade should be dropped when the
305
384
  * candidate edits their answer, that is an explicit decision for the host app to make.
385
+ *
386
+ * @cssstate candidate-correct - The verdict pushed in is `correct`.
387
+ * @cssstate candidate-incorrect - The verdict pushed in is `incorrect`.
388
+ * @cssstate candidate-partial - The verdict pushed in is `partially-correct` (alias `candidate-partially-correct`, one major).
389
+ * @csspart correction - The verdict badge in the field's top end corner; its second token is the verdict state, followed by the old `correction-<verdict>` token for one major.
306
390
  */
307
391
  declare class QtiExtendedTextInteractionCorrection extends QtiExtendedTextInteractionCorrection_base {
308
392
  static styles: lit.CSSResultGroup[];
@@ -325,6 +409,10 @@ declare class QtiGapMatchInteractionCorrection extends QtiGapMatchInteractionCor
325
409
  }
326
410
 
327
411
  declare const QtiGraphicAssociateInteractionCorrection_base: (abstract new (...args: any[]) => CorrectResponseInterface) & typeof QtiGraphicAssociateInteraction;
412
+ /**
413
+ * @csspart line - An association line; the answer key's lines carry the `answer-key` token
414
+ * (`line answer-key`), followed by the old `correct-line` token for one major.
415
+ */
328
416
  declare class QtiGraphicAssociateInteractionCorrection extends QtiGraphicAssociateInteractionCorrection_base {
329
417
  #private;
330
418
  toggleInternalCorrectResponse(show: boolean): void;
@@ -339,6 +427,11 @@ type OrderedHotspot = Choice & {
339
427
  order: number | null;
340
428
  };
341
429
  declare const QtiGraphicOrderInteractionCorrection_base: (abstract new (...args: any[]) => CorrectResponseInterface) & typeof QtiGraphicOrderInteraction;
430
+ /**
431
+ * Judges each hotspot's position in the order and paints its pin from the hotspot's verdict state.
432
+ * The answer key is the hotspot's `orderCorrect` (`data-order-correct`), set by
433
+ * `toggleInternalCorrectResponse`; it sets no state on the hotspot.
434
+ */
342
435
  declare class QtiGraphicOrderInteractionCorrection extends QtiGraphicOrderInteractionCorrection_base {
343
436
  protected resolvePinColor(choice: OrderedHotspot): string;
344
437
  toggleInternalCorrectResponse(show: boolean): void;
@@ -354,6 +447,9 @@ declare class QtiHottextInteractionCorrection extends QtiHottextInteractionCorre
354
447
  }
355
448
 
356
449
  declare const QtiInlineChoiceInteractionCorrection_base: (abstract new (...args: any[]) => CorrectResponseInterface) & typeof QtiInlineChoiceInteraction;
450
+ /**
451
+ * @csspart correction - The verdict badge after the validation message; see `CandidateCorrectionMixin` for its tokens.
452
+ */
357
453
  declare class QtiInlineChoiceInteractionCorrection extends QtiInlineChoiceInteractionCorrection_base {
358
454
  static get styles(): (lit.CSSResult | lit.CSSResultGroup[])[];
359
455
  /**
@@ -389,6 +485,11 @@ declare class QtiInlineChoiceInteractionCorrection extends QtiInlineChoiceIntera
389
485
  }
390
486
 
391
487
  declare const QtiMatchInteractionCorrection_base: (abstract new (...args: any[]) => CorrectResponseInterface) & typeof QtiMatchInteraction;
488
+ /**
489
+ * @csspart control - A tabular cell; once judged, a checked cell carries the verdict token
490
+ * (`control … candidate-correct` / `candidate-incorrect`), followed by the old bare `correct` /
491
+ * `incorrect` token for one major. `control-mark` carries the same tokens.
492
+ */
392
493
  declare class QtiMatchInteractionCorrection extends QtiMatchInteractionCorrection_base {
393
494
  #private;
394
495
  toggleCandidateCorrection(show: boolean): void;
@@ -406,6 +507,10 @@ declare class QtiPortableCustomInteractionCorrection extends QtiPortableCustomIn
406
507
  }
407
508
 
408
509
  declare const QtiSelectPointInteractionCorrection_base: (abstract new (...args: any[]) => CorrectResponseInterface) & typeof QtiSelectPointInteraction;
510
+ /**
511
+ * @csspart point - A placed marker; once judged it carries the verdict token (`point candidate-correct`,
512
+ * `point candidate-incorrect`), followed by the old bare `correct` / `incorrect` token for one major.
513
+ */
409
514
  declare class QtiSelectPointInteractionCorrection extends QtiSelectPointInteractionCorrection_base {
410
515
  #private;
411
516
  static styles: lit.CSSResultGroup[];
@@ -417,6 +522,10 @@ declare class QtiSelectPointInteractionCorrection extends QtiSelectPointInteract
417
522
  }
418
523
 
419
524
  declare const QtiSliderInteractionCorrection_base: (abstract new (...args: any[]) => CorrectResponseInterface) & typeof QtiSliderInteraction;
525
+ /**
526
+ * @csspart knob - The ghost knob at the correct response position carries the `answer-key` token
527
+ * (`knob answer-key`), followed by the old `knob-correct` token for one major.
528
+ */
420
529
  declare class QtiSliderInteractionCorrection extends QtiSliderInteractionCorrection_base {
421
530
  #private;
422
531
  static styles: lit.CSSResultGroup[];
@@ -425,6 +534,10 @@ declare class QtiSliderInteractionCorrection extends QtiSliderInteractionCorrect
425
534
  }
426
535
 
427
536
  declare const QtiTextEntryInteractionCorrection_base: (abstract new (...args: any[]) => CorrectResponseInterface) & typeof QtiTextEntryInteraction;
537
+ /**
538
+ * @csspart correction - The verdict badge between the field and the validation message; see
539
+ * `CandidateCorrectionMixin` for its tokens. The answer key itself is the base's `answer-key` part.
540
+ */
428
541
  declare class QtiTextEntryInteractionCorrection extends QtiTextEntryInteractionCorrection_base {
429
542
  static styles: lit.CSSResultGroup[];
430
543
  get correctness(): Readonly<Correctness | null>;
@@ -433,4 +546,4 @@ declare class QtiTextEntryInteractionCorrection extends QtiTextEntryInteractionC
433
546
  render(): lit.TemplateResult<1>;
434
547
  }
435
548
 
436
- export { CandidateCorrectionMixin, ChoiceCorrectionMixin, type CorrectResponseInterface, CorrectResponseMixin, type CorrectResponseMode, type 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 };
549
+ export { CandidateCorrectionMixin, ChoiceCorrectionMixin, type CorrectResponseInterface, CorrectResponseMixin, type CorrectResponseMode, type 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 };
@@ -30,37 +30,38 @@ import {
30
30
  QtiSliderInteractionCorrection,
31
31
  QtiTestCorrection,
32
32
  QtiTextEntryInteractionCorrection,
33
- TestCheckItemCorrection,
34
33
  TestNavigationCorrection,
35
34
  TestShowCorrectResponse,
36
35
  correctionPart
37
- } from "./chunk-2KP5UU5A.js";
36
+ } from "./chunk-55WWIRLN.js";
38
37
  import {
39
38
  qtiTestElements
40
- } from "./chunk-K3VKQ6QF.js";
39
+ } from "./chunk-TB2OI3ED.js";
40
+ import "./chunk-J6VX4N7M.js";
41
41
  import {
42
42
  qtiContentElements
43
- } from "./chunk-6U3YPHXU.js";
43
+ } from "./chunk-H6DO5UHC.js";
44
+ import "./chunk-UCXLDQYA.js";
44
45
  import {
45
46
  qtiInteractionElements
46
- } from "./chunk-RSMYGGQK.js";
47
+ } from "./chunk-TZCOXFPB.js";
47
48
  import {
48
49
  qtiItemElements
49
- } from "./chunk-RU6332MD.js";
50
- import "./chunk-ZP6QQYSU.js";
50
+ } from "./chunk-2A52V5TQ.js";
51
+ import "./chunk-WWY2H2YO.js";
51
52
  import "./chunk-4DB4SC5K.js";
52
- import "./chunk-TLAVOBEM.js";
53
+ import "./chunk-ZRORBAHB.js";
53
54
  import {
54
55
  qtiProcessingElements
55
- } from "./chunk-6K3QWJHH.js";
56
+ } from "./chunk-LPYZVKHX.js";
56
57
  import {
57
58
  qtiBaseElements
58
- } from "./chunk-TDWJ6WZA.js";
59
+ } from "./chunk-GPC53O7P.js";
60
+ import "./chunk-PZ5AY32C.js";
59
61
 
60
62
  // ../qti-corrections/dist/elements.js
61
63
  var qtiCorrectionElements = [
62
64
  { tag: "test-show-correct-response", ctor: TestShowCorrectResponse },
63
- { tag: "test-check-item", ctor: TestCheckItemCorrection },
64
65
  { tag: "test-navigation", ctor: TestNavigationCorrection },
65
66
  { tag: "qti-test", ctor: QtiTestCorrection },
66
67
  { tag: "item-correct-response-mode", ctor: ItemCorrectResponseMode },
@@ -150,7 +151,6 @@ export {
150
151
  QtiSliderInteractionCorrection,
151
152
  QtiTestCorrection,
152
153
  QtiTextEntryInteractionCorrection,
153
- TestCheckItemCorrection,
154
154
  TestNavigationCorrection,
155
155
  TestShowCorrectResponse,
156
156
  correctionPart
@@ -1 +1 @@
1
- {"version":3,"sources":["../../qti-corrections/src/elements.ts","../src/corrections.ts"],"sourcesContent":["import { ItemCorrectResponseMode } from './components/item-correct-response-mode/item-correct-response-mode';\nimport { ItemShowCandidateCorrection } from './components/item-show-candidate-correction/item-show-candidate-correction';\nimport { ItemShowCorrectResponse } from './components/item-show-correct-response/item-show-correct-response';\nimport { TestShowCorrectResponse } from './components/test-show-correct-response/test-show-correct-response';\nimport {\n QtiGapTextCorrection,\n QtiHotspotChoiceCorrection,\n QtiHottextCorrection,\n QtiSimpleAssociableChoiceCorrection,\n QtiSimpleChoiceCorrection\n} from './elements/index';\nimport {\n QtiAssociateInteractionCorrection,\n QtiChoiceInteractionCorrection,\n QtiExtendedTextInteractionCorrection,\n QtiGapMatchInteractionCorrection,\n QtiGraphicAssociateInteractionCorrection,\n QtiGraphicGapMatchInteractionCorrection,\n QtiGraphicOrderInteractionCorrection,\n QtiHotspotInteractionCorrection,\n QtiHottextInteractionCorrection,\n QtiInlineChoiceInteractionCorrection,\n QtiMatchInteractionCorrection,\n QtiOrderInteractionCorrection,\n QtiPortableCustomInteractionCorrection,\n QtiSelectPointInteractionCorrection,\n QtiSliderInteractionCorrection,\n QtiTextEntryInteractionCorrection\n} from './interactions';\nimport { QtiAssessmentItemCorrection } from './components/qti-assessment-item-correction';\nimport { QtiItemCorrection } from './components/qti-item-correction';\nimport {\n QtiTestCorrection,\n TestCheckItemCorrection,\n TestNavigationCorrection\n} from './components/test-correction-elements';\n\n/** Correction constructors keyed by their standard QTI tag names. */\nexport const qtiCorrectionElements = [\n { tag: 'test-show-correct-response', ctor: TestShowCorrectResponse },\n { tag: 'test-check-item', ctor: TestCheckItemCorrection },\n { tag: 'test-navigation', ctor: TestNavigationCorrection },\n { tag: 'qti-test', ctor: QtiTestCorrection },\n { tag: 'item-correct-response-mode', ctor: ItemCorrectResponseMode },\n { tag: 'item-show-candidate-correction', ctor: ItemShowCandidateCorrection },\n { tag: 'item-show-correct-response', ctor: ItemShowCorrectResponse },\n { tag: 'qti-item', ctor: QtiItemCorrection },\n { tag: 'qti-assessment-item', ctor: QtiAssessmentItemCorrection },\n { tag: 'qti-associate-interaction', ctor: QtiAssociateInteractionCorrection },\n { tag: 'qti-choice-interaction', ctor: QtiChoiceInteractionCorrection },\n { tag: 'qti-extended-text-interaction', ctor: QtiExtendedTextInteractionCorrection },\n { tag: 'qti-gap-match-interaction', ctor: QtiGapMatchInteractionCorrection },\n { tag: 'qti-graphic-associate-interaction', ctor: QtiGraphicAssociateInteractionCorrection },\n { tag: 'qti-graphic-gap-match-interaction', ctor: QtiGraphicGapMatchInteractionCorrection },\n { tag: 'qti-graphic-order-interaction', ctor: QtiGraphicOrderInteractionCorrection },\n { tag: 'qti-hotspot-interaction', ctor: QtiHotspotInteractionCorrection },\n { tag: 'qti-hottext-interaction', ctor: QtiHottextInteractionCorrection },\n { tag: 'qti-inline-choice-interaction', ctor: QtiInlineChoiceInteractionCorrection },\n { tag: 'qti-match-interaction', ctor: QtiMatchInteractionCorrection },\n { tag: 'qti-order-interaction', ctor: QtiOrderInteractionCorrection },\n { tag: 'qti-portable-custom-interaction', ctor: QtiPortableCustomInteractionCorrection },\n { tag: 'qti-select-point-interaction', ctor: QtiSelectPointInteractionCorrection },\n { tag: 'qti-slider-interaction', ctor: QtiSliderInteractionCorrection },\n { tag: 'qti-text-entry-interaction', ctor: QtiTextEntryInteractionCorrection },\n { tag: 'qti-gap-text', ctor: QtiGapTextCorrection },\n { tag: 'qti-hotspot-choice', ctor: QtiHotspotChoiceCorrection },\n { tag: 'qti-hottext', ctor: QtiHottextCorrection },\n { tag: 'qti-simple-associable-choice', ctor: QtiSimpleAssociableChoiceCorrection },\n { tag: 'qti-simple-choice', ctor: QtiSimpleChoiceCorrection }\n] as const;\n","/**\n * Correction-mode entry point: the standard delivery elements with the correction variants\n * substituted, registered globally.\n *\n * <script type=\"module\">import '@citolab/qti-components/corrections';</script>\n *\n * The sibling of the package root. `@citolab/qti-components` registers the standard elements;\n * this registers the same set with the correction variants winning for the tags they cover, plus\n * the correction-only controls (`item-show-correct-response`, `test-show-correct-response`,\n * `item-correct-response-mode`, `item-show-candidate-correction`). Import ONE of the two.\n *\n * Why substitution rather than \"corrections on top\": the correction classes are keyed by the\n * STANDARD tag names — `QtiChoiceInteractionCorrection` is `ChoiceCorrectionMixin(\n * QtiChoiceInteraction)` registered as `qti-choice-interaction`. A registry holds one constructor\n * per tag, so this is a replacement, never an addition. Everything without a correction variant —\n * the processing operators, most test controls, interactions like media and upload — still gets\n * its standard constructor, because a page needs those to work at all.\n *\n * Every import below is a `/elements` subpath, deliberately. The package ROOTS run their\n * `register.ts` on evaluation and would define the standard constructors before this file gets to\n * choose; `/elements` exports the `{ tag, ctor }` arrays and defines nothing.\n */\nimport { qtiBaseElements } from '@qti-components/base/elements';\nimport { qtiContentElements } from '@qti-components/elements/elements';\nimport { qtiItemElements } from '@qti-components/item/elements';\nimport { qtiProcessingElements } from '@qti-components/processing/elements';\nimport { qtiTestElements } from '@qti-components/test/elements';\nimport { qtiInteractionElements } from '@qti-components/interactions/elements';\nimport { qtiCorrectionElements } from '@qti-components/corrections/elements';\n\nconst standardElements = [\n ...qtiBaseElements,\n ...qtiProcessingElements,\n ...qtiContentElements,\n ...qtiItemElements,\n ...qtiTestElements,\n ...qtiInteractionElements\n];\n\n// Keyed as `string`, not the inferred literal union: the lookup below is driven by the standard\n// tag lists, most of whose tags have no correction variant.\nconst correctionByTag = new Map<string, CustomElementConstructor>(\n qtiCorrectionElements.map(({ tag, ctor }) => [tag, ctor])\n);\n\n/**\n * Registration is first-wins and silent — every `register.ts` in the workspace guards with\n * `if (!customElements.get(tag))` so that a module graph holding two copies of a package does not\n * throw `NotSupportedError` on the second define.\n *\n * That guard makes the failure mode here invisible: if anything already pulled in\n * `@citolab/qti-components` (or a package root) the standard constructor holds the tag, this file\n * skips it, and the page renders correctly EXCEPT that nothing ever shows a correct answer.\n * Nothing throws and nothing logs. So say it out loud.\n */\nconst alreadyTaken = qtiCorrectionElements\n .filter(({ tag, ctor }) => {\n const registered = customElements.get(tag);\n return registered !== undefined && registered !== ctor;\n })\n .map(({ tag }) => tag);\n\nif (alreadyTaken.length > 0) {\n console.warn(\n `[@citolab/qti-components/corrections] ${alreadyTaken.length} tag(s) were already registered ` +\n `by another entry point, so the correction variants for them are inactive: ` +\n `${alreadyTaken.join(', ')}. Import EITHER '@citolab/qti-components' OR ` +\n `'@citolab/qti-components/corrections', not both.`\n );\n}\n\nfor (const { tag, ctor } of standardElements) {\n if (!customElements.get(tag)) customElements.define(tag, correctionByTag.get(tag) ?? ctor);\n}\n\n// The correction-only controls, which replace no standard tag.\nfor (const { tag, ctor } of qtiCorrectionElements) {\n if (!customElements.get(tag)) customElements.define(tag, ctor);\n}\n\nexport * from '@qti-components/corrections';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCO,IAAM,wBAAwB;EACnC,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,mBAAmB,MAAM,wBAAuB;EACvD,EAAE,KAAK,mBAAmB,MAAM,yBAAwB;EACxD,EAAE,KAAK,YAAY,MAAM,kBAAiB;EAC1C,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,kCAAkC,MAAM,4BAA2B;EAC1E,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,YAAY,MAAM,kBAAiB;EAC1C,EAAE,KAAK,uBAAuB,MAAM,4BAA2B;EAC/D,EAAE,KAAK,6BAA6B,MAAM,kCAAiC;EAC3E,EAAE,KAAK,0BAA0B,MAAM,+BAA8B;EACrE,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,6BAA6B,MAAM,iCAAgC;EAC1E,EAAE,KAAK,qCAAqC,MAAM,yCAAwC;EAC1F,EAAE,KAAK,qCAAqC,MAAM,wCAAuC;EACzF,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,2BAA2B,MAAM,gCAA+B;EACvE,EAAE,KAAK,2BAA2B,MAAM,gCAA+B;EACvE,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,yBAAyB,MAAM,8BAA6B;EACnE,EAAE,KAAK,yBAAyB,MAAM,8BAA6B;EACnE,EAAE,KAAK,mCAAmC,MAAM,uCAAsC;EACtF,EAAE,KAAK,gCAAgC,MAAM,oCAAmC;EAChF,EAAE,KAAK,0BAA0B,MAAM,+BAA8B;EACrE,EAAE,KAAK,8BAA8B,MAAM,kCAAiC;EAC5E,EAAE,KAAK,gBAAgB,MAAM,qBAAoB;EACjD,EAAE,KAAK,sBAAsB,MAAM,2BAA0B;EAC7D,EAAE,KAAK,eAAe,MAAM,qBAAoB;EAChD,EAAE,KAAK,gCAAgC,MAAM,oCAAmC;EAChF,EAAE,KAAK,qBAAqB,MAAM,0BAAyB;;;;ACtC7D,IAAM,mBAAmB;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAIA,IAAM,kBAAkB,IAAI;AAAA,EAC1B,sBAAsB,IAAI,CAAC,EAAE,KAAK,KAAK,MAAM,CAAC,KAAK,IAAI,CAAC;AAC1D;AAYA,IAAM,eAAe,sBAClB,OAAO,CAAC,EAAE,KAAK,KAAK,MAAM;AACzB,QAAM,aAAa,eAAe,IAAI,GAAG;AACzC,SAAO,eAAe,UAAa,eAAe;AACpD,CAAC,EACA,IAAI,CAAC,EAAE,IAAI,MAAM,GAAG;AAEvB,IAAI,aAAa,SAAS,GAAG;AAC3B,UAAQ;AAAA,IACN,yCAAyC,aAAa,MAAM,6GAEvD,aAAa,KAAK,IAAI,CAAC;AAAA,EAE9B;AACF;AAEA,WAAW,EAAE,KAAK,KAAK,KAAK,kBAAkB;AAC5C,MAAI,CAAC,eAAe,IAAI,GAAG,EAAG,gBAAe,OAAO,KAAK,gBAAgB,IAAI,GAAG,KAAK,IAAI;AAC3F;AAGA,WAAW,EAAE,KAAK,KAAK,KAAK,uBAAuB;AACjD,MAAI,CAAC,eAAe,IAAI,GAAG,EAAG,gBAAe,OAAO,KAAK,IAAI;AAC/D;","names":[]}
1
+ {"version":3,"sources":["../../qti-corrections/src/elements.ts","../src/corrections.ts"],"sourcesContent":["import { ItemCorrectResponseMode } from './components/item-correct-response-mode/item-correct-response-mode';\nimport { ItemShowCandidateCorrection } from './components/item-show-candidate-correction/item-show-candidate-correction';\nimport { ItemShowCorrectResponse } from './components/item-show-correct-response/item-show-correct-response';\nimport { TestShowCorrectResponse } from './components/test-show-correct-response/test-show-correct-response';\nimport {\n QtiGapTextCorrection,\n QtiHotspotChoiceCorrection,\n QtiHottextCorrection,\n QtiSimpleAssociableChoiceCorrection,\n QtiSimpleChoiceCorrection\n} from './elements/index';\nimport {\n QtiAssociateInteractionCorrection,\n QtiChoiceInteractionCorrection,\n QtiExtendedTextInteractionCorrection,\n QtiGapMatchInteractionCorrection,\n QtiGraphicAssociateInteractionCorrection,\n QtiGraphicGapMatchInteractionCorrection,\n QtiGraphicOrderInteractionCorrection,\n QtiHotspotInteractionCorrection,\n QtiHottextInteractionCorrection,\n QtiInlineChoiceInteractionCorrection,\n QtiMatchInteractionCorrection,\n QtiOrderInteractionCorrection,\n QtiPortableCustomInteractionCorrection,\n QtiSelectPointInteractionCorrection,\n QtiSliderInteractionCorrection,\n QtiTextEntryInteractionCorrection\n} from './interactions';\nimport { QtiAssessmentItemCorrection } from './components/qti-assessment-item-correction';\nimport { QtiItemCorrection } from './components/qti-item-correction';\nimport { QtiTestCorrection, TestNavigationCorrection } from './components/test-correction-elements';\n\n/** Correction constructors keyed by their standard QTI tag names. */\nexport const qtiCorrectionElements = [\n { tag: 'test-show-correct-response', ctor: TestShowCorrectResponse },\n { tag: 'test-navigation', ctor: TestNavigationCorrection },\n { tag: 'qti-test', ctor: QtiTestCorrection },\n { tag: 'item-correct-response-mode', ctor: ItemCorrectResponseMode },\n { tag: 'item-show-candidate-correction', ctor: ItemShowCandidateCorrection },\n { tag: 'item-show-correct-response', ctor: ItemShowCorrectResponse },\n { tag: 'qti-item', ctor: QtiItemCorrection },\n { tag: 'qti-assessment-item', ctor: QtiAssessmentItemCorrection },\n { tag: 'qti-associate-interaction', ctor: QtiAssociateInteractionCorrection },\n { tag: 'qti-choice-interaction', ctor: QtiChoiceInteractionCorrection },\n { tag: 'qti-extended-text-interaction', ctor: QtiExtendedTextInteractionCorrection },\n { tag: 'qti-gap-match-interaction', ctor: QtiGapMatchInteractionCorrection },\n { tag: 'qti-graphic-associate-interaction', ctor: QtiGraphicAssociateInteractionCorrection },\n { tag: 'qti-graphic-gap-match-interaction', ctor: QtiGraphicGapMatchInteractionCorrection },\n { tag: 'qti-graphic-order-interaction', ctor: QtiGraphicOrderInteractionCorrection },\n { tag: 'qti-hotspot-interaction', ctor: QtiHotspotInteractionCorrection },\n { tag: 'qti-hottext-interaction', ctor: QtiHottextInteractionCorrection },\n { tag: 'qti-inline-choice-interaction', ctor: QtiInlineChoiceInteractionCorrection },\n { tag: 'qti-match-interaction', ctor: QtiMatchInteractionCorrection },\n { tag: 'qti-order-interaction', ctor: QtiOrderInteractionCorrection },\n { tag: 'qti-portable-custom-interaction', ctor: QtiPortableCustomInteractionCorrection },\n { tag: 'qti-select-point-interaction', ctor: QtiSelectPointInteractionCorrection },\n { tag: 'qti-slider-interaction', ctor: QtiSliderInteractionCorrection },\n { tag: 'qti-text-entry-interaction', ctor: QtiTextEntryInteractionCorrection },\n { tag: 'qti-gap-text', ctor: QtiGapTextCorrection },\n { tag: 'qti-hotspot-choice', ctor: QtiHotspotChoiceCorrection },\n { tag: 'qti-hottext', ctor: QtiHottextCorrection },\n { tag: 'qti-simple-associable-choice', ctor: QtiSimpleAssociableChoiceCorrection },\n { tag: 'qti-simple-choice', ctor: QtiSimpleChoiceCorrection }\n] as const;\n","/**\n * Correction-mode entry point: the standard delivery elements with the correction variants\n * substituted, registered globally.\n *\n * <script type=\"module\">import '@citolab/qti-components/corrections';</script>\n *\n * The sibling of the package root. `@citolab/qti-components` registers the standard elements;\n * this registers the same set with the correction variants winning for the tags they cover, plus\n * the correction-only controls (`item-show-correct-response`, `test-show-correct-response`,\n * `item-correct-response-mode`, `item-show-candidate-correction`). Import ONE of the two.\n *\n * Why substitution rather than \"corrections on top\": the correction classes are keyed by the\n * STANDARD tag names — `QtiChoiceInteractionCorrection` is `ChoiceCorrectionMixin(\n * QtiChoiceInteraction)` registered as `qti-choice-interaction`. A registry holds one constructor\n * per tag, so this is a replacement, never an addition. Everything without a correction variant —\n * the processing operators, most test controls, interactions like media and upload — still gets\n * its standard constructor, because a page needs those to work at all.\n *\n * Every import below is a `/elements` subpath, deliberately. The package ROOTS run their\n * `register.ts` on evaluation and would define the standard constructors before this file gets to\n * choose; `/elements` exports the `{ tag, ctor }` arrays and defines nothing.\n */\nimport { qtiBaseElements } from '@qti-components/base/elements';\nimport { qtiContentElements } from '@qti-components/elements/elements';\nimport { qtiItemElements } from '@qti-components/item/elements';\nimport { qtiProcessingElements } from '@qti-components/processing/elements';\nimport { qtiTestElements } from '@qti-components/test/elements';\nimport { qtiInteractionElements } from '@qti-components/interactions/elements';\nimport { qtiCorrectionElements } from '@qti-components/corrections/elements';\n\nconst standardElements = [\n ...qtiBaseElements,\n ...qtiProcessingElements,\n ...qtiContentElements,\n ...qtiItemElements,\n ...qtiTestElements,\n ...qtiInteractionElements\n];\n\n// Keyed as `string`, not the inferred literal union: the lookup below is driven by the standard\n// tag lists, most of whose tags have no correction variant.\nconst correctionByTag = new Map<string, CustomElementConstructor>(\n qtiCorrectionElements.map(({ tag, ctor }) => [tag, ctor])\n);\n\n/**\n * Registration is first-wins and silent — every `register.ts` in the workspace guards with\n * `if (!customElements.get(tag))` so that a module graph holding two copies of a package does not\n * throw `NotSupportedError` on the second define.\n *\n * That guard makes the failure mode here invisible: if anything already pulled in\n * `@citolab/qti-components` (or a package root) the standard constructor holds the tag, this file\n * skips it, and the page renders correctly EXCEPT that nothing ever shows a correct answer.\n * Nothing throws and nothing logs. So say it out loud.\n */\nconst alreadyTaken = qtiCorrectionElements\n .filter(({ tag, ctor }) => {\n const registered = customElements.get(tag);\n return registered !== undefined && registered !== ctor;\n })\n .map(({ tag }) => tag);\n\nif (alreadyTaken.length > 0) {\n console.warn(\n `[@citolab/qti-components/corrections] ${alreadyTaken.length} tag(s) were already registered ` +\n `by another entry point, so the correction variants for them are inactive: ` +\n `${alreadyTaken.join(', ')}. Import EITHER '@citolab/qti-components' OR ` +\n `'@citolab/qti-components/corrections', not both.`\n );\n}\n\nfor (const { tag, ctor } of standardElements) {\n if (!customElements.get(tag)) customElements.define(tag, correctionByTag.get(tag) ?? ctor);\n}\n\n// The correction-only controls, which replace no standard tag.\nfor (const { tag, ctor } of qtiCorrectionElements) {\n if (!customElements.get(tag)) customElements.define(tag, ctor);\n}\n\nexport * from '@qti-components/corrections';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCO,IAAM,wBAAwB;EACnC,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,mBAAmB,MAAM,yBAAwB;EACxD,EAAE,KAAK,YAAY,MAAM,kBAAiB;EAC1C,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,kCAAkC,MAAM,4BAA2B;EAC1E,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,YAAY,MAAM,kBAAiB;EAC1C,EAAE,KAAK,uBAAuB,MAAM,4BAA2B;EAC/D,EAAE,KAAK,6BAA6B,MAAM,kCAAiC;EAC3E,EAAE,KAAK,0BAA0B,MAAM,+BAA8B;EACrE,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,6BAA6B,MAAM,iCAAgC;EAC1E,EAAE,KAAK,qCAAqC,MAAM,yCAAwC;EAC1F,EAAE,KAAK,qCAAqC,MAAM,wCAAuC;EACzF,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,2BAA2B,MAAM,gCAA+B;EACvE,EAAE,KAAK,2BAA2B,MAAM,gCAA+B;EACvE,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,yBAAyB,MAAM,8BAA6B;EACnE,EAAE,KAAK,yBAAyB,MAAM,8BAA6B;EACnE,EAAE,KAAK,mCAAmC,MAAM,uCAAsC;EACtF,EAAE,KAAK,gCAAgC,MAAM,oCAAmC;EAChF,EAAE,KAAK,0BAA0B,MAAM,+BAA8B;EACrE,EAAE,KAAK,8BAA8B,MAAM,kCAAiC;EAC5E,EAAE,KAAK,gBAAgB,MAAM,qBAAoB;EACjD,EAAE,KAAK,sBAAsB,MAAM,2BAA0B;EAC7D,EAAE,KAAK,eAAe,MAAM,qBAAoB;EAChD,EAAE,KAAK,gCAAgC,MAAM,oCAAmC;EAChF,EAAE,KAAK,qBAAqB,MAAM,0BAAyB;;;;ACjC7D,IAAM,mBAAmB;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAIA,IAAM,kBAAkB,IAAI;AAAA,EAC1B,sBAAsB,IAAI,CAAC,EAAE,KAAK,KAAK,MAAM,CAAC,KAAK,IAAI,CAAC;AAC1D;AAYA,IAAM,eAAe,sBAClB,OAAO,CAAC,EAAE,KAAK,KAAK,MAAM;AACzB,QAAM,aAAa,eAAe,IAAI,GAAG;AACzC,SAAO,eAAe,UAAa,eAAe;AACpD,CAAC,EACA,IAAI,CAAC,EAAE,IAAI,MAAM,GAAG;AAEvB,IAAI,aAAa,SAAS,GAAG;AAC3B,UAAQ;AAAA,IACN,yCAAyC,aAAa,MAAM,6GAEvD,aAAa,KAAK,IAAI,CAAC;AAAA,EAE9B;AACF;AAEA,WAAW,EAAE,KAAK,KAAK,KAAK,kBAAkB;AAC5C,MAAI,CAAC,eAAe,IAAI,GAAG,EAAG,gBAAe,OAAO,KAAK,gBAAgB,IAAI,GAAG,KAAK,IAAI;AAC3F;AAGA,WAAW,EAAE,KAAK,KAAK,KAAK,uBAAuB;AACjD,MAAI,CAAC,eAAe,IAAI,GAAG,EAAG,gBAAe,OAAO,KAAK,IAAI;AAC/D;","names":[]}
@@ -1,20 +1,12 @@
1
- import { b as ItemContext, h as VariableValue, R as ResponseInteraction, g as ResponseVariable, c as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './item.types.d-B55QkJ92.js';
1
+ 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';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement, PropertyValues, CSSResultGroup, PropertyValueMap } from 'lit';
4
+ import { g as VariableValue, R as ResponseInteraction, f as ResponseVariable, b as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './variables.d-DWHlTszN.js';
5
+ import { I as ItemContext } from './item.types.d-Zc6ZQDhu.js';
4
6
  import { a as RegisteredInteraction } from './interaction.interface.d-CvjHM2bi.js';
5
- import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-wMYNVkkj.js';
6
- import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
7
+ import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-CT0W-8Gm.js';
8
+ import { b as QtiRuleBase } from './qti-rule-base.d-CeKP0Ooi.js';
7
9
 
8
- /**
9
- * @summary The qti-assessment-item element contains all the other QTI 3 item structures.
10
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.dltnnj87l0yj
11
- *
12
- * @dependency qti-feedback
13
- * @dependency qti-responseprocessing
14
- *
15
- * @event qti-item-context-updated - Emitted when through a user action the itemContext is updated,
16
- * typically on interaction with the interactions, or calling response processing.
17
- */
18
10
  declare class QtiAssessmentItem extends LitElement {
19
11
  #private;
20
12
  identifier: string;
@@ -57,6 +49,16 @@ declare class QtiAssessmentItem extends LitElement {
57
49
  render(): lit.TemplateResult<1>;
58
50
  connectedCallback(): void;
59
51
  disconnectedCallback(): void;
52
+ /**
53
+ * Scores the attempt. The item does not score itself: its response processing does, like a
54
+ * backend, and sends the outcomes back in `qc-item-set-outcomes`, which the item applies in one
55
+ * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
56
+ * numAttempts) and hands the new count to the run, whose rules may read it. Without response
57
+ * processing the item only counts the attempt. A run that throws still counts the attempt and applies
58
+ * no outcomes.
59
+ *
60
+ * @returns whether the item has response processing.
61
+ */
60
62
  processResponse(countNumAttempts?: boolean, reportValidityAfterScoring?: boolean): boolean;
61
63
  resetResponses(): void;
62
64
  protected getResponse(identifier: string): Readonly<ResponseVariable>;
@@ -108,7 +110,7 @@ declare global {
108
110
  declare module '../../public-events' {
109
111
  interface PublicItemEventMap {
110
112
  /** The item rendered: its interactions are in the DOM and its validity is known. */
111
- 'cito-item-rendered': CustomEvent<QtiAssessmentItem>;
113
+ 'qc-item-rendered': CustomEvent<QtiAssessmentItem>;
112
114
  }
113
115
  }
114
116
 
@@ -250,9 +252,19 @@ declare global {
250
252
  }
251
253
  }
252
254
 
255
+ /**
256
+ * Block feedback: shown or hidden by the outcome it is bound to.
257
+ *
258
+ * @slot - The feedback content.
259
+ *
260
+ * @csspart feedback - The feedback box.
261
+ */
253
262
  declare class QtiFeedbackBlock extends QtiFeedback {
254
263
  static styles: lit.CSSResult;
255
264
  render(): lit.TemplateResult<1>;
265
+ /** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
266
+ protected feedbackShowing(): boolean;
267
+ protected feedbackHiding(): boolean;
256
268
  connectedCallback(): void;
257
269
  }
258
270
  declare global {
@@ -261,9 +273,19 @@ declare global {
261
273
  }
262
274
  }
263
275
 
276
+ /**
277
+ * Inline feedback: shown or hidden by the outcome it is bound to.
278
+ *
279
+ * @slot - The feedback content.
280
+ *
281
+ * @csspart feedback - The feedback box.
282
+ */
264
283
  declare class QtiFeedbackInline extends QtiFeedback {
265
284
  static styles: lit.CSSResult;
266
285
  render: () => lit.TemplateResult<1>;
286
+ /** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
287
+ protected feedbackShowing(): boolean;
288
+ protected feedbackHiding(): boolean;
267
289
  connectedCallback(): void;
268
290
  }
269
291
  declare global {
@@ -280,7 +302,8 @@ declare global {
280
302
  *
281
303
  * @slot - item body content.
282
304
  * @slot qti-rubric-block - the qti rubric block is placed above the item
283
- * @part qti-rubric-block - the qti rubric block part
305
+ *
306
+ * @csspart rubrics - The rubric-block slot (was `qti-rubric-blocks`).
284
307
  */
285
308
  declare class QtiItemBody extends LitElement {
286
309
  static styles: CSSResultGroup;
@@ -292,11 +315,21 @@ declare global {
292
315
  }
293
316
  }
294
317
 
318
+ /**
319
+ * Modal feedback: a dialog opened by the outcome it is bound to.
320
+ *
321
+ * @slot - The feedback content.
322
+ *
323
+ * @csspart feedback - The feedback box (the dialog).
324
+ */
295
325
  declare class QtiModalFeedback extends QtiFeedback {
296
326
  static styles: lit.CSSResult;
297
327
  render(): lit.TemplateResult<1>;
298
328
  openFeedback(): void;
299
329
  closeFeedback(): void;
330
+ /** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
331
+ protected feedbackShowing(): boolean;
332
+ protected feedbackHiding(): boolean;
300
333
  connectedCallback(): void;
301
334
  protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
302
335
  }
@@ -352,10 +385,26 @@ declare global {
352
385
  }
353
386
  }
354
387
 
388
+ /**
389
+ * Response processing as the item's own backend: it reads the item context, runs its rules once and
390
+ * sends the outcomes and the attempt count back in one `qc-item-set-outcomes`. The item applies
391
+ * them; a host that scores elsewhere sends the same event instead.
392
+ */
355
393
  declare class QtiResponseProcessing extends LitElement {
394
+ #private;
356
395
  static styles: lit.CSSResult[];
396
+ constructor();
357
397
  render(): lit.TemplateResult<1>;
358
- process(): void;
398
+ /**
399
+ * Scores the attempt on the copy: sets `numAttempts` to the count the item hands over, resets a
400
+ * non-adaptive item's outcomes to their defaults (QTI info model §2.5), runs the rules and sends
401
+ * every outcome and `numAttempts` in one `qc-item-set-outcomes`. The item applies them and publishes, which gives this element a
402
+ * fresh copy. A rule that throws ends the run and the error propagates; nothing is sent, and the
403
+ * run's writes stay in the copy until the item's next update.
404
+ */
405
+ processResponse({ numAttempts }: {
406
+ numAttempts: number;
407
+ }): void;
359
408
  firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
360
409
  }
361
410
  declare global {
@@ -467,60 +516,4 @@ declare global {
467
516
  }
468
517
  }
469
518
 
470
- interface OutcomeChangedDetails {
471
- item: string;
472
- outcomeIdentifier: string;
473
- value: Readonly<string | string[]>;
474
- }
475
- type InteractionChangedDetails = ResponseInteraction & {
476
- item: string;
477
- };
478
-
479
- /**
480
- * The public events of the item. The name tells you it is public: everything declared here starts
481
- * with `cito-`; every other event is internal plumbing and may change in any release.
482
- *
483
- * Requests are verbs, notifications are past tense. All bubble and are composed.
484
- *
485
- * `deprecated` is the name the event had before it became public. `dispatchPublic` sends and
486
- * `listenPublic` handles both until the next major, then the field goes.
487
- */
488
- interface PublicEventDeclaration {
489
- kind: 'request' | 'notification';
490
- scope: 'test' | 'item';
491
- /** The name before it was public. Dispatched and handled alongside the new one. */
492
- deprecated?: string;
493
- }
494
- interface RubricPlacement {
495
- className: string;
496
- element: Element;
497
- }
498
- interface PublicItemEventMap {
499
- 'cito-item-response-changed': CustomEvent<InteractionChangedDetails>;
500
- 'cito-item-outcome-changed': CustomEvent<OutcomeChangedDetails>;
501
- /** Cancelable: `preventDefault()` keeps the rubric block where it is. */
502
- 'cito-item-rubric-placement': CustomEvent<RubricPlacement>;
503
- }
504
- type PublicItemEventName = keyof PublicItemEventMap;
505
- declare const PUBLIC_ITEM_EVENTS: Record<PublicItemEventName, PublicEventDeclaration>;
506
- declare global {
507
- interface HTMLElementEventMap extends PublicItemEventMap {
508
- }
509
- }
510
- /**
511
- * Dispatch `name` and its deprecated name with the same `detail` object, new name first. Returns
512
- * `false` when a listener of either cancelled the event. The detail is always an object.
513
- * Shared by the item and test tiers; use `dispatchPublic` (item) or the test's own wrapper.
514
- */
515
- declare function dispatchDeclared(target: EventTarget, declarations: Record<string, PublicEventDeclaration>, name: string, detail: unknown, cancelable?: boolean): boolean;
516
- /**
517
- * Listen for `name` and its deprecated name. `dispatchDeclared` sends the old name straight after
518
- * the new one, synchronously, with the same `detail`: that one is skipped, so the handler runs
519
- * once. A host that sends only the old name is handled too, and warned once per name in the
520
- * console: only a sender outside our own components gets here without the new name before it.
521
- */
522
- declare function listenDeclared(target: EventTarget, declarations: Record<string, PublicEventDeclaration>, name: string, handler: (e: Event) => void): void;
523
- declare function dispatchPublic<K extends PublicItemEventName>(target: EventTarget, name: K, detail: PublicItemEventMap[K] extends CustomEvent<infer D> ? D : never, cancelable?: boolean): boolean;
524
- declare function listenPublic<K extends PublicItemEventName>(target: EventTarget, name: K, handler: (e: PublicItemEventMap[K]) => void): void;
525
-
526
- export { PUBLIC_ITEM_EVENTS, type PublicEventDeclaration, type PublicItemEventMap, type PublicItemEventName, QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing, type RubricPlacement, dispatchDeclared, dispatchPublic, listenDeclared, listenPublic };
519
+ export { QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing };