@citolab/qti-components 7.3.2 → 7.3.3

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 (109) hide show
  1. package/cdn/chunks/chunk-2FHBMRTL.js +10 -0
  2. package/cdn/chunks/chunk-2IPVI6JS.js +8 -0
  3. package/cdn/chunks/chunk-2MMQH3OR.js +8 -0
  4. package/cdn/chunks/chunk-3OIAVUFK.js +8 -0
  5. package/cdn/chunks/chunk-5DVOEPIP.js +8 -0
  6. package/cdn/chunks/chunk-7JO3EE5V.js +5 -0
  7. package/cdn/chunks/chunk-AMH674XL.js +1450 -0
  8. package/cdn/chunks/chunk-C55DPNSW.js +8 -0
  9. package/cdn/chunks/chunk-E7FZUPJ2.js +8 -0
  10. package/cdn/chunks/chunk-LGSTDI7O.js +8 -0
  11. package/cdn/chunks/chunk-N7K6VO7F.js +1 -0
  12. package/cdn/chunks/chunk-NPYS4GGN.js +5 -0
  13. package/cdn/chunks/chunk-OGZEE7T7.js +8 -0
  14. package/cdn/chunks/chunk-QA3FBQSF.js +5 -0
  15. package/cdn/chunks/chunk-QT25DBDO.js +8 -0
  16. package/cdn/chunks/chunk-SSBR2KEX.js +8 -0
  17. package/cdn/chunks/chunk-TB7NCJUL.js +8 -0
  18. package/cdn/chunks/chunk-V6LLE3H4.js +8 -0
  19. package/cdn/chunks/chunk-X5K7LBUM.js +8 -0
  20. package/cdn/chunks/chunk-Z6WP2K4O.js +1450 -0
  21. package/cdn/chunks/chunk-ZKETWB2E.js +8 -0
  22. package/cdn/index.global.js +1 -1
  23. package/cdn/index.js +1 -1
  24. package/cdn/qti-components/index.js +1 -1
  25. package/cdn/qti-test/components/index.js +1 -1
  26. package/cdn/qti-test/components/test-next.js +1 -1
  27. package/cdn/qti-test/components/test-prev.js +1 -1
  28. package/cdn/qti-test/components/test-scoring-feedback.js +1 -1
  29. package/cdn/qti-test/core/index.js +1 -1
  30. package/dist/chunks/chunk-4PL7XU3H.js +82 -0
  31. package/dist/chunks/chunk-4PL7XU3H.js.map +1 -0
  32. package/dist/chunks/chunk-4YWF7QTH.js +92 -0
  33. package/dist/chunks/chunk-4YWF7QTH.js.map +1 -0
  34. package/dist/chunks/chunk-7RFWGVJR.js +109 -0
  35. package/dist/chunks/chunk-7RFWGVJR.js.map +1 -0
  36. package/dist/chunks/chunk-BAG5H6N2.js +7970 -0
  37. package/dist/chunks/chunk-BAG5H6N2.js.map +1 -0
  38. package/dist/chunks/chunk-CWT66FG4.js +95 -0
  39. package/dist/chunks/chunk-CWT66FG4.js.map +1 -0
  40. package/dist/chunks/chunk-F2JDNMKV.js +100 -0
  41. package/dist/chunks/chunk-F2JDNMKV.js.map +1 -0
  42. package/dist/chunks/chunk-FZHYC3TU.js +92 -0
  43. package/dist/chunks/chunk-FZHYC3TU.js.map +1 -0
  44. package/dist/chunks/chunk-GDNPYP37.js +85 -0
  45. package/dist/chunks/chunk-GDNPYP37.js.map +1 -0
  46. package/dist/chunks/chunk-KXDEFGCK.js +887 -0
  47. package/dist/chunks/chunk-KXDEFGCK.js.map +1 -0
  48. package/dist/chunks/chunk-KZAEUKGI.js +100 -0
  49. package/dist/chunks/chunk-KZAEUKGI.js.map +1 -0
  50. package/dist/chunks/chunk-LJ4KYDFF.js +56 -0
  51. package/dist/chunks/chunk-LJ4KYDFF.js.map +1 -0
  52. package/dist/chunks/chunk-LMMYXE6U.js +85 -0
  53. package/dist/chunks/chunk-LMMYXE6U.js.map +1 -0
  54. package/dist/chunks/chunk-OD6DYLAO.js +7940 -0
  55. package/dist/chunks/chunk-OD6DYLAO.js.map +1 -0
  56. package/dist/chunks/chunk-OLZSWYQO.js +100 -0
  57. package/dist/chunks/chunk-OLZSWYQO.js.map +1 -0
  58. package/dist/chunks/chunk-PI2VZUCF.js +91 -0
  59. package/dist/chunks/chunk-PI2VZUCF.js.map +1 -0
  60. package/dist/chunks/chunk-RZK54XLD.js +100 -0
  61. package/dist/chunks/chunk-RZK54XLD.js.map +1 -0
  62. package/dist/chunks/chunk-SBY26ONA.js +99 -0
  63. package/dist/chunks/chunk-SBY26ONA.js.map +1 -0
  64. package/dist/chunks/chunk-WH6TRM5K.js +82 -0
  65. package/dist/chunks/chunk-WH6TRM5K.js.map +1 -0
  66. package/dist/chunks/chunk-WLDX63OS.js +92 -0
  67. package/dist/chunks/chunk-WLDX63OS.js.map +1 -0
  68. package/dist/chunks/chunk-X5L7SQQN.js +887 -0
  69. package/dist/chunks/chunk-X5L7SQQN.js.map +1 -0
  70. package/dist/chunks/chunk-X5RBTIXP.js +86 -0
  71. package/dist/chunks/chunk-X5RBTIXP.js.map +1 -0
  72. package/dist/exports/computed-item.context.d.ts +1 -1
  73. package/dist/exports/computed.context.d.ts +2 -2
  74. package/dist/exports/interaction.d.ts +1 -1
  75. package/dist/exports/item.context.d.ts +1 -1
  76. package/dist/exports/qti-assessment-item.context.d.ts +1 -1
  77. package/dist/exports/qti-condition-expression.d.ts +1 -1
  78. package/dist/exports/qti-expression.d.ts +1 -1
  79. package/dist/exports/session.context.d.ts +2 -2
  80. package/dist/exports/test.context.d.ts +1 -1
  81. package/dist/exports/variables.d.ts +1 -1
  82. package/dist/index.d.ts +2 -2
  83. package/dist/index.js +5 -6
  84. package/dist/qti-components/index.d.ts +2 -2
  85. package/dist/qti-components/index.js +1 -2
  86. package/dist/qti-components-jsx.d.ts +73 -12
  87. package/dist/qti-item/components/item-show-correct-response.d.ts +1 -1
  88. package/dist/qti-item/components/print-item-variables.d.ts +1 -1
  89. package/dist/qti-item/core/index.d.ts +1 -1
  90. package/dist/qti-loader/index.d.ts +1 -1
  91. package/dist/qti-response-declaration-pCFZA_aW.d.ts +1356 -0
  92. package/dist/qti-test/components/index.d.ts +2 -2
  93. package/dist/qti-test/components/index.js +3 -4
  94. package/dist/qti-test/components/test-navigation.d.ts +2 -2
  95. package/dist/qti-test/components/test-next.d.ts +14 -16
  96. package/dist/qti-test/components/test-next.js +1 -1
  97. package/dist/qti-test/components/test-prev.d.ts +16 -18
  98. package/dist/qti-test/components/test-prev.js +1 -3
  99. package/dist/qti-test/components/test-print-context.d.ts +2 -2
  100. package/dist/qti-test/components/test-print-item-variables.d.ts +2 -2
  101. package/dist/qti-test/components/test-scoring-buttons.d.ts +2 -2
  102. package/dist/qti-test/components/test-scoring-feedback.d.ts +2 -2
  103. package/dist/qti-test/components/test-scoring-feedback.js +1 -1
  104. package/dist/qti-test/components/test-show-correct-response.d.ts +2 -2
  105. package/dist/qti-test/core/index.d.ts +3 -3
  106. package/dist/qti-test/core/index.js +2 -3
  107. package/dist/qti-test-feedback-2xjKezsY.d.ts +85 -0
  108. package/dist/vscode.html-custom-data.json +39 -15
  109. package/package.json +1 -1
