@citolab/qti-components 6.9.1-beta.7 → 6.9.1-beta.9

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,603 +1,9 @@
1
- import * as lit from 'lit';
2
- import { LitElement, CSSResultGroup, PropertyValueMap } from 'lit';
1
+ import { Q as QtiRule, a as QtiRuleBase, b as QtiExpressionBase, c as QtiExpression, B as BaseType, d as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext } from '../qti-simple-choice-CafJuhnH.js';
2
+ export { C as Calculate, m as Cardinality, ad as Interaction, e as InteractionChangedDetails, T as MockQtiExpression, M as Multiple, l as Ordered, O as OutcomeChangedDetails, o as OutcomeVariable, S as QtiAnd, p as QtiAssessmentItem, q as QtiAssessmentStimulusRef, ae as QtiAssociableHotspot, Y as QtiAssociateInteraction, r as QtiChoice, J as QtiChoiceInteraction, w as QtiCompanionMaterialsInfo, x as QtiContentBody, Z as QtiCustomInteraction, ac as QtiCustomOperator, _ as QtiEndAttemptInteraction, E as QtiExtendedTextInteraction, z as QtiFeedbackBlock, A as QtiFeedbackInline, af as QtiGap, ag as QtiGapImg, $ as QtiGapMatchInteraction, ah as QtiGapText, a0 as QtiGraphicAssociateInteraction, a1 as QtiGraphicGapMatchInteraction, a2 as QtiGraphicOrderInteraction, ai as QtiHotspotChoice, a3 as QtiHotspotInteraction, aj as QtiHottext, G as QtiHottextInteraction, ak as QtiInlineChoice, H as QtiInlineChoiceInteraction, f as QtiInteractionChanged, P as QtiLookupOutcomeValue, W as QtiMapping, a4 as QtiMatchInteraction, a5 as QtiMediaInteraction, D as QtiModalFeedback, a6 as QtiOrderInteraction, g as QtiOutcomeChanged, u as QtiOutcomeDeclaration, K as QtiOutcomeProcessing, L as QtiOutcomeProcessingProcessor, X as QtiPortableCustomInteraction, a7 as QtiPositionObjectStage, s as QtiPrompt, v as QtiResponseDeclaration, N as QtiResponseProcessing, y as QtiRubricBlock, a8 as QtiSelectPointInteraction, al as QtiSimpleAssociableChoice, am as QtiSimpleChoice, a9 as QtiSliderInteraction, t as QtiStylesheet, F as QtiTextEntryInteraction, i as ResponseInteraction, n as VariableValue, h as directedPair, j as float, k as integer, ab as itemContext, aa as itemContextVariables, U as qtiAndMixin } from '../qti-simple-choice-CafJuhnH.js';
3
3
  import * as lit_html from 'lit-html';
