@qti-components/processing 1.3.3 → 1.3.4

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 (137) hide show
  1. package/dist/components/qti-and/qti-and.js +2 -13
  2. package/dist/components/qti-and/qti-and.js.map +1 -1
  3. package/dist/components/qti-any-n/qti-any-n.js +0 -1
  4. package/dist/components/qti-any-n/qti-any-n.js.map +1 -1
  5. package/dist/components/qti-basevalue/qti-basevalue.js +0 -1
  6. package/dist/components/qti-basevalue/qti-basevalue.js.map +1 -1
  7. package/dist/components/qti-container-size/qti-container-size.js +0 -1
  8. package/dist/components/qti-container-size/qti-container-size.js.map +1 -1
  9. package/dist/components/qti-contains/qti-contains.js +0 -1
  10. package/dist/components/qti-contains/qti-contains.js.map +1 -1
  11. package/dist/components/qti-correct/qti-correct.js +0 -1
  12. package/dist/components/qti-correct/qti-correct.js.map +1 -1
  13. package/dist/components/qti-default/qti-default.js +0 -1
  14. package/dist/components/qti-default/qti-default.js.map +1 -1
  15. package/dist/components/qti-delete/qti-delete.js +0 -1
  16. package/dist/components/qti-delete/qti-delete.js.map +1 -1
  17. package/dist/components/qti-divide/qti-divide.js +0 -1
  18. package/dist/components/qti-divide/qti-divide.js.map +1 -1
  19. package/dist/components/qti-duration-gte/qti-duration-gte.js +0 -1
  20. package/dist/components/qti-duration-gte/qti-duration-gte.js.map +1 -1
  21. package/dist/components/qti-duration-lt/qti-duration-lt.js +0 -1
  22. package/dist/components/qti-duration-lt/qti-duration-lt.js.map +1 -1
  23. package/dist/components/qti-equal/qti-equal.js +0 -1
  24. package/dist/components/qti-equal/qti-equal.js.map +1 -1
  25. package/dist/components/qti-equal-rounded/qti-equal-rounded.js +0 -1
  26. package/dist/components/qti-equal-rounded/qti-equal-rounded.js.map +1 -1
  27. package/dist/components/qti-field-value/qti-field-value.js +0 -1
  28. package/dist/components/qti-field-value/qti-field-value.js.map +1 -1
  29. package/dist/components/qti-gcd/qti.gcd.js +0 -1
  30. package/dist/components/qti-gcd/qti.gcd.js.map +1 -1
  31. package/dist/components/qti-gt/qti-gt.js +0 -1
  32. package/dist/components/qti-gt/qti-gt.js.map +1 -1
  33. package/dist/components/qti-gte/qti-gte.js +0 -1
  34. package/dist/components/qti-gte/qti-gte.js.map +1 -1
  35. package/dist/components/qti-index/qti-index.js +3 -7
  36. package/dist/components/qti-index/qti-index.js.map +1 -1
  37. package/dist/components/qti-inside/qti-inside.js +2 -4
  38. package/dist/components/qti-inside/qti-inside.js.map +1 -1
  39. package/dist/components/qti-integer-divide/qti-integer-divide.js +0 -1
  40. package/dist/components/qti-integer-divide/qti-integer-divide.js.map +1 -1
  41. package/dist/components/qti-integer-modulus/qti-integer-modulus.js +0 -1
  42. package/dist/components/qti-integer-modulus/qti-integer-modulus.js.map +1 -1
  43. package/dist/components/qti-integer-to-float/qti-integer-to-float.js +0 -1
  44. package/dist/components/qti-integer-to-float/qti-integer-to-float.js.map +1 -1
  45. package/dist/components/qti-is-null/qti-is-null.js +0 -1
  46. package/dist/components/qti-is-null/qti-is-null.js.map +1 -1
  47. package/dist/components/qti-lcm/qti-lcm.js +0 -1
  48. package/dist/components/qti-lcm/qti-lcm.js.map +1 -1
  49. package/dist/components/qti-lookup-outcome-value/qti-lookup-outcome-value.js +0 -1
  50. package/dist/components/qti-lookup-outcome-value/qti-lookup-outcome-value.js.map +1 -1
  51. package/dist/components/qti-lt/qti-lt.js +0 -1
  52. package/dist/components/qti-lt/qti-lt.js.map +1 -1
  53. package/dist/components/qti-lte/qti-lte.js +0 -1
  54. package/dist/components/qti-lte/qti-lte.js.map +1 -1
  55. package/dist/components/qti-map-response/qti-map-response.js +0 -1
  56. package/dist/components/qti-map-response/qti-map-response.js.map +1 -1
  57. package/dist/components/qti-map-response-point/qti-map-response-point.js +0 -1
  58. package/dist/components/qti-map-response-point/qti-map-response-point.js.map +1 -1
  59. package/dist/components/qti-match/qti-match.js +0 -1
  60. package/dist/components/qti-match/qti-match.js.map +1 -1
  61. package/dist/components/qti-math-operator/qti-math-operator.js +0 -1
  62. package/dist/components/qti-math-operator/qti-math-operator.js.map +1 -1
  63. package/dist/components/qti-max/qti-max.js +0 -1
  64. package/dist/components/qti-max/qti-max.js.map +1 -1
  65. package/dist/components/qti-member/qti-member.js +0 -1
  66. package/dist/components/qti-member/qti-member.js.map +1 -1
  67. package/dist/components/qti-min/qti-min.js +0 -1
  68. package/dist/components/qti-min/qti-min.js.map +1 -1
  69. package/dist/components/qti-multiple/qti-multiple.js +0 -1
  70. package/dist/components/qti-multiple/qti-multiple.js.map +1 -1
  71. package/dist/components/qti-not/qti-not.js +0 -1
  72. package/dist/components/qti-not/qti-not.js.map +1 -1
  73. package/dist/components/qti-null/qti-null.js +0 -1
  74. package/dist/components/qti-null/qti-null.js.map +1 -1
  75. package/dist/components/qti-or/qti-or.js +0 -1
  76. package/dist/components/qti-or/qti-or.js.map +1 -1
  77. package/dist/components/qti-ordered/qti-ordered.js +0 -1
  78. package/dist/components/qti-ordered/qti-ordered.js.map +1 -1
  79. package/dist/components/qti-pattern-match/qti-pattern-match.js +0 -1
  80. package/dist/components/qti-pattern-match/qti-pattern-match.js.map +1 -1
  81. package/dist/components/qti-power/qti-power.js +0 -1
  82. package/dist/components/qti-power/qti-power.js.map +1 -1
  83. package/dist/components/qti-printed-variable/qti-printed-variable.js +0 -1
  84. package/dist/components/qti-printed-variable/qti-printed-variable.js.map +1 -1
  85. package/dist/components/qti-product/qti-product.js +0 -1
  86. package/dist/components/qti-product/qti-product.js.map +1 -1
  87. package/dist/components/qti-random/qti-random.js +0 -1
  88. package/dist/components/qti-random/qti-random.js.map +1 -1
  89. package/dist/components/qti-random-integer/qti-random-integer.js +0 -1
  90. package/dist/components/qti-random-integer/qti-random-integer.js.map +1 -1
  91. package/dist/components/qti-repeat/qti-repeat.js +0 -1
  92. package/dist/components/qti-repeat/qti-repeat.js.map +1 -1
  93. package/dist/components/qti-response-condition/qti-response-condition.js +0 -1
  94. package/dist/components/qti-response-condition/qti-response-condition.js.map +1 -1
  95. package/dist/components/qti-response-else/qti-response-else.js +0 -1
  96. package/dist/components/qti-response-else/qti-response-else.js.map +1 -1
  97. package/dist/components/qti-response-else-if/qti-response-else-if.js +0 -1
  98. package/dist/components/qti-response-else-if/qti-response-else-if.js.map +1 -1
  99. package/dist/components/qti-response-if/qti-response-if.js +0 -1
  100. package/dist/components/qti-response-if/qti-response-if.js.map +1 -1
  101. package/dist/components/qti-round/qti-round.js +0 -1
  102. package/dist/components/qti-round/qti-round.js.map +1 -1
  103. package/dist/components/qti-round-to/qti-round-to.js +0 -1
  104. package/dist/components/qti-round-to/qti-round-to.js.map +1 -1
  105. package/dist/components/qti-rule/qti-rule.js +2 -13
  106. package/dist/components/qti-rule/qti-rule.js.map +1 -1
  107. package/dist/components/qti-set-correct-response/qti-set-correct-response.js +0 -1
  108. package/dist/components/qti-set-correct-response/qti-set-correct-response.js.map +1 -1
  109. package/dist/components/qti-set-outcome-value/qti-set-outcome-value.js +0 -1
  110. package/dist/components/qti-set-outcome-value/qti-set-outcome-value.js.map +1 -1
  111. package/dist/components/qti-set-template-value/qti-set-template-value.js +0 -1
  112. package/dist/components/qti-set-template-value/qti-set-template-value.js.map +1 -1
  113. package/dist/components/qti-stats-operator/qti-stats-operator.js +0 -1
  114. package/dist/components/qti-stats-operator/qti-stats-operator.js.map +1 -1
  115. package/dist/components/qti-string-match/qti-string-match.js +0 -1
  116. package/dist/components/qti-string-match/qti-string-match.js.map +1 -1
  117. package/dist/components/qti-substring/qti-substring.js +4 -2
  118. package/dist/components/qti-substring/qti-substring.js.map +1 -1
  119. package/dist/components/qti-subtract/index.d.ts +1 -1
  120. package/dist/components/qti-subtract/index.js +0 -2
  121. package/dist/components/qti-subtract/index.js.map +1 -1
  122. package/dist/components/qti-sum/qti-sum.js +0 -1
  123. package/dist/components/qti-sum/qti-sum.js.map +1 -1
  124. package/dist/components/qti-truncate/qti-truncate.js +0 -1
  125. package/dist/components/qti-truncate/qti-truncate.js.map +1 -1
  126. package/dist/components/qti-variable/qti-variable.js +0 -1
  127. package/dist/components/qti-variable/qti-variable.js.map +1 -1
  128. package/dist/elements.d.ts +254 -0
  129. package/dist/elements.js +130 -0
  130. package/dist/elements.js.map +1 -0
  131. package/dist/index.d.ts +1 -0
  132. package/dist/index.js +1 -0
  133. package/dist/index.js.map +1 -1
  134. package/dist/register.d.ts +1 -0
  135. package/dist/register.js +7 -0
  136. package/dist/register.js.map +1 -0
  137. package/package.json +17 -2