@@ -19,8 +19,8 @@ export { TestCheckItem } from './test-check-item.js';
19
19
  import 'lit-html';
20
20
  import 'lit';
21
21
  import '../../exports/computed.context.js';
22
- import '../../qti-test-feedback-C6Z0bJMR.js';
23
- import '../../qti-response-declaration-y-C5AMTr.js';
22
+ import '../../qti-test-feedback-2xjKezsY.js';
23
+ import '../../qti-response-declaration-pCFZA_aW.js';
24
24
  import '../../exports/expression-result.js';
25
25
  import '../../exports/interaction.interface.js';
26
26
  import 'lit-html/directives/ref.js';
@@ -10,7 +10,7 @@ import {
10
10
  } from "../../chunks/chunk-YS4T2ORC.js";
11
11
  import {
12
12
  TestPrev
13
- } from "../../chunks/chunk-Y5S4XHSH.js";
13
+ } from "../../chunks/chunk-KZAEUKGI.js";
14
14
  import {
15
15
  TestPrintContext
16
16
  } from "../../chunks/chunk-WFFIUFJJ.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "../../chunks/chunk-K5F4CT37.js";
23
23
  import {
24
24
  TestScoringFeedback
25
- } from "../../chunks/chunk-W5FVZTR6.js";
25
+ } from "../../chunks/chunk-LJ4KYDFF.js";
26
26
  import {
27
27
  TestSectionButtonsStamp
28
28
  } from "../../chunks/chunk-IWQR5TSB.js";
