@citolab/qti-components 10.0.0-next.13 → 10.0.0-next.14
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 +383 -399
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/{chunk-Y5DZTCDP.js → chunk-6XRNX574.js} +224 -257
- package/dist/chunk-6XRNX574.js.map +1 -0
- package/dist/{chunk-G6LTYTJR.js → chunk-BZPMN57E.js} +2 -2
- package/dist/{chunk-AKX4YMWU.js → chunk-C7SYDLMG.js} +197 -93
- package/dist/chunk-C7SYDLMG.js.map +1 -0
- package/dist/{chunk-H3GITIPE.js → chunk-CCI3QMQA.js} +23 -7
- package/dist/chunk-CCI3QMQA.js.map +1 -0
- package/dist/{chunk-FLAD6SC6.js → chunk-HGKLF7SP.js} +2 -2
- package/dist/{chunk-K4WLYVDT.js → chunk-LEF7AAYZ.js} +2 -2
- package/dist/{chunk-HOGJ5ZNW.js → chunk-MP2SUN7J.js} +193 -86
- package/dist/chunk-MP2SUN7J.js.map +1 -0
- package/dist/{chunk-PHRHLDQB.js → chunk-NYNL5HSR.js} +2 -2
- package/dist/{chunk-WUIA4OOX.js → chunk-O2ENNGKV.js} +3 -2
- package/dist/chunk-O2ENNGKV.js.map +1 -0
- package/dist/chunk-Q4MJCEDE.js +7 -0
- package/dist/chunk-Q4MJCEDE.js.map +1 -0
- package/dist/{chunk-EIBGCCXH.js → chunk-S5GLISQA.js} +2 -2
- package/dist/{chunk-PYHKCIYN.js → chunk-SWNFCQ4G.js} +3 -3
- package/dist/{chunk-MDBNEEPH.js → chunk-TU34FFWF.js} +8 -3
- package/dist/chunk-TU34FFWF.js.map +1 -0
- package/dist/corrections.d.ts +3 -3
- package/dist/corrections.js +8 -8
- package/dist/elements.d.ts +54 -12
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +13 -13
- package/dist/interactions.d.ts +15 -3
- package/dist/interactions.js +3 -3
- package/dist/item.css +33 -8
- package/dist/item.d.ts +1 -1
- package/dist/item.js +4 -4
- package/dist/loader.d.ts +1 -1
- package/dist/processing.d.ts +8 -4
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +245 -97
- package/dist/{qti-rule-base.d-Bdzg8eGH.d.ts → qti-rule-base.d-CeKP0Ooi.d.ts} +2 -2
- package/dist/{qti-test.d-B6AGSQlk.d.ts → qti-test.d-C0I1BIdH.d.ts} +29 -3
- package/dist/{qti-text-entry-interaction.d-B44Z3qUG.d.ts → qti-text-entry-interaction.d-V4sWE9TO.d.ts} +31 -5
- package/dist/test.d.ts +3 -3
- package/dist/test.js +5 -5
- package/package.json +10 -10
- package/dist/chunk-AKX4YMWU.js.map +0 -1
- package/dist/chunk-DVLSXMXD.js +0 -7
- package/dist/chunk-DVLSXMXD.js.map +0 -1
- package/dist/chunk-H3GITIPE.js.map +0 -1
- package/dist/chunk-HOGJ5ZNW.js.map +0 -1
- package/dist/chunk-MDBNEEPH.js.map +0 -1
- package/dist/chunk-WUIA4OOX.js.map +0 -1
- package/dist/chunk-Y5DZTCDP.js.map +0 -1
- /package/dist/{chunk-G6LTYTJR.js.map → chunk-BZPMN57E.js.map} +0 -0
- /package/dist/{chunk-FLAD6SC6.js.map → chunk-HGKLF7SP.js.map} +0 -0
- /package/dist/{chunk-K4WLYVDT.js.map → chunk-LEF7AAYZ.js.map} +0 -0
- /package/dist/{chunk-PHRHLDQB.js.map → chunk-NYNL5HSR.js.map} +0 -0
- /package/dist/{chunk-EIBGCCXH.js.map → chunk-S5GLISQA.js.map} +0 -0
- /package/dist/{chunk-PYHKCIYN.js.map → chunk-SWNFCQ4G.js.map} +0 -0
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-CCI3QMQA.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6XRNX574.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-C7SYDLMG.js";
|
|
44
44
|
import {
|
|
45
45
|
qtiInteractionElements
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-MP2SUN7J.js";
|
|
47
47
|
import {
|
|
48
48
|
qtiItemElements
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-SWNFCQ4G.js";
|
|
50
|
+
import "./chunk-Q4MJCEDE.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-TU34FFWF.js";
|
|
56
56
|
import {
|
|
57
57
|
qtiBaseElements
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-O2ENNGKV.js";
|
|
59
59
|
|
|
60
60
|
// ../qti-corrections/dist/elements.js
|
|
61
61
|
var qtiCorrectionElements = [
|
package/dist/elements.d.ts
CHANGED
|
@@ -3,18 +3,8 @@ import * as lit from 'lit';
|
|
|
3
3
|
import { LitElement, PropertyValues, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
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-DbzPSJuK.js';
|
|
6
|
-
import { b as QtiRuleBase } from './qti-rule-base.d-
|
|
6
|
+
import { b as QtiRuleBase } from './qti-rule-base.d-CeKP0Ooi.js';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* @summary The qti-assessment-item element contains all the other QTI 3 item structures.
|
|
10
|
-
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.dltnnj87l0yj
|
|
11
|
-
*
|
|
12
|
-
* @dependency qti-feedback
|
|
13
|
-
* @dependency qti-responseprocessing
|
|
14
|
-
*
|
|
15
|
-
* @event qti-item-context-updated - Emitted when through a user action the itemContext is updated,
|
|
16
|
-
* typically on interaction with the interactions, or calling response processing.
|
|
17
|
-
*/
|
|
18
8
|
declare class QtiAssessmentItem extends LitElement {
|
|
19
9
|
#private;
|
|
20
10
|
identifier: string;
|
|
@@ -57,6 +47,16 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
57
47
|
render(): lit.TemplateResult<1>;
|
|
58
48
|
connectedCallback(): void;
|
|
59
49
|
disconnectedCallback(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Scores the attempt. The item does not score itself: its response processing does, like a
|
|
52
|
+
* backend, and sends the outcomes back in `cito-item-set-outcomes`, which the item applies in one
|
|
53
|
+
* update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
|
|
54
|
+
* numAttempts) and hands the new count to the run, whose rules may read it. Without response
|
|
55
|
+
* processing the item only counts the attempt. A run that throws still counts the attempt and applies
|
|
56
|
+
* no outcomes.
|
|
57
|
+
*
|
|
58
|
+
* @returns whether the item has response processing.
|
|
59
|
+
*/
|
|
60
60
|
processResponse(countNumAttempts?: boolean, reportValidityAfterScoring?: boolean): boolean;
|
|
61
61
|
resetResponses(): void;
|
|
62
62
|
protected getResponse(identifier: string): Readonly<ResponseVariable>;
|
|
@@ -352,10 +352,26 @@ declare global {
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
+
/**
|
|
356
|
+
* Response processing as the item's own backend: it reads the item context, runs its rules once and
|
|
357
|
+
* sends the outcomes and the attempt count back in one `cito-item-set-outcomes`. The item applies
|
|
358
|
+
* them; a host that scores elsewhere sends the same event instead.
|
|
359
|
+
*/
|
|
355
360
|
declare class QtiResponseProcessing extends LitElement {
|
|
361
|
+
#private;
|
|
356
362
|
static styles: lit.CSSResult[];
|
|
363
|
+
constructor();
|
|
357
364
|
render(): lit.TemplateResult<1>;
|
|
358
|
-
|
|
365
|
+
/**
|
|
366
|
+
* Scores the attempt on the copy: sets `numAttempts` to the count the item hands over, resets a
|
|
367
|
+
* non-adaptive item's outcomes to their defaults (QTI info model §2.5), runs the rules and sends
|
|
368
|
+
* every outcome and `numAttempts` in one `cito-item-set-outcomes`. The item applies them and publishes, which gives this element a
|
|
369
|
+
* fresh copy. A rule that throws ends the run and the error propagates; nothing is sent, and the
|
|
370
|
+
* run's writes stay in the copy until the item's next update.
|
|
371
|
+
*/
|
|
372
|
+
processResponse({ numAttempts }: {
|
|
373
|
+
numAttempts: number;
|
|
374
|
+
}): void;
|
|
359
375
|
firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
360
376
|
}
|
|
361
377
|
declare global {
|
|
@@ -467,11 +483,29 @@ declare global {
|
|
|
467
483
|
}
|
|
468
484
|
}
|
|
469
485
|
|
|
486
|
+
interface OutcomeEntry {
|
|
487
|
+
identifier: string;
|
|
488
|
+
value: Readonly<string | string[] | null | undefined>;
|
|
489
|
+
}
|
|
490
|
+
/** One outcome an update applied, with its final value. */
|
|
470
491
|
interface OutcomeChangedDetails {
|
|
471
492
|
item: string;
|
|
472
493
|
outcomeIdentifier: string;
|
|
473
494
|
value: Readonly<string | string[]>;
|
|
474
495
|
}
|
|
496
|
+
/** The outcomes one update applied, sent after the item context is published. */
|
|
497
|
+
interface OutcomesChangedDetails {
|
|
498
|
+
item: string;
|
|
499
|
+
outcomes: OutcomeEntry[];
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Outcomes for the item to apply in one update: the result of its own response processing, or what
|
|
503
|
+
* a backend returned. `responseProcessed` says an attempt ended, as it does after `processResponse`.
|
|
504
|
+
*/
|
|
505
|
+
interface SetOutcomesDetails {
|
|
506
|
+
outcomes: OutcomeEntry[];
|
|
507
|
+
responseProcessed?: boolean;
|
|
508
|
+
}
|
|
475
509
|
type InteractionChangedDetails = ResponseInteraction & {
|
|
476
510
|
item: string;
|
|
477
511
|
};
|
|
@@ -497,7 +531,15 @@ interface RubricPlacement {
|
|
|
497
531
|
}
|
|
498
532
|
interface PublicItemEventMap {
|
|
499
533
|
'cito-item-response-changed': CustomEvent<InteractionChangedDetails>;
|
|
534
|
+
/**
|
|
535
|
+
* Request: the item applies these outcomes in one update. Response processing sends it; a host
|
|
536
|
+
* that scores on a backend sends it on the item with the outcomes the backend returned.
|
|
537
|
+
*/
|
|
538
|
+
'cito-item-set-outcomes': CustomEvent<SetOutcomesDetails>;
|
|
539
|
+
/** One per outcome an update applied, with its final value, after the item context is published. */
|
|
500
540
|
'cito-item-outcome-changed': CustomEvent<OutcomeChangedDetails>;
|
|
541
|
+
/** All the outcomes one update applied, after the item context is published. */
|
|
542
|
+
'cito-item-outcomes-changed': CustomEvent<OutcomesChangedDetails>;
|
|
501
543
|
/** Cancelable: `preventDefault()` keeps the rubric block where it is. */
|
|
502
544
|
'cito-item-rubric-placement': CustomEvent<RubricPlacement>;
|
|
503
545
|
}
|
package/dist/elements.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-HGKLF7SP.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-C7SYDLMG.js";
|
|
29
29
|
import "./chunk-4DB4SC5K.js";
|
|
30
30
|
import "./chunk-TLAVOBEM.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-O2ENNGKV.js";
|
|
32
32
|
export {
|
|
33
33
|
PUBLIC_ITEM_EVENTS,
|
|
34
34
|
QtiAssessmentItem,
|
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 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-
|
|
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-C0I1BIdH.js';
|
|
2
2
|
export { IMyQtiTest, IQtiTest, ITestProcessingMixin, QTI_TEST_STATE_VERSION, QtiTestPluginState, QtiTestState, QtiTestStateItem, QtiTestStateSession, QtiTestStateValue, pluginElements, pluginState, ttsElements } from './test.js';
|
|
3
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-V4sWE9TO.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';
|
|
@@ -20,7 +20,7 @@ export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-
|
|
|
20
20
|
export { Q as QtiConditionExpression } from './qti-condition-expression.d-B-T1NNl0.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
|
-
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-
|
|
23
|
+
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-CeKP0Ooi.js';
|
|
24
24
|
export { QtiAnd, QtiAnyN, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiDivide, QtiDurationGte, QtiDurationLt, QtiEqual, QtiEqualRounded, QtiExitResponse, QtiExitTest, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiInside, QtiIntegerDivide, QtiIntegerModulus, QtiIntegerToFloat, QtiIsNull, QtiLcm, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathConstant, QtiMathOperator, QtiMax, QtiMember, QtiMin, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiOutcomeCondition, QtiOutcomeElse, QtiOutcomeElseIf, QtiOutcomeIf, QtiPatternMatch, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiRepeat, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessingFragment, QtiRound, QtiRoundTo, QtiSetCorrectResponse, QtiSetCorrectResponseRule, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSetTemplateValue, QtiSetTemplateValueRule, QtiStatsOperator, QtiStringMatch, QtiSubstring, QtiSubtract, QtiSum, QtiSumExpression, QtiTruncate, QtiVariable, qtiAndMixin, qtiSubtractMixin } from './processing.js';
|
|
25
25
|
export { CandidateCorrectionMixin, ChoiceCorrectionMixin, CorrectResponseInterface, CorrectResponseMixin, CorrectResponseMode, CorrectionConfig, Correctness, ItemCorrectResponseMode, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiAssessmentItemCorrection, QtiAssociateInteractionCorrection, QtiChoiceInteractionCorrection, QtiExtendedTextInteractionCorrection, QtiGapMatchInteractionCorrection, QtiGapTextCorrection, QtiGraphicAssociateInteractionCorrection, QtiGraphicGapMatchInteractionCorrection, QtiGraphicOrderInteractionCorrection, QtiHotspotChoiceCorrection, QtiHotspotInteractionCorrection, QtiHottextCorrection, QtiHottextInteractionCorrection, QtiInlineChoiceInteractionCorrection, QtiItemCorrection, QtiMatchInteractionCorrection, QtiOrderInteractionCorrection, QtiPortableCustomInteractionCorrection, QtiSelectPointInteractionCorrection, QtiSimpleAssociableChoiceCorrection, QtiSimpleChoiceCorrection, QtiSliderInteractionCorrection, QtiTestCorrection, QtiTextEntryInteractionCorrection, TestCheckItemCorrection, TestNavigationCorrection, TestShowCorrectResponse, correctionPart } from './corrections.js';
|
|
26
26
|
import 'lit';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-S5GLISQA.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-CCI3QMQA.js";
|
|
39
39
|
import {
|
|
40
40
|
QTI_TEST_STATE_VERSION,
|
|
41
41
|
QtiAssessmentItemRef,
|
|
@@ -83,8 +83,8 @@ import {
|
|
|
83
83
|
pluginElements,
|
|
84
84
|
pluginState,
|
|
85
85
|
ttsElements
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import "./chunk-
|
|
86
|
+
} from "./chunk-6XRNX574.js";
|
|
87
|
+
import "./chunk-HGKLF7SP.js";
|
|
88
88
|
import {
|
|
89
89
|
PUBLIC_ITEM_EVENTS,
|
|
90
90
|
QtiAssessmentItem,
|
|
@@ -111,8 +111,8 @@ import {
|
|
|
111
111
|
dispatchPublic,
|
|
112
112
|
listenDeclared,
|
|
113
113
|
listenPublic
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import "./chunk-
|
|
114
|
+
} from "./chunk-C7SYDLMG.js";
|
|
115
|
+
import "./chunk-LEF7AAYZ.js";
|
|
116
116
|
import {
|
|
117
117
|
QtiAssociableHotspot,
|
|
118
118
|
QtiAssociateInteraction,
|
|
@@ -149,15 +149,15 @@ import {
|
|
|
149
149
|
inlineScriptText,
|
|
150
150
|
inlineStyleText,
|
|
151
151
|
qtiInteractionElements
|
|
152
|
-
} from "./chunk-
|
|
153
|
-
import "./chunk-
|
|
152
|
+
} from "./chunk-MP2SUN7J.js";
|
|
153
|
+
import "./chunk-BZPMN57E.js";
|
|
154
154
|
import {
|
|
155
155
|
ItemContainer,
|
|
156
156
|
ItemPrintVariables,
|
|
157
157
|
ItemViewMixin,
|
|
158
158
|
QtiItem
|
|
159
|
-
} from "./chunk-
|
|
160
|
-
import "./chunk-
|
|
159
|
+
} from "./chunk-SWNFCQ4G.js";
|
|
160
|
+
import "./chunk-Q4MJCEDE.js";
|
|
161
161
|
import "./chunk-4DB4SC5K.js";
|
|
162
162
|
import {
|
|
163
163
|
getItemByUri,
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
qtiTransformManifest,
|
|
169
169
|
qtiTransformTest
|
|
170
170
|
} from "./chunk-TLAVOBEM.js";
|
|
171
|
-
import "./chunk-
|
|
171
|
+
import "./chunk-NYNL5HSR.js";
|
|
172
172
|
import {
|
|
173
173
|
QtiAnd,
|
|
174
174
|
QtiAnyN,
|
|
@@ -246,7 +246,7 @@ import {
|
|
|
246
246
|
QtiVariable,
|
|
247
247
|
qtiAndMixin,
|
|
248
248
|
qtiSubtractMixin
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-TU34FFWF.js";
|
|
250
250
|
import {
|
|
251
251
|
CustomStateSetShim,
|
|
252
252
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -294,7 +294,7 @@ import {
|
|
|
294
294
|
testContext,
|
|
295
295
|
unregisterCustomOperator,
|
|
296
296
|
validationMessage
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-O2ENNGKV.js";
|
|
298
298
|
export {
|
|
299
299
|
CandidateCorrectionMixin,
|
|
300
300
|
ChoiceCorrectionMixin,
|
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, 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-V4sWE9TO.js';
|
|
2
|
+
export { O as Orientation, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-V4sWE9TO.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { CSSResultGroup, LitElement, PropertyValueMap } from 'lit';
|
|
5
5
|
import { I as Interaction } from './record.d-C6m0Y4xr.js';
|
|
@@ -94,13 +94,25 @@ declare global {
|
|
|
94
94
|
/**
|
|
95
95
|
* A button that ends the current attempt.
|
|
96
96
|
*
|
|
97
|
+
* It follows its item: it cannot be pressed while the item is `disabled` or `readonly`, or once an
|
|
98
|
+
* adaptive item is done. An adaptive item that sets `completionStatus` to `completed` closes its
|
|
99
|
+
* session, so no further attempt can start (QTI info model §2.5).
|
|
100
|
+
*
|
|
97
101
|
* @csspart button - The end-attempt button element.
|
|
98
102
|
*/
|
|
99
103
|
declare class QtiEndAttemptInteraction extends LitElement {
|
|
104
|
+
#private;
|
|
100
105
|
static styles: CSSResultGroup;
|
|
101
106
|
responseIdentifier: string;
|
|
102
107
|
disabled: boolean;
|
|
103
|
-
|
|
108
|
+
private _itemContext?;
|
|
109
|
+
/**
|
|
110
|
+
* Whether ending the attempt with this button counts as an attempt (`numAttempts` goes up), so it
|
|
111
|
+
* uses up one of the item's `max-attempts`. Only `"false"` does not count: a hint button that
|
|
112
|
+
* should not use up an attempt says so. QTI 3 gives the attribute no default; an absent value counts,
|
|
113
|
+
* as QTI 2.x's default `true` did and as amp-up and QTI.JS do.
|
|
114
|
+
* [More information](https://www.imsglobal.org/spec/qti/v3p0/info#Data_EndAttemptInteraction)
|
|
115
|
+
*/
|
|
104
116
|
countAttempt: 'true' | 'false' | null;
|
|
105
117
|
title: string;
|
|
106
118
|
render(): lit.TemplateResult<1>;
|
package/dist/interactions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-LEF7AAYZ.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-MP2SUN7J.js";
|
|
39
39
|
import "./chunk-4DB4SC5K.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-O2ENNGKV.js";
|
|
41
41
|
export {
|
|
42
42
|
QtiAssociableHotspot,
|
|
43
43
|
QtiAssociateInteraction,
|
package/dist/item.css
CHANGED
|
@@ -2087,8 +2087,8 @@
|
|
|
2087
2087
|
--qti-active-mix: 16%; /* a press: the same mix, twice as far */
|
|
2088
2088
|
|
|
2089
2089
|
/* Interaction icon masks. Kept in the QTI namespace so the theme has no FontAwesome runtime
|
|
2090
|
-
dependency. One vocabulary, kept together
|
|
2091
|
-
|
|
2090
|
+
dependency. One vocabulary, kept together. --qti-times-mask is also the inline choice's clear
|
|
2091
|
+
glyph (qti-inline-choice-interaction.styles.ts). */
|
|
2092
2092
|
--qti-check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
|
|
2093
2093
|
--qti-times-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E");
|
|
2094
2094
|
/* fa-minus. The third verdict glyph, beside the tick and the cross: neither right nor wrong.
|
|
@@ -4606,6 +4606,16 @@
|
|
|
4606
4606
|
* above it. Two spacing tokens for one box is the whole bug — the vocabulary says pick one and
|
|
4607
4607
|
* spend it whole (see the CONTRACT note on --qti-padding-box / -inline / --qti-gap).
|
|
4608
4608
|
*/
|
|
4609
|
+
/*
|
|
4610
|
+
* The seam is ONE border. The menu anchors to the field's outer bottom edge, so its top border
|
|
4611
|
+
* used to stack under the field's bottom border: two borders read as one thick band. Pulled up by
|
|
4612
|
+
* the field's border width, the menu's top border lies on the field's bottom border instead.
|
|
4613
|
+
*
|
|
4614
|
+
* A negative margin rather than dropping the menu's top border: `position-try-fallbacks:
|
|
4615
|
+
* flip-block` flips margins with the menu, so a menu flipped above the field overlaps the
|
|
4616
|
+
* field's top border the same way and still has a border on its free edge. Not in a :state —
|
|
4617
|
+
* the menu is only painted while open anyway, so this never toggles.
|
|
4618
|
+
*/
|
|
4609
4619
|
qti-inline-choice-interaction::part(menu) {
|
|
4610
4620
|
background-color: var(--menu-background-color, var(--qti-component-background-color));
|
|
4611
4621
|
background-image: var(--menu-background-image, var(--qti-component-background-image));
|
|
@@ -4619,6 +4629,7 @@
|
|
|
4619
4629
|
filter: var(--menu-filter, var(--qti-component-filter));
|
|
4620
4630
|
border-radius: var(--menu-border-radius, var(--qti-radius-box));
|
|
4621
4631
|
padding: 0;
|
|
4632
|
+
margin-block-start: calc(-1 * var(--field-border-width, var(--qti-component-border-width)));
|
|
4622
4633
|
}
|
|
4623
4634
|
|
|
4624
4635
|
/*
|
|
@@ -4646,18 +4657,18 @@
|
|
|
4646
4657
|
border-end-end-radius: 0;
|
|
4647
4658
|
}
|
|
4648
4659
|
|
|
4660
|
+
/* All four corners square: the top because it joins the field, the bottom by design — the open
|
|
4661
|
+
list is a straight-edged sheet under the field. */
|
|
4649
4662
|
qti-inline-choice-interaction::part(menu):popover-open {
|
|
4650
|
-
border-
|
|
4651
|
-
border-start-end-radius: 0;
|
|
4663
|
+
border-radius: 0;
|
|
4652
4664
|
}
|
|
4653
4665
|
|
|
4654
4666
|
/* ── Option rows ─────────────────────────────────────────────────────────── */
|
|
4655
4667
|
qti-inline-choice-interaction::part(option) {
|
|
4656
4668
|
padding: var(--qti-padding-box);
|
|
4657
4669
|
border: 0;
|
|
4658
|
-
/* Square, because a row
|
|
4659
|
-
|
|
4660
|
-
only show as a notch inside a straight edge. */
|
|
4670
|
+
/* Square, because a row spans the full width of the menu, and the open menu is square too.
|
|
4671
|
+
A radius here would only show as a notch inside a straight edge. */
|
|
4661
4672
|
border-radius: 0;
|
|
4662
4673
|
background: transparent;
|
|
4663
4674
|
cursor: pointer;
|
|
@@ -6830,9 +6841,23 @@ qti-slider-interaction:focus::part(knob) {
|
|
|
6830
6841
|
*/
|
|
6831
6842
|
--qti-select-point-marker-color: var(--cito-color-marker, var(--qti-primary));
|
|
6832
6843
|
|
|
6844
|
+
/*
|
|
6845
|
+
* The picture narrows with its column and never grows past its own size; its height follows
|
|
6846
|
+
* the aspect ratio. The component already sizes it so (::slotted(img) in
|
|
6847
|
+
* qti-select-point-interaction.styles.ts), but reset.css gives every picture inside an
|
|
6848
|
+
* interaction `max-width: none`, a light-DOM rule that outranks ::slotted(), so a 1024px
|
|
6849
|
+
* picture overflowed a narrower column. Restated here for the picture alone (a direct child).
|
|
6850
|
+
* A click is stored in the picture's own pixels and a marker is placed in percentages, so the
|
|
6851
|
+
* answer is the same at any displayed size.
|
|
6852
|
+
*/
|
|
6853
|
+
}
|
|
6854
|
+
qti-select-point-interaction > img {
|
|
6855
|
+
max-width: 100%;
|
|
6856
|
+
height: auto;
|
|
6857
|
+
}
|
|
6858
|
+
|
|
6833
6859
|
/* One selector, not nested under `&::part(point)`: that compiled to `:is(…::part(point))`,
|
|
6834
6860
|
which no browser accepts, so the ring never matched. */
|
|
6835
|
-
}
|
|
6836
6861
|
qti-select-point-interaction::part(point):focus {
|
|
6837
6862
|
outline: var(--qti-focus-border-width) solid var(--qti-focus-color);
|
|
6838
6863
|
outline-offset: var(--qti-focus-offset);
|
package/dist/item.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ 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';
|
|
10
|
-
import './qti-rule-base.d-
|
|
10
|
+
import './qti-rule-base.d-CeKP0Ooi.js';
|
|
11
11
|
|
|
12
12
|
type Constructor<T = {}> = abstract new (...args: any[]) => T;
|
|
13
13
|
declare class ItemViewInterface {
|
package/dist/item.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-BZPMN57E.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-SWNFCQ4G.js";
|
|
8
|
+
import "./chunk-Q4MJCEDE.js";
|
|
9
9
|
import "./chunk-4DB4SC5K.js";
|
|
10
10
|
import "./chunk-TLAVOBEM.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-O2ENNGKV.js";
|
|
12
12
|
export {
|
|
13
13
|
ItemContainer,
|
|
14
14
|
ItemPrintVariables,
|
package/dist/loader.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import './item.types.d-DuVR0ZVK.js';
|
|
|
3
3
|
import 'lit';
|
|
4
4
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
5
5
|
import './qti-feedback.d-DbzPSJuK.js';
|
|
6
|
-
import './qti-rule-base.d-
|
|
6
|
+
import './qti-rule-base.d-CeKP0Ooi.js';
|
|
7
7
|
|
|
8
8
|
type ManifestInfo = {
|
|
9
9
|
testIdentifier: string;
|
package/dist/processing.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { LitElement, nothing } from 'lit';
|
|
3
|
-
import { b as QtiRuleBase } from './qti-rule-base.d-
|
|
3
|
+
import { b as QtiRuleBase } from './qti-rule-base.d-CeKP0Ooi.js';
|
|
4
4
|
import { b as ItemContext, B as BaseType, g as ResponseVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
|
|
5
5
|
import { Q as QtiExpression, a as QtiExpressionBase, T as TestContext } from './qti-expression.d-B-Cfbqlb.js';
|
|
6
6
|
import { Q as QtiConditionExpression } from './qti-condition-expression.d-B-T1NNl0.js';
|
|
@@ -69,7 +69,11 @@ declare abstract class QtiConditionElseBase extends QtiConditionBranchBase {
|
|
|
69
69
|
* remaining children are the sub-rules processed when it evaluates to true.
|
|
70
70
|
*/
|
|
71
71
|
declare abstract class QtiConditionIfBase extends QtiConditionBranchBase {
|
|
72
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Variables and base values hold a boolean as the string `'true'` or `'false'`, and `'false'` is
|
|
74
|
+
* truthy, so the condition applies only to `true` itself; `false` and NULL do not.
|
|
75
|
+
*/
|
|
76
|
+
shouldProcess(): boolean;
|
|
73
77
|
getSubRules(): QtiRule[];
|
|
74
78
|
}
|
|
75
79
|
/**
|
|
@@ -444,8 +448,8 @@ declare class QtiIsNull extends QtiExpression<boolean> {
|
|
|
444
448
|
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.exit-response
|
|
445
449
|
*
|
|
446
450
|
* No rule after it runs, at any depth. The outcomes already set are kept: a
|
|
447
|
-
* `qti-set-outcome-value` writes as it is processed,
|
|
448
|
-
*
|
|
451
|
+
* `qti-set-outcome-value` writes to the run's working copy as it is processed,
|
|
452
|
+
* and the item applies that copy once the run ends.
|
|
449
453
|
*/
|
|
450
454
|
declare class QtiExitResponse extends QtiRule {
|
|
451
455
|
process(): never;
|
package/dist/processing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-NYNL5HSR.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-TU34FFWF.js";
|
|
80
|
+
import "./chunk-O2ENNGKV.js";
|
|
81
81
|
export {
|
|
82
82
|
QtiAnd,
|
|
83
83
|
QtiAnyN,
|