@citolab/qti-components 6.0.20 → 6.0.23

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.
Files changed (47) hide show
  1. package/dist/audience-context-444478f4.d.ts +8 -0
  2. package/dist/chunk-3O4URV5U.cjs +1 -0
  3. package/dist/chunk-5GG2XAUT.js +1 -0
  4. package/dist/chunk-6RJ7J4AE.cjs +1 -0
  5. package/dist/{chunk-5RZQOWDC.js → chunk-EHTDKAYF.js} +27 -5
  6. package/dist/chunk-GGEPFBR7.cjs +1 -0
  7. package/dist/chunk-HOQW4KDA.cjs +1 -0
  8. package/dist/{chunk-AQI672QR.js → chunk-VI35S4EM.cjs} +28 -6
  9. package/dist/context/index.cjs +1 -0
  10. package/dist/context/index.d.cts +1 -0
  11. package/dist/context/index.d.ts +1 -1
  12. package/dist/context/index.js +1 -1
  13. package/dist/custom-elements.json +653 -600
  14. package/dist/decorators/index.cjs +1 -0
  15. package/dist/decorators/index.d.cts +37 -0
  16. package/dist/index.cjs +2911 -0
  17. package/dist/index.css +25 -3
  18. package/dist/index.d.cts +1052 -0
  19. package/dist/index.d.ts +38 -41
  20. package/dist/index.js +98 -66
  21. package/dist/{qti-assessment-item-f1fcf393.d.ts → qti-assessment-item-e8a67444.d.ts} +17 -28
  22. package/dist/qti-components/index.cjs +419 -0
  23. package/dist/qti-components/index.d.cts +561 -0
  24. package/dist/qti-components/index.d.ts +24 -14
  25. package/dist/qti-components/index.js +76 -66
  26. package/dist/qti-item/index.cjs +1 -0
  27. package/dist/qti-item/index.d.cts +4 -0
  28. package/dist/qti-item/index.d.ts +2 -2
  29. package/dist/qti-item/index.js +1 -1
  30. package/dist/{qti-item-8c26fa9e.d.ts → qti-item-77742afa.d.ts} +1 -1
  31. package/dist/qti-item-react/index.cjs +1 -0
  32. package/dist/qti-item-react/index.d.cts +30 -0
  33. package/dist/qti-item-react/index.d.ts +3 -3
  34. package/dist/qti-item-react/index.js +1 -1
  35. package/dist/{qti-simple-choice-3e910d03.d.ts → qti-simple-choice-b4b79072.d.ts} +2 -2
  36. package/dist/qti-transform/index.cjs +17 -0
  37. package/dist/qti-transform/index.d.cts +17 -0
  38. package/package.json +25 -15
  39. package/dist/chunk-FIJLDR56.js +0 -2204
  40. package/dist/chunk-HQKT4SJF.js +0 -1
  41. package/dist/chunk-RPGALUIV.js +0 -1
  42. package/dist/chunk-UD6XWG6V.js +0 -2205
  43. package/dist/context-a957e50e.d.ts +0 -9
  44. package/dist/qti-assessment-item-68bcc951.d.ts +0 -121
  45. package/dist/qti-item-e1fc6a70.d.ts +0 -30
  46. package/dist/qti-simple-choice-ca9b86db.d.ts +0 -352
  47. package/dist/qti-simple-choice-d1392d78.d.ts +0 -352
