@citolab/qti-components 6.7.1-5 → 6.7.1-51
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-elements.json +242 -180
- package/dist/index.js +78 -91
- package/dist/item.css +1123 -2566
- package/dist/qti-components/index.d.ts +276 -19
- package/dist/qti-components/index.js +92 -92
- package/dist/qti-transformers/index.d.ts +106 -13
- package/dist/qti-transformers/index.js +3 -16
- package/package.json +72 -69
- 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>;
|
|
@@ -241,6 +238,11 @@ declare class QtiPrompt extends LitElement {
|
|
|
241
238
|
render(): lit_html.TemplateResult<1>;
|
|
242
239
|
connectedCallback(): void;
|
|
243
240
|
}
|
|
241
|
+
declare global {
|
|
242
|
+
interface HTMLElementTagNameMap {
|
|
243
|
+
'qti-prompt': QtiPrompt;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
244
246
|
|
|
245
247
|
declare class QtiStylesheet extends LitElement {
|
|
246
248
|
private styleLink;
|
|
@@ -248,6 +250,11 @@ declare class QtiStylesheet extends LitElement {
|
|
|
248
250
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
249
251
|
disconnectedCallback(): void;
|
|
250
252
|
}
|
|
253
|
+
declare global {
|
|
254
|
+
interface HTMLElementTagNameMap {
|
|
255
|
+
'qti-stylesheet': QtiStylesheet;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
251
258
|
|
|
252
259
|
interface ItemContext {
|
|
253
260
|
href?: string;
|
|
@@ -263,9 +270,15 @@ declare class QtiVariableDeclaration extends LitElement {
|
|
|
263
270
|
render(): lit_html.TemplateResult<1>;
|
|
264
271
|
protected defaultValues(variable: VariableDeclaration<string | string[] | null>): string | string[];
|
|
265
272
|
}
|
|
273
|
+
declare global {
|
|
274
|
+
interface HTMLElementTagNameMap {
|
|
275
|
+
'qti-variabledeclaration': QtiVariableDeclaration;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
266
278
|
|
|
267
279
|
declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
268
280
|
baseType: BaseType;
|
|
281
|
+
externalScored: String;
|
|
269
282
|
identifier: string;
|
|
270
283
|
cardinality: Cardinality;
|
|
271
284
|
itemContext?: ItemContext;
|
|
@@ -274,6 +287,11 @@ declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
|
274
287
|
get interpolationTable(): Map<number, number> | null;
|
|
275
288
|
connectedCallback(): void;
|
|
276
289
|
}
|
|
290
|
+
declare global {
|
|
291
|
+
interface HTMLElementTagNameMap {
|
|
292
|
+
'qti-outcome-declaration': QtiOutcomeDeclaration;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
277
295
|
|
|
278
296
|
declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
279
297
|
baseType: BaseType;
|
|
@@ -286,13 +304,28 @@ declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
|
286
304
|
private get correctResponse();
|
|
287
305
|
private get mapping();
|
|
288
306
|
}
|
|
307
|
+
declare global {
|
|
308
|
+
interface HTMLElementTagNameMap {
|
|
309
|
+
'qti-response-declaration': QtiResponseDeclaration;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
289
312
|
|
|
290
313
|
declare class QtiCompanionMaterialsInfo extends LitElement {
|
|
291
314
|
}
|
|
315
|
+
declare global {
|
|
316
|
+
interface HTMLElementTagNameMap {
|
|
317
|
+
'qti-companion-materials-info': QtiCompanionMaterialsInfo;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
292
320
|
|
|
293
321
|
declare class QtiContentBody extends LitElement {
|
|
294
322
|
render(): lit_html.TemplateResult<1>;
|
|
295
323
|
}
|
|
324
|
+
declare global {
|
|
325
|
+
interface HTMLElementTagNameMap {
|
|
326
|
+
'qti-content-body': QtiContentBody;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
296
329
|
|
|
297
330
|
declare class QtiRubricBlock extends LitElement {
|
|
298
331
|
id: any;
|
|
@@ -304,12 +337,17 @@ declare class QtiRubricBlock extends LitElement {
|
|
|
304
337
|
render(): lit_html.TemplateResult<1>;
|
|
305
338
|
connectedCallback(): void;
|
|
306
339
|
}
|
|
340
|
+
declare global {
|
|
341
|
+
interface HTMLElementTagNameMap {
|
|
342
|
+
'qti-rubric-block': QtiRubricBlock;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
307
345
|
|
|
308
346
|
declare abstract class QtiFeedback extends LitElement {
|
|
309
347
|
protected showHide: string;
|
|
310
348
|
outcomeIdentifier: string;
|
|
311
349
|
protected identifier: string;
|
|
312
|
-
|
|
350
|
+
showStatus: string;
|
|
313
351
|
connectedCallback(): void;
|
|
314
352
|
checkShowFeedback(outcomeIdentifier: string): void;
|
|
315
353
|
private showFeedback;
|
|
@@ -320,16 +358,31 @@ declare class QtiFeedbackBlock extends QtiFeedback {
|
|
|
320
358
|
render(): lit_html.TemplateResult<1>;
|
|
321
359
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
322
360
|
}
|
|
361
|
+
declare global {
|
|
362
|
+
interface HTMLElementTagNameMap {
|
|
363
|
+
'qti-feedback-block': QtiFeedbackBlock;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
323
366
|
|
|
324
367
|
declare class QtiFeedbackInline extends QtiFeedback {
|
|
325
368
|
static styles: lit.CSSResult;
|
|
326
369
|
render: () => lit_html.TemplateResult<1>;
|
|
327
370
|
}
|
|
371
|
+
declare global {
|
|
372
|
+
interface HTMLElementTagNameMap {
|
|
373
|
+
'qti-feedback-inline': QtiFeedbackInline;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
328
376
|
|
|
329
377
|
declare class QtiModalFeedback extends QtiFeedback {
|
|
330
378
|
static styles: lit.CSSResult;
|
|
331
379
|
render: () => lit_html.TemplateResult<1>;
|
|
332
380
|
}
|
|
381
|
+
declare global {
|
|
382
|
+
interface HTMLElementTagNameMap {
|
|
383
|
+
'qti-modal-feedback': QtiModalFeedback;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
333
386
|
|
|
334
387
|
declare abstract class Interaction extends LitElement {
|
|
335
388
|
responseIdentifier: string;
|
|
@@ -423,6 +476,11 @@ declare class QtiHottextInteraction extends Choices {
|
|
|
423
476
|
connectedCallback(): void;
|
|
424
477
|
render: () => lit_html.TemplateResult<1>;
|
|
425
478
|
}
|
|
479
|
+
declare global {
|
|
480
|
+
interface HTMLElementTagNameMap {
|
|
481
|
+
'qti-hottext-interaction': QtiHottextInteraction;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
426
484
|
|
|
427
485
|
interface OptionType {
|
|
428
486
|
textContent: string;
|
|
@@ -444,6 +502,11 @@ declare class QtiInlineChoiceInteraction extends Interaction {
|
|
|
444
502
|
set correctResponse(value: Readonly<string | string[]>);
|
|
445
503
|
choiceSelected(event: Event): void;
|
|
446
504
|
}
|
|
505
|
+
declare global {
|
|
506
|
+
interface HTMLElementTagNameMap {
|
|
507
|
+
'qti-inline-choice-interaction': QtiInlineChoiceInteraction;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
447
510
|
|
|
448
511
|
/**
|
|
449
512
|
* @summary The ChoiceInteraction.Type (qti-choice-interaction) interaction presents a collection of choices to the candidate.
|
|
@@ -482,20 +545,26 @@ declare global {
|
|
|
482
545
|
}
|
|
483
546
|
}
|
|
484
547
|
|
|
485
|
-
|
|
548
|
+
interface QtiExpressionBase<T> {
|
|
549
|
+
calculate(): Readonly<T>;
|
|
550
|
+
}
|
|
551
|
+
declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
|
|
486
552
|
protected result: any;
|
|
487
553
|
static styles: lit.CSSResult;
|
|
488
554
|
render(): lit_html.TemplateResult<1>;
|
|
489
555
|
calculate(): Readonly<T>;
|
|
490
556
|
protected getResult(): Readonly<T>;
|
|
491
|
-
|
|
492
|
-
|
|
557
|
+
get assessmentItem(): QtiAssessmentItem;
|
|
558
|
+
getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
|
|
493
559
|
}
|
|
494
560
|
|
|
495
|
-
declare class QtiRule extends LitElement {
|
|
561
|
+
declare class QtiRule extends LitElement implements QtiRuleBase {
|
|
496
562
|
render(): lit_html.TemplateResult<1>;
|
|
497
563
|
process(): void;
|
|
498
564
|
}
|
|
565
|
+
interface QtiRuleBase {
|
|
566
|
+
process(): any;
|
|
567
|
+
}
|
|
499
568
|
declare global {
|
|
500
569
|
interface HTMLElementTagNameMap {
|
|
501
570
|
'qti-rule': QtiRule;
|
|
@@ -526,6 +595,11 @@ declare class QtiResponseCondition extends QtiRule {
|
|
|
526
595
|
declare class QtiSetOutcomeValue extends QtiRule {
|
|
527
596
|
process(): void;
|
|
528
597
|
}
|
|
598
|
+
declare class QtiSetOutcomeValueRule<T> implements QtiRuleBase {
|
|
599
|
+
private expression;
|
|
600
|
+
constructor(expression: QtiExpressionBase<T>);
|
|
601
|
+
process(): any;
|
|
602
|
+
}
|
|
529
603
|
|
|
530
604
|
declare class QtiResponseElse extends LitElement {
|
|
531
605
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -666,19 +740,85 @@ declare class QtiStringMatch extends QtiExpression<boolean> {
|
|
|
666
740
|
}
|
|
667
741
|
|
|
668
742
|
declare class QtiSum extends QtiExpression<number> {
|
|
743
|
+
private _expression;
|
|
744
|
+
constructor();
|
|
669
745
|
getResult(): number;
|
|
670
746
|
}
|
|
747
|
+
declare class QtiSumExpression implements QtiExpressionBase<number> {
|
|
748
|
+
private expressions;
|
|
749
|
+
constructor(expressions: QtiExpressionBase<number>[]);
|
|
750
|
+
calculate(): number;
|
|
751
|
+
}
|
|
671
752
|
|
|
672
753
|
declare class QtiVariable extends QtiExpression<string | string[]> {
|
|
673
754
|
getResult(): Readonly<string | string[]>;
|
|
674
755
|
}
|
|
675
756
|
|
|
676
|
-
declare class
|
|
677
|
-
|
|
757
|
+
declare class QtiOutcomeProcessing extends LitElement {
|
|
758
|
+
static styles: lit.CSSResult[];
|
|
759
|
+
render(): lit_html.TemplateResult<1>;
|
|
760
|
+
process(): void;
|
|
761
|
+
}
|
|
762
|
+
declare global {
|
|
763
|
+
interface HTMLElementTagNameMap {
|
|
764
|
+
'qti-outcome-processing': QtiOutcomeProcessing;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
declare class QtiOutcomeProcessingProcessor {
|
|
768
|
+
process(rules: QtiRuleBase[]): void;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
interface IMSpci<ConfigProperties> {
|
|
772
|
+
typeIdentifier: string;
|
|
773
|
+
/** @access public
|
|
774
|
+
* @method getInstance Create a new instance of this portable custom interaction
|
|
775
|
+
* Will be called by the qtiCustomInteractionContext
|
|
776
|
+
* @param {DOM Element} dom - the DOM Element this PCI is being added to
|
|
777
|
+
* @param {Object} configuration - the configuration to apply to this PCI
|
|
778
|
+
* @param {String} state - a previous saved state to apply to this instance.
|
|
779
|
+
* This must have been obtained from a prior call to getState on an
|
|
780
|
+
* instance of this type (same typeIdentifier)
|
|
781
|
+
*/
|
|
782
|
+
getInstance: (dom: HTMLElement, configuration: Configuration<ConfigProperties>, state: string) => void;
|
|
783
|
+
/** @access public
|
|
784
|
+
* @method getResponse
|
|
785
|
+
* @return {Object} - the value to assign to the bound QTI response variable
|
|
786
|
+
*/
|
|
787
|
+
getResponse: () => QtiVariableJSON;
|
|
788
|
+
/** @access public
|
|
789
|
+
* @method getState
|
|
790
|
+
* @return {String} The current state of this PCI. May be passed to
|
|
791
|
+
* getInstance to later restore this PCI instance.
|
|
792
|
+
*/
|
|
793
|
+
getState: () => string;
|
|
794
|
+
oncompleted?: () => void;
|
|
795
|
+
destroy?: () => void;
|
|
796
|
+
}
|
|
797
|
+
declare type Configuration<T> = {
|
|
798
|
+
onready: (pci: IMSpci<T>, state?: string) => void;
|
|
799
|
+
properties: T;
|
|
800
|
+
};
|
|
801
|
+
declare type QtiVariableJSON = {
|
|
802
|
+
[K in 'list' | 'base']?: {
|
|
803
|
+
[Ka in 'boolean' | 'integer' | 'float' | 'string' | 'pair' | 'directedPair' | 'identifier']?: ResponseType;
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
interface ModuleResolutionConfig {
|
|
807
|
+
waitSeconds?: number;
|
|
808
|
+
context?: string;
|
|
809
|
+
catchError?: boolean;
|
|
810
|
+
paths: {
|
|
811
|
+
[key: string]: string;
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
declare class QtiPortableCustomInteraction extends Interaction {
|
|
678
816
|
private module;
|
|
679
817
|
private customInteractionTypeIdentifier;
|
|
680
|
-
private baseUrl;
|
|
681
818
|
private _errorMessage;
|
|
819
|
+
private intervalId;
|
|
820
|
+
private rawResponse;
|
|
821
|
+
private pci;
|
|
682
822
|
static get properties(): {
|
|
683
823
|
responseIdentifier: {
|
|
684
824
|
type: StringConstructor;
|
|
@@ -692,20 +832,32 @@ declare class QtiPortableCustomInteraction extends LitElement {
|
|
|
692
832
|
type: StringConstructor;
|
|
693
833
|
attribute: string;
|
|
694
834
|
};
|
|
695
|
-
baseUrl: {
|
|
696
|
-
type: StringConstructor;
|
|
697
|
-
attribute: string;
|
|
698
|
-
};
|
|
699
835
|
_errorMessage: {
|
|
700
836
|
type: StringConstructor;
|
|
701
837
|
state: boolean;
|
|
702
838
|
};
|
|
703
839
|
};
|
|
704
|
-
|
|
705
|
-
|
|
840
|
+
private convertQtiVariableJSON;
|
|
841
|
+
private startChecking;
|
|
842
|
+
private stopChecking;
|
|
843
|
+
validate(): boolean;
|
|
844
|
+
set response(val: Readonly<string | string[]>);
|
|
845
|
+
getTAOConfig(node: any): {};
|
|
846
|
+
register(pci: IMSpci<unknown>): void;
|
|
706
847
|
connectedCallback(): void;
|
|
848
|
+
disconnectedCallback(): void;
|
|
849
|
+
registerModules(config: ModuleResolutionConfig): Promise<void>;
|
|
850
|
+
private removeDoubleSlashes;
|
|
851
|
+
loadConfig: (url: string, baseUrl?: string) => Promise<ModuleResolutionConfig>;
|
|
852
|
+
getResolvablePath: (path: string, basePath?: string) => string;
|
|
853
|
+
mergeConfigs: (config: ModuleResolutionConfig, primaryConfig: ModuleResolutionConfig, fallback: string | ModuleResolutionConfig) => Promise<void>;
|
|
707
854
|
render(): lit_html.TemplateResult<1>;
|
|
708
855
|
}
|
|
856
|
+
declare global {
|
|
857
|
+
interface HTMLElementTagNameMap {
|
|
858
|
+
'qti-portable-custom-interaction': QtiPortableCustomInteraction;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
709
861
|
|
|
710
862
|
interface IInteraction {
|
|
711
863
|
disabled: boolean;
|
|
@@ -722,6 +874,11 @@ declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
|
722
874
|
render(): lit_html.TemplateResult<1>;
|
|
723
875
|
connectedCallback(): void;
|
|
724
876
|
}
|
|
877
|
+
declare global {
|
|
878
|
+
interface HTMLElementTagNameMap {
|
|
879
|
+
'qti-associate-interaction': QtiAssociateInteraction;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
725
882
|
|
|
726
883
|
declare class QtiEndAttemptInteraction extends Interaction {
|
|
727
884
|
countAttempt: string;
|
|
@@ -731,12 +888,22 @@ declare class QtiEndAttemptInteraction extends Interaction {
|
|
|
731
888
|
render(): lit_html.TemplateResult<1>;
|
|
732
889
|
endAttempt(e: Event): void;
|
|
733
890
|
}
|
|
891
|
+
declare global {
|
|
892
|
+
interface HTMLElementTagNameMap {
|
|
893
|
+
'qti-end-attempt-interaction': QtiEndAttemptInteraction;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
734
896
|
|
|
735
897
|
declare const QtiGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
736
898
|
declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
|
|
737
899
|
static styles: lit.CSSResult[];
|
|
738
900
|
render(): lit_html.TemplateResult<1>;
|
|
739
901
|
}
|
|
902
|
+
declare global {
|
|
903
|
+
interface HTMLElementTagNameMap {
|
|
904
|
+
'qti-gap-match-interaction': QtiGapMatchInteraction;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
740
907
|
|
|
741
908
|
declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
742
909
|
choiceOrdering: boolean;
|
|
@@ -765,6 +932,11 @@ declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
|
765
932
|
firstUpdated(e: any): void;
|
|
766
933
|
disconnectedCallback(): void;
|
|
767
934
|
}
|
|
935
|
+
declare global {
|
|
936
|
+
interface HTMLElementTagNameMap {
|
|
937
|
+
'qti-graphic-associate-interaction': QtiGraphicAssociateInteraction;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
768
940
|
|
|
769
941
|
declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
770
942
|
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
@@ -774,6 +946,11 @@ declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteractio
|
|
|
774
946
|
connectedCallback(): void;
|
|
775
947
|
disconnectedCallback(): void;
|
|
776
948
|
}
|
|
949
|
+
declare global {
|
|
950
|
+
interface HTMLElementTagNameMap {
|
|
951
|
+
'qti-graphic-gap-match-interaction': QtiGraphicGapMatchInteraction;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
777
954
|
|
|
778
955
|
declare class QtiGraphicOrderInteraction extends Choices {
|
|
779
956
|
choiceOrdering: boolean;
|
|
@@ -784,6 +961,11 @@ declare class QtiGraphicOrderInteraction extends Choices {
|
|
|
784
961
|
connectedCallback(): void;
|
|
785
962
|
disconnectedCallback(): void;
|
|
786
963
|
}
|
|
964
|
+
declare global {
|
|
965
|
+
interface HTMLElementTagNameMap {
|
|
966
|
+
'qti-graphic-order-interaction': QtiGraphicOrderInteraction;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
787
969
|
|
|
788
970
|
declare class QtiHotspotInteraction extends Choices {
|
|
789
971
|
static styles: lit.CSSResult[];
|
|
@@ -792,11 +974,21 @@ declare class QtiHotspotInteraction extends Choices {
|
|
|
792
974
|
connectedCallback(): void;
|
|
793
975
|
disconnectedCallback(): void;
|
|
794
976
|
}
|
|
977
|
+
declare global {
|
|
978
|
+
interface HTMLElementTagNameMap {
|
|
979
|
+
'qti-hotspot-interaction': QtiHotspotInteraction;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
795
982
|
|
|
796
983
|
declare class QtiSimpleAssociableChoice extends LitElement {
|
|
797
984
|
connectedCallback(): void;
|
|
798
985
|
render(): lit_html.TemplateResult<1>;
|
|
799
986
|
}
|
|
987
|
+
declare global {
|
|
988
|
+
interface HTMLElementTagNameMap {
|
|
989
|
+
'qti-simple-associable-choice': QtiSimpleAssociableChoice;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
800
992
|
|
|
801
993
|
declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
802
994
|
declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
@@ -808,6 +1000,11 @@ declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
|
808
1000
|
connectedCallback(): void;
|
|
809
1001
|
render(): lit_html.TemplateResult<1>;
|
|
810
1002
|
}
|
|
1003
|
+
declare global {
|
|
1004
|
+
interface HTMLElementTagNameMap {
|
|
1005
|
+
'qti-match-interaction': QtiMatchInteraction;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
811
1008
|
|
|
812
1009
|
declare class QtiMediaInteraction extends Interaction {
|
|
813
1010
|
value: number;
|
|
@@ -826,6 +1023,11 @@ declare class QtiMediaInteraction extends Interaction {
|
|
|
826
1023
|
constructor();
|
|
827
1024
|
connectedCallback(): void;
|
|
828
1025
|
}
|
|
1026
|
+
declare global {
|
|
1027
|
+
interface HTMLElementTagNameMap {
|
|
1028
|
+
'qti-media-interaction': QtiMediaInteraction;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
829
1031
|
|
|
830
1032
|
declare const QtiOrderInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
831
1033
|
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
@@ -839,6 +1041,11 @@ declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
|
839
1041
|
render(): lit_html.TemplateResult<1>;
|
|
840
1042
|
connectedCallback(): void;
|
|
841
1043
|
}
|
|
1044
|
+
declare global {
|
|
1045
|
+
interface HTMLElementTagNameMap {
|
|
1046
|
+
'qti-order-interaction': QtiOrderInteraction;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
842
1049
|
|
|
843
1050
|
declare class QtiSPositionObjectInteraction extends LitElement {
|
|
844
1051
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -858,6 +1065,11 @@ declare class QtiPositionObjectStage extends LitElement {
|
|
|
858
1065
|
removeMoveListener(event: any): void;
|
|
859
1066
|
disconnectedCallback(): void;
|
|
860
1067
|
}
|
|
1068
|
+
declare global {
|
|
1069
|
+
interface HTMLElementTagNameMap {
|
|
1070
|
+
'qti-position-object-stage': QtiPositionObjectStage;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
861
1073
|
|
|
862
1074
|
declare class QtiSelectPointInteraction extends Interaction {
|
|
863
1075
|
maxChoices: number;
|
|
@@ -871,6 +1083,11 @@ declare class QtiSelectPointInteraction extends Interaction {
|
|
|
871
1083
|
connectedCallback(): void;
|
|
872
1084
|
disconnectedCallback(): void;
|
|
873
1085
|
}
|
|
1086
|
+
declare global {
|
|
1087
|
+
interface HTMLElementTagNameMap {
|
|
1088
|
+
'qti-select-point-interaction': QtiSelectPointInteraction;
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
874
1091
|
|
|
875
1092
|
/**
|
|
876
1093
|
* @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 +1143,11 @@ declare class QtiSliderInteraction extends Interaction {
|
|
|
926
1143
|
private calculateValue;
|
|
927
1144
|
private getPositionFromEvent;
|
|
928
1145
|
}
|
|
1146
|
+
declare global {
|
|
1147
|
+
interface HTMLElementTagNameMap {
|
|
1148
|
+
'qti-slider-interaction': QtiSliderInteraction;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
929
1151
|
|
|
930
1152
|
/**
|
|
931
1153
|
* https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
|
|
@@ -945,33 +1167,63 @@ declare class QtiCustomOperator extends LitElement implements Calculate {
|
|
|
945
1167
|
handleSlotChange(event: Event): void;
|
|
946
1168
|
calculate(): any;
|
|
947
1169
|
}
|
|
1170
|
+
declare global {
|
|
1171
|
+
interface HTMLElementTagNameMap {
|
|
1172
|
+
'qti-custom-operator': QtiCustomOperator;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
948
1175
|
|
|
949
1176
|
declare class QtiAssociableHotspot extends LitElement {
|
|
950
1177
|
connectedCallback(): void;
|
|
951
1178
|
static styles: lit.CSSResult;
|
|
952
1179
|
render(): lit_html.TemplateResult<1>;
|
|
953
1180
|
}
|
|
1181
|
+
declare global {
|
|
1182
|
+
interface HTMLElementTagNameMap {
|
|
1183
|
+
'qti-associable-hotspot': QtiAssociableHotspot;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
954
1186
|
|
|
955
1187
|
declare class QtiGap extends LitElement {
|
|
956
1188
|
tabindex: number | undefined;
|
|
957
1189
|
render(): lit_html.TemplateResult<1>;
|
|
958
1190
|
}
|
|
1191
|
+
declare global {
|
|
1192
|
+
interface HTMLElementTagNameMap {
|
|
1193
|
+
'qti-gap': QtiGap;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
959
1196
|
|
|
960
1197
|
declare class QtiGapImg extends LitElement {
|
|
961
1198
|
tabindex: number | undefined;
|
|
962
1199
|
connectedCallback(): void;
|
|
963
1200
|
}
|
|
1201
|
+
declare global {
|
|
1202
|
+
interface HTMLElementTagNameMap {
|
|
1203
|
+
'qti-gap-img': QtiGapImg;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
964
1206
|
|
|
965
1207
|
declare class QtiGapText extends LitElement {
|
|
966
1208
|
tabindex: number | undefined;
|
|
967
1209
|
connectedCallback(): void;
|
|
968
1210
|
render(): lit_html.TemplateResult<1>;
|
|
969
1211
|
}
|
|
1212
|
+
declare global {
|
|
1213
|
+
interface HTMLElementTagNameMap {
|
|
1214
|
+
'qti-gap-text': QtiGapText;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
970
1217
|
|
|
971
1218
|
declare class QtiHotspotChoice extends QtiChoice {
|
|
972
1219
|
order: number;
|
|
973
1220
|
static styles: lit.CSSResult;
|
|
974
1221
|
}
|
|
1222
|
+
declare global {
|
|
1223
|
+
interface HTMLElementTagNameMap {
|
|
1224
|
+
'qti-hotspot-choice': QtiHotspotChoice;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
975
1227
|
|
|
976
1228
|
declare class QtiHottext extends QtiChoice {
|
|
977
1229
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -984,6 +1236,11 @@ declare global {
|
|
|
984
1236
|
|
|
985
1237
|
declare class QtiInlineChoice extends LitElement {
|
|
986
1238
|
}
|
|
1239
|
+
declare global {
|
|
1240
|
+
interface HTMLElementTagNameMap {
|
|
1241
|
+
'qti-inline-choice': QtiInlineChoice;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
987
1244
|
|
|
988
1245
|
/**
|
|
989
1246
|
* @summary Short summary of the component's intended use.
|
|
@@ -1007,4 +1264,4 @@ declare global {
|
|
|
1007
1264
|
}
|
|
1008
1265
|
}
|
|
1009
1266
|
|
|
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 };
|
|
1267
|
+
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, 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 };
|