@citolab/qti-components 7.17.0 → 7.18.0

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 (63) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +629 -278
  3. package/custom-elements.json +139 -1950
  4. package/dist/base.d.ts +11 -11
  5. package/dist/base.js +1 -1
  6. package/dist/{chunk-VEV4DGPH.js → chunk-3OCDS5FG.js} +2 -2
  7. package/dist/{chunk-C2HQFI2C.js → chunk-5D7GD3JS.js} +763 -481
  8. package/dist/chunk-5D7GD3JS.js.map +1 -0
  9. package/dist/{chunk-W4SQRNWO.js → chunk-5J5P5GJY.js} +4 -8
  10. package/dist/{chunk-W4SQRNWO.js.map → chunk-5J5P5GJY.js.map} +1 -1
  11. package/dist/{chunk-RI47B4ZT.js → chunk-DO3QY5GP.js} +2 -2
  12. package/dist/{chunk-DWIRLYDS.js → chunk-FOWDOLXY.js} +2 -2
  13. package/dist/{chunk-INKI27D5.js → chunk-GMNH42S6.js} +27 -36
  14. package/dist/chunk-GMNH42S6.js.map +1 -0
  15. package/dist/{chunk-2DOYPVF5.js → chunk-HRVIMT5Y.js} +4 -4
  16. package/dist/{chunk-O4XIWHTF.js → chunk-IDW2ETV2.js} +27 -12
  17. package/dist/chunk-IDW2ETV2.js.map +1 -0
  18. package/dist/{chunk-F44CI35W.js → chunk-L4TXKTUA.js} +2 -2
  19. package/dist/{chunk-JEUY3MYB.js → chunk-VUSGFL4B.js} +21 -17
  20. package/dist/chunk-VUSGFL4B.js.map +1 -0
  21. package/dist/{chunk-352OTVTY.js → chunk-YAPCC4BO.js} +37 -25
  22. package/dist/chunk-YAPCC4BO.js.map +1 -0
  23. package/dist/{computed-item.context-CiddHLPz.d.ts → computed-item.context-DfsW_96S.d.ts} +1 -1
  24. package/dist/{computed.context-CH09_LCR.d.ts → computed.context-DHbxad0N.d.ts} +2 -2
  25. package/dist/{config.context-DAdkDDf5.d.ts → config.context-DUz2-kxN.d.ts} +1 -1
  26. package/dist/elements.d.ts +5 -3
  27. package/dist/elements.js +4 -4
  28. package/dist/index.d.ts +10 -10
  29. package/dist/index.js +11 -11
  30. package/dist/{interaction-C5Up6-68.d.ts → interaction-BLQjAZqN.d.ts} +4 -4
  31. package/dist/interactions.d.ts +50 -119
  32. package/dist/interactions.js +4 -4
  33. package/dist/{item.context-BRKXBC3m.d.ts → item.context-CkUeDcaO.d.ts} +6 -1
  34. package/dist/item.css +1 -5
  35. package/dist/item.d.ts +3 -3
  36. package/dist/item.js +5 -5
  37. package/dist/loader.d.ts +3 -3
  38. package/dist/loader.js +2 -2
  39. package/dist/processing.d.ts +4 -4
  40. package/dist/processing.js +2 -2
  41. package/dist/qti-components-jsx.d.ts +6448 -2802
  42. package/dist/{qti-feedback-B4cMzOcq.d.ts → qti-feedback-BNXgxua1.d.ts} +2 -2
  43. package/dist/{qti-rule-base-dL4opfvi.d.ts → qti-rule-base-BZSb0WTW.d.ts} +4 -4
  44. package/dist/{qti-transform-test-Bz9A3hmD.d.ts → qti-transform-test-C2fL4PtU.d.ts} +1 -1
  45. package/dist/{test.context-Bpw1HNAZ.d.ts → test.context-Oc_8ovbV.d.ts} +3 -3
  46. package/dist/test.d.ts +28 -28
  47. package/dist/test.js +7 -7
  48. package/dist/transformers.d.ts +1 -1
  49. package/dist/transformers.js +1 -1
  50. package/dist/{variables-CusMRnyJ.d.ts → variables-CMYcDbyW.d.ts} +2 -1
  51. package/package.json +9 -9
  52. package/dist/chunk-352OTVTY.js.map +0 -1
  53. package/dist/chunk-C2HQFI2C.js.map +0 -1
  54. package/dist/chunk-INKI27D5.js.map +0 -1
  55. package/dist/chunk-JEUY3MYB.js.map +0 -1
  56. package/dist/chunk-O4XIWHTF.js.map +0 -1
  57. package/dist/vscode.css-custom-data.json +0 -11
  58. package/dist/vscode.html-custom-data.json +0 -960
  59. /package/dist/{chunk-VEV4DGPH.js.map → chunk-3OCDS5FG.js.map} +0 -0
  60. /package/dist/{chunk-RI47B4ZT.js.map → chunk-DO3QY5GP.js.map} +0 -0
  61. /package/dist/{chunk-DWIRLYDS.js.map → chunk-FOWDOLXY.js.map} +0 -0
  62. /package/dist/{chunk-2DOYPVF5.js.map → chunk-HRVIMT5Y.js.map} +0 -0
  63. /package/dist/{chunk-F44CI35W.js.map → chunk-L4TXKTUA.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as lit from 'lit';
2
2
  import { LitElement } from 'lit';
3
- import { a as Cardinality } from './variables-CusMRnyJ.js';
3
+ import { a as Cardinality } from './variables-CMYcDbyW.js';
4
4
 
5
5
  declare abstract class QtiVariableDeclaration extends LitElement {
6
6
  render(): lit.TemplateResult<1>;
@@ -18,4 +18,4 @@ declare abstract class QtiFeedback extends LitElement {
18
18
  private showFeedback;
19
19
  }
20
20
 
21
- export { QtiVariableDeclaration as Q, QtiFeedback as a };
21
+ export { QtiFeedback as Q, QtiVariableDeclaration as a };
@@ -1,8 +1,8 @@
1
1
  import * as lit from 'lit';
2
2
  import { LitElement } from 'lit';
3
- import { a as QtiContext, Q as QtiContextType } from './test.context-Bpw1HNAZ.js';
4
- import { k as ResponseVariable, h as VariableDeclaration } from './variables-CusMRnyJ.js';
5
- import { I as ItemContext } from './item.context-BRKXBC3m.js';
3
+ import { Q as QtiContext, a as QtiContextType } from './test.context-Oc_8ovbV.js';
4
+ import { f as ResponseVariable, V as VariableDeclaration } from './variables-CMYcDbyW.js';
5
+ import { I as ItemContext } from './item.context-CkUeDcaO.js';
6
6
 
7
7
  interface QtiExpressionBase<T> {
8
8
  calculate(): Readonly<T>;
@@ -36,4 +36,4 @@ declare abstract class QtiRuleElement extends LitElement implements QtiRuleBase
36
36
  abstract process(): any;
37
37
  }
38
38
 
39
- export { QtiConditionExpression as Q, type QtiExpressionBase as a, QtiExpression as b, type QtiRuleBase as c, QtiRuleElement as d };
39
+ export { QtiConditionExpression as Q, QtiExpression as a, type QtiExpressionBase as b, type QtiRuleBase as c, QtiRuleElement as d };
@@ -60,4 +60,4 @@ type transformTestApi = {
60
60
  };
61
61
  declare const qtiTransformTest: () => transformTestApi;
62
62
 
63
- export { type ModuleResolutionConfig as M, type transformTestApi as a, qtiTransformTest as b, qtiTransformItem as q, type transformItemApi as t };
63
+ export { type ModuleResolutionConfig as M, qtiTransformTest as a, type transformTestApi as b, qtiTransformItem as q, type transformItemApi as t };
@@ -1,5 +1,5 @@
1
- import { I as ItemContext } from './item.context-BRKXBC3m.js';
2
- import { h as VariableDeclaration } from './variables-CusMRnyJ.js';
1
+ import { I as ItemContext } from './item.context-CkUeDcaO.js';
2
+ import { V as VariableDeclaration } from './variables-CMYcDbyW.js';
3
3
 
4
4
  type QtiContextType = {
5
5
  testIdentifier: string;
@@ -25,4 +25,4 @@ declare const testContext: {
25
25
  __context__: Readonly<TestContext>;
26
26
  };
27
27
 
28
- export { INITIAL_TEST_CONTEXT as I, type QtiContextType as Q, type TestContext as T, type QtiContext as a, qtiContext as q, testContext as t };
28
+ export { INITIAL_TEST_CONTEXT as I, type QtiContext as Q, type TestContext as T, type QtiContextType as a, qtiContext as q, testContext as t };
package/dist/test.d.ts CHANGED
@@ -2,14 +2,34 @@ import * as lit from 'lit';
2
2
  import { LitElement, PropertyValues, nothing } from 'lit';
3
3
  import { QtiAssessmentItem, QtiModalFeedback } from './elements.js';
4
4
  import { TemplateFunction } from '@heximal/templates';
5
- import { T as TestContext, a as QtiContext } from './test.context-Bpw1HNAZ.js';
6
- import { S as SessionContext, a as ComputedContext, C as ComputedItem, V as View } from './computed.context-CH09_LCR.js';
7
- import { a as ConfigContext } from './config.context-DAdkDDf5.js';
8
- import { V as VariableValue, j as OutcomeVariable, h as VariableDeclaration } from './variables-CusMRnyJ.js';
9
- import { t as transformItemApi, a as transformTestApi } from './qti-transform-test-Bz9A3hmD.js';
10
- import './qti-feedback-B4cMzOcq.js';
11
- import './item.context-BRKXBC3m.js';
12
- import './computed-item.context-CiddHLPz.js';
5
+ import { T as TestContext, Q as QtiContext } from './test.context-Oc_8ovbV.js';
6
+ import { g as VariableValue, b as OutcomeVariable, V as VariableDeclaration } from './variables-CMYcDbyW.js';
7
+ import { S as SessionContext, C as ComputedContext, a as ComputedItem, V as View } from './computed.context-DHbxad0N.js';
8
+ import { C as ConfigContext } from './config.context-DUz2-kxN.js';
9
+ import { t as transformItemApi, b as transformTestApi } from './qti-transform-test-C2fL4PtU.js';
10
+ import './item.context-CkUeDcaO.js';
11
+ import './qti-feedback-BNXgxua1.js';
12
+ import './computed-item.context-DfsW_96S.js';
13
+
14
+ declare class QtiAssessmentItemRef extends LitElement {
15
+ category?: string;
16
+ identifier?: string;
17
+ required?: boolean;
18
+ fixed?: boolean;
19
+ href?: string;
20
+ weigths: Map<string, number>;
21
+ xmlDoc: DocumentFragment;
22
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
23
+ get assessmentItem(): QtiAssessmentItem | null;
24
+ myTemplate: TemplateFunction;
25
+ connectedCallback(): Promise<void>;
26
+ render(): unknown;
27
+ }
28
+ declare global {
29
+ interface HTMLElementTagNameMap {
30
+ 'qti-assessment-item-ref': QtiAssessmentItemRef;
31
+ }
32
+ }
13
33
 
14
34
  declare class QtiAssessmentTest extends LitElement {
15
35
  identifier: string;
@@ -104,26 +124,6 @@ declare global {
104
124
  }
105
125
  }
106
126
 
107
- declare class QtiAssessmentItemRef extends LitElement {
108
- category?: string;
109
- identifier?: string;
110
- required?: boolean;
111
- fixed?: boolean;
112
- href?: string;
113
- weigths: Map<string, number>;
114
- xmlDoc: DocumentFragment;
115
- protected createRenderRoot(): HTMLElement | DocumentFragment;
116
- get assessmentItem(): QtiAssessmentItem | null;
117
- myTemplate: TemplateFunction;
118
- connectedCallback(): Promise<void>;
119
- render(): unknown;
120
- }
121
- declare global {
122
- interface HTMLElementTagNameMap {
123
- 'qti-assessment-item-ref': QtiAssessmentItemRef;
124
- }
125
- }
126
-
127
127
  declare class QtiAssessmentSection extends LitElement {
128
128
  identifier: string;
129
129
  required: string;
package/dist/test.js CHANGED
@@ -23,14 +23,14 @@ import {
23
23
  TestStamp,
24
24
  TestView,
25
25
  TestViewToggle
26
- } from "./chunk-352OTVTY.js";
27
- import "./chunk-O4XIWHTF.js";
28
- import "./chunk-DWIRLYDS.js";
29
- import "./chunk-W4SQRNWO.js";
30
- import "./chunk-F44CI35W.js";
26
+ } from "./chunk-YAPCC4BO.js";
27
+ import "./chunk-IDW2ETV2.js";
28
+ import "./chunk-FOWDOLXY.js";
29
+ import "./chunk-5J5P5GJY.js";
30
+ import "./chunk-L4TXKTUA.js";
31
31
  import "./chunk-2ZEJ3RR5.js";
32
- import "./chunk-INKI27D5.js";
33
- import "./chunk-JEUY3MYB.js";
32
+ import "./chunk-GMNH42S6.js";
33
+ import "./chunk-VUSGFL4B.js";
34
34
  import "./chunk-EUXUH3YW.js";
35
35
  export {
36
36
  QtiAssessmentItemRef,
@@ -1,4 +1,4 @@
1
- export { M as ModuleResolutionConfig, q as qtiTransformItem, b as qtiTransformTest, t as transformItemApi, a as transformTestApi } from './qti-transform-test-Bz9A3hmD.js';
1
+ export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test-C2fL4PtU.js';
2
2
 
3
3
  declare const qtiTransformManifest: () => {
4
4
  load: (uri: string, signal?: AbortSignal) => Promise<{
@@ -2,7 +2,7 @@ import {
2
2
  qtiTransformItem,
3
3
  qtiTransformManifest,
4
4
  qtiTransformTest
5
- } from "./chunk-INKI27D5.js";
5
+ } from "./chunk-GMNH42S6.js";
6
6
  import "./chunk-EUXUH3YW.js";
7
7
  export {
8
8
  qtiTransformItem,
@@ -5,6 +5,7 @@ interface directedPair {
5
5
  interface ResponseInteraction {
6
6
  responseIdentifier: string;
7
7
  response: string | string[];
8
+ state?: string | null;
8
9
  }
9
10
  interface Calculate {
10
11
  calculate: () => string | string[];
@@ -66,4 +67,4 @@ interface TemplateVariable extends VariableDeclaration<string | string[] | numbe
66
67
  paramVariable?: boolean;
67
68
  }
68
69
 
69
- export type { BaseType as B, Calculate as C, Multiple as M, Ordered as O, QtiAreaMapping as Q, ResponseInteraction as R, TemplateVariable as T, VariableValue as V, Cardinality as a, QtiAreaMapEntry as b, QtiMapping as c, directedPair as d, QtiMapEntry as e, float as f, areaShape as g, VariableDeclaration as h, integer as i, OutcomeVariable as j, ResponseVariable as k };
70
+ export type { BaseType as B, Calculate as C, Multiple as M, Ordered as O, QtiAreaMapEntry as Q, ResponseInteraction as R, TemplateVariable as T, VariableDeclaration as V, Cardinality as a, OutcomeVariable as b, QtiAreaMapping as c, QtiMapEntry as d, QtiMapping as e, ResponseVariable as f, VariableValue as g, areaShape as h, directedPair as i, float as j, integer as k };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citolab/qti-components",
3
- "version": "7.17.0",
3
+ "version": "7.18.0",
4
4
  "description": "QTI component utilities",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [
@@ -73,14 +73,14 @@
73
73
  "@heximal/templates": "^0.1.5"
74
74
  },
75
75
  "devDependencies": {
76
- "@qti-components/test": "1.0.0",
77
- "@qti-components/item": "1.0.0",
78
- "@qti-components/elements": "1.0.0",
79
- "@qti-components/interactions": "1.0.0",
80
- "@qti-components/transformers": "1.0.0",
81
- "@qti-components/processing": "1.0.0",
82
- "@qti-components/loader": "1.0.0",
83
- "@qti-components/base": "1.0.0",
76
+ "@qti-components/test": "1.0.1",
77
+ "@qti-components/elements": "1.1.0",
78
+ "@qti-components/item": "1.0.1",
79
+ "@qti-components/interactions": "1.1.0",
80
+ "@qti-components/processing": "1.0.1",
81
+ "@qti-components/loader": "1.0.1",
82
+ "@qti-components/transformers": "1.1.0",
83
+ "@qti-components/base": "1.1.0",
84
84
  "@qti-components/theme": "1.0.0"
85
85
  },
86
86
  "customElements": "dist/custom-elements.json",