@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
package/dist/base.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  removeDoubleSlashes,
22
22
  sessionContext,
23
23
  testContext
24
- } from "./chunk-TORB5UN2.js";
24
+ } from "./chunk-A7HX4462.js";
25
25
  import "./chunk-QXBXORM3.js";
26
26
  export {
27
27
  Correctness,
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  o
3
- } from "./chunk-DG5TP35K.js";
3
+ } from "./chunk-DGIXWHK3.js";
4
4
  import {
5
5
  qtiTransformItem
6
6
  } from "./chunk-K7HR6ZAY.js";
7
7
  import {
8
8
  QtiFeedback,
9
9
  QtiVariableDeclaration,
10
+ T,
10
11
  c,
11
12
  e,
12
13
  i,
@@ -16,9 +17,8 @@ import {
16
17
  n,
17
18
  r,
18
19
  t,
19
- watch,
20
- x
21
- } from "./chunk-TORB5UN2.js";
20
+ watch
21
+ } from "./chunk-A7HX4462.js";
22
22
  import {
23
23
  __decorateClass,
24
24
  __privateAdd,
@@ -192,7 +192,7 @@ var QtiAssessmentItem = class extends i2 {
192
192
  }
193
193
  }
194
194
  render() {
195
- return x`<slot></slot>`;
195
+ return T`<slot></slot>`;
196
196
  }
197
197
  connectedCallback() {
198
198
  __privateMethod(this, _QtiAssessmentItem_instances, attachEventListeners_fn).call(this);
@@ -545,7 +545,7 @@ var QtiCustomOperator = class extends i2 {
545
545
  __privateAdd(this, _operatorFunction);
546
546
  }
547
547
  render() {
548
- return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
548
+ return T`<slot @slotchange=${this.handleSlotChange}></slot>`;
549
549
  }
550
550
  handleSlotChange() {
551
551
  const commentNode = Array.from(this.firstElementChild?.childNodes ?? []).find(
@@ -604,7 +604,7 @@ QtiCustomOperator = __decorateClass([
604
604
  // ../qti-elements/src/components/qti-feedback-block/qti-feedback-block.ts
605
605
  var QtiFeedbackBlock = class extends QtiFeedback {
606
606
  render() {
607
- return x` <slot part="feedback" class="feedback ${this.showStatus}"></slot> `;
607
+ return T` <slot part="feedback" class="feedback ${this.showStatus}"></slot> `;
608
608
  }
609
609
  connectedCallback() {
610
610
  super.connectedCallback();
@@ -630,7 +630,7 @@ QtiFeedbackBlock = __decorateClass([
630
630
  var QtiFeedbackInline = class extends QtiFeedback {
631
631
  constructor() {
632
632
  super(...arguments);
633
- this.render = () => x` <slot part="feedback" class="${o(this.showStatus)}"></slot> `;
633
+ this.render = () => T` <slot part="feedback" class="${o(this.showStatus)}"></slot> `;
634
634
  }
635
635
  connectedCallback() {
636
636
  super.connectedCallback();
@@ -652,7 +652,7 @@ QtiFeedbackInline = __decorateClass([
652
652
  // ../qti-elements/src/components/qti-modal-feedback/qti-modal-feedback.ts
653
653
  var QtiModalFeedback = class extends QtiFeedback {
654
654
  render() {
655
- return x`
655
+ return T`
656
656
  <dialog class="qti-dialog" part="feedback" ?open="${this.showStatus === "on"}">
657
657
  <slot></slot>
658
658
  <div style="margin-top: var(--qti-gap-size); text-align: center;">
@@ -744,7 +744,7 @@ var qti_item_body_styles_default = i`
744
744
  // ../qti-elements/src/components/qti-item-body/qti-item-body.ts
745
745
  var QtiItemBody = class extends i2 {
746
746
  render() {
747
- return x`<slot part="qti-rubric-blocks" name="qti-rubric-block"></slot><slot></slot>`;
747
+ return T`<slot part="qti-rubric-blocks" name="qti-rubric-block"></slot><slot></slot>`;
748
748
  }
749
749
  };
750
750
  QtiItemBody.styles = qti_item_body_styles_default;
@@ -755,7 +755,7 @@ QtiItemBody = __decorateClass([
755
755
  // ../qti-elements/src/components/qti-content-body/qti-content-body.ts
756
756
  var QtiContentBody = class extends i2 {
757
757
  render() {
758
- return x`<slot></slot>`;
758
+ return T`<slot></slot>`;
759
759
  }
760
760
  };
761
761
  QtiContentBody = __decorateClass([
@@ -790,7 +790,7 @@ var QtiRubricBlock = class extends i2 {
790
790
  });
791
791
  }
792
792
  render() {
793
- return x`<slot></slot>`;
793
+ return T`<slot></slot>`;
794
794
  }
795
795
  };
796
796
  QtiRubricBlock.styles = i`
@@ -884,7 +884,7 @@ var QtiResponseDeclaration = class extends QtiVariableDeclaration {
884
884
  }
885
885
  render() {
886
886
  const value = this.itemContext?.variables.find((v) => v.identifier === this.identifier)?.value;
887
- return x`${JSON.stringify(value, null, 2)}`;
887
+ return T`${JSON.stringify(value, null, 2)}`;
888
888
  }
889
889
  connectedCallback() {
890
890
  super.connectedCallback();
@@ -998,7 +998,7 @@ var QtiOutcomeDeclaration = class extends QtiVariableDeclaration {
998
998
  }
999
999
  render() {
1000
1000
  const value = this.itemContext?.variables.find((v) => v.identifier === this.identifier)?.value;
1001
- return x`${JSON.stringify(value, null, 2)}`;
1001
+ return T`${JSON.stringify(value, null, 2)}`;
1002
1002
  }
1003
1003
  get interpolationTable() {
1004
1004
  const table = this.querySelector("qti-interpolation-table");
@@ -1134,7 +1134,7 @@ var QtiResponseProcessing = class extends i2 {
1134
1134
  __privateAdd(this, _QtiResponseProcessing_instances);
1135
1135
  }
1136
1136
  render() {
1137
- return x`<slot></slot>`;
1137
+ return T`<slot></slot>`;
1138
1138
  }
1139
1139
  process() {
1140
1140
  const assessmentItem = this.closest("qti-assessment-item");
@@ -1194,7 +1194,7 @@ var QtiTemplateDeclaration = class extends i2 {
1194
1194
  __privateAdd(this, _defaultValue, null);
1195
1195
  }
1196
1196
  render() {
1197
- return x`<slot></slot>`;
1197
+ return T`<slot></slot>`;
1198
1198
  }
1199
1199
  connectedCallback() {
1200
1200
  super.connectedCallback();
@@ -1306,7 +1306,7 @@ var QtiContextDeclaration = class extends i2 {
1306
1306
  this.cardinality = "record";
1307
1307
  }
1308
1308
  render() {
1309
- return x`<slot></slot>`;
1309
+ return T`<slot></slot>`;
1310
1310
  }
1311
1311
  };
1312
1312
  QtiContextDeclaration.styles = [
@@ -1345,4 +1345,4 @@ export {
1345
1345
  QtiTemplateDeclaration,
1346
1346
  QtiContextDeclaration
1347
1347
  };
1348
- //# sourceMappingURL=chunk-QUWFDFGZ.js.map
1348
+ //# sourceMappingURL=chunk-3XXXAWMZ.js.map