@citolab/qti-components 7.0.11 → 7.0.12
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/chunks/chunk-34HKCUN3.js +1 -0
- package/cdn/chunks/chunk-4HUJGZW6.js +1 -0
- package/cdn/chunks/chunk-7HFMTJAH.js +1 -0
- package/cdn/chunks/chunk-ARBRHQDY.js +951 -0
- package/cdn/chunks/chunk-BGM3IB5N.js +8 -0
- package/cdn/chunks/chunk-CIN2QCYB.js +3537 -0
- package/cdn/chunks/chunk-DJM7EUKM.js +1 -0
- package/cdn/chunks/chunk-F7RWORNK.js +951 -0
- package/cdn/chunks/chunk-HD7EMR2A.js +1 -0
- package/cdn/chunks/chunk-HEKMMOBI.js +1 -0
- package/cdn/chunks/chunk-I76GONMP.js +951 -0
- package/cdn/chunks/chunk-KVCXK3CQ.js +8 -0
- package/cdn/chunks/chunk-LICVWYUY.js +3537 -0
- package/cdn/chunks/chunk-LWN3NRJE.js +3560 -0
- package/cdn/chunks/chunk-MBWNNFLY.js +951 -0
- package/cdn/chunks/chunk-MCTQZZG4.js +1 -0
- package/cdn/chunks/chunk-NGC3MISE.js +1 -0
- package/cdn/chunks/chunk-NP3JIBVS.js +1 -0
- package/cdn/chunks/chunk-NTR5PVWP.js +3560 -0
- package/cdn/chunks/chunk-P2YEZLMB.js +951 -0
- package/cdn/chunks/chunk-QWJABXM7.js +951 -0
- package/cdn/chunks/chunk-TCHROQU3.js +1 -0
- package/cdn/chunks/chunk-TSTGSXP2.js +951 -0
- package/cdn/chunks/chunk-V6G6L6I3.js +3537 -0
- package/cdn/exports/computed-item.context.js +1 -0
- package/cdn/exports/qti-condition-expression.js +1 -1
- package/cdn/exports/qti-expression.js +1 -1
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +1 -1
- package/cdn/qti-components/index.js +1 -1
- package/cdn/qti-item/core/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/test-navigation.js +1 -1
- package/cdn/qti-test/components/test-next.js +1 -1
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
- package/cdn/qti-test/components/test-prev.js +1 -1
- package/cdn/qti-test/components/test-print-item-variables.js +1 -1
- package/cdn/qti-test/components/test-section-buttons-stamp.js +1 -1
- package/cdn/qti-test/components/test-view.js +1 -1
- package/cdn/qti-test/core/index.js +1 -1
- package/dist/chunks/chunk-4QYZHR36.js +6541 -0
- package/dist/chunks/chunk-4QYZHR36.js.map +1 -0
- package/dist/chunks/chunk-5QYVCPUS.js +3775 -0
- package/dist/chunks/chunk-5QYVCPUS.js.map +1 -0
- package/dist/chunks/chunk-6Z5YR5U2.js +8 -0
- package/dist/chunks/chunk-6Z5YR5U2.js.map +1 -0
- package/dist/chunks/chunk-7YUCREDM.js +3783 -0
- package/dist/chunks/chunk-7YUCREDM.js.map +1 -0
- package/dist/chunks/chunk-BIQNE2L4.js +6558 -0
- package/dist/chunks/chunk-BIQNE2L4.js.map +1 -0
- package/dist/chunks/chunk-CBSVVXVJ.js +6558 -0
- package/dist/chunks/chunk-CBSVVXVJ.js.map +1 -0
- package/dist/chunks/chunk-D4QP2AIX.js +222 -0
- package/dist/chunks/chunk-D4QP2AIX.js.map +1 -0
- package/dist/chunks/chunk-DACJEGD7.js +95 -0
- package/dist/chunks/chunk-DACJEGD7.js.map +1 -0
- package/dist/chunks/chunk-EFTOJP3Z.js +99 -0
- package/dist/chunks/chunk-EFTOJP3Z.js.map +1 -0
- package/dist/chunks/chunk-FSIQI3KQ.js +6541 -0
- package/dist/chunks/chunk-FSIQI3KQ.js.map +1 -0
- package/dist/chunks/chunk-KOQLAE5C.js +211 -0
- package/dist/chunks/chunk-KOQLAE5C.js.map +1 -0
- package/dist/chunks/chunk-KX5XK2I2.js +636 -0
- package/dist/chunks/chunk-KX5XK2I2.js.map +1 -0
- package/dist/chunks/chunk-LUJE2OUT.js +637 -0
- package/dist/chunks/chunk-LUJE2OUT.js.map +1 -0
- package/dist/chunks/chunk-M3ODN2LD.js +30 -0
- package/dist/chunks/chunk-M3ODN2LD.js.map +1 -0
- package/dist/chunks/chunk-O233FYKS.js +45 -0
- package/dist/chunks/chunk-O233FYKS.js.map +1 -0
- package/dist/chunks/chunk-STT3B34J.js +43 -0
- package/dist/chunks/chunk-STT3B34J.js.map +1 -0
- package/dist/chunks/chunk-TYV2BDMU.js +8 -0
- package/dist/chunks/chunk-TYV2BDMU.js.map +1 -0
- package/dist/chunks/chunk-UDUW5VX5.js +6545 -0
- package/dist/chunks/chunk-UDUW5VX5.js.map +1 -0
- package/dist/chunks/chunk-UIVMRBML.js +230 -0
- package/dist/chunks/chunk-UIVMRBML.js.map +1 -0
- package/dist/chunks/chunk-VYXSKCOZ.js +3706 -0
- package/dist/chunks/chunk-VYXSKCOZ.js.map +1 -0
- package/dist/chunks/chunk-X4BXOQJA.js +6558 -0
- package/dist/chunks/chunk-X4BXOQJA.js.map +1 -0
- package/dist/exports/computed-item.context.d.ts +16 -0
- package/dist/exports/computed-item.context.js +8 -0
- package/dist/exports/computed-item.context.js.map +1 -0
- package/dist/exports/computed.context.d.ts +4 -11
- package/dist/exports/computed.context.js +1 -1
- package/dist/exports/session.context.d.ts +2 -2
- package/dist/index.d.ts +5 -4
- package/dist/index.js +21 -16
- package/dist/qti-components/index.d.ts +2 -2
- package/dist/qti-components/index.js +2 -2
- package/dist/qti-components-jsx.d.ts +27 -1
- package/dist/qti-item/core/index.d.ts +35 -1
- package/dist/qti-item/core/index.js +6 -1
- package/dist/qti-loader/index.d.ts +2 -2
- package/dist/qti-response-declaration-CBb7rZqd.d.ts +1054 -0
- package/dist/qti-response-declaration-CgrlodE6.d.ts +1052 -0
- package/dist/qti-response-declaration-DZzGH8xM.d.ts +1057 -0
- package/dist/qti-response-declaration-DbMCe0zZ.d.ts +1052 -0
- package/dist/qti-test/components/index.d.ts +3 -2
- package/dist/qti-test/components/index.js +12 -12
- package/dist/qti-test/components/test-navigation.d.ts +4 -3
- package/dist/qti-test/components/test-navigation.js +2 -2
- package/dist/qti-test/components/test-next.d.ts +1 -0
- package/dist/qti-test/components/test-next.js +2 -2
- package/dist/qti-test/components/test-paging-buttons-stamp.js +2 -2
- package/dist/qti-test/components/test-prev.d.ts +1 -0
- package/dist/qti-test/components/test-prev.js +2 -2
- package/dist/qti-test/components/test-print-item-variables.d.ts +1 -0
- package/dist/qti-test/components/test-print-item-variables.js +2 -2
- package/dist/qti-test/components/test-section-buttons-stamp.js +2 -2
- package/dist/qti-test/core/index.d.ts +4 -4
- package/dist/qti-test/core/index.js +1 -1
- package/dist/qti-test-part-B8Dq08t9.d.ts +85 -0
- package/dist/qti-test-part-BYdORfcD.d.ts +85 -0
- package/dist/qti-test-part-CQycFqJC.d.ts +85 -0
- package/dist/qti-test-part-a-IuoG8-.d.ts +85 -0
- package/dist/vscode.html-custom-data.json +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type ComputedItemContext = {
|
|
2
|
+
identifier: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
correct?: boolean;
|
|
5
|
+
incorrect?: boolean;
|
|
6
|
+
completed?: boolean;
|
|
7
|
+
adaptive?: boolean;
|
|
8
|
+
timeDependent?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
value?: Readonly<string | string[]>;
|
|
11
|
+
};
|
|
12
|
+
declare const computedItemContext: {
|
|
13
|
+
__context__: Readonly<ComputedItemContext>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { type ComputedItemContext, computedItemContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ComputedItemContext } from './computed-item.context.js';
|
|
2
|
+
|
|
3
|
+
type ComputedItem = ComputedItemContext & {
|
|
4
4
|
type?: 'info' | 'regular';
|
|
5
|
-
active?: boolean;
|
|
6
|
-
correct?: boolean;
|
|
7
|
-
incorrect?: boolean;
|
|
8
|
-
completed?: boolean;
|
|
9
5
|
index?: number;
|
|
10
|
-
|
|
11
|
-
timeDependent?: boolean;
|
|
12
|
-
title?: string;
|
|
13
|
-
value?: Readonly<string | string[]>;
|
|
6
|
+
active?: boolean;
|
|
14
7
|
};
|
|
15
8
|
type ComputedContext = {
|
|
16
9
|
testParts: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { S as SessionContext, s as sessionContext } from '../qti-test-part-
|
|
1
|
+
export { S as SessionContext, s as sessionContext } from '../qti-test-part-a-IuoG8-.js';
|
|
2
2
|
import 'lit-html';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import './test.context.js';
|
|
5
5
|
import './item.context.js';
|
|
6
6
|
import '../variables-D70AFbp2.js';
|
|
7
7
|
import './expression-result.js';
|
|
8
|
-
import '../qti-response-declaration-
|
|
8
|
+
import '../qti-response-declaration-DZzGH8xM.js';
|
|
9
9
|
import './interaction.interface.js';
|
|
10
10
|
import './interaction.js';
|
|
11
11
|
import 'lit-html/directives/ref.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { O as Orientation, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, W as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, w as QtiHottext, v as QtiHottextInteraction, y as QtiInlineChoice, x as QtiInlineChoiceInteraction, K as QtiItemBody, R as QtiLookupOutcomeValue, z as QtiMatchInteraction, A as QtiMediaInteraction, f as QtiModalFeedback, B as QtiOrderInteraction, Z as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, M as QtiOutcomeProcessingProcessor, C as QtiPortableCustomInteraction, D as QtiPositionObjectStage, N as QtiPrompt, _ as QtiResponseDeclaration, P as QtiResponseProcessing, X as QtiRubricBlock, U as QtiRule, V as QtiRuleBase, E as QtiSelectPointInteraction, F as QtiSimpleAssociableChoice, G as QtiSimpleChoice, H as QtiSliderInteraction, Y as QtiStylesheet, S as QtiSubtract, I as QtiTextEntryInteraction, J as QtiUploadInteraction, T as qtiSubtractMixin } from './qti-response-declaration-
|
|
1
|
+
export { O as Orientation, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, W as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, w as QtiHottext, v as QtiHottextInteraction, y as QtiInlineChoice, x as QtiInlineChoiceInteraction, K as QtiItemBody, R as QtiLookupOutcomeValue, z as QtiMatchInteraction, A as QtiMediaInteraction, f as QtiModalFeedback, B as QtiOrderInteraction, Z as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, M as QtiOutcomeProcessingProcessor, C as QtiPortableCustomInteraction, D as QtiPositionObjectStage, N as QtiPrompt, _ as QtiResponseDeclaration, P as QtiResponseProcessing, X as QtiRubricBlock, U as QtiRule, V as QtiRuleBase, E as QtiSelectPointInteraction, F as QtiSimpleAssociableChoice, G as QtiSimpleChoice, H as QtiSliderInteraction, Y as QtiStylesheet, S as QtiSubtract, I as QtiTextEntryInteraction, J as QtiUploadInteraction, T as qtiSubtractMixin } from './qti-response-declaration-DZzGH8xM.js';
|
|
2
2
|
export { QtiAnd, QtiBaseValue, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiGt, QtiGte, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPrintedVariable, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, qtiAndMixin } from './qti-components/index.js';
|
|
3
3
|
export { a as QtiAreaMapping, Q as QtiMapping } from './variables-D70AFbp2.js';
|
|
4
4
|
export { QtiTest } from './qti-test/core/index.js';
|
|
5
|
-
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, c as QtiTestPart } from './qti-test-part-
|
|
5
|
+
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, c as QtiTestPart } from './qti-test-part-a-IuoG8-.js';
|
|
6
6
|
export { TestContext, testContext } from './exports/test.context.js';
|
|
7
7
|
export { TestNavigation } from './qti-test/components/test-navigation.js';
|
|
8
8
|
export { TestNext } from './qti-test/components/test-next.js';
|
|
@@ -16,18 +16,19 @@ export { TestContainer } from './qti-test/components/test-container.js';
|
|
|
16
16
|
export { TestPrintVariables } from './qti-test/components/test-print-item-variables.js';
|
|
17
17
|
export { TestSectionButtonsStamp } from './qti-test/components/test-section-buttons-stamp.js';
|
|
18
18
|
export { TestSectionLink } from './qti-test/components/test-section-link.js';
|
|
19
|
-
export { ItemContainer, QtiItem } from './qti-item/core/index.js';
|
|
19
|
+
export { ItemContainer, ItemShowCorrectResponse, PrintItemVariables, QtiItem } from './qti-item/core/index.js';
|
|
20
20
|
export { ManifestInfo, getItemByUri, getManifestInfo } from './qti-loader/index.js';
|
|
21
21
|
export { qtiTransformItem, qtiTransformManifest, qtiTransformTest, transformItemApi, transformTestApi } from './qti-transformers/index.js';
|
|
22
22
|
import 'lit-html';
|
|
23
23
|
import 'lit';
|
|
24
24
|
import './exports/expression-result.js';
|
|
25
|
+
import './exports/item.context.js';
|
|
25
26
|
import './exports/interaction.interface.js';
|
|
26
27
|
import './exports/interaction.js';
|
|
27
|
-
import './exports/item.context.js';
|
|
28
28
|
import 'lit-html/directives/ref.js';
|
|
29
29
|
import './exports/qti-expression.js';
|
|
30
30
|
import './exports/qti-condition-expression.js';
|
|
31
31
|
import './exports/computed.context.js';
|
|
32
|
+
import './exports/computed-item.context.js';
|
|
32
33
|
import './exports/config.context.js';
|
|
33
34
|
import 'stampino';
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ItemContainer,
|
|
3
|
+
ItemShowCorrectResponse,
|
|
4
|
+
PrintItemVariables,
|
|
3
5
|
QtiItem
|
|
4
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-7YUCREDM.js";
|
|
5
7
|
import {
|
|
6
8
|
QtiAssessmentItemRef,
|
|
7
9
|
QtiAssessmentSection,
|
|
8
10
|
QtiAssessmentTest,
|
|
9
11
|
QtiTest,
|
|
10
12
|
QtiTestPart
|
|
11
|
-
} from "./chunks/chunk-
|
|
13
|
+
} from "./chunks/chunk-KX5XK2I2.js";
|
|
12
14
|
import "./chunks/chunk-KB5LRYDB.js";
|
|
15
|
+
import {
|
|
16
|
+
TestView
|
|
17
|
+
} from "./chunks/chunk-CHINL5UJ.js";
|
|
18
|
+
import {
|
|
19
|
+
TestNavigation
|
|
20
|
+
} from "./chunks/chunk-UIVMRBML.js";
|
|
13
21
|
import {
|
|
14
22
|
TestNext
|
|
15
|
-
} from "./chunks/chunk-
|
|
23
|
+
} from "./chunks/chunk-EFTOJP3Z.js";
|
|
16
24
|
import {
|
|
17
25
|
TestPagingButtonsStamp
|
|
18
|
-
} from "./chunks/chunk-
|
|
26
|
+
} from "./chunks/chunk-O233FYKS.js";
|
|
19
27
|
import {
|
|
20
28
|
TestPrev
|
|
21
|
-
} from "./chunks/chunk-
|
|
29
|
+
} from "./chunks/chunk-DACJEGD7.js";
|
|
22
30
|
import "./chunks/chunk-K6EUKFNW.js";
|
|
23
31
|
import {
|
|
24
32
|
TestPrintVariables
|
|
25
|
-
} from "./chunks/chunk-
|
|
33
|
+
} from "./chunks/chunk-M3ODN2LD.js";
|
|
26
34
|
import {
|
|
27
35
|
TestSectionButtonsStamp
|
|
28
|
-
} from "./chunks/chunk-
|
|
36
|
+
} from "./chunks/chunk-STT3B34J.js";
|
|
29
37
|
import {
|
|
30
38
|
TestSectionLink
|
|
31
39
|
} from "./chunks/chunk-JMIFSDZ7.js";
|
|
32
40
|
import {
|
|
33
41
|
TestShowCorrectResponse
|
|
34
42
|
} from "./chunks/chunk-MBF6HEKO.js";
|
|
35
|
-
import {
|
|
36
|
-
TestView
|
|
37
|
-
} from "./chunks/chunk-CHINL5UJ.js";
|
|
38
43
|
import {
|
|
39
44
|
TestContainer
|
|
40
45
|
} from "./chunks/chunk-5OMC3DTZ.js";
|
|
@@ -45,9 +50,6 @@ import {
|
|
|
45
50
|
TestItemLink
|
|
46
51
|
} from "./chunks/chunk-ZJHKJMHR.js";
|
|
47
52
|
import "./chunks/chunk-4O5F7WV7.js";
|
|
48
|
-
import {
|
|
49
|
-
TestNavigation
|
|
50
|
-
} from "./chunks/chunk-FRNEKC5E.js";
|
|
51
53
|
import "./chunks/chunk-QTH3WLGY.js";
|
|
52
54
|
import {
|
|
53
55
|
testContext
|
|
@@ -139,11 +141,12 @@ import {
|
|
|
139
141
|
QtiVariable,
|
|
140
142
|
qtiAndMixin,
|
|
141
143
|
qtiSubtractMixin
|
|
142
|
-
} from "./chunks/chunk-
|
|
144
|
+
} from "./chunks/chunk-BIQNE2L4.js";
|
|
143
145
|
import "./chunks/chunk-D3RGDWKP.js";
|
|
144
146
|
import "./chunks/chunk-ELDMXTUQ.js";
|
|
145
147
|
import "./chunks/chunk-OOQLWOYU.js";
|
|
146
148
|
import "./chunks/chunk-I7HVKMDI.js";
|
|
149
|
+
import "./chunks/chunk-NJNQOQUU.js";
|
|
147
150
|
import {
|
|
148
151
|
getItemByUri,
|
|
149
152
|
getManifestInfo
|
|
@@ -153,13 +156,15 @@ import {
|
|
|
153
156
|
qtiTransformManifest,
|
|
154
157
|
qtiTransformTest
|
|
155
158
|
} from "./chunks/chunk-XDMSEAYC.js";
|
|
156
|
-
import "./chunks/chunk-
|
|
159
|
+
import "./chunks/chunk-TYV2BDMU.js";
|
|
160
|
+
import "./chunks/chunk-6Z5YR5U2.js";
|
|
157
161
|
import "./chunks/chunk-YUWIMPXO.js";
|
|
158
162
|
import "./chunks/chunk-W7ZXKJ5O.js";
|
|
159
|
-
import "./chunks/chunk-NJNQOQUU.js";
|
|
160
163
|
import "./chunks/chunk-H2JE6IVU.js";
|
|
161
164
|
export {
|
|
162
165
|
ItemContainer,
|
|
166
|
+
ItemShowCorrectResponse,
|
|
167
|
+
PrintItemVariables,
|
|
163
168
|
QtiAnd,
|
|
164
169
|
QtiAreaMapping,
|
|
165
170
|
QtiAssessmentItem,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as QtiRule, V as QtiRuleBase } from '../qti-response-declaration-
|
|
2
|
-
export { O as Orientation, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, W as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, w as QtiHottext, v as QtiHottextInteraction, y as QtiInlineChoice, x as QtiInlineChoiceInteraction, K as QtiItemBody, R as QtiLookupOutcomeValue, z as QtiMatchInteraction, A as QtiMediaInteraction, f as QtiModalFeedback, B as QtiOrderInteraction, Z as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, M as QtiOutcomeProcessingProcessor, C as QtiPortableCustomInteraction, D as QtiPositionObjectStage, N as QtiPrompt, _ as QtiResponseDeclaration, P as QtiResponseProcessing, X as QtiRubricBlock, E as QtiSelectPointInteraction, F as QtiSimpleAssociableChoice, G as QtiSimpleChoice, H as QtiSliderInteraction, Y as QtiStylesheet, S as QtiSubtract, I as QtiTextEntryInteraction, J as QtiUploadInteraction, T as qtiSubtractMixin } from '../qti-response-declaration-
|
|
1
|
+
import { U as QtiRule, V as QtiRuleBase } from '../qti-response-declaration-DZzGH8xM.js';
|
|
2
|
+
export { O as Orientation, Q as QtiAssessmentItem, a as QtiAssessmentStimulusRef, g as QtiAssociableHotspot, h as QtiAssociateInteraction, i as QtiChoiceInteraction, b as QtiCompanionMaterialsInfo, W as QtiContentBody, j as QtiCustomInteraction, c as QtiCustomOperator, k as QtiEndAttemptInteraction, l as QtiExtendedTextInteraction, d as QtiFeedbackBlock, e as QtiFeedbackInline, p as QtiGap, m as QtiGapImg, n as QtiGapMatchInteraction, o as QtiGapText, q as QtiGraphicAssociateInteraction, r as QtiGraphicGapMatchInteraction, s as QtiGraphicOrderInteraction, t as QtiHotspotChoice, u as QtiHotspotInteraction, w as QtiHottext, v as QtiHottextInteraction, y as QtiInlineChoice, x as QtiInlineChoiceInteraction, K as QtiItemBody, R as QtiLookupOutcomeValue, z as QtiMatchInteraction, A as QtiMediaInteraction, f as QtiModalFeedback, B as QtiOrderInteraction, Z as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, M as QtiOutcomeProcessingProcessor, C as QtiPortableCustomInteraction, D as QtiPositionObjectStage, N as QtiPrompt, _ as QtiResponseDeclaration, P as QtiResponseProcessing, X as QtiRubricBlock, E as QtiSelectPointInteraction, F as QtiSimpleAssociableChoice, G as QtiSimpleChoice, H as QtiSliderInteraction, Y as QtiStylesheet, S as QtiSubtract, I as QtiTextEntryInteraction, J as QtiUploadInteraction, T as qtiSubtractMixin } from '../qti-response-declaration-DZzGH8xM.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import * as lit_html from 'lit-html';
|
|
@@ -85,15 +85,15 @@ import {
|
|
|
85
85
|
QtiVariable,
|
|
86
86
|
qtiAndMixin,
|
|
87
87
|
qtiSubtractMixin
|
|
88
|
-
} from "../chunks/chunk-
|
|
88
|
+
} from "../chunks/chunk-BIQNE2L4.js";
|
|
89
89
|
import "../chunks/chunk-D3RGDWKP.js";
|
|
90
90
|
import "../chunks/chunk-ELDMXTUQ.js";
|
|
91
91
|
import "../chunks/chunk-OOQLWOYU.js";
|
|
92
92
|
import "../chunks/chunk-I7HVKMDI.js";
|
|
93
|
+
import "../chunks/chunk-NJNQOQUU.js";
|
|
93
94
|
import "../chunks/chunk-XDMSEAYC.js";
|
|
94
95
|
import "../chunks/chunk-YUWIMPXO.js";
|
|
95
96
|
import "../chunks/chunk-W7ZXKJ5O.js";
|
|
96
|
-
import "../chunks/chunk-NJNQOQUU.js";
|
|
97
97
|
import "../chunks/chunk-H2JE6IVU.js";
|
|
98
98
|
export {
|
|
99
99
|
QtiAnd,
|
|
@@ -247,6 +247,8 @@ export type QtiAssessmentItemProps = {
|
|
|
247
247
|
/** */
|
|
248
248
|
_handleReadonlyChange?: string;
|
|
249
249
|
/** */
|
|
250
|
+
_context?: ItemContext;
|
|
251
|
+
/** */
|
|
250
252
|
variables?: VariableValue<string | string[] | null>[];
|
|
251
253
|
/** @deprecated use variables property instead */
|
|
252
254
|
responses?: string;
|
|
@@ -778,7 +780,17 @@ export type ItemContainerProps = {
|
|
|
778
780
|
itemXML?: string;
|
|
779
781
|
};
|
|
780
782
|
|
|
781
|
-
export type
|
|
783
|
+
export type PrintItemVariablesProps = {
|
|
784
|
+
/** */
|
|
785
|
+
computedContext?: ComputedItemContext | undefined;
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
export type ItemShowCorrectResponseProps = {};
|
|
789
|
+
|
|
790
|
+
export type QtiItemProps = {
|
|
791
|
+
/** */
|
|
792
|
+
computedContext?: ComputedItemContext;
|
|
793
|
+
};
|
|
782
794
|
|
|
783
795
|
export type QtiAssessmentItemRefProps = {
|
|
784
796
|
/** */
|
|
@@ -1714,6 +1726,20 @@ export type CustomElements = {
|
|
|
1714
1726
|
*/
|
|
1715
1727
|
"item-container": Partial<ItemContainerProps & BaseProps & BaseEvents>;
|
|
1716
1728
|
|
|
1729
|
+
/**
|
|
1730
|
+
*
|
|
1731
|
+
* ---
|
|
1732
|
+
*
|
|
1733
|
+
*/
|
|
1734
|
+
"print-item-variables": Partial<PrintItemVariablesProps & BaseProps & BaseEvents>;
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
*
|
|
1738
|
+
* ---
|
|
1739
|
+
*
|
|
1740
|
+
*/
|
|
1741
|
+
"item-show-correct-response": Partial<ItemShowCorrectResponseProps & BaseProps & BaseEvents>;
|
|
1742
|
+
|
|
1717
1743
|
/**
|
|
1718
1744
|
* `<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.
|
|
1719
1745
|
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
|
+
import * as lit from 'lit';
|
|
2
3
|
import { LitElement } from 'lit';
|
|
4
|
+
import { ComputedItemContext } from '../../exports/computed-item.context.js';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* `<item-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
@@ -37,6 +39,27 @@ declare global {
|
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
declare class PrintItemVariables extends LitElement {
|
|
43
|
+
computedContext?: ComputedItemContext;
|
|
44
|
+
render(): lit_html.TemplateResult<1>;
|
|
45
|
+
}
|
|
46
|
+
declare global {
|
|
47
|
+
interface HTMLElementTagNameMap {
|
|
48
|
+
'print-item-variables': PrintItemVariables;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class ItemShowCorrectResponse extends LitElement {
|
|
53
|
+
static styles: lit.CSSResult;
|
|
54
|
+
constructor();
|
|
55
|
+
render(): lit_html.TemplateResult<1>;
|
|
56
|
+
}
|
|
57
|
+
declare global {
|
|
58
|
+
interface HTMLElementTagNameMap {
|
|
59
|
+
'item-show-correct-response': ItemShowCorrectResponse;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
40
63
|
/**
|
|
41
64
|
* `<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.
|
|
42
65
|
* It can also host some functionalities to interact with the item like scoring, showing feedback, etc.
|
|
@@ -50,7 +73,18 @@ declare global {
|
|
|
50
73
|
* ```
|
|
51
74
|
*/
|
|
52
75
|
declare class QtiItem extends LitElement {
|
|
76
|
+
computedContext: ComputedItemContext;
|
|
77
|
+
private _qtiAssessmentItem?;
|
|
78
|
+
private _onItemContextChanged;
|
|
79
|
+
private _onAssessmentItemConnected;
|
|
80
|
+
private _onHandleTestShowCorrectResponse;
|
|
81
|
+
constructor();
|
|
82
|
+
private _handleItemContextChanged;
|
|
83
|
+
private _handleAssessmentItemConnected;
|
|
84
|
+
private _handleTestShowCorrectResponse;
|
|
85
|
+
private _updateItemVariablesInTestContext;
|
|
53
86
|
render(): lit_html.TemplateResult<1>;
|
|
87
|
+
disconnectedCallback(): void;
|
|
54
88
|
}
|
|
55
89
|
declare global {
|
|
56
90
|
interface HTMLElementTagNameMap {
|
|
@@ -58,4 +92,4 @@ declare global {
|
|
|
58
92
|
}
|
|
59
93
|
}
|
|
60
94
|
|
|
61
|
-
export { ItemContainer, QtiItem };
|
|
95
|
+
export { ItemContainer, ItemShowCorrectResponse, PrintItemVariables, QtiItem };
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ItemContainer,
|
|
3
|
+
ItemShowCorrectResponse,
|
|
4
|
+
PrintItemVariables,
|
|
3
5
|
QtiItem
|
|
4
|
-
} from "../../chunks/chunk-
|
|
6
|
+
} from "../../chunks/chunk-7YUCREDM.js";
|
|
5
7
|
import "../../chunks/chunk-ELDMXTUQ.js";
|
|
6
8
|
import "../../chunks/chunk-XDMSEAYC.js";
|
|
9
|
+
import "../../chunks/chunk-TYV2BDMU.js";
|
|
7
10
|
import "../../chunks/chunk-H2JE6IVU.js";
|
|
8
11
|
export {
|
|
9
12
|
ItemContainer,
|
|
13
|
+
ItemShowCorrectResponse,
|
|
14
|
+
PrintItemVariables,
|
|
10
15
|
QtiItem
|
|
11
16
|
};
|
|
12
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Q as QtiAssessmentItem } from '../qti-response-declaration-
|
|
1
|
+
import { Q as QtiAssessmentItem } from '../qti-response-declaration-DZzGH8xM.js';
|
|
2
2
|
import 'lit-html';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import '../exports/expression-result.js';
|
|
5
5
|
import '../variables-D70AFbp2.js';
|
|
6
|
+
import '../exports/item.context.js';
|
|
6
7
|
import '../exports/interaction.interface.js';
|
|
7
8
|
import '../exports/interaction.js';
|
|
8
|
-
import '../exports/item.context.js';
|
|
9
9
|
import 'lit-html/directives/ref.js';
|
|
10
10
|
import '../exports/qti-expression.js';
|
|
11
11
|
|