@citolab/qti-components 10.0.0-next.11 → 10.0.0-next.13
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 +227 -176
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/{chunk-YOCOLMGB.js → chunk-AKX4YMWU.js} +2 -2
- package/dist/chunk-DVLSXMXD.js +7 -0
- package/dist/chunk-DVLSXMXD.js.map +1 -0
- package/dist/{chunk-N2CTFOIK.js → chunk-EIBGCCXH.js} +2 -2
- package/dist/{chunk-RWMY7KRT.js → chunk-FLAD6SC6.js} +2 -2
- package/dist/{chunk-AVZRY5SQ.js → chunk-G6LTYTJR.js} +2 -2
- package/dist/{chunk-454ZDSKX.js → chunk-H3GITIPE.js} +36 -15
- package/dist/chunk-H3GITIPE.js.map +1 -0
- package/dist/{chunk-O76BOKAP.js → chunk-HOGJ5ZNW.js} +8 -6
- package/dist/{chunk-O76BOKAP.js.map → chunk-HOGJ5ZNW.js.map} +1 -1
- package/dist/{chunk-AJ5U5KXR.js → chunk-K4WLYVDT.js} +2 -2
- package/dist/{chunk-LCGPLQLE.js → chunk-MDBNEEPH.js} +2 -2
- package/dist/{chunk-M7X6TWSX.js → chunk-PHRHLDQB.js} +2 -2
- package/dist/{chunk-XXJAE6AP.js → chunk-PYHKCIYN.js} +3 -3
- package/dist/{chunk-T7YSBBAA.js → chunk-WUIA4OOX.js} +1 -1
- package/dist/chunk-WUIA4OOX.js.map +1 -0
- package/dist/{chunk-KYNLY2ET.js → chunk-Y5DZTCDP.js} +183 -105
- package/dist/chunk-Y5DZTCDP.js.map +1 -0
- package/dist/{config.context.d-BvU9r-Mg.d.ts → config.context.d-BniMHSBB.d.ts} +3 -2
- package/dist/corrections.d.ts +16 -6
- package/dist/corrections.js +8 -8
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +15 -13
- package/dist/interactions.d.ts +4 -4
- package/dist/interactions.js +3 -3
- package/dist/item.css +36 -16
- package/dist/item.d.ts +2 -2
- package/dist/item.js +4 -4
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +78 -11
- package/dist/{qti-item.d-B1gffYCL.d.ts → qti-item.d-BqWYBdV2.d.ts} +1 -1
- package/dist/{qti-test.d-D5C7W8Lg.d.ts → qti-test.d-B6AGSQlk.d.ts} +29 -3
- package/dist/{qti-text-entry-interaction.d-CU-fAAD1.d.ts → qti-text-entry-interaction.d-B44Z3qUG.d.ts} +6 -4
- package/dist/{record.d-wB9uYs-j.d.ts → record.d-C6m0Y4xr.d.ts} +1 -1
- package/dist/test.d.ts +7 -4
- package/dist/test.js +7 -5
- package/package.json +9 -9
- package/dist/chunk-454ZDSKX.js.map +0 -1
- package/dist/chunk-KYNLY2ET.js.map +0 -1
- package/dist/chunk-T7YSBBAA.js.map +0 -1
- package/dist/chunk-YKXVAXSI.js +0 -7
- package/dist/chunk-YKXVAXSI.js.map +0 -1
- /package/dist/{chunk-YOCOLMGB.js.map → chunk-AKX4YMWU.js.map} +0 -0
- /package/dist/{chunk-N2CTFOIK.js.map → chunk-EIBGCCXH.js.map} +0 -0
- /package/dist/{chunk-RWMY7KRT.js.map → chunk-FLAD6SC6.js.map} +0 -0
- /package/dist/{chunk-AVZRY5SQ.js.map → chunk-G6LTYTJR.js.map} +0 -0
- /package/dist/{chunk-AJ5U5KXR.js.map → chunk-K4WLYVDT.js.map} +0 -0
- /package/dist/{chunk-LCGPLQLE.js.map → chunk-MDBNEEPH.js.map} +0 -0
- /package/dist/{chunk-M7X6TWSX.js.map → chunk-PHRHLDQB.js.map} +0 -0
- /package/dist/{chunk-XXJAE6AP.js.map → chunk-PYHKCIYN.js.map} +0 -0
|
@@ -77,8 +77,9 @@ interface ConfigContext {
|
|
|
77
77
|
*/
|
|
78
78
|
inlineChoicePrompt?: string;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
80
|
+
* The inline choice interaction measures the widest option and sizes the trigger to match, so
|
|
81
|
+
* choosing an option never changes the field's width. Defaults to true; set false to size the
|
|
82
|
+
* field to the option shown.
|
|
82
83
|
* When a `qti-input-width-*` class is present on the interaction, that class width always takes
|
|
83
84
|
* precedence and autosizing is skipped regardless of this setting.
|
|
84
85
|
*/
|
package/dist/corrections.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { I as Interaction } from './record.d-
|
|
1
|
+
import { I as Interaction } from './record.d-C6m0Y4xr.js';
|
|
2
2
|
import { R as ResponseValue } from './response.d-_8y4kjGP.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
|
-
import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, C as Choice, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-
|
|
5
|
+
import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, C as Choice, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-B44Z3qUG.js';
|
|
6
6
|
import { QtiAssessmentItem } from './elements.js';
|
|
7
|
-
import { Q as QtiItem } from './qti-item.d-
|
|
7
|
+
import { Q as QtiItem } from './qti-item.d-BqWYBdV2.js';
|
|
8
8
|
import { V as View, C as ComputedItemContext } from './session.context.d-DW09Lrie.js';
|
|
9
|
-
import { l as QtiTest, q as TestCheckItem, v as TestNavigation } from './qti-test.d-
|
|
9
|
+
import { l as QtiTest, q as TestCheckItem, v as TestNavigation } from './qti-test.d-B6AGSQlk.js';
|
|
10
10
|
import { a as ComputedItem, C as ComputedContext } from './computed.types.d-IXACuBr7.js';
|
|
11
|
-
import './config.context.d-
|
|
11
|
+
import './config.context.d-BniMHSBB.js';
|
|
12
12
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
13
13
|
import './item.types.d-DuVR0ZVK.js';
|
|
14
14
|
import './qti.context.d-CejJMlfZ.js';
|
|
@@ -241,12 +241,22 @@ declare global {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
*
|
|
244
|
+
* A button that shows and hides the correct response of the active item. Put it inside
|
|
245
|
+
* `<test-navigation>`: it reads the active item from there, and it is disabled when that item
|
|
246
|
+
* declares no correct response or mapping. It switches back to "show" when the candidate moves on.
|
|
247
|
+
*
|
|
248
|
+
* Needs the corrections build (`@citolab/qti-components/corrections`), whose `<test-navigation>`
|
|
249
|
+
* passes the request to the active item's `showCorrectResponse(show)`.
|
|
250
|
+
*
|
|
251
|
+
* @customElement test-show-correct-response
|
|
252
|
+
* @fires test-show-correct-response - `detail` is `true` to show the correct response, `false` to hide it.
|
|
245
253
|
*/
|
|
246
254
|
declare class TestShowCorrectResponse extends LitElement {
|
|
247
255
|
#private;
|
|
248
256
|
computedContext?: ComputedContext;
|
|
249
257
|
static styles: lit.CSSResult;
|
|
258
|
+
constructor();
|
|
259
|
+
connectedCallback(): void;
|
|
250
260
|
shown: boolean;
|
|
251
261
|
disabled: boolean;
|
|
252
262
|
showCorrectText: string;
|
package/dist/corrections.js
CHANGED
|
@@ -34,28 +34,28 @@ import {
|
|
|
34
34
|
TestNavigationCorrection,
|
|
35
35
|
TestShowCorrectResponse,
|
|
36
36
|
correctionPart
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-H3GITIPE.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Y5DZTCDP.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AKX4YMWU.js";
|
|
44
44
|
import {
|
|
45
45
|
qtiInteractionElements
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-HOGJ5ZNW.js";
|
|
47
47
|
import {
|
|
48
48
|
qtiItemElements
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-PYHKCIYN.js";
|
|
50
|
+
import "./chunk-DVLSXMXD.js";
|
|
51
51
|
import "./chunk-4DB4SC5K.js";
|
|
52
52
|
import "./chunk-TLAVOBEM.js";
|
|
53
53
|
import {
|
|
54
54
|
qtiProcessingElements
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-MDBNEEPH.js";
|
|
56
56
|
import {
|
|
57
57
|
qtiBaseElements
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-WUIA4OOX.js";
|
|
59
59
|
|
|
60
60
|
// ../qti-corrections/dist/elements.js
|
|
61
61
|
var qtiCorrectionElements = [
|
package/dist/elements.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-FLAD6SC6.js";
|
|
2
2
|
import {
|
|
3
3
|
PUBLIC_ITEM_EVENTS,
|
|
4
4
|
QtiAssessmentItem,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
dispatchPublic,
|
|
26
26
|
listenDeclared,
|
|
27
27
|
listenPublic
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AKX4YMWU.js";
|
|
29
29
|
import "./chunk-4DB4SC5K.js";
|
|
30
30
|
import "./chunk-TLAVOBEM.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-WUIA4OOX.js";
|
|
32
32
|
export {
|
|
33
33
|
PUBLIC_ITEM_EVENTS,
|
|
34
34
|
QtiAssessmentItem,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestBookmark, q as TestCheckItem, r as TestContainer, s as TestEndAttempt, t as TestItemLink, u as TestItemToSpeech, v as TestNavigation, w as TestNext, x as TestPrev, y as TestPrintContext, z as
|
|
1
|
+
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestBookmark, q as TestCheckItem, r as TestContainer, s as TestEndAttempt, t as TestItemLink, u as TestItemToSpeech, v as TestNavigation, w as TestNext, x as TestPrev, y as TestPrintContext, z as TestPrintState, A as TestPrintVariables, B as TestScoringButtons, C as TestScoringFeedback, D as TestSectionLink, E as TestStamp, F as TestSubmit, G as TestTtsNext, H as TestTtsPause, J as TestTtsPick, K as TestTtsPlay, L as TestTtsPrev, M as TestTtsResume, N as TestTtsStop, O as TestView, P as TestViewToggle, R as bookmarkedItems } from './qti-test.d-B6AGSQlk.js';
|
|
2
2
|
export { IMyQtiTest, IQtiTest, ITestProcessingMixin, QTI_TEST_STATE_VERSION, QtiTestPluginState, QtiTestState, QtiTestStateItem, QtiTestStateSession, QtiTestStateValue, pluginElements, pluginState, ttsElements } from './test.js';
|
|
3
|
-
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-
|
|
3
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-BqWYBdV2.js';
|
|
4
4
|
export { ItemViewMixin } from './item.js';
|
|
5
5
|
export { PUBLIC_ITEM_EVENTS, PublicEventDeclaration, PublicItemEventMap, PublicItemEventName, QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing, RubricPlacement, dispatchDeclared, dispatchPublic, listenDeclared, listenPublic } from './elements.js';
|
|
6
6
|
export { QtiCustomInteraction, QtiEndAttemptInteraction, QtiMediaInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiUploadInteraction, qtiInteractionElements } from './interactions.js';
|
|
7
|
-
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-
|
|
7
|
+
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-B44Z3qUG.js';
|
|
8
8
|
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-BL7GGFJj.js';
|
|
9
9
|
export { qtiTransformManifest } from './transformers.js';
|
|
10
10
|
export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
|
|
11
11
|
export { CustomOperator, CustomOperatorValue, CustomStateSetShim, CustomStateSupport, IsNullOrUndefined, ScoringHelper, boxSizing, classifyCustomStateSupport, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, getCustomOperator, installCustomStateSetFallback, itemContext, registerCustomOperator, removeDoubleSlashes, unregisterCustomOperator, validationMessage } from './base.js';
|
|
12
12
|
export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-DW09Lrie.js';
|
|
13
13
|
export { C as ComputedContext, a as ComputedItem } from './computed.types.d-IXACuBr7.js';
|
|
14
|
-
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-
|
|
15
|
-
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, i as inferRecordFieldBaseType, c as interactionContext, d as isRecordValue, r as readRecordFieldValues } from './record.d-
|
|
14
|
+
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BniMHSBB.js';
|
|
15
|
+
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, i as inferRecordFieldBaseType, c as interactionContext, d as isRecordValue, r as readRecordFieldValues } from './record.d-C6m0Y4xr.js';
|
|
16
16
|
export { B as BaseType, C as Calculate, a as Cardinality, I as InterpolationTableEntry, b as ItemContext, M as Multiple, O as Ordered, c as OutcomeVariable, Q as QtiAreaMapEntry, d as QtiAreaMapping, e as QtiMapEntry, f as QtiMapping, R as ResponseInteraction, g as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, h as VariableValue, i as areaShape, j as directedPair, k as float, l as integer, m as itemContextVariables } from './item.types.d-DuVR0ZVK.js';
|
|
17
17
|
export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
18
18
|
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-B-Cfbqlb.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-EIBGCCXH.js";
|
|
2
2
|
import {
|
|
3
3
|
CandidateCorrectionMixin,
|
|
4
4
|
ChoiceCorrectionMixin,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
TestNavigationCorrection,
|
|
36
36
|
TestShowCorrectResponse,
|
|
37
37
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-H3GITIPE.js";
|
|
39
39
|
import {
|
|
40
40
|
QTI_TEST_STATE_VERSION,
|
|
41
41
|
QtiAssessmentItemRef,
|
|
@@ -63,6 +63,7 @@ import {
|
|
|
63
63
|
TestNext,
|
|
64
64
|
TestPrev,
|
|
65
65
|
TestPrintContext,
|
|
66
|
+
TestPrintState,
|
|
66
67
|
TestPrintVariables,
|
|
67
68
|
TestScoringButtons,
|
|
68
69
|
TestScoringFeedback,
|
|
@@ -82,8 +83,8 @@ import {
|
|
|
82
83
|
pluginElements,
|
|
83
84
|
pluginState,
|
|
84
85
|
ttsElements
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import "./chunk-
|
|
86
|
+
} from "./chunk-Y5DZTCDP.js";
|
|
87
|
+
import "./chunk-FLAD6SC6.js";
|
|
87
88
|
import {
|
|
88
89
|
PUBLIC_ITEM_EVENTS,
|
|
89
90
|
QtiAssessmentItem,
|
|
@@ -110,8 +111,8 @@ import {
|
|
|
110
111
|
dispatchPublic,
|
|
111
112
|
listenDeclared,
|
|
112
113
|
listenPublic
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import "./chunk-
|
|
114
|
+
} from "./chunk-AKX4YMWU.js";
|
|
115
|
+
import "./chunk-K4WLYVDT.js";
|
|
115
116
|
import {
|
|
116
117
|
QtiAssociableHotspot,
|
|
117
118
|
QtiAssociateInteraction,
|
|
@@ -148,15 +149,15 @@ import {
|
|
|
148
149
|
inlineScriptText,
|
|
149
150
|
inlineStyleText,
|
|
150
151
|
qtiInteractionElements
|
|
151
|
-
} from "./chunk-
|
|
152
|
-
import "./chunk-
|
|
152
|
+
} from "./chunk-HOGJ5ZNW.js";
|
|
153
|
+
import "./chunk-G6LTYTJR.js";
|
|
153
154
|
import {
|
|
154
155
|
ItemContainer,
|
|
155
156
|
ItemPrintVariables,
|
|
156
157
|
ItemViewMixin,
|
|
157
158
|
QtiItem
|
|
158
|
-
} from "./chunk-
|
|
159
|
-
import "./chunk-
|
|
159
|
+
} from "./chunk-PYHKCIYN.js";
|
|
160
|
+
import "./chunk-DVLSXMXD.js";
|
|
160
161
|
import "./chunk-4DB4SC5K.js";
|
|
161
162
|
import {
|
|
162
163
|
getItemByUri,
|
|
@@ -167,7 +168,7 @@ import {
|
|
|
167
168
|
qtiTransformManifest,
|
|
168
169
|
qtiTransformTest
|
|
169
170
|
} from "./chunk-TLAVOBEM.js";
|
|
170
|
-
import "./chunk-
|
|
171
|
+
import "./chunk-PHRHLDQB.js";
|
|
171
172
|
import {
|
|
172
173
|
QtiAnd,
|
|
173
174
|
QtiAnyN,
|
|
@@ -245,7 +246,7 @@ import {
|
|
|
245
246
|
QtiVariable,
|
|
246
247
|
qtiAndMixin,
|
|
247
248
|
qtiSubtractMixin
|
|
248
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-MDBNEEPH.js";
|
|
249
250
|
import {
|
|
250
251
|
CustomStateSetShim,
|
|
251
252
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -293,7 +294,7 @@ import {
|
|
|
293
294
|
testContext,
|
|
294
295
|
unregisterCustomOperator,
|
|
295
296
|
validationMessage
|
|
296
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-WUIA4OOX.js";
|
|
297
298
|
export {
|
|
298
299
|
CandidateCorrectionMixin,
|
|
299
300
|
ChoiceCorrectionMixin,
|
|
@@ -498,6 +499,7 @@ export {
|
|
|
498
499
|
TestNext,
|
|
499
500
|
TestPrev,
|
|
500
501
|
TestPrintContext,
|
|
502
|
+
TestPrintState,
|
|
501
503
|
TestPrintVariables,
|
|
502
504
|
TestScoringButtons,
|
|
503
505
|
TestScoringFeedback,
|
package/dist/interactions.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, B as QtiPortableCustomInteractionTest, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction, Q as QtiAssociableHotspot, d as QtiGap, e as QtiGapImg, g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, o as QtiInlineChoice, t as QtiPrompt, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice } from './qti-text-entry-interaction.d-
|
|
2
|
-
export { O as Orientation, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-
|
|
1
|
+
import { a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, B as QtiPortableCustomInteractionTest, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction, Q as QtiAssociableHotspot, d as QtiGap, e as QtiGapImg, g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, o as QtiInlineChoice, t as QtiPrompt, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice } from './qti-text-entry-interaction.d-B44Z3qUG.js';
|
|
2
|
+
export { O as Orientation, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-B44Z3qUG.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { CSSResultGroup, LitElement, PropertyValueMap } from 'lit';
|
|
5
|
-
import { I as Interaction } from './record.d-
|
|
5
|
+
import { I as Interaction } from './record.d-C6m0Y4xr.js';
|
|
6
6
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
7
|
-
import './config.context.d-
|
|
7
|
+
import './config.context.d-BniMHSBB.js';
|
|
8
8
|
import './item.types.d-DuVR0ZVK.js';
|
|
9
9
|
import './qti.context.d-CejJMlfZ.js';
|
|
10
10
|
import 'lit/directives/ref.js';
|
package/dist/interactions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-K4WLYVDT.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssociableHotspot,
|
|
4
4
|
QtiAssociateInteraction,
|
|
@@ -35,9 +35,9 @@ import {
|
|
|
35
35
|
inlineScriptText,
|
|
36
36
|
inlineStyleText,
|
|
37
37
|
qtiInteractionElements
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HOGJ5ZNW.js";
|
|
39
39
|
import "./chunk-4DB4SC5K.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-WUIA4OOX.js";
|
|
41
41
|
export {
|
|
42
42
|
QtiAssociableHotspot,
|
|
43
43
|
QtiAssociateInteraction,
|
package/dist/item.css
CHANGED
|
@@ -1452,6 +1452,9 @@
|
|
|
1452
1452
|
@layer qti-base{
|
|
1453
1453
|
|
|
1454
1454
|
.qti-layout-row {
|
|
1455
|
+
/* The columns stack when the row is narrow, not the viewport: an item in a side-by-side player or a
|
|
1456
|
+
* narrow pane collapses too. The row is the container, so it is never shrink-to-fit (width: 100%). */
|
|
1457
|
+
container-type: inline-size;
|
|
1455
1458
|
display: flex;
|
|
1456
1459
|
flex-wrap: wrap;
|
|
1457
1460
|
width: 100%;
|
|
@@ -1563,7 +1566,7 @@
|
|
|
1563
1566
|
margin-left: 93.6170212766%;
|
|
1564
1567
|
}
|
|
1565
1568
|
|
|
1566
|
-
@
|
|
1569
|
+
@container (width <= 767px) {
|
|
1567
1570
|
[class*='qti-layout-col'] {
|
|
1568
1571
|
width: 100%;
|
|
1569
1572
|
}
|
|
@@ -1579,7 +1582,7 @@
|
|
|
1579
1582
|
* not worth the file count.
|
|
1580
1583
|
*
|
|
1581
1584
|
* `interactions.brand` and `overrides` hold nothing here ON PURPOSE — they are the extension points
|
|
1582
|
-
* a brand sheet writes into (
|
|
1585
|
+
* a brand sheet writes into (a host's own brand CSS; the Storybook presets need none, being tokens).
|
|
1583
1586
|
* They must stay DECLARED even while empty: a layer first created by a consumer's own `@layer`
|
|
1584
1587
|
* block is appended after every declared layer, which would put brand paint above the state and
|
|
1585
1588
|
* correction paint it is meant to sit under. Deleting the two names moved 7 of the 17 VRT baselines.
|
|
@@ -1962,8 +1965,8 @@
|
|
|
1962
1965
|
* THE body text colour — the foreground half of the --qti-bg / --qti-fg pair.
|
|
1963
1966
|
*
|
|
1964
1967
|
* `inherit`, deliberately: the base theme does not impose a text colour. What a candidate reads
|
|
1965
|
-
* is the host page's, and a brand that wants its own sets this token
|
|
1966
|
-
* #3e144e). A base theme that cannot pick the colour also cannot pick a failing one.
|
|
1968
|
+
* is the host page's, and a brand that wants its own sets this token, or paints the page in its
|
|
1969
|
+
* base-content colour as the Storybook presets do (Kennisnet's #3e144e reaches the text that way). A base theme that cannot pick the colour also cannot pick a failing one.
|
|
1967
1970
|
*
|
|
1968
1971
|
* This is a FIX that changes nothing, which is the point. It read `var(#aaaaaa)` — a value
|
|
1969
1972
|
* wrapped in var() by mistake in 925bdf14. var() takes a custom-property name, so `#aaaaaa` made
|
|
@@ -1989,7 +1992,7 @@
|
|
|
1989
1992
|
* meet the 3:1 WCAG asks of a field's edge. It was the primary colour, which drew every field,
|
|
1990
1993
|
* table and drop in the brand's blue at rest; the primary now marks only what is active or
|
|
1991
1994
|
* selected (--qti-border-active). A brand that wants its colour on every edge sets this token,
|
|
1992
|
-
* as
|
|
1995
|
+
* as the Kennisnet preset does.
|
|
1993
1996
|
*/
|
|
1994
1997
|
--qti-border-color: var(
|
|
1995
1998
|
--cito-color-border,
|
|
@@ -2003,10 +2006,11 @@
|
|
|
2003
2006
|
without the theme a well got its padding and nothing else. Filled from the theme's own
|
|
2004
2007
|
tokens: a brand that restyles its borders restyles the well and the bordered box with them.
|
|
2005
2008
|
A well is a tinted surface inside the theme's border (§1.1.6.2: border plus background, the
|
|
2006
|
-
background chosen by the platform); base-200 is the theme's tint for that
|
|
2009
|
+
background chosen by the platform); base-200 is the theme's tint for that, and a brand that
|
|
2010
|
+
puts its items on a coloured page sets --cito-color-well (Kennisnet: white, like its cards). */
|
|
2007
2011
|
--table-border-color: var(--qti-border-color);
|
|
2008
2012
|
--foreground: var(--qti-color-base-content);
|
|
2009
|
-
--well-bg: var(--qti-color-base-200);
|
|
2013
|
+
--well-bg: var(--cito-color-well, var(--qti-color-base-200)); /* t1 input: --cito-color-well, optional */
|
|
2010
2014
|
--well-border: var(--qti-border);
|
|
2011
2015
|
--well-box-shadow: none;
|
|
2012
2016
|
|
|
@@ -2047,14 +2051,19 @@
|
|
|
2047
2051
|
* Depth, worked out from --cito-depth (tier 1).
|
|
2048
2052
|
*
|
|
2049
2053
|
* --qti-drag-lift a chip at rest: a hard shadow under it, as tall as two borders. At
|
|
2050
|
-
* depth 0 its colour mixes to nothing, so the chip is flat.
|
|
2054
|
+
* depth 0 its colour mixes to nothing, so the chip is flat. A theme sets
|
|
2055
|
+
* its own with --cito-shadow-chip (Kennisnet: a taller lift in its brand
|
|
2056
|
+
* colour).
|
|
2051
2057
|
* --qti-drag-elevation a chip in flight, at any depth: picked up is always off the page. A
|
|
2052
2058
|
* theme sets its own with --cito-shadow-drag (`none` for flat).
|
|
2053
2059
|
* --qti-hover-mix how much base-content a hover mixes into a fill.
|
|
2054
2060
|
* --qti-active-mix how much a press mixes in: twice the hover, so a press reads as one.
|
|
2055
2061
|
*/
|
|
2056
|
-
--qti-drag-lift:
|
|
2057
|
-
|
|
2062
|
+
--qti-drag-lift: var(
|
|
2063
|
+
--cito-shadow-chip,
|
|
2064
|
+
0 calc(2 * var(--qti-border-width)) 0
|
|
2065
|
+
color-mix(in oklab, var(--qti-color-base-content) calc(var(--qti-depth) * 20%), transparent)
|
|
2066
|
+
); /* t1 input: --cito-shadow-chip, optional */
|
|
2058
2067
|
--qti-drag-elevation: var(
|
|
2059
2068
|
--cito-shadow-drag,
|
|
2060
2069
|
0 var(--qti-spacing) calc(var(--qti-spacing) * 1.5)
|
|
@@ -2067,6 +2076,14 @@
|
|
|
2067
2076
|
/* A chip's resting fill: the tier-1 chip colour. `press` reads --qti-<role>-fill, so a pressed
|
|
2068
2077
|
chip darkens from the chip colour; other roles fall back to the component surface. */
|
|
2069
2078
|
--qti-drag-fill: var(--qti-color-chip);
|
|
2079
|
+
/* An order interaction's PLACED chip, when a brand gives it a look of its own: Kennisnet inverts
|
|
2080
|
+
it (a white chip with dark text and a border on its filled bank) so a dropped answer reads as
|
|
2081
|
+
settled. Optional and unset by default — then a placed order chip is the same chip as in the
|
|
2082
|
+
bank. Unset, these compute to the guaranteed-invalid value, and the role slots they feed fall
|
|
2083
|
+
back to the chip's own look. */
|
|
2084
|
+
--qti-order-placed-fill: var(--cito-color-order-placed); /* t1 input, optional */
|
|
2085
|
+
--qti-order-placed-color: var(--cito-color-order-placed-content); /* t1 input, optional */
|
|
2086
|
+
--qti-order-placed-border-color: var(--cito-color-order-placed-border); /* t1 input, optional */
|
|
2070
2087
|
--qti-active-mix: 16%; /* a press: the same mix, twice as far */
|
|
2071
2088
|
|
|
2072
2089
|
/* Interaction icon masks. Kept in the QTI namespace so the theme has no FontAwesome runtime
|
|
@@ -5706,7 +5723,8 @@
|
|
|
5706
5723
|
outline-offset: var(--qti-focus-offset);
|
|
5707
5724
|
}
|
|
5708
5725
|
/* A placed chip, and the editor's fake-drag projected into the drop-target shadow. Its hover,
|
|
5709
|
-
and ring are in the states layer below.
|
|
5726
|
+
and ring are in the states layer below. The three --drag-* slots take a brand's placed-chip
|
|
5727
|
+
look (--cito-color-order-placed*); unset, they are invalid and the chip keeps its own. */
|
|
5710
5728
|
qti-order-interaction::part(drag) {
|
|
5711
5729
|
/* Structural — the load-bearing box, never state-switched (layout-invariance contract).
|
|
5712
5730
|
box-sizing is deliberate: the clone is appended to document.body outside reset.css's
|
|
@@ -5768,6 +5786,9 @@
|
|
|
5768
5786
|
card; the width stays, so a chip keeps its size whichever edge it shows. */
|
|
5769
5787
|
border-color: var(--drag-border-color, var(--cito-color-chip-border, var(--qti-component-border-color)));
|
|
5770
5788
|
color: var(--drag-color, var(--cito-color-chip-content, inherit));
|
|
5789
|
+
--drag-background-color: var(--qti-order-placed-fill);
|
|
5790
|
+
--drag-color: var(--qti-order-placed-color);
|
|
5791
|
+
--drag-border-color: var(--qti-order-placed-border-color);
|
|
5771
5792
|
}
|
|
5772
5793
|
/* The drag's box — flex, centred, clipped — is in qti-order-interaction.styles.ts. */
|
|
5773
5794
|
qti-order-interaction::part(drag) {
|
|
@@ -5860,11 +5881,10 @@
|
|
|
5860
5881
|
|
|
5861
5882
|
/* `align-self` on a populated drop, and the drops' and drag's `overflow: visible` that let a
|
|
5862
5883
|
chip's shadow escape its column, are laid out in qti-order-interaction.styles.ts. */
|
|
5863
|
-
/* The placed order chip's INVERTED look (white fill, dark text,
|
|
5864
|
-
Kennisnet
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
like every other chip. */
|
|
5884
|
+
/* The placed order chip's INVERTED look (white fill, dark text, a border) is a brand choice —
|
|
5885
|
+
Kennisnet's — made through the --cito-color-order-placed* inputs on ::part(drag) above. In the
|
|
5886
|
+
base theme a placed chip is just the neutral chip (@mixin drag), and its corrections route
|
|
5887
|
+
through --drag-* like every other chip. */
|
|
5868
5888
|
qti-order-interaction qti-simple-choice {
|
|
5869
5889
|
/* Structural — the load-bearing box, never state-switched (layout-invariance contract).
|
|
5870
5890
|
box-sizing is deliberate: the clone is appended to document.body outside reset.css's
|
package/dist/item.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-BqWYBdV2.js';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
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
|
-
import './config.context.d-
|
|
6
|
+
import './config.context.d-BniMHSBB.js';
|
|
7
7
|
import './item.types.d-DuVR0ZVK.js';
|
|
8
8
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
9
9
|
import './qti-feedback.d-DbzPSJuK.js';
|
package/dist/item.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-G6LTYTJR.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-PYHKCIYN.js";
|
|
8
|
+
import "./chunk-DVLSXMXD.js";
|
|
9
9
|
import "./chunk-4DB4SC5K.js";
|
|
10
10
|
import "./chunk-TLAVOBEM.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-WUIA4OOX.js";
|
|
12
12
|
export {
|
|
13
13
|
ItemContainer,
|
|
14
14
|
ItemPrintVariables,
|
package/dist/processing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-PHRHLDQB.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-MDBNEEPH.js";
|
|
80
|
+
import "./chunk-WUIA4OOX.js";
|
|
81
81
|
export {
|
|
82
82
|
QtiAnd,
|
|
83
83
|
QtiAnyN,
|
|
@@ -100,6 +100,7 @@ import type {
|
|
|
100
100
|
TestPrintContext,
|
|
101
101
|
TestPrintVariables,
|
|
102
102
|
formatVariableValue,
|
|
103
|
+
TestPrintState,
|
|
103
104
|
TestScoringButtons,
|
|
104
105
|
TestScoringFeedback,
|
|
105
106
|
TestStamp,
|
|
@@ -4860,6 +4861,15 @@ export type TestPrintVariablesSolidJsProps = {
|
|
|
4860
4861
|
textContent?: string | number | undefined;
|
|
4861
4862
|
};
|
|
4862
4863
|
|
|
4864
|
+
export type TestPrintStateProps = {};
|
|
4865
|
+
|
|
4866
|
+
export type TestPrintStateSolidJsProps = {
|
|
4867
|
+
/** Set the innerHTML of the element */
|
|
4868
|
+
innerHTML?: string | undefined;
|
|
4869
|
+
/** Set the textContent of the element */
|
|
4870
|
+
textContent?: string | number | undefined;
|
|
4871
|
+
};
|
|
4872
|
+
|
|
4863
4873
|
export type TestScoringButtonsProps = {
|
|
4864
4874
|
/** */
|
|
4865
4875
|
view?: TestScoringButtons["view"] | undefined;
|
|
@@ -6638,8 +6648,10 @@ export type TestShowCorrectResponseProps = {
|
|
|
6638
6648
|
| undefined;
|
|
6639
6649
|
/** */
|
|
6640
6650
|
computedContext?: TestShowCorrectResponse["computedContext"] | undefined;
|
|
6641
|
-
|
|
6642
6651
|
/** */
|
|
6652
|
+
role?: TestShowCorrectResponse["role"] | undefined;
|
|
6653
|
+
|
|
6654
|
+
/** `detail` is `true` to show the correct response, `false` to hide it. */
|
|
6643
6655
|
"ontest-show-correct-response"?: ((e: CustomEvent) => void) | undefined;
|
|
6644
6656
|
};
|
|
6645
6657
|
|
|
@@ -6665,6 +6677,8 @@ export type TestShowCorrectResponseSolidJsProps = {
|
|
|
6665
6677
|
| TestShowCorrectResponse["computedContext"]
|
|
6666
6678
|
| undefined;
|
|
6667
6679
|
/** */
|
|
6680
|
+
"prop:role"?: TestShowCorrectResponse["role"] | undefined;
|
|
6681
|
+
/** `detail` is `true` to show the correct response, `false` to hide it. */
|
|
6668
6682
|
"on:test-show-correct-response"?: ((e: CustomEvent) => void) | undefined;
|
|
6669
6683
|
|
|
6670
6684
|
/** Set the innerHTML of the element */
|
|
@@ -8342,8 +8356,10 @@ export type CustomElements = {
|
|
|
8342
8356
|
*
|
|
8343
8357
|
* Methods that can be called to access component functionality.
|
|
8344
8358
|
*
|
|
8345
|
-
* - `shouldAutoSizeMenu() => boolean`: Autosizing is
|
|
8346
|
-
* `qti-input-width-*` class always wins.
|
|
8359
|
+
* - `shouldAutoSizeMenu() => boolean`: Autosizing is on unless a host turns it off (`configContext.inlineChoiceAutosize: false`), and an
|
|
8360
|
+
* explicit `qti-input-width-*` class always wins. On by default because without it the field sizes
|
|
8361
|
+
* to the option shown, so choosing a longer one widened the field and reflowed the sentence around
|
|
8362
|
+
* it: a state that changed layout.
|
|
8347
8363
|
*
|
|
8348
8364
|
* That second check has to live here rather than in CSS: the measurement is written as an inline
|
|
8349
8365
|
* style on the trigger, and the width classes set the same property on `:host`, so the cascade
|
|
@@ -9778,6 +9794,25 @@ export type CustomElements = {
|
|
|
9778
9794
|
TestPrintVariablesProps & BaseProps<TestPrintVariables> & BaseEvents
|
|
9779
9795
|
>;
|
|
9780
9796
|
|
|
9797
|
+
/**
|
|
9798
|
+
* Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
|
|
9799
|
+
* on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
|
|
9800
|
+
*
|
|
9801
|
+
* The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
|
|
9802
|
+
* by it. The element only lays out the tree; give it a font, colour and height from the page.
|
|
9803
|
+
*
|
|
9804
|
+
* ## CSS Parts
|
|
9805
|
+
*
|
|
9806
|
+
* Custom selectors for styling elements within the component.
|
|
9807
|
+
*
|
|
9808
|
+
* - `key`: the name of a field, or the label of a list entry
|
|
9809
|
+
* - `value`: a value that is not an object or a list
|
|
9810
|
+
* - `count`: the number of entries of a folded object or list
|
|
9811
|
+
*/
|
|
9812
|
+
"test-print-state": Partial<
|
|
9813
|
+
TestPrintStateProps & BaseProps<TestPrintState> & BaseEvents
|
|
9814
|
+
>;
|
|
9815
|
+
|
|
9781
9816
|
/**
|
|
9782
9817
|
*
|
|
9783
9818
|
*
|
|
@@ -12296,9 +12331,12 @@ export type CustomElements = {
|
|
|
12296
12331
|
>;
|
|
12297
12332
|
|
|
12298
12333
|
/**
|
|
12299
|
-
*
|
|
12300
|
-
*
|
|
12334
|
+
* A button that shows and hides the correct response of the active item. Put it inside
|
|
12335
|
+
* `<test-navigation>`: it reads the active item from there, and it is disabled when that item
|
|
12336
|
+
* declares no correct response or mapping. It switches back to "show" when the candidate moves on.
|
|
12301
12337
|
*
|
|
12338
|
+
* Needs the corrections build (`@citolab/qti-components/corrections`), whose `<test-navigation>`
|
|
12339
|
+
* passes the request to the active item's `showCorrectResponse(show)`.
|
|
12302
12340
|
*
|
|
12303
12341
|
* ## Attributes & Properties
|
|
12304
12342
|
*
|
|
@@ -12310,12 +12348,13 @@ export type CustomElements = {
|
|
|
12310
12348
|
* - `hideCorrectText`: undefined
|
|
12311
12349
|
* - `noCorrectResponseText`: undefined
|
|
12312
12350
|
* - `computedContext`: undefined (property only)
|
|
12351
|
+
* - `role`: undefined (property only)
|
|
12313
12352
|
*
|
|
12314
12353
|
* ## Events
|
|
12315
12354
|
*
|
|
12316
12355
|
* Events that will be emitted by the component.
|
|
12317
12356
|
*
|
|
12318
|
-
* - `test-show-correct-response`:
|
|
12357
|
+
* - `test-show-correct-response`: `detail` is `true` to show the correct response, `false` to hide it.
|
|
12319
12358
|
*/
|
|
12320
12359
|
"test-show-correct-response": Partial<
|
|
12321
12360
|
TestShowCorrectResponseProps &
|
|
@@ -14109,8 +14148,10 @@ export type CustomElementsSolidJs = {
|
|
|
14109
14148
|
*
|
|
14110
14149
|
* Methods that can be called to access component functionality.
|
|
14111
14150
|
*
|
|
14112
|
-
* - `shouldAutoSizeMenu() => boolean`: Autosizing is
|
|
14113
|
-
* `qti-input-width-*` class always wins.
|
|
14151
|
+
* - `shouldAutoSizeMenu() => boolean`: Autosizing is on unless a host turns it off (`configContext.inlineChoiceAutosize: false`), and an
|
|
14152
|
+
* explicit `qti-input-width-*` class always wins. On by default because without it the field sizes
|
|
14153
|
+
* to the option shown, so choosing a longer one widened the field and reflowed the sentence around
|
|
14154
|
+
* it: a state that changed layout.
|
|
14114
14155
|
*
|
|
14115
14156
|
* That second check has to live here rather than in CSS: the measurement is written as an inline
|
|
14116
14157
|
* style on the trigger, and the width classes set the same property on `:host`, so the cascade
|
|
@@ -15638,6 +15679,28 @@ export type CustomElementsSolidJs = {
|
|
|
15638
15679
|
BaseEvents
|
|
15639
15680
|
>;
|
|
15640
15681
|
|
|
15682
|
+
/**
|
|
15683
|
+
* Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
|
|
15684
|
+
* on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
|
|
15685
|
+
*
|
|
15686
|
+
* The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
|
|
15687
|
+
* by it. The element only lays out the tree; give it a font, colour and height from the page.
|
|
15688
|
+
*
|
|
15689
|
+
* ## CSS Parts
|
|
15690
|
+
*
|
|
15691
|
+
* Custom selectors for styling elements within the component.
|
|
15692
|
+
*
|
|
15693
|
+
* - `key`: the name of a field, or the label of a list entry
|
|
15694
|
+
* - `value`: a value that is not an object or a list
|
|
15695
|
+
* - `count`: the number of entries of a folded object or list
|
|
15696
|
+
*/
|
|
15697
|
+
"test-print-state": Partial<
|
|
15698
|
+
TestPrintStateProps &
|
|
15699
|
+
TestPrintStateSolidJsProps &
|
|
15700
|
+
BaseProps<TestPrintState> &
|
|
15701
|
+
BaseEvents
|
|
15702
|
+
>;
|
|
15703
|
+
|
|
15641
15704
|
/**
|
|
15642
15705
|
*
|
|
15643
15706
|
*
|
|
@@ -18404,9 +18467,12 @@ export type CustomElementsSolidJs = {
|
|
|
18404
18467
|
>;
|
|
18405
18468
|
|
|
18406
18469
|
/**
|
|
18407
|
-
*
|
|
18408
|
-
*
|
|
18470
|
+
* A button that shows and hides the correct response of the active item. Put it inside
|
|
18471
|
+
* `<test-navigation>`: it reads the active item from there, and it is disabled when that item
|
|
18472
|
+
* declares no correct response or mapping. It switches back to "show" when the candidate moves on.
|
|
18409
18473
|
*
|
|
18474
|
+
* Needs the corrections build (`@citolab/qti-components/corrections`), whose `<test-navigation>`
|
|
18475
|
+
* passes the request to the active item's `showCorrectResponse(show)`.
|
|
18410
18476
|
*
|
|
18411
18477
|
* ## Attributes & Properties
|
|
18412
18478
|
*
|
|
@@ -18418,12 +18484,13 @@ export type CustomElementsSolidJs = {
|
|
|
18418
18484
|
* - `hideCorrectText`: undefined
|
|
18419
18485
|
* - `noCorrectResponseText`: undefined
|
|
18420
18486
|
* - `computedContext`: undefined (property only)
|
|
18487
|
+
* - `role`: undefined (property only)
|
|
18421
18488
|
*
|
|
18422
18489
|
* ## Events
|
|
18423
18490
|
*
|
|
18424
18491
|
* Events that will be emitted by the component.
|
|
18425
18492
|
*
|
|
18426
|
-
* - `test-show-correct-response`:
|
|
18493
|
+
* - `test-show-correct-response`: `detail` is `true` to show the correct response, `false` to hide it.
|
|
18427
18494
|
*/
|
|
18428
18495
|
"test-show-correct-response": Partial<
|
|
18429
18496
|
TestShowCorrectResponseProps &
|