@citolab/qti-components 8.2.0 → 9.0.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/cdn/index.global.js +1 -1
- package/cdn/index.js +164 -164
- package/dist/base.js +1 -1
- package/dist/{chunk-LMGJOBJA.js → chunk-3MQNPN7A.js} +2 -2
- package/dist/{chunk-M7K5C522.js → chunk-3NPCS4IT.js} +2 -2
- package/dist/{chunk-OVBG223G.js → chunk-3VQSUWCK.js} +173 -12
- package/dist/chunk-3VQSUWCK.js.map +1 -0
- package/dist/{chunk-Q6ZK4LRH.js → chunk-5BXJRO5O.js} +1792 -551
- package/dist/chunk-5BXJRO5O.js.map +1 -0
- package/dist/{chunk-UC3T3NI3.js → chunk-DXEWBTJB.js} +2 -2
- package/dist/{chunk-CRLXQZFA.js → chunk-GBDTBHUQ.js} +11 -7
- package/dist/chunk-GBDTBHUQ.js.map +1 -0
- package/dist/chunk-KCK27QBP.js +11 -0
- package/dist/chunk-KCK27QBP.js.map +1 -0
- package/dist/chunk-MKZ374OJ.js +179 -0
- package/dist/chunk-MKZ374OJ.js.map +1 -0
- package/dist/{chunk-U7YCXDYC.js → chunk-RT6WZ3P7.js} +2 -2
- package/dist/{chunk-7D3NKAGZ.js → chunk-WCWJPIUQ.js} +5 -4
- package/dist/chunk-WCWJPIUQ.js.map +1 -0
- package/dist/{chunk-YLRMOX6C.js → chunk-WKWCOV5P.js} +2 -2
- package/dist/{chunk-OIUK5BFU.js → chunk-WTV7NQHO.js} +811 -811
- package/dist/chunk-WTV7NQHO.js.map +1 -0
- package/dist/corrections.js +81 -6
- package/dist/corrections.js.map +1 -1
- package/dist/elements.js +3 -3
- package/dist/index.js +23 -23
- package/dist/interactions.js +14 -15
- package/dist/item.js +3 -3
- package/dist/processing.d.ts +26 -0
- package/dist/processing.js +3 -2
- package/dist/qti-components-jsx.d.ts +60 -4
- package/dist/test.js +4 -4
- package/package.json +3 -3
- package/dist/chunk-43XBJ47H.js +0 -1420
- package/dist/chunk-43XBJ47H.js.map +0 -1
- package/dist/chunk-7D3NKAGZ.js.map +0 -1
- package/dist/chunk-CRLXQZFA.js.map +0 -1
- package/dist/chunk-OIUK5BFU.js.map +0 -1
- package/dist/chunk-OVBG223G.js.map +0 -1
- package/dist/chunk-Q6ZK4LRH.js.map +0 -1
- /package/dist/{chunk-LMGJOBJA.js.map → chunk-3MQNPN7A.js.map} +0 -0
- /package/dist/{chunk-M7K5C522.js.map → chunk-3NPCS4IT.js.map} +0 -0
- /package/dist/{chunk-UC3T3NI3.js.map → chunk-DXEWBTJB.js.map} +0 -0
- /package/dist/{chunk-U7YCXDYC.js.map → chunk-RT6WZ3P7.js.map} +0 -0
- /package/dist/{chunk-YLRMOX6C.js.map → chunk-WKWCOV5P.js.map} +0 -0
package/dist/processing.d.ts
CHANGED
|
@@ -551,8 +551,34 @@ declare class QtiPatternMatch extends QtiExpression<boolean | null> {
|
|
|
551
551
|
getResult(): boolean | null;
|
|
552
552
|
}
|
|
553
553
|
|
|
554
|
+
/**
|
|
555
|
+
* @summary Prints the value of an item variable into the item body.
|
|
556
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/info/index.html#printedVariable
|
|
557
|
+
*
|
|
558
|
+
* A container variable is printed as its values joined by `delimiter`; a record as
|
|
559
|
+
* `name<mapping-indicator>value` pairs joined by the same delimiter. A NULL variable — absent,
|
|
560
|
+
* null, or an empty container — prints nothing at all.
|
|
561
|
+
*
|
|
562
|
+
* @attr {string} identifier - Required. Identifier of the variable to print.
|
|
563
|
+
* @attr {string} [format] - printf-style conversion string, e.g. `%.2f` or `Score: %d`. Applies
|
|
564
|
+
* to each value printed. Takes precedence over `base` and `power-form`.
|
|
565
|
+
* @attr {number} [base=10] - Number base used when printing an integer variable.
|
|
566
|
+
* @attr {number} [index] - 1-based index selecting a single value of an ordered variable.
|
|
567
|
+
* @attr {boolean} [power-form=false] - Print numeric values in exponential form.
|
|
568
|
+
* @attr {string} [field] - Field of a record variable to print, instead of the whole record.
|
|
569
|
+
* @attr {string} [delimiter=;] - Separator between the values of an ordered/multiple/record variable.
|
|
570
|
+
* @attr {string} [mapping-indicator==] - Separator between a record field's name and its value.
|
|
571
|
+
*/
|
|
554
572
|
declare class QtiPrintedVariable extends LitElement {
|
|
573
|
+
#private;
|
|
555
574
|
identifier: string;
|
|
575
|
+
format?: string;
|
|
576
|
+
base: number;
|
|
577
|
+
index?: number;
|
|
578
|
+
powerForm: boolean;
|
|
579
|
+
field?: string;
|
|
580
|
+
delimiter: string;
|
|
581
|
+
mappingIndicator: string;
|
|
556
582
|
protected context?: ItemContext;
|
|
557
583
|
render(): lit.TemplateResult<1> | typeof nothing;
|
|
558
584
|
calculate(): VariableDeclaration<string | string[]>;
|
package/dist/processing.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./chunk-KCK27QBP.js";
|
|
1
2
|
import {
|
|
2
3
|
QtiAnd,
|
|
3
4
|
QtiAnyN,
|
|
@@ -71,8 +72,8 @@ import {
|
|
|
71
72
|
QtiVariable,
|
|
72
73
|
qtiAndMixin,
|
|
73
74
|
qtiSubtractMixin
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
75
|
+
} from "./chunk-3VQSUWCK.js";
|
|
76
|
+
import "./chunk-WCWJPIUQ.js";
|
|
76
77
|
export {
|
|
77
78
|
QtiAnd,
|
|
78
79
|
QtiAnyN,
|
|
@@ -5700,13 +5700,53 @@ export type QtiPowerSolidJsProps = {
|
|
|
5700
5700
|
};
|
|
5701
5701
|
|
|
5702
5702
|
export type QtiPrintedVariableProps = {
|
|
5703
|
-
/**
|
|
5703
|
+
/** Required. Identifier of the variable to print. */
|
|
5704
5704
|
identifier?: QtiPrintedVariable["identifier"] | undefined;
|
|
5705
|
+
/** printf-style conversion string, e.g. `%.2f` or `Score: %d`. Applies to each value printed. Takes precedence over `base` and `power-form`. */
|
|
5706
|
+
format?: QtiPrintedVariable["format"] | undefined;
|
|
5707
|
+
/** Number base used when printing an integer variable. */
|
|
5708
|
+
base?: QtiPrintedVariable["base"] | undefined;
|
|
5709
|
+
/** 1-based index selecting a single value of an ordered variable. */
|
|
5710
|
+
index?: QtiPrintedVariable["index"] | undefined;
|
|
5711
|
+
/** Print numeric values in exponential form. */
|
|
5712
|
+
"power-form"?: QtiPrintedVariable["powerForm"] | undefined;
|
|
5713
|
+
/** Print numeric values in exponential form. */
|
|
5714
|
+
powerForm?: QtiPrintedVariable["powerForm"] | undefined;
|
|
5715
|
+
/** Field of a record variable to print, instead of the whole record. */
|
|
5716
|
+
field?: QtiPrintedVariable["field"] | undefined;
|
|
5717
|
+
/** Separator between the values of an ordered/multiple/record variable. */
|
|
5718
|
+
delimiter?: QtiPrintedVariable["delimiter"] | undefined;
|
|
5719
|
+
/** */
|
|
5720
|
+
undefined?: unknown | undefined;
|
|
5721
|
+
/** */
|
|
5722
|
+
"mapping-indicator"?: QtiPrintedVariable["mappingIndicator"] | undefined;
|
|
5723
|
+
/** */
|
|
5724
|
+
mappingIndicator?: QtiPrintedVariable["mappingIndicator"] | undefined;
|
|
5705
5725
|
};
|
|
5706
5726
|
|
|
5707
5727
|
export type QtiPrintedVariableSolidJsProps = {
|
|
5708
|
-
/**
|
|
5728
|
+
/** Required. Identifier of the variable to print. */
|
|
5709
5729
|
"prop:identifier"?: QtiPrintedVariable["identifier"] | undefined;
|
|
5730
|
+
/** printf-style conversion string, e.g. `%.2f` or `Score: %d`. Applies to each value printed. Takes precedence over `base` and `power-form`. */
|
|
5731
|
+
"prop:format"?: QtiPrintedVariable["format"] | undefined;
|
|
5732
|
+
/** Number base used when printing an integer variable. */
|
|
5733
|
+
"prop:base"?: QtiPrintedVariable["base"] | undefined;
|
|
5734
|
+
/** 1-based index selecting a single value of an ordered variable. */
|
|
5735
|
+
"prop:index"?: QtiPrintedVariable["index"] | undefined;
|
|
5736
|
+
/** Print numeric values in exponential form. */
|
|
5737
|
+
"bool:power-form"?: QtiPrintedVariable["powerForm"] | undefined;
|
|
5738
|
+
/** Print numeric values in exponential form. */
|
|
5739
|
+
"prop:powerForm"?: QtiPrintedVariable["powerForm"] | undefined;
|
|
5740
|
+
/** Field of a record variable to print, instead of the whole record. */
|
|
5741
|
+
"prop:field"?: QtiPrintedVariable["field"] | undefined;
|
|
5742
|
+
/** Separator between the values of an ordered/multiple/record variable. */
|
|
5743
|
+
"prop:delimiter"?: QtiPrintedVariable["delimiter"] | undefined;
|
|
5744
|
+
/** */
|
|
5745
|
+
"prop:undefined"?: unknown | undefined;
|
|
5746
|
+
/** */
|
|
5747
|
+
"attr:mapping-indicator"?: QtiPrintedVariable["mappingIndicator"] | undefined;
|
|
5748
|
+
/** */
|
|
5749
|
+
"prop:mappingIndicator"?: QtiPrintedVariable["mappingIndicator"] | undefined;
|
|
5710
5750
|
|
|
5711
5751
|
/** Set the innerHTML of the element */
|
|
5712
5752
|
innerHTML?: string | undefined;
|
|
@@ -10412,7 +10452,15 @@ export type CustomElements = {
|
|
|
10412
10452
|
*
|
|
10413
10453
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
10414
10454
|
*
|
|
10415
|
-
* - `identifier`:
|
|
10455
|
+
* - `identifier`: Required. Identifier of the variable to print.
|
|
10456
|
+
* - `format`: printf-style conversion string, e.g. `%.2f` or `Score: %d`. Applies to each value printed. Takes precedence over `base` and `power-form`.
|
|
10457
|
+
* - `base`: Number base used when printing an integer variable.
|
|
10458
|
+
* - `index`: 1-based index selecting a single value of an ordered variable.
|
|
10459
|
+
* - `power-form`/`powerForm`: Print numeric values in exponential form.
|
|
10460
|
+
* - `field`: Field of a record variable to print, instead of the whole record.
|
|
10461
|
+
* - `delimiter`: Separator between the values of an ordered/multiple/record variable.
|
|
10462
|
+
* - `undefined`: undefined (property only)
|
|
10463
|
+
* - `mapping-indicator`/`mappingIndicator`: undefined
|
|
10416
10464
|
*
|
|
10417
10465
|
* ## Methods
|
|
10418
10466
|
*
|
|
@@ -15380,7 +15428,15 @@ export type CustomElementsSolidJs = {
|
|
|
15380
15428
|
*
|
|
15381
15429
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15382
15430
|
*
|
|
15383
|
-
* - `identifier`:
|
|
15431
|
+
* - `identifier`: Required. Identifier of the variable to print.
|
|
15432
|
+
* - `format`: printf-style conversion string, e.g. `%.2f` or `Score: %d`. Applies to each value printed. Takes precedence over `base` and `power-form`.
|
|
15433
|
+
* - `base`: Number base used when printing an integer variable.
|
|
15434
|
+
* - `index`: 1-based index selecting a single value of an ordered variable.
|
|
15435
|
+
* - `power-form`/`powerForm`: Print numeric values in exponential form.
|
|
15436
|
+
* - `field`: Field of a record variable to print, instead of the whole record.
|
|
15437
|
+
* - `delimiter`: Separator between the values of an ordered/multiple/record variable.
|
|
15438
|
+
* - `undefined`: undefined (property only)
|
|
15439
|
+
* - `mapping-indicator`/`mappingIndicator`: undefined
|
|
15384
15440
|
*
|
|
15385
15441
|
* ## Methods
|
|
15386
15442
|
*
|
package/dist/test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-DXEWBTJB.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssessmentItemRef,
|
|
4
4
|
QtiAssessmentSection,
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
TestView,
|
|
37
37
|
TestViewToggle,
|
|
38
38
|
ttsContext
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-GBDTBHUQ.js";
|
|
40
|
+
import "./chunk-WKWCOV5P.js";
|
|
41
41
|
import "./chunk-TLTYXWW7.js";
|
|
42
42
|
import "./chunk-4DB4SC5K.js";
|
|
43
43
|
import "./chunk-HDEG6BAZ.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-WCWJPIUQ.js";
|
|
45
45
|
export {
|
|
46
46
|
QtiAssessmentItemRef,
|
|
47
47
|
QtiAssessmentSection,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/qti-components",
|
|
3
3
|
"description": "QTI component utilities",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.0",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@heximal/templates": "^0.1.5",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"@qti-components/interactions": "^1.10.4",
|
|
16
16
|
"@qti-components/item": "^1.4.3",
|
|
17
17
|
"@qti-components/loader": "^1.3.3",
|
|
18
|
-
"@qti-components/processing": "^1.
|
|
19
|
-
"@qti-components/test": "^1.6.
|
|
18
|
+
"@qti-components/processing": "^1.5.0",
|
|
19
|
+
"@qti-components/test": "^1.6.1",
|
|
20
20
|
"@qti-components/theme": "^2.1.0",
|
|
21
21
|
"@qti-components/transformers": "^1.7.2"
|
|
22
22
|
},
|