@citolab/qti-components 9.5.0 → 9.6.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 +1761 -204
  3. package/dist/base.d.ts +10 -10
  4. package/dist/base.js +7 -1
  5. package/dist/{chunk-SIE3E4FG.js → chunk-EAQOUBXA.js} +4 -4
  6. package/dist/{chunk-GBZNFSFY.js → chunk-H72OXVRF.js} +2 -2
  7. package/dist/{chunk-RU6332MD.js → chunk-I7ACMH74.js} +3 -3
  8. package/dist/{chunk-DAFB2E5H.js → chunk-LOKULHVY.js} +386 -241
  9. package/dist/chunk-LOKULHVY.js.map +1 -0
  10. package/dist/{chunk-MI7774NV.js → chunk-QOFGUIYE.js} +2 -2
  11. package/dist/{chunk-TDWJ6WZA.js → chunk-QUTM5TT6.js} +37 -1
  12. package/dist/chunk-QUTM5TT6.js.map +1 -0
  13. package/dist/chunk-QVZLJY75.js +7 -0
  14. package/dist/chunk-QVZLJY75.js.map +1 -0
  15. package/dist/{chunk-FD4AB6TM.js → chunk-RV7ADJ33.js} +2 -2
  16. package/dist/{chunk-OQDBARD5.js → chunk-TBJT7AGB.js} +2 -2
  17. package/dist/{chunk-SU63QGGD.js → chunk-TC4257SG.js} +6 -6
  18. package/dist/{chunk-6U3YPHXU.js → chunk-TFQAUWCM.js} +40 -5
  19. package/dist/{chunk-6U3YPHXU.js.map → chunk-TFQAUWCM.js.map} +1 -1
  20. package/dist/{chunk-6K3QWJHH.js → chunk-V3NKEAQY.js} +40 -4
  21. package/dist/chunk-V3NKEAQY.js.map +1 -0
  22. package/dist/{chunk-YZRODVYZ.js → chunk-YS6CBO45.js} +2 -2
  23. package/dist/{computed.types.d-gJrBeUMG.d.ts → computed.types.d-SsTm3ieP.d.ts} +1 -1
  24. package/dist/corrections.d.ts +9 -9
  25. package/dist/corrections.js +8 -8
  26. package/dist/elements.d.ts +2 -2
  27. package/dist/elements.js +3 -3
  28. package/dist/index.d.ts +10 -10
  29. package/dist/index.js +23 -13
  30. package/dist/interactions.d.ts +4 -4
  31. package/dist/interactions.js +7 -3
  32. package/dist/item.css +2 -1
  33. package/dist/item.d.ts +4 -4
  34. package/dist/item.js +4 -4
  35. package/dist/{item.types.d-B55QkJ92.d.ts → item.types.d-DuVR0ZVK.d.ts} +7 -1
  36. package/dist/loader.d.ts +2 -2
  37. package/dist/processing.d.ts +10 -3
  38. package/dist/processing.js +3 -3
  39. package/dist/qti-components-jsx.d.ts +46 -26
  40. package/dist/{qti-condition-expression.d-VJH6cWxf.d.ts → qti-condition-expression.d-B-T1NNl0.d.ts} +1 -1
  41. package/dist/{qti-expression.d-BPxEp8HU.d.ts → qti-expression.d-B-Cfbqlb.d.ts} +1 -1
  42. package/dist/{qti-feedback.d-wMYNVkkj.d.ts → qti-feedback.d-DbzPSJuK.d.ts} +1 -1
  43. package/dist/{qti-item.d-DgC1AQbY.d.ts → qti-item.d-DjWvKbfL.d.ts} +1 -1
  44. package/dist/{qti-test.d-86TlaMlI.d.ts → qti-test.d-DOWT6YNa.d.ts} +4 -4
  45. package/dist/{qti-text-entry-interaction.d-C4eixT-D.d.ts → qti-text-entry-interaction.d-h5UZ8Qvp.d.ts} +28 -18
  46. package/dist/{interaction.d-g6XG0T0Z.d.ts → record.d-wB9uYs-j.d.ts} +34 -2
  47. package/dist/{session.context.d-D5080LVx.d.ts → session.context.d-Cw8GcziG.d.ts} +1 -1
  48. package/dist/test.d.ts +7 -7
  49. package/dist/test.js +5 -5
  50. package/package.json +5 -5
  51. package/dist/chunk-6K3QWJHH.js.map +0 -1
  52. package/dist/chunk-DAFB2E5H.js.map +0 -1
  53. package/dist/chunk-TDWJ6WZA.js.map +0 -1
  54. package/dist/chunk-ZP6QQYSU.js +0 -7
  55. package/dist/chunk-ZP6QQYSU.js.map +0 -1
  56. /package/dist/{chunk-SIE3E4FG.js.map → chunk-EAQOUBXA.js.map} +0 -0
  57. /package/dist/{chunk-GBZNFSFY.js.map → chunk-H72OXVRF.js.map} +0 -0
  58. /package/dist/{chunk-RU6332MD.js.map → chunk-I7ACMH74.js.map} +0 -0
  59. /package/dist/{chunk-MI7774NV.js.map → chunk-QOFGUIYE.js.map} +0 -0
  60. /package/dist/{chunk-FD4AB6TM.js.map → chunk-RV7ADJ33.js.map} +0 -0
  61. /package/dist/{chunk-OQDBARD5.js.map → chunk-TBJT7AGB.js.map} +0 -0
  62. /package/dist/{chunk-SU63QGGD.js.map → chunk-TC4257SG.js.map} +0 -0
  63. /package/dist/{chunk-YZRODVYZ.js.map → chunk-YS6CBO45.js.map} +0 -0
