@citolab/qti-components 7.27.2 → 7.27.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 (32) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +216 -202
  3. package/dist/base.js +1 -1
  4. package/dist/{chunk-QUWFDFGZ.js → chunk-3XXXAWMZ.js} +18 -18
  5. package/dist/{chunk-TORB5UN2.js → chunk-A7HX4462.js} +291 -242
  6. package/dist/chunk-A7HX4462.js.map +1 -0
  7. package/dist/{chunk-KY3II5OX.js → chunk-CSYOTHK2.js} +220 -189
  8. package/dist/chunk-CSYOTHK2.js.map +1 -0
  9. package/dist/{chunk-G5ZUC3OT.js → chunk-CVB5ISWF.js} +23 -23
  10. package/dist/chunk-CVB5ISWF.js.map +1 -0
  11. package/dist/{chunk-TZMDZQFG.js → chunk-D6EHVZG2.js} +467 -217
  12. package/dist/chunk-D6EHVZG2.js.map +1 -0
  13. package/dist/{chunk-DG5TP35K.js → chunk-DGIXWHK3.js} +5 -5
  14. package/dist/{chunk-DG5TP35K.js.map → chunk-DGIXWHK3.js.map} +1 -1
  15. package/dist/{chunk-GG36UR7F.js → chunk-PHCCFYNE.js} +12 -12
  16. package/dist/{chunk-GG36UR7F.js.map → chunk-PHCCFYNE.js.map} +1 -1
  17. package/dist/{chunk-75ME6QG5.js → chunk-WMPG7ULB.js} +17 -17
  18. package/dist/elements.js +3 -3
  19. package/dist/index.js +8 -8
  20. package/dist/interactions.d.ts +8 -7
  21. package/dist/interactions.js +3 -3
  22. package/dist/item.js +3 -3
  23. package/dist/processing.js +2 -2
  24. package/dist/qti-components-jsx.d.ts +202 -202
  25. package/dist/test.js +5 -5
  26. package/package.json +11 -11
  27. package/dist/chunk-G5ZUC3OT.js.map +0 -1
  28. package/dist/chunk-KY3II5OX.js.map +0 -1
  29. package/dist/chunk-TORB5UN2.js.map +0 -1
  30. package/dist/chunk-TZMDZQFG.js.map +0 -1
  31. /package/dist/{chunk-QUWFDFGZ.js.map → chunk-3XXXAWMZ.js.map} +0 -0
  32. /package/dist/{chunk-75ME6QG5.js.map → chunk-WMPG7ULB.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
- E
3
- } from "./chunk-TORB5UN2.js";
2
+ A
3
+ } from "./chunk-A7HX4462.js";
4
4
 
5
- // ../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/node/directives/if-defined.js
6
- var o = (o2) => o2 ?? E;
5
+ // ../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/node/directives/if-defined.js
6
+ var o = (o2) => o2 ?? A;
7
7
 
8
8
  export {
9
9
  o
@@ -17,4 +17,4 @@ lit-html/node/directives/if-defined.js:
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
18
  *)
19
19
  */
