@citolab/qti-components 6.9.1-beta.8 → 6.9.1-beta.81
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/custom-element-eslint-rules.js +331 -0
- package/dist/custom-elements.json +21105 -4972
- package/dist/index.global.js +226 -0
- package/dist/index.js +7323 -1786
- package/dist/index.min.js +952 -0
- package/dist/item.css +2405 -697
- package/dist/qti-components/index.cjs +6509 -0
- package/dist/qti-components/index.d.cts +150 -0
- package/dist/qti-components/index.d.ts +6 -6
- package/dist/qti-components/index.js +6013 -182
- package/dist/qti-components-jsx.d.ts +1836 -0
- package/dist/qti-item/index.cjs +90 -0
- package/dist/qti-item/index.d.cts +24 -0
- package/dist/qti-item/index.d.ts +15 -10
- package/dist/qti-item/index.js +64 -1504
- package/dist/qti-loader/index.cjs +333 -0
- package/dist/qti-loader/index.d.cts +20 -0
- package/dist/qti-loader/index.d.ts +19 -4
- package/dist/qti-loader/index.js +306 -2
- package/dist/{qti-simple-choice-CafJuhnH.d.ts → qti-simple-choice-DC5DJota.d.cts} +116 -152
- package/dist/qti-simple-choice-DC5DJota.d.ts +1137 -0
- package/dist/qti-transformers/index.cjs +317 -0
- package/dist/qti-transformers/index.d.cts +75 -0
- package/dist/qti-transformers/index.d.ts +25 -120
- package/dist/qti-transformers/index.js +289 -2
- package/dist/vscode.css-custom-data.json +44 -0
- package/dist/vscode.html-custom-data.json +965 -0
- package/package.json +144 -63
- package/dist/chunk-62FWJYVB.js +0 -24
- package/dist/chunk-E7TLXHQH.js +0 -2
|
@@ -30,16 +30,6 @@ type InteractionChangedDetails = ResponseInteraction & {
|
|
|
30
30
|
item: string;
|
|
31
31
|
};
|
|
32
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
33
|
type QtiInteractionChanged = CustomEvent<InteractionChangedDetails>;
|
|
44
34
|
declare global {
|
|
45
35
|
interface GlobalEventHandlersEventMap {
|
|
@@ -47,20 +37,6 @@ declare global {
|
|
|
47
37
|
}
|
|
48
38
|
}
|
|
49
39
|
|
|
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
40
|
type QtiOutcomeChanged = CustomEvent<OutcomeChangedDetails>;
|
|
65
41
|
declare global {
|
|
66
42
|
interface GlobalEventHandlersEventMap {
|
|
@@ -68,20 +44,6 @@ declare global {
|
|
|
68
44
|
}
|
|
69
45
|
}
|
|
70
46
|
|
|
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
47
|
declare class QtiMapping extends LitElement {
|
|
86
48
|
defaultValue: number;
|
|
87
49
|
lowerBound: number;
|
|
@@ -111,22 +73,6 @@ interface ResponseVariable extends VariableDeclaration<string | string[] | null>
|
|
|
111
73
|
correctResponse?: string | string[] | null;
|
|
112
74
|
}
|
|
113
75
|
|
|
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
76
|
/**
|
|
131
77
|
* @summary The qti-assessment-item element contains all the other QTI 3 item structures.
|
|
132
78
|
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.dltnnj87l0yj
|
|
@@ -202,7 +148,7 @@ declare class QtiAssessmentStimulusRef extends LitElement {
|
|
|
202
148
|
* Loads and appends the stimulus to the specified element.
|
|
203
149
|
* @param stimulusRef - The element to which the stimulus will be appended.
|
|
204
150
|
*/
|
|
205
|
-
|
|
151
|
+
updateStimulusRef(stimulusRef: Element): Promise<void>;
|
|
206
152
|
}
|
|
207
153
|
declare global {
|
|
208
154
|
interface HTMLElementTagNameMap {
|
|
@@ -210,38 +156,28 @@ declare global {
|
|
|
210
156
|
}
|
|
211
157
|
}
|
|
212
158
|
|
|
159
|
+
type Constructor$1<T = {}> = abstract new (...args: any[]) => T;
|
|
160
|
+
interface ChoiceInterface {
|
|
161
|
+
identifier: string;
|
|
162
|
+
disabled: boolean;
|
|
163
|
+
readonly: boolean;
|
|
164
|
+
}
|
|
213
165
|
/**
|
|
214
|
-
*
|
|
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.
|
|
166
|
+
* A mixin that adds choice functionality to a LitElement-based class.
|
|
167
|
+
* It dispatches events with a custom `type` and handles selection logic.
|
|
222
168
|
*
|
|
223
|
-
* @
|
|
169
|
+
* @param Base - The base class to extend.
|
|
170
|
+
* @param type - The type of the choice, used in event names.
|
|
171
|
+
* @returns A new class extending the base class with choice functionality.
|
|
224
172
|
*/
|
|
225
|
-
|
|
173
|
+
interface ActiveElementMixinInterface {
|
|
226
174
|
identifier: string;
|
|
227
|
-
|
|
175
|
+
tabIndex: number;
|
|
228
176
|
disabled: boolean;
|
|
229
177
|
readonly: boolean;
|
|
230
|
-
|
|
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
|
-
}
|
|
178
|
+
internals: ElementInternals;
|
|
244
179
|
}
|
|
180
|
+
declare function ActiveElementMixin<T extends Constructor$1<LitElement>>(Base: T, type: string): Constructor$1<ActiveElementMixinInterface> & T;
|
|
245
181
|
|
|
246
182
|
/**
|
|
247
183
|
* @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.
|
|
@@ -274,8 +210,9 @@ declare global {
|
|
|
274
210
|
}
|
|
275
211
|
|
|
276
212
|
declare class QtiStylesheet extends LitElement {
|
|
277
|
-
private
|
|
213
|
+
private styleElement;
|
|
278
214
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
215
|
+
private minifyCss;
|
|
279
216
|
disconnectedCallback(): void;
|
|
280
217
|
}
|
|
281
218
|
declare global {
|
|
@@ -376,6 +313,7 @@ declare abstract class QtiFeedback extends LitElement {
|
|
|
376
313
|
outcomeIdentifier: string;
|
|
377
314
|
protected identifier: string;
|
|
378
315
|
showStatus: string;
|
|
316
|
+
private _context?;
|
|
379
317
|
connectedCallback(): void;
|
|
380
318
|
checkShowFeedback(outcomeIdentifier: string): void;
|
|
381
319
|
private showFeedback;
|
|
@@ -412,35 +350,57 @@ declare global {
|
|
|
412
350
|
}
|
|
413
351
|
}
|
|
414
352
|
|
|
415
|
-
|
|
353
|
+
interface IInteraction {
|
|
354
|
+
correctResponse: Readonly<string | string[]>;
|
|
355
|
+
value: string | string[];
|
|
356
|
+
responseIdentifier: string;
|
|
357
|
+
disabled: boolean;
|
|
358
|
+
readonly: boolean;
|
|
359
|
+
validate(): boolean;
|
|
360
|
+
reportValidity(): boolean;
|
|
361
|
+
reset(): void;
|
|
362
|
+
saveResponse(value: string | string[]): void;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
declare abstract class Interaction extends LitElement implements IInteraction {
|
|
366
|
+
static formAssociated: boolean;
|
|
416
367
|
responseIdentifier: string;
|
|
417
368
|
/** disabled should be exposed to the attributes and accessible as property */
|
|
418
369
|
disabled: boolean;
|
|
419
370
|
/** readonly should be exposed to the attributes and accessible as property */
|
|
420
371
|
readonly: boolean;
|
|
372
|
+
protected _correctResponse: string | string[];
|
|
373
|
+
protected _internals: ElementInternals;
|
|
374
|
+
constructor();
|
|
421
375
|
abstract validate(): boolean;
|
|
422
|
-
|
|
423
|
-
|
|
376
|
+
reportValidity(): boolean;
|
|
377
|
+
reset(): void;
|
|
378
|
+
abstract get value(): string | string[];
|
|
379
|
+
abstract set value(val: string | string[]);
|
|
380
|
+
get correctResponse(): string | string[];
|
|
381
|
+
set correctResponse(value: string | string[]);
|
|
424
382
|
connectedCallback(): void;
|
|
425
383
|
saveResponse(value: string | string[]): void;
|
|
426
384
|
}
|
|
427
385
|
|
|
428
386
|
declare class QtiExtendedTextInteraction extends Interaction {
|
|
429
|
-
|
|
387
|
+
private _rows;
|
|
430
388
|
/** expected length is mapped to the property maxlength on the textarea */
|
|
431
389
|
expectedLength: number;
|
|
432
390
|
patternMask: string;
|
|
433
391
|
/** text appearing in the extended-text-nteraction if it is empty */
|
|
434
392
|
placeholderText: string;
|
|
393
|
+
dataPatternmaskMessage: string;
|
|
435
394
|
private _value;
|
|
436
395
|
classNames: any;
|
|
437
|
-
handleclassNamesChange(old: any,
|
|
438
|
-
|
|
396
|
+
handleclassNamesChange(old: any, classes: string): void;
|
|
397
|
+
get value(): string | string[];
|
|
398
|
+
set value(val: string | string[]);
|
|
439
399
|
validate(): boolean;
|
|
400
|
+
reportValidity(): boolean;
|
|
440
401
|
static get styles(): lit.CSSResult[];
|
|
441
402
|
render(): lit_html.TemplateResult<1>;
|
|
442
403
|
protected textChanged(event: Event): void;
|
|
443
|
-
reset(): void;
|
|
444
404
|
private setEmptyAttribute;
|
|
445
405
|
}
|
|
446
406
|
declare global {
|
|
@@ -450,21 +410,19 @@ declare global {
|
|
|
450
410
|
}
|
|
451
411
|
|
|
452
412
|
declare class QtiTextEntryInteraction extends Interaction {
|
|
413
|
+
static styles: CSSResultGroup;
|
|
453
414
|
expectedLength: number;
|
|
454
415
|
patternMask: string;
|
|
455
416
|
placeholderText: string;
|
|
417
|
+
dataPatternmaskMessage: string;
|
|
456
418
|
private _value;
|
|
457
|
-
private _correctValue;
|
|
458
|
-
private _size;
|
|
459
419
|
inputRef: lit_html_directives_ref_js.Ref<HTMLInputElement>;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
set response(value: string | undefined);
|
|
420
|
+
get value(): string | string[];
|
|
421
|
+
set value(val: string | string[]);
|
|
463
422
|
validate(): boolean;
|
|
464
|
-
static get styles(): lit.CSSResult[];
|
|
465
|
-
set correctResponse(value: string);
|
|
466
423
|
render(): lit_html.TemplateResult<1>;
|
|
467
424
|
protected textChanged(event: Event): void;
|
|
425
|
+
reportValidity(): boolean;
|
|
468
426
|
reset(): void;
|
|
469
427
|
private setEmptyAttribute;
|
|
470
428
|
}
|
|
@@ -474,13 +432,14 @@ declare global {
|
|
|
474
432
|
}
|
|
475
433
|
}
|
|
476
434
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
435
|
+
type Choice = HTMLElement & ChoiceInterface & {
|
|
436
|
+
internals: ElementInternals;
|
|
437
|
+
};
|
|
438
|
+
interface ChoicesInterface extends IInteraction {
|
|
480
439
|
correctResponse: string | string[];
|
|
481
440
|
}
|
|
482
441
|
|
|
483
|
-
declare const QtiHottextInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof
|
|
442
|
+
declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
484
443
|
declare class QtiHottextInteraction extends QtiHottextInteraction_base {
|
|
485
444
|
connectedCallback(): void;
|
|
486
445
|
render: () => lit_html.TemplateResult<1>;
|
|
@@ -507,8 +466,9 @@ declare class QtiInlineChoiceInteraction extends Interaction {
|
|
|
507
466
|
disconnectedCallback(): void;
|
|
508
467
|
validate(): boolean;
|
|
509
468
|
reset(): void;
|
|
510
|
-
set
|
|
511
|
-
|
|
469
|
+
set value(value: string);
|
|
470
|
+
get value(): string;
|
|
471
|
+
set correctResponse(value: string | string[]);
|
|
512
472
|
choiceSelected(event: Event): void;
|
|
513
473
|
}
|
|
514
474
|
declare global {
|
|
@@ -517,11 +477,13 @@ declare global {
|
|
|
517
477
|
}
|
|
518
478
|
}
|
|
519
479
|
|
|
520
|
-
|
|
480
|
+
type Orientation = 'horizontal' | 'vertical' | undefined;
|
|
481
|
+
declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
521
482
|
declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
|
|
522
483
|
static styles: CSSResultGroup;
|
|
484
|
+
constructor();
|
|
523
485
|
/** orientation of choices */
|
|
524
|
-
orientation:
|
|
486
|
+
orientation: Orientation;
|
|
525
487
|
render(): lit_html.TemplateResult<1>;
|
|
526
488
|
}
|
|
527
489
|
declare global {
|
|
@@ -566,7 +528,7 @@ declare abstract class QtiExpression<T> extends LitElement implements QtiExpress
|
|
|
566
528
|
render(): lit_html.TemplateResult<1>;
|
|
567
529
|
calculate(): Readonly<T>;
|
|
568
530
|
protected getResult(): Readonly<T>;
|
|
569
|
-
|
|
531
|
+
protected context?: ItemContext;
|
|
570
532
|
getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
|
|
571
533
|
}
|
|
572
534
|
|
|
@@ -683,7 +645,6 @@ declare class QtiPortableCustomInteraction extends Interaction {
|
|
|
683
645
|
private intervalId;
|
|
684
646
|
private rawResponse;
|
|
685
647
|
private pci;
|
|
686
|
-
responseIdentifier: string;
|
|
687
648
|
module: string;
|
|
688
649
|
customInteractionTypeIdentifier: string;
|
|
689
650
|
private _errorMessage;
|
|
@@ -691,7 +652,8 @@ declare class QtiPortableCustomInteraction extends Interaction {
|
|
|
691
652
|
private startChecking;
|
|
692
653
|
private stopChecking;
|
|
693
654
|
validate(): boolean;
|
|
694
|
-
set
|
|
655
|
+
set value(val: string | string[]);
|
|
656
|
+
get value(): string | string[];
|
|
695
657
|
getTAOConfig(node: any): {};
|
|
696
658
|
register(pci: IMSpci<unknown>): void;
|
|
697
659
|
connectedCallback(): void;
|
|
@@ -710,20 +672,15 @@ declare global {
|
|
|
710
672
|
}
|
|
711
673
|
}
|
|
712
674
|
|
|
713
|
-
|
|
714
|
-
disabled: boolean;
|
|
715
|
-
readonly: boolean;
|
|
716
|
-
response: string | string[];
|
|
717
|
-
reset(): any;
|
|
718
|
-
validate(): boolean;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
675
|
+
declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
722
676
|
declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
723
677
|
private _childrenMap;
|
|
724
|
-
static styles:
|
|
678
|
+
static styles: CSSResultGroup;
|
|
679
|
+
private _registerChoiceHandler;
|
|
680
|
+
constructor();
|
|
681
|
+
private _registerChoice;
|
|
725
682
|
render(): lit_html.TemplateResult<1>;
|
|
726
|
-
|
|
683
|
+
disconnectedCallback(): void;
|
|
727
684
|
}
|
|
728
685
|
declare global {
|
|
729
686
|
interface HTMLElementTagNameMap {
|
|
@@ -734,7 +691,6 @@ declare global {
|
|
|
734
691
|
declare class QtiCustomInteraction extends Interaction {
|
|
735
692
|
private rawResponse;
|
|
736
693
|
constructor();
|
|
737
|
-
responseIdentifier: string;
|
|
738
694
|
data: string;
|
|
739
695
|
baseItemUrl: string;
|
|
740
696
|
baseRefUrl: string;
|
|
@@ -752,7 +708,8 @@ declare class QtiCustomInteraction extends Interaction {
|
|
|
752
708
|
private postToWindowAndIframes;
|
|
753
709
|
handlePostMessage(event: MessageEvent): void;
|
|
754
710
|
validate(): boolean;
|
|
755
|
-
|
|
711
|
+
get value(): string | string[];
|
|
712
|
+
set value(val: string | string[]);
|
|
756
713
|
disconnectedCallback(): void;
|
|
757
714
|
render(): lit_html.TemplateResult<1>;
|
|
758
715
|
}
|
|
@@ -766,7 +723,8 @@ declare class QtiEndAttemptInteraction extends Interaction {
|
|
|
766
723
|
countAttempt: string;
|
|
767
724
|
title: 'end attempt';
|
|
768
725
|
validate(): boolean;
|
|
769
|
-
|
|
726
|
+
get value(): string | string[];
|
|
727
|
+
set value(val: string | string[]);
|
|
770
728
|
render(): lit_html.TemplateResult<1>;
|
|
771
729
|
endAttempt(e: Event): void;
|
|
772
730
|
}
|
|
@@ -776,11 +734,11 @@ declare global {
|
|
|
776
734
|
}
|
|
777
735
|
}
|
|
778
736
|
|
|
779
|
-
declare const QtiGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
737
|
+
declare const QtiGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
780
738
|
declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
|
|
781
739
|
static styles: lit.CSSResult[];
|
|
782
740
|
render(): lit_html.TemplateResult<1>;
|
|
783
|
-
set correctResponse(value:
|
|
741
|
+
set correctResponse(value: string | string[]);
|
|
784
742
|
}
|
|
785
743
|
declare global {
|
|
786
744
|
interface HTMLElementTagNameMap {
|
|
@@ -809,7 +767,8 @@ declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
|
809
767
|
constructor();
|
|
810
768
|
reset(): void;
|
|
811
769
|
validate(): boolean;
|
|
812
|
-
set
|
|
770
|
+
set value(val: string | string[]);
|
|
771
|
+
get value(): string | string[];
|
|
813
772
|
render(): lit_html.TemplateResult<1>;
|
|
814
773
|
private positionHotspotOnRegister;
|
|
815
774
|
firstUpdated(e: any): void;
|
|
@@ -821,7 +780,7 @@ declare global {
|
|
|
821
780
|
}
|
|
822
781
|
}
|
|
823
782
|
|
|
824
|
-
declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
783
|
+
declare const QtiGraphicGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
825
784
|
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
826
785
|
static styles: lit.CSSResult;
|
|
827
786
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -835,9 +794,10 @@ declare global {
|
|
|
835
794
|
}
|
|
836
795
|
}
|
|
837
796
|
|
|
838
|
-
declare const QtiGraphicOrderInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof
|
|
797
|
+
declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
839
798
|
declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
|
|
840
799
|
choiceOrdering: boolean;
|
|
800
|
+
protected _choiceElements: Choice[];
|
|
841
801
|
static styles: lit.CSSResult[];
|
|
842
802
|
render(): lit_html.TemplateResult<1>;
|
|
843
803
|
private setHotspotOrder;
|
|
@@ -851,7 +811,7 @@ declare global {
|
|
|
851
811
|
}
|
|
852
812
|
}
|
|
853
813
|
|
|
854
|
-
declare const QtiHotspotInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof
|
|
814
|
+
declare const QtiHotspotInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
855
815
|
declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
|
|
856
816
|
static styles: lit.CSSResult[];
|
|
857
817
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -865,7 +825,8 @@ declare global {
|
|
|
865
825
|
}
|
|
866
826
|
}
|
|
867
827
|
|
|
868
|
-
declare
|
|
828
|
+
declare const QtiSimpleAssociableChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
829
|
+
declare class QtiSimpleAssociableChoice extends QtiSimpleAssociableChoice_base {
|
|
869
830
|
static styles: lit.CSSResult;
|
|
870
831
|
/** the minimal number of selections a candidate must make */
|
|
871
832
|
matchMin: number;
|
|
@@ -881,16 +842,18 @@ declare global {
|
|
|
881
842
|
}
|
|
882
843
|
}
|
|
883
844
|
|
|
884
|
-
declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
845
|
+
declare const QtiMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
885
846
|
declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
886
|
-
static styles:
|
|
847
|
+
static styles: CSSResultGroup;
|
|
887
848
|
rows: QtiSimpleAssociableChoice[];
|
|
888
849
|
cols: QtiSimpleAssociableChoice[];
|
|
889
850
|
lastCheckedRadio: HTMLInputElement | null;
|
|
890
|
-
|
|
851
|
+
_response: string | string[];
|
|
852
|
+
get value(): string[];
|
|
853
|
+
set value(val: string[]);
|
|
891
854
|
correctOptions: string[];
|
|
892
855
|
responseIdentifier: string;
|
|
893
|
-
connectedCallback(): void
|
|
856
|
+
connectedCallback(): Promise<void>;
|
|
894
857
|
handleRadioClick: (e: any) => void;
|
|
895
858
|
handleRadioChange: (e: any) => void;
|
|
896
859
|
set correctResponse(responseValue: string | string[]);
|
|
@@ -903,10 +866,11 @@ declare global {
|
|
|
903
866
|
}
|
|
904
867
|
|
|
905
868
|
declare class QtiMediaInteraction extends Interaction {
|
|
906
|
-
|
|
869
|
+
private _value;
|
|
907
870
|
reset(): void;
|
|
908
871
|
validate(): boolean;
|
|
909
|
-
|
|
872
|
+
get value(): string | string[];
|
|
873
|
+
set value(val: string | string[]);
|
|
910
874
|
static get properties(): {
|
|
911
875
|
step: {
|
|
912
876
|
type: NumberConstructor;
|
|
@@ -925,7 +889,7 @@ declare global {
|
|
|
925
889
|
}
|
|
926
890
|
}
|
|
927
891
|
|
|
928
|
-
declare const QtiOrderInteraction_base: (new (...args: any[]) => {}) & (new (...args: any[]) => IInteraction) & typeof
|
|
892
|
+
declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
929
893
|
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
930
894
|
childrenMap: Element[];
|
|
931
895
|
nrChoices: number;
|
|
@@ -935,7 +899,7 @@ declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
|
935
899
|
orientation: 'horizontal' | 'vertical';
|
|
936
900
|
static styles: lit.CSSResult[];
|
|
937
901
|
render(): lit_html.TemplateResult<1>;
|
|
938
|
-
set correctResponse(value:
|
|
902
|
+
set correctResponse(value: string | string[]);
|
|
939
903
|
protected getResponse(): string[];
|
|
940
904
|
firstUpdated(changedProps: any): Promise<void>;
|
|
941
905
|
}
|
|
@@ -974,7 +938,8 @@ declare class QtiSelectPointInteraction extends Interaction {
|
|
|
974
938
|
render(): lit_html.TemplateResult<1>;
|
|
975
939
|
reset(): void;
|
|
976
940
|
validate(): boolean;
|
|
977
|
-
set
|
|
941
|
+
set value(val: string | string[]);
|
|
942
|
+
get value(): string | string[];
|
|
978
943
|
firstUpdated(): void;
|
|
979
944
|
disconnectedCallback(): void;
|
|
980
945
|
}
|
|
@@ -1008,10 +973,10 @@ declare global {
|
|
|
1008
973
|
* @slot prompt - slot where the prompt is placed.
|
|
1009
974
|
*/
|
|
1010
975
|
declare class QtiSliderInteraction extends Interaction {
|
|
976
|
+
private _value;
|
|
1011
977
|
csLive: CSSStyleDeclaration;
|
|
1012
978
|
private _knob;
|
|
1013
979
|
private _rail;
|
|
1014
|
-
value: number;
|
|
1015
980
|
stepLabel: boolean;
|
|
1016
981
|
reverse: boolean;
|
|
1017
982
|
private _min;
|
|
@@ -1027,6 +992,8 @@ declare class QtiSliderInteraction extends Interaction {
|
|
|
1027
992
|
_handleReadonlyChange: (old: any, readonly: any) => void;
|
|
1028
993
|
reset(): void;
|
|
1029
994
|
validate(): boolean;
|
|
995
|
+
get value(): string | string[];
|
|
996
|
+
set value(val: string | string[]);
|
|
1030
997
|
constructor();
|
|
1031
998
|
set response(myResponse: string | string[]);
|
|
1032
999
|
static styles: lit.CSSResult[];
|
|
@@ -1101,7 +1068,8 @@ declare global {
|
|
|
1101
1068
|
}
|
|
1102
1069
|
}
|
|
1103
1070
|
|
|
1104
|
-
declare
|
|
1071
|
+
declare const QtiGapText_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
1072
|
+
declare class QtiGapText extends QtiGapText_base {
|
|
1105
1073
|
static styles: lit.CSSResult;
|
|
1106
1074
|
tabindex: number | undefined;
|
|
1107
1075
|
connectedCallback(): void;
|
|
@@ -1113,7 +1081,8 @@ declare global {
|
|
|
1113
1081
|
}
|
|
1114
1082
|
}
|
|
1115
1083
|
|
|
1116
|
-
declare
|
|
1084
|
+
declare const QtiHotspotChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
1085
|
+
declare class QtiHotspotChoice extends QtiHotspotChoice_base {
|
|
1117
1086
|
static styles: lit.CSSResult;
|
|
1118
1087
|
order: number;
|
|
1119
1088
|
}
|
|
@@ -1123,7 +1092,8 @@ declare global {
|
|
|
1123
1092
|
}
|
|
1124
1093
|
}
|
|
1125
1094
|
|
|
1126
|
-
declare
|
|
1095
|
+
declare const QtiHottext_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
1096
|
+
declare class QtiHottext extends QtiHottext_base {
|
|
1127
1097
|
static styles: lit.CSSResult;
|
|
1128
1098
|
render(): lit_html.TemplateResult<1>;
|
|
1129
1099
|
}
|
|
@@ -1147,21 +1117,15 @@ declare global {
|
|
|
1147
1117
|
}
|
|
1148
1118
|
}
|
|
1149
1119
|
|
|
1120
|
+
declare const QtiSimpleChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
1150
1121
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1153
|
-
* @status stable
|
|
1154
|
-
* @since 4.0
|
|
1155
|
-
*
|
|
1156
|
-
* @event qti-choice-element-selected - Emitted when a choice is selected.
|
|
1157
|
-
* @event qti-register-choice - Emitted when an choice is added
|
|
1158
|
-
* @event qti-loose-choice - Emitted when a choice is removed
|
|
1159
|
-
*
|
|
1160
|
-
* @slot - The default slot.
|
|
1122
|
+
* qti-order-interaction
|
|
1123
|
+
* qti-choice-interaction
|
|
1161
1124
|
*/
|
|
1162
|
-
declare class QtiSimpleChoice extends
|
|
1125
|
+
declare class QtiSimpleChoice extends QtiSimpleChoice_base {
|
|
1163
1126
|
static styles: lit.CSSResult;
|
|
1164
1127
|
marker: string;
|
|
1128
|
+
get checked(): boolean;
|
|
1165
1129
|
render(): lit_html.TemplateResult<1>;
|
|
1166
1130
|
}
|
|
1167
1131
|
declare global {
|
|
@@ -1170,4 +1134,4 @@ declare global {
|
|
|
1170
1134
|
}
|
|
1171
1135
|
}
|
|
1172
1136
|
|
|
1173
|
-
export {
|
|
1137
|
+
export { QtiPortableCustomInteraction as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiRubricBlock as D, QtiFeedbackBlock as E, QtiFeedbackInline as F, QtiModalFeedback as G, QtiExtendedTextInteraction as H, type ItemContext as I, QtiTextEntryInteraction as J, QtiHottextInteraction as K, QtiInlineChoiceInteraction as L, type Multiple as M, type Orientation as N, type OutcomeChangedDetails as O, QtiChoiceInteraction as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessing as S, QtiOutcomeProcessingProcessor as T, QtiResponseProcessing as U, type VariableDeclaration as V, QtiLookupOutcomeValue as W, QtiAnd as X, type MockQtiExpression as Y, qtiAndMixin as Z, QtiMapping as _, type QtiRuleBase as a, QtiAssociateInteraction as a0, QtiCustomInteraction as a1, QtiEndAttemptInteraction as a2, QtiGapMatchInteraction as a3, QtiGraphicAssociateInteraction as a4, QtiGraphicGapMatchInteraction as a5, QtiGraphicOrderInteraction as a6, QtiHotspotInteraction as a7, QtiMatchInteraction as a8, QtiMediaInteraction as a9, QtiOrderInteraction as aa, QtiPositionObjectStage as ab, QtiSelectPointInteraction as ac, QtiSliderInteraction as ad, itemContextVariables as ae, itemContext as af, QtiCustomOperator as ag, Interaction as ah, QtiAssociableHotspot as ai, QtiGap as aj, QtiGapImg as ak, QtiGapText as al, QtiHotspotChoice as am, QtiHottext as an, QtiInlineChoice as ao, QtiSimpleAssociableChoice as ap, QtiSimpleChoice as aq, type QtiExpressionBase as b, QtiExpression as c, QtiConditionExpression as d, type InteractionChangedDetails as e, type QtiInteractionChanged as f, type QtiOutcomeChanged as g, type directedPair as h, type ResponseInteraction as i, type float as j, type integer as k, type Ordered as l, type Cardinality as m, type VariableValue as n, type OutcomeVariable as o, QtiAssessmentItem as p, QtiAssessmentStimulusRef as q, type ChoiceInterface as r, ActiveElementMixin as s, QtiItemBody as t, QtiPrompt as u, QtiStylesheet as v, QtiOutcomeDeclaration as w, QtiResponseDeclaration as x, QtiCompanionMaterialsInfo as y, QtiContentBody as z };
|