@citolab/qti-components 9.4.0 → 10.0.0-next.1
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-C3JPUV36.js → chunk-35WWWFS6.js} +2 -2
- 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-GNTO3IFM.js → chunk-CKJ7M7JQ.js} +571 -375
- package/dist/chunk-CKJ7M7JQ.js.map +1 -0
- package/dist/{chunk-BMXG7D2N.js → chunk-FD4AB6TM.js} +2 -2
- package/dist/{chunk-LKHRHFXO.js → chunk-FWR6HZQS.js} +6 -6
- package/dist/{chunk-B5XHZI2P.js → chunk-GBZNFSFY.js} +2 -2
- package/dist/{chunk-ACRN7YJM.js → chunk-MI7774NV.js} +2 -2
- package/dist/{chunk-MSGYZE6L.js → chunk-RSMYGGQK.js} +128 -48
- package/dist/chunk-RSMYGGQK.js.map +1 -0
- package/dist/{chunk-B74SYQB2.js → chunk-RU6332MD.js} +3 -3
- package/dist/{chunk-R7MMMDP7.js → chunk-TDWJ6WZA.js} +20 -2
- package/dist/chunk-TDWJ6WZA.js.map +1 -0
- package/dist/{chunk-JHPQJDAV.js → chunk-YYIS6FDP.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 +28 -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 +138 -191
- 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-DkpBNcsv.d.ts} +67 -9
- 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 +3 -3
- package/dist/test.js +9 -5
- package/package.json +10 -10
- 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-R7MMMDP7.js.map +0 -1
- package/dist/chunk-XEWGFAS4.js.map +0 -1
- /package/dist/{chunk-C3JPUV36.js.map → chunk-35WWWFS6.js.map} +0 -0
- /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-LKHRHFXO.js.map → chunk-FWR6HZQS.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-B74SYQB2.js.map → chunk-RU6332MD.js.map} +0 -0
- /package/dist/{chunk-JHPQJDAV.js.map → chunk-YYIS6FDP.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 {
|
|
9
|
+
import { k as QtiTest, T as TestCheckItem, t as TestNavigation } from './qti-test.d-DkpBNcsv.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-FWR6HZQS.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CKJ7M7JQ.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-RSMYGGQK.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 QtiNumberSelected, h as QtiOutcomeProcessing, i as QtiOutcomeProcessingProcessor, j as QtiPreCondition, k as QtiTest, l as QtiTestFeedback, m as QtiTestPart, n as QtiTestVariables, o as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, p as TestContainer, q as TestEndAttempt, r as TestItemLink, s as TestItemToSpeech, t as TestNavigation, u as TestNext, v as TestPagingButtonsStamp, w as TestPrev, x as TestPrintContext, y as TestPrintVariables, z as TestScoringButtons, A as TestScoringFeedback, B as TestSectionButtonsStamp, C as TestSectionLink, D as TestStamp, E as TestTtsNext, F as TestTtsPause, G as TestTtsPick, H as TestTtsPlay, J as TestTtsPrev, K as TestTtsResume, L as TestTtsStop, M as TestView, N as TestViewToggle, O as TtsContext, P as ttsContext } from './qti-test.d-DkpBNcsv.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';
|
|
@@ -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-YYIS6FDP.js";
|
|
2
2
|
import {
|
|
3
3
|
CandidateCorrectionMixin,
|
|
4
4
|
ChoiceCorrectionMixin,
|
|
@@ -35,16 +35,18 @@ import {
|
|
|
35
35
|
TestNavigationCorrection,
|
|
36
36
|
TestShowCorrectResponse,
|
|
37
37
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FWR6HZQS.js";
|
|
39
39
|
import {
|
|
40
40
|
QTI_TEST_STATE_VERSION,
|
|
41
41
|
QtiAssessmentItemRef,
|
|
42
42
|
QtiAssessmentSection,
|
|
43
43
|
QtiAssessmentTest,
|
|
44
|
+
QtiBranchRule,
|
|
44
45
|
QtiItemSessionControl,
|
|
45
46
|
QtiNumberSelected,
|
|
46
47
|
QtiOutcomeProcessing,
|
|
47
48
|
QtiOutcomeProcessingProcessor,
|
|
49
|
+
QtiPreCondition,
|
|
48
50
|
QtiTest,
|
|
49
51
|
QtiTestFeedback,
|
|
50
52
|
QtiTestPart,
|
|
@@ -76,9 +78,10 @@ import {
|
|
|
76
78
|
TestView,
|
|
77
79
|
TestViewToggle,
|
|
78
80
|
ttsContext
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-CKJ7M7JQ.js";
|
|
82
|
+
import "./chunk-GBZNFSFY.js";
|
|
81
83
|
import {
|
|
84
|
+
PUBLIC_ITEM_EVENTS,
|
|
82
85
|
QtiAssessmentItem,
|
|
83
86
|
QtiAssessmentStimulus,
|
|
84
87
|
QtiAssessmentStimulusRef,
|
|
@@ -98,9 +101,13 @@ import {
|
|
|
98
101
|
QtiStylesheet,
|
|
99
102
|
QtiTemplateConstraint,
|
|
100
103
|
QtiTemplateDeclaration,
|
|
101
|
-
QtiTemplateProcessing
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
QtiTemplateProcessing,
|
|
105
|
+
dispatchDeclared,
|
|
106
|
+
dispatchPublic,
|
|
107
|
+
listenDeclared,
|
|
108
|
+
listenPublic
|
|
109
|
+
} from "./chunk-6U3YPHXU.js";
|
|
110
|
+
import "./chunk-35WWWFS6.js";
|
|
104
111
|
import {
|
|
105
112
|
QtiAssociableHotspot,
|
|
106
113
|
QtiAssociateInteraction,
|
|
@@ -135,15 +142,15 @@ import {
|
|
|
135
142
|
QtiTextEntryInteraction,
|
|
136
143
|
QtiUploadInteraction,
|
|
137
144
|
qtiInteractionElements
|
|
138
|
-
} from "./chunk-
|
|
139
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-RSMYGGQK.js";
|
|
146
|
+
import "./chunk-FD4AB6TM.js";
|
|
140
147
|
import {
|
|
141
148
|
ItemContainer,
|
|
142
149
|
ItemPrintVariables,
|
|
143
150
|
ItemViewMixin,
|
|
144
151
|
QtiItem
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
152
|
+
} from "./chunk-RU6332MD.js";
|
|
153
|
+
import "./chunk-ZP6QQYSU.js";
|
|
147
154
|
import "./chunk-4DB4SC5K.js";
|
|
148
155
|
import {
|
|
149
156
|
getItemByUri,
|
|
@@ -154,7 +161,7 @@ import {
|
|
|
154
161
|
qtiTransformManifest,
|
|
155
162
|
qtiTransformTest
|
|
156
163
|
} from "./chunk-TLAVOBEM.js";
|
|
157
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-MI7774NV.js";
|
|
158
165
|
import {
|
|
159
166
|
QtiAnd,
|
|
160
167
|
QtiAnyN,
|
|
@@ -232,7 +239,7 @@ import {
|
|
|
232
239
|
QtiVariable,
|
|
233
240
|
qtiAndMixin,
|
|
234
241
|
qtiSubtractMixin
|
|
235
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-6K3QWJHH.js";
|
|
236
243
|
import {
|
|
237
244
|
CustomStateSetShim,
|
|
238
245
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -277,7 +284,7 @@ import {
|
|
|
277
284
|
testContext,
|
|
278
285
|
unregisterCustomOperator,
|
|
279
286
|
validationMessage
|
|
280
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-TDWJ6WZA.js";
|
|
281
288
|
export {
|
|
282
289
|
CandidateCorrectionMixin,
|
|
283
290
|
ChoiceCorrectionMixin,
|
|
@@ -294,6 +301,7 @@ export {
|
|
|
294
301
|
ItemShowCandidateCorrection,
|
|
295
302
|
ItemShowCorrectResponse,
|
|
296
303
|
ItemViewMixin,
|
|
304
|
+
PUBLIC_ITEM_EVENTS,
|
|
297
305
|
QTI_TEST_STATE_VERSION,
|
|
298
306
|
QtiAnd,
|
|
299
307
|
QtiAnyN,
|
|
@@ -309,6 +317,7 @@ export {
|
|
|
309
317
|
QtiAssociateInteraction,
|
|
310
318
|
QtiAssociateInteractionCorrection,
|
|
311
319
|
QtiBaseValue,
|
|
320
|
+
QtiBranchRule,
|
|
312
321
|
QtiChoiceInteraction,
|
|
313
322
|
QtiChoiceInteractionCorrection,
|
|
314
323
|
QtiCompanionMaterialsInfo,
|
|
@@ -412,6 +421,7 @@ export {
|
|
|
412
421
|
QtiPositionObjectInteraction,
|
|
413
422
|
QtiPositionObjectStage,
|
|
414
423
|
QtiPower,
|
|
424
|
+
QtiPreCondition,
|
|
415
425
|
QtiPrintedVariable,
|
|
416
426
|
QtiProduct,
|
|
417
427
|
QtiPrompt,
|
|
@@ -503,6 +513,8 @@ export {
|
|
|
503
513
|
convertNumberToUniversalFormat,
|
|
504
514
|
correctionPart,
|
|
505
515
|
decimalSeparator,
|
|
516
|
+
dispatchDeclared,
|
|
517
|
+
dispatchPublic,
|
|
506
518
|
dropRegion,
|
|
507
519
|
getCustomOperator,
|
|
508
520
|
getItemByUri,
|
|
@@ -513,6 +525,8 @@ export {
|
|
|
513
525
|
itemContext,
|
|
514
526
|
itemContextVariables,
|
|
515
527
|
iterResponseValues,
|
|
528
|
+
listenDeclared,
|
|
529
|
+
listenPublic,
|
|
516
530
|
parsePair,
|
|
517
531
|
parsePoint,
|
|
518
532
|
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-35WWWFS6.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-RSMYGGQK.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,
|