@@ -0,0 +1,561 @@
1
+ import { B as BaseType, C as Cardinality, Q as QtiAssessmentItem, V as VariableDeclaration, R as ResponseVariable } from '../qti-assessment-item-e8a67444.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-e8a67444.js';
3
+ import { C as Choices, I as Interaction, Q as QtiRule, a as QtiChoice } from '../qti-simple-choice-b4b79072.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-b4b79072.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 abstract 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<number | string | string[] | undefined>[];
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(): string | number | string[];
260
+ }
261
+
262
+ declare class QtiMultiple extends QtiExpression<VariableDeclaration<string | string[]>[]> {
263
+ calculate(): ResponseVariable[];
264
+ }
265
+
266
+ declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
267
+ calculate(): ResponseVariable[];
268
+ }
269
+
270
+ declare class QtPrintedVariable extends LitElement {
271
+ identifier: string;
272
+ value: string | string[] | number;
273
+ render(): lit_html.TemplateResult<1>;
274
+ constructor();
275
+ calculate(): string | string[] | number;
276
+ }
277
+
278
+ declare class QtiMember extends QtiExpression<boolean | null> {
279
+ calculate(): boolean;
280
+ }
281
+
282
+ declare class QtiPortableCustomInteraction extends LitElement {
283
+ private responseIdentifier;
284
+ private module;
285
+ private customInteractionTypeIdentifier;
286
+ private baseUrl;
287
+ private _errorMessage;
288
+ static get properties(): {
289
+ responseIdentifier: {
290
+ type: StringConstructor;
291
+ attribute: string;
292
+ };
293
+ module: {
294
+ type: StringConstructor;
295
+ attribute: string;
296
+ };
297
+ customInteractionTypeIdentifier: {
298
+ type: StringConstructor;
299
+ attribute: string;
300
+ };
301
+ baseUrl: {
302
+ type: StringConstructor;
303
+ attribute: string;
304
+ };
305
+ _errorMessage: {
306
+ type: StringConstructor;
307
+ state: boolean;
308
+ };
309
+ };
310
+ getTAOConfig(node: any): {} | void;
311
+ register(item: any): void;
312
+ connectedCallback(): void;
313
+ render(): lit_html.TemplateResult<1>;
314
+ }
315
+
316
+ interface IInteraction {
317
+ disabled: boolean;
318
+ readonly: boolean;
319
+ response: string | string[];
320
+ reset(): any;
321
+ validate(): boolean;
322
+ }
323
+
324
+ declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
325
+ declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
326
+ private _childrenMap;
327
+ static styles: lit.CSSResult;
328
+ render(): lit_html.TemplateResult<1>;
329
+ connectedCallback(): void;
330
+ }
331
+
332
+ declare const QtiGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
333
+ declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
334
+ static styles: lit.CSSResult[];
335
+ render(): lit_html.TemplateResult<1>;
336
+ }
337
+
338
+ declare class QtiGraphicAssociateInteraction extends Interaction {
339
+ choiceOrdering: boolean;
340
+ hotspots: any;
341
+ startPoint: any;
342
+ endPoint: any;
343
+ _lines: any[];
344
+ startCoord: {
345
+ x: any;
346
+ y: any;
347
+ };
348
+ mouseCoord: {
349
+ x: number;
350
+ y: number;
351
+ };
352
+ svgContainer: any;
353
+ grImage: any;
354
+ static styles: lit.CSSResult[];
355
+ svg: SVGSVGElement;
356
+ constructor();
357
+ reset(): void;
358
+ validate(): boolean;
359
+ set response(val: string | string[]);
360
+ render(): lit_html.TemplateResult<1>;
361
+ private positionHotspotOnRegister;
362
+ firstUpdated(e: any): void;
363
+ disconnectedCallback(): void;
364
+ }
365
+
366
+ declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
367
+ declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
368
+ static styles: lit.CSSResult;
369
+ render(): lit_html.TemplateResult<1>;
370
+ private positionHotspotOnRegister;
371
+ connectedCallback(): void;
372
+ disconnectedCallback(): void;
373
+ }
374
+
375
+ declare class QtiGraphicOrderInteraction extends Choices {
376
+ choiceOrdering: boolean;
377
+ static styles: lit.CSSResult[];
378
+ render(): lit_html.TemplateResult<1>;
379
+ private setHotspotOrder;
380
+ private positionHotspotOnRegister;
381
+ connectedCallback(): void;
382
+ disconnectedCallback(): void;
383
+ }
384
+
385
+ declare class QtiHotspotInteraction extends Choices {
386
+ static styles: lit.CSSResult[];
387
+ render(): lit_html.TemplateResult<1>;
388
+ private positionHotspotOnRegister;
389
+ connectedCallback(): void;
390
+ disconnectedCallback(): void;
391
+ }
392
+
393
+ declare class QtiSimpleAssociableChoice extends LitElement {
394
+ connectedCallback(): void;
395
+ render(): lit_html.TemplateResult<1>;
396
+ }
397
+
398
+ declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
399
+ declare class QtiMatchInteraction extends QtiMatchInteraction_base {
400
+ static styles: any[];
401
+ rows: Element[];
402
+ cols: Element[];
403
+ connectedCallback(): void;
404
+ render(): lit_html.TemplateResult<1>;
405
+ }
406
+
407
+ declare class QtiMediaInteraction extends Interaction {
408
+ value: number;
409
+ reset(): void;
410
+ validate(): boolean;
411
+ set response(val: undefined);
412
+ static get properties(): {
413
+ step: {
414
+ type: NumberConstructor;
415
+ attribute: string;
416
+ default: number;
417
+ };
418
+ };
419
+ static styles: lit.CSSResult[];
420
+ render(): lit_html.TemplateResult<1>;
421
+ constructor();
422
+ connectedCallback(): void;
423
+ }
424
+
425
+ declare const QtiOrderInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
426
+ declare class QtiOrderInteraction extends QtiOrderInteraction_base {
427
+ childrenMap: Element[];
428
+ private _classNames;
429
+ private _orientation;
430
+ static layoutClass: string[];
431
+ /** orientation of choices */
432
+ orientation: 'horizontal' | 'vertical';
433
+ static styles: lit.CSSResult[];
434
+ render(): lit_html.TemplateResult<1>;
435
+ connectedCallback(): void;
436
+ }
437
+
438
+ declare class QtiSPositionObjectInteraction extends LitElement {
439
+ render(): lit_html.TemplateResult<1>;
440
+ static styles: lit.CSSResult[];
441
+ }
442
+
443
+ declare class QtiPositionObjectStage extends LitElement {
444
+ choiceOrdering: boolean;
445
+ startX: any;
446
+ startY: any;
447
+ dragElement: any;
448
+ render(): lit_html.TemplateResult<1>;
449
+ static styles: lit.CSSResult[];
450
+ constructor();
451
+ dragElementHandler(event: any): void;
452
+ connectedCallback(): void;
453
+ removeMoveListener(event: any): void;
454
+ disconnectedCallback(): void;
455
+ }
456
+
457
+ declare class QtiSelectPointInteraction extends Interaction {
458
+ maxChoices: number;
459
+ minChoices: number;
460
+ private _points;
461
+ render(): lit_html.TemplateResult<1>;
462
+ static styles: lit.CSSResult[];
463
+ reset(): void;
464
+ validate(): boolean;
465
+ set response(val: string | string[]);
466
+ connectedCallback(): void;
467
+ disconnectedCallback(): void;
468
+ }
469
+
470
+ /**
471
+ * @summary The SliderInteraction.Type (qti-slider-interaction) presents the candidate with a control for selecting a numerical value between a lower and upper bound.
472
+ * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.s61xcrj4qcyj
473
+ * @status stable
474
+ * @since 6.0
475
+ *
476
+ * @event qti-register-interaction - emitted when the interaction wants to register itself
477
+ * @event qti-interaction-response - emitted when the interaction changes
478
+ *
479
+ * @cssprop --show-value - shows the current value while sliding
480
+ * @cssprop --show-ticks - shows the ticks according to steps
481
+ * @cssprop --show-bounds - shows value for lower and upper boundary
482
+ *
483
+ * @csspart slider -- slider inluding, bounds and ticks and value, use it for paddings and margins
484
+ * @csspart bounds -- div for bounds, containing two divs for with min, and max bounds value
485
+ * @csspart ticks -- div for ticks, use lineair gradient and exposed css variables for styling
486
+ * @csspart rail -- div for rail, style according to needs
487
+ * @csspart knob -- div, should be relative or absolute
488
+ * @csspart value -- div, containing value
489
+ *
490
+ * @slot - The default slot where <qti-simple-choice> must be placed.
491
+ * @slot prompt - slot where the prompt is placed.
492
+ */
493
+ declare class QtiSliderInteraction extends Interaction {
494
+ csLive: CSSStyleDeclaration;
495
+ private _knob;
496
+ private _rail;
497
+ value: number;
498
+ stepLabel: boolean;
499
+ reverse: boolean;
500
+ private _min;
501
+ set min(value: number);
502
+ get min(): number;
503
+ private _max;
504
+ set max(value: number);
505
+ get max(): number;
506
+ private _step;
507
+ set step(value: number);
508
+ get step(): number;
509
+ _handleDisabledChange: (old: any, disabled: any) => void;
510
+ _handleReadonlyChange: (old: any, readonly: any) => void;
511
+ reset(): void;
512
+ validate(): boolean;
513
+ constructor();
514
+ set response(myResponse: string | string[]);
515
+ static styles: lit.CSSResult[];
516
+ render(): lit_html.TemplateResult<1>;
517
+ connectedCallback(): void;
518
+ private _onTouchMove;
519
+ private _onMouseDown;
520
+ /** calculateValue gets x position and compares this with the total width in pixels */
521
+ private calculateValue;
522
+ private getPositionFromEvent;
523
+ }
524
+
525
+ declare class QtiEndAttemptInteraction extends LitElement {
526
+ title: 'end attempt';
527
+ render(): lit_html.TemplateResult<1>;
528
+ endAttempt(e: Event): void;
529
+ }
530
+
531
+ declare class QtiAssociableHotspot extends LitElement {
532
+ connectedCallback(): void;
533
+ static styles: lit.CSSResult;
534
+ render(): lit_html.TemplateResult<1>;
535
+ }
536
+
537
+ declare class QtiGapImg extends LitElement {
538
+ tabindex: number | undefined;
539
+ connectedCallback(): void;
540
+ }
541
+
542
+ declare class QtiGapText extends LitElement {
543
+ tabindex: number | undefined;
544
+ connectedCallback(): void;
545
+ render(): lit_html.TemplateResult<1>;
546
+ }
547
+
548
+ declare class QtiGap extends LitElement {
549
+ tabindex: number | undefined;
550
+ render(): lit_html.TemplateResult<1>;
551
+ }
552
+
553
+ declare class QtiHotspotChoice extends QtiChoice {
554
+ order: number;
555
+ static styles: lit.CSSResult;
556
+ }
557
+
558
+ declare class QtiInlineChoice extends LitElement {
559
+ }
560
+
561
+ 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-68bcc951.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-68bcc951.js';
3
- import { C as Choices, I as Interaction, Q as QtiRule, a as QtiChoice } from '../qti-simple-choice-3e910d03.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-3e910d03.js';
1
+ import { B as BaseType, C as Cardinality, Q as QtiAssessmentItem, V as VariableDeclaration, R as ResponseVariable } from '../qti-assessment-item-e8a67444.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-e8a67444.js';
3
+ import { C as Choices, I as Interaction, Q as QtiRule, a as QtiChoice } from '../qti-simple-choice-b4b79072.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-b4b79072.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 { L as Logger } from '../context-a957e50e.js';
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
- static get observedAttributes(): string[];
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__: Logger;
70
+ __context__: Audience;
69
71
  }, this>;
