@citolab/qti-components 7.28.1 → 8.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 +6205 -2973
- package/dist/base.d.ts +9 -50
- package/dist/base.js +27 -6
- package/dist/chunk-5QYII4OZ.js +1374 -0
- package/dist/chunk-5QYII4OZ.js.map +1 -0
- package/dist/{chunk-MPC7LIPC.js → chunk-5SJS36BI.js} +4264 -3647
- package/dist/chunk-5SJS36BI.js.map +1 -0
- package/dist/chunk-64XSIBGO.js +241 -0
- package/dist/chunk-64XSIBGO.js.map +1 -0
- package/dist/{chunk-SP6S2WMG.js → chunk-7V4HJFHW.js} +3 -3
- package/dist/{chunk-SP6S2WMG.js.map → chunk-7V4HJFHW.js.map} +1 -1
- package/dist/{chunk-3XV26R5M.js → chunk-H3J7LFRO.js} +829 -1005
- package/dist/chunk-H3J7LFRO.js.map +1 -0
- package/dist/{chunk-3WBG257S.js → chunk-IJD53WY6.js} +96 -74
- package/dist/chunk-IJD53WY6.js.map +1 -0
- package/dist/chunk-KYEZRYO6.js +1608 -0
- package/dist/chunk-KYEZRYO6.js.map +1 -0
- package/dist/{chunk-HFCZFWSH.js → chunk-LZJHHZQ2.js} +1954 -1729
- package/dist/chunk-LZJHHZQ2.js.map +1 -0
- package/dist/chunk-MGF5F3S2.js +11 -0
- package/dist/chunk-MGF5F3S2.js.map +1 -0
- package/dist/chunk-MJVPNN7W.js +11 -0
- package/dist/chunk-MJVPNN7W.js.map +1 -0
- package/dist/{chunk-REI3AMCZ.js → chunk-NA2N2WSG.js} +1303 -1193
- package/dist/chunk-NA2N2WSG.js.map +1 -0
- package/dist/chunk-V5G7X53Y.js +11 -0
- package/dist/chunk-V5G7X53Y.js.map +1 -0
- package/dist/chunk-W4QZPCNC.js +294 -0
- package/dist/chunk-W4QZPCNC.js.map +1 -0
- package/dist/chunk-WCQ26LV7.js +102 -0
- package/dist/chunk-WCQ26LV7.js.map +1 -0
- package/dist/{chunk-WDO2TRFM.js → chunk-WVVMNF74.js} +851 -925
- package/dist/chunk-WVVMNF74.js.map +1 -0
- package/dist/{chunk-FLJAKWXL.js → chunk-X3E5HXG2.js} +2 -2
- package/dist/corrections.d.ts +1 -0
- package/dist/corrections.js +84 -0
- package/dist/elements.d.ts +1 -399
- package/dist/elements.js +6 -5
- package/dist/index.d.ts +9 -23
- package/dist/index.js +185 -76
- package/dist/interactions.d.ts +1 -915
- package/dist/interactions.js +19 -15
- package/dist/item.css +4118 -1920
- package/dist/item.d.ts +1 -134
- package/dist/item.js +6 -11
- package/dist/loader.d.ts +1 -22
- package/dist/loader.js +2 -3
- package/dist/processing.d.ts +1 -731
- package/dist/processing.js +2 -3
- package/dist/qti-components-jsx.d.ts +5220 -2571
- package/dist/test.d.ts +1 -539
- package/dist/test.js +26 -11
- package/dist/transformers.d.ts +1 -18
- package/dist/transformers.js +1 -2
- package/package.json +19 -15
- package/custom-elements.json +0 -43251
- package/dist/chunk-3WBG257S.js.map +0 -1
- package/dist/chunk-3XV26R5M.js.map +0 -1
- package/dist/chunk-AQ5RJFM6.js +0 -3673
- package/dist/chunk-AQ5RJFM6.js.map +0 -1
- package/dist/chunk-HFCZFWSH.js.map +0 -1
- package/dist/chunk-MPC7LIPC.js.map +0 -1
- package/dist/chunk-QXBXORM3.js +0 -27
- package/dist/chunk-REI3AMCZ.js.map +0 -1
- package/dist/chunk-RLTYVS2I.js +0 -530
- package/dist/chunk-RLTYVS2I.js.map +0 -1
- package/dist/chunk-WDO2TRFM.js.map +0 -1
- package/dist/computed-item.context-DfsW_96S.d.ts +0 -22
- package/dist/computed.context-DHbxad0N.d.ts +0 -45
- package/dist/config.context-BjZ2bZSY.d.ts +0 -42
- package/dist/interaction-Bgzlw7Iu.d.ts +0 -110
- package/dist/item.context-CkUeDcaO.d.ts +0 -15
- package/dist/qti-condition-expression-Dam-RER6.d.ts +0 -26
- package/dist/qti-feedback-ChmXhZuf.d.ts +0 -21
- package/dist/qti-rule-base-ajOnfGXY.d.ts +0 -16
- package/dist/qti-transform-test-DoZaWItm.d.ts +0 -70
- package/dist/qti.context-CejJMlfZ.d.ts +0 -50
- package/dist/test.context-CByZZjkR.d.ts +0 -15
- package/dist/variables-CMYcDbyW.d.ts +0 -70
- /package/dist/{chunk-FLJAKWXL.js.map → chunk-X3E5HXG2.js.map} +0 -0
- /package/dist/{chunk-QXBXORM3.js.map → corrections.js.map} +0 -0
package/dist/item.d.ts
CHANGED
|
@@ -1,134 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { LitElement } from 'lit';
|
|
3
|
-
import { Q as QtiContext } from './qti.context-CejJMlfZ.js';
|
|
4
|
-
import { C as ComputedItemContext } from './computed-item.context-DfsW_96S.js';
|
|
5
|
-
import { C as ConfigContext } from './config.context-BjZ2bZSY.js';
|
|
6
|
-
import './variables-CMYcDbyW.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* `<item-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
10
|
-
* The `qti-assessment-item` will be placed inside the shadow DOM of this element.
|
|
11
|
-
* The element loads the item from the provided URL and renders it inside the shadow DOM.
|
|
12
|
-
*
|
|
13
|
-
* ### Styling
|
|
14
|
-
* Add a class to the element for styling.
|
|
15
|
-
*
|
|
16
|
-
* ```html
|
|
17
|
-
* <qti-item>
|
|
18
|
-
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
19
|
-
* </qti-item>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare class ItemContainer extends LitElement {
|
|
23
|
-
#private;
|
|
24
|
-
/** URL of the item to load */
|
|
25
|
-
itemURL: string;
|
|
26
|
-
/** A parsed HTML document */
|
|
27
|
-
itemDoc: DocumentFragment;
|
|
28
|
-
/** The raw XML string */
|
|
29
|
-
itemXML: string;
|
|
30
|
-
protected qtiContext: QtiContext;
|
|
31
|
-
protected handleItemURLChange(): Promise<void>;
|
|
32
|
-
protected handleItemXMLChange(): void;
|
|
33
|
-
connectedCallback(): Promise<void>;
|
|
34
|
-
render(): lit.TemplateResult<1>;
|
|
35
|
-
}
|
|
36
|
-
declare global {
|
|
37
|
-
interface HTMLElementTagNameMap {
|
|
38
|
-
'item-container': ItemContainer;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare class ItemCorrectResponseMode extends LitElement {
|
|
43
|
-
#private;
|
|
44
|
-
private itemContext;
|
|
45
|
-
label: string;
|
|
46
|
-
private _options;
|
|
47
|
-
render(): lit.TemplateResult<1>;
|
|
48
|
-
}
|
|
49
|
-
declare global {
|
|
50
|
-
interface HTMLElementTagNameMap {
|
|
51
|
-
'item-correct-response-mode': ItemCorrectResponseMode;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
declare class ItemShowCandidateCorrection extends LitElement {
|
|
56
|
-
#private;
|
|
57
|
-
computedContext?: ComputedItemContext;
|
|
58
|
-
static styles: lit.CSSResult;
|
|
59
|
-
shown: boolean;
|
|
60
|
-
disabled: boolean;
|
|
61
|
-
showCandidateCorrectionText: string;
|
|
62
|
-
hideCandidateCorrectionText: string;
|
|
63
|
-
noCorrectResponseText: string;
|
|
64
|
-
constructor();
|
|
65
|
-
updated(): void;
|
|
66
|
-
render(): lit.TemplateResult<1>;
|
|
67
|
-
}
|
|
68
|
-
declare global {
|
|
69
|
-
interface HTMLElementTagNameMap {
|
|
70
|
-
'item-show-candidate-correction': ItemShowCandidateCorrection;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare class ItemShowCorrectResponse extends LitElement {
|
|
75
|
-
#private;
|
|
76
|
-
computedContext?: ComputedItemContext;
|
|
77
|
-
static styles: lit.CSSResult;
|
|
78
|
-
shown: boolean;
|
|
79
|
-
disabled: boolean;
|
|
80
|
-
showCorrectText: string;
|
|
81
|
-
hideCorrectText: string;
|
|
82
|
-
noCorrectResponseText: string;
|
|
83
|
-
updated(): void;
|
|
84
|
-
render(): lit.TemplateResult<1>;
|
|
85
|
-
}
|
|
86
|
-
declare global {
|
|
87
|
-
interface HTMLElementTagNameMap {
|
|
88
|
-
'item-show-correct-response': ItemShowCorrectResponse;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
declare class ItemPrintVariables extends LitElement {
|
|
93
|
-
protected computedContext?: ComputedItemContext;
|
|
94
|
-
static styles: lit.CSSResult;
|
|
95
|
-
render(): lit.TemplateResult<1>;
|
|
96
|
-
}
|
|
97
|
-
declare global {
|
|
98
|
-
interface HTMLElementTagNameMap {
|
|
99
|
-
'item-print-variables': ItemPrintVariables;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* `<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.
|
|
105
|
-
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
106
|
-
* Placing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.
|
|
107
|
-
* See `<item-container>` for more details.
|
|
108
|
-
*
|
|
109
|
-
* ```html
|
|
110
|
-
* <qti-item>
|
|
111
|
-
* <item-container class="m-4 bg-white" item-url="./path/to/item.xml"></item-container>
|
|
112
|
-
* </qti-item>
|
|
113
|
-
* ```
|
|
114
|
-
*/
|
|
115
|
-
declare class QtiItem extends LitElement {
|
|
116
|
-
#private;
|
|
117
|
-
computedContext: ComputedItemContext;
|
|
118
|
-
configContext: ConfigContext;
|
|
119
|
-
/**
|
|
120
|
-
* Provided so that descendants (e.g. `<item-container>`) can read the QTI runtime
|
|
121
|
-
* context for standalone item delivery, including the optional shuffle `seed`.
|
|
122
|
-
*/
|
|
123
|
-
qtiContext: QtiContext;
|
|
124
|
-
constructor();
|
|
125
|
-
render(): lit.TemplateResult<1>;
|
|
126
|
-
disconnectedCallback(): void;
|
|
127
|
-
}
|
|
128
|
-
declare global {
|
|
129
|
-
interface HTMLElementTagNameMap {
|
|
130
|
-
'qti-item': QtiItem;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export { ItemContainer, ItemCorrectResponseMode, ItemPrintVariables, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiItem };
|
|
1
|
+
export * from '@qti-components/item';
|
package/dist/item.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
+
import "./chunk-MJVPNN7W.js";
|
|
1
2
|
import {
|
|
2
3
|
ItemContainer,
|
|
3
|
-
ItemCorrectResponseMode,
|
|
4
4
|
ItemPrintVariables,
|
|
5
|
-
ItemShowCandidateCorrection,
|
|
6
|
-
ItemShowCorrectResponse,
|
|
7
5
|
QtiItem
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-W4QZPCNC.js";
|
|
7
|
+
import "./chunk-WCQ26LV7.js";
|
|
8
|
+
import "./chunk-64XSIBGO.js";
|
|
9
|
+
import "./chunk-IJD53WY6.js";
|
|
10
|
+
import "./chunk-H3J7LFRO.js";
|
|
13
11
|
export {
|
|
14
12
|
ItemContainer,
|
|
15
|
-
ItemCorrectResponseMode,
|
|
16
13
|
ItemPrintVariables,
|
|
17
|
-
ItemShowCandidateCorrection,
|
|
18
|
-
ItemShowCorrectResponse,
|
|
19
14
|
QtiItem
|
|
20
15
|
};
|
|
21
16
|
//# sourceMappingURL=item.js.map
|
package/dist/loader.d.ts
CHANGED
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import 'lit';
|
|
3
|
-
import './variables-CMYcDbyW.js';
|
|
4
|
-
import './item.context-CkUeDcaO.js';
|
|
5
|
-
import './qti-feedback-ChmXhZuf.js';
|
|
6
|
-
import './qti-rule-base-ajOnfGXY.js';
|
|
7
|
-
|
|
8
|
-
type ManifestInfo = {
|
|
9
|
-
testIdentifier: string;
|
|
10
|
-
testHTMLDoc: DocumentFragment;
|
|
11
|
-
testURI: string;
|
|
12
|
-
testURL: string;
|
|
13
|
-
items: {
|
|
14
|
-
identifier: string;
|
|
15
|
-
href: string;
|
|
16
|
-
category: string;
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
declare const getManifestInfo: (manifestURL: string) => Promise<ManifestInfo>;
|
|
20
|
-
declare const getItemByUri: (itemUri: string) => Promise<QtiAssessmentItem>;
|
|
21
|
-
|
|
22
|
-
export { type ManifestInfo, getItemByUri, getManifestInfo };
|
|
1
|
+
export * from '@qti-components/loader';
|
package/dist/loader.js
CHANGED