@citolab/qti-components 6.3.5 → 6.3.7

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 (38) hide show
  1. package/dist/chunk-GKMV5OHL.cjs +1195 -0
  2. package/dist/chunk-KDPWLV2I.js +1195 -0
  3. package/dist/{chunk-LNHTXQXY.js → chunk-Q5WLROU6.js} +394 -2
  4. package/dist/{chunk-LWL4UHCJ.cjs → chunk-WEDIB3NH.cjs} +394 -2
  5. package/dist/custom-elements.json +3004 -2945
  6. package/dist/index.cjs +1721 -264
  7. package/dist/index.css +392 -0
  8. package/dist/index.d.cts +33 -15
  9. package/dist/index.d.ts +33 -15
  10. package/dist/index.js +1721 -264
  11. package/dist/qti-components/index.cjs +2 -2
  12. package/dist/qti-components/index.d.cts +2 -2
  13. package/dist/qti-components/index.d.ts +2 -2
  14. package/dist/qti-components/index.js +2 -2
  15. package/dist/qti-item/index.cjs +1 -1
  16. package/dist/qti-item/index.d.cts +1 -1
  17. package/dist/qti-item/index.d.ts +1 -1
  18. package/dist/qti-item/index.js +1 -1
  19. package/dist/qti-item-react/index.cjs +1 -1
  20. package/dist/qti-item-react/index.d.cts +2 -2
  21. package/dist/qti-item-react/index.d.ts +2 -2
  22. package/dist/qti-item-react/index.js +1 -1
  23. package/dist/{qti-simple-choice-5902cb37.d.ts → qti-simple-choice-1e52645f.d.ts} +1 -1
  24. package/dist/qti-test/index.cjs +1 -1
  25. package/dist/qti-test/index.d.cts +6 -19
  26. package/dist/qti-test/index.d.ts +6 -19
  27. package/dist/qti-test/index.js +1 -1
  28. package/dist/qti-test-39419b1a.d.ts +63 -0
  29. package/dist/qti-test-f4fd5ff3.d.ts +63 -0
  30. package/dist/qti-test-react/index.cjs +1 -1
  31. package/dist/qti-test-react/index.d.cts +24 -13
  32. package/dist/qti-test-react/index.d.ts +24 -13
  33. package/dist/qti-test-react/index.js +1 -1
  34. package/package.json +8 -8
  35. package/dist/chunk-5MW7QEIY.cjs +0 -79
  36. package/dist/chunk-CLTJGOOQ.js +0 -79
  37. package/dist/qti-test-0312b9bb.d.ts +0 -32
  38. package/dist/qti-test-24952460.d.ts +0 -32
package/dist/index.css CHANGED
@@ -46,6 +46,398 @@
46
46
 
47
47
  /* layout, dimensions, design */
48
48
 