@@ -49,7 +49,7 @@ import {
49
49
  } from "../../chunks/chunk-ZLULX3V3.js";
50
50
  import {
51
51
  TestNext
52
- } from "../../chunks/chunk-6SGCKTJ6.js";
52
+ } from "../../chunks/chunk-OLZSWYQO.js";
53
53
  import "../../chunks/chunk-5ZHHNEDA.js";
54
54
  import {
55
55
  TestPagingButtonsStamp
@@ -57,7 +57,6 @@ import {
57
57
  import "../../chunks/chunk-RGQDJQVE.js";
58
58
  import "../../chunks/chunk-22IRJWWY.js";
59
59
  import "../../chunks/chunk-CJADUWEC.js";
60
- import "../../chunks/chunk-D3RGDWKP.js";
61
60
  import "../../chunks/chunk-ELDMXTUQ.js";
62
61
  import "../../chunks/chunk-VEWD22O5.js";
63
62
  import "../../chunks/chunk-AZIKAG7K.js";
@@ -4,8 +4,8 @@ import { ComputedContext } from '../../exports/computed.context.js';
4
4
  import { ConfigContext } from '../../exports/config.context.js';
5
5
  import { SessionContext } from '../../exports/session.context.js';
6
6
  import { TestContext } from '../../exports/test.context.js';
7
- import '../../qti-test-feedback-C6Z0bJMR.js';
8
- import '../../qti-response-declaration-y-C5AMTr.js';
7
+ import '../../qti-test-feedback-2xjKezsY.js';
8
+ import '../../qti-response-declaration-pCFZA_aW.js';
9
9
  import '../../exports/expression-result.js';
10
10
  import '../../exports/interaction.interface.js';
11
11
  import 'lit-html/directives/ref.js';
@@ -2,8 +2,8 @@ import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement } from 'lit';
4
4
  import { ComputedContext, ComputedItem } from '../../exports/computed.context.js';
5
- import '../../qti-test-feedback-C6Z0bJMR.js';
6
- import '../../qti-response-declaration-y-C5AMTr.js';
5
+ import '../../qti-test-feedback-2xjKezsY.js';
6
+ import '../../qti-response-declaration-pCFZA_aW.js';
7
7
  import '../../exports/expression-result.js';
8
8
  import '../../exports/interaction.interface.js';
9
9
  import 'lit-html/directives/ref.js';
@@ -11,28 +11,26 @@ import 'stampino';
11
11
  import '../../exports/test.context.js';
12
12
  import '../../exports/computed-item.context.js';
13
13
 
14
- /**
15
- * Represents a custom element for navigating to the next test item.
16
- *
17
- * @remarks
18
- * This element provides functionality for navigating to the next test item.
19
- *
20
- * @example
21
- * ```html
22
- * <test-next></test-next>
23
- * ```
24
- */
25
14
  declare class TestNext extends LitElement {
15
+ /**
16
+ * External input: allows parent to disable this element
17
+ */
26
18
  disabled: boolean;
19
+ /**
20
+ * Internal logic + external flag = effective disabled state (reflected)
21
+ */
22
+ get _effectiveDisabled(): boolean;
23
+ private set _effectiveDisabled(value);
27
24
  protected computedContext: ComputedContext;
28
25
  sectionItems: ComputedItem[];
29
26
  itemIndex: number;
27
+ private _internallyDisabled;
30
28
  static styles: lit.CSSResult;
31
29
  private _internals;
32
30
  constructor();
33
- connectedCallback(): void;
34
- willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
35
- checkDisabled(): void;
31
+ willUpdate(): void;
32
+ updated(): void;
33
+ private _updateInternalDisabledState;
36
34
  protected _requestItem(identifier: string): void;
37
35
  render(): lit_html.TemplateResult<1>;
38
36
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TestNext
3
- } from "../../chunks/chunk-6SGCKTJ6.js";
3
+ } from "../../chunks/chunk-OLZSWYQO.js";
4
4
  import "../../chunks/chunk-5ZHHNEDA.js";
