@citolab/qti-components 9.3.0 → 10.0.0-next.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 +258 -206
- package/dist/base.d.ts +10 -10
- package/dist/base.js +1 -1
- package/dist/{chunk-G5RQ5GKG.js → chunk-3BAQWO5C.js} +2 -2
- package/dist/{chunk-ZG7FBQFP.js → chunk-ACRN7YJM.js} +2 -2
- package/dist/{chunk-REKCRWJV.js → chunk-AWTQKBC4.js} +231 -129
- package/dist/chunk-AWTQKBC4.js.map +1 -0
- package/dist/{chunk-JGPWBIVD.js → chunk-CNFVA3AA.js} +128 -48
- package/dist/chunk-CNFVA3AA.js.map +1 -0
- package/dist/{chunk-CQHGVPOT.js → chunk-EPSUZIWL.js} +6 -6
- package/dist/{chunk-TDWLV5OD.js → chunk-EUKU5QKV.js} +633 -352
- package/dist/chunk-EUKU5QKV.js.map +1 -0
- package/dist/{chunk-RAJQKCQ3.js → chunk-F7R7GSWL.js} +3 -3
- package/dist/{chunk-FG5JAWSN.js → chunk-GPNWMLLA.js} +2 -2
- package/dist/{chunk-7VDR765S.js → chunk-QD3Y6UK3.js} +2 -2
- package/dist/{chunk-YVZWNLF4.js → chunk-R7MMMDP7.js} +139 -18
- package/dist/chunk-R7MMMDP7.js.map +1 -0
- package/dist/{chunk-JLZCZVRX.js → chunk-SVYHZIJ7.js} +2 -2
- package/dist/{chunk-YIYHCHHM.js → chunk-WNAOVXXN.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 +28 -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 +354 -440
- package/dist/{qti-condition-expression.d-DLboq8bR.d.ts → qti-condition-expression.d-L7yb3Rzy.d.ts} +1 -1
- package/dist/{qti-expression.d-BksT9iLB.d.ts → qti-expression.d-CuaLjZ6g.d.ts} +1 -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-_THYXPzd.d.ts} +206 -46
- package/dist/{qti-text-entry-interaction.d-CATtcPyX.d.ts → qti-text-entry-interaction.d-q8u5BiVK.d.ts} +13 -4
- 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 +7 -5
- package/package.json +9 -9
- package/dist/chunk-A32YH4H5.js +0 -7
- package/dist/chunk-A32YH4H5.js.map +0 -1
- package/dist/chunk-JGPWBIVD.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-3BAQWO5C.js.map} +0 -0
- /package/dist/{chunk-ZG7FBQFP.js.map → chunk-ACRN7YJM.js.map} +0 -0
- /package/dist/{chunk-CQHGVPOT.js.map → chunk-EPSUZIWL.js.map} +0 -0
- /package/dist/{chunk-RAJQKCQ3.js.map → chunk-F7R7GSWL.js.map} +0 -0
- /package/dist/{chunk-FG5JAWSN.js.map → chunk-GPNWMLLA.js.map} +0 -0
- /package/dist/{chunk-7VDR765S.js.map → chunk-QD3Y6UK3.js.map} +0 -0
- /package/dist/{chunk-JLZCZVRX.js.map → chunk-SVYHZIJ7.js.map} +0 -0
- /package/dist/{chunk-YIYHCHHM.js.map → chunk-WNAOVXXN.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-q8u5BiVK.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 { i as QtiTest, T as TestCheckItem, r as TestNavigation } from './qti-test.d-_THYXPzd.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-CuaLjZ6g.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-EPSUZIWL.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EUKU5QKV.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AWTQKBC4.js";
|
|
44
44
|
import {
|
|
45
45
|
qtiInteractionElements
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CNFVA3AA.js";
|
|
47
47
|
import {
|
|
48
48
|
qtiItemElements
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-F7R7GSWL.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-3BAQWO5C.js";
|
|
56
56
|
import {
|
|
57
57
|
qtiBaseElements
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-R7MMMDP7.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-SVYHZIJ7.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-AWTQKBC4.js";
|
|
23
29
|
import "./chunk-4DB4SC5K.js";
|
|
24
30
|
import "./chunk-TLAVOBEM.js";
|
|
25
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-R7MMMDP7.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 QtiItemSessionControl, f as QtiNumberSelected, g as QtiOutcomeProcessing, h as QtiOutcomeProcessingProcessor, i as QtiTest, j as QtiTestFeedback, k as QtiTestPart, l as QtiTestVariables, m as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, n as TestContainer, o as TestEndAttempt, p as TestItemLink, q as TestItemToSpeech, r as TestNavigation, s as TestNext, t as TestPagingButtonsStamp, u as TestPrev, v as TestPrintContext, w as TestPrintVariables, x as TestScoringButtons, y as TestScoringFeedback, z as TestSectionButtonsStamp, A as TestSectionLink, B as TestStamp, C as TestTtsNext, D as TestTtsPause, E as TestTtsPick, F as TestTtsPlay, G as TestTtsPrev, H as TestTtsResume, J as TestTtsStop, K as TestView, L as TestViewToggle, M as TtsContext, N as ttsContext } from './qti-test.d-_THYXPzd.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-q8u5BiVK.js';
|
|
8
8
|
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-BL7GGFJj.js';
|
|
9
9
|
export { qtiTransformManifest } from './transformers.js';
|
|
10
10
|
export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
|
|
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-CuaLjZ6g.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-L7yb3Rzy.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-QD3Y6UK3.js";
|
|
2
2
|
import {
|
|
3
3
|
CandidateCorrectionMixin,
|
|
4
4
|
ChoiceCorrectionMixin,
|
|
@@ -35,8 +35,9 @@ import {
|
|
|
35
35
|
TestNavigationCorrection,
|
|
36
36
|
TestShowCorrectResponse,
|
|
37
37
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-EPSUZIWL.js";
|
|
39
39
|
import {
|
|
40
|
+
QTI_TEST_STATE_VERSION,
|
|
40
41
|
QtiAssessmentItemRef,
|
|
41
42
|
QtiAssessmentSection,
|
|
42
43
|
QtiAssessmentTest,
|
|
@@ -75,10 +76,12 @@ import {
|
|
|
75
76
|
TestView,
|
|
76
77
|
TestViewToggle,
|
|
77
78
|
ttsContext
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-EUKU5QKV.js";
|
|
80
|
+
import "./chunk-SVYHZIJ7.js";
|
|
80
81
|
import {
|
|
82
|
+
PUBLIC_ITEM_EVENTS,
|
|
81
83
|
QtiAssessmentItem,
|
|
84
|
+
QtiAssessmentStimulus,
|
|
82
85
|
QtiAssessmentStimulusRef,
|
|
83
86
|
QtiAssessmentStimulusRefConnectedEvent,
|
|
84
87
|
QtiCompanionMaterialsInfo,
|
|
@@ -96,9 +99,13 @@ import {
|
|
|
96
99
|
QtiStylesheet,
|
|
97
100
|
QtiTemplateConstraint,
|
|
98
101
|
QtiTemplateDeclaration,
|
|
99
|
-
QtiTemplateProcessing
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
QtiTemplateProcessing,
|
|
103
|
+
dispatchDeclared,
|
|
104
|
+
dispatchPublic,
|
|
105
|
+
listenDeclared,
|
|
106
|
+
listenPublic
|
|
107
|
+
} from "./chunk-AWTQKBC4.js";
|
|
108
|
+
import "./chunk-GPNWMLLA.js";
|
|
102
109
|
import {
|
|
103
110
|
QtiAssociableHotspot,
|
|
104
111
|
QtiAssociateInteraction,
|
|
@@ -133,15 +140,15 @@ import {
|
|
|
133
140
|
QtiTextEntryInteraction,
|
|
134
141
|
QtiUploadInteraction,
|
|
135
142
|
qtiInteractionElements
|
|
136
|
-
} from "./chunk-
|
|
137
|
-
import "./chunk-
|
|
143
|
+
} from "./chunk-CNFVA3AA.js";
|
|
144
|
+
import "./chunk-WNAOVXXN.js";
|
|
138
145
|
import {
|
|
139
146
|
ItemContainer,
|
|
140
147
|
ItemPrintVariables,
|
|
141
148
|
ItemViewMixin,
|
|
142
149
|
QtiItem
|
|
143
|
-
} from "./chunk-
|
|
144
|
-
import "./chunk-
|
|
150
|
+
} from "./chunk-F7R7GSWL.js";
|
|
151
|
+
import "./chunk-ZP6QQYSU.js";
|
|
145
152
|
import "./chunk-4DB4SC5K.js";
|
|
146
153
|
import {
|
|
147
154
|
getItemByUri,
|
|
@@ -152,7 +159,7 @@ import {
|
|
|
152
159
|
qtiTransformManifest,
|
|
153
160
|
qtiTransformTest
|
|
154
161
|
} from "./chunk-TLAVOBEM.js";
|
|
155
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-ACRN7YJM.js";
|
|
156
163
|
import {
|
|
157
164
|
QtiAnd,
|
|
158
165
|
QtiAnyN,
|
|
@@ -230,7 +237,7 @@ import {
|
|
|
230
237
|
QtiVariable,
|
|
231
238
|
qtiAndMixin,
|
|
232
239
|
qtiSubtractMixin
|
|
233
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-3BAQWO5C.js";
|
|
234
241
|
import {
|
|
235
242
|
CustomStateSetShim,
|
|
236
243
|
INITIAL_SESSION_CONTEXT,
|
|
@@ -275,7 +282,7 @@ import {
|
|
|
275
282
|
testContext,
|
|
276
283
|
unregisterCustomOperator,
|
|
277
284
|
validationMessage
|
|
278
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-R7MMMDP7.js";
|
|
279
286
|
export {
|
|
280
287
|
CandidateCorrectionMixin,
|
|
281
288
|
ChoiceCorrectionMixin,
|
|
@@ -292,12 +299,15 @@ export {
|
|
|
292
299
|
ItemShowCandidateCorrection,
|
|
293
300
|
ItemShowCorrectResponse,
|
|
294
301
|
ItemViewMixin,
|
|
302
|
+
PUBLIC_ITEM_EVENTS,
|
|
303
|
+
QTI_TEST_STATE_VERSION,
|
|
295
304
|
QtiAnd,
|
|
296
305
|
QtiAnyN,
|
|
297
306
|
QtiAssessmentItem,
|
|
298
307
|
QtiAssessmentItemCorrection,
|
|
299
308
|
QtiAssessmentItemRef,
|
|
300
309
|
QtiAssessmentSection,
|
|
310
|
+
QtiAssessmentStimulus,
|
|
301
311
|
QtiAssessmentStimulusRef,
|
|
302
312
|
QtiAssessmentStimulusRefConnectedEvent,
|
|
303
313
|
QtiAssessmentTest,
|
|
@@ -499,6 +509,8 @@ export {
|
|
|
499
509
|
convertNumberToUniversalFormat,
|
|
500
510
|
correctionPart,
|
|
501
511
|
decimalSeparator,
|
|
512
|
+
dispatchDeclared,
|
|
513
|
+
dispatchPublic,
|
|
502
514
|
dropRegion,
|
|
503
515
|
getCustomOperator,
|
|
504
516
|
getItemByUri,
|
|
@@ -509,6 +521,8 @@ export {
|
|
|
509
521
|
itemContext,
|
|
510
522
|
itemContextVariables,
|
|
511
523
|
iterResponseValues,
|
|
524
|
+
listenDeclared,
|
|
525
|
+
listenPublic,
|
|
512
526
|
parsePair,
|
|
513
527
|
parsePoint,
|
|
514
528
|
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-q8u5BiVK.js';
|
|
2
|
+
export { O as Orientation } from './qti-text-entry-interaction.d-q8u5BiVK.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { CSSResultGroup, LitElement, PropertyValueMap } from 'lit';
|
|
5
|
-
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-GPNWMLLA.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-CNFVA3AA.js";
|
|
37
37
|
import "./chunk-4DB4SC5K.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-R7MMMDP7.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-WNAOVXXN.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-F7R7GSWL.js";
|
|
8
|
+
import "./chunk-ZP6QQYSU.js";
|
|
9
9
|
import "./chunk-4DB4SC5K.js";
|
|
10
10
|
import "./chunk-TLAVOBEM.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-R7MMMDP7.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-CuaLjZ6g.js';
|
|
6
|
+
import { Q as QtiConditionExpression } from './qti-condition-expression.d-L7yb3Rzy.js';
|
|
7
7
|
import './qti.context.d-CejJMlfZ.js';
|
|
8
8
|
|
|
9
9
|
declare class QtiRule extends LitElement implements QtiRuleBase {
|
package/dist/processing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-ACRN7YJM.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAnd,
|
|
4
4
|
QtiAnyN,
|
|
@@ -76,8 +76,8 @@ import {
|
|
|
76
76
|
QtiVariable,
|
|
77
77
|
qtiAndMixin,
|
|
78
78
|
qtiSubtractMixin
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-3BAQWO5C.js";
|
|
80
|
+
import "./chunk-R7MMMDP7.js";
|
|
81
81
|
export {
|
|
82
82
|
QtiAnd,
|
|
83
83
|
QtiAnyN,
|