4
- import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
5
-
6
- interface directedPair {
7
- destination: string;
8
- source: string;
9
- }
10
- interface ResponseInteraction {
11
- responseIdentifier: string;
12
- response: string | string[];
13
- }
14
- interface Calculate {
15
- calculate: () => string | string[];
16
- }
17
- type float = number;
18
- type integer = number;
19
- type BaseType = 'boolean' | 'directedPair' | 'duration' | 'float' | 'integer' | 'string' | 'identifier' | 'pair';
20
- type Multiple = string | string[][];
21
- type Ordered = string | string[][];
22
- type Cardinality = 'multiple' | 'ordered' | 'single';
23
-
24
- interface OutcomeChangedDetails {
25
- item: string;
26
- outcomeIdentifier: string;
27
- value: Readonly<string | string[]>;
28
- }
29
- type InteractionChangedDetails = ResponseInteraction & {
30
- item: string;
31
- };
32
-
33
- type QtiChoiceElementSelected = CustomEvent<{
34
- identifier: string;
35
- checked: boolean;
36
- }>;
37
- declare global {
38
- interface GlobalEventHandlersEventMap {
39
- 'qti-choice-element-selected': QtiChoiceElementSelected;
40
- }
41
- }
42
-
43
- type QtiInteractionChanged = CustomEvent<InteractionChangedDetails>;
44
- declare global {
45
- interface GlobalEventHandlersEventMap {
46
- 'qti-interaction-changed': QtiInteractionChanged;
47
- }
48
- }
49
-
50
- type QtiInteractionResponse = CustomEvent<ResponseInteraction>;
51
- declare global {
52
- interface GlobalEventHandlersEventMap {
53
- 'qti-interaction-response': QtiInteractionResponse;
54
- }
55
- }
56
-
57
- type QtiLooseChoice = CustomEvent<Record<PropertyKey, never>>;
58
- declare global {
59
- interface GlobalEventHandlersEventMap {
60
- 'qti-loose-choice': QtiLooseChoice;
61
- }
62
- }
63
-
64
- type QtiOutcomeChanged = CustomEvent<OutcomeChangedDetails>;
65
- declare global {
66
- interface GlobalEventHandlersEventMap {
67
- 'qti-outcome-changed': QtiOutcomeChanged;
68
- }
69
- }
70
-
71
- type QtiRegisterChoice = CustomEvent<Record<PropertyKey, never>>;
72
- declare global {
73
- interface GlobalEventHandlersEventMap {
74
- 'qti-register-choice': QtiRegisterChoice;
75
- }
76
- }
77
-
78
- type QtiRegisterInteraction = CustomEvent<Record<PropertyKey, never>>;
79
- declare global {
80
- interface GlobalEventHandlersEventMap {
81
- 'qti-register-interaction': QtiRegisterInteraction;
82
- }
83
- }
84
-
85
- declare class QtiMapping extends LitElement {
86
- defaultValue: number;
87
- lowerBound: number;
88
- upperBound: number;
89
- get mapEntries(): {
90
- mapKey: string;
91
- mappedValue: number;
92
- }[];
93
- }
94
-
95
- interface VariableValue<T> {
96
- identifier: string;
97
- value: Readonly<T>;
98
- type: 'outcome' | 'response';
99
- }
100
- interface VariableDeclaration<T> extends VariableValue<T> {
101
- cardinality?: Cardinality;
102
- baseType?: BaseType;
103
- }
104
- interface OutcomeVariable extends VariableDeclaration<string | string[] | null> {
105
- interpolationTable?: Map<number, number>;
106
- externalScored?: 'human' | 'externalMachine' | null;
107
- }
108
- interface ResponseVariable extends VariableDeclaration<string | string[] | null> {
109
- candidateResponse?: string | string[] | null;
110
- mapping?: QtiMapping;
111
- correctResponse?: string | string[] | null;
112
- }
113
-
114
- type QtiRegisterVariable = CustomEvent<{
115
- variable: VariableDeclaration<string | string[]>;
116
- }>;
117
- declare global {
118
- interface GlobalEventHandlersEventMap {
119
- 'qti-register-variable': QtiRegisterVariable;
120
- }
121
- }
122
-
123
- type QtiRegisterHotspot = CustomEvent<Record<PropertyKey, never>>;
124
- declare global {
125
- interface GlobalEventHandlersEventMap {
126
- 'qti-register-hotspot': QtiRegisterHotspot;
127
- }
128
- }
129
-
130
- /**
131
- * @summary The qti-assessment-item element contains all the other QTI 3 item structures.
132
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.dltnnj87l0yj
133
- * @status stable
134
- * @since 4.0
135
- *
136
- * @dependency qti-feedback
137
- * @dependency qti-responseprocessing
138
- *
139
- * @slot - The default slot where all the other QTI 3 item structures go.
140
- *
141
- * @event qti-interaction-changed - Emitted when an interaction is changed.
142
- * @event qti-outcome-changed - Emitted when an outcome has changed.
143
- * @event qti-response-processing - Emitted when response-processing is called.
144
- *
145
- */
146
- declare class QtiAssessmentItem extends LitElement {
147
- title: string;
148
- identifier: string;
149
- adaptive: 'true' | 'false';
150
- timeDependent: 'true' | 'false' | null;
151
- disabled: boolean;
152
- _handleDisabledChange: (_: boolean, disabled: boolean) => void;
153
- readonly: boolean;
154
- _handleReadonlyChange: (_: boolean, readonly: boolean) => void;
155
- private _context;
156
- get variables(): VariableValue<string | string[] | null>[];
157
- set variables(value: VariableValue<string | string[] | null>[]);
158
- private _initialContext;
159
- private _feedbackElements;
160
- private _interactionElements;
161
- connectedCallback(): Promise<void>;
162
- /** @deprecated use variables property instead */
163
- set responses(myResponses: ResponseInteraction[]);
164
- render(): lit_html.TemplateResult<1>;
165
- constructor();
166
- showCorrectResponse(show: boolean): void;
167
- processResponse(countNumAttempts?: boolean): boolean;
168
- resetResponses(): void;
169
- getResponse(identifier: string): Readonly<ResponseVariable>;
170
- getOutcome(identifier: string): Readonly<OutcomeVariable>;
171
- getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;
172
- private handleUpdateResponseVariable;
173
- updateResponseVariable(identifier: string, value: string | string[] | undefined): void;
174
- updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
175
- private _getCompletionStatus;
176
- private _emit;
177
- }
178
- declare global {
179
- interface HTMLElementTagNameMap {
180
- 'qti-assessment-item': QtiAssessmentItem;
181
- }
182
- }
183
-
184
- /**
185
- * Represents a custom element for referencing an assessment stimulus.
186
- */
187
- declare class QtiAssessmentStimulusRef extends LitElement {
188
- /**
189
- * The identifier of the stimulus.
190
- */
191
- identifier: string;
192
- /**
193
- * The href of the stimulus.
194
- */
195
- href: string;
196
- /**
197
- * Lifecycle method called when the element is connected to the DOM.
198
- * Loads and appends the stimulus if the 'qti-assessment-stimulus-ref-connected' event is not prevented.
199
- */
200
- connectedCallback(): Promise<void>;
201
- /**
202
- * Loads and appends the stimulus to the specified element.
203
- * @param stimulusRef - The element to which the stimulus will be appended.
204
- */
205
- loadAndAppendStimulus(stimulusRef: Element): Promise<void>;
206
- }
207
- declare global {
208
- interface HTMLElementTagNameMap {
209
- 'qti-assessment-stimulus-ref': QtiAssessmentStimulusRef;
210
- }
211
- }
212
-
213
- /**
214
- * @summary qti-choice is used by qti-simple-choice, qti-inline-choice, qti-hottext, qti-hotspot-choice.
215
- *
216
- * @since 1.0
217
- * @status stable
218
- *
219
- * @event qti-register-choice - register itselves on a qti-choice-interaction element.
220
- * @event qti-loose-choice - de-register itselves on a qti-choice-interaction element.
221
- * @event qti-choice-element-selected - Emitted when the choice is selected.
222
- *
223
- * @slot - The choices slot element
224
- */
225
- declare abstract class QtiChoice extends LitElement {
226
- identifier: string;
227
- tabindex: number | undefined;
228
- disabled: boolean;
229
- readonly: boolean;
230
- checked: boolean;
231
- handleDisabledChange(_: boolean, disabled: boolean): void;
232
- connectedCallback(): void;
233
- disconnectedCallback(): void;
234
- reset(): void;
235
- private _onKeyUp;
236
- private _onClick;
237
- private _toggleChecked;
238
- render(): lit_html.TemplateResult<1>;
239
- }
240
- declare global {
241
- interface HTMLElementTagNameMap {
242
- 'qti-choice': QtiChoice;
243
- }
244
- }
245
-
246
- /**
247
- * @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.
248
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.sphpo6lu6zqi
249
- * @status stable
250
- * @since 4.0
251
- *
252
- * @slot - item body content.
253
- * @slot qti-rubric-block - the qti rubric block is placed above the item
254
- *
255
- */
256
- declare class QtiItemBody extends LitElement {
257
- static styles: CSSResultGroup;
258
- render(): lit_html.TemplateResult<1>;
259
- }
260
- declare global {
261
- interface HTMLElementTagNameMap {
262
- 'qti-item-body': QtiItemBody;
263
- }
264
- }
265
-
266
- declare class QtiPrompt extends LitElement {
267
- render(): lit_html.TemplateResult<1>;
268
- connectedCallback(): void;
269
- }
270
- declare global {
271
- interface HTMLElementTagNameMap {
272
- 'qti-prompt': QtiPrompt;
273
- }
274
- }
275
-
276
- declare class QtiStylesheet extends LitElement {
277
- private styleLink;
278
- protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
279
- disconnectedCallback(): void;
280
- }
281
- declare global {
282
- interface HTMLElementTagNameMap {
283
- 'qti-stylesheet': QtiStylesheet;
284
- }
285
- }
286
-
287
- interface ItemContext {
288
- href?: string;
289
- identifier: string;
290
- variables: ReadonlyArray<VariableDeclaration<string | string[]>>;
291
- }
292
- declare const itemContextVariables: VariableDeclaration<string | string[]>[];
293
- declare const itemContext: {
294
- __context__: ItemContext;
295
- };
296
-
297
- declare class QtiVariableDeclaration extends LitElement {
298
- render(): lit_html.TemplateResult<1>;
299
- protected defaultValues(variable: VariableDeclaration<string | string[] | null>): string | string[];
300
- }
301
- declare global {
302
- interface HTMLElementTagNameMap {
303
- 'qti-variabledeclaration': QtiVariableDeclaration;
304
- }
305
- }
306
-
307
- declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
308
- baseType: BaseType;
309
- externalScored: 'human' | 'externalMachine' | null;
310
- identifier: string;
311
- cardinality: Cardinality;
312
- itemContext?: ItemContext;
313
- static styles: lit.CSSResult[];
314
- render(): lit_html.TemplateResult<1>;
315
- get interpolationTable(): Map<number, number> | null;
316
- connectedCallback(): void;
317
- }
318
- declare global {
319
- interface HTMLElementTagNameMap {
320
- 'qti-outcome-declaration': QtiOutcomeDeclaration;
321
- }
322
- }
323
-
324
- declare class QtiResponseDeclaration extends QtiVariableDeclaration {
325
- baseType: BaseType;
326
- identifier: string;
327
- cardinality: Cardinality;
328
- itemContext?: ItemContext;
329
- static styles: lit.CSSResult[];
330
- render(): lit_html.TemplateResult<1>;
331
- connectedCallback(): void;
332
- private get correctResponse();
333
- private get mapping();
334
- }
335
- declare global {
336
- interface HTMLElementTagNameMap {
337
- 'qti-response-declaration': QtiResponseDeclaration;
338
- }
339
- }
340
-
341
- declare class QtiCompanionMaterialsInfo extends LitElement {
342
- }
343
- declare global {
344
- interface HTMLElementTagNameMap {
345
- 'qti-companion-materials-info': QtiCompanionMaterialsInfo;
346
- }
347
- }
348
-
349
- declare class QtiContentBody extends LitElement {
350
- render(): lit_html.TemplateResult<1>;
351
- }
352
- declare global {
353
- interface HTMLElementTagNameMap {
354
- 'qti-content-body': QtiContentBody;
355
- }
356
- }
357
-
358
- declare class QtiRubricBlock extends LitElement {
359
- id: any;
360
- use: 'instructions' | 'scoring' | 'navigation';
361
- view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
362
- classNames: any;
363
- handleclassNamesChange(old: any, disabled: boolean): void;
364
- static styles: lit.CSSResult;
365
- render(): lit_html.TemplateResult<1>;
366
- connectedCallback(): void;
367
- }
368
- declare global {
369
- interface HTMLElementTagNameMap {
370
- 'qti-rubric-block': QtiRubricBlock;
371
- }
372
- }
373
-
374
- declare abstract class QtiFeedback extends LitElement {
375
- protected showHide: string;
376
- outcomeIdentifier: string;
377
- protected identifier: string;
378
- showStatus: string;
379
- connectedCallback(): void;
380
- checkShowFeedback(outcomeIdentifier: string): void;
381
- private showFeedback;
382
- }
383
-
384
- declare class QtiFeedbackBlock extends QtiFeedback {
385
- static styles: lit.CSSResult;
386
- render(): lit_html.TemplateResult<1>;
387
- protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
388
- }
389
- declare global {
390
- interface HTMLElementTagNameMap {
391
- 'qti-feedback-block': QtiFeedbackBlock;
392
- }
393
- }
394
-
395
- declare class QtiFeedbackInline extends QtiFeedback {
396
- static styles: lit.CSSResult;
397
- render: () => lit_html.TemplateResult<1>;
398
- }
399
- declare global {
400
- interface HTMLElementTagNameMap {
401
- 'qti-feedback-inline': QtiFeedbackInline;
402
- }
403
- }
404
-
405
- declare class QtiModalFeedback extends QtiFeedback {
406
- static styles: lit.CSSResult;
407
- render: () => lit_html.TemplateResult<1>;
408
- }
409
- declare global {
410
- interface HTMLElementTagNameMap {
411
- 'qti-modal-feedback': QtiModalFeedback;
412
- }
413
- }
414
-
415
- declare abstract class Interaction extends LitElement {
416
- responseIdentifier: string;
417
- /** disabled should be exposed to the attributes and accessible as property */
418
- disabled: boolean;
419
- /** readonly should be exposed to the attributes and accessible as property */
420
- readonly: boolean;
421
- abstract validate(): boolean;
422
- abstract set response(val: Readonly<string | string[]>);
423
- set correctResponse(val: Readonly<string | string[]>);
424
- connectedCallback(): void;
425
- saveResponse(value: string | string[]): void;
426
- }
427
-
428
- declare class QtiExtendedTextInteraction extends Interaction {
429
- textareaRef: lit_html_directives_ref_js.Ref<HTMLTextAreaElement>;
430
- /** expected length is mapped to the property maxlength on the textarea */
431
- expectedLength: number;
432
- patternMask: string;
433
- /** text appearing in the extended-text-nteraction if it is empty */
434
- placeholderText: string;
435
- private _value;
436
- classNames: any;
437
- handleclassNamesChange(old: any, disabled: boolean): void;
438
- set response(value: string);
439
- validate(): boolean;
440
- static get styles(): lit.CSSResult[];
441
- render(): lit_html.TemplateResult<1>;
442
- protected textChanged(event: Event): void;
443
- reset(): void;
444
- private setEmptyAttribute;
445
- }
446
- declare global {
447
- interface HTMLElementTagNameMap {
448
- 'qti-extended-text-interaction': QtiExtendedTextInteraction;
449
- }
450
- }
451
-
452
- declare class QtiTextEntryInteraction extends Interaction {
453
- expectedLength: number;
454
- patternMask: string;
455
- placeholderText: string;
456
- private _value;
457
- private _correctValue;
458
- private _size;
459
- inputRef: lit_html_directives_ref_js.Ref<HTMLInputElement>;
460
- classNames: any;
461
- handleclassNamesChange(old: any, classes: string): void;
462
- set response(value: string | undefined);
463
- validate(): boolean;
464
- static get styles(): lit.CSSResult[];
465
- set correctResponse(value: string);
466
- render(): lit_html.TemplateResult<1>;
467
- protected textChanged(event: Event): void;
468
- reset(): void;
469
- private setEmptyAttribute;
470
- }
471
- declare global {
472
- interface HTMLElementTagNameMap {
473
- 'qti-text-entry-interaction': QtiTextEntryInteraction;
474
- }
475
- }
476
-
477
- interface ChoicesInterface {
478
- validate(): boolean;
479
- _choiceElements: HTMLElement[];
480
- correctResponse: string | string[];
481
- }
482
-
483
- declare const QtiHottextInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof LitElement;
484
- declare class QtiHottextInteraction extends QtiHottextInteraction_base {
485
- connectedCallback(): void;
486
- render: () => lit_html.TemplateResult<1>;
487
- }
488
- declare global {
489
- interface HTMLElementTagNameMap {
490
- 'qti-hottext-interaction': QtiHottextInteraction;
491
- }
492
- }
493
-
494
- interface OptionType {
495
- textContent: string;
496
- value: string;
497
- selected: boolean;
498
- }
499
- declare class QtiInlineChoiceInteraction extends Interaction {
500
- static get styles(): lit.CSSResult[];
501
- static inputWidthClass: string[];
502
- options: OptionType[];
503
- correctOption: string;
504
- dataPrompt: string;
505
- render(): lit_html.TemplateResult<1>;
506
- connectedCallback(): void;
507
- disconnectedCallback(): void;
508
- validate(): boolean;
509
- reset(): void;
510
- set response(value: string);
511
- set correctResponse(value: Readonly<string | string[]>);
512
- choiceSelected(event: Event): void;
513
- }
514
- declare global {
515
- interface HTMLElementTagNameMap {
516
- 'qti-inline-choice-interaction': QtiInlineChoiceInteraction;
517
- }
518
- }
519
-
520
- declare const QtiChoiceInteraction_base: (new (...args: any[]) => {}) & (new (...args: any[]) => {}) & (new (...args: any[]) => ChoicesInterface) & typeof LitElement;
521
- declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
522
- static styles: CSSResultGroup;
523
- /** orientation of choices */
524
- orientation: 'horizontal' | 'vertical';
525
- render(): lit_html.TemplateResult<1>;
526
- }
527
- declare global {
528
- interface HTMLElementTagNameMap {
529
- 'qti-choice-interaction': QtiChoiceInteraction;
530
- }
531
- }
532
-
533
- declare class QtiOutcomeProcessing extends LitElement {
534
- static styles: lit.CSSResult[];
535
- render(): lit_html.TemplateResult<1>;
536
- process(): void;
537
- }
538
- declare global {
539
- interface HTMLElementTagNameMap {
540
- 'qti-outcome-processing': QtiOutcomeProcessing;
541
- }
542
- }
543
- declare class QtiOutcomeProcessingProcessor {
544
- process(rules: QtiRuleBase[]): void;
545
- }
546
-
547
- declare class QtiResponseProcessing extends LitElement {
548
- static styles: lit.CSSResult[];
549
- render(): lit_html.TemplateResult<1>;
550
- process(): void;
551
- firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
552
- private fragmentFromString;
553
- }
554
- declare global {
555
- interface HTMLElementTagNameMap {
556
- 'qti-response-processing': QtiResponseProcessing;
557
- }
558
- }
559
-
560
- interface QtiExpressionBase<T> {
561
- calculate(): Readonly<T>;
562
- }
563
- declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
564
- protected result: any;
565
- static styles: lit.CSSResult;
566
- render(): lit_html.TemplateResult<1>;
567
- calculate(): Readonly<T>;
568
- protected getResult(): Readonly<T>;
569
- get assessmentItem(): QtiAssessmentItem;
570
- getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
571
- }
572
-
573
- declare class QtiRule extends LitElement implements QtiRuleBase {
574
- render(): lit_html.TemplateResult<1>;
575
- process(): void;
576
- }
577
- interface QtiRuleBase {
578
- process(): any;
579
- }
580
- declare global {
581
- interface HTMLElementTagNameMap {
582
- 'qti-rule': QtiRule;
583
- }
584
- }
585
-
586
- /**
587
- * The lookupOutcomeValue rule sets the value of an outcome variable to the value obtained
588
- * by looking up the value of the associated expression in the lookupTable associated
589
- * with the outcome's declaration.
590
- */
591
- declare class QtiLookupOutcomeValue extends QtiRule {
592
- identifier: string;
593
- get childExpression(): QtiExpression<string>;
594
- process(): number;
595
- }
596
- declare global {
597
- interface HTMLElementTagNameMap {
598
- 'qti-lookup-outcome-value': QtiLookupOutcomeValue;
599
- }
600
- }
4
+ import * as lit from 'lit';
5
+ import { LitElement } from 'lit';
6
+ import 'lit-html/directives/ref.js';
601
7
 