5
5
  import "../../chunks/chunk-AZIKAG7K.js";
6
6
  import "../../chunks/chunk-H2JE6IVU.js";
@@ -1,9 +1,9 @@
1
1
  import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement } from 'lit';
4
- import { ComputedItem, ComputedContext } from '../../exports/computed.context.js';
5
- import '../../qti-test-feedback-C6Z0bJMR.js';
6
- import '../../qti-response-declaration-y-C5AMTr.js';
4
+ import { ComputedItem } from '../../exports/computed.context.js';
5
+ import '../../qti-test-feedback-2xjKezsY.js';
6
+ import '../../qti-response-declaration-pCFZA_aW.js';
7
7
  import '../../exports/expression-result.js';
8
8
  import '../../exports/interaction.interface.js';
9
9
  import 'lit-html/directives/ref.js';
@@ -11,34 +11,32 @@ import 'stampino';
11
11
  import '../../exports/test.context.js';
12
12
  import '../../exports/computed-item.context.js';
13
13
 
14
- /**
15
- * Represents a custom element for navigating to the previous test item.
16
- *
17
- * @remarks
18
- * This element provides functionality for navigating to the previous test item.
19
- *
20
- * @example
21
- * ```html
22
- * <test-prev></test-prev>
23
- * ```
24
- */
25
14
  declare class TestPrev extends LitElement {
15
+ /**
16
+ * External input: allows parent to disable this element.
17
+ */
26
18
  disabled: boolean;
19
+ /**
20
+ * Internal logic + external flag = effective disabled state (reflected)
21
+ */
22
+ get _effectiveDisabled(): boolean;
23
+ private set _effectiveDisabled(value);
27
24
  private computedContext;
28
25
  sectionItems: ComputedItem[];
29
26
  itemIndex: number;
30
- _handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext): void;
27
+ private _internallyDisabled;
31
28
  static styles: lit.CSSResult;
32
29
  private _internals;
33
30
  constructor();
34
- willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
35
- checkDisabled(): void;
31
+ willUpdate(): void;
32
+ updated(): void;
33
+ private _updateInternalDisabledState;
36
34
  protected _requestItem(identifier: string): void;
37
35
  render(): lit_html.TemplateResult<1>;
38
36
  }
39
37
  declare global {
40
38
  interface HTMLElementTagNameMap {
41
- 'test-previous': TestPrev;
39
+ 'test-prev': TestPrev;
42
40
  }
43
41
  }
44
42
 
@@ -1,9 +1,7 @@
1
1
  import {
2
2
  TestPrev
3
- } from "../../chunks/chunk-Y5S4XHSH.js";
3
+ } from "../../chunks/chunk-KZAEUKGI.js";
4
4
  import "../../chunks/chunk-5ZHHNEDA.js";
5
- import "../../chunks/chunk-D3RGDWKP.js";
6
- import "../../chunks/chunk-ELDMXTUQ.js";
7
5
  import "../../chunks/chunk-AZIKAG7K.js";
8
6
  import "../../chunks/chunk-H2JE6IVU.js";
