@citolab/qti-components 9.3.0 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +280 -220
- package/dist/base.d.ts +10 -10
- package/dist/base.js +1 -1
- package/dist/{chunk-G5RQ5GKG.js → chunk-6K3QWJHH.js} +2 -2
- package/dist/{chunk-REKCRWJV.js → chunk-6U3YPHXU.js} +231 -129
- package/dist/chunk-6U3YPHXU.js.map +1 -0
- package/dist/{chunk-JGPWBIVD.js → chunk-DAFB2E5H.js} +123 -47
- package/dist/{chunk-JGPWBIVD.js.map → chunk-DAFB2E5H.js.map} +1 -1
- package/dist/{chunk-YIYHCHHM.js → chunk-FD4AB6TM.js} +2 -2
- package/dist/{chunk-JLZCZVRX.js → chunk-GBZNFSFY.js} +2 -2
- package/dist/{chunk-ZG7FBQFP.js → chunk-MI7774NV.js} +2 -2
- package/dist/{chunk-7VDR765S.js → chunk-OQDBARD5.js} +2 -2
- package/dist/{chunk-RAJQKCQ3.js → chunk-RU6332MD.js} +3 -3
- package/dist/{chunk-TDWLV5OD.js → chunk-SIE3E4FG.js} +1159 -551
- package/dist/chunk-SIE3E4FG.js.map +1 -0
- package/dist/{chunk-CQHGVPOT.js → chunk-SU63QGGD.js} +6 -6
- package/dist/{chunk-YVZWNLF4.js → chunk-TDWJ6WZA.js} +158 -19
- package/dist/chunk-TDWJ6WZA.js.map +1 -0
- package/dist/{chunk-FG5JAWSN.js → chunk-YZRODVYZ.js} +2 -2
- package/dist/chunk-ZP6QQYSU.js +7 -0
- package/dist/chunk-ZP6QQYSU.js.map +1 -0
- package/dist/{computed.types.d-DB5gfOh9.d.ts → computed.types.d-gJrBeUMG.d.ts} +1 -1
- package/dist/corrections.d.ts +9 -9
- package/dist/corrections.js +8 -8
- package/dist/elements.d.ts +108 -6
- package/dist/elements.js +17 -5
- package/dist/index.d.ts +12 -12
- package/dist/index.js +34 -14
- package/dist/{interaction.d-DegNJ5ZA.d.ts → interaction.d-g6XG0T0Z.d.ts} +2 -2
- package/dist/interactions.d.ts +4 -4
- package/dist/interactions.js +3 -3
- package/dist/item.css +11 -0
- package/dist/item.d.ts +4 -4
- package/dist/item.js +4 -4
- package/dist/{item.types.d-BDFrq19E.d.ts → item.types.d-B55QkJ92.d.ts} +10 -0
- package/dist/loader.d.ts +2 -2
- package/dist/processing.d.ts +3 -3
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +536 -409
- package/dist/{qti-condition-expression.d-DLboq8bR.d.ts → qti-condition-expression.d-VJH6cWxf.d.ts} +1 -1
- package/dist/{qti-expression.d-BksT9iLB.d.ts → qti-expression.d-BPxEp8HU.d.ts} +8 -1
- package/dist/{qti-feedback.d-D-w6-mJv.d.ts → qti-feedback.d-wMYNVkkj.d.ts} +2 -3
- package/dist/{qti-item.d-D_-9_0e6.d.ts → qti-item.d-DgC1AQbY.d.ts} +1 -1
- package/dist/{qti-test.d-D-ELy0Mr.d.ts → qti-test.d-86TlaMlI.d.ts} +298 -39
- package/dist/{qti-text-entry-interaction.d-CATtcPyX.d.ts → qti-text-entry-interaction.d-C4eixT-D.d.ts} +8 -3
- package/dist/{session.context.d-Cjs0BkJB.d.ts → session.context.d-D5080LVx.d.ts} +3 -1
- package/dist/test.d.ts +58 -11
- package/dist/test.js +13 -5
- package/package.json +5 -5
- package/dist/chunk-A32YH4H5.js +0 -7
- package/dist/chunk-A32YH4H5.js.map +0 -1
- package/dist/chunk-REKCRWJV.js.map +0 -1
- package/dist/chunk-TDWLV5OD.js.map +0 -1
- package/dist/chunk-YVZWNLF4.js.map +0 -1
- /package/dist/{chunk-G5RQ5GKG.js.map → chunk-6K3QWJHH.js.map} +0 -0
- /package/dist/{chunk-YIYHCHHM.js.map → chunk-FD4AB6TM.js.map} +0 -0
- /package/dist/{chunk-JLZCZVRX.js.map → chunk-GBZNFSFY.js.map} +0 -0
- /package/dist/{chunk-ZG7FBQFP.js.map → chunk-MI7774NV.js.map} +0 -0
- /package/dist/{chunk-7VDR765S.js.map → chunk-OQDBARD5.js.map} +0 -0
- /package/dist/{chunk-RAJQKCQ3.js.map → chunk-RU6332MD.js.map} +0 -0
- /package/dist/{chunk-CQHGVPOT.js.map → chunk-SU63QGGD.js.map} +0 -0
- /package/dist/{chunk-FG5JAWSN.js.map → chunk-YZRODVYZ.js.map} +0 -0
package/dist/corrections.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { I as Interaction } from './interaction.d-
|
|
1
|
+
import { I as Interaction } from './interaction.d-g6XG0T0Z.js';
|
|
2
2
|
import { R as ResponseValue } from './response.d-_8y4kjGP.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
|
-
import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, C as Choice, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-
|
|
5
|
+
import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, C as Choice, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-C4eixT-D.js';
|
|
6
6
|
import { QtiAssessmentItem } from './elements.js';
|
|
7
|
-
import { Q as QtiItem } from './qti-item.d-
|
|
8
|
-
import { V as View, C as ComputedItemContext } from './session.context.d-
|
|
9
|
-
import {
|
|
10
|
-
import { a as ComputedItem, C as ComputedContext } from './computed.types.d-
|
|
7
|
+
import { Q as QtiItem } from './qti-item.d-DgC1AQbY.js';
|
|
8
|
+
import { V as View, C as ComputedItemContext } from './session.context.d-D5080LVx.js';
|
|
9
|
+
import { l as QtiTest, T as TestCheckItem, u as TestNavigation } from './qti-test.d-86TlaMlI.js';
|
|
10
|
+
import { a as ComputedItem, C as ComputedContext } from './computed.types.d-gJrBeUMG.js';
|
|
11
11
|
import './config.context.d-BvU9r-Mg.js';
|
|
12
12
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
13
|
-
import './item.types.d-
|
|
13
|
+
import './item.types.d-B55QkJ92.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-wMYNVkkj.js';
|
|
17
17
|
import './qti-rule-base.d-Bdzg8eGH.js';
|
|
18
18
|
import './qti-transform-test.d-BL7GGFJj.js';
|
|
19
|
+
import './qti-expression.d-BPxEp8HU.js';
|
|
19
20
|
import '@heximal/templates';
|
|
20
|
-
import './qti-expression.d-BksT9iLB.js';
|
|
21
21
|
|
|
22
22
|
type AbstractConstructor$2<T = {}> = abstract new (...args: any[]) => T;
|
|
23
23
|
declare enum Correctness {
|
package/dist/corrections.js
CHANGED
|
@@ -34,28 +34,28 @@ import {
|
|
|
34
34
|
TestNavigationCorrection,
|
|
35
35
|
TestShowCorrectResponse,
|
|
36
36
|
correctionPart
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-SU63QGGD.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SIE3E4FG.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6U3YPHXU.js";
|
|
44
44
|
import {
|
|
45
45
|
qtiInteractionElements
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-DAFB2E5H.js";
|
|
47
47
|
import {
|
|
48
48
|
qtiItemElements
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-RU6332MD.js";
|
|
50
|
+
import "./chunk-ZP6QQYSU.js";
|
|
51
51
|
import "./chunk-4DB4SC5K.js";
|
|
52
52
|
import "./chunk-TLAVOBEM.js";
|
|
53
53
|
import {
|
|
54
54
|
qtiProcessingElements
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-6K3QWJHH.js";
|
|
56
56
|
import {
|
|
57
57
|
qtiBaseElements
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TDWJ6WZA.js";
|
|
59
59
|
|
|
60
60
|
// ../qti-corrections/dist/elements.js
|
|
61
61
|
var qtiCorrectionElements = [
|
package/dist/elements.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { b as ItemContext, h as VariableValue, R as ResponseInteraction, g as ResponseVariable, c as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './item.types.d-B55QkJ92.js';
|
|
1
2
|
import * as lit from 'lit';
|
|
2
|
-
import { LitElement, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
3
|
-
import { h as VariableValue, b as ItemContext, R as ResponseInteraction, g as ResponseVariable, c as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './item.types.d-BDFrq19E.js';
|
|
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-wMYNVkkj.js';
|
|
6
6
|
import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -22,10 +22,17 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
22
22
|
timeDependent: 'true' | 'false' | null;
|
|
23
23
|
get title(): string;
|
|
24
24
|
set title(value: string);
|
|
25
|
+
/**
|
|
26
|
+
* Locks the item, for example once it is submitted. Published in the item context, which the
|
|
27
|
+
* interactions inside follow, so the item keeps no list of them to set it on.
|
|
28
|
+
*/
|
|
25
29
|
disabled: boolean;
|
|
26
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Shows the item for reading only. Published in the item context, which the interactions inside
|
|
32
|
+
* follow, so the item keeps no list of them to set it on.
|
|
33
|
+
*/
|
|
27
34
|
readonly: boolean;
|
|
28
|
-
protected
|
|
35
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
29
36
|
private _context;
|
|
30
37
|
/**
|
|
31
38
|
* Sets the identifier for the assessment item reference if this item is in a test.
|
|
@@ -34,6 +41,11 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
34
41
|
*/
|
|
35
42
|
set assessmentItemRefId(identifier: string);
|
|
36
43
|
get assessmentItemRefId(): string;
|
|
44
|
+
/**
|
|
45
|
+
* The item's whole context, declarations included, for reading. `variables` is the trimmed view
|
|
46
|
+
* for hosts; the test needs the declarations too, and used to reach for the private field.
|
|
47
|
+
*/
|
|
48
|
+
get itemContext(): Readonly<ItemContext>;
|
|
37
49
|
get variables(): VariableValue<string | string[] | null>[];
|
|
38
50
|
set variables(value: VariableValue<string | string[] | null>[]);
|
|
39
51
|
get state(): ItemContext['state'];
|
|
@@ -93,6 +105,40 @@ declare global {
|
|
|
93
105
|
'qti-assessment-item': QtiAssessmentItem;
|
|
94
106
|
}
|
|
95
107
|
}
|
|
108
|
+
declare module '../../public-events' {
|
|
109
|
+
interface PublicItemEventMap {
|
|
110
|
+
/** The item rendered: its interactions are in the DOM and its validity is known. */
|
|
111
|
+
'cito-item-rendered': CustomEvent<QtiAssessmentItem>;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @summary Root of a shared stimulus, placed as a whole wherever the stimulus is rendered.
|
|
117
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/info#Root_AssessmentStimulus
|
|
118
|
+
* @status stable
|
|
119
|
+
* @since 4.0
|
|
120
|
+
*
|
|
121
|
+
* Generates no box of its own (`display: contents`), so the stimulus lays out as if only its
|
|
122
|
+
* `qti-stimulus-body` were placed. It is kept in the DOM because it carries the stimulus'
|
|
123
|
+
* `xml:lang` (transformed to `lang`): the content inherits its language from here, which is what
|
|
124
|
+
* text-to-speech and screen readers use to pick a voice.
|
|
125
|
+
*
|
|
126
|
+
* Its QTI `title` is removed on connect: it names the stimulus for authors browsing a repository,
|
|
127
|
+
* and as an HTML `title` it would show as a tooltip over the whole passage and be announced by
|
|
128
|
+
* screen readers.
|
|
129
|
+
*
|
|
130
|
+
* @slot - stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
|
|
131
|
+
*/
|
|
132
|
+
declare class QtiAssessmentStimulus extends LitElement {
|
|
133
|
+
static styles: CSSResultGroup;
|
|
134
|
+
connectedCallback(): void;
|
|
135
|
+
render(): lit.TemplateResult<1>;
|
|
136
|
+
}
|
|
137
|
+
declare global {
|
|
138
|
+
interface HTMLElementTagNameMap {
|
|
139
|
+
'qti-assessment-stimulus': QtiAssessmentStimulus;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
96
142
|
|
|
97
143
|
declare class QtiAssessmentStimulusRefConnectedEvent extends Event {
|
|
98
144
|
element: QtiAssessmentStimulusRef;
|
|
@@ -421,4 +467,60 @@ declare global {
|
|
|
421
467
|
}
|
|
422
468
|
}
|
|
423
469
|
|
|
424
|
-
|
|
470
|
+
interface OutcomeChangedDetails {
|
|
471
|
+
item: string;
|
|
472
|
+
outcomeIdentifier: string;
|
|
473
|
+
value: Readonly<string | string[]>;
|
|
474
|
+
}
|
|
475
|
+
type InteractionChangedDetails = ResponseInteraction & {
|
|
476
|
+
item: string;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* The public events of the item. The name tells you it is public: everything declared here starts
|
|
481
|
+
* with `cito-`; every other event is internal plumbing and may change in any release.
|
|
482
|
+
*
|
|
483
|
+
* Requests are verbs, notifications are past tense. All bubble and are composed.
|
|
484
|
+
*
|
|
485
|
+
* `deprecated` is the name the event had before it became public. `dispatchPublic` sends and
|
|
486
|
+
* `listenPublic` handles both until the next major, then the field goes.
|
|
487
|
+
*/
|
|
488
|
+
interface PublicEventDeclaration {
|
|
489
|
+
kind: 'request' | 'notification';
|
|
490
|
+
scope: 'test' | 'item';
|
|
491
|
+
/** The name before it was public. Dispatched and handled alongside the new one. */
|
|
492
|
+
deprecated?: string;
|
|
493
|
+
}
|
|
494
|
+
interface RubricPlacement {
|
|
495
|
+
className: string;
|
|
496
|
+
element: Element;
|
|
497
|
+
}
|
|
498
|
+
interface PublicItemEventMap {
|
|
499
|
+
'cito-item-response-changed': CustomEvent<InteractionChangedDetails>;
|
|
500
|
+
'cito-item-outcome-changed': CustomEvent<OutcomeChangedDetails>;
|
|
501
|
+
/** Cancelable: `preventDefault()` keeps the rubric block where it is. */
|
|
502
|
+
'cito-item-rubric-placement': CustomEvent<RubricPlacement>;
|
|
503
|
+
}
|
|
504
|
+
type PublicItemEventName = keyof PublicItemEventMap;
|
|
505
|
+
declare const PUBLIC_ITEM_EVENTS: Record<PublicItemEventName, PublicEventDeclaration>;
|
|
506
|
+
declare global {
|
|
507
|
+
interface HTMLElementEventMap extends PublicItemEventMap {
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Dispatch `name` and its deprecated name with the same `detail` object, new name first. Returns
|
|
512
|
+
* `false` when a listener of either cancelled the event. The detail is always an object.
|
|
513
|
+
* Shared by the item and test tiers; use `dispatchPublic` (item) or the test's own wrapper.
|
|
514
|
+
*/
|
|
515
|
+
declare function dispatchDeclared(target: EventTarget, declarations: Record<string, PublicEventDeclaration>, name: string, detail: unknown, cancelable?: boolean): boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Listen for `name` and its deprecated name. `dispatchDeclared` sends the old name straight after
|
|
518
|
+
* the new one, synchronously, with the same `detail`: that one is skipped, so the handler runs
|
|
519
|
+
* once. A host that sends only the old name is handled too, and warned once per name in the
|
|
520
|
+
* console: only a sender outside our own components gets here without the new name before it.
|
|
521
|
+
*/
|
|
522
|
+
declare function listenDeclared(target: EventTarget, declarations: Record<string, PublicEventDeclaration>, name: string, handler: (e: Event) => void): void;
|
|
523
|
+
declare function dispatchPublic<K extends PublicItemEventName>(target: EventTarget, name: K, detail: PublicItemEventMap[K] extends CustomEvent<infer D> ? D : never, cancelable?: boolean): boolean;
|
|
524
|
+
declare function listenPublic<K extends PublicItemEventName>(target: EventTarget, name: K, handler: (e: PublicItemEventMap[K]) => void): void;
|
|
525
|
+
|
|
526
|
+
export { PUBLIC_ITEM_EVENTS, type PublicEventDeclaration, type PublicItemEventMap, type PublicItemEventName, QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing, type RubricPlacement, dispatchDeclared, dispatchPublic, listenDeclared, listenPublic };
|
package/dist/elements.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-GBZNFSFY.js";
|
|
2
2
|
import {
|
|
3
|
+
PUBLIC_ITEM_EVENTS,
|
|
3
4
|
QtiAssessmentItem,
|
|
5
|
+
QtiAssessmentStimulus,
|
|
4
6
|
QtiAssessmentStimulusRef,
|
|
5
7
|
QtiAssessmentStimulusRefConnectedEvent,
|
|
6
8
|
QtiCompanionMaterialsInfo,
|
|
@@ -18,13 +20,19 @@ import {
|
|
|
18
20
|
QtiStylesheet,
|
|
19
21
|
QtiTemplateConstraint,
|
|
20
22
|
QtiTemplateDeclaration,
|
|
21
|
-
QtiTemplateProcessing
|
|
22
|
-
|
|
23
|
+
QtiTemplateProcessing,
|
|
24
|
+
dispatchDeclared,
|
|
25
|
+
dispatchPublic,
|
|
26
|
+
listenDeclared,
|
|
27
|
+
listenPublic
|
|
28
|
+
} from "./chunk-6U3YPHXU.js";
|
|
23
29
|
import "./chunk-4DB4SC5K.js";
|
|
24
30
|
import "./chunk-TLAVOBEM.js";
|
|
25
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-TDWJ6WZA.js";
|
|
26
32
|
export {
|
|
33
|
+
PUBLIC_ITEM_EVENTS,
|
|
27
34
|
QtiAssessmentItem,
|
|
35
|
+
QtiAssessmentStimulus,
|
|
28
36
|
QtiAssessmentStimulusRef,
|
|
29
37
|
QtiAssessmentStimulusRefConnectedEvent,
|
|
30
38
|
QtiCompanionMaterialsInfo,
|
|
@@ -42,6 +50,10 @@ export {
|
|
|
42
50
|
QtiStylesheet,
|
|
43
51
|
QtiTemplateConstraint,
|
|
44
52
|
QtiTemplateDeclaration,
|
|
45
|
-
QtiTemplateProcessing
|
|
53
|
+
QtiTemplateProcessing,
|
|
54
|
+
dispatchDeclared,
|
|
55
|
+
dispatchPublic,
|
|
56
|
+
listenDeclared,
|
|
57
|
+
listenPublic
|
|
46
58
|
};
|
|
47
59
|
//# sourceMappingURL=elements.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, a as ItemRefTemplateModel, Q as QtiAssessmentItemRef,
|
|
2
|
-
export { IMyQtiTest, IQtiTest, ITestProcessingMixin } from './test.js';
|
|
3
|
-
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.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, S as SpeechState, T as TestCheckItem, q as TestContainer, r as TestEndAttempt, s as TestItemLink, t as TestItemToSpeech, u as TestNavigation, v as TestNext, w as TestPagingButtonsStamp, x as TestPrev, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, C as TestSectionButtonsStamp, D as TestSectionLink, E as TestStamp, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, N as TestView, O as TestViewToggle, P as TtsContext, R as ttsContext } from './qti-test.d-86TlaMlI.js';
|
|
2
|
+
export { IMyQtiTest, IQtiTest, ITestProcessingMixin, QTI_TEST_STATE_VERSION, QtiTestState, QtiTestStateItem, QtiTestStateSession, QtiTestStateValue } from './test.js';
|
|
3
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-DgC1AQbY.js';
|
|
4
4
|
export { ItemViewMixin } from './item.js';
|
|
5
|
-
export { QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing } from './elements.js';
|
|
5
|
+
export { PUBLIC_ITEM_EVENTS, PublicEventDeclaration, PublicItemEventMap, PublicItemEventName, QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing, RubricPlacement, dispatchDeclared, dispatchPublic, listenDeclared, listenPublic } from './elements.js';
|
|
6
6
|
export { QtiCustomInteraction, QtiEndAttemptInteraction, QtiMediaInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiUploadInteraction, qtiInteractionElements } from './interactions.js';
|
|
7
|
-
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-
|
|
7
|
+
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-C4eixT-D.js';
|
|
8
8
|
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-BL7GGFJj.js';
|
|
9
9
|
export { qtiTransformManifest } from './transformers.js';
|
|
10
10
|
export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
|
|
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
|
-
export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-
|
|
13
|
-
export { C as ComputedContext, a as ComputedItem } from './computed.types.d-
|
|
12
|
+
export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-D5080LVx.js';
|
|
13
|
+
export { C as ComputedContext, a as ComputedItem } from './computed.types.d-gJrBeUMG.js';
|
|
14
14
|
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BvU9r-Mg.js';
|
|
15
|
-
export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-
|
|
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-
|
|
15
|
+
export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-g6XG0T0Z.js';
|
|
16
|
+
export { B as BaseType, C as Calculate, a as Cardinality, I as InterpolationTableEntry, b as ItemContext, M as Multiple, O as Ordered, c as OutcomeVariable, Q as QtiAreaMapEntry, d as QtiAreaMapping, e as QtiMapEntry, f as QtiMapping, R as ResponseInteraction, g as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, h as VariableValue, i as areaShape, j as directedPair, k as float, l as integer, m as itemContextVariables } from './item.types.d-B55QkJ92.js';
|
|
17
17
|
export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
18
|
-
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-
|
|
19
|
-
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-
|
|
20
|
-
export { Q as QtiConditionExpression } from './qti-condition-expression.d-
|
|
18
|
+
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-BPxEp8HU.js';
|
|
19
|
+
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-wMYNVkkj.js';
|
|
20
|
+
export { Q as QtiConditionExpression } from './qti-condition-expression.d-VJH6cWxf.js';
|
|
21
21
|
export { D as DirectedPair, I as Identifier, P as Point, R as ResponseValue, i as iterResponseValues, p as parsePair, a as parsePoint, b as parseResponseAttribute, r as responseAttributeConverter, s as serializePair, c as serializePoint, d as serializeResponseAttribute } from './response.d-_8y4kjGP.js';
|
|
22
22
|
export { F as FormAssociatedInteraction, I as IInteraction, R as ReadonlyInteraction, a as RegisteredInteraction, b as ResettableInteraction, c as ResponseIdentifiedInteraction, d as ResponseInteractionElement, V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
23
23
|
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-Bdzg8eGH.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-OQDBARD5.js";
|
|
2
2
|
import {
|
|
3
3
|
CandidateCorrectionMixin,
|
|
4
4
|
ChoiceCorrectionMixin,
|
|
@@ -35,15 +35,19 @@ import {
|
|
|
35
35
|
TestNavigationCorrection,
|
|
36
36
|
TestShowCorrectResponse,
|
|
37
37
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SU63QGGD.js";
|
|
39
39
|
import {
|
|
40
|
+
QTI_TEST_STATE_VERSION,
|
|
40
41
|
QtiAssessmentItemRef,
|
|
41
42
|
QtiAssessmentSection,
|
|
42
43
|
QtiAssessmentTest,
|
|
44
|
+
QtiBranchRule,
|
|
43
45
|
QtiItemSessionControl,
|
|
46
|
+
QtiNumberPresented,
|
|
44
47
|
QtiNumberSelected,
|
|
45
48
|
QtiOutcomeProcessing,
|
|
46
49
|
QtiOutcomeProcessingProcessor,
|
|
50
|
+
QtiPreCondition,
|
|
47
51
|
QtiTest,
|
|
48
52
|
QtiTestFeedback,
|
|
49
53
|
QtiTestPart,
|
|
@@ -75,10 +79,12 @@ import {
|
|
|
75
79
|
TestView,
|
|
76
80
|
TestViewToggle,
|
|
77
81
|
ttsContext
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-SIE3E4FG.js";
|
|
83
|
+
import "./chunk-GBZNFSFY.js";
|
|
80
84
|
import {
|
|
85
|
+
PUBLIC_ITEM_EVENTS,
|
|
81
86
|
QtiAssessmentItem,
|
|
87
|
+
QtiAssessmentStimulus,
|
|
82
88
|
QtiAssessmentStimulusRef,
|
|
83
89
|
QtiAssessmentStimulusRefConnectedEvent,
|
|
84
90
|
QtiCompanionMaterialsInfo,
|
|
@@ -96,9 +102,13 @@ import {
|
|
|
96
102
|
QtiStylesheet,
|
|
97
103
|
QtiTemplateConstraint,
|
|
98
104
|
QtiTemplateDeclaration,
|
|
99
|
-
QtiTemplateProcessing
|
|
100
|
-
|
|
101
|
-
|
|
105
|
+
QtiTemplateProcessing,
|
|
106
|
+
dispatchDeclared,
|
|
107
|
+
dispatchPublic,
|
|
108
|
+
listenDeclared,
|
|
109
|
+
listenPublic
|
|
110
|
+
} from "./chunk-6U3YPHXU.js";
|
|
111
|
+
import "./chunk-YZRODVYZ.js";
|
|
102
112
|
import {
|
|
103
113
|
QtiAssociableHotspot,
|
|
104
114
|
QtiAssociateInteraction,
|
|
@@ -133,15 +143,15 @@ import {
|
|
|
133
143
|
QtiTextEntryInteraction,
|
|
134
144
|
QtiUploadInteraction,
|
|
135
145
|
qtiInteractionElements
|
|
136
|
-
} from "./chunk-
|
|
137
|
-
import "./chunk-
|
|
146
|
+
} from "./chunk-DAFB2E5H.js";
|
|
147
|
+
import "./chunk-FD4AB6TM.js";
|
|
138
148
|
import {
|
|
139
149
|
ItemContainer,
|
|
140
150
|
ItemPrintVariables,
|
|
141
151
|
ItemViewMixin,
|
|
142
152
|
QtiItem
|
|
143
|
-
} from "./chunk-
|
|
144
|
-
import "./chunk-
|
|
153
|
+
} from "./chunk-RU6332MD.js";
|
|
154
|
+
import "./chunk-ZP6QQYSU.js";
|
|
145
155
|
import "./chunk-4DB4SC5K.js";
|
|
146
156
|
import {
|
|
147
157
|
getItemByUri,
|
|
@@ -152,7 +162,7 @@ import {
|
|
|
152
162
|
qtiTransformManifest,
|
|
153
163
|
qtiTransformTest
|
|
154
164
|
} from "./chunk-TLAVOBEM.js";
|
|
155
|
-
import "./chunk-
|
|
165
|
+
import "./chunk-MI7774NV.js";
|
|
156
166
|
import {
|
|
157
167
|
QtiAnd,
|
|
158
168
|
QtiAnyN,
|
|
@@ -230,7 +240,7 @@ import {
|
|
|
230
240
|
QtiVariable,
|
|
231
241
|
qtiAndMixin,
|
|
232
242
|
qtiSubtractMixin
|
|
233
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-6K3QWJHH.js";
|
|
234
244
|
import {
|
|
235
245
|
CustomStateSetShim,
|
|
236
246
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -275,7 +285,7 @@ import {
|
|
|
275
285
|
testContext,
|
|
276
286
|
unregisterCustomOperator,
|
|
277
287
|
validationMessage
|
|
278
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-TDWJ6WZA.js";
|
|
279
289
|
export {
|
|
280
290
|
CandidateCorrectionMixin,
|
|
281
291
|
ChoiceCorrectionMixin,
|
|
@@ -292,12 +302,15 @@ export {
|
|
|
292
302
|
ItemShowCandidateCorrection,
|
|
293
303
|
ItemShowCorrectResponse,
|
|
294
304
|
ItemViewMixin,
|
|
305
|
+
PUBLIC_ITEM_EVENTS,
|
|
306
|
+
QTI_TEST_STATE_VERSION,
|
|
295
307
|
QtiAnd,
|
|
296
308
|
QtiAnyN,
|
|
297
309
|
QtiAssessmentItem,
|
|
298
310
|
QtiAssessmentItemCorrection,
|
|
299
311
|
QtiAssessmentItemRef,
|
|
300
312
|
QtiAssessmentSection,
|
|
313
|
+
QtiAssessmentStimulus,
|
|
301
314
|
QtiAssessmentStimulusRef,
|
|
302
315
|
QtiAssessmentStimulusRefConnectedEvent,
|
|
303
316
|
QtiAssessmentTest,
|
|
@@ -305,6 +318,7 @@ export {
|
|
|
305
318
|
QtiAssociateInteraction,
|
|
306
319
|
QtiAssociateInteractionCorrection,
|
|
307
320
|
QtiBaseValue,
|
|
321
|
+
QtiBranchRule,
|
|
308
322
|
QtiChoiceInteraction,
|
|
309
323
|
QtiChoiceInteractionCorrection,
|
|
310
324
|
QtiCompanionMaterialsInfo,
|
|
@@ -390,6 +404,7 @@ export {
|
|
|
390
404
|
QtiMultiple,
|
|
391
405
|
QtiNot,
|
|
392
406
|
QtiNull,
|
|
407
|
+
QtiNumberPresented,
|
|
393
408
|
QtiNumberSelected,
|
|
394
409
|
QtiOr,
|
|
395
410
|
QtiOrderInteraction,
|
|
@@ -408,6 +423,7 @@ export {
|
|
|
408
423
|
QtiPositionObjectInteraction,
|
|
409
424
|
QtiPositionObjectStage,
|
|
410
425
|
QtiPower,
|
|
426
|
+
QtiPreCondition,
|
|
411
427
|
QtiPrintedVariable,
|
|
412
428
|
QtiProduct,
|
|
413
429
|
QtiPrompt,
|
|
@@ -499,6 +515,8 @@ export {
|
|
|
499
515
|
convertNumberToUniversalFormat,
|
|
500
516
|
correctionPart,
|
|
501
517
|
decimalSeparator,
|
|
518
|
+
dispatchDeclared,
|
|
519
|
+
dispatchPublic,
|
|
502
520
|
dropRegion,
|
|
503
521
|
getCustomOperator,
|
|
504
522
|
getItemByUri,
|
|
@@ -509,6 +527,8 @@ export {
|
|
|
509
527
|
itemContext,
|
|
510
528
|
itemContextVariables,
|
|
511
529
|
iterResponseValues,
|
|
530
|
+
listenDeclared,
|
|
531
|
+
listenPublic,
|
|
512
532
|
parsePair,
|
|
513
533
|
parsePoint,
|
|
514
534
|
parseResponseAttribute,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { C as ConfigContext, V as ValidationDisplayMode } from './config.context.d-BvU9r-Mg.js';
|
|
3
3
|
import { V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
4
|
-
import { g as ResponseVariable } from './item.types.d-
|
|
4
|
+
import { g as ResponseVariable } from './item.types.d-B55QkJ92.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* What a choice element should render and behave as. The same element — `qti-simple-choice`,
|
|
@@ -46,7 +46,7 @@ declare const interactionContext: {
|
|
|
46
46
|
*/
|
|
47
47
|
declare abstract class Interaction extends LitElement implements ValidatableInteraction {
|
|
48
48
|
#private;
|
|
49
|
-
private _context;
|
|
49
|
+
private get _context();
|
|
50
50
|
/**
|
|
51
51
|
* Delivery configuration, from the nearest provider — `qti-test` or `qti-item`.
|
|
52
52
|
*
|
package/dist/interactions.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, z as QtiPortableCustomInteractionTest, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction, Q as QtiAssociableHotspot, d as QtiGap, e as QtiGapImg, g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, o as QtiInlineChoice, t as QtiPrompt, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice } from './qti-text-entry-interaction.d-
|
|
2
|
-
export { O as Orientation } from './qti-text-entry-interaction.d-
|
|
1
|
+
import { a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, f as QtiGapMatchInteraction, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, l as QtiHotspotInteraction, n as QtiHottextInteraction, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, z as QtiPortableCustomInteractionTest, u as QtiSelectPointInteraction, x as QtiSliderInteraction, y as QtiTextEntryInteraction, Q as QtiAssociableHotspot, d as QtiGap, e as QtiGapImg, g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, o as QtiInlineChoice, t as QtiPrompt, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice } from './qti-text-entry-interaction.d-C4eixT-D.js';
|
|
2
|
+
export { O as Orientation } from './qti-text-entry-interaction.d-C4eixT-D.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { CSSResultGroup, LitElement, PropertyValueMap } from 'lit';
|
|
5
|
-
import { I as Interaction } from './interaction.d-
|
|
5
|
+
import { I as Interaction } from './interaction.d-g6XG0T0Z.js';
|
|
6
6
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
7
7
|
import './config.context.d-BvU9r-Mg.js';
|
|
8
|
-
import './item.types.d-
|
|
8
|
+
import './item.types.d-B55QkJ92.js';
|
|
9
9
|
import './qti.context.d-CejJMlfZ.js';
|
|
10
10
|
import 'lit/directives/ref.js';
|
|
11
11
|
|
package/dist/interactions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-YZRODVYZ.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssociableHotspot,
|
|
4
4
|
QtiAssociateInteraction,
|
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
QtiTextEntryInteraction,
|
|
34
34
|
QtiUploadInteraction,
|
|
35
35
|
qtiInteractionElements
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DAFB2E5H.js";
|
|
37
37
|
import "./chunk-4DB4SC5K.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-TDWJ6WZA.js";
|
|
39
39
|
export {
|
|
40
40
|
QtiAssociableHotspot,
|
|
41
41
|
QtiAssociateInteraction,
|
package/dist/item.css
CHANGED
|
@@ -2715,6 +2715,17 @@
|
|
|
2715
2715
|
margin: 0;
|
|
2716
2716
|
padding: 0;
|
|
2717
2717
|
}
|
|
2718
|
+
/*
|
|
2719
|
+
* The background graphic narrows with its container; the drop areas are percentages of it
|
|
2720
|
+
* (positionShapes), so they scale along — see qti-graphic-gap-match-interaction.styles.ts.
|
|
2721
|
+
* reset.css gives every picture inside an interaction `max-width: none`, which outranks that
|
|
2722
|
+
* component's ::slotted() rule, so the fluid sizing is restated here for the graphic alone: a
|
|
2723
|
+
* direct child, never a chip's picture, which must keep its size in the bank and the hotspot.
|
|
2724
|
+
*/
|
|
2725
|
+
qti-graphic-gap-match-interaction > img,qti-graphic-gap-match-interaction > object {
|
|
2726
|
+
max-width: 100%;
|
|
2727
|
+
height: auto;
|
|
2728
|
+
}
|
|
2718
2729
|
}
|
|
2719
2730
|
|
|
2720
2731
|
@layer qti-components.interactions.states {
|
package/dist/item.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-DgC1AQbY.js';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
import { V as View } from './session.context.d-
|
|
3
|
+
import { V as View } from './session.context.d-D5080LVx.js';
|
|
4
4
|
import { QtiAssessmentItem } from './elements.js';
|
|
5
5
|
import './qti.context.d-CejJMlfZ.js';
|
|
6
6
|
import './config.context.d-BvU9r-Mg.js';
|
|
7
|
-
import './item.types.d-
|
|
7
|
+
import './item.types.d-B55QkJ92.js';
|
|
8
8
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
9
|
-
import './qti-feedback.d-
|
|
9
|
+
import './qti-feedback.d-wMYNVkkj.js';
|
|
10
10
|
import './qti-rule-base.d-Bdzg8eGH.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-FD4AB6TM.js";
|
|
2
2
|
import {
|
|
3
3
|
ItemContainer,
|
|
4
4
|
ItemPrintVariables,
|
|
5
5
|
ItemViewMixin,
|
|
6
6
|
QtiItem
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-RU6332MD.js";
|
|
8
|
+
import "./chunk-ZP6QQYSU.js";
|
|
9
9
|
import "./chunk-4DB4SC5K.js";
|
|
10
10
|
import "./chunk-TLAVOBEM.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-TDWJ6WZA.js";
|
|
12
12
|
export {
|
|
13
13
|
ItemContainer,
|
|
14
14
|
ItemPrintVariables,
|
|
@@ -92,6 +92,16 @@ interface ItemContext {
|
|
|
92
92
|
* Used for interactions that support state save/restore (e.g. PCI).
|
|
93
93
|
*/
|
|
94
94
|
state?: Record<string, string | null>;
|
|
95
|
+
/** The item is shown for reading only. Interactions follow it; see `qti-assessment-item`'s `readonly`. */
|
|
96
|
+
readonly?: boolean;
|
|
97
|
+
/** The item is locked, for example after it was submitted. Interactions follow it; see `qti-assessment-item`'s `disabled`. */
|
|
98
|
+
disabled?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the interactions in the item are valid right now (a required answer is given, a limit is
|
|
101
|
+
* respected). Published by the item whenever it checks, so a reader never has to ask the item.
|
|
102
|
+
* Unset until the item has checked once.
|
|
103
|
+
*/
|
|
104
|
+
valid?: boolean;
|
|
95
105
|
}
|
|
96
106
|
declare const itemContextVariables: VariableDeclaration<string | string[]>[];
|
|
97
107
|
|
package/dist/loader.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { QtiAssessmentItem } from './elements.js';
|
|
2
|
+
import './item.types.d-B55QkJ92.js';
|
|
2
3
|
import 'lit';
|
|
3
|
-
import './item.types.d-BDFrq19E.js';
|
|
4
4
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
5
|
-
import './qti-feedback.d-
|
|
5
|
+
import './qti-feedback.d-wMYNVkkj.js';
|
|
6
6
|
import './qti-rule-base.d-Bdzg8eGH.js';
|
|
7
7
|
|
|
8
8
|
type ManifestInfo = {
|
package/dist/processing.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { LitElement, nothing } from 'lit';
|
|
3
3
|
import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
|
|
4
|
-
import { b as ItemContext, B as BaseType, g as ResponseVariable, V as VariableDeclaration } from './item.types.d-
|
|
5
|
-
import { Q as QtiExpression, a as QtiExpressionBase, T as TestContext } from './qti-expression.d-
|
|
6
|
-
import { Q as QtiConditionExpression } from './qti-condition-expression.d-
|
|
4
|
+
import { b as ItemContext, B as BaseType, g as ResponseVariable, V as VariableDeclaration } from './item.types.d-B55QkJ92.js';
|
|
5
|
+
import { Q as QtiExpression, a as QtiExpressionBase, T as TestContext } from './qti-expression.d-BPxEp8HU.js';
|
|
6
|
+
import { Q as QtiConditionExpression } from './qti-condition-expression.d-VJH6cWxf.js';
|
|
7
7
|
import './qti.context.d-CejJMlfZ.js';
|
|
8
8
|
|
|
9
9
|
declare class QtiRule extends LitElement implements QtiRuleBase {
|