@citolab/qti-components 3.0.83 → 6.0.1-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 (116) hide show
  1. package/dist/ExpressionResult-2192c3d8.d.ts +33 -0
  2. package/dist/chunk-2TX3IEPD.cjs +1 -0
  3. package/dist/chunk-HOQW4KDA.cjs +1 -0
  4. package/dist/chunk-JLKCCEGG.cjs +1 -0
  5. package/dist/chunk-JQY6IKDF.js +1 -0
  6. package/dist/chunk-L6436D6O.js +1 -0
  7. package/dist/chunk-NMCIOGD2.js +1 -0
  8. package/dist/custom-elements.json +20085 -0
  9. package/dist/qti-assessment-item-e9f437d6.d.ts +117 -0
  10. package/dist/qti-components/index.cjs +403 -0
  11. package/dist/qti-components/index.d.ts +786 -0
  12. package/dist/qti-components/index.js +403 -0
  13. package/dist/qti-item/index.cjs +17 -0
  14. package/dist/qti-item/index.d.ts +27 -0
  15. package/dist/qti-item/index.js +17 -0
  16. package/dist/qti-test/index.cjs +12 -0
  17. package/{lab/qti-test/qti-test.d.ts → dist/qti-test/index.d.ts} +10 -6
  18. package/dist/qti-test/index.js +12 -0
  19. package/dist/qti-transform/index.cjs +102 -0
  20. package/dist/qti-transform/index.d.ts +18 -0
  21. package/dist/qti-transform/index.js +102 -0
  22. package/dist/themes/qti.css +1390 -0
  23. package/package.json +68 -8
  24. package/readme.md +96 -0
  25. package/index.css +0 -2
  26. package/index.d.ts +0 -51
  27. package/index.js +0 -3655
  28. package/index.umd.cjs +0 -503
  29. package/lab/qti-custom-operator/qti-custom-operator-levenshtein.d.ts +0 -11
  30. package/lab/qti-custom-operator/qti-custom-operator-numeric-parse-nl.d.ts +0 -11
  31. package/lab/qti-custom-operator/qti-custom-operator-numeric.d.ts +0 -6
  32. package/lab/qti-custom-operator/qti-custom-operator-remove-spaces.d.ts +0 -6
  33. package/lab/qti-custom-operator/qti-custom-operator-trim.d.ts +0 -6
  34. package/lab/qti-item/qti-item.d.ts +0 -20
  35. package/lab/qti-manual-scoring/qti-manual-scoring.d.ts +0 -15
  36. package/lab/qti-test/index.d.ts +0 -2
  37. package/lib/qti-assessment-item/qti-assessment-item.d.ts +0 -44
  38. package/lib/qti-choice/qti-choice.d.ts +0 -34
  39. package/lib/qti-choice/qti-hottext/qti-hottext.d.ts +0 -8
  40. package/lib/qti-choice/qti-simple-choice/qti-simple-choice.d.ts +0 -8
  41. package/lib/qti-companion-materials-info/qti-companion-materials-info.d.ts +0 -3
  42. package/lib/qti-feedback/qti-feedback-inline/qti-feedback-inline.d.ts +0 -5
  43. package/lib/qti-feedback/qti-feedback.d.ts +0 -30
  44. package/lib/qti-feedback/qti-modal-feedback/qti-modal-feedback.d.ts +0 -4
  45. package/lib/qti-interaction/qti-associate-interaction/qti-associate-interaction.d.ts +0 -9
  46. package/lib/qti-interaction/qti-associate-interaction/qti-simple-associable-choice.d.ts +0 -5
  47. package/lib/qti-interaction/qti-choice-interaction/qti-choice-interaction.d.ts +0 -10
  48. package/lib/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.d.ts +0 -18
  49. package/lib/qti-interaction/qti-gap-match-interaction/qti-gap-match-interaction.d.ts +0 -7
  50. package/lib/qti-interaction/qti-gap-match-interaction/qti-gap-text.d.ts +0 -5
  51. package/lib/qti-interaction/qti-gap-match-interaction/qti-gap.d.ts +0 -4
  52. package/lib/qti-interaction/qti-graphic-associate-interaction/qti-graphic-associate-interaction.d.ts +0 -9
  53. package/lib/qti-interaction/qti-graphic-gap-match-interaction/qti-graphic-gap-match-interaction.d.ts +0 -10
  54. package/lib/qti-interaction/qti-graphic-order-interaction/qti-graphic-order-interaction.d.ts +0 -10
  55. package/lib/qti-interaction/qti-hotspot-choice.d.ts +0 -5
  56. package/lib/qti-interaction/qti-hotspot-interaction/qti-hotspot-interaction.d.ts +0 -8
  57. package/lib/qti-interaction/qti-hottext-interaction/qti-hottext-interaction.d.ts +0 -5
  58. package/lib/qti-interaction/qti-inline-choice-interaction/qti-inline-choice-interaction.d.ts +0 -26
  59. package/lib/qti-interaction/qti-match-interaction/qti-match-interaction.d.ts +0 -7
  60. package/lib/qti-interaction/qti-media-interaction/qti-media-interaction.d.ts +0 -18
  61. package/lib/qti-interaction/qti-order-interaction/qti-order-interaction.d.ts +0 -22
  62. package/lib/qti-interaction/qti-portable-custom-interaction/qti-portable-custom-interaction.d.ts +0 -34
  63. package/lib/qti-interaction/qti-preview-badge.d.ts +0 -1
  64. package/lib/qti-interaction/qti-select-point-interaction/qti-select-point-interaction.d.ts +0 -9
  65. package/lib/qti-interaction/qti-slider-interaction/qti-slider-interaction.d.ts +0 -31
  66. package/lib/qti-interaction/qti-text-entry-interaction/qti-text-entry-interaction.d.ts +0 -33
  67. package/lib/qti-item-body/qti-item-body.d.ts +0 -5
  68. package/lib/qti-prompt/qti-prompt.d.ts +0 -5
  69. package/lib/qti-responseprocessing/index.d.ts +0 -18
  70. package/lib/qti-responseprocessing/qti-expression/qti-and/qti-and.d.ts +0 -7
  71. package/lib/qti-responseprocessing/qti-expression/qti-basevalue/qti-basevalue.d.ts +0 -6
  72. package/lib/qti-responseprocessing/qti-expression/qti-contains/qti-contains.d.ts +0 -6
  73. package/lib/qti-responseprocessing/qti-expression/qti-correct/qti-correct.d.ts +0 -6
  74. package/lib/qti-responseprocessing/qti-expression/qti-expression.d.ts +0 -6
  75. package/lib/qti-responseprocessing/qti-expression/qti-gte/qti-gte.d.ts +0 -6
  76. package/lib/qti-responseprocessing/qti-expression/qti-is-null/qti-is-null.d.ts +0 -6
  77. package/lib/qti-responseprocessing/qti-expression/qti-mapresponse/qti-mapresponse.d.ts +0 -4
  78. package/lib/qti-responseprocessing/qti-expression/qti-match/qti-match.d.ts +0 -4
  79. package/lib/qti-responseprocessing/qti-expression/qti-multiple/qti-multiple.d.ts +0 -4
  80. package/lib/qti-responseprocessing/qti-expression/qti-or/qti-or.d.ts +0 -7
  81. package/lib/qti-responseprocessing/qti-expression/qti-variable/qti-variable.d.ts +0 -6
  82. package/lib/qti-responseprocessing/qti-responseelse/qti-responseelse.d.ts +0 -15
  83. package/lib/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseelseif/qti-responseelseif.d.ts +0 -4
  84. package/lib/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.d.ts +0 -7
  85. package/lib/qti-responseprocessing/qti-responseprocessing/qti-responseprocessing.d.ts +0 -7
  86. package/lib/qti-responseprocessing/qti-rule/qti-responsecondition/qti-responsecondition.d.ts +0 -5
  87. package/lib/qti-responseprocessing/qti-rule/qti-rule.d.ts +0 -5
  88. package/lib/qti-responseprocessing/qti-rule/qti-setoutcomevalue/qti-setoutcomevalue.d.ts +0 -4
  89. package/lib/qti-rubric-block/qti-content-body.d.ts +0 -4
  90. package/lib/qti-rubric-block/qti-rubric-block.d.ts +0 -15
  91. package/lib/qti-stylesheet/qti-stylesheet.d.ts +0 -7
  92. package/lib/qti-utilities/EventStrings.d.ts +0 -19
  93. package/lib/qti-utilities/EventTypes.d.ts +0 -7
  94. package/lib/qti-utilities/ExpressionResult.d.ts +0 -43
  95. package/lib/qti-utilities/OutcomeVariable.d.ts +0 -8
  96. package/lib/qti-utilities/ResponseVariable.d.ts +0 -28
  97. package/lib/qti-utilities/TemplateStrings.d.ts +0 -3
  98. package/lib/qti-utilities/VariableDeclaration.d.ts +0 -7
  99. package/lib/qti-variabledeclaration/qti-outcomedeclaration/qti-outcomedeclaration.d.ts +0 -5
  100. package/lib/qti-variabledeclaration/qti-responsedeclaration/qti-responsedeclaration.d.ts +0 -9
  101. package/lib/qti-variabledeclaration/qti-variabledeclaration.d.ts +0 -4
  102. package/lib/utilities/choice/choices.d.ts +0 -23
  103. package/lib/utilities/context/context.d.ts +0 -7
  104. package/lib/utilities/decorators/liveQuery.d.ts +0 -10
  105. package/lib/utilities/decorators/watch.d.ts +0 -14
  106. package/lib/utilities/drag-drop/drag-drop-api.d.ts +0 -91
  107. package/lib/utilities/drag-drop/drag-drop-interaction-mixin.d.ts +0 -5
  108. package/lib/utilities/drag-drop/droppables-mixin.d.ts +0 -6
  109. package/lib/utilities/drag-drop/flippables-mixin.d.ts +0 -8
  110. package/lib/utilities/drag-drop/index.d.ts +0 -4
  111. package/lib/utilities/element/qti-element.d.ts +0 -6
  112. package/lib/utilities/hotspots/hotspot.d.ts +0 -2
  113. package/lib/utilities/interaction/interaction.d.ts +0 -14
  114. package/lib/utilities/interaction/interaction.interface.d.ts +0 -8
  115. package/lib/utilities/reset-styles/reset-shadowroot-styles.d.ts +0 -1
  116. package/lib/utilities/scale-to-fit/scale-to-fit.mixin.d.ts +0 -6
