@citolab/qti-components 10.0.0-next.12 → 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 +447 -412
- package/dist/base.d.ts +3 -3
- package/dist/base.js +1 -1
- package/dist/{chunk-5K5JO7OG.js → chunk-6XRNX574.js} +363 -320
- package/dist/chunk-6XRNX574.js.map +1 -0
- package/dist/{chunk-AVZRY5SQ.js → chunk-BZPMN57E.js} +2 -2
- package/dist/{chunk-YOCOLMGB.js → chunk-C7SYDLMG.js} +197 -93
- package/dist/chunk-C7SYDLMG.js.map +1 -0
- package/dist/{chunk-OHRAG2UM.js → chunk-CCI3QMQA.js} +53 -16
- package/dist/chunk-CCI3QMQA.js.map +1 -0
- package/dist/{chunk-RWMY7KRT.js → chunk-HGKLF7SP.js} +2 -2
- package/dist/{chunk-AJ5U5KXR.js → chunk-LEF7AAYZ.js} +2 -2
- package/dist/{chunk-O76BOKAP.js → chunk-MP2SUN7J.js} +199 -90
- package/dist/chunk-MP2SUN7J.js.map +1 -0
- package/dist/{chunk-M7X6TWSX.js → chunk-NYNL5HSR.js} +2 -2
- package/dist/{chunk-T7YSBBAA.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-PLP3YX6C.js → chunk-S5GLISQA.js} +2 -2
- package/dist/{chunk-XXJAE6AP.js → chunk-SWNFCQ4G.js} +3 -3
- package/dist/{chunk-LCGPLQLE.js → chunk-TU34FFWF.js} +8 -3
- package/dist/chunk-TU34FFWF.js.map +1 -0
- package/dist/{config.context.d-BvU9r-Mg.d.ts → config.context.d-BniMHSBB.d.ts} +3 -2
- package/dist/corrections.d.ts +17 -7
- package/dist/corrections.js +8 -8
- package/dist/elements.d.ts +54 -12
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +6 -6
- package/dist/index.js +15 -13
- package/dist/interactions.d.ts +17 -5
- package/dist/interactions.js +3 -3
- package/dist/item.css +69 -24
- package/dist/item.d.ts +3 -3
- 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 +323 -108
- package/dist/{qti-item.d-B1gffYCL.d.ts → qti-item.d-BqWYBdV2.d.ts} +1 -1
- package/dist/{qti-rule-base.d-Bdzg8eGH.d.ts → qti-rule-base.d-CeKP0Ooi.d.ts} +2 -2
- package/dist/{qti-test.d-D5C7W8Lg.d.ts → qti-test.d-C0I1BIdH.d.ts} +58 -6
- package/dist/{qti-text-entry-interaction.d-CU-fAAD1.d.ts → qti-text-entry-interaction.d-V4sWE9TO.d.ts} +37 -9
- package/dist/{record.d-wB9uYs-j.d.ts → record.d-C6m0Y4xr.d.ts} +1 -1
- package/dist/test.d.ts +8 -5
- package/dist/test.js +7 -5
- package/package.json +10 -10
- package/dist/chunk-5K5JO7OG.js.map +0 -1
- package/dist/chunk-LCGPLQLE.js.map +0 -1
- package/dist/chunk-O76BOKAP.js.map +0 -1
- package/dist/chunk-OHRAG2UM.js.map +0 -1
- package/dist/chunk-T7YSBBAA.js.map +0 -1
- package/dist/chunk-YKXVAXSI.js +0 -7
- package/dist/chunk-YKXVAXSI.js.map +0 -1
- package/dist/chunk-YOCOLMGB.js.map +0 -1
- /package/dist/{chunk-AVZRY5SQ.js.map → chunk-BZPMN57E.js.map} +0 -0
- /package/dist/{chunk-RWMY7KRT.js.map → chunk-HGKLF7SP.js.map} +0 -0
- /package/dist/{chunk-AJ5U5KXR.js.map → chunk-LEF7AAYZ.js.map} +0 -0
- /package/dist/{chunk-M7X6TWSX.js.map → chunk-NYNL5HSR.js.map} +0 -0
- /package/dist/{chunk-PLP3YX6C.js.map → chunk-S5GLISQA.js.map} +0 -0
- /package/dist/{chunk-XXJAE6AP.js.map → chunk-SWNFCQ4G.js.map} +0 -0
package/dist/corrections.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { I as Interaction } from './record.d-
|
|
1
|
+
import { I as Interaction } from './record.d-C6m0Y4xr.js';
|
|
2
2
|
import { R as ResponseValue } from './response.d-_8y4kjGP.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
|
-
import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, C as Choice, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-
|
|
5
|
+
import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, C as Choice, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-V4sWE9TO.js';
|
|
6
6
|
import { QtiAssessmentItem } from './elements.js';
|
|
7
|
-
import { Q as QtiItem } from './qti-item.d-
|
|
7
|
+
import { Q as QtiItem } from './qti-item.d-BqWYBdV2.js';
|
|
8
8
|
import { V as View, C as ComputedItemContext } from './session.context.d-DW09Lrie.js';
|
|
9
|
-
import { l as QtiTest, q as TestCheckItem, v as TestNavigation } from './qti-test.d-
|
|
9
|
+
import { l as QtiTest, q as TestCheckItem, v as TestNavigation } from './qti-test.d-C0I1BIdH.js';
|
|
10
10
|
import { a as ComputedItem, C as ComputedContext } from './computed.types.d-IXACuBr7.js';
|
|
11
|
-
import './config.context.d-
|
|
11
|
+
import './config.context.d-BniMHSBB.js';
|
|
12
12
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
13
13
|
import './item.types.d-DuVR0ZVK.js';
|
|
14
14
|
import './qti.context.d-CejJMlfZ.js';
|
|
15
15
|
import 'lit/directives/ref.js';
|
|
16
16
|
import './qti-feedback.d-DbzPSJuK.js';
|
|
17
|
-
import './qti-rule-base.d-
|
|
17
|
+
import './qti-rule-base.d-CeKP0Ooi.js';
|
|
18
18
|
import './qti-transform-test.d-BL7GGFJj.js';
|
|
19
19
|
import './qti-expression.d-B-Cfbqlb.js';
|
|
20
20
|
import '@heximal/templates';
|
|
@@ -241,12 +241,22 @@ declare global {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
*
|
|
244
|
+
* A button that shows and hides the correct response of the active item. Put it inside
|
|
245
|
+
* `<test-navigation>`: it reads the active item from there, and it is disabled when that item
|
|
246
|
+
* declares no correct response or mapping. It switches back to "show" when the candidate moves on.
|
|
247
|
+
*
|
|
248
|
+
* Needs the corrections build (`@citolab/qti-components/corrections`), whose `<test-navigation>`
|
|
249
|
+
* passes the request to the active item's `showCorrectResponse(show)`.
|
|
250
|
+
*
|
|
251
|
+
* @customElement test-show-correct-response
|
|
252
|
+
* @fires test-show-correct-response - `detail` is `true` to show the correct response, `false` to hide it.
|
|
245
253
|
*/
|
|
246
254
|
declare class TestShowCorrectResponse extends LitElement {
|
|
247
255
|
#private;
|
|
248
256
|
computedContext?: ComputedContext;
|
|
249
257
|
static styles: lit.CSSResult;
|
|
258
|
+
constructor();
|
|
259
|
+
connectedCallback(): void;
|
|
250
260
|
shown: boolean;
|
|
251
261
|
disabled: boolean;
|
|
252
262
|
showCorrectText: string;
|
package/dist/corrections.js
CHANGED
|
@@ -34,28 +34,28 @@ import {
|
|
|
34
34
|
TestNavigationCorrection,
|
|
35
35
|
TestShowCorrectResponse,
|
|
36
36
|
correctionPart
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-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,18 +1,18 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestBookmark, q as TestCheckItem, r as TestContainer, s as TestEndAttempt, t as TestItemLink, u as TestItemToSpeech, v as TestNavigation, w as TestNext, x as TestPrev, y as TestPrintContext, z as
|
|
1
|
+
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestBookmark, q as TestCheckItem, r as TestContainer, s as TestEndAttempt, t as TestItemLink, u as TestItemToSpeech, v as TestNavigation, w as TestNext, x as TestPrev, y as TestPrintContext, z as TestPrintState, A as TestPrintVariables, B as TestScoringButtons, C as TestScoringFeedback, D as TestSectionLink, E as TestStamp, F as TestSubmit, G as TestTtsNext, H as TestTtsPause, J as TestTtsPick, K as TestTtsPlay, L as TestTtsPrev, M as TestTtsResume, N as TestTtsStop, O as TestView, P as TestViewToggle, R as bookmarkedItems } from './qti-test.d-C0I1BIdH.js';
|
|
2
2
|
export { IMyQtiTest, IQtiTest, ITestProcessingMixin, QTI_TEST_STATE_VERSION, QtiTestPluginState, QtiTestState, QtiTestStateItem, QtiTestStateSession, QtiTestStateValue, pluginElements, pluginState, ttsElements } from './test.js';
|
|
3
|
-
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-
|
|
3
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-BqWYBdV2.js';
|
|
4
4
|
export { ItemViewMixin } from './item.js';
|
|
5
5
|
export { PUBLIC_ITEM_EVENTS, PublicEventDeclaration, PublicItemEventMap, PublicItemEventName, QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing, RubricPlacement, dispatchDeclared, dispatchPublic, listenDeclared, listenPublic } from './elements.js';
|
|
6
6
|
export { QtiCustomInteraction, QtiEndAttemptInteraction, QtiMediaInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiUploadInteraction, qtiInteractionElements } from './interactions.js';
|
|
7
|
-
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-
|
|
7
|
+
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-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';
|
|
11
11
|
export { CustomOperator, CustomOperatorValue, CustomStateSetShim, CustomStateSupport, IsNullOrUndefined, ScoringHelper, boxSizing, classifyCustomStateSupport, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, getCustomOperator, installCustomStateSetFallback, itemContext, registerCustomOperator, removeDoubleSlashes, unregisterCustomOperator, validationMessage } from './base.js';
|
|
12
12
|
export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-DW09Lrie.js';
|
|
13
13
|
export { C as ComputedContext, a as ComputedItem } from './computed.types.d-IXACuBr7.js';
|
|
14
|
-
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-
|
|
15
|
-
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, i as inferRecordFieldBaseType, c as interactionContext, d as isRecordValue, r as readRecordFieldValues } from './record.d-
|
|
14
|
+
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BniMHSBB.js';
|
|
15
|
+
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, i as inferRecordFieldBaseType, c as interactionContext, d as isRecordValue, r as readRecordFieldValues } from './record.d-C6m0Y4xr.js';
|
|
16
16
|
export { B as BaseType, C as Calculate, a as Cardinality, I as InterpolationTableEntry, b as ItemContext, M as Multiple, O as Ordered, c as OutcomeVariable, Q as QtiAreaMapEntry, d as QtiAreaMapping, e as QtiMapEntry, f as QtiMapping, R as ResponseInteraction, g as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, h as VariableValue, i as areaShape, j as directedPair, k as float, l as integer, m as itemContextVariables } from './item.types.d-DuVR0ZVK.js';
|
|
17
17
|
export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
18
18
|
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-B-Cfbqlb.js';
|
|
@@ -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,
|
|
@@ -63,6 +63,7 @@ import {
|
|
|
63
63
|
TestNext,
|
|
64
64
|
TestPrev,
|
|
65
65
|
TestPrintContext,
|
|
66
|
+
TestPrintState,
|
|
66
67
|
TestPrintVariables,
|
|
67
68
|
TestScoringButtons,
|
|
68
69
|
TestScoringFeedback,
|
|
@@ -82,8 +83,8 @@ import {
|
|
|
82
83
|
pluginElements,
|
|
83
84
|
pluginState,
|
|
84
85
|
ttsElements
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import "./chunk-
|
|
86
|
+
} from "./chunk-6XRNX574.js";
|
|
87
|
+
import "./chunk-HGKLF7SP.js";
|
|
87
88
|
import {
|
|
88
89
|
PUBLIC_ITEM_EVENTS,
|
|
89
90
|
QtiAssessmentItem,
|
|
@@ -110,8 +111,8 @@ import {
|
|
|
110
111
|
dispatchPublic,
|
|
111
112
|
listenDeclared,
|
|
112
113
|
listenPublic
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import "./chunk-
|
|
114
|
+
} from "./chunk-C7SYDLMG.js";
|
|
115
|
+
import "./chunk-LEF7AAYZ.js";
|
|
115
116
|
import {
|
|
116
117
|
QtiAssociableHotspot,
|
|
117
118
|
QtiAssociateInteraction,
|
|
@@ -148,15 +149,15 @@ import {
|
|
|
148
149
|
inlineScriptText,
|
|
149
150
|
inlineStyleText,
|
|
150
151
|
qtiInteractionElements
|
|
151
|
-
} from "./chunk-
|
|
152
|
-
import "./chunk-
|
|
152
|
+
} from "./chunk-MP2SUN7J.js";
|
|
153
|
+
import "./chunk-BZPMN57E.js";
|
|
153
154
|
import {
|
|
154
155
|
ItemContainer,
|
|
155
156
|
ItemPrintVariables,
|
|
156
157
|
ItemViewMixin,
|
|
157
158
|
QtiItem
|
|
158
|
-
} from "./chunk-
|
|
159
|
-
import "./chunk-
|
|
159
|
+
} from "./chunk-SWNFCQ4G.js";
|
|
160
|
+
import "./chunk-Q4MJCEDE.js";
|
|
160
161
|
import "./chunk-4DB4SC5K.js";
|
|
161
162
|
import {
|
|
162
163
|
getItemByUri,
|
|
@@ -167,7 +168,7 @@ import {
|
|
|
167
168
|
qtiTransformManifest,
|
|
168
169
|
qtiTransformTest
|
|
169
170
|
} from "./chunk-TLAVOBEM.js";
|
|
170
|
-
import "./chunk-
|
|
171
|
+
import "./chunk-NYNL5HSR.js";
|
|
171
172
|
import {
|
|
172
173
|
QtiAnd,
|
|
173
174
|
QtiAnyN,
|
|
@@ -245,7 +246,7 @@ import {
|
|
|
245
246
|
QtiVariable,
|
|
246
247
|
qtiAndMixin,
|
|
247
248
|
qtiSubtractMixin
|
|
248
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-TU34FFWF.js";
|
|
249
250
|
import {
|
|
250
251
|
CustomStateSetShim,
|
|
251
252
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -293,7 +294,7 @@ import {
|
|
|
293
294
|
testContext,
|
|
294
295
|
unregisterCustomOperator,
|
|
295
296
|
validationMessage
|
|
296
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-O2ENNGKV.js";
|
|
297
298
|
export {
|
|
298
299
|
CandidateCorrectionMixin,
|
|
299
300
|
ChoiceCorrectionMixin,
|
|
@@ -498,6 +499,7 @@ export {
|
|
|
498
499
|
TestNext,
|
|
499
500
|
TestPrev,
|
|
500
501
|
TestPrintContext,
|
|
502
|
+
TestPrintState,
|
|
501
503
|
TestPrintVariables,
|
|
502
504
|
TestScoringButtons,
|
|
503
505
|
TestScoringFeedback,
|
package/dist/interactions.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, B as QtiPortableCustomInteractionTest, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction, Q as QtiAssociableHotspot, d as QtiGap, e as QtiGapImg, g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, o as QtiInlineChoice, t as QtiPrompt, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice } from './qti-text-entry-interaction.d-
|
|
2
|
-
export { O as Orientation, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-
|
|
1
|
+
import { a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, B as QtiPortableCustomInteractionTest, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction, Q as QtiAssociableHotspot, d as QtiGap, e as QtiGapImg, g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, o as QtiInlineChoice, t as QtiPrompt, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice } from './qti-text-entry-interaction.d-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
|
-
import { I as Interaction } from './record.d-
|
|
5
|
+
import { I as Interaction } from './record.d-C6m0Y4xr.js';
|
|
6
6
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
7
|
-
import './config.context.d-
|
|
7
|
+
import './config.context.d-BniMHSBB.js';
|
|
8
8
|
import './item.types.d-DuVR0ZVK.js';
|
|
9
9
|
import './qti.context.d-CejJMlfZ.js';
|
|
10
10
|
import 'lit/directives/ref.js';
|
|
@@ -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
|
@@ -1452,6 +1452,9 @@
|
|
|
1452
1452
|
@layer qti-base{
|
|
1453
1453
|
|
|
1454
1454
|
.qti-layout-row {
|
|
1455
|
+
/* The columns stack when the row is narrow, not the viewport: an item in a side-by-side player or a
|
|
1456
|
+
* narrow pane collapses too. The row is the container, so it is never shrink-to-fit (width: 100%). */
|
|
1457
|
+
container-type: inline-size;
|
|
1455
1458
|
display: flex;
|
|
1456
1459
|
flex-wrap: wrap;
|
|
1457
1460
|
width: 100%;
|
|
@@ -1563,7 +1566,7 @@
|
|
|
1563
1566
|
margin-left: 93.6170212766%;
|
|
1564
1567
|
}
|
|
1565
1568
|
|
|
1566
|
-
@
|
|
1569
|
+
@container (width <= 767px) {
|
|
1567
1570
|
[class*='qti-layout-col'] {
|
|
1568
1571
|
width: 100%;
|
|
1569
1572
|
}
|
|
@@ -1579,7 +1582,7 @@
|
|
|
1579
1582
|
* not worth the file count.
|
|
1580
1583
|
*
|
|
1581
1584
|
* `interactions.brand` and `overrides` hold nothing here ON PURPOSE — they are the extension points
|
|
1582
|
-
* a brand sheet writes into (
|
|
1585
|
+
* a brand sheet writes into (a host's own brand CSS; the Storybook presets need none, being tokens).
|
|
1583
1586
|
* They must stay DECLARED even while empty: a layer first created by a consumer's own `@layer`
|
|
1584
1587
|
* block is appended after every declared layer, which would put brand paint above the state and
|
|
1585
1588
|
* correction paint it is meant to sit under. Deleting the two names moved 7 of the 17 VRT baselines.
|
|
@@ -1962,8 +1965,8 @@
|
|
|
1962
1965
|
* THE body text colour — the foreground half of the --qti-bg / --qti-fg pair.
|
|
1963
1966
|
*
|
|
1964
1967
|
* `inherit`, deliberately: the base theme does not impose a text colour. What a candidate reads
|
|
1965
|
-
* is the host page's, and a brand that wants its own sets this token
|
|
1966
|
-
* #3e144e). A base theme that cannot pick the colour also cannot pick a failing one.
|
|
1968
|
+
* is the host page's, and a brand that wants its own sets this token, or paints the page in its
|
|
1969
|
+
* base-content colour as the Storybook presets do (Kennisnet's #3e144e reaches the text that way). A base theme that cannot pick the colour also cannot pick a failing one.
|
|
1967
1970
|
*
|
|
1968
1971
|
* This is a FIX that changes nothing, which is the point. It read `var(#aaaaaa)` — a value
|
|
1969
1972
|
* wrapped in var() by mistake in 925bdf14. var() takes a custom-property name, so `#aaaaaa` made
|
|
@@ -1989,7 +1992,7 @@
|
|
|
1989
1992
|
* meet the 3:1 WCAG asks of a field's edge. It was the primary colour, which drew every field,
|
|
1990
1993
|
* table and drop in the brand's blue at rest; the primary now marks only what is active or
|
|
1991
1994
|
* selected (--qti-border-active). A brand that wants its colour on every edge sets this token,
|
|
1992
|
-
* as
|
|
1995
|
+
* as the Kennisnet preset does.
|
|
1993
1996
|
*/
|
|
1994
1997
|
--qti-border-color: var(
|
|
1995
1998
|
--cito-color-border,
|
|
@@ -2003,10 +2006,11 @@
|
|
|
2003
2006
|
without the theme a well got its padding and nothing else. Filled from the theme's own
|
|
2004
2007
|
tokens: a brand that restyles its borders restyles the well and the bordered box with them.
|
|
2005
2008
|
A well is a tinted surface inside the theme's border (§1.1.6.2: border plus background, the
|
|
2006
|
-
background chosen by the platform); base-200 is the theme's tint for that
|
|
2009
|
+
background chosen by the platform); base-200 is the theme's tint for that, and a brand that
|
|
2010
|
+
puts its items on a coloured page sets --cito-color-well (Kennisnet: white, like its cards). */
|
|
2007
2011
|
--table-border-color: var(--qti-border-color);
|
|
2008
2012
|
--foreground: var(--qti-color-base-content);
|
|
2009
|
-
--well-bg: var(--qti-color-base-200);
|
|
2013
|
+
--well-bg: var(--cito-color-well, var(--qti-color-base-200)); /* t1 input: --cito-color-well, optional */
|
|
2010
2014
|
--well-border: var(--qti-border);
|
|
2011
2015
|
--well-box-shadow: none;
|
|
2012
2016
|
|
|
@@ -2047,14 +2051,19 @@
|
|
|
2047
2051
|
* Depth, worked out from --cito-depth (tier 1).
|
|
2048
2052
|
*
|
|
2049
2053
|
* --qti-drag-lift a chip at rest: a hard shadow under it, as tall as two borders. At
|
|
2050
|
-
* depth 0 its colour mixes to nothing, so the chip is flat.
|
|
2054
|
+
* depth 0 its colour mixes to nothing, so the chip is flat. A theme sets
|
|
2055
|
+
* its own with --cito-shadow-chip (Kennisnet: a taller lift in its brand
|
|
2056
|
+
* colour).
|
|
2051
2057
|
* --qti-drag-elevation a chip in flight, at any depth: picked up is always off the page. A
|
|
2052
2058
|
* theme sets its own with --cito-shadow-drag (`none` for flat).
|
|
2053
2059
|
* --qti-hover-mix how much base-content a hover mixes into a fill.
|
|
2054
2060
|
* --qti-active-mix how much a press mixes in: twice the hover, so a press reads as one.
|
|
2055
2061
|
*/
|
|
2056
|
-
--qti-drag-lift:
|
|
2057
|
-
|
|
2062
|
+
--qti-drag-lift: var(
|
|
2063
|
+
--cito-shadow-chip,
|
|
2064
|
+
0 calc(2 * var(--qti-border-width)) 0
|
|
2065
|
+
color-mix(in oklab, var(--qti-color-base-content) calc(var(--qti-depth) * 20%), transparent)
|
|
2066
|
+
); /* t1 input: --cito-shadow-chip, optional */
|
|
2058
2067
|
--qti-drag-elevation: var(
|
|
2059
2068
|
--cito-shadow-drag,
|
|
2060
2069
|
0 var(--qti-spacing) calc(var(--qti-spacing) * 1.5)
|
|
@@ -2067,11 +2076,19 @@
|
|
|
2067
2076
|
/* A chip's resting fill: the tier-1 chip colour. `press` reads --qti-<role>-fill, so a pressed
|
|
2068
2077
|
chip darkens from the chip colour; other roles fall back to the component surface. */
|
|
2069
2078
|
--qti-drag-fill: var(--qti-color-chip);
|
|
2079
|
+
/* An order interaction's PLACED chip, when a brand gives it a look of its own: Kennisnet inverts
|
|
2080
|
+
it (a white chip with dark text and a border on its filled bank) so a dropped answer reads as
|
|
2081
|
+
settled. Optional and unset by default — then a placed order chip is the same chip as in the
|
|
2082
|
+
bank. Unset, these compute to the guaranteed-invalid value, and the role slots they feed fall
|
|
2083
|
+
back to the chip's own look. */
|
|
2084
|
+
--qti-order-placed-fill: var(--cito-color-order-placed); /* t1 input, optional */
|
|
2085
|
+
--qti-order-placed-color: var(--cito-color-order-placed-content); /* t1 input, optional */
|
|
2086
|
+
--qti-order-placed-border-color: var(--cito-color-order-placed-border); /* t1 input, optional */
|
|
2070
2087
|
--qti-active-mix: 16%; /* a press: the same mix, twice as far */
|
|
2071
2088
|
|
|
2072
2089
|
/* Interaction icon masks. Kept in the QTI namespace so the theme has no FontAwesome runtime
|
|
2073
|
-
dependency. One vocabulary, kept together
|
|
2074
|
-
|
|
2090
|
+
dependency. One vocabulary, kept together. --qti-times-mask is also the inline choice's clear
|
|
2091
|
+
glyph (qti-inline-choice-interaction.styles.ts). */
|
|
2075
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");
|
|
2076
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");
|
|
2077
2094
|
/* fa-minus. The third verdict glyph, beside the tick and the cross: neither right nor wrong.
|
|
@@ -4589,6 +4606,16 @@
|
|
|
4589
4606
|
* above it. Two spacing tokens for one box is the whole bug — the vocabulary says pick one and
|
|
4590
4607
|
* spend it whole (see the CONTRACT note on --qti-padding-box / -inline / --qti-gap).
|
|
4591
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
|
+
*/
|
|
4592
4619
|
qti-inline-choice-interaction::part(menu) {
|
|
4593
4620
|
background-color: var(--menu-background-color, var(--qti-component-background-color));
|
|
4594
4621
|
background-image: var(--menu-background-image, var(--qti-component-background-image));
|
|
@@ -4602,6 +4629,7 @@
|
|
|
4602
4629
|
filter: var(--menu-filter, var(--qti-component-filter));
|
|
4603
4630
|
border-radius: var(--menu-border-radius, var(--qti-radius-box));
|
|
4604
4631
|
padding: 0;
|
|
4632
|
+
margin-block-start: calc(-1 * var(--field-border-width, var(--qti-component-border-width)));
|
|
4605
4633
|
}
|
|
4606
4634
|
|
|
4607
4635
|
/*
|
|
@@ -4629,18 +4657,18 @@
|
|
|
4629
4657
|
border-end-end-radius: 0;
|
|
4630
4658
|
}
|
|
4631
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. */
|
|
4632
4662
|
qti-inline-choice-interaction::part(menu):popover-open {
|
|
4633
|
-
border-
|
|
4634
|
-
border-start-end-radius: 0;
|
|
4663
|
+
border-radius: 0;
|
|
4635
4664
|
}
|
|
4636
4665
|
|
|
4637
4666
|
/* ── Option rows ─────────────────────────────────────────────────────────── */
|
|
4638
4667
|
qti-inline-choice-interaction::part(option) {
|
|
4639
4668
|
padding: var(--qti-padding-box);
|
|
4640
4669
|
border: 0;
|
|
4641
|
-
/* Square, because a row
|
|
4642
|
-
|
|
4643
|
-
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. */
|
|
4644
4672
|
border-radius: 0;
|
|
4645
4673
|
background: transparent;
|
|
4646
4674
|
cursor: pointer;
|
|
@@ -5706,7 +5734,8 @@
|
|
|
5706
5734
|
outline-offset: var(--qti-focus-offset);
|
|
5707
5735
|
}
|
|
5708
5736
|
/* A placed chip, and the editor's fake-drag projected into the drop-target shadow. Its hover,
|
|
5709
|
-
and ring are in the states layer below.
|
|
5737
|
+
and ring are in the states layer below. The three --drag-* slots take a brand's placed-chip
|
|
5738
|
+
look (--cito-color-order-placed*); unset, they are invalid and the chip keeps its own. */
|
|
5710
5739
|
qti-order-interaction::part(drag) {
|
|
5711
5740
|
/* Structural — the load-bearing box, never state-switched (layout-invariance contract).
|
|
5712
5741
|
box-sizing is deliberate: the clone is appended to document.body outside reset.css's
|
|
@@ -5768,6 +5797,9 @@
|
|
|
5768
5797
|
card; the width stays, so a chip keeps its size whichever edge it shows. */
|
|
5769
5798
|
border-color: var(--drag-border-color, var(--cito-color-chip-border, var(--qti-component-border-color)));
|
|
5770
5799
|
color: var(--drag-color, var(--cito-color-chip-content, inherit));
|
|
5800
|
+
--drag-background-color: var(--qti-order-placed-fill);
|
|
5801
|
+
--drag-color: var(--qti-order-placed-color);
|
|
5802
|
+
--drag-border-color: var(--qti-order-placed-border-color);
|
|
5771
5803
|
}
|
|
5772
5804
|
/* The drag's box — flex, centred, clipped — is in qti-order-interaction.styles.ts. */
|
|
5773
5805
|
qti-order-interaction::part(drag) {
|
|
@@ -5860,11 +5892,10 @@
|
|
|
5860
5892
|
|
|
5861
5893
|
/* `align-self` on a populated drop, and the drops' and drag's `overflow: visible` that let a
|
|
5862
5894
|
chip's shadow escape its column, are laid out in qti-order-interaction.styles.ts. */
|
|
5863
|
-
/* The placed order chip's INVERTED look (white fill, dark text,
|
|
5864
|
-
Kennisnet
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
like every other chip. */
|
|
5895
|
+
/* The placed order chip's INVERTED look (white fill, dark text, a border) is a brand choice —
|
|
5896
|
+
Kennisnet's — made through the --cito-color-order-placed* inputs on ::part(drag) above. In the
|
|
5897
|
+
base theme a placed chip is just the neutral chip (@mixin drag), and its corrections route
|
|
5898
|
+
through --drag-* like every other chip. */
|
|
5868
5899
|
qti-order-interaction qti-simple-choice {
|
|
5869
5900
|
/* Structural — the load-bearing box, never state-switched (layout-invariance contract).
|
|
5870
5901
|
box-sizing is deliberate: the clone is appended to document.body outside reset.css's
|
|
@@ -6810,9 +6841,23 @@ qti-slider-interaction:focus::part(knob) {
|
|
|
6810
6841
|
*/
|
|
6811
6842
|
--qti-select-point-marker-color: var(--cito-color-marker, var(--qti-primary));
|
|
6812
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
|
+
|
|
6813
6859
|
/* One selector, not nested under `&::part(point)`: that compiled to `:is(…::part(point))`,
|
|
6814
6860
|
which no browser accepts, so the ring never matched. */
|
|
6815
|
-
}
|
|
6816
6861
|
qti-select-point-interaction::part(point):focus {
|
|
6817
6862
|
outline: var(--qti-focus-border-width) solid var(--qti-focus-color);
|
|
6818
6863
|
outline-offset: var(--qti-focus-offset);
|