@citolab/qti-components 6.9.1-beta.7 → 6.9.1-beta.71
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/dist/custom-element-eslint-rules.js +331 -0
- package/dist/custom-elements.json +19218 -2945
- package/dist/index.global.js +226 -0
- package/dist/index.js +7228 -192
- package/dist/index.min.js +952 -0
- package/dist/item.css +2503 -669
- package/dist/qti-components/index.cjs +6500 -0
- package/dist/qti-components/index.d.cts +150 -0
- package/dist/qti-components/index.d.ts +9 -1174
- package/dist/qti-components/index.js +6009 -183
- package/dist/qti-components-jsx.d.ts +1870 -0
- package/dist/qti-item/index.cjs +90 -0
- package/dist/qti-item/index.d.cts +24 -0
- package/dist/qti-item/index.d.ts +24 -0
- package/dist/qti-item/index.js +66 -0
- package/dist/qti-loader/index.cjs +333 -0
- package/dist/qti-loader/index.d.cts +20 -0
- package/dist/qti-loader/index.d.ts +20 -0
- package/dist/qti-loader/index.js +306 -0
- package/dist/qti-simple-choice-C7xBKYaS.d.cts +1135 -0
- package/dist/qti-simple-choice-C7xBKYaS.d.ts +1135 -0
- package/dist/qti-transformers/index.cjs +317 -0
- package/dist/qti-transformers/index.d.cts +75 -0
- package/dist/qti-transformers/index.d.ts +25 -120
- package/dist/qti-transformers/index.js +289 -2
- package/dist/vscode.css-custom-data.json +44 -0
- package/dist/vscode.html-custom-data.json +971 -0
- package/package.json +122 -60
- package/dist/chunk-H4VLZ2F7.js +0 -24
|
@@ -0,0 +1,1870 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This type can be used to create scoped tags for your components.
|
|
3
|
+
*
|
|
4
|
+
* Usage:
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* import type { ScopedElements } from "path/to/library/jsx-integration";
|
|
8
|
+
*
|
|
9
|
+
* declare module "my-library" {
|
|
10
|
+
* namespace JSX {
|
|
11
|
+
* interface IntrinsicElements
|
|
12
|
+
* extends ScopedElements<'test-', ''> {}
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export type ScopedElements<Prefix extends string = "", Suffix extends string = ""> = {
|
|
19
|
+
[Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
type BaseProps = {
|
|
23
|
+
/** Content added between the opening and closing tags of the element */
|
|
24
|
+
children?: any;
|
|
25
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
26
|
+
class?: string;
|
|
27
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
|
|
30
|
+
classList?: Record<string, boolean | undefined>;
|
|
31
|
+
/** Specifies the text direction of the element. */
|
|
32
|
+
dir?: "ltr" | "rtl";
|
|
33
|
+
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
34
|
+
exportparts?: string;
|
|
35
|
+
/** For <label> and <output>, lets you associate the label with some control. */
|
|
36
|
+
htmlFor?: string;
|
|
37
|
+
/** Specifies whether the element should be hidden. */
|
|
38
|
+
hidden?: boolean | string;
|
|
39
|
+
/** A unique identifier for the element. */
|
|
40
|
+
id?: string;
|
|
41
|
+
/** Keys tell React which array item each component corresponds to */
|
|
42
|
+
key?: string | number;
|
|
43
|
+
/** Specifies the language of the element. */
|
|
44
|
+
lang?: string;
|
|
45
|
+
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
46
|
+
part?: string;
|
|
47
|
+
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
48
|
+
ref?: unknown | ((e: unknown) => void);
|
|
49
|
+
/** Adds a reference for a custom element slot */
|
|
50
|
+
slot?: string;
|
|
51
|
+
/** Prop for setting inline styles */
|
|
52
|
+
style?: Record<string, string | number>;
|
|
53
|
+
/** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
|
|
54
|
+
tabIndex?: number;
|
|
55
|
+
/** Specifies the tooltip text for the element. */
|
|
56
|
+
title?: string;
|
|
57
|
+
/** Passing 'no' excludes the element content from being translated. */
|
|
58
|
+
translate?: "yes" | "no";
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
type BaseEvents = {};
|
|
62
|
+
|
|
63
|
+
export type ItemPrintVariablesProps = {
|
|
64
|
+
/** */
|
|
65
|
+
itemContext?: ItemContext | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type QtiAssessmentItemProps = {
|
|
69
|
+
/** */
|
|
70
|
+
title?: string;
|
|
71
|
+
/** */
|
|
72
|
+
identifier?: string;
|
|
73
|
+
/** */
|
|
74
|
+
adaptive?: "true" | "false";
|
|
75
|
+
/** */
|
|
76
|
+
timeDependent?: "true" | "false" | null;
|
|
77
|
+
/** */
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
/** */
|
|
80
|
+
readonly?: boolean;
|
|
81
|
+
/** */
|
|
82
|
+
_handleDisabledChange?: string;
|
|
83
|
+
/** */
|
|
84
|
+
_handleReadonlyChange?: string;
|
|
85
|
+
/** */
|
|
86
|
+
variables?: VariableValue<string | string[] | null>[];
|
|
87
|
+
/** @deprecated use variables property instead */
|
|
88
|
+
responses?: string;
|
|
89
|
+
/** */
|
|
90
|
+
onname?: (e: CustomEvent<CustomEvent>) => void;
|
|
91
|
+
/** Emitted when an interaction is changed. */
|
|
92
|
+
"onqti-interaction-changed"?: (e: CustomEvent<never>) => void;
|
|
93
|
+
/** Emitted when an outcome has changed. */
|
|
94
|
+
"onqti-outcome-changed"?: (e: CustomEvent<never>) => void;
|
|
95
|
+
/** Emitted when response-processing is called. */
|
|
96
|
+
"onqti-response-processing"?: (e: CustomEvent<never>) => void;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type QtiAssessmentStimulusRefProps = {
|
|
100
|
+
/** The identifier of the stimulus. */
|
|
101
|
+
identifier?: string;
|
|
102
|
+
/** The href of the stimulus. */
|
|
103
|
+
href?: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export type QtiCompanionMaterialsInfoProps = {};
|
|
107
|
+
|
|
108
|
+
export type QtiCustomOperatorProps = {
|
|
109
|
+
/** */
|
|
110
|
+
"onqti-set-outcome-value"?: (e: CustomEvent<CustomEvent>) => void;
|
|
111
|
+
/** */
|
|
112
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export type QtiAssociableHotspotProps = {
|
|
116
|
+
/** */
|
|
117
|
+
"onqti-register-hotspot"?: (e: CustomEvent<CustomEvent>) => void;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export type QtiGapImgProps = {
|
|
121
|
+
/** */
|
|
122
|
+
tabindex?: number | undefined;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export type QtiGapTextProps = {
|
|
126
|
+
/** */
|
|
127
|
+
tabindex?: number;
|
|
128
|
+
/** */
|
|
129
|
+
identifier?: string;
|
|
130
|
+
/** */
|
|
131
|
+
"aria-disabled"?: boolean;
|
|
132
|
+
/** */
|
|
133
|
+
"aria-readonly"?: boolean;
|
|
134
|
+
/** */
|
|
135
|
+
internals?: ElementInternals;
|
|
136
|
+
/** */
|
|
137
|
+
onundefined?: (e: CustomEvent<CustomEvent>) => void;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export type QtiGapProps = {
|
|
141
|
+
/** */
|
|
142
|
+
tabindex?: number | undefined;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export type QtiHotspotChoiceProps = {
|
|
146
|
+
/** */
|
|
147
|
+
"aria-ordervalue"?: number;
|
|
148
|
+
/** */
|
|
149
|
+
identifier?: string;
|
|
150
|
+
/** */
|
|
151
|
+
tabindex?: number;
|
|
152
|
+
/** */
|
|
153
|
+
"aria-disabled"?: boolean;
|
|
154
|
+
/** */
|
|
155
|
+
"aria-readonly"?: boolean;
|
|
156
|
+
/** */
|
|
157
|
+
internals?: ElementInternals;
|
|
158
|
+
/** */
|
|
159
|
+
onundefined?: (e: CustomEvent<CustomEvent>) => void;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export type QtiHottextProps = {
|
|
163
|
+
/** */
|
|
164
|
+
identifier?: string;
|
|
165
|
+
/** */
|
|
166
|
+
tabindex?: number;
|
|
167
|
+
/** */
|
|
168
|
+
"aria-disabled"?: boolean;
|
|
169
|
+
/** */
|
|
170
|
+
"aria-readonly"?: boolean;
|
|
171
|
+
/** */
|
|
172
|
+
internals?: ElementInternals;
|
|
173
|
+
/** */
|
|
174
|
+
onundefined?: (e: CustomEvent<CustomEvent>) => void;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
export type QtiInlineChoiceProps = {
|
|
178
|
+
/** */
|
|
179
|
+
identifier?: string;
|
|
180
|
+
|
|
181
|
+
/** */
|
|
182
|
+
"onqti-inline-choice-register"?: (e: CustomEvent<CustomEvent>) => void;
|
|
183
|
+
/** */
|
|
184
|
+
"onqti-inline-choice-select"?: (e: CustomEvent<CustomEvent>) => void;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
export type QtiSimpleAssociableChoiceProps = {
|
|
188
|
+
/** the minimal number of selections a candidate must make */
|
|
189
|
+
"match-min"?: number;
|
|
190
|
+
/** the maximum number of selections a candidate must make, the other options will be disabled when max options is checked */
|
|
191
|
+
"match-max"?: number;
|
|
192
|
+
/** */
|
|
193
|
+
fixed?: boolean;
|
|
194
|
+
/** */
|
|
195
|
+
identifier?: string;
|
|
196
|
+
/** */
|
|
197
|
+
tabindex?: number;
|
|
198
|
+
/** */
|
|
199
|
+
"aria-disabled"?: boolean;
|
|
200
|
+
/** */
|
|
201
|
+
"aria-readonly"?: boolean;
|
|
202
|
+
/** */
|
|
203
|
+
internals?: ElementInternals;
|
|
204
|
+
/** */
|
|
205
|
+
onundefined?: (e: CustomEvent<CustomEvent>) => void;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
export type QtiSimpleChoiceProps = {
|
|
209
|
+
/** */
|
|
210
|
+
identifier?: string;
|
|
211
|
+
/** */
|
|
212
|
+
tabindex?: number;
|
|
213
|
+
/** */
|
|
214
|
+
"aria-disabled"?: boolean;
|
|
215
|
+
/** */
|
|
216
|
+
"aria-readonly"?: boolean;
|
|
217
|
+
/** */
|
|
218
|
+
marker?: string;
|
|
219
|
+
/** */
|
|
220
|
+
checked?: string;
|
|
221
|
+
/** */
|
|
222
|
+
internals?: ElementInternals;
|
|
223
|
+
/** */
|
|
224
|
+
onundefined?: (e: CustomEvent<CustomEvent>) => void;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export type QtiItemBodyProps = {};
|
|
228
|
+
|
|
229
|
+
export type QtiOutcomeProcessingProps = {};
|
|
230
|
+
|
|
231
|
+
export type QtiPromptProps = {};
|
|
232
|
+
|
|
233
|
+
export type QtiContentBodyProps = {};
|
|
234
|
+
|
|
235
|
+
export type QtiRubricBlockProps = {
|
|
236
|
+
/** */
|
|
237
|
+
id?: string;
|
|
238
|
+
/** */
|
|
239
|
+
use?: "instructions" | "scoring" | "navigation";
|
|
240
|
+
/** */
|
|
241
|
+
view?: "author" | "candidate" | "proctor" | "scorer" | "testConstructor" | "tutor";
|
|
242
|
+
/** */
|
|
243
|
+
class?: string;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
export type QtiStylesheetProps = {};
|
|
247
|
+
|
|
248
|
+
export type QtiVariableDeclarationProps = {};
|
|
249
|
+
|
|
250
|
+
export type QtiFeedbackBlockProps = {
|
|
251
|
+
/** */
|
|
252
|
+
"show-hide"?: string;
|
|
253
|
+
/** */
|
|
254
|
+
"outcome-identifier"?: string;
|
|
255
|
+
/** */
|
|
256
|
+
identifier?: string;
|
|
257
|
+
/** */
|
|
258
|
+
showStatus?: string;
|
|
259
|
+
/** */
|
|
260
|
+
"onqti-register-feedback"?: (e: CustomEvent<CustomEvent>) => void;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export type QtiFeedbackInlineProps = {
|
|
264
|
+
/** */
|
|
265
|
+
"show-hide"?: string;
|
|
266
|
+
/** */
|
|
267
|
+
"outcome-identifier"?: string;
|
|
268
|
+
/** */
|
|
269
|
+
identifier?: string;
|
|
270
|
+
/** */
|
|
271
|
+
showStatus?: string;
|
|
272
|
+
/** */
|
|
273
|
+
"onqti-register-feedback"?: (e: CustomEvent<CustomEvent>) => void;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export type QtiModalFeedbackProps = {
|
|
277
|
+
/** */
|
|
278
|
+
"show-hide"?: string;
|
|
279
|
+
/** */
|
|
280
|
+
"outcome-identifier"?: string;
|
|
281
|
+
/** */
|
|
282
|
+
identifier?: string;
|
|
283
|
+
/** */
|
|
284
|
+
showStatus?: string;
|
|
285
|
+
/** */
|
|
286
|
+
"onqti-register-feedback"?: (e: CustomEvent<CustomEvent>) => void;
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
export type QtiAssociateInteractionProps = {
|
|
290
|
+
/** */
|
|
291
|
+
"min-associations"?: number;
|
|
292
|
+
/** */
|
|
293
|
+
"max-associations"?: number;
|
|
294
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
295
|
+
disabled?: boolean;
|
|
296
|
+
/** */
|
|
297
|
+
"response-identifier"?: string;
|
|
298
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
299
|
+
readonly?: boolean;
|
|
300
|
+
/** */
|
|
301
|
+
dragDropApi?: TouchDragAndDrop;
|
|
302
|
+
/** */
|
|
303
|
+
configuration?: InteractionConfiguration;
|
|
304
|
+
/** */
|
|
305
|
+
value?: string | string[];
|
|
306
|
+
/** */
|
|
307
|
+
correctResponse?: string | string[];
|
|
308
|
+
/** */
|
|
309
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
310
|
+
/** */
|
|
311
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
export type QtiChoiceInteractionProps = {
|
|
315
|
+
/** orientation of choices */
|
|
316
|
+
orientation?: "horizontal" | "vertical";
|
|
317
|
+
/** */
|
|
318
|
+
class?: string;
|
|
319
|
+
/** */
|
|
320
|
+
shuffle?: boolean;
|
|
321
|
+
/** */
|
|
322
|
+
"min-choices"?: number;
|
|
323
|
+
/** */
|
|
324
|
+
"max-choices"?: number;
|
|
325
|
+
/** */
|
|
326
|
+
"response-identifier"?: string;
|
|
327
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
328
|
+
disabled?: boolean;
|
|
329
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
330
|
+
readonly?: boolean;
|
|
331
|
+
/** */
|
|
332
|
+
_choiceElements?: Choice[];
|
|
333
|
+
/** */
|
|
334
|
+
_handleDisabledChange?: string;
|
|
335
|
+
/** */
|
|
336
|
+
_handleReadonlyChange?: string;
|
|
337
|
+
/** */
|
|
338
|
+
value?: string | string[];
|
|
339
|
+
/** */
|
|
340
|
+
correctResponse?: string | string[];
|
|
341
|
+
/** */
|
|
342
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
343
|
+
/** */
|
|
344
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
export type QtiCustomInteractionProps = {
|
|
348
|
+
/** */
|
|
349
|
+
data?: string;
|
|
350
|
+
/** */
|
|
351
|
+
"data-base-item"?: string;
|
|
352
|
+
/** */
|
|
353
|
+
"data-base-ref"?: string;
|
|
354
|
+
/** */
|
|
355
|
+
id?: string;
|
|
356
|
+
/** */
|
|
357
|
+
"response-identifier"?: string;
|
|
358
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
359
|
+
disabled?: boolean;
|
|
360
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
361
|
+
readonly?: boolean;
|
|
362
|
+
/** */
|
|
363
|
+
manifest?: {
|
|
364
|
+
script: string[];
|
|
365
|
+
style: string[];
|
|
366
|
+
media: string[];
|
|
367
|
+
};
|
|
368
|
+
/** */
|
|
369
|
+
value?: string | string[];
|
|
370
|
+
/** */
|
|
371
|
+
correctResponse?: string | string[];
|
|
372
|
+
/** */
|
|
373
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
374
|
+
/** */
|
|
375
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
export type QtiEndAttemptInteractionProps = {
|
|
379
|
+
/** */
|
|
380
|
+
"count-attempt"?: string;
|
|
381
|
+
/** */
|
|
382
|
+
title?: "end attempt";
|
|
383
|
+
/** */
|
|
384
|
+
"response-identifier"?: string;
|
|
385
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
386
|
+
disabled?: boolean;
|
|
387
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
388
|
+
readonly?: boolean;
|
|
389
|
+
/** */
|
|
390
|
+
value?: string | string[];
|
|
391
|
+
/** */
|
|
392
|
+
correctResponse?: string | string[];
|
|
393
|
+
/** */
|
|
394
|
+
"onend-attempt"?: (e: CustomEvent<CustomEvent>) => void;
|
|
395
|
+
/** */
|
|
396
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
397
|
+
/** */
|
|
398
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
export type QtiExtendedTextInteractionProps = {
|
|
402
|
+
/** expected length is mapped to the property maxlength on the textarea */
|
|
403
|
+
"expected-length"?: number;
|
|
404
|
+
/** */
|
|
405
|
+
"pattern-mask"?: string;
|
|
406
|
+
/** text appearing in the extended-text-nteraction if it is empty */
|
|
407
|
+
"placeholder-text"?: string;
|
|
408
|
+
/** */
|
|
409
|
+
"data-patternmask-message"?: string;
|
|
410
|
+
/** */
|
|
411
|
+
class?: string;
|
|
412
|
+
/** */
|
|
413
|
+
"response-identifier"?: string;
|
|
414
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
415
|
+
disabled?: boolean;
|
|
416
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
417
|
+
readonly?: boolean;
|
|
418
|
+
/** */
|
|
419
|
+
value?: string | string[];
|
|
420
|
+
/** */
|
|
421
|
+
correctResponse?: string | string[];
|
|
422
|
+
/** */
|
|
423
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
424
|
+
/** */
|
|
425
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
export type QtiGapMatchInteractionProps = {
|
|
429
|
+
/** */
|
|
430
|
+
"min-associations"?: number;
|
|
431
|
+
/** */
|
|
432
|
+
"max-associations"?: number;
|
|
433
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
434
|
+
disabled?: boolean;
|
|
435
|
+
/** */
|
|
436
|
+
"response-identifier"?: string;
|
|
437
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
438
|
+
readonly?: boolean;
|
|
439
|
+
/** */
|
|
440
|
+
correctResponse?: string | string[];
|
|
441
|
+
/** */
|
|
442
|
+
dragDropApi?: TouchDragAndDrop;
|
|
443
|
+
/** */
|
|
444
|
+
configuration?: InteractionConfiguration;
|
|
445
|
+
/** */
|
|
446
|
+
value?: string | string[];
|
|
447
|
+
/** */
|
|
448
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
449
|
+
/** */
|
|
450
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export type QtiGraphicAssociateInteractionProps = {
|
|
454
|
+
/** */
|
|
455
|
+
"response-identifier"?: string;
|
|
456
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
457
|
+
disabled?: boolean;
|
|
458
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
459
|
+
readonly?: boolean;
|
|
460
|
+
/** */
|
|
461
|
+
choiceOrdering?: boolean;
|
|
462
|
+
/** */
|
|
463
|
+
hotspots?: string;
|
|
464
|
+
/** */
|
|
465
|
+
startPoint?: null;
|
|
466
|
+
/** */
|
|
467
|
+
endPoint?: null;
|
|
468
|
+
/** */
|
|
469
|
+
_lines?: array;
|
|
470
|
+
/** */
|
|
471
|
+
startCoord?: { x: any; y: any };
|
|
472
|
+
/** */
|
|
473
|
+
mouseCoord?: { x: number; y: number };
|
|
474
|
+
/** */
|
|
475
|
+
svgContainer?: string;
|
|
476
|
+
/** */
|
|
477
|
+
grImage?: string;
|
|
478
|
+
/** */
|
|
479
|
+
svg?: SVGSVGElement;
|
|
480
|
+
/** */
|
|
481
|
+
value?: string | string[];
|
|
482
|
+
/** */
|
|
483
|
+
correctResponse?: string | string[];
|
|
484
|
+
/** */
|
|
485
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
486
|
+
/** */
|
|
487
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
export type QtiGraphicGapMatchInteractionProps = {
|
|
491
|
+
/** */
|
|
492
|
+
"min-associations"?: number;
|
|
493
|
+
/** */
|
|
494
|
+
"max-associations"?: number;
|
|
495
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
496
|
+
disabled?: boolean;
|
|
497
|
+
/** */
|
|
498
|
+
"response-identifier"?: string;
|
|
499
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
500
|
+
readonly?: boolean;
|
|
501
|
+
/** */
|
|
502
|
+
dragDropApi?: TouchDragAndDrop;
|
|
503
|
+
/** */
|
|
504
|
+
configuration?: InteractionConfiguration;
|
|
505
|
+
/** */
|
|
506
|
+
value?: string | string[];
|
|
507
|
+
/** */
|
|
508
|
+
correctResponse?: string | string[];
|
|
509
|
+
/** */
|
|
510
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
511
|
+
/** */
|
|
512
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
export type QtiGraphicOrderInteractionProps = {
|
|
516
|
+
/** */
|
|
517
|
+
"min-choices"?: number;
|
|
518
|
+
/** */
|
|
519
|
+
"max-choices"?: number;
|
|
520
|
+
/** */
|
|
521
|
+
"response-identifier"?: string;
|
|
522
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
523
|
+
disabled?: boolean;
|
|
524
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
525
|
+
readonly?: boolean;
|
|
526
|
+
/** */
|
|
527
|
+
choiceOrdering?: boolean;
|
|
528
|
+
/** */
|
|
529
|
+
_choiceElements?: Choice[];
|
|
530
|
+
/** */
|
|
531
|
+
_handleDisabledChange?: string;
|
|
532
|
+
/** */
|
|
533
|
+
_handleReadonlyChange?: string;
|
|
534
|
+
/** */
|
|
535
|
+
value?: string | string[];
|
|
536
|
+
/** */
|
|
537
|
+
correctResponse?: string | string[];
|
|
538
|
+
/** */
|
|
539
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
540
|
+
/** */
|
|
541
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
export type QtiHotspotInteractionProps = {
|
|
545
|
+
/** */
|
|
546
|
+
"min-choices"?: number;
|
|
547
|
+
/** */
|
|
548
|
+
"max-choices"?: number;
|
|
549
|
+
/** */
|
|
550
|
+
"response-identifier"?: string;
|
|
551
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
552
|
+
disabled?: boolean;
|
|
553
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
554
|
+
readonly?: boolean;
|
|
555
|
+
/** */
|
|
556
|
+
_choiceElements?: Choice[];
|
|
557
|
+
/** */
|
|
558
|
+
_handleDisabledChange?: string;
|
|
559
|
+
/** */
|
|
560
|
+
_handleReadonlyChange?: string;
|
|
561
|
+
/** */
|
|
562
|
+
value?: string | string[];
|
|
563
|
+
/** */
|
|
564
|
+
correctResponse?: string | string[];
|
|
565
|
+
/** */
|
|
566
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
567
|
+
/** */
|
|
568
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
export type QtiHottextInteractionProps = {
|
|
572
|
+
/** */
|
|
573
|
+
"min-choices"?: number;
|
|
574
|
+
/** */
|
|
575
|
+
"max-choices"?: number;
|
|
576
|
+
/** */
|
|
577
|
+
"response-identifier"?: string;
|
|
578
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
579
|
+
disabled?: boolean;
|
|
580
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
581
|
+
readonly?: boolean;
|
|
582
|
+
/** */
|
|
583
|
+
_choiceElements?: Choice[];
|
|
584
|
+
/** */
|
|
585
|
+
_handleDisabledChange?: string;
|
|
586
|
+
/** */
|
|
587
|
+
_handleReadonlyChange?: string;
|
|
588
|
+
/** */
|
|
589
|
+
value?: string | string[];
|
|
590
|
+
/** */
|
|
591
|
+
correctResponse?: string | string[];
|
|
592
|
+
/** */
|
|
593
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
594
|
+
/** */
|
|
595
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
export type QtiInlineChoiceInteractionProps = {
|
|
599
|
+
/** */
|
|
600
|
+
"data-prompt"?: string;
|
|
601
|
+
/** */
|
|
602
|
+
"response-identifier"?: string;
|
|
603
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
604
|
+
disabled?: boolean;
|
|
605
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
606
|
+
readonly?: boolean;
|
|
607
|
+
/** */
|
|
608
|
+
options?: OptionType[];
|
|
609
|
+
/** */
|
|
610
|
+
correctOption?: string;
|
|
611
|
+
/** */
|
|
612
|
+
value?: string | string[];
|
|
613
|
+
/** */
|
|
614
|
+
correctResponse?: string | string[];
|
|
615
|
+
/** */
|
|
616
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
617
|
+
/** */
|
|
618
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
export type QtiMatchInteractionProps = {
|
|
622
|
+
/** */
|
|
623
|
+
"response-identifier"?: string;
|
|
624
|
+
/** */
|
|
625
|
+
"min-associations"?: number;
|
|
626
|
+
/** */
|
|
627
|
+
"max-associations"?: number;
|
|
628
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
629
|
+
disabled?: boolean;
|
|
630
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
631
|
+
readonly?: boolean;
|
|
632
|
+
/** */
|
|
633
|
+
rows?: QtiSimpleAssociableChoice[];
|
|
634
|
+
/** */
|
|
635
|
+
cols?: QtiSimpleAssociableChoice[];
|
|
636
|
+
/** */
|
|
637
|
+
lastCheckedRadio?: HTMLInputElement | null;
|
|
638
|
+
/** */
|
|
639
|
+
_response?: string | string[];
|
|
640
|
+
/** */
|
|
641
|
+
value?: string | string[];
|
|
642
|
+
/** */
|
|
643
|
+
correctOptions?: string[];
|
|
644
|
+
/** */
|
|
645
|
+
handleRadioClick?: string;
|
|
646
|
+
/** */
|
|
647
|
+
handleRadioChange?: string;
|
|
648
|
+
/** */
|
|
649
|
+
correctResponse?: string | string[];
|
|
650
|
+
/** */
|
|
651
|
+
dragDropApi?: TouchDragAndDrop;
|
|
652
|
+
/** */
|
|
653
|
+
configuration?: InteractionConfiguration;
|
|
654
|
+
/** */
|
|
655
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
656
|
+
/** */
|
|
657
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
export type QtiMediaInteractionProps = {
|
|
661
|
+
/** */
|
|
662
|
+
"response-identifier"?: string;
|
|
663
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
664
|
+
disabled?: boolean;
|
|
665
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
666
|
+
readonly?: boolean;
|
|
667
|
+
/** */
|
|
668
|
+
value?: string | string[];
|
|
669
|
+
/** */
|
|
670
|
+
correctResponse?: string | string[];
|
|
671
|
+
/** */
|
|
672
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
673
|
+
/** */
|
|
674
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
export type QtiOrderInteractionProps = {
|
|
678
|
+
/** orientation of choices */
|
|
679
|
+
orientation?: "horizontal" | "vertical";
|
|
680
|
+
/** */
|
|
681
|
+
shuffle?: boolean;
|
|
682
|
+
/** */
|
|
683
|
+
"min-associations"?: number;
|
|
684
|
+
/** */
|
|
685
|
+
"max-associations"?: number;
|
|
686
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
687
|
+
disabled?: boolean;
|
|
688
|
+
/** */
|
|
689
|
+
"response-identifier"?: string;
|
|
690
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
691
|
+
readonly?: boolean;
|
|
692
|
+
/** */
|
|
693
|
+
childrenMap?: Element[];
|
|
694
|
+
/** */
|
|
695
|
+
nrChoices?: number;
|
|
696
|
+
/** */
|
|
697
|
+
correctResponses?: string[];
|
|
698
|
+
/** */
|
|
699
|
+
showCorrectResponses?: boolean;
|
|
700
|
+
/** */
|
|
701
|
+
correctResponse?: string | string[];
|
|
702
|
+
/** */
|
|
703
|
+
dragDropApi?: TouchDragAndDrop;
|
|
704
|
+
/** */
|
|
705
|
+
configuration?: InteractionConfiguration;
|
|
706
|
+
/** */
|
|
707
|
+
value?: string | string[];
|
|
708
|
+
/** */
|
|
709
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
710
|
+
/** */
|
|
711
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
export type QtiPortableCustomInteractionProps = {
|
|
715
|
+
/** */
|
|
716
|
+
module?: string;
|
|
717
|
+
/** */
|
|
718
|
+
"custom-interaction-type-identifier"?: string;
|
|
719
|
+
/** */
|
|
720
|
+
"response-identifier"?: string;
|
|
721
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
722
|
+
disabled?: boolean;
|
|
723
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
724
|
+
readonly?: boolean;
|
|
725
|
+
/** */
|
|
726
|
+
value?: string | string[];
|
|
727
|
+
/** */
|
|
728
|
+
loadConfig?: string;
|
|
729
|
+
/** */
|
|
730
|
+
getResolvablePathString?: string;
|
|
731
|
+
/** */
|
|
732
|
+
getResolvablePath?: string;
|
|
733
|
+
/** */
|
|
734
|
+
correctResponse?: string | string[];
|
|
735
|
+
/** */
|
|
736
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
737
|
+
/** */
|
|
738
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
export type QtiSPositionObjectInteractionProps = {};
|
|
742
|
+
|
|
743
|
+
export type QtiPositionObjectStageProps = {
|
|
744
|
+
/** */
|
|
745
|
+
choiceOrdering?: boolean;
|
|
746
|
+
/** */
|
|
747
|
+
startX?: any;
|
|
748
|
+
/** */
|
|
749
|
+
startY?: any;
|
|
750
|
+
/** */
|
|
751
|
+
dragElement?: any;
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
export type QtiSelectPointInteractionProps = {
|
|
755
|
+
/** */
|
|
756
|
+
"max-choices"?: number;
|
|
757
|
+
/** */
|
|
758
|
+
"min-choices"?: number;
|
|
759
|
+
/** */
|
|
760
|
+
"response-identifier"?: string;
|
|
761
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
762
|
+
disabled?: boolean;
|
|
763
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
764
|
+
readonly?: boolean;
|
|
765
|
+
/** */
|
|
766
|
+
value?: string | string[];
|
|
767
|
+
/** */
|
|
768
|
+
correctResponse?: string | string[];
|
|
769
|
+
/** */
|
|
770
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
771
|
+
/** */
|
|
772
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
export type QtiSliderInteractionProps = {
|
|
776
|
+
/** */
|
|
777
|
+
"step-label"?: boolean;
|
|
778
|
+
/** */
|
|
779
|
+
reverse?: boolean;
|
|
780
|
+
/** */
|
|
781
|
+
"lower-bound"?: number;
|
|
782
|
+
/** */
|
|
783
|
+
"upper-bound"?: number;
|
|
784
|
+
/** */
|
|
785
|
+
step?: number;
|
|
786
|
+
/** */
|
|
787
|
+
"response-identifier"?: string;
|
|
788
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
789
|
+
disabled?: boolean;
|
|
790
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
791
|
+
readonly?: boolean;
|
|
792
|
+
/** */
|
|
793
|
+
csLive?: CSSStyleDeclaration;
|
|
794
|
+
/** */
|
|
795
|
+
_handleDisabledChange?: string;
|
|
796
|
+
/** */
|
|
797
|
+
_handleReadonlyChange?: string;
|
|
798
|
+
/** */
|
|
799
|
+
value?: string | string[];
|
|
800
|
+
/** */
|
|
801
|
+
response?: string;
|
|
802
|
+
/** */
|
|
803
|
+
correctResponse?: string | string[];
|
|
804
|
+
/** emitted when the interaction wants to register itself */
|
|
805
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
806
|
+
/** emitted when the interaction changes */
|
|
807
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
export type QtiTextEntryInteractionProps = {
|
|
811
|
+
/** */
|
|
812
|
+
"expected-length"?: number;
|
|
813
|
+
/** */
|
|
814
|
+
"pattern-mask"?: string;
|
|
815
|
+
/** */
|
|
816
|
+
"placeholder-text"?: string;
|
|
817
|
+
/** */
|
|
818
|
+
"data-patternmask-message"?: string;
|
|
819
|
+
/** */
|
|
820
|
+
"response-identifier"?: string;
|
|
821
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
822
|
+
disabled?: boolean;
|
|
823
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
824
|
+
readonly?: boolean;
|
|
825
|
+
/** */
|
|
826
|
+
inputRef?: string;
|
|
827
|
+
/** */
|
|
828
|
+
value?: string | string[];
|
|
829
|
+
/** */
|
|
830
|
+
correctResponse?: string | string[];
|
|
831
|
+
/** */
|
|
832
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
833
|
+
/** */
|
|
834
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
export type QtiResponseElseProps = {};
|
|
838
|
+
|
|
839
|
+
export type QtiResponseProcessingProps = {};
|
|
840
|
+
|
|
841
|
+
export type QtiRuleProps = {};
|
|
842
|
+
|
|
843
|
+
export type QtiOutcomeDeclarationProps = {
|
|
844
|
+
/** */
|
|
845
|
+
"base-type"?: BaseType;
|
|
846
|
+
/** */
|
|
847
|
+
"external-scored"?: "human" | "externalMachine" | null;
|
|
848
|
+
/** */
|
|
849
|
+
identifier?: string;
|
|
850
|
+
/** */
|
|
851
|
+
cardinality?: Cardinality;
|
|
852
|
+
/** */
|
|
853
|
+
itemContext?: ItemContext | undefined;
|
|
854
|
+
/** */
|
|
855
|
+
interpolationTable?: Map<number, number> | null;
|
|
856
|
+
/** */
|
|
857
|
+
"onqti-register-variable"?: (e: CustomEvent<CustomEvent>) => void;
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
export type QtiResponseDeclarationProps = {
|
|
861
|
+
/** */
|
|
862
|
+
"base-type"?: BaseType;
|
|
863
|
+
/** */
|
|
864
|
+
identifier?: string;
|
|
865
|
+
/** */
|
|
866
|
+
cardinality?: Cardinality;
|
|
867
|
+
/** */
|
|
868
|
+
itemContext?: ItemContext | undefined;
|
|
869
|
+
/** */
|
|
870
|
+
"onqti-register-variable"?: (e: CustomEvent<CustomEvent>) => void;
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
export type TestElementProps = {
|
|
874
|
+
/** */
|
|
875
|
+
class?: string;
|
|
876
|
+
/** */
|
|
877
|
+
shuffle?: boolean;
|
|
878
|
+
/** */
|
|
879
|
+
"response-identifier"?: string;
|
|
880
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
881
|
+
disabled?: boolean;
|
|
882
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
883
|
+
readonly?: boolean;
|
|
884
|
+
/** */
|
|
885
|
+
value?: string | string[];
|
|
886
|
+
/** */
|
|
887
|
+
correctResponse?: string | string[];
|
|
888
|
+
/** */
|
|
889
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
890
|
+
/** */
|
|
891
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
export type TestElementProps = {
|
|
895
|
+
/** */
|
|
896
|
+
class?: string;
|
|
897
|
+
/** */
|
|
898
|
+
shuffle?: boolean;
|
|
899
|
+
/** */
|
|
900
|
+
"response-identifier"?: string;
|
|
901
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
902
|
+
disabled?: boolean;
|
|
903
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
904
|
+
readonly?: boolean;
|
|
905
|
+
/** */
|
|
906
|
+
value?: string | string[];
|
|
907
|
+
/** */
|
|
908
|
+
correctResponse?: string | string[];
|
|
909
|
+
/** */
|
|
910
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
911
|
+
/** */
|
|
912
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
913
|
+
};
|
|
914
|
+
|
|
915
|
+
export type TestElementProps = {
|
|
916
|
+
/** */
|
|
917
|
+
class?: string;
|
|
918
|
+
/** */
|
|
919
|
+
shuffle?: boolean;
|
|
920
|
+
/** */
|
|
921
|
+
"response-identifier"?: string;
|
|
922
|
+
/** disabled should be exposed to the attributes and accessible as property */
|
|
923
|
+
disabled?: boolean;
|
|
924
|
+
/** readonly should be exposed to the attributes and accessible as property */
|
|
925
|
+
readonly?: boolean;
|
|
926
|
+
/** */
|
|
927
|
+
value?: string | string[];
|
|
928
|
+
/** */
|
|
929
|
+
correctResponse?: string | string[];
|
|
930
|
+
/** */
|
|
931
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
932
|
+
/** */
|
|
933
|
+
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
export type QtiAndProps = {};
|
|
937
|
+
|
|
938
|
+
export type QtiBaseValueProps = {
|
|
939
|
+
/** */
|
|
940
|
+
"base-type"?: BaseType;
|
|
941
|
+
/** */
|
|
942
|
+
getVariables?: string;
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
export type QtiContainsProps = {
|
|
946
|
+
/** */
|
|
947
|
+
getVariables?: string;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
export type QtiCorrectProps = {
|
|
951
|
+
/** */
|
|
952
|
+
interpretation?: string;
|
|
953
|
+
/** */
|
|
954
|
+
getVariables?: string;
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
export type QtiEqualProps = {
|
|
958
|
+
/** */
|
|
959
|
+
toleranceMode?: "exact" | "relative" | "absolute";
|
|
960
|
+
/** */
|
|
961
|
+
getVariables?: string;
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
export type QtiEqualRoundedProps = {
|
|
965
|
+
/** */
|
|
966
|
+
roundingMode?: "decimalPlaces" | "significantFigures";
|
|
967
|
+
/** */
|
|
968
|
+
figures?: string;
|
|
969
|
+
/** */
|
|
970
|
+
getVariables?: string;
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
export type QtiGtProps = {
|
|
974
|
+
/** */
|
|
975
|
+
getVariables?: string;
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
export type QtiGteProps = {
|
|
979
|
+
/** */
|
|
980
|
+
getVariables?: string;
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
export type QtiIsNullProps = {
|
|
984
|
+
/** */
|
|
985
|
+
getVariables?: string;
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
export type QtiLtProps = {
|
|
989
|
+
/** */
|
|
990
|
+
getVariables?: string;
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
export type QtiLteProps = {
|
|
994
|
+
/** */
|
|
995
|
+
getVariables?: string;
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
export type QtiMapResponseProps = {
|
|
999
|
+
/** */
|
|
1000
|
+
identifier?: string;
|
|
1001
|
+
/** */
|
|
1002
|
+
getVariables?: string;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
export type QtiMappingProps = {
|
|
1006
|
+
/** */
|
|
1007
|
+
"default-value"?: number;
|
|
1008
|
+
/** */
|
|
1009
|
+
"lower-bound"?: number;
|
|
1010
|
+
/** */
|
|
1011
|
+
"upper-bound"?: number;
|
|
1012
|
+
/** */
|
|
1013
|
+
mapEntries?: string;
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
export type QtiMatchProps = {
|
|
1017
|
+
/** */
|
|
1018
|
+
getVariables?: string;
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
export type QtiMemberProps = {
|
|
1022
|
+
/** */
|
|
1023
|
+
getVariables?: string;
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
export type QtiMultipleProps = {
|
|
1027
|
+
/** */
|
|
1028
|
+
getVariables?: string;
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
export type QtiNotProps = {
|
|
1032
|
+
/** */
|
|
1033
|
+
getVariables?: string;
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
export type QtiOrProps = {
|
|
1037
|
+
/** */
|
|
1038
|
+
getVariables?: string;
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
export type QtiOrderedProps = {
|
|
1042
|
+
/** */
|
|
1043
|
+
getVariables?: string;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
export type QtiPrintedVariableProps = {
|
|
1047
|
+
/** */
|
|
1048
|
+
identifier?: string;
|
|
1049
|
+
};
|
|
1050
|
+
|
|
1051
|
+
export type QtiProductProps = {
|
|
1052
|
+
/** */
|
|
1053
|
+
getVariables?: string;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
export type QtiStringMatchProps = {
|
|
1057
|
+
/** */
|
|
1058
|
+
"case-sensitive"?: string;
|
|
1059
|
+
/** */
|
|
1060
|
+
getVariables?: string;
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
export type QtiSumProps = {
|
|
1064
|
+
/** */
|
|
1065
|
+
getVariables?: string;
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
export type QtiVariableProps = {
|
|
1069
|
+
/** */
|
|
1070
|
+
getVariables?: string;
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
export type QtiResponseIfProps = {};
|
|
1074
|
+
|
|
1075
|
+
export type QtiLookupOutcomeValueProps = {
|
|
1076
|
+
/** */
|
|
1077
|
+
identifier?: string;
|
|
1078
|
+
/** */
|
|
1079
|
+
childExpression?: QtiExpression<string>;
|
|
1080
|
+
/** */
|
|
1081
|
+
"onqti-set-outcome-value"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
export type QtiResponseConditionProps = {};
|
|
1085
|
+
|
|
1086
|
+
export type QtiSetOutcomeValueProps = {
|
|
1087
|
+
/** */
|
|
1088
|
+
"onqti-set-outcome-value"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
export type QtiResponseElseIfProps = {};
|
|
1092
|
+
|
|
1093
|
+
export type QtiItemProps = {
|
|
1094
|
+
/** */
|
|
1095
|
+
identifier?: string | undefined;
|
|
1096
|
+
/** */
|
|
1097
|
+
href?: string | undefined;
|
|
1098
|
+
/** */
|
|
1099
|
+
xmlDoc?: DocumentFragment;
|
|
1100
|
+
/** */
|
|
1101
|
+
assessmentItem?: QtiAssessmentItem | null;
|
|
1102
|
+
/** */
|
|
1103
|
+
"onqti-item-connected"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
export type CustomElements = {
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* ---
|
|
1110
|
+
*
|
|
1111
|
+
*/
|
|
1112
|
+
"item-print-variables": Partial<ItemPrintVariablesProps & BaseProps & BaseEvents>;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* The qti-assessment-item element contains all the other QTI 3 item structures.
|
|
1116
|
+
* ---
|
|
1117
|
+
*
|
|
1118
|
+
*
|
|
1119
|
+
* ### **Events:**
|
|
1120
|
+
* - **name**
|
|
1121
|
+
* - **qti-interaction-changed** - Emitted when an interaction is changed.
|
|
1122
|
+
* - **qti-outcome-changed** - Emitted when an outcome has changed.
|
|
1123
|
+
* - **qti-response-processing** - Emitted when response-processing is called.
|
|
1124
|
+
*
|
|
1125
|
+
* ### **Slots:**
|
|
1126
|
+
* - _default_ - The default slot where all the other QTI 3 item structures go.
|
|
1127
|
+
*/
|
|
1128
|
+
"qti-assessment-item": Partial<QtiAssessmentItemProps & BaseProps & BaseEvents>;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Represents a custom element for referencing an assessment stimulus.
|
|
1132
|
+
* ---
|
|
1133
|
+
*
|
|
1134
|
+
*
|
|
1135
|
+
* ### **Methods:**
|
|
1136
|
+
* - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.
|
|
1137
|
+
*/
|
|
1138
|
+
"qti-assessment-stimulus-ref": Partial<QtiAssessmentStimulusRefProps & BaseProps & BaseEvents>;
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* ---
|
|
1143
|
+
*
|
|
1144
|
+
*/
|
|
1145
|
+
"qti-companion-materials-info": Partial<QtiCompanionMaterialsInfoProps & BaseProps & BaseEvents>;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
|
|
1149
|
+
* <qti-custom-operator class="js.org">
|
|
1150
|
+
* <qti-base-value base-type="string"><![CDATA[
|
|
1151
|
+
* console.log(context.variables);
|
|
1152
|
+
* return 'B'
|
|
1153
|
+
* document.querySelector('qti-end-attempt-interaction').disabled = true;
|
|
1154
|
+
* ]]></qti-base-value>
|
|
1155
|
+
* </qti-custom-operator>
|
|
1156
|
+
* </qti-set-outcome-value>
|
|
1157
|
+
* ---
|
|
1158
|
+
*
|
|
1159
|
+
*
|
|
1160
|
+
* ### **Events:**
|
|
1161
|
+
* - **qti-set-outcome-value**
|
|
1162
|
+
* - **qti-interaction-response**
|
|
1163
|
+
*/
|
|
1164
|
+
"qti-custom-operator": Partial<QtiCustomOperatorProps & BaseProps & BaseEvents>;
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
*
|
|
1168
|
+
* ---
|
|
1169
|
+
*
|
|
1170
|
+
*
|
|
1171
|
+
* ### **Events:**
|
|
1172
|
+
* - **qti-register-hotspot**
|
|
1173
|
+
*/
|
|
1174
|
+
"qti-associable-hotspot": Partial<QtiAssociableHotspotProps & BaseProps & BaseEvents>;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
*
|
|
1178
|
+
* ---
|
|
1179
|
+
*
|
|
1180
|
+
*/
|
|
1181
|
+
"qti-gap-img": Partial<QtiGapImgProps & BaseProps & BaseEvents>;
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
*
|
|
1185
|
+
* ---
|
|
1186
|
+
*
|
|
1187
|
+
*
|
|
1188
|
+
* ### **Events:**
|
|
1189
|
+
*
|
|
1190
|
+
*/
|
|
1191
|
+
"qti-gap-text": Partial<QtiGapTextProps & BaseProps & BaseEvents>;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
*
|
|
1195
|
+
* ---
|
|
1196
|
+
*
|
|
1197
|
+
*/
|
|
1198
|
+
"qti-gap": Partial<QtiGapProps & BaseProps & BaseEvents>;
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
*
|
|
1202
|
+
* ---
|
|
1203
|
+
*
|
|
1204
|
+
*
|
|
1205
|
+
* ### **Events:**
|
|
1206
|
+
*
|
|
1207
|
+
*/
|
|
1208
|
+
"qti-hotspot-choice": Partial<QtiHotspotChoiceProps & BaseProps & BaseEvents>;
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
*
|
|
1212
|
+
* ---
|
|
1213
|
+
*
|
|
1214
|
+
*
|
|
1215
|
+
* ### **Events:**
|
|
1216
|
+
*
|
|
1217
|
+
*/
|
|
1218
|
+
"qti-hottext": Partial<QtiHottextProps & BaseProps & BaseEvents>;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
* ---
|
|
1223
|
+
*
|
|
1224
|
+
*
|
|
1225
|
+
* ### **Events:**
|
|
1226
|
+
* - **qti-inline-choice-register**
|
|
1227
|
+
* - **qti-inline-choice-select**
|
|
1228
|
+
*/
|
|
1229
|
+
"qti-inline-choice": Partial<QtiInlineChoiceProps & BaseProps & BaseEvents>;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
*
|
|
1233
|
+
* ---
|
|
1234
|
+
*
|
|
1235
|
+
*
|
|
1236
|
+
* ### **Events:**
|
|
1237
|
+
*
|
|
1238
|
+
*/
|
|
1239
|
+
"qti-simple-associable-choice": Partial<QtiSimpleAssociableChoiceProps & BaseProps & BaseEvents>;
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* qti-order-interaction
|
|
1243
|
+
* qti-choice-interaction
|
|
1244
|
+
* ---
|
|
1245
|
+
*
|
|
1246
|
+
*
|
|
1247
|
+
* ### **Events:**
|
|
1248
|
+
*
|
|
1249
|
+
*/
|
|
1250
|
+
"qti-simple-choice": Partial<QtiSimpleChoiceProps & BaseProps & BaseEvents>;
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* The qti-item-body node contains the text, graphics, media objects and interactions that describe the item's content and information about how it is structured.
|
|
1254
|
+
* ---
|
|
1255
|
+
*
|
|
1256
|
+
*
|
|
1257
|
+
* ### **Slots:**
|
|
1258
|
+
* - _default_ - item body content.
|
|
1259
|
+
* - **qti-rubric-block** - the qti rubric block is placed above the item
|
|
1260
|
+
*/
|
|
1261
|
+
"qti-item-body": Partial<QtiItemBodyProps & BaseProps & BaseEvents>;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* ---
|
|
1266
|
+
*
|
|
1267
|
+
*/
|
|
1268
|
+
"qti-outcome-processing": Partial<QtiOutcomeProcessingProps & BaseProps & BaseEvents>;
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
*
|
|
1272
|
+
* ---
|
|
1273
|
+
*
|
|
1274
|
+
*/
|
|
1275
|
+
"qti-prompt": Partial<QtiPromptProps & BaseProps & BaseEvents>;
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
*
|
|
1279
|
+
* ---
|
|
1280
|
+
*
|
|
1281
|
+
*/
|
|
1282
|
+
"qti-content-body": Partial<QtiContentBodyProps & BaseProps & BaseEvents>;
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
*
|
|
1286
|
+
* ---
|
|
1287
|
+
*
|
|
1288
|
+
*/
|
|
1289
|
+
"qti-rubric-block": Partial<QtiRubricBlockProps & BaseProps & BaseEvents>;
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
*
|
|
1293
|
+
* ---
|
|
1294
|
+
*
|
|
1295
|
+
*/
|
|
1296
|
+
"qti-stylesheet": Partial<QtiStylesheetProps & BaseProps & BaseEvents>;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
*
|
|
1300
|
+
* ---
|
|
1301
|
+
*
|
|
1302
|
+
*/
|
|
1303
|
+
"qti-variabledeclaration": Partial<QtiVariableDeclarationProps & BaseProps & BaseEvents>;
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
*
|
|
1307
|
+
* ---
|
|
1308
|
+
*
|
|
1309
|
+
*
|
|
1310
|
+
* ### **Events:**
|
|
1311
|
+
* - **qti-register-feedback**
|
|
1312
|
+
*/
|
|
1313
|
+
"qti-feedback-block": Partial<QtiFeedbackBlockProps & BaseProps & BaseEvents>;
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
*
|
|
1317
|
+
* ---
|
|
1318
|
+
*
|
|
1319
|
+
*
|
|
1320
|
+
* ### **Events:**
|
|
1321
|
+
* - **qti-register-feedback**
|
|
1322
|
+
*/
|
|
1323
|
+
"qti-feedback-inline": Partial<QtiFeedbackInlineProps & BaseProps & BaseEvents>;
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
*
|
|
1327
|
+
* ---
|
|
1328
|
+
*
|
|
1329
|
+
*
|
|
1330
|
+
* ### **Events:**
|
|
1331
|
+
* - **qti-register-feedback**
|
|
1332
|
+
*/
|
|
1333
|
+
"qti-modal-feedback": Partial<QtiModalFeedbackProps & BaseProps & BaseEvents>;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
*
|
|
1337
|
+
* ---
|
|
1338
|
+
*
|
|
1339
|
+
*
|
|
1340
|
+
* ### **Events:**
|
|
1341
|
+
* - **qti-register-interaction**
|
|
1342
|
+
* - **qti-interaction-response**
|
|
1343
|
+
*/
|
|
1344
|
+
"qti-associate-interaction": Partial<QtiAssociateInteractionProps & BaseProps & BaseEvents>;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* ---
|
|
1349
|
+
*
|
|
1350
|
+
*
|
|
1351
|
+
* ### **Events:**
|
|
1352
|
+
* - **qti-register-interaction**
|
|
1353
|
+
* - **qti-interaction-response**
|
|
1354
|
+
*/
|
|
1355
|
+
"qti-choice-interaction": Partial<QtiChoiceInteractionProps & BaseProps & BaseEvents>;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
*
|
|
1359
|
+
* ---
|
|
1360
|
+
*
|
|
1361
|
+
*
|
|
1362
|
+
* ### **Events:**
|
|
1363
|
+
* - **qti-register-interaction**
|
|
1364
|
+
* - **qti-interaction-response**
|
|
1365
|
+
*/
|
|
1366
|
+
"qti-custom-interaction": Partial<QtiCustomInteractionProps & BaseProps & BaseEvents>;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
*
|
|
1370
|
+
* ---
|
|
1371
|
+
*
|
|
1372
|
+
*
|
|
1373
|
+
* ### **Events:**
|
|
1374
|
+
* - **end-attempt**
|
|
1375
|
+
* - **qti-register-interaction**
|
|
1376
|
+
* - **qti-interaction-response**
|
|
1377
|
+
*/
|
|
1378
|
+
"qti-end-attempt-interaction": Partial<QtiEndAttemptInteractionProps & BaseProps & BaseEvents>;
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
*
|
|
1382
|
+
* ---
|
|
1383
|
+
*
|
|
1384
|
+
*
|
|
1385
|
+
* ### **Events:**
|
|
1386
|
+
* - **qti-register-interaction**
|
|
1387
|
+
* - **qti-interaction-response**
|
|
1388
|
+
*/
|
|
1389
|
+
"qti-extended-text-interaction": Partial<QtiExtendedTextInteractionProps & BaseProps & BaseEvents>;
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
*
|
|
1393
|
+
* ---
|
|
1394
|
+
*
|
|
1395
|
+
*
|
|
1396
|
+
* ### **Events:**
|
|
1397
|
+
* - **qti-register-interaction**
|
|
1398
|
+
* - **qti-interaction-response**
|
|
1399
|
+
*/
|
|
1400
|
+
"qti-gap-match-interaction": Partial<QtiGapMatchInteractionProps & BaseProps & BaseEvents>;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
*
|
|
1404
|
+
* ---
|
|
1405
|
+
*
|
|
1406
|
+
*
|
|
1407
|
+
* ### **Events:**
|
|
1408
|
+
* - **qti-register-interaction**
|
|
1409
|
+
* - **qti-interaction-response**
|
|
1410
|
+
*/
|
|
1411
|
+
"qti-graphic-associate-interaction": Partial<QtiGraphicAssociateInteractionProps & BaseProps & BaseEvents>;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
*
|
|
1415
|
+
* ---
|
|
1416
|
+
*
|
|
1417
|
+
*
|
|
1418
|
+
* ### **Events:**
|
|
1419
|
+
* - **qti-register-interaction**
|
|
1420
|
+
* - **qti-interaction-response**
|
|
1421
|
+
*/
|
|
1422
|
+
"qti-graphic-gap-match-interaction": Partial<QtiGraphicGapMatchInteractionProps & BaseProps & BaseEvents>;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
*
|
|
1426
|
+
* ---
|
|
1427
|
+
*
|
|
1428
|
+
*
|
|
1429
|
+
* ### **Events:**
|
|
1430
|
+
* - **qti-register-interaction**
|
|
1431
|
+
* - **qti-interaction-response**
|
|
1432
|
+
*/
|
|
1433
|
+
"qti-graphic-order-interaction": Partial<QtiGraphicOrderInteractionProps & BaseProps & BaseEvents>;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
*
|
|
1437
|
+
* ---
|
|
1438
|
+
*
|
|
1439
|
+
*
|
|
1440
|
+
* ### **Events:**
|
|
1441
|
+
* - **qti-register-interaction**
|
|
1442
|
+
* - **qti-interaction-response**
|
|
1443
|
+
*/
|
|
1444
|
+
"qti-hotspot-interaction": Partial<QtiHotspotInteractionProps & BaseProps & BaseEvents>;
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
*
|
|
1448
|
+
* ---
|
|
1449
|
+
*
|
|
1450
|
+
*
|
|
1451
|
+
* ### **Events:**
|
|
1452
|
+
* - **qti-register-interaction**
|
|
1453
|
+
* - **qti-interaction-response**
|
|
1454
|
+
*/
|
|
1455
|
+
"qti-hottext-interaction": Partial<QtiHottextInteractionProps & BaseProps & BaseEvents>;
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
*
|
|
1459
|
+
* ---
|
|
1460
|
+
*
|
|
1461
|
+
*
|
|
1462
|
+
* ### **Events:**
|
|
1463
|
+
* - **qti-register-interaction**
|
|
1464
|
+
* - **qti-interaction-response**
|
|
1465
|
+
*/
|
|
1466
|
+
"qti-inline-choice-interaction": Partial<QtiInlineChoiceInteractionProps & BaseProps & BaseEvents>;
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
*
|
|
1470
|
+
* ---
|
|
1471
|
+
*
|
|
1472
|
+
*
|
|
1473
|
+
* ### **Events:**
|
|
1474
|
+
* - **qti-register-interaction**
|
|
1475
|
+
* - **qti-interaction-response**
|
|
1476
|
+
*/
|
|
1477
|
+
"qti-match-interaction": Partial<QtiMatchInteractionProps & BaseProps & BaseEvents>;
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
*
|
|
1481
|
+
* ---
|
|
1482
|
+
*
|
|
1483
|
+
*
|
|
1484
|
+
* ### **Events:**
|
|
1485
|
+
* - **qti-register-interaction**
|
|
1486
|
+
* - **qti-interaction-response**
|
|
1487
|
+
*/
|
|
1488
|
+
"qti-media-interaction": Partial<QtiMediaInteractionProps & BaseProps & BaseEvents>;
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
*
|
|
1492
|
+
* ---
|
|
1493
|
+
*
|
|
1494
|
+
*
|
|
1495
|
+
* ### **Events:**
|
|
1496
|
+
* - **qti-register-interaction**
|
|
1497
|
+
* - **qti-interaction-response**
|
|
1498
|
+
*/
|
|
1499
|
+
"qti-order-interaction": Partial<QtiOrderInteractionProps & BaseProps & BaseEvents>;
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
*
|
|
1503
|
+
* ---
|
|
1504
|
+
*
|
|
1505
|
+
*
|
|
1506
|
+
* ### **Events:**
|
|
1507
|
+
* - **qti-register-interaction**
|
|
1508
|
+
* - **qti-interaction-response**
|
|
1509
|
+
*/
|
|
1510
|
+
"qti-portable-custom-interaction": Partial<QtiPortableCustomInteractionProps & BaseProps & BaseEvents>;
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* ---
|
|
1515
|
+
*
|
|
1516
|
+
*/
|
|
1517
|
+
"qti-position-object-interaction": Partial<QtiSPositionObjectInteractionProps & BaseProps & BaseEvents>;
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
*
|
|
1521
|
+
* ---
|
|
1522
|
+
*
|
|
1523
|
+
*/
|
|
1524
|
+
"qti-position-object-stage": Partial<QtiPositionObjectStageProps & BaseProps & BaseEvents>;
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
* ---
|
|
1529
|
+
*
|
|
1530
|
+
*
|
|
1531
|
+
* ### **Events:**
|
|
1532
|
+
* - **qti-register-interaction**
|
|
1533
|
+
* - **qti-interaction-response**
|
|
1534
|
+
*/
|
|
1535
|
+
"qti-select-point-interaction": Partial<QtiSelectPointInteractionProps & BaseProps & BaseEvents>;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* The SliderInteraction.Type (qti-slider-interaction) presents the candidate with a control for selecting a numerical value between a lower and upper bound.
|
|
1539
|
+
* ---
|
|
1540
|
+
*
|
|
1541
|
+
*
|
|
1542
|
+
* ### **Events:**
|
|
1543
|
+
* - **qti-register-interaction** - emitted when the interaction wants to register itself
|
|
1544
|
+
* - **qti-interaction-response** - emitted when the interaction changes
|
|
1545
|
+
*
|
|
1546
|
+
* ### **Slots:**
|
|
1547
|
+
* - _default_ - The default slot where <qti-simple-choice> must be placed.
|
|
1548
|
+
* - **prompt** - slot where the prompt is placed.
|
|
1549
|
+
*
|
|
1550
|
+
* ### **CSS Properties:**
|
|
1551
|
+
* - **--show-value** - shows the current value while sliding _(default: undefined)_
|
|
1552
|
+
* - **--show-ticks** - shows the ticks according to steps _(default: undefined)_
|
|
1553
|
+
* - **--show-bounds** - shows value for lower and upper boundary _(default: undefined)_
|
|
1554
|
+
*
|
|
1555
|
+
* ### **CSS Parts:**
|
|
1556
|
+
* - **slider** - -- slider inluding, bounds and ticks and value, use it for paddings and margins
|
|
1557
|
+
* - **bounds** - -- div for bounds, containing two divs for with min, and max bounds value
|
|
1558
|
+
* - **ticks** - -- div for ticks, use lineair gradient and exposed css variables for styling
|
|
1559
|
+
* - **rail** - -- div for rail, style according to needs
|
|
1560
|
+
* - **knob** - -- div, should be relative or absolute
|
|
1561
|
+
* - **value** - -- div, containing value
|
|
1562
|
+
*/
|
|
1563
|
+
"qti-slider-interaction": Partial<QtiSliderInteractionProps & BaseProps & BaseEvents>;
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
*
|
|
1567
|
+
* ---
|
|
1568
|
+
*
|
|
1569
|
+
*
|
|
1570
|
+
* ### **Events:**
|
|
1571
|
+
* - **qti-register-interaction**
|
|
1572
|
+
* - **qti-interaction-response**
|
|
1573
|
+
*/
|
|
1574
|
+
"qti-text-entry-interaction": Partial<QtiTextEntryInteractionProps & BaseProps & BaseEvents>;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* ---
|
|
1579
|
+
*
|
|
1580
|
+
*/
|
|
1581
|
+
"qti-response-else": Partial<QtiResponseElseProps & BaseProps & BaseEvents>;
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
*
|
|
1585
|
+
* ---
|
|
1586
|
+
*
|
|
1587
|
+
*/
|
|
1588
|
+
"qti-response-processing": Partial<QtiResponseProcessingProps & BaseProps & BaseEvents>;
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
*
|
|
1592
|
+
* ---
|
|
1593
|
+
*
|
|
1594
|
+
*/
|
|
1595
|
+
"qti-rule": Partial<QtiRuleProps & BaseProps & BaseEvents>;
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* ---
|
|
1600
|
+
*
|
|
1601
|
+
*
|
|
1602
|
+
* ### **Events:**
|
|
1603
|
+
* - **qti-register-variable**
|
|
1604
|
+
*/
|
|
1605
|
+
"qti-outcome-declaration": Partial<QtiOutcomeDeclarationProps & BaseProps & BaseEvents>;
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
*
|
|
1609
|
+
* ---
|
|
1610
|
+
*
|
|
1611
|
+
*
|
|
1612
|
+
* ### **Events:**
|
|
1613
|
+
* - **qti-register-variable**
|
|
1614
|
+
*/
|
|
1615
|
+
"qti-response-declaration": Partial<QtiResponseDeclarationProps & BaseProps & BaseEvents>;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* ---
|
|
1620
|
+
*
|
|
1621
|
+
*
|
|
1622
|
+
* ### **Events:**
|
|
1623
|
+
* - **qti-register-interaction**
|
|
1624
|
+
* - **qti-interaction-response**
|
|
1625
|
+
*/
|
|
1626
|
+
"test-element": Partial<TestElementProps & BaseProps & BaseEvents>;
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
*
|
|
1630
|
+
* ---
|
|
1631
|
+
*
|
|
1632
|
+
*
|
|
1633
|
+
* ### **Events:**
|
|
1634
|
+
* - **qti-register-interaction**
|
|
1635
|
+
* - **qti-interaction-response**
|
|
1636
|
+
*/
|
|
1637
|
+
"test-element": Partial<TestElementProps & BaseProps & BaseEvents>;
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
*
|
|
1641
|
+
* ---
|
|
1642
|
+
*
|
|
1643
|
+
*
|
|
1644
|
+
* ### **Events:**
|
|
1645
|
+
* - **qti-register-interaction**
|
|
1646
|
+
* - **qti-interaction-response**
|
|
1647
|
+
*/
|
|
1648
|
+
"test-element": Partial<TestElementProps & BaseProps & BaseEvents>;
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
*
|
|
1652
|
+
* ---
|
|
1653
|
+
*
|
|
1654
|
+
*/
|
|
1655
|
+
"qti-and": Partial<QtiAndProps & BaseProps & BaseEvents>;
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
*
|
|
1659
|
+
* ---
|
|
1660
|
+
*
|
|
1661
|
+
*/
|
|
1662
|
+
"qti-base-value": Partial<QtiBaseValueProps & BaseProps & BaseEvents>;
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* ---
|
|
1667
|
+
*
|
|
1668
|
+
*/
|
|
1669
|
+
"qti-contains": Partial<QtiContainsProps & BaseProps & BaseEvents>;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* ---
|
|
1674
|
+
*
|
|
1675
|
+
*/
|
|
1676
|
+
"qti-correct": Partial<QtiCorrectProps & BaseProps & BaseEvents>;
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
*
|
|
1680
|
+
* ---
|
|
1681
|
+
*
|
|
1682
|
+
*/
|
|
1683
|
+
"qti-equal": Partial<QtiEqualProps & BaseProps & BaseEvents>;
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* ---
|
|
1688
|
+
*
|
|
1689
|
+
*/
|
|
1690
|
+
"qti-equal-rounded": Partial<QtiEqualRoundedProps & BaseProps & BaseEvents>;
|
|
1691
|
+
|
|
1692
|
+
/**
|
|
1693
|
+
*
|
|
1694
|
+
* ---
|
|
1695
|
+
*
|
|
1696
|
+
*/
|
|
1697
|
+
"qti-gt": Partial<QtiGtProps & BaseProps & BaseEvents>;
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
*
|
|
1701
|
+
* ---
|
|
1702
|
+
*
|
|
1703
|
+
*/
|
|
1704
|
+
"qti-gte": Partial<QtiGteProps & BaseProps & BaseEvents>;
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
*
|
|
1708
|
+
* ---
|
|
1709
|
+
*
|
|
1710
|
+
*/
|
|
1711
|
+
"qti-is-null": Partial<QtiIsNullProps & BaseProps & BaseEvents>;
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
*
|
|
1715
|
+
* ---
|
|
1716
|
+
*
|
|
1717
|
+
*/
|
|
1718
|
+
"qti-lt": Partial<QtiLtProps & BaseProps & BaseEvents>;
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
*
|
|
1722
|
+
* ---
|
|
1723
|
+
*
|
|
1724
|
+
*/
|
|
1725
|
+
"qti-lte": Partial<QtiLteProps & BaseProps & BaseEvents>;
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
*
|
|
1729
|
+
* ---
|
|
1730
|
+
*
|
|
1731
|
+
*/
|
|
1732
|
+
"qti-map-response": Partial<QtiMapResponseProps & BaseProps & BaseEvents>;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
*
|
|
1736
|
+
* ---
|
|
1737
|
+
*
|
|
1738
|
+
*/
|
|
1739
|
+
"qti-mapping": Partial<QtiMappingProps & BaseProps & BaseEvents>;
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
*
|
|
1743
|
+
* ---
|
|
1744
|
+
*
|
|
1745
|
+
*/
|
|
1746
|
+
"qti-match": Partial<QtiMatchProps & BaseProps & BaseEvents>;
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
*
|
|
1750
|
+
* ---
|
|
1751
|
+
*
|
|
1752
|
+
*/
|
|
1753
|
+
"qti-member": Partial<QtiMemberProps & BaseProps & BaseEvents>;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
*
|
|
1757
|
+
* ---
|
|
1758
|
+
*
|
|
1759
|
+
*/
|
|
1760
|
+
"qti-multiple": Partial<QtiMultipleProps & BaseProps & BaseEvents>;
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
*
|
|
1764
|
+
* ---
|
|
1765
|
+
*
|
|
1766
|
+
*/
|
|
1767
|
+
"qti-not": Partial<QtiNotProps & BaseProps & BaseEvents>;
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
*
|
|
1771
|
+
* ---
|
|
1772
|
+
*
|
|
1773
|
+
*/
|
|
1774
|
+
"qti-or": Partial<QtiOrProps & BaseProps & BaseEvents>;
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
*
|
|
1778
|
+
* ---
|
|
1779
|
+
*
|
|
1780
|
+
*/
|
|
1781
|
+
"qti-ordered": Partial<QtiOrderedProps & BaseProps & BaseEvents>;
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
*
|
|
1785
|
+
* ---
|
|
1786
|
+
*
|
|
1787
|
+
*/
|
|
1788
|
+
"qti-printed-variable": Partial<QtiPrintedVariableProps & BaseProps & BaseEvents>;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
*
|
|
1792
|
+
* ---
|
|
1793
|
+
*
|
|
1794
|
+
*/
|
|
1795
|
+
"qti-product": Partial<QtiProductProps & BaseProps & BaseEvents>;
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
*
|
|
1799
|
+
* ---
|
|
1800
|
+
*
|
|
1801
|
+
*/
|
|
1802
|
+
"qti-string-match": Partial<QtiStringMatchProps & BaseProps & BaseEvents>;
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
*
|
|
1806
|
+
* ---
|
|
1807
|
+
*
|
|
1808
|
+
*/
|
|
1809
|
+
"qti-sum": Partial<QtiSumProps & BaseProps & BaseEvents>;
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
*
|
|
1813
|
+
* ---
|
|
1814
|
+
*
|
|
1815
|
+
*/
|
|
1816
|
+
"qti-variable": Partial<QtiVariableProps & BaseProps & BaseEvents>;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
*
|
|
1820
|
+
* ---
|
|
1821
|
+
*
|
|
1822
|
+
*/
|
|
1823
|
+
"qti-response-if": Partial<QtiResponseIfProps & BaseProps & BaseEvents>;
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* The lookupOutcomeValue rule sets the value of an outcome variable to the value obtained
|
|
1827
|
+
* by looking up the value of the associated expression in the lookupTable associated
|
|
1828
|
+
* with the outcome's declaration.
|
|
1829
|
+
* ---
|
|
1830
|
+
*
|
|
1831
|
+
*
|
|
1832
|
+
* ### **Events:**
|
|
1833
|
+
* - **qti-set-outcome-value**
|
|
1834
|
+
*/
|
|
1835
|
+
"qti-lookup-outcome-value": Partial<QtiLookupOutcomeValueProps & BaseProps & BaseEvents>;
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
*
|
|
1839
|
+
* ---
|
|
1840
|
+
*
|
|
1841
|
+
*/
|
|
1842
|
+
"qti-response-condition": Partial<QtiResponseConditionProps & BaseProps & BaseEvents>;
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
*
|
|
1846
|
+
* ---
|
|
1847
|
+
*
|
|
1848
|
+
*
|
|
1849
|
+
* ### **Events:**
|
|
1850
|
+
* - **qti-set-outcome-value**
|
|
1851
|
+
*/
|
|
1852
|
+
"qti-set-outcome-value": Partial<QtiSetOutcomeValueProps & BaseProps & BaseEvents>;
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
*
|
|
1856
|
+
* ---
|
|
1857
|
+
*
|
|
1858
|
+
*/
|
|
1859
|
+
"qti-response-else-if": Partial<QtiResponseElseIfProps & BaseProps & BaseEvents>;
|
|
1860
|
+
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* ---
|
|
1864
|
+
*
|
|
1865
|
+
*
|
|
1866
|
+
* ### **Events:**
|
|
1867
|
+
* - **qti-item-connected**
|
|
1868
|
+
*/
|
|
1869
|
+
"qti-item": Partial<QtiItemProps & BaseProps & BaseEvents>;
|
|
1870
|
+
};
|