@citolab/qti-components 7.12.0 → 7.13.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 +32 -32
- package/custom-elements.json +2 -26
- package/dist/chunks/{chunk-GGTWY53P.js → chunk-XI7S3HP2.js} +7 -10
- package/dist/chunks/{chunk-GGTWY53P.js.map → chunk-XI7S3HP2.js.map} +1 -1
- package/dist/exports/qti-test.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/dist/qti-components-jsx.d.ts +0 -3
- package/dist/qti-test/index.d.ts +2 -3
- package/dist/qti-test/index.js +2 -2
- package/dist/{qti-test-BWQRhMTT.d.ts → qti-test-DEJqAn7G.d.ts} +2 -2
- package/dist/vscode.html-custom-data.json +1 -6
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -25186,7 +25186,8 @@
|
|
|
25186
25186
|
{
|
|
25187
25187
|
"kind": "method",
|
|
25188
25188
|
"name": "handleTestURLChange",
|
|
25189
|
-
"privacy": "protected"
|
|
25189
|
+
"privacy": "protected",
|
|
25190
|
+
"description": "Callback function to transform the test after loading"
|
|
25190
25191
|
},
|
|
25191
25192
|
{
|
|
25192
25193
|
"kind": "method",
|
|
@@ -25198,19 +25199,6 @@
|
|
|
25198
25199
|
"name": "initializeTemplateContent",
|
|
25199
25200
|
"privacy": "private"
|
|
25200
25201
|
},
|
|
25201
|
-
{
|
|
25202
|
-
"kind": "field",
|
|
25203
|
-
"name": "postLoadTestTransformCallback",
|
|
25204
|
-
"type": {
|
|
25205
|
-
"text": "PostLoadTestTransformCallback | null"
|
|
25206
|
-
},
|
|
25207
|
-
"default": "null",
|
|
25208
|
-
"description": "Callback function to transform the test after loading",
|
|
25209
|
-
"attribute": "postLoadTestTransformCallback",
|
|
25210
|
-
"parsedType": {
|
|
25211
|
-
"text": "{ } | null"
|
|
25212
|
-
}
|
|
25213
|
-
},
|
|
25214
25202
|
{
|
|
25215
25203
|
"kind": "field",
|
|
25216
25204
|
"name": "templateContent",
|
|
@@ -25251,18 +25239,6 @@
|
|
|
25251
25239
|
}
|
|
25252
25240
|
],
|
|
25253
25241
|
"attributes": [
|
|
25254
|
-
{
|
|
25255
|
-
"name": "postLoadTestTransformCallback",
|
|
25256
|
-
"type": {
|
|
25257
|
-
"text": "PostLoadTestTransformCallback | null"
|
|
25258
|
-
},
|
|
25259
|
-
"default": "null",
|
|
25260
|
-
"description": "Callback function to transform the test after loading",
|
|
25261
|
-
"fieldName": "postLoadTestTransformCallback",
|
|
25262
|
-
"parsedType": {
|
|
25263
|
-
"text": "{ } | null"
|
|
25264
|
-
}
|
|
25265
|
-
},
|
|
25266
25242
|
{
|
|
25267
25243
|
"name": "test-url",
|
|
25268
25244
|
"type": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
QtiModalFeedback
|
|
3
|
-
} from "./chunk-YD7FVKDP.js";
|
|
4
1
|
import {
|
|
5
2
|
item_default
|
|
6
3
|
} from "./chunk-PT5ASWGQ.js";
|
|
4
|
+
import {
|
|
5
|
+
QtiModalFeedback
|
|
6
|
+
} from "./chunk-YD7FVKDP.js";
|
|
7
7
|
import {
|
|
8
8
|
watch
|
|
9
9
|
} from "./chunk-ELDMXTUQ.js";
|
|
@@ -1710,17 +1710,17 @@ var TestContainer = class extends LitElement14 {
|
|
|
1710
1710
|
this.testXML = null;
|
|
1711
1711
|
/** Template content if provided */
|
|
1712
1712
|
this.templateContent = null;
|
|
1713
|
-
this.postLoadTestTransformCallback = null;
|
|
1714
1713
|
}
|
|
1715
1714
|
async handleTestURLChange() {
|
|
1716
1715
|
if (!this.testURL) return;
|
|
1717
1716
|
try {
|
|
1718
1717
|
let api = await qtiTransformTest().load(this.testURL);
|
|
1719
|
-
|
|
1718
|
+
const qtiTest = this.closest("qti-test");
|
|
1719
|
+
if (qtiTest.postLoadTestTransformCallback) {
|
|
1720
1720
|
const tempDoc = api.htmlDoc();
|
|
1721
1721
|
const testElement = tempDoc.querySelector("qti-assessment-test");
|
|
1722
1722
|
if (testElement) {
|
|
1723
|
-
api = await
|
|
1723
|
+
api = await qtiTest.postLoadTestTransformCallback(api, testElement);
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
1726
|
this.testDoc = api.htmlDoc();
|
|
@@ -1773,9 +1773,6 @@ __decorateClass([
|
|
|
1773
1773
|
__decorateClass([
|
|
1774
1774
|
state3()
|
|
1775
1775
|
], TestContainer.prototype, "testXML", 2);
|
|
1776
|
-
__decorateClass([
|
|
1777
|
-
property13({ type: Function })
|
|
1778
|
-
], TestContainer.prototype, "postLoadTestTransformCallback", 2);
|
|
1779
1776
|
__decorateClass([
|
|
1780
1777
|
watch("testURL", { waitUntilFirstUpdate: true })
|
|
1781
1778
|
], TestContainer.prototype, "handleTestURLChange", 1);
|
|
@@ -2266,4 +2263,4 @@ export {
|
|
|
2266
2263
|
TestScoringFeedback,
|
|
2267
2264
|
TestCheckItem
|
|
2268
2265
|
};
|
|
2269
|
-
//# sourceMappingURL=chunk-
|
|
2266
|
+
//# sourceMappingURL=chunk-XI7S3HP2.js.map
|