@citolab/qti-components 6.0.2 → 6.0.3-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/dist/ExpressionResult-b1ac7b27.d.ts +23 -0
- package/dist/chunk-DLLHO3W2.js +1 -0
- package/dist/chunk-M3YT56HW.js +1437 -0
- package/dist/custom-elements.json +4123 -17029
- package/dist/index.js +2237 -0
- package/dist/qti-assessment-item-219cef9e.d.ts +102 -0
- package/dist/qti-components/index.d.ts +184 -335
- package/dist/qti-components/index.js +146 -104
- package/dist/qti-components.js +13502 -0
- package/dist/qti-item/index.d.ts +13 -6
- package/dist/qti-item/index.js +1 -17
- package/dist/qti-item-react/index.d.ts +19 -0
- package/dist/qti-item-react/index.js +1 -0
- package/dist/qti-rule-5fe4f91e.d.ts +303 -0
- package/dist/qti-test/index.d.ts +2 -2
- package/dist/qti-test/index.js +13 -11
- package/dist/themes/qti.css +142 -112
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
- package/dist/ExpressionResult-2192c3d8.d.ts +0 -33
- package/dist/chunk-2TX3IEPD.cjs +0 -1
- package/dist/chunk-HOQW4KDA.cjs +0 -1
- package/dist/chunk-JLKCCEGG.cjs +0 -1
- package/dist/chunk-JQY6IKDF.js +0 -1
- package/dist/chunk-L6436D6O.js +0 -1
- package/dist/qti-assessment-item-e9f437d6.d.ts +0 -117
- package/dist/qti-components/index.cjs +0 -403
- package/dist/qti-item/index.cjs +0 -17
- package/dist/qti-test/index.cjs +0 -12
- package/dist/qti-transform/index.cjs +0 -102
|
@@ -1,152 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export { O as
|
|
1
|
+
import { B as BaseType, C as Cardinality, a as Calculate } from '../ExpressionResult-b1ac7b27.js';
|
|
2
|
+
export { I as InputResponseFormat, M as Multiple, O as Ordered, R as ResponseInteraction, d as directedPair, f as float, i as integer } from '../ExpressionResult-b1ac7b27.js';
|
|
3
|
+
import { I as Interaction, C as Choices, Q as QtiRule, a as QtiChoice } from '../qti-rule-5fe4f91e.js';
|
|
4
|
+
export { b as InteractionChangedDetails, O as OutcomeChangedDetails, j as QtiChoiceElementSelected, k as QtiHottext, c as QtiInteractionChanged, i as QtiInteractionResponse, h as QtiLooseChoice, q as QtiOutcomeChanged, f as QtiRegisterChoice, g as QtiRegisterHotspot, e as QtiRegisterInteraction, d as QtiRegisterVariable, l as QtiResponseProcessing } from '../qti-rule-5fe4f91e.js';
|
|
5
|
+
import { Q as QtiAssessmentItem, R as ResponseVariable } from '../qti-assessment-item-219cef9e.js';
|
|
6
|
+
export { O as OutcomeVariable, a as QtiMapping } from '../qti-assessment-item-219cef9e.js';
|
|
5
7
|
import * as lit from 'lit';
|
|
6
|
-
import { LitElement
|
|
8
|
+
import { LitElement } from 'lit';
|
|
7
9
|
import * as lit_html from 'lit-html';
|
|
8
10
|
import { ContextConsumer } from '@lit-labs/context';
|
|
9
11
|
import * as lit_html_directives_ref from 'lit-html/directives/ref';
|
|
10
12
|
|
|
11
|
-
interface OutcomeChangedDetails {
|
|
12
|
-
item: string;
|
|
13
|
-
outcomeIdentifier: string;
|
|
14
|
-
value: ResponseType$1;
|
|
15
|
-
}
|
|
16
|
-
type InteractionChangedDetails = ResponseInteraction<QtiVariableJSON>;
|
|
17
|
-
|
|
18
|
-
type QtiOutcomeChanged = CustomEvent<{
|
|
19
|
-
item: string;
|
|
20
|
-
outcomeIdentifier: string;
|
|
21
|
-
value: ResponseType$1;
|
|
22
|
-
}>;
|
|
23
|
-
declare global {
|
|
24
|
-
interface GlobalEventHandlersEventMap {
|
|
25
|
-
'qti-outcome-changed': QtiOutcomeChanged;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare namespace qtiOutcomeChanged {
|
|
30
|
-
export {
|
|
31
|
-
QtiOutcomeChanged as default,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
type QtiInteractionChanged = CustomEvent<{
|
|
36
|
-
item: string | null;
|
|
37
|
-
interaction: ResponseInteraction<QtiVariableJSON>;
|
|
38
|
-
}>;
|
|
39
|
-
declare global {
|
|
40
|
-
interface GlobalEventHandlersEventMap {
|
|
41
|
-
'qti-interaction-changed': QtiInteractionChanged;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare namespace qtiInteractionChanged {
|
|
46
|
-
export {
|
|
47
|
-
QtiInteractionChanged as default,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
type QtiRegisterVariable = CustomEvent<{
|
|
52
|
-
variable: VariableDeclaration;
|
|
53
|
-
}>;
|
|
54
|
-
declare global {
|
|
55
|
-
interface GlobalEventHandlersEventMap {
|
|
56
|
-
'qti-register-variable': QtiRegisterVariable;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
declare namespace qtiRegisterVariable {
|
|
61
|
-
export {
|
|
62
|
-
QtiRegisterVariable as default,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
type QtiRegisterInteraction = CustomEvent<Record<PropertyKey, never>>;
|
|
67
|
-
declare global {
|
|
68
|
-
interface GlobalEventHandlersEventMap {
|
|
69
|
-
'qti-register-interaction': QtiRegisterInteraction;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
declare namespace qtiRegisterInteraction {
|
|
74
|
-
export {
|
|
75
|
-
QtiRegisterInteraction as default,
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
type QtiRegisterChoice = CustomEvent<Record<PropertyKey, never>>;
|
|
80
|
-
declare global {
|
|
81
|
-
interface GlobalEventHandlersEventMap {
|
|
82
|
-
'qti-register-choice': QtiRegisterChoice;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare namespace qtiRegisterChoice {
|
|
87
|
-
export {
|
|
88
|
-
QtiRegisterChoice as default,
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
type QtiRegisterHotspot = CustomEvent<Record<PropertyKey, never>>;
|
|
93
|
-
declare global {
|
|
94
|
-
interface GlobalEventHandlersEventMap {
|
|
95
|
-
'qti-register-hotspot': QtiRegisterHotspot;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
declare namespace qtiRegisterHotspot {
|
|
100
|
-
export {
|
|
101
|
-
QtiRegisterHotspot as default,
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
type QtiLooseChoice = CustomEvent<Record<PropertyKey, never>>;
|
|
106
|
-
declare global {
|
|
107
|
-
interface GlobalEventHandlersEventMap {
|
|
108
|
-
'qti-loose-choice': QtiLooseChoice;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
declare namespace qtiLooseChoice {
|
|
113
|
-
export {
|
|
114
|
-
QtiLooseChoice as default,
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
type QtiInteractionResponse = CustomEvent<{
|
|
119
|
-
responseIdentifier: string;
|
|
120
|
-
responses: QtiVariableJSON;
|
|
121
|
-
}>;
|
|
122
|
-
declare global {
|
|
123
|
-
interface GlobalEventHandlersEventMap {
|
|
124
|
-
'qti-interaction-response': QtiInteractionResponse;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
declare namespace qtiInteractionResponse {
|
|
129
|
-
export {
|
|
130
|
-
QtiInteractionResponse as default,
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
type QtiChoiceElementSelected = CustomEvent<{
|
|
135
|
-
identifier: string;
|
|
136
|
-
checked: boolean;
|
|
137
|
-
}>;
|
|
138
|
-
declare global {
|
|
139
|
-
interface GlobalEventHandlersEventMap {
|
|
140
|
-
'qti-choice-element-selected': QtiChoiceElementSelected;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
declare namespace qtiChoiceElementSelected {
|
|
145
|
-
export {
|
|
146
|
-
QtiChoiceElementSelected as default,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
13
|
declare const Events: {
|
|
151
14
|
ON_OUTCOME_CHANGED: string;
|
|
152
15
|
ON_INTERACTION_CHANGED: string;
|
|
@@ -168,66 +31,12 @@ declare class QtiStylesheet extends LitElement {
|
|
|
168
31
|
disconnectedCallback(): void;
|
|
169
32
|
}
|
|
170
33
|
|
|
171
|
-
/**
|
|
172
|
-
* @summary 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.
|
|
173
|
-
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.sphpo6lu6zqi
|
|
174
|
-
* @status stable
|
|
175
|
-
* @since 4.0
|
|
176
|
-
*
|
|
177
|
-
* @slot - item body content.
|
|
178
|
-
* @slot qti-rubric-block - the qti rubric block is placed above the item
|
|
179
|
-
*
|
|
180
|
-
*/
|
|
181
|
-
declare class QtiItemBody extends LitElement {
|
|
182
|
-
static styles: CSSResultGroup;
|
|
183
|
-
render(): lit_html.TemplateResult<1>;
|
|
184
|
-
}
|
|
185
|
-
declare global {
|
|
186
|
-
interface HTMLElementTagNameMap {
|
|
187
|
-
'qti-item-body': QtiItemBody;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
34
|
declare class QtiPrompt extends LitElement {
|
|
192
35
|
render(): lit_html.TemplateResult<1>;
|
|
193
36
|
connectedCallback(): void;
|
|
194
37
|
}
|
|
195
38
|
|
|
196
|
-
|
|
197
|
-
* @summary qti-choice is used by qti-simple-choice, qti-inline-choice, qti-hottext, qti-hotspot-choice.
|
|
198
|
-
*
|
|
199
|
-
* @since 1.0
|
|
200
|
-
* @status stable
|
|
201
|
-
*
|
|
202
|
-
* @event qti-register-choice - register itselves on a qti-choice-interaction element.
|
|
203
|
-
* @event qti-loose-choice - de-register itselves on a qti-choice-interaction element.
|
|
204
|
-
* @event qti-choice-element-selected - Emitted when the choice is selected.
|
|
205
|
-
*
|
|
206
|
-
* @slot - The choices slot element
|
|
207
|
-
*/
|
|
208
|
-
declare abstract class QtiChoice extends QtiElement {
|
|
209
|
-
identifier: string;
|
|
210
|
-
tabindex: number | undefined;
|
|
211
|
-
disabled: boolean;
|
|
212
|
-
readonly: boolean;
|
|
213
|
-
checked: boolean;
|
|
214
|
-
handleDisabledChange(_: boolean, disabled: boolean): void;
|
|
215
|
-
connectedCallback(): void;
|
|
216
|
-
disconnectedCallback(): void;
|
|
217
|
-
reset(): void;
|
|
218
|
-
private _onKeyUp;
|
|
219
|
-
private _onClick;
|
|
220
|
-
private _toggleChecked;
|
|
221
|
-
validateAllProps(): boolean;
|
|
222
|
-
render(): lit_html.TemplateResult<2 | 1>;
|
|
223
|
-
}
|
|
224
|
-
declare global {
|
|
225
|
-
interface HTMLElementTagNameMap {
|
|
226
|
-
'qti-choice': QtiChoice;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
declare class QtiVariableDeclaration extends QtiElement {
|
|
39
|
+
declare class QtiVariableDeclaration extends LitElement {
|
|
231
40
|
render(): lit_html.TemplateResult<1>;
|
|
232
41
|
}
|
|
233
42
|
|
|
@@ -242,10 +51,11 @@ declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
|
242
51
|
|
|
243
52
|
declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
244
53
|
static get observedAttributes(): string[];
|
|
54
|
+
get interpolationTable(): any;
|
|
245
55
|
connectedCallback(): void;
|
|
246
56
|
}
|
|
247
57
|
|
|
248
|
-
declare class QtiCompanionMaterialsInfo extends
|
|
58
|
+
declare class QtiCompanionMaterialsInfo extends LitElement {
|
|
249
59
|
}
|
|
250
60
|
|
|
251
61
|
interface Logger {
|
|
@@ -253,7 +63,7 @@ interface Logger {
|
|
|
253
63
|
log: (msg: string) => void;
|
|
254
64
|
}
|
|
255
65
|
|
|
256
|
-
declare class qtiRubricBlock extends
|
|
66
|
+
declare class qtiRubricBlock extends LitElement {
|
|
257
67
|
id: any;
|
|
258
68
|
use: 'instructions' | 'scoring' | 'navigation';
|
|
259
69
|
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
@@ -267,7 +77,7 @@ declare class qtiRubricBlock extends QtiElement {
|
|
|
267
77
|
connectedCallback(): void;
|
|
268
78
|
}
|
|
269
79
|
|
|
270
|
-
declare class qtiContentBody extends
|
|
80
|
+
declare class qtiContentBody extends LitElement {
|
|
271
81
|
render(): lit_html.TemplateResult<1>;
|
|
272
82
|
}
|
|
273
83
|
|
|
@@ -278,7 +88,7 @@ declare abstract class QtiFeedback extends LitElement {
|
|
|
278
88
|
protected showStatus: string;
|
|
279
89
|
constructor();
|
|
280
90
|
connectedCallback(): void;
|
|
281
|
-
checkShowFeedback(outcomeIdentifier: string, outcomeValue:
|
|
91
|
+
checkShowFeedback(outcomeIdentifier: string, outcomeValue: number): void;
|
|
282
92
|
private showFeedback;
|
|
283
93
|
}
|
|
284
94
|
|
|
@@ -291,43 +101,12 @@ declare class QtiModalFeedback extends QtiFeedback {
|
|
|
291
101
|
render(): lit_html.TemplateResult<1>;
|
|
292
102
|
}
|
|
293
103
|
|
|
294
|
-
declare abstract class Interaction extends QtiElement {
|
|
295
|
-
responseIdentifier: string;
|
|
296
|
-
/** disabled should be exposed to the attributes and accessible as property */
|
|
297
|
-
disabled: boolean;
|
|
298
|
-
/** readonly should be exposed to the attributes and accessible as property */
|
|
299
|
-
readonly: boolean;
|
|
300
|
-
abstract reset(): void;
|
|
301
|
-
abstract validate(): boolean;
|
|
302
|
-
abstract set response(val: ResponseType$1);
|
|
303
|
-
connectedCallback(): void;
|
|
304
|
-
saveResponse(value: QtiVariableJSON): void;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
104
|
declare class QtiTextEntryInteraction extends Interaction {
|
|
308
|
-
|
|
105
|
+
expectedLength: number;
|
|
106
|
+
patternMask: string;
|
|
107
|
+
placeholderText: string;
|
|
309
108
|
value: string;
|
|
310
|
-
|
|
311
|
-
placeholderText: any;
|
|
312
|
-
patternMask: any;
|
|
313
|
-
static get properties(): {
|
|
314
|
-
expectedLength: {
|
|
315
|
-
type: NumberConstructor;
|
|
316
|
-
attribute: string;
|
|
317
|
-
};
|
|
318
|
-
patternMask: {
|
|
319
|
-
type: StringConstructor;
|
|
320
|
-
attribute: string;
|
|
321
|
-
};
|
|
322
|
-
placeholderText: {
|
|
323
|
-
type: StringConstructor;
|
|
324
|
-
attribute: string;
|
|
325
|
-
};
|
|
326
|
-
value: {
|
|
327
|
-
type: StringConstructor;
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
constructor();
|
|
109
|
+
classNames: any;
|
|
331
110
|
set response(value: string | undefined);
|
|
332
111
|
validate(): boolean;
|
|
333
112
|
static get styles(): lit.CSSResult[];
|
|
@@ -338,12 +117,13 @@ declare class QtiTextEntryInteraction extends Interaction {
|
|
|
338
117
|
}
|
|
339
118
|
|
|
340
119
|
declare class QtiExtendedTextInteraction extends Interaction {
|
|
341
|
-
static rowHeightClass: string[];
|
|
342
120
|
textareaRef: lit_html_directives_ref.Ref<HTMLTextAreaElement>;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
121
|
+
/** expected length is mapped to the property maxlength on the textarea */
|
|
122
|
+
expectedLength: number;
|
|
123
|
+
patternMask: string;
|
|
124
|
+
/** text appearing in the extended-text-nteraction if it is empty */
|
|
125
|
+
placeholderText: string;
|
|
126
|
+
private value;
|
|
347
127
|
classNames: any;
|
|
348
128
|
handleclassNamesChange(old: any, disabled: boolean): void;
|
|
349
129
|
set response(value: string);
|
|
@@ -355,35 +135,6 @@ declare class QtiExtendedTextInteraction extends Interaction {
|
|
|
355
135
|
private setEmptyAttribute;
|
|
356
136
|
}
|
|
357
137
|
|
|
358
|
-
declare class QtiHottext extends QtiChoice {
|
|
359
|
-
}
|
|
360
|
-
declare global {
|
|
361
|
-
interface HTMLElementTagNameMap {
|
|
362
|
-
'qti-hottext': QtiHottext;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
declare abstract class Choices extends Interaction {
|
|
367
|
-
protected _choiceElements: QtiChoice[];
|
|
368
|
-
minChoices: number;
|
|
369
|
-
maxChoices: number;
|
|
370
|
-
_handleDisabledChange: (_: boolean, disabled: boolean) => void;
|
|
371
|
-
_handleReadonlyChange: (_: boolean, readonly: boolean) => void;
|
|
372
|
-
_handleMaxChoicesChange: () => void;
|
|
373
|
-
constructor();
|
|
374
|
-
reset(): void;
|
|
375
|
-
validate(): boolean;
|
|
376
|
-
set response(myResponse: ResponseType);
|
|
377
|
-
connectedCallback(): void;
|
|
378
|
-
disconnectedCallback(): void;
|
|
379
|
-
private _registerChoiceElement;
|
|
380
|
-
private _looseChoiceElement;
|
|
381
|
-
private _determineInputType;
|
|
382
|
-
private _setInputType;
|
|
383
|
-
private _choiceElementSelectedHandler;
|
|
384
|
-
private _choiceElementSelected;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
138
|
declare class QtiHottextInteraction extends Choices {
|
|
388
139
|
connectedCallback(): void;
|
|
389
140
|
render: () => lit_html.TemplateResult<1>;
|
|
@@ -414,74 +165,120 @@ declare class QtiInlineChoiceInteraction extends Interaction {
|
|
|
414
165
|
choiceSelected(event: Event): void;
|
|
415
166
|
}
|
|
416
167
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
* @status stable
|
|
421
|
-
* @since 4.0
|
|
422
|
-
*
|
|
423
|
-
* @event qti-register-interaction - emitted when the interaction wants to register itself
|
|
424
|
-
* @event qti-interaction-response - emitted when the interaction changes
|
|
425
|
-
*
|
|
426
|
-
* @slot - The default slot where <qti-simple-choice> must be placed.
|
|
427
|
-
* @slot prompt - slot where the prompt is placed.
|
|
428
|
-
*/
|
|
429
|
-
declare class QtiChoiceInteraction extends Choices {
|
|
430
|
-
static styles: CSSResultGroup;
|
|
431
|
-
/** orientation of choices */
|
|
432
|
-
orientation: 'horizontal' | 'vertical';
|
|
433
|
-
render: () => lit_html.TemplateResult<1>;
|
|
168
|
+
declare class QtiResponseCondition extends QtiRule {
|
|
169
|
+
render(): lit_html.TemplateResult<1>;
|
|
170
|
+
process(): void;
|
|
434
171
|
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
172
|
+
|
|
173
|
+
declare class QtiSetOutcomeValue extends QtiRule {
|
|
174
|
+
process(): void;
|
|
439
175
|
}
|
|
440
176
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
* @slot - The default slot.
|
|
452
|
-
*/
|
|
453
|
-
declare class QtiSimpleChoice extends QtiChoice {
|
|
454
|
-
static styles: CSSResultGroup;
|
|
177
|
+
declare class QtiResponseElse extends LitElement {
|
|
178
|
+
static get properties(): {
|
|
179
|
+
debugCalculateResult: {
|
|
180
|
+
type: ObjectConstructor;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
render(): lit_html.TemplateResult<1>;
|
|
184
|
+
calculate(): boolean;
|
|
185
|
+
getSubRules(): QtiRule[];
|
|
186
|
+
process(): void;
|
|
455
187
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
188
|
+
|
|
189
|
+
declare class QtiResponseIf extends QtiResponseElse {
|
|
190
|
+
render(): lit_html.TemplateResult<1>;
|
|
191
|
+
calculate(): boolean;
|
|
192
|
+
getSubRules(): QtiRule[];
|
|
460
193
|
}
|
|
461
194
|
|
|
462
|
-
declare class
|
|
195
|
+
declare class QtiResponseElseIf extends QtiResponseIf {
|
|
463
196
|
render(): lit_html.TemplateResult<1>;
|
|
464
|
-
static get observedAttributes(): string[];
|
|
465
|
-
process(): void;
|
|
466
|
-
private fragmentFromString;
|
|
467
197
|
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
198
|
+
|
|
199
|
+
declare class QtiExpression<T> extends LitElement {
|
|
200
|
+
render(): lit_html.TemplateResult<1>;
|
|
201
|
+
calculate(): T;
|
|
202
|
+
protected get assessmentItem(): QtiAssessmentItem;
|
|
203
|
+
protected getVariables: () => ResponseVariable[];
|
|
472
204
|
}
|
|
473
205
|
|
|
474
|
-
declare class
|
|
206
|
+
declare class QtiGt extends QtiExpression<boolean> {
|
|
207
|
+
calculate(): boolean;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
declare class QtiConditionExpression extends QtiExpression<boolean> {
|
|
475
211
|
render(): lit_html.TemplateResult<1>;
|
|
476
|
-
|
|
212
|
+
calculate(): boolean;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
declare class QtiGte extends QtiConditionExpression {
|
|
216
|
+
calculate(): boolean;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare class QtiAnd extends QtiConditionExpression {
|
|
220
|
+
render(): lit_html.TemplateResult<1>;
|
|
221
|
+
calculate(): boolean;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
declare class QtiOr extends QtiConditionExpression {
|
|
225
|
+
render(): lit_html.TemplateResult<1>;
|
|
226
|
+
calculate(): boolean;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
declare class QtiEqual extends QtiExpression<boolean> {
|
|
230
|
+
toleranceMode: 'exact' | 'relative' | 'absolute';
|
|
231
|
+
calculate(): boolean;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
declare class QtiEqualRounded extends QtiExpression<boolean> {
|
|
235
|
+
roundingMode: "decimalPlaces" | "significantFigures";
|
|
236
|
+
get figures(): number;
|
|
237
|
+
calculate(): boolean;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare class QtiBaseValue extends QtiExpression<string> {
|
|
241
|
+
baseType: BaseType;
|
|
242
|
+
calculate(): string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare class QtiContains extends QtiExpression<boolean> {
|
|
246
|
+
calculate(): boolean;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
declare class QtiCorrect extends QtiExpression<string | string[]> {
|
|
250
|
+
render(): lit_html.TemplateResult<1>;
|
|
251
|
+
get interpretation(): string;
|
|
252
|
+
calculate(): string | string[];
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
declare class QtiIsNull extends QtiExpression<boolean> {
|
|
256
|
+
calculate(): boolean;
|
|
477
257
|
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
258
|
+
|
|
259
|
+
declare class QtiMapResponse extends QtiExpression<number> {
|
|
260
|
+
identifier: string;
|
|
261
|
+
calculate(): number;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare class QtiMatch extends QtiExpression<boolean> {
|
|
265
|
+
calculate(): boolean;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare class QtiVariable extends QtiExpression<number | string | string[]> {
|
|
269
|
+
render(): lit_html.TemplateResult<1>;
|
|
270
|
+
calculate(): string | number | string[];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
declare class QtiMultiple extends QtiExpression<ResponseVariable[]> {
|
|
274
|
+
calculate(): ResponseVariable[];
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
|
|
278
|
+
calculate(): ResponseVariable[];
|
|
482
279
|
}
|
|
483
280
|
|
|
484
|
-
declare class QtiPortableCustomInteraction extends
|
|
281
|
+
declare class QtiPortableCustomInteraction extends LitElement {
|
|
485
282
|
private responseIdentifier;
|
|
486
283
|
private module;
|
|
487
284
|
private customInteractionTypeIdentifier;
|
|
@@ -518,12 +315,12 @@ declare class QtiPortableCustomInteraction extends QtiElement {
|
|
|
518
315
|
interface IInteraction {
|
|
519
316
|
disabled: boolean;
|
|
520
317
|
readonly: boolean;
|
|
521
|
-
response:
|
|
318
|
+
response: string | string[];
|
|
522
319
|
reset(): any;
|
|
523
320
|
validate(): boolean;
|
|
524
321
|
}
|
|
525
322
|
|
|
526
|
-
declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
323
|
+
declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
527
324
|
declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
528
325
|
private _childrenMap;
|
|
529
326
|
static styles: lit.CSSResult;
|
|
@@ -531,7 +328,7 @@ declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
|
531
328
|
connectedCallback(): void;
|
|
532
329
|
}
|
|
533
330
|
|
|
534
|
-
declare class
|
|
331
|
+
declare class QtiSimpleAssociableChoice extends LitElement {
|
|
535
332
|
connectedCallback(): void;
|
|
536
333
|
render(): lit_html.TemplateResult<1>;
|
|
537
334
|
}
|
|
@@ -551,6 +348,9 @@ declare class QtiGap extends LitElement {
|
|
|
551
348
|
render(): lit_html.TemplateResult<1>;
|
|
552
349
|
}
|
|
553
350
|
|
|
351
|
+
declare class QtiInlineChoice extends LitElement {
|
|
352
|
+
}
|
|
353
|
+
|
|
554
354
|
declare class QtiGraphicAssociateInteraction extends Choices {
|
|
555
355
|
choiceOrdering: boolean;
|
|
556
356
|
static styles: lit.CSSResult[];
|
|
@@ -560,7 +360,7 @@ declare class QtiGraphicAssociateInteraction extends Choices {
|
|
|
560
360
|
disconnectedCallback(): void;
|
|
561
361
|
}
|
|
562
362
|
|
|
563
|
-
declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
363
|
+
declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
564
364
|
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
565
365
|
static styles: lit.CSSResult;
|
|
566
366
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -594,7 +394,7 @@ declare class QtiHotspotChoice extends QtiChoice {
|
|
|
594
394
|
|
|
595
395
|
declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
596
396
|
declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
597
|
-
static styles:
|
|
397
|
+
static styles: any[];
|
|
598
398
|
render(): lit_html.TemplateResult<1>;
|
|
599
399
|
}
|
|
600
400
|
|
|
@@ -616,7 +416,7 @@ declare class QtiMediaInteraction extends Interaction {
|
|
|
616
416
|
connectedCallback(): void;
|
|
617
417
|
}
|
|
618
418
|
|
|
619
|
-
declare const QtiOrderInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
419
|
+
declare const QtiOrderInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
620
420
|
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
621
421
|
childrenMap: Element[];
|
|
622
422
|
private _classNames;
|
|
@@ -638,7 +438,7 @@ declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
|
638
438
|
}
|
|
639
439
|
|
|
640
440
|
declare class QtiSelectPointInteraction extends Choices {
|
|
641
|
-
static styles:
|
|
441
|
+
static styles: any[];
|
|
642
442
|
choiceOrdering: boolean;
|
|
643
443
|
render(): lit_html.TemplateResult<1>;
|
|
644
444
|
constructor();
|
|
@@ -665,7 +465,7 @@ declare class QtiSliderInteraction extends Interaction {
|
|
|
665
465
|
_handleReadonlyChange: (old: any, readonly: any) => void;
|
|
666
466
|
reset(): void;
|
|
667
467
|
validate(): boolean;
|
|
668
|
-
set response(myResponse:
|
|
468
|
+
set response(myResponse: string | string[]);
|
|
669
469
|
static styles: lit.CSSResult[];
|
|
670
470
|
render(): lit_html.TemplateResult<1>;
|
|
671
471
|
connectedCallback(): void;
|
|
@@ -783,4 +583,53 @@ declare class FlippablesInterface {
|
|
|
783
583
|
}
|
|
784
584
|
declare const FlippablesMixin: <T extends Constructor<LitElement>>(superClass: T, droppablesSel: string, draggablesSel: string) => Constructor<FlippablesInterface> & T;
|
|
785
585
|
|
|
786
|
-
|
|
586
|
+
declare class QtiCustomOperatorLevenshtein extends QtiExpression<number> {
|
|
587
|
+
value: number;
|
|
588
|
+
static properties: {
|
|
589
|
+
value: {};
|
|
590
|
+
};
|
|
591
|
+
render: () => lit_html.TemplateResult<1>;
|
|
592
|
+
private levenshtein;
|
|
593
|
+
calculate(): number;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
declare class QtiCustomOperatorNumericOnly extends LitElement implements Calculate {
|
|
597
|
+
render(): lit_html.TemplateResult<1>;
|
|
598
|
+
calculate(): string;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
declare class QtiCustomOperatorParseNumberLocalNl extends LitElement implements Calculate {
|
|
602
|
+
value: any;
|
|
603
|
+
static properties: {
|
|
604
|
+
value: {};
|
|
605
|
+
};
|
|
606
|
+
render: () => lit_html.TemplateResult<1>;
|
|
607
|
+
calculate(): any;
|
|
608
|
+
private parseNumber;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
declare class QtiCustomOperatorRemoveAllSpaces extends LitElement implements Calculate {
|
|
612
|
+
render(): lit_html.TemplateResult<1>;
|
|
613
|
+
calculate(): string;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
declare class QtiCustomOperatorTrim extends LitElement implements Calculate {
|
|
617
|
+
render(): lit_html.TemplateResult<1>;
|
|
618
|
+
calculate(): string;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
declare class QtiManualScoring extends LitElement {
|
|
622
|
+
static styles: lit.CSSResult;
|
|
623
|
+
disabled: boolean;
|
|
624
|
+
readonly: boolean;
|
|
625
|
+
value: string;
|
|
626
|
+
min: number;
|
|
627
|
+
max: number;
|
|
628
|
+
protected textChanged(event: Event): void;
|
|
629
|
+
logger: ContextConsumer<{
|
|
630
|
+
__context__: Logger;
|
|
631
|
+
}, this>;
|
|
632
|
+
render(): lit_html.TemplateResult<1>;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export { BaseType, Calculate, Cardinality, Choices, DragDropInteractionMixin, DroppablesMixin, Events, FlippablesInterface, FlippablesMixin, QtiAnd, QtiAssessmentItem, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiCompanionMaterialsInfo, QtiContains, QtiCorrect, QtiCustomOperatorLevenshtein, QtiCustomOperatorNumericOnly, QtiCustomOperatorParseNumberLocalNl, QtiCustomOperatorRemoveAllSpaces, QtiCustomOperatorTrim, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackInline, QtiGap, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiManualScoring, QtiMapResponse, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiModalFeedback, QtiMultiple, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiTextEntryInteraction, QtiVariable, ResponseVariable, TouchDragAndDrop, qtiContentBody, qtiRubricBlock };
|