9
7
  export {
@@ -1,8 +1,8 @@
1
1
  import * as lit_html from 'lit-html';
2
2
  import { LitElement } from 'lit';
3
3
  import { ComputedContext } from '../../exports/computed.context.js';
4
- import '../../qti-test-feedback-C6Z0bJMR.js';
5
- import '../../qti-response-declaration-y-C5AMTr.js';
4
+ import '../../qti-test-feedback-2xjKezsY.js';
5
+ import '../../qti-response-declaration-pCFZA_aW.js';
6
6
  import '../../exports/expression-result.js';
7
7
  import '../../exports/interaction.interface.js';
8
8
  import 'lit-html/directives/ref.js';
@@ -2,8 +2,8 @@ import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement } from 'lit';
4
4
  import { ComputedContext } from '../../exports/computed.context.js';
5
- import '../../qti-test-feedback-C6Z0bJMR.js';
6
- import '../../qti-response-declaration-y-C5AMTr.js';
5
+ import '../../qti-test-feedback-2xjKezsY.js';
6
+ import '../../qti-response-declaration-pCFZA_aW.js';
7
7
  import '../../exports/expression-result.js';
8
8
  import '../../exports/interaction.interface.js';
9
9
  import 'lit-html/directives/ref.js';
@@ -2,8 +2,8 @@ import * as lit_html from 'lit-html';
2
2
  import { LitElement, nothing } from 'lit';
3
3
  import { TemplateFunction } from 'stampino';
4
4
  import { ComputedContext } from '../../exports/computed.context.js';
5
- import '../../qti-test-feedback-C6Z0bJMR.js';
6
- import '../../qti-response-declaration-y-C5AMTr.js';
5
+ import '../../qti-test-feedback-2xjKezsY.js';
6
+ import '../../qti-response-declaration-pCFZA_aW.js';
7
7
  import '../../exports/expression-result.js';
8
8
  import '../../exports/interaction.interface.js';
9
9
  import 'lit-html/directives/ref.js';
@@ -2,8 +2,8 @@ import * as lit_html from 'lit-html';
2
2
  import { LitElement } from 'lit';
3
3
  import { ComputedContext } from '../../exports/computed.context.js';
4
4
  import { ViewMode } from 'storybook/internal/types';
5
- import '../../qti-test-feedback-C6Z0bJMR.js';
6
- import '../../qti-response-declaration-y-C5AMTr.js';
5
+ import '../../qti-test-feedback-2xjKezsY.js';
6
+ import '../../qti-response-declaration-pCFZA_aW.js';
7
7
  import '../../exports/expression-result.js';
8
8
  import '../../exports/interaction.interface.js';
9
9
  import 'lit-html/directives/ref.js';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TestScoringFeedback
3
- } from "../../chunks/chunk-W5FVZTR6.js";
3
+ } from "../../chunks/chunk-LJ4KYDFF.js";
4
4
  import "../../chunks/chunk-AZIKAG7K.js";
5
5
  import "../../chunks/chunk-H2JE6IVU.js";
6
6
  export {
@@ -2,8 +2,8 @@ import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement } from 'lit';
4
4
  import { ComputedContext } from '../../exports/computed.context.js';
5
- import '../../qti-test-feedback-C6Z0bJMR.js';
6
- import '../../qti-response-declaration-y-C5AMTr.js';
5
+ import '../../qti-test-feedback-2xjKezsY.js';
6
+ import '../../qti-response-declaration-pCFZA_aW.js';
7
7
  import '../../exports/expression-result.js';
8
8
  import '../../exports/interaction.interface.js';
9
9
  import 'lit-html/directives/ref.js';
@@ -1,11 +1,11 @@
1
1
  import * as lit_html from 'lit-html';
2
- import { a9 as VariableValue, aa as OutcomeVariable, a6 as VariableDeclaration } from '../../qti-response-declaration-y-C5AMTr.js';
2
+ import { a9 as VariableValue, aa as OutcomeVariable, a6 as VariableDeclaration } from '../../qti-response-declaration-pCFZA_aW.js';
3
3
  import { LitElement } from 'lit';
4
4
  import { SessionContext } from '../../exports/session.context.js';
5
5
  import { TestContext } from '../../exports/test.context.js';
6
6
  export { INITIAL_TEST_CONTEXT, testContext } from '../../exports/test.context.js';
7
- import { b as QtiAssessmentTest } from '../../qti-test-feedback-C6Z0bJMR.js';
8
- export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, d as QtiTestFeedback, c as QtiTestPart } from '../../qti-test-feedback-C6Z0bJMR.js';
7
+ import { b as QtiAssessmentTest } from '../../qti-test-feedback-2xjKezsY.js';
8
+ export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, d as QtiTestFeedback, c as QtiTestPart } from '../../qti-test-feedback-2xjKezsY.js';
9
9
  import '../../exports/expression-result.js';