20
- //# sourceMappingURL=chunk-DG5TP35K.js.map
20
+ //# sourceMappingURL=chunk-DGIXWHK3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/src/directives/if-defined.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {nothing} from '../lit-html.js';\n\n/**\n * For AttributeParts, sets the attribute if the value is defined and removes\n * the attribute if the value is undefined.\n *\n * For other part types, this directive is a no-op.\n */\nexport const ifDefined = <T>(value: T) => value ?? nothing;\n"],"mappings":";;;;;AAcO,IAAMA,IAAgBC,CAAAA,OAAaA,MAASC;","names":["ifDefined","value","nothing"]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/src/directives/if-defined.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {nothing} from '../lit-html.js';\n\n/**\n * For AttributeParts, sets the attribute if the value is defined and removes\n * the attribute if the value is undefined.\n *\n * For other part types, this directive is a no-op.\n */\nexport const ifDefined = <T>(value: T) => value ?? nothing;\n"],"mappings":";;;;;AAcO,IAAMA,IAAgBC,CAAAA,OAAaA,MAASC;","names":["ifDefined","value","nothing"]}
@@ -1,8 +1,9 @@
1
1
  import {
2
- E,
2
+ A,
3
3
  QtiConditionExpression,
4
4
  QtiExpression,
5
5
  ScoringHelper,
6
+ T,
6
7
  c,
7
8
  convertNumberToUniversalFormat,
8
9
  i2 as i,
@@ -10,9 +11,8 @@ import {
10
11
  n,
11
12
  r,
12
13
  t,
13
- testContext,
14
- x
15
- } from "./chunk-TORB5UN2.js";
14
+ testContext
15
+ } from "./chunk-A7HX4462.js";
16
16
  import {
17
17
  __decorateClass,
18
18
  __privateAdd,
@@ -22,7 +22,7 @@ import {
22
22
  // ../qti-processing/src/components/qti-rule/qti-rule.ts
23
23
  var QtiRule = class extends i {
24
24
  render() {
25
- return x`<slot></slot>`;
25
+ return T`<slot></slot>`;
26
26
  }
27
27
  process() {
28
28
  throw new Error("Not implemented");
@@ -73,7 +73,7 @@ customElements.define("qti-lookup-outcome-value", QtiLookupOutcomeValue);
73
73
  // ../qti-processing/src/components/qti-response-condition/qti-response-condition.ts
74
74
  var QtiResponseCondition = class extends QtiRule {
75
75
  render() {
76
- return x`<slot></slot>`;
76
+ return T`<slot></slot>`;
77
77
  }
78
78
  process() {
79
79
  const branches = [...this.children];
@@ -148,7 +148,7 @@ customElements.define("qti-set-outcome-value", QtiSetOutcomeValue);
148
148
  // ../qti-processing/src/components/qti-response-else/qti-response-else.ts
149
149
  var QtiResponseElse = class extends i {
150
150
  render() {
151
- return x`<slot></slot>`;
151
+ return T`<slot></slot>`;
152
152
  }
153
153
  calculate() {
154
154
  return true;
@@ -186,7 +186,7 @@ customElements.define("qti-response-if", QtiResponseIf);
186
186
  // ../qti-processing/src/components/qti-response-else-if/qti-response-else-if.ts
187
187
  var QtiResponseElseIf = class extends QtiResponseIf {
188
188
  render() {
189
- return x`${super.render()}`;
189
+ return T`${super.render()}`;
190
190
  }
191
191
  };
192
192
  customElements.define("qti-response-else-if", QtiResponseElseIf);
@@ -288,7 +288,7 @@ var QtiContains = class extends QtiConditionExpression {
288
288
  if (value1.baseType === "directedPair" && value2.baseType === "directedPair" && value1.cardinality === "multiple") {
289
289
  const projection1 = value1.value;
290
290
  const projection2 = value2.value;
291
- const enumerable = projection1.filter((x2) => projection2.includes(x2));
291
+ const enumerable = projection1.filter((x) => projection2.includes(x));
292
292
  const result = enumerable.length > 0;
293
293
  return result;
294
294
  } else if (value1.baseType === "directedPair" && value2.baseType === "directedPair" && value1.cardinality === "single") {
@@ -1251,7 +1251,7 @@ customElements.define("qti-multiple", QtiMultiple);
1251
1251
  // ../qti-processing/src/components/qti-not/qti-not.ts
1252
1252
  var QtiNot = class extends QtiExpression {
1253
1253
  render() {
1254
- return x`${super.render()}`;
1254
+ return T`${super.render()}`;
1255
1255
  }
1256
1256
  getResult() {
1257
1257
  const expression = this.firstElementChild;
@@ -1390,7 +1390,7 @@ customElements.define("qti-power", QtiPower);
1390
1390
  var QtiPrintedVariable = class extends i {
1391
1391
  render() {
1392
1392
  const value = this.context?.variables.find((v) => v.identifier === this.identifier)?.value;
1393
- return value === null ? E : x`${JSON.stringify(value, null, 2)}`;
1393
+ return value === null ? A : T`${JSON.stringify(value, null, 2)}`;
1394
1394
  }
1395
1395
  calculate() {
1396
1396
  const result = this.context.variables.find((v) => v.identifier === this.identifier) || null;
@@ -1755,4 +1755,4 @@ export {
1755
1755
  QtiDelete,
1756
1756
  QtiIndex
1757
1757
  };
1758
- //# sourceMappingURL=chunk-GG36UR7F.js.map
1758
+ //# sourceMappingURL=chunk-PHCCFYNE.js.map