@citolab/qti-components 10.0.0-next.3 → 10.0.0-next.30

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 (94) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +4334 -2688
  3. package/dist/base.d.ts +39 -13
  4. package/dist/base.js +14 -1
  5. package/dist/{chunk-D3BYGEQU.js → chunk-2ZT47EUK.js} +117 -92
  6. package/dist/chunk-2ZT47EUK.js.map +1 -0
  7. package/dist/{chunk-RU6332MD.js → chunk-566LB3G2.js} +4 -4
  8. package/dist/{chunk-MI7774NV.js → chunk-5BP2A7BI.js} +2 -2
  9. package/dist/{chunk-OQDBARD5.js → chunk-5KNTKBP6.js} +2 -2
  10. package/dist/chunk-7ISPUOJG.js +209 -0
  11. package/dist/chunk-7ISPUOJG.js.map +1 -0
  12. package/dist/{chunk-GBZNFSFY.js → chunk-ADTCTKXS.js} +2 -2
  13. package/dist/{chunk-FD4AB6TM.js → chunk-BBP7QV32.js} +2 -2
  14. package/dist/{chunk-LFVPS7KB.js → chunk-CFTWXYBO.js} +2 -2
  15. package/dist/{chunk-35WWWFS6.js → chunk-DAESCCLR.js} +2 -2
  16. package/dist/chunk-DJ7PB252.js +7 -0
  17. package/dist/chunk-DJ7PB252.js.map +1 -0
  18. package/dist/{chunk-6U3YPHXU.js → chunk-GAPMCYR5.js} +277 -154
  19. package/dist/chunk-GAPMCYR5.js.map +1 -0
  20. package/dist/{chunk-TDWJ6WZA.js → chunk-GPC53O7P.js} +166 -10
  21. package/dist/chunk-GPC53O7P.js.map +1 -0
  22. package/dist/{chunk-6K3QWJHH.js → chunk-LPYZVKHX.js} +48 -7
  23. package/dist/chunk-LPYZVKHX.js.map +1 -0
  24. package/dist/{chunk-TLAVOBEM.js → chunk-O2XRZPKA.js} +356 -62
  25. package/dist/chunk-O2XRZPKA.js.map +1 -0
  26. package/dist/chunk-PZ5AY32C.js +10 -0
  27. package/dist/chunk-PZ5AY32C.js.map +1 -0
  28. package/dist/{chunk-RSMYGGQK.js → chunk-TZCOXFPB.js} +1590 -610
  29. package/dist/chunk-TZCOXFPB.js.map +1 -0
  30. package/dist/chunk-UCXLDQYA.js +56 -0
  31. package/dist/chunk-UCXLDQYA.js.map +1 -0
  32. package/dist/chunk-WWY2H2YO.js +7 -0
  33. package/dist/chunk-WWY2H2YO.js.map +1 -0
  34. package/dist/{chunk-SIE3E4FG.js → chunk-YRR6D6UP.js} +753 -2095
  35. package/dist/chunk-YRR6D6UP.js.map +1 -0
  36. package/dist/computed.types.d-BPzPFX3Z.d.ts +91 -0
  37. package/dist/{config.context.d-BvU9r-Mg.d.ts → config.context.d-Dm11aAuw.d.ts} +21 -3
  38. package/dist/corrections.d.ts +137 -24
  39. package/dist/corrections.js +12 -12
  40. package/dist/corrections.js.map +1 -1
  41. package/dist/elements.d.ts +66 -73
  42. package/dist/elements.js +9 -6
  43. package/dist/index.d.ts +21 -17
  44. package/dist/index.js +50 -61
  45. package/dist/interactions.d.ts +98 -19
  46. package/dist/interactions.js +8 -3
  47. package/dist/item.css +1948 -1946
  48. package/dist/item.d.ts +8 -6
  49. package/dist/item.js +6 -5
  50. package/dist/item.types.d-Zc6ZQDhu.d.ts +25 -0
  51. package/dist/loader.d.ts +5 -3
  52. package/dist/loader.js +3 -2
  53. package/dist/processing.d.ts +19 -7
  54. package/dist/processing.js +4 -3
  55. package/dist/public-events.d-3dGip9pd.d.ts +105 -0
  56. package/dist/qti-components-jsx.d.ts +1725 -1777
  57. package/dist/{qti-condition-expression.d-VJH6cWxf.d.ts → qti-condition-expression.d-7Kd4LBxn.d.ts} +1 -1
  58. package/dist/{qti-expression.d-BPxEp8HU.d.ts → qti-expression.d-iH3w6mqf.d.ts} +2 -1
  59. package/dist/{qti-feedback.d-wMYNVkkj.d.ts → qti-feedback.d-CT0W-8Gm.d.ts} +8 -1
  60. package/dist/{qti-item.d-DgC1AQbY.d.ts → qti-item.d-CxP6KtCH.d.ts} +3 -2
  61. package/dist/{qti-rule-base.d-Bdzg8eGH.d.ts → qti-rule-base.d-CeKP0Ooi.d.ts} +2 -2
  62. package/dist/qti-test-state-ybQ6ausy.d.ts +81 -0
  63. package/dist/qti-test-state.d-CjvdranT.d.ts +61 -0
  64. package/dist/{qti-test.d-86TlaMlI.d.ts → qti-test.d-BbtCG7A-.d.ts} +91 -487
  65. package/dist/{qti-text-entry-interaction.d-q8u5BiVK.d.ts → qti-text-entry-interaction.d-m0EFv9no.d.ts} +221 -73
  66. package/dist/{qti-transform-test.d-BL7GGFJj.d.ts → qti-transform-test.d-CtNaWJr8.d.ts} +9 -0
  67. package/dist/{interaction.d-g6XG0T0Z.d.ts → record.d-N1Bq7e1f.d.ts} +67 -4
  68. package/dist/{session.context.d-D5080LVx.d.ts → session.context.d-9gRdGK4T.d.ts} +7 -1
  69. package/dist/test-plugin-api.d.ts +143 -0
  70. package/dist/test-plugin-api.js +21 -0
  71. package/dist/test-plugin-api.js.map +1 -0
  72. package/dist/test.d.ts +72 -57
  73. package/dist/test.js +22 -48
  74. package/dist/transformers.d.ts +1 -1
  75. package/dist/transformers.js +2 -1
  76. package/dist/{item.types.d-B55QkJ92.d.ts → variables.d-DWHlTszN.d.ts} +8 -24
  77. package/package.json +16 -11
  78. package/dist/chunk-6K3QWJHH.js.map +0 -1
  79. package/dist/chunk-6U3YPHXU.js.map +0 -1
  80. package/dist/chunk-D3BYGEQU.js.map +0 -1
  81. package/dist/chunk-RSMYGGQK.js.map +0 -1
  82. package/dist/chunk-SIE3E4FG.js.map +0 -1
  83. package/dist/chunk-TDWJ6WZA.js.map +0 -1
  84. package/dist/chunk-TLAVOBEM.js.map +0 -1
  85. package/dist/chunk-ZP6QQYSU.js +0 -7
  86. package/dist/chunk-ZP6QQYSU.js.map +0 -1
  87. package/dist/computed.types.d-gJrBeUMG.d.ts +0 -42
  88. /package/dist/{chunk-RU6332MD.js.map → chunk-566LB3G2.js.map} +0 -0
  89. /package/dist/{chunk-MI7774NV.js.map → chunk-5BP2A7BI.js.map} +0 -0
  90. /package/dist/{chunk-OQDBARD5.js.map → chunk-5KNTKBP6.js.map} +0 -0
  91. /package/dist/{chunk-GBZNFSFY.js.map → chunk-ADTCTKXS.js.map} +0 -0
  92. /package/dist/{chunk-FD4AB6TM.js.map → chunk-BBP7QV32.js.map} +0 -0
  93. /package/dist/{chunk-LFVPS7KB.js.map → chunk-CFTWXYBO.js.map} +0 -0
  94. /package/dist/{chunk-35WWWFS6.js.map → chunk-DAESCCLR.js.map} +0 -0
