@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.
- package/dist/ExpressionResult-2192c3d8.d.ts +33 -0
- package/dist/chunk-2TX3IEPD.cjs +1 -0
- package/dist/chunk-HOQW4KDA.cjs +1 -0
- package/dist/chunk-JLKCCEGG.cjs +1 -0
- package/dist/chunk-JQY6IKDF.js +1 -0
- package/dist/chunk-L6436D6O.js +1 -0
- package/dist/chunk-NMCIOGD2.js +1 -0
- package/dist/custom-elements.json +20085 -0
- package/dist/qti-assessment-item-e9f437d6.d.ts +117 -0
- package/dist/qti-components/index.cjs +403 -0
- package/dist/qti-components/index.d.ts +786 -0
- package/dist/qti-components/index.js +403 -0
- package/dist/qti-item/index.cjs +17 -0
- package/dist/qti-item/index.d.ts +27 -0
- package/dist/qti-item/index.js +17 -0
- package/dist/qti-test/index.cjs +12 -0
- package/{lab/qti-test/qti-test.d.ts → dist/qti-test/index.d.ts} +10 -6
- package/dist/qti-test/index.js +12 -0
- package/dist/qti-transform/index.cjs +102 -0
- package/dist/qti-transform/index.d.ts +18 -0
- package/dist/qti-transform/index.js +102 -0
- package/dist/themes/qti.css +1390 -0
- package/package.json +68 -8
- package/readme.md +96 -0
- package/index.css +0 -2
- package/index.d.ts +0 -51
- package/index.js +0 -3655
- package/index.umd.cjs +0 -503
- package/lab/qti-custom-operator/qti-custom-operator-levenshtein.d.ts +0 -11
- package/lab/qti-custom-operator/qti-custom-operator-numeric-parse-nl.d.ts +0 -11
- package/lab/qti-custom-operator/qti-custom-operator-numeric.d.ts +0 -6
- package/lab/qti-custom-operator/qti-custom-operator-remove-spaces.d.ts +0 -6
- package/lab/qti-custom-operator/qti-custom-operator-trim.d.ts +0 -6
- package/lab/qti-item/qti-item.d.ts +0 -20
- package/lab/qti-manual-scoring/qti-manual-scoring.d.ts +0 -15
- package/lab/qti-test/index.d.ts +0 -2
- package/lib/qti-assessment-item/qti-assessment-item.d.ts +0 -44
- package/lib/qti-choice/qti-choice.d.ts +0 -34
- package/lib/qti-choice/qti-hottext/qti-hottext.d.ts +0 -8
- package/lib/qti-choice/qti-simple-choice/qti-simple-choice.d.ts +0 -8
- package/lib/qti-companion-materials-info/qti-companion-materials-info.d.ts +0 -3
- package/lib/qti-feedback/qti-feedback-inline/qti-feedback-inline.d.ts +0 -5
- package/lib/qti-feedback/qti-feedback.d.ts +0 -30
- package/lib/qti-feedback/qti-modal-feedback/qti-modal-feedback.d.ts +0 -4
- package/lib/qti-interaction/qti-associate-interaction/qti-associate-interaction.d.ts +0 -9
- package/lib/qti-interaction/qti-associate-interaction/qti-simple-associable-choice.d.ts +0 -5
- package/lib/qti-interaction/qti-choice-interaction/qti-choice-interaction.d.ts +0 -10
- package/lib/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.d.ts +0 -18
- package/lib/qti-interaction/qti-gap-match-interaction/qti-gap-match-interaction.d.ts +0 -7
- package/lib/qti-interaction/qti-gap-match-interaction/qti-gap-text.d.ts +0 -5
- package/lib/qti-interaction/qti-gap-match-interaction/qti-gap.d.ts +0 -4
- package/lib/qti-interaction/qti-graphic-associate-interaction/qti-graphic-associate-interaction.d.ts +0 -9
- package/lib/qti-interaction/qti-graphic-gap-match-interaction/qti-graphic-gap-match-interaction.d.ts +0 -10
- package/lib/qti-interaction/qti-graphic-order-interaction/qti-graphic-order-interaction.d.ts +0 -10
- package/lib/qti-interaction/qti-hotspot-choice.d.ts +0 -5
- package/lib/qti-interaction/qti-hotspot-interaction/qti-hotspot-interaction.d.ts +0 -8
- package/lib/qti-interaction/qti-hottext-interaction/qti-hottext-interaction.d.ts +0 -5
- package/lib/qti-interaction/qti-inline-choice-interaction/qti-inline-choice-interaction.d.ts +0 -26
- package/lib/qti-interaction/qti-match-interaction/qti-match-interaction.d.ts +0 -7
- package/lib/qti-interaction/qti-media-interaction/qti-media-interaction.d.ts +0 -18
- package/lib/qti-interaction/qti-order-interaction/qti-order-interaction.d.ts +0 -22
- package/lib/qti-interaction/qti-portable-custom-interaction/qti-portable-custom-interaction.d.ts +0 -34
- package/lib/qti-interaction/qti-preview-badge.d.ts +0 -1
- package/lib/qti-interaction/qti-select-point-interaction/qti-select-point-interaction.d.ts +0 -9
- package/lib/qti-interaction/qti-slider-interaction/qti-slider-interaction.d.ts +0 -31
- package/lib/qti-interaction/qti-text-entry-interaction/qti-text-entry-interaction.d.ts +0 -33
- package/lib/qti-item-body/qti-item-body.d.ts +0 -5
- package/lib/qti-prompt/qti-prompt.d.ts +0 -5
- package/lib/qti-responseprocessing/index.d.ts +0 -18
- package/lib/qti-responseprocessing/qti-expression/qti-and/qti-and.d.ts +0 -7
- package/lib/qti-responseprocessing/qti-expression/qti-basevalue/qti-basevalue.d.ts +0 -6
- package/lib/qti-responseprocessing/qti-expression/qti-contains/qti-contains.d.ts +0 -6
- package/lib/qti-responseprocessing/qti-expression/qti-correct/qti-correct.d.ts +0 -6
- package/lib/qti-responseprocessing/qti-expression/qti-expression.d.ts +0 -6
- package/lib/qti-responseprocessing/qti-expression/qti-gte/qti-gte.d.ts +0 -6
- package/lib/qti-responseprocessing/qti-expression/qti-is-null/qti-is-null.d.ts +0 -6
- package/lib/qti-responseprocessing/qti-expression/qti-mapresponse/qti-mapresponse.d.ts +0 -4
- package/lib/qti-responseprocessing/qti-expression/qti-match/qti-match.d.ts +0 -4
- package/lib/qti-responseprocessing/qti-expression/qti-multiple/qti-multiple.d.ts +0 -4
- package/lib/qti-responseprocessing/qti-expression/qti-or/qti-or.d.ts +0 -7
- package/lib/qti-responseprocessing/qti-expression/qti-variable/qti-variable.d.ts +0 -6
- package/lib/qti-responseprocessing/qti-responseelse/qti-responseelse.d.ts +0 -15
- package/lib/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseelseif/qti-responseelseif.d.ts +0 -4
- package/lib/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.d.ts +0 -7
- package/lib/qti-responseprocessing/qti-responseprocessing/qti-responseprocessing.d.ts +0 -7
- package/lib/qti-responseprocessing/qti-rule/qti-responsecondition/qti-responsecondition.d.ts +0 -5
- package/lib/qti-responseprocessing/qti-rule/qti-rule.d.ts +0 -5
- package/lib/qti-responseprocessing/qti-rule/qti-setoutcomevalue/qti-setoutcomevalue.d.ts +0 -4
- package/lib/qti-rubric-block/qti-content-body.d.ts +0 -4
- package/lib/qti-rubric-block/qti-rubric-block.d.ts +0 -15
- package/lib/qti-stylesheet/qti-stylesheet.d.ts +0 -7
- package/lib/qti-utilities/EventStrings.d.ts +0 -19
- package/lib/qti-utilities/EventTypes.d.ts +0 -7
- package/lib/qti-utilities/ExpressionResult.d.ts +0 -43
- package/lib/qti-utilities/OutcomeVariable.d.ts +0 -8
- package/lib/qti-utilities/ResponseVariable.d.ts +0 -28
- package/lib/qti-utilities/TemplateStrings.d.ts +0 -3
- package/lib/qti-utilities/VariableDeclaration.d.ts +0 -7
- package/lib/qti-variabledeclaration/qti-outcomedeclaration/qti-outcomedeclaration.d.ts +0 -5
- package/lib/qti-variabledeclaration/qti-responsedeclaration/qti-responsedeclaration.d.ts +0 -9
- package/lib/qti-variabledeclaration/qti-variabledeclaration.d.ts +0 -4
- package/lib/utilities/choice/choices.d.ts +0 -23
- package/lib/utilities/context/context.d.ts +0 -7
- package/lib/utilities/decorators/liveQuery.d.ts +0 -10
- package/lib/utilities/decorators/watch.d.ts +0 -14
- package/lib/utilities/drag-drop/drag-drop-api.d.ts +0 -91
- package/lib/utilities/drag-drop/drag-drop-interaction-mixin.d.ts +0 -5
- package/lib/utilities/drag-drop/droppables-mixin.d.ts +0 -6
- package/lib/utilities/drag-drop/flippables-mixin.d.ts +0 -8
- package/lib/utilities/drag-drop/index.d.ts +0 -4
- package/lib/utilities/element/qti-element.d.ts +0 -6
- package/lib/utilities/hotspots/hotspot.d.ts +0 -2
- package/lib/utilities/interaction/interaction.d.ts +0 -14
- package/lib/utilities/interaction/interaction.interface.d.ts +0 -8
- package/lib/utilities/reset-styles/reset-shadowroot-styles.d.ts +0 -1
- 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};
|