@citolab/qti-components 7.0.4 → 7.0.6-beta.0
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/cdn/chunk-22HAPLRD.js +0 -0
- package/cdn/chunk-4DFVJE2A.js +48 -0
- package/cdn/chunk-4I75QSIL.js +8 -0
- package/cdn/chunk-5WCOPF7O.js +73 -0
- package/cdn/chunk-A536ZOJJ.js +43 -0
- package/cdn/chunk-BLKKKK6C.js +11 -0
- package/cdn/chunk-DC2R556M.js +5 -0
- package/cdn/chunk-GALSGMIP.js +5 -0
- package/cdn/chunk-IXSX4SJX.js +1 -0
- package/cdn/chunk-KYOTSBCX.js +1 -0
- package/cdn/chunk-L4TDHAKL.js +24 -0
- package/cdn/chunk-LVW3MHTI.js +23 -0
- package/cdn/chunk-M6AATWPS.js +59 -0
- package/cdn/chunk-MFWSHIPH.js +17 -0
- package/cdn/chunk-QGKK4T2J.js +8 -0
- package/cdn/chunk-ROXN2HIJ.js +8 -0
- package/cdn/chunk-SQDSHH6N.js +3539 -0
- package/cdn/chunk-T4A5AZCI.js +939 -0
- package/cdn/chunk-VI2WKTN4.js +1 -0
- package/cdn/index.global.js +36 -36
- package/cdn/index.js +1 -4783
- package/cdn/qti-components/index.global.js +226 -0
- package/cdn/qti-components/index.js +1 -0
- package/cdn/qti-item/core/index.global.js +149 -0
- package/cdn/qti-item/core/index.js +1 -0
- package/cdn/qti-loader/index.global.js +1 -0
- package/cdn/qti-loader/index.js +1 -0
- package/cdn/qti-test/components/index.global.js +207 -0
- package/cdn/qti-test/components/index.js +1 -0
- package/cdn/qti-test/components/styles.global.js +44 -0
- package/cdn/qti-test/components/styles.js +1 -0
- package/cdn/qti-test/components/test-component.abstract.global.js +170 -0
- package/cdn/qti-test/components/test-component.abstract.js +1 -0
- package/cdn/qti-test/components/test-item-link.global.js +170 -0
- package/cdn/qti-test/components/test-item-link.js +1 -0
- package/cdn/qti-test/components/test-next.global.js +170 -0
- package/cdn/qti-test/components/test-next.js +1 -0
- package/cdn/qti-test/components/test-next.spec.css +1 -0
- package/cdn/qti-test/components/test-next.spec.global.js +64 -0
- package/cdn/qti-test/components/test-next.spec.js +713 -0
- package/cdn/qti-test/components/test-paging-buttons-stamp.global.js +207 -0
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -0
- package/cdn/qti-test/components/test-prev.global.js +170 -0
- package/cdn/qti-test/components/test-prev.js +1 -0
- package/cdn/qti-test/components/test-view.global.js +170 -0
- package/cdn/qti-test/components/test-view.js +1 -0
- package/cdn/qti-test/core/index.global.js +205 -0
- package/cdn/qti-test/core/index.js +1 -0
- package/cdn/qti-transformers/index.global.js +1 -0
- package/cdn/qti-transformers/index.js +1 -0
- package/dist/chunk-2CHF3TMY.js +3529 -0
- package/dist/chunk-2CHF3TMY.js.map +1 -0
- package/dist/{transformers/index.js → chunk-2OA7E3E7.js} +2 -1
- package/dist/chunk-2OA7E3E7.js.map +1 -0
- package/dist/chunk-3TFUBCJW.js +72 -0
- package/dist/chunk-3TFUBCJW.js.map +1 -0
- package/dist/chunk-44VE5POH.js +55 -0
- package/dist/chunk-44VE5POH.js.map +1 -0
- package/dist/chunk-4FH7P7YI.js +43 -0
- package/dist/chunk-4FH7P7YI.js.map +1 -0
- package/dist/chunk-4YG2FPKK.js +31 -0
- package/dist/chunk-4YG2FPKK.js.map +1 -0
- package/dist/chunk-6SG3NMKU.js +50 -0
- package/dist/chunk-6SG3NMKU.js.map +1 -0
- package/dist/chunk-ANLIJZBL.js +118 -0
- package/dist/chunk-ANLIJZBL.js.map +1 -0
- package/dist/chunk-CNQYM52B.js +569 -0
- package/dist/chunk-CNQYM52B.js.map +1 -0
- package/dist/chunk-F3NTI6TX.js +10 -0
- package/dist/chunk-F3NTI6TX.js.map +1 -0
- package/dist/chunk-F7HTXGGH.js +78 -0
- package/dist/chunk-F7HTXGGH.js.map +1 -0
- package/dist/chunk-MAC76UNI.js +1 -0
- package/dist/chunk-MAC76UNI.js.map +1 -0
- package/dist/chunk-OO6JSYLP.js +50 -0
- package/dist/chunk-OO6JSYLP.js.map +1 -0
- package/dist/chunk-QYN5S4EM.js +107 -0
- package/dist/chunk-QYN5S4EM.js.map +1 -0
- package/dist/chunk-UB5K44DB.js +30 -0
- package/dist/chunk-UB5K44DB.js.map +1 -0
- package/dist/chunk-UBZPSVSE.js +6301 -0
- package/dist/chunk-UBZPSVSE.js.map +1 -0
- package/dist/index.d.ts +13 -503
- package/dist/index.js +132 -13584
- package/dist/index.js.map +1 -1
- package/dist/item.css +10 -10
- package/dist/qti-components/index.d.ts +150 -0
- package/dist/qti-components/index.js +188 -0
- package/dist/qti-components/index.js.map +1 -0
- package/dist/qti-components-jsx.d.ts +147 -201
- package/dist/qti-item/core/index.d.ts +61 -0
- package/dist/qti-item/core/index.js +13 -0
- package/dist/qti-item/core/index.js.map +1 -0
- package/dist/{loader → qti-loader}/index.d.ts +1 -1
- package/dist/qti-loader/index.js +29 -0
- package/dist/qti-loader/index.js.map +1 -0
- package/dist/{qti-simple-choice-D0GiMrqD.d.ts → qti-simple-choice-DxWcdKHi.d.ts} +30 -40
- package/dist/qti-test/components/index.d.ts +11 -0
- package/dist/qti-test/components/index.js +32 -0
- package/dist/qti-test/components/index.js.map +1 -0
- package/dist/qti-test/components/styles.d.ts +8 -0
- package/dist/qti-test/components/styles.js +14 -0
- package/dist/qti-test/components/styles.js.map +1 -0
- package/dist/qti-test/components/test-component.abstract.d.ts +22 -0
- package/dist/qti-test/components/test-component.abstract.js +10 -0
- package/dist/qti-test/components/test-component.abstract.js.map +1 -0
- package/dist/qti-test/components/test-item-link.d.ts +20 -0
- package/dist/qti-test/components/test-item-link.js +12 -0
- package/dist/qti-test/components/test-item-link.js.map +1 -0
- package/dist/qti-test/components/test-next.d.ts +31 -0
- package/dist/qti-test/components/test-next.js +12 -0
- package/dist/qti-test/components/test-next.js.map +1 -0
- package/dist/qti-test/components/test-next.spec.css +2481 -0
- package/dist/qti-test/components/test-next.spec.css.map +1 -0
- package/dist/qti-test/components/test-next.spec.d.ts +13 -0
- package/dist/qti-test/components/test-next.spec.js +45904 -0
- package/dist/qti-test/components/test-next.spec.js.map +1 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +21 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.js +11 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.js.map +1 -0
- package/dist/qti-test/components/test-prev.d.ts +31 -0
- package/dist/qti-test/components/test-prev.js +12 -0
- package/dist/qti-test/components/test-prev.js.map +1 -0
- package/dist/qti-test/components/test-view.d.ts +26 -0
- package/dist/qti-test/components/test-view.js +11 -0
- package/dist/qti-test/components/test-view.js.map +1 -0
- package/dist/qti-test/core/index.d.ts +121 -0
- package/dist/qti-test/core/index.js +27 -0
- package/dist/qti-test/core/index.js.map +1 -0
- package/dist/qti-transformers/index.js +12 -0
- package/dist/qti-transformers/index.js.map +1 -0
- package/dist/test.context-DbSTxKk_.d.ts +99 -0
- package/dist/vscode.html-custom-data.json +53 -42
- package/package.json +100 -111
- package/dist/custom-element-eslint-rules.js +0 -329
- package/dist/custom-elements.json +0 -27271
- package/dist/loader/index.js +0 -310
- package/dist/loader/index.js.map +0 -1
- package/dist/qti-simple-choice-CfgBEvdI.d.ts +0 -1143
- package/dist/qti-simple-choice-UTrFa_RQ.d.ts +0 -1177
- package/dist/qti-simple-choice-zEsDq3c0.d.ts +0 -1147
- package/dist/transformers/index.js.map +0 -1
- /package/dist/{transformers → qti-transformers}/index.d.ts +0 -0
|
@@ -440,10 +440,6 @@ export type QtiInlineChoiceInteractionProps = {
|
|
|
440
440
|
/** */
|
|
441
441
|
readonly?: boolean;
|
|
442
442
|
/** */
|
|
443
|
-
options?: OptionType[];
|
|
444
|
-
/** */
|
|
445
|
-
correctOption?: string;
|
|
446
|
-
/** */
|
|
447
443
|
value?: string | string[];
|
|
448
444
|
/** */
|
|
449
445
|
correctResponse?: string | string[];
|
|
@@ -574,19 +570,19 @@ export type QtiAssociateInteractionProps = {
|
|
|
574
570
|
/** */
|
|
575
571
|
"max-associations"?: number;
|
|
576
572
|
/** */
|
|
577
|
-
disabled?: boolean;
|
|
578
|
-
/** */
|
|
579
573
|
"response-identifier"?: string;
|
|
580
574
|
/** */
|
|
575
|
+
disabled?: boolean;
|
|
576
|
+
/** */
|
|
581
577
|
readonly?: boolean;
|
|
582
578
|
/** */
|
|
583
579
|
value?: string | string[];
|
|
584
580
|
/** */
|
|
585
581
|
correctResponse?: string | string[];
|
|
586
582
|
/** */
|
|
587
|
-
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
588
|
-
/** */
|
|
589
583
|
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
584
|
+
/** */
|
|
585
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
590
586
|
};
|
|
591
587
|
|
|
592
588
|
export type QtiCustomInteractionProps = {
|
|
@@ -621,26 +617,17 @@ export type QtiCustomInteractionProps = {
|
|
|
621
617
|
};
|
|
622
618
|
|
|
623
619
|
export type QtiEndAttemptInteractionProps = {
|
|
624
|
-
/** */
|
|
625
|
-
"count-attempt"?: string;
|
|
626
|
-
/** */
|
|
627
|
-
title?: "end attempt";
|
|
628
620
|
/** */
|
|
629
621
|
"response-identifier"?: string;
|
|
630
622
|
/** */
|
|
631
623
|
disabled?: boolean;
|
|
624
|
+
/** Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt) */
|
|
625
|
+
"count-attempt"?: "true" | "false" | null;
|
|
632
626
|
/** */
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
value?: string | string[];
|
|
636
|
-
/** */
|
|
637
|
-
correctResponse?: string | string[];
|
|
627
|
+
title?: string;
|
|
628
|
+
|
|
638
629
|
/** */
|
|
639
630
|
"onend-attempt"?: (e: CustomEvent<CustomEvent>) => void;
|
|
640
|
-
/** */
|
|
641
|
-
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
642
|
-
/** */
|
|
643
|
-
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
644
631
|
};
|
|
645
632
|
|
|
646
633
|
export type QtiGapMatchInteractionProps = {
|
|
@@ -649,19 +636,19 @@ export type QtiGapMatchInteractionProps = {
|
|
|
649
636
|
/** */
|
|
650
637
|
"max-associations"?: number;
|
|
651
638
|
/** */
|
|
652
|
-
disabled?: boolean;
|
|
653
|
-
/** */
|
|
654
639
|
"response-identifier"?: string;
|
|
655
640
|
/** */
|
|
641
|
+
disabled?: boolean;
|
|
642
|
+
/** */
|
|
656
643
|
readonly?: boolean;
|
|
657
644
|
/** */
|
|
658
645
|
correctResponse?: string | string[];
|
|
659
646
|
/** */
|
|
660
647
|
value?: string | string[];
|
|
661
648
|
/** */
|
|
662
|
-
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
663
|
-
/** */
|
|
664
649
|
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
650
|
+
/** */
|
|
651
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
665
652
|
};
|
|
666
653
|
|
|
667
654
|
export type QtiHotspotChoiceProps = {
|
|
@@ -689,26 +676,6 @@ export type QtiGraphicAssociateInteractionProps = {
|
|
|
689
676
|
/** */
|
|
690
677
|
readonly?: boolean;
|
|
691
678
|
/** */
|
|
692
|
-
choiceOrdering?: boolean;
|
|
693
|
-
/** */
|
|
694
|
-
hotspots?: string;
|
|
695
|
-
/** */
|
|
696
|
-
startPoint?: null;
|
|
697
|
-
/** */
|
|
698
|
-
endPoint?: null;
|
|
699
|
-
/** */
|
|
700
|
-
_lines?: array;
|
|
701
|
-
/** */
|
|
702
|
-
startCoord?: { x: any; y: any };
|
|
703
|
-
/** */
|
|
704
|
-
mouseCoord?: { x: number; y: number };
|
|
705
|
-
/** */
|
|
706
|
-
svgContainer?: string;
|
|
707
|
-
/** */
|
|
708
|
-
grImage?: string;
|
|
709
|
-
/** */
|
|
710
|
-
svg?: SVGSVGElement;
|
|
711
|
-
/** */
|
|
712
679
|
value?: string | string[];
|
|
713
680
|
/** */
|
|
714
681
|
correctResponse?: string | string[];
|
|
@@ -724,19 +691,19 @@ export type QtiGraphicGapMatchInteractionProps = {
|
|
|
724
691
|
/** */
|
|
725
692
|
"max-associations"?: number;
|
|
726
693
|
/** */
|
|
727
|
-
disabled?: boolean;
|
|
728
|
-
/** */
|
|
729
694
|
"response-identifier"?: string;
|
|
730
695
|
/** */
|
|
696
|
+
disabled?: boolean;
|
|
697
|
+
/** */
|
|
731
698
|
readonly?: boolean;
|
|
732
699
|
/** */
|
|
733
700
|
value?: string | string[];
|
|
734
701
|
/** */
|
|
735
702
|
correctResponse?: string | string[];
|
|
736
703
|
/** */
|
|
737
|
-
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
738
|
-
/** */
|
|
739
704
|
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
705
|
+
/** */
|
|
706
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
740
707
|
};
|
|
741
708
|
|
|
742
709
|
export type QtiGraphicOrderInteractionProps = {
|
|
@@ -751,8 +718,6 @@ export type QtiGraphicOrderInteractionProps = {
|
|
|
751
718
|
/** */
|
|
752
719
|
readonly?: boolean;
|
|
753
720
|
/** */
|
|
754
|
-
choiceOrdering?: boolean;
|
|
755
|
-
/** */
|
|
756
721
|
value?: string | string[];
|
|
757
722
|
/** */
|
|
758
723
|
correctResponse?: string | string[];
|
|
@@ -801,9 +766,9 @@ export type QtiMatchInteractionProps = {
|
|
|
801
766
|
/** */
|
|
802
767
|
correctResponse?: string | string[];
|
|
803
768
|
/** */
|
|
804
|
-
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
805
|
-
/** */
|
|
806
769
|
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
770
|
+
/** */
|
|
771
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
807
772
|
};
|
|
808
773
|
|
|
809
774
|
export type QtiMediaInteractionProps = {
|
|
@@ -833,15 +798,11 @@ export type QtiOrderInteractionProps = {
|
|
|
833
798
|
/** */
|
|
834
799
|
"max-associations"?: number;
|
|
835
800
|
/** */
|
|
836
|
-
disabled?: boolean;
|
|
837
|
-
/** */
|
|
838
801
|
"response-identifier"?: string;
|
|
839
802
|
/** */
|
|
840
|
-
|
|
841
|
-
/** */
|
|
842
|
-
childrenMap?: Element[];
|
|
803
|
+
disabled?: boolean;
|
|
843
804
|
/** */
|
|
844
|
-
|
|
805
|
+
readonly?: boolean;
|
|
845
806
|
/** */
|
|
846
807
|
correctResponses?: string[];
|
|
847
808
|
/** */
|
|
@@ -851,9 +812,9 @@ export type QtiOrderInteractionProps = {
|
|
|
851
812
|
/** */
|
|
852
813
|
value?: string | string[];
|
|
853
814
|
/** */
|
|
854
|
-
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
855
|
-
/** */
|
|
856
815
|
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
816
|
+
/** */
|
|
817
|
+
"onqti-register-interaction"?: (e: CustomEvent<CustomEvent>) => void;
|
|
857
818
|
};
|
|
858
819
|
|
|
859
820
|
export type QtiPositionObjectInteractionProps = {};
|
|
@@ -1028,6 +989,17 @@ export type TestElementProps = {
|
|
|
1028
989
|
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1029
990
|
};
|
|
1030
991
|
|
|
992
|
+
export type ItemContainerProps = {
|
|
993
|
+
/** URL of the item to load */
|
|
994
|
+
"item-url"?: string;
|
|
995
|
+
/** A parsed HTML document */
|
|
996
|
+
itemDoc?: DocumentFragment;
|
|
997
|
+
/** The raw XML string */
|
|
998
|
+
itemXML?: string;
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
export type QtiItemProps = {};
|
|
1002
|
+
|
|
1031
1003
|
export type QtiAssessmentItemRefProps = {
|
|
1032
1004
|
/** */
|
|
1033
1005
|
category?: string | undefined;
|
|
@@ -1097,11 +1069,6 @@ export type QtiTestPartProps = {
|
|
|
1097
1069
|
"onqti-test-part-connected"?: (e: CustomEvent<Event>) => void;
|
|
1098
1070
|
};
|
|
1099
1071
|
|
|
1100
|
-
export type QtiTestProps = {
|
|
1101
|
-
/** */
|
|
1102
|
-
context?: TestContext;
|
|
1103
|
-
};
|
|
1104
|
-
|
|
1105
1072
|
export type TestNextProps = {
|
|
1106
1073
|
/** */
|
|
1107
1074
|
role?: string;
|
|
@@ -1110,10 +1077,6 @@ export type TestNextProps = {
|
|
|
1110
1077
|
/** */
|
|
1111
1078
|
disabled?: boolean;
|
|
1112
1079
|
/** */
|
|
1113
|
-
_testContext?: TestContext | undefined;
|
|
1114
|
-
/** */
|
|
1115
|
-
_testElement?: TestElement | undefined;
|
|
1116
|
-
/** */
|
|
1117
1080
|
"onon-test-switch-view"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1118
1081
|
/** */
|
|
1119
1082
|
"onqti-request-test-item"?: (e: CustomEvent<CustomEvent>) => void;
|
|
@@ -1127,29 +1090,19 @@ export type TestPrevProps = {
|
|
|
1127
1090
|
/** */
|
|
1128
1091
|
disabled?: boolean;
|
|
1129
1092
|
/** */
|
|
1130
|
-
_testContext?: TestContext | undefined;
|
|
1131
|
-
/** */
|
|
1132
|
-
_testElement?: TestElement | undefined;
|
|
1133
|
-
/** */
|
|
1134
1093
|
"onon-test-switch-view"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1135
1094
|
/** */
|
|
1136
1095
|
"onqti-request-test-item"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1137
1096
|
};
|
|
1138
1097
|
|
|
1139
1098
|
export type TestViewProps = {
|
|
1140
|
-
/**
|
|
1099
|
+
/** label accompanying the select view dropdown */
|
|
1141
1100
|
label?: string;
|
|
1142
|
-
/**
|
|
1101
|
+
/** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
|
|
1143
1102
|
"view-options"?: string;
|
|
1144
1103
|
/** */
|
|
1145
|
-
_handleViewOptionsChange?: string;
|
|
1146
|
-
/** */
|
|
1147
1104
|
disabled?: boolean;
|
|
1148
1105
|
/** */
|
|
1149
|
-
_testContext?: TestContext | undefined;
|
|
1150
|
-
/** */
|
|
1151
|
-
_testElement?: TestElement | undefined;
|
|
1152
|
-
/** */
|
|
1153
1106
|
"onon-test-switch-view"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1154
1107
|
/** */
|
|
1155
1108
|
"onqti-request-test-item"?: (e: CustomEvent<CustomEvent>) => void;
|
|
@@ -1161,24 +1114,11 @@ export type TestItemLinkProps = {
|
|
|
1161
1114
|
/** */
|
|
1162
1115
|
disabled?: boolean;
|
|
1163
1116
|
/** */
|
|
1164
|
-
_testContext?: TestContext | undefined;
|
|
1165
|
-
/** */
|
|
1166
|
-
_testElement?: TestElement | undefined;
|
|
1167
|
-
/** */
|
|
1168
1117
|
"onon-test-switch-view"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1169
1118
|
/** */
|
|
1170
1119
|
"onqti-request-test-item"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1171
1120
|
};
|
|
1172
1121
|
|
|
1173
|
-
export type TestContainerProps = {
|
|
1174
|
-
/** URL of the item to load */
|
|
1175
|
-
"test-url"?: string;
|
|
1176
|
-
/** A parsed HTML document */
|
|
1177
|
-
testDoc?: DocumentFragment;
|
|
1178
|
-
/** The raw XML string */
|
|
1179
|
-
testXML?: string;
|
|
1180
|
-
};
|
|
1181
|
-
|
|
1182
1122
|
export type TestPagingButtonsStampProps = {
|
|
1183
1123
|
/** */
|
|
1184
1124
|
"max-displayed-items"?: number;
|
|
@@ -1189,24 +1129,23 @@ export type TestPagingButtonsStampProps = {
|
|
|
1189
1129
|
/** */
|
|
1190
1130
|
disabled?: boolean;
|
|
1191
1131
|
/** */
|
|
1192
|
-
_testContext?: TestContext | undefined;
|
|
1193
|
-
/** */
|
|
1194
|
-
_testElement?: TestElement | undefined;
|
|
1195
|
-
/** */
|
|
1196
1132
|
"onon-test-switch-view"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1197
1133
|
/** */
|
|
1198
1134
|
"onqti-request-test-item"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1199
1135
|
};
|
|
1200
1136
|
|
|
1201
|
-
export type
|
|
1137
|
+
export type QtiTestProps = {
|
|
1138
|
+
/** */
|
|
1139
|
+
context?: TestContext;
|
|
1140
|
+
};
|
|
1202
1141
|
|
|
1203
|
-
export type
|
|
1142
|
+
export type TestContainerProps = {
|
|
1204
1143
|
/** URL of the item to load */
|
|
1205
|
-
"
|
|
1144
|
+
"test-url"?: string;
|
|
1206
1145
|
/** A parsed HTML document */
|
|
1207
|
-
|
|
1146
|
+
testDoc?: DocumentFragment;
|
|
1208
1147
|
/** The raw XML string */
|
|
1209
|
-
|
|
1148
|
+
testXML?: string;
|
|
1210
1149
|
};
|
|
1211
1150
|
|
|
1212
1151
|
export type CustomElements = {
|
|
@@ -1608,6 +1547,9 @@ export type CustomElements = {
|
|
|
1608
1547
|
* ### **Events:**
|
|
1609
1548
|
* - **qti-register-interaction**
|
|
1610
1549
|
* - **qti-interaction-response**
|
|
1550
|
+
*
|
|
1551
|
+
* ### **Methods:**
|
|
1552
|
+
*
|
|
1611
1553
|
*/
|
|
1612
1554
|
"qti-hottext-interaction": Partial<QtiHottextInteractionProps & BaseProps & BaseEvents>;
|
|
1613
1555
|
|
|
@@ -1642,6 +1584,9 @@ export type CustomElements = {
|
|
|
1642
1584
|
* - **qti-register-interaction**
|
|
1643
1585
|
* - **qti-interaction-response**
|
|
1644
1586
|
*
|
|
1587
|
+
* ### **Methods:**
|
|
1588
|
+
*
|
|
1589
|
+
*
|
|
1645
1590
|
* ### **Slots:**
|
|
1646
1591
|
* - _default_ - default slot of the choices
|
|
1647
1592
|
* - **prompt** - slot of the prompt
|
|
@@ -1705,8 +1650,8 @@ export type CustomElements = {
|
|
|
1705
1650
|
*
|
|
1706
1651
|
*
|
|
1707
1652
|
* ### **Events:**
|
|
1708
|
-
* - **qti-
|
|
1709
|
-
* - **qti-interaction
|
|
1653
|
+
* - **qti-interaction-response**
|
|
1654
|
+
* - **qti-register-interaction**
|
|
1710
1655
|
*/
|
|
1711
1656
|
"qti-associate-interaction": Partial<QtiAssociateInteractionProps & BaseProps & BaseEvents>;
|
|
1712
1657
|
|
|
@@ -1728,8 +1673,6 @@ export type CustomElements = {
|
|
|
1728
1673
|
*
|
|
1729
1674
|
* ### **Events:**
|
|
1730
1675
|
* - **end-attempt**
|
|
1731
|
-
* - **qti-register-interaction**
|
|
1732
|
-
* - **qti-interaction-response**
|
|
1733
1676
|
*/
|
|
1734
1677
|
"qti-end-attempt-interaction": Partial<QtiEndAttemptInteractionProps & BaseProps & BaseEvents>;
|
|
1735
1678
|
|
|
@@ -1739,8 +1682,8 @@ export type CustomElements = {
|
|
|
1739
1682
|
*
|
|
1740
1683
|
*
|
|
1741
1684
|
* ### **Events:**
|
|
1742
|
-
* - **qti-
|
|
1743
|
-
* - **qti-interaction
|
|
1685
|
+
* - **qti-interaction-response**
|
|
1686
|
+
* - **qti-register-interaction**
|
|
1744
1687
|
*/
|
|
1745
1688
|
"qti-gap-match-interaction": Partial<QtiGapMatchInteractionProps & BaseProps & BaseEvents>;
|
|
1746
1689
|
|
|
@@ -1771,8 +1714,8 @@ export type CustomElements = {
|
|
|
1771
1714
|
*
|
|
1772
1715
|
*
|
|
1773
1716
|
* ### **Events:**
|
|
1774
|
-
* - **qti-
|
|
1775
|
-
* - **qti-interaction
|
|
1717
|
+
* - **qti-interaction-response**
|
|
1718
|
+
* - **qti-register-interaction**
|
|
1776
1719
|
*/
|
|
1777
1720
|
"qti-graphic-gap-match-interaction": Partial<QtiGraphicGapMatchInteractionProps & BaseProps & BaseEvents>;
|
|
1778
1721
|
|
|
@@ -1784,6 +1727,9 @@ export type CustomElements = {
|
|
|
1784
1727
|
* ### **Events:**
|
|
1785
1728
|
* - **qti-register-interaction**
|
|
1786
1729
|
* - **qti-interaction-response**
|
|
1730
|
+
*
|
|
1731
|
+
* ### **Methods:**
|
|
1732
|
+
*
|
|
1787
1733
|
*/
|
|
1788
1734
|
"qti-graphic-order-interaction": Partial<QtiGraphicOrderInteractionProps & BaseProps & BaseEvents>;
|
|
1789
1735
|
|
|
@@ -1795,6 +1741,9 @@ export type CustomElements = {
|
|
|
1795
1741
|
* ### **Events:**
|
|
1796
1742
|
* - **qti-register-interaction**
|
|
1797
1743
|
* - **qti-interaction-response**
|
|
1744
|
+
*
|
|
1745
|
+
* ### **Methods:**
|
|
1746
|
+
*
|
|
1798
1747
|
*/
|
|
1799
1748
|
"qti-hotspot-interaction": Partial<QtiHotspotInteractionProps & BaseProps & BaseEvents>;
|
|
1800
1749
|
|
|
@@ -1804,8 +1753,8 @@ export type CustomElements = {
|
|
|
1804
1753
|
*
|
|
1805
1754
|
*
|
|
1806
1755
|
* ### **Events:**
|
|
1807
|
-
* - **qti-
|
|
1808
|
-
* - **qti-interaction
|
|
1756
|
+
* - **qti-interaction-response**
|
|
1757
|
+
* - **qti-register-interaction**
|
|
1809
1758
|
*/
|
|
1810
1759
|
"qti-match-interaction": Partial<QtiMatchInteractionProps & BaseProps & BaseEvents>;
|
|
1811
1760
|
|
|
@@ -1826,8 +1775,8 @@ export type CustomElements = {
|
|
|
1826
1775
|
*
|
|
1827
1776
|
*
|
|
1828
1777
|
* ### **Events:**
|
|
1829
|
-
* - **qti-
|
|
1830
|
-
* - **qti-interaction
|
|
1778
|
+
* - **qti-interaction-response**
|
|
1779
|
+
* - **qti-register-interaction**
|
|
1831
1780
|
*/
|
|
1832
1781
|
"qti-order-interaction": Partial<QtiOrderInteractionProps & BaseProps & BaseEvents>;
|
|
1833
1782
|
|
|
@@ -1973,6 +1922,40 @@ export type CustomElements = {
|
|
|
1973
1922
|
*/
|
|
1974
1923
|
"test-element": Partial<TestElementProps & BaseProps & BaseEvents>;
|
|
1975
1924
|
|
|
1925
|
+
/**
|
|
1926
|
+
* `<item-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
1927
|
+
* The `qti-assessment-item` will be placed inside the shadow DOM of this element.
|
|
1928
|
+
* The element loads the item from the provided URL and renders it inside the shadow DOM.
|
|
1929
|
+
*
|
|
1930
|
+
* ### Styling
|
|
1931
|
+
* Add a class to the element for styling.
|
|
1932
|
+
*
|
|
1933
|
+
* ```html
|
|
1934
|
+
* <qti-item>
|
|
1935
|
+
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
1936
|
+
* </qti-item>
|
|
1937
|
+
* ```
|
|
1938
|
+
* ---
|
|
1939
|
+
*
|
|
1940
|
+
*/
|
|
1941
|
+
"item-container": Partial<ItemContainerProps & BaseProps & BaseEvents>;
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* `<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.
|
|
1945
|
+
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
1946
|
+
* Placing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.
|
|
1947
|
+
* See `<item-container>` for more details.
|
|
1948
|
+
*
|
|
1949
|
+
* ```html
|
|
1950
|
+
* <qti-item>
|
|
1951
|
+
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
1952
|
+
* </qti-item>
|
|
1953
|
+
* ```
|
|
1954
|
+
* ---
|
|
1955
|
+
*
|
|
1956
|
+
*/
|
|
1957
|
+
"qti-item": Partial<QtiItemProps & BaseProps & BaseEvents>;
|
|
1958
|
+
|
|
1976
1959
|
/**
|
|
1977
1960
|
*
|
|
1978
1961
|
* ---
|
|
@@ -2013,55 +1996,6 @@ export type CustomElements = {
|
|
|
2013
1996
|
*/
|
|
2014
1997
|
"qti-test-part": Partial<QtiTestPartProps & BaseProps & BaseEvents>;
|
|
2015
1998
|
|
|
2016
|
-
/**
|
|
2017
|
-
* `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.
|
|
2018
|
-
*
|
|
2019
|
-
* This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.
|
|
2020
|
-
*
|
|
2021
|
-
* ### Example Usage
|
|
2022
|
-
*
|
|
2023
|
-
* Minimal example including navigation:
|
|
2024
|
-
*
|
|
2025
|
-
* ```html
|
|
2026
|
-
* <qti-test>
|
|
2027
|
-
* <test-container test-url="./path/to/assessment.xml"></test-container>
|
|
2028
|
-
* <nav class="flex">
|
|
2029
|
-
* <test-prev></test-prev>
|
|
2030
|
-
* <test-next></test-next>
|
|
2031
|
-
* </nav>
|
|
2032
|
-
* </qti-test>
|
|
2033
|
-
* ```
|
|
2034
|
-
*
|
|
2035
|
-
* Use the following file structure
|
|
2036
|
-
* A qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.
|
|
2037
|
-
*
|
|
2038
|
-
* ```plaintext
|
|
2039
|
-
* Root/
|
|
2040
|
-
* ├── index.html
|
|
2041
|
-
* └── /assets/api/examples/
|
|
2042
|
-
* ├── assessmenttest.xml
|
|
2043
|
-
* └── imsmanifest.xml
|
|
2044
|
-
*
|
|
2045
|
-
* ```
|
|
2046
|
-
*
|
|
2047
|
-
* ### Test components
|
|
2048
|
-
*
|
|
2049
|
-
* Use test components inside the qti-test component for added functionality.
|
|
2050
|
-
* ### Test next
|
|
2051
|
-
* `<test-next> | TestNext`
|
|
2052
|
-
*
|
|
2053
|
-
* ### Test prev
|
|
2054
|
-
*
|
|
2055
|
-
* `<test-prev> | TestPrev`
|
|
2056
|
-
* ### Test components
|
|
2057
|
-
*
|
|
2058
|
-
* You can use normal class names to style the elements.
|
|
2059
|
-
* And you can use the `test-prev` and `test-next` elements to navigate through the test.
|
|
2060
|
-
* ---
|
|
2061
|
-
*
|
|
2062
|
-
*/
|
|
2063
|
-
"qti-test": Partial<QtiTestProps & BaseProps & BaseEvents>;
|
|
2064
|
-
|
|
2065
1999
|
/**
|
|
2066
2000
|
* Represents a custom element for navigating to the next test item.
|
|
2067
2001
|
* ---
|
|
@@ -2106,24 +2040,6 @@ export type CustomElements = {
|
|
|
2106
2040
|
*/
|
|
2107
2041
|
"test-item-link": Partial<TestItemLinkProps & BaseProps & BaseEvents>;
|
|
2108
2042
|
|
|
2109
|
-
/**
|
|
2110
|
-
* `<test-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
2111
|
-
* The `qti-assessment-test` will be placed inside the shadow DOM of this element.
|
|
2112
|
-
* The element loads the item from the provided URL and renders it inside the shadow DOM.
|
|
2113
|
-
*
|
|
2114
|
-
* ### Styling
|
|
2115
|
-
* Add a class to the element for styling.
|
|
2116
|
-
*
|
|
2117
|
-
* ```html
|
|
2118
|
-
* <qti-test>
|
|
2119
|
-
* <test-container class="m-4 bg-white" test-url="./path/to/item.xml"></test-container>
|
|
2120
|
-
* </qti-test>
|
|
2121
|
-
* ```
|
|
2122
|
-
* ---
|
|
2123
|
-
*
|
|
2124
|
-
*/
|
|
2125
|
-
"test-container": Partial<TestContainerProps & BaseProps & BaseEvents>;
|
|
2126
|
-
|
|
2127
2043
|
/**
|
|
2128
2044
|
*
|
|
2129
2045
|
* ---
|
|
@@ -2136,36 +2052,66 @@ export type CustomElements = {
|
|
|
2136
2052
|
"test-paging-buttons-stamp": Partial<TestPagingButtonsStampProps & BaseProps & BaseEvents>;
|
|
2137
2053
|
|
|
2138
2054
|
/**
|
|
2139
|
-
* `<qti-
|
|
2140
|
-
*
|
|
2141
|
-
*
|
|
2142
|
-
*
|
|
2055
|
+
* `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.
|
|
2056
|
+
*
|
|
2057
|
+
* This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.
|
|
2058
|
+
*
|
|
2059
|
+
* ### Example Usage
|
|
2060
|
+
*
|
|
2061
|
+
* Minimal example including navigation:
|
|
2143
2062
|
*
|
|
2144
2063
|
* ```html
|
|
2145
|
-
* <qti-
|
|
2146
|
-
* <
|
|
2147
|
-
*
|
|
2064
|
+
* <qti-test>
|
|
2065
|
+
* <test-container test-url="./path/to/assessment.xml"></test-container>
|
|
2066
|
+
* <nav class="flex">
|
|
2067
|
+
* <test-prev></test-prev>
|
|
2068
|
+
* <test-next></test-next>
|
|
2069
|
+
* </nav>
|
|
2070
|
+
* </qti-test>
|
|
2071
|
+
* ```
|
|
2072
|
+
*
|
|
2073
|
+
* Use the following file structure
|
|
2074
|
+
* A qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.
|
|
2075
|
+
*
|
|
2076
|
+
* ```plaintext
|
|
2077
|
+
* Root/
|
|
2078
|
+
* ├── index.html
|
|
2079
|
+
* └── /assets/api/examples/
|
|
2080
|
+
* ├── assessmenttest.xml
|
|
2081
|
+
* └── imsmanifest.xml
|
|
2082
|
+
*
|
|
2148
2083
|
* ```
|
|
2084
|
+
*
|
|
2085
|
+
* ### Test components
|
|
2086
|
+
*
|
|
2087
|
+
* Use test components inside the qti-test component for added functionality.
|
|
2088
|
+
* ### Test next
|
|
2089
|
+
* `<test-next> | TestNext`
|
|
2090
|
+
*
|
|
2091
|
+
* ### Test prev
|
|
2092
|
+
*
|
|
2093
|
+
* `<test-prev> | TestPrev`
|
|
2094
|
+
* ### Test components
|
|
2095
|
+
*
|
|
2096
|
+
* You can use normal class names to style the elements.
|
|
2097
|
+
* And you can use the `test-prev` and `test-next` elements to navigate through the test.
|
|
2149
2098
|
* ---
|
|
2150
2099
|
*
|
|
2151
2100
|
*/
|
|
2152
|
-
"qti-
|
|
2101
|
+
"qti-test": Partial<QtiTestProps & BaseProps & BaseEvents>;
|
|
2153
2102
|
|
|
2154
2103
|
/**
|
|
2155
|
-
* `<
|
|
2156
|
-
* The `qti-assessment-
|
|
2157
|
-
* The element loads the
|
|
2158
|
-
*
|
|
2159
|
-
* ### Styling
|
|
2160
|
-
* Add a class to the element for styling.
|
|
2104
|
+
* `<test-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
2105
|
+
* The `qti-assessment-test` will be placed inside the shadow DOM of this element.
|
|
2106
|
+
* The element loads the test from the provided URL and renders it inside the shadow DOM.
|
|
2161
2107
|
*
|
|
2162
2108
|
* ```html
|
|
2163
|
-
* <qti-
|
|
2164
|
-
* <
|
|
2165
|
-
* </qti-
|
|
2109
|
+
* <qti-test>
|
|
2110
|
+
* <test-container class="m-4 bg-white" test-url="./path/to/assessmenttest.xml"></test-container>
|
|
2111
|
+
* </qti-test>
|
|
2166
2112
|
* ```
|
|
2167
2113
|
* ---
|
|
2168
2114
|
*
|
|
2169
2115
|
*/
|
|
2170
|
-
"
|
|
2116
|
+
"test-container": Partial<TestContainerProps & BaseProps & BaseEvents>;
|
|
2171
2117
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<item-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
6
|
+
* The `qti-assessment-item` will be placed inside the shadow DOM of this element.
|
|
7
|
+
* The element loads the item from the provided URL and renders it inside the shadow DOM.
|
|
8
|
+
*
|
|
9
|
+
* ### Styling
|
|
10
|
+
* Add a class to the element for styling.
|
|
11
|
+
*
|
|
12
|
+
* ```html
|
|
13
|
+
* <qti-item>
|
|
14
|
+
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
15
|
+
* </qti-item>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare class ItemContainer extends LitElement {
|
|
19
|
+
/** URL of the item to load */
|
|
20
|
+
itemURL: string;
|
|
21
|
+
/** A parsed HTML document */
|
|
22
|
+
itemDoc: DocumentFragment;
|
|
23
|
+
/** The raw XML string */
|
|
24
|
+
itemXML: string;
|
|
25
|
+
/** Template content if provided */
|
|
26
|
+
private templateContent;
|
|
27
|
+
protected handleItemURLChange(): Promise<void>;
|
|
28
|
+
protected handleItemXMLChange(): void;
|
|
29
|
+
connectedCallback(): Promise<void>;
|
|
30
|
+
private initializeTemplateContent;
|
|
31
|
+
private applyStyles;
|
|
32
|
+
render(): lit_html.TemplateResult<1>;
|
|
33
|
+
}
|
|
34
|
+
declare global {
|
|
35
|
+
interface HTMLElementTagNameMap {
|
|
36
|
+
'item-container': ItemContainer;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* `<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.
|
|
42
|
+
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
43
|
+
* Placing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.
|
|
44
|
+
* See `<item-container>` for more details.
|
|
45
|
+
*
|
|
46
|
+
* ```html
|
|
47
|
+
* <qti-item>
|
|
48
|
+
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
49
|
+
* </qti-item>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare class QtiItem extends LitElement {
|
|
53
|
+
render(): lit_html.TemplateResult<1>;
|
|
54
|
+
}
|
|
55
|
+
declare global {
|
|
56
|
+
interface HTMLElementTagNameMap {
|
|
57
|
+
'qti-item': QtiItem;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { ItemContainer, QtiItem };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ItemContainer,
|
|
3
|
+
QtiItem
|
|
4
|
+
} from "../../chunk-QYN5S4EM.js";
|
|
5
|
+
import "../../chunk-2CHF3TMY.js";
|
|
6
|
+
import "../../chunk-2OA7E3E7.js";
|
|
7
|
+
import "../../chunk-4YG2FPKK.js";
|
|
8
|
+
import "../../chunk-44VE5POH.js";
|
|
9
|
+
export {
|
|
10
|
+
ItemContainer,
|
|
11
|
+
QtiItem
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|