49
+ /* ! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com
50
+ */
51
+
52
+ /*
53
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
54
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
55
+ */
56
+
57
+ *,
58
+ ::before,
59
+ ::after {
60
+ box-sizing: border-box; /* 1 */
61
+ border-width: 0; /* 2 */
62
+ border-style: solid; /* 2 */
63
+ border-color: #e5e7eb; /* 2 */
64
+ }
65
+
66
+ ::before,
67
+ ::after {
68
+ --tw-content: '';
69
+ }
70
+
71
+ /*
72
+ 1. Use a consistent sensible line-height in all browsers.
73
+ 2. Prevent adjustments of font size after orientation changes in iOS.
74
+ 3. Use a more readable tab size.
75
+ 4. Use the user's configured `sans` font-family by default.
76
+ 5. Use the user's configured `sans` font-feature-settings by default.
77
+ 6. Use the user's configured `sans` font-variation-settings by default.
78
+ */
79
+
80
+ html {
81
+ line-height: 1.5; /* 1 */
82
+ -webkit-text-size-adjust: 100%; /* 2 */
83
+ -moz-tab-size: 4; /* 3 */
84
+ -o-tab-size: 4;
85
+ tab-size: 4; /* 3 */
86
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
87
+ font-feature-settings: normal; /* 5 */
88
+ font-variation-settings: normal; /* 6 */
89
+ }
90
+
91
+ /*
92
+ 1. Remove the margin in all browsers.
93
+ 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
94
+ */
95
+
96
+ body {
97
+ margin: 0; /* 1 */
98
+ line-height: inherit; /* 2 */
99
+ }
100
+
101
+ /*
102
+ 1. Add the correct height in Firefox.
103
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
104
+ 3. Ensure horizontal rules are visible by default.
105
+ */
106
+
107
+ hr {
108
+ height: 0; /* 1 */
109
+ color: inherit; /* 2 */
110
+ border-top-width: 1px; /* 3 */
111
+ }
112
+
113
+ /*
114
+ Add the correct text decoration in Chrome, Edge, and Safari.
115
+ */
116
+
117
+ abbr:where([title]) {
118
+ -webkit-text-decoration: underline dotted;
119
+ text-decoration: underline dotted;
120
+ }
121
+
122
+ /*
123
+ Remove the default font size and weight for headings.
124
+ */
125
+
126
+ h1,
127
+ h2,
128
+ h3,
129
+ h4,
130
+ h5,
131
+ h6 {
132
+ font-size: inherit;
133
+ font-weight: inherit;
134
+ }
135
+
136
+ /*
137
+ Reset links to optimize for opt-in styling instead of opt-out.
138
+ */
139
+
140
+ a {
141
+ color: inherit;
142
+ text-decoration: inherit;
143
+ }
144
+
145
+ /*
146
+ Add the correct font weight in Edge and Safari.
147
+ */
148
+
149
+ b,
150
+ strong {
151
+ font-weight: bolder;
152
+ }
153
+
154
+ /*
155
+ 1. Use the user's configured `mono` font family by default.
156
+ 2. Correct the odd `em` font sizing in all browsers.
157
+ */
158
+
159
+ code,
160
+ kbd,
161
+ samp,
162
+ pre {
163
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
164
+ font-size: 1em; /* 2 */
165
+ }
166
+
167
+ /*
168
+ Add the correct font size in all browsers.
169
+ */
170
+
171
+ small {
172
+ font-size: 80%;
173
+ }
174
+
175
+ /*
176
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
177
+ */
178
+
179
+ sub,
180
+ sup {
181
+ font-size: 75%;
182
+ line-height: 0;
183
+ position: relative;
184
+ vertical-align: baseline;
185
+ }
186
+
187
+ sub {
188
+ bottom: -0.25em;
189
+ }
190
+
191
+ sup {
192
+ top: -0.5em;
193
+ }
194
+
195
+ /*
196
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
197
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
198
+ 3. Remove gaps between table borders by default.
199
+ */
200
+
201
+ table {
202
+ text-indent: 0; /* 1 */
203
+ border-color: inherit; /* 2 */
204
+ border-collapse: collapse; /* 3 */
205
+ }
206
+
207
+ /*
208
+ 1. Change the font styles in all browsers.
209
+ 2. Remove the margin in Firefox and Safari.
210
+ 3. Remove default padding in all browsers.
211
+ */
212
+
213
+ button,
214
+ input,
215
+ optgroup,
216
+ select,
217
+ textarea {
218
+ font-family: inherit; /* 1 */
219
+ font-feature-settings: inherit; /* 1 */
220
+ font-variation-settings: inherit; /* 1 */
221
+ font-size: 100%; /* 1 */
222
+ font-weight: inherit; /* 1 */
223
+ line-height: inherit; /* 1 */
224
+ color: inherit; /* 1 */
225
+ margin: 0; /* 2 */
226
+ padding: 0; /* 3 */
227
+ }
228
+
229
+ /*
230
+ Remove the inheritance of text transform in Edge and Firefox.
231
+ */
232
+
233
+ button,
234
+ select {
235
+ text-transform: none;
236
+ }
237
+
238
+ /*
239
+ 1. Correct the inability to style clickable types in iOS and Safari.
240
+ 2. Remove default button styles.
241
+ */
242
+
243
+ button,
244
+ [type='button'],
245
+ [type='reset'],
246
+ [type='submit'] {
247
+ -webkit-appearance: button; /* 1 */
248
+ background-color: transparent; /* 2 */
249
+ background-image: none; /* 2 */
250
+ }
251
+
252
+ /*
253
+ Use the modern Firefox focus style for all focusable elements.
254
+ */
255
+
256
+ :-moz-focusring {
257
+ outline: auto;
258
+ }
259
+
260
+ /*
261
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
262
+ */
263
+
264
+ :-moz-ui-invalid {
265
+ box-shadow: none;
266
+ }
267
+
268
+ /*
269
+ Add the correct vertical alignment in Chrome and Firefox.
270
+ */
271
+
272
+ progress {
273
+ vertical-align: baseline;
274
+ }
275
+
276
+ /*
277
+ Correct the cursor style of increment and decrement buttons in Safari.
278
+ */
279
+
280
+ ::-webkit-inner-spin-button,
281
+ ::-webkit-outer-spin-button {
282
+ height: auto;
283
+ }
284
+
285
+ /*
286
+ 1. Correct the odd appearance in Chrome and Safari.
287
+ 2. Correct the outline style in Safari.
288
+ */
289
+
290
+ [type='search'] {
291
+ -webkit-appearance: textfield; /* 1 */
292
+ outline-offset: -2px; /* 2 */
293
+ }
294
+
295
+ /*
296
+ Remove the inner padding in Chrome and Safari on macOS.
297
+ */
298
+
299
+ ::-webkit-search-decoration {
300
+ -webkit-appearance: none;
301
+ }
302
+
303
+ /*
304
+ 1. Correct the inability to style clickable types in iOS and Safari.
305
+ 2. Change font properties to `inherit` in Safari.
306
+ */
307
+
308
+ ::-webkit-file-upload-button {
309
+ -webkit-appearance: button; /* 1 */
310
+ font: inherit; /* 2 */
311
+ }
312
+
313
+ /*
314
+ Add the correct display in Chrome and Safari.
315
+ */
316
+
317
+ summary {
318
+ display: list-item;
319
+ }
320
+
321
+ /*
322
+ Removes the default spacing and border for appropriate elements.
323
+ */
324
+
325
+ blockquote,
326
+ dl,
327
+ dd,
328
+ h1,
329
+ h2,
330
+ h3,
331
+ h4,
332
+ h5,
333
+ h6,
334
+ hr,
335
+ figure,
336
+ p,
337
+ pre {
338
+ margin: 0;
339
+ }
340
+
341
+ fieldset {
342
+ margin: 0;
343
+ padding: 0;
344
+ }
345
+
346
+ legend {
347
+ padding: 0;
348
+ }
349
+
350
+ ol,
351
+ ul,
352
+ menu {
353
+ list-style: none;
354
+ margin: 0;
355
+ padding: 0;
356
+ }
357
+
358
+ /*
359
+ Reset default styling for dialogs.
360
+ */
361
+
362
+ dialog {
363
+ padding: 0;
364
+ }
365
+
366
+ /*
367
+ Prevent resizing textareas horizontally by default.
368
+ */
369
+
370
+ textarea {
371
+ resize: vertical;
372
+ }
373
+
374
+ /*
375
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
376
+ 2. Set the default placeholder color to the user's configured gray 400 color.
377
+ */
378
+
379
+ input::-moz-placeholder, textarea::-moz-placeholder {
380
+ opacity: 1; /* 1 */
381
+ color: #9ca3af; /* 2 */
382
+ }
383
+
384
+ input::placeholder,
385
+ textarea::placeholder {
386
+ opacity: 1; /* 1 */
387
+ color: #9ca3af; /* 2 */
388
+ }
389
+
390
+ /*
391
+ Set the default cursor for buttons.
392
+ */
393
+
394
+ button,
395
+ [role="button"] {
396
+ cursor: pointer;
397
+ }
398
+
399
+ /*
400
+ Make sure disabled buttons don't get the pointer cursor.
401
+ */
402
+
403
+ :disabled {
404
+ cursor: default;
405
+ }
406
+
407
+ /*
408
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
409
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
410
+ This can trigger a poorly considered lint error in some tools but is included by design.
411
+ */
412
+
413
+ img,
414
+ svg,
415
+ video,
416
+ canvas,
417
+ audio,
418
+ iframe,
419
+ embed,
420
+ object {
421
+ display: block; /* 1 */
422
+ vertical-align: middle; /* 2 */
423
+ }
424
+
425
+ /*
426
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
427
+ */
428
+
429
+ img,
430
+ video {
431
+ max-width: 100%;
432
+ height: auto;
433
+ }
434
+
435
+ /* Make elements with the HTML hidden attribute stay hidden by default */
436
+
437
+ [hidden] {
438
+ display: none;
439
+ }
440
+
49
441
  /** default styles for all components */
