@citolab/qti-components 6.0.20 → 6.0.22
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/audience-context-444478f4.d.ts +8 -0
- package/dist/chunk-3O4URV5U.cjs +1 -0
- package/dist/chunk-5GG2XAUT.js +1 -0
- package/dist/chunk-6RJ7J4AE.cjs +1 -0
- package/dist/{chunk-AQI672QR.js → chunk-GEVRCVN2.cjs} +3 -3
- package/dist/chunk-GGEPFBR7.cjs +1 -0
- package/dist/chunk-HOQW4KDA.cjs +1 -0
- package/dist/{chunk-5RZQOWDC.js → chunk-YDFMBQT4.js} +2 -2
- package/dist/context/index.cjs +1 -0
- package/dist/context/index.d.cts +1 -0
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.js +1 -1
- package/dist/decorators/index.cjs +1 -0
- package/dist/decorators/index.d.cts +37 -0
- package/dist/index.cjs +2889 -0
- package/dist/index.d.cts +1063 -0
- package/dist/index.d.ts +24 -16
- package/dist/index.js +73 -63
- package/dist/{qti-assessment-item-68bcc951.d.ts → qti-assessment-item-c1eb7de3.d.ts} +5 -5
- package/dist/qti-components/index.cjs +419 -0
- package/dist/qti-components/index.d.cts +560 -0
- package/dist/qti-components/index.d.ts +21 -12
- package/dist/qti-components/index.js +76 -66
- package/dist/qti-item/index.cjs +1 -0
- package/dist/qti-item/index.d.cts +4 -0
- package/dist/qti-item/index.d.ts +2 -2
- package/dist/qti-item/index.js +1 -1
- package/dist/{qti-item-8c26fa9e.d.ts → qti-item-e2edd87f.d.ts} +1 -1
- package/dist/qti-item-react/index.cjs +1 -0
- package/dist/qti-item-react/index.d.cts +30 -0
- package/dist/qti-item-react/index.d.ts +3 -3
- package/dist/qti-item-react/index.js +1 -1
- package/dist/{qti-simple-choice-3e910d03.d.ts → qti-simple-choice-e28cfb34.d.ts} +2 -2
- package/dist/qti-transform/index.cjs +17 -0
- package/dist/qti-transform/index.d.cts +17 -0
- package/package.json +24 -14
- package/dist/chunk-FIJLDR56.js +0 -2204
- package/dist/chunk-HQKT4SJF.js +0 -1
- package/dist/chunk-RPGALUIV.js +0 -1
- package/dist/chunk-UD6XWG6V.js +0 -2205
- package/dist/context-a957e50e.d.ts +0 -9
- package/dist/custom-elements.json +0 -6772
- package/dist/index.css +0 -2193
- package/dist/qti-assessment-item-f1fcf393.d.ts +0 -120
- package/dist/qti-item-e1fc6a70.d.ts +0 -30
- package/dist/qti-simple-choice-ca9b86db.d.ts +0 -352
- package/dist/qti-simple-choice-d1392d78.d.ts +0 -352
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
import { B as BaseType, C as Cardinality, Q as QtiAssessmentItem, V as VariableDeclaration, R as ResponseVariable } from '../qti-assessment-item-c1eb7de3.js';
|
|
2
|
+
export { b as Calculate, M as Multiple, O as Ordered, c as OutcomeVariable, e as QtiMapping, a as ResponseInteraction, d as directedPair, f as float, i as integer } from '../qti-assessment-item-c1eb7de3.js';
|
|
3
|
+
import { C as Choices, I as Interaction, Q as QtiRule, a as QtiChoice } from '../qti-simple-choice-e28cfb34.js';
|
|
4
|
+
export { b as InteractionChangedDetails, O as OutcomeChangedDetails, j as QtiChoiceElementSelected, m as QtiChoiceInteraction, l as QtiExtendedTextInteraction, o as QtiHottext, c as QtiInteractionChanged, i as QtiInteractionResponse, h as QtiLooseChoice, q as QtiOutcomeChanged, f as QtiRegisterChoice, g as QtiRegisterHotspot, e as QtiRegisterInteraction, d as QtiRegisterVariable, n as QtiResponseProcessing, p as QtiSimpleChoice, k as QtiTextEntryInteraction } from '../qti-simple-choice-e28cfb34.js';
|
|
5
|
+
import * as lit from 'lit';
|
|
6
|
+
import { LitElement, PropertyValueMap } from 'lit';
|
|
7
|
+
import * as lit_html from 'lit-html';
|
|
8
|
+
import { A as Audience } from '../audience-context-444478f4.js';
|
|
9
|
+
import { ContextConsumer } from '@lit-labs/context';
|
|
10
|
+
import 'lit-html/directives/ref';
|
|
11
|
+
|
|
12
|
+
declare const Events: {
|
|
13
|
+
ON_OUTCOME_CHANGED: string;
|
|
14
|
+
ON_INTERACTION_CHANGED: string;
|
|
15
|
+
ON_REGISTER_VARIABLE: string;
|
|
16
|
+
ON_REGISTER_FEEDBACK: string;
|
|
17
|
+
ON_REGISTER_INTERACTION: string;
|
|
18
|
+
ON_REGISTER_CHOICE: string;
|
|
19
|
+
ON_REGISTER_HOTSPOT: string;
|
|
20
|
+
ON_LOOSE_CHOICE: string;
|
|
21
|
+
ON_INTERACTION_RESPONSE: string;
|
|
22
|
+
ON_DROPDOWN_SELECTED: string;
|
|
23
|
+
ON_CHOICE_ELEMENT_SELECTED: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
declare class QtiStylesheet extends LitElement {
|
|
27
|
+
private styleLink;
|
|
28
|
+
constructor();
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
disconnectedCallback(): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class QtiPrompt extends LitElement {
|
|
34
|
+
render(): lit_html.TemplateResult<1>;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class QtiVariableDeclaration extends LitElement {
|
|
39
|
+
render(): lit_html.TemplateResult<1>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
43
|
+
baseType: BaseType;
|
|
44
|
+
identifier: string;
|
|
45
|
+
cardinality: Cardinality;
|
|
46
|
+
connectedCallback(): void;
|
|
47
|
+
private get correctResponse();
|
|
48
|
+
private get mapping();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
52
|
+
baseType: BaseType;
|
|
53
|
+
identifier: string;
|
|
54
|
+
cardinality: Cardinality;
|
|
55
|
+
get interpolationTable(): any;
|
|
56
|
+
connectedCallback(): void;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare class QtiCompanionMaterialsInfo extends LitElement {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class qtiRubricBlock extends LitElement {
|
|
63
|
+
id: any;
|
|
64
|
+
use: 'instructions' | 'scoring' | 'navigation';
|
|
65
|
+
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
66
|
+
classNames: any;
|
|
67
|
+
handleclassNamesChange(old: any, disabled: boolean): void;
|
|
68
|
+
static styles: lit.CSSResult;
|
|
69
|
+
logger: ContextConsumer<{
|
|
70
|
+
__context__: Audience;
|
|
71
|
+
}, this>;
|
|
72
|
+
render(): lit_html.TemplateResult<1>;
|
|
73
|
+
connectedCallback(): void;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class qtiContentBody extends LitElement {
|
|
77
|
+
render(): lit_html.TemplateResult<1>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare abstract class QtiFeedback extends LitElement {
|
|
81
|
+
protected showHide: string;
|
|
82
|
+
protected outcomeIdentifier: string;
|
|
83
|
+
protected identifier: string;
|
|
84
|
+
protected showStatus: string;
|
|
85
|
+
constructor();
|
|
86
|
+
connectedCallback(): void;
|
|
87
|
+
checkShowFeedback(outcomeIdentifier: string): void;
|
|
88
|
+
private showFeedback;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare class QtiFeedbackInline extends QtiFeedback {
|
|
92
|
+
static styles: lit.CSSResult;
|
|
93
|
+
render: () => lit_html.TemplateResult<1>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare class QtiModalFeedback extends QtiFeedback {
|
|
97
|
+
render(): lit_html.TemplateResult<1>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class QtiFeedbackBlock extends QtiFeedback {
|
|
101
|
+
render(): lit_html.TemplateResult<1>;
|
|
102
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare class QtiHottextInteraction extends Choices {
|
|
106
|
+
connectedCallback(): void;
|
|
107
|
+
render: () => lit_html.TemplateResult<1>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface OptionType {
|
|
111
|
+
textContent: string;
|
|
112
|
+
value: string;
|
|
113
|
+
selected: boolean;
|
|
114
|
+
}
|
|
115
|
+
declare class QtiInlineChoiceInteraction extends Interaction {
|
|
116
|
+
options: OptionType[];
|
|
117
|
+
static inputWidthClass: string[];
|
|
118
|
+
static get properties(): {
|
|
119
|
+
options: {
|
|
120
|
+
type: ArrayConstructor;
|
|
121
|
+
value: any[];
|
|
122
|
+
attribute: boolean;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
connectedCallback(): void;
|
|
126
|
+
static get styles(): lit.CSSResult[];
|
|
127
|
+
render(): lit_html.TemplateResult<1>;
|
|
128
|
+
constructor();
|
|
129
|
+
validate(): boolean;
|
|
130
|
+
reset(): void;
|
|
131
|
+
set response(value: string);
|
|
132
|
+
choiceSelected(event: Event): void;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare class QtiResponseCondition extends QtiRule {
|
|
136
|
+
render(): lit_html.TemplateResult<1>;
|
|
137
|
+
process(): void;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare class QtiSetOutcomeValue extends QtiRule {
|
|
141
|
+
process(): void;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class QtiResponseElse extends LitElement {
|
|
145
|
+
static get properties(): {
|
|
146
|
+
debugCalculateResult: {
|
|
147
|
+
type: ObjectConstructor;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
render(): lit_html.TemplateResult<1>;
|
|
151
|
+
calculate(): boolean;
|
|
152
|
+
getSubRules(): QtiRule[];
|
|
153
|
+
process(): void;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class QtiResponseIf extends QtiResponseElse {
|
|
157
|
+
render(): lit_html.TemplateResult<1>;
|
|
158
|
+
calculate(): boolean;
|
|
159
|
+
getSubRules(): QtiRule[];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare class QtiResponseElseIf extends QtiResponseIf {
|
|
163
|
+
render(): lit_html.TemplateResult<1>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare class QtiExpression<T> extends LitElement {
|
|
167
|
+
protected _error: any[];
|
|
168
|
+
protected set error(val: string);
|
|
169
|
+
static styles: lit.CSSResult;
|
|
170
|
+
render(): lit_html.TemplateResult<1>;
|
|
171
|
+
calculate(): T;
|
|
172
|
+
protected get assessmentItem(): QtiAssessmentItem;
|
|
173
|
+
protected getVariables: () => VariableDeclaration<string | string[]>[];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare class QtiGt extends QtiExpression<boolean> {
|
|
177
|
+
calculate(): boolean;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
declare class QtiConditionExpression extends QtiExpression<boolean> {
|
|
181
|
+
render(): lit_html.TemplateResult<1>;
|
|
182
|
+
calculate(): boolean;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare class QtiGte extends QtiConditionExpression {
|
|
186
|
+
calculate(): boolean;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare class QtiLt extends QtiExpression<boolean> {
|
|
190
|
+
calculate(): boolean;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare class QtiLte extends QtiConditionExpression {
|
|
194
|
+
calculate(): boolean;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare class QtiAnd extends QtiConditionExpression {
|
|
198
|
+
render(): lit_html.TemplateResult<1>;
|
|
199
|
+
calculate(): boolean;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare class QtiProduct extends QtiExpression<number> {
|
|
203
|
+
mult: number;
|
|
204
|
+
render: () => lit_html.TemplateResult<1>;
|
|
205
|
+
calculate(): number;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare class QtiOr extends QtiConditionExpression {
|
|
209
|
+
render(): lit_html.TemplateResult<1>;
|
|
210
|
+
calculate(): boolean;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare class QtiEqual extends QtiExpression<boolean> {
|
|
214
|
+
toleranceMode: 'exact' | 'relative' | 'absolute';
|
|
215
|
+
calculate(): boolean;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
declare class QtiEqualRounded extends QtiExpression<boolean> {
|
|
219
|
+
roundingMode: 'decimalPlaces' | 'significantFigures';
|
|
220
|
+
get figures(): number;
|
|
221
|
+
calculate(): boolean;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
declare class QtiBaseValue extends QtiExpression<string> {
|
|
225
|
+
baseType: BaseType;
|
|
226
|
+
calculate(): string;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
declare class QtiContains extends QtiExpression<boolean> {
|
|
230
|
+
calculate(): boolean;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare class QtiCorrect extends QtiExpression<string | string[]> {
|
|
234
|
+
render(): lit_html.TemplateResult<1>;
|
|
235
|
+
get interpretation(): string;
|
|
236
|
+
calculate(): string | string[];
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare class QtiIsNull extends QtiExpression<boolean> {
|
|
240
|
+
calculate(): boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare class QtiNot extends QtiExpression<boolean> {
|
|
244
|
+
render(): lit_html.TemplateResult<1>;
|
|
245
|
+
calculate(): boolean;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare class QtiMapResponse extends QtiExpression<number> {
|
|
249
|
+
identifier: string;
|
|
250
|
+
calculate(): number;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare class QtiMatch extends QtiExpression<boolean> {
|
|
254
|
+
calculate(): boolean;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare class QtiVariable extends QtiExpression<number | string | string[]> {
|
|
258
|
+
render(): lit_html.TemplateResult<1>;
|
|
259
|
+
calculate(): any;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare class QtiMultiple extends QtiExpression<ResponseVariable[]> {
|
|
263
|
+
calculate(): ResponseVariable[];
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
|
|
267
|
+
calculate(): ResponseVariable[];
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
declare class QtPrintedVariable extends LitElement {
|
|
271
|
+
value: string;
|
|
272
|
+
render(): lit_html.TemplateResult<1>;
|
|
273
|
+
constructor();
|
|
274
|
+
calculate(): any;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare class QtiMember extends QtiExpression<boolean | null> {
|
|
278
|
+
calculate(): boolean;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
declare class QtiPortableCustomInteraction extends LitElement {
|
|
282
|
+
private responseIdentifier;
|
|
283
|
+
private module;
|
|
284
|
+
private customInteractionTypeIdentifier;
|
|
285
|
+
private baseUrl;
|
|
286
|
+
private _errorMessage;
|
|
287
|
+
static get properties(): {
|
|
288
|
+
responseIdentifier: {
|
|
289
|
+
type: StringConstructor;
|
|
290
|
+
attribute: string;
|
|
291
|
+
};
|
|
292
|
+
module: {
|
|
293
|
+
type: StringConstructor;
|
|
294
|
+
attribute: string;
|
|
295
|
+
};
|
|
296
|
+
customInteractionTypeIdentifier: {
|
|
297
|
+
type: StringConstructor;
|
|
298
|
+
attribute: string;
|
|
299
|
+
};
|
|
300
|
+
baseUrl: {
|
|
301
|
+
type: StringConstructor;
|
|
302
|
+
attribute: string;
|
|
303
|
+
};
|
|
304
|
+
_errorMessage: {
|
|
305
|
+
type: StringConstructor;
|
|
306
|
+
state: boolean;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
getTAOConfig(node: any): {} | void;
|
|
310
|
+
register(item: any): void;
|
|
311
|
+
connectedCallback(): void;
|
|
312
|
+
render(): lit_html.TemplateResult<1>;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
interface IInteraction {
|
|
316
|
+
disabled: boolean;
|
|
317
|
+
readonly: boolean;
|
|
318
|
+
response: string | string[];
|
|
319
|
+
reset(): any;
|
|
320
|
+
validate(): boolean;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
324
|
+
declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
325
|
+
private _childrenMap;
|
|
326
|
+
static styles: lit.CSSResult;
|
|
327
|
+
render(): lit_html.TemplateResult<1>;
|
|
328
|
+
connectedCallback(): void;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
declare const QtiGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
332
|
+
declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
|
|
333
|
+
static styles: lit.CSSResult[];
|
|
334
|
+
render(): lit_html.TemplateResult<1>;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
338
|
+
choiceOrdering: boolean;
|
|
339
|
+
hotspots: any;
|
|
340
|
+
startPoint: any;
|
|
341
|
+
endPoint: any;
|
|
342
|
+
_lines: any[];
|
|
343
|
+
startCoord: {
|
|
344
|
+
x: any;
|
|
345
|
+
y: any;
|
|
346
|
+
};
|
|
347
|
+
mouseCoord: {
|
|
348
|
+
x: number;
|
|
349
|
+
y: number;
|
|
350
|
+
};
|
|
351
|
+
svgContainer: any;
|
|
352
|
+
grImage: any;
|
|
353
|
+
static styles: lit.CSSResult[];
|
|
354
|
+
svg: SVGSVGElement;
|
|
355
|
+
constructor();
|
|
356
|
+
reset(): void;
|
|
357
|
+
validate(): boolean;
|
|
358
|
+
set response(val: string | string[]);
|
|
359
|
+
render(): lit_html.TemplateResult<1>;
|
|
360
|
+
private positionHotspotOnRegister;
|
|
361
|
+
firstUpdated(e: any): void;
|
|
362
|
+
disconnectedCallback(): void;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
366
|
+
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
367
|
+
static styles: lit.CSSResult;
|
|
368
|
+
render(): lit_html.TemplateResult<1>;
|
|
369
|
+
private positionHotspotOnRegister;
|
|
370
|
+
connectedCallback(): void;
|
|
371
|
+
disconnectedCallback(): void;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
declare class QtiGraphicOrderInteraction extends Choices {
|
|
375
|
+
choiceOrdering: boolean;
|
|
376
|
+
static styles: lit.CSSResult[];
|
|
377
|
+
render(): lit_html.TemplateResult<1>;
|
|
378
|
+
private setHotspotOrder;
|
|
379
|
+
private positionHotspotOnRegister;
|
|
380
|
+
connectedCallback(): void;
|
|
381
|
+
disconnectedCallback(): void;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
declare class QtiHotspotInteraction extends Choices {
|
|
385
|
+
static styles: lit.CSSResult[];
|
|
386
|
+
render(): lit_html.TemplateResult<1>;
|
|
387
|
+
private positionHotspotOnRegister;
|
|
388
|
+
connectedCallback(): void;
|
|
389
|
+
disconnectedCallback(): void;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
declare class QtiSimpleAssociableChoice extends LitElement {
|
|
393
|
+
connectedCallback(): void;
|
|
394
|
+
render(): lit_html.TemplateResult<1>;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
398
|
+
declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
399
|
+
static styles: any[];
|
|
400
|
+
rows: Element[];
|
|
401
|
+
cols: Element[];
|
|
402
|
+
connectedCallback(): void;
|
|
403
|
+
render(): lit_html.TemplateResult<1>;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
declare class QtiMediaInteraction extends Interaction {
|
|
407
|
+
value: number;
|
|
408
|
+
reset(): void;
|
|
409
|
+
validate(): boolean;
|
|
410
|
+
set response(val: undefined);
|
|
411
|
+
static get properties(): {
|
|
412
|
+
step: {
|
|
413
|
+
type: NumberConstructor;
|
|
414
|
+
attribute: string;
|
|
415
|
+
default: number;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
static styles: lit.CSSResult[];
|
|
419
|
+
render(): lit_html.TemplateResult<1>;
|
|
420
|
+
constructor();
|
|
421
|
+
connectedCallback(): void;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
declare const QtiOrderInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
425
|
+
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
426
|
+
childrenMap: Element[];
|
|
427
|
+
private _classNames;
|
|
428
|
+
private _orientation;
|
|
429
|
+
static layoutClass: string[];
|
|
430
|
+
/** orientation of choices */
|
|
431
|
+
orientation: 'horizontal' | 'vertical';
|
|
432
|
+
static styles: lit.CSSResult[];
|
|
433
|
+
render(): lit_html.TemplateResult<1>;
|
|
434
|
+
connectedCallback(): void;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
declare class QtiSPositionObjectInteraction extends LitElement {
|
|
438
|
+
render(): lit_html.TemplateResult<1>;
|
|
439
|
+
static styles: lit.CSSResult[];
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare class QtiPositionObjectStage extends LitElement {
|
|
443
|
+
choiceOrdering: boolean;
|
|
444
|
+
startX: any;
|
|
445
|
+
startY: any;
|
|
446
|
+
dragElement: any;
|
|
447
|
+
render(): lit_html.TemplateResult<1>;
|
|
448
|
+
static styles: lit.CSSResult[];
|
|
449
|
+
constructor();
|
|
450
|
+
dragElementHandler(event: any): void;
|
|
451
|
+
connectedCallback(): void;
|
|
452
|
+
removeMoveListener(event: any): void;
|
|
453
|
+
disconnectedCallback(): void;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
declare class QtiSelectPointInteraction extends Interaction {
|
|
457
|
+
maxChoices: number;
|
|
458
|
+
minChoices: number;
|
|
459
|
+
private _points;
|
|
460
|
+
render(): lit_html.TemplateResult<1>;
|
|
461
|
+
static styles: lit.CSSResult[];
|
|
462
|
+
reset(): void;
|
|
463
|
+
validate(): boolean;
|
|
464
|
+
set response(val: string | string[]);
|
|
465
|
+
connectedCallback(): void;
|
|
466
|
+
disconnectedCallback(): void;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* @summary The SliderInteraction.Type (qti-slider-interaction) presents the candidate with a control for selecting a numerical value between a lower and upper bound.
|
|
471
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.s61xcrj4qcyj
|
|
472
|
+
* @status stable
|
|
473
|
+
* @since 6.0
|
|
474
|
+
*
|
|
475
|
+
* @event qti-register-interaction - emitted when the interaction wants to register itself
|
|
476
|
+
* @event qti-interaction-response - emitted when the interaction changes
|
|
477
|
+
*
|
|
478
|
+
* @cssprop --show-value - shows the current value while sliding
|
|
479
|
+
* @cssprop --show-ticks - shows the ticks according to steps
|
|
480
|
+
* @cssprop --show-bounds - shows value for lower and upper boundary
|
|
481
|
+
*
|
|
482
|
+
* @csspart slider -- slider inluding, bounds and ticks and value, use it for paddings and margins
|
|
483
|
+
* @csspart bounds -- div for bounds, containing two divs for with min, and max bounds value
|
|
484
|
+
* @csspart ticks -- div for ticks, use lineair gradient and exposed css variables for styling
|
|
485
|
+
* @csspart rail -- div for rail, style according to needs
|
|
486
|
+
* @csspart knob -- div, should be relative or absolute
|
|
487
|
+
* @csspart value -- div, containing value
|
|
488
|
+
*
|
|
489
|
+
* @slot - The default slot where <qti-simple-choice> must be placed.
|
|
490
|
+
* @slot prompt - slot where the prompt is placed.
|
|
491
|
+
*/
|
|
492
|
+
declare class QtiSliderInteraction extends Interaction {
|
|
493
|
+
csLive: CSSStyleDeclaration;
|
|
494
|
+
private _knob;
|
|
495
|
+
private _rail;
|
|
496
|
+
value: number;
|
|
497
|
+
stepLabel: boolean;
|
|
498
|
+
reverse: boolean;
|
|
499
|
+
private _min;
|
|
500
|
+
set min(value: number);
|
|
501
|
+
get min(): number;
|
|
502
|
+
private _max;
|
|
503
|
+
set max(value: number);
|
|
504
|
+
get max(): number;
|
|
505
|
+
private _step;
|
|
506
|
+
set step(value: number);
|
|
507
|
+
get step(): number;
|
|
508
|
+
_handleDisabledChange: (old: any, disabled: any) => void;
|
|
509
|
+
_handleReadonlyChange: (old: any, readonly: any) => void;
|
|
510
|
+
reset(): void;
|
|
511
|
+
validate(): boolean;
|
|
512
|
+
constructor();
|
|
513
|
+
set response(myResponse: string | string[]);
|
|
514
|
+
static styles: lit.CSSResult[];
|
|
515
|
+
render(): lit_html.TemplateResult<1>;
|
|
516
|
+
connectedCallback(): void;
|
|
517
|
+
private _onTouchMove;
|
|
518
|
+
private _onMouseDown;
|
|
519
|
+
/** calculateValue gets x position and compares this with the total width in pixels */
|
|
520
|
+
private calculateValue;
|
|
521
|
+
private getPositionFromEvent;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
declare class QtiEndAttemptInteraction extends LitElement {
|
|
525
|
+
title: 'end attempt';
|
|
526
|
+
render(): lit_html.TemplateResult<1>;
|
|
527
|
+
endAttempt(e: Event): void;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
declare class QtiAssociableHotspot extends LitElement {
|
|
531
|
+
connectedCallback(): void;
|
|
532
|
+
static styles: lit.CSSResult;
|
|
533
|
+
render(): lit_html.TemplateResult<1>;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
declare class QtiGapImg extends LitElement {
|
|
537
|
+
tabindex: number | undefined;
|
|
538
|
+
connectedCallback(): void;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
declare class QtiGapText extends LitElement {
|
|
542
|
+
tabindex: number | undefined;
|
|
543
|
+
connectedCallback(): void;
|
|
544
|
+
render(): lit_html.TemplateResult<1>;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
declare class QtiGap extends LitElement {
|
|
548
|
+
tabindex: number | undefined;
|
|
549
|
+
render(): lit_html.TemplateResult<1>;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
declare class QtiHotspotChoice extends QtiChoice {
|
|
553
|
+
order: number;
|
|
554
|
+
static styles: lit.CSSResult;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
declare class QtiInlineChoice extends LitElement {
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export { BaseType, Cardinality, Events, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiCompanionMaterialsInfo, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiVariable, ResponseVariable, qtiContentBody, qtiRubricBlock };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as BaseType, C as Cardinality, Q as QtiAssessmentItem, R as ResponseVariable } from '../qti-assessment-item-
|
|
2
|
-
export { b as Calculate, M as Multiple, O as Ordered, c as OutcomeVariable, e as QtiMapping, a as ResponseInteraction, d as directedPair, f as float, i as integer } from '../qti-assessment-item-
|
|
3
|
-
import { C as Choices, I as Interaction, Q as QtiRule, a as QtiChoice } from '../qti-simple-choice-
|
|
4
|
-
export { b as InteractionChangedDetails, O as OutcomeChangedDetails, j as QtiChoiceElementSelected, m as QtiChoiceInteraction, l as QtiExtendedTextInteraction, o as QtiHottext, c as QtiInteractionChanged, i as QtiInteractionResponse, h as QtiLooseChoice, q as QtiOutcomeChanged, f as QtiRegisterChoice, g as QtiRegisterHotspot, e as QtiRegisterInteraction, d as QtiRegisterVariable, n as QtiResponseProcessing, p as QtiSimpleChoice, k as QtiTextEntryInteraction } from '../qti-simple-choice-
|
|
1
|
+
import { B as BaseType, C as Cardinality, Q as QtiAssessmentItem, V as VariableDeclaration, R as ResponseVariable } from '../qti-assessment-item-c1eb7de3.js';
|
|
2
|
+
export { b as Calculate, M as Multiple, O as Ordered, c as OutcomeVariable, e as QtiMapping, a as ResponseInteraction, d as directedPair, f as float, i as integer } from '../qti-assessment-item-c1eb7de3.js';
|
|
3
|
+
import { C as Choices, I as Interaction, Q as QtiRule, a as QtiChoice } from '../qti-simple-choice-e28cfb34.js';
|
|
4
|
+
export { b as InteractionChangedDetails, O as OutcomeChangedDetails, j as QtiChoiceElementSelected, m as QtiChoiceInteraction, l as QtiExtendedTextInteraction, o as QtiHottext, c as QtiInteractionChanged, i as QtiInteractionResponse, h as QtiLooseChoice, q as QtiOutcomeChanged, f as QtiRegisterChoice, g as QtiRegisterHotspot, e as QtiRegisterInteraction, d as QtiRegisterVariable, n as QtiResponseProcessing, p as QtiSimpleChoice, k as QtiTextEntryInteraction } from '../qti-simple-choice-e28cfb34.js';
|
|
5
5
|
import * as lit from 'lit';
|
|
6
6
|
import { LitElement, PropertyValueMap } from 'lit';
|
|
7
7
|
import * as lit_html from 'lit-html';
|
|
8
|
-
import {
|
|
8
|
+
import { A as Audience } from '../audience-context-444478f4.js';
|
|
9
9
|
import { ContextConsumer } from '@lit-labs/context';
|
|
10
10
|
import 'lit-html/directives/ref';
|
|
11
11
|
|
|
@@ -49,7 +49,9 @@ declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
52
|
-
|
|
52
|
+
baseType: BaseType;
|
|
53
|
+
identifier: string;
|
|
54
|
+
cardinality: Cardinality;
|
|
53
55
|
get interpolationTable(): any;
|
|
54
56
|
connectedCallback(): void;
|
|
55
57
|
}
|
|
@@ -65,7 +67,7 @@ declare class qtiRubricBlock extends LitElement {
|
|
|
65
67
|
handleclassNamesChange(old: any, disabled: boolean): void;
|
|
66
68
|
static styles: lit.CSSResult;
|
|
67
69
|
logger: ContextConsumer<{
|
|
68
|
-
__context__:
|
|
70
|
+
__context__: Audience;
|
|
69
71
|
}, this>;
|
|
70
72
|
render(): lit_html.TemplateResult<1>;
|
|
71
73
|
connectedCallback(): void;
|
|
@@ -162,10 +164,13 @@ declare class QtiResponseElseIf extends QtiResponseIf {
|
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
declare class QtiExpression<T> extends LitElement {
|
|
167
|
+
protected _error: any[];
|
|
168
|
+
protected set error(val: string);
|
|
169
|
+
static styles: lit.CSSResult;
|
|
165
170
|
render(): lit_html.TemplateResult<1>;
|
|
166
171
|
calculate(): T;
|
|
167
172
|
protected get assessmentItem(): QtiAssessmentItem;
|
|
168
|
-
protected getVariables: () =>
|
|
173
|
+
protected getVariables: () => VariableDeclaration<string | string[]>[];
|
|
169
174
|
}
|
|
170
175
|
|
|
171
176
|
declare class QtiGt extends QtiExpression<boolean> {
|
|
@@ -211,7 +216,7 @@ declare class QtiEqual extends QtiExpression<boolean> {
|
|
|
211
216
|
}
|
|
212
217
|
|
|
213
218
|
declare class QtiEqualRounded extends QtiExpression<boolean> {
|
|
214
|
-
roundingMode:
|
|
219
|
+
roundingMode: 'decimalPlaces' | 'significantFigures';
|
|
215
220
|
get figures(): number;
|
|
216
221
|
calculate(): boolean;
|
|
217
222
|
}
|
|
@@ -251,7 +256,7 @@ declare class QtiMatch extends QtiExpression<boolean> {
|
|
|
251
256
|
|
|
252
257
|
declare class QtiVariable extends QtiExpression<number | string | string[]> {
|
|
253
258
|
render(): lit_html.TemplateResult<1>;
|
|
254
|
-
calculate():
|
|
259
|
+
calculate(): any;
|
|
255
260
|
}
|
|
256
261
|
|
|
257
262
|
declare class QtiMultiple extends QtiExpression<ResponseVariable[]> {
|
|
@@ -266,7 +271,11 @@ declare class QtPrintedVariable extends LitElement {
|
|
|
266
271
|
value: string;
|
|
267
272
|
render(): lit_html.TemplateResult<1>;
|
|
268
273
|
constructor();
|
|
269
|
-
calculate():
|
|
274
|
+
calculate(): any;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare class QtiMember extends QtiExpression<boolean | null> {
|
|
278
|
+
calculate(): boolean;
|
|
270
279
|
}
|
|
271
280
|
|
|
272
281
|
declare class QtiPortableCustomInteraction extends LitElement {
|
|
@@ -548,4 +557,4 @@ declare class QtiHotspotChoice extends QtiChoice {
|
|
|
548
557
|
declare class QtiInlineChoice extends LitElement {
|
|
549
558
|
}
|
|
550
559
|
|
|
551
|
-
export { BaseType, Cardinality, Events, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiCompanionMaterialsInfo, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiVariable, ResponseVariable, qtiContentBody, qtiRubricBlock };
|
|
560
|
+
export { BaseType, Cardinality, Events, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiCompanionMaterialsInfo, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiVariable, ResponseVariable, qtiContentBody, qtiRubricBlock };
|