@citolab/qti-components 10.0.0-next.0 → 10.0.0-next.10

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 (64) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +1975 -361
  3. package/dist/base.d.ts +10 -10
  4. package/dist/base.js +7 -1
  5. package/dist/{chunk-F7R7GSWL.js → chunk-3TUGZHKB.js} +3 -3
  6. package/dist/{chunk-CNFVA3AA.js → chunk-AHULN3UB.js} +390 -243
  7. package/dist/chunk-AHULN3UB.js.map +1 -0
  8. package/dist/{chunk-GPNWMLLA.js → chunk-CQ3WU35R.js} +2 -2
  9. package/dist/{chunk-3BAQWO5C.js → chunk-LCGPLQLE.js} +40 -4
  10. package/dist/chunk-LCGPLQLE.js.map +1 -0
  11. package/dist/{chunk-ACRN7YJM.js → chunk-M7X6TWSX.js} +2 -2
  12. package/dist/{chunk-WNAOVXXN.js → chunk-Q3C7XFVS.js} +2 -2
  13. package/dist/chunk-QVZLJY75.js +7 -0
  14. package/dist/chunk-QVZLJY75.js.map +1 -0
  15. package/dist/{chunk-EUKU5QKV.js → chunk-RRMCWCSA.js} +2520 -2071
  16. package/dist/chunk-RRMCWCSA.js.map +1 -0
  17. package/dist/{chunk-SVYHZIJ7.js → chunk-RWMY7KRT.js} +2 -2
  18. package/dist/{chunk-R7MMMDP7.js → chunk-T7YSBBAA.js} +56 -2
  19. package/dist/chunk-T7YSBBAA.js.map +1 -0
  20. package/dist/{chunk-QD3Y6UK3.js → chunk-WPILS3CW.js} +2 -2
  21. package/dist/{chunk-AWTQKBC4.js → chunk-YOCOLMGB.js} +40 -5
  22. package/dist/{chunk-AWTQKBC4.js.map → chunk-YOCOLMGB.js.map} +1 -1
  23. package/dist/{chunk-EPSUZIWL.js → chunk-YYZCTIZY.js} +6 -6
  24. package/dist/{computed.types.d-gJrBeUMG.d.ts → computed.types.d-IXACuBr7.d.ts} +10 -1
  25. package/dist/corrections.d.ts +9 -9
  26. package/dist/corrections.js +8 -8
  27. package/dist/elements.d.ts +2 -2
  28. package/dist/elements.js +3 -3
  29. package/dist/index.d.ts +11 -11
  30. package/dist/index.js +41 -19
  31. package/dist/interactions.d.ts +4 -4
  32. package/dist/interactions.js +7 -3
  33. package/dist/item.css +2 -1
  34. package/dist/item.d.ts +4 -4
  35. package/dist/item.js +4 -4
  36. package/dist/{item.types.d-B55QkJ92.d.ts → item.types.d-DuVR0ZVK.d.ts} +7 -1
  37. package/dist/loader.d.ts +2 -2
  38. package/dist/processing.d.ts +10 -3
  39. package/dist/processing.js +3 -3
  40. package/dist/qti-components-jsx.d.ts +1065 -774
  41. package/dist/{qti-condition-expression.d-L7yb3Rzy.d.ts → qti-condition-expression.d-B-T1NNl0.d.ts} +1 -1
  42. package/dist/{qti-expression.d-CuaLjZ6g.d.ts → qti-expression.d-B-Cfbqlb.d.ts} +8 -1
  43. package/dist/{qti-feedback.d-wMYNVkkj.d.ts → qti-feedback.d-DbzPSJuK.d.ts} +1 -1
  44. package/dist/{qti-item.d-DgC1AQbY.d.ts → qti-item.d-B1gffYCL.d.ts} +1 -1
  45. package/dist/{qti-test.d-_THYXPzd.d.ts → qti-test.d-D-RYWphm.d.ts} +242 -99
  46. package/dist/{qti-text-entry-interaction.d-q8u5BiVK.d.ts → qti-text-entry-interaction.d-utFyp1DH.d.ts} +28 -18
  47. package/dist/{interaction.d-g6XG0T0Z.d.ts → record.d-wB9uYs-j.d.ts} +34 -2
  48. package/dist/{session.context.d-D5080LVx.d.ts → session.context.d-DW09Lrie.d.ts} +7 -1
  49. package/dist/test.d.ts +117 -9
  50. package/dist/test.js +23 -11
  51. package/package.json +9 -9
  52. package/dist/chunk-3BAQWO5C.js.map +0 -1
  53. package/dist/chunk-CNFVA3AA.js.map +0 -1
  54. package/dist/chunk-EUKU5QKV.js.map +0 -1
  55. package/dist/chunk-R7MMMDP7.js.map +0 -1
  56. package/dist/chunk-ZP6QQYSU.js +0 -7
  57. package/dist/chunk-ZP6QQYSU.js.map +0 -1
  58. /package/dist/{chunk-F7R7GSWL.js.map → chunk-3TUGZHKB.js.map} +0 -0
  59. /package/dist/{chunk-GPNWMLLA.js.map → chunk-CQ3WU35R.js.map} +0 -0
  60. /package/dist/{chunk-ACRN7YJM.js.map → chunk-M7X6TWSX.js.map} +0 -0
  61. /package/dist/{chunk-WNAOVXXN.js.map → chunk-Q3C7XFVS.js.map} +0 -0
  62. /package/dist/{chunk-SVYHZIJ7.js.map → chunk-RWMY7KRT.js.map} +0 -0
  63. /package/dist/{chunk-QD3Y6UK3.js.map → chunk-WPILS3CW.js.map} +0 -0
  64. /package/dist/{chunk-EPSUZIWL.js.map → chunk-YYZCTIZY.js.map} +0 -0
