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

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.
@@ -6,7 +6,7 @@ import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimple
6
6
  import { QtiAssessmentItem } from './elements.js';
7
7
  import { Q as QtiItem } from './qti-item.d-DgC1AQbY.js';
8
8
  import { V as View, C as ComputedItemContext } from './session.context.d-D5080LVx.js';
9
- import { l as QtiTest, T as TestCheckItem, u as TestNavigation } from './qti-test.d-86TlaMlI.js';
9
+ import { l as QtiTest, T as TestCheckItem, u as TestNavigation } from './qti-test.d-7YudNPea.js';
10
10
  import { a as ComputedItem, C as ComputedContext } from './computed.types.d-gJrBeUMG.js';
11
11
  import './config.context.d-BvU9r-Mg.js';
12
12
  import './interaction.interface.d-CvjHM2bi.js';
@@ -34,10 +34,10 @@ import {
34
34
  TestNavigationCorrection,
35
35
  TestShowCorrectResponse,
36
36
  correctionPart
37
- } from "./chunk-D3BYGEQU.js";
37
+ } from "./chunk-F7FKSHZS.js";
38
38
  import {
39
39
  qtiTestElements
40
- } from "./chunk-SIE3E4FG.js";
40
+ } from "./chunk-UTW5VDTD.js";
41
41
  import {
42
42
  qtiContentElements
43
43
  } from "./chunk-6U3YPHXU.js";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
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';
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-7YudNPea.js';
2
2
  export { IMyQtiTest, IQtiTest, ITestProcessingMixin, QTI_TEST_STATE_VERSION, QtiTestState, QtiTestStateItem, QtiTestStateSession, QtiTestStateValue } from './test.js';
3
3
  export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-DgC1AQbY.js';
4
4
  export { ItemViewMixin } from './item.js';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-OQDBARD5.js";
1
+ import "./chunk-KQSR6LZH.js";
2
2
  import {
3
3
  CandidateCorrectionMixin,
4
4
  ChoiceCorrectionMixin,
@@ -35,7 +35,7 @@ import {
35
35
  TestNavigationCorrection,
36
36
  TestShowCorrectResponse,
37
37
  correctionPart
38
- } from "./chunk-D3BYGEQU.js";
38
+ } from "./chunk-F7FKSHZS.js";
39
39
  import {
40
40
  QTI_TEST_STATE_VERSION,
41
41
  QtiAssessmentItemRef,
@@ -79,7 +79,7 @@ import {
79
79
  TestView,
80
80
  TestViewToggle,
81
81
  ttsContext
82
- } from "./chunk-SIE3E4FG.js";
82
+ } from "./chunk-UTW5VDTD.js";
83
83
  import "./chunk-GBZNFSFY.js";
84
84
  import {
85
85
  PUBLIC_ITEM_EVENTS,
@@ -4603,9 +4603,15 @@ object, do not mutate it: an in-place change does not notify the components insi
4603
4603
  textContent?: string | number | undefined;
4604
4604
  };
4605
4605
 
4606
- export type TestCheckItemProps = {};
4606
+ export type TestCheckItemProps = {
4607
+ /** The view to switch to after the attempt ended. */
4608
+ view?: TestCheckItem["view"] | undefined;
4609
+ };
4607
4610
 
4608
4611
  export type TestCheckItemSolidJsProps = {
4612
+ /** The view to switch to after the attempt ended. */
4613
+ "prop:view"?: TestCheckItem["view"] | undefined;
4614
+
4609
4615
  /** Set the innerHTML of the element */
4610
4616
  innerHTML?: string | undefined;
4611
4617
  /** Set the textContent of the element */
@@ -6458,9 +6464,15 @@ object, do not mutate it: an in-place change does not notify the components insi
6458
6464
  textContent?: string | number | undefined;
6459
6465
  };
6460
6466
 
6461
- export type TestCheckItemCorrectionProps = {};
6467
+ export type TestCheckItemCorrectionProps = {
6468
+ /** The view to switch to after the attempt ended. */
6469
+ view?: TestCheckItemCorrection["view"] | undefined;
6470
+ };
6462
6471
 
