@citolab/qti-components 9.4.0 → 10.0.0-next.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 +262 -223
- package/dist/{chunk-XEWGFAS4.js → chunk-AWTQKBC4.js} +66 -26
- package/dist/chunk-AWTQKBC4.js.map +1 -0
- package/dist/{chunk-MSGYZE6L.js → chunk-CNFVA3AA.js} +127 -47
- package/dist/chunk-CNFVA3AA.js.map +1 -0
- package/dist/{chunk-LKHRHFXO.js → chunk-EPSUZIWL.js} +5 -5
- package/dist/{chunk-GNTO3IFM.js → chunk-EUKU5QKV.js} +79 -106
- package/dist/chunk-EUKU5QKV.js.map +1 -0
- package/dist/{chunk-B74SYQB2.js → chunk-F7R7GSWL.js} +2 -2
- package/dist/{chunk-C3JPUV36.js → chunk-GPNWMLLA.js} +2 -2
- package/dist/{chunk-JHPQJDAV.js → chunk-QD3Y6UK3.js} +2 -2
- package/dist/{chunk-B5XHZI2P.js → chunk-SVYHZIJ7.js} +2 -2
- package/dist/{chunk-BMXG7D2N.js → chunk-WNAOVXXN.js} +2 -2
- package/dist/chunk-ZP6QQYSU.js +7 -0
- package/dist/chunk-ZP6QQYSU.js.map +1 -0
- package/dist/corrections.d.ts +2 -2
- package/dist/corrections.js +6 -6
- package/dist/elements.d.ts +64 -2
- package/dist/elements.js +14 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +21 -11
- package/dist/interactions.d.ts +2 -2
- package/dist/interactions.js +2 -2
- package/dist/item.css +11 -0
- package/dist/item.js +3 -3
- package/dist/loader.d.ts +1 -1
- package/dist/qti-components-jsx.d.ts +18 -191
- package/dist/{qti-test.d-Cud5Gvy0.d.ts → qti-test.d-_THYXPzd.d.ts} +5 -7
- package/dist/{qti-text-entry-interaction.d-DKvz9ncv.d.ts → qti-text-entry-interaction.d-q8u5BiVK.d.ts} +11 -2
- package/dist/test.d.ts +2 -2
- package/dist/test.js +4 -4
- package/package.json +8 -8
- package/dist/chunk-A32YH4H5.js +0 -7
- package/dist/chunk-A32YH4H5.js.map +0 -1
- package/dist/chunk-GNTO3IFM.js.map +0 -1
- package/dist/chunk-MSGYZE6L.js.map +0 -1
- package/dist/chunk-XEWGFAS4.js.map +0 -1
- /package/dist/{chunk-LKHRHFXO.js.map → chunk-EPSUZIWL.js.map} +0 -0
- /package/dist/{chunk-B74SYQB2.js.map → chunk-F7R7GSWL.js.map} +0 -0
- /package/dist/{chunk-C3JPUV36.js.map → chunk-GPNWMLLA.js.map} +0 -0
- /package/dist/{chunk-JHPQJDAV.js.map → chunk-QD3Y6UK3.js.map} +0 -0
- /package/dist/{chunk-B5XHZI2P.js.map → chunk-SVYHZIJ7.js.map} +0 -0
- /package/dist/{chunk-BMXG7D2N.js.map → chunk-WNAOVXXN.js.map} +0 -0
package/dist/corrections.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { I as Interaction } from './interaction.d-g6XG0T0Z.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-q8u5BiVK.js';
|
|
6
6
|
import { QtiAssessmentItem } from './elements.js';
|
|
7
7
|
import { Q as QtiItem } from './qti-item.d-DgC1AQbY.js';
|
|
8
8
|
import { V as View, C as ComputedItemContext } from './session.context.d-D5080LVx.js';
|
|
9
|
-
import { i as QtiTest, T as TestCheckItem, r as TestNavigation } from './qti-test.d-
|
|
9
|
+
import { i as QtiTest, T as TestCheckItem, r as TestNavigation } from './qti-test.d-_THYXPzd.js';
|
|
10
10
|
import { a as ComputedItem, C as ComputedContext } from './computed.types.d-gJrBeUMG.js';
|
|
11
11
|
import './config.context.d-BvU9r-Mg.js';
|
|
12
12
|
import './interaction.interface.d-CvjHM2bi.js';
|
package/dist/corrections.js
CHANGED
|
@@ -34,20 +34,20 @@ import {
|
|
|
34
34
|
TestNavigationCorrection,
|
|
35
35
|
TestShowCorrectResponse,
|
|
36
36
|
correctionPart
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-EPSUZIWL.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EUKU5QKV.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AWTQKBC4.js";
|
|
44
44
|
import {
|
|
45
45
|
qtiInteractionElements
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CNFVA3AA.js";
|
|
47
47
|
import {
|
|
48
48
|
qtiItemElements
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-F7R7GSWL.js";
|
|
50
|
+
import "./chunk-ZP6QQYSU.js";
|
|
51
51
|
import "./chunk-4DB4SC5K.js";
|
|
52
52
|
import "./chunk-TLAVOBEM.js";
|
|
53
53
|
import {
|
package/dist/elements.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { b as ItemContext, h as VariableValue, R as ResponseInteraction, g as ResponseVariable, c as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './item.types.d-B55QkJ92.js';
|
|
1
2
|
import * as lit from 'lit';
|
|
2
3
|
import { LitElement, PropertyValues, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
3
|
-
import { b as ItemContext, h as VariableValue, R as ResponseInteraction, g as ResponseVariable, c as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './item.types.d-B55QkJ92.js';
|
|
4
4
|
import { a as RegisteredInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
5
5
|
import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-wMYNVkkj.js';
|
|
6
6
|
import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
|
|
@@ -105,6 +105,12 @@ declare global {
|
|
|
105
105
|
'qti-assessment-item': QtiAssessmentItem;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
+
declare module '../../public-events' {
|
|
109
|
+
interface PublicItemEventMap {
|
|
110
|
+
/** The item rendered: its interactions are in the DOM and its validity is known. */
|
|
111
|
+
'cito-item-rendered': CustomEvent<QtiAssessmentItem>;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
108
114
|
|
|
109
115
|
/**
|
|
110
116
|
* @summary Root of a shared stimulus, placed as a whole wherever the stimulus is rendered.
|
|
@@ -461,4 +467,60 @@ declare global {
|
|
|
461
467
|
}
|
|
462
468
|
}
|
|
463
469
|
|
|
464
|
-
|
|
470
|
+
interface OutcomeChangedDetails {
|
|
471
|
+
item: string;
|
|
472
|
+
outcomeIdentifier: string;
|
|
473
|
+
value: Readonly<string | string[]>;
|
|
474
|
+
}
|
|
475
|
+
type InteractionChangedDetails = ResponseInteraction & {
|
|
476
|
+
item: string;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* The public events of the item. The name tells you it is public: everything declared here starts
|
|
481
|
+
* with `cito-`; every other event is internal plumbing and may change in any release.
|
|
482
|
+
*
|
|
483
|
+
* Requests are verbs, notifications are past tense. All bubble and are composed.
|
|
484
|
+
*
|
|
485
|
+
* `deprecated` is the name the event had before it became public. `dispatchPublic` sends and
|
|
486
|
+
* `listenPublic` handles both until the next major, then the field goes.
|
|
487
|
+
*/
|
|
488
|
+
interface PublicEventDeclaration {
|
|
489
|
+
kind: 'request' | 'notification';
|
|
490
|
+
scope: 'test' | 'item';
|
|
491
|
+
/** The name before it was public. Dispatched and handled alongside the new one. */
|
|
492
|
+
deprecated?: string;
|
|
493
|
+
}
|
|
494
|
+
interface RubricPlacement {
|
|
495
|
+
className: string;
|
|
496
|
+
element: Element;
|
|
497
|
+
}
|
|
498
|
+
interface PublicItemEventMap {
|
|
499
|
+
'cito-item-response-changed': CustomEvent<InteractionChangedDetails>;
|
|
500
|
+
'cito-item-outcome-changed': CustomEvent<OutcomeChangedDetails>;
|
|
501
|
+
/** Cancelable: `preventDefault()` keeps the rubric block where it is. */
|
|
502
|
+
'cito-item-rubric-placement': CustomEvent<RubricPlacement>;
|
|
503
|
+
}
|
|
504
|
+
type PublicItemEventName = keyof PublicItemEventMap;
|
|
505
|
+
declare const PUBLIC_ITEM_EVENTS: Record<PublicItemEventName, PublicEventDeclaration>;
|
|
506
|
+
declare global {
|
|
507
|
+
interface HTMLElementEventMap extends PublicItemEventMap {
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Dispatch `name` and its deprecated name with the same `detail` object, new name first. Returns
|
|
512
|
+
* `false` when a listener of either cancelled the event. The detail is always an object.
|
|
513
|
+
* Shared by the item and test tiers; use `dispatchPublic` (item) or the test's own wrapper.
|
|
514
|
+
*/
|
|
515
|
+
declare function dispatchDeclared(target: EventTarget, declarations: Record<string, PublicEventDeclaration>, name: string, detail: unknown, cancelable?: boolean): boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Listen for `name` and its deprecated name. `dispatchDeclared` sends the old name straight after
|
|
518
|
+
* the new one, synchronously, with the same `detail`: that one is skipped, so the handler runs
|
|
519
|
+
* once. A host that sends only the old name is handled too, and warned once per name in the
|
|
520
|
+
* console: only a sender outside our own components gets here without the new name before it.
|
|
521
|
+
*/
|
|
522
|
+
declare function listenDeclared(target: EventTarget, declarations: Record<string, PublicEventDeclaration>, name: string, handler: (e: Event) => void): void;
|
|
523
|
+
declare function dispatchPublic<K extends PublicItemEventName>(target: EventTarget, name: K, detail: PublicItemEventMap[K] extends CustomEvent<infer D> ? D : never, cancelable?: boolean): boolean;
|
|
524
|
+
declare function listenPublic<K extends PublicItemEventName>(target: EventTarget, name: K, handler: (e: PublicItemEventMap[K]) => void): void;
|
|
525
|
+
|
|
526
|
+
export { PUBLIC_ITEM_EVENTS, type PublicEventDeclaration, type PublicItemEventMap, type PublicItemEventName, QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing, type RubricPlacement, dispatchDeclared, dispatchPublic, listenDeclared, listenPublic };
|
package/dist/elements.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-SVYHZIJ7.js";
|
|
2
2
|
import {
|
|
3
|
+
PUBLIC_ITEM_EVENTS,
|
|
3
4
|
QtiAssessmentItem,
|
|
4
5
|
QtiAssessmentStimulus,
|
|
5
6
|
QtiAssessmentStimulusRef,
|
|
@@ -19,12 +20,17 @@ import {
|
|
|
19
20
|
QtiStylesheet,
|
|
20
21
|
QtiTemplateConstraint,
|
|
21
22
|
QtiTemplateDeclaration,
|
|
22
|
-
QtiTemplateProcessing
|
|
23
|
-
|
|
23
|
+
QtiTemplateProcessing,
|
|
24
|
+
dispatchDeclared,
|
|
25
|
+
dispatchPublic,
|
|
26
|
+
listenDeclared,
|
|
27
|
+
listenPublic
|
|
28
|
+
} from "./chunk-AWTQKBC4.js";
|
|
24
29
|
import "./chunk-4DB4SC5K.js";
|
|
25
30
|
import "./chunk-TLAVOBEM.js";
|
|
26
31
|
import "./chunk-R7MMMDP7.js";
|
|
27
32
|
export {
|
|
33
|
+
PUBLIC_ITEM_EVENTS,
|
|
28
34
|
QtiAssessmentItem,
|
|
29
35
|
QtiAssessmentStimulus,
|
|
30
36
|
QtiAssessmentStimulusRef,
|
|
@@ -44,6 +50,10 @@ export {
|
|
|
44
50
|
QtiStylesheet,
|
|
45
51
|
QtiTemplateConstraint,
|
|
46
52
|
QtiTemplateDeclaration,
|
|
47
|
-
QtiTemplateProcessing
|
|
53
|
+
QtiTemplateProcessing,
|
|
54
|
+
dispatchDeclared,
|
|
55
|
+
dispatchPublic,
|
|
56
|
+
listenDeclared,
|
|
57
|
+
listenPublic
|
|
48
58
|
};
|
|
49
59
|
//# sourceMappingURL=elements.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiItemSessionControl, f as QtiNumberSelected, g as QtiOutcomeProcessing, h as QtiOutcomeProcessingProcessor, i as QtiTest, j as QtiTestFeedback, k as QtiTestPart, l as QtiTestVariables, m as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, n as TestContainer, o as TestEndAttempt, p as TestItemLink, q as TestItemToSpeech, r as TestNavigation, s as TestNext, t as TestPagingButtonsStamp, u as TestPrev, v as TestPrintContext, w as TestPrintVariables, x as TestScoringButtons, y as TestScoringFeedback, z as TestSectionButtonsStamp, A as TestSectionLink, B as TestStamp, C as TestTtsNext, D as TestTtsPause, E as TestTtsPick, F as TestTtsPlay, G as TestTtsPrev, H as TestTtsResume, J as TestTtsStop, K as TestView, L as TestViewToggle, M as TtsContext, N as ttsContext } from './qti-test.d-
|
|
1
|
+
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiItemSessionControl, f as QtiNumberSelected, g as QtiOutcomeProcessing, h as QtiOutcomeProcessingProcessor, i as QtiTest, j as QtiTestFeedback, k as QtiTestPart, l as QtiTestVariables, m as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, n as TestContainer, o as TestEndAttempt, p as TestItemLink, q as TestItemToSpeech, r as TestNavigation, s as TestNext, t as TestPagingButtonsStamp, u as TestPrev, v as TestPrintContext, w as TestPrintVariables, x as TestScoringButtons, y as TestScoringFeedback, z as TestSectionButtonsStamp, A as TestSectionLink, B as TestStamp, C as TestTtsNext, D as TestTtsPause, E as TestTtsPick, F as TestTtsPlay, G as TestTtsPrev, H as TestTtsResume, J as TestTtsStop, K as TestView, L as TestViewToggle, M as TtsContext, N as ttsContext } from './qti-test.d-_THYXPzd.js';
|
|
2
2
|
export { IMyQtiTest, IQtiTest, ITestProcessingMixin, QTI_TEST_STATE_VERSION, QtiTestState, QtiTestStateItem, QtiTestStateSession, QtiTestStateValue } from './test.js';
|
|
3
3
|
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-DgC1AQbY.js';
|
|
4
4
|
export { ItemViewMixin } from './item.js';
|
|
5
|
-
export { QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing } from './elements.js';
|
|
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 } 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 } from './qti-text-entry-interaction.d-q8u5BiVK.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';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-QD3Y6UK3.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-EPSUZIWL.js";
|
|
39
39
|
import {
|
|
40
40
|
QTI_TEST_STATE_VERSION,
|
|
41
41
|
QtiAssessmentItemRef,
|
|
@@ -76,9 +76,10 @@ import {
|
|
|
76
76
|
TestView,
|
|
77
77
|
TestViewToggle,
|
|
78
78
|
ttsContext
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-EUKU5QKV.js";
|
|
80
|
+
import "./chunk-SVYHZIJ7.js";
|
|
81
81
|
import {
|
|
82
|
+
PUBLIC_ITEM_EVENTS,
|
|
82
83
|
QtiAssessmentItem,
|
|
83
84
|
QtiAssessmentStimulus,
|
|
84
85
|
QtiAssessmentStimulusRef,
|
|
@@ -98,9 +99,13 @@ import {
|
|
|
98
99
|
QtiStylesheet,
|
|
99
100
|
QtiTemplateConstraint,
|
|
100
101
|
QtiTemplateDeclaration,
|
|
101
|
-
QtiTemplateProcessing
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
QtiTemplateProcessing,
|
|
103
|
+
dispatchDeclared,
|
|
104
|
+
dispatchPublic,
|
|
105
|
+
listenDeclared,
|
|
106
|
+
listenPublic
|
|
107
|
+
} from "./chunk-AWTQKBC4.js";
|
|
108
|
+
import "./chunk-GPNWMLLA.js";
|
|
104
109
|
import {
|
|
105
110
|
QtiAssociableHotspot,
|
|
106
111
|
QtiAssociateInteraction,
|
|
@@ -135,15 +140,15 @@ import {
|
|
|
135
140
|
QtiTextEntryInteraction,
|
|
136
141
|
QtiUploadInteraction,
|
|
137
142
|
qtiInteractionElements
|
|
138
|
-
} from "./chunk-
|
|
139
|
-
import "./chunk-
|
|
143
|
+
} from "./chunk-CNFVA3AA.js";
|
|
144
|
+
import "./chunk-WNAOVXXN.js";
|
|
140
145
|
import {
|
|
141
146
|
ItemContainer,
|
|
142
147
|
ItemPrintVariables,
|
|
143
148
|
ItemViewMixin,
|
|
144
149
|
QtiItem
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
150
|
+
} from "./chunk-F7R7GSWL.js";
|
|
151
|
+
import "./chunk-ZP6QQYSU.js";
|
|
147
152
|
import "./chunk-4DB4SC5K.js";
|
|
148
153
|
import {
|
|
149
154
|
getItemByUri,
|
|
@@ -294,6 +299,7 @@ export {
|
|
|
294
299
|
ItemShowCandidateCorrection,
|
|
295
300
|
ItemShowCorrectResponse,
|
|
296
301
|
ItemViewMixin,
|
|
302
|
+
PUBLIC_ITEM_EVENTS,
|
|
297
303
|
QTI_TEST_STATE_VERSION,
|
|
298
304
|
QtiAnd,
|
|
299
305
|
QtiAnyN,
|
|
@@ -503,6 +509,8 @@ export {
|
|
|
503
509
|
convertNumberToUniversalFormat,
|
|
504
510
|
correctionPart,
|
|
505
511
|
decimalSeparator,
|
|
512
|
+
dispatchDeclared,
|
|
513
|
+
dispatchPublic,
|
|
506
514
|
dropRegion,
|
|
507
515
|
getCustomOperator,
|
|
508
516
|
getItemByUri,
|
|
@@ -513,6 +521,8 @@ export {
|
|
|
513
521
|
itemContext,
|
|
514
522
|
itemContextVariables,
|
|
515
523
|
iterResponseValues,
|
|
524
|
+
listenDeclared,
|
|
525
|
+
listenPublic,
|
|
516
526
|
parsePair,
|
|
517
527
|
parsePoint,
|
|
518
528
|
parseResponseAttribute,
|
package/dist/interactions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, z 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 } 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, z 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-q8u5BiVK.js';
|
|
2
|
+
export { O as Orientation } from './qti-text-entry-interaction.d-q8u5BiVK.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { CSSResultGroup, LitElement, PropertyValueMap } from 'lit';
|
|
5
5
|
import { I as Interaction } from './interaction.d-g6XG0T0Z.js';
|
package/dist/interactions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-GPNWMLLA.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssociableHotspot,
|
|
4
4
|
QtiAssociateInteraction,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
QtiTextEntryInteraction,
|
|
34
34
|
QtiUploadInteraction,
|
|
35
35
|
qtiInteractionElements
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CNFVA3AA.js";
|
|
37
37
|
import "./chunk-4DB4SC5K.js";
|
|
38
38
|
import "./chunk-R7MMMDP7.js";
|
|
39
39
|
export {
|
package/dist/item.css
CHANGED
|
@@ -2715,6 +2715,17 @@
|
|
|
2715
2715
|
margin: 0;
|
|
2716
2716
|
padding: 0;
|
|
2717
2717
|
}
|
|
2718
|
+
/*
|
|
2719
|
+
* The background graphic narrows with its container; the drop areas are percentages of it
|
|
2720
|
+
* (positionShapes), so they scale along — see qti-graphic-gap-match-interaction.styles.ts.
|
|
2721
|
+
* reset.css gives every picture inside an interaction `max-width: none`, which outranks that
|
|
2722
|
+
* component's ::slotted() rule, so the fluid sizing is restated here for the graphic alone: a
|
|
2723
|
+
* direct child, never a chip's picture, which must keep its size in the bank and the hotspot.
|
|
2724
|
+
*/
|
|
2725
|
+
qti-graphic-gap-match-interaction > img,qti-graphic-gap-match-interaction > object {
|
|
2726
|
+
max-width: 100%;
|
|
2727
|
+
height: auto;
|
|
2728
|
+
}
|
|
2718
2729
|
}
|
|
2719
2730
|
|
|
2720
2731
|
@layer qti-components.interactions.states {
|
package/dist/item.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-WNAOVXXN.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-F7R7GSWL.js";
|
|
8
|
+
import "./chunk-ZP6QQYSU.js";
|
|
9
9
|
import "./chunk-4DB4SC5K.js";
|
|
10
10
|
import "./chunk-TLAVOBEM.js";
|
|
11
11
|
import "./chunk-R7MMMDP7.js";
|
package/dist/loader.d.ts
CHANGED