@@ -1,20 +1,12 @@
1
- import { b as ItemContext, h as VariableValue, R as ResponseInteraction, g as ResponseVariable, c as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './item.types.d-B55QkJ92.js';
1
+ export { F as FeedbackEventDetail, P as PUBLIC_ITEM_EVENTS, a as PublicEventDeclaration, b as PublicItemEventMap, c as PublicItemEventName, R as RubricPlacement, d as dispatchDeclared, e as dispatchPublic, l as listenDeclared, f as listenPublic } from './public-events.d-3dGip9pd.js';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement, PropertyValues, CSSResultGroup, PropertyValueMap } from 'lit';
4
+ import { g as VariableValue, R as ResponseInteraction, f as ResponseVariable, b as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './variables.d-DWHlTszN.js';
5
+ import { I as ItemContext } from './item.types.d-Zc6ZQDhu.js';
4
6
  import { a as RegisteredInteraction } from './interaction.interface.d-CvjHM2bi.js';
5
- import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-wMYNVkkj.js';
6
- import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
7
+ import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-CT0W-8Gm.js';
8
+ import { b as QtiRuleBase } from './qti-rule-base.d-CeKP0Ooi.js';
7
9
 
8
- /**
9
- * @summary The qti-assessment-item element contains all the other QTI 3 item structures.
10
- * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.dltnnj87l0yj
11
- *
12
- * @dependency qti-feedback
13
- * @dependency qti-responseprocessing
14
- *
15
- * @event qti-item-context-updated - Emitted when through a user action the itemContext is updated,
16
- * typically on interaction with the interactions, or calling response processing.
17
- */
18
10
  declare class QtiAssessmentItem extends LitElement {
19
11
  #private;
20
12
  identifier: string;
@@ -57,6 +49,16 @@ declare class QtiAssessmentItem extends LitElement {
57
49
  render(): lit.TemplateResult<1>;
58
50
  connectedCallback(): void;
59
51
  disconnectedCallback(): void;
52
+ /**
53
+ * Scores the attempt. The item does not score itself: its response processing does, like a
54
+ * backend, and sends the outcomes back in `qc-item-set-outcomes`, which the item applies in one
55
+ * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
56
+ * numAttempts) and hands the new count to the run, whose rules may read it. Without response
57
+ * processing the item only counts the attempt. A run that throws still counts the attempt and applies
58
+ * no outcomes.
59
+ *
60
+ * @returns whether the item has response processing.
61
+ */
60
62
  processResponse(countNumAttempts?: boolean, reportValidityAfterScoring?: boolean): boolean;
61
63
  resetResponses(): void;
62
64
  protected getResponse(identifier: string): Readonly<ResponseVariable>;
@@ -108,7 +110,7 @@ declare global {
108
110
  declare module '../../public-events' {
109
111
  interface PublicItemEventMap {
110
112
  /** The item rendered: its interactions are in the DOM and its validity is known. */
111
- 'cito-item-rendered': CustomEvent<QtiAssessmentItem>;
113
+ 'qc-item-rendered': CustomEvent<QtiAssessmentItem>;
112
114
  }
113
115
  }
114
116
 
@@ -250,9 +252,19 @@ declare global {
250
252
  }
251
253
  }
252
254
 
255
+ /**
256
+ * Block feedback: shown or hidden by the outcome it is bound to.
257
+ *
258
+ * @slot - The feedback content.
259
+ *
260
+ * @csspart feedback - The feedback box.
261
+ */
253
262
  declare class QtiFeedbackBlock extends QtiFeedback {
254
263
  static styles: lit.CSSResult;
255
264
  render(): lit.TemplateResult<1>;
265
+ /** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
266
+ protected feedbackShowing(): boolean;
267
+ protected feedbackHiding(): boolean;
256
268
  connectedCallback(): void;
257
269
  }
258
270
  declare global {
@@ -261,9 +273,19 @@ declare global {
261
273
  }
262
274
  }
263
275
 
276
+ /**
277
+ * Inline feedback: shown or hidden by the outcome it is bound to.
278
+ *
279
+ * @slot - The feedback content.
280
+ *
281
+ * @csspart feedback - The feedback box.
282
+ */
264
283
  declare class QtiFeedbackInline extends QtiFeedback {
265
284
  static styles: lit.CSSResult;
266
285
  render: () => lit.TemplateResult<1>;
286
+ /** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
287
+ protected feedbackShowing(): boolean;
288
+ protected feedbackHiding(): boolean;
267
289
  connectedCallback(): void;
268
290
  }
269
291
  declare global {
@@ -280,7 +302,8 @@ declare global {
280
302
  *
281
303
  * @slot - item body content.
282
304
  * @slot qti-rubric-block - the qti rubric block is placed above the item
283
- * @part qti-rubric-block - the qti rubric block part
305
+ *
306
+ * @csspart rubrics - The rubric-block slot (was `qti-rubric-blocks`).
284
307
  */
285
308
  declare class QtiItemBody extends LitElement {
286
309
  static styles: CSSResultGroup;
@@ -292,11 +315,21 @@ declare global {
292
315
  }
293
316
  }
294
317
 
318
+ /**
319
+ * Modal feedback: a dialog opened by the outcome it is bound to.
320
+ *
321
+ * @slot - The feedback content.
322
+ *
323
+ * @csspart feedback - The feedback box (the dialog).
324
+ */
295
325
  declare class QtiModalFeedback extends QtiFeedback {
296
326
  static styles: lit.CSSResult;
297
327
  render(): lit.TemplateResult<1>;
298
328
  openFeedback(): void;
299
329
  closeFeedback(): void;
330
+ /** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
331
+ protected feedbackShowing(): boolean;
332
+ protected feedbackHiding(): boolean;
300
333
  connectedCallback(): void;
301
334
  protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
302
335
  }
@@ -352,10 +385,26 @@ declare global {
352
385
  }
353
386
  }
354
387
 
388
+ /**
389
+ * Response processing as the item's own backend: it reads the item context, runs its rules once and
390
+ * sends the outcomes and the attempt count back in one `qc-item-set-outcomes`. The item applies
391
+ * them; a host that scores elsewhere sends the same event instead.
392
+ */
355
393
  declare class QtiResponseProcessing extends LitElement {
394
+ #private;
356
395
  static styles: lit.CSSResult[];
396
+ constructor();
357
397
  render(): lit.TemplateResult<1>;
358
- process(): void;
398
+ /**
399
+ * Scores the attempt on the copy: sets `numAttempts` to the count the item hands over, resets a
400
+ * non-adaptive item's outcomes to their defaults (QTI info model §2.5), runs the rules and sends
401
+ * every outcome and `numAttempts` in one `qc-item-set-outcomes`. The item applies them and publishes, which gives this element a
402
+ * fresh copy. A rule that throws ends the run and the error propagates; nothing is sent, and the
403
+ * run's writes stay in the copy until the item's next update.
404
+ */
405
+ processResponse({ numAttempts }: {
406
+ numAttempts: number;
407
+ }): void;
359
408
  firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
360
409
  }
361
410
  declare global {
@@ -467,60 +516,4 @@ declare global {
467
516
  }
468
517
  }
469
518
 
470
- interface OutcomeChangedDetails {
471
- item: string;
472
- outcomeIdentifier: string;
473
- value: Readonly<string | string[]>;
474
- }
475
- type InteractionChangedDetails = ResponseInteraction & {
476
- item: string;
477
- };
478
-
479
- /**
480
- * The public events of the item. The name tells you it is public: everything declared here starts
481
- * with `cito-`; every other event is internal plumbing and may change in any release.
482
- *
483
- * Requests are verbs, notifications are past tense. All bubble and are composed.
484
- *
485
- * `deprecated` is the name the event had before it became public. `dispatchPublic` sends and
486
- * `listenPublic` handles both until the next major, then the field goes.
487
- */
488
- interface PublicEventDeclaration {
489
- kind: 'request' | 'notification';
490
- scope: 'test' | 'item';
491
- /** The name before it was public. Dispatched and handled alongside the new one. */
492
- deprecated?: string;
493
- }
494
- interface RubricPlacement {
495
- className: string;
496
- element: Element;
497
- }
498
- interface PublicItemEventMap {
499
- 'cito-item-response-changed': CustomEvent<InteractionChangedDetails>;
500
- 'cito-item-outcome-changed': CustomEvent<OutcomeChangedDetails>;
501
- /** Cancelable: `preventDefault()` keeps the rubric block where it is. */
502
- 'cito-item-rubric-placement': CustomEvent<RubricPlacement>;
503
- }
504
- type PublicItemEventName = keyof PublicItemEventMap;
505
- declare const PUBLIC_ITEM_EVENTS: Record<PublicItemEventName, PublicEventDeclaration>;
506
- declare global {
507
- interface HTMLElementEventMap extends PublicItemEventMap {
508
- }
509
- }
510
- /**
511
- * Dispatch `name` and its deprecated name with the same `detail` object, new name first. Returns
512
- * `false` when a listener of either cancelled the event. The detail is always an object.
513
- * Shared by the item and test tiers; use `dispatchPublic` (item) or the test's own wrapper.
514
- */
515
- declare function dispatchDeclared(target: EventTarget, declarations: Record<string, PublicEventDeclaration>, name: string, detail: unknown, cancelable?: boolean): boolean;
516
- /**
517
- * Listen for `name` and its deprecated name. `dispatchDeclared` sends the old name straight after
518
- * the new one, synchronously, with the same `detail`: that one is skipped, so the handler runs
519
- * once. A host that sends only the old name is handled too, and warned once per name in the
520
- * console: only a sender outside our own components gets here without the new name before it.
521
- */
522
- declare function listenDeclared(target: EventTarget, declarations: Record<string, PublicEventDeclaration>, name: string, handler: (e: Event) => void): void;
523
- declare function dispatchPublic<K extends PublicItemEventName>(target: EventTarget, name: K, detail: PublicItemEventMap[K] extends CustomEvent<infer D> ? D : never, cancelable?: boolean): boolean;
524
- declare function listenPublic<K extends PublicItemEventName>(target: EventTarget, name: K, handler: (e: PublicItemEventMap[K]) => void): void;
525
-
526
- export { PUBLIC_ITEM_EVENTS, type PublicEventDeclaration, type PublicItemEventMap, type PublicItemEventName, QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing, type RubricPlacement, dispatchDeclared, dispatchPublic, listenDeclared, listenPublic };
519
+ export { QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing };
package/dist/elements.js CHANGED
@@ -1,6 +1,5 @@
1
- import "./chunk-GBZNFSFY.js";
1
+ import "./chunk-ADTCTKXS.js";
2
2
  import {
3
- PUBLIC_ITEM_EVENTS,
4
3
  QtiAssessmentItem,
5
4
  QtiAssessmentStimulus,
6
5
  QtiAssessmentStimulusRef,
@@ -20,15 +19,19 @@ import {
20
19
  QtiStylesheet,
21
20
  QtiTemplateConstraint,
22
21
  QtiTemplateDeclaration,
23
- QtiTemplateProcessing,
22
+ QtiTemplateProcessing
23
+ } from "./chunk-GAPMCYR5.js";
24
+ import {
25
+ PUBLIC_ITEM_EVENTS,
24
26
  dispatchDeclared,
25
27
  dispatchPublic,
26
28
  listenDeclared,
27
29
  listenPublic
28
- } from "./chunk-6U3YPHXU.js";
30
+ } from "./chunk-UCXLDQYA.js";
29
31
  import "./chunk-4DB4SC5K.js";
30
- import "./chunk-TLAVOBEM.js";
31
- import "./chunk-TDWJ6WZA.js";
32
+ import "./chunk-O2XRZPKA.js";
33
+ import "./chunk-GPC53O7P.js";
34
+ import "./chunk-PZ5AY32C.js";
32
35
  export {
33
36
  PUBLIC_ITEM_EVENTS,
34
37
  QtiAssessmentItem,
package/dist/index.d.ts CHANGED
@@ -1,28 +1,32 @@
1
- export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, q as TestContainer, r as TestEndAttempt, s as TestItemLink, t as TestItemToSpeech, u as TestNavigation, v as TestNext, w as TestPagingButtonsStamp, x as TestPrev, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, C as TestSectionButtonsStamp, D as TestSectionLink, E as TestStamp, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, N as TestView, O as TestViewToggle, P as TtsContext, R as ttsContext } from './qti-test.d-86TlaMlI.js';
2
- export { IMyQtiTest, IQtiTest, ITestProcessingMixin, QTI_TEST_STATE_VERSION, QtiTestState, QtiTestStateItem, QtiTestStateSession, QtiTestStateValue } from './test.js';
3
- export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-DgC1AQbY.js';
1
+ export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestContainer, q as TestEndAttempt, r as TestNavigation, s as TestNext, t as TestPrev, u as TestSubmit } from './qti-test.d-BbtCG7A-.js';
2
+ export { IMyQtiTest, IQtiTest, ITestProcessingMixin, StoredSessionContext, StoredTestContext, StoredVariable, pluginElements, stateFromContexts } from './test.js';
3
+ export { Q as QTI_TEST_STATE_VERSION, a as QtiTestPluginState, b as QtiTestState, c as QtiTestStateItem, d as QtiTestStateSession, e as QtiTestStateValue, i as itemsInOrder, p as pluginState } from './qti-test-state-ybQ6ausy.js';
4
+ export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-CxP6KtCH.js';
4
5
  export { ItemViewMixin } from './item.js';
5
- export { PUBLIC_ITEM_EVENTS, PublicEventDeclaration, PublicItemEventMap, PublicItemEventName, QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing, RubricPlacement, dispatchDeclared, dispatchPublic, listenDeclared, listenPublic } from './elements.js';
6
+ export { F as FeedbackEventDetail, P as PUBLIC_ITEM_EVENTS, a as PublicEventDeclaration, b as PublicItemEventMap, c as PublicItemEventName, R as RubricPlacement, d as dispatchDeclared, e as dispatchPublic, l as listenDeclared, f as listenPublic } from './public-events.d-3dGip9pd.js';
7
+ export { QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing } from './elements.js';
6
8
  export { QtiCustomInteraction, QtiEndAttemptInteraction, QtiMediaInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiUploadInteraction, qtiInteractionElements } from './interactions.js';
7
- export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-q8u5BiVK.js';
8
- export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-BL7GGFJj.js';
9
+ export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-m0EFv9no.js';
10
+ export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-CtNaWJr8.js';
9
11
  export { qtiTransformManifest } from './transformers.js';
10
12
  export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
11
- export { CustomOperator, CustomOperatorValue, CustomStateSetShim, CustomStateSupport, IsNullOrUndefined, ScoringHelper, boxSizing, classifyCustomStateSupport, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, getCustomOperator, installCustomStateSetFallback, itemContext, registerCustomOperator, removeDoubleSlashes, unregisterCustomOperator, validationMessage } from './base.js';
12
- export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-D5080LVx.js';
13
- export { C as ComputedContext, a as ComputedItem } from './computed.types.d-gJrBeUMG.js';
14
- export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BvU9r-Mg.js';
15
- export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-g6XG0T0Z.js';
16
- export { B as BaseType, C as Calculate, a as Cardinality, I as InterpolationTableEntry, b as ItemContext, M as Multiple, O as Ordered, c as OutcomeVariable, Q as QtiAreaMapEntry, d as QtiAreaMapping, e as QtiMapEntry, f as QtiMapping, R as ResponseInteraction, g as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, h as VariableValue, i as areaShape, j as directedPair, k as float, l as integer, m as itemContextVariables } from './item.types.d-B55QkJ92.js';
13
+ export { CustomOperator, CustomOperatorValue, CustomStateSetShim, CustomStateSupport, IsNullOrUndefined, STATE_ALIASES, ScoringHelper, boxSizing, classifyCustomStateSupport, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, getCustomOperator, hasState, installCustomStateSetFallback, itemContext, registerCustomOperator, removeDoubleSlashes, setState, unregisterCustomOperator, validationMessage } from './base.js';
14
+ export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-9gRdGK4T.js';
15
+ export { C as ComputedContext, a as ComputedItem, S as SessionControl } from './computed.types.d-BPzPFX3Z.js';
16
+ export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-Dm11aAuw.js';
17
+ export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, V as ValidityKind, c as ValidityTrigger, i as inferRecordFieldBaseType, d as interactionContext, e as isRecordValue, r as readRecordFieldValues } from './record.d-N1Bq7e1f.js';
18
+ export { I as ItemContext, i as itemContextVariables } from './item.types.d-Zc6ZQDhu.js';
17
19
  export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context.d-CejJMlfZ.js';
18
- export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-BPxEp8HU.js';
19
- export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-wMYNVkkj.js';
20
- export { Q as QtiConditionExpression } from './qti-condition-expression.d-VJH6cWxf.js';
20
+ export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-iH3w6mqf.js';
21
+ export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-CT0W-8Gm.js';
22
+ export { Q as QtiConditionExpression } from './qti-condition-expression.d-7Kd4LBxn.js';
21
23
  export { D as DirectedPair, I as Identifier, P as Point, R as ResponseValue, i as iterResponseValues, p as parsePair, a as parsePoint, b as parseResponseAttribute, r as responseAttributeConverter, s as serializePair, c as serializePoint, d as serializeResponseAttribute } from './response.d-_8y4kjGP.js';
24
+ export { B as BaseType, C as Calculate, a as Cardinality, I as InterpolationTableEntry, M as Multiple, O as Ordered, b as OutcomeVariable, Q as QtiAreaMapEntry, c as QtiAreaMapping, d as QtiMapEntry, e as QtiMapping, R as ResponseInteraction, f as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, g as VariableValue, h as areaShape, i as directedPair, j as float, k as integer } from './variables.d-DWHlTszN.js';
22
25
  export { F as FormAssociatedInteraction, I as IInteraction, R as ReadonlyInteraction, a as RegisteredInteraction, b as ResettableInteraction, c as ResponseIdentifiedInteraction, d as ResponseInteractionElement, V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
23
- export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-Bdzg8eGH.js';
26
+ export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-CeKP0Ooi.js';
24
27
  export { QtiAnd, QtiAnyN, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiDivide, QtiDurationGte, QtiDurationLt, QtiEqual, QtiEqualRounded, QtiExitResponse, QtiExitTest, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiInside, QtiIntegerDivide, QtiIntegerModulus, QtiIntegerToFloat, QtiIsNull, QtiLcm, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathConstant, QtiMathOperator, QtiMax, QtiMember, QtiMin, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiOutcomeCondition, QtiOutcomeElse, QtiOutcomeElseIf, QtiOutcomeIf, QtiPatternMatch, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiRepeat, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessingFragment, QtiRound, QtiRoundTo, QtiSetCorrectResponse, QtiSetCorrectResponseRule, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSetTemplateValue, QtiSetTemplateValueRule, QtiStatsOperator, QtiStringMatch, QtiSubstring, QtiSubtract, QtiSum, QtiSumExpression, QtiTruncate, QtiVariable, qtiAndMixin, qtiSubtractMixin } from './processing.js';
25
- export { CandidateCorrectionMixin, ChoiceCorrectionMixin, CorrectResponseInterface, CorrectResponseMixin, CorrectResponseMode, CorrectionConfig, Correctness, ItemCorrectResponseMode, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiAssessmentItemCorrection, QtiAssociateInteractionCorrection, QtiChoiceInteractionCorrection, QtiExtendedTextInteractionCorrection, QtiGapMatchInteractionCorrection, QtiGapTextCorrection, QtiGraphicAssociateInteractionCorrection, QtiGraphicGapMatchInteractionCorrection, QtiGraphicOrderInteractionCorrection, QtiHotspotChoiceCorrection, QtiHotspotInteractionCorrection, QtiHottextCorrection, QtiHottextInteractionCorrection, QtiInlineChoiceInteractionCorrection, QtiItemCorrection, QtiMatchInteractionCorrection, QtiOrderInteractionCorrection, QtiPortableCustomInteractionCorrection, QtiSelectPointInteractionCorrection, QtiSimpleAssociableChoiceCorrection, QtiSimpleChoiceCorrection, QtiSliderInteractionCorrection, QtiTestCorrection, QtiTextEntryInteractionCorrection, TestCheckItemCorrection, TestNavigationCorrection, TestShowCorrectResponse, correctionPart } from './corrections.js';
28
+ export { CandidateCorrectionMixin, ChoiceCorrectionMixin, CorrectResponseInterface, CorrectResponseMixin, CorrectResponseMode, CorrectionConfig, Correctness, ItemCorrectResponseMode, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiAssessmentItemCorrection, QtiAssociateInteractionCorrection, QtiChoiceInteractionCorrection, QtiExtendedTextInteractionCorrection, QtiGapMatchInteractionCorrection, QtiGapTextCorrection, QtiGraphicAssociateInteractionCorrection, QtiGraphicGapMatchInteractionCorrection, QtiGraphicOrderInteractionCorrection, QtiHotspotChoiceCorrection, QtiHotspotInteractionCorrection, QtiHottextCorrection, QtiHottextInteractionCorrection, QtiInlineChoiceInteractionCorrection, QtiItemCorrection, QtiMatchInteractionCorrection, QtiOrderInteractionCorrection, QtiPortableCustomInteractionCorrection, QtiSelectPointInteractionCorrection, QtiSimpleAssociableChoiceCorrection, QtiSimpleChoiceCorrection, QtiSliderInteractionCorrection, QtiTestCorrection, QtiTextEntryInteractionCorrection, TestNavigationCorrection, TestShowCorrectResponse, correctionPart } from './corrections.js';
26
29
  import 'lit';
27
30
  import '@heximal/templates';
31
+ import './qti-test-state.d-CjvdranT.js';
28
32
  import 'lit/directives/ref.js';
package/dist/index.js CHANGED
@@ -1,4 +1,7 @@
1
- import "./chunk-OQDBARD5.js";
1
+ import "./chunk-5KNTKBP6.js";
2
+ import {
3
+ pluginState
4
+ } from "./chunk-DJ7PB252.js";
2
5
  import {
3
6
  CandidateCorrectionMixin,
4
7
  ChoiceCorrectionMixin,
@@ -31,11 +34,10 @@ import {
31
34
  QtiSliderInteractionCorrection,
32
35
  QtiTestCorrection,
33
36
  QtiTextEntryInteractionCorrection,
34
- TestCheckItemCorrection,
35
37
  TestNavigationCorrection,
36
38
  TestShowCorrectResponse,
37
39
  correctionPart
38
- } from "./chunk-D3BYGEQU.js";
40
+ } from "./chunk-2ZT47EUK.js";
39
41
  import {
40
42
  QTI_TEST_STATE_VERSION,
41
43
  QtiAssessmentItemRef,
@@ -53,36 +55,20 @@ import {
53
55
  QtiTestPart,
54
56
  QtiTestVariables,
55
57
  QtiTestVariablesExpression,
56
- TestCheckItem,
57
58
  TestContainer,
58
59
  TestEndAttempt,
59
- TestItemLink,
60
- TestItemToSpeech,
61
60
  TestNavigation,
62
61
  TestNext,
63
- TestPagingButtonsStamp,
64
62
  TestPrev,
65
- TestPrintContext,
66
- TestPrintVariables,
67
- TestScoringButtons,
68
- TestScoringFeedback,
69
- TestSectionButtonsStamp,
70
- TestSectionLink,
71
- TestStamp,
72
- TestTtsNext,
73
- TestTtsPause,
74
- TestTtsPick,
75
- TestTtsPlay,
76
- TestTtsPrev,
77
- TestTtsResume,
78
- TestTtsStop,
79
- TestView,
80
- TestViewToggle,
81
- ttsContext
82
- } from "./chunk-SIE3E4FG.js";
83
- import "./chunk-GBZNFSFY.js";
63
+ TestSubmit,
64
+ pluginElements,
65
+ stateFromContexts
66
+ } from "./chunk-YRR6D6UP.js";
67
+ import {
68
+ itemsInOrder
69
+ } from "./chunk-7ISPUOJG.js";
70
+ import "./chunk-ADTCTKXS.js";
84
71
  import {
85
- PUBLIC_ITEM_EVENTS,
86
72
  QtiAssessmentItem,
87
73
  QtiAssessmentStimulus,
88
74
  QtiAssessmentStimulusRef,
@@ -102,13 +88,16 @@ import {
102
88
  QtiStylesheet,
103
89
  QtiTemplateConstraint,
104
90
  QtiTemplateDeclaration,
105
- QtiTemplateProcessing,
91
+ QtiTemplateProcessing
92
+ } from "./chunk-GAPMCYR5.js";
93
+ import {
94
+ PUBLIC_ITEM_EVENTS,
106
95
  dispatchDeclared,
107
96
  dispatchPublic,
108
97
  listenDeclared,
109
98
  listenPublic
110
- } from "./chunk-6U3YPHXU.js";
111
- import "./chunk-35WWWFS6.js";
99
+ } from "./chunk-UCXLDQYA.js";
100
+ import "./chunk-DAESCCLR.js";
112
101
  import {
113
102
  QtiAssociableHotspot,
114
103
  QtiAssociateInteraction,
@@ -142,27 +131,29 @@ import {
142
131
  QtiSliderInteraction,
143
132
  QtiTextEntryInteraction,
144
133
  QtiUploadInteraction,
134
+ inlineScriptText,
135
+ inlineStyleText,
145
136
  qtiInteractionElements
146
- } from "./chunk-RSMYGGQK.js";
147
- import "./chunk-FD4AB6TM.js";
137
+ } from "./chunk-TZCOXFPB.js";
138
+ import "./chunk-BBP7QV32.js";
148
139
  import {
149
140
  ItemContainer,
150
141
  ItemPrintVariables,
151
142
  ItemViewMixin,
152
143
  QtiItem
153
- } from "./chunk-RU6332MD.js";
154
- import "./chunk-ZP6QQYSU.js";
144
+ } from "./chunk-566LB3G2.js";
145
+ import "./chunk-WWY2H2YO.js";
155
146
  import "./chunk-4DB4SC5K.js";
156
147
  import {
157
148
  getItemByUri,
158
149
  getManifestInfo
159
- } from "./chunk-LFVPS7KB.js";
150
+ } from "./chunk-CFTWXYBO.js";
160
151
  import {
161
152
  qtiTransformItem,
162
153
  qtiTransformManifest,
163
154
  qtiTransformTest
164
- } from "./chunk-TLAVOBEM.js";
165
- import "./chunk-MI7774NV.js";
155
+ } from "./chunk-O2XRZPKA.js";
156
+ import "./chunk-5BP2A7BI.js";
166
157
  import {
167
158
  QtiAnd,
168
159
  QtiAnyN,
@@ -240,7 +231,7 @@ import {
240
231
  QtiVariable,
241
232
  qtiAndMixin,
242
233
  qtiSubtractMixin
243
- } from "./chunk-6K3QWJHH.js";
234
+ } from "./chunk-LPYZVKHX.js";
244
235
  import {
245
236
  CustomStateSetShim,
246
237
  INITIAL_SESSION_CONTEXT,
@@ -254,6 +245,7 @@ import {
254
245
  QtiFeedback,
255
246
  QtiRuleElement,
256
247
  QtiVariableDeclaration,
248
+ STATE_ALIASES,
257
249
  ScoringHelper,
258
250
  asSeed,
259
251
  boxSizing,
@@ -265,8 +257,11 @@ import {
265
257
  decimalSeparator,
266
258
  dropRegion,
267
259
  getCustomOperator,
260
+ hasState,
261
+ inferRecordFieldBaseType,
268
262
  installCustomStateSetFallback,
269
263
  interactionContext,
264
+ isRecordValue,
270
265
  isSeed,
271
266
  itemContext,
272
267
  itemContextVariables,
@@ -275,6 +270,7 @@ import {
275
270
  parsePoint,
276
271
  parseResponseAttribute,
277
272
  qtiContext,
273
+ readRecordFieldValues,
278
274
  registerCustomOperator,
279
275
  removeDoubleSlashes,
280
276
  responseAttributeConverter,
@@ -282,10 +278,12 @@ import {
282
278
  serializePoint,
283
279
  serializeResponseAttribute,
284
280
  sessionContext,
281
+ setState,
285
282
  testContext,
286
283
  unregisterCustomOperator,
287
284
  validationMessage
288
- } from "./chunk-TDWJ6WZA.js";
285
+ } from "./chunk-GPC53O7P.js";
286
+ import "./chunk-PZ5AY32C.js";
289
287
  export {
290
288
  CandidateCorrectionMixin,
291
289
  ChoiceCorrectionMixin,
@@ -477,35 +475,16 @@ export {
477
475
  QtiUploadInteraction,
478
476
  QtiVariable,
479
477
  QtiVariableDeclaration,
478
+ STATE_ALIASES,
480
479
  ScoringHelper,
481
- TestCheckItem,
482
- TestCheckItemCorrection,
483
480
  TestContainer,
484
481
  TestEndAttempt,
485
- TestItemLink,
486
- TestItemToSpeech,
487
482
  TestNavigation,
488
483
  TestNavigationCorrection,
489
484
  TestNext,
490
- TestPagingButtonsStamp,
491
485
  TestPrev,
492
- TestPrintContext,
493
- TestPrintVariables,
494
- TestScoringButtons,
495
- TestScoringFeedback,
496
- TestSectionButtonsStamp,
497
- TestSectionLink,
498
486
  TestShowCorrectResponse,
499
- TestStamp,
500
- TestTtsNext,
501
- TestTtsPause,
502
- TestTtsPick,
503
- TestTtsPlay,
504
- TestTtsPrev,
505
- TestTtsResume,
506
- TestTtsStop,
507
- TestView,
508
- TestViewToggle,
487
+ TestSubmit,
509
488
  asSeed,
510
489
  boxSizing,
511
490
  classifyCustomStateSupport,
@@ -521,17 +500,25 @@ export {
521
500
  getCustomOperator,
522
501
  getItemByUri,
523
502
  getManifestInfo,
503
+ hasState,
504
+ inferRecordFieldBaseType,
505
+ inlineScriptText,
506
+ inlineStyleText,
524
507
  installCustomStateSetFallback,
525
508
  interactionContext,
509
+ isRecordValue,
526
510
  isSeed,
527
511
  itemContext,
528
512
  itemContextVariables,
513
+ itemsInOrder,
529
514
  iterResponseValues,
530
515
  listenDeclared,
531
516
  listenPublic,
532
517
  parsePair,
533
518
  parsePoint,
534
519
  parseResponseAttribute,
520
+ pluginElements,
521
+ pluginState,
535
522
  qtiAndMixin,
536
523
  qtiContext,
537
524
  qtiInteractionElements,
@@ -539,6 +526,7 @@ export {
539
526
  qtiTransformItem,
540
527
  qtiTransformManifest,
541
528
  qtiTransformTest,
529
+ readRecordFieldValues,
542
530
  registerCustomOperator,
543
531
  removeDoubleSlashes,
544
532
  responseAttributeConverter,
@@ -546,8 +534,9 @@ export {
546
534
  serializePoint,
547
535
  serializeResponseAttribute,
548
536
  sessionContext,
537
+ setState,
538
+ stateFromContexts,
549
539
  testContext,
550
- ttsContext,
551
540
  unregisterCustomOperator,
552
541
  validationMessage
553
542
  };