@citolab/qti-components 10.0.0-next.12 → 10.0.0-next.13

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 (55) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +227 -176
  3. package/dist/base.d.ts +2 -2
  4. package/dist/base.js +1 -1
  5. package/dist/{chunk-YOCOLMGB.js → chunk-AKX4YMWU.js} +2 -2
  6. package/dist/chunk-DVLSXMXD.js +7 -0
  7. package/dist/chunk-DVLSXMXD.js.map +1 -0
  8. package/dist/{chunk-PLP3YX6C.js → chunk-EIBGCCXH.js} +2 -2
  9. package/dist/{chunk-RWMY7KRT.js → chunk-FLAD6SC6.js} +2 -2
  10. package/dist/{chunk-AVZRY5SQ.js → chunk-G6LTYTJR.js} +2 -2
  11. package/dist/{chunk-OHRAG2UM.js → chunk-H3GITIPE.js} +36 -15
  12. package/dist/chunk-H3GITIPE.js.map +1 -0
  13. package/dist/{chunk-O76BOKAP.js → chunk-HOGJ5ZNW.js} +8 -6
  14. package/dist/{chunk-O76BOKAP.js.map → chunk-HOGJ5ZNW.js.map} +1 -1
  15. package/dist/{chunk-AJ5U5KXR.js → chunk-K4WLYVDT.js} +2 -2
  16. package/dist/{chunk-LCGPLQLE.js → chunk-MDBNEEPH.js} +2 -2
  17. package/dist/{chunk-M7X6TWSX.js → chunk-PHRHLDQB.js} +2 -2
  18. package/dist/{chunk-XXJAE6AP.js → chunk-PYHKCIYN.js} +3 -3
  19. package/dist/{chunk-T7YSBBAA.js → chunk-WUIA4OOX.js} +1 -1
  20. package/dist/chunk-WUIA4OOX.js.map +1 -0
  21. package/dist/{chunk-5K5JO7OG.js → chunk-Y5DZTCDP.js} +179 -103
  22. package/dist/chunk-Y5DZTCDP.js.map +1 -0
  23. package/dist/{config.context.d-BvU9r-Mg.d.ts → config.context.d-BniMHSBB.d.ts} +3 -2
  24. package/dist/corrections.d.ts +16 -6
  25. package/dist/corrections.js +8 -8
  26. package/dist/elements.js +3 -3
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +15 -13
  29. package/dist/interactions.d.ts +4 -4
  30. package/dist/interactions.js +3 -3
  31. package/dist/item.css +36 -16
  32. package/dist/item.d.ts +2 -2
  33. package/dist/item.js +4 -4
  34. package/dist/processing.js +3 -3
  35. package/dist/qti-components-jsx.d.ts +78 -11
  36. package/dist/{qti-item.d-B1gffYCL.d.ts → qti-item.d-BqWYBdV2.d.ts} +1 -1
  37. package/dist/{qti-test.d-D5C7W8Lg.d.ts → qti-test.d-B6AGSQlk.d.ts} +29 -3
  38. package/dist/{qti-text-entry-interaction.d-CU-fAAD1.d.ts → qti-text-entry-interaction.d-B44Z3qUG.d.ts} +6 -4
  39. package/dist/{record.d-wB9uYs-j.d.ts → record.d-C6m0Y4xr.d.ts} +1 -1
  40. package/dist/test.d.ts +7 -4
  41. package/dist/test.js +7 -5
  42. package/package.json +9 -9
  43. package/dist/chunk-5K5JO7OG.js.map +0 -1
  44. package/dist/chunk-OHRAG2UM.js.map +0 -1
  45. package/dist/chunk-T7YSBBAA.js.map +0 -1
  46. package/dist/chunk-YKXVAXSI.js +0 -7
  47. package/dist/chunk-YKXVAXSI.js.map +0 -1
  48. /package/dist/{chunk-YOCOLMGB.js.map → chunk-AKX4YMWU.js.map} +0 -0
  49. /package/dist/{chunk-PLP3YX6C.js.map → chunk-EIBGCCXH.js.map} +0 -0
  50. /package/dist/{chunk-RWMY7KRT.js.map → chunk-FLAD6SC6.js.map} +0 -0
  51. /package/dist/{chunk-AVZRY5SQ.js.map → chunk-G6LTYTJR.js.map} +0 -0
  52. /package/dist/{chunk-AJ5U5KXR.js.map → chunk-K4WLYVDT.js.map} +0 -0
  53. /package/dist/{chunk-LCGPLQLE.js.map → chunk-MDBNEEPH.js.map} +0 -0
  54. /package/dist/{chunk-M7X6TWSX.js.map → chunk-PHRHLDQB.js.map} +0 -0
  55. /package/dist/{chunk-XXJAE6AP.js.map → chunk-PYHKCIYN.js.map} +0 -0