50
442
 
51
443
  *, ::before, ::after{
package/dist/index.d.cts CHANGED
@@ -539,7 +539,7 @@ declare class QtiResponseProcessing extends LitElement {
539
539
  }
540
540
  declare global {
541
541
  interface HTMLElementTagNameMap {
542
- 'qti-response-processing': QtiResponseProcessing;
542
+ 'qti-response-processed': QtiResponseProcessing;
543
543
  }
544
544
  }
545
545
 
@@ -1076,42 +1076,60 @@ declare class QtiAssessmentItemRef extends QtiItem {
1076
1076
  connectedCallback(): void;
1077
1077
  }
1078
1078
 
1079
- interface ItemInfo {
1080
- href: string;
1081
- }
1082
1079
  declare class TestContext {
1083
1080
  itemIndex: number | null;
1084
- items: (ItemContext & ItemInfo)[];
1081
+ items: ItemContext[];
1085
1082
  }
1083
+ declare const testContext: {
1084
+ __context__: TestContext;
1085
+ };
1086
1086
 
1087
1087
  declare class QtiAssessmentTest extends LitElement {
1088
- context: TestContext;
1088
+ private _initialValue;
1089
+ identifier: string;
1090
+ private _context;
1091
+ get context(): TestContext;
1092
+ set context(value: TestContext);
1089
1093
  itemRefEls: Map<string, QtiAssessmentItemRef>;
1090
1094
  private copyItemVariables;
1095
+ restoreContext: (contextToRestore: TestContext) => void;
1091
1096
  getAssessmentItem(identifier: string): QtiAssessmentItem;
1092
1097
  private onItemRefRegistered;
1093
1098
  private onTestRequestItem;
1094
1099
  firstUpdated(a: any): void;
1100
+ updated(changedProperties: Map<string, any>): void;
1095
1101
  constructor();
1096
1102
  private itemConnected;
1097
1103
  private _requestItem;
1104
+ private _emit;
1098
1105
  render(): lit_html.TemplateResult<1>;
1099
1106
  }
1100
1107
 
1101
1108
  declare class QtiTestPart extends LitElement {
1109
+ loading: boolean;
1102
1110
  private _navigationMode;
1103
1111
  render(): lit_html.TemplateResult<1>;
1104
1112
  }
1105
1113
 
1106
1114
  declare class QtiTest extends LitElement {
1107
- private _navigationMode;
1108
- private assessmentTestURI;
1109
- loadedItems: any[];
1110
- itemRefEls: {
1111
- current: Map<string, QtiAssessmentItemRef>;
1112
- };
1113
- controller: AbortController;
1114
- requestItem(identifier: string): void;
1115
+ _qtiTestPart: any;
1116
+ private content;
1117
+ private _items;
1118
+ private _itemRefEls;
1119
+ private _controller;
1120
+ packageURI: string;
1121
+ private _itemLocation;
1122
+ private _assessmentTestEl;
1123
+ set context(value: any);
1124
+ get context(): any;
1125
+ updated(changedProperties: Map<string, any>): void;
1126
+ private static _testFromImsmanifest;
1127
+ private static _itemsFromAssessmentTest;
1128
+ fetchData: () => Promise<void>;
1129
+ connectedCallback(): void;
1130
+ getAssessmentTest(): QtiAssessmentTest;
1131
+ set css(val: string);
1132
+ requestItem(identifier: string, oldIdentifier: string): Promise<void>;
1115
1133
  render(): lit_html.TemplateResult<1>;
1116
1134
  }
1117
1135
 
@@ -1182,4 +1200,4 @@ declare class QtiTestPrintScore extends LitElement {
1182
1200
  render(): lit_html.TemplateResult<1>;
1183
1201
  }
1184
1202
 
1185
- export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, ItemContext, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentTest, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiPrintVariables, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTest, QtiTestPagingButtons, QtiTestPagingRadio, QtiTestPart, QtiTestPrintScore, QtiTestProgress, QtiTestShowCorrect, QtiTestSlider, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, TestNext, TestPrev, TestScript, TestShowIndex, VariableDeclaration, directedPair, float, integer, itemContext, qtiContentBody, qtiRubricBlock, qtiTransform };
1203
+ export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, ItemContext, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentTest, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiPrintVariables, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTest, QtiTestPagingButtons, QtiTestPagingRadio, QtiTestPart, QtiTestPrintScore, QtiTestProgress, QtiTestShowCorrect, QtiTestSlider, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, TestContext, TestNext, TestPrev, TestScript, TestShowIndex, VariableDeclaration, directedPair, float, integer, itemContext, qtiContentBody, qtiRubricBlock, qtiTransform, testContext };
package/dist/index.d.ts CHANGED
@@ -539,7 +539,7 @@ declare class QtiResponseProcessing extends LitElement {
539
539
  }
