@citolab/qti-components 6.0.2-1 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,152 @@
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-5c200a1b.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-5c200a1b.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';
1
+ import { R as ResponseType$1, a as ResponseInteraction, Q as QtiVariableJSON, B as BaseType, C as Cardinality } from '../ExpressionResult-2192c3d8.js';
2
+ export { c as Calculate, I as InputResponseFormat, M as Multiple, O as Ordered, b as ResponseItem, d as directedPair, f as float, i as integer } from '../ExpressionResult-2192c3d8.js';
3
+ import { V as VariableDeclaration, Q as QtiElement } from '../qti-assessment-item-e9f437d6.js';
4
+ export { O as OutcomeVariable, a as QtiAssessmentItem, R as ResponseVariable } from '../qti-assessment-item-e9f437d6.js';
7
5
  import * as lit from 'lit';
8
- import { LitElement } from 'lit';
6
+ import { LitElement, CSSResultGroup } from 'lit';
9
7
  import * as lit_html from 'lit-html';
10
8
  import { ContextConsumer } from '@lit-labs/context';
11
9
  import * as lit_html_directives_ref from 'lit-html/directives/ref';
12
10
 
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
+
13
150
  declare const Events: {
14
151
  ON_OUTCOME_CHANGED: string;
15
152
  ON_INTERACTION_CHANGED: string;
@@ -31,12 +168,66 @@ declare class QtiStylesheet extends LitElement {
31
168
  disconnectedCallback(): void;
32
169
  }
33
170
 
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
+
34
191
  declare class QtiPrompt extends LitElement {
35
192
  render(): lit_html.TemplateResult<1>;
36
193
  connectedCallback(): void;
37
194
  }
38
195
 
39
- declare class QtiVariableDeclaration extends LitElement {
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 {
40
231
  render(): lit_html.TemplateResult<1>;
41
232
  }
42
233
 
@@ -51,11 +242,10 @@ declare class QtiResponseDeclaration extends QtiVariableDeclaration {
51
242
 
52
243
  declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
53
244
  static get observedAttributes(): string[];
54
- get interpolationTable(): any;
55
245
  connectedCallback(): void;
56
246
  }
57
247
 
58
- declare class QtiCompanionMaterialsInfo extends LitElement {
248
+ declare class QtiCompanionMaterialsInfo extends QtiElement {
59
249
  }
60
250
 
61
251
  interface Logger {
@@ -63,7 +253,7 @@ interface Logger {
63
253
  log: (msg: string) => void;
64
254
  }
65
255
 
66
- declare class qtiRubricBlock extends LitElement {
256
+ declare class qtiRubricBlock extends QtiElement {
67
257
  id: any;
68
258
  use: 'instructions' | 'scoring' | 'navigation';
69
259
  view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
@@ -77,7 +267,7 @@ declare class qtiRubricBlock extends LitElement {
77
267
  connectedCallback(): void;
78
268
  }
79
269
 
80
- declare class qtiContentBody extends LitElement {
270
+ declare class qtiContentBody extends QtiElement {
81
271
  render(): lit_html.TemplateResult<1>;
82
272
  }
83
273
 
@@ -88,7 +278,7 @@ declare abstract class QtiFeedback extends LitElement {
88
278
  protected showStatus: string;
89
279
  constructor();
90
280
  connectedCallback(): void;
91
- checkShowFeedback(outcomeIdentifier: string, outcomeValue: number): void;
281
+ checkShowFeedback(outcomeIdentifier: string, outcomeValue: ResponseType$1): void;
92
282
  private showFeedback;
93
283
  }
94
284
 
@@ -101,12 +291,43 @@ declare class QtiModalFeedback extends QtiFeedback {
101
291
  render(): lit_html.TemplateResult<1>;
102
292
  }
103
293
 
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
+
104
307
  declare class QtiTextEntryInteraction extends Interaction {
105
- expectedLength: number;
106
- patternMask: string;
107
- placeholderText: string;
308
+ static inputWidthClass: string[];
108
309
  value: string;
109
- classNames: any;
310
+ expectedLength: any;
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();
110
331
  set response(value: string | undefined);
111
332
  validate(): boolean;
112
333
  static get styles(): lit.CSSResult[];
@@ -117,13 +338,12 @@ declare class QtiTextEntryInteraction extends Interaction {
117
338
  }
118
339
 
119
340
  declare class QtiExtendedTextInteraction extends Interaction {
341
+ static rowHeightClass: string[];
120
342
  textareaRef: lit_html_directives_ref.Ref<HTMLTextAreaElement>;
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;
343
+ expectedLength: any;
344
+ patternMask: any;
345
+ placeholderText: any;
346
+ value: string;
127
347
  classNames: any;
128
348
  handleclassNamesChange(old: any, disabled: boolean): void;
129
349
  set response(value: string);
@@ -135,6 +355,35 @@ declare class QtiExtendedTextInteraction extends Interaction {
135
355
  private setEmptyAttribute;
136
356
  }
137
357
 
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
+
138
387
  declare class QtiHottextInteraction extends Choices {
139
388
  connectedCallback(): void;
140
389
  render: () => lit_html.TemplateResult<1>;
@@ -165,120 +414,74 @@ declare class QtiInlineChoiceInteraction extends Interaction {
165
414
  choiceSelected(event: Event): void;
166
415
  }
167
416
 
168
- declare class QtiResponseCondition extends QtiRule {
169
- render(): lit_html.TemplateResult<1>;
170
- process(): void;
171
- }
172
-
173
- declare class QtiSetOutcomeValue extends QtiRule {
174
- process(): void;
175
- }
176
-
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;
187
- }
188
-
189
- declare class QtiResponseIf extends QtiResponseElse {
190
- render(): lit_html.TemplateResult<1>;
191
- calculate(): boolean;
192
- getSubRules(): QtiRule[];
193
- }
194
-
195
- declare class QtiResponseElseIf extends QtiResponseIf {
196
- render(): lit_html.TemplateResult<1>;
197
- }
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[];
204
- }
205
-
206
- declare class QtiGt extends QtiExpression<boolean> {
207
- calculate(): boolean;
208
- }
209
-
210
- declare class QtiConditionExpression extends QtiExpression<boolean> {
211
- render(): lit_html.TemplateResult<1>;
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;
417
+ /**
418
+ * @summary The ChoiceInteraction.Type (qti-choice-interaction) interaction presents a collection of choices to the candidate.
419
+ * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.j9nu1oa1tu3b
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>;
232
434
  }
233
-
234
- declare class QtiEqualRounded extends QtiExpression<boolean> {
235
- roundingMode: "decimalPlaces" | "significantFigures";
236
- get figures(): number;
237
- calculate(): boolean;
435
+ declare global {
436
+ interface HTMLElementTagNameMap {
437
+ 'qti-choice-interaction': QtiChoiceInteraction;
438
+ }
238
439
  }
239
440
 
240
- declare class QtiBaseValue extends QtiExpression<string> {
241
- baseType: BaseType;
242
- calculate(): string;
441
+ /**
442
+ * @summary Short summary of the component's intended use.
443
+ * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.j9nu1oa1tu3b
444
+ * @status stable
445
+ * @since 4.0
446
+ *
447
+ * @event qti-choice-element-selected - Emitted when a choice is selected.
448
+ * @event qti-register-choice - Emitted when an choice is added
449
+ * @event qti-loose-choice - Emitted when a choice is removed
450
+ *
451
+ * @slot - The default slot.
452
+ */
453
+ declare class QtiSimpleChoice extends QtiChoice {
454
+ static styles: CSSResultGroup;
243
455
  }
244
-
245
- declare class QtiContains extends QtiExpression<boolean> {
246
- calculate(): boolean;
456
+ declare global {
457
+ interface HTMLElementTagNameMap {
458
+ 'qti-simple-choice': QtiSimpleChoice;
459
+ }
247
460
  }
248
461
 
249
- declare class QtiCorrect extends QtiExpression<string | string[]> {
462
+ declare class QtiResponseProcessing extends LitElement {
250
463
  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;
464
+ static get observedAttributes(): string[];
465
+ process(): void;
466
+ private fragmentFromString;
257
467
  }
258
-
259
- declare class QtiMapResponse extends QtiExpression<number> {
260
- identifier: string;
261
- calculate(): number;
468
+ declare global {
469
+ interface HTMLElementTagNameMap {
470
+ 'qti-response-processing': QtiResponseProcessing;
471
+ }
262
472
  }
263
473
 
264
- declare class QtiMatch extends QtiExpression<boolean> {
265
- calculate(): boolean;
266
- }
267
-
268
- declare class QtiVariable extends QtiExpression<number | string | string[]> {
474
+ declare class QtiRule extends LitElement {
269
475
  render(): lit_html.TemplateResult<1>;
270
- calculate(): string | number | string[];
271
- }
272
-
273
- declare class QtiMultiple extends QtiExpression<ResponseVariable[]> {
274
- calculate(): ResponseVariable[];
476
+ process(): void;
275
477
  }
276
-
277
- declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
278
- calculate(): ResponseVariable[];
478
+ declare global {
479
+ interface HTMLElementTagNameMap {
480
+ 'qti-rule': QtiRule;
481
+ }
279
482
  }
280
483
 
281
- declare class QtiPortableCustomInteraction extends LitElement {
484
+ declare class QtiPortableCustomInteraction extends QtiElement {
282
485
  private responseIdentifier;
283
486
  private module;
284
487
  private customInteractionTypeIdentifier;
@@ -315,12 +518,12 @@ declare class QtiPortableCustomInteraction extends LitElement {
315
518
  interface IInteraction {
316
519
  disabled: boolean;
317
520
  readonly: boolean;
318
- response: string | string[];
521
+ response: ResponseType$1;
319
522
  reset(): any;
320
523
  validate(): boolean;
321
524
  }
322
525
 
323
- declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
526
+ declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof QtiElement;
324
527
  declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
325
528
  private _childrenMap;
326
529
  static styles: lit.CSSResult;
@@ -328,7 +531,7 @@ declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
328
531
  connectedCallback(): void;
329
532
  }
330
533
 
331
- declare class QtiSimpleAssociableChoice extends LitElement {
534
+ declare class qtiSimpleAssociableChoice extends LitElement {
332
535
  connectedCallback(): void;
333
536
  render(): lit_html.TemplateResult<1>;
334
537
  }
@@ -348,9 +551,6 @@ declare class QtiGap extends LitElement {
348
551
  render(): lit_html.TemplateResult<1>;
349
552
  }
350
553
 
351
- declare class QtiInlineChoice extends LitElement {
352
- }
353
-
354
554
  declare class QtiGraphicAssociateInteraction extends Choices {
355
555
  choiceOrdering: boolean;
356
556
  static styles: lit.CSSResult[];
@@ -360,7 +560,7 @@ declare class QtiGraphicAssociateInteraction extends Choices {
360
560
  disconnectedCallback(): void;
361
561
  }
362
562
 
363
- declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
563
+ declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof QtiElement;
364
564
  declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
365
565
  static styles: lit.CSSResult;
366
566
  render(): lit_html.TemplateResult<1>;
@@ -394,7 +594,7 @@ declare class QtiHotspotChoice extends QtiChoice {
394
594
 
395
595
  declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
396
596
  declare class QtiMatchInteraction extends QtiMatchInteraction_base {
397
- static styles: any[];
597
+ static styles: lit.CSSResult[];
398
598
  render(): lit_html.TemplateResult<1>;
399
599
  }
400
600
 
@@ -416,7 +616,7 @@ declare class QtiMediaInteraction extends Interaction {
416
616
  connectedCallback(): void;
417
617
  }
418
618
 
419
- declare const QtiOrderInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
619
+ declare const QtiOrderInteraction_base: (new (...args: any[]) => IInteraction) & typeof QtiElement;
420
620
  declare class QtiOrderInteraction extends QtiOrderInteraction_base {
421
621
  childrenMap: Element[];
422
622
  private _classNames;
@@ -438,7 +638,7 @@ declare class QtiOrderInteraction extends QtiOrderInteraction_base {
438
638
  }
439
639
 
440
640
  declare class QtiSelectPointInteraction extends Choices {
441
- static styles: any[];
641
+ static styles: lit.CSSResult[];
442
642
  choiceOrdering: boolean;
443
643
  render(): lit_html.TemplateResult<1>;
444
644
  constructor();
@@ -465,7 +665,7 @@ declare class QtiSliderInteraction extends Interaction {
465
665
  _handleReadonlyChange: (old: any, readonly: any) => void;
466
666
  reset(): void;
467
667
  validate(): boolean;
468
- set response(myResponse: string | string[]);
668
+ set response(myResponse: ResponseType$1);
469
669
  static styles: lit.CSSResult[];
470
670
  render(): lit_html.TemplateResult<1>;
471
671
  connectedCallback(): void;
@@ -583,53 +783,4 @@ declare class FlippablesInterface {
583
783
  }
584
784
  declare const FlippablesMixin: <T extends Constructor<LitElement>>(superClass: T, droppablesSel: string, draggablesSel: string) => Constructor<FlippablesInterface> & T;
585
785
 
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 };
786
+ export { BaseType, Cardinality, Choices, DragDropInteractionMixin, DroppablesMixin, Events, FlippablesInterface, FlippablesMixin, InteractionChangedDetails, OutcomeChangedDetails, QtiAssociateInteraction, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiCompanionMaterialsInfo, QtiExtendedTextInteraction, QtiFeedbackInline, QtiGap, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, qtiLooseChoice as QtiLooseChoice, QtiMatchInteraction, QtiMediaInteraction, QtiModalFeedback, QtiOrderInteraction, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseDeclaration, QtiResponseProcessing, QtiRule, QtiSelectPointInteraction, QtiSliderInteraction, QtiStylesheet, QtiTextEntryInteraction, QtiVariableJSON, ResponseInteraction, ResponseType$1 as ResponseType, TouchDragAndDrop, qtiContentBody, qtiRubricBlock, qtiSimpleAssociableChoice };