602
8
  declare class QtiResponseCondition extends QtiRule {
603
9
  render(): lit_html.TemplateResult<1>;
@@ -629,36 +35,6 @@ declare class QtiResponseElseIf extends QtiResponseIf {
629
35
  render(): lit_html.TemplateResult<1>;
630
36
  }
631
37
 
632
- declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
633
- calculate(): Readonly<boolean>;
634
- getResult(): Readonly<boolean>;
635
- }
636
-
637
- type Constructor<T> = new (...args: any[]) => T;
638
- declare const QtiAnd_base: {
639
- new (...args: any[]): {
640
- calculateChildren(children: Array<MockQtiExpression<any>>): boolean;
641
- };
642
- } & Constructor<QtiConditionExpression>;
643
- declare class QtiAnd extends QtiAnd_base {
644
- calculate(): boolean;
645
- }
646
- type MockQtiExpression<T> = {
647
- calculate: () => T;
648
- };
649
- type MockConstructor = new (...args: any[]) => {};
650
- declare function qtiAndMixin<TBase extends MockConstructor>(Base: TBase): {
651
- new (...args: any[]): {
652
- calculateChildren(children: Array<MockQtiExpression<any>>): boolean;
653
- };
654
- } & TBase;
655
-
656
- declare global {
657
- interface HTMLElementTagNameMap {
658
- 'qti-and': QtiAnd;
659
- }
660
- }
661
-
662
38
  declare class QtiBaseValue extends QtiExpression<string> {
663
39
  baseType: BaseType;
664
40
  getResult(): string;
@@ -766,550 +142,9 @@ declare class QtiVariable extends QtiExpression<string | string[]> {
766
142
  getResult(): Readonly<string | string[]>;
767
143
  }
768
144
 
769
- interface IMSpci<ConfigProperties> {
770
- typeIdentifier: string;
771
- /** @access public
772
- * @method getInstance Create a new instance of this portable custom interaction
773
- * Will be called by the qtiCustomInteractionContext
774
- * @param {DOM Element} dom - the DOM Element this PCI is being added to
775
- * @param {Object} configuration - the configuration to apply to this PCI
776
- * @param {String} state - a previous saved state to apply to this instance.
777
- * This must have been obtained from a prior call to getState on an
778
- * instance of this type (same typeIdentifier)
779
- */
780
- getInstance: (dom: HTMLElement, configuration: Configuration<ConfigProperties>, state: string) => void;
781
- /** @access public
782
- * @method getResponse
783
- * @return {Object} - the value to assign to the bound QTI response variable
784
- */
785
- getResponse: () => QtiVariableJSON;
786
- /** @access public
787
- * @method getState
788
- * @return {String} The current state of this PCI. May be passed to
789
- * getInstance to later restore this PCI instance.
790
- */
791
- getState: () => string;
792
- oncompleted?: () => void;
793
- destroy?: () => void;
794
- }
795
- declare type Configuration<T> = {
796
- onready: (pci: IMSpci<T>, state?: string) => void;
797
- properties: T;
798
- };
799
- declare type QtiVariableJSON = {
800
- [K in 'list' | 'base']?: {
801
- [Ka in 'boolean' | 'integer' | 'float' | 'string' | 'pair' | 'directedPair' | 'identifier']?: ResponseType;
802
- };
803
- };
804
- interface ModuleResolutionConfig {
805
- waitSeconds?: number;
806
- context?: string;
807
- catchError?: boolean;
808
- paths: {
809
- [key: string]: string | string[];
810
- };
811
- shim?: {
812
- [key: string]: {
813
- deps?: string[];
814
- exports?: string;
815
- };
816
- };
817
- }
818
-
819
- declare class QtiPortableCustomInteraction extends Interaction {
820
- private intervalId;
821
- private rawResponse;
822
- private pci;
823
- responseIdentifier: string;
824
- module: string;
825
- customInteractionTypeIdentifier: string;
826
- private _errorMessage;
827
- private convertQtiVariableJSON;
828
- private startChecking;
829
- private stopChecking;
830
- validate(): boolean;
831
- set response(val: Readonly<string | string[]>);
832
- getTAOConfig(node: any): {};
833
- register(pci: IMSpci<unknown>): void;
834
- connectedCallback(): void;
835
- disconnectedCallback(): void;
836
- buildRequireConfig(): ModuleResolutionConfig;
837
- private combineRequireResolvePaths;
838
- private removeDoubleSlashes;
839
- loadConfig: (url: string, baseUrl?: string) => Promise<ModuleResolutionConfig>;
840
- getResolvablePathString: (path: string, basePath?: string) => string;
841
- getResolvablePath: (path: string | string[], basePath?: string) => string | string[];
842
- render(): lit_html.TemplateResult<1>;
843
- }
844
- declare global {
845
- interface HTMLElementTagNameMap {
846
- 'qti-portable-custom-interaction': QtiPortableCustomInteraction;
847
- }
848
- }
849
-
850
- interface IInteraction {
851
- disabled: boolean;
852
- readonly: boolean;
853
- response: string | string[];
854
- reset(): any;
855
- validate(): boolean;
856
- }
857
-
858
- declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
859
- declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
860
- private _childrenMap;
861
- static styles: lit.CSSResult;
862
- render(): lit_html.TemplateResult<1>;
863
- connectedCallback(): void;
864
- }
865
- declare global {
866
- interface HTMLElementTagNameMap {
867
- 'qti-associate-interaction': QtiAssociateInteraction;
868
- }
869
- }
870
-
871
- declare class QtiCustomInteraction extends Interaction {
872
- private rawResponse;
873
- constructor();
874
- responseIdentifier: string;
875
- data: string;
876
- baseItemUrl: string;
877
- baseRefUrl: string;
878
- id: string;
879
- private _errorMessage;
880
- manifest: {
881
- script: string[];
882
- style: string[];
883
- media: string[];
884
- };
885
- connectedCallback(): void;
886
- setupCES(): void;
887
- private getIFrames;
888
- private getInnerIFrames;
889
- private postToWindowAndIframes;
890
- handlePostMessage(event: MessageEvent): void;
891
- validate(): boolean;
892
- set response(val: Readonly<string | string[]>);
893
- disconnectedCallback(): void;
894
- render(): lit_html.TemplateResult<1>;
895
- }
896
- declare global {
897
- interface HTMLElementTagNameMap {
898
- 'qti-custom-interaction': QtiCustomInteraction;
899
- }
900
- }
901
-
902
- declare class QtiEndAttemptInteraction extends Interaction {
903
- countAttempt: string;
904
- title: 'end attempt';
905
- validate(): boolean;
906
- set response(val: undefined);
907
- render(): lit_html.TemplateResult<1>;
908
- endAttempt(e: Event): void;
909
- }
910
- declare global {
911
- interface HTMLElementTagNameMap {
912
- 'qti-end-attempt-interaction': QtiEndAttemptInteraction;
913
- }
914
- }
915
-
916
- declare const QtiGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
917
- declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
918
- static styles: lit.CSSResult[];
919
- render(): lit_html.TemplateResult<1>;
920
- set correctResponse(value: Readonly<string | string[]>);
921
- }
922
- declare global {
923
- interface HTMLElementTagNameMap {
924
- 'qti-gap-match-interaction': QtiGapMatchInteraction;
925
- }
926
- }
927
-
928
- declare class QtiGraphicAssociateInteraction extends Interaction {
929
- choiceOrdering: boolean;
930
- hotspots: any;
931
- startPoint: any;
932
- endPoint: any;
933
- _lines: any[];
934
- startCoord: {
935
- x: any;
936
- y: any;
937
- };
938
- mouseCoord: {
939
- x: number;
940
- y: number;
941
- };
942
- svgContainer: any;
943
- grImage: any;
944
- static styles: lit.CSSResult[];
945
- svg: SVGSVGElement;
946
- constructor();
947
- reset(): void;
948
- validate(): boolean;
949
- set response(val: string | string[]);
950
- render(): lit_html.TemplateResult<1>;
951
- private positionHotspotOnRegister;
952
- firstUpdated(e: any): void;
953
- disconnectedCallback(): void;
954
- }
955
- declare global {
956
- interface HTMLElementTagNameMap {
957
- 'qti-graphic-associate-interaction': QtiGraphicAssociateInteraction;
958
- }
959
- }
960
-
961
- declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
962
- declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
963
- static styles: lit.CSSResult;
964
- render(): lit_html.TemplateResult<1>;
965
- private positionHotspotOnRegister;
966
- connectedCallback(): void;
967
- disconnectedCallback(): void;
968
- }
969
- declare global {
970
- interface HTMLElementTagNameMap {
971
- 'qti-graphic-gap-match-interaction': QtiGraphicGapMatchInteraction;
972
- }
973
- }
974
-
975
- declare const QtiGraphicOrderInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof LitElement;
976
- declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
977
- choiceOrdering: boolean;
978
- static styles: lit.CSSResult[];
979
- render(): lit_html.TemplateResult<1>;
980
- private setHotspotOrder;
981
- private positionHotspotOnRegister;
982
- connectedCallback(): void;
983
- disconnectedCallback(): void;
984
- }
985
- declare global {
986
- interface HTMLElementTagNameMap {
987
- 'qti-graphic-order-interaction': QtiGraphicOrderInteraction;
988
- }
989
- }
990
-
991
- declare const QtiHotspotInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof LitElement;
992
- declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
993
- static styles: lit.CSSResult[];
994
- render(): lit_html.TemplateResult<1>;
995
- private positionHotspotOnRegister;
996
- connectedCallback(): void;
997
- disconnectedCallback(): void;
998
- }
999
- declare global {
1000
- interface HTMLElementTagNameMap {
1001
- 'qti-hotspot-interaction': QtiHotspotInteraction;
1002
- }
1003
- }
1004
-
1005
- declare class QtiSimpleAssociableChoice extends LitElement {
1006
- static styles: lit.CSSResult;
1007
- /** the minimal number of selections a candidate must make */
1008
- matchMin: number;
1009
- /** the maximum number of selections a candidate must make, the other options will be disabled when max options is checked */
1010
- matchMax: number;
1011
- fixed: boolean;
1012
- connectedCallback(): void;
1013
- render(): lit_html.TemplateResult<1>;
1014
- }
1015
- declare global {
1016
- interface HTMLElementTagNameMap {
1017
- 'qti-simple-associable-choice': QtiSimpleAssociableChoice;
1018
- }
1019
- }
1020
-
1021
- declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
1022
- declare class QtiMatchInteraction extends QtiMatchInteraction_base {
1023
- static styles: lit.CSSResult[];
1024
- rows: QtiSimpleAssociableChoice[];
1025
- cols: QtiSimpleAssociableChoice[];
1026
- lastCheckedRadio: HTMLInputElement | null;
1027
- response: any[];
1028
- correctOptions: string[];
1029
- responseIdentifier: string;
1030
- connectedCallback(): void;
1031
- handleRadioClick: (e: any) => void;
1032
- handleRadioChange: (e: any) => void;
1033
- set correctResponse(responseValue: string | string[]);
1034
- render(): lit_html.TemplateResult<1>;
1035
- }
1036
- declare global {
1037
- interface HTMLElementTagNameMap {
1038
- 'qti-match-interaction': QtiMatchInteraction;
1039
- }
1040
- }
1041
-
1042
- declare class QtiMediaInteraction extends Interaction {
1043
- value: number;
1044
- reset(): void;
1045
- validate(): boolean;
1046
- set response(val: undefined);
1047
- static get properties(): {
1048
- step: {
1049
- type: NumberConstructor;
1050
- attribute: string;
1051
- default: number;
1052
- };
1053
- };
1054
- static styles: lit.CSSResult[];
1055
- render(): lit_html.TemplateResult<1>;
1056
- constructor();
1057
- connectedCallback(): void;
1058
- }
1059
- declare global {
1060
- interface HTMLElementTagNameMap {
1061
- 'qti-media-interaction': QtiMediaInteraction;
1062
- }
1063
- }
1064
-
1065
- declare const QtiOrderInteraction_base: (new (...args: any[]) => {}) & (new (...args: any[]) => IInteraction) & typeof LitElement;
1066
- declare class QtiOrderInteraction extends QtiOrderInteraction_base {
1067
- childrenMap: Element[];
1068
- nrChoices: number;
1069
- correctResponses: string[];
1070
- showCorrectResponses: boolean;
1071
- /** orientation of choices */
1072
- orientation: 'horizontal' | 'vertical';
1073
- static styles: lit.CSSResult[];
1074
- render(): lit_html.TemplateResult<1>;
1075
- set correctResponse(value: Readonly<string | string[]>);
1076
- protected getResponse(): string[];
1077
- firstUpdated(changedProps: any): Promise<void>;
1078
- }
1079
- declare global {
1080
- interface HTMLElementTagNameMap {
1081
- 'qti-order-interaction': QtiOrderInteraction;
1082
- }
1083
- }
1084
-
1085
145
  declare class QtiSPositionObjectInteraction extends LitElement {
1086
146
  render(): lit_html.TemplateResult<1>;
1087
147
  static styles: lit.CSSResult[];
1088
148
  }