70
72
  render(): lit_html.TemplateResult<1>;
71
73
  connectedCallback(): void;
@@ -161,11 +163,14 @@ declare class QtiResponseElseIf extends QtiResponseIf {
161
163
  render(): lit_html.TemplateResult<1>;
162
164
  }
163
165
 
164
- declare class QtiExpression<T> extends LitElement {
166
+ declare abstract 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: () => ResponseVariable[];
173
+ protected getVariables: () => VariableDeclaration<number | string | string[] | undefined>[];
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: "decimalPlaces" | "significantFigures";
219
+ roundingMode: 'decimalPlaces' | 'significantFigures';
215
220
  get figures(): number;
216
221
  calculate(): boolean;
217
222
  }
@@ -254,7 +259,7 @@ declare class QtiVariable extends QtiExpression<number | string | string[]> {
254
259
  calculate(): string | number | string[];
255
260
  }
256
261
 
257
- declare class QtiMultiple extends QtiExpression<ResponseVariable[]> {
262
+ declare class QtiMultiple extends QtiExpression<VariableDeclaration<string | string[]>[]> {
258
263
  calculate(): ResponseVariable[];
259
264
  }
260
265
 
@@ -263,10 +268,15 @@ declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
263
268
  }
264
269
 
265
270
  declare class QtPrintedVariable extends LitElement {
266
- value: string;
271
+ identifier: string;
272
+ value: string | string[] | number;
267
273
  render(): lit_html.TemplateResult<1>;
268
274
  constructor();
269
- calculate(): string | number | string[];
275
+ calculate(): string | string[] | number;
276
+ }
277
+
278
+ declare class QtiMember extends QtiExpression<boolean | null> {
279
+ calculate(): boolean;
270
280
  }
271
281
 
272
282
  declare class QtiPortableCustomInteraction extends LitElement {
@@ -548,4 +558,4 @@ declare class QtiHotspotChoice extends QtiChoice {
548
558
  declare class QtiInlineChoice extends LitElement {
549
559
  }
550
560
 
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 };
561
+ 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 };