@citolab/qti-components 10.0.0-next.1 → 10.0.0-next.11
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/cdn/index.global.js +1 -1
- package/cdn/index.js +3701 -765
- package/dist/base.d.ts +10 -10
- package/dist/base.js +7 -1
- package/dist/{chunk-FWR6HZQS.js → chunk-454ZDSKX.js} +16 -13
- package/dist/chunk-454ZDSKX.js.map +1 -0
- package/dist/{chunk-35WWWFS6.js → chunk-AJ5U5KXR.js} +2 -2
- package/dist/{chunk-FD4AB6TM.js → chunk-AVZRY5SQ.js} +2 -2
- package/dist/{chunk-CKJ7M7JQ.js → chunk-KYNLY2ET.js} +2340 -2032
- package/dist/chunk-KYNLY2ET.js.map +1 -0
- package/dist/{chunk-6K3QWJHH.js → chunk-LCGPLQLE.js} +40 -4
- package/dist/chunk-LCGPLQLE.js.map +1 -0
- package/dist/{chunk-MI7774NV.js → chunk-M7X6TWSX.js} +2 -2
- package/dist/{chunk-YYIS6FDP.js → chunk-N2CTFOIK.js} +2 -2
- package/dist/{chunk-RSMYGGQK.js → chunk-O76BOKAP.js} +496 -271
- package/dist/chunk-O76BOKAP.js.map +1 -0
- package/dist/{chunk-GBZNFSFY.js → chunk-RWMY7KRT.js} +2 -2
- package/dist/{chunk-TDWJ6WZA.js → chunk-T7YSBBAA.js} +37 -1
- package/dist/chunk-T7YSBBAA.js.map +1 -0
- package/dist/{chunk-RU6332MD.js → chunk-XXJAE6AP.js} +3 -3
- package/dist/chunk-YKXVAXSI.js +7 -0
- package/dist/chunk-YKXVAXSI.js.map +1 -0
- package/dist/{chunk-6U3YPHXU.js → chunk-YOCOLMGB.js} +40 -5
- package/dist/{chunk-6U3YPHXU.js.map → chunk-YOCOLMGB.js.map} +1 -1
- package/dist/{computed.types.d-gJrBeUMG.d.ts → computed.types.d-IXACuBr7.d.ts} +10 -1
- package/dist/corrections.d.ts +9 -9
- package/dist/corrections.js +8 -8
- package/dist/elements.d.ts +2 -2
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +11 -11
- package/dist/index.js +37 -19
- package/dist/interactions.d.ts +4 -4
- package/dist/interactions.js +7 -3
- package/dist/item.css +1581 -387
- package/dist/item.d.ts +4 -4
- package/dist/item.js +4 -4
- package/dist/{item.types.d-B55QkJ92.d.ts → item.types.d-DuVR0ZVK.d.ts} +7 -1
- package/dist/loader.d.ts +2 -2
- package/dist/processing.d.ts +10 -3
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +934 -761
- package/dist/{qti-condition-expression.d-VJH6cWxf.d.ts → qti-condition-expression.d-B-T1NNl0.d.ts} +1 -1
- package/dist/{qti-expression.d-BPxEp8HU.d.ts → qti-expression.d-B-Cfbqlb.d.ts} +1 -1
- package/dist/{qti-feedback.d-wMYNVkkj.d.ts → qti-feedback.d-DbzPSJuK.d.ts} +1 -1
- package/dist/{qti-item.d-DgC1AQbY.d.ts → qti-item.d-B1gffYCL.d.ts} +1 -1
- package/dist/{qti-test.d-DkpBNcsv.d.ts → qti-test.d-D5C7W8Lg.d.ts} +185 -101
- package/dist/{qti-text-entry-interaction.d-q8u5BiVK.d.ts → qti-text-entry-interaction.d-CU-fAAD1.d.ts} +28 -19
- package/dist/{interaction.d-g6XG0T0Z.d.ts → record.d-wB9uYs-j.d.ts} +34 -2
- package/dist/{session.context.d-D5080LVx.d.ts → session.context.d-DW09Lrie.d.ts} +7 -1
- package/dist/test.d.ts +117 -9
- package/dist/test.js +19 -11
- package/package.json +9 -9
- package/dist/chunk-6K3QWJHH.js.map +0 -1
- package/dist/chunk-CKJ7M7JQ.js.map +0 -1
- package/dist/chunk-FWR6HZQS.js.map +0 -1
- package/dist/chunk-RSMYGGQK.js.map +0 -1
- package/dist/chunk-TDWJ6WZA.js.map +0 -1
- package/dist/chunk-ZP6QQYSU.js +0 -7
- package/dist/chunk-ZP6QQYSU.js.map +0 -1
- /package/dist/{chunk-35WWWFS6.js.map → chunk-AJ5U5KXR.js.map} +0 -0
- /package/dist/{chunk-FD4AB6TM.js.map → chunk-AVZRY5SQ.js.map} +0 -0
- /package/dist/{chunk-MI7774NV.js.map → chunk-M7X6TWSX.js.map} +0 -0
- /package/dist/{chunk-YYIS6FDP.js.map → chunk-N2CTFOIK.js.map} +0 -0
- /package/dist/{chunk-GBZNFSFY.js.map → chunk-RWMY7KRT.js.map} +0 -0
- /package/dist/{chunk-RU6332MD.js.map → chunk-XXJAE6AP.js.map} +0 -0
package/dist/item.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-
|
|
1
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-B1gffYCL.js';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
import { V as View } from './session.context.d-
|
|
3
|
+
import { V as View } from './session.context.d-DW09Lrie.js';
|
|
4
4
|
import { QtiAssessmentItem } from './elements.js';
|
|
5
5
|
import './qti.context.d-CejJMlfZ.js';
|
|
6
6
|
import './config.context.d-BvU9r-Mg.js';
|
|
7
|
-
import './item.types.d-
|
|
7
|
+
import './item.types.d-DuVR0ZVK.js';
|
|
8
8
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
9
|
-
import './qti-feedback.d-
|
|
9
|
+
import './qti-feedback.d-DbzPSJuK.js';
|
|
10
10
|
import './qti-rule-base.d-Bdzg8eGH.js';
|
|
11
11
|
|
|
12
12
|
type Constructor<T = {}> = abstract new (...args: any[]) => T;
|
package/dist/item.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-AVZRY5SQ.js";
|
|
2
2
|
import {
|
|
3
3
|
ItemContainer,
|
|
4
4
|
ItemPrintVariables,
|
|
5
5
|
ItemViewMixin,
|
|
6
6
|
QtiItem
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-XXJAE6AP.js";
|
|
8
|
+
import "./chunk-YKXVAXSI.js";
|
|
9
9
|
import "./chunk-4DB4SC5K.js";
|
|
10
10
|
import "./chunk-TLAVOBEM.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-T7YSBBAA.js";
|
|
12
12
|
export {
|
|
13
13
|
ItemContainer,
|
|
14
14
|
ItemPrintVariables,
|
|
@@ -12,7 +12,7 @@ interface Calculate {
|
|
|
12
12
|
}
|
|
13
13
|
type float = number;
|
|
14
14
|
type integer = number;
|
|
15
|
-
type BaseType = 'boolean' | 'directedPair' | 'duration' | 'float' | 'integer' | 'string' | 'identifier' | 'pair' | 'record';
|
|
15
|
+
type BaseType = 'boolean' | 'directedPair' | 'duration' | 'float' | 'integer' | 'string' | 'identifier' | 'pair' | 'point' | 'record';
|
|
16
16
|
type Multiple = string | string[][];
|
|
17
17
|
type Ordered = string | string[][];
|
|
18
18
|
type Cardinality = 'multiple' | 'ordered' | 'single' | 'record';
|
|
@@ -76,6 +76,12 @@ interface ResponseVariable extends VariableDeclaration<string | string[] | null>
|
|
|
76
76
|
mapping?: QtiMapping;
|
|
77
77
|
areaMapping?: QtiAreaMapping;
|
|
78
78
|
correctResponse?: string | string[] | null;
|
|
79
|
+
/**
|
|
80
|
+
* For `record` cardinality: the base type of each field, by field identifier, as declared on the
|
|
81
|
+
* `qti-value` elements of the correct response. A record declaration has no `base-type` of its
|
|
82
|
+
* own, so this is the only place the field types are known once the value is stored.
|
|
83
|
+
*/
|
|
84
|
+
fieldBaseTypes?: Record<string, BaseType>;
|
|
79
85
|
}
|
|
80
86
|
interface TemplateVariable extends VariableDeclaration<string | string[] | number | boolean | null> {
|
|
81
87
|
type: 'template';
|
package/dist/loader.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { QtiAssessmentItem } from './elements.js';
|
|
2
|
-
import './item.types.d-
|
|
2
|
+
import './item.types.d-DuVR0ZVK.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
5
|
-
import './qti-feedback.d-
|
|
5
|
+
import './qti-feedback.d-DbzPSJuK.js';
|
|
6
6
|
import './qti-rule-base.d-Bdzg8eGH.js';
|
|
7
7
|
|
|
8
8
|
type ManifestInfo = {
|
package/dist/processing.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { LitElement, nothing } from 'lit';
|
|
3
3
|
import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
|
|
4
|
-
import { b as ItemContext, B as BaseType, g as ResponseVariable, V as VariableDeclaration } from './item.types.d-
|
|
5
|
-
import { Q as QtiExpression, a as QtiExpressionBase, T as TestContext } from './qti-expression.d-
|
|
6
|
-
import { Q as QtiConditionExpression } from './qti-condition-expression.d-
|
|
4
|
+
import { b as ItemContext, B as BaseType, g as ResponseVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
|
|
5
|
+
import { Q as QtiExpression, a as QtiExpressionBase, T as TestContext } from './qti-expression.d-B-Cfbqlb.js';
|
|
6
|
+
import { Q as QtiConditionExpression } from './qti-condition-expression.d-B-T1NNl0.js';
|
|
7
7
|
import './qti.context.d-CejJMlfZ.js';
|
|
8
8
|
|
|
9
9
|
declare class QtiRule extends LitElement implements QtiRuleBase {
|
|
@@ -481,6 +481,13 @@ declare global {
|
|
|
481
481
|
* Special cases: Returns NULL if sub-expression is NULL or field does not exist.
|
|
482
482
|
*/
|
|
483
483
|
declare class QtiFieldValue extends QtiExpression<string | string[] | null> {
|
|
484
|
+
#private;
|
|
485
|
+
/**
|
|
486
|
+
* The base type of the field last read: as declared on the record's correct response when it
|
|
487
|
+
* is, otherwise read off the value. The value alone is a string like `"4.1"` or `"455 250"`, and
|
|
488
|
+
* an operator reading it as text would refuse to compare it as a number or test it as a point.
|
|
489
|
+
*/
|
|
490
|
+
get resultBaseType(): BaseType | undefined;
|
|
484
491
|
/**
|
|
485
492
|
* Every failure here is NULL rather than a thrown error. `qti-is-null` over a
|
|
486
493
|
* `qti-field-value` is the specified way to ask whether a record carries a
|
package/dist/processing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-M7X6TWSX.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAnd,
|
|
4
4
|
QtiAnyN,
|
|
@@ -76,8 +76,8 @@ import {
|
|
|
76
76
|
QtiVariable,
|
|
77
77
|
qtiAndMixin,
|
|
78
78
|
qtiSubtractMixin
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-LCGPLQLE.js";
|
|
80
|
+
import "./chunk-T7YSBBAA.js";
|
|
81
81
|
export {
|
|
82
82
|
QtiAnd,
|
|
83
83
|
QtiAnyN,
|