10
10
  import '../../exports/interaction.interface.js';
11
11
  import 'lit-html/directives/ref.js';
@@ -5,14 +5,13 @@ import {
5
5
  QtiTest,
6
6
  QtiTestFeedback,
7
7
  QtiTestPart
8
- } from "../../chunks/chunk-U2662SPQ.js";
8
+ } from "../../chunks/chunk-X5L7SQQN.js";
9
9
  import "../../chunks/chunk-22IRJWWY.js";
10
10
  import {
11
11
  INITIAL_TEST_CONTEXT,
12
12
  testContext
13
13
  } from "../../chunks/chunk-CJADUWEC.js";
14
- import "../../chunks/chunk-AOXSRF6N.js";
15
- import "../../chunks/chunk-D3RGDWKP.js";
14
+ import "../../chunks/chunk-BAG5H6N2.js";
16
15
  import "../../chunks/chunk-ELDMXTUQ.js";
17
16
  import "../../chunks/chunk-OOQLWOYU.js";
18
17
  import "../../chunks/chunk-I7HVKMDI.js";
@@ -0,0 +1,85 @@
1
+ import { Q as QtiAssessmentItem, f as QtiModalFeedback } from './qti-response-declaration-pCFZA_aW.js';
2
+ import * as lit from 'lit';
3
+ import { LitElement } from 'lit';
4
+ import { TemplateFunction } from 'stampino';
5
+ import * as lit_html from 'lit-html';
6
+ import { TestContext } from './exports/test.context.js';
7
+
8
+ type View = 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor' | '';
9
+
10
+ declare class QtiAssessmentItemRef extends LitElement {
11
+ category?: string;
12
+ identifier?: string;
13
+ required?: boolean;
14
+ fixed?: boolean;
15
+ href?: string;
16
+ weigths: Map<string, number>;
17
+ xmlDoc: DocumentFragment;
18
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
19
+ get assessmentItem(): QtiAssessmentItem | null;
20
+ myTemplate: TemplateFunction;
21
+ connectedCallback(): Promise<void>;
22
+ render(): unknown;
23
+ }
24
+ declare global {
25
+ interface HTMLElementTagNameMap {
26
+ 'qti-assessment-item-ref': QtiAssessmentItemRef;
27
+ }
28
+ }
29
+
30
+ declare class QtiAssessmentSection extends LitElement {
31
+ identifier: string;
32
+ required: string;
33
+ fixed: boolean;
34
+ title: string;
35
+ visible: boolean;
36
+ keepTogether: boolean;
37
+ _testContext?: TestContext;
38
+ connectedCallback(): Promise<void>;
39
+ render(): lit_html.TemplateResult<1>;
40
+ }
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ 'qti-assessment-section': QtiAssessmentSection;
44
+ }
45
+ }
46
+
47
+ declare class QtiAssessmentTest extends LitElement {
48
+ identifier: string;
49
+ title: string;
50
+ _testContext?: TestContext;
51
+ connectedCallback(): Promise<void>;
52
+ render(): lit_html.TemplateResult<1>;
53
+ }
54
+ declare global {
55
+ interface HTMLElementTagNameMap {
56
+ 'qti-assessment-test': QtiAssessmentTest;
57
+ }
58
+ }
59
+
60
+ declare class QtiTestPart extends LitElement {
61
+ identifier: string;
62
+ title: string;
63
+ class: string;
64
+ navigationMode: 'linear' | 'nonlinear';
65
+ submissionMode: 'individual' | 'simultaneous';
66
+ connectedCallback(): Promise<void>;
67
+ render(): lit_html.TemplateResult<1>;
68
+ }
69
+ declare global {
70
+ interface HTMLElementTagNameMap {
71
+ 'qti-test-part': QtiTestPart;
72
+ }
73
+ }
74
+
75
+ declare class QtiTestFeedback extends QtiModalFeedback {
76
+ static styles: lit.CSSResult;
77
+ render(): lit_html.TemplateResult<1>;
78
+ }
79
+ declare global {
80
+ interface HTMLElementTagNameMap {
81
+ 'qti-test-feedback': QtiTestFeedback;
82
+ }
83
+ }
84
+
85
+ export { QtiAssessmentItemRef as Q, type View as V, QtiAssessmentSection as a, QtiAssessmentTest as b, QtiTestPart as c, QtiTestFeedback as d };
@@ -233,7 +233,7 @@
233
233
  },
