@citolab/qti-components 9.4.0 → 10.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +290 -243
  3. package/dist/base.d.ts +2 -2
  4. package/dist/base.js +1 -1
  5. package/dist/{chunk-C3JPUV36.js → chunk-35WWWFS6.js} +2 -2
  6. package/dist/{chunk-3BAQWO5C.js → chunk-6K3QWJHH.js} +2 -2
  7. package/dist/{chunk-XEWGFAS4.js → chunk-6U3YPHXU.js} +67 -27
  8. package/dist/chunk-6U3YPHXU.js.map +1 -0
  9. package/dist/{chunk-GNTO3IFM.js → chunk-CKJ7M7JQ.js} +571 -375
  10. package/dist/chunk-CKJ7M7JQ.js.map +1 -0
  11. package/dist/{chunk-BMXG7D2N.js → chunk-FD4AB6TM.js} +2 -2
  12. package/dist/{chunk-LKHRHFXO.js → chunk-FWR6HZQS.js} +6 -6
  13. package/dist/{chunk-B5XHZI2P.js → chunk-GBZNFSFY.js} +2 -2
  14. package/dist/{chunk-ACRN7YJM.js → chunk-MI7774NV.js} +2 -2
  15. package/dist/{chunk-MSGYZE6L.js → chunk-RSMYGGQK.js} +128 -48
  16. package/dist/chunk-RSMYGGQK.js.map +1 -0
  17. package/dist/{chunk-B74SYQB2.js → chunk-RU6332MD.js} +3 -3
  18. package/dist/{chunk-R7MMMDP7.js → chunk-TDWJ6WZA.js} +20 -2
  19. package/dist/chunk-TDWJ6WZA.js.map +1 -0
  20. package/dist/{chunk-JHPQJDAV.js → chunk-YYIS6FDP.js} +2 -2
  21. package/dist/chunk-ZP6QQYSU.js +7 -0
  22. package/dist/chunk-ZP6QQYSU.js.map +1 -0
  23. package/dist/corrections.d.ts +3 -3
  24. package/dist/corrections.js +8 -8
  25. package/dist/elements.d.ts +64 -2
  26. package/dist/elements.js +15 -5
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +28 -14
  29. package/dist/interactions.d.ts +2 -2
  30. package/dist/interactions.js +3 -3
  31. package/dist/item.css +11 -0
  32. package/dist/item.js +4 -4
  33. package/dist/loader.d.ts +1 -1
  34. package/dist/processing.d.ts +2 -2
  35. package/dist/processing.js +3 -3
  36. package/dist/qti-components-jsx.d.ts +138 -191
  37. package/dist/{qti-condition-expression.d-L7yb3Rzy.d.ts → qti-condition-expression.d-VJH6cWxf.d.ts} +1 -1
  38. package/dist/{qti-expression.d-CuaLjZ6g.d.ts → qti-expression.d-BPxEp8HU.d.ts} +7 -0
  39. package/dist/{qti-test.d-Cud5Gvy0.d.ts → qti-test.d-DkpBNcsv.d.ts} +67 -9
  40. package/dist/{qti-text-entry-interaction.d-DKvz9ncv.d.ts → qti-text-entry-interaction.d-q8u5BiVK.d.ts} +11 -2
  41. package/dist/test.d.ts +3 -3
  42. package/dist/test.js +9 -5
  43. package/package.json +10 -10
  44. package/dist/chunk-A32YH4H5.js +0 -7
  45. package/dist/chunk-A32YH4H5.js.map +0 -1
  46. package/dist/chunk-GNTO3IFM.js.map +0 -1
  47. package/dist/chunk-MSGYZE6L.js.map +0 -1
  48. package/dist/chunk-R7MMMDP7.js.map +0 -1
  49. package/dist/chunk-XEWGFAS4.js.map +0 -1
  50. /package/dist/{chunk-C3JPUV36.js.map → chunk-35WWWFS6.js.map} +0 -0
  51. /package/dist/{chunk-3BAQWO5C.js.map → chunk-6K3QWJHH.js.map} +0 -0
  52. /package/dist/{chunk-BMXG7D2N.js.map → chunk-FD4AB6TM.js.map} +0 -0
  53. /package/dist/{chunk-LKHRHFXO.js.map → chunk-FWR6HZQS.js.map} +0 -0
  54. /package/dist/{chunk-B5XHZI2P.js.map → chunk-GBZNFSFY.js.map} +0 -0
  55. /package/dist/{chunk-ACRN7YJM.js.map → chunk-MI7774NV.js.map} +0 -0
  56. /package/dist/{chunk-B74SYQB2.js.map → chunk-RU6332MD.js.map} +0 -0
  57. /package/dist/{chunk-JHPQJDAV.js.map → chunk-YYIS6FDP.js.map} +0 -0