1089
149
 
1090
- declare class QtiPositionObjectStage extends LitElement {
1091
- choiceOrdering: boolean;
1092
- startX: any;
1093
- startY: any;
1094
- dragElement: any;
1095
- render(): lit_html.TemplateResult<1>;
1096
- static styles: lit.CSSResult[];
1097
- constructor();
1098
- dragElementHandler(event: any): void;
1099
- firstUpdated(a: any): void;
1100
- removeMoveListener(event: any): void;
1101
- disconnectedCallback(): void;
1102
- }
1103
- declare global {
1104
- interface HTMLElementTagNameMap {
1105
- 'qti-position-object-stage': QtiPositionObjectStage;
1106
- }
1107
- }
1108
-
1109
- declare class QtiSelectPointInteraction extends Interaction {
1110
- static styles: lit.CSSResult[];
1111
- maxChoices: number;
1112
- minChoices: number;
1113
- private _points;
1114
- private _imgElement;
1115
- private _onImageClick;
1116
- render(): lit_html.TemplateResult<1>;
1117
- reset(): void;
1118
- validate(): boolean;
1119
- set response(val: string | string[]);
1120
- firstUpdated(): void;
1121
- disconnectedCallback(): void;
1122
- }
1123
- declare global {
1124
- interface HTMLElementTagNameMap {
1125
- 'qti-select-point-interaction': QtiSelectPointInteraction;
1126
- }
1127
- }
1128
-
1129
- /**
1130
- * @summary The SliderInteraction.Type (qti-slider-interaction) presents the candidate with a control for selecting a numerical value between a lower and upper bound.
1131
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.s61xcrj4qcyj
1132
- * @status stable
1133
- * @since 6.0
1134
- *
1135
- * @event qti-register-interaction - emitted when the interaction wants to register itself
1136
- * @event qti-interaction-response - emitted when the interaction changes
1137
- *
1138
- * @cssprop --show-value - shows the current value while sliding
1139
- * @cssprop --show-ticks - shows the ticks according to steps
1140
- * @cssprop --show-bounds - shows value for lower and upper boundary
1141
- *
1142
- * @csspart slider -- slider inluding, bounds and ticks and value, use it for paddings and margins
1143
- * @csspart bounds -- div for bounds, containing two divs for with min, and max bounds value
1144
- * @csspart ticks -- div for ticks, use lineair gradient and exposed css variables for styling
1145
- * @csspart rail -- div for rail, style according to needs
1146
- * @csspart knob -- div, should be relative or absolute
1147
- * @csspart value -- div, containing value
1148
- *
1149
- * @slot - The default slot where <qti-simple-choice> must be placed.
1150
- * @slot prompt - slot where the prompt is placed.
1151
- */
1152
- declare class QtiSliderInteraction extends Interaction {
1153
- csLive: CSSStyleDeclaration;
1154
- private _knob;
1155
- private _rail;
1156
- value: number;
1157
- stepLabel: boolean;
1158
- reverse: boolean;
1159
- private _min;
1160
- set min(value: number);
1161
- get min(): number;
1162
- private _max;
1163
- set max(value: number);
1164
- get max(): number;
1165
- private _step;
1166
- set step(value: number);
1167
- get step(): number;
1168
- _handleDisabledChange: (old: any, disabled: any) => void;
1169
- _handleReadonlyChange: (old: any, readonly: any) => void;
1170
- reset(): void;
1171
- validate(): boolean;
1172
- constructor();
1173
- set response(myResponse: string | string[]);
1174
- static styles: lit.CSSResult[];
1175
- render(): lit_html.TemplateResult<1>;
1176
- connectedCallback(): void;
1177
- private _onTouchMove;
1178
- private _onMouseDown;
1179
- /** calculateValue gets x position and compares this with the total width in pixels */
1180
- private calculateValue;
1181
- private getPositionFromEvent;
1182
- }
1183
- declare global {
1184
- interface HTMLElementTagNameMap {
1185
- 'qti-slider-interaction': QtiSliderInteraction;
1186
- }
1187
- }
1188
-
1189
- /**
1190
- * https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
1191
- * <qti-custom-operator class="js.org">
1192
- <qti-base-value base-type="string"><![CDATA[
1193
- console.log(context.variables);
1194
- return 'B'
1195
- document.querySelector('qti-end-attempt-interaction').disabled = true;
1196
- ]]></qti-base-value>
1197
- </qti-custom-operator>
1198
- </qti-set-outcome-value>
1199
- */
1200
- declare class QtiCustomOperator extends LitElement implements Calculate {
1201
- private operatorFunction;
1202
- private _context?;
1203
- render(): lit_html.TemplateResult<1>;
1204
- handleSlotChange(event: Event): void;
1205
- calculate(): any;
1206
- }
1207
- declare global {
1208
- interface HTMLElementTagNameMap {
1209
- 'qti-custom-operator': QtiCustomOperator;
1210
- }
1211
- }
1212
-
1213
- declare class QtiAssociableHotspot extends LitElement {
1214
- static styles: lit.CSSResult;
1215
- connectedCallback(): void;
1216
- render(): lit_html.TemplateResult<1>;
1217
- }
1218
- declare global {
1219
- interface HTMLElementTagNameMap {
1220
- 'qti-associable-hotspot': QtiAssociableHotspot;
1221
- }
1222
- }
1223
-
1224
- declare class QtiGap extends LitElement {
1225
- static styles: lit.CSSResult;
1226
- tabindex: number | undefined;
1227
- render(): lit_html.TemplateResult<1>;
1228
- }
1229
- declare global {
1230
- interface HTMLElementTagNameMap {
1231
- 'qti-gap': QtiGap;
1232
- }
1233
- }
1234
-
1235
- declare class QtiGapImg extends LitElement {
1236
- static styles: lit.CSSResult;
1237
- tabindex: number | undefined;
1238
- connectedCallback(): void;
1239
- }
1240
- declare global {
1241
- interface HTMLElementTagNameMap {
1242
- 'qti-gap-img': QtiGapImg;
1243
- }
1244
- }
1245
-
1246
- declare class QtiGapText extends LitElement {
1247
- static styles: lit.CSSResult;
1248
- tabindex: number | undefined;
1249
- connectedCallback(): void;
1250
- render(): lit_html.TemplateResult<1>;
1251
- }
1252
- declare global {
1253
- interface HTMLElementTagNameMap {
1254
- 'qti-gap-text': QtiGapText;
1255
- }
1256
- }
1257
-
1258
- declare class QtiHotspotChoice extends QtiChoice {
1259
- static styles: lit.CSSResult;
1260
- order: number;
1261
- }
1262
- declare global {
1263
- interface HTMLElementTagNameMap {
1264
- 'qti-hotspot-choice': QtiHotspotChoice;
1265
- }
1266
- }
1267
-
1268
- declare class QtiHottext extends QtiChoice {
1269
- static styles: lit.CSSResult;
1270
- render(): lit_html.TemplateResult<1>;
1271
- }
1272
- declare global {
1273
- interface HTMLElementTagNameMap {
1274
- 'qti-hottext': QtiHottext;
1275
- }
1276
- }
1277
-
1278
- declare class QtiInlineChoice extends LitElement {
1279
- static get styles(): lit.CSSResult[];
1280
- identifier: string;
1281
- connectedCallback(): void;
1282
- disconnectedCallback(): void;
1283
- render(): lit_html.TemplateResult<1>;
1284
- private _onSelectInlineChoice;
1285
- }
1286
- declare global {
1287
- interface HTMLElementTagNameMap {
1288
- 'qti-inline-choice': QtiInlineChoice;
1289
- }
1290
- }
1291
-
1292
- /**
1293
- * @summary Short summary of the component's intended use.
1294
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.j9nu1oa1tu3b
1295
- * @status stable
1296
- * @since 4.0
1297
- *
1298
- * @event qti-choice-element-selected - Emitted when a choice is selected.
1299
- * @event qti-register-choice - Emitted when an choice is added
1300
- * @event qti-loose-choice - Emitted when a choice is removed
1301
- *
1302
- * @slot - The default slot.
1303
- */
1304
- declare class QtiSimpleChoice extends QtiChoice {
1305
- static styles: lit.CSSResult;
1306
- marker: string;
1307
- render(): lit_html.TemplateResult<1>;
1308
- }
1309
- declare global {
1310
- interface HTMLElementTagNameMap {
1311
- 'qti-simple-choice': QtiSimpleChoice;
1312
- }
1313
- }
1314
-
1315
- export { type BaseType, type Calculate, type Cardinality, Interaction, type InteractionChangedDetails, type ItemContext, type MockQtiExpression, type Multiple, type Ordered, type OutcomeChangedDetails, type OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiContentBody, QtiCorrect, QtiCustomInteraction, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, type QtiExpressionBase, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, type QtiInteractionChanged, QtiIsNull, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, type QtiOutcomeChanged, QtiOutcomeDeclaration, QtiOutcomeProcessing, QtiOutcomeProcessingProcessor, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRubricBlock, QtiRule, type QtiRuleBase, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiSumExpression, QtiTextEntryInteraction, QtiVariable, type ResponseInteraction, type ResponseVariable, type VariableDeclaration, type VariableValue, type directedPair, type float, type integer, itemContext, itemContextVariables, qtiAndMixin };
150
+ export { BaseType, ItemContext, QtPrintedVariable, QtiBaseValue, QtiConditionExpression, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiExpression, QtiExpressionBase, QtiGt, QtiGte, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiRuleBase, QtiSPositionObjectInteraction, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, ResponseVariable, VariableDeclaration };