package/dist/base.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { C as ComputedItemContext } from './session.context.d-D5080LVx.js';
2
- export { I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-D5080LVx.js';
3
- import { C as ComputedContext } from './computed.types.d-gJrBeUMG.js';
4
- export { a as ComputedItem } from './computed.types.d-gJrBeUMG.js';
1
+ import { C as ComputedItemContext } from './session.context.d-Cw8GcziG.js';
2
+ export { I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-Cw8GcziG.js';
3
+ import { C as ComputedContext } from './computed.types.d-SsTm3ieP.js';
4
+ export { a as ComputedItem } from './computed.types.d-SsTm3ieP.js';
5
5
  export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BvU9r-Mg.js';
6
- export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-g6XG0T0Z.js';
7
- import { b as ItemContext, B as BaseType } from './item.types.d-B55QkJ92.js';
8
- export { C as Calculate, a as Cardinality, I as InterpolationTableEntry, 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';
6
+ export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, i as inferRecordFieldBaseType, c as interactionContext, d as isRecordValue, r as readRecordFieldValues } from './record.d-wB9uYs-j.js';
7
+ import { b as ItemContext, B as BaseType } from './item.types.d-DuVR0ZVK.js';
8
+ export { C as Calculate, a as Cardinality, I as InterpolationTableEntry, 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-DuVR0ZVK.js';
9
9
  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';
10
- export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-BPxEp8HU.js';
10
+ export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-B-Cfbqlb.js';
11
11
  import * as lit from 'lit';
12
- export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-wMYNVkkj.js';
13
- export { Q as QtiConditionExpression } from './qti-condition-expression.d-VJH6cWxf.js';
12
+ export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-DbzPSJuK.js';
13
+ export { Q as QtiConditionExpression } from './qti-condition-expression.d-B-T1NNl0.js';
14
14
  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';
15
15
  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';
16
16
  export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-Bdzg8eGH.js';
package/dist/base.js CHANGED
@@ -22,8 +22,10 @@ import {
22
22
  decimalSeparator,
23
23
  dropRegion,
24
24
  getCustomOperator,
25
+ inferRecordFieldBaseType,
25
26
  installCustomStateSetFallback,
26
27
  interactionContext,
28
+ isRecordValue,
27
29
  isSeed,
28
30
  itemContext,
29
31
  itemContextVariables,
@@ -32,6 +34,7 @@ import {
32
34
  parsePoint,
33
35
  parseResponseAttribute,
34
36
  qtiContext,
37
+ readRecordFieldValues,
35
38
  registerCustomOperator,
36
39
  removeDoubleSlashes,
37
40
  responseAttributeConverter,
@@ -42,7 +45,7 @@ import {
42
45
  testContext,
43
46
  unregisterCustomOperator,
44
47
  validationMessage
45
- } from "./chunk-TDWJ6WZA.js";
48
+ } from "./chunk-QUTM5TT6.js";
46
49
  export {
47
50
  CustomStateSetShim,
48
51
  INITIAL_SESSION_CONTEXT,
@@ -67,8 +70,10 @@ export {
67
70
  decimalSeparator,
68
71
  dropRegion,
69
72
  getCustomOperator,
73
+ inferRecordFieldBaseType,
70
74
  installCustomStateSetFallback,
71
75
  interactionContext,
76
+ isRecordValue,
72
77
  isSeed,
73
78
  itemContext,
74
79
  itemContextVariables,
@@ -77,6 +82,7 @@ export {
77
82
  parsePoint,
78
83
  parseResponseAttribute,
79
84
  qtiContext,
85
+ readRecordFieldValues,
80
86
  registerCustomOperator,
81
87
  removeDoubleSlashes,
82
88
  responseAttributeConverter,
@@ -3,10 +3,10 @@ import {
3
3
  dispatchDeclared,
4
4
  listenDeclared,
5
5
  listenPublic
6
- } from "./chunk-6U3YPHXU.js";
6
+ } from "./chunk-TFQAUWCM.js";
7
7
  import {
8
8
  item_css_default
9
- } from "./chunk-ZP6QQYSU.js";
9
+ } from "./chunk-QVZLJY75.js";
10
10
  import {
11
11
  watch
12
12
  } from "./chunk-4DB4SC5K.js";
@@ -24,7 +24,7 @@ import {
24
24
  qtiContext,
25
25
  sessionContext,
26
26
  testContext
27
- } from "./chunk-TDWJ6WZA.js";
27
+ } from "./chunk-QUTM5TT6.js";
28
28
 
29
29
  // ../qti-test/dist/components/qti-assessment-item-ref/qti-assessment-item-ref.js
30
30
  import { LitElement, nothing as nothing2 } from "lit";
@@ -5394,4 +5394,4 @@ export {
5394
5394
  * Portions Copyright (c) 2013, the Dart project authors.
5395
5395
  *)
5396
5396
  */
5397
- //# sourceMappingURL=chunk-SIE3E4FG.js.map
5397
+ //# sourceMappingURL=chunk-EAQOUBXA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  qtiContentElements
3
- } from "./chunk-6U3YPHXU.js";
3
+ } from "./chunk-TFQAUWCM.js";
4
4
 
5
5
  // ../qti-elements/dist/register.js
6
6
  for (const { tag, ctor } of qtiContentElements) {
@@ -8,4 +8,4 @@ for (const { tag, ctor } of qtiContentElements) {
8
8
  customElements.define(tag, ctor);
9
9
  }
10
10
  }
11
- //# sourceMappingURL=chunk-GBZNFSFY.js.map
11
+ //# sourceMappingURL=chunk-H72OXVRF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  item_css_default
3
- } from "./chunk-ZP6QQYSU.js";
3
+ } from "./chunk-QVZLJY75.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk-4DB4SC5K.js";
@@ -11,7 +11,7 @@ import {
11
11
  computedItemContext,
12
12
  configContext,
13
13
  qtiContext
14
- } from "./chunk-TDWJ6WZA.js";
14
+ } from "./chunk-QUTM5TT6.js";
15
15
 
16
16
  // ../qti-item/dist/components/item-container/item-container.js
17
17
  import { consume } from "@lit/context";
@@ -349,4 +349,4 @@ export {
349
349
  QtiItem,
350
350
  qtiItemElements
351
351
  };
352
- //# sourceMappingURL=chunk-RU6332MD.js.map
352
+ //# sourceMappingURL=chunk-I7ACMH74.js.map