@citolab/qti-components 6.7.1-6 → 6.7.1-61
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/chunk-DBZBAD4I.js +24 -0
- package/dist/custom-elements.json +453 -249
- package/dist/index.js +122 -131
- package/dist/item.css +1123 -2566
- package/dist/qti-components/index.d.ts +312 -22
- package/dist/qti-components/index.js +108 -104
- package/dist/qti-transformers/index.d.ts +106 -13
- package/dist/qti-transformers/index.js +2 -37
- package/package.json +74 -70
- package/dist/chunk-JILF7TI5.js +0 -2
- package/dist/item.minimal.css +0 -1888
|
@@ -152,15 +152,12 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
152
152
|
readonly: boolean;
|
|
153
153
|
_handleReadonlyChange: (_: boolean, readonly: boolean) => void;
|
|
154
154
|
private _context;
|
|
155
|
-
_state: 'item-created' | 'item-connected' | 'variables-restored' | 'first-updated' | 'item-connected';
|
|
156
|
-
private set state(value);
|
|
157
155
|
get variables(): VariableValue<string | string[] | null>[];
|
|
158
156
|
set variables(value: VariableValue<string | string[] | null>[]);
|
|
159
157
|
private _initialContext;
|
|
160
158
|
private _feedbackElements;
|
|
161
159
|
private _interactionElements;
|
|
162
|
-
|
|
163
|
-
connectedCallback(): void;
|
|
160
|
+
connectedCallback(): Promise<void>;
|
|
164
161
|
/** @deprecated use variables property instead */
|
|
165
162
|
set responses(myResponses: ResponseInteraction[]);
|
|
166
163
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -183,6 +180,35 @@ declare global {
|
|
|
183
180
|
}
|
|
184
181
|
}
|
|
185
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Represents a custom element for referencing an assessment stimulus.
|
|
185
|
+
*/
|
|
186
|
+
declare class QtiAssessmentStimulusRef extends LitElement {
|
|
187
|
+
/**
|
|
188
|
+
* The identifier of the stimulus.
|
|
189
|
+
*/
|
|
190
|
+
identifier: string;
|
|
191
|
+
/**
|
|
192
|
+
* The href of the stimulus.
|
|
193
|
+
*/
|
|
194
|
+
href: string;
|
|
195
|
+
/**
|
|
196
|
+
* Lifecycle method called when the element is connected to the DOM.
|
|
197
|
+
* Loads and appends the stimulus if the 'qti-assessment-stimulus-ref-connected' event is not prevented.
|
|
198
|
+
*/
|
|
199
|
+
connectedCallback(): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* Loads and appends the stimulus to the specified element.
|
|
202
|
+
* @param stimulusRef - The element to which the stimulus will be appended.
|
|
203
|
+
*/
|
|
204
|
+
loadAndAppendStimulus(stimulusRef: Element): Promise<void>;
|
|
205
|
+
}
|
|
206
|
+
declare global {
|
|
207
|
+
interface HTMLElementTagNameMap {
|
|
208
|
+
'qti-assessment-stimulus-ref': QtiAssessmentStimulusRef;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
186
212
|
/**
|
|
187
213
|
* @summary qti-choice is used by qti-simple-choice, qti-inline-choice, qti-hottext, qti-hotspot-choice.
|
|
188
214
|
*
|
|
@@ -241,13 +267,22 @@ declare class QtiPrompt extends LitElement {
|
|
|
241
267
|
render(): lit_html.TemplateResult<1>;
|
|
242
268
|
connectedCallback(): void;
|
|
243
269
|
}
|
|
270
|
+
declare global {
|
|
271
|
+
interface HTMLElementTagNameMap {
|
|
272
|
+
'qti-prompt': QtiPrompt;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
244
275
|
|
|
245
276
|
declare class QtiStylesheet extends LitElement {
|
|
246
277
|
private styleLink;
|
|
247
|
-
constructor();
|
|
248
278
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
249
279
|
disconnectedCallback(): void;
|
|
250
280
|
}
|
|
281
|
+
declare global {
|
|
282
|
+
interface HTMLElementTagNameMap {
|
|
283
|
+
'qti-stylesheet': QtiStylesheet;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
251
286
|
|
|
252
287
|
interface ItemContext {
|
|
253
288
|
href?: string;
|
|
@@ -263,9 +298,15 @@ declare class QtiVariableDeclaration extends LitElement {
|
|
|
263
298
|
render(): lit_html.TemplateResult<1>;
|
|
264
299
|
protected defaultValues(variable: VariableDeclaration<string | string[] | null>): string | string[];
|
|
265
300
|
}
|
|
301
|
+
declare global {
|
|
302
|
+
interface HTMLElementTagNameMap {
|
|
303
|
+
'qti-variabledeclaration': QtiVariableDeclaration;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
266
306
|
|
|
267
307
|
declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
268
308
|
baseType: BaseType;
|
|
309
|
+
externalScored: String;
|
|
269
310
|
identifier: string;
|
|
270
311
|
cardinality: Cardinality;
|
|
271
312
|
itemContext?: ItemContext;
|
|
@@ -274,6 +315,11 @@ declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
|
274
315
|
get interpolationTable(): Map<number, number> | null;
|
|
275
316
|
connectedCallback(): void;
|
|
276
317
|
}
|
|
318
|
+
declare global {
|
|
319
|
+
interface HTMLElementTagNameMap {
|
|
320
|
+
'qti-outcome-declaration': QtiOutcomeDeclaration;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
277
323
|
|
|
278
324
|
declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
279
325
|
baseType: BaseType;
|
|
@@ -286,13 +332,28 @@ declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
|
286
332
|
private get correctResponse();
|
|
287
333
|
private get mapping();
|
|
288
334
|
}
|
|
335
|
+
declare global {
|
|
336
|
+
interface HTMLElementTagNameMap {
|
|
337
|
+
'qti-response-declaration': QtiResponseDeclaration;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
289
340
|
|
|
290
341
|
declare class QtiCompanionMaterialsInfo extends LitElement {
|
|
291
342
|
}
|
|
343
|
+
declare global {
|
|
344
|
+
interface HTMLElementTagNameMap {
|
|
345
|
+
'qti-companion-materials-info': QtiCompanionMaterialsInfo;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
292
348
|
|
|
293
349
|
declare class QtiContentBody extends LitElement {
|
|
294
350
|
render(): lit_html.TemplateResult<1>;
|
|
295
351
|
}
|
|
352
|
+
declare global {
|
|
353
|
+
interface HTMLElementTagNameMap {
|
|
354
|
+
'qti-content-body': QtiContentBody;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
296
357
|
|
|
297
358
|
declare class QtiRubricBlock extends LitElement {
|
|
298
359
|
id: any;
|
|
@@ -304,12 +365,17 @@ declare class QtiRubricBlock extends LitElement {
|
|
|
304
365
|
render(): lit_html.TemplateResult<1>;
|
|
305
366
|
connectedCallback(): void;
|
|
306
367
|
}
|
|
368
|
+
declare global {
|
|
369
|
+
interface HTMLElementTagNameMap {
|
|
370
|
+
'qti-rubric-block': QtiRubricBlock;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
307
373
|
|
|
308
374
|
declare abstract class QtiFeedback extends LitElement {
|
|
309
375
|
protected showHide: string;
|
|
310
376
|
outcomeIdentifier: string;
|
|
311
377
|
protected identifier: string;
|
|
312
|
-
|
|
378
|
+
showStatus: string;
|
|
313
379
|
connectedCallback(): void;
|
|
314
380
|
checkShowFeedback(outcomeIdentifier: string): void;
|
|
315
381
|
private showFeedback;
|
|
@@ -320,16 +386,31 @@ declare class QtiFeedbackBlock extends QtiFeedback {
|
|
|
320
386
|
render(): lit_html.TemplateResult<1>;
|
|
321
387
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
322
388
|
}
|
|
389
|
+
declare global {
|
|
390
|
+
interface HTMLElementTagNameMap {
|
|
391
|
+
'qti-feedback-block': QtiFeedbackBlock;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
323
394
|
|
|
324
395
|
declare class QtiFeedbackInline extends QtiFeedback {
|
|
325
396
|
static styles: lit.CSSResult;
|
|
326
397
|
render: () => lit_html.TemplateResult<1>;
|
|
327
398
|
}
|
|
399
|
+
declare global {
|
|
400
|
+
interface HTMLElementTagNameMap {
|
|
401
|
+
'qti-feedback-inline': QtiFeedbackInline;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
328
404
|
|
|
329
405
|
declare class QtiModalFeedback extends QtiFeedback {
|
|
330
406
|
static styles: lit.CSSResult;
|
|
331
407
|
render: () => lit_html.TemplateResult<1>;
|
|
332
408
|
}
|
|
409
|
+
declare global {
|
|
410
|
+
interface HTMLElementTagNameMap {
|
|
411
|
+
'qti-modal-feedback': QtiModalFeedback;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
333
414
|
|
|
334
415
|
declare abstract class Interaction extends LitElement {
|
|
335
416
|
responseIdentifier: string;
|
|
@@ -423,6 +504,11 @@ declare class QtiHottextInteraction extends Choices {
|
|
|
423
504
|
connectedCallback(): void;
|
|
424
505
|
render: () => lit_html.TemplateResult<1>;
|
|
425
506
|
}
|
|
507
|
+
declare global {
|
|
508
|
+
interface HTMLElementTagNameMap {
|
|
509
|
+
'qti-hottext-interaction': QtiHottextInteraction;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
426
512
|
|
|
427
513
|
interface OptionType {
|
|
428
514
|
textContent: string;
|
|
@@ -444,6 +530,11 @@ declare class QtiInlineChoiceInteraction extends Interaction {
|
|
|
444
530
|
set correctResponse(value: Readonly<string | string[]>);
|
|
445
531
|
choiceSelected(event: Event): void;
|
|
446
532
|
}
|
|
533
|
+
declare global {
|
|
534
|
+
interface HTMLElementTagNameMap {
|
|
535
|
+
'qti-inline-choice-interaction': QtiInlineChoiceInteraction;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
447
538
|
|
|
448
539
|
/**
|
|
449
540
|
* @summary The ChoiceInteraction.Type (qti-choice-interaction) interaction presents a collection of choices to the candidate.
|
|
@@ -469,6 +560,20 @@ declare global {
|
|
|
469
560
|
}
|
|
470
561
|
}
|
|
471
562
|
|
|
563
|
+
declare class QtiOutcomeProcessing extends LitElement {
|
|
564
|
+
static styles: lit.CSSResult[];
|
|
565
|
+
render(): lit_html.TemplateResult<1>;
|
|
566
|
+
process(): void;
|
|
567
|
+
}
|
|
568
|
+
declare global {
|
|
569
|
+
interface HTMLElementTagNameMap {
|
|
570
|
+
'qti-outcome-processing': QtiOutcomeProcessing;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
declare class QtiOutcomeProcessingProcessor {
|
|
574
|
+
process(rules: QtiRuleBase[]): void;
|
|
575
|
+
}
|
|
576
|
+
|
|
472
577
|
declare class QtiResponseProcessing extends LitElement {
|
|
473
578
|
static styles: lit.CSSResult[];
|
|
474
579
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -482,20 +587,26 @@ declare global {
|
|
|
482
587
|
}
|
|
483
588
|
}
|
|
484
589
|
|
|
485
|
-
|
|
590
|
+
interface QtiExpressionBase<T> {
|
|
591
|
+
calculate(): Readonly<T>;
|
|
592
|
+
}
|
|
593
|
+
declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
|
|
486
594
|
protected result: any;
|
|
487
595
|
static styles: lit.CSSResult;
|
|
488
596
|
render(): lit_html.TemplateResult<1>;
|
|
489
597
|
calculate(): Readonly<T>;
|
|
490
598
|
protected getResult(): Readonly<T>;
|
|
491
|
-
|
|
492
|
-
|
|
599
|
+
get assessmentItem(): QtiAssessmentItem;
|
|
600
|
+
getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
|
|
493
601
|
}
|
|
494
602
|
|
|
495
|
-
declare class QtiRule extends LitElement {
|
|
603
|
+
declare class QtiRule extends LitElement implements QtiRuleBase {
|
|
496
604
|
render(): lit_html.TemplateResult<1>;
|
|
497
605
|
process(): void;
|
|
498
606
|
}
|
|
607
|
+
interface QtiRuleBase {
|
|
608
|
+
process(): any;
|
|
609
|
+
}
|
|
499
610
|
declare global {
|
|
500
611
|
interface HTMLElementTagNameMap {
|
|
501
612
|
'qti-rule': QtiRule;
|
|
@@ -526,6 +637,11 @@ declare class QtiResponseCondition extends QtiRule {
|
|
|
526
637
|
declare class QtiSetOutcomeValue extends QtiRule {
|
|
527
638
|
process(): void;
|
|
528
639
|
}
|
|
640
|
+
declare class QtiSetOutcomeValueRule<T> implements QtiRuleBase {
|
|
641
|
+
private expression;
|
|
642
|
+
constructor(expression: QtiExpressionBase<T>);
|
|
643
|
+
process(): any;
|
|
644
|
+
}
|
|
529
645
|
|
|
530
646
|
declare class QtiResponseElse extends LitElement {
|
|
531
647
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -551,7 +667,7 @@ declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
|
|
|
551
667
|
type Constructor<T> = new (...args: any[]) => T;
|
|
552
668
|
declare const QtiAnd_base: {
|
|
553
669
|
new (...args: any[]): {
|
|
554
|
-
calculateChildren(children: MockQtiExpression<any
|
|
670
|
+
calculateChildren(children: Array<MockQtiExpression<any>>): boolean;
|
|
555
671
|
};
|
|
556
672
|
} & Constructor<QtiConditionExpression>;
|
|
557
673
|
declare class QtiAnd extends QtiAnd_base {
|
|
@@ -666,19 +782,71 @@ declare class QtiStringMatch extends QtiExpression<boolean> {
|
|
|
666
782
|
}
|
|
667
783
|
|
|
668
784
|
declare class QtiSum extends QtiExpression<number> {
|
|
785
|
+
private _expression;
|
|
786
|
+
constructor();
|
|
669
787
|
getResult(): number;
|
|
670
788
|
}
|
|
789
|
+
declare class QtiSumExpression implements QtiExpressionBase<number> {
|
|
790
|
+
private expressions;
|
|
791
|
+
constructor(expressions: QtiExpressionBase<number>[]);
|
|
792
|
+
calculate(): number;
|
|
793
|
+
}
|
|
671
794
|
|
|
672
795
|
declare class QtiVariable extends QtiExpression<string | string[]> {
|
|
673
796
|
getResult(): Readonly<string | string[]>;
|
|
674
797
|
}
|
|
675
798
|
|
|
676
|
-
|
|
677
|
-
|
|
799
|
+
interface IMSpci<ConfigProperties> {
|
|
800
|
+
typeIdentifier: string;
|
|
801
|
+
/** @access public
|
|
802
|
+
* @method getInstance Create a new instance of this portable custom interaction
|
|
803
|
+
* Will be called by the qtiCustomInteractionContext
|
|
804
|
+
* @param {DOM Element} dom - the DOM Element this PCI is being added to
|
|
805
|
+
* @param {Object} configuration - the configuration to apply to this PCI
|
|
806
|
+
* @param {String} state - a previous saved state to apply to this instance.
|
|
807
|
+
* This must have been obtained from a prior call to getState on an
|
|
808
|
+
* instance of this type (same typeIdentifier)
|
|
809
|
+
*/
|
|
810
|
+
getInstance: (dom: HTMLElement, configuration: Configuration<ConfigProperties>, state: string) => void;
|
|
811
|
+
/** @access public
|
|
812
|
+
* @method getResponse
|
|
813
|
+
* @return {Object} - the value to assign to the bound QTI response variable
|
|
814
|
+
*/
|
|
815
|
+
getResponse: () => QtiVariableJSON;
|
|
816
|
+
/** @access public
|
|
817
|
+
* @method getState
|
|
818
|
+
* @return {String} The current state of this PCI. May be passed to
|
|
819
|
+
* getInstance to later restore this PCI instance.
|
|
820
|
+
*/
|
|
821
|
+
getState: () => string;
|
|
822
|
+
oncompleted?: () => void;
|
|
823
|
+
destroy?: () => void;
|
|
824
|
+
}
|
|
825
|
+
declare type Configuration<T> = {
|
|
826
|
+
onready: (pci: IMSpci<T>, state?: string) => void;
|
|
827
|
+
properties: T;
|
|
828
|
+
};
|
|
829
|
+
declare type QtiVariableJSON = {
|
|
830
|
+
[K in 'list' | 'base']?: {
|
|
831
|
+
[Ka in 'boolean' | 'integer' | 'float' | 'string' | 'pair' | 'directedPair' | 'identifier']?: ResponseType;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
interface ModuleResolutionConfig {
|
|
835
|
+
waitSeconds?: number;
|
|
836
|
+
context?: string;
|
|
837
|
+
catchError?: boolean;
|
|
838
|
+
paths: {
|
|
839
|
+
[key: string]: string;
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare class QtiPortableCustomInteraction extends Interaction {
|
|
678
844
|
private module;
|
|
679
845
|
private customInteractionTypeIdentifier;
|
|
680
|
-
private baseUrl;
|
|
681
846
|
private _errorMessage;
|
|
847
|
+
private intervalId;
|
|
848
|
+
private rawResponse;
|
|
849
|
+
private pci;
|
|
682
850
|
static get properties(): {
|
|
683
851
|
responseIdentifier: {
|
|
684
852
|
type: StringConstructor;
|
|
@@ -692,20 +860,32 @@ declare class QtiPortableCustomInteraction extends LitElement {
|
|
|
692
860
|
type: StringConstructor;
|
|
693
861
|
attribute: string;
|
|
694
862
|
};
|
|
695
|
-
baseUrl: {
|
|
696
|
-
type: StringConstructor;
|
|
697
|
-
attribute: string;
|
|
698
|
-
};
|
|
699
863
|
_errorMessage: {
|
|
700
864
|
type: StringConstructor;
|
|
701
865
|
state: boolean;
|
|
702
866
|
};
|
|
703
867
|
};
|
|
704
|
-
|
|
705
|
-
|
|
868
|
+
private convertQtiVariableJSON;
|
|
869
|
+
private startChecking;
|
|
870
|
+
private stopChecking;
|
|
871
|
+
validate(): boolean;
|
|
872
|
+
set response(val: Readonly<string | string[]>);
|
|
873
|
+
getTAOConfig(node: any): {};
|
|
874
|
+
register(pci: IMSpci<unknown>): void;
|
|
706
875
|
connectedCallback(): void;
|
|
876
|
+
disconnectedCallback(): void;
|
|
877
|
+
registerModules(config: ModuleResolutionConfig): Promise<void>;
|
|
878
|
+
private removeDoubleSlashes;
|
|
879
|
+
loadConfig: (url: string, baseUrl?: string) => Promise<ModuleResolutionConfig>;
|
|
880
|
+
getResolvablePath: (path: string, basePath?: string) => string;
|
|
881
|
+
mergeConfigs: (config: ModuleResolutionConfig, primaryConfig: ModuleResolutionConfig, fallback: string | ModuleResolutionConfig) => Promise<void>;
|
|
707
882
|
render(): lit_html.TemplateResult<1>;
|
|
708
883
|
}
|
|
884
|
+
declare global {
|
|
885
|
+
interface HTMLElementTagNameMap {
|
|
886
|
+
'qti-portable-custom-interaction': QtiPortableCustomInteraction;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
709
889
|
|
|
710
890
|
interface IInteraction {
|
|
711
891
|
disabled: boolean;
|
|
@@ -722,6 +902,11 @@ declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
|
722
902
|
render(): lit_html.TemplateResult<1>;
|
|
723
903
|
connectedCallback(): void;
|
|
724
904
|
}
|
|
905
|
+
declare global {
|
|
906
|
+
interface HTMLElementTagNameMap {
|
|
907
|
+
'qti-associate-interaction': QtiAssociateInteraction;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
725
910
|
|
|
726
911
|
declare class QtiEndAttemptInteraction extends Interaction {
|
|
727
912
|
countAttempt: string;
|
|
@@ -731,12 +916,22 @@ declare class QtiEndAttemptInteraction extends Interaction {
|
|
|
731
916
|
render(): lit_html.TemplateResult<1>;
|
|
732
917
|
endAttempt(e: Event): void;
|
|
733
918
|
}
|
|
919
|
+
declare global {
|
|
920
|
+
interface HTMLElementTagNameMap {
|
|
921
|
+
'qti-end-attempt-interaction': QtiEndAttemptInteraction;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
734
924
|
|
|
735
925
|
declare const QtiGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
736
926
|
declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
|
|
737
927
|
static styles: lit.CSSResult[];
|
|
738
928
|
render(): lit_html.TemplateResult<1>;
|
|
739
929
|
}
|
|
930
|
+
declare global {
|
|
931
|
+
interface HTMLElementTagNameMap {
|
|
932
|
+
'qti-gap-match-interaction': QtiGapMatchInteraction;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
740
935
|
|
|
741
936
|
declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
742
937
|
choiceOrdering: boolean;
|
|
@@ -765,6 +960,11 @@ declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
|
765
960
|
firstUpdated(e: any): void;
|
|
766
961
|
disconnectedCallback(): void;
|
|
767
962
|
}
|
|
963
|
+
declare global {
|
|
964
|
+
interface HTMLElementTagNameMap {
|
|
965
|
+
'qti-graphic-associate-interaction': QtiGraphicAssociateInteraction;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
768
968
|
|
|
769
969
|
declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
770
970
|
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
@@ -774,6 +974,11 @@ declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteractio
|
|
|
774
974
|
connectedCallback(): void;
|
|
775
975
|
disconnectedCallback(): void;
|
|
776
976
|
}
|
|
977
|
+
declare global {
|
|
978
|
+
interface HTMLElementTagNameMap {
|
|
979
|
+
'qti-graphic-gap-match-interaction': QtiGraphicGapMatchInteraction;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
777
982
|
|
|
778
983
|
declare class QtiGraphicOrderInteraction extends Choices {
|
|
779
984
|
choiceOrdering: boolean;
|
|
@@ -784,6 +989,11 @@ declare class QtiGraphicOrderInteraction extends Choices {
|
|
|
784
989
|
connectedCallback(): void;
|
|
785
990
|
disconnectedCallback(): void;
|
|
786
991
|
}
|
|
992
|
+
declare global {
|
|
993
|
+
interface HTMLElementTagNameMap {
|
|
994
|
+
'qti-graphic-order-interaction': QtiGraphicOrderInteraction;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
787
997
|
|
|
788
998
|
declare class QtiHotspotInteraction extends Choices {
|
|
789
999
|
static styles: lit.CSSResult[];
|
|
@@ -792,11 +1002,26 @@ declare class QtiHotspotInteraction extends Choices {
|
|
|
792
1002
|
connectedCallback(): void;
|
|
793
1003
|
disconnectedCallback(): void;
|
|
794
1004
|
}
|
|
1005
|
+
declare global {
|
|
1006
|
+
interface HTMLElementTagNameMap {
|
|
1007
|
+
'qti-hotspot-interaction': QtiHotspotInteraction;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
795
1010
|
|
|
796
|
-
declare class QtiSimpleAssociableChoice extends
|
|
1011
|
+
declare class QtiSimpleAssociableChoice extends QtiChoice {
|
|
1012
|
+
/** the minimal number of selections a candidate must make */
|
|
1013
|
+
matchMin: number;
|
|
1014
|
+
/** the maximum number of selections a candidate must make, the other options will be disabled when max options is checked */
|
|
1015
|
+
matchMax: number;
|
|
1016
|
+
fixed: boolean;
|
|
797
1017
|
connectedCallback(): void;
|
|
798
1018
|
render(): lit_html.TemplateResult<1>;
|
|
799
1019
|
}
|
|
1020
|
+
declare global {
|
|
1021
|
+
interface HTMLElementTagNameMap {
|
|
1022
|
+
'qti-simple-associable-choice': QtiSimpleAssociableChoice;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
800
1025
|
|
|
801
1026
|
declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
802
1027
|
declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
@@ -808,6 +1033,11 @@ declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
|
808
1033
|
connectedCallback(): void;
|
|
809
1034
|
render(): lit_html.TemplateResult<1>;
|
|
810
1035
|
}
|
|
1036
|
+
declare global {
|
|
1037
|
+
interface HTMLElementTagNameMap {
|
|
1038
|
+
'qti-match-interaction': QtiMatchInteraction;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
811
1041
|
|
|
812
1042
|
declare class QtiMediaInteraction extends Interaction {
|
|
813
1043
|
value: number;
|
|
@@ -826,6 +1056,11 @@ declare class QtiMediaInteraction extends Interaction {
|
|
|
826
1056
|
constructor();
|
|
827
1057
|
connectedCallback(): void;
|
|
828
1058
|
}
|
|
1059
|
+
declare global {
|
|
1060
|
+
interface HTMLElementTagNameMap {
|
|
1061
|
+
'qti-media-interaction': QtiMediaInteraction;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
829
1064
|
|
|
830
1065
|
declare const QtiOrderInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
831
1066
|
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
@@ -839,6 +1074,11 @@ declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
|
839
1074
|
render(): lit_html.TemplateResult<1>;
|
|
840
1075
|
connectedCallback(): void;
|
|
841
1076
|
}
|
|
1077
|
+
declare global {
|
|
1078
|
+
interface HTMLElementTagNameMap {
|
|
1079
|
+
'qti-order-interaction': QtiOrderInteraction;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
842
1082
|
|
|
843
1083
|
declare class QtiSPositionObjectInteraction extends LitElement {
|
|
844
1084
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -858,6 +1098,11 @@ declare class QtiPositionObjectStage extends LitElement {
|
|
|
858
1098
|
removeMoveListener(event: any): void;
|
|
859
1099
|
disconnectedCallback(): void;
|
|
860
1100
|
}
|
|
1101
|
+
declare global {
|
|
1102
|
+
interface HTMLElementTagNameMap {
|
|
1103
|
+
'qti-position-object-stage': QtiPositionObjectStage;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
861
1106
|
|
|
862
1107
|
declare class QtiSelectPointInteraction extends Interaction {
|
|
863
1108
|
maxChoices: number;
|
|
@@ -871,6 +1116,11 @@ declare class QtiSelectPointInteraction extends Interaction {
|
|
|
871
1116
|
connectedCallback(): void;
|
|
872
1117
|
disconnectedCallback(): void;
|
|
873
1118
|
}
|
|
1119
|
+
declare global {
|
|
1120
|
+
interface HTMLElementTagNameMap {
|
|
1121
|
+
'qti-select-point-interaction': QtiSelectPointInteraction;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
874
1124
|
|
|
875
1125
|
/**
|
|
876
1126
|
* @summary The SliderInteraction.Type (qti-slider-interaction) presents the candidate with a control for selecting a numerical value between a lower and upper bound.
|
|
@@ -926,6 +1176,11 @@ declare class QtiSliderInteraction extends Interaction {
|
|
|
926
1176
|
private calculateValue;
|
|
927
1177
|
private getPositionFromEvent;
|
|
928
1178
|
}
|
|
1179
|
+
declare global {
|
|
1180
|
+
interface HTMLElementTagNameMap {
|
|
1181
|
+
'qti-slider-interaction': QtiSliderInteraction;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
929
1184
|
|
|
930
1185
|
/**
|
|
931
1186
|
* https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
|
|
@@ -945,33 +1200,63 @@ declare class QtiCustomOperator extends LitElement implements Calculate {
|
|
|
945
1200
|
handleSlotChange(event: Event): void;
|
|
946
1201
|
calculate(): any;
|
|
947
1202
|
}
|
|
1203
|
+
declare global {
|
|
1204
|
+
interface HTMLElementTagNameMap {
|
|
1205
|
+
'qti-custom-operator': QtiCustomOperator;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
948
1208
|
|
|
949
1209
|
declare class QtiAssociableHotspot extends LitElement {
|
|
950
1210
|
connectedCallback(): void;
|
|
951
1211
|
static styles: lit.CSSResult;
|
|
952
1212
|
render(): lit_html.TemplateResult<1>;
|
|
953
1213
|
}
|
|
1214
|
+
declare global {
|
|
1215
|
+
interface HTMLElementTagNameMap {
|
|
1216
|
+
'qti-associable-hotspot': QtiAssociableHotspot;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
954
1219
|
|
|
955
1220
|
declare class QtiGap extends LitElement {
|
|
956
1221
|
tabindex: number | undefined;
|
|
957
1222
|
render(): lit_html.TemplateResult<1>;
|
|
958
1223
|
}
|
|
1224
|
+
declare global {
|
|
1225
|
+
interface HTMLElementTagNameMap {
|
|
1226
|
+
'qti-gap': QtiGap;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
959
1229
|
|
|
960
1230
|
declare class QtiGapImg extends LitElement {
|
|
961
1231
|
tabindex: number | undefined;
|
|
962
1232
|
connectedCallback(): void;
|
|
963
1233
|
}
|
|
1234
|
+
declare global {
|
|
1235
|
+
interface HTMLElementTagNameMap {
|
|
1236
|
+
'qti-gap-img': QtiGapImg;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
964
1239
|
|
|
965
1240
|
declare class QtiGapText extends LitElement {
|
|
966
1241
|
tabindex: number | undefined;
|
|
967
1242
|
connectedCallback(): void;
|
|
968
1243
|
render(): lit_html.TemplateResult<1>;
|
|
969
1244
|
}
|
|
1245
|
+
declare global {
|
|
1246
|
+
interface HTMLElementTagNameMap {
|
|
1247
|
+
'qti-gap-text': QtiGapText;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
970
1250
|
|
|
971
1251
|
declare class QtiHotspotChoice extends QtiChoice {
|
|
972
1252
|
order: number;
|
|
973
1253
|
static styles: lit.CSSResult;
|
|
974
1254
|
}
|
|
1255
|
+
declare global {
|
|
1256
|
+
interface HTMLElementTagNameMap {
|
|
1257
|
+
'qti-hotspot-choice': QtiHotspotChoice;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
975
1260
|
|
|
976
1261
|
declare class QtiHottext extends QtiChoice {
|
|
977
1262
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -984,6 +1269,11 @@ declare global {
|
|
|
984
1269
|
|
|
985
1270
|
declare class QtiInlineChoice extends LitElement {
|
|
986
1271
|
}
|
|
1272
|
+
declare global {
|
|
1273
|
+
interface HTMLElementTagNameMap {
|
|
1274
|
+
'qti-inline-choice': QtiInlineChoice;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
987
1277
|
|
|
988
1278
|
/**
|
|
989
1279
|
* @summary Short summary of the component's intended use.
|
|
@@ -1007,4 +1297,4 @@ declare global {
|
|
|
1007
1297
|
}
|
|
1008
1298
|
}
|
|
1009
1299
|
|
|
1010
|
-
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, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiContentBody, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, 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, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRubricBlock, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTextEntryInteraction, QtiVariable, type ResponseInteraction, type ResponseVariable, type VariableDeclaration, type VariableValue, type directedPair, type float, type integer, itemContext, itemContextVariables, qtiAndMixin };
|
|
1300
|
+
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, 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 };
|