@citolab/qti-components 9.4.0 → 9.5.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 +290 -243
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/{chunk-3BAQWO5C.js → chunk-6K3QWJHH.js} +2 -2
- package/dist/{chunk-XEWGFAS4.js → chunk-6U3YPHXU.js} +67 -27
- package/dist/chunk-6U3YPHXU.js.map +1 -0
- package/dist/{chunk-MSGYZE6L.js → chunk-DAFB2E5H.js} +123 -47
- package/dist/{chunk-MSGYZE6L.js.map → chunk-DAFB2E5H.js.map} +1 -1
- package/dist/{chunk-BMXG7D2N.js → chunk-FD4AB6TM.js} +2 -2
- package/dist/{chunk-B5XHZI2P.js → chunk-GBZNFSFY.js} +2 -2
- package/dist/{chunk-ACRN7YJM.js → chunk-MI7774NV.js} +2 -2
- package/dist/{chunk-JHPQJDAV.js → chunk-OQDBARD5.js} +2 -2
- package/dist/{chunk-B74SYQB2.js → chunk-RU6332MD.js} +3 -3
- package/dist/{chunk-GNTO3IFM.js → chunk-SIE3E4FG.js} +717 -417
- package/dist/chunk-SIE3E4FG.js.map +1 -0
- package/dist/{chunk-LKHRHFXO.js → chunk-SU63QGGD.js} +6 -6
- package/dist/{chunk-R7MMMDP7.js → chunk-TDWJ6WZA.js} +20 -2
- package/dist/chunk-TDWJ6WZA.js.map +1 -0
- package/dist/{chunk-C3JPUV36.js → chunk-YZRODVYZ.js} +2 -2
- package/dist/chunk-ZP6QQYSU.js +7 -0
- package/dist/chunk-ZP6QQYSU.js.map +1 -0
- package/dist/corrections.d.ts +3 -3
- package/dist/corrections.js +8 -8
- package/dist/elements.d.ts +64 -2
- package/dist/elements.js +15 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +30 -14
- package/dist/interactions.d.ts +2 -2
- package/dist/interactions.js +3 -3
- package/dist/item.css +11 -0
- package/dist/item.js +4 -4
- package/dist/loader.d.ts +1 -1
- package/dist/processing.d.ts +2 -2
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +227 -187
- package/dist/{qti-condition-expression.d-L7yb3Rzy.d.ts → qti-condition-expression.d-VJH6cWxf.d.ts} +1 -1
- package/dist/{qti-expression.d-CuaLjZ6g.d.ts → qti-expression.d-BPxEp8HU.d.ts} +7 -0
- package/dist/{qti-test.d-Cud5Gvy0.d.ts → qti-test.d-86TlaMlI.d.ts} +106 -9
- package/dist/{qti-text-entry-interaction.d-DKvz9ncv.d.ts → qti-text-entry-interaction.d-C4eixT-D.d.ts} +6 -1
- package/dist/test.d.ts +3 -3
- package/dist/test.js +11 -5
- package/package.json +5 -5
- 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-R7MMMDP7.js.map +0 -1
- package/dist/chunk-XEWGFAS4.js.map +0 -1
- /package/dist/{chunk-3BAQWO5C.js.map → chunk-6K3QWJHH.js.map} +0 -0
- /package/dist/{chunk-BMXG7D2N.js.map → chunk-FD4AB6TM.js.map} +0 -0
- /package/dist/{chunk-B5XHZI2P.js.map → chunk-GBZNFSFY.js.map} +0 -0
- /package/dist/{chunk-ACRN7YJM.js.map → chunk-MI7774NV.js.map} +0 -0
- /package/dist/{chunk-JHPQJDAV.js.map → chunk-OQDBARD5.js.map} +0 -0
- /package/dist/{chunk-B74SYQB2.js.map → chunk-RU6332MD.js.map} +0 -0
- /package/dist/{chunk-LKHRHFXO.js.map → chunk-SU63QGGD.js.map} +0 -0
- /package/dist/{chunk-C3JPUV36.js.map → chunk-YZRODVYZ.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-C4eixT-D.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 {
|
|
9
|
+
import { l as QtiTest, T as TestCheckItem, u as TestNavigation } from './qti-test.d-86TlaMlI.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';
|
|
@@ -16,7 +16,7 @@ import 'lit/directives/ref.js';
|
|
|
16
16
|
import './qti-feedback.d-wMYNVkkj.js';
|
|
17
17
|
import './qti-rule-base.d-Bdzg8eGH.js';
|
|
18
18
|
import './qti-transform-test.d-BL7GGFJj.js';
|
|
19
|
-
import './qti-expression.d-
|
|
19
|
+
import './qti-expression.d-BPxEp8HU.js';
|
|
20
20
|
import '@heximal/templates';
|
|
21
21
|
|
|
22
22
|
type AbstractConstructor$2<T = {}> = abstract new (...args: any[]) => T;
|
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-SU63QGGD.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SIE3E4FG.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6U3YPHXU.js";
|
|
44
44
|
import {
|
|
45
45
|
qtiInteractionElements
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-DAFB2E5H.js";
|
|
47
47
|
import {
|
|
48
48
|
qtiItemElements
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-RU6332MD.js";
|
|
50
|
+
import "./chunk-ZP6QQYSU.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-6K3QWJHH.js";
|
|
56
56
|
import {
|
|
57
57
|
qtiBaseElements
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TDWJ6WZA.js";
|
|
59
59
|
|
|
60
60
|
// ../qti-corrections/dist/elements.js
|
|
61
61
|
var qtiCorrectionElements = [
|
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-GBZNFSFY.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-6U3YPHXU.js";
|
|
24
29
|
import "./chunk-4DB4SC5K.js";
|
|
25
30
|
import "./chunk-TLAVOBEM.js";
|
|
26
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-TDWJ6WZA.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
|
|
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, S as SpeechState, T as TestCheckItem, q as TestContainer, r as TestEndAttempt, s as TestItemLink, t as TestItemToSpeech, u as TestNavigation, v as TestNext, w as TestPagingButtonsStamp, x as TestPrev, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, C as TestSectionButtonsStamp, D as TestSectionLink, E as TestStamp, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, N as TestView, O as TestViewToggle, P as TtsContext, R as ttsContext } from './qti-test.d-86TlaMlI.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-C4eixT-D.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';
|
|
@@ -15,9 +15,9 @@ export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } fr
|
|
|
15
15
|
export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-g6XG0T0Z.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-B55QkJ92.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
|
-
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-
|
|
18
|
+
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-BPxEp8HU.js';
|
|
19
19
|
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-wMYNVkkj.js';
|
|
20
|
-
export { Q as QtiConditionExpression } from './qti-condition-expression.d-
|
|
20
|
+
export { Q as QtiConditionExpression } from './qti-condition-expression.d-VJH6cWxf.js';
|
|
21
21
|
export { D as DirectedPair, I as Identifier, P as Point, R as ResponseValue, i as iterResponseValues, p as parsePair, a as parsePoint, b as parseResponseAttribute, r as responseAttributeConverter, s as serializePair, c as serializePoint, d as serializeResponseAttribute } from './response.d-_8y4kjGP.js';
|
|
22
22
|
export { F as FormAssociatedInteraction, I as IInteraction, R as ReadonlyInteraction, a as RegisteredInteraction, b as ResettableInteraction, c as ResponseIdentifiedInteraction, d as ResponseInteractionElement, V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
23
23
|
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-Bdzg8eGH.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-OQDBARD5.js";
|
|
2
2
|
import {
|
|
3
3
|
CandidateCorrectionMixin,
|
|
4
4
|
ChoiceCorrectionMixin,
|
|
@@ -35,16 +35,19 @@ import {
|
|
|
35
35
|
TestNavigationCorrection,
|
|
36
36
|
TestShowCorrectResponse,
|
|
37
37
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SU63QGGD.js";
|
|
39
39
|
import {
|
|
40
40
|
QTI_TEST_STATE_VERSION,
|
|
41
41
|
QtiAssessmentItemRef,
|
|
42
42
|
QtiAssessmentSection,
|
|
43
43
|
QtiAssessmentTest,
|
|
44
|
+
QtiBranchRule,
|
|
44
45
|
QtiItemSessionControl,
|
|
46
|
+
QtiNumberPresented,
|
|
45
47
|
QtiNumberSelected,
|
|
46
48
|
QtiOutcomeProcessing,
|
|
47
49
|
QtiOutcomeProcessingProcessor,
|
|
50
|
+
QtiPreCondition,
|
|
48
51
|
QtiTest,
|
|
49
52
|
QtiTestFeedback,
|
|
50
53
|
QtiTestPart,
|
|
@@ -76,9 +79,10 @@ import {
|
|
|
76
79
|
TestView,
|
|
77
80
|
TestViewToggle,
|
|
78
81
|
ttsContext
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-SIE3E4FG.js";
|
|
83
|
+
import "./chunk-GBZNFSFY.js";
|
|
81
84
|
import {
|
|
85
|
+
PUBLIC_ITEM_EVENTS,
|
|
82
86
|
QtiAssessmentItem,
|
|
83
87
|
QtiAssessmentStimulus,
|
|
84
88
|
QtiAssessmentStimulusRef,
|
|
@@ -98,9 +102,13 @@ import {
|
|
|
98
102
|
QtiStylesheet,
|
|
99
103
|
QtiTemplateConstraint,
|
|
100
104
|
QtiTemplateDeclaration,
|
|
101
|
-
QtiTemplateProcessing
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
QtiTemplateProcessing,
|
|
106
|
+
dispatchDeclared,
|
|
107
|
+
dispatchPublic,
|
|
108
|
+
listenDeclared,
|
|
109
|
+
listenPublic
|
|
110
|
+
} from "./chunk-6U3YPHXU.js";
|
|
111
|
+
import "./chunk-YZRODVYZ.js";
|
|
104
112
|
import {
|
|
105
113
|
QtiAssociableHotspot,
|
|
106
114
|
QtiAssociateInteraction,
|
|
@@ -135,15 +143,15 @@ import {
|
|
|
135
143
|
QtiTextEntryInteraction,
|
|
136
144
|
QtiUploadInteraction,
|
|
137
145
|
qtiInteractionElements
|
|
138
|
-
} from "./chunk-
|
|
139
|
-
import "./chunk-
|
|
146
|
+
} from "./chunk-DAFB2E5H.js";
|
|
147
|
+
import "./chunk-FD4AB6TM.js";
|
|
140
148
|
import {
|
|
141
149
|
ItemContainer,
|
|
142
150
|
ItemPrintVariables,
|
|
143
151
|
ItemViewMixin,
|
|
144
152
|
QtiItem
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
153
|
+
} from "./chunk-RU6332MD.js";
|
|
154
|
+
import "./chunk-ZP6QQYSU.js";
|
|
147
155
|
import "./chunk-4DB4SC5K.js";
|
|
148
156
|
import {
|
|
149
157
|
getItemByUri,
|
|
@@ -154,7 +162,7 @@ import {
|
|
|
154
162
|
qtiTransformManifest,
|
|
155
163
|
qtiTransformTest
|
|
156
164
|
} from "./chunk-TLAVOBEM.js";
|
|
157
|
-
import "./chunk-
|
|
165
|
+
import "./chunk-MI7774NV.js";
|
|
158
166
|
import {
|
|
159
167
|
QtiAnd,
|
|
160
168
|
QtiAnyN,
|
|
@@ -232,7 +240,7 @@ import {
|
|
|
232
240
|
QtiVariable,
|
|
233
241
|
qtiAndMixin,
|
|
234
242
|
qtiSubtractMixin
|
|
235
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-6K3QWJHH.js";
|
|
236
244
|
import {
|
|
237
245
|
CustomStateSetShim,
|
|
238
246
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -277,7 +285,7 @@ import {
|
|
|
277
285
|
testContext,
|
|
278
286
|
unregisterCustomOperator,
|
|
279
287
|
validationMessage
|
|
280
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-TDWJ6WZA.js";
|
|
281
289
|
export {
|
|
282
290
|
CandidateCorrectionMixin,
|
|
283
291
|
ChoiceCorrectionMixin,
|
|
@@ -294,6 +302,7 @@ export {
|
|
|
294
302
|
ItemShowCandidateCorrection,
|
|
295
303
|
ItemShowCorrectResponse,
|
|
296
304
|
ItemViewMixin,
|
|
305
|
+
PUBLIC_ITEM_EVENTS,
|
|
297
306
|
QTI_TEST_STATE_VERSION,
|
|
298
307
|
QtiAnd,
|
|
299
308
|
QtiAnyN,
|
|
@@ -309,6 +318,7 @@ export {
|
|
|
309
318
|
QtiAssociateInteraction,
|
|
310
319
|
QtiAssociateInteractionCorrection,
|
|
311
320
|
QtiBaseValue,
|
|
321
|
+
QtiBranchRule,
|
|
312
322
|
QtiChoiceInteraction,
|
|
313
323
|
QtiChoiceInteractionCorrection,
|
|
314
324
|
QtiCompanionMaterialsInfo,
|
|
@@ -394,6 +404,7 @@ export {
|
|
|
394
404
|
QtiMultiple,
|
|
395
405
|
QtiNot,
|
|
396
406
|
QtiNull,
|
|
407
|
+
QtiNumberPresented,
|
|
397
408
|
QtiNumberSelected,
|
|
398
409
|
QtiOr,
|
|
399
410
|
QtiOrderInteraction,
|
|
@@ -412,6 +423,7 @@ export {
|
|
|
412
423
|
QtiPositionObjectInteraction,
|
|
413
424
|
QtiPositionObjectStage,
|
|
414
425
|
QtiPower,
|
|
426
|
+
QtiPreCondition,
|
|
415
427
|
QtiPrintedVariable,
|
|
416
428
|
QtiProduct,
|
|
417
429
|
QtiPrompt,
|
|
@@ -503,6 +515,8 @@ export {
|
|
|
503
515
|
convertNumberToUniversalFormat,
|
|
504
516
|
correctionPart,
|
|
505
517
|
decimalSeparator,
|
|
518
|
+
dispatchDeclared,
|
|
519
|
+
dispatchPublic,
|
|
506
520
|
dropRegion,
|
|
507
521
|
getCustomOperator,
|
|
508
522
|
getItemByUri,
|
|
@@ -513,6 +527,8 @@ export {
|
|
|
513
527
|
itemContext,
|
|
514
528
|
itemContextVariables,
|
|
515
529
|
iterResponseValues,
|
|
530
|
+
listenDeclared,
|
|
531
|
+
listenPublic,
|
|
516
532
|
parsePair,
|
|
517
533
|
parsePoint,
|
|
518
534
|
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-C4eixT-D.js';
|
|
2
|
+
export { O as Orientation } from './qti-text-entry-interaction.d-C4eixT-D.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-YZRODVYZ.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssociableHotspot,
|
|
4
4
|
QtiAssociateInteraction,
|
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
QtiTextEntryInteraction,
|
|
34
34
|
QtiUploadInteraction,
|
|
35
35
|
qtiInteractionElements
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DAFB2E5H.js";
|
|
37
37
|
import "./chunk-4DB4SC5K.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-TDWJ6WZA.js";
|
|
39
39
|
export {
|
|
40
40
|
QtiAssociableHotspot,
|
|
41
41
|
QtiAssociateInteraction,
|
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,14 +1,14 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-FD4AB6TM.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-RU6332MD.js";
|
|
8
|
+
import "./chunk-ZP6QQYSU.js";
|
|
9
9
|
import "./chunk-4DB4SC5K.js";
|
|
10
10
|
import "./chunk-TLAVOBEM.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-TDWJ6WZA.js";
|
|
12
12
|
export {
|
|
13
13
|
ItemContainer,
|
|
14
14
|
ItemPrintVariables,
|
package/dist/loader.d.ts
CHANGED
package/dist/processing.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as lit from 'lit';
|
|
|
2
2
|
import { LitElement, nothing } from 'lit';
|
|
3
3
|
import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
|
|
4
4
|
import { b as ItemContext, B as BaseType, g as ResponseVariable, V as VariableDeclaration } from './item.types.d-B55QkJ92.js';
|
|
5
|
-
import { Q as QtiExpression, a as QtiExpressionBase, T as TestContext } from './qti-expression.d-
|
|
6
|
-
import { Q as QtiConditionExpression } from './qti-condition-expression.d-
|
|
5
|
+
import { Q as QtiExpression, a as QtiExpressionBase, T as TestContext } from './qti-expression.d-BPxEp8HU.js';
|
|
6
|
+
import { Q as QtiConditionExpression } from './qti-condition-expression.d-VJH6cWxf.js';
|
|
7
7
|
import './qti.context.d-CejJMlfZ.js';
|
|
8
8
|
|
|
9
9
|
declare class QtiRule extends LitElement implements QtiRuleBase {
|
package/dist/processing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-MI7774NV.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-6K3QWJHH.js";
|
|
80
|
+
import "./chunk-TDWJ6WZA.js";
|
|
81
81
|
export {
|
|
82
82
|
QtiAnd,
|
|
83
83
|
QtiAnyN,
|