@citolab/qti-components 7.17.0 → 7.17.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.
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +14 -18
- package/custom-elements.json +21 -1627
- package/dist/{chunk-O4XIWHTF.js → chunk-3IHVFNP6.js} +5 -8
- package/dist/chunk-3IHVFNP6.js.map +1 -0
- package/dist/{chunk-W4SQRNWO.js → chunk-3PDF4K62.js} +2 -6
- package/dist/{chunk-W4SQRNWO.js.map → chunk-3PDF4K62.js.map} +1 -1
- package/dist/{chunk-352OTVTY.js → chunk-ERONHL4R.js} +35 -23
- package/dist/chunk-ERONHL4R.js.map +1 -0
- package/dist/{chunk-2DOYPVF5.js → chunk-LAMJZ533.js} +2 -2
- package/dist/elements.js +1 -1
- package/dist/index.js +4 -4
- package/dist/item.css +1 -5
- package/dist/item.js +2 -2
- package/dist/qti-components-jsx.d.ts +1173 -1173
- package/dist/test.d.ts +21 -21
- package/dist/test.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-352OTVTY.js.map +0 -1
- package/dist/chunk-O4XIWHTF.js.map +0 -1
- package/dist/vscode.css-custom-data.json +0 -11
- package/dist/vscode.html-custom-data.json +0 -960
- /package/dist/{chunk-2DOYPVF5.js.map → chunk-LAMJZ533.js.map} +0 -0
|
@@ -3,28 +3,6 @@ import type { ItemContainer } from "packages/qti-item/src/components/item-contai
|
|
|
3
3
|
import type { ItemCorrectResponseMode } from "packages/qti-item/src/components/item-correct-response-mode/item-correct-response-mode.ts";
|
|
4
4
|
import type { ItemPrintVariables } from "packages/qti-item/src/components/item-print-variables/item-print-variables.ts";
|
|
5
5
|
import type { ItemShowCandidateCorrection } from "packages/qti-item/src/components/item-show-candidate-correction/item-show-candidate-correction.ts";
|
|
6
|
-
import type { QtiAssociateInteraction } from "packages/qti-interactions/src/components/qti-associate-interaction/qti-associate-interaction.ts";
|
|
7
|
-
import type { QtiChoiceInteraction } from "packages/qti-interactions/src/components/qti-choice-interaction/qti-choice-interaction.ts";
|
|
8
|
-
import type { QtiCustomInteraction } from "packages/qti-interactions/src/components/qti-custom-interaction/qti-custom-interaction.ts";
|
|
9
|
-
import type { QtiEndAttemptInteraction } from "packages/qti-interactions/src/components/qti-end-attempt-interaction/qti-end-attempt-interaction.ts";
|
|
10
|
-
import type { QtiExtendedTextInteraction } from "packages/qti-interactions/src/components/qti-extended-text-interaction/qti-extended-text-interaction.ts";
|
|
11
|
-
import type { QtiGapMatchInteraction } from "packages/qti-interactions/src/components/qti-gap-match-interaction/qti-gap-match-interaction.ts";
|
|
12
|
-
import type { QtiGraphicAssociateInteraction } from "packages/qti-interactions/src/components/qti-graphic-associate-interaction/qti-graphic-associate-interaction.ts";
|
|
13
|
-
import type { QtiGraphicGapMatchInteraction } from "packages/qti-interactions/src/components/qti-graphic-gap-match-interaction/qti-graphic-gap-match-interaction.ts";
|
|
14
|
-
import type { QtiGraphicOrderInteraction } from "packages/qti-interactions/src/components/qti-graphic-order-interaction/qti-graphic-order-interaction.ts";
|
|
15
|
-
import type { QtiHotspotInteraction } from "packages/qti-interactions/src/components/qti-hotspot-interaction/qti-hotspot-interaction.ts";
|
|
16
|
-
import type { QtiHottextInteraction } from "packages/qti-interactions/src/components/qti-hottext-interaction/qti-hottext-interaction.ts";
|
|
17
|
-
import type { QtiInlineChoiceInteraction } from "packages/qti-interactions/src/components/qti-inline-choice-interaction/qti-inline-choice-interaction.ts";
|
|
18
|
-
import type { QtiMatchInteraction } from "packages/qti-interactions/src/components/qti-match-interaction/qti-match-interaction.ts";
|
|
19
|
-
import type { QtiMediaInteraction } from "packages/qti-interactions/src/components/qti-media-interaction/qti-media-interaction.ts";
|
|
20
|
-
import type { QtiOrderInteraction } from "packages/qti-interactions/src/components/qti-order-interaction/qti-order-interaction.ts";
|
|
21
|
-
import type { QtiPortableCustomInteraction } from "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts";
|
|
22
|
-
import type { QtiPositionObjectInteraction } from "packages/qti-interactions/src/components/qti-position-object-interaction/qti-position-object-interaction.ts";
|
|
23
|
-
import type { QtiPositionObjectStage } from "packages/qti-interactions/src/components/qti-position-object-interaction/qti-position-object-stage.ts";
|
|
24
|
-
import type { QtiSelectPointInteraction } from "packages/qti-interactions/src/components/qti-select-point-interaction/qti-select-point-interaction.ts";
|
|
25
|
-
import type { QtiSliderInteraction } from "packages/qti-interactions/src/components/qti-slider-interaction/qti-slider-interaction.ts";
|
|
26
|
-
import type { QtiTextEntryInteraction } from "packages/qti-interactions/src/components/qti-text-entry-interaction/qti-text-entry-interaction.ts";
|
|
27
|
-
import type { QtiUploadInteraction } from "packages/qti-interactions/src/components/qti-upload-interaction/qti-upload-interaction.ts";
|
|
28
6
|
import type { ItemShowCorrectResponse } from "packages/qti-item/src/components/item-show-correct-response/item-show-correct-response.ts";
|
|
29
7
|
import type { QtiTemplateConstraint } from "packages/qti-elements/src/components/qti-template-constraint/qti-template-constraint.ts";
|
|
30
8
|
import type { QtiTemplateProcessing } from "packages/qti-elements/src/components/qti-template-processing/qti-template-processing.ts";
|
|
@@ -45,10 +23,10 @@ import type { QtiResponseDeclaration } from "packages/qti-elements/src/component
|
|
|
45
23
|
import type { QtiOutcomeDeclaration } from "packages/qti-elements/src/components/qti-outcome-declaration/qti-outcome-declaration.ts";
|
|
46
24
|
import type { QtiItem } from "packages/qti-item/src/components/qti-item/qti-item.ts";
|
|
47
25
|
import type { QtiAssessmentItemRef } from "packages/qti-test/src/components/qti-assessment-item-ref/qti-assessment-item-ref.ts";
|
|
26
|
+
import type { QtiAssessmentSection } from "packages/qti-test/src/components/qti-assessment-section/qti-assessment-section.ts";
|
|
48
27
|
import type { QtiAssessmentTest } from "packages/qti-test/src/components/qti-assessment-test/qti-assessment-test.ts";
|
|
49
28
|
import type { QtiOutcomeProcessing, QtiOutcomeProcessingProcessor } from "packages/qti-test/src/components/qti-outcome-processing/qti-outcome-processing.ts";
|
|
50
29
|
import type { QtiTest } from "packages/qti-test/src/components/qti-test/qti-test.ts";
|
|
51
|
-
import type { QtiAssessmentSection } from "packages/qti-test/src/components/qti-assessment-section/qti-assessment-section.ts";
|
|
52
30
|
import type { QtiTestPart } from "packages/qti-test/src/components/qti-test-part/qti-test-part.ts";
|
|
53
31
|
import type { QtiTestFeedback } from "packages/qti-test/src/components/qti-test-feedback/qti-test-feedback.ts";
|
|
54
32
|
import type { TestNavigation } from "packages/qti-test/src/components/test-navigation/test-navigation.ts";
|
|
@@ -71,7 +49,29 @@ import type { TestScoringFeedback } from "packages/qti-test/src/components/test-
|
|
|
71
49
|
import type { TestCheckItem } from "packages/qti-test/src/components/test-check-item/test-check-item.ts";
|
|
72
50
|
import type { QtiTestVariables, QtiTestVariablesExpression } from "packages/qti-test/src/components/qti-test-variables/qti-test-variables.ts";
|
|
73
51
|
import type { QtiTemplateDeclaration } from "packages/qti-elements/src/components/qti-template-declaration/qti-template-declaration.ts";
|
|
52
|
+
import type { QtiAssociateInteraction } from "packages/qti-interactions/src/components/qti-associate-interaction/qti-associate-interaction.ts";
|
|
53
|
+
import type { QtiChoiceInteraction } from "packages/qti-interactions/src/components/qti-choice-interaction/qti-choice-interaction.ts";
|
|
54
|
+
import type { QtiCustomInteraction } from "packages/qti-interactions/src/components/qti-custom-interaction/qti-custom-interaction.ts";
|
|
55
|
+
import type { QtiEndAttemptInteraction } from "packages/qti-interactions/src/components/qti-end-attempt-interaction/qti-end-attempt-interaction.ts";
|
|
56
|
+
import type { QtiExtendedTextInteraction } from "packages/qti-interactions/src/components/qti-extended-text-interaction/qti-extended-text-interaction.ts";
|
|
57
|
+
import type { QtiGapMatchInteraction } from "packages/qti-interactions/src/components/qti-gap-match-interaction/qti-gap-match-interaction.ts";
|
|
58
|
+
import type { QtiGraphicAssociateInteraction } from "packages/qti-interactions/src/components/qti-graphic-associate-interaction/qti-graphic-associate-interaction.ts";
|
|
59
|
+
import type { QtiGraphicGapMatchInteraction } from "packages/qti-interactions/src/components/qti-graphic-gap-match-interaction/qti-graphic-gap-match-interaction.ts";
|
|
60
|
+
import type { QtiGraphicOrderInteraction } from "packages/qti-interactions/src/components/qti-graphic-order-interaction/qti-graphic-order-interaction.ts";
|
|
61
|
+
import type { QtiHotspotInteraction } from "packages/qti-interactions/src/components/qti-hotspot-interaction/qti-hotspot-interaction.ts";
|
|
62
|
+
import type { QtiHottextInteraction } from "packages/qti-interactions/src/components/qti-hottext-interaction/qti-hottext-interaction.ts";
|
|
63
|
+
import type { QtiInlineChoiceInteraction } from "packages/qti-interactions/src/components/qti-inline-choice-interaction/qti-inline-choice-interaction.ts";
|
|
64
|
+
import type { QtiMatchInteraction } from "packages/qti-interactions/src/components/qti-match-interaction/qti-match-interaction.ts";
|
|
65
|
+
import type { QtiMediaInteraction } from "packages/qti-interactions/src/components/qti-media-interaction/qti-media-interaction.ts";
|
|
66
|
+
import type { QtiOrderInteraction } from "packages/qti-interactions/src/components/qti-order-interaction/qti-order-interaction.ts";
|
|
67
|
+
import type { QtiPortableCustomInteraction } from "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts";
|
|
74
68
|
import type { QtiPortableCustomInteractionTest } from "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-test-interaction.ts";
|
|
69
|
+
import type { QtiPositionObjectInteraction } from "packages/qti-interactions/src/components/qti-position-object-interaction/qti-position-object-interaction.ts";
|
|
70
|
+
import type { QtiPositionObjectStage } from "packages/qti-interactions/src/components/qti-position-object-interaction/qti-position-object-stage.ts";
|
|
71
|
+
import type { QtiSelectPointInteraction } from "packages/qti-interactions/src/components/qti-select-point-interaction/qti-select-point-interaction.ts";
|
|
72
|
+
import type { QtiSliderInteraction } from "packages/qti-interactions/src/components/qti-slider-interaction/qti-slider-interaction.ts";
|
|
73
|
+
import type { QtiTextEntryInteraction } from "packages/qti-interactions/src/components/qti-text-entry-interaction/qti-text-entry-interaction.ts";
|
|
74
|
+
import type { QtiUploadInteraction } from "packages/qti-interactions/src/components/qti-upload-interaction/qti-upload-interaction.ts";
|
|
75
75
|
import type { QtiAnd, qtiAndMixin } from "packages/qti-processing/src/components/qti-and/qti-and.ts";
|
|
76
76
|
import type { QtiBaseValue } from "packages/qti-processing/src/components/qti-basevalue/qti-basevalue.ts";
|
|
77
77
|
import type { QtiContainerSize } from "packages/qti-processing/src/components/qti-container-size/qti-container-size.ts";
|
|
@@ -113,10 +113,10 @@ import type { QtiIndex } from "packages/qti-processing/src/components/qti-index/
|
|
|
113
113
|
import type { QtiRule } from "packages/qti-processing/src/components/qti-rule/qti-rule.ts";
|
|
114
114
|
import type { QtiLookupOutcomeValue } from "packages/qti-processing/src/components/qti-lookup-outcome-value/qti-lookup-outcome-value.ts";
|
|
115
115
|
import type { QtiResponseCondition } from "packages/qti-processing/src/components/qti-response-condition/qti-response-condition.ts";
|
|
116
|
-
import type { QtiSetOutcomeValue, QtiSetOutcomeValueRule } from "packages/qti-processing/src/components/qti-set-outcome-value/qti-set-outcome-value.ts";
|
|
117
116
|
import type { QtiResponseElse } from "packages/qti-processing/src/components/qti-response-else/qti-response-else.ts";
|
|
118
117
|
import type { QtiResponseIf } from "packages/qti-processing/src/components/qti-response-if/qti-response-if.ts";
|
|
119
118
|
import type { QtiResponseElseIf } from "packages/qti-processing/src/components/qti-response-else-if/qti-response-else-if.ts";
|
|
119
|
+
import type { QtiSetOutcomeValue, QtiSetOutcomeValueRule } from "packages/qti-processing/src/components/qti-set-outcome-value/qti-set-outcome-value.ts";
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* This type can be used to create scoped tags for your components.
|
|
@@ -245,543 +245,249 @@ export type ItemShowCandidateCorrectionProps = {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
|
|
248
|
-
export type
|
|
249
|
-
|
|
248
|
+
export type ItemShowCorrectResponseProps = {
|
|
249
|
+
/** */
|
|
250
|
+
"shown"?: ItemShowCorrectResponse['shown'];
|
|
251
|
+
/** */
|
|
252
|
+
"disabled"?: ItemShowCorrectResponse['disabled'];
|
|
253
|
+
/** */
|
|
254
|
+
"showCorrectText"?: ItemShowCorrectResponse['showCorrectText'];
|
|
255
|
+
/** */
|
|
256
|
+
"hideCorrectText"?: ItemShowCorrectResponse['hideCorrectText'];
|
|
257
|
+
/** */
|
|
258
|
+
"noCorrectResponseText"?: ItemShowCorrectResponse['noCorrectResponseText'];
|
|
259
|
+
/** */
|
|
260
|
+
"computedContext"?: ItemShowCorrectResponse['computedContext'];
|
|
250
261
|
|
|
262
|
+
/** */
|
|
263
|
+
"onitem-show-correct-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
251
264
|
}
|
|
252
265
|
|
|
253
266
|
|
|
254
|
-
export type
|
|
255
|
-
/** @deprecated , use 'qti-orientation-horizontal' or 'qti-orientation-vertical' instead */
|
|
256
|
-
"orientation"?: QtiChoiceInteraction['orientation'];
|
|
267
|
+
export type QtiTemplateConstraintProps = {
|
|
257
268
|
|
|
258
269
|
|
|
259
270
|
}
|
|
260
271
|
|
|
261
272
|
|
|
262
|
-
export type
|
|
263
|
-
|
|
264
|
-
"data"?: QtiCustomInteraction['data'];
|
|
265
|
-
/** */
|
|
266
|
-
"data-base-item"?: QtiCustomInteraction['baseItemUrl'];
|
|
267
|
-
/** */
|
|
268
|
-
"baseItemUrl"?: QtiCustomInteraction['baseItemUrl'];
|
|
269
|
-
/** */
|
|
270
|
-
"data-base-ref"?: QtiCustomInteraction['baseRefUrl'];
|
|
271
|
-
/** */
|
|
272
|
-
"baseRefUrl"?: QtiCustomInteraction['baseRefUrl'];
|
|
273
|
-
/** */
|
|
274
|
-
"id"?: QtiCustomInteraction['id'];
|
|
275
|
-
/** */
|
|
276
|
-
"manifest"?: QtiCustomInteraction['manifest'];
|
|
273
|
+
export type QtiTemplateProcessingProps = {
|
|
274
|
+
|
|
277
275
|
/** */
|
|
278
|
-
"
|
|
276
|
+
"onqti-template-processing-complete"?: (e: CustomEvent<CustomEvent>) => void;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
export type QtiResponseProcessingProps = {
|
|
279
281
|
|
|
280
282
|
|
|
281
283
|
}
|
|
282
284
|
|
|
283
285
|
|
|
284
|
-
export type
|
|
285
|
-
/** */
|
|
286
|
-
"response-identifier"?: QtiEndAttemptInteraction['responseIdentifier'];
|
|
286
|
+
export type QtiAssessmentItemProps = {
|
|
287
287
|
/** */
|
|
288
|
-
"
|
|
288
|
+
"identifier"?: QtiAssessmentItem['identifier'];
|
|
289
289
|
/** */
|
|
290
|
-
"
|
|
291
|
-
/** Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt) */
|
|
292
|
-
"count-attempt"?: QtiEndAttemptInteraction['countAttempt'];
|
|
293
|
-
/** Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt) */
|
|
294
|
-
"countAttempt"?: QtiEndAttemptInteraction['countAttempt'];
|
|
290
|
+
"adaptive"?: QtiAssessmentItem['adaptive'];
|
|
295
291
|
/** */
|
|
296
|
-
"
|
|
297
|
-
|
|
292
|
+
"timeDependent"?: QtiAssessmentItem['timeDependent'];
|
|
298
293
|
/** */
|
|
299
|
-
"
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
export type QtiExtendedTextInteractionProps = {
|
|
304
|
-
/** expected length is mapped to the property maxlength on the textarea */
|
|
305
|
-
"expected-length"?: QtiExtendedTextInteraction['expectedLength'];
|
|
306
|
-
/** expected length is mapped to the property maxlength on the textarea */
|
|
307
|
-
"expectedLength"?: QtiExtendedTextInteraction['expectedLength'];
|
|
294
|
+
"title"?: QtiAssessmentItem['title'];
|
|
308
295
|
/** */
|
|
309
|
-
"
|
|
296
|
+
"disabled"?: QtiAssessmentItem['disabled'];
|
|
310
297
|
/** */
|
|
311
|
-
"
|
|
312
|
-
/**
|
|
313
|
-
"
|
|
314
|
-
/** text appearing in the extended-text-interaction if it is empty */
|
|
315
|
-
"placeholderText"?: QtiExtendedTextInteraction['placeholderText'];
|
|
298
|
+
"readonly"?: QtiAssessmentItem['readonly'];
|
|
299
|
+
/** Sets the identifier for the assessment item reference if this item is in a test. */
|
|
300
|
+
"assessmentItemRefId"?: QtiAssessmentItem['assessmentItemRefId'];
|
|
316
301
|
/** */
|
|
317
|
-
"
|
|
302
|
+
"variables"?: QtiAssessmentItem['variables'];
|
|
303
|
+
/** @deprecated use variables property instead */
|
|
304
|
+
"responses"?: QtiAssessmentItem['responses'];
|
|
305
|
+
|
|
318
306
|
/** */
|
|
319
|
-
"
|
|
307
|
+
"onqti-assessment-item-connected"?: (e: CustomEvent<CustomEvent>) => void;
|
|
308
|
+
/** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
|
|
309
|
+
"onqti-item-context-updated"?: (e: CustomEvent<CustomEvent>) => void;
|
|
320
310
|
/** */
|
|
321
|
-
"
|
|
311
|
+
"onqti-interaction-changed"?: (e: CustomEvent<CustomEvent>) => void;
|
|
322
312
|
/** */
|
|
323
|
-
"
|
|
313
|
+
"onqti-outcome-changed"?: (e: CustomEvent<CustomEvent>) => void;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
export type QtiAssessmentStimulusRefProps = {
|
|
324
318
|
/** */
|
|
325
|
-
"
|
|
319
|
+
"identifier"?: QtiAssessmentStimulusRef['identifier'];
|
|
326
320
|
/** */
|
|
327
|
-
"
|
|
321
|
+
"href"?: QtiAssessmentStimulusRef['href'];
|
|
328
322
|
|
|
329
323
|
|
|
330
324
|
}
|
|
331
325
|
|
|
332
326
|
|
|
333
|
-
export type
|
|
327
|
+
export type QtiCompanionMaterialsInfoProps = {
|
|
334
328
|
|
|
335
329
|
|
|
336
330
|
}
|
|
337
331
|
|
|
338
332
|
|
|
339
|
-
export type
|
|
333
|
+
export type QtiCustomOperatorProps = {
|
|
334
|
+
|
|
340
335
|
/** */
|
|
341
|
-
"
|
|
336
|
+
"onqti-set-outcome-value"?: (e: CustomEvent<CustomEvent>) => void;
|
|
337
|
+
/** */
|
|
338
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
export type QtiFeedbackBlockProps = {
|
|
342
343
|
|
|
343
344
|
|
|
344
345
|
}
|
|
345
346
|
|
|
346
347
|
|
|
347
|
-
export type
|
|
348
|
+
export type QtiFeedbackInlineProps = {
|
|
348
349
|
|
|
349
350
|
|
|
350
351
|
}
|
|
351
352
|
|
|
352
353
|
|
|
353
|
-
export type
|
|
354
|
+
export type QtiModalFeedbackProps = {
|
|
354
355
|
|
|
355
356
|
|
|
356
357
|
}
|
|
357
358
|
|
|
358
359
|
|
|
359
|
-
export type
|
|
360
|
+
export type QtiItemBodyProps = {
|
|
360
361
|
|
|
361
362
|
|
|
362
363
|
}
|
|
363
364
|
|
|
364
365
|
|
|
365
|
-
export type
|
|
366
|
-
/** */
|
|
367
|
-
"class"?: QtiHottextInteraction['class'];
|
|
366
|
+
export type QtiPromptProps = {
|
|
368
367
|
|
|
369
368
|
|
|
370
369
|
}
|
|
371
370
|
|
|
372
371
|
|
|
373
|
-
export type
|
|
374
|
-
/** */
|
|
375
|
-
"data-prompt"?: QtiInlineChoiceInteraction['dataPrompt'];
|
|
376
|
-
/** */
|
|
377
|
-
"dataPrompt"?: QtiInlineChoiceInteraction['dataPrompt'];
|
|
378
|
-
/** */
|
|
379
|
-
"configContext"?: QtiInlineChoiceInteraction['configContext'];
|
|
380
|
-
/** */
|
|
381
|
-
"response"?: QtiInlineChoiceInteraction['response'];
|
|
372
|
+
export type QtiContentBodyProps = {
|
|
382
373
|
|
|
383
374
|
|
|
384
375
|
}
|
|
385
376
|
|
|
386
377
|
|
|
387
|
-
export type
|
|
378
|
+
export type QtiRubricBlockProps = {
|
|
388
379
|
/** */
|
|
389
|
-
"
|
|
380
|
+
"id"?: QtiRubricBlock['id'];
|
|
390
381
|
/** */
|
|
391
|
-
"
|
|
382
|
+
"use"?: QtiRubricBlock['use'];
|
|
392
383
|
/** */
|
|
393
|
-
"
|
|
384
|
+
"view"?: QtiRubricBlock['view'];
|
|
394
385
|
/** */
|
|
395
|
-
"
|
|
386
|
+
"class"?: QtiRubricBlock['classNames'];
|
|
387
|
+
/** */
|
|
388
|
+
"classNames"?: QtiRubricBlock['classNames'];
|
|
396
389
|
|
|
397
390
|
|
|
398
391
|
}
|
|
399
392
|
|
|
400
393
|
|
|
401
|
-
export type
|
|
402
|
-
/** */
|
|
403
|
-
"response"?: QtiMediaInteraction['response'];
|
|
394
|
+
export type QtiStylesheetProps = {
|
|
404
395
|
|
|
405
396
|
|
|
406
397
|
}
|
|
407
398
|
|
|
408
399
|
|
|
409
|
-
export type
|
|
410
|
-
/** orientation of choices */
|
|
411
|
-
"orientation"?: QtiOrderInteraction['orientation'];
|
|
400
|
+
export type QtiResponseDeclarationProps = {
|
|
412
401
|
/** */
|
|
413
|
-
"
|
|
402
|
+
"base-type"?: QtiResponseDeclaration['baseType'];
|
|
414
403
|
/** */
|
|
415
|
-
"
|
|
416
|
-
|
|
404
|
+
"baseType"?: QtiResponseDeclaration['baseType'];
|
|
405
|
+
/** */
|
|
406
|
+
"identifier"?: QtiResponseDeclaration['identifier'];
|
|
407
|
+
/** */
|
|
408
|
+
"cardinality"?: QtiResponseDeclaration['cardinality'];
|
|
409
|
+
/** */
|
|
410
|
+
"itemContext"?: QtiResponseDeclaration['itemContext'];
|
|
417
411
|
|
|
412
|
+
/** */
|
|
413
|
+
"onqti-register-variable"?: (e: CustomEvent<CustomEvent>) => void;
|
|
418
414
|
}
|
|
419
415
|
|
|
420
416
|
|
|
421
|
-
export type
|
|
417
|
+
export type QtiOutcomeDeclarationProps = {
|
|
422
418
|
/** */
|
|
423
|
-
"
|
|
419
|
+
"base-type"?: QtiOutcomeDeclaration['baseType'];
|
|
424
420
|
/** */
|
|
425
|
-
"
|
|
421
|
+
"baseType"?: QtiOutcomeDeclaration['baseType'];
|
|
426
422
|
/** */
|
|
427
|
-
"
|
|
423
|
+
"external-scored"?: QtiOutcomeDeclaration['externalScored'];
|
|
428
424
|
/** */
|
|
429
|
-
"
|
|
425
|
+
"externalScored"?: QtiOutcomeDeclaration['externalScored'];
|
|
430
426
|
/** */
|
|
431
|
-
"
|
|
427
|
+
"identifier"?: QtiOutcomeDeclaration['identifier'];
|
|
432
428
|
/** */
|
|
433
|
-
"
|
|
429
|
+
"cardinality"?: QtiOutcomeDeclaration['cardinality'];
|
|
434
430
|
/** */
|
|
435
|
-
"
|
|
431
|
+
"itemContext"?: QtiOutcomeDeclaration['itemContext'];
|
|
432
|
+
|
|
436
433
|
/** */
|
|
437
|
-
"
|
|
434
|
+
"onqti-register-variable"?: (e: CustomEvent<CustomEvent>) => void;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
export type QtiItemProps = {
|
|
438
439
|
/** */
|
|
439
|
-
"
|
|
440
|
+
"computedContext"?: QtiItem['computedContext'];
|
|
440
441
|
/** */
|
|
441
|
-
"
|
|
442
|
+
"configContext"?: QtiItem['configContext'];
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
export type QtiAssessmentItemRefProps = {
|
|
442
449
|
/** */
|
|
443
|
-
"
|
|
450
|
+
"category"?: QtiAssessmentItemRef['category'];
|
|
444
451
|
/** */
|
|
445
|
-
"
|
|
452
|
+
"identifier"?: QtiAssessmentItemRef['identifier'];
|
|
446
453
|
/** */
|
|
447
|
-
"
|
|
454
|
+
"required"?: QtiAssessmentItemRef['required'];
|
|
448
455
|
/** */
|
|
449
|
-
"
|
|
456
|
+
"fixed"?: QtiAssessmentItemRef['fixed'];
|
|
450
457
|
/** */
|
|
451
|
-
"
|
|
452
|
-
/** */
|
|
453
|
-
"data-use-default-paths"?: QtiPortableCustomInteraction['useDefaultPaths'];
|
|
454
|
-
/** */
|
|
455
|
-
"useDefaultPaths"?: QtiPortableCustomInteraction['useDefaultPaths'];
|
|
456
|
-
/** */
|
|
457
|
-
"response"?: QtiPortableCustomInteraction['response'];
|
|
458
|
-
/** */
|
|
459
|
-
"value"?: QtiPortableCustomInteraction['value'];
|
|
460
|
-
/** */
|
|
461
|
-
"boundTo"?: QtiPortableCustomInteraction['boundTo'];
|
|
462
|
-
/** DIRECT MODE: Load config from URL */
|
|
463
|
-
"loadConfig"?: QtiPortableCustomInteraction['loadConfig'];
|
|
464
|
-
/** DIRECT MODE: Helper method to get resolvable path string */
|
|
465
|
-
"getResolvablePathString"?: QtiPortableCustomInteraction['getResolvablePathString'];
|
|
466
|
-
/** DIRECT MODE: Helper method to get resolvable path */
|
|
467
|
-
"getResolvablePath"?: QtiPortableCustomInteraction['getResolvablePath'];
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
export type QtiPositionObjectInteractionProps = {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
export type QtiPositionObjectStageProps = {
|
|
480
|
-
/** */
|
|
481
|
-
"choiceOrdering"?: QtiPositionObjectStage['choiceOrdering'];
|
|
482
|
-
/** */
|
|
483
|
-
"startX"?: QtiPositionObjectStage['startX'];
|
|
484
|
-
/** */
|
|
485
|
-
"startY"?: QtiPositionObjectStage['startY'];
|
|
486
|
-
/** */
|
|
487
|
-
"dragElement"?: QtiPositionObjectStage['dragElement'];
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
export type QtiSelectPointInteractionProps = {
|
|
494
|
-
/** */
|
|
495
|
-
"max-choices"?: QtiSelectPointInteraction['maxChoices'];
|
|
496
|
-
/** */
|
|
497
|
-
"maxChoices"?: QtiSelectPointInteraction['maxChoices'];
|
|
498
|
-
/** */
|
|
499
|
-
"min-choices"?: QtiSelectPointInteraction['minChoices'];
|
|
500
|
-
/** */
|
|
501
|
-
"minChoices"?: QtiSelectPointInteraction['minChoices'];
|
|
502
|
-
/** */
|
|
503
|
-
"response"?: QtiSelectPointInteraction['response'];
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
export type QtiSliderInteractionProps = {
|
|
510
|
-
/** */
|
|
511
|
-
"lower-bound"?: QtiSliderInteraction['min'];
|
|
512
|
-
/** */
|
|
513
|
-
"min"?: QtiSliderInteraction['min'];
|
|
514
|
-
/** */
|
|
515
|
-
"upper-bound"?: QtiSliderInteraction['max'];
|
|
516
|
-
/** */
|
|
517
|
-
"max"?: QtiSliderInteraction['max'];
|
|
518
|
-
/** */
|
|
519
|
-
"step"?: QtiSliderInteraction['step'];
|
|
520
|
-
/** */
|
|
521
|
-
"response"?: QtiSliderInteraction['response'];
|
|
522
|
-
|
|
523
|
-
/** */
|
|
524
|
-
"onchange"?: (e: CustomEvent<Event>) => void;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
export type QtiTextEntryInteractionProps = {
|
|
529
|
-
/** */
|
|
530
|
-
"expected-length"?: QtiTextEntryInteraction['expectedLength'];
|
|
531
|
-
/** */
|
|
532
|
-
"expectedLength"?: QtiTextEntryInteraction['expectedLength'];
|
|
533
|
-
/** */
|
|
534
|
-
"pattern-mask"?: QtiTextEntryInteraction['patternMask'];
|
|
535
|
-
/** */
|
|
536
|
-
"patternMask"?: QtiTextEntryInteraction['patternMask'];
|
|
537
|
-
/** */
|
|
538
|
-
"placeholder-text"?: QtiTextEntryInteraction['placeholderText'];
|
|
539
|
-
/** */
|
|
540
|
-
"placeholderText"?: QtiTextEntryInteraction['placeholderText'];
|
|
541
|
-
/** */
|
|
542
|
-
"data-patternmask-message"?: QtiTextEntryInteraction['dataPatternmaskMessage'];
|
|
543
|
-
/** */
|
|
544
|
-
"dataPatternmaskMessage"?: QtiTextEntryInteraction['dataPatternmaskMessage'];
|
|
545
|
-
/** */
|
|
546
|
-
"inputRef"?: QtiTextEntryInteraction['inputRef'];
|
|
547
|
-
/** */
|
|
548
|
-
"response"?: QtiTextEntryInteraction['response'];
|
|
549
|
-
/** */
|
|
550
|
-
"value"?: QtiTextEntryInteraction['value'];
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
export type QtiUploadInteractionProps = {
|
|
557
|
-
/** */
|
|
558
|
-
"response"?: QtiUploadInteraction['response'];
|
|
559
|
-
|
|
560
|
-
/** */
|
|
561
|
-
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
export type ItemShowCorrectResponseProps = {
|
|
566
|
-
/** */
|
|
567
|
-
"shown"?: ItemShowCorrectResponse['shown'];
|
|
568
|
-
/** */
|
|
569
|
-
"disabled"?: ItemShowCorrectResponse['disabled'];
|
|
570
|
-
/** */
|
|
571
|
-
"showCorrectText"?: ItemShowCorrectResponse['showCorrectText'];
|
|
572
|
-
/** */
|
|
573
|
-
"hideCorrectText"?: ItemShowCorrectResponse['hideCorrectText'];
|
|
574
|
-
/** */
|
|
575
|
-
"noCorrectResponseText"?: ItemShowCorrectResponse['noCorrectResponseText'];
|
|
576
|
-
/** */
|
|
577
|
-
"computedContext"?: ItemShowCorrectResponse['computedContext'];
|
|
578
|
-
|
|
579
|
-
/** */
|
|
580
|
-
"onitem-show-correct-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
export type QtiTemplateConstraintProps = {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
export type QtiTemplateProcessingProps = {
|
|
591
|
-
|
|
592
|
-
/** */
|
|
593
|
-
"onqti-template-processing-complete"?: (e: CustomEvent<CustomEvent>) => void;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
export type QtiResponseProcessingProps = {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
export type QtiAssessmentItemProps = {
|
|
604
|
-
/** */
|
|
605
|
-
"identifier"?: QtiAssessmentItem['identifier'];
|
|
606
|
-
/** */
|
|
607
|
-
"adaptive"?: QtiAssessmentItem['adaptive'];
|
|
608
|
-
/** */
|
|
609
|
-
"timeDependent"?: QtiAssessmentItem['timeDependent'];
|
|
610
|
-
/** */
|
|
611
|
-
"title"?: QtiAssessmentItem['title'];
|
|
612
|
-
/** */
|
|
613
|
-
"disabled"?: QtiAssessmentItem['disabled'];
|
|
614
|
-
/** */
|
|
615
|
-
"readonly"?: QtiAssessmentItem['readonly'];
|
|
616
|
-
/** Sets the identifier for the assessment item reference if this item is in a test. */
|
|
617
|
-
"assessmentItemRefId"?: QtiAssessmentItem['assessmentItemRefId'];
|
|
618
|
-
/** */
|
|
619
|
-
"variables"?: QtiAssessmentItem['variables'];
|
|
620
|
-
/** @deprecated use variables property instead */
|
|
621
|
-
"responses"?: QtiAssessmentItem['responses'];
|
|
622
|
-
|
|
623
|
-
/** */
|
|
624
|
-
"onqti-assessment-item-connected"?: (e: CustomEvent<CustomEvent>) => void;
|
|
625
|
-
/** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
|
|
626
|
-
"onqti-item-context-updated"?: (e: CustomEvent<CustomEvent>) => void;
|
|
627
|
-
/** */
|
|
628
|
-
"onqti-interaction-changed"?: (e: CustomEvent<CustomEvent>) => void;
|
|
629
|
-
/** */
|
|
630
|
-
"onqti-outcome-changed"?: (e: CustomEvent<CustomEvent>) => void;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
export type QtiAssessmentStimulusRefProps = {
|
|
635
|
-
/** */
|
|
636
|
-
"identifier"?: QtiAssessmentStimulusRef['identifier'];
|
|
637
|
-
/** */
|
|
638
|
-
"href"?: QtiAssessmentStimulusRef['href'];
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
export type QtiCompanionMaterialsInfoProps = {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
export type QtiCustomOperatorProps = {
|
|
651
|
-
|
|
652
|
-
/** */
|
|
653
|
-
"onqti-set-outcome-value"?: (e: CustomEvent<CustomEvent>) => void;
|
|
654
|
-
/** */
|
|
655
|
-
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
export type QtiFeedbackBlockProps = {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
export type QtiFeedbackInlineProps = {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
export type QtiModalFeedbackProps = {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
export type QtiItemBodyProps = {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
export type QtiPromptProps = {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
export type QtiContentBodyProps = {
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
export type QtiRubricBlockProps = {
|
|
696
|
-
/** */
|
|
697
|
-
"id"?: QtiRubricBlock['id'];
|
|
698
|
-
/** */
|
|
699
|
-
"use"?: QtiRubricBlock['use'];
|
|
700
|
-
/** */
|
|
701
|
-
"view"?: QtiRubricBlock['view'];
|
|
702
|
-
/** */
|
|
703
|
-
"class"?: QtiRubricBlock['classNames'];
|
|
704
|
-
/** */
|
|
705
|
-
"classNames"?: QtiRubricBlock['classNames'];
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
export type QtiStylesheetProps = {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
export type QtiResponseDeclarationProps = {
|
|
718
|
-
/** */
|
|
719
|
-
"base-type"?: QtiResponseDeclaration['baseType'];
|
|
720
|
-
/** */
|
|
721
|
-
"baseType"?: QtiResponseDeclaration['baseType'];
|
|
722
|
-
/** */
|
|
723
|
-
"identifier"?: QtiResponseDeclaration['identifier'];
|
|
724
|
-
/** */
|
|
725
|
-
"cardinality"?: QtiResponseDeclaration['cardinality'];
|
|
726
|
-
/** */
|
|
727
|
-
"itemContext"?: QtiResponseDeclaration['itemContext'];
|
|
728
|
-
|
|
729
|
-
/** */
|
|
730
|
-
"onqti-register-variable"?: (e: CustomEvent<CustomEvent>) => void;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
export type QtiOutcomeDeclarationProps = {
|
|
735
|
-
/** */
|
|
736
|
-
"base-type"?: QtiOutcomeDeclaration['baseType'];
|
|
737
|
-
/** */
|
|
738
|
-
"baseType"?: QtiOutcomeDeclaration['baseType'];
|
|
739
|
-
/** */
|
|
740
|
-
"external-scored"?: QtiOutcomeDeclaration['externalScored'];
|
|
741
|
-
/** */
|
|
742
|
-
"externalScored"?: QtiOutcomeDeclaration['externalScored'];
|
|
743
|
-
/** */
|
|
744
|
-
"identifier"?: QtiOutcomeDeclaration['identifier'];
|
|
745
|
-
/** */
|
|
746
|
-
"cardinality"?: QtiOutcomeDeclaration['cardinality'];
|
|
747
|
-
/** */
|
|
748
|
-
"itemContext"?: QtiOutcomeDeclaration['itemContext'];
|
|
749
|
-
|
|
458
|
+
"href"?: QtiAssessmentItemRef['href'];
|
|
750
459
|
/** */
|
|
751
|
-
"
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
export type QtiItemProps = {
|
|
460
|
+
"weigths"?: QtiAssessmentItemRef['weigths'];
|
|
756
461
|
/** */
|
|
757
|
-
"
|
|
462
|
+
"xmlDoc"?: QtiAssessmentItemRef['xmlDoc'];
|
|
758
463
|
/** */
|
|
759
|
-
"
|
|
760
|
-
|
|
464
|
+
"myTemplate"?: QtiAssessmentItemRef['myTemplate'];
|
|
761
465
|
|
|
466
|
+
/** */
|
|
467
|
+
"onqti-assessment-item-ref-connected"?: (e: CustomEvent<CustomEvent>) => void;
|
|
762
468
|
}
|
|
763
469
|
|
|
764
470
|
|
|
765
|
-
export type
|
|
471
|
+
export type QtiAssessmentSectionProps = {
|
|
766
472
|
/** */
|
|
767
|
-
"
|
|
473
|
+
"identifier"?: QtiAssessmentSection['identifier'];
|
|
768
474
|
/** */
|
|
769
|
-
"
|
|
475
|
+
"required"?: QtiAssessmentSection['required'];
|
|
770
476
|
/** */
|
|
771
|
-
"
|
|
477
|
+
"fixed"?: QtiAssessmentSection['fixed'];
|
|
772
478
|
/** */
|
|
773
|
-
"
|
|
479
|
+
"visible"?: QtiAssessmentSection['visible'];
|
|
774
480
|
/** */
|
|
775
|
-
"
|
|
481
|
+
"keep-together"?: QtiAssessmentSection['keepTogether'];
|
|
776
482
|
/** */
|
|
777
|
-
"
|
|
483
|
+
"keepTogether"?: QtiAssessmentSection['keepTogether'];
|
|
778
484
|
/** */
|
|
779
|
-
"
|
|
485
|
+
"title"?: QtiAssessmentSection['title'];
|
|
780
486
|
/** */
|
|
781
|
-
"
|
|
487
|
+
"_testContext"?: QtiAssessmentSection['_testContext'];
|
|
782
488
|
|
|
783
489
|
/** */
|
|
784
|
-
"onqti-assessment-
|
|
490
|
+
"onqti-assessment-section-connected"?: (e: CustomEvent<Event>) => void;
|
|
785
491
|
}
|
|
786
492
|
|
|
787
493
|
|
|
@@ -811,29 +517,6 @@ export type QtiTestProps = {
|
|
|
811
517
|
}
|
|
812
518
|
|
|
813
519
|
|
|
814
|
-
export type QtiAssessmentSectionProps = {
|
|
815
|
-
/** */
|
|
816
|
-
"identifier"?: QtiAssessmentSection['identifier'];
|
|
817
|
-
/** */
|
|
818
|
-
"required"?: QtiAssessmentSection['required'];
|
|
819
|
-
/** */
|
|
820
|
-
"fixed"?: QtiAssessmentSection['fixed'];
|
|
821
|
-
/** */
|
|
822
|
-
"visible"?: QtiAssessmentSection['visible'];
|
|
823
|
-
/** */
|
|
824
|
-
"keep-together"?: QtiAssessmentSection['keepTogether'];
|
|
825
|
-
/** */
|
|
826
|
-
"keepTogether"?: QtiAssessmentSection['keepTogether'];
|
|
827
|
-
/** */
|
|
828
|
-
"title"?: QtiAssessmentSection['title'];
|
|
829
|
-
/** */
|
|
830
|
-
"_testContext"?: QtiAssessmentSection['_testContext'];
|
|
831
|
-
|
|
832
|
-
/** */
|
|
833
|
-
"onqti-assessment-section-connected"?: (e: CustomEvent<Event>) => void;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
|
|
837
520
|
export type QtiTestPartProps = {
|
|
838
521
|
/** */
|
|
839
522
|
"identifier"?: QtiTestPart['identifier'];
|
|
@@ -1005,101 +688,326 @@ export type TestSectionButtonsStampProps = {
|
|
|
1005
688
|
}
|
|
1006
689
|
|
|
1007
690
|
|
|
1008
|
-
export type TestSectionLinkProps = {
|
|
1009
|
-
/** */
|
|
1010
|
-
"section-id"?: TestSectionLink['sectionId'];
|
|
1011
|
-
/** */
|
|
1012
|
-
"sectionId"?: TestSectionLink['sectionId'];
|
|
691
|
+
export type TestSectionLinkProps = {
|
|
692
|
+
/** */
|
|
693
|
+
"section-id"?: TestSectionLink['sectionId'];
|
|
694
|
+
/** */
|
|
695
|
+
"sectionId"?: TestSectionLink['sectionId'];
|
|
696
|
+
|
|
697
|
+
/** */
|
|
698
|
+
"onqti-request-navigation"?: (e: CustomEvent<CustomEvent>) => void;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
export type TestPrintContextProps = {
|
|
703
|
+
/** */
|
|
704
|
+
"computedContext"?: TestPrintContext['computedContext'];
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
export type TestStampProps = {
|
|
711
|
+
/** Indicates whether the component is in debug mode.
|
|
712
|
+
When set to `true`, the available objects and properties (i.e.: stampContext) is displayed. */
|
|
713
|
+
"debug"?: TestStamp['debug'];
|
|
714
|
+
/** */
|
|
715
|
+
"myTemplate"?: TestStamp['myTemplate'];
|
|
716
|
+
|
|
717
|
+
/** */
|
|
718
|
+
"onqti-stamp-context-updated"?: (e: CustomEvent<CustomEvent>) => void;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
export type TestScoringButtonsProps = {
|
|
723
|
+
/** */
|
|
724
|
+
"view"?: TestScoringButtons['view'];
|
|
725
|
+
/** */
|
|
726
|
+
"disabled"?: TestScoringButtons['disabled'];
|
|
727
|
+
/** */
|
|
728
|
+
"myTemplate"?: TestScoringButtons['myTemplate'];
|
|
729
|
+
|
|
730
|
+
/** */
|
|
731
|
+
"ontest-update-outcome-variable"?: (e: CustomEvent<CustomEvent>) => void;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
export type TestViewToggleProps = {
|
|
736
|
+
/** */
|
|
737
|
+
"myTemplate"?: TestViewToggle['myTemplate'];
|
|
738
|
+
|
|
739
|
+
/** */
|
|
740
|
+
"onon-test-switch-view"?: (e: CustomEvent<CustomEvent>) => void;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
export type TestScoringFeedbackProps = {
|
|
745
|
+
/** */
|
|
746
|
+
"view"?: TestScoringFeedback['view'];
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
export type TestCheckItemProps = {
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
export type QtiTestVariablesProps = {
|
|
759
|
+
/** */
|
|
760
|
+
"_testContext"?: QtiTestVariables['_testContext'];
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
export type QtiTemplateDeclarationProps = {
|
|
767
|
+
/** */
|
|
768
|
+
"identifier"?: QtiTemplateDeclaration['identifier'];
|
|
769
|
+
/** */
|
|
770
|
+
"cardinality"?: QtiTemplateDeclaration['cardinality'];
|
|
771
|
+
/** */
|
|
772
|
+
"base-type"?: QtiTemplateDeclaration['baseType'];
|
|
773
|
+
/** */
|
|
774
|
+
"baseType"?: QtiTemplateDeclaration['baseType'];
|
|
775
|
+
/** */
|
|
776
|
+
"math-variable"?: QtiTemplateDeclaration['mathVariable'];
|
|
777
|
+
/** */
|
|
778
|
+
"mathVariable"?: QtiTemplateDeclaration['mathVariable'];
|
|
779
|
+
/** */
|
|
780
|
+
"param-variable"?: QtiTemplateDeclaration['paramVariable'];
|
|
781
|
+
/** */
|
|
782
|
+
"paramVariable"?: QtiTemplateDeclaration['paramVariable'];
|
|
783
|
+
|
|
784
|
+
/** */
|
|
785
|
+
"onqti-register-variable"?: (e: CustomEvent<CustomEvent>) => void;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
export type QtiAssociateInteractionProps = {
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
export type QtiChoiceInteractionProps = {
|
|
796
|
+
/** @deprecated , use 'qti-orientation-horizontal' or 'qti-orientation-vertical' instead */
|
|
797
|
+
"orientation"?: QtiChoiceInteraction['orientation'];
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
export type QtiCustomInteractionProps = {
|
|
804
|
+
/** */
|
|
805
|
+
"data"?: QtiCustomInteraction['data'];
|
|
806
|
+
/** */
|
|
807
|
+
"data-base-item"?: QtiCustomInteraction['baseItemUrl'];
|
|
808
|
+
/** */
|
|
809
|
+
"baseItemUrl"?: QtiCustomInteraction['baseItemUrl'];
|
|
810
|
+
/** */
|
|
811
|
+
"data-base-ref"?: QtiCustomInteraction['baseRefUrl'];
|
|
812
|
+
/** */
|
|
813
|
+
"baseRefUrl"?: QtiCustomInteraction['baseRefUrl'];
|
|
814
|
+
/** */
|
|
815
|
+
"id"?: QtiCustomInteraction['id'];
|
|
816
|
+
/** */
|
|
817
|
+
"manifest"?: QtiCustomInteraction['manifest'];
|
|
818
|
+
/** */
|
|
819
|
+
"response"?: QtiCustomInteraction['response'];
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
export type QtiEndAttemptInteractionProps = {
|
|
826
|
+
/** */
|
|
827
|
+
"response-identifier"?: QtiEndAttemptInteraction['responseIdentifier'];
|
|
828
|
+
/** */
|
|
829
|
+
"responseIdentifier"?: QtiEndAttemptInteraction['responseIdentifier'];
|
|
830
|
+
/** */
|
|
831
|
+
"disabled"?: QtiEndAttemptInteraction['disabled'];
|
|
832
|
+
/** Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt) */
|
|
833
|
+
"count-attempt"?: QtiEndAttemptInteraction['countAttempt'];
|
|
834
|
+
/** Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt) */
|
|
835
|
+
"countAttempt"?: QtiEndAttemptInteraction['countAttempt'];
|
|
836
|
+
/** */
|
|
837
|
+
"title"?: QtiEndAttemptInteraction['title'];
|
|
838
|
+
|
|
839
|
+
/** */
|
|
840
|
+
"onend-attempt"?: (e: CustomEvent<CustomEvent>) => void;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
export type QtiExtendedTextInteractionProps = {
|
|
845
|
+
/** expected length is mapped to the property maxlength on the textarea */
|
|
846
|
+
"expected-length"?: QtiExtendedTextInteraction['expectedLength'];
|
|
847
|
+
/** expected length is mapped to the property maxlength on the textarea */
|
|
848
|
+
"expectedLength"?: QtiExtendedTextInteraction['expectedLength'];
|
|
849
|
+
/** */
|
|
850
|
+
"pattern-mask"?: QtiExtendedTextInteraction['patternMask'];
|
|
851
|
+
/** */
|
|
852
|
+
"patternMask"?: QtiExtendedTextInteraction['patternMask'];
|
|
853
|
+
/** text appearing in the extended-text-interaction if it is empty */
|
|
854
|
+
"placeholder-text"?: QtiExtendedTextInteraction['placeholderText'];
|
|
855
|
+
/** text appearing in the extended-text-interaction if it is empty */
|
|
856
|
+
"placeholderText"?: QtiExtendedTextInteraction['placeholderText'];
|
|
857
|
+
/** */
|
|
858
|
+
"data-patternmask-message"?: QtiExtendedTextInteraction['dataPatternmaskMessage'];
|
|
859
|
+
/** */
|
|
860
|
+
"dataPatternmaskMessage"?: QtiExtendedTextInteraction['dataPatternmaskMessage'];
|
|
861
|
+
/** */
|
|
862
|
+
"class"?: QtiExtendedTextInteraction['classNames'];
|
|
863
|
+
/** */
|
|
864
|
+
"classNames"?: QtiExtendedTextInteraction['classNames'];
|
|
865
|
+
/** */
|
|
866
|
+
"response"?: QtiExtendedTextInteraction['response'];
|
|
867
|
+
/** */
|
|
868
|
+
"value"?: QtiExtendedTextInteraction['value'];
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
export type QtiGapMatchInteractionProps = {
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
export type QtiGraphicAssociateInteractionProps = {
|
|
881
|
+
/** */
|
|
882
|
+
"response"?: QtiGraphicAssociateInteraction['response'];
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
export type QtiGraphicGapMatchInteractionProps = {
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
export type QtiGraphicOrderInteractionProps = {
|
|
895
|
+
|
|
1013
896
|
|
|
1014
|
-
/** */
|
|
1015
|
-
"onqti-request-navigation"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1016
897
|
}
|
|
1017
898
|
|
|
1018
899
|
|
|
1019
|
-
export type
|
|
1020
|
-
/** */
|
|
1021
|
-
"computedContext"?: TestPrintContext['computedContext'];
|
|
900
|
+
export type QtiHotspotInteractionProps = {
|
|
1022
901
|
|
|
1023
902
|
|
|
1024
903
|
}
|
|
1025
904
|
|
|
1026
905
|
|
|
1027
|
-
export type
|
|
1028
|
-
/** Indicates whether the component is in debug mode.
|
|
1029
|
-
When set to `true`, the available objects and properties (i.e.: stampContext) is displayed. */
|
|
1030
|
-
"debug"?: TestStamp['debug'];
|
|
906
|
+
export type QtiHottextInteractionProps = {
|
|
1031
907
|
/** */
|
|
1032
|
-
"
|
|
908
|
+
"class"?: QtiHottextInteraction['class'];
|
|
909
|
+
|
|
1033
910
|
|
|
1034
|
-
/** */
|
|
1035
|
-
"onqti-stamp-context-updated"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1036
911
|
}
|
|
1037
912
|
|
|
1038
913
|
|
|
1039
|
-
export type
|
|
914
|
+
export type QtiInlineChoiceInteractionProps = {
|
|
1040
915
|
/** */
|
|
1041
|
-
"
|
|
916
|
+
"data-prompt"?: QtiInlineChoiceInteraction['dataPrompt'];
|
|
1042
917
|
/** */
|
|
1043
|
-
"
|
|
918
|
+
"dataPrompt"?: QtiInlineChoiceInteraction['dataPrompt'];
|
|
1044
919
|
/** */
|
|
1045
|
-
"
|
|
1046
|
-
|
|
920
|
+
"configContext"?: QtiInlineChoiceInteraction['configContext'];
|
|
1047
921
|
/** */
|
|
1048
|
-
"
|
|
1049
|
-
}
|
|
1050
|
-
|
|
922
|
+
"response"?: QtiInlineChoiceInteraction['response'];
|
|
1051
923
|
|
|
1052
|
-
export type TestViewToggleProps = {
|
|
1053
|
-
/** */
|
|
1054
|
-
"myTemplate"?: TestViewToggle['myTemplate'];
|
|
1055
924
|
|
|
1056
|
-
/** */
|
|
1057
|
-
"onon-test-switch-view"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1058
925
|
}
|
|
1059
926
|
|
|
1060
927
|
|
|
1061
|
-
export type
|
|
928
|
+
export type QtiMatchInteractionProps = {
|
|
1062
929
|
/** */
|
|
1063
|
-
"
|
|
930
|
+
"class"?: QtiMatchInteraction['class'];
|
|
931
|
+
/** */
|
|
932
|
+
"response-identifier"?: QtiMatchInteraction['responseIdentifier'];
|
|
933
|
+
/** */
|
|
934
|
+
"responseIdentifier"?: QtiMatchInteraction['responseIdentifier'];
|
|
935
|
+
/** */
|
|
936
|
+
"response"?: QtiMatchInteraction['response'];
|
|
1064
937
|
|
|
1065
938
|
|
|
1066
939
|
}
|
|
1067
940
|
|
|
1068
941
|
|
|
1069
|
-
export type
|
|
942
|
+
export type QtiMediaInteractionProps = {
|
|
943
|
+
/** */
|
|
944
|
+
"response"?: QtiMediaInteraction['response'];
|
|
1070
945
|
|
|
1071
946
|
|
|
1072
947
|
}
|
|
1073
948
|
|
|
1074
949
|
|
|
1075
|
-
export type
|
|
950
|
+
export type QtiOrderInteractionProps = {
|
|
951
|
+
/** orientation of choices */
|
|
952
|
+
"orientation"?: QtiOrderInteraction['orientation'];
|
|
1076
953
|
/** */
|
|
1077
|
-
"
|
|
954
|
+
"correctResponses"?: QtiOrderInteraction['correctResponses'];
|
|
955
|
+
/** */
|
|
956
|
+
"showCorrectResponses"?: QtiOrderInteraction['showCorrectResponses'];
|
|
1078
957
|
|
|
1079
958
|
|
|
1080
959
|
}
|
|
1081
960
|
|
|
1082
961
|
|
|
1083
|
-
export type
|
|
962
|
+
export type QtiPortableCustomInteractionProps = {
|
|
1084
963
|
/** */
|
|
1085
|
-
"
|
|
964
|
+
"module"?: QtiPortableCustomInteraction['module'];
|
|
1086
965
|
/** */
|
|
1087
|
-
"
|
|
966
|
+
"custom-interaction-type-identifier"?: QtiPortableCustomInteraction['customInteractionTypeIdentifier'];
|
|
1088
967
|
/** */
|
|
1089
|
-
"
|
|
968
|
+
"customInteractionTypeIdentifier"?: QtiPortableCustomInteraction['customInteractionTypeIdentifier'];
|
|
1090
969
|
/** */
|
|
1091
|
-
"
|
|
970
|
+
"data-require-paths"?: QtiPortableCustomInteraction['requirePathsJson'];
|
|
1092
971
|
/** */
|
|
1093
|
-
"
|
|
972
|
+
"requirePathsJson"?: QtiPortableCustomInteraction['requirePathsJson'];
|
|
1094
973
|
/** */
|
|
1095
|
-
"
|
|
974
|
+
"data-require-shim"?: QtiPortableCustomInteraction['requireShimJson'];
|
|
1096
975
|
/** */
|
|
1097
|
-
"
|
|
976
|
+
"requireShimJson"?: QtiPortableCustomInteraction['requireShimJson'];
|
|
1098
977
|
/** */
|
|
1099
|
-
"
|
|
1100
|
-
|
|
978
|
+
"data-require-js-url"?: QtiPortableCustomInteraction['requireJsUrl'];
|
|
1101
979
|
/** */
|
|
1102
|
-
"
|
|
980
|
+
"requireJsUrl"?: QtiPortableCustomInteraction['requireJsUrl'];
|
|
981
|
+
/** */
|
|
982
|
+
"data-base-url"?: QtiPortableCustomInteraction['baseUrl'];
|
|
983
|
+
/** */
|
|
984
|
+
"baseUrl"?: QtiPortableCustomInteraction['baseUrl'];
|
|
985
|
+
/** */
|
|
986
|
+
"data-use-iframe"?: QtiPortableCustomInteraction['useIframe'];
|
|
987
|
+
/** */
|
|
988
|
+
"useIframe"?: QtiPortableCustomInteraction['useIframe'];
|
|
989
|
+
/** */
|
|
990
|
+
"data-use-default-shims"?: QtiPortableCustomInteraction['useDefaultShims'];
|
|
991
|
+
/** */
|
|
992
|
+
"useDefaultShims"?: QtiPortableCustomInteraction['useDefaultShims'];
|
|
993
|
+
/** */
|
|
994
|
+
"data-use-default-paths"?: QtiPortableCustomInteraction['useDefaultPaths'];
|
|
995
|
+
/** */
|
|
996
|
+
"useDefaultPaths"?: QtiPortableCustomInteraction['useDefaultPaths'];
|
|
997
|
+
/** */
|
|
998
|
+
"response"?: QtiPortableCustomInteraction['response'];
|
|
999
|
+
/** */
|
|
1000
|
+
"value"?: QtiPortableCustomInteraction['value'];
|
|
1001
|
+
/** */
|
|
1002
|
+
"boundTo"?: QtiPortableCustomInteraction['boundTo'];
|
|
1003
|
+
/** DIRECT MODE: Load config from URL */
|
|
1004
|
+
"loadConfig"?: QtiPortableCustomInteraction['loadConfig'];
|
|
1005
|
+
/** DIRECT MODE: Helper method to get resolvable path string */
|
|
1006
|
+
"getResolvablePathString"?: QtiPortableCustomInteraction['getResolvablePathString'];
|
|
1007
|
+
/** DIRECT MODE: Helper method to get resolvable path */
|
|
1008
|
+
"getResolvablePath"?: QtiPortableCustomInteraction['getResolvablePath'];
|
|
1009
|
+
|
|
1010
|
+
|
|
1103
1011
|
}
|
|
1104
1012
|
|
|
1105
1013
|
|
|
@@ -1155,6 +1063,98 @@ export type QtiPortableCustomInteractionTestProps = {
|
|
|
1155
1063
|
}
|
|
1156
1064
|
|
|
1157
1065
|
|
|
1066
|
+
export type QtiPositionObjectInteractionProps = {
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
export type QtiPositionObjectStageProps = {
|
|
1073
|
+
/** */
|
|
1074
|
+
"choiceOrdering"?: QtiPositionObjectStage['choiceOrdering'];
|
|
1075
|
+
/** */
|
|
1076
|
+
"startX"?: QtiPositionObjectStage['startX'];
|
|
1077
|
+
/** */
|
|
1078
|
+
"startY"?: QtiPositionObjectStage['startY'];
|
|
1079
|
+
/** */
|
|
1080
|
+
"dragElement"?: QtiPositionObjectStage['dragElement'];
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
export type QtiSelectPointInteractionProps = {
|
|
1087
|
+
/** */
|
|
1088
|
+
"max-choices"?: QtiSelectPointInteraction['maxChoices'];
|
|
1089
|
+
/** */
|
|
1090
|
+
"maxChoices"?: QtiSelectPointInteraction['maxChoices'];
|
|
1091
|
+
/** */
|
|
1092
|
+
"min-choices"?: QtiSelectPointInteraction['minChoices'];
|
|
1093
|
+
/** */
|
|
1094
|
+
"minChoices"?: QtiSelectPointInteraction['minChoices'];
|
|
1095
|
+
/** */
|
|
1096
|
+
"response"?: QtiSelectPointInteraction['response'];
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
export type QtiSliderInteractionProps = {
|
|
1103
|
+
/** */
|
|
1104
|
+
"lower-bound"?: QtiSliderInteraction['min'];
|
|
1105
|
+
/** */
|
|
1106
|
+
"min"?: QtiSliderInteraction['min'];
|
|
1107
|
+
/** */
|
|
1108
|
+
"upper-bound"?: QtiSliderInteraction['max'];
|
|
1109
|
+
/** */
|
|
1110
|
+
"max"?: QtiSliderInteraction['max'];
|
|
1111
|
+
/** */
|
|
1112
|
+
"step"?: QtiSliderInteraction['step'];
|
|
1113
|
+
/** */
|
|
1114
|
+
"response"?: QtiSliderInteraction['response'];
|
|
1115
|
+
|
|
1116
|
+
/** */
|
|
1117
|
+
"onchange"?: (e: CustomEvent<Event>) => void;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
export type QtiTextEntryInteractionProps = {
|
|
1122
|
+
/** */
|
|
1123
|
+
"expected-length"?: QtiTextEntryInteraction['expectedLength'];
|
|
1124
|
+
/** */
|
|
1125
|
+
"expectedLength"?: QtiTextEntryInteraction['expectedLength'];
|
|
1126
|
+
/** */
|
|
1127
|
+
"pattern-mask"?: QtiTextEntryInteraction['patternMask'];
|
|
1128
|
+
/** */
|
|
1129
|
+
"patternMask"?: QtiTextEntryInteraction['patternMask'];
|
|
1130
|
+
/** */
|
|
1131
|
+
"placeholder-text"?: QtiTextEntryInteraction['placeholderText'];
|
|
1132
|
+
/** */
|
|
1133
|
+
"placeholderText"?: QtiTextEntryInteraction['placeholderText'];
|
|
1134
|
+
/** */
|
|
1135
|
+
"data-patternmask-message"?: QtiTextEntryInteraction['dataPatternmaskMessage'];
|
|
1136
|
+
/** */
|
|
1137
|
+
"dataPatternmaskMessage"?: QtiTextEntryInteraction['dataPatternmaskMessage'];
|
|
1138
|
+
/** */
|
|
1139
|
+
"inputRef"?: QtiTextEntryInteraction['inputRef'];
|
|
1140
|
+
/** */
|
|
1141
|
+
"response"?: QtiTextEntryInteraction['response'];
|
|
1142
|
+
/** */
|
|
1143
|
+
"value"?: QtiTextEntryInteraction['value'];
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
export type QtiUploadInteractionProps = {
|
|
1150
|
+
/** */
|
|
1151
|
+
"response"?: QtiUploadInteraction['response'];
|
|
1152
|
+
|
|
1153
|
+
/** */
|
|
1154
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
1158
|
export type QtiAndProps = {
|
|
1159
1159
|
|
|
1160
1160
|
|
|
@@ -1440,13 +1440,6 @@ export type QtiResponseConditionProps = {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
|
|
1442
1442
|
|
|
1443
|
-
export type QtiSetOutcomeValueProps = {
|
|
1444
|
-
|
|
1445
|
-
/** */
|
|
1446
|
-
"onqti-set-outcome-value"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
1443
|
export type QtiResponseElseProps = {
|
|
1451
1444
|
|
|
1452
1445
|
|
|
@@ -1462,6 +1455,13 @@ export type QtiResponseIfProps = {
|
|
|
1462
1455
|
export type QtiResponseElseIfProps = {
|
|
1463
1456
|
|
|
1464
1457
|
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
export type QtiSetOutcomeValueProps = {
|
|
1462
|
+
|
|
1463
|
+
/** */
|
|
1464
|
+
"onqti-set-outcome-value"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
1467
|
export type CustomElements = {
|
|
@@ -1541,45 +1541,69 @@ export type QtiResponseElseIfProps = {
|
|
|
1541
1541
|
|
|
1542
1542
|
/**
|
|
1543
1543
|
*
|
|
1544
|
+
*
|
|
1545
|
+
* ## Attributes & Properties
|
|
1546
|
+
*
|
|
1547
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1548
|
+
*
|
|
1549
|
+
* - `shown`: undefined
|
|
1550
|
+
* - `disabled`: undefined
|
|
1551
|
+
* - `showCorrectText`: undefined
|
|
1552
|
+
* - `hideCorrectText`: undefined
|
|
1553
|
+
* - `noCorrectResponseText`: undefined
|
|
1554
|
+
* - `computedContext`: undefined (property only)
|
|
1555
|
+
*
|
|
1556
|
+
* ## Events
|
|
1557
|
+
*
|
|
1558
|
+
* Events that will be emitted by the component.
|
|
1559
|
+
*
|
|
1560
|
+
* - `item-show-correct-response`: undefined
|
|
1544
1561
|
*/
|
|
1545
|
-
"
|
|
1562
|
+
"item-show-correct-response": Partial<ItemShowCorrectResponseProps & BaseProps<ItemShowCorrectResponse> & BaseEvents>;
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
*
|
|
1567
|
+
*
|
|
1568
|
+
* ## Methods
|
|
1569
|
+
*
|
|
1570
|
+
* Methods that can be called to access component functionality.
|
|
1571
|
+
*
|
|
1572
|
+
* - `calculate() => void`: Evaluates the constraint condition
|
|
1573
|
+
* - `getSubRules() => QtiRuleBase[]`: Template constraints don't have sub-rules like conditions
|
|
1574
|
+
* - `process() => void`: Process the template constraint
|
|
1575
|
+
*/
|
|
1576
|
+
"qti-template-constraint": Partial<QtiTemplateConstraintProps & BaseProps<QtiTemplateConstraint> & BaseEvents>;
|
|
1546
1577
|
|
|
1547
1578
|
|
|
1548
1579
|
/**
|
|
1549
1580
|
*
|
|
1550
1581
|
*
|
|
1551
|
-
* ##
|
|
1582
|
+
* ## Events
|
|
1552
1583
|
*
|
|
1553
|
-
*
|
|
1584
|
+
* Events that will be emitted by the component.
|
|
1554
1585
|
*
|
|
1555
|
-
* - `
|
|
1586
|
+
* - `qti-template-processing-complete`: undefined
|
|
1587
|
+
*
|
|
1588
|
+
* ## Methods
|
|
1589
|
+
*
|
|
1590
|
+
* Methods that can be called to access component functionality.
|
|
1591
|
+
*
|
|
1592
|
+
* - `process() => void`: Process template rules to set template variable values
|
|
1556
1593
|
*/
|
|
1557
|
-
"qti-
|
|
1594
|
+
"qti-template-processing": Partial<QtiTemplateProcessingProps & BaseProps<QtiTemplateProcessing> & BaseEvents>;
|
|
1558
1595
|
|
|
1559
1596
|
|
|
1560
1597
|
/**
|
|
1561
1598
|
*
|
|
1562
1599
|
*
|
|
1563
|
-
* ## Attributes & Properties
|
|
1564
|
-
*
|
|
1565
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1566
|
-
*
|
|
1567
|
-
* - `data`: undefined
|
|
1568
|
-
* - `data-base-item`/`baseItemUrl`: undefined
|
|
1569
|
-
* - `data-base-ref`/`baseRefUrl`: undefined
|
|
1570
|
-
* - `id`: undefined
|
|
1571
|
-
* - `manifest`: undefined (property only)
|
|
1572
|
-
* - `response`: undefined (property only)
|
|
1573
|
-
*
|
|
1574
1600
|
* ## Methods
|
|
1575
1601
|
*
|
|
1576
1602
|
* Methods that can be called to access component functionality.
|
|
1577
1603
|
*
|
|
1578
|
-
* - `
|
|
1579
|
-
* - `handlePostMessage(event: MessageEvent) => void`: undefined
|
|
1580
|
-
* - `validate() => boolean`: undefined
|
|
1604
|
+
* - `process() => void`: undefined
|
|
1581
1605
|
*/
|
|
1582
|
-
"qti-
|
|
1606
|
+
"qti-response-processing": Partial<QtiResponseProcessingProps & BaseProps<QtiResponseProcessing> & BaseEvents>;
|
|
1583
1607
|
|
|
1584
1608
|
|
|
1585
1609
|
/**
|
|
@@ -1589,90 +1613,104 @@ export type QtiResponseElseIfProps = {
|
|
|
1589
1613
|
*
|
|
1590
1614
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1591
1615
|
*
|
|
1592
|
-
* - `
|
|
1593
|
-
* - `
|
|
1594
|
-
* - `
|
|
1616
|
+
* - `identifier`: undefined
|
|
1617
|
+
* - `adaptive`: undefined
|
|
1618
|
+
* - `timeDependent`: undefined
|
|
1595
1619
|
* - `title`: undefined
|
|
1620
|
+
* - `disabled`: undefined
|
|
1621
|
+
* - `readonly`: undefined
|
|
1622
|
+
* - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
|
|
1623
|
+
* - `variables`: undefined (property only)
|
|
1624
|
+
* - `responses`: undefined (property only)
|
|
1596
1625
|
*
|
|
1597
1626
|
* ## Events
|
|
1598
1627
|
*
|
|
1599
1628
|
* Events that will be emitted by the component.
|
|
1600
1629
|
*
|
|
1601
|
-
* - `
|
|
1630
|
+
* - `qti-assessment-item-connected`: undefined
|
|
1631
|
+
* - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
|
|
1632
|
+
* - `qti-interaction-changed`: undefined
|
|
1633
|
+
* - `qti-outcome-changed`: undefined
|
|
1602
1634
|
*
|
|
1603
1635
|
* ## Methods
|
|
1604
1636
|
*
|
|
1605
1637
|
* Methods that can be called to access component functionality.
|
|
1606
1638
|
*
|
|
1607
|
-
* - `
|
|
1639
|
+
* - `showCorrectResponse(show: boolean) => void`: Toggles the display of correct responses for all interactions.
|
|
1640
|
+
* - `showCandidateCorrection(show: boolean) => void`: Toggles the display of the candidate correction for all interactions.
|
|
1641
|
+
* - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => boolean`: undefined
|
|
1642
|
+
* - `resetResponses() => void`: undefined
|
|
1643
|
+
* - `getOutcome(identifier: string) => Readonly<OutcomeVariable>`: undefined
|
|
1644
|
+
* - `setOutcomeVariable(identifier: string, value: string | string[] | undefined) => void`: undefined
|
|
1645
|
+
* - `validate(reportValidity = true) => boolean`: undefined
|
|
1646
|
+
* - `reportValidity() => void`: undefined
|
|
1608
1647
|
*/
|
|
1609
|
-
"qti-
|
|
1648
|
+
"qti-assessment-item": Partial<QtiAssessmentItemProps & BaseProps<QtiAssessmentItem> & BaseEvents>;
|
|
1610
1649
|
|
|
1611
1650
|
|
|
1612
1651
|
/**
|
|
1613
|
-
*
|
|
1652
|
+
* Represents a custom element for referencing an assessment stimulus.
|
|
1614
1653
|
*
|
|
1615
1654
|
* ## Attributes & Properties
|
|
1616
1655
|
*
|
|
1617
1656
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1618
1657
|
*
|
|
1619
|
-
* - `
|
|
1620
|
-
* - `
|
|
1621
|
-
* - `placeholder-text`/`placeholderText`: text appearing in the extended-text-interaction if it is empty
|
|
1622
|
-
* - `data-patternmask-message`/`dataPatternmaskMessage`: undefined
|
|
1623
|
-
* - `class`/`classNames`: undefined
|
|
1624
|
-
* - `response`: undefined (property only)
|
|
1625
|
-
* - `value`: undefined (property only)
|
|
1658
|
+
* - `identifier`: undefined
|
|
1659
|
+
* - `href`: undefined
|
|
1626
1660
|
*
|
|
1627
1661
|
* ## Methods
|
|
1628
1662
|
*
|
|
1629
1663
|
* Methods that can be called to access component functionality.
|
|
1630
1664
|
*
|
|
1631
|
-
* - `
|
|
1632
|
-
* - `validate() => void`: undefined
|
|
1633
|
-
* - `toggleCorrectResponse() => void`: undefined
|
|
1634
|
-
* - `reportValidity() => void`: undefined
|
|
1665
|
+
* - `updateStimulusRef(stimulusRef: Element) => void`: Loads and appends the stimulus to the specified element.
|
|
1635
1666
|
*/
|
|
1636
|
-
"qti-
|
|
1667
|
+
"qti-assessment-stimulus-ref": Partial<QtiAssessmentStimulusRefProps & BaseProps<QtiAssessmentStimulusRef> & BaseEvents>;
|
|
1637
1668
|
|
|
1638
1669
|
|
|
1639
1670
|
/**
|
|
1640
1671
|
*
|
|
1641
|
-
*
|
|
1642
|
-
* ## Methods
|
|
1643
|
-
*
|
|
1644
|
-
* Methods that can be called to access component functionality.
|
|
1645
|
-
*
|
|
1646
|
-
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
1647
|
-
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
1648
1672
|
*/
|
|
1649
|
-
"qti-
|
|
1673
|
+
"qti-companion-materials-info": Partial<QtiCompanionMaterialsInfoProps & BaseProps<QtiCompanionMaterialsInfo> & BaseEvents>;
|
|
1650
1674
|
|
|
1651
1675
|
|
|
1652
1676
|
/**
|
|
1653
|
-
*
|
|
1677
|
+
* https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
|
|
1678
|
+
* <qti-custom-operator class="js.org">
|
|
1679
|
+
* <qti-base-value base-type="string"><![CDATA[
|
|
1680
|
+
* console.log(context.variables);
|
|
1681
|
+
* return 'B'
|
|
1682
|
+
* document.querySelector('qti-end-attempt-interaction').disabled = true;
|
|
1683
|
+
* ]]></qti-base-value>
|
|
1684
|
+
* </qti-custom-operator>
|
|
1685
|
+
* </qti-set-outcome-value>
|
|
1654
1686
|
*
|
|
1655
|
-
* ##
|
|
1687
|
+
* ## Events
|
|
1656
1688
|
*
|
|
1657
|
-
*
|
|
1689
|
+
* Events that will be emitted by the component.
|
|
1658
1690
|
*
|
|
1659
|
-
* - `
|
|
1691
|
+
* - `qti-set-outcome-value`: undefined
|
|
1692
|
+
* - `qti-interaction-response`: undefined
|
|
1660
1693
|
*
|
|
1661
1694
|
* ## Methods
|
|
1662
1695
|
*
|
|
1663
1696
|
* Methods that can be called to access component functionality.
|
|
1664
1697
|
*
|
|
1665
|
-
* - `
|
|
1666
|
-
* - `
|
|
1667
|
-
* - `toggleInternalCorrectResponse(show: boolean) => void`: undefined
|
|
1698
|
+
* - `handleSlotChange() => void`: undefined
|
|
1699
|
+
* - `calculate() => void`: undefined
|
|
1668
1700
|
*/
|
|
1669
|
-
"qti-
|
|
1701
|
+
"qti-custom-operator": Partial<QtiCustomOperatorProps & BaseProps<QtiCustomOperator> & BaseEvents>;
|
|
1670
1702
|
|
|
1671
1703
|
|
|
1672
1704
|
/**
|
|
1673
1705
|
*
|
|
1674
1706
|
*/
|
|
1675
|
-
"qti-
|
|
1707
|
+
"qti-feedback-block": Partial<QtiFeedbackBlockProps & BaseProps<QtiFeedbackBlock> & BaseEvents>;
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
*
|
|
1712
|
+
*/
|
|
1713
|
+
"qti-feedback-inline": Partial<QtiFeedbackInlineProps & BaseProps<QtiFeedbackInline> & BaseEvents>;
|
|
1676
1714
|
|
|
1677
1715
|
|
|
1678
1716
|
/**
|
|
@@ -1682,50 +1720,41 @@ export type QtiResponseElseIfProps = {
|
|
|
1682
1720
|
*
|
|
1683
1721
|
* Methods that can be called to access component functionality.
|
|
1684
1722
|
*
|
|
1685
|
-
* - `
|
|
1723
|
+
* - `openFeedback() => void`: undefined
|
|
1724
|
+
* - `closeFeedback() => void`: undefined
|
|
1686
1725
|
*/
|
|
1687
|
-
"qti-
|
|
1726
|
+
"qti-modal-feedback": Partial<QtiModalFeedbackProps & BaseProps<QtiModalFeedback> & BaseEvents>;
|
|
1688
1727
|
|
|
1689
1728
|
|
|
1690
1729
|
/**
|
|
1691
1730
|
*
|
|
1731
|
+
*
|
|
1732
|
+
* ## Slots
|
|
1733
|
+
*
|
|
1734
|
+
* Areas where markup can be added to the component.
|
|
1735
|
+
*
|
|
1736
|
+
* - `(default)`: item body content.
|
|
1737
|
+
* - `qti-rubric-block`: the qti rubric block is placed above the item
|
|
1738
|
+
*
|
|
1739
|
+
* ## CSS Parts
|
|
1740
|
+
*
|
|
1741
|
+
* Custom selectors for styling elements within the component.
|
|
1742
|
+
*
|
|
1743
|
+
* - `qti-rubric-block`: the qti rubric block part
|
|
1692
1744
|
*/
|
|
1693
|
-
"qti-
|
|
1745
|
+
"qti-item-body": Partial<QtiItemBodyProps & BaseProps<QtiItemBody> & BaseEvents>;
|
|
1694
1746
|
|
|
1695
1747
|
|
|
1696
1748
|
/**
|
|
1697
1749
|
*
|
|
1698
|
-
*
|
|
1699
|
-
* ## Attributes & Properties
|
|
1700
|
-
*
|
|
1701
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1702
|
-
*
|
|
1703
|
-
* - `class`: undefined
|
|
1704
1750
|
*/
|
|
1705
|
-
"qti-
|
|
1751
|
+
"qti-prompt": Partial<QtiPromptProps & BaseProps<QtiPrompt> & BaseEvents>;
|
|
1706
1752
|
|
|
1707
1753
|
|
|
1708
1754
|
/**
|
|
1709
1755
|
*
|
|
1710
|
-
*
|
|
1711
|
-
* ## Attributes & Properties
|
|
1712
|
-
*
|
|
1713
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1714
|
-
*
|
|
1715
|
-
* - `data-prompt`/`dataPrompt`: undefined
|
|
1716
|
-
* - `isInline`: undefined (property only) (readonly)
|
|
1717
|
-
* - `configContext`: undefined (property only)
|
|
1718
|
-
* - `response`: undefined (property only)
|
|
1719
|
-
*
|
|
1720
|
-
* ## Methods
|
|
1721
|
-
*
|
|
1722
|
-
* Methods that can be called to access component functionality.
|
|
1723
|
-
*
|
|
1724
|
-
* - `validate() => boolean`: undefined
|
|
1725
|
-
* - `reset() => void`: undefined
|
|
1726
|
-
* - `toggleInternalCorrectResponse(show: boolean) => void`: undefined
|
|
1727
1756
|
*/
|
|
1728
|
-
"qti-
|
|
1757
|
+
"qti-content-body": Partial<QtiContentBodyProps & BaseProps<QtiContentBody> & BaseEvents>;
|
|
1729
1758
|
|
|
1730
1759
|
|
|
1731
1760
|
/**
|
|
@@ -1735,38 +1764,24 @@ export type QtiResponseElseIfProps = {
|
|
|
1735
1764
|
*
|
|
1736
1765
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1737
1766
|
*
|
|
1738
|
-
* - `
|
|
1739
|
-
* - `
|
|
1740
|
-
* - `
|
|
1767
|
+
* - `id`: undefined
|
|
1768
|
+
* - `use`: undefined
|
|
1769
|
+
* - `view`: undefined
|
|
1770
|
+
* - `class`/`classNames`: undefined
|
|
1741
1771
|
*
|
|
1742
1772
|
* ## Methods
|
|
1743
1773
|
*
|
|
1744
1774
|
* Methods that can be called to access component functionality.
|
|
1745
1775
|
*
|
|
1746
|
-
* - `
|
|
1747
|
-
* - `toggleInternalCorrectResponse(show: boolean) => void`: undefined
|
|
1748
|
-
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
1776
|
+
* - `handleclassNamesChange() => void`: undefined
|
|
1749
1777
|
*/
|
|
1750
|
-
"qti-
|
|
1778
|
+
"qti-rubric-block": Partial<QtiRubricBlockProps & BaseProps<QtiRubricBlock> & BaseEvents>;
|
|
1751
1779
|
|
|
1752
1780
|
|
|
1753
1781
|
/**
|
|
1754
1782
|
*
|
|
1755
|
-
*
|
|
1756
|
-
* ## Attributes & Properties
|
|
1757
|
-
*
|
|
1758
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1759
|
-
*
|
|
1760
|
-
* - `response`: undefined (property only)
|
|
1761
|
-
*
|
|
1762
|
-
* ## Methods
|
|
1763
|
-
*
|
|
1764
|
-
* Methods that can be called to access component functionality.
|
|
1765
|
-
*
|
|
1766
|
-
* - `reset() => void`: undefined
|
|
1767
|
-
* - `validate() => boolean`: undefined
|
|
1768
1783
|
*/
|
|
1769
|
-
"qti-
|
|
1784
|
+
"qti-stylesheet": Partial<QtiStylesheetProps & BaseProps<QtiStylesheet> & BaseEvents>;
|
|
1770
1785
|
|
|
1771
1786
|
|
|
1772
1787
|
/**
|
|
@@ -1776,18 +1791,18 @@ export type QtiResponseElseIfProps = {
|
|
|
1776
1791
|
*
|
|
1777
1792
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1778
1793
|
*
|
|
1779
|
-
* - `
|
|
1780
|
-
* - `
|
|
1781
|
-
* - `
|
|
1794
|
+
* - `base-type`/`baseType`: undefined
|
|
1795
|
+
* - `identifier`: undefined
|
|
1796
|
+
* - `cardinality`: undefined
|
|
1797
|
+
* - `itemContext`: undefined (property only)
|
|
1782
1798
|
*
|
|
1783
|
-
* ##
|
|
1799
|
+
* ## Events
|
|
1784
1800
|
*
|
|
1785
|
-
*
|
|
1801
|
+
* Events that will be emitted by the component.
|
|
1786
1802
|
*
|
|
1787
|
-
* - `
|
|
1788
|
-
* - `getValue(val: string[]) => void`: undefined
|
|
1803
|
+
* - `qti-register-variable`: undefined
|
|
1789
1804
|
*/
|
|
1790
|
-
"qti-
|
|
1805
|
+
"qti-response-declaration": Partial<QtiResponseDeclarationProps & BaseProps<QtiResponseDeclaration> & BaseEvents>;
|
|
1791
1806
|
|
|
1792
1807
|
|
|
1793
1808
|
/**
|
|
@@ -1797,41 +1812,42 @@ export type QtiResponseElseIfProps = {
|
|
|
1797
1812
|
*
|
|
1798
1813
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1799
1814
|
*
|
|
1800
|
-
* - `
|
|
1801
|
-
* - `
|
|
1802
|
-
* - `
|
|
1803
|
-
* - `
|
|
1804
|
-
* - `
|
|
1805
|
-
* - `
|
|
1806
|
-
* - `data-use-iframe`/`useIframe`: undefined
|
|
1807
|
-
* - `data-use-default-shims`/`useDefaultShims`: undefined
|
|
1808
|
-
* - `data-use-default-paths`/`useDefaultPaths`: undefined
|
|
1809
|
-
* - `response`: undefined (property only)
|
|
1810
|
-
* - `value`: undefined (property only)
|
|
1811
|
-
* - `boundTo`: undefined (property only)
|
|
1812
|
-
* - `loadConfig`: DIRECT MODE: Load config from URL (property only)
|
|
1813
|
-
* - `getResolvablePathString`: DIRECT MODE: Helper method to get resolvable path string (property only)
|
|
1814
|
-
* - `getResolvablePath`: DIRECT MODE: Helper method to get resolvable path (property only)
|
|
1815
|
+
* - `base-type`/`baseType`: undefined
|
|
1816
|
+
* - `external-scored`/`externalScored`: undefined
|
|
1817
|
+
* - `identifier`: undefined
|
|
1818
|
+
* - `cardinality`: undefined
|
|
1819
|
+
* - `itemContext`: undefined (property only)
|
|
1820
|
+
* - `interpolationTable`: undefined (property only) (readonly)
|
|
1815
1821
|
*
|
|
1816
|
-
* ##
|
|
1822
|
+
* ## Events
|
|
1817
1823
|
*
|
|
1818
|
-
*
|
|
1824
|
+
* Events that will be emitted by the component.
|
|
1819
1825
|
*
|
|
1820
|
-
* - `
|
|
1821
|
-
* - `register(pci: IMSpci<ConfigProperties<unknown>>) => void`: DIRECT MODE: Register PCI instance
|
|
1822
|
-
* - `buildRequireConfig() => void`: DIRECT MODE: Build RequireJS configuration
|
|
1823
|
-
* - `toggleInternalCorrectResponse(show: boolean, responseVariable) => void`: Toggle the display of the correct response
|
|
1824
|
-
* - `disable() => void`: Method to disable the PCI for review mode
|
|
1825
|
-
* This can be used when showing the correct response
|
|
1826
|
-
* - `enable() => void`: Method to enable the PCI for interactive mode
|
|
1826
|
+
* - `qti-register-variable`: undefined
|
|
1827
1827
|
*/
|
|
1828
|
-
"qti-
|
|
1828
|
+
"qti-outcome-declaration": Partial<QtiOutcomeDeclarationProps & BaseProps<QtiOutcomeDeclaration> & BaseEvents>;
|
|
1829
1829
|
|
|
1830
1830
|
|
|
1831
1831
|
/**
|
|
1832
|
-
*
|
|
1832
|
+
* `<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.
|
|
1833
|
+
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
1834
|
+
* Placing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.
|
|
1835
|
+
* See `<item-container>` for more details.
|
|
1836
|
+
*
|
|
1837
|
+
* ```html
|
|
1838
|
+
* <qti-item>
|
|
1839
|
+
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
1840
|
+
* </qti-item>
|
|
1841
|
+
* ```
|
|
1842
|
+
*
|
|
1843
|
+
* ## Attributes & Properties
|
|
1844
|
+
*
|
|
1845
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1846
|
+
*
|
|
1847
|
+
* - `computedContext`: undefined (property only)
|
|
1848
|
+
* - `configContext`: undefined (property only)
|
|
1833
1849
|
*/
|
|
1834
|
-
"qti-
|
|
1850
|
+
"qti-item": Partial<QtiItemProps & BaseProps<QtiItem> & BaseEvents>;
|
|
1835
1851
|
|
|
1836
1852
|
|
|
1837
1853
|
/**
|
|
@@ -1841,19 +1857,23 @@ export type QtiResponseElseIfProps = {
|
|
|
1841
1857
|
*
|
|
1842
1858
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1843
1859
|
*
|
|
1844
|
-
* - `
|
|
1845
|
-
* - `
|
|
1846
|
-
* - `
|
|
1847
|
-
* - `
|
|
1860
|
+
* - `category`: undefined
|
|
1861
|
+
* - `identifier`: undefined
|
|
1862
|
+
* - `required`: undefined
|
|
1863
|
+
* - `fixed`: undefined
|
|
1864
|
+
* - `href`: undefined
|
|
1865
|
+
* - `weigths`: undefined (property only)
|
|
1866
|
+
* - `xmlDoc`: undefined (property only)
|
|
1867
|
+
* - `assessmentItem`: undefined (property only) (readonly)
|
|
1868
|
+
* - `myTemplate`: undefined (property only)
|
|
1848
1869
|
*
|
|
1849
|
-
* ##
|
|
1870
|
+
* ## Events
|
|
1850
1871
|
*
|
|
1851
|
-
*
|
|
1872
|
+
* Events that will be emitted by the component.
|
|
1852
1873
|
*
|
|
1853
|
-
* - `
|
|
1854
|
-
* - `removeMoveListener() => void`: undefined
|
|
1874
|
+
* - `qti-assessment-item-ref-connected`: undefined
|
|
1855
1875
|
*/
|
|
1856
|
-
"qti-
|
|
1876
|
+
"qti-assessment-item-ref": Partial<QtiAssessmentItemRefProps & BaseProps<QtiAssessmentItemRef> & BaseEvents>;
|
|
1857
1877
|
|
|
1858
1878
|
|
|
1859
1879
|
/**
|
|
@@ -1863,20 +1883,21 @@ export type QtiResponseElseIfProps = {
|
|
|
1863
1883
|
*
|
|
1864
1884
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1865
1885
|
*
|
|
1866
|
-
* - `
|
|
1867
|
-
* - `
|
|
1868
|
-
* - `
|
|
1869
|
-
* - `
|
|
1886
|
+
* - `identifier`: undefined
|
|
1887
|
+
* - `required`: undefined
|
|
1888
|
+
* - `fixed`: undefined
|
|
1889
|
+
* - `visible`: undefined
|
|
1890
|
+
* - `keep-together`/`keepTogether`: undefined
|
|
1891
|
+
* - `title`: undefined (property only)
|
|
1892
|
+
* - `_testContext`: undefined (property only)
|
|
1870
1893
|
*
|
|
1871
|
-
* ##
|
|
1894
|
+
* ## Events
|
|
1872
1895
|
*
|
|
1873
|
-
*
|
|
1896
|
+
* Events that will be emitted by the component.
|
|
1874
1897
|
*
|
|
1875
|
-
* - `
|
|
1876
|
-
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
1877
|
-
* - `validate() => boolean`: undefined
|
|
1898
|
+
* - `qti-assessment-section-connected`: undefined
|
|
1878
1899
|
*/
|
|
1879
|
-
"qti-
|
|
1900
|
+
"qti-assessment-section": Partial<QtiAssessmentSectionProps & BaseProps<QtiAssessmentSection> & BaseEvents>;
|
|
1880
1901
|
|
|
1881
1902
|
|
|
1882
1903
|
/**
|
|
@@ -1886,134 +1907,107 @@ export type QtiResponseElseIfProps = {
|
|
|
1886
1907
|
*
|
|
1887
1908
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1888
1909
|
*
|
|
1889
|
-
* - `
|
|
1890
|
-
* - `
|
|
1891
|
-
* - `
|
|
1892
|
-
* - `response`: undefined (property only)
|
|
1910
|
+
* - `identifier`: undefined
|
|
1911
|
+
* - `title`: undefined
|
|
1912
|
+
* - `_testContext`: undefined (property only)
|
|
1893
1913
|
*
|
|
1894
1914
|
* ## Events
|
|
1895
1915
|
*
|
|
1896
1916
|
* Events that will be emitted by the component.
|
|
1897
1917
|
*
|
|
1898
|
-
* - `
|
|
1899
|
-
*
|
|
1900
|
-
* ## Methods
|
|
1901
|
-
*
|
|
1902
|
-
* Methods that can be called to access component functionality.
|
|
1903
|
-
*
|
|
1904
|
-
* - `validate() => boolean`: undefined
|
|
1905
|
-
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
1918
|
+
* - `qti-assessment-test-connected`: undefined
|
|
1906
1919
|
*/
|
|
1907
|
-
"qti-
|
|
1920
|
+
"qti-assessment-test": Partial<QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents>;
|
|
1908
1921
|
|
|
1909
1922
|
|
|
1910
1923
|
/**
|
|
1911
1924
|
*
|
|
1912
1925
|
*
|
|
1913
|
-
* ## Attributes & Properties
|
|
1914
|
-
*
|
|
1915
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1916
|
-
*
|
|
1917
|
-
* - `expected-length`/`expectedLength`: undefined
|
|
1918
|
-
* - `pattern-mask`/`patternMask`: undefined
|
|
1919
|
-
* - `placeholder-text`/`placeholderText`: undefined
|
|
1920
|
-
* - `data-patternmask-message`/`dataPatternmaskMessage`: undefined
|
|
1921
|
-
* - `inputRef`: undefined (property only)
|
|
1922
|
-
* - `response`: undefined (property only)
|
|
1923
|
-
* - `value`: undefined (property only)
|
|
1924
|
-
* - `correctness`: undefined (property only) (readonly)
|
|
1925
|
-
* - `isInline`: undefined (property only) (readonly)
|
|
1926
|
-
*
|
|
1927
1926
|
* ## Methods
|
|
1928
1927
|
*
|
|
1929
1928
|
* Methods that can be called to access component functionality.
|
|
1930
1929
|
*
|
|
1931
|
-
* - `
|
|
1932
|
-
* - `toggleInternalCorrectResponse(show: boolean) => void`: undefined
|
|
1933
|
-
* - `reportValidity() => boolean`: undefined
|
|
1934
|
-
* - `reset() => void`: undefined
|
|
1930
|
+
* - `process() => void`: undefined
|
|
1935
1931
|
*/
|
|
1936
|
-
"qti-
|
|
1932
|
+
"qti-outcome-processing": Partial<QtiOutcomeProcessingProps & BaseProps<QtiOutcomeProcessing> & BaseEvents>;
|
|
1937
1933
|
|
|
1938
1934
|
|
|
1939
1935
|
/**
|
|
1940
|
-
*
|
|
1936
|
+
* `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.
|
|
1941
1937
|
*
|
|
1942
|
-
*
|
|
1938
|
+
* This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.
|
|
1943
1939
|
*
|
|
1944
|
-
*
|
|
1940
|
+
* ### Example Usage
|
|
1945
1941
|
*
|
|
1946
|
-
*
|
|
1942
|
+
* Minimal example including navigation:
|
|
1947
1943
|
*
|
|
1948
|
-
*
|
|
1944
|
+
* ```html
|
|
1945
|
+
* <qti-test>
|
|
1946
|
+
* <test-navigation>
|
|
1947
|
+
* <test-container test-url="./path/to/assessment.xml"></test-container>
|
|
1948
|
+
* <nav class="flex">
|
|
1949
|
+
* <test-prev></test-prev>
|
|
1950
|
+
* <test-next></test-next>
|
|
1951
|
+
* </nav>
|
|
1952
|
+
* </test-navigation>
|
|
1953
|
+
* </qti-test>
|
|
1954
|
+
* ```
|
|
1949
1955
|
*
|
|
1950
|
-
*
|
|
1956
|
+
* Use the following file structure
|
|
1957
|
+
* A qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.
|
|
1951
1958
|
*
|
|
1952
|
-
*
|
|
1959
|
+
* ```plaintext
|
|
1960
|
+
* Root/
|
|
1961
|
+
* ├── index.html
|
|
1962
|
+
* └── /assets/api/examples/
|
|
1963
|
+
* ├── assessmenttest.xml
|
|
1964
|
+
* └── imsmanifest.xml
|
|
1953
1965
|
*
|
|
1954
|
-
*
|
|
1966
|
+
* ```
|
|
1955
1967
|
*
|
|
1956
|
-
*
|
|
1968
|
+
* ### Test components
|
|
1957
1969
|
*
|
|
1958
|
-
* -
|
|
1959
|
-
*
|
|
1960
|
-
|
|
1961
|
-
"qti-upload-interaction": Partial<QtiUploadInteractionProps & BaseProps<QtiUploadInteraction> & BaseEvents>;
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
/**
|
|
1965
|
-
*
|
|
1970
|
+
* Use test components inside the qti-test component for added functionality.
|
|
1971
|
+
* ### Test next
|
|
1972
|
+
* `<test-next> | TestNext`
|
|
1966
1973
|
*
|
|
1967
|
-
*
|
|
1974
|
+
* ### Test prev
|
|
1968
1975
|
*
|
|
1969
|
-
*
|
|
1976
|
+
* `<test-prev> | TestPrev`
|
|
1977
|
+
* ### Test components
|
|
1970
1978
|
*
|
|
1971
|
-
*
|
|
1972
|
-
* - `
|
|
1973
|
-
* - `showCorrectText`: undefined
|
|
1974
|
-
* - `hideCorrectText`: undefined
|
|
1975
|
-
* - `noCorrectResponseText`: undefined
|
|
1976
|
-
* - `computedContext`: undefined (property only)
|
|
1979
|
+
* You can use normal class names to style the elements.
|
|
1980
|
+
* And you can use the `test-prev` and `test-next` elements to navigate through the test.
|
|
1977
1981
|
*
|
|
1978
1982
|
* ## Events
|
|
1979
1983
|
*
|
|
1980
1984
|
* Events that will be emitted by the component.
|
|
1981
1985
|
*
|
|
1982
|
-
* - `
|
|
1986
|
+
* - `qti-test-connected`: undefined
|
|
1983
1987
|
*/
|
|
1984
|
-
"
|
|
1988
|
+
"qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
|
|
1985
1989
|
|
|
1986
1990
|
|
|
1987
1991
|
/**
|
|
1988
1992
|
*
|
|
1989
1993
|
*
|
|
1990
|
-
* ##
|
|
1994
|
+
* ## Attributes & Properties
|
|
1991
1995
|
*
|
|
1992
|
-
*
|
|
1996
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1993
1997
|
*
|
|
1994
|
-
* - `
|
|
1995
|
-
* - `
|
|
1996
|
-
* - `
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
/**
|
|
2002
|
-
*
|
|
1998
|
+
* - `identifier`: undefined
|
|
1999
|
+
* - `class`: undefined
|
|
2000
|
+
* - `navigation-mode`/`navigationMode`: undefined
|
|
2001
|
+
* - `submission-mode`/`submissionMode`: undefined
|
|
2002
|
+
* - `title`: undefined (property only)
|
|
2003
2003
|
*
|
|
2004
2004
|
* ## Events
|
|
2005
2005
|
*
|
|
2006
2006
|
* Events that will be emitted by the component.
|
|
2007
2007
|
*
|
|
2008
|
-
* - `qti-
|
|
2009
|
-
*
|
|
2010
|
-
* ## Methods
|
|
2011
|
-
*
|
|
2012
|
-
* Methods that can be called to access component functionality.
|
|
2013
|
-
*
|
|
2014
|
-
* - `process() => void`: Process template rules to set template variable values
|
|
2008
|
+
* - `qti-test-part-connected`: undefined
|
|
2015
2009
|
*/
|
|
2016
|
-
"qti-
|
|
2010
|
+
"qti-test-part": Partial<QtiTestPartProps & BaseProps<QtiTestPart> & BaseEvents>;
|
|
2017
2011
|
|
|
2018
2012
|
|
|
2019
2013
|
/**
|
|
@@ -2023,9 +2017,10 @@ export type QtiResponseElseIfProps = {
|
|
|
2023
2017
|
*
|
|
2024
2018
|
* Methods that can be called to access component functionality.
|
|
2025
2019
|
*
|
|
2026
|
-
* - `
|
|
2020
|
+
* - `openFeedback() => void`: undefined
|
|
2021
|
+
* - `closeFeedback() => void`: undefined
|
|
2027
2022
|
*/
|
|
2028
|
-
"qti-
|
|
2023
|
+
"qti-test-feedback": Partial<QtiTestFeedbackProps & BaseProps<QtiTestFeedback> & BaseEvents>;
|
|
2029
2024
|
|
|
2030
2025
|
|
|
2031
2026
|
/**
|
|
@@ -2036,174 +2031,181 @@ export type QtiResponseElseIfProps = {
|
|
|
2036
2031
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2037
2032
|
*
|
|
2038
2033
|
* - `identifier`: undefined
|
|
2039
|
-
* - `
|
|
2040
|
-
* - `
|
|
2041
|
-
* - `
|
|
2042
|
-
* - `
|
|
2043
|
-
* - `readonly`: undefined
|
|
2044
|
-
* - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
|
|
2045
|
-
* - `variables`: undefined (property only)
|
|
2046
|
-
* - `responses`: undefined (property only)
|
|
2034
|
+
* - `auto-score-items`/`autoScoreItems`: undefined
|
|
2035
|
+
* - `initContext`: undefined (property only)
|
|
2036
|
+
* - `qtiContext`: undefined (property only)
|
|
2037
|
+
* - `configContext`: undefined (property only)
|
|
2047
2038
|
*
|
|
2048
2039
|
* ## Events
|
|
2049
2040
|
*
|
|
2050
2041
|
* Events that will be emitted by the component.
|
|
2051
2042
|
*
|
|
2052
|
-
* - `qti-
|
|
2053
|
-
* - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
|
|
2054
|
-
* - `qti-interaction-changed`: undefined
|
|
2055
|
-
* - `qti-outcome-changed`: undefined
|
|
2056
|
-
*
|
|
2057
|
-
* ## Methods
|
|
2058
|
-
*
|
|
2059
|
-
* Methods that can be called to access component functionality.
|
|
2060
|
-
*
|
|
2061
|
-
* - `showCorrectResponse(show: boolean) => void`: Toggles the display of correct responses for all interactions.
|
|
2062
|
-
* - `showCandidateCorrection(show: boolean) => void`: Toggles the display of the candidate correction for all interactions.
|
|
2063
|
-
* - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => boolean`: undefined
|
|
2064
|
-
* - `resetResponses() => void`: undefined
|
|
2065
|
-
* - `getOutcome(identifier: string) => Readonly<OutcomeVariable>`: undefined
|
|
2066
|
-
* - `setOutcomeVariable(identifier: string, value: string | string[] | undefined) => void`: undefined
|
|
2067
|
-
* - `validate(reportValidity = true) => boolean`: undefined
|
|
2068
|
-
* - `reportValidity() => void`: undefined
|
|
2043
|
+
* - `qti-computed-context-updated`: undefined
|
|
2069
2044
|
*/
|
|
2070
|
-
"
|
|
2045
|
+
"test-navigation": Partial<TestNavigationProps & BaseProps<TestNavigation> & BaseEvents>;
|
|
2071
2046
|
|
|
2072
2047
|
|
|
2073
2048
|
/**
|
|
2074
|
-
* Represents a custom element for
|
|
2049
|
+
* Represents a custom element for navigating to the next test item.
|
|
2075
2050
|
*
|
|
2076
2051
|
* ## Attributes & Properties
|
|
2077
2052
|
*
|
|
2078
2053
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2079
2054
|
*
|
|
2080
|
-
* - `
|
|
2081
|
-
* - `
|
|
2055
|
+
* - `disabled`/`_internalDisabled`: undefined
|
|
2056
|
+
* - `sectionItems`: undefined (property only)
|
|
2057
|
+
* - `itemIndex`: undefined (property only)
|
|
2058
|
+
* - `role`: undefined (property only)
|
|
2059
|
+
* - `ariaLabel`: undefined (property only)
|
|
2060
|
+
*
|
|
2061
|
+
* ## Events
|
|
2062
|
+
*
|
|
2063
|
+
* Events that will be emitted by the component.
|
|
2064
|
+
*
|
|
2065
|
+
* - `qti-request-navigation`: undefined
|
|
2082
2066
|
*
|
|
2083
2067
|
* ## Methods
|
|
2084
2068
|
*
|
|
2085
2069
|
* Methods that can be called to access component functionality.
|
|
2086
2070
|
*
|
|
2087
|
-
* - `
|
|
2088
|
-
|
|
2089
|
-
"qti-assessment-stimulus-ref": Partial<QtiAssessmentStimulusRefProps & BaseProps<QtiAssessmentStimulusRef> & BaseEvents>;
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
/**
|
|
2093
|
-
*
|
|
2071
|
+
* - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
|
|
2072
|
+
* - `checkDisabled() => void`: undefined
|
|
2094
2073
|
*/
|
|
2095
|
-
"
|
|
2074
|
+
"test-next": Partial<TestNextProps & BaseProps<TestNext> & BaseEvents>;
|
|
2096
2075
|
|
|
2097
2076
|
|
|
2098
2077
|
/**
|
|
2099
|
-
*
|
|
2100
|
-
*
|
|
2101
|
-
*
|
|
2102
|
-
*
|
|
2103
|
-
*
|
|
2104
|
-
*
|
|
2105
|
-
*
|
|
2106
|
-
*
|
|
2107
|
-
*
|
|
2078
|
+
* Represents a custom element for navigating to the previous test item.
|
|
2079
|
+
*
|
|
2080
|
+
* ## Attributes & Properties
|
|
2081
|
+
*
|
|
2082
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2083
|
+
*
|
|
2084
|
+
* - `disabled`/`_internalDisabled`: undefined
|
|
2085
|
+
* - `sectionItems`: undefined (property only)
|
|
2086
|
+
* - `itemIndex`: undefined (property only)
|
|
2108
2087
|
*
|
|
2109
2088
|
* ## Events
|
|
2110
2089
|
*
|
|
2111
2090
|
* Events that will be emitted by the component.
|
|
2112
2091
|
*
|
|
2113
|
-
* - `qti-
|
|
2114
|
-
* - `qti-interaction-response`: undefined
|
|
2092
|
+
* - `qti-request-navigation`: undefined
|
|
2115
2093
|
*
|
|
2116
2094
|
* ## Methods
|
|
2117
2095
|
*
|
|
2118
2096
|
* Methods that can be called to access component functionality.
|
|
2119
2097
|
*
|
|
2120
|
-
* - `
|
|
2121
|
-
* - `
|
|
2122
|
-
*/
|
|
2123
|
-
"qti-custom-operator": Partial<QtiCustomOperatorProps & BaseProps<QtiCustomOperator> & BaseEvents>;
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
/**
|
|
2127
|
-
*
|
|
2128
|
-
*/
|
|
2129
|
-
"qti-feedback-block": Partial<QtiFeedbackBlockProps & BaseProps<QtiFeedbackBlock> & BaseEvents>;
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
/**
|
|
2133
|
-
*
|
|
2098
|
+
* - `_handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) => void`: undefined
|
|
2099
|
+
* - `checkDisabled() => void`: undefined
|
|
2134
2100
|
*/
|
|
2135
|
-
"
|
|
2101
|
+
"test-prev": Partial<TestPrevProps & BaseProps<TestPrev> & BaseEvents>;
|
|
2136
2102
|
|
|
2137
2103
|
|
|
2138
2104
|
/**
|
|
2139
2105
|
*
|
|
2140
2106
|
*
|
|
2141
|
-
* ##
|
|
2107
|
+
* ## Attributes & Properties
|
|
2142
2108
|
*
|
|
2143
|
-
*
|
|
2109
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2144
2110
|
*
|
|
2145
|
-
* - `
|
|
2146
|
-
* - `
|
|
2111
|
+
* - `label`: label accompanying the select view dropdown
|
|
2112
|
+
* - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
|
|
2113
|
+
*
|
|
2114
|
+
* ## Events
|
|
2115
|
+
*
|
|
2116
|
+
* Events that will be emitted by the component.
|
|
2117
|
+
*
|
|
2118
|
+
* - `on-test-switch-view`: undefined
|
|
2147
2119
|
*/
|
|
2148
|
-
"
|
|
2120
|
+
"test-view": Partial<TestViewProps & BaseProps<TestView> & BaseEvents>;
|
|
2149
2121
|
|
|
2150
2122
|
|
|
2151
2123
|
/**
|
|
2152
2124
|
*
|
|
2153
2125
|
*
|
|
2154
|
-
* ##
|
|
2126
|
+
* ## Attributes & Properties
|
|
2155
2127
|
*
|
|
2156
|
-
*
|
|
2128
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2157
2129
|
*
|
|
2158
|
-
* - `
|
|
2159
|
-
* - `qti-rubric-block`: the qti rubric block is placed above the item
|
|
2130
|
+
* - `item-id`/`itemId`: undefined
|
|
2160
2131
|
*
|
|
2161
|
-
* ##
|
|
2132
|
+
* ## Events
|
|
2162
2133
|
*
|
|
2163
|
-
*
|
|
2134
|
+
* Events that will be emitted by the component.
|
|
2164
2135
|
*
|
|
2165
|
-
* - `qti-
|
|
2136
|
+
* - `qti-request-navigation`: undefined
|
|
2166
2137
|
*/
|
|
2167
|
-
"
|
|
2138
|
+
"test-item-link": Partial<TestItemLinkProps & BaseProps<TestItemLink> & BaseEvents>;
|
|
2168
2139
|
|
|
2169
2140
|
|
|
2170
2141
|
/**
|
|
2171
2142
|
*
|
|
2172
2143
|
*/
|
|
2173
|
-
"
|
|
2144
|
+
"test-end-attempt": Partial<TestEndAttemptProps & BaseProps<TestEndAttempt> & BaseEvents>;
|
|
2174
2145
|
|
|
2175
2146
|
|
|
2176
2147
|
/**
|
|
2177
|
-
*
|
|
2148
|
+
* @deprecated test-show-correct-response is deprecated and will be removed in the future.
|
|
2149
|
+
*
|
|
2150
|
+
*
|
|
2151
|
+
*
|
|
2152
|
+
* ## Attributes & Properties
|
|
2153
|
+
*
|
|
2154
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2155
|
+
*
|
|
2156
|
+
* - `shown`: undefined
|
|
2157
|
+
* - `disabled`: undefined
|
|
2158
|
+
* - `showCorrectText`: undefined
|
|
2159
|
+
* - `hideCorrectText`: undefined
|
|
2160
|
+
* - `noCorrectResponseText`: undefined
|
|
2161
|
+
* - `computedContext`: undefined (property only)
|
|
2162
|
+
*
|
|
2163
|
+
* ## Events
|
|
2164
|
+
*
|
|
2165
|
+
* Events that will be emitted by the component.
|
|
2166
|
+
*
|
|
2167
|
+
* - `test-show-correct-response`: undefined
|
|
2178
2168
|
*/
|
|
2179
|
-
"
|
|
2169
|
+
"test-show-correct-response": Partial<TestShowCorrectResponseProps & BaseProps<TestShowCorrectResponse> & BaseEvents>;
|
|
2180
2170
|
|
|
2181
2171
|
|
|
2182
2172
|
/**
|
|
2183
|
-
*
|
|
2184
|
-
*
|
|
2185
|
-
* ## Attributes & Properties
|
|
2173
|
+
* @deprecated test-paging-buttons-stamp is deprecated and will be removed in the future.
|
|
2186
2174
|
*
|
|
2187
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2188
2175
|
*
|
|
2189
|
-
* - `id`: undefined
|
|
2190
|
-
* - `use`: undefined
|
|
2191
|
-
* - `view`: undefined
|
|
2192
|
-
* - `class`/`classNames`: undefined
|
|
2193
2176
|
*
|
|
2194
|
-
* ##
|
|
2177
|
+
* ## Attributes & Properties
|
|
2195
2178
|
*
|
|
2196
|
-
*
|
|
2179
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2197
2180
|
*
|
|
2198
|
-
* - `
|
|
2181
|
+
* - `myTemplate`: undefined (property only)
|
|
2182
|
+
* - `ariaLabel`: undefined (property only)
|
|
2199
2183
|
*/
|
|
2200
|
-
"
|
|
2184
|
+
"test-paging-buttons-stamp": Partial<TestPagingButtonsStampProps & BaseProps<TestPagingButtonsStamp> & BaseEvents>;
|
|
2201
2185
|
|
|
2202
2186
|
|
|
2203
2187
|
/**
|
|
2204
|
-
*
|
|
2188
|
+
* `<test-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
2189
|
+
* The `qti-assessment-test` will be placed inside the shadow DOM of this element.
|
|
2190
|
+
* The element loads the test from the provided URL and renders it inside the shadow DOM.
|
|
2191
|
+
*
|
|
2192
|
+
* ```html
|
|
2193
|
+
* <qti-test>
|
|
2194
|
+
* <test-navigation>
|
|
2195
|
+
* <test-container class="m-4 bg-white" test-url="./path/to/assessmenttest.xml"></test-container>
|
|
2196
|
+
* </test-navigation>
|
|
2197
|
+
* </qti-test>
|
|
2198
|
+
* ```
|
|
2199
|
+
*
|
|
2200
|
+
* ## Attributes & Properties
|
|
2201
|
+
*
|
|
2202
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2203
|
+
*
|
|
2204
|
+
* - `test-url`/`testURL`: URL of the item to load
|
|
2205
|
+
* - `testDoc`: A parsed HTML document (property only)
|
|
2206
|
+
* - `testXML`: The raw XML string (property only)
|
|
2205
2207
|
*/
|
|
2206
|
-
"
|
|
2208
|
+
"test-container": Partial<TestContainerProps & BaseProps<TestContainer> & BaseEvents>;
|
|
2207
2209
|
|
|
2208
2210
|
|
|
2209
2211
|
/**
|
|
@@ -2213,18 +2215,24 @@ export type QtiResponseElseIfProps = {
|
|
|
2213
2215
|
*
|
|
2214
2216
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2215
2217
|
*
|
|
2216
|
-
* - `
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2218
|
+
* - `computedContext`: undefined (property only)
|
|
2219
|
+
*/
|
|
2220
|
+
"test-print-item-variables": Partial<TestPrintVariablesProps & BaseProps<TestPrintVariables> & BaseEvents>;
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* @deprecated test-section-buttons-stamp is deprecated and will be removed in the future.
|
|
2220
2225
|
*
|
|
2221
|
-
* ## Events
|
|
2222
2226
|
*
|
|
2223
|
-
* Events that will be emitted by the component.
|
|
2224
2227
|
*
|
|
2225
|
-
*
|
|
2228
|
+
* ## Attributes & Properties
|
|
2229
|
+
*
|
|
2230
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2231
|
+
*
|
|
2232
|
+
* - `myTemplate`: undefined (property only)
|
|
2233
|
+
* - `ariaLabel`: undefined (property only)
|
|
2226
2234
|
*/
|
|
2227
|
-
"
|
|
2235
|
+
"test-section-buttons-stamp": Partial<TestSectionButtonsStampProps & BaseProps<TestSectionButtonsStamp> & BaseEvents>;
|
|
2228
2236
|
|
|
2229
2237
|
|
|
2230
2238
|
/**
|
|
@@ -2234,68 +2242,48 @@ export type QtiResponseElseIfProps = {
|
|
|
2234
2242
|
*
|
|
2235
2243
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2236
2244
|
*
|
|
2237
|
-
* - `
|
|
2238
|
-
* - `external-scored`/`externalScored`: undefined
|
|
2239
|
-
* - `identifier`: undefined
|
|
2240
|
-
* - `cardinality`: undefined
|
|
2241
|
-
* - `itemContext`: undefined (property only)
|
|
2242
|
-
* - `interpolationTable`: undefined (property only) (readonly)
|
|
2245
|
+
* - `section-id`/`sectionId`: undefined
|
|
2243
2246
|
*
|
|
2244
2247
|
* ## Events
|
|
2245
2248
|
*
|
|
2246
2249
|
* Events that will be emitted by the component.
|
|
2247
2250
|
*
|
|
2248
|
-
* - `qti-
|
|
2251
|
+
* - `qti-request-navigation`: undefined
|
|
2249
2252
|
*/
|
|
2250
|
-
"
|
|
2253
|
+
"test-section-link": Partial<TestSectionLinkProps & BaseProps<TestSectionLink> & BaseEvents>;
|
|
2251
2254
|
|
|
2252
2255
|
|
|
2253
2256
|
/**
|
|
2254
|
-
*
|
|
2255
|
-
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
2256
|
-
* Placing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.
|
|
2257
|
-
* See `<item-container>` for more details.
|
|
2258
|
-
*
|
|
2259
|
-
* ```html
|
|
2260
|
-
* <qti-item>
|
|
2261
|
-
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
2262
|
-
* </qti-item>
|
|
2263
|
-
* ```
|
|
2257
|
+
*
|
|
2264
2258
|
*
|
|
2265
2259
|
* ## Attributes & Properties
|
|
2266
2260
|
*
|
|
2267
2261
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2268
2262
|
*
|
|
2269
2263
|
* - `computedContext`: undefined (property only)
|
|
2270
|
-
* - `configContext`: undefined (property only)
|
|
2271
2264
|
*/
|
|
2272
|
-
"
|
|
2265
|
+
"test-print-context": Partial<TestPrintContextProps & BaseProps<TestPrintContext> & BaseEvents>;
|
|
2273
2266
|
|
|
2274
2267
|
|
|
2275
2268
|
/**
|
|
2276
|
-
*
|
|
2269
|
+
* A custom web component that renders a test stamp using the Lit framework.
|
|
2270
|
+
* This component is deprecated and will be removed in the future.
|
|
2277
2271
|
*
|
|
2278
2272
|
* ## Attributes & Properties
|
|
2279
2273
|
*
|
|
2280
2274
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2281
2275
|
*
|
|
2282
|
-
* - `
|
|
2283
|
-
*
|
|
2284
|
-
* - `required`: undefined
|
|
2285
|
-
* - `fixed`: undefined
|
|
2286
|
-
* - `href`: undefined
|
|
2287
|
-
* - `weigths`: undefined (property only)
|
|
2288
|
-
* - `xmlDoc`: undefined (property only)
|
|
2289
|
-
* - `assessmentItem`: undefined (property only) (readonly)
|
|
2276
|
+
* - `debug`: Indicates whether the component is in debug mode.
|
|
2277
|
+
* When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
|
|
2290
2278
|
* - `myTemplate`: undefined (property only)
|
|
2291
2279
|
*
|
|
2292
2280
|
* ## Events
|
|
2293
2281
|
*
|
|
2294
2282
|
* Events that will be emitted by the component.
|
|
2295
2283
|
*
|
|
2296
|
-
* - `qti-
|
|
2284
|
+
* - `qti-stamp-context-updated`: undefined
|
|
2297
2285
|
*/
|
|
2298
|
-
"
|
|
2286
|
+
"test-stamp": Partial<TestStampProps & BaseProps<TestStamp> & BaseEvents>;
|
|
2299
2287
|
|
|
2300
2288
|
|
|
2301
2289
|
/**
|
|
@@ -2305,85 +2293,59 @@ export type QtiResponseElseIfProps = {
|
|
|
2305
2293
|
*
|
|
2306
2294
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2307
2295
|
*
|
|
2308
|
-
* - `
|
|
2309
|
-
* - `
|
|
2310
|
-
* - `
|
|
2296
|
+
* - `view`: undefined
|
|
2297
|
+
* - `disabled`: undefined
|
|
2298
|
+
* - `myTemplate`: undefined (property only)
|
|
2311
2299
|
*
|
|
2312
2300
|
* ## Events
|
|
2313
2301
|
*
|
|
2314
2302
|
* Events that will be emitted by the component.
|
|
2315
2303
|
*
|
|
2316
|
-
* - `
|
|
2304
|
+
* - `test-update-outcome-variable`: undefined
|
|
2317
2305
|
*/
|
|
2318
|
-
"
|
|
2306
|
+
"test-scoring-buttons": Partial<TestScoringButtonsProps & BaseProps<TestScoringButtons> & BaseEvents>;
|
|
2319
2307
|
|
|
2320
2308
|
|
|
2321
2309
|
/**
|
|
2322
2310
|
*
|
|
2323
2311
|
*
|
|
2324
|
-
* ##
|
|
2325
|
-
*
|
|
2326
|
-
* Methods that can be called to access component functionality.
|
|
2327
|
-
*
|
|
2328
|
-
* - `process() => void`: undefined
|
|
2329
|
-
*/
|
|
2330
|
-
"qti-outcome-processing": Partial<QtiOutcomeProcessingProps & BaseProps<QtiOutcomeProcessing> & BaseEvents>;
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
/**
|
|
2334
|
-
* `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.
|
|
2335
|
-
*
|
|
2336
|
-
* This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.
|
|
2337
|
-
*
|
|
2338
|
-
* ### Example Usage
|
|
2339
|
-
*
|
|
2340
|
-
* Minimal example including navigation:
|
|
2341
|
-
*
|
|
2342
|
-
* ```html
|
|
2343
|
-
* <qti-test>
|
|
2344
|
-
* <test-navigation>
|
|
2345
|
-
* <test-container test-url="./path/to/assessment.xml"></test-container>
|
|
2346
|
-
* <nav class="flex">
|
|
2347
|
-
* <test-prev></test-prev>
|
|
2348
|
-
* <test-next></test-next>
|
|
2349
|
-
* </nav>
|
|
2350
|
-
* </test-navigation>
|
|
2351
|
-
* </qti-test>
|
|
2352
|
-
* ```
|
|
2312
|
+
* ## Attributes & Properties
|
|
2353
2313
|
*
|
|
2354
|
-
*
|
|
2355
|
-
* A qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.
|
|
2314
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2356
2315
|
*
|
|
2357
|
-
*
|
|
2358
|
-
* Root/
|
|
2359
|
-
* ├── index.html
|
|
2360
|
-
* └── /assets/api/examples/
|
|
2361
|
-
* ├── assessmenttest.xml
|
|
2362
|
-
* └── imsmanifest.xml
|
|
2316
|
+
* - `myTemplate`: undefined (property only)
|
|
2363
2317
|
*
|
|
2364
|
-
*
|
|
2318
|
+
* ## Events
|
|
2365
2319
|
*
|
|
2366
|
-
*
|
|
2320
|
+
* Events that will be emitted by the component.
|
|
2367
2321
|
*
|
|
2368
|
-
*
|
|
2369
|
-
* ### Test next
|
|
2370
|
-
* `<test-next> | TestNext`
|
|
2322
|
+
* - `on-test-switch-view`: undefined
|
|
2371
2323
|
*
|
|
2372
|
-
*
|
|
2324
|
+
* ## Methods
|
|
2373
2325
|
*
|
|
2374
|
-
*
|
|
2375
|
-
* ### Test components
|
|
2326
|
+
* Methods that can be called to access component functionality.
|
|
2376
2327
|
*
|
|
2377
|
-
*
|
|
2378
|
-
|
|
2328
|
+
* - `_switchView(view: string) => void`: undefined
|
|
2329
|
+
*/
|
|
2330
|
+
"test-view-toggle": Partial<TestViewToggleProps & BaseProps<TestViewToggle> & BaseEvents>;
|
|
2331
|
+
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
*
|
|
2379
2335
|
*
|
|
2380
|
-
* ##
|
|
2336
|
+
* ## Attributes & Properties
|
|
2381
2337
|
*
|
|
2382
|
-
*
|
|
2338
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2383
2339
|
*
|
|
2384
|
-
* - `
|
|
2340
|
+
* - `view`: undefined
|
|
2385
2341
|
*/
|
|
2386
|
-
"
|
|
2342
|
+
"test-scoring-feedback": Partial<TestScoringFeedbackProps & BaseProps<TestScoringFeedback> & BaseEvents>;
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
*
|
|
2347
|
+
*/
|
|
2348
|
+
"test-check-item": Partial<TestCheckItemProps & BaseProps<TestCheckItem> & BaseEvents>;
|
|
2387
2349
|
|
|
2388
2350
|
|
|
2389
2351
|
/**
|
|
@@ -2393,21 +2355,16 @@ export type QtiResponseElseIfProps = {
|
|
|
2393
2355
|
*
|
|
2394
2356
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2395
2357
|
*
|
|
2396
|
-
* - `identifier`: undefined
|
|
2397
|
-
* - `required`: undefined
|
|
2398
|
-
* - `fixed`: undefined
|
|
2399
|
-
* - `visible`: undefined
|
|
2400
|
-
* - `keep-together`/`keepTogether`: undefined
|
|
2401
|
-
* - `title`: undefined (property only)
|
|
2402
2358
|
* - `_testContext`: undefined (property only)
|
|
2403
2359
|
*
|
|
2404
|
-
* ##
|
|
2360
|
+
* ## Methods
|
|
2405
2361
|
*
|
|
2406
|
-
*
|
|
2362
|
+
* Methods that can be called to access component functionality.
|
|
2407
2363
|
*
|
|
2408
|
-
* - `
|
|
2364
|
+
* - `getResult() => void`: undefined
|
|
2365
|
+
* - `calculate() => void`: undefined
|
|
2409
2366
|
*/
|
|
2410
|
-
"qti-
|
|
2367
|
+
"qti-test-variables": Partial<QtiTestVariablesProps & BaseProps<QtiTestVariables> & BaseEvents>;
|
|
2411
2368
|
|
|
2412
2369
|
|
|
2413
2370
|
/**
|
|
@@ -2418,31 +2375,42 @@ export type QtiResponseElseIfProps = {
|
|
|
2418
2375
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2419
2376
|
*
|
|
2420
2377
|
* - `identifier`: undefined
|
|
2421
|
-
* - `
|
|
2422
|
-
* - `
|
|
2423
|
-
* - `
|
|
2424
|
-
* - `
|
|
2378
|
+
* - `cardinality`: undefined
|
|
2379
|
+
* - `base-type`/`baseType`: undefined
|
|
2380
|
+
* - `math-variable`/`mathVariable`: undefined
|
|
2381
|
+
* - `param-variable`/`paramVariable`: undefined
|
|
2425
2382
|
*
|
|
2426
2383
|
* ## Events
|
|
2427
2384
|
*
|
|
2428
2385
|
* Events that will be emitted by the component.
|
|
2429
2386
|
*
|
|
2430
|
-
* - `qti-
|
|
2387
|
+
* - `qti-register-variable`: undefined
|
|
2388
|
+
*
|
|
2389
|
+
* ## Methods
|
|
2390
|
+
*
|
|
2391
|
+
* Methods that can be called to access component functionality.
|
|
2392
|
+
*
|
|
2393
|
+
* - `getTemplateVariable() => TemplateVariable`: Get the template variable definition
|
|
2431
2394
|
*/
|
|
2432
|
-
"qti-
|
|
2395
|
+
"qti-template-declaration": Partial<QtiTemplateDeclarationProps & BaseProps<QtiTemplateDeclaration> & BaseEvents>;
|
|
2396
|
+
|
|
2397
|
+
|
|
2398
|
+
/**
|
|
2399
|
+
*
|
|
2400
|
+
*/
|
|
2401
|
+
"qti-associate-interaction": Partial<QtiAssociateInteractionProps & BaseProps<QtiAssociateInteraction> & BaseEvents>;
|
|
2433
2402
|
|
|
2434
2403
|
|
|
2435
2404
|
/**
|
|
2436
2405
|
*
|
|
2437
2406
|
*
|
|
2438
|
-
* ##
|
|
2407
|
+
* ## Attributes & Properties
|
|
2439
2408
|
*
|
|
2440
|
-
*
|
|
2409
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2441
2410
|
*
|
|
2442
|
-
* - `
|
|
2443
|
-
* - `closeFeedback() => void`: undefined
|
|
2411
|
+
* - `orientation`: undefined
|
|
2444
2412
|
*/
|
|
2445
|
-
"qti-
|
|
2413
|
+
"qti-choice-interaction": Partial<QtiChoiceInteractionProps & BaseProps<QtiChoiceInteraction> & BaseEvents>;
|
|
2446
2414
|
|
|
2447
2415
|
|
|
2448
2416
|
/**
|
|
@@ -2452,94 +2420,89 @@ export type QtiResponseElseIfProps = {
|
|
|
2452
2420
|
*
|
|
2453
2421
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2454
2422
|
*
|
|
2455
|
-
* - `
|
|
2456
|
-
* - `
|
|
2457
|
-
* - `
|
|
2458
|
-
* - `
|
|
2459
|
-
* - `
|
|
2423
|
+
* - `data`: undefined
|
|
2424
|
+
* - `data-base-item`/`baseItemUrl`: undefined
|
|
2425
|
+
* - `data-base-ref`/`baseRefUrl`: undefined
|
|
2426
|
+
* - `id`: undefined
|
|
2427
|
+
* - `manifest`: undefined (property only)
|
|
2428
|
+
* - `response`: undefined (property only)
|
|
2460
2429
|
*
|
|
2461
|
-
* ##
|
|
2430
|
+
* ## Methods
|
|
2462
2431
|
*
|
|
2463
|
-
*
|
|
2432
|
+
* Methods that can be called to access component functionality.
|
|
2464
2433
|
*
|
|
2465
|
-
* - `
|
|
2434
|
+
* - `setupCES() => void`: undefined
|
|
2435
|
+
* - `handlePostMessage(event: MessageEvent) => void`: undefined
|
|
2436
|
+
* - `validate() => boolean`: undefined
|
|
2466
2437
|
*/
|
|
2467
|
-
"
|
|
2438
|
+
"qti-custom-interaction": Partial<QtiCustomInteractionProps & BaseProps<QtiCustomInteraction> & BaseEvents>;
|
|
2468
2439
|
|
|
2469
2440
|
|
|
2470
2441
|
/**
|
|
2471
|
-
*
|
|
2442
|
+
*
|
|
2472
2443
|
*
|
|
2473
2444
|
* ## Attributes & Properties
|
|
2474
2445
|
*
|
|
2475
2446
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2476
2447
|
*
|
|
2477
|
-
* - `
|
|
2478
|
-
* - `
|
|
2479
|
-
* - `
|
|
2480
|
-
* - `
|
|
2481
|
-
* - `ariaLabel`: undefined (property only)
|
|
2448
|
+
* - `response-identifier`/`responseIdentifier`: undefined
|
|
2449
|
+
* - `disabled`: undefined
|
|
2450
|
+
* - `count-attempt`/`countAttempt`: Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt)
|
|
2451
|
+
* - `title`: undefined
|
|
2482
2452
|
*
|
|
2483
2453
|
* ## Events
|
|
2484
2454
|
*
|
|
2485
2455
|
* Events that will be emitted by the component.
|
|
2486
2456
|
*
|
|
2487
|
-
* - `
|
|
2457
|
+
* - `end-attempt`: undefined
|
|
2488
2458
|
*
|
|
2489
2459
|
* ## Methods
|
|
2490
2460
|
*
|
|
2491
2461
|
* Methods that can be called to access component functionality.
|
|
2492
2462
|
*
|
|
2493
|
-
* - `
|
|
2494
|
-
* - `checkDisabled() => void`: undefined
|
|
2463
|
+
* - `endAttempt(_: Event) => void`: undefined
|
|
2495
2464
|
*/
|
|
2496
|
-
"
|
|
2465
|
+
"qti-end-attempt-interaction": Partial<QtiEndAttemptInteractionProps & BaseProps<QtiEndAttemptInteraction> & BaseEvents>;
|
|
2497
2466
|
|
|
2498
2467
|
|
|
2499
2468
|
/**
|
|
2500
|
-
*
|
|
2469
|
+
*
|
|
2501
2470
|
*
|
|
2502
2471
|
* ## Attributes & Properties
|
|
2503
2472
|
*
|
|
2504
2473
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2505
2474
|
*
|
|
2506
|
-
* - `
|
|
2507
|
-
* - `
|
|
2508
|
-
* - `
|
|
2509
|
-
*
|
|
2510
|
-
*
|
|
2511
|
-
*
|
|
2512
|
-
*
|
|
2513
|
-
*
|
|
2514
|
-
* - `qti-request-navigation`: undefined
|
|
2475
|
+
* - `expected-length`/`expectedLength`: expected length is mapped to the property maxlength on the textarea
|
|
2476
|
+
* - `pattern-mask`/`patternMask`: undefined
|
|
2477
|
+
* - `placeholder-text`/`placeholderText`: text appearing in the extended-text-interaction if it is empty
|
|
2478
|
+
* - `data-patternmask-message`/`dataPatternmaskMessage`: undefined
|
|
2479
|
+
* - `class`/`classNames`: undefined
|
|
2480
|
+
* - `response`: undefined (property only)
|
|
2481
|
+
* - `value`: undefined (property only)
|
|
2515
2482
|
*
|
|
2516
2483
|
* ## Methods
|
|
2517
2484
|
*
|
|
2518
2485
|
* Methods that can be called to access component functionality.
|
|
2519
2486
|
*
|
|
2520
|
-
* - `
|
|
2521
|
-
* - `
|
|
2487
|
+
* - `handleclassNamesChange(_: any, classes: string) => void`: undefined
|
|
2488
|
+
* - `validate() => void`: undefined
|
|
2489
|
+
* - `toggleCorrectResponse() => void`: undefined
|
|
2490
|
+
* - `reportValidity() => void`: undefined
|
|
2522
2491
|
*/
|
|
2523
|
-
"
|
|
2492
|
+
"qti-extended-text-interaction": Partial<QtiExtendedTextInteractionProps & BaseProps<QtiExtendedTextInteraction> & BaseEvents>;
|
|
2524
2493
|
|
|
2525
2494
|
|
|
2526
2495
|
/**
|
|
2527
2496
|
*
|
|
2528
2497
|
*
|
|
2529
|
-
* ##
|
|
2530
|
-
*
|
|
2531
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2532
|
-
*
|
|
2533
|
-
* - `label`: label accompanying the select view dropdown
|
|
2534
|
-
* - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
|
|
2535
|
-
*
|
|
2536
|
-
* ## Events
|
|
2498
|
+
* ## Methods
|
|
2537
2499
|
*
|
|
2538
|
-
*
|
|
2500
|
+
* Methods that can be called to access component functionality.
|
|
2539
2501
|
*
|
|
2540
|
-
* - `
|
|
2502
|
+
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
2503
|
+
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
2541
2504
|
*/
|
|
2542
|
-
"
|
|
2505
|
+
"qti-gap-match-interaction": Partial<QtiGapMatchInteractionProps & BaseProps<QtiGapMatchInteraction> & BaseEvents>;
|
|
2543
2506
|
|
|
2544
2507
|
|
|
2545
2508
|
/**
|
|
@@ -2549,85 +2512,76 @@ export type QtiResponseElseIfProps = {
|
|
|
2549
2512
|
*
|
|
2550
2513
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2551
2514
|
*
|
|
2552
|
-
* - `
|
|
2515
|
+
* - `response`: undefined (property only)
|
|
2553
2516
|
*
|
|
2554
|
-
* ##
|
|
2517
|
+
* ## Methods
|
|
2555
2518
|
*
|
|
2556
|
-
*
|
|
2519
|
+
* Methods that can be called to access component functionality.
|
|
2557
2520
|
*
|
|
2558
|
-
* - `
|
|
2521
|
+
* - `reset() => void`: undefined
|
|
2522
|
+
* - `validate() => boolean`: undefined
|
|
2523
|
+
* - `toggleInternalCorrectResponse(show: boolean) => void`: undefined
|
|
2559
2524
|
*/
|
|
2560
|
-
"
|
|
2525
|
+
"qti-graphic-associate-interaction": Partial<QtiGraphicAssociateInteractionProps & BaseProps<QtiGraphicAssociateInteraction> & BaseEvents>;
|
|
2561
2526
|
|
|
2562
2527
|
|
|
2563
2528
|
/**
|
|
2564
2529
|
*
|
|
2565
2530
|
*/
|
|
2566
|
-
"
|
|
2531
|
+
"qti-graphic-gap-match-interaction": Partial<QtiGraphicGapMatchInteractionProps & BaseProps<QtiGraphicGapMatchInteraction> & BaseEvents>;
|
|
2567
2532
|
|
|
2568
2533
|
|
|
2569
2534
|
/**
|
|
2570
|
-
*
|
|
2571
|
-
*
|
|
2572
|
-
*
|
|
2573
|
-
*
|
|
2574
|
-
* ## Attributes & Properties
|
|
2575
|
-
*
|
|
2576
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2577
|
-
*
|
|
2578
|
-
* - `shown`: undefined
|
|
2579
|
-
* - `disabled`: undefined
|
|
2580
|
-
* - `showCorrectText`: undefined
|
|
2581
|
-
* - `hideCorrectText`: undefined
|
|
2582
|
-
* - `noCorrectResponseText`: undefined
|
|
2583
|
-
* - `computedContext`: undefined (property only)
|
|
2535
|
+
*
|
|
2584
2536
|
*
|
|
2585
|
-
* ##
|
|
2537
|
+
* ## Methods
|
|
2586
2538
|
*
|
|
2587
|
-
*
|
|
2539
|
+
* Methods that can be called to access component functionality.
|
|
2588
2540
|
*
|
|
2589
|
-
* - `
|
|
2541
|
+
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
2590
2542
|
*/
|
|
2591
|
-
"
|
|
2543
|
+
"qti-graphic-order-interaction": Partial<QtiGraphicOrderInteractionProps & BaseProps<QtiGraphicOrderInteraction> & BaseEvents>;
|
|
2592
2544
|
|
|
2593
2545
|
|
|
2594
2546
|
/**
|
|
2595
|
-
*
|
|
2596
|
-
|
|
2597
|
-
|
|
2547
|
+
*
|
|
2548
|
+
*/
|
|
2549
|
+
"qti-hotspot-interaction": Partial<QtiHotspotInteractionProps & BaseProps<QtiHotspotInteraction> & BaseEvents>;
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
*
|
|
2598
2554
|
*
|
|
2599
2555
|
* ## Attributes & Properties
|
|
2600
2556
|
*
|
|
2601
2557
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2602
2558
|
*
|
|
2603
|
-
* - `
|
|
2604
|
-
* - `ariaLabel`: undefined (property only)
|
|
2559
|
+
* - `class`: undefined
|
|
2605
2560
|
*/
|
|
2606
|
-
"
|
|
2561
|
+
"qti-hottext-interaction": Partial<QtiHottextInteractionProps & BaseProps<QtiHottextInteraction> & BaseEvents>;
|
|
2607
2562
|
|
|
2608
2563
|
|
|
2609
2564
|
/**
|
|
2610
|
-
*
|
|
2611
|
-
* The `qti-assessment-test` will be placed inside the shadow DOM of this element.
|
|
2612
|
-
* The element loads the test from the provided URL and renders it inside the shadow DOM.
|
|
2613
|
-
*
|
|
2614
|
-
* ```html
|
|
2615
|
-
* <qti-test>
|
|
2616
|
-
* <test-navigation>
|
|
2617
|
-
* <test-container class="m-4 bg-white" test-url="./path/to/assessmenttest.xml"></test-container>
|
|
2618
|
-
* </test-navigation>
|
|
2619
|
-
* </qti-test>
|
|
2620
|
-
* ```
|
|
2565
|
+
*
|
|
2621
2566
|
*
|
|
2622
2567
|
* ## Attributes & Properties
|
|
2623
2568
|
*
|
|
2624
2569
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2625
2570
|
*
|
|
2626
|
-
* - `
|
|
2627
|
-
* - `
|
|
2628
|
-
* - `
|
|
2571
|
+
* - `data-prompt`/`dataPrompt`: undefined
|
|
2572
|
+
* - `isInline`: undefined (property only) (readonly)
|
|
2573
|
+
* - `configContext`: undefined (property only)
|
|
2574
|
+
* - `response`: undefined (property only)
|
|
2575
|
+
*
|
|
2576
|
+
* ## Methods
|
|
2577
|
+
*
|
|
2578
|
+
* Methods that can be called to access component functionality.
|
|
2579
|
+
*
|
|
2580
|
+
* - `validate() => boolean`: undefined
|
|
2581
|
+
* - `reset() => void`: undefined
|
|
2582
|
+
* - `toggleInternalCorrectResponse(show: boolean) => void`: undefined
|
|
2629
2583
|
*/
|
|
2630
|
-
"
|
|
2584
|
+
"qti-inline-choice-interaction": Partial<QtiInlineChoiceInteractionProps & BaseProps<QtiInlineChoiceInteraction> & BaseEvents>;
|
|
2631
2585
|
|
|
2632
2586
|
|
|
2633
2587
|
/**
|
|
@@ -2637,24 +2591,38 @@ export type QtiResponseElseIfProps = {
|
|
|
2637
2591
|
*
|
|
2638
2592
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2639
2593
|
*
|
|
2640
|
-
* - `
|
|
2594
|
+
* - `class`: undefined
|
|
2595
|
+
* - `response-identifier`/`responseIdentifier`: undefined
|
|
2596
|
+
* - `response`: undefined (property only)
|
|
2597
|
+
*
|
|
2598
|
+
* ## Methods
|
|
2599
|
+
*
|
|
2600
|
+
* Methods that can be called to access component functionality.
|
|
2601
|
+
*
|
|
2602
|
+
* - `validate() => boolean`: undefined
|
|
2603
|
+
* - `toggleInternalCorrectResponse(show: boolean) => void`: undefined
|
|
2604
|
+
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
2641
2605
|
*/
|
|
2642
|
-
"
|
|
2606
|
+
"qti-match-interaction": Partial<QtiMatchInteractionProps & BaseProps<QtiMatchInteraction> & BaseEvents>;
|
|
2643
2607
|
|
|
2644
2608
|
|
|
2645
2609
|
/**
|
|
2646
|
-
*
|
|
2647
|
-
*
|
|
2648
|
-
*
|
|
2610
|
+
*
|
|
2649
2611
|
*
|
|
2650
2612
|
* ## Attributes & Properties
|
|
2651
2613
|
*
|
|
2652
2614
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2653
2615
|
*
|
|
2654
|
-
* - `
|
|
2655
|
-
*
|
|
2616
|
+
* - `response`: undefined (property only)
|
|
2617
|
+
*
|
|
2618
|
+
* ## Methods
|
|
2619
|
+
*
|
|
2620
|
+
* Methods that can be called to access component functionality.
|
|
2621
|
+
*
|
|
2622
|
+
* - `reset() => void`: undefined
|
|
2623
|
+
* - `validate() => boolean`: undefined
|
|
2656
2624
|
*/
|
|
2657
|
-
"
|
|
2625
|
+
"qti-media-interaction": Partial<QtiMediaInteractionProps & BaseProps<QtiMediaInteraction> & BaseEvents>;
|
|
2658
2626
|
|
|
2659
2627
|
|
|
2660
2628
|
/**
|
|
@@ -2664,15 +2632,18 @@ export type QtiResponseElseIfProps = {
|
|
|
2664
2632
|
*
|
|
2665
2633
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2666
2634
|
*
|
|
2667
|
-
* - `
|
|
2635
|
+
* - `orientation`: orientation of choices
|
|
2636
|
+
* - `correctResponses`: undefined (property only)
|
|
2637
|
+
* - `showCorrectResponses`: undefined (property only)
|
|
2668
2638
|
*
|
|
2669
|
-
* ##
|
|
2639
|
+
* ## Methods
|
|
2670
2640
|
*
|
|
2671
|
-
*
|
|
2641
|
+
* Methods that can be called to access component functionality.
|
|
2672
2642
|
*
|
|
2673
|
-
* - `
|
|
2643
|
+
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
2644
|
+
* - `getValue(val: string[]) => void`: undefined
|
|
2674
2645
|
*/
|
|
2675
|
-
"
|
|
2646
|
+
"qti-order-interaction": Partial<QtiOrderInteractionProps & BaseProps<QtiOrderInteraction> & BaseEvents>;
|
|
2676
2647
|
|
|
2677
2648
|
|
|
2678
2649
|
/**
|
|
@@ -2682,30 +2653,89 @@ export type QtiResponseElseIfProps = {
|
|
|
2682
2653
|
*
|
|
2683
2654
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2684
2655
|
*
|
|
2685
|
-
* - `
|
|
2656
|
+
* - `module`: undefined
|
|
2657
|
+
* - `custom-interaction-type-identifier`/`customInteractionTypeIdentifier`: undefined
|
|
2658
|
+
* - `data-require-paths`/`requirePathsJson`: undefined
|
|
2659
|
+
* - `data-require-shim`/`requireShimJson`: undefined
|
|
2660
|
+
* - `data-require-js-url`/`requireJsUrl`: undefined
|
|
2661
|
+
* - `data-base-url`/`baseUrl`: undefined
|
|
2662
|
+
* - `data-use-iframe`/`useIframe`: undefined
|
|
2663
|
+
* - `data-use-default-shims`/`useDefaultShims`: undefined
|
|
2664
|
+
* - `data-use-default-paths`/`useDefaultPaths`: undefined
|
|
2665
|
+
* - `response`: undefined (property only)
|
|
2666
|
+
* - `value`: undefined (property only)
|
|
2667
|
+
* - `boundTo`: undefined (property only)
|
|
2668
|
+
* - `loadConfig`: DIRECT MODE: Load config from URL (property only)
|
|
2669
|
+
* - `getResolvablePathString`: DIRECT MODE: Helper method to get resolvable path string (property only)
|
|
2670
|
+
* - `getResolvablePath`: DIRECT MODE: Helper method to get resolvable path (property only)
|
|
2671
|
+
*
|
|
2672
|
+
* ## Methods
|
|
2673
|
+
*
|
|
2674
|
+
* Methods that can be called to access component functionality.
|
|
2675
|
+
*
|
|
2676
|
+
* - `validate() => boolean`: undefined
|
|
2677
|
+
* - `register(pci: IMSpci<ConfigProperties<unknown>>) => void`: DIRECT MODE: Register PCI instance
|
|
2678
|
+
* - `buildRequireConfig() => void`: DIRECT MODE: Build RequireJS configuration
|
|
2679
|
+
* - `toggleInternalCorrectResponse(show: boolean, responseVariable) => void`: Toggle the display of the correct response
|
|
2680
|
+
* - `disable() => void`: Method to disable the PCI for review mode
|
|
2681
|
+
* This can be used when showing the correct response
|
|
2682
|
+
* - `enable() => void`: Method to enable the PCI for interactive mode
|
|
2686
2683
|
*/
|
|
2687
|
-
"
|
|
2684
|
+
"qti-portable-custom-interaction": Partial<QtiPortableCustomInteractionProps & BaseProps<QtiPortableCustomInteraction> & BaseEvents>;
|
|
2688
2685
|
|
|
2689
2686
|
|
|
2690
2687
|
/**
|
|
2691
|
-
*
|
|
2692
|
-
*
|
|
2688
|
+
* Test-specific extension of QtiPortableCustomInteraction that adds methods
|
|
2689
|
+
* for interacting with the iframe content in tests.
|
|
2693
2690
|
*
|
|
2694
2691
|
* ## Attributes & Properties
|
|
2695
2692
|
*
|
|
2696
2693
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2697
2694
|
*
|
|
2698
|
-
* - `
|
|
2699
|
-
*
|
|
2700
|
-
* - `
|
|
2695
|
+
* - `module`: undefined
|
|
2696
|
+
* - `custom-interaction-type-identifier`/`customInteractionTypeIdentifier`: undefined
|
|
2697
|
+
* - `data-require-paths`/`requirePathsJson`: undefined
|
|
2698
|
+
* - `data-require-shim`/`requireShimJson`: undefined
|
|
2699
|
+
* - `data-require-js-url`/`requireJsUrl`: undefined
|
|
2700
|
+
* - `data-base-url`/`baseUrl`: undefined
|
|
2701
|
+
* - `data-use-iframe`/`useIframe`: undefined
|
|
2702
|
+
* - `data-use-default-shims`/`useDefaultShims`: undefined
|
|
2703
|
+
* - `data-use-default-paths`/`useDefaultPaths`: undefined
|
|
2704
|
+
* - `response`: undefined (property only)
|
|
2705
|
+
* - `value`: undefined (property only)
|
|
2706
|
+
* - `boundTo`: undefined (property only)
|
|
2707
|
+
* - `loadConfig`: DIRECT MODE: Load config from URL (property only)
|
|
2708
|
+
* - `getResolvablePathString`: DIRECT MODE: Helper method to get resolvable path string (property only)
|
|
2709
|
+
* - `getResolvablePath`: DIRECT MODE: Helper method to get resolvable path (property only)
|
|
2701
2710
|
*
|
|
2702
|
-
* ##
|
|
2711
|
+
* ## Methods
|
|
2703
2712
|
*
|
|
2704
|
-
*
|
|
2713
|
+
* Methods that can be called to access component functionality.
|
|
2705
2714
|
*
|
|
2706
|
-
* - `
|
|
2715
|
+
* - `getIFrameContent() => void`: Gets the HTML content of the iframe for testing purposes
|
|
2716
|
+
* - `setTestContext(newContext: ItemContext) => void`: undefined
|
|
2717
|
+
* - `recreateIframe() => void`: Recreates the iframe completely
|
|
2718
|
+
* - `iFrameMouseClick(x: number, y: number) => void`: Simulates a mouse click at specific coordinates within the iframe
|
|
2719
|
+
* - `iFrameClickOnElement(selector: string) => void`: Clicks on an element identified by a CSS selector
|
|
2720
|
+
* - `iFrameClickOnElementByText(text: string) => void`: Clicks on an element containing the specified text
|
|
2721
|
+
* - `iFrameSetValueElement(selector: string, value: string) => void`: Sets the value of an input element identified by a CSS selector
|
|
2722
|
+
* - `iFrameSetValueElementByText(text: string, value: string) => void`: Sets the value of an input element containing the specified text
|
|
2723
|
+
* - `iFrameMousedownOnElement(selector: string) => void`: Performs a mousedown event on an element identified by a CSS selector
|
|
2724
|
+
* - `validate() => boolean`: undefined
|
|
2725
|
+
* - `register(pci: IMSpci<ConfigProperties<unknown>>) => void`: DIRECT MODE: Register PCI instance
|
|
2726
|
+
* - `buildRequireConfig() => void`: DIRECT MODE: Build RequireJS configuration
|
|
2727
|
+
* - `toggleInternalCorrectResponse(show: boolean, responseVariable) => void`: Toggle the display of the correct response
|
|
2728
|
+
* - `disable() => void`: Method to disable the PCI for review mode
|
|
2729
|
+
* This can be used when showing the correct response
|
|
2730
|
+
* - `enable() => void`: Method to enable the PCI for interactive mode
|
|
2707
2731
|
*/
|
|
2708
|
-
"test
|
|
2732
|
+
"qti-portable-custom-interaction-test": Partial<QtiPortableCustomInteractionTestProps & BaseProps<QtiPortableCustomInteractionTest> & BaseEvents>;
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
*
|
|
2737
|
+
*/
|
|
2738
|
+
"qti-position-object-interaction": Partial<QtiPositionObjectInteractionProps & BaseProps<QtiPositionObjectInteraction> & BaseEvents>;
|
|
2709
2739
|
|
|
2710
2740
|
|
|
2711
2741
|
/**
|
|
@@ -2715,17 +2745,19 @@ export type QtiResponseElseIfProps = {
|
|
|
2715
2745
|
*
|
|
2716
2746
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2717
2747
|
*
|
|
2718
|
-
* - `
|
|
2719
|
-
* - `
|
|
2720
|
-
* - `
|
|
2748
|
+
* - `choiceOrdering`: undefined (property only)
|
|
2749
|
+
* - `startX`: undefined (property only)
|
|
2750
|
+
* - `startY`: undefined (property only)
|
|
2751
|
+
* - `dragElement`: undefined (property only)
|
|
2721
2752
|
*
|
|
2722
|
-
* ##
|
|
2753
|
+
* ## Methods
|
|
2723
2754
|
*
|
|
2724
|
-
*
|
|
2755
|
+
* Methods that can be called to access component functionality.
|
|
2725
2756
|
*
|
|
2726
|
-
* - `
|
|
2757
|
+
* - `dragElementHandler(event: MouseEvent) => void`: undefined
|
|
2758
|
+
* - `removeMoveListener() => void`: undefined
|
|
2727
2759
|
*/
|
|
2728
|
-
"
|
|
2760
|
+
"qti-position-object-stage": Partial<QtiPositionObjectStageProps & BaseProps<QtiPositionObjectStage> & BaseEvents>;
|
|
2729
2761
|
|
|
2730
2762
|
|
|
2731
2763
|
/**
|
|
@@ -2735,21 +2767,20 @@ export type QtiResponseElseIfProps = {
|
|
|
2735
2767
|
*
|
|
2736
2768
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2737
2769
|
*
|
|
2738
|
-
* - `
|
|
2739
|
-
*
|
|
2740
|
-
*
|
|
2741
|
-
*
|
|
2742
|
-
* Events that will be emitted by the component.
|
|
2743
|
-
*
|
|
2744
|
-
* - `on-test-switch-view`: undefined
|
|
2770
|
+
* - `max-choices`/`maxChoices`: undefined
|
|
2771
|
+
* - `min-choices`/`minChoices`: undefined
|
|
2772
|
+
* - `response`: undefined (property only)
|
|
2773
|
+
* - `responsePoints`: undefined (property only) (readonly)
|
|
2745
2774
|
*
|
|
2746
2775
|
* ## Methods
|
|
2747
2776
|
*
|
|
2748
2777
|
* Methods that can be called to access component functionality.
|
|
2749
2778
|
*
|
|
2750
|
-
* - `
|
|
2779
|
+
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
2780
|
+
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
2781
|
+
* - `validate() => boolean`: undefined
|
|
2751
2782
|
*/
|
|
2752
|
-
"
|
|
2783
|
+
"qti-select-point-interaction": Partial<QtiSelectPointInteractionProps & BaseProps<QtiSelectPointInteraction> & BaseEvents>;
|
|
2753
2784
|
|
|
2754
2785
|
|
|
2755
2786
|
/**
|
|
@@ -2759,34 +2790,25 @@ export type QtiResponseElseIfProps = {
|
|
|
2759
2790
|
*
|
|
2760
2791
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2761
2792
|
*
|
|
2762
|
-
* - `
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
/**
|
|
2768
|
-
*
|
|
2769
|
-
*/
|
|
2770
|
-
"test-check-item": Partial<TestCheckItemProps & BaseProps<TestCheckItem> & BaseEvents>;
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
/**
|
|
2774
|
-
*
|
|
2793
|
+
* - `lower-bound`/`min`: undefined
|
|
2794
|
+
* - `upper-bound`/`max`: undefined
|
|
2795
|
+
* - `step`: undefined
|
|
2796
|
+
* - `response`: undefined (property only)
|
|
2775
2797
|
*
|
|
2776
|
-
* ##
|
|
2798
|
+
* ## Events
|
|
2777
2799
|
*
|
|
2778
|
-
*
|
|
2800
|
+
* Events that will be emitted by the component.
|
|
2779
2801
|
*
|
|
2780
|
-
* - `
|
|
2802
|
+
* - `change`: undefined
|
|
2781
2803
|
*
|
|
2782
2804
|
* ## Methods
|
|
2783
2805
|
*
|
|
2784
2806
|
* Methods that can be called to access component functionality.
|
|
2785
2807
|
*
|
|
2786
|
-
* - `
|
|
2787
|
-
* - `
|
|
2808
|
+
* - `validate() => boolean`: undefined
|
|
2809
|
+
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
2788
2810
|
*/
|
|
2789
|
-
"qti-
|
|
2811
|
+
"qti-slider-interaction": Partial<QtiSliderInteractionProps & BaseProps<QtiSliderInteraction> & BaseEvents>;
|
|
2790
2812
|
|
|
2791
2813
|
|
|
2792
2814
|
/**
|
|
@@ -2796,73 +2818,51 @@ export type QtiResponseElseIfProps = {
|
|
|
2796
2818
|
*
|
|
2797
2819
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2798
2820
|
*
|
|
2799
|
-
* - `
|
|
2800
|
-
* - `
|
|
2801
|
-
* - `
|
|
2802
|
-
* - `
|
|
2803
|
-
* - `
|
|
2804
|
-
*
|
|
2805
|
-
*
|
|
2806
|
-
*
|
|
2807
|
-
*
|
|
2808
|
-
*
|
|
2809
|
-
* - `qti-register-variable`: undefined
|
|
2821
|
+
* - `expected-length`/`expectedLength`: undefined
|
|
2822
|
+
* - `pattern-mask`/`patternMask`: undefined
|
|
2823
|
+
* - `placeholder-text`/`placeholderText`: undefined
|
|
2824
|
+
* - `data-patternmask-message`/`dataPatternmaskMessage`: undefined
|
|
2825
|
+
* - `inputRef`: undefined (property only)
|
|
2826
|
+
* - `response`: undefined (property only)
|
|
2827
|
+
* - `value`: undefined (property only)
|
|
2828
|
+
* - `correctness`: undefined (property only) (readonly)
|
|
2829
|
+
* - `isInline`: undefined (property only) (readonly)
|
|
2810
2830
|
*
|
|
2811
2831
|
* ## Methods
|
|
2812
2832
|
*
|
|
2813
2833
|
* Methods that can be called to access component functionality.
|
|
2814
2834
|
*
|
|
2815
|
-
* - `
|
|
2835
|
+
* - `validate() => boolean`: undefined
|
|
2836
|
+
* - `toggleInternalCorrectResponse(show: boolean) => void`: undefined
|
|
2837
|
+
* - `reportValidity() => boolean`: undefined
|
|
2838
|
+
* - `reset() => void`: undefined
|
|
2816
2839
|
*/
|
|
2817
|
-
"qti-
|
|
2840
|
+
"qti-text-entry-interaction": Partial<QtiTextEntryInteractionProps & BaseProps<QtiTextEntryInteraction> & BaseEvents>;
|
|
2818
2841
|
|
|
2819
2842
|
|
|
2820
2843
|
/**
|
|
2821
|
-
*
|
|
2822
|
-
* for interacting with the iframe content in tests.
|
|
2844
|
+
*
|
|
2823
2845
|
*
|
|
2824
2846
|
* ## Attributes & Properties
|
|
2825
2847
|
*
|
|
2826
2848
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2827
2849
|
*
|
|
2828
|
-
* - `module`: undefined
|
|
2829
|
-
* - `custom-interaction-type-identifier`/`customInteractionTypeIdentifier`: undefined
|
|
2830
|
-
* - `data-require-paths`/`requirePathsJson`: undefined
|
|
2831
|
-
* - `data-require-shim`/`requireShimJson`: undefined
|
|
2832
|
-
* - `data-require-js-url`/`requireJsUrl`: undefined
|
|
2833
|
-
* - `data-base-url`/`baseUrl`: undefined
|
|
2834
|
-
* - `data-use-iframe`/`useIframe`: undefined
|
|
2835
|
-
* - `data-use-default-shims`/`useDefaultShims`: undefined
|
|
2836
|
-
* - `data-use-default-paths`/`useDefaultPaths`: undefined
|
|
2837
2850
|
* - `response`: undefined (property only)
|
|
2838
|
-
*
|
|
2839
|
-
*
|
|
2840
|
-
*
|
|
2841
|
-
*
|
|
2842
|
-
*
|
|
2851
|
+
*
|
|
2852
|
+
* ## Events
|
|
2853
|
+
*
|
|
2854
|
+
* Events that will be emitted by the component.
|
|
2855
|
+
*
|
|
2856
|
+
* - `qti-interaction-response`: undefined
|
|
2843
2857
|
*
|
|
2844
2858
|
* ## Methods
|
|
2845
2859
|
*
|
|
2846
2860
|
* Methods that can be called to access component functionality.
|
|
2847
2861
|
*
|
|
2848
|
-
* - `
|
|
2849
|
-
* - `setTestContext(newContext: ItemContext) => void`: undefined
|
|
2850
|
-
* - `recreateIframe() => void`: Recreates the iframe completely
|
|
2851
|
-
* - `iFrameMouseClick(x: number, y: number) => void`: Simulates a mouse click at specific coordinates within the iframe
|
|
2852
|
-
* - `iFrameClickOnElement(selector: string) => void`: Clicks on an element identified by a CSS selector
|
|
2853
|
-
* - `iFrameClickOnElementByText(text: string) => void`: Clicks on an element containing the specified text
|
|
2854
|
-
* - `iFrameSetValueElement(selector: string, value: string) => void`: Sets the value of an input element identified by a CSS selector
|
|
2855
|
-
* - `iFrameSetValueElementByText(text: string, value: string) => void`: Sets the value of an input element containing the specified text
|
|
2856
|
-
* - `iFrameMousedownOnElement(selector: string) => void`: Performs a mousedown event on an element identified by a CSS selector
|
|
2862
|
+
* - `reset() => void`: undefined
|
|
2857
2863
|
* - `validate() => boolean`: undefined
|
|
2858
|
-
* - `register(pci: IMSpci<ConfigProperties<unknown>>) => void`: DIRECT MODE: Register PCI instance
|
|
2859
|
-
* - `buildRequireConfig() => void`: DIRECT MODE: Build RequireJS configuration
|
|
2860
|
-
* - `toggleInternalCorrectResponse(show: boolean, responseVariable) => void`: Toggle the display of the correct response
|
|
2861
|
-
* - `disable() => void`: Method to disable the PCI for review mode
|
|
2862
|
-
* This can be used when showing the correct response
|
|
2863
|
-
* - `enable() => void`: Method to enable the PCI for interactive mode
|
|
2864
2864
|
*/
|
|
2865
|
-
"qti-
|
|
2865
|
+
"qti-upload-interaction": Partial<QtiUploadInteractionProps & BaseProps<QtiUploadInteraction> & BaseEvents>;
|
|
2866
2866
|
|
|
2867
2867
|
|
|
2868
2868
|
/**
|
|
@@ -3459,21 +3459,17 @@ export type QtiResponseElseIfProps = {
|
|
|
3459
3459
|
|
|
3460
3460
|
|
|
3461
3461
|
/**
|
|
3462
|
-
*
|
|
3463
|
-
*
|
|
3464
|
-
* ## Events
|
|
3465
|
-
*
|
|
3466
|
-
* Events that will be emitted by the component.
|
|
3467
|
-
*
|
|
3468
|
-
* - `qti-set-outcome-value`: undefined
|
|
3462
|
+
*
|
|
3469
3463
|
*
|
|
3470
3464
|
* ## Methods
|
|
3471
3465
|
*
|
|
3472
3466
|
* Methods that can be called to access component functionality.
|
|
3473
3467
|
*
|
|
3474
|
-
* - `
|
|
3468
|
+
* - `calculate() => void`: undefined
|
|
3469
|
+
* - `getSubRules() => QtiRule[]`: undefined
|
|
3470
|
+
* - `process() => void`: undefined
|
|
3475
3471
|
*/
|
|
3476
|
-
"qti-
|
|
3472
|
+
"qti-response-else": Partial<QtiResponseElseProps & BaseProps<QtiResponseElse> & BaseEvents>;
|
|
3477
3473
|
|
|
3478
3474
|
|
|
3479
3475
|
/**
|
|
@@ -3487,7 +3483,7 @@ export type QtiResponseElseIfProps = {
|
|
|
3487
3483
|
* - `getSubRules() => QtiRule[]`: undefined
|
|
3488
3484
|
* - `process() => void`: undefined
|
|
3489
3485
|
*/
|
|
3490
|
-
"qti-response-
|
|
3486
|
+
"qti-response-if": Partial<QtiResponseIfProps & BaseProps<QtiResponseIf> & BaseEvents>;
|
|
3491
3487
|
|
|
3492
3488
|
|
|
3493
3489
|
/**
|
|
@@ -3501,21 +3497,25 @@ export type QtiResponseElseIfProps = {
|
|
|
3501
3497
|
* - `getSubRules() => QtiRule[]`: undefined
|
|
3502
3498
|
* - `process() => void`: undefined
|
|
3503
3499
|
*/
|
|
3504
|
-
"qti-response-if": Partial<
|
|
3500
|
+
"qti-response-else-if": Partial<QtiResponseElseIfProps & BaseProps<QtiResponseElseIf> & BaseEvents>;
|
|
3505
3501
|
|
|
3506
3502
|
|
|
3507
3503
|
/**
|
|
3508
|
-
*
|
|
3504
|
+
* Web component that processes `setOutcomeValue` in QTI.
|
|
3505
|
+
*
|
|
3506
|
+
* ## Events
|
|
3507
|
+
*
|
|
3508
|
+
* Events that will be emitted by the component.
|
|
3509
|
+
*
|
|
3510
|
+
* - `qti-set-outcome-value`: undefined
|
|
3509
3511
|
*
|
|
3510
3512
|
* ## Methods
|
|
3511
3513
|
*
|
|
3512
3514
|
* Methods that can be called to access component functionality.
|
|
3513
3515
|
*
|
|
3514
|
-
* - `
|
|
3515
|
-
* - `getSubRules() => QtiRule[]`: undefined
|
|
3516
|
-
* - `process() => void`: undefined
|
|
3516
|
+
* - `process() => void`: Processes the QTI rule and dispatches a custom event with the computed outcome value.
|
|
3517
3517
|
*/
|
|
3518
|
-
"qti-
|
|
3518
|
+
"qti-set-outcome-value": Partial<QtiSetOutcomeValueProps & BaseProps<QtiSetOutcomeValue> & BaseEvents>;
|
|
3519
3519
|
}
|
|
3520
3520
|
|
|
3521
3521
|
export type CustomCssProperties = {
|