@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.
@@ -1,960 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
- "version": 1.1,
4
- "tags": [
5
- {
6
- "name": "item-container",
7
- "description": "`<item-container>` is a custom element designed for hosting the qti-assessment-item.\nThe `qti-assessment-item` will be placed inside the shadow DOM of this element.\nThe element loads the item from the provided URL and renders it inside the shadow DOM.\n\n### Styling\nAdd a class to the element for styling.\n\n```html\n<qti-item>\n <item-container class=\"m-4 bg-white\" item-url=\"./path/to/item.xml\"></item-container>\n</qti-item>\n```\n---\n",
8
- "attributes": [
9
- {
10
- "name": "item-url",
11
- "description": "URL of the item to load",
12
- "values": []
13
- }
14
- ],
15
- "references": []
16
- },
17
- {
18
- "name": "item-correct-response-mode",
19
- "description": "\n---\n\n\n### **Events:**\n - **item-switch-correct-response-mode**",
20
- "attributes": [{ "name": "label", "values": [] }],
21
- "references": []
22
- },
23
- {
24
- "name": "item-print-variables",
25
- "description": "\n---\n",
26
- "attributes": [],
27
- "references": []
28
- },
29
- {
30
- "name": "item-show-candidate-correction",
31
- "description": "\n---\n\n\n### **Events:**\n - **item-show-candidate-correction**",
32
- "attributes": [
33
- { "name": "shown", "values": [] },
34
- { "name": "disabled", "values": [] },
35
- { "name": "showCandidateCorrectionText", "values": [] },
36
- { "name": "hideCandidateCorrectionText", "values": [] },
37
- { "name": "noCorrectResponseText", "values": [] }
38
- ],
39
- "references": []
40
- },
41
- {
42
- "name": "qti-associate-interaction",
43
- "description": "\n---\n",
44
- "attributes": [],
45
- "references": []
46
- },
47
- {
48
- "name": "qti-choice-interaction",
49
- "description": "\n---\n",
50
- "attributes": [
51
- { "name": "orientation", "values": [{ "name": "Orientation" }] }
52
- ],
53
- "references": []
54
- },
55
- {
56
- "name": "qti-custom-interaction",
57
- "description": "\n---\n",
58
- "attributes": [
59
- { "name": "data", "values": [] },
60
- { "name": "data-base-item", "values": [] },
61
- { "name": "data-base-ref", "values": [] },
62
- { "name": "id", "values": [] }
63
- ],
64
- "references": []
65
- },
66
- {
67
- "name": "qti-end-attempt-interaction",
68
- "description": "\n---\n\n\n### **Events:**\n - **end-attempt**",
69
- "attributes": [
70
- { "name": "response-identifier", "values": [] },
71
- { "name": "disabled", "values": [] },
72
- {
73
- "name": "count-attempt",
74
- "description": "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)",
75
- "values": [{ "name": "true" }, { "name": "false" }]
76
- },
77
- { "name": "title", "values": [] }
78
- ],
79
- "references": []
80
- },
81
- {
82
- "name": "qti-extended-text-interaction",
83
- "description": "\n---\n",
84
- "attributes": [
85
- {
86
- "name": "expected-length",
87
- "description": "expected length is mapped to the property maxlength on the textarea",
88
- "values": []
89
- },
90
- { "name": "pattern-mask", "values": [] },
91
- {
92
- "name": "placeholder-text",
93
- "description": "text appearing in the extended-text-interaction if it is empty",
94
- "values": []
95
- },
96
- { "name": "data-patternmask-message", "values": [] },
97
- { "name": "class", "values": [] }
98
- ],
99
- "references": []
100
- },
101
- {
102
- "name": "qti-gap-match-interaction",
103
- "description": "\n---\n",
104
- "attributes": [],
105
- "references": []
106
- },
107
- {
108
- "name": "qti-graphic-associate-interaction",
109
- "description": "\n---\n",
110
- "attributes": [],
111
- "references": []
112
- },
113
- {
114
- "name": "qti-graphic-gap-match-interaction",
115
- "description": "\n---\n",
116
- "attributes": [],
117
- "references": []
118
- },
119
- {
120
- "name": "qti-graphic-order-interaction",
121
- "description": "\n---\n",
122
- "attributes": [],
123
- "references": []
124
- },
125
- {
126
- "name": "qti-hotspot-interaction",
127
- "description": "\n---\n",
128
- "attributes": [],
129
- "references": []
130
- },
131
- {
132
- "name": "qti-hottext-interaction",
133
- "description": "\n---\n",
134
- "attributes": [{ "name": "class", "values": [] }],
135
- "references": []
136
- },
137
- {
138
- "name": "qti-inline-choice-interaction",
139
- "description": "\n---\n",
140
- "attributes": [{ "name": "data-prompt", "values": [] }],
141
- "references": []
142
- },
143
- {
144
- "name": "qti-match-interaction",
145
- "description": "\n---\n",
146
- "attributes": [
147
- { "name": "class", "values": [] },
148
- { "name": "response-identifier", "values": [] }
149
- ],
150
- "references": []
151
- },
152
- {
153
- "name": "qti-media-interaction",
154
- "description": "\n---\n",
155
- "attributes": [],
156
- "references": []
157
- },
158
- {
159
- "name": "qti-order-interaction",
160
- "description": "\n---\n",
161
- "attributes": [
162
- {
163
- "name": "orientation",
164
- "description": "orientation of choices",
165
- "values": [{ "name": "horizontal" }, { "name": "vertical" }]
166
- }
167
- ],
168
- "references": []
169
- },
170
- {
171
- "name": "qti-portable-custom-interaction",
172
- "description": "\n---\n\n\n### **Methods:**\n \n- **register(pci: _IMSpci<ConfigProperties<unknown>>_)** - DIRECT MODE: Register PCI instance\n\n\n- **buildRequireConfig()** - DIRECT MODE: Build RequireJS configuration\n\n- **toggleInternalCorrectResponse(show: _boolean_, responseVariable)** - Toggle the display of the correct response\n- **disable()** - Method to disable the PCI for review mode\nThis can be used when showing the correct response\n- **enable()** - Method to enable the PCI for interactive mode",
173
- "attributes": [
174
- { "name": "module", "values": [] },
175
- { "name": "custom-interaction-type-identifier", "values": [] },
176
- { "name": "data-require-paths", "values": [] },
177
- { "name": "data-require-shim", "values": [] },
178
- { "name": "data-require-js-url", "values": [] },
179
- { "name": "data-base-url", "values": [] },
180
- { "name": "data-use-iframe", "values": [] },
181
- { "name": "data-use-default-shims", "values": [] },
182
- { "name": "data-use-default-paths", "values": [] }
183
- ],
184
- "references": []
185
- },
186
- {
187
- "name": "qti-position-object-interaction",
188
- "description": "\n---\n",
189
- "attributes": [],
190
- "references": []
191
- },
192
- {
193
- "name": "qti-position-object-stage",
194
- "description": "\n---\n",
195
- "attributes": [],
196
- "references": []
197
- },
198
- {
199
- "name": "qti-select-point-interaction",
200
- "description": "\n---\n",
201
- "attributes": [
202
- { "name": "max-choices", "values": [] },
203
- { "name": "min-choices", "values": [] }
204
- ],
205
- "references": []
206
- },
207
- {
208
- "name": "qti-slider-interaction",
209
- "description": "\n---\n\n\n### **Events:**\n - **change**",
210
- "attributes": [
211
- { "name": "lower-bound", "values": [] },
212
- { "name": "upper-bound", "values": [] },
213
- { "name": "step", "values": [] }
214
- ],
215
- "references": []
216
- },
217
- {
218
- "name": "qti-text-entry-interaction",
219
- "description": "\n---\n",
220
- "attributes": [
221
- { "name": "expected-length", "values": [] },
222
- { "name": "pattern-mask", "values": [] },
223
- { "name": "placeholder-text", "values": [] },
224
- { "name": "data-patternmask-message", "values": [] }
225
- ],
226
- "references": []
227
- },
228
- {
229
- "name": "qti-upload-interaction",
230
- "description": "\n---\n\n\n### **Events:**\n - **qti-interaction-response**",
231
- "attributes": [],
232
- "references": []
233
- },
234
- {
235
- "name": "item-show-correct-response",
236
- "description": "\n---\n\n\n### **Events:**\n - **item-show-correct-response**",
237
- "attributes": [
238
- { "name": "shown", "values": [] },
239
- { "name": "disabled", "values": [] },
240
- { "name": "showCorrectText", "values": [] },
241
- { "name": "hideCorrectText", "values": [] },
242
- { "name": "noCorrectResponseText", "values": [] }
243
- ],
244
- "references": []
245
- },
246
- {
247
- "name": "qti-template-constraint",
248
- "description": "The qti-template-constraint element is a processing rule available only in Template Processing.\n---\n\n\n### **Methods:**\n - **calculate(): __** - Evaluates the constraint condition\n- **getSubRules(): _QtiRuleBase[]_** - Template constraints don't have sub-rules like conditions\n- **process(): __** - Process the template constraint",
249
- "attributes": [],
250
- "references": []
251
- },
252
- {
253
- "name": "qti-template-processing",
254
- "description": "The qti-template-processing element contains template processing rules.\n---\n\n\n### **Events:**\n - **qti-template-processing-complete**\n\n### **Methods:**\n - **process(): _void_** - Process template rules to set template variable values",
255
- "attributes": [],
256
- "references": []
257
- },
258
- {
259
- "name": "qti-response-processing",
260
- "description": "\n---\n",
261
- "attributes": [],
262
- "references": []
263
- },
264
- {
265
- "name": "qti-assessment-item",
266
- "description": "The qti-assessment-item element contains all the other QTI 3 item structures.\n---\n\n\n### **Events:**\n - **qti-assessment-item-connected**\n- **qti-item-context-updated** - Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.\n- **qti-interaction-changed**\n- **qti-outcome-changed**\n\n### **Methods:**\n - **showCorrectResponse(show: _boolean_): _void_** - Toggles the display of correct responses for all interactions.\n- **showCandidateCorrection(show: _boolean_): _void_** - Toggles the display of the candidate correction for all interactions.\n\n",
267
- "attributes": [
268
- { "name": "identifier", "values": [] },
269
- {
270
- "name": "adaptive",
271
- "values": [{ "name": "true" }, { "name": "false" }]
272
- },
273
- {
274
- "name": "timeDependent",
275
- "values": [{ "name": "true" }, { "name": "false" }]
276
- },
277
- { "name": "title", "values": [] },
278
- { "name": "disabled", "values": [] },
279
- { "name": "readonly", "values": [] }
280
- ],
281
- "references": []
282
- },
283
- {
284
- "name": "qti-assessment-stimulus-ref",
285
- "description": "Represents a custom element for referencing an assessment stimulus.\n---\n\n\n### **Methods:**\n - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.",
286
- "attributes": [
287
- { "name": "identifier", "values": [] },
288
- { "name": "href", "values": [] }
289
- ],
290
- "references": []
291
- },
292
- {
293
- "name": "qti-companion-materials-info",
294
- "description": "\n---\n",
295
- "attributes": [],
296
- "references": []
297
- },
298
- {
299
- "name": "qti-custom-operator",
300
- "description": "https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw\n<qti-custom-operator class=\"js.org\">\n <qti-base-value base-type=\"string\"><![CDATA[\n console.log(context.variables);\n return 'B'\n document.querySelector('qti-end-attempt-interaction').disabled = true;\n ]]></qti-base-value>\n </qti-custom-operator>\n </qti-set-outcome-value>\n---\n\n\n### **Events:**\n - **qti-set-outcome-value**\n- **qti-interaction-response**",
301
- "attributes": [],
302
- "references": []
303
- },
304
- {
305
- "name": "qti-feedback-block",
306
- "description": "\n---\n",
307
- "attributes": [],
308
- "references": []
309
- },
310
- {
311
- "name": "qti-feedback-inline",
312
- "description": "\n---\n",
313
- "attributes": [],
314
- "references": []
315
- },
316
- {
317
- "name": "qti-modal-feedback",
318
- "description": "\n---\n",
319
- "attributes": [],
320
- "references": []
321
- },
322
- {
323
- "name": "qti-item-body",
324
- "description": "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.\n---\n\n\n### **Slots:**\n - _default_ - item body content.\n- **qti-rubric-block** - the qti rubric block is placed above the item\n\n### **CSS Parts:**\n - **qti-rubric-block** - the qti rubric block part",
325
- "attributes": [],
326
- "references": []
327
- },
328
- {
329
- "name": "qti-prompt",
330
- "description": "\n---\n",
331
- "attributes": [],
332
- "references": []
333
- },
334
- {
335
- "name": "qti-content-body",
336
- "description": "\n---\n",
337
- "attributes": [],
338
- "references": []
339
- },
340
- {
341
- "name": "qti-rubric-block",
342
- "description": "\n---\n",
343
- "attributes": [
344
- { "name": "id", "values": [] },
345
- {
346
- "name": "use",
347
- "values": [
348
- { "name": "instructions" },
349
- { "name": "scoring" },
350
- { "name": "navigation" }
351
- ]
352
- },
353
- {
354
- "name": "view",
355
- "values": [
356
- { "name": "author" },
357
- { "name": "candidate" },
358
- { "name": "proctor" },
359
- { "name": "scorer" },
360
- { "name": "testConstructor" },
361
- { "name": "tutor" }
362
- ]
363
- },
364
- { "name": "class", "values": [] }
365
- ],
366
- "references": []
367
- },
368
- {
369
- "name": "qti-stylesheet",
370
- "description": "\n---\n",
371
- "attributes": [],
372
- "references": []
373
- },
374
- {
375
- "name": "qti-response-declaration",
376
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-variable**",
377
- "attributes": [
378
- { "name": "base-type", "values": [{ "name": "BaseType" }] },
379
- { "name": "identifier", "values": [] },
380
- { "name": "cardinality", "values": [{ "name": "Cardinality" }] }
381
- ],
382
- "references": []
383
- },
384
- {
385
- "name": "qti-outcome-declaration",
386
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-variable**",
387
- "attributes": [
388
- { "name": "base-type", "values": [{ "name": "BaseType" }] },
389
- {
390
- "name": "external-scored",
391
- "values": [{ "name": "human" }, { "name": "externalMachine" }]
392
- },
393
- { "name": "identifier", "values": [] },
394
- { "name": "cardinality", "values": [{ "name": "Cardinality" }] }
395
- ],
396
- "references": []
397
- },
398
- {
399
- "name": "qti-item",
400
- "description": "`<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.\nIt can also host some functionalities to interact with the item like scoring, showing feedback, etc.\nPlacing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.\nSee `<item-container>` for more details.\n\n```html\n<qti-item>\n <item-container class=\"m-4 bg-white\" item-url=\"./path/to/item.xml\"></item-container>\n</qti-item>\n```\n---\n",
401
- "attributes": [],
402
- "references": []
403
- },
404
- {
405
- "name": "qti-assessment-item-ref",
406
- "description": "\n---\n\n\n### **Events:**\n - **qti-assessment-item-ref-connected**",
407
- "attributes": [
408
- { "name": "category", "values": [] },
409
- { "name": "identifier", "values": [] },
410
- { "name": "required", "values": [] },
411
- { "name": "fixed", "values": [] },
412
- { "name": "href", "values": [] }
413
- ],
414
- "references": []
415
- },
416
- {
417
- "name": "qti-assessment-test",
418
- "description": "\n---\n\n\n### **Events:**\n - **qti-assessment-test-connected**",
419
- "attributes": [
420
- { "name": "identifier", "values": [] },
421
- { "name": "title", "values": [] }
422
- ],
423
- "references": []
424
- },
425
- {
426
- "name": "qti-outcome-processing",
427
- "description": "\n---\n",
428
- "attributes": [],
429
- "references": []
430
- },
431
- {
432
- "name": "qti-test",
433
- "description": "`<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.\n\nThis component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.\n\n### Example Usage\n\nMinimal example including navigation:\n\n```html\n<qti-test>\n <test-navigation>\n <test-container test-url=\"./path/to/assessment.xml\"></test-container>\n <nav class=\"flex\">\n <test-prev></test-prev>\n <test-next></test-next>\n </nav>\n </test-navigation>\n</qti-test>\n```\n\nUse the following file structure\nA qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.\n\n```plaintext\nRoot/\n├── index.html\n└── /assets/api/examples/\n ├── assessmenttest.xml\n └── imsmanifest.xml\n\n```\n\n### Test components\n\nUse test components inside the qti-test component for added functionality.\n### Test next\n`<test-next> | TestNext`\n\n### Test prev\n\n`<test-prev> | TestPrev`\n### Test components\n\nYou can use normal class names to style the elements.\nAnd you can use the `test-prev` and `test-next` elements to navigate through the test.\n---\n\n\n### **Events:**\n - **qti-test-connected**",
434
- "attributes": [],
435
- "references": []
436
- },
437
- {
438
- "name": "qti-assessment-section",
439
- "description": "\n---\n\n\n### **Events:**\n - **qti-assessment-section-connected**",
440
- "attributes": [
441
- { "name": "identifier", "values": [] },
442
- { "name": "required", "values": [] },
443
- { "name": "fixed", "values": [] },
444
- { "name": "visible", "values": [] },
445
- { "name": "keep-together", "values": [] }
446
- ],
447
- "references": []
448
- },
449
- {
450
- "name": "qti-test-part",
451
- "description": "\n---\n\n\n### **Events:**\n - **qti-test-part-connected**",
452
- "attributes": [
453
- { "name": "identifier", "values": [] },
454
- { "name": "class", "values": [] },
455
- {
456
- "name": "navigation-mode",
457
- "values": [{ "name": "linear" }, { "name": "nonlinear" }]
458
- },
459
- {
460
- "name": "submission-mode",
461
- "values": [{ "name": "individual" }, { "name": "simultaneous" }]
462
- }
463
- ],
464
- "references": []
465
- },
466
- {
467
- "name": "qti-test-feedback",
468
- "description": "\n---\n",
469
- "attributes": [],
470
- "references": []
471
- },
472
- {
473
- "name": "test-navigation",
474
- "description": "\n---\n\n\n### **Events:**\n - **qti-computed-context-updated**",
475
- "attributes": [
476
- { "name": "identifier", "values": [] },
477
- { "name": "auto-score-items", "values": [] }
478
- ],
479
- "references": []
480
- },
481
- {
482
- "name": "test-next",
483
- "description": "Represents a custom element for navigating to the next test item.\n---\n\n\n### **Events:**\n - **qti-request-navigation**",
484
- "attributes": [{ "name": "disabled", "values": [] }],
485
- "references": []
486
- },
487
- {
488
- "name": "test-prev",
489
- "description": "Represents a custom element for navigating to the previous test item.\n---\n\n\n### **Events:**\n - **qti-request-navigation**",
490
- "attributes": [{ "name": "disabled", "values": [] }],
491
- "references": []
492
- },
493
- {
494
- "name": "test-view",
495
- "description": "\n---\n\n\n### **Events:**\n - **on-test-switch-view**",
496
- "attributes": [
497
- {
498
- "name": "label",
499
- "description": "label accompanying the select view dropdown",
500
- "values": []
501
- },
502
- {
503
- "name": "view-options",
504
- "description": "The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']",
505
- "values": []
506
- }
507
- ],
508
- "references": []
509
- },
510
- {
511
- "name": "test-item-link",
512
- "description": "\n---\n\n\n### **Events:**\n - **qti-request-navigation**",
513
- "attributes": [{ "name": "item-id", "values": [] }],
514
- "references": []
515
- },
516
- {
517
- "name": "test-end-attempt",
518
- "description": "\n---\n",
519
- "attributes": [],
520
- "references": []
521
- },
522
- {
523
- "name": "test-show-correct-response",
524
- "description": "@deprecated test-show-correct-response is deprecated and will be removed in the future.\n\n\n---\n\n\n### **Events:**\n - **test-show-correct-response**",
525
- "attributes": [
526
- { "name": "shown", "values": [] },
527
- { "name": "disabled", "values": [] },
528
- { "name": "showCorrectText", "values": [] },
529
- { "name": "hideCorrectText", "values": [] },
530
- { "name": "noCorrectResponseText", "values": [] }
531
- ],
532
- "references": []
533
- },
534
- {
535
- "name": "test-paging-buttons-stamp",
536
- "description": "@deprecated test-paging-buttons-stamp is deprecated and will be removed in the future.\n\n\n---\n",
537
- "attributes": [],
538
- "references": []
539
- },
540
- {
541
- "name": "test-container",
542
- "description": "`<test-container>` is a custom element designed for hosting the qti-assessment-item.\nThe `qti-assessment-test` will be placed inside the shadow DOM of this element.\nThe element loads the test from the provided URL and renders it inside the shadow DOM.\n\n```html\n<qti-test>\n <test-navigation>\n <test-container class=\"m-4 bg-white\" test-url=\"./path/to/assessmenttest.xml\"></test-container>\n </test-navigation>\n</qti-test>\n```\n---\n\n\n### **Methods:**\n ",
543
- "attributes": [
544
- {
545
- "name": "test-url",
546
- "description": "URL of the item to load",
547
- "values": []
548
- }
549
- ],
550
- "references": []
551
- },
552
- {
553
- "name": "test-print-item-variables",
554
- "description": "\n---\n",
555
- "attributes": [],
556
- "references": []
557
- },
558
- {
559
- "name": "test-section-buttons-stamp",
560
- "description": "@deprecated test-section-buttons-stamp is deprecated and will be removed in the future.\n\n\n---\n",
561
- "attributes": [],
562
- "references": []
563
- },
564
- {
565
- "name": "test-section-link",
566
- "description": "\n---\n\n\n### **Events:**\n - **qti-request-navigation**",
567
- "attributes": [{ "name": "section-id", "values": [] }],
568
- "references": []
569
- },
570
- {
571
- "name": "test-print-context",
572
- "description": "\n---\n",
573
- "attributes": [],
574
- "references": []
575
- },
576
- {
577
- "name": "test-stamp",
578
- "description": "A custom web component that renders a test stamp using the Lit framework.\nThis component is deprecated and will be removed in the future.\n---\n\n\n### **Events:**\n - **qti-stamp-context-updated**",
579
- "attributes": [
580
- {
581
- "name": "debug",
582
- "description": "Indicates whether the component is in debug mode.\nWhen set to `true`, the available objects and properties (i.e.: stampContext) is displayed.",
583
- "values": []
584
- }
585
- ],
586
- "references": []
587
- },
588
- {
589
- "name": "test-scoring-buttons",
590
- "description": "\n---\n\n\n### **Events:**\n - **test-update-outcome-variable**",
591
- "attributes": [
592
- { "name": "view", "values": [] },
593
- { "name": "disabled", "values": [] }
594
- ],
595
- "references": []
596
- },
597
- {
598
- "name": "test-view-toggle",
599
- "description": "\n---\n\n\n### **Events:**\n - **on-test-switch-view**",
600
- "attributes": [],
601
- "references": []
602
- },
603
- {
604
- "name": "test-scoring-feedback",
605
- "description": "\n---\n",
606
- "attributes": [{ "name": "view", "values": [{ "name": "View" }] }],
607
- "references": []
608
- },
609
- {
610
- "name": "test-check-item",
611
- "description": "\n---\n",
612
- "attributes": [],
613
- "references": []
614
- },
615
- {
616
- "name": "qti-test-variables",
617
- "description": "\n---\n",
618
- "attributes": [],
619
- "references": []
620
- },
621
- {
622
- "name": "qti-template-declaration",
623
- "description": "The qti-template-declaration element declares template variables for item cloning.\n---\n\n\n### **Events:**\n - **qti-register-variable**\n\n### **Methods:**\n - **getTemplateVariable(): _TemplateVariable_** - Get the template variable definition",
624
- "attributes": [
625
- { "name": "identifier", "values": [] },
626
- {
627
- "name": "cardinality",
628
- "values": [
629
- { "name": "single" },
630
- { "name": "multiple" },
631
- { "name": "ordered" },
632
- { "name": "record" }
633
- ]
634
- },
635
- { "name": "base-type", "values": [{ "name": "BaseType" }] },
636
- { "name": "math-variable", "values": [] },
637
- { "name": "param-variable", "values": [] }
638
- ],
639
- "references": []
640
- },
641
- {
642
- "name": "qti-portable-custom-interaction-test",
643
- "description": "Test-specific extension of QtiPortableCustomInteraction that adds methods\nfor interacting with the iframe content in tests.\n---\n\n\n### **Methods:**\n - **getIFrameContent(): __** - Gets the HTML content of the iframe for testing purposes\n- **recreateIframe(): __** - Recreates the iframe completely\n- **iFrameMouseClick(x: _number_, y: _number_): __** - Simulates a mouse click at specific coordinates within the iframe\n- **iFrameClickOnElement(selector: _string_): __** - Clicks on an element identified by a CSS selector\n- **iFrameClickOnElementByText(text: _string_): __** - Clicks on an element containing the specified text\n- **iFrameSetValueElement(selector: _string_, value: _string_): __** - Sets the value of an input element identified by a CSS selector\n- **iFrameSetValueElementByText(text: _string_, value: _string_): __** - Sets the value of an input element containing the specified text\n- **iFrameMousedownOnElement(selector: _string_): __** - Performs a mousedown event on an element identified by a CSS selector\n\n\n- **register(pci: _IMSpci<ConfigProperties<unknown>>_)** - DIRECT MODE: Register PCI instance\n\n\n- **buildRequireConfig()** - DIRECT MODE: Build RequireJS configuration\n- **toggleInternalCorrectResponse(show: _boolean_, responseVariable)** - Toggle the display of the correct response\n- **disable()** - Method to disable the PCI for review mode\nThis can be used when showing the correct response\n- **enable()** - Method to enable the PCI for interactive mode",
644
- "attributes": [
645
- { "name": "module", "values": [] },
646
- { "name": "custom-interaction-type-identifier", "values": [] },
647
- { "name": "data-require-paths", "values": [] },
648
- { "name": "data-require-shim", "values": [] },
649
- { "name": "data-require-js-url", "values": [] },
650
- { "name": "data-base-url", "values": [] },
651
- { "name": "data-use-iframe", "values": [] },
652
- { "name": "data-use-default-shims", "values": [] },
653
- { "name": "data-use-default-paths", "values": [] }
654
- ],
655
- "references": []
656
- },
657
- {
658
- "name": "qti-and",
659
- "description": "\n---\n",
660
- "attributes": [],
661
- "references": []
662
- },
663
- {
664
- "name": "qti-base-value",
665
- "description": "\n---\n",
666
- "attributes": [
667
- { "name": "base-type", "values": [{ "name": "BaseType" }] }
668
- ],
669
- "references": []
670
- },
671
- {
672
- "name": "qti-container-size",
673
- "description": "The qti-container-size operator returns the number of values in a container.\n---\n",
674
- "attributes": [],
675
- "references": []
676
- },
677
- {
678
- "name": "qti-contains",
679
- "description": "\n---\n",
680
- "attributes": [],
681
- "references": []
682
- },
683
- {
684
- "name": "qti-correct",
685
- "description": "\n---\n",
686
- "attributes": [],
687
- "references": []
688
- },
689
- {
690
- "name": "qti-default",
691
- "description": "The qti-default expression returns the default value of a declared variable.\n---\n",
692
- "attributes": [{ "name": "identifier", "values": [] }],
693
- "references": []
694
- },
695
- {
696
- "name": "qti-equal-rounded",
697
- "description": "\n---\n",
698
- "attributes": [
699
- {
700
- "name": "roundingMode",
701
- "values": [
702
- { "name": "decimalPlaces" },
703
- { "name": "significantFigures" }
704
- ]
705
- }
706
- ],
707
- "references": []
708
- },
709
- {
710
- "name": "qti-round",
711
- "description": "The qti-round operator rounds a numerical value to the nearest integer.\n---\n",
712
- "attributes": [],
713
- "references": []
714
- },
715
- {
716
- "name": "qti-round-to",
717
- "description": "The qti-round-to operator rounds a numerical value to specified precision.\n---\n",
718
- "attributes": [
719
- {
720
- "name": "rounding-mode",
721
- "values": [
722
- { "name": "decimalPlaces" },
723
- { "name": "significantFigures" }
724
- ]
725
- },
726
- { "name": "figures", "values": [] }
727
- ],
728
- "references": []
729
- },
730
- {
731
- "name": "qti-equal",
732
- "description": "\n---\n",
733
- "attributes": [
734
- {
735
- "name": "toleranceMode",
736
- "values": [
737
- { "name": "exact" },
738
- { "name": "relative" },
739
- { "name": "absolute" }
740
- ]
741
- }
742
- ],
743
- "references": []
744
- },
745
- {
746
- "name": "qti-gcd",
747
- "description": "The qti-gcd operator calculates the greatest common divisor of integer values.\n---\n",
748
- "attributes": [],
749
- "references": []
750
- },
751
- {
752
- "name": "qti-gt",
753
- "description": "\n---\n",
754
- "attributes": [],
755
- "references": []
756
- },
757
- {
758
- "name": "qti-gte",
759
- "description": "\n---\n",
760
- "attributes": [],
761
- "references": []
762
- },
763
- {
764
- "name": "qti-null",
765
- "description": "The qti-null expression returns the NULL value.\n---\n",
766
- "attributes": [],
767
- "references": []
768
- },
769
- {
770
- "name": "qti-is-null",
771
- "description": "\n---\n",
772
- "attributes": [],
773
- "references": []
774
- },
775
- {
776
- "name": "qti-field-value",
777
- "description": "\n---\n",
778
- "attributes": [],
779
- "references": []
780
- },
781
- {
782
- "name": "qti-lt",
783
- "description": "\n---\n",
784
- "attributes": [],
785
- "references": []
786
- },
787
- {
788
- "name": "qti-lte",
789
- "description": "\n---\n",
790
- "attributes": [],
791
- "references": []
792
- },
793
- {
794
- "name": "qti-map-response",
795
- "description": "\n---\n",
796
- "attributes": [{ "name": "identifier", "values": [] }],
797
- "references": []
798
- },
799
- {
800
- "name": "qti-map-response-point",
801
- "description": "\n---\n",
802
- "attributes": [{ "name": "identifier", "values": [] }],
803
- "references": []
804
- },
805
- {
806
- "name": "qti-math-operator",
807
- "description": "The qti-math-operator performs mathematical operations on numerical values.\n---\n",
808
- "attributes": [{ "name": "name", "values": [] }],
809
- "references": []
810
- },
811
- {
812
- "name": "qti-match",
813
- "description": "\n---\n",
814
- "attributes": [],
815
- "references": []
816
- },
817
- {
818
- "name": "qti-member",
819
- "description": "\n---\n",
820
- "attributes": [],
821
- "references": []
822
- },
823
- {
824
- "name": "qti-multiple",
825
- "description": "\n---\n",
826
- "attributes": [],
827
- "references": []
828
- },
829
- {
830
- "name": "qti-not",
831
- "description": "\n---\n",
832
- "attributes": [],
833
- "references": []
834
- },
835
- {
836
- "name": "qti-or",
837
- "description": "\n---\n",
838
- "attributes": [],
839
- "references": []
840
- },
841
- {
842
- "name": "qti-ordered",
843
- "description": "\n---\n",
844
- "attributes": [],
845
- "references": []
846
- },
847
- {
848
- "name": "qti-power",
849
- "description": "The qti-power operator raises the first expression to the power of the second.\n---\n",
850
- "attributes": [],
851
- "references": []
852
- },
853
- {
854
- "name": "qti-printed-variable",
855
- "description": "\n---\n",
856
- "attributes": [{ "name": "identifier", "values": [] }],
857
- "references": []
858
- },
859
- {
860
- "name": "qti-product",
861
- "description": "\n---\n",
862
- "attributes": [],
863
- "references": []
864
- },
865
- {
866
- "name": "qti-subtract",
867
- "description": "\n---\n",
868
- "attributes": [],
869
- "references": []
870
- },
871
- {
872
- "name": "qti-string-match",
873
- "description": "\n---\n",
874
- "attributes": [{ "name": "case-sensitive", "values": [] }],
875
- "references": []
876
- },
877
- {
878
- "name": "qti-sum",
879
- "description": "\n---\n",
880
- "attributes": [],
881
- "references": []
882
- },
883
- {
884
- "name": "qti-variable",
885
- "description": "\n---\n",
886
- "attributes": [],
887
- "references": []
888
- },
889
- {
890
- "name": "qti-random-integer",
891
- "description": "The qti-random-integer operator selects a random integer from a specified range.\n---\n\n\n### **Methods:**\n - **getPossibleValues(): _number[]_** - Get all possible values for testing purposes",
892
- "attributes": [
893
- { "name": "min", "values": [] },
894
- { "name": "max", "values": [] },
895
- { "name": "step", "values": [] }
896
- ],
897
- "references": []
898
- },
899
- {
900
- "name": "qti-random",
901
- "description": "\n---\n",
902
- "attributes": [],
903
- "references": []
904
- },
905
- {
906
- "name": "qti-delete",
907
- "description": "\n---\n",
908
- "attributes": [],
909
- "references": []
910
- },
911
- {
912
- "name": "qti-index",
913
- "description": "\n---\n",
914
- "attributes": [{ "name": "n", "values": [] }],
915
- "references": []
916
- },
917
- {
918
- "name": "qti-rule",
919
- "description": "\n---\n",
920
- "attributes": [],
921
- "references": []
922
- },
923
- {
924
- "name": "qti-lookup-outcome-value",
925
- "description": "The lookupOutcomeValue rule sets the value of an outcome variable to the value obtained\nby looking up the value of the associated expression in the lookupTable associated\nwith the outcome's declaration.\n---\n\n\n### **Events:**\n - **qti-set-outcome-value**",
926
- "attributes": [{ "name": "identifier", "values": [] }],
927
- "references": []
928
- },
929
- {
930
- "name": "qti-response-condition",
931
- "description": "\n---\n",
932
- "attributes": [],
933
- "references": []
934
- },
935
- {
936
- "name": "qti-set-outcome-value",
937
- "description": "Web component that processes `setOutcomeValue` in QTI.\n---\n\n\n### **Events:**\n - **qti-set-outcome-value**\n\n### **Methods:**\n - **process(): _void_** - Processes the QTI rule and dispatches a custom event with the computed outcome value.",
938
- "attributes": [],
939
- "references": []
940
- },
941
- {
942
- "name": "qti-response-else",
943
- "description": "\n---\n",
944
- "attributes": [],
945
- "references": []
946
- },
947
- {
948
- "name": "qti-response-if",
949
- "description": "\n---\n",
950
- "attributes": [],
951
- "references": []
952
- },
953
- {
954
- "name": "qti-response-else-if",
955
- "description": "\n---\n",
956
- "attributes": [],
957
- "references": []
958
- }
959
- ]
960
- }