@citolab/qti-components 6.9.1-beta.73 → 6.9.1-beta.75
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 +92 -137
- package/dist/item.css +9 -26
- package/dist/qti-components-jsx.d.ts +17 -29
- package/dist/vscode.html-custom-data.json +17 -23
- package/package.json +1 -1
|
@@ -578,143 +578,6 @@
|
|
|
578
578
|
"declarations": [],
|
|
579
579
|
"exports": []
|
|
580
580
|
},
|
|
581
|
-
{
|
|
582
|
-
"kind": "javascript-module",
|
|
583
|
-
"path": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts",
|
|
584
|
-
"declarations": [
|
|
585
|
-
{
|
|
586
|
-
"kind": "class",
|
|
587
|
-
"description": "Represents a custom element for referencing an assessment stimulus.",
|
|
588
|
-
"name": "QtiAssessmentStimulusRef",
|
|
589
|
-
"members": [
|
|
590
|
-
{
|
|
591
|
-
"kind": "field",
|
|
592
|
-
"name": "identifier",
|
|
593
|
-
"type": {
|
|
594
|
-
"text": "string"
|
|
595
|
-
},
|
|
596
|
-
"default": "''",
|
|
597
|
-
"description": "The identifier of the stimulus.",
|
|
598
|
-
"attribute": "identifier"
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"kind": "field",
|
|
602
|
-
"name": "href",
|
|
603
|
-
"type": {
|
|
604
|
-
"text": "string"
|
|
605
|
-
},
|
|
606
|
-
"default": "''",
|
|
607
|
-
"description": "The href of the stimulus.",
|
|
608
|
-
"attribute": "href"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
"kind": "method",
|
|
612
|
-
"name": "updateStimulusRef",
|
|
613
|
-
"privacy": "public",
|
|
614
|
-
"parameters": [
|
|
615
|
-
{
|
|
616
|
-
"name": "stimulusRef",
|
|
617
|
-
"type": {
|
|
618
|
-
"text": "Element"
|
|
619
|
-
},
|
|
620
|
-
"description": "The element to which the stimulus will be appended."
|
|
621
|
-
}
|
|
622
|
-
],
|
|
623
|
-
"description": "Loads and appends the stimulus to the specified element."
|
|
624
|
-
}
|
|
625
|
-
],
|
|
626
|
-
"attributes": [
|
|
627
|
-
{
|
|
628
|
-
"name": "identifier",
|
|
629
|
-
"type": {
|
|
630
|
-
"text": "string"
|
|
631
|
-
},
|
|
632
|
-
"default": "''",
|
|
633
|
-
"description": "The identifier of the stimulus.",
|
|
634
|
-
"fieldName": "identifier"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
"name": "href",
|
|
638
|
-
"type": {
|
|
639
|
-
"text": "string"
|
|
640
|
-
},
|
|
641
|
-
"default": "''",
|
|
642
|
-
"description": "The href of the stimulus.",
|
|
643
|
-
"fieldName": "href"
|
|
644
|
-
}
|
|
645
|
-
],
|
|
646
|
-
"superclass": {
|
|
647
|
-
"name": "LitElement",
|
|
648
|
-
"package": "lit"
|
|
649
|
-
},
|
|
650
|
-
"tagName": "qti-assessment-stimulus-ref",
|
|
651
|
-
"customElement": true
|
|
652
|
-
}
|
|
653
|
-
],
|
|
654
|
-
"exports": [
|
|
655
|
-
{
|
|
656
|
-
"kind": "js",
|
|
657
|
-
"name": "QtiAssessmentStimulusRef",
|
|
658
|
-
"declaration": {
|
|
659
|
-
"name": "QtiAssessmentStimulusRef",
|
|
660
|
-
"module": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts"
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
"kind": "custom-element-definition",
|
|
665
|
-
"name": "qti-assessment-stimulus-ref",
|
|
666
|
-
"declaration": {
|
|
667
|
-
"name": "QtiAssessmentStimulusRef",
|
|
668
|
-
"module": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts"
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
]
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
"kind": "javascript-module",
|
|
675
|
-
"path": "src/lib/qti-components/qti-assessment-item/item-print-variables.ts",
|
|
676
|
-
"declarations": [
|
|
677
|
-
{
|
|
678
|
-
"kind": "class",
|
|
679
|
-
"description": "",
|
|
680
|
-
"name": "ItemPrintVariables",
|
|
681
|
-
"members": [
|
|
682
|
-
{
|
|
683
|
-
"kind": "field",
|
|
684
|
-
"name": "itemContext",
|
|
685
|
-
"type": {
|
|
686
|
-
"text": "ItemContext | undefined"
|
|
687
|
-
},
|
|
688
|
-
"privacy": "public"
|
|
689
|
-
}
|
|
690
|
-
],
|
|
691
|
-
"superclass": {
|
|
692
|
-
"name": "LitElement",
|
|
693
|
-
"package": "lit"
|
|
694
|
-
},
|
|
695
|
-
"tagName": "item-print-variables",
|
|
696
|
-
"customElement": true
|
|
697
|
-
}
|
|
698
|
-
],
|
|
699
|
-
"exports": [
|
|
700
|
-
{
|
|
701
|
-
"kind": "js",
|
|
702
|
-
"name": "ItemPrintVariables",
|
|
703
|
-
"declaration": {
|
|
704
|
-
"name": "ItemPrintVariables",
|
|
705
|
-
"module": "src/lib/qti-components/qti-assessment-item/item-print-variables.ts"
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
"kind": "custom-element-definition",
|
|
710
|
-
"name": "item-print-variables",
|
|
711
|
-
"declaration": {
|
|
712
|
-
"name": "ItemPrintVariables",
|
|
713
|
-
"module": "src/lib/qti-components/qti-assessment-item/item-print-variables.ts"
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
]
|
|
717
|
-
},
|
|
718
581
|
{
|
|
719
582
|
"kind": "javascript-module",
|
|
720
583
|
"path": "src/lib/qti-components/qti-assessment-item/qti-assessment-item.context.ts",
|
|
@@ -1133,6 +996,98 @@
|
|
|
1133
996
|
}
|
|
1134
997
|
]
|
|
1135
998
|
},
|
|
999
|
+
{
|
|
1000
|
+
"kind": "javascript-module",
|
|
1001
|
+
"path": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts",
|
|
1002
|
+
"declarations": [
|
|
1003
|
+
{
|
|
1004
|
+
"kind": "class",
|
|
1005
|
+
"description": "Represents a custom element for referencing an assessment stimulus.",
|
|
1006
|
+
"name": "QtiAssessmentStimulusRef",
|
|
1007
|
+
"members": [
|
|
1008
|
+
{
|
|
1009
|
+
"kind": "field",
|
|
1010
|
+
"name": "identifier",
|
|
1011
|
+
"type": {
|
|
1012
|
+
"text": "string"
|
|
1013
|
+
},
|
|
1014
|
+
"default": "''",
|
|
1015
|
+
"description": "The identifier of the stimulus.",
|
|
1016
|
+
"attribute": "identifier"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"kind": "field",
|
|
1020
|
+
"name": "href",
|
|
1021
|
+
"type": {
|
|
1022
|
+
"text": "string"
|
|
1023
|
+
},
|
|
1024
|
+
"default": "''",
|
|
1025
|
+
"description": "The href of the stimulus.",
|
|
1026
|
+
"attribute": "href"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"kind": "method",
|
|
1030
|
+
"name": "updateStimulusRef",
|
|
1031
|
+
"privacy": "public",
|
|
1032
|
+
"parameters": [
|
|
1033
|
+
{
|
|
1034
|
+
"name": "stimulusRef",
|
|
1035
|
+
"type": {
|
|
1036
|
+
"text": "Element"
|
|
1037
|
+
},
|
|
1038
|
+
"description": "The element to which the stimulus will be appended."
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"description": "Loads and appends the stimulus to the specified element."
|
|
1042
|
+
}
|
|
1043
|
+
],
|
|
1044
|
+
"attributes": [
|
|
1045
|
+
{
|
|
1046
|
+
"name": "identifier",
|
|
1047
|
+
"type": {
|
|
1048
|
+
"text": "string"
|
|
1049
|
+
},
|
|
1050
|
+
"default": "''",
|
|
1051
|
+
"description": "The identifier of the stimulus.",
|
|
1052
|
+
"fieldName": "identifier"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "href",
|
|
1056
|
+
"type": {
|
|
1057
|
+
"text": "string"
|
|
1058
|
+
},
|
|
1059
|
+
"default": "''",
|
|
1060
|
+
"description": "The href of the stimulus.",
|
|
1061
|
+
"fieldName": "href"
|
|
1062
|
+
}
|
|
1063
|
+
],
|
|
1064
|
+
"superclass": {
|
|
1065
|
+
"name": "LitElement",
|
|
1066
|
+
"package": "lit"
|
|
1067
|
+
},
|
|
1068
|
+
"tagName": "qti-assessment-stimulus-ref",
|
|
1069
|
+
"customElement": true
|
|
1070
|
+
}
|
|
1071
|
+
],
|
|
1072
|
+
"exports": [
|
|
1073
|
+
{
|
|
1074
|
+
"kind": "js",
|
|
1075
|
+
"name": "QtiAssessmentStimulusRef",
|
|
1076
|
+
"declaration": {
|
|
1077
|
+
"name": "QtiAssessmentStimulusRef",
|
|
1078
|
+
"module": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"kind": "custom-element-definition",
|
|
1083
|
+
"name": "qti-assessment-stimulus-ref",
|
|
1084
|
+
"declaration": {
|
|
1085
|
+
"name": "QtiAssessmentStimulusRef",
|
|
1086
|
+
"module": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts"
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
]
|
|
1090
|
+
},
|
|
1136
1091
|
{
|
|
1137
1092
|
"kind": "javascript-module",
|
|
1138
1093
|
"path": "src/lib/qti-components/qti-companion-materials-info/qti-companion-materials-info.ts",
|
package/dist/item.css
CHANGED
|
@@ -1929,22 +1929,6 @@ qti-response-declaration {
|
|
|
1929
1929
|
box-sizing: inherit;
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
|
-
[popover] {
|
|
1933
|
-
position: fixed;
|
|
1934
|
-
inset: 0;
|
|
1935
|
-
margin: auto;
|
|
1936
|
-
border: solid;
|
|
1937
|
-
padding: 0.25em;
|
|
1938
|
-
overflow: auto;
|
|
1939
|
-
color: CanvasText;
|
|
1940
|
-
background-color: Canvas;
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
[popovertarget] {
|
|
1944
|
-
all: unset;
|
|
1945
|
-
cursor: pointer;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
1932
|
/* components */
|
|
1949
1933
|
|
|
1950
1934
|
@layer qti-components {
|
|
@@ -2101,6 +2085,15 @@ qti-response-declaration {
|
|
|
2101
2085
|
}
|
|
2102
2086
|
}
|
|
2103
2087
|
|
|
2088
|
+
qti-graphic-gap-match-interaction {
|
|
2089
|
+
position: relative;
|
|
2090
|
+
|
|
2091
|
+
& img {
|
|
2092
|
+
margin: 0;
|
|
2093
|
+
padding: 0;
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2104
2097
|
qti-text-entry-interaction {
|
|
2105
2098
|
&::part(input) {
|
|
2106
2099
|
border-radius: 0;
|
|
@@ -3106,15 +3099,6 @@ qti-response-declaration {
|
|
|
3106
3099
|
}
|
|
3107
3100
|
}
|
|
3108
3101
|
|
|
3109
|
-
qti-graphic-gap-match-interaction {
|
|
3110
|
-
position: relative;
|
|
3111
|
-
|
|
3112
|
-
&img {
|
|
3113
|
-
margin: 0;
|
|
3114
|
-
padding: 0;
|
|
3115
|
-
}
|
|
3116
|
-
}
|
|
3117
|
-
|
|
3118
3102
|
qti-slider-interaction {
|
|
3119
3103
|
display: block;
|
|
3120
3104
|
|
|
@@ -3226,4 +3210,3 @@ qti-response-declaration {
|
|
|
3226
3210
|
width: 100%;
|
|
3227
3211
|
}
|
|
3228
3212
|
}
|
|
3229
|
-
|
|
@@ -60,18 +60,6 @@ type BaseProps = {
|
|
|
60
60
|
|
|
61
61
|
type BaseEvents = {};
|
|
62
62
|
|
|
63
|
-
export type QtiAssessmentStimulusRefProps = {
|
|
64
|
-
/** The identifier of the stimulus. */
|
|
65
|
-
identifier?: string;
|
|
66
|
-
/** The href of the stimulus. */
|
|
67
|
-
href?: string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export type ItemPrintVariablesProps = {
|
|
71
|
-
/** */
|
|
72
|
-
itemContext?: ItemContext | undefined;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
63
|
export type QtiAssessmentItemProps = {
|
|
76
64
|
/** */
|
|
77
65
|
title?: string;
|
|
@@ -103,6 +91,13 @@ export type QtiAssessmentItemProps = {
|
|
|
103
91
|
"onqti-response-processing"?: (e: CustomEvent<never>) => void;
|
|
104
92
|
};
|
|
105
93
|
|
|
94
|
+
export type QtiAssessmentStimulusRefProps = {
|
|
95
|
+
/** The identifier of the stimulus. */
|
|
96
|
+
identifier?: string;
|
|
97
|
+
/** The href of the stimulus. */
|
|
98
|
+
href?: string;
|
|
99
|
+
};
|
|
100
|
+
|
|
106
101
|
export type QtiCompanionMaterialsInfoProps = {};
|
|
107
102
|
|
|
108
103
|
export type QtiCustomOperatorProps = {
|
|
@@ -1104,23 +1099,6 @@ export type QtiItemProps = {
|
|
|
1104
1099
|
};
|
|
1105
1100
|
|
|
1106
1101
|
export type CustomElements = {
|
|
1107
|
-
/**
|
|
1108
|
-
* Represents a custom element for referencing an assessment stimulus.
|
|
1109
|
-
* ---
|
|
1110
|
-
*
|
|
1111
|
-
*
|
|
1112
|
-
* ### **Methods:**
|
|
1113
|
-
* - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.
|
|
1114
|
-
*/
|
|
1115
|
-
"qti-assessment-stimulus-ref": Partial<QtiAssessmentStimulusRefProps & BaseProps & BaseEvents>;
|
|
1116
|
-
|
|
1117
|
-
/**
|
|
1118
|
-
*
|
|
1119
|
-
* ---
|
|
1120
|
-
*
|
|
1121
|
-
*/
|
|
1122
|
-
"item-print-variables": Partial<ItemPrintVariablesProps & BaseProps & BaseEvents>;
|
|
1123
|
-
|
|
1124
1102
|
/**
|
|
1125
1103
|
* The qti-assessment-item element contains all the other QTI 3 item structures.
|
|
1126
1104
|
* ---
|
|
@@ -1137,6 +1115,16 @@ export type CustomElements = {
|
|
|
1137
1115
|
*/
|
|
1138
1116
|
"qti-assessment-item": Partial<QtiAssessmentItemProps & BaseProps & BaseEvents>;
|
|
1139
1117
|
|
|
1118
|
+
/**
|
|
1119
|
+
* Represents a custom element for referencing an assessment stimulus.
|
|
1120
|
+
* ---
|
|
1121
|
+
*
|
|
1122
|
+
*
|
|
1123
|
+
* ### **Methods:**
|
|
1124
|
+
* - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.
|
|
1125
|
+
*/
|
|
1126
|
+
"qti-assessment-stimulus-ref": Partial<QtiAssessmentStimulusRefProps & BaseProps & BaseEvents>;
|
|
1127
|
+
|
|
1140
1128
|
/**
|
|
1141
1129
|
*
|
|
1142
1130
|
* ---
|
|
@@ -2,29 +2,6 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"tags": [
|
|
5
|
-
{
|
|
6
|
-
"name": "qti-assessment-stimulus-ref",
|
|
7
|
-
"description": "Represents a custom element for referencing an assessment stimulus.\n---\n\n\n### **Methods:**\n - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.",
|
|
8
|
-
"attributes": [
|
|
9
|
-
{
|
|
10
|
-
"name": "identifier",
|
|
11
|
-
"description": "The identifier of the stimulus.",
|
|
12
|
-
"values": []
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "href",
|
|
16
|
-
"description": "The href of the stimulus.",
|
|
17
|
-
"values": []
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"references": []
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "item-print-variables",
|
|
24
|
-
"description": "\n---\n",
|
|
25
|
-
"attributes": [],
|
|
26
|
-
"references": []
|
|
27
|
-
},
|
|
28
5
|
{
|
|
29
6
|
"name": "qti-assessment-item",
|
|
30
7
|
"description": "The qti-assessment-item element contains all the other QTI 3 item structures.\n---\n\n\n### **Events:**\n - **name**\n- **qti-interaction-changed** - Emitted when an interaction is changed.\n- **qti-outcome-changed** - Emitted when an outcome has changed.\n- **qti-response-processing** - Emitted when response-processing is called.\n\n### **Slots:**\n - _default_ - The default slot where all the other QTI 3 item structures go.",
|
|
@@ -44,6 +21,23 @@
|
|
|
44
21
|
],
|
|
45
22
|
"references": []
|
|
46
23
|
},
|
|
24
|
+
{
|
|
25
|
+
"name": "qti-assessment-stimulus-ref",
|
|
26
|
+
"description": "Represents a custom element for referencing an assessment stimulus.\n---\n\n\n### **Methods:**\n - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.",
|
|
27
|
+
"attributes": [
|
|
28
|
+
{
|
|
29
|
+
"name": "identifier",
|
|
30
|
+
"description": "The identifier of the stimulus.",
|
|
31
|
+
"values": []
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "href",
|
|
35
|
+
"description": "The href of the stimulus.",
|
|
36
|
+
"values": []
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"references": []
|
|
40
|
+
},
|
|
47
41
|
{
|
|
48
42
|
"name": "qti-companion-materials-info",
|
|
49
43
|
"description": "\n---\n",
|