@@ -0,0 +1,33 @@
1
+ interface directedPair {
2
+ destination: string;
3
+ source: string;
4
+ }
5
+ interface ResponseInteraction<T> {
6
+ responseIdentifier: string;
7
+ responses: T;
8
+ }
9
+ interface ResponseItem<T> {
10
+ item: string | null;
11
+ interaction: ResponseInteraction<T>;
12
+ }
13
+ interface InputResponseFormat<T> {
14
+ item: string;
15
+ interactions: ResponseInteraction<T>[];
16
+ }
17
+ interface Calculate {
18
+ calculate: () => ResponseType;
19
+ }
20
+ type QtiVariableJSON = {
21
+ [K in "list" | "base"]?: {
22
+ [Ka in "boolean" | "integer" | "float" | "string" | "pair" | "directedPair" | "identifier"]?: ResponseType;
23
+ };
24
+ };
25
+ type float = number;
26
+ type integer = number;
27
+ type ResponseType = boolean | directedPair | float | integer | string | ResponseType[];
28
+ type BaseType = "boolean" | "directedPair" | "float" | "integer" | "string" | "identifier" | "pair";
29
+ type Multiple = ResponseType[];
30
+ type Ordered = ResponseType[];
31
+ type Cardinality = "multiple" | "ordered" | "single";
32
+
33
+ export { BaseType as B, Cardinality as C, InputResponseFormat as I, Multiple as M, Ordered as O, QtiVariableJSON as Q, ResponseType as R, ResponseInteraction as a, ResponseItem as b, Calculate as c, directedPair as d, float as f, integer as i };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHOQW4KDAcjs = require('./chunk-HOQW4KDA.cjs');function u(e,d){let o=_chunkHOQW4KDAcjs.a.call(void 0, {waitUntilFirstUpdate:!1},d);return(s,r)=>{let{update:c}=s,f=Array.isArray(e)?e:[e];s.update=function(t){f.forEach(p=>{let n=p;if(t.has(n)){let a=t.get(n),i=this[n];a!==i&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[r](a,i)}}),c.call(this,t)}}}exports.a = u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var j=Object.defineProperty,k=Object.defineProperties,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;var i=(c,a,b)=>a in c?j(c,a,{enumerable:!0,configurable:!0,writable:!0,value:b}):c[a]=b,p= exports.a =(c,a)=>{for(var b in a||(a={}))n.call(a,b)&&i(c,b,a[b]);if(h)for(var b of h(a))o.call(a,b)&&i(c,b,a[b]);return c},q= exports.b =(c,a)=>k(c,m(a));var r=(c,a,b,e)=>{for(var d=e>1?void 0:e?l(a,b):a,f=c.length-1,g;f>=0;f--)(g=c[f])&&(d=(e?g(a,b,d):g(d))||d);return e&&d&&j(a,b,d),d};exports.a = p; exports.b = q; exports.c = r;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _context = require('@lit-labs/context');var g=_context.createContext.call(void 0, "logger");exports.a = g;
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk-NMCIOGD2.js";function u(e,d){let o=l({waitUntilFirstUpdate:!1},d);return(s,r)=>{let{update:c}=s,f=Array.isArray(e)?e:[e];s.update=function(t){f.forEach(p=>{let n=p;if(t.has(n)){let a=t.get(n),i=this[n];a!==i&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[r](a,i)}}),c.call(this,t)}}}export{u as a};
@@ -0,0 +1 @@
1
+ import{createContext as e}from"@lit-labs/context";var g=e("logger");export{g as a};
@@ -0,0 +1 @@
1
+ var j=Object.defineProperty,k=Object.defineProperties,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;var i=(c,a,b)=>a in c?j(c,a,{enumerable:!0,configurable:!0,writable:!0,value:b}):c[a]=b,p=(c,a)=>{for(var b in a||(a={}))n.call(a,b)&&i(c,b,a[b]);if(h)for(var b of h(a))o.call(a,b)&&i(c,b,a[b]);return c},q=(c,a)=>k(c,m(a));var r=(c,a,b,e)=>{for(var d=e>1?void 0:e?l(a,b):a,f=c.length-1,g;f>=0;f--)(g=c[f])&&(d=(e?g(a,b,d):g(d))||d);return e&&d&&j(a,b,d),d};export{p as a,q as b,r as c};