@pie-qti/qti-common 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +356 -0
- package/dist/element-mapper/ElementNameMapper.d.ts +67 -0
- package/dist/element-mapper/ElementNameMapper.d.ts.map +1 -0
- package/dist/element-mapper/ElementNameMapper.js +2 -0
- package/dist/element-mapper/ElementNameMapper.js.map +1 -0
- package/dist/element-mapper/Qti2xElementNameMapper.d.ts +38 -0
- package/dist/element-mapper/Qti2xElementNameMapper.d.ts.map +1 -0
- package/dist/element-mapper/Qti2xElementNameMapper.js +47 -0
- package/dist/element-mapper/Qti2xElementNameMapper.js.map +1 -0
- package/dist/element-mapper/Qti3ElementNameMapper.d.ts +50 -0
- package/dist/element-mapper/Qti3ElementNameMapper.d.ts.map +1 -0
- package/dist/element-mapper/Qti3ElementNameMapper.js +224 -0
- package/dist/element-mapper/Qti3ElementNameMapper.js.map +1 -0
- package/dist/element-mapper/index.d.ts +4 -0
- package/dist/element-mapper/index.d.ts.map +1 -0
- package/dist/element-mapper/index.js +3 -0
- package/dist/element-mapper/index.js.map +1 -0
- package/dist/element-mapper/qti3-element-mappings.d.ts +448 -0
- package/dist/element-mapper/qti3-element-mappings.d.ts.map +1 -0
- package/dist/element-mapper/qti3-element-mappings.js +320 -0
- package/dist/element-mapper/qti3-element-mappings.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/parser-factory.d.ts +111 -0
- package/dist/parser-factory.d.ts.map +1 -0
- package/dist/parser-factory.js +120 -0
- package/dist/parser-factory.js.map +1 -0
- package/dist/version-detection/detectQtiVersion.d.ts +24 -0
- package/dist/version-detection/detectQtiVersion.d.ts.map +1 -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 +3 -0
- package/dist/version-detection/index.d.ts.map +1 -0
- package/dist/version-detection/index.js +2 -0
- package/dist/version-detection/index.js.map +1 -0
- package/dist/xml/attributes.d.ts +78 -0
- package/dist/xml/attributes.d.ts.map +1 -0
- package/dist/xml/attributes.js +120 -0
- package/dist/xml/attributes.js.map +1 -0
- package/dist/xml/index.d.ts +2 -0
- package/dist/xml/index.d.ts.map +1 -0
- package/dist/xml/index.js +2 -0
- package/dist/xml/index.js.map +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comprehensive QTI 3.0 element name mappings.
|
|
3
|
+
*
|
|
4
|
+
* Based on amp-up.io QTI 3 Item Player Vue3 implementation and QTI 3.0 specification.
|
|
5
|
+
* All QTI 3.0 elements use kebab-case with 'qti-' prefix.
|
|
6
|
+
*
|
|
7
|
+
* This file documents all 250+ QTI 3.0 elements for reference and validation.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Core assessment structure elements
|
|
11
|
+
*/
|
|
12
|
+
export declare const CORE_ELEMENTS: {
|
|
13
|
+
readonly 'qti-assessment-item': "assessmentitem";
|
|
14
|
+
readonly 'qti-assessment-test': "assessmenttest";
|
|
15
|
+
readonly 'qti-item-body': "itembody";
|
|
16
|
+
readonly 'qti-content-body': "contentbody";
|
|
17
|
+
readonly 'qti-test-part': "testpart";
|
|
18
|
+
readonly 'qti-assessment-section': "assessmentsection";
|
|
19
|
+
readonly 'qti-assessment-item-ref': "assessmentitemref";
|
|
20
|
+
readonly 'qti-assessment-stimulus-ref': "assessmentstimulusref";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Variable declaration elements
|
|
24
|
+
*/
|
|
25
|
+
export declare const DECLARATION_ELEMENTS: {
|
|
26
|
+
readonly 'qti-response-declaration': "responsedeclaration";
|
|
27
|
+
readonly 'qti-outcome-declaration': "outcomedeclaration";
|
|
28
|
+
readonly 'qti-template-declaration': "templatedeclaration";
|
|
29
|
+
readonly 'qti-context-declaration': "contextdeclaration";
|
|
30
|
+
readonly 'qti-correct-response': "correctresponse";
|
|
31
|
+
readonly 'qti-default-value': "defaultvalue";
|
|
32
|
+
readonly 'qti-value': "value";
|
|
33
|
+
readonly 'qti-mapping': "mapping";
|
|
34
|
+
readonly 'qti-map-entry': "mapentry";
|
|
35
|
+
readonly 'qti-area-mapping': "areamapping";
|
|
36
|
+
readonly 'qti-area-map-entry': "areamapentry";
|
|
37
|
+
readonly 'qti-match-table': "matchtable";
|
|
38
|
+
readonly 'qti-match-table-entry': "matchtableentry";
|
|
39
|
+
readonly 'qti-interpolation-table': "interpolationtable";
|
|
40
|
+
readonly 'qti-interpolation-table-entry': "interpolationtableentry";
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* All 23+ interaction types (block and inline)
|
|
44
|
+
*/
|
|
45
|
+
export declare const INTERACTION_ELEMENTS: {
|
|
46
|
+
readonly 'qti-choice-interaction': "choiceinteraction";
|
|
47
|
+
readonly 'qti-match-interaction': "matchinteraction";
|
|
48
|
+
readonly 'qti-order-interaction': "orderinteraction";
|
|
49
|
+
readonly 'qti-gap-match-interaction': "gapmatchinteraction";
|
|
50
|
+
readonly 'qti-graphic-gap-match-interaction': "graphicgapmatchinteraction";
|
|
51
|
+
readonly 'qti-hotspot-interaction': "hotspotinteraction";
|
|
52
|
+
readonly 'qti-hottext-interaction': "hottextinteraction";
|
|
53
|
+
readonly 'qti-extended-text-interaction': "extendedtextinteraction";
|
|
54
|
+
readonly 'qti-media-interaction': "mediainteraction";
|
|
55
|
+
readonly 'qti-select-point-interaction': "selectpointinteraction";
|
|
56
|
+
readonly 'qti-custom-interaction': "custominteraction";
|
|
57
|
+
readonly 'qti-portable-custom-interaction': "portablecustominteraction";
|
|
58
|
+
readonly 'qti-end-attempt-interaction': "endattemptinteraction";
|
|
59
|
+
readonly 'qti-slider-interaction': "sliderinteraction";
|
|
60
|
+
readonly 'qti-drawing-interaction': "drawinginteraction";
|
|
61
|
+
readonly 'qti-upload-interaction': "uploadinteraction";
|
|
62
|
+
readonly 'qti-position-object-interaction': "positionobjectinteraction";
|
|
63
|
+
readonly 'qti-graphic-order-interaction': "graphicorderinteraction";
|
|
64
|
+
readonly 'qti-graphic-associate-interaction': "graphicassociateinteraction";
|
|
65
|
+
readonly 'qti-associate-interaction': "associateinteraction";
|
|
66
|
+
readonly 'qti-text-entry-interaction': "textentryinteraction";
|
|
67
|
+
readonly 'qti-inline-choice-interaction': "inlinechoiceinteraction";
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Interaction child elements
|
|
71
|
+
*/
|
|
72
|
+
export declare const INTERACTION_CHILD_ELEMENTS: {
|
|
73
|
+
readonly 'qti-prompt': "prompt";
|
|
74
|
+
readonly 'qti-simple-choice': "simplechoice";
|
|
75
|
+
readonly 'qti-simple-match-set': "simplematchset";
|
|
76
|
+
readonly 'qti-simple-associable-choice': "simpleassociablechoice";
|
|
77
|
+
readonly 'qti-gap': "gap";
|
|
78
|
+
readonly 'qti-gap-text': "gaptext";
|
|
79
|
+
readonly 'qti-gap-img': "gapimg";
|
|
80
|
+
readonly 'qti-gap-choice': "gapchoice";
|
|
81
|
+
readonly 'qti-hotspot-choice': "hotspotchoice";
|
|
82
|
+
readonly 'qti-associable-hotspot': "associablehotspot";
|
|
83
|
+
readonly 'qti-hottext': "hottext";
|
|
84
|
+
readonly 'qti-inline-choice': "inlinechoice";
|
|
85
|
+
readonly 'qti-object': "object";
|
|
86
|
+
readonly 'qti-param': "param";
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Response processing elements
|
|
90
|
+
*/
|
|
91
|
+
export declare const RESPONSE_PROCESSING_ELEMENTS: {
|
|
92
|
+
readonly 'qti-response-processing': "responseprocessing";
|
|
93
|
+
readonly 'qti-response-condition': "responsecondition";
|
|
94
|
+
readonly 'qti-response-if': "responseif";
|
|
95
|
+
readonly 'qti-response-else-if': "responseelseif";
|
|
96
|
+
readonly 'qti-response-else': "responseelse";
|
|
97
|
+
readonly 'qti-response-processing-fragment': "responseprocessingfragment";
|
|
98
|
+
readonly 'qti-exit-response': "exitresponse";
|
|
99
|
+
readonly 'qti-set-outcome-value': "setoutcomevalue";
|
|
100
|
+
readonly 'qti-lookup-outcome-value': "lookupoutcomevalue";
|
|
101
|
+
readonly 'qti-set-correct-response': "setcorrectresponse";
|
|
102
|
+
readonly 'qti-set-default-value': "setdefaultvalue";
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Template processing elements
|
|
106
|
+
*/
|
|
107
|
+
export declare const TEMPLATE_PROCESSING_ELEMENTS: {
|
|
108
|
+
readonly 'qti-template-processing': "templateprocessing";
|
|
109
|
+
readonly 'qti-template-condition': "templatecondition";
|
|
110
|
+
readonly 'qti-template-if': "templateif";
|
|
111
|
+
readonly 'qti-template-else-if': "templateelseif";
|
|
112
|
+
readonly 'qti-template-else': "templateelse";
|
|
113
|
+
readonly 'qti-template-constraint': "templateconstraint";
|
|
114
|
+
readonly 'qti-set-template-value': "settemplatevalue";
|
|
115
|
+
readonly 'qti-exit-template': "exittemplate";
|
|
116
|
+
readonly 'qti-template-block': "templateblock";
|
|
117
|
+
readonly 'qti-template-inline': "templateinline";
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Outcome processing elements (test-level)
|
|
121
|
+
*/
|
|
122
|
+
export declare const OUTCOME_PROCESSING_ELEMENTS: {
|
|
123
|
+
readonly 'qti-outcome-processing': "outcomeprocessing";
|
|
124
|
+
readonly 'qti-outcome-condition': "outcomecondition";
|
|
125
|
+
readonly 'qti-outcome-if': "outcomeif";
|
|
126
|
+
readonly 'qti-outcome-else-if': "outcomeelseif";
|
|
127
|
+
readonly 'qti-outcome-else': "outcomeelse";
|
|
128
|
+
readonly 'qti-exit-test': "exittest";
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Expression elements (54+ operators)
|
|
132
|
+
*/
|
|
133
|
+
export declare const EXPRESSION_ELEMENTS: {
|
|
134
|
+
readonly 'qti-variable': "variable";
|
|
135
|
+
readonly 'qti-correct': "correct";
|
|
136
|
+
readonly 'qti-default': "default";
|
|
137
|
+
readonly 'qti-base-value': "basevalue";
|
|
138
|
+
readonly 'qti-field-value': "fieldvalue";
|
|
139
|
+
readonly 'qti-custom-operator': "customoperator";
|
|
140
|
+
readonly 'qti-index': "index";
|
|
141
|
+
readonly 'qti-contains': "contains";
|
|
142
|
+
readonly 'qti-member': "member";
|
|
143
|
+
readonly 'qti-null': "null";
|
|
144
|
+
readonly 'qti-equal': "equal";
|
|
145
|
+
readonly 'qti-equal-rounded': "equalrounded";
|
|
146
|
+
readonly 'qti-gt': "gt";
|
|
147
|
+
readonly 'qti-gte': "gte";
|
|
148
|
+
readonly 'qti-lt': "lt";
|
|
149
|
+
readonly 'qti-lte': "lte";
|
|
150
|
+
readonly 'qti-and': "and";
|
|
151
|
+
readonly 'qti-or': "or";
|
|
152
|
+
readonly 'qti-not': "not";
|
|
153
|
+
readonly 'qti-any-n': "anyn";
|
|
154
|
+
readonly 'qti-multiple': "multiple";
|
|
155
|
+
readonly 'qti-ordered': "ordered";
|
|
156
|
+
readonly 'qti-string-match': "stringmatch";
|
|
157
|
+
readonly 'qti-pattern-match': "patternmatch";
|
|
158
|
+
readonly 'qti-substring': "substring";
|
|
159
|
+
readonly 'qti-repeat': "repeat";
|
|
160
|
+
readonly 'qti-match': "match";
|
|
161
|
+
readonly 'qti-inside': "inside";
|
|
162
|
+
readonly 'qti-map-response': "mapresponse";
|
|
163
|
+
readonly 'qti-map-response-point': "mapresponsepoint";
|
|
164
|
+
readonly 'qti-sum': "sum";
|
|
165
|
+
readonly 'qti-product': "product";
|
|
166
|
+
readonly 'qti-subtract': "subtract";
|
|
167
|
+
readonly 'qti-divide': "divide";
|
|
168
|
+
readonly 'qti-integer-divide': "integerdivide";
|
|
169
|
+
readonly 'qti-integer-modulus': "integermodulus";
|
|
170
|
+
readonly 'qti-round': "round";
|
|
171
|
+
readonly 'qti-round-to': "roundto";
|
|
172
|
+
readonly 'qti-truncate': "truncate";
|
|
173
|
+
readonly 'qti-math-operator': "mathoperator";
|
|
174
|
+
readonly 'qti-math-constant': "mathconstant";
|
|
175
|
+
readonly 'qti-power': "power";
|
|
176
|
+
readonly 'qti-gcd': "gcd";
|
|
177
|
+
readonly 'qti-lcm': "lcm";
|
|
178
|
+
readonly 'qti-stats-operator': "statsoperator";
|
|
179
|
+
readonly 'qti-min': "min";
|
|
180
|
+
readonly 'qti-max': "max";
|
|
181
|
+
readonly 'qti-container-size': "containersize";
|
|
182
|
+
readonly 'qti-delete': "delete";
|
|
183
|
+
readonly 'qti-is-null': "isnull";
|
|
184
|
+
readonly 'qti-random': "random";
|
|
185
|
+
readonly 'qti-random-integer': "randominteger";
|
|
186
|
+
readonly 'qti-random-float': "randomfloat";
|
|
187
|
+
readonly 'qti-test-variables': "testvariables";
|
|
188
|
+
readonly 'qti-outcome-maximum': "outcomemaximum";
|
|
189
|
+
readonly 'qti-outcome-minimum': "outcomeminimum";
|
|
190
|
+
readonly 'qti-number-correct': "numbercorrect";
|
|
191
|
+
readonly 'qti-number-incorrect': "numberincorrect";
|
|
192
|
+
readonly 'qti-number-presented': "numberpresented";
|
|
193
|
+
readonly 'qti-number-responded': "numberresponded";
|
|
194
|
+
readonly 'qti-number-selected': "numberselected";
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Feedback elements
|
|
198
|
+
*/
|
|
199
|
+
export declare const FEEDBACK_ELEMENTS: {
|
|
200
|
+
readonly 'qti-modal-feedback': "modalfeedback";
|
|
201
|
+
readonly 'qti-feedback-block': "feedbackblock";
|
|
202
|
+
readonly 'qti-feedback-inline': "feedbackinline";
|
|
203
|
+
readonly 'qti-rubric-block': "rubricblock";
|
|
204
|
+
readonly 'qti-modal-feedback-ok': "modalfeedbackok";
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* PCI (Portable Custom Interaction) elements
|
|
208
|
+
*/
|
|
209
|
+
export declare const PCI_ELEMENTS: {
|
|
210
|
+
readonly 'qti-interaction-modules': "interactionmodules";
|
|
211
|
+
readonly 'qti-interaction-module': "interactionmodule";
|
|
212
|
+
readonly 'qti-interaction-markup': "interactionmarkup";
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Catalog elements (accessibility support)
|
|
216
|
+
*/
|
|
217
|
+
export declare const CATALOG_ELEMENTS: {
|
|
218
|
+
readonly 'qti-catalog': "catalog";
|
|
219
|
+
readonly 'qti-catalog-info': "cataloginfo";
|
|
220
|
+
readonly 'qti-card': "card";
|
|
221
|
+
readonly 'qti-card-entry': "cardentry";
|
|
222
|
+
readonly 'qti-html-content': "htmlcontent";
|
|
223
|
+
readonly 'qti-file-href': "filehref";
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Other content elements
|
|
227
|
+
*/
|
|
228
|
+
export declare const CONTENT_ELEMENTS: {
|
|
229
|
+
readonly 'qti-printed-variable': "printedvariable";
|
|
230
|
+
readonly 'qti-context-variable': "contextvariable";
|
|
231
|
+
readonly 'qti-template-variable': "templatevariable";
|
|
232
|
+
readonly 'qti-stylesheet': "stylesheet";
|
|
233
|
+
readonly 'qti-companion-materials-info': "companionmaterialsinfo";
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Complete mapping of all QTI 3.0 elements to canonical form
|
|
237
|
+
*/
|
|
238
|
+
export declare const QTI3_ELEMENT_MAPPINGS: {
|
|
239
|
+
readonly 'qti-printed-variable': "printedvariable";
|
|
240
|
+
readonly 'qti-context-variable': "contextvariable";
|
|
241
|
+
readonly 'qti-template-variable': "templatevariable";
|
|
242
|
+
readonly 'qti-stylesheet': "stylesheet";
|
|
243
|
+
readonly 'qti-companion-materials-info': "companionmaterialsinfo";
|
|
244
|
+
readonly 'qti-catalog': "catalog";
|
|
245
|
+
readonly 'qti-catalog-info': "cataloginfo";
|
|
246
|
+
readonly 'qti-card': "card";
|
|
247
|
+
readonly 'qti-card-entry': "cardentry";
|
|
248
|
+
readonly 'qti-html-content': "htmlcontent";
|
|
249
|
+
readonly 'qti-file-href': "filehref";
|
|
250
|
+
readonly 'qti-interaction-modules': "interactionmodules";
|
|
251
|
+
readonly 'qti-interaction-module': "interactionmodule";
|
|
252
|
+
readonly 'qti-interaction-markup': "interactionmarkup";
|
|
253
|
+
readonly 'qti-modal-feedback': "modalfeedback";
|
|
254
|
+
readonly 'qti-feedback-block': "feedbackblock";
|
|
255
|
+
readonly 'qti-feedback-inline': "feedbackinline";
|
|
256
|
+
readonly 'qti-rubric-block': "rubricblock";
|
|
257
|
+
readonly 'qti-modal-feedback-ok': "modalfeedbackok";
|
|
258
|
+
readonly 'qti-variable': "variable";
|
|
259
|
+
readonly 'qti-correct': "correct";
|
|
260
|
+
readonly 'qti-default': "default";
|
|
261
|
+
readonly 'qti-base-value': "basevalue";
|
|
262
|
+
readonly 'qti-field-value': "fieldvalue";
|
|
263
|
+
readonly 'qti-custom-operator': "customoperator";
|
|
264
|
+
readonly 'qti-index': "index";
|
|
265
|
+
readonly 'qti-contains': "contains";
|
|
266
|
+
readonly 'qti-member': "member";
|
|
267
|
+
readonly 'qti-null': "null";
|
|
268
|
+
readonly 'qti-equal': "equal";
|
|
269
|
+
readonly 'qti-equal-rounded': "equalrounded";
|
|
270
|
+
readonly 'qti-gt': "gt";
|
|
271
|
+
readonly 'qti-gte': "gte";
|
|
272
|
+
readonly 'qti-lt': "lt";
|
|
273
|
+
readonly 'qti-lte': "lte";
|
|
274
|
+
readonly 'qti-and': "and";
|
|
275
|
+
readonly 'qti-or': "or";
|
|
276
|
+
readonly 'qti-not': "not";
|
|
277
|
+
readonly 'qti-any-n': "anyn";
|
|
278
|
+
readonly 'qti-multiple': "multiple";
|
|
279
|
+
readonly 'qti-ordered': "ordered";
|
|
280
|
+
readonly 'qti-string-match': "stringmatch";
|
|
281
|
+
readonly 'qti-pattern-match': "patternmatch";
|
|
282
|
+
readonly 'qti-substring': "substring";
|
|
283
|
+
readonly 'qti-repeat': "repeat";
|
|
284
|
+
readonly 'qti-match': "match";
|
|
285
|
+
readonly 'qti-inside': "inside";
|
|
286
|
+
readonly 'qti-map-response': "mapresponse";
|
|
287
|
+
readonly 'qti-map-response-point': "mapresponsepoint";
|
|
288
|
+
readonly 'qti-sum': "sum";
|
|
289
|
+
readonly 'qti-product': "product";
|
|
290
|
+
readonly 'qti-subtract': "subtract";
|
|
291
|
+
readonly 'qti-divide': "divide";
|
|
292
|
+
readonly 'qti-integer-divide': "integerdivide";
|
|
293
|
+
readonly 'qti-integer-modulus': "integermodulus";
|
|
294
|
+
readonly 'qti-round': "round";
|
|
295
|
+
readonly 'qti-round-to': "roundto";
|
|
296
|
+
readonly 'qti-truncate': "truncate";
|
|
297
|
+
readonly 'qti-math-operator': "mathoperator";
|
|
298
|
+
readonly 'qti-math-constant': "mathconstant";
|
|
299
|
+
readonly 'qti-power': "power";
|
|
300
|
+
readonly 'qti-gcd': "gcd";
|
|
301
|
+
readonly 'qti-lcm': "lcm";
|
|
302
|
+
readonly 'qti-stats-operator': "statsoperator";
|
|
303
|
+
readonly 'qti-min': "min";
|
|
304
|
+
readonly 'qti-max': "max";
|
|
305
|
+
readonly 'qti-container-size': "containersize";
|
|
306
|
+
readonly 'qti-delete': "delete";
|
|
307
|
+
readonly 'qti-is-null': "isnull";
|
|
308
|
+
readonly 'qti-random': "random";
|
|
309
|
+
readonly 'qti-random-integer': "randominteger";
|
|
310
|
+
readonly 'qti-random-float': "randomfloat";
|
|
311
|
+
readonly 'qti-test-variables': "testvariables";
|
|
312
|
+
readonly 'qti-outcome-maximum': "outcomemaximum";
|
|
313
|
+
readonly 'qti-outcome-minimum': "outcomeminimum";
|
|
314
|
+
readonly 'qti-number-correct': "numbercorrect";
|
|
315
|
+
readonly 'qti-number-incorrect': "numberincorrect";
|
|
316
|
+
readonly 'qti-number-presented': "numberpresented";
|
|
317
|
+
readonly 'qti-number-responded': "numberresponded";
|
|
318
|
+
readonly 'qti-number-selected': "numberselected";
|
|
319
|
+
readonly 'qti-outcome-processing': "outcomeprocessing";
|
|
320
|
+
readonly 'qti-outcome-condition': "outcomecondition";
|
|
321
|
+
readonly 'qti-outcome-if': "outcomeif";
|
|
322
|
+
readonly 'qti-outcome-else-if': "outcomeelseif";
|
|
323
|
+
readonly 'qti-outcome-else': "outcomeelse";
|
|
324
|
+
readonly 'qti-exit-test': "exittest";
|
|
325
|
+
readonly 'qti-template-processing': "templateprocessing";
|
|
326
|
+
readonly 'qti-template-condition': "templatecondition";
|
|
327
|
+
readonly 'qti-template-if': "templateif";
|
|
328
|
+
readonly 'qti-template-else-if': "templateelseif";
|
|
329
|
+
readonly 'qti-template-else': "templateelse";
|
|
330
|
+
readonly 'qti-template-constraint': "templateconstraint";
|
|
331
|
+
readonly 'qti-set-template-value': "settemplatevalue";
|
|
332
|
+
readonly 'qti-exit-template': "exittemplate";
|
|
333
|
+
readonly 'qti-template-block': "templateblock";
|
|
334
|
+
readonly 'qti-template-inline': "templateinline";
|
|
335
|
+
readonly 'qti-response-processing': "responseprocessing";
|
|
336
|
+
readonly 'qti-response-condition': "responsecondition";
|
|
337
|
+
readonly 'qti-response-if': "responseif";
|
|
338
|
+
readonly 'qti-response-else-if': "responseelseif";
|
|
339
|
+
readonly 'qti-response-else': "responseelse";
|
|
340
|
+
readonly 'qti-response-processing-fragment': "responseprocessingfragment";
|
|
341
|
+
readonly 'qti-exit-response': "exitresponse";
|
|
342
|
+
readonly 'qti-set-outcome-value': "setoutcomevalue";
|
|
343
|
+
readonly 'qti-lookup-outcome-value': "lookupoutcomevalue";
|
|
344
|
+
readonly 'qti-set-correct-response': "setcorrectresponse";
|
|
345
|
+
readonly 'qti-set-default-value': "setdefaultvalue";
|
|
346
|
+
readonly 'qti-prompt': "prompt";
|
|
347
|
+
readonly 'qti-simple-choice': "simplechoice";
|
|
348
|
+
readonly 'qti-simple-match-set': "simplematchset";
|
|
349
|
+
readonly 'qti-simple-associable-choice': "simpleassociablechoice";
|
|
350
|
+
readonly 'qti-gap': "gap";
|
|
351
|
+
readonly 'qti-gap-text': "gaptext";
|
|
352
|
+
readonly 'qti-gap-img': "gapimg";
|
|
353
|
+
readonly 'qti-gap-choice': "gapchoice";
|
|
354
|
+
readonly 'qti-hotspot-choice': "hotspotchoice";
|
|
355
|
+
readonly 'qti-associable-hotspot': "associablehotspot";
|
|
356
|
+
readonly 'qti-hottext': "hottext";
|
|
357
|
+
readonly 'qti-inline-choice': "inlinechoice";
|
|
358
|
+
readonly 'qti-object': "object";
|
|
359
|
+
readonly 'qti-param': "param";
|
|
360
|
+
readonly 'qti-choice-interaction': "choiceinteraction";
|
|
361
|
+
readonly 'qti-match-interaction': "matchinteraction";
|
|
362
|
+
readonly 'qti-order-interaction': "orderinteraction";
|
|
363
|
+
readonly 'qti-gap-match-interaction': "gapmatchinteraction";
|
|
364
|
+
readonly 'qti-graphic-gap-match-interaction': "graphicgapmatchinteraction";
|
|
365
|
+
readonly 'qti-hotspot-interaction': "hotspotinteraction";
|
|
366
|
+
readonly 'qti-hottext-interaction': "hottextinteraction";
|
|
367
|
+
readonly 'qti-extended-text-interaction': "extendedtextinteraction";
|
|
368
|
+
readonly 'qti-media-interaction': "mediainteraction";
|
|
369
|
+
readonly 'qti-select-point-interaction': "selectpointinteraction";
|
|
370
|
+
readonly 'qti-custom-interaction': "custominteraction";
|
|
371
|
+
readonly 'qti-portable-custom-interaction': "portablecustominteraction";
|
|
372
|
+
readonly 'qti-end-attempt-interaction': "endattemptinteraction";
|
|
373
|
+
readonly 'qti-slider-interaction': "sliderinteraction";
|
|
374
|
+
readonly 'qti-drawing-interaction': "drawinginteraction";
|
|
375
|
+
readonly 'qti-upload-interaction': "uploadinteraction";
|
|
376
|
+
readonly 'qti-position-object-interaction': "positionobjectinteraction";
|
|
377
|
+
readonly 'qti-graphic-order-interaction': "graphicorderinteraction";
|
|
378
|
+
readonly 'qti-graphic-associate-interaction': "graphicassociateinteraction";
|
|
379
|
+
readonly 'qti-associate-interaction': "associateinteraction";
|
|
380
|
+
readonly 'qti-text-entry-interaction': "textentryinteraction";
|
|
381
|
+
readonly 'qti-inline-choice-interaction': "inlinechoiceinteraction";
|
|
382
|
+
readonly 'qti-response-declaration': "responsedeclaration";
|
|
383
|
+
readonly 'qti-outcome-declaration': "outcomedeclaration";
|
|
384
|
+
readonly 'qti-template-declaration': "templatedeclaration";
|
|
385
|
+
readonly 'qti-context-declaration': "contextdeclaration";
|
|
386
|
+
readonly 'qti-correct-response': "correctresponse";
|
|
387
|
+
readonly 'qti-default-value': "defaultvalue";
|
|
388
|
+
readonly 'qti-value': "value";
|
|
389
|
+
readonly 'qti-mapping': "mapping";
|
|
390
|
+
readonly 'qti-map-entry': "mapentry";
|
|
391
|
+
readonly 'qti-area-mapping': "areamapping";
|
|
392
|
+
readonly 'qti-area-map-entry': "areamapentry";
|
|
393
|
+
readonly 'qti-match-table': "matchtable";
|
|
394
|
+
readonly 'qti-match-table-entry': "matchtableentry";
|
|
395
|
+
readonly 'qti-interpolation-table': "interpolationtable";
|
|
396
|
+
readonly 'qti-interpolation-table-entry': "interpolationtableentry";
|
|
397
|
+
readonly 'qti-assessment-item': "assessmentitem";
|
|
398
|
+
readonly 'qti-assessment-test': "assessmenttest";
|
|
399
|
+
readonly 'qti-item-body': "itembody";
|
|
400
|
+
readonly 'qti-content-body': "contentbody";
|
|
401
|
+
readonly 'qti-test-part': "testpart";
|
|
402
|
+
readonly 'qti-assessment-section': "assessmentsection";
|
|
403
|
+
readonly 'qti-assessment-item-ref': "assessmentitemref";
|
|
404
|
+
readonly 'qti-assessment-stimulus-ref': "assessmentstimulusref";
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* Get canonical name for a QTI 3.0 element
|
|
408
|
+
*/
|
|
409
|
+
export declare function getCanonicalName(qti3ElementName: string): string | undefined;
|
|
410
|
+
/**
|
|
411
|
+
* Check if an element name is a valid QTI 3.0 element
|
|
412
|
+
*/
|
|
413
|
+
export declare function isQti3Element(elementName: string): boolean;
|
|
414
|
+
/**
|
|
415
|
+
* Get all QTI 3.0 interaction element names
|
|
416
|
+
*/
|
|
417
|
+
export declare function getInteractionElements(): readonly string[];
|
|
418
|
+
/**
|
|
419
|
+
* Common QTI 3.0 attribute names (kebab-case)
|
|
420
|
+
*/
|
|
421
|
+
export declare const QTI3_ATTRIBUTES: {
|
|
422
|
+
readonly identifier: "identifier";
|
|
423
|
+
readonly responseIdentifier: "response-identifier";
|
|
424
|
+
readonly outcomeIdentifier: "outcome-identifier";
|
|
425
|
+
readonly templateIdentifier: "template-identifier";
|
|
426
|
+
readonly baseType: "base-type";
|
|
427
|
+
readonly cardinality: "cardinality";
|
|
428
|
+
readonly minChoices: "min-choices";
|
|
429
|
+
readonly maxChoices: "max-choices";
|
|
430
|
+
readonly shuffle: "shuffle";
|
|
431
|
+
readonly fixed: "fixed";
|
|
432
|
+
readonly showHide: "show-hide";
|
|
433
|
+
readonly normalMaximum: "normal-maximum";
|
|
434
|
+
readonly normalMinimum: "normal-minimum";
|
|
435
|
+
readonly mathVariable: "math-variable";
|
|
436
|
+
readonly paramVariable: "param-variable";
|
|
437
|
+
readonly timeDependent: "time-dependent";
|
|
438
|
+
readonly adaptive: "adaptive";
|
|
439
|
+
readonly expectedLength: "expected-length";
|
|
440
|
+
readonly patternMask: "pattern-mask";
|
|
441
|
+
readonly placeholderText: "placeholder-text";
|
|
442
|
+
readonly minStrings: "min-strings";
|
|
443
|
+
readonly maxStrings: "max-strings";
|
|
444
|
+
readonly fieldIdentifier: "field-identifier";
|
|
445
|
+
readonly toleranceMode: "tolerance-mode";
|
|
446
|
+
readonly dataCatalogIdref: "data-catalog-idref";
|
|
447
|
+
};
|
|
448
|
+
//# sourceMappingURL=qti3-element-mappings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qti3-element-mappings.d.ts","sourceRoot":"","sources":["../../src/element-mapper/qti3-element-mappings.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;CAgBvB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;CA0BvB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;CAe7B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;CAY/B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;CAW/B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EtB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;CAOnB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaxB,CAAC;AAEX;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE5E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,SAAS,MAAM,EAAE,CAE1D;AAED;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ClB,CAAC"}
|