@@ -2,7 +2,7 @@ import * as lit from 'lit';
2
2
  import { LitElement } from 'lit';
3
3
  import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js';
4
4
  import { C as ComputedItemContext, V as View } from './session.context.d-DW09Lrie.js';
5
- import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
5
+ import { C as ConfigContext } from './config.context.d-BniMHSBB.js';
6
6
  import { QtiAssessmentItem } from './elements.js';
7
7
 
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  import * as lit from 'lit';
2
- import { LitElement, PropertyValues, nothing } from 'lit';
2
+ import { LitElement, PropertyValues, TemplateResult, nothing } from 'lit';
3
3
  import { b as transformTestApi, t as transformItemApi } from './qti-transform-test.d-BL7GGFJj.js';
4
4
  import { C as ComputedContext, a as ComputedItem } from './computed.types.d-IXACuBr7.js';
5
5
  import { QtiAssessmentItem, QtiModalFeedback } from './elements.js';
@@ -8,7 +8,7 @@ import { T as TestContext, Q as QtiExpression, a as QtiExpressionBase } from './
8
8
  import { TemplateFunction } from '@heximal/templates';
9
9
  import { h as VariableValue, b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
10
10
  import { S as SessionContext, V as View } from './session.context.d-DW09Lrie.js';
11
- import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
11
+ import { C as ConfigContext } from './config.context.d-BniMHSBB.js';
12
12
  import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
13
13
 
14
14
  declare class QtiAssessmentTest extends LitElement {
@@ -728,6 +728,32 @@ declare global {
728
728
  }
729
729
  }
730
730
 
731
+ /**
732
+ * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
733
+ * on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
734
+ *
735
+ * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
736
+ * by it. The element only lays out the tree; give it a font, colour and height from the page.
737
+ *
738
+ * @customElement test-print-state
739
+ * @csspart key - the name of a field, or the label of a list entry
740
+ * @csspart value - a value that is not an object or a list
741
+ * @csspart count - the number of entries of a folded object or list
742
+ */
743
+ declare class TestPrintState extends LitElement {
744
+ #private;
745
+ private testState?;
746
+ static styles: lit.CSSResult;
747
+ connectedCallback(): void;
748
+ disconnectedCallback(): void;
749
+ render(): TemplateResult<1> | typeof nothing;
750
+ }
751
+ declare global {
752
+ interface HTMLElementTagNameMap {
753
+ 'test-print-state': TestPrintState;
754
+ }
755
+ }
756
+
731
757
  declare class TestScoringButtons extends LitElement {
732
758
  #private;
733
759
  view: string;
@@ -1168,4 +1194,4 @@ declare global {
1168
1194
  }
1169
1195
  }
1170
1196
 
1171
- export { TestScoringButtons as A, TestScoringFeedback as B, TestSectionLink as C, TestStamp as D, TestSubmit as E, TestTtsNext as F, TestTtsPause as G, TestTtsPick as H, type ITestNavigationMixin as I, TestTtsPlay as J, TestTtsPrev as K, TestTtsResume as L, TestTtsStop as M, TestView as N, TestViewToggle as O, bookmarkedItems as P, QtiAssessmentItemRef as Q, type QtiTestPluginState as R, type ItemVariableValue as S, TestBookmark as T, type ITestStateMixin as a, type ItemRefTemplateModel as b, QtiAssessmentSection as c, QtiAssessmentTest as d, QtiBranchRule as e, QtiItemSessionControl as f, QtiNumberPresented as g, QtiNumberSelected as h, QtiOutcomeProcessing as i, QtiOutcomeProcessingProcessor as j, QtiPreCondition as k, QtiTest as l, QtiTestFeedback as m, QtiTestPart as n, QtiTestVariables as o, QtiTestVariablesExpression as p, TestCheckItem as q, TestContainer as r, TestEndAttempt as s, TestItemLink as t, TestItemToSpeech as u, TestNavigation as v, TestNext as w, TestPrev as x, TestPrintContext as y, TestPrintVariables as z };
1197
+ export { TestPrintVariables as A, TestScoringButtons as B, TestScoringFeedback as C, TestSectionLink as D, TestStamp as E, TestSubmit as F, TestTtsNext as G, TestTtsPause as H, type ITestNavigationMixin as I, TestTtsPick as J, TestTtsPlay as K, TestTtsPrev as L, TestTtsResume as M, TestTtsStop as N, TestView as O, TestViewToggle as P, QtiAssessmentItemRef as Q, bookmarkedItems as R, type QtiTestPluginState as S, TestBookmark as T, type ItemVariableValue as U, type ITestStateMixin as a, type ItemRefTemplateModel as b, QtiAssessmentSection as c, QtiAssessmentTest as d, QtiBranchRule as e, QtiItemSessionControl as f, QtiNumberPresented as g, QtiNumberSelected as h, QtiOutcomeProcessing as i, QtiOutcomeProcessingProcessor as j, QtiPreCondition as k, QtiTest as l, QtiTestFeedback as m, QtiTestPart as n, QtiTestVariables as o, QtiTestVariablesExpression as p, TestCheckItem as q, TestContainer as r, TestEndAttempt as s, TestItemLink as t, TestItemToSpeech as u, TestNavigation as v, TestNext as w, TestPrev as x, TestPrintContext as y, TestPrintState as z };
@@ -1,8 +1,8 @@
1
1
  import * as lit from 'lit';
2
2
  import { LitElement, CSSResultGroup, PropertyValues } from 'lit';
3
- import { I as Interaction, b as RecordValue } from './record.d-wB9uYs-j.js';
3
+ import { I as Interaction, b as RecordValue } from './record.d-C6m0Y4xr.js';
4
4
  import { V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
5
- import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
5
+ import { C as ConfigContext } from './config.context.d-BniMHSBB.js';
6
6
  import { B as BaseType, a as Cardinality, b as ItemContext, Q as QtiAreaMapEntry } from './item.types.d-DuVR0ZVK.js';
7
7
  import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js';
8
8
  import * as lit_directives_ref_js from 'lit/directives/ref.js';
@@ -937,8 +937,10 @@ declare class QtiInlineChoiceInteraction extends QtiInlineChoiceInteraction_base
937
937
  willUpdate(changed: PropertyValues): void;
938
938
  updated(changed: PropertyValues): void;
939
939
  /**
940
- * Autosizing is opt-in through `configContext.inlineChoiceAutosize`, and an explicit
941
- * `qti-input-width-*` class always wins.
940
+ * Autosizing is on unless a host turns it off (`configContext.inlineChoiceAutosize: false`), and an
941
+ * explicit `qti-input-width-*` class always wins. On by default because without it the field sizes
942
+ * to the option shown, so choosing a longer one widened the field and reflowed the sentence around
943
+ * it: a state that changed layout.
942
944
  *
943
945
  * That second check has to live here rather than in CSS: the measurement is written as an inline
944
946
  * style on the trigger, and the width classes set the same property on `:host`, so the cascade
@@ -1,5 +1,5 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
- import { C as ConfigContext, V as ValidationDisplayMode } from './config.context.d-BvU9r-Mg.js';
2
+ import { C as ConfigContext, V as ValidationDisplayMode } from './config.context.d-BniMHSBB.js';
3
3
  import { V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
4
4
  import { g as ResponseVariable, B as BaseType } from './item.types.d-DuVR0ZVK.js';
5
5
 
package/dist/test.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { u as TestItemToSpeech, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, q as TestCheckItem, T as TestBookmark, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, D as TestStamp, E as TestSubmit, N as TestView, O as TestViewToggle, R as QtiTestPluginState$1, S as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-D5C7W8Lg.js';
2
- export { 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, r as TestContainer, s as TestEndAttempt, t as TestItemLink, v as TestNavigation, w as TestNext, x as TestPrev, C as TestSectionLink, P as bookmarkedItems } from './qti-test.d-D5C7W8Lg.js';
1
+ import { u as TestItemToSpeech, G as TestTtsNext, H as TestTtsPause, J as TestTtsPick, K as TestTtsPlay, L as TestTtsPrev, M as TestTtsResume, N as TestTtsStop, q as TestCheckItem, T as TestBookmark, y as TestPrintContext, A as TestPrintVariables, z as TestPrintState, B as TestScoringButtons, C as TestScoringFeedback, E as TestStamp, F as TestSubmit, O as TestView, P as TestViewToggle, S as QtiTestPluginState$1, U as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-B6AGSQlk.js';
2
+ export { 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, r as TestContainer, s as TestEndAttempt, t as TestItemLink, v as TestNavigation, w as TestNext, x as TestPrev, D as TestSectionLink, R as bookmarkedItems } from './qti-test.d-B6AGSQlk.js';
3
3
  import { C as ComputedContext } from './computed.types.d-IXACuBr7.js';
4
4
  import { LitElement } from 'lit';
5
5
  import { b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
6
6
  import { S as SessionContext } from './session.context.d-DW09Lrie.js';
7
- import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
7
+ import { C as ConfigContext } from './config.context.d-BniMHSBB.js';
8
8
  import { T as TestContext } from './qti-expression.d-B-Cfbqlb.js';
9
9
  import './qti-transform-test.d-BL7GGFJj.js';
10
10
  import './elements.js';
@@ -60,6 +60,9 @@ declare const pluginElements: readonly [{
60
60
  }, {
61
61
  readonly tag: "test-print-item-variables";
62
62
  readonly ctor: typeof TestPrintVariables;
63
+ }, {
64
+ readonly tag: "test-print-state";
65
+ readonly ctor: typeof TestPrintState;
63
66
  }, {
64
67
  readonly tag: "test-scoring-buttons";
65
68
  readonly ctor: typeof TestScoringButtons;
@@ -184,4 +187,4 @@ interface QtiTestStateSession {
184
187
  }
185
188
  declare const QTI_TEST_STATE_VERSION = 1;
186
189
 
187
- export { type IMyQtiTest, type IQtiTest, ITestNavigationMixin, type ITestProcessingMixin, ITestStateMixin, QTI_TEST_STATE_VERSION, type QtiTestPluginState, type QtiTestState, type QtiTestStateItem, type QtiTestStateSession, type QtiTestStateValue, TestBookmark, TestCheckItem, TestItemToSpeech, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestTtsNext, TestTtsPause, TestTtsPick, TestTtsPlay, TestTtsPrev, TestTtsResume, TestTtsStop, TestView, TestViewToggle, pluginElements, pluginState, ttsElements };
190
+ export { type IMyQtiTest, type IQtiTest, ITestNavigationMixin, type ITestProcessingMixin, ITestStateMixin, QTI_TEST_STATE_VERSION, type QtiTestPluginState, type QtiTestState, type QtiTestStateItem, type QtiTestStateSession, type QtiTestStateValue, TestBookmark, TestCheckItem, TestItemToSpeech, TestPrintContext, TestPrintState, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestTtsNext, TestTtsPause, TestTtsPick, TestTtsPlay, TestTtsPrev, TestTtsResume, TestTtsStop, TestView, TestViewToggle, pluginElements, pluginState, ttsElements };
package/dist/test.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-PLP3YX6C.js";
1
+ import "./chunk-EIBGCCXH.js";
2
2
  import {
3
3
  QTI_TEST_STATE_VERSION,
4
4
  QtiAssessmentItemRef,
@@ -26,6 +26,7 @@ import {
26
26
  TestNext,
27
27
  TestPrev,
28
28
  TestPrintContext,
29
+ TestPrintState,
29
30
  TestPrintVariables,
30
31
  TestScoringButtons,
31
32
  TestScoringFeedback,
@@ -45,12 +46,12 @@ import {
45
46
  pluginElements,
46
47
  pluginState,
47
48
  ttsElements
48
- } from "./chunk-5K5JO7OG.js";
49
- import "./chunk-YOCOLMGB.js";
50
- import "./chunk-YKXVAXSI.js";
49
+ } from "./chunk-Y5DZTCDP.js";
50
+ import "./chunk-AKX4YMWU.js";
51
+ import "./chunk-DVLSXMXD.js";
51
52
  import "./chunk-4DB4SC5K.js";
52
53
  import "./chunk-TLAVOBEM.js";
53
- import "./chunk-T7YSBBAA.js";
54
+ import "./chunk-WUIA4OOX.js";
54
55
  export {
55
56
  QTI_TEST_STATE_VERSION,
56
57
  QtiAssessmentItemRef,
@@ -78,6 +79,7 @@ export {
78
79
  TestNext,
79
80
  TestPrev,
80
81
  TestPrintContext,
82
+ TestPrintState,
81
83
  TestPrintVariables,
82
84
  TestScoringButtons,
83
85
  TestScoringFeedback,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@citolab/qti-components",
3
3
  "description": "QTI component utilities",
4
- "version": "10.0.0-next.12",
4
+ "version": "10.0.0-next.13",
5
5
  "author": "",
6
6
  "dependencies": {
7
7
  "@heximal/templates": "^0.1.5",
@@ -10,15 +10,15 @@
10
10
  "lit-html": "^3.3.1"
11
11
  },
12
12
  "devDependencies": {
13
- "@qti-components/base": "^2.5.0-next.2",
14
- "@qti-components/corrections": "^0.5.0-next.5",
15
- "@qti-components/elements": "^1.10.0-next.3",
16
- "@qti-components/interactions": "^1.10.5-next.4",
17
- "@qti-components/item": "^1.5.1-next.3",
13
+ "@qti-components/base": "^3.0.0-next.3",
14
+ "@qti-components/corrections": "^0.5.0-next.6",
15
+ "@qti-components/elements": "^1.10.0-next.4",
16
+ "@qti-components/interactions": "^1.10.5-next.5",
17
+ "@qti-components/item": "^1.5.1-next.4",
18
18
  "@qti-components/loader": "^1.3.4-next.0",
19
- "@qti-components/processing": "^1.6.1-next.2",
20
- "@qti-components/test": "^2.0.0-next.10",
21
- "@qti-components/theme": "^2.3.0-next.2",
19
+ "@qti-components/processing": "^1.6.1-next.3",
20
+ "@qti-components/test": "^2.0.0-next.11",
21
+ "@qti-components/theme": "^2.3.0-next.3",
22
22
  "@qti-components/transformers": "^1.7.3"
23
23
  },
24
24
  "exports": {