@@ -1 +1 @@
1
- {"version":3,"file":"qti-string-match.js","sourceRoot":"","sources":["../../../src/components/qti-string-match/qti-string-match.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD,MAAM,OAAO,cAAe,SAAQ,aAAsB;IAA1D;;QAC2D,kBAAa,GAAG,MAAM,CAAC;IAuBlF,CAAC;IArBiB,SAAS;QACvB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAwB,CAAC;YACzD,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACzB,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACzB,IACE,MAAM,CAAC,WAAW,KAAK,QAAQ;gBAC/B,MAAM,CAAC,WAAW,KAAK,QAAQ;gBAC/B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;gBAC3B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAC3B,CAAC;gBACD,OAAO,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;gBAC5D,OAAO,KAAK,CAAC;YACf,CAAC;YACD,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,MAAM,CAAC,KAAgB,CAAC,WAAW,EAAE,CAAC;YACjG,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,MAAM,CAAC,KAAgB,CAAC,WAAW,EAAE,CAAC;YACjG,OAAO,aAAa,CAAC,mBAAmB,CAAC,EAAY,EAAE,EAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QACxF,CAAC;QACD,OAAO,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvB0D;IAAxD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;qDAAwB;AAyBlF,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC","sourcesContent":["import { property } from 'lit/decorators.js';\n\nimport { ScoringHelper } from '@qti-components/base';\nimport { QtiExpression } from '@qti-components/base';\n\nimport type { ResponseVariable } from '@qti-components/base';\n\nexport class QtiStringMatch extends QtiExpression<boolean> {\n @property({ type: String, attribute: 'case-sensitive' }) caseSensitive = 'true';\n\n public override getResult() {\n if (this.children.length === 2) {\n const values = this.getVariables() as ResponseVariable[];\n const value1 = values[0];\n const value2 = values[1];\n if (\n value1.cardinality !== 'single' ||\n value2.cardinality !== 'single' ||\n Array.isArray(value1.value) ||\n Array.isArray(value2.value)\n ) {\n console.error('unexpected cardinality in qti string-match');\n return false;\n }\n const v1 = this.caseSensitive === 'true' ? value1.value : (value1.value as string).toLowerCase();\n const v2 = this.caseSensitive === 'true' ? value2.value : (value2.value as string).toLowerCase();\n return ScoringHelper.compareSingleValues(v1 as string, v2 as string, value1.baseType);\n }\n console.error('unexpected number of children in qti-string-match');\n return null;\n }\n}\n\ncustomElements.define('qti-string-match', QtiStringMatch);\n"]}
1
+ {"version":3,"file":"qti-string-match.js","sourceRoot":"","sources":["../../../src/components/qti-string-match/qti-string-match.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD,MAAM,OAAO,cAAe,SAAQ,aAAsB;IAA1D;;QAC2D,kBAAa,GAAG,MAAM,CAAC;IAuBlF,CAAC;IArBiB,SAAS;QACvB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAwB,CAAC;YACzD,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACzB,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACzB,IACE,MAAM,CAAC,WAAW,KAAK,QAAQ;gBAC/B,MAAM,CAAC,WAAW,KAAK,QAAQ;gBAC/B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;gBAC3B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAC3B,CAAC;gBACD,OAAO,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;gBAC5D,OAAO,KAAK,CAAC;YACf,CAAC;YACD,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,MAAM,CAAC,KAAgB,CAAC,WAAW,EAAE,CAAC;YACjG,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,MAAM,CAAC,KAAgB,CAAC,WAAW,EAAE,CAAC;YACjG,OAAO,aAAa,CAAC,mBAAmB,CAAC,EAAY,EAAE,EAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QACxF,CAAC;QACD,OAAO,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvB0D;IAAxD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;qDAAwB","sourcesContent":["import { property } from 'lit/decorators.js';\n\nimport { ScoringHelper } from '@qti-components/base';\nimport { QtiExpression } from '@qti-components/base';\n\nimport type { ResponseVariable } from '@qti-components/base';\n\nexport class QtiStringMatch extends QtiExpression<boolean> {\n @property({ type: String, attribute: 'case-sensitive' }) caseSensitive = 'true';\n\n public override getResult() {\n if (this.children.length === 2) {\n const values = this.getVariables() as ResponseVariable[];\n const value1 = values[0];\n const value2 = values[1];\n if (\n value1.cardinality !== 'single' ||\n value2.cardinality !== 'single' ||\n Array.isArray(value1.value) ||\n Array.isArray(value2.value)\n ) {\n console.error('unexpected cardinality in qti string-match');\n return false;\n }\n const v1 = this.caseSensitive === 'true' ? value1.value : (value1.value as string).toLowerCase();\n const v2 = this.caseSensitive === 'true' ? value2.value : (value2.value as string).toLowerCase();\n return ScoringHelper.compareSingleValues(v1 as string, v2 as string, value1.baseType);\n }\n console.error('unexpected number of children in qti-string-match');\n return null;\n }\n}\n"]}
@@ -33,7 +33,10 @@ export class QtiSubstring extends QtiExpression {
33
33
  console.error('qti-substring requires single cardinality');
34
34
  return null;
35
35
  }
36
- if (needle.value === null || haystack.value === null || needle.value === undefined || haystack.value === undefined) {
36
+ if (needle.value === null ||
37
+ haystack.value === null ||
38
+ needle.value === undefined ||
39
+ haystack.value === undefined) {
37
40
  return null;
38
41
  }
39
42
  const left = needle.value.toString();
@@ -47,5 +50,4 @@ export class QtiSubstring extends QtiExpression {
47
50
  __decorate([
48
51
  property({ type: String, attribute: 'case-sensitive' })
49
52
  ], QtiSubstring.prototype, "caseSensitive", void 0);
50
- customElements.define('qti-substring', QtiSubstring);
51
53
  //# sourceMappingURL=qti-substring.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"qti-substring.js","sourceRoot":"","sources":["../../../src/components/qti-substring/qti-substring.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD;;;;;;;GAOG;AACH,MAAM,OAAO,YAAa,SAAQ,aAA6B;IAA/D;;QAC2D,kBAAa,GAAG,MAAM,CAAC;IAgClF,CAAC;IA9BiB,SAAS;QACvB,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAwB,CAAC;QAE5D,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,CAAC;QACrC,IACE,MAAM,CAAC,WAAW,KAAK,QAAQ;YAC/B,QAAQ,CAAC,WAAW,KAAK,QAAQ;YACjC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;YAC3B,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,CAAC;YACD,OAAO,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;YAC3D,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,QAAQ,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YACnH,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACxC,IAAI,IAAI,CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF;AAhC0D;IAAxD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;mDAAwB;AAkClF,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import { property } from 'lit/decorators.js';\n\nimport { QtiExpression } from '@qti-components/base';\n\nimport type { ResponseVariable } from '@qti-components/base';\n\n/**\n * @summary The qti-substring operator checks if one string is contained within another.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/info/index.html#substring\n *\n * Takes 2 sub-expressions with base-type string and single cardinality.\n * Returns true if the first string is a substring of the second.\n * Special cases: Returns NULL if either argument is NULL.\n */\nexport class QtiSubstring extends QtiExpression<boolean | null> {\n @property({ type: String, attribute: 'case-sensitive' }) caseSensitive = 'true';\n\n public override getResult(): boolean | null {\n const variables = this.getVariables() as ResponseVariable[];\n\n if (variables.length !== 2) {\n console.error('qti-substring requires exactly 2 child expressions');\n return null;\n }\n\n const [needle, haystack] = variables;\n if (\n needle.cardinality !== 'single' ||\n haystack.cardinality !== 'single' ||\n Array.isArray(needle.value) ||\n Array.isArray(haystack.value)\n ) {\n console.error('qti-substring requires single cardinality');\n return null;\n }\n if (needle.value === null || haystack.value === null || needle.value === undefined || haystack.value === undefined) {\n return null;\n }\n\n const left = needle.value.toString();\n const right = haystack.value.toString();\n if (this.caseSensitive !== 'true') {\n return right.toLowerCase().includes(left.toLowerCase());\n }\n\n return right.includes(left);\n }\n}\n\ncustomElements.define('qti-substring', Qti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CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF;AArC0D;IAAxD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;mDAAwB","sourcesContent":["import { property } from 'lit/decorators.js';\n\nimport { QtiExpression } from '@qti-components/base';\n\nimport type { ResponseVariable } from '@qti-components/base';\n\n/**\n * @summary The qti-substring operator checks if one string is contained within another.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/info/index.html#substring\n *\n * Takes 2 sub-expressions with base-type string and single cardinality.\n * Returns true if the first string is a substring of the second.\n * Special cases: Returns NULL if either argument is NULL.\n */\nexport class QtiSubstring extends QtiExpression<boolean | null> {\n @property({ type: String, attribute: 'case-sensitive' }) caseSensitive = 'true';\n\n public override getResult(): boolean | null {\n const variables = this.getVariables() as ResponseVariable[];\n\n if (variables.length !== 2) {\n console.error('qti-substring requires exactly 2 child expressions');\n return null;\n }\n\n const [needle, haystack] = variables;\n if (\n needle.cardinality !== 'single' ||\n haystack.cardinality !== 'single' ||\n Array.isArray(needle.value) ||\n Array.isArray(haystack.value)\n ) {\n console.error('qti-substring requires single cardinality');\n return null;\n }\n if (\n needle.value === null ||\n haystack.value === null ||\n needle.value === undefined ||\n haystack.value === undefined\n ) {\n return null;\n }\n\n const left = needle.value.toString();\n const right = haystack.value.toString();\n if (this.caseSensitive !== 'true') {\n return right.toLowerCase().includes(left.toLowerCase());\n }\n\n return right.includes(left);\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { QtiSubtract } from './qti-subtract';
1
+ import type { QtiSubtract } from './qti-subtract';
2
2
  export * from './qti-subtract';
3
3
  declare global {
4
4
  interface HTMLElementTagNameMap {
@@ -1,4 +1,2 @@
1
- import { QtiSubtract } from './qti-subtract';
2
- customElements.define('qti-subtract', QtiSubtract);
3
1
  export * from './qti-subtract';
4
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/qti-subtract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;AAEnD,cAAc,gBAAgB,CAAC","sourcesContent":["import { QtiSubtract } from './qti-subtract';\ncustomElements.define('qti-subtract', QtiSubtract);\n\nexport * from './qti-subtract';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-subtract': QtiSubtract;\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/qti-subtract/index.ts"],"names":[],"mappings":"AAEA,cAAc,gBAAgB,CAAC","sourcesContent":["import type { QtiSubtract } from './qti-subtract';\n\nexport * from './qti-subtract';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-subtract': QtiSubtract;\n }\n}\n"]}
@@ -36,5 +36,4 @@ export class QtiSumExpression {
36
36
  return values.reduce((a, b) => a + b, 0);
37
37
  }
38
38
  }
39
- customElements.define('qti-sum', QtiSum);
40
39
  //# sourceMappingURL=qti-sum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"qti-sum.js","sourceRoot":"","sources":["../../../src/components/qti-sum/qti-sum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD;;;;;;;GAOG;AACH,MAAM,OAAO,MAAO,SAAQ,aAAqB;IAC/B,SAAS;QACvB,uEAAuE;QACvE,MAAM,UAAU,GAAG,IAAI,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAkD,CAAC,CAAC,CAAC;QAC7G,MAAM,KAAK,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;QACrC,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED,MAAM,OAAO,gBAAgB;IAC3B,YAAoB,WAAwC;QAAxC,gBAAW,GAAX,WAAW,CAA6B;IAAG,CAAC;IAEzD,SAAS;QACd,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;QAC5E,wCAAwC;QACxC,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;YAClD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YACtC,MAAM,KAAK,GAAG,CAAC,CAAC,SAAS,EAAE,CAAC;YAC5B,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;gBACxB,OAAO,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;gBAC9D,OAAO,IAAI,CAAC;YACd,CAAC;YAED,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF;AAED,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC","sourcesContent":["import { QtiExpression } from '@qti-components/base';\n\nimport type { QtiExpressionBase } from '@qti-components/base';\n\n/**\n * @summary The qti-sum operator calculates the total of multiple numerical values.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/info/index.html#sum\n *\n * Takes 1 or more sub-expressions with numerical base-types and any cardinality.\n * Returns a single float (or integer if all arguments are integers) representing the total.\n * Special cases: Returns NULL if any sub-expression is NULL.\n */\nexport class QtiSum extends QtiExpression<number> {\n public override getResult() {\n // children can be a mix of qti-expression and qti-condition-expression\n const expression = new QtiSumExpression(Array.from(this.children as unknown as QtiExpressionBase<number>[]));\n const value = expression.calculate();\n return value;\n }\n}\n\nexport class QtiSumExpression implements QtiExpressionBase<number> {\n constructor(private expressions: QtiExpressionBase<number>[]) {}\n\n public calculate() {\n const expressions = this.expressions.filter(c => c.calculate !== undefined);\n // check if one expresssion returns null\n if (expressions.some(c => c.calculate() === null)) {\n return null;\n }\n\n const values = this.expressions.map(c => {\n const value = c.calculate();\n if (Number.isNaN(value)) {\n console.error('unexpected value in qti-sum, expected number');\n return null;\n }\n\n return Number(value);\n });\n return values.reduce((a, b) => a + b, 0);\n }\n}\n\ncustomElements.define('qti-sum', QtiSum);\n"]}
1
+ {"version":3,"file":"qti-sum.js","sourceRoot":"","sources":["../../../src/components/qti-sum/qti-sum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD;;;;;;;GAOG;AACH,MAAM,OAAO,MAAO,SAAQ,aAAqB;IAC/B,SAAS;QACvB,uEAAuE;QACvE,MAAM,UAAU,GAAG,IAAI,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAkD,CAAC,CAAC,CAAC;QAC7G,MAAM,KAAK,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;QACrC,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED,MAAM,OAAO,gBAAgB;IAC3B,YAAoB,WAAwC;QAAxC,gBAAW,GAAX,WAAW,CAA6B;IAAG,CAAC;IAEzD,SAAS;QACd,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;QAC5E,wCAAwC;QACxC,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;YAClD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YACtC,MAAM,KAAK,GAAG,CAAC,CAAC,SAAS,EAAE,CAAC;YAC5B,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;gBACxB,OAAO,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;gBAC9D,OAAO,IAAI,CAAC;YACd,CAAC;YAED,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF","sourcesContent":["import { QtiExpression } from '@qti-components/base';\n\nimport type { QtiExpressionBase } from '@qti-components/base';\n\n/**\n * @summary The qti-sum operator calculates the total of multiple numerical values.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/info/index.html#sum\n *\n * Takes 1 or more sub-expressions with numerical base-types and any cardinality.\n * Returns a single float (or integer if all arguments are integers) representing the total.\n * Special cases: Returns NULL if any sub-expression is NULL.\n */\nexport class QtiSum extends QtiExpression<number> {\n public override getResult() {\n // children can be a mix of qti-expression and qti-condition-expression\n const expression = new QtiSumExpression(Array.from(this.children as unknown as QtiExpressionBase<number>[]));\n const value = expression.calculate();\n return value;\n }\n}\n\nexport class QtiSumExpression implements QtiExpressionBase<number> {\n constructor(private expressions: QtiExpressionBase<number>[]) {}\n\n public calculate() {\n const expressions = this.expressions.filter(c => c.calculate !== undefined);\n // check if one expresssion returns null\n if (expressions.some(c => c.calculate() === null)) {\n return null;\n }\n\n const values = this.expressions.map(c => {\n const value = c.calculate();\n if (Number.isNaN(value)) {\n console.error('unexpected value in qti-sum, expected number');\n return null;\n }\n\n return Number(value);\n });\n return values.reduce((a, b) => a + b, 0);\n }\n}\n"]}
@@ -34,5 +34,4 @@ export class QtiTruncate extends QtiExpression {
34
34
  return Math.trunc(value);
35
35
  }
36
36
  }
37
- customElements.define('qti-truncate', QtiTruncate);
38
37
  //# sourceMappingURL=qti-truncate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"qti-truncate.js","sourceRoot":"","sources":["../../../src/components/qti-truncate/qti-truncate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD;;;;;;;GAOG;AACH,MAAM,OAAO,WAAY,SAAQ,aAA4B;IAC3C,SAAS;QACvB,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAwB,CAAC;QAE5D,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,QAAQ,CAAC,WAAW,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACvE,OAAO,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;YAC1D,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,QAAQ,CAAC,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;YACrE,OAAO,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;YAC3D,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,QAAQ,CAAC,KAAK,KAAK,IAAI,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC5D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAe,CAAC,CAAC;QAC1D,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;YACzD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;CACF;AAED,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC","sourcesContent":["import { QtiExpression } from '@qti-components/base';\n\nimport type { ResponseVariable } from '@qti-components/base';\n\n/**\n * @summary The qti-truncate operator removes fractional parts of a number.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/info/index.html#truncate\n *\n * Takes 1 numerical sub-expression of single cardinality.\n * Returns integer formed by truncating value toward zero.\n * Special cases: Returns NULL if input is NULL or NaN.\n */\nexport class QtiTruncate extends QtiExpression<number | null> {\n public override getResult(): number | null {\n const variables = this.getVariables() as ResponseVariable[];\n\n if (variables.length !== 1) {\n console.error('qti-truncate requires exactly one child expression');\n return null;\n }\n\n const variable = variables[0];\n if (variable.cardinality !== 'single' || Array.isArray(variable.value)) {\n console.error('qti-truncate requires single cardinality');\n return null;\n }\n if (variable.baseType !== 'integer' && variable.baseType !== 'float') {\n console.error('qti-truncate requires numerical base-type');\n return null;\n }\n if (variable.value === null || variable.value === undefined) {\n return null;\n }\n\n const value = Number.parseFloat(variable.value as string);\n if (Number.isNaN(value)) {\n console.error('qti-truncate requires a numerical value');\n return null;\n }\n\n return Math.trunc(value);\n }\n}\n\ncustomElements.define('qti-truncate', QtiTruncate);\n"]}
1
+ {"version":3,"file":"qti-truncate.js","sourceRoot":"","sources":["../../../src/components/qti-truncate/qti-truncate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD;;;;;;;GAOG;AACH,MAAM,OAAO,WAAY,SAAQ,aAA4B;IAC3C,SAAS;QACvB,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAwB,CAAC;QAE5D,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,QAAQ,CAAC,WAAW,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACvE,OAAO,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;YAC1D,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,QAAQ,CAAC,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;YACrE,OAAO,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;YAC3D,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,QAAQ,CAAC,KAAK,KAAK,IAAI,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC5D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAe,CAAC,CAAC;QAC1D,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;YACzD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;CACF","sourcesContent":["import { QtiExpression } from '@qti-components/base';\n\nimport type { ResponseVariable } from '@qti-components/base';\n\n/**\n * @summary The qti-truncate operator removes fractional parts of a number.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/info/index.html#truncate\n *\n * Takes 1 numerical sub-expression of single cardinality.\n * Returns integer formed by truncating value toward zero.\n * Special cases: Returns NULL if input is NULL or NaN.\n */\nexport class QtiTruncate extends QtiExpression<number | null> {\n public override getResult(): number | null {\n const variables = this.getVariables() as ResponseVariable[];\n\n if (variables.length !== 1) {\n console.error('qti-truncate requires exactly one child expression');\n return null;\n }\n\n const variable = variables[0];\n if (variable.cardinality !== 'single' || Array.isArray(variable.value)) {\n console.error('qti-truncate requires single cardinality');\n return null;\n }\n if (variable.baseType !== 'integer' && variable.baseType !== 'float') {\n console.error('qti-truncate requires numerical base-type');\n return null;\n }\n if (variable.value === null || variable.value === undefined) {\n return null;\n }\n\n const value = Number.parseFloat(variable.value as string);\n if (Number.isNaN(value)) {\n console.error('qti-truncate requires a numerical value');\n return null;\n }\n\n return Math.trunc(value);\n }\n}\n"]}
@@ -6,5 +6,4 @@ export class QtiVariable extends QtiExpression {
6
6
  return result;
7
7
  }
8
8
  }
9
- customElements.define('qti-variable', QtiVariable);
10
9
  //# sourceMappingURL=qti-variable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"qti-variable.js","sourceRoot":"","sources":["../../../src/components/qti-variable/qti-variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,OAAO,WAAY,SAAQ,aAAgC;IAC/C,SAAS;QACvB,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC,KAAK,CAAC;QACnF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAED,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC","sourcesContent":["import { QtiExpression } from '@qti-components/base';\n\nexport class QtiVariable extends QtiExpression<string | string[]> {\n public override getResult() {\n const identifier = this.getAttribute('identifier');\n const result = this.context.variables.find(v => v.identifier === identifier).value;\n return result;\n }\n}\n\ncustomElements.define('qti-variable', QtiVariable);\n"]}
1
+ {"version":3,"file":"qti-variable.js","sourceRoot":"","sources":["../../../src/components/qti-variable/qti-variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,OAAO,WAAY,SAAQ,aAAgC;IAC/C,SAAS;QACvB,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC,KAAK,CAAC;QACnF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF","sourcesContent":["import { QtiExpression } from '@qti-components/base';\n\nexport class QtiVariable extends QtiExpression<string | string[]> {\n public override getResult() {\n const identifier = this.getAttribute('identifier');\n const result = this.context.variables.find(v => v.identifier === identifier).value;\n return result;\n }\n}\n"]}
@@ -0,0 +1,254 @@
1
+ import { QtiAnd } from './components/qti-and/qti-and';
2
+ import { QtiAnyN } from './components/qti-any-n/qti-any-n';
3
+ import { QtiBaseValue } from './components/qti-basevalue/qti-basevalue';
4
+ import { QtiContainerSize } from './components/qti-container-size/qti-container-size';
5
+ import { QtiContains } from './components/qti-contains/qti-contains';
6
+ import { QtiCorrect } from './components/qti-correct/qti-correct';
7
+ import { QtiDefault } from './components/qti-default/qti-default';
8
+ import { QtiDelete } from './components/qti-delete/qti-delete';
9
+ import { QtiDivide } from './components/qti-divide/qti-divide';
10
+ import { QtiDurationGte } from './components/qti-duration-gte/qti-duration-gte';
11
+ import { QtiDurationLt } from './components/qti-duration-lt/qti-duration-lt';
12
+ import { QtiEqualRounded } from './components/qti-equal-rounded/qti-equal-rounded';
13
+ import { QtiEqual } from './components/qti-equal/qti-equal';
14
+ import { QtiFieldValue } from './components/qti-field-value/qti-field-value';
15
+ import { QtiGcd } from './components/qti-gcd/qti.gcd';
16
+ import { QtiGt } from './components/qti-gt/qti-gt';
17
+ import { QtiGte } from './components/qti-gte/qti-gte';
18
+ import { QtiIndex } from './components/qti-index/qti-index';
19
+ import { QtiInside } from './components/qti-inside/qti-inside';
20
+ import { QtiIntegerDivide } from './components/qti-integer-divide/qti-integer-divide';
21
+ import { QtiIntegerModulus } from './components/qti-integer-modulus/qti-integer-modulus';
22
+ import { QtiIntegerToFloat } from './components/qti-integer-to-float/qti-integer-to-float';
23
+ import { QtiIsNull } from './components/qti-is-null/qti-is-null';
24
+ import { QtiLcm } from './components/qti-lcm/qti-lcm';
25
+ import { QtiLookupOutcomeValue } from './components/qti-lookup-outcome-value/qti-lookup-outcome-value';
26
+ import { QtiLt } from './components/qti-lt/qti-lt';
27
+ import { QtiLte } from './components/qti-lte/qti-lte';
28
+ import { QtiMapResponsePoint } from './components/qti-map-response-point/qti-map-response-point';
29
+ import { QtiMapResponse } from './components/qti-map-response/qti-map-response';
30
+ import { QtiMatch } from './components/qti-match/qti-match';
31
+ import { QtiMathOperator } from './components/qti-math-operator/qti-math-operator';
32
+ import { QtiMax } from './components/qti-max/qti-max';
33
+ import { QtiMember } from './components/qti-member/qti-member';
34
+ import { QtiMin } from './components/qti-min/qti-min';
35
+ import { QtiMultiple } from './components/qti-multiple/qti-multiple';
36
+ import { QtiNot } from './components/qti-not/qti-not';
37
+ import { QtiNull } from './components/qti-null/qti-null';
38
+ import { QtiOr } from './components/qti-or/qti-or';
39
+ import { QtiOrdered } from './components/qti-ordered/qti-ordered';
40
+ import { QtiPatternMatch } from './components/qti-pattern-match/qti-pattern-match';
41
+ import { QtiPower } from './components/qti-power/qti-power';
42
+ import { QtiPrintedVariable } from './components/qti-printed-variable/qti-printed-variable';
43
+ import { QtiProduct } from './components/qti-product/qti-product';
44
+ import { QtiRandomInteger } from './components/qti-random-integer/qti-random-integer';
45
+ import { QtiRandom } from './components/qti-random/qti-random';
46
+ import { QtiRepeat } from './components/qti-repeat/qti-repeat';
47
+ import { QtiResponseCondition } from './components/qti-response-condition/qti-response-condition';
48
+ import { QtiResponseElseIf } from './components/qti-response-else-if/qti-response-else-if';
49
+ import { QtiResponseElse } from './components/qti-response-else/qti-response-else';
50
+ import { QtiResponseIf } from './components/qti-response-if/qti-response-if';
51
+ import { QtiRoundTo } from './components/qti-round-to/qti-round-to';
52
+ import { QtiRound } from './components/qti-round/qti-round';
53
+ import { QtiRule } from './components/qti-rule/qti-rule';
54
+ import { QtiSetCorrectResponse } from './components/qti-set-correct-response/qti-set-correct-response';
55
+ import { QtiSetOutcomeValue } from './components/qti-set-outcome-value/qti-set-outcome-value';
56
+ import { QtiSetTemplateValue } from './components/qti-set-template-value/qti-set-template-value';
57
+ import { QtiStatsOperator } from './components/qti-stats-operator/qti-stats-operator';
58
+ import { QtiStringMatch } from './components/qti-string-match/qti-string-match';
59
+ import { QtiSubstring } from './components/qti-substring/qti-substring';
60
+ import { QtiSubtract } from './components/qti-subtract/qti-subtract';
61
+ import { QtiSum } from './components/qti-sum/qti-sum';
62
+ import { QtiTruncate } from './components/qti-truncate/qti-truncate';
63
+ import { QtiVariable } from './components/qti-variable/qti-variable';
64
+ export { QtiAnd, QtiAnyN, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiDivide, QtiDurationGte, QtiDurationLt, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiInside, QtiIntegerDivide, QtiIntegerModulus, QtiIntegerToFloat, QtiIsNull, QtiLcm, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMax, QtiMember, QtiMin, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiPatternMatch, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiRepeat, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiRule, QtiSetCorrectResponse, QtiSetOutcomeValue, QtiSetTemplateValue, QtiStatsOperator, QtiStringMatch, QtiSubstring, QtiSubtract, QtiSum, QtiTruncate, QtiVariable };
65
+ export declare const qtiProcessingElements: readonly [{
66
+ readonly tag: "qti-and";
67
+ readonly ctor: typeof QtiAnd;
68
+ }, {
69
+ readonly tag: "qti-any-n";
70
+ readonly ctor: typeof QtiAnyN;
71
+ }, {
72
+ readonly tag: "qti-base-value";
73
+ readonly ctor: typeof QtiBaseValue;
74
+ }, {
75
+ readonly tag: "qti-container-size";
76
+ readonly ctor: typeof QtiContainerSize;
77
+ }, {
78
+ readonly tag: "qti-contains";
79
+ readonly ctor: typeof QtiContains;
80
+ }, {
81
+ readonly tag: "qti-correct";
82
+ readonly ctor: typeof QtiCorrect;
83
+ }, {
84
+ readonly tag: "qti-default";
85
+ readonly ctor: typeof QtiDefault;
86
+ }, {
87
+ readonly tag: "qti-delete";
88
+ readonly ctor: typeof QtiDelete;
89
+ }, {
90
+ readonly tag: "qti-divide";
91
+ readonly ctor: typeof QtiDivide;
92
+ }, {
93
+ readonly tag: "qti-duration-gte";
94
+ readonly ctor: typeof QtiDurationGte;
95
+ }, {
96
+ readonly tag: "qti-duration-lt";
97
+ readonly ctor: typeof QtiDurationLt;
98
+ }, {
99
+ readonly tag: "qti-equal";
100
+ readonly ctor: typeof QtiEqual;
101
+ }, {
102
+ readonly tag: "qti-equal-rounded";
103
+ readonly ctor: typeof QtiEqualRounded;
104
+ }, {
105
+ readonly tag: "qti-field-value";
106
+ readonly ctor: typeof QtiFieldValue;
107
+ }, {
108
+ readonly tag: "qti-gcd";
109
+ readonly ctor: typeof QtiGcd;
110
+ }, {
111
+ readonly tag: "qti-gt";
112
+ readonly ctor: typeof QtiGt;
113
+ }, {
114
+ readonly tag: "qti-gte";
115
+ readonly ctor: typeof QtiGte;
116
+ }, {
117
+ readonly tag: "qti-index";
118
+ readonly ctor: typeof QtiIndex;
119
+ }, {
120
+ readonly tag: "qti-inside";
121
+ readonly ctor: typeof QtiInside;
122
+ }, {
123
+ readonly tag: "qti-integer-divide";
124
+ readonly ctor: typeof QtiIntegerDivide;
125
+ }, {
126
+ readonly tag: "qti-integer-modulus";
127
+ readonly ctor: typeof QtiIntegerModulus;
128
+ }, {
129
+ readonly tag: "qti-integer-to-float";
130
+ readonly ctor: typeof QtiIntegerToFloat;
131
+ }, {
132
+ readonly tag: "qti-is-null";
133
+ readonly ctor: typeof QtiIsNull;
134
+ }, {
135
+ readonly tag: "qti-lcm";
136
+ readonly ctor: typeof QtiLcm;
137
+ }, {
138
+ readonly tag: "qti-lookup-outcome-value";
139
+ readonly ctor: typeof QtiLookupOutcomeValue;
140
+ }, {
141
+ readonly tag: "qti-lt";
142
+ readonly ctor: typeof QtiLt;
143
+ }, {
144
+ readonly tag: "qti-lte";
145
+ readonly ctor: typeof QtiLte;
146
+ }, {
147
+ readonly tag: "qti-map-response";
148
+ readonly ctor: typeof QtiMapResponse;
149
+ }, {
150
+ readonly tag: "qti-map-response-point";
151
+ readonly ctor: typeof QtiMapResponsePoint;
152
+ }, {
153
+ readonly tag: "qti-match";
154
+ readonly ctor: typeof QtiMatch;
155
+ }, {
156
+ readonly tag: "qti-math-operator";
157
+ readonly ctor: typeof QtiMathOperator;
158
+ }, {
159
+ readonly tag: "qti-max";
160
+ readonly ctor: typeof QtiMax;
161
+ }, {
162
+ readonly tag: "qti-member";
163
+ readonly ctor: typeof QtiMember;
164
+ }, {
165
+ readonly tag: "qti-min";
166
+ readonly ctor: typeof QtiMin;
167
+ }, {
168
+ readonly tag: "qti-multiple";
169
+ readonly ctor: typeof QtiMultiple;
170
+ }, {
171
+ readonly tag: "qti-not";
172
+ readonly ctor: typeof QtiNot;
173
+ }, {
174
+ readonly tag: "qti-null";
175
+ readonly ctor: typeof QtiNull;
176
+ }, {
177
+ readonly tag: "qti-or";
178
+ readonly ctor: typeof QtiOr;
179
+ }, {
180
+ readonly tag: "qti-ordered";
181
+ readonly ctor: typeof QtiOrdered;
182
+ }, {
183
+ readonly tag: "qti-pattern-match";
184
+ readonly ctor: typeof QtiPatternMatch;
185
+ }, {
186
+ readonly tag: "qti-power";
187
+ readonly ctor: typeof QtiPower;
188
+ }, {
189
+ readonly tag: "qti-printed-variable";
190
+ readonly ctor: typeof QtiPrintedVariable;
191
+ }, {
192
+ readonly tag: "qti-product";
193
+ readonly ctor: typeof QtiProduct;
194
+ }, {
195
+ readonly tag: "qti-random";
196
+ readonly ctor: typeof QtiRandom;
197
+ }, {
198
+ readonly tag: "qti-random-integer";
199
+ readonly ctor: typeof QtiRandomInteger;
200
+ }, {
201
+ readonly tag: "qti-repeat";
202
+ readonly ctor: typeof QtiRepeat;
203
+ }, {
204
+ readonly tag: "qti-response-condition";
205
+ readonly ctor: typeof QtiResponseCondition;
206
+ }, {
207
+ readonly tag: "qti-response-else";
208
+ readonly ctor: typeof QtiResponseElse;
209
+ }, {
210
+ readonly tag: "qti-response-else-if";
211
+ readonly ctor: typeof QtiResponseElseIf;
212
+ }, {
213
+ readonly tag: "qti-response-if";
214
+ readonly ctor: typeof QtiResponseIf;
215
+ }, {
216
+ readonly tag: "qti-round";
217
+ readonly ctor: typeof QtiRound;
218
+ }, {
219
+ readonly tag: "qti-round-to";
220
+ readonly ctor: typeof QtiRoundTo;
221
+ }, {
222
+ readonly tag: "qti-rule";
223
+ readonly ctor: typeof QtiRule;
224
+ }, {
225
+ readonly tag: "qti-set-correct-response";
226
+ readonly ctor: typeof QtiSetCorrectResponse;
227
+ }, {
228
+ readonly tag: "qti-set-outcome-value";
229
+ readonly ctor: typeof QtiSetOutcomeValue;
230
+ }, {
231
+ readonly tag: "qti-set-template-value";
232
+ readonly ctor: typeof QtiSetTemplateValue;
233
+ }, {
234
+ readonly tag: "qti-stats-operator";
235
+ readonly ctor: typeof QtiStatsOperator;
236
+ }, {
237
+ readonly tag: "qti-string-match";
238
+ readonly ctor: typeof QtiStringMatch;
239
+ }, {
240
+ readonly tag: "qti-substring";
241
+ readonly ctor: typeof QtiSubstring;
242
+ }, {
243
+ readonly tag: "qti-subtract";
244
+ readonly ctor: typeof QtiSubtract;
245
+ }, {
246
+ readonly tag: "qti-sum";
247
+ readonly ctor: typeof QtiSum;
248
+ }, {
249
+ readonly tag: "qti-truncate";
250
+ readonly ctor: typeof QtiTruncate;
251
+ }, {
252
+ readonly tag: "qti-variable";
253
+ readonly ctor: typeof QtiVariable;
254
+ }];
@@ -0,0 +1,130 @@
1
+ import { QtiAnd } from './components/qti-and/qti-and';
2
+ import { QtiAnyN } from './components/qti-any-n/qti-any-n';
3
+ import { QtiBaseValue } from './components/qti-basevalue/qti-basevalue';
4
+ import { QtiContainerSize } from './components/qti-container-size/qti-container-size';
5
+ import { QtiContains } from './components/qti-contains/qti-contains';
6
+ import { QtiCorrect } from './components/qti-correct/qti-correct';
7
+ import { QtiDefault } from './components/qti-default/qti-default';
8
+ import { QtiDelete } from './components/qti-delete/qti-delete';
9
+ import { QtiDivide } from './components/qti-divide/qti-divide';
10
+ import { QtiDurationGte } from './components/qti-duration-gte/qti-duration-gte';
11
+ import { QtiDurationLt } from './components/qti-duration-lt/qti-duration-lt';
12
+ import { QtiEqualRounded } from './components/qti-equal-rounded/qti-equal-rounded';
13
+ import { QtiEqual } from './components/qti-equal/qti-equal';
14
+ import { QtiFieldValue } from './components/qti-field-value/qti-field-value';
15
+ import { QtiGcd } from './components/qti-gcd/qti.gcd';
16
+ import { QtiGt } from './components/qti-gt/qti-gt';
17
+ import { QtiGte } from './components/qti-gte/qti-gte';
18
+ import { QtiIndex } from './components/qti-index/qti-index';
19
+ import { QtiInside } from './components/qti-inside/qti-inside';
20
+ import { QtiIntegerDivide } from './components/qti-integer-divide/qti-integer-divide';
21
+ import { QtiIntegerModulus } from './components/qti-integer-modulus/qti-integer-modulus';
22
+ import { QtiIntegerToFloat } from './components/qti-integer-to-float/qti-integer-to-float';
23
+ import { QtiIsNull } from './components/qti-is-null/qti-is-null';
24
+ import { QtiLcm } from './components/qti-lcm/qti-lcm';
25
+ import { QtiLookupOutcomeValue } from './components/qti-lookup-outcome-value/qti-lookup-outcome-value';
26
+ import { QtiLt } from './components/qti-lt/qti-lt';
27
+ import { QtiLte } from './components/qti-lte/qti-lte';
28
+ import { QtiMapResponsePoint } from './components/qti-map-response-point/qti-map-response-point';
29
+ import { QtiMapResponse } from './components/qti-map-response/qti-map-response';
30
+ import { QtiMatch } from './components/qti-match/qti-match';
31
+ import { QtiMathOperator } from './components/qti-math-operator/qti-math-operator';
32
+ import { QtiMax } from './components/qti-max/qti-max';
33
+ import { QtiMember } from './components/qti-member/qti-member';
34
+ import { QtiMin } from './components/qti-min/qti-min';
35
+ import { QtiMultiple } from './components/qti-multiple/qti-multiple';
36
+ import { QtiNot } from './components/qti-not/qti-not';
37
+ import { QtiNull } from './components/qti-null/qti-null';
38
+ import { QtiOr } from './components/qti-or/qti-or';
39
+ import { QtiOrdered } from './components/qti-ordered/qti-ordered';
40
+ import { QtiPatternMatch } from './components/qti-pattern-match/qti-pattern-match';
41
+ import { QtiPower } from './components/qti-power/qti-power';
42
+ import { QtiPrintedVariable } from './components/qti-printed-variable/qti-printed-variable';
43
+ import { QtiProduct } from './components/qti-product/qti-product';
44
+ import { QtiRandomInteger } from './components/qti-random-integer/qti-random-integer';
45
+ import { QtiRandom } from './components/qti-random/qti-random';
46
+ import { QtiRepeat } from './components/qti-repeat/qti-repeat';
47
+ import { QtiResponseCondition } from './components/qti-response-condition/qti-response-condition';
48
+ import { QtiResponseElseIf } from './components/qti-response-else-if/qti-response-else-if';
49
+ import { QtiResponseElse } from './components/qti-response-else/qti-response-else';
50
+ import { QtiResponseIf } from './components/qti-response-if/qti-response-if';
51
+ import { QtiRoundTo } from './components/qti-round-to/qti-round-to';
52
+ import { QtiRound } from './components/qti-round/qti-round';
53
+ import { QtiRule } from './components/qti-rule/qti-rule';
54
+ import { QtiSetCorrectResponse } from './components/qti-set-correct-response/qti-set-correct-response';
55
+ import { QtiSetOutcomeValue } from './components/qti-set-outcome-value/qti-set-outcome-value';
56
+ import { QtiSetTemplateValue } from './components/qti-set-template-value/qti-set-template-value';
57
+ import { QtiStatsOperator } from './components/qti-stats-operator/qti-stats-operator';
58
+ import { QtiStringMatch } from './components/qti-string-match/qti-string-match';
59
+ import { QtiSubstring } from './components/qti-substring/qti-substring';
60
+ import { QtiSubtract } from './components/qti-subtract/qti-subtract';
61
+ import { QtiSum } from './components/qti-sum/qti-sum';
62
+ import { QtiTruncate } from './components/qti-truncate/qti-truncate';
63
+ import { QtiVariable } from './components/qti-variable/qti-variable';
64
+ export { QtiAnd, QtiAnyN, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiDivide, QtiDurationGte, QtiDurationLt, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiInside, QtiIntegerDivide, QtiIntegerModulus, QtiIntegerToFloat, QtiIsNull, QtiLcm, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMax, QtiMember, QtiMin, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiPatternMatch, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiRepeat, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiRule, QtiSetCorrectResponse, QtiSetOutcomeValue, QtiSetTemplateValue, QtiStatsOperator, QtiStringMatch, QtiSubstring, QtiSubtract, QtiSum, QtiTruncate, QtiVariable };
65
+ export const qtiProcessingElements = [
66
+ { tag: 'qti-and', ctor: QtiAnd },
67
+ { tag: 'qti-any-n', ctor: QtiAnyN },
68
+ { tag: 'qti-base-value', ctor: QtiBaseValue },
69
+ { tag: 'qti-container-size', ctor: QtiContainerSize },
70
+ { tag: 'qti-contains', ctor: QtiContains },
71
+ { tag: 'qti-correct', ctor: QtiCorrect },
72
+ { tag: 'qti-default', ctor: QtiDefault },
73
+ { tag: 'qti-delete', ctor: QtiDelete },
74
+ { tag: 'qti-divide', ctor: QtiDivide },
75
+ { tag: 'qti-duration-gte', ctor: QtiDurationGte },
76
+ { tag: 'qti-duration-lt', ctor: QtiDurationLt },
77
+ { tag: 'qti-equal', ctor: QtiEqual },
78
+ { tag: 'qti-equal-rounded', ctor: QtiEqualRounded },
79
+ { tag: 'qti-field-value', ctor: QtiFieldValue },
80
+ { tag: 'qti-gcd', ctor: QtiGcd },
81
+ { tag: 'qti-gt', ctor: QtiGt },
82
+ { tag: 'qti-gte', ctor: QtiGte },
83
+ { tag: 'qti-index', ctor: QtiIndex },
84
+ { tag: 'qti-inside', ctor: QtiInside },
85
+ { tag: 'qti-integer-divide', ctor: QtiIntegerDivide },
86
+ { tag: 'qti-integer-modulus', ctor: QtiIntegerModulus },
87
+ { tag: 'qti-integer-to-float', ctor: QtiIntegerToFloat },
88
+ { tag: 'qti-is-null', ctor: QtiIsNull },
89
+ { tag: 'qti-lcm', ctor: QtiLcm },
90
+ { tag: 'qti-lookup-outcome-value', ctor: QtiLookupOutcomeValue },
91
+ { tag: 'qti-lt', ctor: QtiLt },
92
+ { tag: 'qti-lte', ctor: QtiLte },
93
+ { tag: 'qti-map-response', ctor: QtiMapResponse },
94
+ { tag: 'qti-map-response-point', ctor: QtiMapResponsePoint },
95
+ { tag: 'qti-match', ctor: QtiMatch },
96
+ { tag: 'qti-math-operator', ctor: QtiMathOperator },
97
+ { tag: 'qti-max', ctor: QtiMax },
98
+ { tag: 'qti-member', ctor: QtiMember },
99
+ { tag: 'qti-min', ctor: QtiMin },
100
+ { tag: 'qti-multiple', ctor: QtiMultiple },
101
+ { tag: 'qti-not', ctor: QtiNot },
102
+ { tag: 'qti-null', ctor: QtiNull },
103
+ { tag: 'qti-or', ctor: QtiOr },
104
+ { tag: 'qti-ordered', ctor: QtiOrdered },
105
+ { tag: 'qti-pattern-match', ctor: QtiPatternMatch },
106
+ { tag: 'qti-power', ctor: QtiPower },
107
+ { tag: 'qti-printed-variable', ctor: QtiPrintedVariable },
108
+ { tag: 'qti-product', ctor: QtiProduct },
109
+ { tag: 'qti-random', ctor: QtiRandom },
110
+ { tag: 'qti-random-integer', ctor: QtiRandomInteger },
111
+ { tag: 'qti-repeat', ctor: QtiRepeat },
112
+ { tag: 'qti-response-condition', ctor: QtiResponseCondition },
113
+ { tag: 'qti-response-else', ctor: QtiResponseElse },
114
+ { tag: 'qti-response-else-if', ctor: QtiResponseElseIf },
115
+ { tag: 'qti-response-if', ctor: QtiResponseIf },
116
+ { tag: 'qti-round', ctor: QtiRound },
117
+ { tag: 'qti-round-to', ctor: QtiRoundTo },
118
+ { tag: 'qti-rule', ctor: QtiRule },
119
+ { tag: 'qti-set-correct-response', ctor: QtiSetCorrectResponse },
120
+ { tag: 'qti-set-outcome-value', ctor: QtiSetOutcomeValue },
121
+ { tag: 'qti-set-template-value', ctor: QtiSetTemplateValue },
122
+ { tag: 'qti-stats-operator', ctor: QtiStatsOperator },
123
+ { tag: 'qti-string-match', ctor: QtiStringMatch },
124
+ { tag: 'qti-substring', ctor: QtiSubstring },
125
+ { tag: 'qti-subtract', ctor: QtiSubtract },
126
+ { tag: 'qti-sum', ctor: QtiSum },
127
+ { tag: 'qti-truncate', ctor: QtiTruncate },
128
+ { tag: 'qti-variable', ctor: QtiVariable }
129
+ ];
130
+ //# sourceMappingURL=elements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elements.js","sourceRoot":"","sources":["../src/elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,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AG,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE;IACjD,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE;IAC5C,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE;IAC1C,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE;IAC1C,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE;CAClC,CAAC","sourcesContent":["import { QtiAnd } from './components/qti-and/qti-and';\nimport { QtiAnyN } from './components/qti-any-n/qti-any-n';\nimport { QtiBaseValue } from './components/qti-basevalue/qti-basevalue';\nimport { QtiContainerSize } from './components/qti-container-size/qti-container-size';\nimport { QtiContains } from './components/qti-contains/qti-contains';\nimport { QtiCorrect } from './components/qti-correct/qti-correct';\nimport { QtiDefault } from './components/qti-default/qti-default';\nimport { QtiDelete } from './components/qti-delete/qti-delete';\nimport { QtiDivide } from './components/qti-divide/qti-divide';\nimport { QtiDurationGte } from './components/qti-duration-gte/qti-duration-gte';\nimport { QtiDurationLt } from './components/qti-duration-lt/qti-duration-lt';\nimport { QtiEqualRounded } from './components/qti-equal-rounded/qti-equal-rounded';\nimport { QtiEqual } from './components/qti-equal/qti-equal';\nimport { QtiFieldValue } from './components/qti-field-value/qti-field-value';\nimport { QtiGcd } from './components/qti-gcd/qti.gcd';\nimport { QtiGt } from './components/qti-gt/qti-gt';\nimport { QtiGte } from './components/qti-gte/qti-gte';\nimport { QtiIndex } from './components/qti-index/qti-index';\nimport { QtiInside } from './components/qti-inside/qti-inside';\nimport { QtiIntegerDivide } from './components/qti-integer-divide/qti-integer-divide';\nimport { QtiIntegerModulus } from './components/qti-integer-modulus/qti-integer-modulus';\nimport { QtiIntegerToFloat } from './components/qti-integer-to-float/qti-integer-to-float';\nimport { QtiIsNull } from './components/qti-is-null/qti-is-null';\nimport { QtiLcm } from './components/qti-lcm/qti-lcm';\nimport { QtiLookupOutcomeValue } from './components/qti-lookup-outcome-value/qti-lookup-outcome-value';\nimport { QtiLt } from './components/qti-lt/qti-lt';\nimport { QtiLte } from './components/qti-lte/qti-lte';\nimport { QtiMapResponsePoint } from './components/qti-map-response-point/qti-map-response-point';\nimport { QtiMapResponse } from './components/qti-map-response/qti-map-response';\nimport { QtiMatch } from './components/qti-match/qti-match';\nimport { QtiMathOperator } from './components/qti-math-operator/qti-math-operator';\nimport { QtiMax } from './components/qti-max/qti-max';\nimport { QtiMember } from './components/qti-member/qti-member';\nimport { QtiMin } from './components/qti-min/qti-min';\nimport { QtiMultiple } from './components/qti-multiple/qti-multiple';\nimport { QtiNot } from './components/qti-not/qti-not';\nimport { QtiNull } from './components/qti-null/qti-null';\nimport { QtiOr } from './components/qti-or/qti-or';\nimport { QtiOrdered } from './components/qti-ordered/qti-ordered';\nimport { QtiPatternMatch } from './components/qti-pattern-match/qti-pattern-match';\nimport { QtiPower } from './components/qti-power/qti-power';\nimport { QtiPrintedVariable } from './components/qti-printed-variable/qti-printed-variable';\nimport { QtiProduct } from './components/qti-product/qti-product';\nimport { QtiRandomInteger } from './components/qti-random-integer/qti-random-integer';\nimport { QtiRandom } from './components/qti-random/qti-random';\nimport { QtiRepeat } from './components/qti-repeat/qti-repeat';\nimport { QtiResponseCondition } from './components/qti-response-condition/qti-response-condition';\nimport { QtiResponseElseIf } from './components/qti-response-else-if/qti-response-else-if';\nimport { QtiResponseElse } from './components/qti-response-else/qti-response-else';\nimport { QtiResponseIf } from './components/qti-response-if/qti-response-if';\nimport { QtiRoundTo } from './components/qti-round-to/qti-round-to';\nimport { QtiRound } from './components/qti-round/qti-round';\nimport { QtiRule } from './components/qti-rule/qti-rule';\nimport { QtiSetCorrectResponse } from './components/qti-set-correct-response/qti-set-correct-response';\nimport { QtiSetOutcomeValue } from './components/qti-set-outcome-value/qti-set-outcome-value';\nimport { QtiSetTemplateValue } from './components/qti-set-template-value/qti-set-template-value';\nimport { QtiStatsOperator } from './components/qti-stats-operator/qti-stats-operator';\nimport { QtiStringMatch } from './components/qti-string-match/qti-string-match';\nimport { QtiSubstring } from './components/qti-substring/qti-substring';\nimport { QtiSubtract } from './components/qti-subtract/qti-subtract';\nimport { QtiSum } from './components/qti-sum/qti-sum';\nimport { QtiTruncate } from './components/qti-truncate/qti-truncate';\nimport { QtiVariable } from './components/qti-variable/qti-variable';\n\nexport {\n QtiAnd,\n QtiAnyN,\n QtiBaseValue,\n QtiContainerSize,\n QtiContains,\n QtiCorrect,\n QtiDefault,\n QtiDelete,\n QtiDivide,\n QtiDurationGte,\n QtiDurationLt,\n QtiEqual,\n QtiEqualRounded,\n QtiFieldValue,\n QtiGcd,\n QtiGt,\n QtiGte,\n QtiIndex,\n QtiInside,\n QtiIntegerDivide,\n QtiIntegerModulus,\n QtiIntegerToFloat,\n QtiIsNull,\n QtiLcm,\n QtiLookupOutcomeValue,\n QtiLt,\n QtiLte,\n QtiMapResponse,\n QtiMapResponsePoint,\n QtiMatch,\n QtiMathOperator,\n QtiMax,\n QtiMember,\n QtiMin,\n QtiMultiple,\n QtiNot,\n QtiNull,\n QtiOr,\n QtiOrdered,\n QtiPatternMatch,\n QtiPower,\n QtiPrintedVariable,\n QtiProduct,\n QtiRandom,\n QtiRandomInteger,\n QtiRepeat,\n QtiResponseCondition,\n QtiResponseElse,\n QtiResponseElseIf,\n QtiResponseIf,\n QtiRound,\n QtiRoundTo,\n QtiRule,\n QtiSetCorrectResponse,\n QtiSetOutcomeValue,\n QtiSetTemplateValue,\n QtiStatsOperator,\n QtiStringMatch,\n QtiSubstring,\n QtiSubtract,\n QtiSum,\n QtiTruncate,\n QtiVariable\n};\n\nexport const qtiProcessingElements = [\n { tag: 'qti-and', ctor: QtiAnd },\n { tag: 'qti-any-n', ctor: QtiAnyN },\n { tag: 'qti-base-value', ctor: QtiBaseValue },\n { tag: 'qti-container-size', ctor: QtiContainerSize },\n { tag: 'qti-contains', ctor: QtiContains },\n { tag: 'qti-correct', ctor: QtiCorrect },\n { tag: 'qti-default', ctor: QtiDefault },\n { tag: 'qti-delete', ctor: QtiDelete },\n { tag: 'qti-divide', ctor: QtiDivide },\n { tag: 'qti-duration-gte', ctor: QtiDurationGte },\n { tag: 'qti-duration-lt', ctor: QtiDurationLt },\n { tag: 'qti-equal', ctor: QtiEqual },\n { tag: 'qti-equal-rounded', ctor: QtiEqualRounded },\n { tag: 'qti-field-value', ctor: QtiFieldValue },\n { tag: 'qti-gcd', ctor: QtiGcd },\n { tag: 'qti-gt', ctor: QtiGt },\n { tag: 'qti-gte', ctor: QtiGte },\n { tag: 'qti-index', ctor: QtiIndex },\n { tag: 'qti-inside', ctor: QtiInside },\n { tag: 'qti-integer-divide', ctor: QtiIntegerDivide },\n { tag: 'qti-integer-modulus', ctor: QtiIntegerModulus },\n { tag: 'qti-integer-to-float', ctor: QtiIntegerToFloat },\n { tag: 'qti-is-null', ctor: QtiIsNull },\n { tag: 'qti-lcm', ctor: QtiLcm },\n { tag: 'qti-lookup-outcome-value', ctor: QtiLookupOutcomeValue },\n { tag: 'qti-lt', ctor: QtiLt },\n { tag: 'qti-lte', ctor: QtiLte },\n { tag: 'qti-map-response', ctor: QtiMapResponse },\n { tag: 'qti-map-response-point', ctor: QtiMapResponsePoint },\n { tag: 'qti-match', ctor: QtiMatch },\n { tag: 'qti-math-operator', ctor: QtiMathOperator },\n { tag: 'qti-max', ctor: QtiMax },\n { tag: 'qti-member', ctor: QtiMember },\n { tag: 'qti-min', ctor: QtiMin },\n { tag: 'qti-multiple', ctor: QtiMultiple },\n { tag: 'qti-not', ctor: QtiNot },\n { tag: 'qti-null', ctor: QtiNull },\n { tag: 'qti-or', ctor: QtiOr },\n { tag: 'qti-ordered', ctor: QtiOrdered },\n { tag: 'qti-pattern-match', ctor: QtiPatternMatch },\n { tag: 'qti-power', ctor: QtiPower },\n { tag: 'qti-printed-variable', ctor: QtiPrintedVariable },\n { tag: 'qti-product', ctor: QtiProduct },\n { tag: 'qti-random', ctor: QtiRandom },\n { tag: 'qti-random-integer', ctor: QtiRandomInteger },\n { tag: 'qti-repeat', ctor: QtiRepeat },\n { tag: 'qti-response-condition', ctor: QtiResponseCondition },\n { tag: 'qti-response-else', ctor: QtiResponseElse },\n { tag: 'qti-response-else-if', ctor: QtiResponseElseIf },\n { tag: 'qti-response-if', ctor: QtiResponseIf },\n { tag: 'qti-round', ctor: QtiRound },\n { tag: 'qti-round-to', ctor: QtiRoundTo },\n { tag: 'qti-rule', ctor: QtiRule },\n { tag: 'qti-set-correct-response', ctor: QtiSetCorrectResponse },\n { tag: 'qti-set-outcome-value', ctor: QtiSetOutcomeValue },\n { tag: 'qti-set-template-value', ctor: QtiSetTemplateValue },\n { tag: 'qti-stats-operator', ctor: QtiStatsOperator },\n { tag: 'qti-string-match', ctor: QtiStringMatch },\n { tag: 'qti-substring', ctor: QtiSubstring },\n { tag: 'qti-subtract', ctor: QtiSubtract },\n { tag: 'qti-sum', ctor: QtiSum },\n { tag: 'qti-truncate', ctor: QtiTruncate },\n { tag: 'qti-variable', ctor: QtiVariable }\n] as const;\n"]}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './register';
1
2
  export * from './components/qti-lookup-outcome-value/qti-lookup-outcome-value';
2
3
  export * from './components/qti-response-condition/qti-response-condition';
3
4
  export * from './components/qti-set-outcome-value/qti-set-outcome-value';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import './register';
1
2
  export * from './components/qti-lookup-outcome-value/qti-lookup-outcome-value';
2
3
  export * from './components/qti-response-condition/qti-response-condition';
3
4
  export * from './components/qti-set-outcome-value/qti-set-outcome-value';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gEAAgE,CAAC;AAC/E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,0DAA0D,CAAC;AAEzE,cAAc,kDAAkD,CAAC;AACjE,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC;AAE7D,cAAc,cAAc,CAAC","sourcesContent":["export * from './components/qti-lookup-outcome-value/qti-lookup-outcome-value';\nexport * from './components/qti-response-condition/qti-response-condition';\nexport * from './components/qti-set-outcome-value/qti-set-outcome-value';\n\nexport * from './components/qti-response-else/qti-response-else';\nexport * from './components/qti-response-else-if/qti-response-else-if';\nexport * from './components/qti-response-if/qti-response-if';\n\nexport * from './components';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AAEpB,cAAc,gEAAgE,CAAC;AAC/E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,0DAA0D,CAAC;AAEzE,cAAc,kDAAkD,CAAC;AACjE,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC;AAE7D,cAAc,cAAc,CAAC","sourcesContent":["import './register';\n\nexport * from './components/qti-lookup-outcome-value/qti-lookup-outcome-value';\nexport * from './components/qti-response-condition/qti-response-condition';\nexport * from './components/qti-set-outcome-value/qti-set-outcome-value';\n\nexport * from './components/qti-response-else/qti-response-else';\nexport * from './components/qti-response-else-if/qti-response-else-if';\nexport * from './components/qti-response-if/qti-response-if';\n\nexport * from './components';\n"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { qtiProcessingElements } from './elements';
2
+ for (const { tag, ctor } of qtiProcessingElements) {
3
+ if (!customElements.get(tag)) {
4
+ customElements.define(tag, ctor);
5
+ }
6
+ }
7
+ //# sourceMappingURL=register.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,qBAAqB,EAAE,CAAC;IAClD,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7B,cAAc,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;AACH,CAAC","sourcesContent":["import { qtiProcessingElements } from './elements';\n\nfor (const { tag, ctor } of qtiProcessingElements) {\n if (!customElements.get(tag)) {\n customElements.define(tag, ctor);\n }\n}\n"]}