540
540
  declare global {
541
541
  interface HTMLElementTagNameMap {
542
- 'qti-response-processing': QtiResponseProcessing;
542
+ 'qti-response-processed': QtiResponseProcessing;
543
543
  }
544
544
  }
545
545
 
@@ -1076,42 +1076,60 @@ declare class QtiAssessmentItemRef extends QtiItem {
1076
1076
  connectedCallback(): void;
1077
1077
  }
1078
1078
 
1079
- interface ItemInfo {
1080
- href: string;
1081
- }
1082
1079
  declare class TestContext {
1083
1080
  itemIndex: number | null;
1084
- items: (ItemContext & ItemInfo)[];
1081
+ items: ItemContext[];
1085
1082
  }
1083
+ declare const testContext: {
1084
+ __context__: TestContext;
1085
+ };
1086
1086
 
1087
1087
  declare class QtiAssessmentTest extends LitElement {
1088
- context: TestContext;
1088
+ private _initialValue;
1089
+ identifier: string;
1090
+ private _context;
1091
+ get context(): TestContext;
1092
+ set context(value: TestContext);
1089
1093
  itemRefEls: Map<string, QtiAssessmentItemRef>;
1090
1094
  private copyItemVariables;
1095
+ restoreContext: (contextToRestore: TestContext) => void;
1091
1096
  getAssessmentItem(identifier: string): QtiAssessmentItem;
1092
1097
  private onItemRefRegistered;
1093
1098
  private onTestRequestItem;
1094
1099
  firstUpdated(a: any): void;
1100
+ updated(changedProperties: Map<string, any>): void;
1095
1101
  constructor();
1096
1102
  private itemConnected;
1097
1103
  private _requestItem;
1104
+ private _emit;
1098
1105
  render(): lit_html.TemplateResult<1>;
1099
1106
  }