@@ -61,6 +61,8 @@ import type {
61
61
  QtiMediaInteraction,
62
62
  QtiOrderInteraction,
63
63
  QtiPortableCustomInteraction,
64
+ inlineScriptText,
65
+ inlineStyleText,
64
66
  QtiPortableCustomInteractionTest,
65
67
  QtiPositionObjectInteraction,
66
68
  QtiPositionObjectStage,
@@ -73,8 +75,11 @@ import type {
73
75
  QtiAssessmentTest,
74
76
  QtiAssessmentItemRef,
75
77
  QtiAssessmentSection,
78
+ QtiBranchRule,
76
79
  QtiItemSessionControl,
80
+ QtiNumberPresented,
77
81
  QtiNumberSelected,
82
+ QtiPreCondition,
78
83
  QtiOutcomeProcessing,
79
84
  QtiOutcomeProcessingProcessor,
80
85
  QtiTestFeedback,
@@ -83,33 +88,37 @@ import type {
83
88
  QtiTestVariablesExpression,
84
89
  TestContainer,
85
90
  QtiTest,
86
- TestCheckItem,
87
91
  TestEndAttempt,
88
92
  TestItemLink,
89
- TestTtsStop,
90
- TestTtsResume,
91
- TestTtsPrev,
92
- TestTtsPlay,
93
- TestTtsPick,
94
- TestTtsPause,
95
- TestTtsNext,
96
- TestItemToSpeech,
97
- SpeechState,
98
- ttsContext,
99
93
  TestNavigation,
100
94
  TestNext,
101
- TestPagingButtonsStamp,
102
95
  TestPrev,
96
+ TestSectionLink,
97
+ TestBookmark,
98
+ bookmarkedItems,
99
+ TestCheckItem,
103
100
  TestPrintContext,
104
101
  TestPrintVariables,
102
+ formatVariableValue,
105
103
  TestScoringButtons,
106
104
  TestScoringFeedback,
107
- TestSectionButtonsStamp,
108
- TestSectionLink,
109
105
  TestStamp,
106
+ TestSubmit,
110
107
  TestView,
111
108
  TestViewToggle,
112
109
  } from "./test.js";
110
+ import type {
111
+ TestTtsStop,
112
+ TestTtsResume,
113
+ TestTtsPrev,
114
+ TestTtsPlay,
115
+ TestTtsPick,
116
+ TestTtsPause,
117
+ TestTtsNext,
118
+ TestItemToSpeech,
119
+ SpeechState,
120
+ ttsContext,
121
+ } from "./tts.js";
113
122
  import type {
114
123
  QtiAnd,
115
124
  qtiAndMixin,
@@ -2166,6 +2175,14 @@ casts, rather than pretending at an encapsulation the type system was the only t
2166
2175
  };
2167
2176
 
2168
2177
  export type QtiGraphicGapMatchInteractionProps = {
2178
+ /** A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
2179
+ `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
2180
+ beat the percentage box from `positionShapes` as soon as the graphic rendered narrower than its
2181
+ declared width: a 275px chip kept a 17% hotspot at 275px over a 482px map. Chips are sized to
2182
+ their hotspots through `--qti-graphic-scale` instead. */
2183
+ autoSizeDropzones?:
2184
+ | QtiGraphicGapMatchInteraction["autoSizeDropzones"]
2185
+ | undefined;
2169
2186
  /** */
2170
2187
  allowReorder?: QtiGraphicGapMatchInteraction["allowReorder"] | undefined;
2171
2188
  /** */
@@ -2179,6 +2196,14 @@ export type QtiGraphicGapMatchInteractionProps = {
2179
2196
  };
2180
2197
 
2181
2198
  export type QtiGraphicGapMatchInteractionSolidJsProps = {
2199
+ /** A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
2200
+ `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
2201
+ beat the percentage box from `positionShapes` as soon as the graphic rendered narrower than its
2202
+ declared width: a 275px chip kept a 17% hotspot at 275px over a 482px map. Chips are sized to
2203
+ their hotspots through `--qti-graphic-scale` instead. */
2204
+ "prop:autoSizeDropzones"?:
2205
+ | QtiGraphicGapMatchInteraction["autoSizeDropzones"]
2206
+ | undefined;
2182
2207
  /** */
2183
2208
  "prop:allowReorder"?:
2184
2209
  | QtiGraphicGapMatchInteraction["allowReorder"]
@@ -3148,11 +3173,11 @@ export type QtiPortableCustomInteractionProps = {
3148
3173
  | undefined;
3149
3174
  /** */
3150
3175
  requireShimJson?: QtiPortableCustomInteraction["requireShimJson"] | undefined;
3151
- /** */
3176
+ /** A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts). */
3152
3177
  "data-require-js-url"?:
3153
3178
  | QtiPortableCustomInteraction["requireJsUrl"]
3154
3179
  | undefined;
3155
- /** */
3180
+ /** A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts). */
3156
3181
  requireJsUrl?: QtiPortableCustomInteraction["requireJsUrl"] | undefined;
3157
3182
  /** */
3158
3183
  "data-base-url"?: QtiPortableCustomInteraction["baseUrl"] | undefined;
@@ -3257,11 +3282,11 @@ export type QtiPortableCustomInteractionSolidJsProps = {
3257
3282
  "prop:requireShimJson"?:
3258
3283
  | QtiPortableCustomInteraction["requireShimJson"]
3259
3284
  | undefined;
3260
- /** */
3285
+ /** A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts). */
3261
3286
  "attr:data-require-js-url"?:
3262
3287
  | QtiPortableCustomInteraction["requireJsUrl"]
3263
3288
  | undefined;
3264
- /** */
3289
+ /** A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts). */
3265
3290
  "prop:requireJsUrl"?:
3266
3291
  | QtiPortableCustomInteraction["requireJsUrl"]
3267
3292
  | undefined;
@@ -3376,11 +3401,11 @@ export type QtiPortableCustomInteractionTestProps = {
3376
3401
  requireShimJson?:
3377
3402
  | QtiPortableCustomInteractionTest["requireShimJson"]
3378
3403
  | undefined;
3379
- /** */
3404
+ /** A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts). */
3380
3405
  "data-require-js-url"?:
3381
3406
  | QtiPortableCustomInteractionTest["requireJsUrl"]
3382
3407
  | undefined;
3383
- /** */
3408
+ /** A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts). */
3384
3409
  requireJsUrl?: QtiPortableCustomInteractionTest["requireJsUrl"] | undefined;
3385
3410
  /** */
3386
3411
  "data-base-url"?: QtiPortableCustomInteractionTest["baseUrl"] | undefined;
@@ -3487,11 +3512,11 @@ export type QtiPortableCustomInteractionTestSolidJsProps = {
3487
3512
  "prop:requireShimJson"?:
3488
3513
  | QtiPortableCustomInteractionTest["requireShimJson"]
3489
3514
  | undefined;
3490
- /** */
3515
+ /** A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts). */
3491
3516
  "attr:data-require-js-url"?:
3492
3517
  | QtiPortableCustomInteractionTest["requireJsUrl"]
3493
3518
  | undefined;
3494
- /** */
3519
+ /** A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts). */
3495
3520
  "prop:requireJsUrl"?:
3496
3521
  | QtiPortableCustomInteractionTest["requireJsUrl"]
3497
3522
  | undefined;
@@ -4275,6 +4300,21 @@ export type QtiAssessmentSectionSolidJsProps = {
4275
4300
  textContent?: string | number | undefined;
4276
4301
  };
4277
4302
 
4303
+ export type QtiBranchRuleProps = {
4304
+ /** Required. The identifier of an item ref, section or test part ahead of the parent, or one of the reserved targets `EXIT_SECTION`, `EXIT_TESTPART`, `EXIT_TEST`. */
4305
+ target?: QtiBranchRule["target"] | undefined;
4306
+ };
4307
+
4308
+ export type QtiBranchRuleSolidJsProps = {
4309
+ /** Required. The identifier of an item ref, section or test part ahead of the parent, or one of the reserved targets `EXIT_SECTION`, `EXIT_TESTPART`, `EXIT_TEST`. */
4310
+ "prop:target"?: QtiBranchRule["target"] | undefined;
4311
+
4312
+ /** Set the innerHTML of the element */
4313
+ innerHTML?: string | undefined;
4314
+ /** Set the textContent of the element */
4315
+ textContent?: string | number | undefined;
4316
+ };
4317
+
4278
4318
  export type QtiItemSessionControlProps = {
4279
4319
  /** */
4280
4320
  "max-attempts"?: QtiItemSessionControl["maxAttempts"] | undefined;
@@ -4355,6 +4395,21 @@ export type QtiItemSessionControlSolidJsProps = {
4355
4395
  textContent?: string | number | undefined;
4356
4396
  };
4357
4397
 
4398
+ export type QtiNumberPresentedProps = {
4399
+ /** */
4400
+ getVariables?: QtiNumberPresented["getVariables"] | undefined;
4401
+ };
4402
+
4403
+ export type QtiNumberPresentedSolidJsProps = {
4404
+ /** */
4405
+ "prop:getVariables"?: QtiNumberPresented["getVariables"] | undefined;
4406
+
4407
+ /** Set the innerHTML of the element */
4408
+ innerHTML?: string | undefined;
4409
+ /** Set the textContent of the element */
4410
+ textContent?: string | number | undefined;
4411
+ };
4412
+
4358
4413
  export type QtiNumberSelectedProps = {
4359
4414
  /** */
4360
4415
  getVariables?: QtiNumberSelected["getVariables"] | undefined;
@@ -4370,6 +4425,15 @@ export type QtiNumberSelectedSolidJsProps = {
4370
4425
  textContent?: string | number | undefined;
4371
4426
  };
4372
4427
 
4428
+ export type QtiPreConditionProps = {};
4429
+
4430
+ export type QtiPreConditionSolidJsProps = {
4431
+ /** Set the innerHTML of the element */
4432
+ innerHTML?: string | undefined;
4433
+ /** Set the textContent of the element */
4434
+ textContent?: string | number | undefined;
4435
+ };
4436
+
4373
4437
  export type QtiOutcomeProcessingProps = {};
4374
4438
 
4375
4439
  export type QtiOutcomeProcessingSolidJsProps = {
@@ -4380,6 +4444,8 @@ export type QtiOutcomeProcessingSolidJsProps = {
4380
4444
  };
4381
4445
 
4382
4446
  export type QtiTestFeedbackProps = {
4447
+ /** When the feedback may be shown: at the end of the test (`atEnd`), or while it runs (`during`). */
4448
+ access?: QtiTestFeedback["access"] | undefined;
4383
4449
  /** */
4384
4450
  "show-hide"?: QtiTestFeedback["showHide"] | undefined;
4385
4451
  /** */
@@ -4395,6 +4461,8 @@ export type QtiTestFeedbackProps = {
4395
4461
  };
4396
4462
 
4397
4463
  export type QtiTestFeedbackSolidJsProps = {
4464
+ /** When the feedback may be shown: at the end of the test (`atEnd`), or while it runs (`during`). */
4465
+ "prop:access"?: QtiTestFeedback["access"] | undefined;
4398
4466
  /** */
4399
4467
  "attr:show-hide"?: QtiTestFeedback["showHide"] | undefined;
4400
4468
  /** */
@@ -4557,15 +4625,6 @@ object, do not mutate it: an in-place change does not notify the components insi
4557
4625
  textContent?: string | number | undefined;
4558
4626
  };
4559
4627
 
4560
- export type TestCheckItemProps = {};
4561
-
4562
- export type TestCheckItemSolidJsProps = {
4563
- /** Set the innerHTML of the element */
4564
- innerHTML?: string | undefined;
4565
- /** Set the textContent of the element */
4566
- textContent?: string | number | undefined;
4567
- };
4568
-
4569
4628
  export type TestEndAttemptProps = {
4570
4629
  /** */
4571
4630
  disabled?: TestEndAttempt["_internalDisabled"] | undefined;
@@ -4604,166 +4663,6 @@ export type TestItemLinkSolidJsProps = {
4604
4663
  textContent?: string | number | undefined;
4605
4664
  };
4606
4665
 
4607
- export type TestItemToSpeechProps = {
4608
- /** Fallback language when neither the item content nor the document declares one. */
4609
- language?: TestItemToSpeech["language"] | undefined;
4610
- /** */
4611
- _ttsContext?: TestItemToSpeech["_ttsContext"] | undefined;
4612
- };
4613
-
4614
- export type TestItemToSpeechSolidJsProps = {
4615
- /** Fallback language when neither the item content nor the document declares one. */
4616
- "prop:language"?: TestItemToSpeech["language"] | undefined;
4617
- /** */
4618
- "prop:_ttsContext"?: TestItemToSpeech["_ttsContext"] | undefined;
4619
-
4620
- /** Set the innerHTML of the element */
4621
- innerHTML?: string | undefined;
4622
- /** Set the textContent of the element */
4623
- textContent?: string | number | undefined;
4624
- };
4625
-
4626
- export type TestTtsPlayProps = {
4627
- /** Accessible name of the button while speech is playing; see `label`. */
4628
- "pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
4629
- /** Accessible name of the button while speech is playing; see `label`. */
4630
- pauseLabel?: TestTtsPlay["pauseLabel"] | undefined;
4631
- /** Accessible name of the button. Without it the default icon carries an English name, and
4632
- slotted content names the button by its text; set it when you slot an icon of your own,
4633
- which has no text to be named by. */
4634
- label?: TestTtsPlay["label"] | undefined;
4635
- };
4636
-
4637
- export type TestTtsPlaySolidJsProps = {
4638
- /** Accessible name of the button while speech is playing; see `label`. */
4639
- "attr:pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
4640
- /** Accessible name of the button while speech is playing; see `label`. */
4641
- "prop:pauseLabel"?: TestTtsPlay["pauseLabel"] | undefined;
4642
- /** Accessible name of the button. Without it the default icon carries an English name, and
4643
- slotted content names the button by its text; set it when you slot an icon of your own,
4644
- which has no text to be named by. */
4645
- "prop:label"?: TestTtsPlay["label"] | undefined;
4646
-
4647
- /** Set the innerHTML of the element */
4648
- innerHTML?: string | undefined;
4649
- /** Set the textContent of the element */
4650
- textContent?: string | number | undefined;
4651
- };
4652
-
4653
- export type TestTtsPauseProps = {
4654
- /** Accessible name of the button. Without it the default icon carries an English name, and
4655
- slotted content names the button by its text; set it when you slot an icon of your own,
4656
- which has no text to be named by. */
4657
- label?: TestTtsPause["label"] | undefined;
4658
- };
4659
-
4660
- export type TestTtsPauseSolidJsProps = {
4661
- /** Accessible name of the button. Without it the default icon carries an English name, and
4662
- slotted content names the button by its text; set it when you slot an icon of your own,
4663
- which has no text to be named by. */
4664
- "prop:label"?: TestTtsPause["label"] | undefined;
4665
-
4666
- /** Set the innerHTML of the element */
4667
- innerHTML?: string | undefined;
4668
- /** Set the textContent of the element */
4669
- textContent?: string | number | undefined;
4670
- };
4671
-
4672
- export type TestTtsResumeProps = {
4673
- /** Accessible name of the button. Without it the default icon carries an English name, and
4674
- slotted content names the button by its text; set it when you slot an icon of your own,
4675
- which has no text to be named by. */
4676
- label?: TestTtsResume["label"] | undefined;
4677
- };
4678
-
4679
- export type TestTtsResumeSolidJsProps = {
4680
- /** Accessible name of the button. Without it the default icon carries an English name, and
4681
- slotted content names the button by its text; set it when you slot an icon of your own,
4682
- which has no text to be named by. */
4683
- "prop:label"?: TestTtsResume["label"] | undefined;
4684
-
4685
- /** Set the innerHTML of the element */
4686
- innerHTML?: string | undefined;
4687
- /** Set the textContent of the element */
4688
- textContent?: string | number | undefined;
4689
- };
4690
-
4691
- export type TestTtsStopProps = {
4692
- /** Accessible name of the button. Without it the default icon carries an English name, and
4693
- slotted content names the button by its text; set it when you slot an icon of your own,
4694
- which has no text to be named by. */
4695
- label?: TestTtsStop["label"] | undefined;
4696
- };
4697
-
4698
- export type TestTtsStopSolidJsProps = {
4699
- /** Accessible name of the button. Without it the default icon carries an English name, and
4700
- slotted content names the button by its text; set it when you slot an icon of your own,
4701
- which has no text to be named by. */
4702
- "prop:label"?: TestTtsStop["label"] | undefined;
4703
-
4704
- /** Set the innerHTML of the element */
4705
- innerHTML?: string | undefined;
4706
- /** Set the textContent of the element */
4707
- textContent?: string | number | undefined;
4708
- };
4709
-
4710
- export type TestTtsPrevProps = {
4711
- /** Accessible name of the button. Without it the default icon carries an English name, and
4712
- slotted content names the button by its text; set it when you slot an icon of your own,
4713
- which has no text to be named by. */
4714
- label?: TestTtsPrev["label"] | undefined;
4715
- };
4716
-
4717
- export type TestTtsPrevSolidJsProps = {
4718
- /** Accessible name of the button. Without it the default icon carries an English name, and
4719
- slotted content names the button by its text; set it when you slot an icon of your own,
4720
- which has no text to be named by. */
4721
- "prop:label"?: TestTtsPrev["label"] | undefined;
4722
-
4723
- /** Set the innerHTML of the element */
4724
- innerHTML?: string | undefined;
4725
- /** Set the textContent of the element */
4726
- textContent?: string | number | undefined;
4727
- };
4728
-
4729
- export type TestTtsNextProps = {
4730
- /** Accessible name of the button. Without it the default icon carries an English name, and
4731
- slotted content names the button by its text; set it when you slot an icon of your own,
4732
- which has no text to be named by. */
4733
- label?: TestTtsNext["label"] | undefined;
4734
- };
4735
-
4736
- export type TestTtsNextSolidJsProps = {
4737
- /** Accessible name of the button. Without it the default icon carries an English name, and
4738
- slotted content names the button by its text; set it when you slot an icon of your own,
4739
- which has no text to be named by. */
4740
- "prop:label"?: TestTtsNext["label"] | undefined;
4741
-
4742
- /** Set the innerHTML of the element */
4743
- innerHTML?: string | undefined;
4744
- /** Set the textContent of the element */
4745
- textContent?: string | number | undefined;
4746
- };
4747
-
4748
- export type TestTtsPickProps = {
4749
- /** Accessible name of the button. Without it the default icon carries an English name, and
4750
- slotted content names the button by its text; set it when you slot an icon of your own,
4751
- which has no text to be named by. */
4752
- label?: TestTtsPick["label"] | undefined;
4753
- };
4754
-
4755
- export type TestTtsPickSolidJsProps = {
4756
- /** Accessible name of the button. Without it the default icon carries an English name, and
4757
- slotted content names the button by its text; set it when you slot an icon of your own,
4758
- which has no text to be named by. */
4759
- "prop:label"?: TestTtsPick["label"] | undefined;
4760
-
4761
- /** Set the innerHTML of the element */
4762
- innerHTML?: string | undefined;
4763
- /** Set the textContent of the element */
4764
- textContent?: string | number | undefined;
4765
- };
4766
-
4767
4666
  export type TestNavigationProps = {
4768
4667
  /** */
4769
4668
  identifier?: TestNavigation["identifier"] | undefined;
@@ -4847,25 +4746,6 @@ export type TestNextSolidJsProps = {
4847
4746
  textContent?: string | number | undefined;
4848
4747
  };
4849
4748
 
4850
- export type TestPagingButtonsStampProps = {
4851
- /** */
4852
- myTemplate?: TestPagingButtonsStamp["myTemplate"] | undefined;
4853
- /** */
4854
- ariaLabel?: TestPagingButtonsStamp["ariaLabel"] | undefined;
4855
- };
4856
-
4857
- export type TestPagingButtonsStampSolidJsProps = {
4858
- /** */
4859
- "prop:myTemplate"?: TestPagingButtonsStamp["myTemplate"] | undefined;
4860
- /** */
4861
- "prop:ariaLabel"?: TestPagingButtonsStamp["ariaLabel"] | undefined;
4862
-
4863
- /** Set the innerHTML of the element */
4864
- innerHTML?: string | undefined;
4865
- /** Set the textContent of the element */
4866
- textContent?: string | number | undefined;
4867
- };
4868
-
4869
4749
  export type TestPrevProps = {
4870
4750
  /** */
4871
4751
  disabled?: TestPrev["_internalDisabled"] | undefined;
@@ -4893,14 +4773,18 @@ export type TestPrevSolidJsProps = {
4893
4773
  textContent?: string | number | undefined;
4894
4774
  };
4895
4775
 
4896
- export type TestPrintContextProps = {
4776
+ export type TestSectionLinkProps = {
4897
4777
  /** */
4898
- computedContext?: TestPrintContext["computedContext"] | undefined;
4778
+ "section-id"?: TestSectionLink["sectionId"] | undefined;
4779
+ /** */
4780
+ sectionId?: TestSectionLink["sectionId"] | undefined;
4899
4781
  };
4900
4782
 
4901
- export type TestPrintContextSolidJsProps = {
4783
+ export type TestSectionLinkSolidJsProps = {
4902
4784
  /** */
4903
- "prop:computedContext"?: TestPrintContext["computedContext"] | undefined;
4785
+ "attr:section-id"?: TestSectionLink["sectionId"] | undefined;
4786
+ /** */
4787
+ "prop:sectionId"?: TestSectionLink["sectionId"] | undefined;
4904
4788
 
4905
4789
  /** Set the innerHTML of the element */
4906
4790
  innerHTML?: string | undefined;
@@ -4908,14 +4792,22 @@ export type TestPrintContextSolidJsProps = {
4908
4792
  textContent?: string | number | undefined;
4909
4793
  };
4910
4794
 
4911
- export type TestPrintVariablesProps = {
4912
- /** */
4913
- computedContext?: TestPrintVariables["computedContext"] | undefined;
4795
+ export type TestBookmarkProps = {
4796
+ /** The item-ref identifier this button marks; without it, the item it is stamped into, or else the one on screen. */
4797
+ item?: TestBookmark["item"] | undefined;
4798
+ /** Reflected: the item on screen is bookmarked. */
4799
+ bookmarked?: TestBookmark["bookmarked"] | undefined;
4800
+ /** Reflected: there is no item on screen. */
4801
+ disabled?: TestBookmark["disabled"] | undefined;
4914
4802
  };
4915
4803
 
4916
- export type TestPrintVariablesSolidJsProps = {
4917
- /** */
4918
- "prop:computedContext"?: TestPrintVariables["computedContext"] | undefined;
4804
+ export type TestBookmarkSolidJsProps = {
4805
+ /** The item-ref identifier this button marks; without it, the item it is stamped into, or else the one on screen. */
4806
+ "prop:item"?: TestBookmark["item"] | undefined;
4807
+ /** Reflected: the item on screen is bookmarked. */
4808
+ "prop:bookmarked"?: TestBookmark["bookmarked"] | undefined;
4809
+ /** Reflected: there is no item on screen. */
4810
+ "prop:disabled"?: TestBookmark["disabled"] | undefined;
4919
4811
 
4920
4812
  /** Set the innerHTML of the element */
4921
4813
  innerHTML?: string | undefined;
@@ -4923,22 +4815,29 @@ export type TestPrintVariablesSolidJsProps = {
4923
4815
  textContent?: string | number | undefined;
4924
4816
  };
4925
4817
 
4926
- export type TestScoringButtonsProps = {
4927
- /** */
4928
- view?: TestScoringButtons["view"] | undefined;
4929
- /** */
4930
- disabled?: TestScoringButtons["disabled"] | undefined;
4931
- /** */
4932
- myTemplate?: TestScoringButtons["myTemplate"] | undefined;
4818
+ export type TestCheckItemProps = {
4819
+ /** The view to switch to after the attempt ended. */
4820
+ view?: TestCheckItem["view"] | undefined;
4933
4821
  };
4934
4822
 
4935
- export type TestScoringButtonsSolidJsProps = {
4936
- /** */
4937
- "prop:view"?: TestScoringButtons["view"] | undefined;
4823
+ export type TestCheckItemSolidJsProps = {
4824
+ /** The view to switch to after the attempt ended. */
4825
+ "prop:view"?: TestCheckItem["view"] | undefined;
4826
+
4827
+ /** Set the innerHTML of the element */
4828
+ innerHTML?: string | undefined;
4829
+ /** Set the textContent of the element */
4830
+ textContent?: string | number | undefined;
4831
+ };
4832
+
4833
+ export type TestPrintContextProps = {
4938
4834
  /** */
4939
- "prop:disabled"?: TestScoringButtons["disabled"] | undefined;
4835
+ computedContext?: TestPrintContext["computedContext"] | undefined;
4836
+ };
4837
+
4838
+ export type TestPrintContextSolidJsProps = {
4940
4839
  /** */
4941
- "prop:myTemplate"?: TestScoringButtons["myTemplate"] | undefined;
4840
+ "prop:computedContext"?: TestPrintContext["computedContext"] | undefined;
4942
4841
 
4943
4842
  /** Set the innerHTML of the element */
4944
4843
  innerHTML?: string | undefined;
@@ -4946,14 +4845,14 @@ export type TestScoringButtonsSolidJsProps = {
4946
4845
  textContent?: string | number | undefined;
4947
4846
  };
4948
4847
 
4949
- export type TestScoringFeedbackProps = {
4848
+ export type TestPrintVariablesProps = {
4950
4849
  /** */
4951
- view?: TestScoringFeedback["view"] | undefined;
4850
+ computedContext?: TestPrintVariables["computedContext"] | undefined;
4952
4851
  };
4953
4852
 
4954
- export type TestScoringFeedbackSolidJsProps = {
4853
+ export type TestPrintVariablesSolidJsProps = {
4955
4854
  /** */
4956
- "prop:view"?: TestScoringFeedback["view"] | undefined;
4855
+ "prop:computedContext"?: TestPrintVariables["computedContext"] | undefined;
4957
4856
 
4958
4857
  /** Set the innerHTML of the element */
4959
4858
  innerHTML?: string | undefined;
@@ -4961,18 +4860,22 @@ export type TestScoringFeedbackSolidJsProps = {
4961
4860
  textContent?: string | number | undefined;
4962
4861
  };
4963
4862
 
4964
- export type TestSectionButtonsStampProps = {
4863
+ export type TestScoringButtonsProps = {
4864
+ /** */
4865
+ view?: TestScoringButtons["view"] | undefined;
4965
4866
  /** */
4966
- myTemplate?: TestSectionButtonsStamp["myTemplate"] | undefined;
4867
+ disabled?: TestScoringButtons["disabled"] | undefined;
4967
4868
  /** */
4968
- ariaLabel?: TestSectionButtonsStamp["ariaLabel"] | undefined;
4869
+ myTemplate?: TestScoringButtons["myTemplate"] | undefined;
4969
4870
  };
4970
4871
 
4971
- export type TestSectionButtonsStampSolidJsProps = {
4872
+ export type TestScoringButtonsSolidJsProps = {
4873
+ /** */
4874
+ "prop:view"?: TestScoringButtons["view"] | undefined;
4972
4875
  /** */
4973
- "prop:myTemplate"?: TestSectionButtonsStamp["myTemplate"] | undefined;
4876
+ "prop:disabled"?: TestScoringButtons["disabled"] | undefined;
4974
4877
  /** */
4975
- "prop:ariaLabel"?: TestSectionButtonsStamp["ariaLabel"] | undefined;
4878
+ "prop:myTemplate"?: TestScoringButtons["myTemplate"] | undefined;
4976
4879
 
4977
4880
  /** Set the innerHTML of the element */
4978
4881
  innerHTML?: string | undefined;
@@ -4980,18 +4883,14 @@ export type TestSectionButtonsStampSolidJsProps = {
4980
4883
  textContent?: string | number | undefined;
4981
4884
  };
4982
4885
 
4983
- export type TestSectionLinkProps = {
4984
- /** */
4985
- "section-id"?: TestSectionLink["sectionId"] | undefined;
4886
+ export type TestScoringFeedbackProps = {
4986
4887
  /** */
4987
- sectionId?: TestSectionLink["sectionId"] | undefined;
4888
+ view?: TestScoringFeedback["view"] | undefined;
4988
4889
  };
4989
4890
 
4990
- export type TestSectionLinkSolidJsProps = {
4991
- /** */
4992
- "attr:section-id"?: TestSectionLink["sectionId"] | undefined;
4891
+ export type TestScoringFeedbackSolidJsProps = {
4993
4892
  /** */
4994
- "prop:sectionId"?: TestSectionLink["sectionId"] | undefined;
4893
+ "prop:view"?: TestScoringFeedback["view"] | undefined;
4995
4894
 
4996
4895
  /** Set the innerHTML of the element */
4997
4896
  innerHTML?: string | undefined;
@@ -5025,6 +4924,15 @@ When set to `true`, the available objects and properties (i.e.: stampContext) is
5025
4924
  textContent?: string | number | undefined;
5026
4925
  };
5027
4926
 
4927
+ export type TestSubmitProps = {};
4928
+
4929
+ export type TestSubmitSolidJsProps = {
4930
+ /** Set the innerHTML of the element */
4931
+ innerHTML?: string | undefined;
4932
+ /** Set the textContent of the element */
4933
+ textContent?: string | number | undefined;
4934
+ };
4935
+
5028
4936
  export type TestViewProps = {
5029
4937
  /** label accompanying the select view dropdown */
5030
4938
  label?: TestView["label"] | undefined;
@@ -5063,6 +4971,166 @@ export type TestViewToggleSolidJsProps = {
5063
4971
  textContent?: string | number | undefined;
5064
4972
  };
5065
4973
 
4974
+ export type TestItemToSpeechProps = {
4975
+ /** Fallback language when neither the item content nor the document declares one. */
4976
+ language?: TestItemToSpeech["language"] | undefined;
4977
+ /** */
4978
+ _ttsContext?: TestItemToSpeech["_ttsContext"] | undefined;
4979
+ };
4980
+
4981
+ export type TestItemToSpeechSolidJsProps = {
4982
+ /** Fallback language when neither the item content nor the document declares one. */
4983
+ "prop:language"?: TestItemToSpeech["language"] | undefined;
4984
+ /** */
4985
+ "prop:_ttsContext"?: TestItemToSpeech["_ttsContext"] | undefined;
4986
+
4987
+ /** Set the innerHTML of the element */
4988
+ innerHTML?: string | undefined;
4989
+ /** Set the textContent of the element */
4990
+ textContent?: string | number | undefined;
4991
+ };
4992
+
4993
+ export type TestTtsPlayProps = {
4994
+ /** Accessible name of the button while speech is playing; see `label`. */
4995
+ "pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
4996
+ /** Accessible name of the button while speech is playing; see `label`. */
4997
+ pauseLabel?: TestTtsPlay["pauseLabel"] | undefined;
4998
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4999
+ slotted content names the button by its text; set it when you slot an icon of your own,
5000
+ which has no text to be named by. */
5001
+ label?: TestTtsPlay["label"] | undefined;
5002
+ };
5003
+
5004
+ export type TestTtsPlaySolidJsProps = {
5005
+ /** Accessible name of the button while speech is playing; see `label`. */
5006
+ "attr:pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
5007
+ /** Accessible name of the button while speech is playing; see `label`. */
5008
+ "prop:pauseLabel"?: TestTtsPlay["pauseLabel"] | undefined;
5009
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5010
+ slotted content names the button by its text; set it when you slot an icon of your own,
5011
+ which has no text to be named by. */
5012
+ "prop:label"?: TestTtsPlay["label"] | undefined;
5013
+
5014
+ /** Set the innerHTML of the element */
5015
+ innerHTML?: string | undefined;
5016
+ /** Set the textContent of the element */
5017
+ textContent?: string | number | undefined;
5018
+ };
5019
+
5020
+ export type TestTtsPauseProps = {
5021
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5022
+ slotted content names the button by its text; set it when you slot an icon of your own,
5023
+ which has no text to be named by. */
5024
+ label?: TestTtsPause["label"] | undefined;
5025
+ };
5026
+
5027
+ export type TestTtsPauseSolidJsProps = {
5028
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5029
+ slotted content names the button by its text; set it when you slot an icon of your own,
5030
+ which has no text to be named by. */
5031
+ "prop:label"?: TestTtsPause["label"] | undefined;
5032
+
5033
+ /** Set the innerHTML of the element */
5034
+ innerHTML?: string | undefined;
5035
+ /** Set the textContent of the element */
5036
+ textContent?: string | number | undefined;
5037
+ };
5038
+
5039
+ export type TestTtsResumeProps = {
5040
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5041
+ slotted content names the button by its text; set it when you slot an icon of your own,
5042
+ which has no text to be named by. */
5043
+ label?: TestTtsResume["label"] | undefined;
5044
+ };
5045
+
5046
+ export type TestTtsResumeSolidJsProps = {
5047
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5048
+ slotted content names the button by its text; set it when you slot an icon of your own,
5049
+ which has no text to be named by. */
5050
+ "prop:label"?: TestTtsResume["label"] | undefined;
5051
+
5052
+ /** Set the innerHTML of the element */
5053
+ innerHTML?: string | undefined;
5054
+ /** Set the textContent of the element */
5055
+ textContent?: string | number | undefined;
5056
+ };
5057
+
5058
+ export type TestTtsStopProps = {
5059
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5060
+ slotted content names the button by its text; set it when you slot an icon of your own,
5061
+ which has no text to be named by. */
5062
+ label?: TestTtsStop["label"] | undefined;
5063
+ };
5064
+
5065
+ export type TestTtsStopSolidJsProps = {
5066
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5067
+ slotted content names the button by its text; set it when you slot an icon of your own,
5068
+ which has no text to be named by. */
5069
+ "prop:label"?: TestTtsStop["label"] | undefined;
5070
+
5071
+ /** Set the innerHTML of the element */
5072
+ innerHTML?: string | undefined;
5073
+ /** Set the textContent of the element */
5074
+ textContent?: string | number | undefined;
5075
+ };
5076
+
5077
+ export type TestTtsPrevProps = {
5078
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5079
+ slotted content names the button by its text; set it when you slot an icon of your own,
5080
+ which has no text to be named by. */
5081
+ label?: TestTtsPrev["label"] | undefined;
5082
+ };
5083
+
5084
+ export type TestTtsPrevSolidJsProps = {
5085
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5086
+ slotted content names the button by its text; set it when you slot an icon of your own,
5087
+ which has no text to be named by. */
5088
+ "prop:label"?: TestTtsPrev["label"] | undefined;
5089
+
5090
+ /** Set the innerHTML of the element */
5091
+ innerHTML?: string | undefined;
5092
+ /** Set the textContent of the element */
5093
+ textContent?: string | number | undefined;
5094
+ };
5095
+
5096
+ export type TestTtsNextProps = {
5097
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5098
+ slotted content names the button by its text; set it when you slot an icon of your own,
5099
+ which has no text to be named by. */
5100
+ label?: TestTtsNext["label"] | undefined;
5101
+ };
5102
+
5103
+ export type TestTtsNextSolidJsProps = {
5104
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5105
+ slotted content names the button by its text; set it when you slot an icon of your own,
5106
+ which has no text to be named by. */
5107
+ "prop:label"?: TestTtsNext["label"] | undefined;
5108
+
5109
+ /** Set the innerHTML of the element */
5110
+ innerHTML?: string | undefined;
5111
+ /** Set the textContent of the element */
5112
+ textContent?: string | number | undefined;
5113
+ };
5114
+
5115
+ export type TestTtsPickProps = {
5116
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5117
+ slotted content names the button by its text; set it when you slot an icon of your own,
5118
+ which has no text to be named by. */
5119
+ label?: TestTtsPick["label"] | undefined;
5120
+ };
5121
+
5122
+ export type TestTtsPickSolidJsProps = {
5123
+ /** Accessible name of the button. Without it the default icon carries an English name, and
5124
+ slotted content names the button by its text; set it when you slot an icon of your own,
5125
+ which has no text to be named by. */
5126
+ "prop:label"?: TestTtsPick["label"] | undefined;
5127
+
5128
+ /** Set the innerHTML of the element */
5129
+ innerHTML?: string | undefined;
5130
+ /** Set the textContent of the element */
5131
+ textContent?: string | number | undefined;
5132
+ };
5133
+
5066
5134
  export type QtiAndProps = {};
5067
5135
 
5068
5136
  export type QtiAndSolidJsProps = {
@@ -6412,9 +6480,15 @@ object, do not mutate it: an in-place change does not notify the components insi
6412
6480
  textContent?: string | number | undefined;
6413
6481
  };
6414
6482
 
6415
- export type TestCheckItemCorrectionProps = {};
6483
+ export type TestCheckItemCorrectionProps = {
6484
+ /** The view to switch to after the attempt ended. */
6485
+ view?: TestCheckItemCorrection["view"] | undefined;
6486
+ };
6416
6487
 
6417
6488
  export type TestCheckItemCorrectionSolidJsProps = {
6489
+ /** The view to switch to after the attempt ended. */
6490
+ "prop:view"?: TestCheckItemCorrection["view"] | undefined;
6491
+
6418
6492
  /** Set the innerHTML of the element */
6419
6493
  innerHTML?: string | undefined;
6420
6494
  /** Set the textContent of the element */
@@ -7926,6 +8000,11 @@ export type CustomElements = {
7926
8000
  *
7927
8001
  * Component attributes and properties that can be applied to the element or by using JavaScript.
7928
8002
  *
8003
+ * - `autoSizeDropzones`: A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
8004
+ * `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
8005
+ * beat the percentage box from `positionShapes` as soon as the graphic rendered narrower than its
8006
+ * declared width: a 275px chip kept a 17% hotspot at 275px over a 482px map. Chips are sized to
8007
+ * their hotspots through `--qti-graphic-scale` instead. (property only)
7929
8008
  * - `allowReorder`: undefined (property only)
7930
8009
  * - `sortablePlaceholderConfig`: undefined (property only)
7931
8010
  * - `sortableAnimationConfig`: undefined (property only)
@@ -8590,7 +8669,7 @@ export type CustomElements = {
8590
8669
  * - `custom-interaction-type-identifier`/`customInteractionTypeIdentifier`: undefined
8591
8670
  * - `data-require-paths`/`requirePathsJson`: undefined
8592
8671
  * - `data-require-shim`/`requireShimJson`: undefined
8593
- * - `data-require-js-url`/`requireJsUrl`: undefined
8672
+ * - `data-require-js-url`/`requireJsUrl`: A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts).
8594
8673
  * - `data-base-url`/`baseUrl`: undefined
8595
8674
  * - `data-use-default-paths`/`useDefaultPaths`: undefined
8596
8675
  * - `data-status`/`status`: Item lifecycle status handed to the PCI in its `getInstance` configuration.
@@ -8673,7 +8752,7 @@ export type CustomElements = {
8673
8752
  * - `custom-interaction-type-identifier`/`customInteractionTypeIdentifier`: undefined
8674
8753
  * - `data-require-paths`/`requirePathsJson`: undefined
8675
8754
  * - `data-require-shim`/`requireShimJson`: undefined
8676
- * - `data-require-js-url`/`requireJsUrl`: undefined
8755
+ * - `data-require-js-url`/`requireJsUrl`: A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts).
8677
8756
  * - `data-base-url`/`baseUrl`: undefined
8678
8757
  * - `data-use-default-paths`/`useDefaultPaths`: undefined
8679
8758
  * - `data-status`/`status`: Item lifecycle status handed to the PCI in its `getInstance` configuration.
@@ -9179,6 +9258,31 @@ export type CustomElements = {
9179
9258
  QtiAssessmentSectionProps & BaseProps<QtiAssessmentSection> & BaseEvents
9180
9259
  >;
9181
9260
 
9261
+ /**
9262
+ *
9263
+ *
9264
+ * ## Attributes & Properties
9265
+ *
9266
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9267
+ *
9268
+ * - `target`: Required. The identifier of an item ref, section or test part ahead of the parent, or one of the reserved targets `EXIT_SECTION`, `EXIT_TESTPART`, `EXIT_TEST`.
9269
+ *
9270
+ * ## Slots
9271
+ *
9272
+ * Areas where markup can be added to the component.
9273
+ *
9274
+ * - `(default)`: The boolean expression.
9275
+ *
9276
+ * ## Methods
9277
+ *
9278
+ * Methods that can be called to access component functionality.
9279
+ *
9280
+ * - `evaluate() => boolean`: `true` when the test should jump to `target`.
9281
+ */
9282
+ "qti-branch-rule": Partial<
9283
+ QtiBranchRuleProps & BaseProps<QtiBranchRule> & BaseEvents
9284
+ >;
9285
+
9182
9286
  /**
9183
9287
  *
9184
9288
  *
@@ -9233,16 +9337,68 @@ export type CustomElements = {
9233
9337
  *
9234
9338
  * - `calculate() => number`: undefined
9235
9339
  */
9236
- "qti-number-selected": Partial<
9237
- QtiNumberSelectedProps & BaseProps<QtiNumberSelected> & BaseEvents
9340
+ "qti-number-presented": Partial<
9341
+ QtiNumberPresentedProps & BaseProps<QtiNumberPresented> & BaseEvents
9238
9342
  >;
9239
9343
 
9240
9344
  /**
9241
9345
  *
9242
9346
  *
9243
- * ## Methods
9347
+ * ## Attributes & Properties
9244
9348
  *
9245
- * Methods that can be called to access component functionality.
9349
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9350
+ *
9351
+ * - `lastResult`: What the last `calculate()` produced, or undefined if it has not run.
9352
+ *
9353
+ * This is the supported way to inspect a scoring run: process the responses,
9354
+ * then walk the rule tree reading this off each expression. A tool that wants
9355
+ * to visualise how a score came about gets the whole tree annotated with its
9356
+ * values, without the components having to re-render to show them. (property only) (readonly)
9357
+ * - `lastVariables`: undefined (property only) (readonly)
9358
+ * - `resultBaseType`: The base type this operator always produces, when the QTI vocabulary fixes
9359
+ * one regardless of its operands — `qti-divide` is a float even dividing two
9360
+ * integers exactly, and `qti-round` is an integer whatever it rounds.
9361
+ *
9362
+ * Left undefined by operators whose result type follows their operands (a
9363
+ * `qti-sum` of integers is an integer) and by those that return no number at
9364
+ * all; the type is then read off the value. (property only) (readonly)
9365
+ * - `getVariables`: undefined (property only)
9366
+ *
9367
+ * ## Methods
9368
+ *
9369
+ * Methods that can be called to access component functionality.
9370
+ *
9371
+ * - `calculate() => number`: undefined
9372
+ */
9373
+ "qti-number-selected": Partial<
9374
+ QtiNumberSelectedProps & BaseProps<QtiNumberSelected> & BaseEvents
9375
+ >;
9376
+
9377
+ /**
9378
+ *
9379
+ *
9380
+ * ## Slots
9381
+ *
9382
+ * Areas where markup can be added to the component.
9383
+ *
9384
+ * - `(default)`: The boolean expression.
9385
+ *
9386
+ * ## Methods
9387
+ *
9388
+ * Methods that can be called to access component functionality.
9389
+ *
9390
+ * - `evaluate() => boolean`: `true` when the parent may be presented.
9391
+ */
9392
+ "qti-pre-condition": Partial<
9393
+ QtiPreConditionProps & BaseProps<QtiPreCondition> & BaseEvents
9394
+ >;
9395
+
9396
+ /**
9397
+ *
9398
+ *
9399
+ * ## Methods
9400
+ *
9401
+ * Methods that can be called to access component functionality.
9246
9402
  *
9247
9403
  * - `process() => void`: undefined
9248
9404
  */
@@ -9251,12 +9407,14 @@ export type CustomElements = {
9251
9407
  >;
9252
9408
 
9253
9409
  /**
9254
- *
9410
+ * Test-level feedback. It renders nothing where it is declared: where and when it appears is up to
9411
+ * the host. After outcome processing, `qtiTest.getTestFeedback(access)` returns the ones that apply.
9255
9412
  *
9256
9413
  * ## Attributes & Properties
9257
9414
  *
9258
9415
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9259
9416
  *
9417
+ * - `access`: When the feedback may be shown: at the end of the test (`atEnd`), or while it runs (`during`).
9260
9418
  * - `show-hide`/`showHide`: undefined
9261
9419
  * - `outcome-identifier`/`outcomeIdentifier`: undefined
9262
9420
  * - `identifier`: undefined
@@ -9266,6 +9424,8 @@ export type CustomElements = {
9266
9424
  *
9267
9425
  * Methods that can be called to access component functionality.
9268
9426
  *
9427
+ * - `matches(value: string | readonly string[] | null | undefined) => boolean`: Whether this feedback applies for a value of its `outcome-identifier`: with `show-hide="show"`
9428
+ * when the value is (or, for a container, holds) its `identifier`; with `hide` when it is not.
9269
9429
  * - `openFeedback() => void`: undefined
9270
9430
  * - `closeFeedback() => void`: undefined
9271
9431
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
@@ -9433,13 +9593,6 @@ export type CustomElements = {
9433
9593
  */
9434
9594
  "qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
9435
9595
 
9436
- /**
9437
- *
9438
- */
9439
- "test-check-item": Partial<
9440
- TestCheckItemProps & BaseProps<TestCheckItem> & BaseEvents
9441
- >;
9442
-
9443
9596
  /**
9444
9597
  *
9445
9598
  *
@@ -9474,228 +9627,211 @@ export type CustomElements = {
9474
9627
  >;
9475
9628
 
9476
9629
  /**
9477
- * `<test-item-to-speech>` is the controller and context provider. It manages
9478
- * speech synthesis, word highlighting, and item element lookup. Compose your
9479
- * own player by placing control elements as children.
9630
+ *
9480
9631
  *
9481
9632
  * ## Attributes & Properties
9482
9633
  *
9483
9634
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9484
9635
  *
9485
- * - `language`: Fallback language when neither the item content nor the document declares one.
9486
- * - `_ttsContext`: undefined (property only)
9636
+ * - `identifier`: undefined
9637
+ * - `auto-score-items`/`autoScoreItems`: undefined
9638
+ * - `initContext`: undefined (property only)
9639
+ * - `qtiContext`: undefined (property only)
9640
+ * - `configContext`: undefined (property only)
9487
9641
  *
9488
- * ## CSS States
9642
+ * ## Events
9489
9643
  *
9490
- * These can be used to apply styling when a component is in a given state.
9644
+ * Events that will be emitted by the component.
9491
9645
  *
9492
- * - `idle`: No speech active
9493
- * - `picking`: Pick mode: all reading elements highlighted, waiting for a click
9494
- * - `playing`: Speech is playing
9495
- * - `paused`: Speech is paused
9646
+ * - `qti-computed-context-updated`: undefined
9496
9647
  */
9497
- "test-item-to-speech": Partial<
9498
- TestItemToSpeechProps & BaseProps<TestItemToSpeech> & BaseEvents
9648
+ "test-navigation": Partial<
9649
+ TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
9499
9650
  >;
9500
9651
 
9501
9652
  /**
9502
- * Play/pause/resume toggle button — always enabled, cycles through states.
9503
- * Use named slots `play` and `pause` to customise the icons/labels independently; `label` and
9504
- * `pause-label` name the button in each state (set them when the slotted content is an icon).
9653
+ * Represents a custom element for navigating to the next test item.
9505
9654
  *
9506
9655
  * ## Attributes & Properties
9507
9656
  *
9508
9657
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9509
9658
  *
9510
- * - `pause-label`/`pauseLabel`: Accessible name of the button while speech is playing; see `label`.
9511
- * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9512
- * slotted content names the button by its text; set it when you slot an icon of your own,
9513
- * which has no text to be named by.
9514
- *
9515
- * ## CSS Parts
9516
- *
9517
- * Custom selectors for styling elements within the component.
9518
- *
9519
- * - `button`: undefined
9659
+ * - `disabled`/`_internalDisabled`: undefined
9660
+ * - `sectionItems`: undefined (property only)
9661
+ * - `itemIndex`: undefined (property only)
9662
+ * - `role`: undefined (property only)
9663
+ * - `ariaLabel`: undefined (property only)
9520
9664
  *
9521
- * ## CSS States
9665
+ * ## Methods
9522
9666
  *
9523
- * These can be used to apply styling when a component is in a given state.
9667
+ * Methods that can be called to access component functionality.
9524
9668
  *
9525
- * - `idle`: / playing / paused
9669
+ * - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
9670
+ * - `checkDisabled() => void`: undefined
9526
9671
  */
9527
- "test-tts-play": Partial<
9528
- TestTtsPlayProps & BaseProps<TestTtsPlay> & BaseEvents
9529
- >;
9672
+ "test-next": Partial<TestNextProps & BaseProps<TestNext> & BaseEvents>;
9530
9673
 
9531
9674
  /**
9532
- * Pause button — enabled only when playing.
9675
+ * Represents a custom element for navigating to the previous test item.
9533
9676
  *
9534
9677
  * ## Attributes & Properties
9535
9678
  *
9536
9679
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9537
9680
  *
9538
- * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9539
- * slotted content names the button by its text; set it when you slot an icon of your own,
9540
- * which has no text to be named by.
9681
+ * - `disabled`/`_internalDisabled`: undefined
9682
+ * - `sectionItems`: undefined (property only)
9683
+ * - `itemIndex`: undefined (property only)
9541
9684
  *
9542
- * ## CSS Parts
9685
+ * ## Methods
9543
9686
  *
9544
- * Custom selectors for styling elements within the component.
9687
+ * Methods that can be called to access component functionality.
9545
9688
  *
9546
- * - `button`: undefined
9689
+ * - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
9690
+ * - `checkDisabled() => void`: undefined
9691
+ */
9692
+ "test-prev": Partial<TestPrevProps & BaseProps<TestPrev> & BaseEvents>;
9693
+
9694
+ /**
9547
9695
  *
9548
- * ## CSS States
9549
9696
  *
9550
- * These can be used to apply styling when a component is in a given state.
9697
+ * ## Attributes & Properties
9551
9698
  *
9552
- * - `idle`: / playing / paused
9699
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9700
+ *
9701
+ * - `section-id`/`sectionId`: undefined
9553
9702
  */
9554
- "test-tts-pause": Partial<
9555
- TestTtsPauseProps & BaseProps<TestTtsPause> & BaseEvents
9703
+ "test-section-link": Partial<
9704
+ TestSectionLinkProps & BaseProps<TestSectionLink> & BaseEvents
9556
9705
  >;
9557
9706
 
9558
9707
  /**
9559
- * Resume button — enabled only when paused.
9560
- *
9561
- * ## Attributes & Properties
9708
+ * A toggle that marks the item on screen to come back to. The marks live in the test's state under
9709
+ * `bookmarks` (`session.plugins.bookmarks`), so a host that stores `state` stores them, and a
9710
+ * reloaded test shows them again.
9562
9711
  *
9563
- * Component attributes and properties that can be applied to the element or by using JavaScript.
9712
+ * Put it inside `<test-navigation>`, either in the toolbar, where it marks the item on screen, or in
9713
+ * the `<template item-ref>`, where each item gets its own and it marks that item. It is a button
9714
+ * (`role="button"`, `aria-pressed`) and reflects `bookmarked` on the host for styling; its content is
9715
+ * the label. In the toolbar it is `disabled` while no item is on screen. A host's own navigation reads
9716
+ * the marks with `bookmarkedItems(computedContext)`.
9564
9717
  *
9565
- * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9566
- * slotted content names the button by its text; set it when you slot an icon of your own,
9567
- * which has no text to be named by.
9718
+ * Give it an `item` (an item-ref identifier) to mark that item instead, wherever the button sits: in a
9719
+ * stamp template that lists the items of a section, `<test-bookmark item="{{ item.identifier }}">`
9720
+ * puts a button next to each one.
9568
9721
  *
9569
- * ## CSS Parts
9722
+ * ## Attributes & Properties
9570
9723
  *
9571
- * Custom selectors for styling elements within the component.
9724
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9572
9725
  *
9573
- * - `button`: undefined
9726
+ * - `item`: The item-ref identifier this button marks; without it, the item it is stamped into, or else the one on screen.
9727
+ * - `bookmarked`: Reflected: the item on screen is bookmarked.
9728
+ * - `disabled`: Reflected: there is no item on screen.
9574
9729
  *
9575
- * ## CSS States
9730
+ * ## Slots
9576
9731
  *
9577
- * These can be used to apply styling when a component is in a given state.
9732
+ * Areas where markup can be added to the component.
9578
9733
  *
9579
- * - `idle`: / playing / paused
9734
+ * - `(default)`: The label.
9580
9735
  */
9581
- "test-tts-resume": Partial<
9582
- TestTtsResumeProps & BaseProps<TestTtsResume> & BaseEvents
9736
+ "test-bookmark": Partial<
9737
+ TestBookmarkProps & BaseProps<TestBookmark> & BaseEvents
9583
9738
  >;
9584
9739
 
9585
9740
  /**
9586
- * Stop button — enabled when playing, paused, or in pick mode (where it leaves pick mode).
9741
+ * Ends the attempt on the current item and switches the test to `view` (default `scorer`), which
9742
+ * reveals the `[view]` content for that view, such as a scorer's rubric. The view stays until
9743
+ * something switches it back (`test-view-toggle`).
9587
9744
  *
9588
9745
  * ## Attributes & Properties
9589
9746
  *
9590
9747
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9591
9748
  *
9592
- * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9593
- * slotted content names the button by its text; set it when you slot an icon of your own,
9594
- * which has no text to be named by.
9595
- *
9596
- * ## CSS Parts
9597
- *
9598
- * Custom selectors for styling elements within the component.
9599
- *
9600
- * - `button`: undefined
9601
- *
9602
- * ## CSS States
9603
- *
9604
- * These can be used to apply styling when a component is in a given state.
9605
- *
9606
- * - `idle`: / playing / paused
9749
+ * - `view`: The view to switch to after the attempt ended.
9607
9750
  */
9608
- "test-tts-stop": Partial<
9609
- TestTtsStopProps & BaseProps<TestTtsStop> & BaseEvents
9751
+ "test-check-item": Partial<
9752
+ TestCheckItemProps & BaseProps<TestCheckItem> & BaseEvents
9610
9753
  >;
9611
9754
 
9612
9755
  /**
9613
- * Prev-element button — moves cursor to the previous reading element and pauses.
9614
- * Disabled at the first element. Reading elements are collected lazily, so an element count
9615
- * of 0 means "not looked yet" rather than "nothing to read": the button stays enabled and the
9616
- * first click collects them.
9756
+ *
9617
9757
  *
9618
9758
  * ## Attributes & Properties
9619
9759
  *
9620
9760
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9621
9761
  *
9622
- * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9623
- * slotted content names the button by its text; set it when you slot an icon of your own,
9624
- * which has no text to be named by.
9625
- *
9626
- * ## CSS Parts
9627
- *
9628
- * Custom selectors for styling elements within the component.
9762
+ * - `computedContext`: undefined (property only)
9763
+ */
9764
+ "test-print-context": Partial<
9765
+ TestPrintContextProps & BaseProps<TestPrintContext> & BaseEvents
9766
+ >;
9767
+
9768
+ /**
9629
9769
  *
9630
- * - `button`: undefined
9631
9770
  *
9632
- * ## CSS States
9771
+ * ## Attributes & Properties
9633
9772
  *
9634
- * These can be used to apply styling when a component is in a given state.
9773
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9635
9774
  *
9636
- * - `idle`: / playing / paused
9775
+ * - `computedContext`: undefined (property only)
9637
9776
  */
9638
- "test-tts-prev": Partial<
9639
- TestTtsPrevProps & BaseProps<TestTtsPrev> & BaseEvents
9777
+ "test-print-item-variables": Partial<
9778
+ TestPrintVariablesProps & BaseProps<TestPrintVariables> & BaseEvents
9640
9779
  >;
9641
9780
 
9642
9781
  /**
9643
- * Next-element button — moves cursor to the next reading element and pauses.
9644
- * Disabled at the last element; enabled while the elements have not been collected yet
9645
- * (see `TestTtsPrev`).
9782
+ *
9646
9783
  *
9647
9784
  * ## Attributes & Properties
9648
9785
  *
9649
9786
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9650
9787
  *
9651
- * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9652
- * slotted content names the button by its text; set it when you slot an icon of your own,
9653
- * which has no text to be named by.
9654
- *
9655
- * ## CSS Parts
9656
- *
9657
- * Custom selectors for styling elements within the component.
9788
+ * - `view`: undefined
9789
+ * - `disabled`: undefined
9790
+ * - `myTemplate`: undefined (property only)
9791
+ */
9792
+ "test-scoring-buttons": Partial<
9793
+ TestScoringButtonsProps & BaseProps<TestScoringButtons> & BaseEvents
9794
+ >;
9795
+
9796
+ /**
9658
9797
  *
9659
- * - `button`: undefined
9660
9798
  *
9661
- * ## CSS States
9799
+ * ## Attributes & Properties
9662
9800
  *
9663
- * These can be used to apply styling when a component is in a given state.
9801
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9664
9802
  *
9665
- * - `idle`: / playing / paused
9803
+ * - `view`: undefined
9666
9804
  */
9667
- "test-tts-next": Partial<
9668
- TestTtsNextProps & BaseProps<TestTtsNext> & BaseEvents
9805
+ "test-scoring-feedback": Partial<
9806
+ TestScoringFeedbackProps & BaseProps<TestScoringFeedback> & BaseEvents
9669
9807
  >;
9670
9808
 
9671
9809
  /**
9672
- * Pick button — toggles pick mode on the controller: every reading element is highlighted and
9673
- * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`.
9810
+ * A custom web component that renders a test stamp using the Lit framework.
9811
+ * This component is deprecated and will be removed in the future.
9674
9812
  *
9675
9813
  * ## Attributes & Properties
9676
9814
  *
9677
9815
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9678
9816
  *
9679
- * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9680
- * slotted content names the button by its text; set it when you slot an icon of your own,
9681
- * which has no text to be named by.
9817
+ * - `debug`: Indicates whether the component is in debug mode.
9818
+ * When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
9819
+ * - `myTemplate`: undefined (property only)
9682
9820
  *
9683
- * ## CSS Parts
9821
+ * ## Events
9684
9822
  *
9685
- * Custom selectors for styling elements within the component.
9823
+ * Events that will be emitted by the component.
9686
9824
  *
9687
- * - `button`: undefined
9688
- *
9689
- * ## CSS States
9690
- *
9691
- * These can be used to apply styling when a component is in a given state.
9692
- *
9693
- * - `idle`: / playing / paused
9694
- * - `picking`: undefined
9825
+ * - `qti-stamp-context-updated`: undefined
9695
9826
  */
9696
- "test-tts-pick": Partial<
9697
- TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
9698
- >;
9827
+ "test-stamp": Partial<TestStampProps & BaseProps<TestStamp> & BaseEvents>;
9828
+
9829
+ /**
9830
+ * Scores the test: on click the test resets its outcomes to their declared defaults, runs its
9831
+ * outcome processing and dispatches `cito-test-submitted`, after which the host reads the outcomes.
9832
+ * The host decides where it sits, for example on the last item or in a review view.
9833
+ */
9834
+ "test-submit": Partial<TestSubmitProps & BaseProps<TestSubmit> & BaseEvents>;
9699
9835
 
9700
9836
  /**
9701
9837
  *
@@ -9704,214 +9840,252 @@ export type CustomElements = {
9704
9840
  *
9705
9841
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9706
9842
  *
9707
- * - `identifier`: undefined
9708
- * - `auto-score-items`/`autoScoreItems`: undefined
9709
- * - `initContext`: undefined (property only)
9710
- * - `qtiContext`: undefined (property only)
9711
- * - `configContext`: undefined (property only)
9712
- *
9713
- * ## Events
9714
- *
9715
- * Events that will be emitted by the component.
9716
- *
9717
- * - `qti-computed-context-updated`: undefined
9843
+ * - `label`: label accompanying the select view dropdown
9844
+ * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
9718
9845
  */
9719
- "test-navigation": Partial<
9720
- TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
9721
- >;
9846
+ "test-view": Partial<TestViewProps & BaseProps<TestView> & BaseEvents>;
9722
9847
 
9723
9848
  /**
9724
- * Represents a custom element for navigating to the next test item.
9849
+ *
9725
9850
  *
9726
9851
  * ## Attributes & Properties
9727
9852
  *
9728
9853
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9729
9854
  *
9730
- * - `disabled`/`_internalDisabled`: undefined
9731
- * - `sectionItems`: undefined (property only)
9732
- * - `itemIndex`: undefined (property only)
9733
- * - `role`: undefined (property only)
9734
- * - `ariaLabel`: undefined (property only)
9855
+ * - `myTemplate`: undefined (property only)
9735
9856
  *
9736
9857
  * ## Methods
9737
9858
  *
9738
9859
  * Methods that can be called to access component functionality.
9739
9860
  *
9740
- * - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
9741
- * - `checkDisabled() => void`: undefined
9861
+ * - `_switchView(view: string) => void`: undefined
9742
9862
  */
9743
- "test-next": Partial<TestNextProps & BaseProps<TestNext> & BaseEvents>;
9863
+ "test-view-toggle": Partial<
9864
+ TestViewToggleProps & BaseProps<TestViewToggle> & BaseEvents
9865
+ >;
9744
9866
 
9745
9867
  /**
9746
- * @deprecated test-paging-buttons-stamp is deprecated and will be removed in the future.
9747
- *
9748
- *
9868
+ * `<test-item-to-speech>` is the controller and context provider. It manages
9869
+ * speech synthesis, word highlighting, and item element lookup. Compose your
9870
+ * own player by placing control elements as children.
9749
9871
  *
9750
9872
  * ## Attributes & Properties
9751
9873
  *
9752
9874
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9753
9875
  *
9754
- * - `myTemplate`: undefined (property only)
9755
- * - `ariaLabel`: undefined (property only)
9876
+ * - `language`: Fallback language when neither the item content nor the document declares one.
9877
+ * - `_ttsContext`: undefined (property only)
9878
+ *
9879
+ * ## CSS States
9880
+ *
9881
+ * These can be used to apply styling when a component is in a given state.
9882
+ *
9883
+ * - `idle`: No speech active
9884
+ * - `picking`: Pick mode: all reading elements highlighted, waiting for a click
9885
+ * - `playing`: Speech is playing
9886
+ * - `paused`: Speech is paused
9756
9887
  */
9757
- "test-paging-buttons-stamp": Partial<
9758
- TestPagingButtonsStampProps & BaseProps<TestPagingButtonsStamp> & BaseEvents
9888
+ "test-item-to-speech": Partial<
9889
+ TestItemToSpeechProps & BaseProps<TestItemToSpeech> & BaseEvents
9759
9890
  >;
9760
9891
 
9761
9892
  /**
9762
- * Represents a custom element for navigating to the previous test item.
9893
+ * Play/pause/resume toggle button — always enabled, cycles through states.
9894
+ * Use named slots `play` and `pause` to customise the icons/labels independently; `label` and
9895
+ * `pause-label` name the button in each state (set them when the slotted content is an icon).
9763
9896
  *
9764
9897
  * ## Attributes & Properties
9765
9898
  *
9766
9899
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9767
9900
  *
9768
- * - `disabled`/`_internalDisabled`: undefined
9769
- * - `sectionItems`: undefined (property only)
9770
- * - `itemIndex`: undefined (property only)
9771
- *
9772
- * ## Methods
9901
+ * - `pause-label`/`pauseLabel`: Accessible name of the button while speech is playing; see `label`.
9902
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9903
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9904
+ * which has no text to be named by.
9773
9905
  *
9774
- * Methods that can be called to access component functionality.
9906
+ * ## CSS Parts
9775
9907
  *
9776
- * - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
9777
- * - `checkDisabled() => void`: undefined
9778
- */
9779
- "test-prev": Partial<TestPrevProps & BaseProps<TestPrev> & BaseEvents>;
9780
-
9781
- /**
9908
+ * Custom selectors for styling elements within the component.
9782
9909
  *
9910
+ * - `button`: undefined
9783
9911
  *
9784
- * ## Attributes & Properties
9912
+ * ## CSS States
9785
9913
  *
9786
- * Component attributes and properties that can be applied to the element or by using JavaScript.
9914
+ * These can be used to apply styling when a component is in a given state.
9787
9915
  *
9788
- * - `computedContext`: undefined (property only)
9916
+ * - `idle`: / playing / paused
9789
9917
  */
9790
- "test-print-context": Partial<
9791
- TestPrintContextProps & BaseProps<TestPrintContext> & BaseEvents
9918
+ "test-tts-play": Partial<
9919
+ TestTtsPlayProps & BaseProps<TestTtsPlay> & BaseEvents
9792
9920
  >;
9793
9921
 
9794
9922
  /**
9795
- *
9923
+ * Pause button — enabled only when playing.
9796
9924
  *
9797
9925
  * ## Attributes & Properties
9798
9926
  *
9799
9927
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9800
9928
  *
9801
- * - `computedContext`: undefined (property only)
9802
- */
9803
- "test-print-item-variables": Partial<
9804
- TestPrintVariablesProps & BaseProps<TestPrintVariables> & BaseEvents
9805
- >;
9806
-
9807
- /**
9929
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9930
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9931
+ * which has no text to be named by.
9808
9932
  *
9933
+ * ## CSS Parts
9809
9934
  *
9810
- * ## Attributes & Properties
9935
+ * Custom selectors for styling elements within the component.
9811
9936
  *
9812
- * Component attributes and properties that can be applied to the element or by using JavaScript.
9937
+ * - `button`: undefined
9813
9938
  *
9814
- * - `view`: undefined
9815
- * - `disabled`: undefined
9816
- * - `myTemplate`: undefined (property only)
9939
+ * ## CSS States
9940
+ *
9941
+ * These can be used to apply styling when a component is in a given state.
9942
+ *
9943
+ * - `idle`: / playing / paused
9817
9944
  */
9818
- "test-scoring-buttons": Partial<
9819
- TestScoringButtonsProps & BaseProps<TestScoringButtons> & BaseEvents
9945
+ "test-tts-pause": Partial<
9946
+ TestTtsPauseProps & BaseProps<TestTtsPause> & BaseEvents
9820
9947
  >;
9821
9948
 
9822
9949
  /**
9823
- *
9950
+ * Resume button — enabled only when paused.
9824
9951
  *
9825
9952
  * ## Attributes & Properties
9826
9953
  *
9827
9954
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9828
9955
  *
9829
- * - `view`: undefined
9830
- */
9831
- "test-scoring-feedback": Partial<
9832
- TestScoringFeedbackProps & BaseProps<TestScoringFeedback> & BaseEvents
9833
- >;
9834
-
9835
- /**
9836
- * @deprecated test-section-buttons-stamp is deprecated and will be removed in the future.
9956
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9957
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9958
+ * which has no text to be named by.
9837
9959
  *
9960
+ * ## CSS Parts
9838
9961
  *
9962
+ * Custom selectors for styling elements within the component.
9839
9963
  *
9840
- * ## Attributes & Properties
9964
+ * - `button`: undefined
9841
9965
  *
9842
- * Component attributes and properties that can be applied to the element or by using JavaScript.
9966
+ * ## CSS States
9843
9967
  *
9844
- * - `myTemplate`: undefined (property only)
9845
- * - `ariaLabel`: undefined (property only)
9968
+ * These can be used to apply styling when a component is in a given state.
9969
+ *
9970
+ * - `idle`: / playing / paused
9846
9971
  */
9847
- "test-section-buttons-stamp": Partial<
9848
- TestSectionButtonsStampProps &
9849
- BaseProps<TestSectionButtonsStamp> &
9850
- BaseEvents
9972
+ "test-tts-resume": Partial<
9973
+ TestTtsResumeProps & BaseProps<TestTtsResume> & BaseEvents
9851
9974
  >;
9852
9975
 
9853
9976
  /**
9854
- *
9977
+ * Stop button — enabled when playing, paused, or in pick mode (where it leaves pick mode).
9855
9978
  *
9856
9979
  * ## Attributes & Properties
9857
9980
  *
9858
9981
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9859
9982
  *
9860
- * - `section-id`/`sectionId`: undefined
9983
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9984
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9985
+ * which has no text to be named by.
9986
+ *
9987
+ * ## CSS Parts
9988
+ *
9989
+ * Custom selectors for styling elements within the component.
9990
+ *
9991
+ * - `button`: undefined
9992
+ *
9993
+ * ## CSS States
9994
+ *
9995
+ * These can be used to apply styling when a component is in a given state.
9996
+ *
9997
+ * - `idle`: / playing / paused
9861
9998
  */
9862
- "test-section-link": Partial<
9863
- TestSectionLinkProps & BaseProps<TestSectionLink> & BaseEvents
9999
+ "test-tts-stop": Partial<
10000
+ TestTtsStopProps & BaseProps<TestTtsStop> & BaseEvents
9864
10001
  >;
9865
10002
 
9866
10003
  /**
9867
- * A custom web component that renders a test stamp using the Lit framework.
9868
- * This component is deprecated and will be removed in the future.
10004
+ * Prev-element button — moves cursor to the previous reading element and pauses.
10005
+ * Disabled at the first element. Reading elements are collected lazily, so an element count
10006
+ * of 0 means "not looked yet" rather than "nothing to read": the button stays enabled and the
10007
+ * first click collects them.
9869
10008
  *
9870
10009
  * ## Attributes & Properties
9871
10010
  *
9872
10011
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9873
10012
  *
9874
- * - `debug`: Indicates whether the component is in debug mode.
9875
- * When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
9876
- * - `myTemplate`: undefined (property only)
10013
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
10014
+ * slotted content names the button by its text; set it when you slot an icon of your own,
10015
+ * which has no text to be named by.
9877
10016
  *
9878
- * ## Events
10017
+ * ## CSS Parts
9879
10018
  *
9880
- * Events that will be emitted by the component.
10019
+ * Custom selectors for styling elements within the component.
9881
10020
  *
9882
- * - `qti-stamp-context-updated`: undefined
10021
+ * - `button`: undefined
10022
+ *
10023
+ * ## CSS States
10024
+ *
10025
+ * These can be used to apply styling when a component is in a given state.
10026
+ *
10027
+ * - `idle`: / playing / paused
9883
10028
  */
9884
- "test-stamp": Partial<TestStampProps & BaseProps<TestStamp> & BaseEvents>;
10029
+ "test-tts-prev": Partial<
10030
+ TestTtsPrevProps & BaseProps<TestTtsPrev> & BaseEvents
10031
+ >;
9885
10032
 
9886
10033
  /**
9887
- *
10034
+ * Next-element button — moves cursor to the next reading element and pauses.
10035
+ * Disabled at the last element; enabled while the elements have not been collected yet
10036
+ * (see `TestTtsPrev`).
9888
10037
  *
9889
10038
  * ## Attributes & Properties
9890
10039
  *
9891
10040
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9892
10041
  *
9893
- * - `label`: label accompanying the select view dropdown
9894
- * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
10042
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
10043
+ * slotted content names the button by its text; set it when you slot an icon of your own,
10044
+ * which has no text to be named by.
10045
+ *
10046
+ * ## CSS Parts
10047
+ *
10048
+ * Custom selectors for styling elements within the component.
10049
+ *
10050
+ * - `button`: undefined
10051
+ *
10052
+ * ## CSS States
10053
+ *
10054
+ * These can be used to apply styling when a component is in a given state.
10055
+ *
10056
+ * - `idle`: / playing / paused
9895
10057
  */
9896
- "test-view": Partial<TestViewProps & BaseProps<TestView> & BaseEvents>;
10058
+ "test-tts-next": Partial<
10059
+ TestTtsNextProps & BaseProps<TestTtsNext> & BaseEvents
10060
+ >;
9897
10061
 
9898
10062
  /**
9899
- *
10063
+ * Pick button — toggles pick mode on the controller: every reading element is highlighted and
10064
+ * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`.
9900
10065
  *
9901
10066
  * ## Attributes & Properties
9902
10067
  *
9903
10068
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9904
10069
  *
9905
- * - `myTemplate`: undefined (property only)
10070
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
10071
+ * slotted content names the button by its text; set it when you slot an icon of your own,
10072
+ * which has no text to be named by.
9906
10073
  *
9907
- * ## Methods
10074
+ * ## CSS Parts
9908
10075
  *
9909
- * Methods that can be called to access component functionality.
10076
+ * Custom selectors for styling elements within the component.
9910
10077
  *
9911
- * - `_switchView(view: string) => void`: undefined
10078
+ * - `button`: undefined
10079
+ *
10080
+ * ## CSS States
10081
+ *
10082
+ * These can be used to apply styling when a component is in a given state.
10083
+ *
10084
+ * - `idle`: / playing / paused
10085
+ * - `picking`: undefined
9912
10086
  */
9913
- "test-view-toggle": Partial<
9914
- TestViewToggleProps & BaseProps<TestViewToggle> & BaseEvents
10087
+ "test-tts-pick": Partial<
10088
+ TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
9915
10089
  >;
9916
10090
 
9917
10091
  /**
@@ -10361,6 +10535,9 @@ export type CustomElements = {
10361
10535
  *
10362
10536
  * Component attributes and properties that can be applied to the element or by using JavaScript.
10363
10537
  *
10538
+ * - `resultBaseType`: The base type of the field last read: as declared on the record's correct response when it
10539
+ * is, otherwise read off the value. The value alone is a string like `"4.1"` or `"455 250"`, and
10540
+ * an operator reading it as text would refuse to compare it as a number or test it as a point. (property only) (readonly)
10364
10541
  * - `lastResult`: What the last `calculate()` produced, or undefined if it has not run.
10365
10542
  *
10366
10543
  * This is the supported way to inspect a scoring run: process the responses,
@@ -10368,13 +10545,6 @@ export type CustomElements = {
10368
10545
  * to visualise how a score came about gets the whole tree annotated with its
10369
10546
  * values, without the components having to re-render to show them. (property only) (readonly)
10370
10547
  * - `lastVariables`: undefined (property only) (readonly)
10371
- * - `resultBaseType`: The base type this operator always produces, when the QTI vocabulary fixes
10372
- * one regardless of its operands — `qti-divide` is a float even dividing two
10373
- * integers exactly, and `qti-round` is an integer whatever it rounds.
10374
- *
10375
- * Left undefined by operators whose result type follows their operands (a
10376
- * `qti-sum` of integers is an integer) and by those that return no number at
10377
- * all; the type is then read off the value. (property only) (readonly)
10378
10548
  * - `getVariables`: undefined (property only)
10379
10549
  *
10380
10550
  * ## Methods
@@ -12038,6 +12208,12 @@ export type CustomElements = {
12038
12208
 
12039
12209
  /**
12040
12210
  * Check-item extension that reveals the correct response after scoring.
12211
+ *
12212
+ * ## Attributes & Properties
12213
+ *
12214
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
12215
+ *
12216
+ * - `view`: The view to switch to after the attempt ended.
12041
12217
  */
12042
12218
  "test-check-item": Partial<
12043
12219
  TestCheckItemCorrectionProps &
@@ -13582,6 +13758,11 @@ export type CustomElementsSolidJs = {
13582
13758
  *
13583
13759
  * Component attributes and properties that can be applied to the element or by using JavaScript.
13584
13760
  *
13761
+ * - `autoSizeDropzones`: A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
13762
+ * `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
13763
+ * beat the percentage box from `positionShapes` as soon as the graphic rendered narrower than its
13764
+ * declared width: a 275px chip kept a 17% hotspot at 275px over a 482px map. Chips are sized to
13765
+ * their hotspots through `--qti-graphic-scale` instead. (property only)
13585
13766
  * - `allowReorder`: undefined (property only)
13586
13767
  * - `sortablePlaceholderConfig`: undefined (property only)
13587
13768
  * - `sortableAnimationConfig`: undefined (property only)
@@ -14264,7 +14445,7 @@ export type CustomElementsSolidJs = {
14264
14445
  * - `custom-interaction-type-identifier`/`customInteractionTypeIdentifier`: undefined
14265
14446
  * - `data-require-paths`/`requirePathsJson`: undefined
14266
14447
  * - `data-require-shim`/`requireShimJson`: undefined
14267
- * - `data-require-js-url`/`requireJsUrl`: undefined
14448
+ * - `data-require-js-url`/`requireJsUrl`: A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts).
14268
14449
  * - `data-base-url`/`baseUrl`: undefined
14269
14450
  * - `data-use-default-paths`/`useDefaultPaths`: undefined
14270
14451
  * - `data-status`/`status`: Item lifecycle status handed to the PCI in its `getInstance` configuration.
@@ -14348,7 +14529,7 @@ export type CustomElementsSolidJs = {
14348
14529
  * - `custom-interaction-type-identifier`/`customInteractionTypeIdentifier`: undefined
14349
14530
  * - `data-require-paths`/`requirePathsJson`: undefined
14350
14531
  * - `data-require-shim`/`requireShimJson`: undefined
14351
- * - `data-require-js-url`/`requireJsUrl`: undefined
14532
+ * - `data-require-js-url`/`requireJsUrl`: A RequireJS to load in the iframe instead of the inlined copy (src/vendor/require-js.ts).
14352
14533
  * - `data-base-url`/`baseUrl`: undefined
14353
14534
  * - `data-use-default-paths`/`useDefaultPaths`: undefined
14354
14535
  * - `data-status`/`status`: Item lifecycle status handed to the PCI in its `getInstance` configuration.
@@ -14876,6 +15057,34 @@ export type CustomElementsSolidJs = {
14876
15057
  BaseEvents
14877
15058
  >;
14878
15059
 
15060
+ /**
15061
+ *
15062
+ *
15063
+ * ## Attributes & Properties
15064
+ *
15065
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15066
+ *
15067
+ * - `target`: Required. The identifier of an item ref, section or test part ahead of the parent, or one of the reserved targets `EXIT_SECTION`, `EXIT_TESTPART`, `EXIT_TEST`.
15068
+ *
15069
+ * ## Slots
15070
+ *
15071
+ * Areas where markup can be added to the component.
15072
+ *
15073
+ * - `(default)`: The boolean expression.
15074
+ *
15075
+ * ## Methods
15076
+ *
15077
+ * Methods that can be called to access component functionality.
15078
+ *
15079
+ * - `evaluate() => boolean`: `true` when the test should jump to `target`.
15080
+ */
15081
+ "qti-branch-rule": Partial<
15082
+ QtiBranchRuleProps &
15083
+ QtiBranchRuleSolidJsProps &
15084
+ BaseProps<QtiBranchRule> &
15085
+ BaseEvents
15086
+ >;
15087
+
14879
15088
  /**
14880
15089
  *
14881
15090
  *
@@ -14904,6 +15113,42 @@ export type CustomElementsSolidJs = {
14904
15113
  BaseEvents
14905
15114
  >;
14906
15115
 
15116
+ /**
15117
+ *
15118
+ *
15119
+ * ## Attributes & Properties
15120
+ *
15121
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15122
+ *
15123
+ * - `lastResult`: What the last `calculate()` produced, or undefined if it has not run.
15124
+ *
15125
+ * This is the supported way to inspect a scoring run: process the responses,
15126
+ * then walk the rule tree reading this off each expression. A tool that wants
15127
+ * to visualise how a score came about gets the whole tree annotated with its
15128
+ * values, without the components having to re-render to show them. (property only) (readonly)
15129
+ * - `lastVariables`: undefined (property only) (readonly)
15130
+ * - `resultBaseType`: The base type this operator always produces, when the QTI vocabulary fixes
15131
+ * one regardless of its operands — `qti-divide` is a float even dividing two
15132
+ * integers exactly, and `qti-round` is an integer whatever it rounds.
15133
+ *
15134
+ * Left undefined by operators whose result type follows their operands (a
15135
+ * `qti-sum` of integers is an integer) and by those that return no number at
15136
+ * all; the type is then read off the value. (property only) (readonly)
15137
+ * - `getVariables`: undefined (property only)
15138
+ *
15139
+ * ## Methods
15140
+ *
15141
+ * Methods that can be called to access component functionality.
15142
+ *
15143
+ * - `calculate() => number`: undefined
15144
+ */
15145
+ "qti-number-presented": Partial<
15146
+ QtiNumberPresentedProps &
15147
+ QtiNumberPresentedSolidJsProps &
15148
+ BaseProps<QtiNumberPresented> &
15149
+ BaseEvents
15150
+ >;
15151
+
14907
15152
  /**
14908
15153
  *
14909
15154
  *
@@ -14940,6 +15185,28 @@ export type CustomElementsSolidJs = {
14940
15185
  BaseEvents
14941
15186
  >;
14942
15187
 
15188
+ /**
15189
+ *
15190
+ *
15191
+ * ## Slots
15192
+ *
15193
+ * Areas where markup can be added to the component.
15194
+ *
15195
+ * - `(default)`: The boolean expression.
15196
+ *
15197
+ * ## Methods
15198
+ *
15199
+ * Methods that can be called to access component functionality.
15200
+ *
15201
+ * - `evaluate() => boolean`: `true` when the parent may be presented.
15202
+ */
15203
+ "qti-pre-condition": Partial<
15204
+ QtiPreConditionProps &
15205
+ QtiPreConditionSolidJsProps &
15206
+ BaseProps<QtiPreCondition> &
15207
+ BaseEvents
15208
+ >;
15209
+
14943
15210
  /**
14944
15211
  *
14945
15212
  *
@@ -14957,12 +15224,14 @@ export type CustomElementsSolidJs = {
14957
15224
  >;
14958
15225
 
14959
15226
  /**
14960
- *
15227
+ * Test-level feedback. It renders nothing where it is declared: where and when it appears is up to
15228
+ * the host. After outcome processing, `qtiTest.getTestFeedback(access)` returns the ones that apply.
14961
15229
  *
14962
15230
  * ## Attributes & Properties
14963
15231
  *
14964
15232
  * Component attributes and properties that can be applied to the element or by using JavaScript.
14965
15233
  *
15234
+ * - `access`: When the feedback may be shown: at the end of the test (`atEnd`), or while it runs (`during`).
14966
15235
  * - `show-hide`/`showHide`: undefined
14967
15236
  * - `outcome-identifier`/`outcomeIdentifier`: undefined
14968
15237
  * - `identifier`: undefined
@@ -14972,6 +15241,8 @@ export type CustomElementsSolidJs = {
14972
15241
  *
14973
15242
  * Methods that can be called to access component functionality.
14974
15243
  *
15244
+ * - `matches(value: string | readonly string[] | null | undefined) => boolean`: Whether this feedback applies for a value of its `outcome-identifier`: with `show-hide="show"`
15245
+ * when the value is (or, for a container, holds) its `identifier`; with `hide` when it is not.
14975
15246
  * - `openFeedback() => void`: undefined
14976
15247
  * - `closeFeedback() => void`: undefined
14977
15248
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
@@ -15153,16 +15424,6 @@ export type CustomElementsSolidJs = {
15153
15424
  QtiTestProps & QtiTestSolidJsProps & BaseProps<QtiTest> & BaseEvents
15154
15425
  >;
15155
15426
 
15156
- /**
15157
- *
15158
- */
15159
- "test-check-item": Partial<
15160
- TestCheckItemProps &
15161
- TestCheckItemSolidJsProps &
15162
- BaseProps<TestCheckItem> &
15163
- BaseEvents
15164
- >;
15165
-
15166
15427
  /**
15167
15428
  *
15168
15429
  *
@@ -15202,6 +15463,284 @@ export type CustomElementsSolidJs = {
15202
15463
  BaseEvents
15203
15464
  >;
15204
15465
 
15466
+ /**
15467
+ *
15468
+ *
15469
+ * ## Attributes & Properties
15470
+ *
15471
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15472
+ *
15473
+ * - `identifier`: undefined
15474
+ * - `auto-score-items`/`autoScoreItems`: undefined
15475
+ * - `initContext`: undefined (property only)
15476
+ * - `qtiContext`: undefined (property only)
15477
+ * - `configContext`: undefined (property only)
15478
+ *
15479
+ * ## Events
15480
+ *
15481
+ * Events that will be emitted by the component.
15482
+ *
15483
+ * - `qti-computed-context-updated`: undefined
15484
+ */
15485
+ "test-navigation": Partial<
15486
+ TestNavigationProps &
15487
+ TestNavigationSolidJsProps &
15488
+ BaseProps<TestNavigation> &
15489
+ BaseEvents
15490
+ >;
15491
+
15492
+ /**
15493
+ * Represents a custom element for navigating to the next test item.
15494
+ *
15495
+ * ## Attributes & Properties
15496
+ *
15497
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15498
+ *
15499
+ * - `disabled`/`_internalDisabled`: undefined
15500
+ * - `sectionItems`: undefined (property only)
15501
+ * - `itemIndex`: undefined (property only)
15502
+ * - `role`: undefined (property only)
15503
+ * - `ariaLabel`: undefined (property only)
15504
+ *
15505
+ * ## Methods
15506
+ *
15507
+ * Methods that can be called to access component functionality.
15508
+ *
15509
+ * - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
15510
+ * - `checkDisabled() => void`: undefined
15511
+ */
15512
+ "test-next": Partial<
15513
+ TestNextProps & TestNextSolidJsProps & BaseProps<TestNext> & BaseEvents
15514
+ >;
15515
+
15516
+ /**
15517
+ * Represents a custom element for navigating to the previous test item.
15518
+ *
15519
+ * ## Attributes & Properties
15520
+ *
15521
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15522
+ *
15523
+ * - `disabled`/`_internalDisabled`: undefined
15524
+ * - `sectionItems`: undefined (property only)
15525
+ * - `itemIndex`: undefined (property only)
15526
+ *
15527
+ * ## Methods
15528
+ *
15529
+ * Methods that can be called to access component functionality.
15530
+ *
15531
+ * - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
15532
+ * - `checkDisabled() => void`: undefined
15533
+ */
15534
+ "test-prev": Partial<
15535
+ TestPrevProps & TestPrevSolidJsProps & BaseProps<TestPrev> & BaseEvents
15536
+ >;
15537
+
15538
+ /**
15539
+ *
15540
+ *
15541
+ * ## Attributes & Properties
15542
+ *
15543
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15544
+ *
15545
+ * - `section-id`/`sectionId`: undefined
15546
+ */
15547
+ "test-section-link": Partial<
15548
+ TestSectionLinkProps &
15549
+ TestSectionLinkSolidJsProps &
15550
+ BaseProps<TestSectionLink> &
15551
+ BaseEvents
15552
+ >;
15553
+
15554
+ /**
15555
+ * A toggle that marks the item on screen to come back to. The marks live in the test's state under
15556
+ * `bookmarks` (`session.plugins.bookmarks`), so a host that stores `state` stores them, and a
15557
+ * reloaded test shows them again.
15558
+ *
15559
+ * Put it inside `<test-navigation>`, either in the toolbar, where it marks the item on screen, or in
15560
+ * the `<template item-ref>`, where each item gets its own and it marks that item. It is a button
15561
+ * (`role="button"`, `aria-pressed`) and reflects `bookmarked` on the host for styling; its content is
15562
+ * the label. In the toolbar it is `disabled` while no item is on screen. A host's own navigation reads
15563
+ * the marks with `bookmarkedItems(computedContext)`.
15564
+ *
15565
+ * Give it an `item` (an item-ref identifier) to mark that item instead, wherever the button sits: in a
15566
+ * stamp template that lists the items of a section, `<test-bookmark item="{{ item.identifier }}">`
15567
+ * puts a button next to each one.
15568
+ *
15569
+ * ## Attributes & Properties
15570
+ *
15571
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15572
+ *
15573
+ * - `item`: The item-ref identifier this button marks; without it, the item it is stamped into, or else the one on screen.
15574
+ * - `bookmarked`: Reflected: the item on screen is bookmarked.
15575
+ * - `disabled`: Reflected: there is no item on screen.
15576
+ *
15577
+ * ## Slots
15578
+ *
15579
+ * Areas where markup can be added to the component.
15580
+ *
15581
+ * - `(default)`: The label.
15582
+ */
15583
+ "test-bookmark": Partial<
15584
+ TestBookmarkProps &
15585
+ TestBookmarkSolidJsProps &
15586
+ BaseProps<TestBookmark> &
15587
+ BaseEvents
15588
+ >;
15589
+
15590
+ /**
15591
+ * Ends the attempt on the current item and switches the test to `view` (default `scorer`), which
15592
+ * reveals the `[view]` content for that view, such as a scorer's rubric. The view stays until
15593
+ * something switches it back (`test-view-toggle`).
15594
+ *
15595
+ * ## Attributes & Properties
15596
+ *
15597
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15598
+ *
15599
+ * - `view`: The view to switch to after the attempt ended.
15600
+ */
15601
+ "test-check-item": Partial<
15602
+ TestCheckItemProps &
15603
+ TestCheckItemSolidJsProps &
15604
+ BaseProps<TestCheckItem> &
15605
+ BaseEvents
15606
+ >;
15607
+
15608
+ /**
15609
+ *
15610
+ *
15611
+ * ## Attributes & Properties
15612
+ *
15613
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15614
+ *
15615
+ * - `computedContext`: undefined (property only)
15616
+ */
15617
+ "test-print-context": Partial<
15618
+ TestPrintContextProps &
15619
+ TestPrintContextSolidJsProps &
15620
+ BaseProps<TestPrintContext> &
15621
+ BaseEvents
15622
+ >;
15623
+
15624
+ /**
15625
+ *
15626
+ *
15627
+ * ## Attributes & Properties
15628
+ *
15629
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15630
+ *
15631
+ * - `computedContext`: undefined (property only)
15632
+ */
15633
+ "test-print-item-variables": Partial<
15634
+ TestPrintVariablesProps &
15635
+ TestPrintVariablesSolidJsProps &
15636
+ BaseProps<TestPrintVariables> &
15637
+ BaseEvents
15638
+ >;
15639
+
15640
+ /**
15641
+ *
15642
+ *
15643
+ * ## Attributes & Properties
15644
+ *
15645
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15646
+ *
15647
+ * - `view`: undefined
15648
+ * - `disabled`: undefined
15649
+ * - `myTemplate`: undefined (property only)
15650
+ */
15651
+ "test-scoring-buttons": Partial<
15652
+ TestScoringButtonsProps &
15653
+ TestScoringButtonsSolidJsProps &
15654
+ BaseProps<TestScoringButtons> &
15655
+ BaseEvents
15656
+ >;
15657
+
15658
+ /**
15659
+ *
15660
+ *
15661
+ * ## Attributes & Properties
15662
+ *
15663
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15664
+ *
15665
+ * - `view`: undefined
15666
+ */
15667
+ "test-scoring-feedback": Partial<
15668
+ TestScoringFeedbackProps &
15669
+ TestScoringFeedbackSolidJsProps &
15670
+ BaseProps<TestScoringFeedback> &
15671
+ BaseEvents
15672
+ >;
15673
+
15674
+ /**
15675
+ * A custom web component that renders a test stamp using the Lit framework.
15676
+ * This component is deprecated and will be removed in the future.
15677
+ *
15678
+ * ## Attributes & Properties
15679
+ *
15680
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15681
+ *
15682
+ * - `debug`: Indicates whether the component is in debug mode.
15683
+ * When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
15684
+ * - `myTemplate`: undefined (property only)
15685
+ *
15686
+ * ## Events
15687
+ *
15688
+ * Events that will be emitted by the component.
15689
+ *
15690
+ * - `qti-stamp-context-updated`: undefined
15691
+ */
15692
+ "test-stamp": Partial<
15693
+ TestStampProps & TestStampSolidJsProps & BaseProps<TestStamp> & BaseEvents
15694
+ >;
15695
+
15696
+ /**
15697
+ * Scores the test: on click the test resets its outcomes to their declared defaults, runs its
15698
+ * outcome processing and dispatches `cito-test-submitted`, after which the host reads the outcomes.
15699
+ * The host decides where it sits, for example on the last item or in a review view.
15700
+ */
15701
+ "test-submit": Partial<
15702
+ TestSubmitProps &
15703
+ TestSubmitSolidJsProps &
15704
+ BaseProps<TestSubmit> &
15705
+ BaseEvents
15706
+ >;
15707
+
15708
+ /**
15709
+ *
15710
+ *
15711
+ * ## Attributes & Properties
15712
+ *
15713
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15714
+ *
15715
+ * - `label`: label accompanying the select view dropdown
15716
+ * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
15717
+ */
15718
+ "test-view": Partial<
15719
+ TestViewProps & TestViewSolidJsProps & BaseProps<TestView> & BaseEvents
15720
+ >;
15721
+
15722
+ /**
15723
+ *
15724
+ *
15725
+ * ## Attributes & Properties
15726
+ *
15727
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15728
+ *
15729
+ * - `myTemplate`: undefined (property only)
15730
+ *
15731
+ * ## Methods
15732
+ *
15733
+ * Methods that can be called to access component functionality.
15734
+ *
15735
+ * - `_switchView(view: string) => void`: undefined
15736
+ */
15737
+ "test-view-toggle": Partial<
15738
+ TestViewToggleProps &
15739
+ TestViewToggleSolidJsProps &
15740
+ BaseProps<TestViewToggle> &
15741
+ BaseEvents
15742
+ >;
15743
+
15205
15744
  /**
15206
15745
  * `<test-item-to-speech>` is the controller and context provider. It manages
15207
15746
  * speech synthesis, word highlighting, and item element lookup. Compose your
@@ -15450,256 +15989,6 @@ export type CustomElementsSolidJs = {
15450
15989
  BaseEvents
15451
15990
  >;
15452
15991
 
15453
- /**
15454
- *
15455
- *
15456
- * ## Attributes & Properties
15457
- *
15458
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15459
- *
15460
- * - `identifier`: undefined
15461
- * - `auto-score-items`/`autoScoreItems`: undefined
15462
- * - `initContext`: undefined (property only)
15463
- * - `qtiContext`: undefined (property only)
15464
- * - `configContext`: undefined (property only)
15465
- *
15466
- * ## Events
15467
- *
15468
- * Events that will be emitted by the component.
15469
- *
15470
- * - `qti-computed-context-updated`: undefined
15471
- */
15472
- "test-navigation": Partial<
15473
- TestNavigationProps &
15474
- TestNavigationSolidJsProps &
15475
- BaseProps<TestNavigation> &
15476
- BaseEvents
15477
- >;
15478
-
15479
- /**
15480
- * Represents a custom element for navigating to the next test item.
15481
- *
15482
- * ## Attributes & Properties
15483
- *
15484
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15485
- *
15486
- * - `disabled`/`_internalDisabled`: undefined
15487
- * - `sectionItems`: undefined (property only)
15488
- * - `itemIndex`: undefined (property only)
15489
- * - `role`: undefined (property only)
15490
- * - `ariaLabel`: undefined (property only)
15491
- *
15492
- * ## Methods
15493
- *
15494
- * Methods that can be called to access component functionality.
15495
- *
15496
- * - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
15497
- * - `checkDisabled() => void`: undefined
15498
- */
15499
- "test-next": Partial<
15500
- TestNextProps & TestNextSolidJsProps & BaseProps<TestNext> & BaseEvents
15501
- >;
15502
-
15503
- /**
15504
- * @deprecated test-paging-buttons-stamp is deprecated and will be removed in the future.
15505
- *
15506
- *
15507
- *
15508
- * ## Attributes & Properties
15509
- *
15510
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15511
- *
15512
- * - `myTemplate`: undefined (property only)
15513
- * - `ariaLabel`: undefined (property only)
15514
- */
15515
- "test-paging-buttons-stamp": Partial<
15516
- TestPagingButtonsStampProps &
15517
- TestPagingButtonsStampSolidJsProps &
15518
- BaseProps<TestPagingButtonsStamp> &
15519
- BaseEvents
15520
- >;
15521
-
15522
- /**
15523
- * Represents a custom element for navigating to the previous test item.
15524
- *
15525
- * ## Attributes & Properties
15526
- *
15527
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15528
- *
15529
- * - `disabled`/`_internalDisabled`: undefined
15530
- * - `sectionItems`: undefined (property only)
15531
- * - `itemIndex`: undefined (property only)
15532
- *
15533
- * ## Methods
15534
- *
15535
- * Methods that can be called to access component functionality.
15536
- *
15537
- * - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
15538
- * - `checkDisabled() => void`: undefined
15539
- */
15540
- "test-prev": Partial<
15541
- TestPrevProps & TestPrevSolidJsProps & BaseProps<TestPrev> & BaseEvents
15542
- >;
15543
-
15544
- /**
15545
- *
15546
- *
15547
- * ## Attributes & Properties
15548
- *
15549
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15550
- *
15551
- * - `computedContext`: undefined (property only)
15552
- */
15553
- "test-print-context": Partial<
15554
- TestPrintContextProps &
15555
- TestPrintContextSolidJsProps &
15556
- BaseProps<TestPrintContext> &
15557
- BaseEvents
15558
- >;
15559
-
15560
- /**
15561
- *
15562
- *
15563
- * ## Attributes & Properties
15564
- *
15565
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15566
- *
15567
- * - `computedContext`: undefined (property only)
15568
- */
15569
- "test-print-item-variables": Partial<
15570
- TestPrintVariablesProps &
15571
- TestPrintVariablesSolidJsProps &
15572
- BaseProps<TestPrintVariables> &
15573
- BaseEvents
15574
- >;
15575
-
15576
- /**
15577
- *
15578
- *
15579
- * ## Attributes & Properties
15580
- *
15581
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15582
- *
15583
- * - `view`: undefined
15584
- * - `disabled`: undefined
15585
- * - `myTemplate`: undefined (property only)
15586
- */
15587
- "test-scoring-buttons": Partial<
15588
- TestScoringButtonsProps &
15589
- TestScoringButtonsSolidJsProps &
15590
- BaseProps<TestScoringButtons> &
15591
- BaseEvents
15592
- >;
15593
-
15594
- /**
15595
- *
15596
- *
15597
- * ## Attributes & Properties
15598
- *
15599
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15600
- *
15601
- * - `view`: undefined
15602
- */
15603
- "test-scoring-feedback": Partial<
15604
- TestScoringFeedbackProps &
15605
- TestScoringFeedbackSolidJsProps &
15606
- BaseProps<TestScoringFeedback> &
15607
- BaseEvents
15608
- >;
15609
-
15610
- /**
15611
- * @deprecated test-section-buttons-stamp is deprecated and will be removed in the future.
15612
- *
15613
- *
15614
- *
15615
- * ## Attributes & Properties
15616
- *
15617
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15618
- *
15619
- * - `myTemplate`: undefined (property only)
15620
- * - `ariaLabel`: undefined (property only)
15621
- */
15622
- "test-section-buttons-stamp": Partial<
15623
- TestSectionButtonsStampProps &
15624
- TestSectionButtonsStampSolidJsProps &
15625
- BaseProps<TestSectionButtonsStamp> &
15626
- BaseEvents
15627
- >;
15628
-
15629
- /**
15630
- *
15631
- *
15632
- * ## Attributes & Properties
15633
- *
15634
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15635
- *
15636
- * - `section-id`/`sectionId`: undefined
15637
- */
15638
- "test-section-link": Partial<
15639
- TestSectionLinkProps &
15640
- TestSectionLinkSolidJsProps &
15641
- BaseProps<TestSectionLink> &
15642
- BaseEvents
15643
- >;
15644
-
15645
- /**
15646
- * A custom web component that renders a test stamp using the Lit framework.
15647
- * This component is deprecated and will be removed in the future.
15648
- *
15649
- * ## Attributes & Properties
15650
- *
15651
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15652
- *
15653
- * - `debug`: Indicates whether the component is in debug mode.
15654
- * When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
15655
- * - `myTemplate`: undefined (property only)
15656
- *
15657
- * ## Events
15658
- *
15659
- * Events that will be emitted by the component.
15660
- *
15661
- * - `qti-stamp-context-updated`: undefined
15662
- */
15663
- "test-stamp": Partial<
15664
- TestStampProps & TestStampSolidJsProps & BaseProps<TestStamp> & BaseEvents
15665
- >;
15666
-
15667
- /**
15668
- *
15669
- *
15670
- * ## Attributes & Properties
15671
- *
15672
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15673
- *
15674
- * - `label`: label accompanying the select view dropdown
15675
- * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
15676
- */
15677
- "test-view": Partial<
15678
- TestViewProps & TestViewSolidJsProps & BaseProps<TestView> & BaseEvents
15679
- >;
15680
-
15681
- /**
15682
- *
15683
- *
15684
- * ## Attributes & Properties
15685
- *
15686
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15687
- *
15688
- * - `myTemplate`: undefined (property only)
15689
- *
15690
- * ## Methods
15691
- *
15692
- * Methods that can be called to access component functionality.
15693
- *
15694
- * - `_switchView(view: string) => void`: undefined
15695
- */
15696
- "test-view-toggle": Partial<
15697
- TestViewToggleProps &
15698
- TestViewToggleSolidJsProps &
15699
- BaseProps<TestViewToggle> &
15700
- BaseEvents
15701
- >;
15702
-
15703
15992
  /**
15704
15993
  *
15705
15994
  *
@@ -16193,6 +16482,9 @@ export type CustomElementsSolidJs = {
16193
16482
  *
16194
16483
  * Component attributes and properties that can be applied to the element or by using JavaScript.
16195
16484
  *
16485
+ * - `resultBaseType`: The base type of the field last read: as declared on the record's correct response when it
16486
+ * is, otherwise read off the value. The value alone is a string like `"4.1"` or `"455 250"`, and
16487
+ * an operator reading it as text would refuse to compare it as a number or test it as a point. (property only) (readonly)
16196
16488
  * - `lastResult`: What the last `calculate()` produced, or undefined if it has not run.
16197
16489
  *
16198
16490
  * This is the supported way to inspect a scoring run: process the responses,
@@ -16200,13 +16492,6 @@ export type CustomElementsSolidJs = {
16200
16492
  * to visualise how a score came about gets the whole tree annotated with its
16201
16493
  * values, without the components having to re-render to show them. (property only) (readonly)
16202
16494
  * - `lastVariables`: undefined (property only) (readonly)
16203
- * - `resultBaseType`: The base type this operator always produces, when the QTI vocabulary fixes
16204
- * one regardless of its operands — `qti-divide` is a float even dividing two
16205
- * integers exactly, and `qti-round` is an integer whatever it rounds.
16206
- *
16207
- * Left undefined by operators whose result type follows their operands (a
16208
- * `qti-sum` of integers is an integer) and by those that return no number at
16209
- * all; the type is then read off the value. (property only) (readonly)
16210
16495
  * - `getVariables`: undefined (property only)
16211
16496
  *
16212
16497
  * ## Methods
@@ -18026,6 +18311,12 @@ export type CustomElementsSolidJs = {
18026
18311
 
18027
18312
  /**
18028
18313
  * Check-item extension that reveals the correct response after scoring.
18314
+ *
18315
+ * ## Attributes & Properties
18316
+ *
18317
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
18318
+ *
18319
+ * - `view`: The view to switch to after the attempt ended.
18029
18320
  */
18030
18321
  "test-check-item": Partial<
18031
18322
  TestCheckItemCorrectionProps &