6463
6472
  export type TestCheckItemCorrectionSolidJsProps = {
6473
+ /** The view to switch to after the attempt ended. */
6474
+ "prop:view"?: TestCheckItemCorrection["view"] | undefined;
6475
+
6464
6476
  /** Set the innerHTML of the element */
6465
6477
  innerHTML?: string | undefined;
6466
6478
  /** Set the textContent of the element */
@@ -9561,7 +9573,15 @@ export type CustomElements = {
9561
9573
  "qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
9562
9574
 
9563
9575
  /**
9576
+ * Ends the attempt on the current item and switches the test to `view` (default `scorer`), which
9577
+ * reveals the `[view]` content for that view, such as a scorer's rubric. The view stays until
9578
+ * something switches it back (`test-view-toggle`).
9579
+ *
9580
+ * ## Attributes & Properties
9564
9581
  *
9582
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9583
+ *
9584
+ * - `view`: The view to switch to after the attempt ended.
9565
9585
  */
9566
9586
  "test-check-item": Partial<
9567
9587
  TestCheckItemProps & BaseProps<TestCheckItem> & BaseEvents
@@ -12165,6 +12185,12 @@ export type CustomElements = {
12165
12185
 
12166
12186
  /**
12167
12187
  * Check-item extension that reveals the correct response after scoring.
12188
+ *
12189
+ * ## Attributes & Properties
12190
+ *
12191
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
12192
+ *
12193
+ * - `view`: The view to switch to after the attempt ended.
12168
12194
  */
12169
12195
  "test-check-item": Partial<
12170
12196
  TestCheckItemCorrectionProps &
@@ -15371,7 +15397,15 @@ export type CustomElementsSolidJs = {
15371
15397
  >;
15372
15398
 
15373
15399
  /**
15400
+ * Ends the attempt on the current item and switches the test to `view` (default `scorer`), which
15401
+ * reveals the `[view]` content for that view, such as a scorer's rubric. The view stays until
15402
+ * something switches it back (`test-view-toggle`).
15403
+ *
15404
+ * ## Attributes & Properties
15405
+ *
15406
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15374
15407
  *
15408
+ * - `view`: The view to switch to after the attempt ended.
15375
15409
  */
15376
15410
  "test-check-item": Partial<
15377
15411
  TestCheckItemProps &
@@ -18243,6 +18277,12 @@ export type CustomElementsSolidJs = {
18243
18277
 
18244
18278
  /**
18245
18279
  * Check-item extension that reveals the correct response after scoring.
18280
+ *
18281
+ * ## Attributes & Properties
18282
+ *
18283
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
18284
+ *
18285
+ * - `view`: The view to switch to after the attempt ended.
18246
18286
  */
18247
18287
  "test-check-item": Partial<
18248
18288
  TestCheckItemCorrectionProps &
@@ -776,8 +776,15 @@ declare global {
776
776
  }
777
777
  }
778
778
 
779
+ /**
780
+ * Ends the attempt on the current item and switches the test to `view` (default `scorer`), which
781
+ * reveals the `[view]` content for that view, such as a scorer's rubric. The view stays until
782
+ * something switches it back (`test-view-toggle`).
783
+ *
784
+ * @attr view - The view to switch to after the attempt ended.
785
+ */
779
786
  declare class TestCheckItem extends LitElement {
780
- protected testHost?: TestHost;
787
+ view: View;
781
788
  static styles: lit.CSSResult;
782
789
  constructor();
783
790
  render(): lit.TemplateResult<1>;
package/dist/test.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { U as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-86TlaMlI.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, 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';
1
+ import { U as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-7YudNPea.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, 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-7YudNPea.js';
3
3
  import { LitElement } from 'lit';
4
4
  import { b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-B55QkJ92.js';
5
5
  import { S as SessionContext } from './session.context.d-D5080LVx.js';
package/dist/test.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-OQDBARD5.js";
1
+ import "./chunk-KQSR6LZH.js";
2
2
  import {
3
3
  QTI_TEST_STATE_VERSION,
4
4
  QtiAssessmentItemRef,
@@ -42,7 +42,7 @@ import {
42
42
  TestView,
43
43
  TestViewToggle,
44
44
  ttsContext
45
- } from "./chunk-SIE3E4FG.js";
45
+ } from "./chunk-UTW5VDTD.js";
46
46
  import "./chunk-6U3YPHXU.js";
47
47
  import "./chunk-ZP6QQYSU.js";
48
48
  import "./chunk-4DB4SC5K.js";
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.3",
4
+ "version": "10.0.0-next.4",
5
5
  "author": "",
6
6
  "dependencies": {
7
7
  "@heximal/templates": "^0.1.5",
@@ -11,13 +11,13 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@qti-components/base": "^2.4.1-next.0",
14
- "@qti-components/corrections": "^0.4.1-next.1",
14
+ "@qti-components/corrections": "^0.4.1-next.2",
15
15
  "@qti-components/elements": "^1.10.0-next.1",
16
16
  "@qti-components/interactions": "^1.10.5-next.1",
17
17
  "@qti-components/item": "^1.5.1-next.1",
18
18
  "@qti-components/loader": "^1.3.4-next.0",
19
19
  "@qti-components/processing": "^1.6.1-next.0",
20
- "@qti-components/test": "^1.10.0-next.3",
20
+ "@qti-components/test": "^2.0.0-next.4",
21
21
  "@qti-components/theme": "^2.2.2-next.0",
22
22
  "@qti-components/transformers": "^1.7.3"
23
23
  },