@citolab/qti-components 7.0.9-beta.0 → 7.0.9-beta.1
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/chunks/{chunk-GVU44M3E.js → chunk-DKMHSSEK.js} +7 -16
- package/cdn/chunks/{chunk-I3HQJPKA.js → chunk-EG3QNAM6.js} +76 -71
- package/cdn/chunks/{chunk-LCKLXCUP.js → chunk-I5J4YQIW.js} +7 -16
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +1 -1
- package/cdn/qti-components/index.js +1 -1
- package/cdn/qti-item/core/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/test-container.js +1 -1
- package/dist/chunks/{chunk-NPHDN2TQ.js → chunk-5E4OEZCA.js} +360 -70
- package/dist/chunks/chunk-5E4OEZCA.js.map +1 -0
- package/dist/chunks/{chunk-MDWBTFKL.js → chunk-BH5H7BSS.js} +8 -17
- package/dist/chunks/{chunk-MDWBTFKL.js.map → chunk-BH5H7BSS.js.map} +1 -1
- package/dist/chunks/{chunk-6MW3J6OM.js → chunk-QGPXAPBK.js} +8 -17
- package/dist/chunks/{chunk-6MW3J6OM.js.map → chunk-QGPXAPBK.js.map} +1 -1
- package/dist/exports/item.context.d.ts +1 -1
- package/dist/exports/qti-assessment-item.context.d.ts +1 -1
- package/dist/exports/qti-condition-expression.d.ts +1 -1
- package/dist/exports/qti-expression.d.ts +1 -1
- package/dist/exports/session.context.d.ts +3 -3
- package/dist/exports/test.context.d.ts +1 -1
- package/dist/exports/variables.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -3
- package/dist/item.css +7 -16
- package/dist/qti-components/index.d.ts +44 -26
- package/dist/qti-components/index.js +5 -1
- package/dist/qti-components-jsx.d.ts +32 -0
- package/dist/qti-item/core/index.js +1 -1
- package/dist/qti-loader/index.d.ts +2 -2
- package/dist/{qti-response-declaration-CyOeVboh.d.ts → qti-response-declaration-CESClJ3_.d.ts} +5 -1
- package/dist/qti-test/components/index.d.ts +3 -3
- package/dist/qti-test/components/index.js +1 -1
- package/dist/qti-test/components/test-container.js +1 -1
- package/dist/qti-test/components/test-navigation.d.ts +3 -3
- package/dist/qti-test/core/index.d.ts +4 -4
- package/dist/{qti-test-part-zX9tOUbA.d.ts → qti-test-part-BAM_WUTL.d.ts} +1 -1
- package/dist/{variables-cO3DzqJy.d.ts → variables-DNDfraER.d.ts} +14 -1
- package/dist/vscode.html-custom-data.json +16 -0
- package/package.json +1 -1
- package/cdn/chunks/chunk-KGVJXME7.js +0 -934
- package/dist/chunks/chunk-NPHDN2TQ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
ItemContainer,
|
|
10
10
|
QtiItem
|
|
11
|
-
} from "./chunks/chunk-
|
|
11
|
+
} from "./chunks/chunk-QGPXAPBK.js";
|
|
12
12
|
import "./chunks/chunk-CBYNKDSF.js";
|
|
13
13
|
import {
|
|
14
14
|
TestPagingButtonsStamp
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunks/chunk-CHINL5UJ.js";
|
|
25
25
|
import {
|
|
26
26
|
TestContainer
|
|
27
|
-
} from "./chunks/chunk-
|
|
27
|
+
} from "./chunks/chunk-BH5H7BSS.js";
|
|
28
28
|
import {
|
|
29
29
|
TestEndAttempt
|
|
30
30
|
} from "./chunks/chunk-CWCYTL3F.js";
|
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
} from "./chunks/chunk-ODLYMQOS.js";
|
|
46
46
|
import {
|
|
47
47
|
QtiAnd,
|
|
48
|
+
QtiAreaMapping,
|
|
48
49
|
QtiAssessmentItem,
|
|
49
50
|
QtiAssessmentStimulusRef,
|
|
50
51
|
QtiAssociableHotspot,
|
|
@@ -84,6 +85,7 @@ import {
|
|
|
84
85
|
QtiLt,
|
|
85
86
|
QtiLte,
|
|
86
87
|
QtiMapResponse,
|
|
88
|
+
QtiMapResponsePoint,
|
|
87
89
|
QtiMapping,
|
|
88
90
|
QtiMatch,
|
|
89
91
|
QtiMatchInteraction,
|
|
@@ -128,7 +130,7 @@ import {
|
|
|
128
130
|
QtiVariable,
|
|
129
131
|
qtiAndMixin,
|
|
130
132
|
qtiSubtractMixin
|
|
131
|
-
} from "./chunks/chunk-
|
|
133
|
+
} from "./chunks/chunk-5E4OEZCA.js";
|
|
132
134
|
import "./chunks/chunk-D3RGDWKP.js";
|
|
133
135
|
import "./chunks/chunk-ELDMXTUQ.js";
|
|
134
136
|
import "./chunks/chunk-OOQLWOYU.js";
|
|
@@ -151,6 +153,7 @@ import "./chunks/chunk-H2JE6IVU.js";
|
|
|
151
153
|
export {
|
|
152
154
|
ItemContainer,
|
|
153
155
|
QtiAnd,
|
|
156
|
+
QtiAreaMapping,
|
|
154
157
|
QtiAssessmentItem,
|
|
155
158
|
QtiAssessmentItemRef,
|
|
156
159
|
QtiAssessmentSection,
|
|
@@ -194,6 +197,7 @@ export {
|
|
|
194
197
|
QtiLt,
|
|
195
198
|
QtiLte,
|
|
196
199
|
QtiMapResponse,
|
|
200
|
+
QtiMapResponsePoint,
|
|
197
201
|
QtiMapping,
|
|
198
202
|
QtiMatch,
|
|
199
203
|
QtiMatchInteraction,
|
package/dist/item.css
CHANGED
|
@@ -3273,19 +3273,22 @@ qti-response-declaration {
|
|
|
3273
3273
|
|
|
3274
3274
|
qti-graphic-order-interaction {
|
|
3275
3275
|
& qti-hotspot-choice {
|
|
3276
|
+
width: 100%;
|
|
3277
|
+
height: 100%;
|
|
3278
|
+
background-color: rgb(255 255 255 / 30%);
|
|
3279
|
+
padding: 0;
|
|
3276
3280
|
|
|
3277
3281
|
&:hover {
|
|
3278
|
-
background-color:
|
|
3282
|
+
background-color: rgb(255 255 255 / 70%);
|
|
3279
3283
|
}
|
|
3280
3284
|
|
|
3281
3285
|
&:focus {
|
|
3282
|
-
|
|
3286
|
+
background-color: rgb(255 255 255 / 70%);
|
|
3283
3287
|
}
|
|
3284
3288
|
|
|
3285
3289
|
&:state(--checked),
|
|
3286
3290
|
&[aria-checked='true'] {
|
|
3287
|
-
|
|
3288
|
-
background-color: var(--qti-bg-active);
|
|
3291
|
+
background-color: rgb(255 255 255 / 70%);
|
|
3289
3292
|
}
|
|
3290
3293
|
|
|
3291
3294
|
&[aria-readonly='true'] {
|
|
@@ -3311,18 +3314,6 @@ qti-response-declaration {
|
|
|
3311
3314
|
&[aria-ordervalue]::after {
|
|
3312
3315
|
content: attr(aria-ordervalue) !important;
|
|
3313
3316
|
}
|
|
3314
|
-
|
|
3315
|
-
width: 100%;
|
|
3316
|
-
|
|
3317
|
-
height: 100%;
|
|
3318
|
-
|
|
3319
|
-
background-color: transparent;
|
|
3320
|
-
|
|
3321
|
-
padding: 0;
|
|
3322
|
-
|
|
3323
|
-
border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
|
|
3324
|
-
|
|
3325
|
-
outline: none
|
|
3326
3317
|
}
|
|
3327
3318
|
|
|
3328
3319
|
&.qti-selections-light {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { U as QtiRule, V as QtiRuleBase } from '../qti-response-declaration-
|
|
2
|
-
export { O as Orientation, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, W as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, w as QtiHottext, v as QtiHottextInteraction, y as QtiInlineChoice, x as QtiInlineChoiceInteraction, K as QtiItemBody, R as QtiLookupOutcomeValue, z as QtiMatchInteraction, A as QtiMediaInteraction, f as QtiModalFeedback, B as QtiOrderInteraction, Z as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, M as QtiOutcomeProcessingProcessor, C as QtiPortableCustomInteraction, D as QtiPositionObjectStage, N as QtiPrompt, _ as QtiResponseDeclaration, P as QtiResponseProcessing, X as QtiRubricBlock, E as QtiSelectPointInteraction, F as QtiSimpleAssociableChoice, G as QtiSimpleChoice, H as QtiSliderInteraction, Y as QtiStylesheet, S as QtiSubtract, I as QtiTextEntryInteraction, J as QtiUploadInteraction, T as qtiSubtractMixin } from '../qti-response-declaration-
|
|
1
|
+
import { U as QtiRule, V as QtiRuleBase } from '../qti-response-declaration-CESClJ3_.js';
|
|
2
|
+
export { O as Orientation, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, W as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, w as QtiHottext, v as QtiHottextInteraction, y as QtiInlineChoice, x as QtiInlineChoiceInteraction, K as QtiItemBody, R as QtiLookupOutcomeValue, z as QtiMatchInteraction, A as QtiMediaInteraction, f as QtiModalFeedback, B as QtiOrderInteraction, Z as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, M as QtiOutcomeProcessingProcessor, C as QtiPortableCustomInteraction, D as QtiPositionObjectStage, N as QtiPrompt, _ as QtiResponseDeclaration, P as QtiResponseProcessing, X as QtiRubricBlock, E as QtiSelectPointInteraction, F as QtiSimpleAssociableChoice, G as QtiSimpleChoice, H as QtiSliderInteraction, Y as QtiStylesheet, S as QtiSubtract, I as QtiTextEntryInteraction, J as QtiUploadInteraction, T as qtiSubtractMixin } from '../qti-response-declaration-CESClJ3_.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import * as lit_html from 'lit-html';
|
|
6
|
-
import { QtiExpressionBase, QtiExpression } from '../exports/qti-expression.js';
|
|
6
|
+
import { QtiExpressionBase as QtiExpressionBase$1, QtiExpression as QtiExpression$1 } from '../exports/qti-expression.js';
|
|
7
7
|
import { QtiConditionExpression } from '../exports/qti-condition-expression.js';
|
|
8
8
|
import { BaseType } from '../exports/expression-result.js';
|
|
9
|
-
import { R as ResponseVariable, V as VariableDeclaration } from '../variables-cO3DzqJy.js';
|
|
10
|
-
export { Q as QtiMapping } from '../variables-cO3DzqJy.js';
|
|
11
9
|
import { ItemContext } from '../exports/item.context.js';
|
|
10
|
+
import { V as VariableDeclaration, R as ResponseVariable } from '../variables-DNDfraER.js';
|
|
11
|
+
export { a as QtiAreaMapping, Q as QtiMapping } from '../variables-DNDfraER.js';
|
|
12
12
|
import '../exports/interaction.interface.js';
|
|
13
13
|
import '../exports/interaction.js';
|
|
14
14
|
import 'lit-html/directives/ref.js';
|
|
@@ -28,7 +28,7 @@ declare class QtiSetOutcomeValue extends QtiRule {
|
|
|
28
28
|
}
|
|
29
29
|
declare class QtiSetOutcomeValueRule<T> implements QtiRuleBase {
|
|
30
30
|
private expression;
|
|
31
|
-
constructor(expression: QtiExpressionBase<T>);
|
|
31
|
+
constructor(expression: QtiExpressionBase$1<T>);
|
|
32
32
|
process(): any;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -67,7 +67,7 @@ declare function qtiAndMixin<TBase extends MockConstructor>(Base: TBase): {
|
|
|
67
67
|
};
|
|
68
68
|
} & TBase;
|
|
69
69
|
|
|
70
|
-
declare class QtiBaseValue extends QtiExpression<string> {
|
|
70
|
+
declare class QtiBaseValue extends QtiExpression$1<string> {
|
|
71
71
|
baseType: BaseType;
|
|
72
72
|
getResult(): string;
|
|
73
73
|
}
|
|
@@ -76,23 +76,23 @@ declare class QtiContains extends QtiConditionExpression {
|
|
|
76
76
|
getResult(): boolean;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
declare class QtiCorrect extends QtiExpression<string | string[]> {
|
|
79
|
+
declare class QtiCorrect extends QtiExpression$1<string | string[]> {
|
|
80
80
|
get interpretation(): string;
|
|
81
81
|
getResult(): string | string[];
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
declare class QtiEqualRounded extends QtiExpression<boolean> {
|
|
84
|
+
declare class QtiEqualRounded extends QtiExpression$1<boolean> {
|
|
85
85
|
roundingMode: 'decimalPlaces' | 'significantFigures';
|
|
86
86
|
get figures(): number;
|
|
87
87
|
getResult(): boolean;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
declare class QtiEqual extends QtiExpression<boolean> {
|
|
90
|
+
declare class QtiEqual extends QtiExpression$1<boolean> {
|
|
91
91
|
toleranceMode: 'exact' | 'relative' | 'absolute';
|
|
92
92
|
getResult(): boolean;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
declare class QtiGt extends QtiExpression<boolean> {
|
|
95
|
+
declare class QtiGt extends QtiExpression$1<boolean> {
|
|
96
96
|
getResult(): boolean;
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -100,11 +100,11 @@ declare class QtiGte extends QtiConditionExpression {
|
|
|
100
100
|
getResult(): boolean;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
declare class QtiIsNull extends QtiExpression<boolean> {
|
|
103
|
+
declare class QtiIsNull extends QtiExpression$1<boolean> {
|
|
104
104
|
getResult(): boolean;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
declare class QtiLt extends QtiExpression<boolean> {
|
|
107
|
+
declare class QtiLt extends QtiExpression$1<boolean> {
|
|
108
108
|
getResult(): boolean;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -112,25 +112,43 @@ declare class QtiLte extends QtiConditionExpression {
|
|
|
112
112
|
getResult(): boolean;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
declare class QtiMapResponse extends QtiExpression<number> {
|
|
115
|
+
declare class QtiMapResponse extends QtiExpression$1<number> {
|
|
116
116
|
identifier: string;
|
|
117
117
|
getResult(): number;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
interface QtiExpressionBase<T> {
|
|
121
|
+
calculate(): Readonly<T>;
|
|
122
|
+
}
|
|
123
|
+
declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
|
|
124
|
+
protected result: any;
|
|
125
|
+
static styles: lit.CSSResult;
|
|
126
|
+
render(): lit_html.TemplateResult<1>;
|
|
127
|
+
calculate(): Readonly<T>;
|
|
128
|
+
protected getResult(): Readonly<T>;
|
|
129
|
+
protected context?: ItemContext;
|
|
130
|
+
getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
declare class QtiMapResponsePoint extends QtiExpression<number> {
|
|
134
|
+
identifier: string;
|
|
135
|
+
getResult(): number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare class QtiMatch extends QtiExpression$1<boolean> {
|
|
121
139
|
getResult(): boolean;
|
|
122
140
|
static match(valueToMap: ResponseVariable, correctValueInfo: ResponseVariable): boolean;
|
|
123
141
|
}
|
|
124
142
|
|
|
125
|
-
declare class QtiMember extends QtiExpression<boolean | null> {
|
|
143
|
+
declare class QtiMember extends QtiExpression$1<boolean | null> {
|
|
126
144
|
getResult(): boolean;
|
|
127
145
|
}
|
|
128
146
|
|
|
129
|
-
declare class QtiMultiple extends QtiExpression<VariableDeclaration<string | string[]>[]> {
|
|
147
|
+
declare class QtiMultiple extends QtiExpression$1<VariableDeclaration<string | string[]>[]> {
|
|
130
148
|
getResult(): ResponseVariable[];
|
|
131
149
|
}
|
|
132
150
|
|
|
133
|
-
declare class QtiNot extends QtiExpression<boolean> {
|
|
151
|
+
declare class QtiNot extends QtiExpression$1<boolean> {
|
|
134
152
|
render(): lit_html.TemplateResult<1>;
|
|
135
153
|
getResult(): boolean;
|
|
136
154
|
}
|
|
@@ -139,7 +157,7 @@ declare class QtiOr extends QtiConditionExpression {
|
|
|
139
157
|
getResult(): boolean;
|
|
140
158
|
}
|
|
141
159
|
|
|
142
|
-
declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
|
|
160
|
+
declare class QtiOrdered extends QtiExpression$1<ResponseVariable[]> {
|
|
143
161
|
getResult(): ResponseVariable[];
|
|
144
162
|
}
|
|
145
163
|
|
|
@@ -150,28 +168,28 @@ declare class QtiPrintedVariable extends LitElement {
|
|
|
150
168
|
calculate(): VariableDeclaration<string | string[]>;
|
|
151
169
|
}
|
|
152
170
|
|
|
153
|
-
declare class QtiProduct extends QtiExpression<number> {
|
|
171
|
+
declare class QtiProduct extends QtiExpression$1<number> {
|
|
154
172
|
getResult(): number;
|
|
155
173
|
}
|
|
156
174
|
|
|
157
|
-
declare class QtiStringMatch extends QtiExpression<boolean> {
|
|
175
|
+
declare class QtiStringMatch extends QtiExpression$1<boolean> {
|
|
158
176
|
caseSensitive: string;
|
|
159
177
|
getResult(): boolean;
|
|
160
178
|
}
|
|
161
179
|
|
|
162
|
-
declare class QtiSum extends QtiExpression<number> {
|
|
180
|
+
declare class QtiSum extends QtiExpression$1<number> {
|
|
163
181
|
private _expression;
|
|
164
182
|
constructor();
|
|
165
183
|
getResult(): number;
|
|
166
184
|
}
|
|
167
|
-
declare class QtiSumExpression implements QtiExpressionBase<number> {
|
|
185
|
+
declare class QtiSumExpression implements QtiExpressionBase$1<number> {
|
|
168
186
|
private expressions;
|
|
169
|
-
constructor(expressions: QtiExpressionBase<number>[]);
|
|
187
|
+
constructor(expressions: QtiExpressionBase$1<number>[]);
|
|
170
188
|
calculate(): number;
|
|
171
189
|
}
|
|
172
190
|
|
|
173
|
-
declare class QtiVariable extends QtiExpression<string | string[]> {
|
|
191
|
+
declare class QtiVariable extends QtiExpression$1<string | string[]> {
|
|
174
192
|
getResult(): Readonly<string | string[]>;
|
|
175
193
|
}
|
|
176
194
|
|
|
177
|
-
export { QtiAnd, QtiBaseValue, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiGt, QtiGte, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPrintedVariable, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiRuleBase, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, qtiAndMixin };
|
|
195
|
+
export { QtiAnd, QtiBaseValue, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiGt, QtiGte, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPrintedVariable, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiRuleBase, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, qtiAndMixin };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
QtiAnd,
|
|
3
|
+
QtiAreaMapping,
|
|
3
4
|
QtiAssessmentItem,
|
|
4
5
|
QtiAssessmentStimulusRef,
|
|
5
6
|
QtiAssociableHotspot,
|
|
@@ -39,6 +40,7 @@ import {
|
|
|
39
40
|
QtiLt,
|
|
40
41
|
QtiLte,
|
|
41
42
|
QtiMapResponse,
|
|
43
|
+
QtiMapResponsePoint,
|
|
42
44
|
QtiMapping,
|
|
43
45
|
QtiMatch,
|
|
44
46
|
QtiMatchInteraction,
|
|
@@ -83,7 +85,7 @@ import {
|
|
|
83
85
|
QtiVariable,
|
|
84
86
|
qtiAndMixin,
|
|
85
87
|
qtiSubtractMixin
|
|
86
|
-
} from "../chunks/chunk-
|
|
88
|
+
} from "../chunks/chunk-5E4OEZCA.js";
|
|
87
89
|
import "../chunks/chunk-D3RGDWKP.js";
|
|
88
90
|
import "../chunks/chunk-ELDMXTUQ.js";
|
|
89
91
|
import "../chunks/chunk-OOQLWOYU.js";
|
|
@@ -95,6 +97,7 @@ import "../chunks/chunk-NJNQOQUU.js";
|
|
|
95
97
|
import "../chunks/chunk-H2JE6IVU.js";
|
|
96
98
|
export {
|
|
97
99
|
QtiAnd,
|
|
100
|
+
QtiAreaMapping,
|
|
98
101
|
QtiAssessmentItem,
|
|
99
102
|
QtiAssessmentStimulusRef,
|
|
100
103
|
QtiAssociableHotspot,
|
|
@@ -134,6 +137,7 @@ export {
|
|
|
134
137
|
QtiLt,
|
|
135
138
|
QtiLte,
|
|
136
139
|
QtiMapResponse,
|
|
140
|
+
QtiMapResponsePoint,
|
|
137
141
|
QtiMapping,
|
|
138
142
|
QtiMatch,
|
|
139
143
|
QtiMatchInteraction,
|
|
@@ -60,6 +60,17 @@ type BaseProps = {
|
|
|
60
60
|
|
|
61
61
|
type BaseEvents = {};
|
|
62
62
|
|
|
63
|
+
export type QtiAreaMappingProps = {
|
|
64
|
+
/** */
|
|
65
|
+
"default-value"?: number;
|
|
66
|
+
/** */
|
|
67
|
+
"lower-bound"?: number;
|
|
68
|
+
/** */
|
|
69
|
+
"upper-bound"?: number;
|
|
70
|
+
/** */
|
|
71
|
+
mapEntries?: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
63
74
|
export type QtiMappingProps = {
|
|
64
75
|
/** */
|
|
65
76
|
"default-value"?: number;
|
|
@@ -160,6 +171,13 @@ export type QtiMapResponseProps = {
|
|
|
160
171
|
getVariables?: string;
|
|
161
172
|
};
|
|
162
173
|
|
|
174
|
+
export type QtiMapResponsePointProps = {
|
|
175
|
+
/** */
|
|
176
|
+
identifier?: string;
|
|
177
|
+
/** */
|
|
178
|
+
getVariables?: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
163
181
|
export type QtiMatchProps = {
|
|
164
182
|
/** */
|
|
165
183
|
getVariables?: string;
|
|
@@ -939,6 +957,13 @@ export type QtiTestVariablesProps = {
|
|
|
939
957
|
};
|
|
940
958
|
|
|
941
959
|
export type CustomElements = {
|
|
960
|
+
/**
|
|
961
|
+
*
|
|
962
|
+
* ---
|
|
963
|
+
*
|
|
964
|
+
*/
|
|
965
|
+
"qti-area-mapping": Partial<QtiAreaMappingProps & BaseProps & BaseEvents>;
|
|
966
|
+
|
|
942
967
|
/**
|
|
943
968
|
*
|
|
944
969
|
* ---
|
|
@@ -1094,6 +1119,13 @@ export type CustomElements = {
|
|
|
1094
1119
|
*/
|
|
1095
1120
|
"qti-map-response": Partial<QtiMapResponseProps & BaseProps & BaseEvents>;
|
|
1096
1121
|
|
|
1122
|
+
/**
|
|
1123
|
+
*
|
|
1124
|
+
* ---
|
|
1125
|
+
*
|
|
1126
|
+
*/
|
|
1127
|
+
"qti-map-response-point": Partial<QtiMapResponsePointProps & BaseProps & BaseEvents>;
|
|
1128
|
+
|
|
1097
1129
|
/**
|
|
1098
1130
|
*
|
|
1099
1131
|
* ---
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Q as QtiAssessmentItem } from '../qti-response-declaration-
|
|
1
|
+
import { Q as QtiAssessmentItem } from '../qti-response-declaration-CESClJ3_.js';
|
|
2
2
|
import 'lit-html';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import '../exports/expression-result.js';
|
|
5
|
-
import '../variables-
|
|
5
|
+
import '../variables-DNDfraER.js';
|
|
6
6
|
import '../exports/interaction.interface.js';
|
|
7
7
|
import '../exports/interaction.js';
|
|
8
8
|
import 'lit-html/directives/ref.js';
|
package/dist/{qti-response-declaration-CyOeVboh.d.ts → qti-response-declaration-CESClJ3_.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@ import * as lit_html from 'lit-html';
|
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement, PropertyValueMap, CSSResultGroup } from 'lit';
|
|
4
4
|
import { ResponseInteraction, Calculate, BaseType, Cardinality } from './exports/expression-result.js';
|
|
5
|
-
import {
|
|
5
|
+
import { b as VariableValue, R as ResponseVariable, O as OutcomeVariable, V as VariableDeclaration } from './variables-DNDfraER.js';
|
|
6
6
|
import { IInteraction } from './exports/interaction.interface.js';
|
|
7
7
|
import { Interaction } from './exports/interaction.js';
|
|
8
8
|
import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
|
|
@@ -639,6 +639,7 @@ declare type Configuration<T> = {
|
|
|
639
639
|
onready: (pci: IMSpci<T>, state?: string) => void;
|
|
640
640
|
properties: T;
|
|
641
641
|
};
|
|
642
|
+
declare type ResponseType = boolean | number | string | [number, number] | [string, string] | string[] | [number | string][];
|
|
642
643
|
declare type QtiVariableJSON = {
|
|
643
644
|
[K in 'list' | 'base']?: {
|
|
644
645
|
[Ka in 'boolean' | 'integer' | 'float' | 'string' | 'pair' | 'directedPair' | 'identifier']?: ResponseType;
|
|
@@ -667,6 +668,8 @@ declare class QtiPortableCustomInteraction extends Interaction {
|
|
|
667
668
|
customInteractionTypeIdentifier: string;
|
|
668
669
|
private _errorMessage;
|
|
669
670
|
private convertQtiVariableJSON;
|
|
671
|
+
private addHyphenatedKeys;
|
|
672
|
+
private responseVariablesToQtiVariableJSON;
|
|
670
673
|
private startChecking;
|
|
671
674
|
private stopChecking;
|
|
672
675
|
validate(): boolean;
|
|
@@ -1002,6 +1005,7 @@ declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
|
1002
1005
|
connectedCallback(): void;
|
|
1003
1006
|
private get correctResponse();
|
|
1004
1007
|
private get mapping();
|
|
1008
|
+
private get areaMapping();
|
|
1005
1009
|
}
|
|
1006
1010
|
declare global {
|
|
1007
1011
|
interface HTMLElementTagNameMap {
|
|
@@ -12,12 +12,12 @@ import 'lit';
|
|
|
12
12
|
import '../../exports/computed.context.js';
|
|
13
13
|
import 'stampino';
|
|
14
14
|
import '../core/index.js';
|
|
15
|
-
import '../../variables-
|
|
15
|
+
import '../../variables-DNDfraER.js';
|
|
16
16
|
import '../../exports/expression-result.js';
|
|
17
|
-
import '../../qti-test-part-
|
|
17
|
+
import '../../qti-test-part-BAM_WUTL.js';
|
|
18
18
|
import '../../exports/test.context.js';
|
|
19
19
|
import '../../exports/item.context.js';
|
|
20
|
-
import '../../qti-response-declaration-
|
|
20
|
+
import '../../qti-response-declaration-CESClJ3_.js';
|
|
21
21
|
import '../../exports/interaction.interface.js';
|
|
22
22
|
import '../../exports/interaction.js';
|
|
23
23
|
import 'lit-html/directives/ref.js';
|
|
@@ -2,12 +2,12 @@ import * as lit_html from 'lit-html';
|
|
|
2
2
|
import { LitElement, PropertyValues } from 'lit';
|
|
3
3
|
import { ComputedContext } from '../../exports/computed.context.js';
|
|
4
4
|
import '../core/index.js';
|
|
5
|
-
import { S as SessionContext, b as QtiAssessmentTest } from '../../qti-test-part-
|
|
5
|
+
import { S as SessionContext, b as QtiAssessmentTest } from '../../qti-test-part-BAM_WUTL.js';
|
|
6
6
|
import { TestContext } from '../../exports/test.context.js';
|
|
7
7
|
import { ConfigContext } from '../../exports/config.context.js';
|
|
8
|
-
import '../../variables-
|
|
8
|
+
import '../../variables-DNDfraER.js';
|
|
9
9
|
import '../../exports/expression-result.js';
|
|
10
|
-
import '../../qti-response-declaration-
|
|
10
|
+
import '../../qti-response-declaration-CESClJ3_.js';
|
|
11
11
|
import '../../exports/interaction.interface.js';
|
|
12
12
|
import '../../exports/interaction.js';
|
|
13
13
|
import 'lit-html/directives/ref.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
|
-
import { O as OutcomeVariable, V as VariableDeclaration } from '../../variables-
|
|
2
|
+
import { O as OutcomeVariable, V as VariableDeclaration } from '../../variables-DNDfraER.js';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
|
-
import { S as SessionContext, b as QtiAssessmentTest } from '../../qti-test-part-
|
|
5
|
-
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, c as QtiTestPart } from '../../qti-test-part-
|
|
4
|
+
import { S as SessionContext, b as QtiAssessmentTest } from '../../qti-test-part-BAM_WUTL.js';
|
|
5
|
+
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, c as QtiTestPart } from '../../qti-test-part-BAM_WUTL.js';
|
|
6
6
|
import { TestContext } from '../../exports/test.context.js';
|
|
7
7
|
export { testContext } from '../../exports/test.context.js';
|
|
8
8
|
import '../../exports/expression-result.js';
|
|
9
|
-
import '../../qti-response-declaration-
|
|
9
|
+
import '../../qti-response-declaration-CESClJ3_.js';
|
|
10
10
|
import '../../exports/interaction.interface.js';
|
|
11
11
|
import '../../exports/interaction.js';
|
|
12
12
|
import 'lit-html/directives/ref.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import { TestContext } from './exports/test.context.js';
|
|
4
|
-
import { Q as QtiAssessmentItem } from './qti-response-declaration-
|
|
4
|
+
import { Q as QtiAssessmentItem } from './qti-response-declaration-CESClJ3_.js';
|
|
5
5
|
|
|
6
6
|
type View = 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor' | '';
|
|
7
7
|
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { Cardinality, BaseType } from './exports/expression-result.js';
|
|
3
3
|
|
|
4
|
+
declare class QtiAreaMapping extends LitElement {
|
|
5
|
+
defaultValue: number;
|
|
6
|
+
lowerBound: number;
|
|
7
|
+
upperBound: number;
|
|
8
|
+
get mapEntries(): {
|
|
9
|
+
shape: "default" | "circle" | "rect" | "ellipse" | "poly";
|
|
10
|
+
coords: string;
|
|
11
|
+
mappedValue: number;
|
|
12
|
+
defaultValue: number;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
|
|
4
16
|
declare class QtiMapping extends LitElement {
|
|
5
17
|
defaultValue: number;
|
|
6
18
|
lowerBound: number;
|
|
@@ -27,7 +39,8 @@ interface OutcomeVariable extends VariableDeclaration<string | string[] | null>
|
|
|
27
39
|
interface ResponseVariable extends VariableDeclaration<string | string[] | null> {
|
|
28
40
|
candidateResponse?: string | string[] | null;
|
|
29
41
|
mapping?: QtiMapping;
|
|
42
|
+
areaMapping?: QtiAreaMapping;
|
|
30
43
|
correctResponse?: string | string[] | null;
|
|
31
44
|
}
|
|
32
45
|
|
|
33
|
-
export { type OutcomeVariable as O, QtiMapping as Q, type ResponseVariable as R, type VariableDeclaration as V, type VariableValue as
|
|
46
|
+
export { type OutcomeVariable as O, QtiMapping as Q, type ResponseVariable as R, type VariableDeclaration as V, QtiAreaMapping as a, type VariableValue as b };
|
|
@@ -2,6 +2,16 @@
|
|
|
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-area-mapping",
|
|
7
|
+
"description": "\n---\n",
|
|
8
|
+
"attributes": [
|
|
9
|
+
{ "name": "default-value", "values": [] },
|
|
10
|
+
{ "name": "lower-bound", "values": [] },
|
|
11
|
+
{ "name": "upper-bound", "values": [] }
|
|
12
|
+
],
|
|
13
|
+
"references": []
|
|
14
|
+
},
|
|
5
15
|
{
|
|
6
16
|
"name": "qti-mapping",
|
|
7
17
|
"description": "\n---\n",
|
|
@@ -151,6 +161,12 @@
|
|
|
151
161
|
"attributes": [{ "name": "identifier", "values": [] }],
|
|
152
162
|
"references": []
|
|
153
163
|
},
|
|
164
|
+
{
|
|
165
|
+
"name": "qti-map-response-point",
|
|
166
|
+
"description": "\n---\n",
|
|
167
|
+
"attributes": [{ "name": "identifier", "values": [] }],
|
|
168
|
+
"references": []
|
|
169
|
+
},
|
|
154
170
|
{
|
|
155
171
|
"name": "qti-match",
|
|
156
172
|
"description": "\n---\n",
|