234
234
  {
235
235
  "name": "qti-assessment-item",
236
- "description": "The qti-assessment-item element contains all the other QTI 3 item structures.\n---\n\n\n### **Events:**\n - **qti-assessment-item-connected**\n- **qti-item-context-updated** - Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.\n- **qti-interaction-changed**\n- **qti-outcome-changed**\n\n### **Methods:**\n - **showCorrectResponse(show: _boolean_): _void_** - Toggles the display of correct responses for interactions.\n\n",
236
+ "description": "The qti-assessment-item element contains all the other QTI 3 item structures.\n---\n\n\n### **Events:**\n - **qti-assessment-item-connected**\n- **qti-item-context-updated** - Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.\n- **qti-interaction-changed**\n- **qti-outcome-changed**\n\n### **Methods:**\n - **showCorrectResponse(show: _boolean_): _void_** - Toggles the display of correct responses for all interactions.\n\n",
237
237
  "attributes": [
238
238
  { "name": "title", "values": [] },
239
239
  { "name": "identifier", "values": [] },
@@ -560,11 +560,17 @@
560
560
  },
561
561
  {
562
562
  "name": "qti-portable-custom-interaction",
563
- "description": "\n---\n",
563
+ "description": "\n---\n\n\n### **Methods:**\n \n- **register(pci: _IMSpci<ConfigProperties<unknown>>_)** - DIRECT MODE: Register PCI instance\n\n\n- **buildRequireConfig()** - DIRECT MODE: Build RequireJS configuration\n\n- **toggleCorrectResponse(responseVariable: _ResponseVariable_, show: _boolean_)** - Toggle the display of the correct response\n- **disable()** - Method to disable the PCI for review mode\nThis can be used when showing the correct response\n- **enable()** - Method to enable the PCI for interactive mode",
564
564
  "attributes": [
565
565
  { "name": "module", "values": [] },
566
566
  { "name": "custom-interaction-type-identifier", "values": [] },
567
- { "name": "data-base-url", "values": [] }
567
+ { "name": "data-require-paths", "values": [] },
568
+ { "name": "data-require-shim", "values": [] },
569
+ { "name": "data-require-js-url", "values": [] },
570
+ { "name": "data-base-url", "values": [] },
571
+ { "name": "data-use-iframe", "values": [] },
572
+ { "name": "data-use-default-shims", "values": [] },
573
+ { "name": "data-use-default-paths", "values": [] }
568
574
  ],
569
575
  "references": []
570
576
  },
@@ -706,11 +712,17 @@
706
712
  },
