@citolab/qti-components 7.0.1 → 7.0.2
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/index.global.js +1 -1
- package/cdn/{index.min.js → index.js} +378 -186
- package/dist/custom-elements.json +27088 -0
- package/dist/{qti-test/index.d.ts → index.d.ts} +163 -2
- package/dist/index.js +13601 -0
- package/dist/index.js.map +1 -0
- package/dist/item.css +223 -32
- package/dist/{qti-loader → loader}/index.d.ts +1 -1
- package/dist/qti-components-jsx.d.ts +29 -25
- package/dist/{qti-simple-choice-CynLWb8d.d.cts → qti-simple-choice-DG8ImdPz.d.ts} +2 -2
- package/dist/vscode.html-custom-data.json +12 -9
- package/package.json +40 -59
- package/cdn/index.min.cjs +0 -4489
- package/dist/qti-components/index.cjs +0 -6704
- package/dist/qti-components/index.cjs.map +0 -1
- package/dist/qti-components/index.d.cts +0 -150
- package/dist/qti-components/index.d.ts +0 -150
- package/dist/qti-components/index.js +0 -6593
- package/dist/qti-components/index.js.map +0 -1
- package/dist/qti-item/index.cjs +0 -89
- package/dist/qti-item/index.cjs.map +0 -1
- package/dist/qti-item/index.d.cts +0 -24
- package/dist/qti-item/index.d.ts +0 -24
- package/dist/qti-item/index.js +0 -65
- package/dist/qti-item/index.js.map +0 -1
- package/dist/qti-loader/index.cjs +0 -332
- package/dist/qti-loader/index.cjs.map +0 -1
- package/dist/qti-loader/index.d.cts +0 -20
- package/dist/qti-simple-choice-CynLWb8d.d.ts +0 -1185
- package/dist/qti-test/index.cjs +0 -4632
- package/dist/qti-test/index.cjs.map +0 -1
- package/dist/qti-test/index.d.cts +0 -304
- package/dist/qti-test/index.js +0 -4599
- package/dist/qti-test/index.js.map +0 -1
- package/dist/qti-transformers/index.cjs +0 -316
- package/dist/qti-transformers/index.cjs.map +0 -1
- package/dist/qti-transformers/index.d.cts +0 -75
- /package/dist/{qti-loader → loader}/index.js +0 -0
- /package/dist/{qti-loader → loader}/index.js.map +0 -0
- /package/dist/{qti-transformers → transformers}/index.d.ts +0 -0
- /package/dist/{qti-transformers → transformers}/index.js +0 -0
- /package/dist/{qti-transformers → transformers}/index.js.map +0 -0
package/dist/item.css
CHANGED
|
@@ -2093,37 +2093,44 @@ qti-response-declaration {
|
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
2095
|
|
|
2096
|
-
|
|
2097
|
-
border
|
|
2098
|
-
background-color: var(--qti-bg-active);
|
|
2096
|
+
.hover-border {
|
|
2097
|
+
border: 2px solid #000; /* Adjust the border style and color as needed */
|
|
2099
2098
|
}
|
|
2100
2099
|
|
|
2101
|
-
qti-graphic-gap-match-interaction
|
|
2102
|
-
|
|
2103
|
-
}
|
|
2100
|
+
qti-graphic-gap-match-interaction {
|
|
2101
|
+
position: relative;
|
|
2104
2102
|
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2103
|
+
&.qti-selections-light {
|
|
2104
|
+
&:state(--dragzone-active)::part(drags) {
|
|
2105
|
+
background-color: var(--qti-light-bg-active);
|
|
2106
|
+
border-color: var(--qti-light-border-active);
|
|
2107
|
+
}
|
|
2110
2108
|
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2109
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
2110
|
+
background-color: var(--qti-light-bg-active);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2115
2113
|
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2114
|
+
&.qti-selections-dark {
|
|
2115
|
+
&:state(--dragzone-active)::part(drags) {
|
|
2116
|
+
background-color: var(--qti-dark-bg-active);
|
|
2117
|
+
border-color: var(--qti-dark-border-active);
|
|
2118
|
+
}
|
|
2120
2119
|
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2120
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
2121
|
+
background-color: var(--qti-dark-bg-active);
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
2124
|
|
|
2125
|
-
|
|
2126
|
-
|
|
2125
|
+
/* General styles for active and enabled states */
|
|
2126
|
+
&:state(--dragzone-active)::part(drags) {
|
|
2127
|
+
border-color: var(--qti-border-active);
|
|
2128
|
+
background-color: var(--qti-bg-active);
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
2132
|
+
background-color: var(--qti-bg-active);
|
|
2133
|
+
}
|
|
2127
2134
|
|
|
2128
2135
|
& qti-gap-img,
|
|
2129
2136
|
qti-gap-text {
|
|
@@ -2254,16 +2261,39 @@ qti-response-declaration {
|
|
|
2254
2261
|
}
|
|
2255
2262
|
}
|
|
2256
2263
|
|
|
2257
|
-
qti-gap-match-interaction
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2264
|
+
qti-gap-match-interaction {
|
|
2265
|
+
&.qti-selections-light {
|
|
2266
|
+
&:state(--dragzone-active)::part(drags) {
|
|
2267
|
+
background-color: var(--qti-light-bg-active);
|
|
2268
|
+
border-color: var(--qti-light-border-active);
|
|
2269
|
+
}
|
|
2261
2270
|
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2271
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
2272
|
+
background-color: var(--qti-light-bg-active);
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
&.qti-selections-dark {
|
|
2277
|
+
&:state(--dragzone-active)::part(drags) {
|
|
2278
|
+
background-color: var(--qti-dark-bg-active);
|
|
2279
|
+
border-color: var(--qti-dark-border-active);
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
2283
|
+
background-color: var(--qti-dark-bg-active);
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
/* General styles for active and enabled states */
|
|
2288
|
+
&:state(--dragzone-active)::part(drags) {
|
|
2289
|
+
border-color: var(--qti-border-active);
|
|
2290
|
+
background-color: var(--qti-bg-active);
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
2294
|
+
background-color: var(--qti-bg-active);
|
|
2295
|
+
}
|
|
2265
2296
|
|
|
2266
|
-
qti-gap-match-interaction {
|
|
2267
2297
|
& qti-gap-text {
|
|
2268
2298
|
|
|
2269
2299
|
&[dragging] {
|
|
@@ -2919,6 +2949,15 @@ qti-response-declaration {
|
|
|
2919
2949
|
}
|
|
2920
2950
|
}
|
|
2921
2951
|
|
|
2952
|
+
qti-order-interaction:state(--dragzone-active)::part(drags) {
|
|
2953
|
+
border-color: var(--qti-border-active);
|
|
2954
|
+
background-color: var(--qti-bg-active);
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
qti-order-interaction:state(--dragzone-enabled)::part(drags) {
|
|
2958
|
+
background-color: var(--qti-bg-active);
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2922
2961
|
qti-order-interaction {
|
|
2923
2962
|
&::part(qti-simple-choice),
|
|
2924
2963
|
& qti-simple-choice {
|
|
@@ -3026,6 +3065,94 @@ qti-response-declaration {
|
|
|
3026
3065
|
border-color: var(--qti-border-active);
|
|
3027
3066
|
background-color: var(--qti-bg-active);
|
|
3028
3067
|
}
|
|
3068
|
+
|
|
3069
|
+
& drop-list {
|
|
3070
|
+
&[shape='circle'] {
|
|
3071
|
+
|
|
3072
|
+
&:hover {
|
|
3073
|
+
background-color: var(--qti-hover-bg);
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
&:focus {
|
|
3077
|
+
box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
&[aria-checked='true'] {
|
|
3081
|
+
border-color: var(--qti-border-active);
|
|
3082
|
+
background-color: var(--qti-bg-active);
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
&[aria-readonly='true'] {
|
|
3086
|
+
cursor: pointer;
|
|
3087
|
+
background-color: var(--qti-bg);
|
|
3088
|
+
outline: 0;
|
|
3089
|
+
border: none;
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
&[aria-disabled='true'] {
|
|
3093
|
+
cursor: not-allowed;
|
|
3094
|
+
background-color: var(--qti-disabled-bg);
|
|
3095
|
+
color: var(--qti-disabled-color);
|
|
3096
|
+
border-color: var(--qti-border-color);
|
|
3097
|
+
outline: 4px solid var(--qti-disabled-bg);
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
width: 100%;
|
|
3101
|
+
|
|
3102
|
+
height: 100%;
|
|
3103
|
+
|
|
3104
|
+
background-color: transparent;
|
|
3105
|
+
|
|
3106
|
+
padding: 0;
|
|
3107
|
+
|
|
3108
|
+
border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
|
|
3109
|
+
|
|
3110
|
+
outline: none
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
&[shape='square'] {
|
|
3114
|
+
|
|
3115
|
+
&:hover {
|
|
3116
|
+
background-color: var(--qti-hover-bg);
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
&:focus {
|
|
3120
|
+
box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
&[aria-checked='true'] {
|
|
3124
|
+
border-color: var(--qti-border-active);
|
|
3125
|
+
background-color: var(--qti-bg-active);
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
&[aria-readonly='true'] {
|
|
3129
|
+
cursor: pointer;
|
|
3130
|
+
background-color: var(--qti-bg);
|
|
3131
|
+
outline: 0;
|
|
3132
|
+
border: none;
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
&[aria-disabled='true'] {
|
|
3136
|
+
cursor: not-allowed;
|
|
3137
|
+
background-color: var(--qti-disabled-bg);
|
|
3138
|
+
color: var(--qti-disabled-color);
|
|
3139
|
+
border-color: var(--qti-border-color);
|
|
3140
|
+
outline: 4px solid var(--qti-disabled-bg);
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
width: 100%;
|
|
3144
|
+
|
|
3145
|
+
height: 100%;
|
|
3146
|
+
|
|
3147
|
+
background-color: transparent;
|
|
3148
|
+
|
|
3149
|
+
padding: 0;
|
|
3150
|
+
|
|
3151
|
+
border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
|
|
3152
|
+
|
|
3153
|
+
outline: none
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
3029
3156
|
}
|
|
3030
3157
|
|
|
3031
3158
|
qti-associate-interaction {
|
|
@@ -3171,6 +3298,38 @@ qti-response-declaration {
|
|
|
3171
3298
|
|
|
3172
3299
|
outline: none
|
|
3173
3300
|
}
|
|
3301
|
+
|
|
3302
|
+
&.qti-selections-light {
|
|
3303
|
+
&:state(--dragzone-active)::part(drags) {
|
|
3304
|
+
background-color: var(--qti-light-bg-active);
|
|
3305
|
+
border-color: var(--qti-light-border-active);
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
3309
|
+
background-color: var(--qti-light-bg-active);
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
&.qti-selections-dark {
|
|
3314
|
+
&:state(--dragzone-active)::part(drags) {
|
|
3315
|
+
background-color: var(--qti-dark-bg-active);
|
|
3316
|
+
border-color: var(--qti-dark-border-active);
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
3320
|
+
background-color: var(--qti-dark-bg-active);
|
|
3321
|
+
}
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3324
|
+
/* General styles for active and enabled states */
|
|
3325
|
+
&:state(--dragzone-active)::part(drags) {
|
|
3326
|
+
border-color: var(--qti-border-active);
|
|
3327
|
+
background-color: var(--qti-bg-active);
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
3331
|
+
background-color: var(--qti-bg-active);
|
|
3332
|
+
}
|
|
3174
3333
|
}
|
|
3175
3334
|
|
|
3176
3335
|
qti-graphic-associate-interaction {
|
|
@@ -3264,6 +3423,38 @@ qti-response-declaration {
|
|
|
3264
3423
|
outline: none
|
|
3265
3424
|
}
|
|
3266
3425
|
}
|
|
3426
|
+
|
|
3427
|
+
&.qti-selections-light {
|
|
3428
|
+
&:state(--dragzone-active)::part(drags) {
|
|
3429
|
+
background-color: var(--qti-light-bg-active);
|
|
3430
|
+
border-color: var(--qti-light-border-active);
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
3434
|
+
background-color: var(--qti-light-bg-active);
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
|
|
3438
|
+
&.qti-selections-dark {
|
|
3439
|
+
&:state(--dragzone-active)::part(drags) {
|
|
3440
|
+
background-color: var(--qti-dark-bg-active);
|
|
3441
|
+
border-color: var(--qti-dark-border-active);
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
3445
|
+
background-color: var(--qti-dark-bg-active);
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
/* General styles for active and enabled states */
|
|
3450
|
+
&:state(--dragzone-active)::part(drags) {
|
|
3451
|
+
border-color: var(--qti-border-active);
|
|
3452
|
+
background-color: var(--qti-bg-active);
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
&:state(--dragzone-enabled)::part(drags) {
|
|
3456
|
+
background-color: var(--qti-bg-active);
|
|
3457
|
+
}
|
|
3267
3458
|
}
|
|
3268
3459
|
|
|
3269
3460
|
qti-slider-interaction {
|
|
@@ -1003,6 +1003,8 @@ export type QtiInlineChoiceProps = {
|
|
|
1003
1003
|
};
|
|
1004
1004
|
|
|
1005
1005
|
export type TestElementProps = {
|
|
1006
|
+
/** */
|
|
1007
|
+
class?: string;
|
|
1006
1008
|
/** <span style="color:blue">some *blue* text</span>. Does not work in storybook */
|
|
1007
1009
|
shuffle?: "true" | "false";
|
|
1008
1010
|
/** */
|
|
@@ -1022,6 +1024,8 @@ export type TestElementProps = {
|
|
|
1022
1024
|
};
|
|
1023
1025
|
|
|
1024
1026
|
export type TestElementProps = {
|
|
1027
|
+
/** */
|
|
1028
|
+
class?: string;
|
|
1025
1029
|
/** <span style="color:blue">some *blue* text</span>. Does not work in storybook */
|
|
1026
1030
|
shuffle?: "true" | "false";
|
|
1027
1031
|
/** */
|
|
@@ -1031,8 +1035,6 @@ export type TestElementProps = {
|
|
|
1031
1035
|
/** */
|
|
1032
1036
|
readonly?: boolean;
|
|
1033
1037
|
/** */
|
|
1034
|
-
class?: string;
|
|
1035
|
-
/** */
|
|
1036
1038
|
value?: string | string[];
|
|
1037
1039
|
/** */
|
|
1038
1040
|
correctResponse?: string | string[];
|
|
@@ -1043,6 +1045,8 @@ export type TestElementProps = {
|
|
|
1043
1045
|
};
|
|
1044
1046
|
|
|
1045
1047
|
export type TestElementProps = {
|
|
1048
|
+
/** */
|
|
1049
|
+
class?: string;
|
|
1046
1050
|
/** <span style="color:blue">some *blue* text</span>. Does not work in storybook */
|
|
1047
1051
|
shuffle?: "true" | "false";
|
|
1048
1052
|
/** */
|
|
@@ -1061,19 +1065,6 @@ export type TestElementProps = {
|
|
|
1061
1065
|
"onqti-interaction-response"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1062
1066
|
};
|
|
1063
1067
|
|
|
1064
|
-
export type QtiItemProps = {
|
|
1065
|
-
/** */
|
|
1066
|
-
identifier?: string | undefined;
|
|
1067
|
-
/** */
|
|
1068
|
-
href?: string | undefined;
|
|
1069
|
-
/** */
|
|
1070
|
-
xmlDoc?: DocumentFragment;
|
|
1071
|
-
/** */
|
|
1072
|
-
assessmentItem?: QtiAssessmentItem | null;
|
|
1073
|
-
/** */
|
|
1074
|
-
"onqti-item-connected"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1075
|
-
};
|
|
1076
|
-
|
|
1077
1068
|
export type QtiAssessmentItemRefProps = {
|
|
1078
1069
|
/** */
|
|
1079
1070
|
category?: string | undefined;
|
|
@@ -1242,6 +1233,19 @@ export type TestPagingButtonsStampProps = {
|
|
|
1242
1233
|
"onqti-request-test-item"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1243
1234
|
};
|
|
1244
1235
|
|
|
1236
|
+
export type QtiItemProps = {
|
|
1237
|
+
/** */
|
|
1238
|
+
identifier?: string | undefined;
|
|
1239
|
+
/** */
|
|
1240
|
+
href?: string | undefined;
|
|
1241
|
+
/** */
|
|
1242
|
+
xmlDoc?: DocumentFragment;
|
|
1243
|
+
/** */
|
|
1244
|
+
assessmentItem?: QtiAssessmentItem | null;
|
|
1245
|
+
/** */
|
|
1246
|
+
"onqti-item-connected"?: (e: CustomEvent<CustomEvent>) => void;
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1245
1249
|
export type CustomElements = {
|
|
1246
1250
|
/**
|
|
1247
1251
|
*
|
|
@@ -2013,16 +2017,6 @@ export type CustomElements = {
|
|
|
2013
2017
|
*/
|
|
2014
2018
|
"test-element": Partial<TestElementProps & BaseProps & BaseEvents>;
|
|
2015
2019
|
|
|
2016
|
-
/**
|
|
2017
|
-
*
|
|
2018
|
-
* ---
|
|
2019
|
-
*
|
|
2020
|
-
*
|
|
2021
|
-
* ### **Events:**
|
|
2022
|
-
* - **qti-item-connected**
|
|
2023
|
-
*/
|
|
2024
|
-
"qti-item": Partial<QtiItemProps & BaseProps & BaseEvents>;
|
|
2025
|
-
|
|
2026
2020
|
/**
|
|
2027
2021
|
*
|
|
2028
2022
|
* ---
|
|
@@ -2167,4 +2161,14 @@ export type CustomElements = {
|
|
|
2167
2161
|
* - **qti-request-test-item**
|
|
2168
2162
|
*/
|
|
2169
2163
|
"test-paging-buttons-stamp": Partial<TestPagingButtonsStampProps & BaseProps & BaseEvents>;
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
*
|
|
2167
|
+
* ---
|
|
2168
|
+
*
|
|
2169
|
+
*
|
|
2170
|
+
* ### **Events:**
|
|
2171
|
+
* - **qti-item-connected**
|
|
2172
|
+
*/
|
|
2173
|
+
"qti-item": Partial<QtiItemProps & BaseProps & BaseEvents>;
|
|
2170
2174
|
};
|
|
@@ -940,13 +940,13 @@ declare global {
|
|
|
940
940
|
|
|
941
941
|
declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
942
942
|
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
943
|
+
static styles: lit.CSSResult;
|
|
943
944
|
childrenMap: Element[];
|
|
944
945
|
nrChoices: number;
|
|
945
946
|
correctResponses: string[];
|
|
946
947
|
showCorrectResponses: boolean;
|
|
947
948
|
/** orientation of choices */
|
|
948
949
|
orientation: 'horizontal' | 'vertical';
|
|
949
|
-
static styles: lit.CSSResult[];
|
|
950
950
|
render(): lit_html.TemplateResult<1>;
|
|
951
951
|
set correctResponse(value: string | string[]);
|
|
952
952
|
protected getResponse(): string[];
|
|
@@ -1182,4 +1182,4 @@ declare global {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
-
export { qtiSubtractMixin as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiRubricBlock as D, QtiFeedbackBlock as E, QtiFeedbackInline as F, QtiModalFeedback as G, QtiExtendedTextInteraction as H, type ItemContext as I, QtiTextEntryInteraction as J, QtiHottextInteraction as K, QtiInlineChoiceInteraction as L, type Multiple as M, type Orientation as N, type OutcomeChangedDetails as O, QtiChoiceInteraction as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessing as S, QtiOutcomeProcessingProcessor as T, QtiResponseProcessing as U, type VariableDeclaration as V, QtiLookupOutcomeValue as W, QtiAnd as X, qtiAndMixin as Y, QtiMapping as Z, QtiSubtract as _, type QtiRuleBase as a, QtiPortableCustomInteraction as a0, QtiAssociateInteraction as a1, QtiCustomInteraction as a2, QtiEndAttemptInteraction as a3, QtiGapMatchInteraction as a4, QtiGraphicAssociateInteraction as a5, QtiGraphicGapMatchInteraction as a6, QtiGraphicOrderInteraction as a7, QtiHotspotInteraction as a8, QtiMatchInteraction as a9, QtiMediaInteraction as aa, QtiOrderInteraction as ab, QtiPositionObjectStage as ac, QtiSelectPointInteraction as ad, QtiSliderInteraction as ae, itemContextVariables as af, itemContext as ag, QtiCustomOperator as ah, Interaction as ai, QtiAssociableHotspot as aj, QtiGap as ak, QtiGapImg as al, QtiGapText as am, QtiHotspotChoice as an, QtiHottext as ao, QtiInlineChoice as ap, QtiSimpleAssociableChoice as aq, QtiSimpleChoice as ar, type QtiExpressionBase as b, QtiExpression as c, QtiConditionExpression as d,
|
|
1185
|
+
export { qtiSubtractMixin as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiRubricBlock as D, QtiFeedbackBlock as E, QtiFeedbackInline as F, QtiModalFeedback as G, QtiExtendedTextInteraction as H, type ItemContext as I, QtiTextEntryInteraction as J, QtiHottextInteraction as K, QtiInlineChoiceInteraction as L, type Multiple as M, type Orientation as N, type OutcomeChangedDetails as O, QtiChoiceInteraction as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessing as S, QtiOutcomeProcessingProcessor as T, QtiResponseProcessing as U, type VariableDeclaration as V, QtiLookupOutcomeValue as W, QtiAnd as X, qtiAndMixin as Y, QtiMapping as Z, QtiSubtract as _, type QtiRuleBase as a, QtiPortableCustomInteraction as a0, QtiAssociateInteraction as a1, QtiCustomInteraction as a2, QtiEndAttemptInteraction as a3, QtiGapMatchInteraction as a4, QtiGraphicAssociateInteraction as a5, QtiGraphicGapMatchInteraction as a6, QtiGraphicOrderInteraction as a7, QtiHotspotInteraction as a8, QtiMatchInteraction as a9, QtiMediaInteraction as aa, QtiOrderInteraction as ab, QtiPositionObjectStage as ac, QtiSelectPointInteraction as ad, QtiSliderInteraction as ae, itemContextVariables as af, itemContext as ag, QtiCustomOperator as ah, Interaction as ai, QtiAssociableHotspot as aj, QtiGap as ak, QtiGapImg as al, QtiGapText as am, QtiHotspotChoice as an, QtiHottext as ao, QtiInlineChoice as ap, QtiSimpleAssociableChoice as aq, QtiSimpleChoice as ar, type QtiExpressionBase as b, QtiExpression as c, QtiConditionExpression as d, QtiAssessmentItem as e, type InteractionChangedDetails as f, type QtiInteractionChanged as g, type QtiOutcomeChanged as h, type directedPair as i, type ResponseInteraction as j, type float as k, type integer as l, type Ordered as m, type Cardinality as n, type VariableValue as o, type OutcomeVariable as p, QtiAssessmentStimulusRef as q, type ChoiceInterface as r, ActiveElementMixin as s, QtiItemBody as t, QtiPrompt as u, QtiStylesheet as v, QtiOutcomeDeclaration as w, QtiResponseDeclaration as x, QtiCompanionMaterialsInfo as y, QtiContentBody as z };
|
|
@@ -754,6 +754,7 @@
|
|
|
754
754
|
"name": "test-element",
|
|
755
755
|
"description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
|
|
756
756
|
"attributes": [
|
|
757
|
+
{ "name": "class", "values": [] },
|
|
757
758
|
{
|
|
758
759
|
"name": "shuffle",
|
|
759
760
|
"description": "<span style=\"color:blue\">some *blue* text</span>. Does not work in storybook",
|
|
@@ -769,6 +770,7 @@
|
|
|
769
770
|
"name": "test-element",
|
|
770
771
|
"description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
|
|
771
772
|
"attributes": [
|
|
773
|
+
{ "name": "class", "values": [] },
|
|
772
774
|
{
|
|
773
775
|
"name": "shuffle",
|
|
774
776
|
"description": "<span style=\"color:blue\">some *blue* text</span>. Does not work in storybook",
|
|
@@ -784,6 +786,7 @@
|
|
|
784
786
|
"name": "test-element",
|
|
785
787
|
"description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
|
|
786
788
|
"attributes": [
|
|
789
|
+
{ "name": "class", "values": [] },
|
|
787
790
|
{
|
|
788
791
|
"name": "shuffle",
|
|
789
792
|
"description": "<span style=\"color:blue\">some *blue* text</span>. Does not work in storybook",
|
|
@@ -795,15 +798,6 @@
|
|
|
795
798
|
],
|
|
796
799
|
"references": []
|
|
797
800
|
},
|
|
798
|
-
{
|
|
799
|
-
"name": "qti-item",
|
|
800
|
-
"description": "\n---\n\n\n### **Events:**\n - **qti-item-connected**",
|
|
801
|
-
"attributes": [
|
|
802
|
-
{ "name": "identifier", "values": [] },
|
|
803
|
-
{ "name": "href", "values": [] }
|
|
804
|
-
],
|
|
805
|
-
"references": []
|
|
806
|
-
},
|
|
807
801
|
{
|
|
808
802
|
"name": "qti-assessment-item-ref",
|
|
809
803
|
"description": "\n---\n\n\n### **Events:**\n - **qti-assessment-item-ref-connected**",
|
|
@@ -909,6 +903,15 @@
|
|
|
909
903
|
{ "name": "skip-on-category", "values": [] }
|
|
910
904
|
],
|
|
911
905
|
"references": []
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"name": "qti-item",
|
|
909
|
+
"description": "\n---\n\n\n### **Events:**\n - **qti-item-connected**",
|
|
910
|
+
"attributes": [
|
|
911
|
+
{ "name": "identifier", "values": [] },
|
|
912
|
+
{ "name": "href", "values": [] }
|
|
913
|
+
],
|
|
914
|
+
"references": []
|
|
912
915
|
}
|
|
913
916
|
]
|
|
914
917
|
}
|
package/package.json
CHANGED
|
@@ -21,51 +21,34 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20.0.0"
|
|
23
23
|
},
|
|
24
|
-
"version": "7.0.
|
|
24
|
+
"version": "7.0.2",
|
|
25
|
+
"main": "dist/index.js",
|
|
25
26
|
"type": "module",
|
|
26
27
|
"exports": {
|
|
27
|
-
"
|
|
28
|
-
"import": "./dist/
|
|
29
|
-
"require": "./dist/qti-components/index.cjs"
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
30
|
},
|
|
31
|
-
"./
|
|
32
|
-
"import": "./dist/
|
|
33
|
-
"require": "./dist/qti-transformers/index.cjs"
|
|
31
|
+
"./transformers": {
|
|
32
|
+
"import": "./dist/transformers/index.js"
|
|
34
33
|
},
|
|
35
|
-
"./
|
|
36
|
-
"import": "./dist/
|
|
37
|
-
"require": "./dist/qti-item/index.cjs"
|
|
38
|
-
},
|
|
39
|
-
"./qti-test": {
|
|
40
|
-
"import": "./dist/qti-test/index.js",
|
|
41
|
-
"require": "./dist/qti-test/index.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./qti-loader": {
|
|
44
|
-
"import": "./dist/qti-loader/index.js",
|
|
45
|
-
"require": "./dist/qti-loader/index.cjs"
|
|
34
|
+
"./loader": {
|
|
35
|
+
"import": "./dist/loader/index.js"
|
|
46
36
|
},
|
|
47
37
|
"./item.css": "./dist/item.css",
|
|
48
|
-
"./cdn/index.js": "./
|
|
49
|
-
"./cdn/index.
|
|
50
|
-
"./cdn/index.global.js": "./dist/cdn/index.global.js"
|
|
38
|
+
"./cdn/index.js": "./cdn/index.js",
|
|
39
|
+
"./cdn/index.global.js": "./cdn/index.global.js"
|
|
51
40
|
},
|
|
52
41
|
"types": "./dist/qti-components/index.d.ts",
|
|
53
42
|
"typesVersions": {
|
|
54
43
|
"*": {
|
|
55
|
-
"
|
|
56
|
-
"./dist/
|
|
57
|
-
],
|
|
58
|
-
"qti-transformers": [
|
|
59
|
-
"./dist/qti-transformers/index.d.ts"
|
|
44
|
+
".": [
|
|
45
|
+
"./dist/index.d.ts"
|
|
60
46
|
],
|
|
61
|
-
"
|
|
62
|
-
"./dist/
|
|
47
|
+
"transformers": [
|
|
48
|
+
"./dist/transformers/index.d.ts"
|
|
63
49
|
],
|
|
64
|
-
"
|
|
65
|
-
"./dist/
|
|
66
|
-
],
|
|
67
|
-
"qti-loader": [
|
|
68
|
-
"./dist/qti-loader/index.d.ts"
|
|
50
|
+
"loader": [
|
|
51
|
+
"./dist/loader/index.d.ts"
|
|
69
52
|
]
|
|
70
53
|
}
|
|
71
54
|
},
|
|
@@ -75,20 +58,21 @@
|
|
|
75
58
|
],
|
|
76
59
|
"scripts": {
|
|
77
60
|
"storybook": "wireit",
|
|
78
|
-
"
|
|
61
|
+
"storybook:docs": "wireit",
|
|
62
|
+
"build:watch": "npm run build --watch",
|
|
79
63
|
"npm:publish": "np",
|
|
80
64
|
"---": "-",
|
|
81
65
|
"build": "wireit",
|
|
82
66
|
"test": "wireit",
|
|
83
67
|
"attw": "wireit",
|
|
84
|
-
"lint": "
|
|
68
|
+
"lint": "eslint src/**/*.ts",
|
|
85
69
|
"cem": "wireit",
|
|
70
|
+
"css": "wireit",
|
|
86
71
|
"act": "act",
|
|
87
72
|
"vite": "vite",
|
|
88
73
|
"stylelint": "stylelint \"src/**/*.css\"",
|
|
89
74
|
"build-storybook": "storybook build",
|
|
90
75
|
"storybook:test": "test-storybook",
|
|
91
|
-
"storybook:docs": "wireit",
|
|
92
76
|
"storybook:docs:build": "wireit",
|
|
93
77
|
"chromatic": "node chromatic-runner.cjs",
|
|
94
78
|
"----hooks----": "-",
|
|
@@ -99,7 +83,7 @@
|
|
|
99
83
|
"storybook": {
|
|
100
84
|
"command": "storybook dev -p 6006",
|
|
101
85
|
"dependencies": [
|
|
102
|
-
"cem:watch"
|
|
86
|
+
"storybook:cem:watch"
|
|
103
87
|
]
|
|
104
88
|
},
|
|
105
89
|
"build": {
|
|
@@ -112,16 +96,22 @@
|
|
|
112
96
|
"css"
|
|
113
97
|
],
|
|
114
98
|
"files": [
|
|
115
|
-
"src/**/*.{ts
|
|
99
|
+
"src/**/*.{ts}",
|
|
100
|
+
"tsconfig.json",
|
|
116
101
|
"!src/**/*.{test,spec,stories}.ts"
|
|
117
|
-
]
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
"!
|
|
124
|
-
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"cem": {
|
|
105
|
+
"command": "cem analyze",
|
|
106
|
+
"files": [
|
|
107
|
+
"src/**/*.ts",
|
|
108
|
+
"!src/**/*.{test,spec,stories}.ts"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"css": {
|
|
112
|
+
"command": "postcss src/item.css -d dist -m",
|
|
113
|
+
"files": [
|
|
114
|
+
"src/**/*.css"
|
|
125
115
|
]
|
|
126
116
|
},
|
|
127
117
|
"test": {
|
|
@@ -133,7 +123,7 @@
|
|
|
133
123
|
"storybook:docs": {
|
|
134
124
|
"command": "storybook dev --docs -c .storybook-docs",
|
|
135
125
|
"dependencies": [
|
|
136
|
-
"cem:watch"
|
|
126
|
+
"storybook:cem:watch"
|
|
137
127
|
]
|
|
138
128
|
},
|
|
139
129
|
"storybook:docs:build": {
|
|
@@ -142,13 +132,7 @@
|
|
|
142
132
|
"cem"
|
|
143
133
|
]
|
|
144
134
|
},
|
|
145
|
-
"
|
|
146
|
-
"command": "eslint --color --cache --cache-location .eslintcache src/lib/**/*.ts"
|
|
147
|
-
},
|
|
148
|
-
"cem": {
|
|
149
|
-
"command": "cem analyze"
|
|
150
|
-
},
|
|
151
|
-
"cem:watch": {
|
|
135
|
+
"storybook:cem:watch": {
|
|
152
136
|
"command": "cem analyze --watch",
|
|
153
137
|
"service": {
|
|
154
138
|
"readyWhen": {
|
|
@@ -156,11 +140,8 @@
|
|
|
156
140
|
}
|
|
157
141
|
}
|
|
158
142
|
},
|
|
159
|
-
"css": {
|
|
160
|
-
"command": "postcss src/item.css -d dist -m"
|
|
161
|
-
},
|
|
162
143
|
"attw": {
|
|
163
|
-
"command": "attw --pack --exclude-entrypoints
|
|
144
|
+
"command": "attw --profile esm-only --pack --exclude-entrypoints ./item.css ./cdn/index.js ./cdn/index.global.js ./cdn/index.min.js",
|
|
164
145
|
"dependencies": [
|
|
165
146
|
"build"
|
|
166
147
|
]
|
|
@@ -251,7 +232,7 @@
|
|
|
251
232
|
"optionalDependencies": {
|
|
252
233
|
"@rollup/rollup-linux-x64-gnu": "^4.28.1"
|
|
253
234
|
},
|
|
254
|
-
"customElements": "custom-elements.json",
|
|
235
|
+
"customElements": "dist/custom-elements.json",
|
|
255
236
|
"bugs": {
|
|
256
237
|
"url": "https://github.com/Citolab/qti-components/issues"
|
|
257
238
|
},
|