@pie-qti/qti-common 1.0.0-beta.0 → 1.0.0-beta.2
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/accessibility/apip.d.ts +66 -0
- package/dist/accessibility/apip.js +576 -0
- package/dist/accessibility/apip.js.map +1 -0
- package/dist/accessibility/catalog-info.d.ts +17 -0
- package/dist/accessibility/catalog-info.js +60 -0
- package/dist/accessibility/catalog-info.js.map +1 -0
- package/dist/accessibility/catalog.d.ts +53 -0
- package/dist/accessibility/catalog.js +68 -0
- package/dist/accessibility/catalog.js.map +1 -0
- package/dist/accessibility/index.d.ts +4 -0
- package/dist/accessibility/index.js +5 -0
- package/dist/accessibility/index.js.map +1 -0
- package/dist/accessibility/markup.d.ts +61 -0
- package/dist/accessibility/markup.js +484 -0
- package/dist/accessibility/markup.js.map +1 -0
- package/dist/dom/assignProps.d.ts +4 -0
- package/dist/dom/assignProps.js +9 -0
- package/dist/dom/assignProps.js.map +1 -0
- package/dist/dom/svelteMountController.d.ts +25 -0
- package/dist/dom/svelteMountController.js +131 -0
- package/dist/dom/svelteMountController.js.map +1 -0
- package/dist/dom/touchDrag.d.ts +10 -0
- package/dist/dom/touchDrag.js +141 -0
- package/dist/dom/touchDrag.js.map +1 -0
- package/dist/element-mapper/AttributeNameMapper.d.ts +66 -0
- package/dist/element-mapper/AttributeNameMapper.js +2 -0
- package/dist/element-mapper/AttributeNameMapper.js.map +1 -0
- package/dist/element-mapper/ElementNameMapper.d.ts +66 -0
- package/dist/element-mapper/ElementNameMapper.js +2 -0
- package/dist/element-mapper/ElementNameMapper.js.map +1 -0
- package/dist/element-mapper/Qti2xAttributeNameMapper.d.ts +27 -0
- package/dist/element-mapper/Qti2xAttributeNameMapper.js +38 -0
- package/dist/element-mapper/Qti2xAttributeNameMapper.js.map +1 -0
- package/dist/element-mapper/Qti2xElementNameMapper.d.ts +37 -0
- package/dist/element-mapper/Qti2xElementNameMapper.js +47 -0
- package/dist/element-mapper/Qti2xElementNameMapper.js.map +1 -0
- package/dist/element-mapper/Qti3AttributeNameMapper.d.ts +40 -0
- package/dist/element-mapper/Qti3AttributeNameMapper.js +87 -0
- package/dist/element-mapper/Qti3AttributeNameMapper.js.map +1 -0
- package/dist/element-mapper/Qti3ElementNameMapper.d.ts +14 -0
- package/dist/element-mapper/Qti3ElementNameMapper.js +39 -0
- package/dist/element-mapper/Qti3ElementNameMapper.js.map +1 -0
- package/dist/element-mapper/index.d.ts +8 -0
- package/dist/element-mapper/index.js +7 -0
- package/dist/element-mapper/index.js.map +1 -0
- package/dist/element-mapper/qti2-to-qti3.d.ts +36 -0
- package/dist/element-mapper/qti2-to-qti3.js +228 -0
- package/dist/element-mapper/qti2-to-qti3.js.map +1 -0
- package/dist/element-mapper/qti3-attribute-map.d.ts +8 -0
- package/dist/element-mapper/qti3-attribute-map.js +115 -0
- package/dist/element-mapper/qti3-attribute-map.js.map +1 -0
- package/dist/element-mapper/qti3-element-mappings.d.ts +538 -0
- package/dist/element-mapper/qti3-element-mappings.js +381 -0
- package/dist/element-mapper/qti3-element-mappings.js.map +1 -0
- package/dist/feedback/visibility.d.ts +12 -0
- package/dist/feedback/visibility.js +22 -0
- package/dist/feedback/visibility.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/language/direction.d.ts +10 -0
- package/dist/language/direction.js +42 -0
- package/dist/language/direction.js.map +1 -0
- package/dist/parser-factory.d.ts +137 -0
- package/dist/parser-factory.js +146 -0
- package/dist/parser-factory.js.map +1 -0
- package/dist/version-detection/detectQtiVersion.d.ts +23 -0
- package/dist/version-detection/detectQtiVersion.js +129 -0
- package/dist/version-detection/detectQtiVersion.js.map +1 -0
- package/dist/version-detection/index.d.ts +2 -0
- package/dist/version-detection/index.js +2 -0
- package/dist/version-detection/index.js.map +1 -0
- package/dist/xml/attributes.d.ts +77 -0
- package/dist/xml/attributes.js +120 -0
- package/dist/xml/attributes.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QTI 3.0 element name mappings: every `qti-*` element of the 1EdTech QTI 3.0 ASI schema,
|
|
3
|
+
* mapped to its lowercase canonical name. `qti3-xsd-conformance.test.ts` checks the map
|
|
4
|
+
* against the schema vendored in `schemas/qti3/`, in both directions.
|
|
5
|
+
*
|
|
6
|
+
* XHTML and HTML5 content elements keep their unprefixed names in QTI 3 and are not listed.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Core assessment structure elements
|
|
10
|
+
*/
|
|
11
|
+
export declare const CORE_ELEMENTS: {
|
|
12
|
+
readonly 'qti-assessment-item': "assessmentitem";
|
|
13
|
+
readonly 'qti-assessment-test': "assessmenttest";
|
|
14
|
+
readonly 'qti-item-body': "itembody";
|
|
15
|
+
readonly 'qti-content-body': "contentbody";
|
|
16
|
+
readonly 'qti-test-part': "testpart";
|
|
17
|
+
readonly 'qti-assessment-section': "assessmentsection";
|
|
18
|
+
readonly 'qti-assessment-item-ref': "assessmentitemref";
|
|
19
|
+
readonly 'qti-assessment-stimulus-ref': "assessmentstimulusref";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Test structure elements
|
|
23
|
+
*/
|
|
24
|
+
export declare const TEST_STRUCTURE_ELEMENTS: {
|
|
25
|
+
readonly 'qti-assessment-section-ref': "assessmentsectionref";
|
|
26
|
+
readonly 'qti-item-session-control': "itemsessioncontrol";
|
|
27
|
+
readonly 'qti-time-limits': "timelimits";
|
|
28
|
+
readonly 'qti-selection': "selection";
|
|
29
|
+
readonly 'qti-ordering': "ordering";
|
|
30
|
+
readonly 'qti-branch-rule': "branchrule";
|
|
31
|
+
readonly 'qti-pre-condition': "precondition";
|
|
32
|
+
readonly 'qti-test-feedback': "testfeedback";
|
|
33
|
+
readonly 'qti-template-default': "templatedefault";
|
|
34
|
+
readonly 'qti-variable-mapping': "variablemapping";
|
|
35
|
+
readonly 'qti-weight': "weight";
|
|
36
|
+
readonly 'qti-outcome-processing-fragment': "outcomeprocessingfragment";
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Shared stimulus elements
|
|
40
|
+
*/
|
|
41
|
+
export declare const STIMULUS_ELEMENTS: {
|
|
42
|
+
readonly 'qti-assessment-stimulus': "assessmentstimulus";
|
|
43
|
+
readonly 'qti-stimulus-body': "stimulusbody";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Variable declaration elements
|
|
47
|
+
*/
|
|
48
|
+
export declare const DECLARATION_ELEMENTS: {
|
|
49
|
+
readonly 'qti-response-declaration': "responsedeclaration";
|
|
50
|
+
readonly 'qti-outcome-declaration': "outcomedeclaration";
|
|
51
|
+
readonly 'qti-template-declaration': "templatedeclaration";
|
|
52
|
+
readonly 'qti-context-declaration': "contextdeclaration";
|
|
53
|
+
readonly 'qti-correct-response': "correctresponse";
|
|
54
|
+
readonly 'qti-default-value': "defaultvalue";
|
|
55
|
+
readonly 'qti-value': "value";
|
|
56
|
+
readonly 'qti-mapping': "mapping";
|
|
57
|
+
readonly 'qti-map-entry': "mapentry";
|
|
58
|
+
readonly 'qti-area-mapping': "areamapping";
|
|
59
|
+
readonly 'qti-area-map-entry': "areamapentry";
|
|
60
|
+
readonly 'qti-match-table': "matchtable";
|
|
61
|
+
readonly 'qti-match-table-entry': "matchtableentry";
|
|
62
|
+
readonly 'qti-interpolation-table': "interpolationtable";
|
|
63
|
+
readonly 'qti-interpolation-table-entry': "interpolationtableentry";
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* All 23+ interaction types (block and inline)
|
|
67
|
+
*/
|
|
68
|
+
export declare const INTERACTION_ELEMENTS: {
|
|
69
|
+
readonly 'qti-choice-interaction': "choiceinteraction";
|
|
70
|
+
readonly 'qti-match-interaction': "matchinteraction";
|
|
71
|
+
readonly 'qti-order-interaction': "orderinteraction";
|
|
72
|
+
readonly 'qti-gap-match-interaction': "gapmatchinteraction";
|
|
73
|
+
readonly 'qti-graphic-gap-match-interaction': "graphicgapmatchinteraction";
|
|
74
|
+
readonly 'qti-hotspot-interaction': "hotspotinteraction";
|
|
75
|
+
readonly 'qti-hottext-interaction': "hottextinteraction";
|
|
76
|
+
readonly 'qti-extended-text-interaction': "extendedtextinteraction";
|
|
77
|
+
readonly 'qti-media-interaction': "mediainteraction";
|
|
78
|
+
readonly 'qti-select-point-interaction': "selectpointinteraction";
|
|
79
|
+
readonly 'qti-custom-interaction': "custominteraction";
|
|
80
|
+
readonly 'qti-portable-custom-interaction': "portablecustominteraction";
|
|
81
|
+
readonly 'qti-end-attempt-interaction': "endattemptinteraction";
|
|
82
|
+
readonly 'qti-slider-interaction': "sliderinteraction";
|
|
83
|
+
readonly 'qti-drawing-interaction': "drawinginteraction";
|
|
84
|
+
readonly 'qti-upload-interaction': "uploadinteraction";
|
|
85
|
+
readonly 'qti-position-object-interaction': "positionobjectinteraction";
|
|
86
|
+
readonly 'qti-graphic-order-interaction': "graphicorderinteraction";
|
|
87
|
+
readonly 'qti-graphic-associate-interaction': "graphicassociateinteraction";
|
|
88
|
+
readonly 'qti-associate-interaction': "associateinteraction";
|
|
89
|
+
readonly 'qti-text-entry-interaction': "textentryinteraction";
|
|
90
|
+
readonly 'qti-inline-choice-interaction': "inlinechoiceinteraction";
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Interaction child elements
|
|
94
|
+
*/
|
|
95
|
+
export declare const INTERACTION_CHILD_ELEMENTS: {
|
|
96
|
+
readonly 'qti-prompt': "prompt";
|
|
97
|
+
readonly 'qti-simple-choice': "simplechoice";
|
|
98
|
+
readonly 'qti-simple-match-set': "simplematchset";
|
|
99
|
+
readonly 'qti-simple-associable-choice': "simpleassociablechoice";
|
|
100
|
+
readonly 'qti-gap': "gap";
|
|
101
|
+
readonly 'qti-gap-text': "gaptext";
|
|
102
|
+
readonly 'qti-gap-img': "gapimg";
|
|
103
|
+
readonly 'qti-hotspot-choice': "hotspotchoice";
|
|
104
|
+
readonly 'qti-associable-hotspot': "associablehotspot";
|
|
105
|
+
readonly 'qti-hottext': "hottext";
|
|
106
|
+
readonly 'qti-inline-choice': "inlinechoice";
|
|
107
|
+
readonly 'qti-position-object-stage': "positionobjectstage";
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Response processing elements
|
|
111
|
+
*/
|
|
112
|
+
export declare const RESPONSE_PROCESSING_ELEMENTS: {
|
|
113
|
+
readonly 'qti-response-processing': "responseprocessing";
|
|
114
|
+
readonly 'qti-response-condition': "responsecondition";
|
|
115
|
+
readonly 'qti-response-if': "responseif";
|
|
116
|
+
readonly 'qti-response-else-if': "responseelseif";
|
|
117
|
+
readonly 'qti-response-else': "responseelse";
|
|
118
|
+
readonly 'qti-response-processing-fragment': "responseprocessingfragment";
|
|
119
|
+
readonly 'qti-exit-response': "exitresponse";
|
|
120
|
+
readonly 'qti-set-outcome-value': "setoutcomevalue";
|
|
121
|
+
readonly 'qti-lookup-outcome-value': "lookupoutcomevalue";
|
|
122
|
+
readonly 'qti-set-correct-response': "setcorrectresponse";
|
|
123
|
+
readonly 'qti-set-default-value': "setdefaultvalue";
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Template processing elements
|
|
127
|
+
*/
|
|
128
|
+
export declare const TEMPLATE_PROCESSING_ELEMENTS: {
|
|
129
|
+
readonly 'qti-template-processing': "templateprocessing";
|
|
130
|
+
readonly 'qti-template-condition': "templatecondition";
|
|
131
|
+
readonly 'qti-template-if': "templateif";
|
|
132
|
+
readonly 'qti-template-else-if': "templateelseif";
|
|
133
|
+
readonly 'qti-template-else': "templateelse";
|
|
134
|
+
readonly 'qti-template-constraint': "templateconstraint";
|
|
135
|
+
readonly 'qti-set-template-value': "settemplatevalue";
|
|
136
|
+
readonly 'qti-exit-template': "exittemplate";
|
|
137
|
+
readonly 'qti-template-block': "templateblock";
|
|
138
|
+
readonly 'qti-template-inline': "templateinline";
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Outcome processing elements (test-level)
|
|
142
|
+
*/
|
|
143
|
+
export declare const OUTCOME_PROCESSING_ELEMENTS: {
|
|
144
|
+
readonly 'qti-outcome-processing': "outcomeprocessing";
|
|
145
|
+
readonly 'qti-outcome-condition': "outcomecondition";
|
|
146
|
+
readonly 'qti-outcome-if': "outcomeif";
|
|
147
|
+
readonly 'qti-outcome-else-if': "outcomeelseif";
|
|
148
|
+
readonly 'qti-outcome-else': "outcomeelse";
|
|
149
|
+
readonly 'qti-exit-test': "exittest";
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Expression elements (54+ operators)
|
|
153
|
+
*/
|
|
154
|
+
export declare const EXPRESSION_ELEMENTS: {
|
|
155
|
+
readonly 'qti-variable': "variable";
|
|
156
|
+
readonly 'qti-correct': "correct";
|
|
157
|
+
readonly 'qti-default': "default";
|
|
158
|
+
readonly 'qti-base-value': "basevalue";
|
|
159
|
+
readonly 'qti-field-value': "fieldvalue";
|
|
160
|
+
readonly 'qti-custom-operator': "customoperator";
|
|
161
|
+
readonly 'qti-index': "index";
|
|
162
|
+
readonly 'qti-contains': "contains";
|
|
163
|
+
readonly 'qti-member': "member";
|
|
164
|
+
readonly 'qti-null': "null";
|
|
165
|
+
readonly 'qti-equal': "equal";
|
|
166
|
+
readonly 'qti-equal-rounded': "equalrounded";
|
|
167
|
+
readonly 'qti-gt': "gt";
|
|
168
|
+
readonly 'qti-gte': "gte";
|
|
169
|
+
readonly 'qti-lt': "lt";
|
|
170
|
+
readonly 'qti-lte': "lte";
|
|
171
|
+
readonly 'qti-and': "and";
|
|
172
|
+
readonly 'qti-or': "or";
|
|
173
|
+
readonly 'qti-not': "not";
|
|
174
|
+
readonly 'qti-any-n': "anyn";
|
|
175
|
+
readonly 'qti-multiple': "multiple";
|
|
176
|
+
readonly 'qti-ordered': "ordered";
|
|
177
|
+
readonly 'qti-string-match': "stringmatch";
|
|
178
|
+
readonly 'qti-pattern-match': "patternmatch";
|
|
179
|
+
readonly 'qti-substring': "substring";
|
|
180
|
+
readonly 'qti-repeat': "repeat";
|
|
181
|
+
readonly 'qti-match': "match";
|
|
182
|
+
readonly 'qti-inside': "inside";
|
|
183
|
+
readonly 'qti-map-response': "mapresponse";
|
|
184
|
+
readonly 'qti-map-response-point': "mapresponsepoint";
|
|
185
|
+
readonly 'qti-sum': "sum";
|
|
186
|
+
readonly 'qti-product': "product";
|
|
187
|
+
readonly 'qti-subtract': "subtract";
|
|
188
|
+
readonly 'qti-divide': "divide";
|
|
189
|
+
readonly 'qti-integer-divide': "integerdivide";
|
|
190
|
+
readonly 'qti-integer-modulus': "integermodulus";
|
|
191
|
+
readonly 'qti-round': "round";
|
|
192
|
+
readonly 'qti-round-to': "roundto";
|
|
193
|
+
readonly 'qti-truncate': "truncate";
|
|
194
|
+
readonly 'qti-math-operator': "mathoperator";
|
|
195
|
+
readonly 'qti-math-constant': "mathconstant";
|
|
196
|
+
readonly 'qti-power': "power";
|
|
197
|
+
readonly 'qti-gcd': "gcd";
|
|
198
|
+
readonly 'qti-lcm': "lcm";
|
|
199
|
+
readonly 'qti-stats-operator': "statsoperator";
|
|
200
|
+
readonly 'qti-min': "min";
|
|
201
|
+
readonly 'qti-max': "max";
|
|
202
|
+
readonly 'qti-container-size': "containersize";
|
|
203
|
+
readonly 'qti-delete': "delete";
|
|
204
|
+
readonly 'qti-is-null': "isnull";
|
|
205
|
+
readonly 'qti-random': "random";
|
|
206
|
+
readonly 'qti-random-integer': "randominteger";
|
|
207
|
+
readonly 'qti-random-float': "randomfloat";
|
|
208
|
+
readonly 'qti-test-variables': "testvariables";
|
|
209
|
+
readonly 'qti-outcome-maximum': "outcomemaximum";
|
|
210
|
+
readonly 'qti-outcome-minimum': "outcomeminimum";
|
|
211
|
+
readonly 'qti-number-correct': "numbercorrect";
|
|
212
|
+
readonly 'qti-number-incorrect': "numberincorrect";
|
|
213
|
+
readonly 'qti-number-presented': "numberpresented";
|
|
214
|
+
readonly 'qti-number-responded': "numberresponded";
|
|
215
|
+
readonly 'qti-number-selected': "numberselected";
|
|
216
|
+
readonly 'qti-integer-to-float': "integertofloat";
|
|
217
|
+
readonly 'qti-duration-gte': "durationgte";
|
|
218
|
+
readonly 'qti-duration-lt': "durationlt";
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Feedback elements
|
|
222
|
+
*/
|
|
223
|
+
export declare const FEEDBACK_ELEMENTS: {
|
|
224
|
+
readonly 'qti-modal-feedback': "modalfeedback";
|
|
225
|
+
readonly 'qti-feedback-block': "feedbackblock";
|
|
226
|
+
readonly 'qti-feedback-inline': "feedbackinline";
|
|
227
|
+
readonly 'qti-rubric-block': "rubricblock";
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* PCI (Portable Custom Interaction) elements
|
|
231
|
+
*/
|
|
232
|
+
export declare const PCI_ELEMENTS: {
|
|
233
|
+
readonly 'qti-interaction-modules': "interactionmodules";
|
|
234
|
+
readonly 'qti-interaction-module': "interactionmodule";
|
|
235
|
+
readonly 'qti-interaction-markup': "interactionmarkup";
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Catalog elements (accessibility support)
|
|
239
|
+
*/
|
|
240
|
+
export declare const CATALOG_ELEMENTS: {
|
|
241
|
+
readonly 'qti-catalog': "catalog";
|
|
242
|
+
readonly 'qti-catalog-info': "cataloginfo";
|
|
243
|
+
readonly 'qti-card': "card";
|
|
244
|
+
readonly 'qti-card-entry': "cardentry";
|
|
245
|
+
readonly 'qti-html-content': "htmlcontent";
|
|
246
|
+
readonly 'qti-file-href': "filehref";
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Other content elements
|
|
250
|
+
*/
|
|
251
|
+
export declare const CONTENT_ELEMENTS: {
|
|
252
|
+
readonly 'qti-printed-variable': "printedvariable";
|
|
253
|
+
readonly 'qti-context-variable': "contextvariable";
|
|
254
|
+
readonly 'qti-template-variable': "templatevariable";
|
|
255
|
+
readonly 'qti-stylesheet': "stylesheet";
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Companion materials (calculators, rulers, protractors, reference material)
|
|
259
|
+
*/
|
|
260
|
+
export declare const COMPANION_MATERIAL_ELEMENTS: {
|
|
261
|
+
readonly 'qti-companion-materials-info': "companionmaterialsinfo";
|
|
262
|
+
readonly 'qti-calculator': "calculator";
|
|
263
|
+
readonly 'qti-calculator-info': "calculatorinfo";
|
|
264
|
+
readonly 'qti-calculator-type': "calculatortype";
|
|
265
|
+
readonly 'qti-description': "description";
|
|
266
|
+
readonly 'qti-digital-material': "digitalmaterial";
|
|
267
|
+
readonly 'qti-physical-material': "physicalmaterial";
|
|
268
|
+
readonly 'qti-label': "label";
|
|
269
|
+
readonly 'qti-protractor': "protractor";
|
|
270
|
+
readonly 'qti-rule': "rule";
|
|
271
|
+
readonly 'qti-rule-system-si': "rulesystemsi";
|
|
272
|
+
readonly 'qti-rule-system-us': "rulesystemus";
|
|
273
|
+
readonly 'qti-increment-si': "incrementsi";
|
|
274
|
+
readonly 'qti-increment-us': "incrementus";
|
|
275
|
+
readonly 'qti-major-increment': "majorincrement";
|
|
276
|
+
readonly 'qti-minor-increment': "minorincrement";
|
|
277
|
+
readonly 'qti-minimum-length': "minimumlength";
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Adaptive delivery and metadata references
|
|
281
|
+
*/
|
|
282
|
+
export declare const REFERENCE_ELEMENTS: {
|
|
283
|
+
readonly 'qti-adaptive-selection': "adaptiveselection";
|
|
284
|
+
readonly 'qti-adaptive-engine-ref': "adaptiveengineref";
|
|
285
|
+
readonly 'qti-adaptive-settings-ref': "adaptivesettingsref";
|
|
286
|
+
readonly 'qti-metadata-ref': "metadataref";
|
|
287
|
+
readonly 'qti-usagedata-ref': "usagedataref";
|
|
288
|
+
readonly 'qti-resource-icon': "resourceicon";
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Complete mapping of all QTI 3.0 elements to canonical form
|
|
292
|
+
*/
|
|
293
|
+
export declare const QTI3_ELEMENT_MAPPINGS: {
|
|
294
|
+
readonly 'qti-adaptive-selection': "adaptiveselection";
|
|
295
|
+
readonly 'qti-adaptive-engine-ref': "adaptiveengineref";
|
|
296
|
+
readonly 'qti-adaptive-settings-ref': "adaptivesettingsref";
|
|
297
|
+
readonly 'qti-metadata-ref': "metadataref";
|
|
298
|
+
readonly 'qti-usagedata-ref': "usagedataref";
|
|
299
|
+
readonly 'qti-resource-icon': "resourceicon";
|
|
300
|
+
readonly 'qti-companion-materials-info': "companionmaterialsinfo";
|
|
301
|
+
readonly 'qti-calculator': "calculator";
|
|
302
|
+
readonly 'qti-calculator-info': "calculatorinfo";
|
|
303
|
+
readonly 'qti-calculator-type': "calculatortype";
|
|
304
|
+
readonly 'qti-description': "description";
|
|
305
|
+
readonly 'qti-digital-material': "digitalmaterial";
|
|
306
|
+
readonly 'qti-physical-material': "physicalmaterial";
|
|
307
|
+
readonly 'qti-label': "label";
|
|
308
|
+
readonly 'qti-protractor': "protractor";
|
|
309
|
+
readonly 'qti-rule': "rule";
|
|
310
|
+
readonly 'qti-rule-system-si': "rulesystemsi";
|
|
311
|
+
readonly 'qti-rule-system-us': "rulesystemus";
|
|
312
|
+
readonly 'qti-increment-si': "incrementsi";
|
|
313
|
+
readonly 'qti-increment-us': "incrementus";
|
|
314
|
+
readonly 'qti-major-increment': "majorincrement";
|
|
315
|
+
readonly 'qti-minor-increment': "minorincrement";
|
|
316
|
+
readonly 'qti-minimum-length': "minimumlength";
|
|
317
|
+
readonly 'qti-printed-variable': "printedvariable";
|
|
318
|
+
readonly 'qti-context-variable': "contextvariable";
|
|
319
|
+
readonly 'qti-template-variable': "templatevariable";
|
|
320
|
+
readonly 'qti-stylesheet': "stylesheet";
|
|
321
|
+
readonly 'qti-catalog': "catalog";
|
|
322
|
+
readonly 'qti-catalog-info': "cataloginfo";
|
|
323
|
+
readonly 'qti-card': "card";
|
|
324
|
+
readonly 'qti-card-entry': "cardentry";
|
|
325
|
+
readonly 'qti-html-content': "htmlcontent";
|
|
326
|
+
readonly 'qti-file-href': "filehref";
|
|
327
|
+
readonly 'qti-interaction-modules': "interactionmodules";
|
|
328
|
+
readonly 'qti-interaction-module': "interactionmodule";
|
|
329
|
+
readonly 'qti-interaction-markup': "interactionmarkup";
|
|
330
|
+
readonly 'qti-modal-feedback': "modalfeedback";
|
|
331
|
+
readonly 'qti-feedback-block': "feedbackblock";
|
|
332
|
+
readonly 'qti-feedback-inline': "feedbackinline";
|
|
333
|
+
readonly 'qti-rubric-block': "rubricblock";
|
|
334
|
+
readonly 'qti-variable': "variable";
|
|
335
|
+
readonly 'qti-correct': "correct";
|
|
336
|
+
readonly 'qti-default': "default";
|
|
337
|
+
readonly 'qti-base-value': "basevalue";
|
|
338
|
+
readonly 'qti-field-value': "fieldvalue";
|
|
339
|
+
readonly 'qti-custom-operator': "customoperator";
|
|
340
|
+
readonly 'qti-index': "index";
|
|
341
|
+
readonly 'qti-contains': "contains";
|
|
342
|
+
readonly 'qti-member': "member";
|
|
343
|
+
readonly 'qti-null': "null";
|
|
344
|
+
readonly 'qti-equal': "equal";
|
|
345
|
+
readonly 'qti-equal-rounded': "equalrounded";
|
|
346
|
+
readonly 'qti-gt': "gt";
|
|
347
|
+
readonly 'qti-gte': "gte";
|
|
348
|
+
readonly 'qti-lt': "lt";
|
|
349
|
+
readonly 'qti-lte': "lte";
|
|
350
|
+
readonly 'qti-and': "and";
|
|
351
|
+
readonly 'qti-or': "or";
|
|
352
|
+
readonly 'qti-not': "not";
|
|
353
|
+
readonly 'qti-any-n': "anyn";
|
|
354
|
+
readonly 'qti-multiple': "multiple";
|
|
355
|
+
readonly 'qti-ordered': "ordered";
|
|
356
|
+
readonly 'qti-string-match': "stringmatch";
|
|
357
|
+
readonly 'qti-pattern-match': "patternmatch";
|
|
358
|
+
readonly 'qti-substring': "substring";
|
|
359
|
+
readonly 'qti-repeat': "repeat";
|
|
360
|
+
readonly 'qti-match': "match";
|
|
361
|
+
readonly 'qti-inside': "inside";
|
|
362
|
+
readonly 'qti-map-response': "mapresponse";
|
|
363
|
+
readonly 'qti-map-response-point': "mapresponsepoint";
|
|
364
|
+
readonly 'qti-sum': "sum";
|
|
365
|
+
readonly 'qti-product': "product";
|
|
366
|
+
readonly 'qti-subtract': "subtract";
|
|
367
|
+
readonly 'qti-divide': "divide";
|
|
368
|
+
readonly 'qti-integer-divide': "integerdivide";
|
|
369
|
+
readonly 'qti-integer-modulus': "integermodulus";
|
|
370
|
+
readonly 'qti-round': "round";
|
|
371
|
+
readonly 'qti-round-to': "roundto";
|
|
372
|
+
readonly 'qti-truncate': "truncate";
|
|
373
|
+
readonly 'qti-math-operator': "mathoperator";
|
|
374
|
+
readonly 'qti-math-constant': "mathconstant";
|
|
375
|
+
readonly 'qti-power': "power";
|
|
376
|
+
readonly 'qti-gcd': "gcd";
|
|
377
|
+
readonly 'qti-lcm': "lcm";
|
|
378
|
+
readonly 'qti-stats-operator': "statsoperator";
|
|
379
|
+
readonly 'qti-min': "min";
|
|
380
|
+
readonly 'qti-max': "max";
|
|
381
|
+
readonly 'qti-container-size': "containersize";
|
|
382
|
+
readonly 'qti-delete': "delete";
|
|
383
|
+
readonly 'qti-is-null': "isnull";
|
|
384
|
+
readonly 'qti-random': "random";
|
|
385
|
+
readonly 'qti-random-integer': "randominteger";
|
|
386
|
+
readonly 'qti-random-float': "randomfloat";
|
|
387
|
+
readonly 'qti-test-variables': "testvariables";
|
|
388
|
+
readonly 'qti-outcome-maximum': "outcomemaximum";
|
|
389
|
+
readonly 'qti-outcome-minimum': "outcomeminimum";
|
|
390
|
+
readonly 'qti-number-correct': "numbercorrect";
|
|
391
|
+
readonly 'qti-number-incorrect': "numberincorrect";
|
|
392
|
+
readonly 'qti-number-presented': "numberpresented";
|
|
393
|
+
readonly 'qti-number-responded': "numberresponded";
|
|
394
|
+
readonly 'qti-number-selected': "numberselected";
|
|
395
|
+
readonly 'qti-integer-to-float': "integertofloat";
|
|
396
|
+
readonly 'qti-duration-gte': "durationgte";
|
|
397
|
+
readonly 'qti-duration-lt': "durationlt";
|
|
398
|
+
readonly 'qti-outcome-processing': "outcomeprocessing";
|
|
399
|
+
readonly 'qti-outcome-condition': "outcomecondition";
|
|
400
|
+
readonly 'qti-outcome-if': "outcomeif";
|
|
401
|
+
readonly 'qti-outcome-else-if': "outcomeelseif";
|
|
402
|
+
readonly 'qti-outcome-else': "outcomeelse";
|
|
403
|
+
readonly 'qti-exit-test': "exittest";
|
|
404
|
+
readonly 'qti-template-processing': "templateprocessing";
|
|
405
|
+
readonly 'qti-template-condition': "templatecondition";
|
|
406
|
+
readonly 'qti-template-if': "templateif";
|
|
407
|
+
readonly 'qti-template-else-if': "templateelseif";
|
|
408
|
+
readonly 'qti-template-else': "templateelse";
|
|
409
|
+
readonly 'qti-template-constraint': "templateconstraint";
|
|
410
|
+
readonly 'qti-set-template-value': "settemplatevalue";
|
|
411
|
+
readonly 'qti-exit-template': "exittemplate";
|
|
412
|
+
readonly 'qti-template-block': "templateblock";
|
|
413
|
+
readonly 'qti-template-inline': "templateinline";
|
|
414
|
+
readonly 'qti-response-processing': "responseprocessing";
|
|
415
|
+
readonly 'qti-response-condition': "responsecondition";
|
|
416
|
+
readonly 'qti-response-if': "responseif";
|
|
417
|
+
readonly 'qti-response-else-if': "responseelseif";
|
|
418
|
+
readonly 'qti-response-else': "responseelse";
|
|
419
|
+
readonly 'qti-response-processing-fragment': "responseprocessingfragment";
|
|
420
|
+
readonly 'qti-exit-response': "exitresponse";
|
|
421
|
+
readonly 'qti-set-outcome-value': "setoutcomevalue";
|
|
422
|
+
readonly 'qti-lookup-outcome-value': "lookupoutcomevalue";
|
|
423
|
+
readonly 'qti-set-correct-response': "setcorrectresponse";
|
|
424
|
+
readonly 'qti-set-default-value': "setdefaultvalue";
|
|
425
|
+
readonly 'qti-prompt': "prompt";
|
|
426
|
+
readonly 'qti-simple-choice': "simplechoice";
|
|
427
|
+
readonly 'qti-simple-match-set': "simplematchset";
|
|
428
|
+
readonly 'qti-simple-associable-choice': "simpleassociablechoice";
|
|
429
|
+
readonly 'qti-gap': "gap";
|
|
430
|
+
readonly 'qti-gap-text': "gaptext";
|
|
431
|
+
readonly 'qti-gap-img': "gapimg";
|
|
432
|
+
readonly 'qti-hotspot-choice': "hotspotchoice";
|
|
433
|
+
readonly 'qti-associable-hotspot': "associablehotspot";
|
|
434
|
+
readonly 'qti-hottext': "hottext";
|
|
435
|
+
readonly 'qti-inline-choice': "inlinechoice";
|
|
436
|
+
readonly 'qti-position-object-stage': "positionobjectstage";
|
|
437
|
+
readonly 'qti-choice-interaction': "choiceinteraction";
|
|
438
|
+
readonly 'qti-match-interaction': "matchinteraction";
|
|
439
|
+
readonly 'qti-order-interaction': "orderinteraction";
|
|
440
|
+
readonly 'qti-gap-match-interaction': "gapmatchinteraction";
|
|
441
|
+
readonly 'qti-graphic-gap-match-interaction': "graphicgapmatchinteraction";
|
|
442
|
+
readonly 'qti-hotspot-interaction': "hotspotinteraction";
|
|
443
|
+
readonly 'qti-hottext-interaction': "hottextinteraction";
|
|
444
|
+
readonly 'qti-extended-text-interaction': "extendedtextinteraction";
|
|
445
|
+
readonly 'qti-media-interaction': "mediainteraction";
|
|
446
|
+
readonly 'qti-select-point-interaction': "selectpointinteraction";
|
|
447
|
+
readonly 'qti-custom-interaction': "custominteraction";
|
|
448
|
+
readonly 'qti-portable-custom-interaction': "portablecustominteraction";
|
|
449
|
+
readonly 'qti-end-attempt-interaction': "endattemptinteraction";
|
|
450
|
+
readonly 'qti-slider-interaction': "sliderinteraction";
|
|
451
|
+
readonly 'qti-drawing-interaction': "drawinginteraction";
|
|
452
|
+
readonly 'qti-upload-interaction': "uploadinteraction";
|
|
453
|
+
readonly 'qti-position-object-interaction': "positionobjectinteraction";
|
|
454
|
+
readonly 'qti-graphic-order-interaction': "graphicorderinteraction";
|
|
455
|
+
readonly 'qti-graphic-associate-interaction': "graphicassociateinteraction";
|
|
456
|
+
readonly 'qti-associate-interaction': "associateinteraction";
|
|
457
|
+
readonly 'qti-text-entry-interaction': "textentryinteraction";
|
|
458
|
+
readonly 'qti-inline-choice-interaction': "inlinechoiceinteraction";
|
|
459
|
+
readonly 'qti-response-declaration': "responsedeclaration";
|
|
460
|
+
readonly 'qti-outcome-declaration': "outcomedeclaration";
|
|
461
|
+
readonly 'qti-template-declaration': "templatedeclaration";
|
|
462
|
+
readonly 'qti-context-declaration': "contextdeclaration";
|
|
463
|
+
readonly 'qti-correct-response': "correctresponse";
|
|
464
|
+
readonly 'qti-default-value': "defaultvalue";
|
|
465
|
+
readonly 'qti-value': "value";
|
|
466
|
+
readonly 'qti-mapping': "mapping";
|
|
467
|
+
readonly 'qti-map-entry': "mapentry";
|
|
468
|
+
readonly 'qti-area-mapping': "areamapping";
|
|
469
|
+
readonly 'qti-area-map-entry': "areamapentry";
|
|
470
|
+
readonly 'qti-match-table': "matchtable";
|
|
471
|
+
readonly 'qti-match-table-entry': "matchtableentry";
|
|
472
|
+
readonly 'qti-interpolation-table': "interpolationtable";
|
|
473
|
+
readonly 'qti-interpolation-table-entry': "interpolationtableentry";
|
|
474
|
+
readonly 'qti-assessment-stimulus': "assessmentstimulus";
|
|
475
|
+
readonly 'qti-stimulus-body': "stimulusbody";
|
|
476
|
+
readonly 'qti-assessment-section-ref': "assessmentsectionref";
|
|
477
|
+
readonly 'qti-item-session-control': "itemsessioncontrol";
|
|
478
|
+
readonly 'qti-time-limits': "timelimits";
|
|
479
|
+
readonly 'qti-selection': "selection";
|
|
480
|
+
readonly 'qti-ordering': "ordering";
|
|
481
|
+
readonly 'qti-branch-rule': "branchrule";
|
|
482
|
+
readonly 'qti-pre-condition': "precondition";
|
|
483
|
+
readonly 'qti-test-feedback': "testfeedback";
|
|
484
|
+
readonly 'qti-template-default': "templatedefault";
|
|
485
|
+
readonly 'qti-variable-mapping': "variablemapping";
|
|
486
|
+
readonly 'qti-weight': "weight";
|
|
487
|
+
readonly 'qti-outcome-processing-fragment': "outcomeprocessingfragment";
|
|
488
|
+
readonly 'qti-assessment-item': "assessmentitem";
|
|
489
|
+
readonly 'qti-assessment-test': "assessmenttest";
|
|
490
|
+
readonly 'qti-item-body': "itembody";
|
|
491
|
+
readonly 'qti-content-body': "contentbody";
|
|
492
|
+
readonly 'qti-test-part': "testpart";
|
|
493
|
+
readonly 'qti-assessment-section': "assessmentsection";
|
|
494
|
+
readonly 'qti-assessment-item-ref': "assessmentitemref";
|
|
495
|
+
readonly 'qti-assessment-stimulus-ref': "assessmentstimulusref";
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Get canonical name for a QTI 3.0 element
|
|
499
|
+
*/
|
|
500
|
+
export declare function getCanonicalName(qti3ElementName: string): string | undefined;
|
|
501
|
+
/**
|
|
502
|
+
* Check if an element name is a valid QTI 3.0 element
|
|
503
|
+
*/
|
|
504
|
+
export declare function isQti3Element(elementName: string): boolean;
|
|
505
|
+
/**
|
|
506
|
+
* Get all QTI 3.0 interaction element names
|
|
507
|
+
*/
|
|
508
|
+
export declare function getInteractionElements(): readonly string[];
|
|
509
|
+
/**
|
|
510
|
+
* Common QTI 3.0 attribute names (kebab-case)
|
|
511
|
+
*/
|
|
512
|
+
export declare const QTI3_ATTRIBUTES: {
|
|
513
|
+
readonly identifier: "identifier";
|
|
514
|
+
readonly responseIdentifier: "response-identifier";
|
|
515
|
+
readonly outcomeIdentifier: "outcome-identifier";
|
|
516
|
+
readonly templateIdentifier: "template-identifier";
|
|
517
|
+
readonly baseType: "base-type";
|
|
518
|
+
readonly cardinality: "cardinality";
|
|
519
|
+
readonly minChoices: "min-choices";
|
|
520
|
+
readonly maxChoices: "max-choices";
|
|
521
|
+
readonly shuffle: "shuffle";
|
|
522
|
+
readonly fixed: "fixed";
|
|
523
|
+
readonly showHide: "show-hide";
|
|
524
|
+
readonly normalMaximum: "normal-maximum";
|
|
525
|
+
readonly normalMinimum: "normal-minimum";
|
|
526
|
+
readonly mathVariable: "math-variable";
|
|
527
|
+
readonly paramVariable: "param-variable";
|
|
528
|
+
readonly timeDependent: "time-dependent";
|
|
529
|
+
readonly adaptive: "adaptive";
|
|
530
|
+
readonly expectedLength: "expected-length";
|
|
531
|
+
readonly patternMask: "pattern-mask";
|
|
532
|
+
readonly placeholderText: "placeholder-text";
|
|
533
|
+
readonly minStrings: "min-strings";
|
|
534
|
+
readonly maxStrings: "max-strings";
|
|
535
|
+
readonly fieldIdentifier: "field-identifier";
|
|
536
|
+
readonly toleranceMode: "tolerance-mode";
|
|
537
|
+
readonly dataCatalogIdref: "data-catalog-idref";
|
|
538
|
+
};
|