707
713
  {
708
714
  "name": "qti-portable-custom-interaction-test",
709
- "description": "Test-specific extension of QtiPortableCustomInteraction that adds methods\nfor interacting with the iframe content in tests.\n---\n\n\n### **Methods:**\n - **getIFrameContent(): __** - Gets the HTML content of the iframe for testing purposes\n- **recreateIframe(): __** - Recreates the iframe completely\n- **iFrameMouseClick(x: _number_, y: _number_): __** - Simulates a mouse click at specific coordinates within the iframe\n- **iFrameClickOnElement(selector: _string_): __** - Clicks on an element identified by a CSS selector\n- **iFrameClickOnElementByText(text: _string_): __** - Clicks on an element containing the specified text\n- **iFrameSetValueElement(selector: _string_, value: _string_): __** - Sets the value of an input element identified by a CSS selector\n- **iFrameSetValueElementByText(text: _string_, value: _string_): __** - Sets the value of an input element containing the specified text\n- **iFrameMousedownOnElement(selector: _string_): __** - Performs a mousedown event on an element identified by a CSS selector\n",
715
+ "description": "Test-specific extension of QtiPortableCustomInteraction that adds methods\nfor interacting with the iframe content in tests.\n---\n\n\n### **Methods:**\n - **getIFrameContent(): __** - Gets the HTML content of the iframe for testing purposes\n- **recreateIframe(): __** - Recreates the iframe completely\n- **iFrameMouseClick(x: _number_, y: _number_): __** - Simulates a mouse click at specific coordinates within the iframe\n- **iFrameClickOnElement(selector: _string_): __** - Clicks on an element identified by a CSS selector\n- **iFrameClickOnElementByText(text: _string_): __** - Clicks on an element containing the specified text\n- **iFrameSetValueElement(selector: _string_, value: _string_): __** - Sets the value of an input element identified by a CSS selector\n- **iFrameSetValueElementByText(text: _string_, value: _string_): __** - Sets the value of an input element containing the specified text\n- **iFrameMousedownOnElement(selector: _string_): __** - Performs a mousedown event on an element identified by a CSS selector\n\n\n- **register(pci: _IMSpci<ConfigProperties<unknown>>_)** - DIRECT MODE: Register PCI instance\n\n\n- **buildRequireConfig()** - DIRECT MODE: Build RequireJS configuration\n- **toggleCorrectResponse(responseVariable: _ResponseVariable_, show: _boolean_)** - Toggle the display of the correct response\n- **disable()** - Method to disable the PCI for review mode\nThis can be used when showing the correct response\n- **enable()** - Method to enable the PCI for interactive mode",
710
716
  "attributes": [
711
717
  { "name": "module", "values": [] },
712
718
  { "name": "custom-interaction-type-identifier", "values": [] },
713
- { "name": "data-base-url", "values": [] }
719
+ { "name": "data-require-paths", "values": [] },
720
+ { "name": "data-require-shim", "values": [] },
721
+ { "name": "data-require-js-url", "values": [] },
722
+ { "name": "data-base-url", "values": [] },
723
+ { "name": "data-use-iframe", "values": [] },
724
+ { "name": "data-use-default-shims", "values": [] },
725
+ { "name": "data-use-default-paths", "values": [] }
714
726
  ],
715
727
  "references": []
716
728
  },
@@ -738,6 +750,12 @@
738
750
  ],
739
751
  "references": []
740
752
  },
753
+ {
754
+ "name": "print-item-variables",
755
+ "description": "\n---\n",
756
+ "attributes": [],
757
+ "references": []
758
+ },
741
759
  {
742
760
  "name": "item-show-correct-response",
743
761
  "description": "\n---\n\n\n### **Events:**\n - **item-show-correct-response**",
@@ -750,12 +768,6 @@
750
768
  ],
751
769
  "references": []
752
770
  },
753
- {
754
- "name": "print-item-variables",
755
- "description": "\n---\n",
756
- "attributes": [],
757
- "references": []
758
- },
759
771
  {
760
772
  "name": "qti-item",
761
773
  "description": "`<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.\nIt can also host some functionalities to interact with the item like scoring, showing feedback, etc.\nPlacing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.\nSee `<item-container>` for more details.\n\n```html\n<qti-item>\n <item-container class=\"m-4 bg-white\" item-url=\"./path/to/item.xml\"></item-container>\n</qti-item>\n```\n---\n",
@@ -849,14 +861,26 @@
849
861
  },
850
862
  {
851
863
  "name": "test-next",
852
- "description": "Represents a custom element for navigating to the next test item.\n---\n\n\n### **Events:**\n - **qti-request-navigation**",
853
- "attributes": [{ "name": "disabled", "values": [] }],
864
+ "description": "\n---\n\n\n### **Events:**\n - **qti-request-navigation**",
865
+ "attributes": [
866
+ {
867
+ "name": "disabled",
868
+ "description": "Internal logic + external flag = effective disabled state (reflected)",
869
+ "values": []
870
+ }
871
+ ],
854
872
  "references": []
855
873
  },
856
874
  {
857
875
  "name": "test-prev",
858
- "description": "Represents a custom element for navigating to the previous test item.\n---\n\n\n### **Events:**\n - **qti-request-navigation**",
859
- "attributes": [],
876
+ "description": "\n---\n\n\n### **Events:**\n - **qti-request-navigation**",
877
+ "attributes": [
878
+ {
879
+ "name": "disabled",
880
+ "description": "Internal logic + external flag = effective disabled state (reflected)",
881
+ "values": []
882
+ }
883
+ ],
860
884
  "references": []
861
885
  },
862
886
  {
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20.0.0"
23
23
  },
24
- "version": "7.3.2",
24
+ "version": "7.3.3",
25
25
  "type": "module",
26
26
  "main": "dist/index.js",
27
27
  "exports": {