@@ -73,8 +73,10 @@ import type {
73
73
  QtiAssessmentTest,
74
74
  QtiAssessmentItemRef,
75
75
  QtiAssessmentSection,
76
+ QtiBranchRule,
76
77
  QtiItemSessionControl,
77
78
  QtiNumberSelected,
79
+ QtiPreCondition,
78
80
  QtiOutcomeProcessing,
79
81
  QtiOutcomeProcessingProcessor,
80
82
  QtiTestFeedback,
@@ -353,10 +355,6 @@ follow, so the item keeps no list of them to set it on. */
353
355
  "onqti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
354
356
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
355
357
  "onqti-item-context-updated"?: ((e: CustomEvent) => void) | undefined;
356
- /** */
357
- "onqti-interaction-changed"?: ((e: CustomEvent) => void) | undefined;
358
- /** */
359
- "onqti-outcome-changed"?: ((e: CustomEvent) => void) | undefined;
360
358
  };
361
359
 
362
360
  export type QtiAssessmentItemSolidJsProps = {
@@ -390,10 +388,6 @@ follow, so the item keeps no list of them to set it on. */
390
388
  "on:qti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
391
389
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
392
390
  "on:qti-item-context-updated"?: ((e: CustomEvent) => void) | undefined;
393
- /** */
394
- "on:qti-interaction-changed"?: ((e: CustomEvent) => void) | undefined;
395
- /** */
396
- "on:qti-outcome-changed"?: ((e: CustomEvent) => void) | undefined;
397
391
 
398
392
  /** Set the innerHTML of the element */
399
393
  innerHTML?: string | undefined;
@@ -1708,8 +1702,10 @@ export type QtiExtendedTextInteractionProps = {
1708
1702
  "string-identifier"?: unknown | undefined;
1709
1703
  /** Not implemented. Maximum number of separate string responses. QTI defines these for a multi-string response — several bound variables, one field each. This element renders a single textarea bound to one variable, so there is nothing for the bounds to count: reading them as a word or paragraph limit would invent a rule QTI does not state. Implement alongside multi-string rendering, not before it. */
1710
1704
  "max-strings"?: unknown | undefined;
1711
- /** Not implemented. See `max-strings`. */
1712
- "min-strings"?: unknown | undefined;
1705
+ /** Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec. */
1706
+ "min-strings"?: QtiExtendedTextInteraction["minStrings"] | undefined;
1707
+ /** Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec. */
1708
+ minStrings?: QtiExtendedTextInteraction["minStrings"] | undefined;
1713
1709
  /** How the response text is presented. Reflected so themes can key off
1714
1710
  `:host([format='preformatted'])`.
1715
1711
 
@@ -1814,8 +1810,10 @@ export type QtiExtendedTextInteractionSolidJsProps = {
1814
1810
  "attr:string-identifier"?: unknown | undefined;
1815
1811
  /** Not implemented. Maximum number of separate string responses. QTI defines these for a multi-string response — several bound variables, one field each. This element renders a single textarea bound to one variable, so there is nothing for the bounds to count: reading them as a word or paragraph limit would invent a rule QTI does not state. Implement alongside multi-string rendering, not before it. */
1816
1812
  "attr:max-strings"?: unknown | undefined;
1817
- /** Not implemented. See `max-strings`. */
1818
- "attr:min-strings"?: unknown | undefined;
1813
+ /** Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec. */
1814
+ "attr:min-strings"?: QtiExtendedTextInteraction["minStrings"] | undefined;
1815
+ /** Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec. */
1816
+ "prop:minStrings"?: QtiExtendedTextInteraction["minStrings"] | undefined;
1819
1817
  /** How the response text is presented. Reflected so themes can key off
1820
1818
  `:host([format='preformatted'])`.
1821
1819
 
@@ -3770,7 +3768,8 @@ export type QtiSliderInteractionProps = {
3770
3768
  max?: QtiSliderInteraction["max"] | undefined;
3771
3769
  /** */
3772
3770
  step?: QtiSliderInteraction["step"] | undefined;
3773
- /** */
3771
+ /** Shows the value without publishing it: it came from the item (a default or a restored answer) or
3772
+ from the host, which hold it already. Only the candidate's input is published. */
3774
3773
  response?: QtiSliderInteraction["response"] | undefined;
3775
3774
  /** */
3776
3775
  "response-identifier"?:
@@ -3829,7 +3828,8 @@ export type QtiSliderInteractionSolidJsProps = {
3829
3828
  "prop:max"?: QtiSliderInteraction["max"] | undefined;
3830
3829
  /** */
3831
3830
  "prop:step"?: QtiSliderInteraction["step"] | undefined;
3832
- /** */
3831
+ /** Shows the value without publishing it: it came from the item (a default or a restored answer) or
3832
+ from the host, which hold it already. Only the candidate's input is published. */
3833
3833
  "prop:response"?: QtiSliderInteraction["response"] | undefined;
3834
3834
  /** */
3835
3835
  "attr:response-identifier"?:
@@ -4158,9 +4158,6 @@ export type QtiAssessmentTestProps = {
4158
4158
  title?: QtiAssessmentTest["title"] | undefined;
4159
4159
  /** */
4160
4160
  _testContext?: QtiAssessmentTest["_testContext"] | undefined;
4161
-
4162
- /** */
4163
- "onqti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
4164
4161
  };
4165
4162
 
4166
4163
  export type QtiAssessmentTestSolidJsProps = {
@@ -4170,8 +4167,6 @@ export type QtiAssessmentTestSolidJsProps = {
4170
4167
  "prop:title"?: QtiAssessmentTest["title"] | undefined;
4171
4168
  /** */
4172
4169
  "prop:_testContext"?: QtiAssessmentTest["_testContext"] | undefined;
4173
- /** */
4174
- "on:qti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
4175
4170
 
4176
4171
  /** Set the innerHTML of the element */
4177
4172
  innerHTML?: string | undefined;
@@ -4194,11 +4189,6 @@ export type QtiAssessmentItemRefProps = {
4194
4189
  xmlDoc?: QtiAssessmentItemRef["xmlDoc"] | undefined;
4195
4190
  /** */
4196
4191
  myTemplate?: QtiAssessmentItemRef["myTemplate"] | undefined;
4197
-
4198
- /** */
4199
- "onqti-assessment-item-ref-connected"?:
4200
- | ((e: CustomEvent) => void)
4201
- | undefined;
4202
4192
  };
4203
4193
 
4204
4194
  export type QtiAssessmentItemRefSolidJsProps = {
@@ -4216,10 +4206,6 @@ export type QtiAssessmentItemRefSolidJsProps = {
4216
4206
  "prop:xmlDoc"?: QtiAssessmentItemRef["xmlDoc"] | undefined;
4217
4207
  /** */
4218
4208
  "prop:myTemplate"?: QtiAssessmentItemRef["myTemplate"] | undefined;
4219
- /** */
4220
- "on:qti-assessment-item-ref-connected"?:
4221
- | ((e: CustomEvent) => void)
4222
- | undefined;
4223
4209
 
4224
4210
  /** Set the innerHTML of the element */
4225
4211
  innerHTML?: string | undefined;
@@ -4291,6 +4277,21 @@ export type QtiAssessmentSectionSolidJsProps = {
4291
4277
  textContent?: string | number | undefined;
4292
4278
  };
4293
4279
 
4280
+ export type QtiBranchRuleProps = {
4281
+ /** 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`. */
4282
+ target?: QtiBranchRule["target"] | undefined;
4283
+ };
4284
+
4285
+ export type QtiBranchRuleSolidJsProps = {
4286
+ /** 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`. */
4287
+ "prop:target"?: QtiBranchRule["target"] | undefined;
4288
+
4289
+ /** Set the innerHTML of the element */
4290
+ innerHTML?: string | undefined;
4291
+ /** Set the textContent of the element */
4292
+ textContent?: string | number | undefined;
4293
+ };
4294
+
4294
4295
  export type QtiItemSessionControlProps = {
4295
4296
  /** */
4296
4297
  "max-attempts"?: QtiItemSessionControl["maxAttempts"] | undefined;
@@ -4386,6 +4387,15 @@ export type QtiNumberSelectedSolidJsProps = {
4386
4387
  textContent?: string | number | undefined;
4387
4388
  };
4388
4389
 
4390
+ export type QtiPreConditionProps = {};
4391
+
4392
+ export type QtiPreConditionSolidJsProps = {
4393
+ /** Set the innerHTML of the element */
4394
+ innerHTML?: string | undefined;
4395
+ /** Set the textContent of the element */
4396
+ textContent?: string | number | undefined;
4397
+ };
4398
+
4389
4399
  export type QtiOutcomeProcessingProps = {};
4390
4400
 
4391
4401
  export type QtiOutcomeProcessingSolidJsProps = {
@@ -4606,9 +4616,6 @@ export type TestItemLinkProps = {
4606
4616
  "item-id"?: TestItemLink["itemId"] | undefined;
4607
4617
  /** */
4608
4618
  itemId?: TestItemLink["itemId"] | undefined;
4609
-
4610
- /** */
4611
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4612
4619
  };
4613
4620
 
4614
4621
  export type TestItemLinkSolidJsProps = {
@@ -4616,8 +4623,6 @@ export type TestItemLinkSolidJsProps = {
4616
4623
  "attr:item-id"?: TestItemLink["itemId"] | undefined;
4617
4624
  /** */
4618
4625
  "prop:itemId"?: TestItemLink["itemId"] | undefined;
4619
- /** */
4620
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4621
4626
 
4622
4627
  /** Set the innerHTML of the element */
4623
4628
  innerHTML?: string | undefined;
@@ -4846,9 +4851,6 @@ export type TestNextProps = {
4846
4851
  role?: TestNext["role"] | undefined;
4847
4852
  /** */
4848
4853
  ariaLabel?: TestNext["ariaLabel"] | undefined;
4849
-
4850
- /** */
4851
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4852
4854
  };
4853
4855
 
4854
4856
  export type TestNextSolidJsProps = {
@@ -4864,8 +4866,6 @@ export type TestNextSolidJsProps = {
4864
4866
  "prop:role"?: TestNext["role"] | undefined;
4865
4867
  /** */
4866
4868
  "prop:ariaLabel"?: TestNext["ariaLabel"] | undefined;
4867
- /** */
4868
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4869
4869
 
4870
4870
  /** Set the innerHTML of the element */
4871
4871
  innerHTML?: string | undefined;
@@ -4901,9 +4901,6 @@ export type TestPrevProps = {
4901
4901
  sectionItems?: TestPrev["sectionItems"] | undefined;
4902
4902
  /** */
4903
4903
  itemIndex?: TestPrev["itemIndex"] | undefined;
4904
-
4905
- /** */
4906
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4907
4904
  };
4908
4905
 
4909
4906
  export type TestPrevSolidJsProps = {
@@ -4915,8 +4912,6 @@ export type TestPrevSolidJsProps = {
4915
4912
  "prop:sectionItems"?: TestPrev["sectionItems"] | undefined;
4916
4913
  /** */
4917
4914
  "prop:itemIndex"?: TestPrev["itemIndex"] | undefined;
4918
- /** */
4919
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4920
4915
 
4921
4916
  /** Set the innerHTML of the element */
4922
4917
  innerHTML?: string | undefined;
@@ -4961,9 +4956,6 @@ export type TestScoringButtonsProps = {
4961
4956
  disabled?: TestScoringButtons["disabled"] | undefined;
4962
4957
  /** */
4963
4958
  myTemplate?: TestScoringButtons["myTemplate"] | undefined;
4964
-
4965
- /** */
4966
- "ontest-update-outcome-variable"?: ((e: CustomEvent) => void) | undefined;
4967
4959
  };
4968
4960
 
4969
4961
  export type TestScoringButtonsSolidJsProps = {
@@ -4973,8 +4965,6 @@ export type TestScoringButtonsSolidJsProps = {
4973
4965
  "prop:disabled"?: TestScoringButtons["disabled"] | undefined;
4974
4966
  /** */
4975
4967
  "prop:myTemplate"?: TestScoringButtons["myTemplate"] | undefined;
4976
- /** */
4977
- "on:test-update-outcome-variable"?: ((e: CustomEvent) => void) | undefined;
4978
4968
 
4979
4969
  /** Set the innerHTML of the element */
4980
4970
  innerHTML?: string | undefined;
@@ -5021,9 +5011,6 @@ export type TestSectionLinkProps = {
5021
5011
  "section-id"?: TestSectionLink["sectionId"] | undefined;
5022
5012
  /** */
5023
5013
  sectionId?: TestSectionLink["sectionId"] | undefined;
5024
-
5025
- /** */
5026
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
5027
5014
  };
5028
5015
 
5029
5016
  export type TestSectionLinkSolidJsProps = {
@@ -5031,8 +5018,6 @@ export type TestSectionLinkSolidJsProps = {
5031
5018
  "attr:section-id"?: TestSectionLink["sectionId"] | undefined;
5032
5019
  /** */
5033
5020
  "prop:sectionId"?: TestSectionLink["sectionId"] | undefined;
5034
- /** */
5035
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
5036
5021
 
5037
5022
  /** Set the innerHTML of the element */
5038
5023
  innerHTML?: string | undefined;
@@ -5073,9 +5058,6 @@ export type TestViewProps = {
5073
5058
  "view-options"?: TestView["viewOptions"] | undefined;
5074
5059
  /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
5075
5060
  viewOptions?: TestView["viewOptions"] | undefined;
5076
-
5077
- /** */
5078
- "onon-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5079
5061
  };
5080
5062
 
5081
5063
  export type TestViewSolidJsProps = {
@@ -5085,8 +5067,6 @@ export type TestViewSolidJsProps = {
5085
5067
  "attr:view-options"?: TestView["viewOptions"] | undefined;
5086
5068
  /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
5087
5069
  "prop:viewOptions"?: TestView["viewOptions"] | undefined;
5088
- /** */
5089
- "on:on-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5090
5070
 
5091
5071
  /** Set the innerHTML of the element */
5092
5072
  innerHTML?: string | undefined;
@@ -5097,16 +5077,11 @@ export type TestViewSolidJsProps = {
5097
5077
  export type TestViewToggleProps = {
5098
5078
  /** */
5099
5079
  myTemplate?: TestViewToggle["myTemplate"] | undefined;
5100
-
5101
- /** */
5102
- "onon-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5103
5080
  };
5104
5081
 
5105
5082
  export type TestViewToggleSolidJsProps = {
5106
5083
  /** */
5107
5084
  "prop:myTemplate"?: TestViewToggle["myTemplate"] | undefined;
5108
- /** */
5109
- "on:on-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5110
5085
 
5111
5086
  /** Set the innerHTML of the element */
5112
5087
  innerHTML?: string | undefined;
@@ -6296,10 +6271,6 @@ follow, so the item keeps no list of them to set it on. */
6296
6271
  "onqti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
6297
6272
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
6298
6273
  "onqti-item-context-updated"?: ((e: CustomEvent) => void) | undefined;
6299
- /** */
6300
- "onqti-interaction-changed"?: ((e: CustomEvent) => void) | undefined;
6301
- /** */
6302
- "onqti-outcome-changed"?: ((e: CustomEvent) => void) | undefined;
6303
6274
  };
6304
6275
 
6305
6276
  export type QtiAssessmentItemCorrectionSolidJsProps = {
@@ -6337,10 +6308,6 @@ follow, so the item keeps no list of them to set it on. */
6337
6308
  "on:qti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
6338
6309
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
6339
6310
  "on:qti-item-context-updated"?: ((e: CustomEvent) => void) | undefined;
6340
- /** */
6341
- "on:qti-interaction-changed"?: ((e: CustomEvent) => void) | undefined;
6342
- /** */
6343
- "on:qti-outcome-changed"?: ((e: CustomEvent) => void) | undefined;
6344
6311
 
6345
6312
  /** Set the innerHTML of the element */
6346
6313
  innerHTML?: string | undefined;
@@ -6739,8 +6706,6 @@ export type CustomElements = {
6739
6706
  *
6740
6707
  * - `qti-assessment-item-connected`: undefined
6741
6708
  * - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
6742
- * - `qti-interaction-changed`: undefined
6743
- * - `qti-outcome-changed`: undefined
6744
6709
  *
6745
6710
  * ## Methods
6746
6711
  *
@@ -7705,7 +7670,7 @@ export type CustomElements = {
7705
7670
  * - `base`/`undefined`: Not implemented. Numeric base used when recording the value.
7706
7671
  * - `string-identifier`/`undefined`: Not implemented. Identifier of a second, string-typed response variable that also receives the raw entry.
7707
7672
  * - `max-strings`/`undefined`: Not implemented. Maximum number of separate string responses. QTI defines these for a multi-string response — several bound variables, one field each. This element renders a single textarea bound to one variable, so there is nothing for the bounds to count: reading them as a word or paragraph limit would invent a rule QTI does not state. Implement alongside multi-string rendering, not before it.
7708
- * - `min-strings`/`undefined`: Not implemented. See `max-strings`.
7673
+ * - `min-strings`/`minStrings`: Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec.
7709
7674
  * - `format`: How the response text is presented. Reflected so themes can key off
7710
7675
  * `:host([format='preformatted'])`.
7711
7676
  *
@@ -8955,7 +8920,8 @@ export type CustomElements = {
8955
8920
  * - `lower-bound`/`min`: undefined
8956
8921
  * - `upper-bound`/`max`: undefined
8957
8922
  * - `step`: undefined
8958
- * - `response`: undefined
8923
+ * - `response`: Shows the value without publishing it: it came from the item (a default or a restored answer) or
8924
+ * from the host, which hold it already. Only the candidate's input is published.
8959
8925
  * - `response-identifier`/`responseIdentifier`: undefined
8960
8926
  * - `disabled`: undefined
8961
8927
  * - `readonly`: undefined
@@ -9181,12 +9147,6 @@ export type CustomElements = {
9181
9147
  * - `identifier`: undefined
9182
9148
  * - `title`: undefined
9183
9149
  * - `_testContext`: undefined (property only)
9184
- *
9185
- * ## Events
9186
- *
9187
- * Events that will be emitted by the component.
9188
- *
9189
- * - `qti-assessment-test-connected`: undefined
9190
9150
  */
9191
9151
  "qti-assessment-test": Partial<
9192
9152
  QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
@@ -9213,12 +9173,6 @@ export type CustomElements = {
9213
9173
  * - `xmlDoc`: undefined (property only)
9214
9174
  * - `assessmentItem`: undefined (property only) (readonly)
9215
9175
  * - `myTemplate`: undefined (property only)
9216
- *
9217
- * ## Events
9218
- *
9219
- * Events that will be emitted by the component.
9220
- *
9221
- * - `qti-assessment-item-ref-connected`: undefined
9222
9176
  */
9223
9177
  "qti-assessment-item-ref": Partial<
9224
9178
  QtiAssessmentItemRefProps & BaseProps<QtiAssessmentItemRef> & BaseEvents
@@ -9251,6 +9205,31 @@ export type CustomElements = {
9251
9205
  QtiAssessmentSectionProps & BaseProps<QtiAssessmentSection> & BaseEvents
9252
9206
  >;
9253
9207
 
9208
+ /**
9209
+ *
9210
+ *
9211
+ * ## Attributes & Properties
9212
+ *
9213
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9214
+ *
9215
+ * - `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`.
9216
+ *
9217
+ * ## Slots
9218
+ *
9219
+ * Areas where markup can be added to the component.
9220
+ *
9221
+ * - `(default)`: The boolean expression.
9222
+ *
9223
+ * ## Methods
9224
+ *
9225
+ * Methods that can be called to access component functionality.
9226
+ *
9227
+ * - `evaluate() => boolean`: `true` when the test should jump to `target`.
9228
+ */
9229
+ "qti-branch-rule": Partial<
9230
+ QtiBranchRuleProps & BaseProps<QtiBranchRule> & BaseEvents
9231
+ >;
9232
+
9254
9233
  /**
9255
9234
  *
9256
9235
  *
@@ -9309,6 +9288,25 @@ export type CustomElements = {
9309
9288
  QtiNumberSelectedProps & BaseProps<QtiNumberSelected> & BaseEvents
9310
9289
  >;
9311
9290
 
9291
+ /**
9292
+ *
9293
+ *
9294
+ * ## Slots
9295
+ *
9296
+ * Areas where markup can be added to the component.
9297
+ *
9298
+ * - `(default)`: The boolean expression.
9299
+ *
9300
+ * ## Methods
9301
+ *
9302
+ * Methods that can be called to access component functionality.
9303
+ *
9304
+ * - `evaluate() => boolean`: `true` when the parent may be presented.
9305
+ */
9306
+ "qti-pre-condition": Partial<
9307
+ QtiPreConditionProps & BaseProps<QtiPreCondition> & BaseEvents
9308
+ >;
9309
+
9312
9310
  /**
9313
9311
  *
9314
9312
  *
@@ -9540,12 +9538,6 @@ export type CustomElements = {
9540
9538
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9541
9539
  *
9542
9540
  * - `item-id`/`itemId`: undefined
9543
- *
9544
- * ## Events
9545
- *
9546
- * Events that will be emitted by the component.
9547
- *
9548
- * - `qti-request-navigation`: undefined
9549
9541
  */
9550
9542
  "test-item-link": Partial<
9551
9543
  TestItemLinkProps & BaseProps<TestItemLink> & BaseEvents
@@ -9811,12 +9803,6 @@ export type CustomElements = {
9811
9803
  * - `role`: undefined (property only)
9812
9804
  * - `ariaLabel`: undefined (property only)
9813
9805
  *
9814
- * ## Events
9815
- *
9816
- * Events that will be emitted by the component.
9817
- *
9818
- * - `qti-request-navigation`: undefined
9819
- *
9820
9806
  * ## Methods
9821
9807
  *
9822
9808
  * Methods that can be called to access component functionality.
@@ -9853,12 +9839,6 @@ export type CustomElements = {
9853
9839
  * - `sectionItems`: undefined (property only)
9854
9840
  * - `itemIndex`: undefined (property only)
9855
9841
  *
9856
- * ## Events
9857
- *
9858
- * Events that will be emitted by the component.
9859
- *
9860
- * - `qti-request-navigation`: undefined
9861
- *
9862
9842
  * ## Methods
9863
9843
  *
9864
9844
  * Methods that can be called to access component functionality.
@@ -9904,12 +9884,6 @@ export type CustomElements = {
9904
9884
  * - `view`: undefined
9905
9885
  * - `disabled`: undefined
9906
9886
  * - `myTemplate`: undefined (property only)
9907
- *
9908
- * ## Events
9909
- *
9910
- * Events that will be emitted by the component.
9911
- *
9912
- * - `test-update-outcome-variable`: undefined
9913
9887
  */
9914
9888
  "test-scoring-buttons": Partial<
9915
9889
  TestScoringButtonsProps & BaseProps<TestScoringButtons> & BaseEvents
@@ -9954,12 +9928,6 @@ export type CustomElements = {
9954
9928
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9955
9929
  *
9956
9930
  * - `section-id`/`sectionId`: undefined
9957
- *
9958
- * ## Events
9959
- *
9960
- * Events that will be emitted by the component.
9961
- *
9962
- * - `qti-request-navigation`: undefined
9963
9931
  */
9964
9932
  "test-section-link": Partial<
9965
9933
  TestSectionLinkProps & BaseProps<TestSectionLink> & BaseEvents
@@ -9994,12 +9962,6 @@ export type CustomElements = {
9994
9962
  *
9995
9963
  * - `label`: label accompanying the select view dropdown
9996
9964
  * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
9997
- *
9998
- * ## Events
9999
- *
10000
- * Events that will be emitted by the component.
10001
- *
10002
- * - `on-test-switch-view`: undefined
10003
9965
  */
10004
9966
  "test-view": Partial<TestViewProps & BaseProps<TestView> & BaseEvents>;
10005
9967
 
@@ -10012,12 +9974,6 @@ export type CustomElements = {
10012
9974
  *
10013
9975
  * - `myTemplate`: undefined (property only)
10014
9976
  *
10015
- * ## Events
10016
- *
10017
- * Events that will be emitted by the component.
10018
- *
10019
- * - `on-test-switch-view`: undefined
10020
- *
10021
9977
  * ## Methods
10022
9978
  *
10023
9979
  * Methods that can be called to access component functionality.
@@ -12039,8 +11995,6 @@ export type CustomElements = {
12039
11995
  *
12040
11996
  * - `qti-assessment-item-connected`: undefined
12041
11997
  * - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
12042
- * - `qti-interaction-changed`: undefined
12043
- * - `qti-outcome-changed`: undefined
12044
11998
  *
12045
11999
  * ## Methods
12046
12000
  *
@@ -12358,8 +12312,6 @@ export type CustomElementsSolidJs = {
12358
12312
  *
12359
12313
  * - `qti-assessment-item-connected`: undefined
12360
12314
  * - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
12361
- * - `qti-interaction-changed`: undefined
12362
- * - `qti-outcome-changed`: undefined
12363
12315
  *
12364
12316
  * ## Methods
12365
12317
  *
@@ -13413,7 +13365,7 @@ export type CustomElementsSolidJs = {
13413
13365
  * - `base`/`undefined`: Not implemented. Numeric base used when recording the value.
13414
13366
  * - `string-identifier`/`undefined`: Not implemented. Identifier of a second, string-typed response variable that also receives the raw entry.
13415
13367
  * - `max-strings`/`undefined`: Not implemented. Maximum number of separate string responses. QTI defines these for a multi-string response — several bound variables, one field each. This element renders a single textarea bound to one variable, so there is nothing for the bounds to count: reading them as a word or paragraph limit would invent a rule QTI does not state. Implement alongside multi-string rendering, not before it.
13416
- * - `min-strings`/`undefined`: Not implemented. See `max-strings`.
13368
+ * - `min-strings`/`minStrings`: Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec.
13417
13369
  * - `format`: How the response text is presented. Reflected so themes can key off
13418
13370
  * `:host([format='preformatted'])`.
13419
13371
  *
@@ -14693,7 +14645,8 @@ export type CustomElementsSolidJs = {
14693
14645
  * - `lower-bound`/`min`: undefined
14694
14646
  * - `upper-bound`/`max`: undefined
14695
14647
  * - `step`: undefined
14696
- * - `response`: undefined
14648
+ * - `response`: Shows the value without publishing it: it came from the item (a default or a restored answer) or
14649
+ * from the host, which hold it already. Only the candidate's input is published.
14697
14650
  * - `response-identifier`/`responseIdentifier`: undefined
14698
14651
  * - `disabled`: undefined
14699
14652
  * - `readonly`: undefined
@@ -14926,12 +14879,6 @@ export type CustomElementsSolidJs = {
14926
14879
  * - `identifier`: undefined
14927
14880
  * - `title`: undefined
14928
14881
  * - `_testContext`: undefined (property only)
14929
- *
14930
- * ## Events
14931
- *
14932
- * Events that will be emitted by the component.
14933
- *
14934
- * - `qti-assessment-test-connected`: undefined
14935
14882
  */
14936
14883
  "qti-assessment-test": Partial<
14937
14884
  QtiAssessmentTestProps &
@@ -14961,12 +14908,6 @@ export type CustomElementsSolidJs = {
14961
14908
  * - `xmlDoc`: undefined (property only)
14962
14909
  * - `assessmentItem`: undefined (property only) (readonly)
14963
14910
  * - `myTemplate`: undefined (property only)
14964
- *
14965
- * ## Events
14966
- *
14967
- * Events that will be emitted by the component.
14968
- *
14969
- * - `qti-assessment-item-ref-connected`: undefined
14970
14911
  */
14971
14912
  "qti-assessment-item-ref": Partial<
14972
14913
  QtiAssessmentItemRefProps &
@@ -15005,6 +14946,34 @@ export type CustomElementsSolidJs = {
15005
14946
  BaseEvents
15006
14947
  >;
15007
14948
 
14949
+ /**
14950
+ *
14951
+ *
14952
+ * ## Attributes & Properties
14953
+ *
14954
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
14955
+ *
14956
+ * - `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`.
14957
+ *
14958
+ * ## Slots
14959
+ *
14960
+ * Areas where markup can be added to the component.
14961
+ *
14962
+ * - `(default)`: The boolean expression.
14963
+ *
14964
+ * ## Methods
14965
+ *
14966
+ * Methods that can be called to access component functionality.
14967
+ *
14968
+ * - `evaluate() => boolean`: `true` when the test should jump to `target`.
14969
+ */
14970
+ "qti-branch-rule": Partial<
14971
+ QtiBranchRuleProps &
14972
+ QtiBranchRuleSolidJsProps &
14973
+ BaseProps<QtiBranchRule> &
14974
+ BaseEvents
14975
+ >;
14976
+
15008
14977
  /**
15009
14978
  *
15010
14979
  *
@@ -15069,6 +15038,28 @@ export type CustomElementsSolidJs = {
15069
15038
  BaseEvents
15070
15039
  >;
15071
15040
 
15041
+ /**
15042
+ *
15043
+ *
15044
+ * ## Slots
15045
+ *
15046
+ * Areas where markup can be added to the component.
15047
+ *
15048
+ * - `(default)`: The boolean expression.
15049
+ *
15050
+ * ## Methods
15051
+ *
15052
+ * Methods that can be called to access component functionality.
15053
+ *
15054
+ * - `evaluate() => boolean`: `true` when the parent may be presented.
15055
+ */
15056
+ "qti-pre-condition": Partial<
15057
+ QtiPreConditionProps &
15058
+ QtiPreConditionSolidJsProps &
15059
+ BaseProps<QtiPreCondition> &
15060
+ BaseEvents
15061
+ >;
15062
+
15072
15063
  /**
15073
15064
  *
15074
15065
  *
@@ -15323,12 +15314,6 @@ export type CustomElementsSolidJs = {
15323
15314
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15324
15315
  *
15325
15316
  * - `item-id`/`itemId`: undefined
15326
- *
15327
- * ## Events
15328
- *
15329
- * Events that will be emitted by the component.
15330
- *
15331
- * - `qti-request-navigation`: undefined
15332
15317
  */
15333
15318
  "test-item-link": Partial<
15334
15319
  TestItemLinkProps &
@@ -15624,12 +15609,6 @@ export type CustomElementsSolidJs = {
15624
15609
  * - `role`: undefined (property only)
15625
15610
  * - `ariaLabel`: undefined (property only)
15626
15611
  *
15627
- * ## Events
15628
- *
15629
- * Events that will be emitted by the component.
15630
- *
15631
- * - `qti-request-navigation`: undefined
15632
- *
15633
15612
  * ## Methods
15634
15613
  *
15635
15614
  * Methods that can be called to access component functionality.
@@ -15671,12 +15650,6 @@ export type CustomElementsSolidJs = {
15671
15650
  * - `sectionItems`: undefined (property only)
15672
15651
  * - `itemIndex`: undefined (property only)
15673
15652
  *
15674
- * ## Events
15675
- *
15676
- * Events that will be emitted by the component.
15677
- *
15678
- * - `qti-request-navigation`: undefined
15679
- *
15680
15653
  * ## Methods
15681
15654
  *
15682
15655
  * Methods that can be called to access component functionality.
@@ -15730,12 +15703,6 @@ export type CustomElementsSolidJs = {
15730
15703
  * - `view`: undefined
15731
15704
  * - `disabled`: undefined
15732
15705
  * - `myTemplate`: undefined (property only)
15733
- *
15734
- * ## Events
15735
- *
15736
- * Events that will be emitted by the component.
15737
- *
15738
- * - `test-update-outcome-variable`: undefined
15739
15706
  */
15740
15707
  "test-scoring-buttons": Partial<
15741
15708
  TestScoringButtonsProps &
@@ -15787,12 +15754,6 @@ export type CustomElementsSolidJs = {
15787
15754
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15788
15755
  *
15789
15756
  * - `section-id`/`sectionId`: undefined
15790
- *
15791
- * ## Events
15792
- *
15793
- * Events that will be emitted by the component.
15794
- *
15795
- * - `qti-request-navigation`: undefined
15796
15757
  */
15797
15758
  "test-section-link": Partial<
15798
15759
  TestSectionLinkProps &
@@ -15832,12 +15793,6 @@ export type CustomElementsSolidJs = {
15832
15793
  *
15833
15794
  * - `label`: label accompanying the select view dropdown
15834
15795
  * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
15835
- *
15836
- * ## Events
15837
- *
15838
- * Events that will be emitted by the component.
15839
- *
15840
- * - `on-test-switch-view`: undefined
15841
15796
  */
15842
15797
  "test-view": Partial<
15843
15798
  TestViewProps & TestViewSolidJsProps & BaseProps<TestView> & BaseEvents
@@ -15852,12 +15807,6 @@ export type CustomElementsSolidJs = {
15852
15807
  *
15853
15808
  * - `myTemplate`: undefined (property only)
15854
15809
  *
15855
- * ## Events
15856
- *
15857
- * Events that will be emitted by the component.
15858
- *
15859
- * - `on-test-switch-view`: undefined
15860
- *
15861
15810
  * ## Methods
15862
15811
  *
15863
15812
  * Methods that can be called to access component functionality.
@@ -18076,8 +18025,6 @@ export type CustomElementsSolidJs = {
18076
18025
  *
18077
18026
  * - `qti-assessment-item-connected`: undefined
18078
18027
  * - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
18079
- * - `qti-interaction-changed`: undefined
18080
- * - `qti-outcome-changed`: undefined
18081
18028
  *
18082
18029
  * ## Methods
18083
18030
  *