@citolab/qti-components 9.3.0 → 9.4.0
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.
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +217 -204
- package/dist/base.d.ts +10 -10
- package/dist/base.js +1 -1
- package/dist/{chunk-G5RQ5GKG.js → chunk-3BAQWO5C.js} +2 -2
- package/dist/{chunk-ZG7FBQFP.js → chunk-ACRN7YJM.js} +2 -2
- package/dist/{chunk-JLZCZVRX.js → chunk-B5XHZI2P.js} +2 -2
- package/dist/{chunk-RAJQKCQ3.js → chunk-B74SYQB2.js} +2 -2
- package/dist/{chunk-YIYHCHHM.js → chunk-BMXG7D2N.js} +2 -2
- package/dist/{chunk-FG5JAWSN.js → chunk-C3JPUV36.js} +2 -2
- package/dist/{chunk-TDWLV5OD.js → chunk-GNTO3IFM.js} +559 -251
- package/dist/chunk-GNTO3IFM.js.map +1 -0
- package/dist/{chunk-7VDR765S.js → chunk-JHPQJDAV.js} +2 -2
- package/dist/{chunk-CQHGVPOT.js → chunk-LKHRHFXO.js} +6 -6
- package/dist/{chunk-JGPWBIVD.js → chunk-MSGYZE6L.js} +2 -2
- package/dist/{chunk-YVZWNLF4.js → chunk-R7MMMDP7.js} +139 -18
- package/dist/chunk-R7MMMDP7.js.map +1 -0
- package/dist/{chunk-REKCRWJV.js → chunk-XEWGFAS4.js} +166 -104
- package/dist/chunk-XEWGFAS4.js.map +1 -0
- package/dist/{computed.types.d-DB5gfOh9.d.ts → computed.types.d-gJrBeUMG.d.ts} +1 -1
- package/dist/corrections.d.ts +9 -9
- package/dist/corrections.js +7 -7
- package/dist/elements.d.ts +46 -6
- package/dist/elements.js +5 -3
- package/dist/index.d.ts +12 -12
- package/dist/index.js +16 -12
- package/dist/{interaction.d-DegNJ5ZA.d.ts → interaction.d-g6XG0T0Z.d.ts} +2 -2
- package/dist/interactions.d.ts +4 -4
- package/dist/interactions.js +3 -3
- package/dist/item.d.ts +4 -4
- package/dist/item.js +3 -3
- package/dist/{item.types.d-BDFrq19E.d.ts → item.types.d-B55QkJ92.d.ts} +10 -0
- package/dist/loader.d.ts +2 -2
- package/dist/processing.d.ts +3 -3
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +353 -266
- package/dist/{qti-condition-expression.d-DLboq8bR.d.ts → qti-condition-expression.d-L7yb3Rzy.d.ts} +1 -1
- package/dist/{qti-expression.d-BksT9iLB.d.ts → qti-expression.d-CuaLjZ6g.d.ts} +1 -1
- package/dist/{qti-feedback.d-D-w6-mJv.d.ts → qti-feedback.d-wMYNVkkj.d.ts} +2 -3
- package/dist/{qti-item.d-D_-9_0e6.d.ts → qti-item.d-DgC1AQbY.d.ts} +1 -1
- package/dist/{qti-test.d-D-ELy0Mr.d.ts → qti-test.d-Cud5Gvy0.d.ts} +204 -42
- package/dist/{qti-text-entry-interaction.d-CATtcPyX.d.ts → qti-text-entry-interaction.d-DKvz9ncv.d.ts} +2 -2
- package/dist/{session.context.d-Cjs0BkJB.d.ts → session.context.d-D5080LVx.d.ts} +3 -1
- package/dist/test.d.ts +58 -11
- package/dist/test.js +6 -4
- package/package.json +4 -4
- package/dist/chunk-REKCRWJV.js.map +0 -1
- package/dist/chunk-TDWLV5OD.js.map +0 -1
- package/dist/chunk-YVZWNLF4.js.map +0 -1
- /package/dist/{chunk-G5RQ5GKG.js.map → chunk-3BAQWO5C.js.map} +0 -0
- /package/dist/{chunk-ZG7FBQFP.js.map → chunk-ACRN7YJM.js.map} +0 -0
- /package/dist/{chunk-JLZCZVRX.js.map → chunk-B5XHZI2P.js.map} +0 -0
- /package/dist/{chunk-RAJQKCQ3.js.map → chunk-B74SYQB2.js.map} +0 -0
- /package/dist/{chunk-YIYHCHHM.js.map → chunk-BMXG7D2N.js.map} +0 -0
- /package/dist/{chunk-FG5JAWSN.js.map → chunk-C3JPUV36.js.map} +0 -0
- /package/dist/{chunk-7VDR765S.js.map → chunk-JHPQJDAV.js.map} +0 -0
- /package/dist/{chunk-CQHGVPOT.js.map → chunk-LKHRHFXO.js.map} +0 -0
- /package/dist/{chunk-JGPWBIVD.js.map → chunk-MSGYZE6L.js.map} +0 -0
|
@@ -16,6 +16,7 @@ import type {
|
|
|
16
16
|
QtiTemplateProcessing,
|
|
17
17
|
QtiResponseProcessing,
|
|
18
18
|
QtiAssessmentItem,
|
|
19
|
+
QtiAssessmentStimulus,
|
|
19
20
|
QtiAssessmentStimulusRef,
|
|
20
21
|
QtiAssessmentStimulusRefConnectedEvent,
|
|
21
22
|
QtiCompanionMaterialsInfo,
|
|
@@ -69,9 +70,9 @@ import type {
|
|
|
69
70
|
QtiUploadInteraction,
|
|
70
71
|
} from "./interactions.js";
|
|
71
72
|
import type {
|
|
73
|
+
QtiAssessmentTest,
|
|
72
74
|
QtiAssessmentItemRef,
|
|
73
75
|
QtiAssessmentSection,
|
|
74
|
-
QtiAssessmentTest,
|
|
75
76
|
QtiItemSessionControl,
|
|
76
77
|
QtiNumberSelected,
|
|
77
78
|
QtiOutcomeProcessing,
|
|
@@ -80,7 +81,6 @@ import type {
|
|
|
80
81
|
QtiTestPart,
|
|
81
82
|
QtiTestVariables,
|
|
82
83
|
QtiTestVariablesExpression,
|
|
83
|
-
TestNavigation,
|
|
84
84
|
TestContainer,
|
|
85
85
|
QtiTest,
|
|
86
86
|
TestCheckItem,
|
|
@@ -96,6 +96,7 @@ import type {
|
|
|
96
96
|
TestItemToSpeech,
|
|
97
97
|
SpeechState,
|
|
98
98
|
ttsContext,
|
|
99
|
+
TestNavigation,
|
|
99
100
|
TestNext,
|
|
100
101
|
TestPagingButtonsStamp,
|
|
101
102
|
TestPrev,
|
|
@@ -333,9 +334,11 @@ export type QtiAssessmentItemProps = {
|
|
|
333
334
|
timeDependent?: QtiAssessmentItem["timeDependent"] | undefined;
|
|
334
335
|
/** */
|
|
335
336
|
title?: QtiAssessmentItem["title"] | undefined;
|
|
336
|
-
/**
|
|
337
|
+
/** Locks the item, for example once it is submitted. Published in the item context, which the
|
|
338
|
+
interactions inside follow, so the item keeps no list of them to set it on. */
|
|
337
339
|
disabled?: QtiAssessmentItem["disabled"] | undefined;
|
|
338
|
-
/**
|
|
340
|
+
/** Shows the item for reading only. Published in the item context, which the interactions inside
|
|
341
|
+
follow, so the item keeps no list of them to set it on. */
|
|
339
342
|
readonly?: QtiAssessmentItem["readonly"] | undefined;
|
|
340
343
|
/** Sets the identifier for the assessment item reference if this item is in a test. */
|
|
341
344
|
assessmentItemRefId?: QtiAssessmentItem["assessmentItemRefId"] | undefined;
|
|
@@ -367,9 +370,11 @@ export type QtiAssessmentItemSolidJsProps = {
|
|
|
367
370
|
"prop:timeDependent"?: QtiAssessmentItem["timeDependent"] | undefined;
|
|
368
371
|
/** */
|
|
369
372
|
"prop:title"?: QtiAssessmentItem["title"] | undefined;
|
|
370
|
-
/**
|
|
373
|
+
/** Locks the item, for example once it is submitted. Published in the item context, which the
|
|
374
|
+
interactions inside follow, so the item keeps no list of them to set it on. */
|
|
371
375
|
"prop:disabled"?: QtiAssessmentItem["disabled"] | undefined;
|
|
372
|
-
/**
|
|
376
|
+
/** Shows the item for reading only. Published in the item context, which the interactions inside
|
|
377
|
+
follow, so the item keeps no list of them to set it on. */
|
|
373
378
|
"prop:readonly"?: QtiAssessmentItem["readonly"] | undefined;
|
|
374
379
|
/** Sets the identifier for the assessment item reference if this item is in a test. */
|
|
375
380
|
"prop:assessmentItemRefId"?:
|
|
@@ -396,6 +401,15 @@ export type QtiAssessmentItemSolidJsProps = {
|
|
|
396
401
|
textContent?: string | number | undefined;
|
|
397
402
|
};
|
|
398
403
|
|
|
404
|
+
export type QtiAssessmentStimulusProps = {};
|
|
405
|
+
|
|
406
|
+
export type QtiAssessmentStimulusSolidJsProps = {
|
|
407
|
+
/** Set the innerHTML of the element */
|
|
408
|
+
innerHTML?: string | undefined;
|
|
409
|
+
/** Set the textContent of the element */
|
|
410
|
+
textContent?: string | number | undefined;
|
|
411
|
+
};
|
|
412
|
+
|
|
399
413
|
export type QtiAssessmentStimulusRefProps = {
|
|
400
414
|
/** */
|
|
401
415
|
identifier?: QtiAssessmentStimulusRef["identifier"] | undefined;
|
|
@@ -484,9 +498,6 @@ export type QtiFeedbackBlockProps = {
|
|
|
484
498
|
identifier?: QtiFeedbackBlock["identifier"] | undefined;
|
|
485
499
|
/** */
|
|
486
500
|
showStatus?: QtiFeedbackBlock["showStatus"] | undefined;
|
|
487
|
-
|
|
488
|
-
/** */
|
|
489
|
-
"onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
|
|
490
501
|
};
|
|
491
502
|
|
|
492
503
|
export type QtiFeedbackBlockSolidJsProps = {
|
|
@@ -502,8 +513,6 @@ export type QtiFeedbackBlockSolidJsProps = {
|
|
|
502
513
|
"prop:identifier"?: QtiFeedbackBlock["identifier"] | undefined;
|
|
503
514
|
/** */
|
|
504
515
|
"prop:showStatus"?: QtiFeedbackBlock["showStatus"] | undefined;
|
|
505
|
-
/** */
|
|
506
|
-
"on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
|
|
507
516
|
|
|
508
517
|
/** Set the innerHTML of the element */
|
|
509
518
|
innerHTML?: string | undefined;
|
|
@@ -524,9 +533,6 @@ export type QtiFeedbackInlineProps = {
|
|
|
524
533
|
identifier?: QtiFeedbackInline["identifier"] | undefined;
|
|
525
534
|
/** */
|
|
526
535
|
showStatus?: QtiFeedbackInline["showStatus"] | undefined;
|
|
527
|
-
|
|
528
|
-
/** */
|
|
529
|
-
"onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
|
|
530
536
|
};
|
|
531
537
|
|
|
532
538
|
export type QtiFeedbackInlineSolidJsProps = {
|
|
@@ -544,8 +550,6 @@ export type QtiFeedbackInlineSolidJsProps = {
|
|
|
544
550
|
"prop:identifier"?: QtiFeedbackInline["identifier"] | undefined;
|
|
545
551
|
/** */
|
|
546
552
|
"prop:showStatus"?: QtiFeedbackInline["showStatus"] | undefined;
|
|
547
|
-
/** */
|
|
548
|
-
"on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
|
|
549
553
|
|
|
550
554
|
/** Set the innerHTML of the element */
|
|
551
555
|
innerHTML?: string | undefined;
|
|
@@ -575,9 +579,6 @@ export type QtiModalFeedbackProps = {
|
|
|
575
579
|
identifier?: QtiModalFeedback["identifier"] | undefined;
|
|
576
580
|
/** */
|
|
577
581
|
showStatus?: QtiModalFeedback["showStatus"] | undefined;
|
|
578
|
-
|
|
579
|
-
/** */
|
|
580
|
-
"onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
|
|
581
582
|
};
|
|
582
583
|
|
|
583
584
|
export type QtiModalFeedbackSolidJsProps = {
|
|
@@ -593,8 +594,6 @@ export type QtiModalFeedbackSolidJsProps = {
|
|
|
593
594
|
"prop:identifier"?: QtiModalFeedback["identifier"] | undefined;
|
|
594
595
|
/** */
|
|
595
596
|
"prop:showStatus"?: QtiModalFeedback["showStatus"] | undefined;
|
|
596
|
-
/** */
|
|
597
|
-
"on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
|
|
598
597
|
|
|
599
598
|
/** Set the innerHTML of the element */
|
|
600
599
|
innerHTML?: string | undefined;
|
|
@@ -4152,6 +4151,34 @@ casts, rather than pretending at an encapsulation the type system was the only t
|
|
|
4152
4151
|
textContent?: string | number | undefined;
|
|
4153
4152
|
};
|
|
4154
4153
|
|
|
4154
|
+
export type QtiAssessmentTestProps = {
|
|
4155
|
+
/** */
|
|
4156
|
+
identifier?: QtiAssessmentTest["identifier"] | undefined;
|
|
4157
|
+
/** */
|
|
4158
|
+
title?: QtiAssessmentTest["title"] | undefined;
|
|
4159
|
+
/** */
|
|
4160
|
+
_testContext?: QtiAssessmentTest["_testContext"] | undefined;
|
|
4161
|
+
|
|
4162
|
+
/** */
|
|
4163
|
+
"onqti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
|
|
4164
|
+
};
|
|
4165
|
+
|
|
4166
|
+
export type QtiAssessmentTestSolidJsProps = {
|
|
4167
|
+
/** */
|
|
4168
|
+
"prop:identifier"?: QtiAssessmentTest["identifier"] | undefined;
|
|
4169
|
+
/** */
|
|
4170
|
+
"prop:title"?: QtiAssessmentTest["title"] | undefined;
|
|
4171
|
+
/** */
|
|
4172
|
+
"prop:_testContext"?: QtiAssessmentTest["_testContext"] | undefined;
|
|
4173
|
+
/** */
|
|
4174
|
+
"on:qti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
|
|
4175
|
+
|
|
4176
|
+
/** Set the innerHTML of the element */
|
|
4177
|
+
innerHTML?: string | undefined;
|
|
4178
|
+
/** Set the textContent of the element */
|
|
4179
|
+
textContent?: string | number | undefined;
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4155
4182
|
export type QtiAssessmentItemRefProps = {
|
|
4156
4183
|
/** */
|
|
4157
4184
|
category?: QtiAssessmentItemRef["category"] | undefined;
|
|
@@ -4264,34 +4291,6 @@ export type QtiAssessmentSectionSolidJsProps = {
|
|
|
4264
4291
|
textContent?: string | number | undefined;
|
|
4265
4292
|
};
|
|
4266
4293
|
|
|
4267
|
-
export type QtiAssessmentTestProps = {
|
|
4268
|
-
/** */
|
|
4269
|
-
identifier?: QtiAssessmentTest["identifier"] | undefined;
|
|
4270
|
-
/** */
|
|
4271
|
-
title?: QtiAssessmentTest["title"] | undefined;
|
|
4272
|
-
/** */
|
|
4273
|
-
_testContext?: QtiAssessmentTest["_testContext"] | undefined;
|
|
4274
|
-
|
|
4275
|
-
/** */
|
|
4276
|
-
"onqti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
|
|
4277
|
-
};
|
|
4278
|
-
|
|
4279
|
-
export type QtiAssessmentTestSolidJsProps = {
|
|
4280
|
-
/** */
|
|
4281
|
-
"prop:identifier"?: QtiAssessmentTest["identifier"] | undefined;
|
|
4282
|
-
/** */
|
|
4283
|
-
"prop:title"?: QtiAssessmentTest["title"] | undefined;
|
|
4284
|
-
/** */
|
|
4285
|
-
"prop:_testContext"?: QtiAssessmentTest["_testContext"] | undefined;
|
|
4286
|
-
/** */
|
|
4287
|
-
"on:qti-assessment-test-connected"?: ((e: CustomEvent) => void) | 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
|
-
|
|
4295
4294
|
export type QtiItemSessionControlProps = {
|
|
4296
4295
|
/** */
|
|
4297
4296
|
"max-attempts"?: QtiItemSessionControl["maxAttempts"] | undefined;
|
|
@@ -4409,9 +4408,6 @@ export type QtiTestFeedbackProps = {
|
|
|
4409
4408
|
identifier?: QtiTestFeedback["identifier"] | undefined;
|
|
4410
4409
|
/** */
|
|
4411
4410
|
showStatus?: QtiTestFeedback["showStatus"] | undefined;
|
|
4412
|
-
|
|
4413
|
-
/** */
|
|
4414
|
-
"onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
|
|
4415
4411
|
};
|
|
4416
4412
|
|
|
4417
4413
|
export type QtiTestFeedbackSolidJsProps = {
|
|
@@ -4427,8 +4423,6 @@ export type QtiTestFeedbackSolidJsProps = {
|
|
|
4427
4423
|
"prop:identifier"?: QtiTestFeedback["identifier"] | undefined;
|
|
4428
4424
|
/** */
|
|
4429
4425
|
"prop:showStatus"?: QtiTestFeedback["showStatus"] | undefined;
|
|
4430
|
-
/** */
|
|
4431
|
-
"on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
|
|
4432
4426
|
|
|
4433
4427
|
/** Set the innerHTML of the element */
|
|
4434
4428
|
innerHTML?: string | undefined;
|
|
@@ -4495,46 +4489,6 @@ export type QtiTestVariablesSolidJsProps = {
|
|
|
4495
4489
|
textContent?: string | number | undefined;
|
|
4496
4490
|
};
|
|
4497
4491
|
|
|
4498
|
-
export type TestNavigationProps = {
|
|
4499
|
-
/** */
|
|
4500
|
-
identifier?: TestNavigation["identifier"] | undefined;
|
|
4501
|
-
/** */
|
|
4502
|
-
"auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
|
|
4503
|
-
/** */
|
|
4504
|
-
autoScoreItems?: TestNavigation["autoScoreItems"] | undefined;
|
|
4505
|
-
/** */
|
|
4506
|
-
initContext?: TestNavigation["initContext"] | undefined;
|
|
4507
|
-
/** */
|
|
4508
|
-
qtiContext?: TestNavigation["qtiContext"] | undefined;
|
|
4509
|
-
/** */
|
|
4510
|
-
configContext?: TestNavigation["configContext"] | undefined;
|
|
4511
|
-
|
|
4512
|
-
/** */
|
|
4513
|
-
"onqti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
|
|
4514
|
-
};
|
|
4515
|
-
|
|
4516
|
-
export type TestNavigationSolidJsProps = {
|
|
4517
|
-
/** */
|
|
4518
|
-
"prop:identifier"?: TestNavigation["identifier"] | undefined;
|
|
4519
|
-
/** */
|
|
4520
|
-
"bool:auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
|
|
4521
|
-
/** */
|
|
4522
|
-
"prop:autoScoreItems"?: TestNavigation["autoScoreItems"] | undefined;
|
|
4523
|
-
/** */
|
|
4524
|
-
"prop:initContext"?: TestNavigation["initContext"] | undefined;
|
|
4525
|
-
/** */
|
|
4526
|
-
"prop:qtiContext"?: TestNavigation["qtiContext"] | undefined;
|
|
4527
|
-
/** */
|
|
4528
|
-
"prop:configContext"?: TestNavigation["configContext"] | undefined;
|
|
4529
|
-
/** */
|
|
4530
|
-
"on:qti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
|
|
4531
|
-
|
|
4532
|
-
/** Set the innerHTML of the element */
|
|
4533
|
-
innerHTML?: string | undefined;
|
|
4534
|
-
/** Set the textContent of the element */
|
|
4535
|
-
textContent?: string | number | undefined;
|
|
4536
|
-
};
|
|
4537
|
-
|
|
4538
4492
|
export type TestContainerProps = {
|
|
4539
4493
|
/** URL of the item to load */
|
|
4540
4494
|
"test-url"?: TestContainer["testURL"] | undefined;
|
|
@@ -4576,16 +4530,42 @@ export type TestContainerSolidJsProps = {
|
|
|
4576
4530
|
export type QtiTestProps = {
|
|
4577
4531
|
/** */
|
|
4578
4532
|
configContext?: QtiTest["configContext"] | undefined;
|
|
4533
|
+
/** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
|
|
4534
|
+
everything inside reads one value: the test-container shuffling the item order, the test
|
|
4535
|
+
shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
|
|
4536
|
+
|
|
4537
|
+
Pass the same `seed` when resuming a session, or the order comes back different. Replace the
|
|
4538
|
+
object, do not mutate it: an in-place change does not notify the components inside.
|
|
4539
|
+
|
|
4540
|
+
`test-navigation.qtiContext` is an alias of this. */
|
|
4541
|
+
qtiContext?: QtiTest["qtiContext"] | undefined;
|
|
4579
4542
|
|
|
4580
4543
|
/** */
|
|
4581
4544
|
"onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
|
|
4545
|
+
/** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
|
|
4546
|
+
"onqti-state-changed"?: ((e: Event) => void) | undefined;
|
|
4547
|
+
/** Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
|
|
4548
|
+
"onqti-test-context-updated"?: ((e: Event) => void) | undefined;
|
|
4582
4549
|
};
|
|
4583
4550
|
|
|
4584
4551
|
export type QtiTestSolidJsProps = {
|
|
4585
4552
|
/** */
|
|
4586
4553
|
"prop:configContext"?: QtiTest["configContext"] | undefined;
|
|
4554
|
+
/** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
|
|
4555
|
+
everything inside reads one value: the test-container shuffling the item order, the test
|
|
4556
|
+
shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
|
|
4557
|
+
|
|
4558
|
+
Pass the same `seed` when resuming a session, or the order comes back different. Replace the
|
|
4559
|
+
object, do not mutate it: an in-place change does not notify the components inside.
|
|
4560
|
+
|
|
4561
|
+
`test-navigation.qtiContext` is an alias of this. */
|
|
4562
|
+
"prop:qtiContext"?: QtiTest["qtiContext"] | undefined;
|
|
4587
4563
|
/** */
|
|
4588
4564
|
"on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
|
|
4565
|
+
/** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
|
|
4566
|
+
"on:qti-state-changed"?: ((e: Event) => void) | undefined;
|
|
4567
|
+
/** Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
|
|
4568
|
+
"on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
|
|
4589
4569
|
|
|
4590
4570
|
/** Set the innerHTML of the element */
|
|
4591
4571
|
innerHTML?: string | undefined;
|
|
@@ -4648,12 +4628,6 @@ export type TestItemLinkSolidJsProps = {
|
|
|
4648
4628
|
export type TestItemToSpeechProps = {
|
|
4649
4629
|
/** Fallback language when neither the item content nor the document declares one. */
|
|
4650
4630
|
language?: TestItemToSpeech["language"] | undefined;
|
|
4651
|
-
/** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
4652
|
-
navigation cursor (`navItemRefId`) instead. */
|
|
4653
|
-
"item-ref-id"?: TestItemToSpeech["itemRefId"] | undefined;
|
|
4654
|
-
/** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
4655
|
-
navigation cursor (`navItemRefId`) instead. */
|
|
4656
|
-
itemRefId?: TestItemToSpeech["itemRefId"] | undefined;
|
|
4657
4631
|
/** */
|
|
4658
4632
|
_ttsContext?: TestItemToSpeech["_ttsContext"] | undefined;
|
|
4659
4633
|
};
|
|
@@ -4661,12 +4635,6 @@ navigation cursor (`navItemRefId`) instead. */
|
|
|
4661
4635
|
export type TestItemToSpeechSolidJsProps = {
|
|
4662
4636
|
/** Fallback language when neither the item content nor the document declares one. */
|
|
4663
4637
|
"prop:language"?: TestItemToSpeech["language"] | undefined;
|
|
4664
|
-
/** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
4665
|
-
navigation cursor (`navItemRefId`) instead. */
|
|
4666
|
-
"attr:item-ref-id"?: TestItemToSpeech["itemRefId"] | undefined;
|
|
4667
|
-
/** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
4668
|
-
navigation cursor (`navItemRefId`) instead. */
|
|
4669
|
-
"prop:itemRefId"?: TestItemToSpeech["itemRefId"] | undefined;
|
|
4670
4638
|
/** */
|
|
4671
4639
|
"prop:_ttsContext"?: TestItemToSpeech["_ttsContext"] | undefined;
|
|
4672
4640
|
|
|
@@ -4817,6 +4785,54 @@ which has no text to be named by. */
|
|
|
4817
4785
|
textContent?: string | number | undefined;
|
|
4818
4786
|
};
|
|
4819
4787
|
|
|
4788
|
+
export type TestNavigationProps = {
|
|
4789
|
+
/** */
|
|
4790
|
+
identifier?: TestNavigation["identifier"] | undefined;
|
|
4791
|
+
/** */
|
|
4792
|
+
"auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
|
|
4793
|
+
/** */
|
|
4794
|
+
autoScoreItems?: TestNavigation["autoScoreItems"] | undefined;
|
|
4795
|
+
/** */
|
|
4796
|
+
initContext?: TestNavigation["initContext"] | undefined;
|
|
4797
|
+
/** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
|
|
4798
|
+
enclosing test's: reading returns it, writing replaces it, so a host that has always set the
|
|
4799
|
+
shuffle seed here keeps working. Removed in the next major.
|
|
4800
|
+
|
|
4801
|
+
Written before the navigation is inside a test, it waits and is handed over on connect. */
|
|
4802
|
+
qtiContext?: TestNavigation["qtiContext"] | undefined;
|
|
4803
|
+
/** */
|
|
4804
|
+
configContext?: TestNavigation["configContext"] | undefined;
|
|
4805
|
+
|
|
4806
|
+
/** */
|
|
4807
|
+
"onqti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
|
|
4808
|
+
};
|
|
4809
|
+
|
|
4810
|
+
export type TestNavigationSolidJsProps = {
|
|
4811
|
+
/** */
|
|
4812
|
+
"prop:identifier"?: TestNavigation["identifier"] | undefined;
|
|
4813
|
+
/** */
|
|
4814
|
+
"bool:auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
|
|
4815
|
+
/** */
|
|
4816
|
+
"prop:autoScoreItems"?: TestNavigation["autoScoreItems"] | undefined;
|
|
4817
|
+
/** */
|
|
4818
|
+
"prop:initContext"?: TestNavigation["initContext"] | undefined;
|
|
4819
|
+
/** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
|
|
4820
|
+
enclosing test's: reading returns it, writing replaces it, so a host that has always set the
|
|
4821
|
+
shuffle seed here keeps working. Removed in the next major.
|
|
4822
|
+
|
|
4823
|
+
Written before the navigation is inside a test, it waits and is handed over on connect. */
|
|
4824
|
+
"prop:qtiContext"?: TestNavigation["qtiContext"] | undefined;
|
|
4825
|
+
/** */
|
|
4826
|
+
"prop:configContext"?: TestNavigation["configContext"] | undefined;
|
|
4827
|
+
/** */
|
|
4828
|
+
"on:qti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
|
|
4829
|
+
|
|
4830
|
+
/** Set the innerHTML of the element */
|
|
4831
|
+
innerHTML?: string | undefined;
|
|
4832
|
+
/** Set the textContent of the element */
|
|
4833
|
+
textContent?: string | number | undefined;
|
|
4834
|
+
};
|
|
4835
|
+
|
|
4820
4836
|
export type TestNextProps = {
|
|
4821
4837
|
/** */
|
|
4822
4838
|
disabled?: TestNext["_internalDisabled"] | undefined;
|
|
@@ -6259,9 +6275,11 @@ export type QtiAssessmentItemCorrectionProps = {
|
|
|
6259
6275
|
timeDependent?: QtiAssessmentItemCorrection["timeDependent"] | undefined;
|
|
6260
6276
|
/** */
|
|
6261
6277
|
title?: QtiAssessmentItemCorrection["title"] | undefined;
|
|
6262
|
-
/**
|
|
6278
|
+
/** Locks the item, for example once it is submitted. Published in the item context, which the
|
|
6279
|
+
interactions inside follow, so the item keeps no list of them to set it on. */
|
|
6263
6280
|
disabled?: QtiAssessmentItemCorrection["disabled"] | undefined;
|
|
6264
|
-
/**
|
|
6281
|
+
/** Shows the item for reading only. Published in the item context, which the interactions inside
|
|
6282
|
+
follow, so the item keeps no list of them to set it on. */
|
|
6265
6283
|
readonly?: QtiAssessmentItemCorrection["readonly"] | undefined;
|
|
6266
6284
|
/** Sets the identifier for the assessment item reference if this item is in a test. */
|
|
6267
6285
|
assessmentItemRefId?:
|
|
@@ -6299,9 +6317,11 @@ export type QtiAssessmentItemCorrectionSolidJsProps = {
|
|
|
6299
6317
|
| undefined;
|
|
6300
6318
|
/** */
|
|
6301
6319
|
"prop:title"?: QtiAssessmentItemCorrection["title"] | undefined;
|
|
6302
|
-
/**
|
|
6320
|
+
/** Locks the item, for example once it is submitted. Published in the item context, which the
|
|
6321
|
+
interactions inside follow, so the item keeps no list of them to set it on. */
|
|
6303
6322
|
"prop:disabled"?: QtiAssessmentItemCorrection["disabled"] | undefined;
|
|
6304
|
-
/**
|
|
6323
|
+
/** Shows the item for reading only. Published in the item context, which the interactions inside
|
|
6324
|
+
follow, so the item keeps no list of them to set it on. */
|
|
6305
6325
|
"prop:readonly"?: QtiAssessmentItemCorrection["readonly"] | undefined;
|
|
6306
6326
|
/** Sets the identifier for the assessment item reference if this item is in a test. */
|
|
6307
6327
|
"prop:assessmentItemRefId"?:
|
|
@@ -6362,7 +6382,11 @@ export type TestNavigationCorrectionProps = {
|
|
|
6362
6382
|
autoScoreItems?: TestNavigationCorrection["autoScoreItems"] | undefined;
|
|
6363
6383
|
/** */
|
|
6364
6384
|
initContext?: TestNavigationCorrection["initContext"] | undefined;
|
|
6365
|
-
/**
|
|
6385
|
+
/** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
|
|
6386
|
+
enclosing test's: reading returns it, writing replaces it, so a host that has always set the
|
|
6387
|
+
shuffle seed here keeps working. Removed in the next major.
|
|
6388
|
+
|
|
6389
|
+
Written before the navigation is inside a test, it waits and is handed over on connect. */
|
|
6366
6390
|
qtiContext?: TestNavigationCorrection["qtiContext"] | undefined;
|
|
6367
6391
|
/** */
|
|
6368
6392
|
configContext?: TestNavigationCorrection["configContext"] | undefined;
|
|
@@ -6384,7 +6408,11 @@ export type TestNavigationCorrectionSolidJsProps = {
|
|
|
6384
6408
|
| undefined;
|
|
6385
6409
|
/** */
|
|
6386
6410
|
"prop:initContext"?: TestNavigationCorrection["initContext"] | undefined;
|
|
6387
|
-
/**
|
|
6411
|
+
/** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
|
|
6412
|
+
enclosing test's: reading returns it, writing replaces it, so a host that has always set the
|
|
6413
|
+
shuffle seed here keeps working. Removed in the next major.
|
|
6414
|
+
|
|
6415
|
+
Written before the navigation is inside a test, it waits and is handed over on connect. */
|
|
6388
6416
|
"prop:qtiContext"?: TestNavigationCorrection["qtiContext"] | undefined;
|
|
6389
6417
|
/** */
|
|
6390
6418
|
"prop:configContext"?: TestNavigationCorrection["configContext"] | undefined;
|
|
@@ -6400,16 +6428,42 @@ export type TestNavigationCorrectionSolidJsProps = {
|
|
|
6400
6428
|
export type QtiTestCorrectionProps = {
|
|
6401
6429
|
/** */
|
|
6402
6430
|
configContext?: QtiTestCorrection["configContext"] | undefined;
|
|
6431
|
+
/** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
|
|
6432
|
+
everything inside reads one value: the test-container shuffling the item order, the test
|
|
6433
|
+
shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
|
|
6434
|
+
|
|
6435
|
+
Pass the same `seed` when resuming a session, or the order comes back different. Replace the
|
|
6436
|
+
object, do not mutate it: an in-place change does not notify the components inside.
|
|
6437
|
+
|
|
6438
|
+
`test-navigation.qtiContext` is an alias of this. */
|
|
6439
|
+
qtiContext?: QtiTestCorrection["qtiContext"] | undefined;
|
|
6403
6440
|
|
|
6404
6441
|
/** */
|
|
6405
6442
|
"onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
|
|
6443
|
+
/** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
|
|
6444
|
+
"onqti-state-changed"?: ((e: Event) => void) | undefined;
|
|
6445
|
+
/** Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
|
|
6446
|
+
"onqti-test-context-updated"?: ((e: Event) => void) | undefined;
|
|
6406
6447
|
};
|
|
6407
6448
|
|
|
6408
6449
|
export type QtiTestCorrectionSolidJsProps = {
|
|
6409
6450
|
/** */
|
|
6410
6451
|
"prop:configContext"?: QtiTestCorrection["configContext"] | undefined;
|
|
6452
|
+
/** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
|
|
6453
|
+
everything inside reads one value: the test-container shuffling the item order, the test
|
|
6454
|
+
shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
|
|
6455
|
+
|
|
6456
|
+
Pass the same `seed` when resuming a session, or the order comes back different. Replace the
|
|
6457
|
+
object, do not mutate it: an in-place change does not notify the components inside.
|
|
6458
|
+
|
|
6459
|
+
`test-navigation.qtiContext` is an alias of this. */
|
|
6460
|
+
"prop:qtiContext"?: QtiTestCorrection["qtiContext"] | undefined;
|
|
6411
6461
|
/** */
|
|
6412
6462
|
"on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
|
|
6463
|
+
/** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
|
|
6464
|
+
"on:qti-state-changed"?: ((e: Event) => void) | undefined;
|
|
6465
|
+
/** Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
|
|
6466
|
+
"on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
|
|
6413
6467
|
|
|
6414
6468
|
/** Set the innerHTML of the element */
|
|
6415
6469
|
innerHTML?: string | undefined;
|
|
@@ -6668,9 +6722,13 @@ export type CustomElements = {
|
|
|
6668
6722
|
* - `adaptive`: undefined
|
|
6669
6723
|
* - `time-dependent`/`timeDependent`: undefined
|
|
6670
6724
|
* - `title`: undefined
|
|
6671
|
-
* - `disabled`:
|
|
6672
|
-
*
|
|
6725
|
+
* - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
|
|
6726
|
+
* interactions inside follow, so the item keeps no list of them to set it on.
|
|
6727
|
+
* - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
|
|
6728
|
+
* follow, so the item keeps no list of them to set it on.
|
|
6673
6729
|
* - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
|
|
6730
|
+
* - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
|
|
6731
|
+
* for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
|
|
6674
6732
|
* - `variables`: undefined (property only)
|
|
6675
6733
|
* - `state`: undefined (property only)
|
|
6676
6734
|
* - `responses`: undefined (property only)
|
|
@@ -6701,6 +6759,19 @@ export type CustomElements = {
|
|
|
6701
6759
|
QtiAssessmentItemProps & BaseProps<QtiAssessmentItem> & BaseEvents
|
|
6702
6760
|
>;
|
|
6703
6761
|
|
|
6762
|
+
/**
|
|
6763
|
+
*
|
|
6764
|
+
*
|
|
6765
|
+
* ## Slots
|
|
6766
|
+
*
|
|
6767
|
+
* Areas where markup can be added to the component.
|
|
6768
|
+
*
|
|
6769
|
+
* - `(default)`: stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
|
|
6770
|
+
*/
|
|
6771
|
+
"qti-assessment-stimulus": Partial<
|
|
6772
|
+
QtiAssessmentStimulusProps & BaseProps<QtiAssessmentStimulus> & BaseEvents
|
|
6773
|
+
>;
|
|
6774
|
+
|
|
6704
6775
|
/**
|
|
6705
6776
|
* Represents a custom element for referencing an assessment stimulus.
|
|
6706
6777
|
*
|
|
@@ -6813,12 +6884,6 @@ export type CustomElements = {
|
|
|
6813
6884
|
* - `identifier`: undefined
|
|
6814
6885
|
* - `showStatus`: undefined (property only)
|
|
6815
6886
|
*
|
|
6816
|
-
* ## Events
|
|
6817
|
-
*
|
|
6818
|
-
* Events that will be emitted by the component.
|
|
6819
|
-
*
|
|
6820
|
-
* - `qti-register-feedback`: undefined
|
|
6821
|
-
*
|
|
6822
6887
|
* ## Methods
|
|
6823
6888
|
*
|
|
6824
6889
|
* Methods that can be called to access component functionality.
|
|
@@ -6841,12 +6906,6 @@ export type CustomElements = {
|
|
|
6841
6906
|
* - `identifier`: undefined
|
|
6842
6907
|
* - `showStatus`: undefined (property only)
|
|
6843
6908
|
*
|
|
6844
|
-
* ## Events
|
|
6845
|
-
*
|
|
6846
|
-
* Events that will be emitted by the component.
|
|
6847
|
-
*
|
|
6848
|
-
* - `qti-register-feedback`: undefined
|
|
6849
|
-
*
|
|
6850
6909
|
* ## Methods
|
|
6851
6910
|
*
|
|
6852
6911
|
* Methods that can be called to access component functionality.
|
|
@@ -6889,12 +6948,6 @@ export type CustomElements = {
|
|
|
6889
6948
|
* - `identifier`: undefined
|
|
6890
6949
|
* - `showStatus`: undefined (property only)
|
|
6891
6950
|
*
|
|
6892
|
-
* ## Events
|
|
6893
|
-
*
|
|
6894
|
-
* Events that will be emitted by the component.
|
|
6895
|
-
*
|
|
6896
|
-
* - `qti-register-feedback`: undefined
|
|
6897
|
-
*
|
|
6898
6951
|
* ## Methods
|
|
6899
6952
|
*
|
|
6900
6953
|
* Methods that can be called to access component functionality.
|
|
@@ -9118,6 +9171,27 @@ export type CustomElements = {
|
|
|
9118
9171
|
QtiUploadInteractionProps & BaseProps<QtiUploadInteraction> & BaseEvents
|
|
9119
9172
|
>;
|
|
9120
9173
|
|
|
9174
|
+
/**
|
|
9175
|
+
*
|
|
9176
|
+
*
|
|
9177
|
+
* ## Attributes & Properties
|
|
9178
|
+
*
|
|
9179
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9180
|
+
*
|
|
9181
|
+
* - `identifier`: undefined
|
|
9182
|
+
* - `title`: undefined
|
|
9183
|
+
* - `_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
|
+
*/
|
|
9191
|
+
"qti-assessment-test": Partial<
|
|
9192
|
+
QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
|
|
9193
|
+
>;
|
|
9194
|
+
|
|
9121
9195
|
/**
|
|
9122
9196
|
*
|
|
9123
9197
|
*
|
|
@@ -9177,27 +9251,6 @@ export type CustomElements = {
|
|
|
9177
9251
|
QtiAssessmentSectionProps & BaseProps<QtiAssessmentSection> & BaseEvents
|
|
9178
9252
|
>;
|
|
9179
9253
|
|
|
9180
|
-
/**
|
|
9181
|
-
*
|
|
9182
|
-
*
|
|
9183
|
-
* ## Attributes & Properties
|
|
9184
|
-
*
|
|
9185
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9186
|
-
*
|
|
9187
|
-
* - `identifier`: undefined
|
|
9188
|
-
* - `title`: undefined
|
|
9189
|
-
* - `_testContext`: undefined (property only)
|
|
9190
|
-
*
|
|
9191
|
-
* ## Events
|
|
9192
|
-
*
|
|
9193
|
-
* Events that will be emitted by the component.
|
|
9194
|
-
*
|
|
9195
|
-
* - `qti-assessment-test-connected`: undefined
|
|
9196
|
-
*/
|
|
9197
|
-
"qti-assessment-test": Partial<
|
|
9198
|
-
QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
|
|
9199
|
-
>;
|
|
9200
|
-
|
|
9201
9254
|
/**
|
|
9202
9255
|
*
|
|
9203
9256
|
*
|
|
@@ -9281,12 +9334,6 @@ export type CustomElements = {
|
|
|
9281
9334
|
* - `identifier`: undefined
|
|
9282
9335
|
* - `showStatus`: undefined (property only)
|
|
9283
9336
|
*
|
|
9284
|
-
* ## Events
|
|
9285
|
-
*
|
|
9286
|
-
* Events that will be emitted by the component.
|
|
9287
|
-
*
|
|
9288
|
-
* - `qti-register-feedback`: undefined
|
|
9289
|
-
*
|
|
9290
9337
|
* ## Methods
|
|
9291
9338
|
*
|
|
9292
9339
|
* Methods that can be called to access component functionality.
|
|
@@ -9355,29 +9402,6 @@ export type CustomElements = {
|
|
|
9355
9402
|
QtiTestVariablesProps & BaseProps<QtiTestVariables> & BaseEvents
|
|
9356
9403
|
>;
|
|
9357
9404
|
|
|
9358
|
-
/**
|
|
9359
|
-
*
|
|
9360
|
-
*
|
|
9361
|
-
* ## Attributes & Properties
|
|
9362
|
-
*
|
|
9363
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9364
|
-
*
|
|
9365
|
-
* - `identifier`: undefined
|
|
9366
|
-
* - `auto-score-items`/`autoScoreItems`: undefined
|
|
9367
|
-
* - `initContext`: undefined (property only)
|
|
9368
|
-
* - `qtiContext`: undefined (property only)
|
|
9369
|
-
* - `configContext`: undefined (property only)
|
|
9370
|
-
*
|
|
9371
|
-
* ## Events
|
|
9372
|
-
*
|
|
9373
|
-
* Events that will be emitted by the component.
|
|
9374
|
-
*
|
|
9375
|
-
* - `qti-computed-context-updated`: undefined
|
|
9376
|
-
*/
|
|
9377
|
-
"test-navigation": Partial<
|
|
9378
|
-
TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
|
|
9379
|
-
>;
|
|
9380
|
-
|
|
9381
9405
|
/**
|
|
9382
9406
|
* `<test-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
9383
9407
|
* The `qti-assessment-test` will be placed inside the shadow DOM of this element.
|
|
@@ -9462,12 +9486,22 @@ export type CustomElements = {
|
|
|
9462
9486
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9463
9487
|
*
|
|
9464
9488
|
* - `configContext`: undefined (property only)
|
|
9489
|
+
* - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
|
|
9490
|
+
* everything inside reads one value: the test-container shuffling the item order, the test
|
|
9491
|
+
* shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
|
|
9492
|
+
*
|
|
9493
|
+
* Pass the same `seed` when resuming a session, or the order comes back different. Replace the
|
|
9494
|
+
* object, do not mutate it: an in-place change does not notify the components inside.
|
|
9495
|
+
*
|
|
9496
|
+
* `test-navigation.qtiContext` is an alias of this. (property only)
|
|
9465
9497
|
*
|
|
9466
9498
|
* ## Events
|
|
9467
9499
|
*
|
|
9468
9500
|
* Events that will be emitted by the component.
|
|
9469
9501
|
*
|
|
9470
9502
|
* - `qti-test-connected`: undefined
|
|
9503
|
+
* - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
|
|
9504
|
+
* - `qti-test-context-updated`: Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
|
|
9471
9505
|
*/
|
|
9472
9506
|
"qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
|
|
9473
9507
|
|
|
@@ -9527,8 +9561,6 @@ export type CustomElements = {
|
|
|
9527
9561
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9528
9562
|
*
|
|
9529
9563
|
* - `language`: Fallback language when neither the item content nor the document declares one.
|
|
9530
|
-
* - `item-ref-id`/`itemRefId`: Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
9531
|
-
* navigation cursor (`navItemRefId`) instead.
|
|
9532
9564
|
* - `_ttsContext`: undefined (property only)
|
|
9533
9565
|
*
|
|
9534
9566
|
* ## CSS States
|
|
@@ -9743,6 +9775,29 @@ export type CustomElements = {
|
|
|
9743
9775
|
TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
|
|
9744
9776
|
>;
|
|
9745
9777
|
|
|
9778
|
+
/**
|
|
9779
|
+
*
|
|
9780
|
+
*
|
|
9781
|
+
* ## Attributes & Properties
|
|
9782
|
+
*
|
|
9783
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9784
|
+
*
|
|
9785
|
+
* - `identifier`: undefined
|
|
9786
|
+
* - `auto-score-items`/`autoScoreItems`: undefined
|
|
9787
|
+
* - `initContext`: undefined (property only)
|
|
9788
|
+
* - `qtiContext`: undefined (property only)
|
|
9789
|
+
* - `configContext`: undefined (property only)
|
|
9790
|
+
*
|
|
9791
|
+
* ## Events
|
|
9792
|
+
*
|
|
9793
|
+
* Events that will be emitted by the component.
|
|
9794
|
+
*
|
|
9795
|
+
* - `qti-computed-context-updated`: undefined
|
|
9796
|
+
*/
|
|
9797
|
+
"test-navigation": Partial<
|
|
9798
|
+
TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
|
|
9799
|
+
>;
|
|
9800
|
+
|
|
9746
9801
|
/**
|
|
9747
9802
|
* Represents a custom element for navigating to the next test item.
|
|
9748
9803
|
*
|
|
@@ -11967,9 +12022,13 @@ export type CustomElements = {
|
|
|
11967
12022
|
* - `adaptive`: undefined
|
|
11968
12023
|
* - `time-dependent`/`timeDependent`: undefined
|
|
11969
12024
|
* - `title`: undefined
|
|
11970
|
-
* - `disabled`:
|
|
11971
|
-
*
|
|
12025
|
+
* - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
|
|
12026
|
+
* interactions inside follow, so the item keeps no list of them to set it on.
|
|
12027
|
+
* - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
|
|
12028
|
+
* follow, so the item keeps no list of them to set it on.
|
|
11972
12029
|
* - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
|
|
12030
|
+
* - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
|
|
12031
|
+
* for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
|
|
11973
12032
|
* - `variables`: undefined (property only)
|
|
11974
12033
|
* - `state`: undefined (property only)
|
|
11975
12034
|
* - `responses`: undefined (property only)
|
|
@@ -12066,12 +12125,22 @@ export type CustomElements = {
|
|
|
12066
12125
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
12067
12126
|
*
|
|
12068
12127
|
* - `configContext`: undefined (property only)
|
|
12128
|
+
* - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
|
|
12129
|
+
* everything inside reads one value: the test-container shuffling the item order, the test
|
|
12130
|
+
* shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
|
|
12131
|
+
*
|
|
12132
|
+
* Pass the same `seed` when resuming a session, or the order comes back different. Replace the
|
|
12133
|
+
* object, do not mutate it: an in-place change does not notify the components inside.
|
|
12134
|
+
*
|
|
12135
|
+
* `test-navigation.qtiContext` is an alias of this. (property only)
|
|
12069
12136
|
*
|
|
12070
12137
|
* ## Events
|
|
12071
12138
|
*
|
|
12072
12139
|
* Events that will be emitted by the component.
|
|
12073
12140
|
*
|
|
12074
12141
|
* - `qti-test-connected`: undefined
|
|
12142
|
+
* - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
|
|
12143
|
+
* - `qti-test-context-updated`: Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
|
|
12075
12144
|
*
|
|
12076
12145
|
* ## Methods
|
|
12077
12146
|
*
|
|
@@ -12272,9 +12341,13 @@ export type CustomElementsSolidJs = {
|
|
|
12272
12341
|
* - `adaptive`: undefined
|
|
12273
12342
|
* - `time-dependent`/`timeDependent`: undefined
|
|
12274
12343
|
* - `title`: undefined
|
|
12275
|
-
* - `disabled`:
|
|
12276
|
-
*
|
|
12344
|
+
* - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
|
|
12345
|
+
* interactions inside follow, so the item keeps no list of them to set it on.
|
|
12346
|
+
* - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
|
|
12347
|
+
* follow, so the item keeps no list of them to set it on.
|
|
12277
12348
|
* - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
|
|
12349
|
+
* - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
|
|
12350
|
+
* for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
|
|
12278
12351
|
* - `variables`: undefined (property only)
|
|
12279
12352
|
* - `state`: undefined (property only)
|
|
12280
12353
|
* - `responses`: undefined (property only)
|
|
@@ -12308,6 +12381,22 @@ export type CustomElementsSolidJs = {
|
|
|
12308
12381
|
BaseEvents
|
|
12309
12382
|
>;
|
|
12310
12383
|
|
|
12384
|
+
/**
|
|
12385
|
+
*
|
|
12386
|
+
*
|
|
12387
|
+
* ## Slots
|
|
12388
|
+
*
|
|
12389
|
+
* Areas where markup can be added to the component.
|
|
12390
|
+
*
|
|
12391
|
+
* - `(default)`: stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
|
|
12392
|
+
*/
|
|
12393
|
+
"qti-assessment-stimulus": Partial<
|
|
12394
|
+
QtiAssessmentStimulusProps &
|
|
12395
|
+
QtiAssessmentStimulusSolidJsProps &
|
|
12396
|
+
BaseProps<QtiAssessmentStimulus> &
|
|
12397
|
+
BaseEvents
|
|
12398
|
+
>;
|
|
12399
|
+
|
|
12311
12400
|
/**
|
|
12312
12401
|
* Represents a custom element for referencing an assessment stimulus.
|
|
12313
12402
|
*
|
|
@@ -12431,12 +12520,6 @@ export type CustomElementsSolidJs = {
|
|
|
12431
12520
|
* - `identifier`: undefined
|
|
12432
12521
|
* - `showStatus`: undefined (property only)
|
|
12433
12522
|
*
|
|
12434
|
-
* ## Events
|
|
12435
|
-
*
|
|
12436
|
-
* Events that will be emitted by the component.
|
|
12437
|
-
*
|
|
12438
|
-
* - `qti-register-feedback`: undefined
|
|
12439
|
-
*
|
|
12440
12523
|
* ## Methods
|
|
12441
12524
|
*
|
|
12442
12525
|
* Methods that can be called to access component functionality.
|
|
@@ -12462,12 +12545,6 @@ export type CustomElementsSolidJs = {
|
|
|
12462
12545
|
* - `identifier`: undefined
|
|
12463
12546
|
* - `showStatus`: undefined (property only)
|
|
12464
12547
|
*
|
|
12465
|
-
* ## Events
|
|
12466
|
-
*
|
|
12467
|
-
* Events that will be emitted by the component.
|
|
12468
|
-
*
|
|
12469
|
-
* - `qti-register-feedback`: undefined
|
|
12470
|
-
*
|
|
12471
12548
|
* ## Methods
|
|
12472
12549
|
*
|
|
12473
12550
|
* Methods that can be called to access component functionality.
|
|
@@ -12516,12 +12593,6 @@ export type CustomElementsSolidJs = {
|
|
|
12516
12593
|
* - `identifier`: undefined
|
|
12517
12594
|
* - `showStatus`: undefined (property only)
|
|
12518
12595
|
*
|
|
12519
|
-
* ## Events
|
|
12520
|
-
*
|
|
12521
|
-
* Events that will be emitted by the component.
|
|
12522
|
-
*
|
|
12523
|
-
* - `qti-register-feedback`: undefined
|
|
12524
|
-
*
|
|
12525
12596
|
* ## Methods
|
|
12526
12597
|
*
|
|
12527
12598
|
* Methods that can be called to access component functionality.
|
|
@@ -14845,6 +14916,30 @@ export type CustomElementsSolidJs = {
|
|
|
14845
14916
|
BaseEvents
|
|
14846
14917
|
>;
|
|
14847
14918
|
|
|
14919
|
+
/**
|
|
14920
|
+
*
|
|
14921
|
+
*
|
|
14922
|
+
* ## Attributes & Properties
|
|
14923
|
+
*
|
|
14924
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
14925
|
+
*
|
|
14926
|
+
* - `identifier`: undefined
|
|
14927
|
+
* - `title`: undefined
|
|
14928
|
+
* - `_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
|
+
*/
|
|
14936
|
+
"qti-assessment-test": Partial<
|
|
14937
|
+
QtiAssessmentTestProps &
|
|
14938
|
+
QtiAssessmentTestSolidJsProps &
|
|
14939
|
+
BaseProps<QtiAssessmentTest> &
|
|
14940
|
+
BaseEvents
|
|
14941
|
+
>;
|
|
14942
|
+
|
|
14848
14943
|
/**
|
|
14849
14944
|
*
|
|
14850
14945
|
*
|
|
@@ -14910,30 +15005,6 @@ export type CustomElementsSolidJs = {
|
|
|
14910
15005
|
BaseEvents
|
|
14911
15006
|
>;
|
|
14912
15007
|
|
|
14913
|
-
/**
|
|
14914
|
-
*
|
|
14915
|
-
*
|
|
14916
|
-
* ## Attributes & Properties
|
|
14917
|
-
*
|
|
14918
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
14919
|
-
*
|
|
14920
|
-
* - `identifier`: undefined
|
|
14921
|
-
* - `title`: undefined
|
|
14922
|
-
* - `_testContext`: undefined (property only)
|
|
14923
|
-
*
|
|
14924
|
-
* ## Events
|
|
14925
|
-
*
|
|
14926
|
-
* Events that will be emitted by the component.
|
|
14927
|
-
*
|
|
14928
|
-
* - `qti-assessment-test-connected`: undefined
|
|
14929
|
-
*/
|
|
14930
|
-
"qti-assessment-test": Partial<
|
|
14931
|
-
QtiAssessmentTestProps &
|
|
14932
|
-
QtiAssessmentTestSolidJsProps &
|
|
14933
|
-
BaseProps<QtiAssessmentTest> &
|
|
14934
|
-
BaseEvents
|
|
14935
|
-
>;
|
|
14936
|
-
|
|
14937
15008
|
/**
|
|
14938
15009
|
*
|
|
14939
15010
|
*
|
|
@@ -15026,12 +15097,6 @@ export type CustomElementsSolidJs = {
|
|
|
15026
15097
|
* - `identifier`: undefined
|
|
15027
15098
|
* - `showStatus`: undefined (property only)
|
|
15028
15099
|
*
|
|
15029
|
-
* ## Events
|
|
15030
|
-
*
|
|
15031
|
-
* Events that will be emitted by the component.
|
|
15032
|
-
*
|
|
15033
|
-
* - `qti-register-feedback`: undefined
|
|
15034
|
-
*
|
|
15035
15100
|
* ## Methods
|
|
15036
15101
|
*
|
|
15037
15102
|
* Methods that can be called to access component functionality.
|
|
@@ -15109,32 +15174,6 @@ export type CustomElementsSolidJs = {
|
|
|
15109
15174
|
BaseEvents
|
|
15110
15175
|
>;
|
|
15111
15176
|
|
|
15112
|
-
/**
|
|
15113
|
-
*
|
|
15114
|
-
*
|
|
15115
|
-
* ## Attributes & Properties
|
|
15116
|
-
*
|
|
15117
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15118
|
-
*
|
|
15119
|
-
* - `identifier`: undefined
|
|
15120
|
-
* - `auto-score-items`/`autoScoreItems`: undefined
|
|
15121
|
-
* - `initContext`: undefined (property only)
|
|
15122
|
-
* - `qtiContext`: undefined (property only)
|
|
15123
|
-
* - `configContext`: undefined (property only)
|
|
15124
|
-
*
|
|
15125
|
-
* ## Events
|
|
15126
|
-
*
|
|
15127
|
-
* Events that will be emitted by the component.
|
|
15128
|
-
*
|
|
15129
|
-
* - `qti-computed-context-updated`: undefined
|
|
15130
|
-
*/
|
|
15131
|
-
"test-navigation": Partial<
|
|
15132
|
-
TestNavigationProps &
|
|
15133
|
-
TestNavigationSolidJsProps &
|
|
15134
|
-
BaseProps<TestNavigation> &
|
|
15135
|
-
BaseEvents
|
|
15136
|
-
>;
|
|
15137
|
-
|
|
15138
15177
|
/**
|
|
15139
15178
|
* `<test-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
15140
15179
|
* The `qti-assessment-test` will be placed inside the shadow DOM of this element.
|
|
@@ -15222,12 +15261,22 @@ export type CustomElementsSolidJs = {
|
|
|
15222
15261
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15223
15262
|
*
|
|
15224
15263
|
* - `configContext`: undefined (property only)
|
|
15264
|
+
* - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
|
|
15265
|
+
* everything inside reads one value: the test-container shuffling the item order, the test
|
|
15266
|
+
* shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
|
|
15267
|
+
*
|
|
15268
|
+
* Pass the same `seed` when resuming a session, or the order comes back different. Replace the
|
|
15269
|
+
* object, do not mutate it: an in-place change does not notify the components inside.
|
|
15270
|
+
*
|
|
15271
|
+
* `test-navigation.qtiContext` is an alias of this. (property only)
|
|
15225
15272
|
*
|
|
15226
15273
|
* ## Events
|
|
15227
15274
|
*
|
|
15228
15275
|
* Events that will be emitted by the component.
|
|
15229
15276
|
*
|
|
15230
15277
|
* - `qti-test-connected`: undefined
|
|
15278
|
+
* - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
|
|
15279
|
+
* - `qti-test-context-updated`: Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
|
|
15231
15280
|
*/
|
|
15232
15281
|
"qti-test": Partial<
|
|
15233
15282
|
QtiTestProps & QtiTestSolidJsProps & BaseProps<QtiTest> & BaseEvents
|
|
@@ -15298,8 +15347,6 @@ export type CustomElementsSolidJs = {
|
|
|
15298
15347
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15299
15348
|
*
|
|
15300
15349
|
* - `language`: Fallback language when neither the item content nor the document declares one.
|
|
15301
|
-
* - `item-ref-id`/`itemRefId`: Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
15302
|
-
* navigation cursor (`navItemRefId`) instead.
|
|
15303
15350
|
* - `_ttsContext`: undefined (property only)
|
|
15304
15351
|
*
|
|
15305
15352
|
* ## CSS States
|
|
@@ -15538,6 +15585,32 @@ export type CustomElementsSolidJs = {
|
|
|
15538
15585
|
BaseEvents
|
|
15539
15586
|
>;
|
|
15540
15587
|
|
|
15588
|
+
/**
|
|
15589
|
+
*
|
|
15590
|
+
*
|
|
15591
|
+
* ## Attributes & Properties
|
|
15592
|
+
*
|
|
15593
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15594
|
+
*
|
|
15595
|
+
* - `identifier`: undefined
|
|
15596
|
+
* - `auto-score-items`/`autoScoreItems`: undefined
|
|
15597
|
+
* - `initContext`: undefined (property only)
|
|
15598
|
+
* - `qtiContext`: undefined (property only)
|
|
15599
|
+
* - `configContext`: undefined (property only)
|
|
15600
|
+
*
|
|
15601
|
+
* ## Events
|
|
15602
|
+
*
|
|
15603
|
+
* Events that will be emitted by the component.
|
|
15604
|
+
*
|
|
15605
|
+
* - `qti-computed-context-updated`: undefined
|
|
15606
|
+
*/
|
|
15607
|
+
"test-navigation": Partial<
|
|
15608
|
+
TestNavigationProps &
|
|
15609
|
+
TestNavigationSolidJsProps &
|
|
15610
|
+
BaseProps<TestNavigation> &
|
|
15611
|
+
BaseEvents
|
|
15612
|
+
>;
|
|
15613
|
+
|
|
15541
15614
|
/**
|
|
15542
15615
|
* Represents a custom element for navigating to the next test item.
|
|
15543
15616
|
*
|
|
@@ -17986,9 +18059,13 @@ export type CustomElementsSolidJs = {
|
|
|
17986
18059
|
* - `adaptive`: undefined
|
|
17987
18060
|
* - `time-dependent`/`timeDependent`: undefined
|
|
17988
18061
|
* - `title`: undefined
|
|
17989
|
-
* - `disabled`:
|
|
17990
|
-
*
|
|
18062
|
+
* - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
|
|
18063
|
+
* interactions inside follow, so the item keeps no list of them to set it on.
|
|
18064
|
+
* - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
|
|
18065
|
+
* follow, so the item keeps no list of them to set it on.
|
|
17991
18066
|
* - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
|
|
18067
|
+
* - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
|
|
18068
|
+
* for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
|
|
17992
18069
|
* - `variables`: undefined (property only)
|
|
17993
18070
|
* - `state`: undefined (property only)
|
|
17994
18071
|
* - `responses`: undefined (property only)
|
|
@@ -18090,12 +18167,22 @@ export type CustomElementsSolidJs = {
|
|
|
18090
18167
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
18091
18168
|
*
|
|
18092
18169
|
* - `configContext`: undefined (property only)
|
|
18170
|
+
* - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
|
|
18171
|
+
* everything inside reads one value: the test-container shuffling the item order, the test
|
|
18172
|
+
* shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
|
|
18173
|
+
*
|
|
18174
|
+
* Pass the same `seed` when resuming a session, or the order comes back different. Replace the
|
|
18175
|
+
* object, do not mutate it: an in-place change does not notify the components inside.
|
|
18176
|
+
*
|
|
18177
|
+
* `test-navigation.qtiContext` is an alias of this. (property only)
|
|
18093
18178
|
*
|
|
18094
18179
|
* ## Events
|
|
18095
18180
|
*
|
|
18096
18181
|
* Events that will be emitted by the component.
|
|
18097
18182
|
*
|
|
18098
18183
|
* - `qti-test-connected`: undefined
|
|
18184
|
+
* - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
|
|
18185
|
+
* - `qti-test-context-updated`: Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
|
|
18099
18186
|
*
|
|
18100
18187
|
* ## Methods
|
|
18101
18188
|
*
|