1100
1107
 
1101
1108
  declare class QtiTestPart extends LitElement {
1109
+ loading: boolean;
1102
1110
  private _navigationMode;
1103
1111
  render(): lit_html.TemplateResult<1>;
1104
1112
  }
1105
1113
 
1106
1114
  declare class QtiTest extends LitElement {
1107
- private _navigationMode;
1108
- private assessmentTestURI;
1109
- loadedItems: any[];
1110
- itemRefEls: {
1111
- current: Map<string, QtiAssessmentItemRef>;
1112
- };
1113
- controller: AbortController;
1114
- requestItem(identifier: string): void;
1115
+ _qtiTestPart: any;
1116
+ private content;
1117
+ private _items;
1118
+ private _itemRefEls;
1119
+ private _controller;
1120
+ packageURI: string;
1121
+ private _itemLocation;
1122
+ private _assessmentTestEl;
1123
+ set context(value: any);
1124
+ get context(): any;
1125
+ updated(changedProperties: Map<string, any>): void;
1126
+ private static _testFromImsmanifest;
1127
+ private static _itemsFromAssessmentTest;
1128
+ fetchData: () => Promise<void>;
1129
+ connectedCallback(): void;
1130
+ getAssessmentTest(): QtiAssessmentTest;
1131
+ set css(val: string);
1132
+ requestItem(identifier: string, oldIdentifier: string): Promise<void>;
1115
1133
  render(): lit_html.TemplateResult<1>;
1116
1134
  }
1117
1135
 
@@ -1182,4 +1200,4 @@ declare class QtiTestPrintScore extends LitElement {
1182
1200
  render(): lit_html.TemplateResult<1>;
1183
1201
  }
1184
1202
 
1185
- export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, ItemContext, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentTest, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiPrintVariables, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTest, QtiTestPagingButtons, QtiTestPagingRadio, QtiTestPart, QtiTestPrintScore, QtiTestProgress, QtiTestShowCorrect, QtiTestSlider, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, TestNext, TestPrev, TestScript, TestShowIndex, VariableDeclaration, directedPair, float, integer, itemContext, qtiContentBody, qtiRubricBlock, qtiTransform };
1203
+ export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, ItemContext, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentTest, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiPrintVariables, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTest, QtiTestPagingButtons, QtiTestPagingRadio, QtiTestPart, QtiTestPrintScore, QtiTestProgress, QtiTestShowCorrect, QtiTestSlider, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, TestContext, TestNext, TestPrev, TestScript, TestShowIndex, VariableDeclaration, directedPair, float, integer, itemContext, qtiContentBody, qtiRubricBlock, qtiTransform, testContext };