@citolab/qti-components 10.0.0-next.14 → 10.0.0-next.15
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 +347 -244
- package/dist/base.d.ts +3 -3
- package/dist/base.js +1 -1
- package/dist/{chunk-NYNL5HSR.js → chunk-32PI7KWX.js} +2 -2
- package/dist/{chunk-TU34FFWF.js → chunk-5AJZGRWI.js} +2 -2
- package/dist/{chunk-LFVPS7KB.js → chunk-DAOLVUTR.js} +2 -2
- package/dist/{chunk-LEF7AAYZ.js → chunk-F553IZPL.js} +2 -2
- package/dist/{chunk-MP2SUN7J.js → chunk-G2EIC7H2.js} +30 -23
- package/dist/chunk-G2EIC7H2.js.map +1 -0
- package/dist/{chunk-S5GLISQA.js → chunk-HT3LSWXL.js} +2 -2
- package/dist/{chunk-O2ENNGKV.js → chunk-IM5AKPIJ.js} +32 -5
- package/dist/chunk-IM5AKPIJ.js.map +1 -0
- package/dist/{chunk-HGKLF7SP.js → chunk-IWNRQVNW.js} +2 -2
- package/dist/{chunk-TLAVOBEM.js → chunk-LORYM4U2.js} +120 -1
- package/dist/chunk-LORYM4U2.js.map +1 -0
- package/dist/{chunk-6XRNX574.js → chunk-MIQZBDTB.js} +5 -5
- package/dist/{chunk-C7SYDLMG.js → chunk-QT7WQXCS.js} +42 -4
- package/dist/chunk-QT7WQXCS.js.map +1 -0
- package/dist/chunk-RNLSNH4N.js +7 -0
- package/dist/chunk-RNLSNH4N.js.map +1 -0
- package/dist/{chunk-CCI3QMQA.js → chunk-URYYGVTA.js} +6 -6
- package/dist/{chunk-BZPMN57E.js → chunk-WIUPAUJV.js} +2 -2
- package/dist/{chunk-SWNFCQ4G.js → chunk-XY5DHYIH.js} +4 -4
- package/dist/{config.context.d-BniMHSBB.d.ts → config.context.d-CCqlJXpE.d.ts} +2 -1
- package/dist/corrections.d.ts +7 -7
- package/dist/corrections.js +9 -9
- package/dist/elements.d.ts +30 -2
- package/dist/elements.js +4 -4
- package/dist/index.d.ts +8 -8
- package/dist/index.js +15 -15
- package/dist/interactions.d.ts +4 -4
- package/dist/interactions.js +3 -3
- package/dist/item.css +99 -10
- package/dist/item.d.ts +3 -3
- package/dist/item.js +5 -5
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +2 -2
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +46 -18
- package/dist/{qti-feedback.d-DbzPSJuK.d.ts → qti-feedback.d-GAqMqAt6.d.ts} +7 -0
- package/dist/{qti-item.d-BqWYBdV2.d.ts → qti-item.d-pFcNk0th.d.ts} +1 -1
- package/dist/{qti-test.d-C0I1BIdH.d.ts → qti-test.d-BjhVQnQy.d.ts} +2 -2
- package/dist/{qti-text-entry-interaction.d-V4sWE9TO.d.ts → qti-text-entry-interaction.d-DECzpIzi.d.ts} +19 -9
- package/dist/{qti-transform-test.d-BL7GGFJj.d.ts → qti-transform-test.d-Bb9vnLzP.d.ts} +1 -0
- package/dist/{record.d-C6m0Y4xr.d.ts → record.d-CljDLwRz.d.ts} +1 -1
- package/dist/test.d.ts +5 -5
- package/dist/test.js +6 -6
- package/dist/transformers.d.ts +1 -1
- package/dist/transformers.js +1 -1
- package/package.json +10 -10
- package/dist/chunk-C7SYDLMG.js.map +0 -1
- package/dist/chunk-MP2SUN7J.js.map +0 -1
- package/dist/chunk-O2ENNGKV.js.map +0 -1
- package/dist/chunk-Q4MJCEDE.js +0 -7
- package/dist/chunk-Q4MJCEDE.js.map +0 -1
- package/dist/chunk-TLAVOBEM.js.map +0 -1
- /package/dist/{chunk-NYNL5HSR.js.map → chunk-32PI7KWX.js.map} +0 -0
- /package/dist/{chunk-TU34FFWF.js.map → chunk-5AJZGRWI.js.map} +0 -0
- /package/dist/{chunk-LFVPS7KB.js.map → chunk-DAOLVUTR.js.map} +0 -0
- /package/dist/{chunk-LEF7AAYZ.js.map → chunk-F553IZPL.js.map} +0 -0
- /package/dist/{chunk-S5GLISQA.js.map → chunk-HT3LSWXL.js.map} +0 -0
- /package/dist/{chunk-HGKLF7SP.js.map → chunk-IWNRQVNW.js.map} +0 -0
- /package/dist/{chunk-6XRNX574.js.map → chunk-MIQZBDTB.js.map} +0 -0
- /package/dist/{chunk-CCI3QMQA.js.map → chunk-URYYGVTA.js.map} +0 -0
- /package/dist/{chunk-BZPMN57E.js.map → chunk-WIUPAUJV.js.map} +0 -0
- /package/dist/{chunk-SWNFCQ4G.js.map → chunk-XY5DHYIH.js.map} +0 -0
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
QtiTest,
|
|
3
3
|
TestCheckItem,
|
|
4
4
|
TestNavigation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MIQZBDTB.js";
|
|
6
6
|
import {
|
|
7
7
|
QtiAssessmentItem
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QT7WQXCS.js";
|
|
9
9
|
import {
|
|
10
10
|
QtiAssociateInteraction,
|
|
11
11
|
QtiChoiceInteraction,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
QtiSimpleChoice,
|
|
29
29
|
QtiSliderInteraction,
|
|
30
30
|
QtiTextEntryInteraction
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-G2EIC7H2.js";
|
|
32
32
|
import {
|
|
33
33
|
QtiItem
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XY5DHYIH.js";
|
|
35
35
|
import {
|
|
36
36
|
watch
|
|
37
37
|
} from "./chunk-4DB4SC5K.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
computedItemContext,
|
|
42
42
|
configContext,
|
|
43
43
|
responseAttributeConverter
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IM5AKPIJ.js";
|
|
45
45
|
|
|
46
46
|
// ../qti-corrections/dist/components/item-correct-response-mode/item-correct-response-mode.js
|
|
47
47
|
import { html, LitElement } from "lit";
|
|
@@ -1701,4 +1701,4 @@ export {
|
|
|
1701
1701
|
QtiTestCorrection,
|
|
1702
1702
|
TestCheckItemCorrection
|
|
1703
1703
|
};
|
|
1704
|
-
//# sourceMappingURL=chunk-
|
|
1704
|
+
//# sourceMappingURL=chunk-URYYGVTA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
qtiItemElements
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XY5DHYIH.js";
|
|
4
4
|
|
|
5
5
|
// ../qti-item/dist/register.js
|
|
6
6
|
for (const { tag, ctor } of qtiItemElements) {
|
|
@@ -8,4 +8,4 @@ for (const { tag, ctor } of qtiItemElements) {
|
|
|
8
8
|
customElements.define(tag, ctor);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-WIUPAUJV.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
item_css_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RNLSNH4N.js";
|
|
4
4
|
import {
|
|
5
5
|
watch
|
|
6
6
|
} from "./chunk-4DB4SC5K.js";
|
|
7
7
|
import {
|
|
8
8
|
qtiTransformItem
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LORYM4U2.js";
|
|
10
10
|
import {
|
|
11
11
|
computedItemContext,
|
|
12
12
|
configContext,
|
|
13
13
|
qtiContext
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IM5AKPIJ.js";
|
|
15
15
|
|
|
16
16
|
// ../qti-item/dist/components/item-container/item-container.js
|
|
17
17
|
import { consume } from "@lit/context";
|
|
@@ -349,4 +349,4 @@ export {
|
|
|
349
349
|
QtiItem,
|
|
350
350
|
qtiItemElements
|
|
351
351
|
};
|
|
352
|
-
//# sourceMappingURL=chunk-
|
|
352
|
+
//# sourceMappingURL=chunk-XY5DHYIH.js.map
|
|
@@ -57,7 +57,8 @@ interface ConfigContext {
|
|
|
57
57
|
validationDisplayMode?: ValidationDisplayMode;
|
|
58
58
|
/**
|
|
59
59
|
* If true, disables further user actions when an interaction reaches its configured maximum.
|
|
60
|
-
* Applies to both choice-based and drag/drop interactions.
|
|
60
|
+
* Applies to both choice-based and drag/drop interactions. Defaults to false: QTI lets the candidate
|
|
61
|
+
* go over the maximum and reports it with the max-selections message.
|
|
61
62
|
*/
|
|
62
63
|
disableAfterMaxReached?: boolean;
|
|
63
64
|
/**
|
package/dist/corrections.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { I as Interaction } from './record.d-
|
|
1
|
+
import { I as Interaction } from './record.d-CljDLwRz.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-DECzpIzi.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-pFcNk0th.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-BjhVQnQy.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-CCqlJXpE.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
|
-
import './qti-feedback.d-
|
|
16
|
+
import './qti-feedback.d-GAqMqAt6.js';
|
|
17
17
|
import './qti-rule-base.d-CeKP0Ooi.js';
|
|
18
|
-
import './qti-transform-test.d-
|
|
18
|
+
import './qti-transform-test.d-Bb9vnLzP.js';
|
|
19
19
|
import './qti-expression.d-B-Cfbqlb.js';
|
|
20
20
|
import '@heximal/templates';
|
|
21
21
|
|
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-URYYGVTA.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-MIQZBDTB.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-QT7WQXCS.js";
|
|
44
44
|
import {
|
|
45
45
|
qtiInteractionElements
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-G2EIC7H2.js";
|
|
47
47
|
import {
|
|
48
48
|
qtiItemElements
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-XY5DHYIH.js";
|
|
50
|
+
import "./chunk-RNLSNH4N.js";
|
|
51
51
|
import "./chunk-4DB4SC5K.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-LORYM4U2.js";
|
|
53
53
|
import {
|
|
54
54
|
qtiProcessingElements
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-5AJZGRWI.js";
|
|
56
56
|
import {
|
|
57
57
|
qtiBaseElements
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IM5AKPIJ.js";
|
|
59
59
|
|
|
60
60
|
// ../qti-corrections/dist/elements.js
|
|
61
61
|
var qtiCorrectionElements = [
|
package/dist/elements.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { b as ItemContext, h as VariableValue, R as ResponseInteraction, g as Re
|
|
|
2
2
|
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
|
-
import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-
|
|
5
|
+
import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-GAqMqAt6.js';
|
|
6
6
|
import { b as QtiRuleBase } from './qti-rule-base.d-CeKP0Ooi.js';
|
|
7
7
|
|
|
8
8
|
declare class QtiAssessmentItem extends LitElement {
|
|
@@ -253,6 +253,9 @@ declare global {
|
|
|
253
253
|
declare class QtiFeedbackBlock extends QtiFeedback {
|
|
254
254
|
static styles: lit.CSSResult;
|
|
255
255
|
render(): lit.TemplateResult<1>;
|
|
256
|
+
/** `cito-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
|
|
257
|
+
protected feedbackShowing(): boolean;
|
|
258
|
+
protected feedbackHiding(): boolean;
|
|
256
259
|
connectedCallback(): void;
|
|
257
260
|
}
|
|
258
261
|
declare global {
|
|
@@ -264,6 +267,9 @@ declare global {
|
|
|
264
267
|
declare class QtiFeedbackInline extends QtiFeedback {
|
|
265
268
|
static styles: lit.CSSResult;
|
|
266
269
|
render: () => lit.TemplateResult<1>;
|
|
270
|
+
/** `cito-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
|
|
271
|
+
protected feedbackShowing(): boolean;
|
|
272
|
+
protected feedbackHiding(): boolean;
|
|
267
273
|
connectedCallback(): void;
|
|
268
274
|
}
|
|
269
275
|
declare global {
|
|
@@ -297,6 +303,9 @@ declare class QtiModalFeedback extends QtiFeedback {
|
|
|
297
303
|
render(): lit.TemplateResult<1>;
|
|
298
304
|
openFeedback(): void;
|
|
299
305
|
closeFeedback(): void;
|
|
306
|
+
/** `cito-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
|
|
307
|
+
protected feedbackShowing(): boolean;
|
|
308
|
+
protected feedbackHiding(): boolean;
|
|
300
309
|
connectedCallback(): void;
|
|
301
310
|
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
302
311
|
}
|
|
@@ -529,6 +538,18 @@ interface RubricPlacement {
|
|
|
529
538
|
className: string;
|
|
530
539
|
element: Element;
|
|
531
540
|
}
|
|
541
|
+
/** The detail of `cito-feedback-show` and `cito-feedback-hide`. */
|
|
542
|
+
interface FeedbackEventDetail {
|
|
543
|
+
kind: 'block' | 'inline' | 'modal';
|
|
544
|
+
/** The feedback's `identifier`. */
|
|
545
|
+
identifier: string;
|
|
546
|
+
/** The outcome it follows (`outcome-identifier`). */
|
|
547
|
+
outcomeIdentifier: string;
|
|
548
|
+
/** The feedback element itself: read or clone its content (it stays in the DOM, hidden). */
|
|
549
|
+
element: Element;
|
|
550
|
+
/** The identifier of the item it is in, when it is in one. */
|
|
551
|
+
itemIdentifier?: string;
|
|
552
|
+
}
|
|
532
553
|
interface PublicItemEventMap {
|
|
533
554
|
'cito-item-response-changed': CustomEvent<InteractionChangedDetails>;
|
|
534
555
|
/**
|
|
@@ -542,6 +563,13 @@ interface PublicItemEventMap {
|
|
|
542
563
|
'cito-item-outcomes-changed': CustomEvent<OutcomesChangedDetails>;
|
|
543
564
|
/** Cancelable: `preventDefault()` keeps the rubric block where it is. */
|
|
544
565
|
'cito-item-rubric-placement': CustomEvent<RubricPlacement>;
|
|
566
|
+
/**
|
|
567
|
+
* Cancelable: the feedback element is about to show (its condition turned true). `preventDefault()`
|
|
568
|
+
* keeps it hidden, so the host can show the content itself. Sent once per showing.
|
|
569
|
+
*/
|
|
570
|
+
'cito-feedback-show': CustomEvent<FeedbackEventDetail>;
|
|
571
|
+
/** The condition of a feedback that was shown (or taken over by the host) turned false again. */
|
|
572
|
+
'cito-feedback-hide': CustomEvent<FeedbackEventDetail>;
|
|
545
573
|
}
|
|
546
574
|
type PublicItemEventName = keyof PublicItemEventMap;
|
|
547
575
|
declare const PUBLIC_ITEM_EVENTS: Record<PublicItemEventName, PublicEventDeclaration>;
|
|
@@ -565,4 +593,4 @@ declare function listenDeclared(target: EventTarget, declarations: Record<string
|
|
|
565
593
|
declare function dispatchPublic<K extends PublicItemEventName>(target: EventTarget, name: K, detail: PublicItemEventMap[K] extends CustomEvent<infer D> ? D : never, cancelable?: boolean): boolean;
|
|
566
594
|
declare function listenPublic<K extends PublicItemEventName>(target: EventTarget, name: K, handler: (e: PublicItemEventMap[K]) => void): void;
|
|
567
595
|
|
|
568
|
-
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 };
|
|
596
|
+
export { type FeedbackEventDetail, 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,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-IWNRQVNW.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-QT7WQXCS.js";
|
|
29
29
|
import "./chunk-4DB4SC5K.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-LORYM4U2.js";
|
|
31
|
+
import "./chunk-IM5AKPIJ.js";
|
|
32
32
|
export {
|
|
33
33
|
PUBLIC_ITEM_EVENTS,
|
|
34
34
|
QtiAssessmentItem,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
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-BjhVQnQy.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-pFcNk0th.js';
|
|
4
4
|
export { ItemViewMixin } from './item.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';
|
|
5
|
+
export { FeedbackEventDetail, 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-
|
|
8
|
-
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.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-DECzpIzi.js';
|
|
8
|
+
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-Bb9vnLzP.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-CCqlJXpE.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-CljDLwRz.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';
|
|
19
|
-
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-
|
|
19
|
+
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-GAqMqAt6.js';
|
|
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';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-HT3LSWXL.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-URYYGVTA.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-MIQZBDTB.js";
|
|
87
|
+
import "./chunk-IWNRQVNW.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-QT7WQXCS.js";
|
|
115
|
+
import "./chunk-F553IZPL.js";
|
|
116
116
|
import {
|
|
117
117
|
QtiAssociableHotspot,
|
|
118
118
|
QtiAssociateInteraction,
|
|
@@ -149,26 +149,26 @@ import {
|
|
|
149
149
|
inlineScriptText,
|
|
150
150
|
inlineStyleText,
|
|
151
151
|
qtiInteractionElements
|
|
152
|
-
} from "./chunk-
|
|
153
|
-
import "./chunk-
|
|
152
|
+
} from "./chunk-G2EIC7H2.js";
|
|
153
|
+
import "./chunk-WIUPAUJV.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-XY5DHYIH.js";
|
|
160
|
+
import "./chunk-RNLSNH4N.js";
|
|
161
161
|
import "./chunk-4DB4SC5K.js";
|
|
162
162
|
import {
|
|
163
163
|
getItemByUri,
|
|
164
164
|
getManifestInfo
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-DAOLVUTR.js";
|
|
166
166
|
import {
|
|
167
167
|
qtiTransformItem,
|
|
168
168
|
qtiTransformManifest,
|
|
169
169
|
qtiTransformTest
|
|
170
|
-
} from "./chunk-
|
|
171
|
-
import "./chunk-
|
|
170
|
+
} from "./chunk-LORYM4U2.js";
|
|
171
|
+
import "./chunk-32PI7KWX.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-5AJZGRWI.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-IM5AKPIJ.js";
|
|
298
298
|
export {
|
|
299
299
|
CandidateCorrectionMixin,
|
|
300
300
|
ChoiceCorrectionMixin,
|
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-DECzpIzi.js';
|
|
2
|
+
export { O as Orientation, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-DECzpIzi.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-CljDLwRz.js';
|
|
6
6
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
7
|
-
import './config.context.d-
|
|
7
|
+
import './config.context.d-CCqlJXpE.js';
|
|
8
8
|
import './item.types.d-DuVR0ZVK.js';
|
|
9
9
|
import './qti.context.d-CejJMlfZ.js';
|
|
10
10
|
import 'lit/directives/ref.js';
|
package/dist/interactions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-F553IZPL.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-G2EIC7H2.js";
|
|
39
39
|
import "./chunk-4DB4SC5K.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-IM5AKPIJ.js";
|
|
41
41
|
export {
|
|
42
42
|
QtiAssociableHotspot,
|
|
43
43
|
QtiAssociateInteraction,
|
package/dist/item.css
CHANGED
|
@@ -2006,11 +2006,11 @@
|
|
|
2006
2006
|
without the theme a well got its padding and nothing else. Filled from the theme's own
|
|
2007
2007
|
tokens: a brand that restyles its borders restyles the well and the bordered box with them.
|
|
2008
2008
|
A well is a tinted surface inside the theme's border (§1.1.6.2: border plus background, the
|
|
2009
|
-
background chosen by the platform)
|
|
2010
|
-
|
|
2009
|
+
background chosen by the platform). The default is a white card, for items on a light-grey
|
|
2010
|
+
page; a brand sets --cito-color-well for another fill. */
|
|
2011
2011
|
--table-border-color: var(--qti-border-color);
|
|
2012
2012
|
--foreground: var(--qti-color-base-content);
|
|
2013
|
-
--well-bg: var(--cito-color-well, var(--qti-color-base-
|
|
2013
|
+
--well-bg: var(--cito-color-well, var(--qti-color-base-100)); /* t1 input: --cito-color-well, optional */
|
|
2014
2014
|
--well-border: var(--qti-border);
|
|
2015
2015
|
--well-box-shadow: none;
|
|
2016
2016
|
|
|
@@ -2121,8 +2121,10 @@
|
|
|
2121
2121
|
* The focus ring (`@mixin foc`): one outline on `:focus-visible`, for everything. The test
|
|
2122
2122
|
* controls read the same two tokens, so a page has one ring.
|
|
2123
2123
|
*
|
|
2124
|
-
*
|
|
2125
|
-
*
|
|
2124
|
+
* Not the answer key's info blue: it must not be mistaken for the answer key. The default theme is
|
|
2125
|
+
* black and white, and the ring is its one colour: a mid blue that keeps 3:1 against both
|
|
2126
|
+
* surfaces (WCAG 1.4.11). A brand that sets --cito-color-primary gets its primary as the ring, as
|
|
2127
|
+
* before; --cito-color-focus sets the ring on its own. 2px, a hairline, so a length in px. It sits that far outside
|
|
2126
2128
|
* the box, or that far inside it for a row in a list that clips (`@mixin foc-inset`).
|
|
2127
2129
|
*
|
|
2128
2130
|
* The four --qti-light-* and --qti-dark-* tokens that used to sit here are now
|
|
@@ -2130,7 +2132,26 @@
|
|
|
2130
2132
|
* and dark theme, which is what the old names suggested and why they were mistaken for dead.
|
|
2131
2133
|
*/
|
|
2132
2134
|
--qti-focus-border-width: 2px;
|
|
2133
|
-
--qti-focus
|
|
2135
|
+
--qti-color-focus: var(
|
|
2136
|
+
--cito-color-focus,
|
|
2137
|
+
var(--cito-color-primary, light-dark(oklch(60% 0.15 250), oklch(72% 0.13 250)))
|
|
2138
|
+
); /* t1 input: --cito-color-focus, optional; a brand's primary when it sets one */
|
|
2139
|
+
--qti-focus-color: var(--qti-color-focus);
|
|
2140
|
+
|
|
2141
|
+
/*
|
|
2142
|
+
* Rubric and feedback, told apart by shape so it holds in black and white. A rubric block is a
|
|
2143
|
+
* document: light grey, a thick grey bar on its start side. Feedback is a reply: a light-grey bubble
|
|
2144
|
+
* with large rounded corners, no border and a hard darker shadow just below it. Inline feedback is a
|
|
2145
|
+
* pill, padded only at its sides so its line keeps its height.
|
|
2146
|
+
*/
|
|
2147
|
+
--qti-callout-bg: var(--qti-color-base-300);
|
|
2148
|
+
--qti-callout-accent-width: calc(var(--qti-border-width) * 4);
|
|
2149
|
+
--qti-rubric-accent-color: color-mix(in oklab, var(--qti-color-base-content) 35%, var(--qti-color-base-100));
|
|
2150
|
+
--qti-feedback-radius: calc(var(--qti-spacing) * 2.5);
|
|
2151
|
+
--qti-feedback-radius-inline: calc(var(--qti-spacing) * 2);
|
|
2152
|
+
--qti-feedback-padding-inline: var(--qti-spacing);
|
|
2153
|
+
--qti-feedback-shadow-color: color-mix(in oklab, var(--qti-color-base-content) 22%, var(--qti-color-base-100));
|
|
2154
|
+
--qti-feedback-shadow: 0 calc(var(--qti-border-width) * 2) 0 var(--qti-feedback-shadow-color);
|
|
2134
2155
|
--qti-focus-offset: var(--qti-focus-border-width);
|
|
2135
2156
|
--qti-focus-offset-inset: calc(-1 * var(--qti-focus-border-width));
|
|
2136
2157
|
--qti-focus-offset-past-border: calc(var(--qti-focus-offset) + var(--qti-border-width));
|
|
@@ -7166,27 +7187,87 @@ qti-upload-interaction::part(input):disabled::file-selector-button {
|
|
|
7166
7187
|
}
|
|
7167
7188
|
|
|
7168
7189
|
@layer qti-components.elements{
|
|
7169
|
-
/*
|
|
7190
|
+
/*
|
|
7191
|
+
* A callout: light grey, a thick grey border on the start side, a little indentation. Information
|
|
7192
|
+
* for the candidate, so the border is grey; feedback has a full-strength one (qti-feedback-block.css).
|
|
7193
|
+
* `display: block` is declared by the element itself, in qti-rubric-block.ts.
|
|
7194
|
+
*/
|
|
7170
7195
|
qti-rubric-block {
|
|
7171
|
-
border: var(--qti-
|
|
7172
|
-
|
|
7173
|
-
border-radius: var(--qti-radius-box);
|
|
7196
|
+
border-inline-start: var(--qti-callout-accent-width) solid var(--qti-rubric-accent-color);
|
|
7197
|
+
border-start-end-radius: var(--qti-radius-box);
|
|
7198
|
+
border-end-end-radius: var(--qti-radius-box);
|
|
7199
|
+
background-color: var(--qti-callout-bg);
|
|
7174
7200
|
padding: var(--qti-padding-box);
|
|
7175
7201
|
margin-top: var(--qti-gap);
|
|
7176
7202
|
}
|
|
7203
|
+
|
|
7204
|
+
/* The callout's padding is its spacing: no extra margin above the first or below the last paragraph. */
|
|
7205
|
+
qti-rubric-block > :first-child {
|
|
7206
|
+
margin-top: 0;
|
|
7207
|
+
}
|
|
7208
|
+
qti-rubric-block > :last-child {
|
|
7209
|
+
margin-bottom: 0;
|
|
7210
|
+
}
|
|
7177
7211
|
}
|
|
7178
7212
|
|
|
7179
7213
|
@layer qti-components.elements{
|
|
7214
|
+
/*
|
|
7215
|
+
* The feedback bubble, small enough for a line of text: a light-grey pill with the bubble's hard
|
|
7216
|
+
* shadow. No border and no padding above or below, so the line it is on keeps the height of every
|
|
7217
|
+
* other line (a shadow takes no room either). Painted on the `feedback` part, which exists only while
|
|
7218
|
+
* the feedback shows.
|
|
7219
|
+
*/
|
|
7180
7220
|
qti-feedback-inline::part(feedback) {
|
|
7221
|
+
border-radius: var(--qti-feedback-radius-inline);
|
|
7222
|
+
background-color: var(--qti-callout-bg);
|
|
7223
|
+
box-shadow: var(--qti-feedback-shadow);
|
|
7224
|
+
padding: 0 var(--qti-feedback-padding-inline);
|
|
7181
7225
|
}
|
|
7182
7226
|
}
|
|
7183
7227
|
|
|
7184
7228
|
@layer qti-components.elements{
|
|
7229
|
+
/*
|
|
7230
|
+
* A speech bubble: a reply to the candidate's answer. Light grey, no border, large rounded corners and
|
|
7231
|
+
* a hard darker shadow just below it. Painted on the `feedback` part: that box exists only while the
|
|
7232
|
+
* feedback shows, so a hidden feedback draws nothing.
|
|
7233
|
+
*/
|
|
7185
7234
|
qti-feedback-block::part(feedback) {
|
|
7235
|
+
border-radius: var(--qti-feedback-radius);
|
|
7236
|
+
background-color: var(--qti-callout-bg);
|
|
7237
|
+
box-shadow: var(--qti-feedback-shadow);
|
|
7238
|
+
padding: var(--qti-padding-box);
|
|
7239
|
+
margin-top: var(--qti-gap);
|
|
7240
|
+
}
|
|
7241
|
+
|
|
7242
|
+
/* The bubble's padding is its spacing: no extra margin above the first or below the last paragraph. */
|
|
7243
|
+
qti-feedback-block > :first-child {
|
|
7244
|
+
margin-top: 0;
|
|
7245
|
+
}
|
|
7246
|
+
qti-feedback-block > :last-child {
|
|
7247
|
+
margin-bottom: 0;
|
|
7186
7248
|
}
|
|
7187
7249
|
}
|
|
7188
7250
|
|
|
7189
7251
|
@layer qti-components.elements{
|
|
7252
|
+
/*
|
|
7253
|
+
* The feedback bubble, the same as qti-feedback-block: light grey, no border, large rounded corners and
|
|
7254
|
+
* a hard darker shadow. Its box stays the dialog's own (qti-modal-feedback.ts); the theme paints it.
|
|
7255
|
+
*/
|
|
7256
|
+
qti-modal-feedback::part(feedback) {
|
|
7257
|
+
border: 0;
|
|
7258
|
+
border-radius: var(--qti-feedback-radius);
|
|
7259
|
+
background-color: var(--qti-callout-bg);
|
|
7260
|
+
box-shadow: var(--qti-feedback-shadow);
|
|
7261
|
+
}
|
|
7262
|
+
|
|
7263
|
+
/* The dialog's padding is its spacing: no extra margin above the first or below the last paragraph. */
|
|
7264
|
+
qti-modal-feedback > :first-child {
|
|
7265
|
+
margin-top: 0;
|
|
7266
|
+
}
|
|
7267
|
+
qti-modal-feedback > :last-child {
|
|
7268
|
+
margin-bottom: 0;
|
|
7269
|
+
}
|
|
7270
|
+
|
|
7190
7271
|
/*
|
|
7191
7272
|
* Neither selector below matches anything this repo renders — `qti-modal-feedback-custom` is not a
|
|
7192
7273
|
* registered element and nothing sets `.custom-modal-feedback`. They are kept as a downstream
|
|
@@ -7203,6 +7284,14 @@ qti-feedback-block::part(feedback) {
|
|
|
7203
7284
|
padding: var(--qti-padding-box);
|
|
7204
7285
|
margin-top: var(--qti-gap);
|
|
7205
7286
|
}
|
|
7287
|
+
|
|
7288
|
+
/* The dialog's padding is its spacing, and the icon lines up with the first line: no extra margin above the first or below the last paragraph. */
|
|
7289
|
+
qti-modal-feedback > :first-child {
|
|
7290
|
+
margin-top: 0;
|
|
7291
|
+
}
|
|
7292
|
+
qti-modal-feedback > :last-child {
|
|
7293
|
+
margin-bottom: 0;
|
|
7294
|
+
}
|
|
7206
7295
|
}
|
|
7207
7296
|
|
|
7208
7297
|
@layer qti-components.elements{
|
package/dist/item.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-
|
|
1
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-pFcNk0th.js';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import { V as View } from './session.context.d-DW09Lrie.js';
|
|
4
4
|
import { QtiAssessmentItem } from './elements.js';
|
|
5
5
|
import './qti.context.d-CejJMlfZ.js';
|
|
6
|
-
import './config.context.d-
|
|
6
|
+
import './config.context.d-CCqlJXpE.js';
|
|
7
7
|
import './item.types.d-DuVR0ZVK.js';
|
|
8
8
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
9
|
-
import './qti-feedback.d-
|
|
9
|
+
import './qti-feedback.d-GAqMqAt6.js';
|
|
10
10
|
import './qti-rule-base.d-CeKP0Ooi.js';
|
|
11
11
|
|
|
12
12
|
type Constructor<T = {}> = abstract new (...args: any[]) => T;
|
package/dist/item.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-WIUPAUJV.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-XY5DHYIH.js";
|
|
8
|
+
import "./chunk-RNLSNH4N.js";
|
|
9
9
|
import "./chunk-4DB4SC5K.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-LORYM4U2.js";
|
|
11
|
+
import "./chunk-IM5AKPIJ.js";
|
|
12
12
|
export {
|
|
13
13
|
ItemContainer,
|
|
14
14
|
ItemPrintVariables,
|
package/dist/loader.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { QtiAssessmentItem } from './elements.js';
|
|
|
2
2
|
import './item.types.d-DuVR0ZVK.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
5
|
-
import './qti-feedback.d-
|
|
5
|
+
import './qti-feedback.d-GAqMqAt6.js';
|
|
6
6
|
import './qti-rule-base.d-CeKP0Ooi.js';
|
|
7
7
|
|
|
8
8
|
type ManifestInfo = {
|