@citolab/qti-components 7.4.0 → 7.4.2
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/custom-elements.json +152 -152
- package/dist/chunks/{chunk-6K4ROGDD.js → chunk-4BDOB6KY.js} +12 -11
- package/dist/chunks/chunk-4BDOB6KY.js.map +1 -0
- package/dist/chunks/chunk-4OGJBG35.js +8 -0
- package/dist/chunks/chunk-4OGJBG35.js.map +1 -0
- package/dist/chunks/{chunk-LN74Z5QM.js → chunk-7RW7LCEJ.js} +258 -589
- package/dist/chunks/chunk-7RW7LCEJ.js.map +1 -0
- package/dist/chunks/chunk-C5RLRG3L.js +10 -0
- package/dist/chunks/chunk-C5RLRG3L.js.map +1 -0
- package/dist/chunks/chunk-CJADUWEC.js +10 -0
- package/dist/chunks/chunk-CJADUWEC.js.map +1 -0
- package/dist/chunks/chunk-DVQQ7I6Y.js +8 -0
- package/dist/chunks/chunk-DVQQ7I6Y.js.map +1 -0
- package/dist/chunks/{chunk-O5N4DCU6.js → chunk-ELDMXTUQ.js} +2 -7
- package/dist/chunks/chunk-ELDMXTUQ.js.map +1 -0
- package/dist/chunks/chunk-ERYHQVOT.js +8 -0
- package/dist/chunks/chunk-ERYHQVOT.js.map +1 -0
- package/dist/chunks/chunk-GAAFN7QF.js +146 -0
- package/dist/chunks/chunk-GAAFN7QF.js.map +1 -0
- package/dist/chunks/chunk-H2JE6IVU.js +15 -0
- package/dist/chunks/chunk-H2JE6IVU.js.map +1 -0
- package/dist/chunks/chunk-H6KHXSIO.js +8 -0
- package/dist/chunks/chunk-H6KHXSIO.js.map +1 -0
- package/dist/chunks/chunk-HFAUM56X.js +208 -0
- package/dist/chunks/chunk-HFAUM56X.js.map +1 -0
- package/dist/chunks/chunk-JQ6HWGRY.js +22 -0
- package/dist/chunks/chunk-JQ6HWGRY.js.map +1 -0
- package/dist/chunks/{chunk-GUDRSXIP.js → chunk-K47QFOQX.js} +6 -20
- package/dist/chunks/chunk-K47QFOQX.js.map +1 -0
- package/dist/chunks/chunk-NJNQOQUU.js +8 -0
- package/dist/chunks/chunk-NJNQOQUU.js.map +1 -0
- package/dist/chunks/chunk-SV4K25ZI.js +19 -0
- package/dist/chunks/chunk-SV4K25ZI.js.map +1 -0
- package/dist/chunks/{chunk-TJ6ZOT7A.js → chunk-UVKOJQ52.js} +26 -24
- package/dist/chunks/chunk-UVKOJQ52.js.map +1 -0
- package/dist/chunks/{chunk-JDY5GL7E.js → chunk-WFUXZ4UT.js} +1 -13
- package/dist/chunks/{chunk-JDY5GL7E.js.map → chunk-WFUXZ4UT.js.map} +1 -1
- package/dist/custom-elements.json +152 -152
- package/dist/{computed-item.context-DpK-sS0T.d.ts → exports/computed-item.context.d.ts} +6 -2
- package/dist/exports/computed-item.context.js +8 -0
- package/dist/exports/computed-item.context.js.map +1 -0
- package/dist/exports/computed.context.d.ts +34 -0
- package/dist/exports/computed.context.js +8 -0
- package/dist/exports/computed.context.js.map +1 -0
- package/dist/{config.context-CmQ9L62n.d.ts → exports/config.context.d.ts} +4 -1
- package/dist/exports/config.context.js +8 -0
- package/dist/exports/config.context.js.map +1 -0
- package/dist/exports/expression-result.d.ts +19 -0
- package/dist/exports/expression-result.js +1 -0
- package/dist/exports/expression-result.js.map +1 -0
- package/dist/exports/interaction.d.ts +46 -0
- package/dist/exports/interaction.interface.d.ts +13 -0
- package/dist/exports/interaction.interface.js +1 -0
- package/dist/exports/interaction.interface.js.map +1 -0
- package/dist/exports/interaction.js +12 -0
- package/dist/exports/interaction.js.map +1 -0
- package/dist/exports/item.context.d.ts +11 -0
- package/dist/exports/item.context.js +8 -0
- package/dist/exports/item.context.js.map +1 -0
- package/dist/exports/qti-assessment-item.context.d.ts +9 -0
- package/dist/exports/qti-assessment-item.context.js +8 -0
- package/dist/exports/qti-assessment-item.context.js.map +1 -0
- package/dist/exports/qti-condition-expression.d.ts +14 -0
- package/dist/exports/qti-condition-expression.js +11 -0
- package/dist/exports/qti-condition-expression.js.map +1 -0
- package/dist/exports/qti-expression.d.ts +23 -0
- package/dist/exports/qti-expression.js +10 -0
- package/dist/exports/qti-expression.js.map +1 -0
- package/dist/exports/qti-test.d.ts +12 -0
- package/dist/exports/qti-test.js +1 -0
- package/dist/exports/qti-test.js.map +1 -0
- package/dist/exports/qti.context.d.ts +14 -0
- package/dist/exports/qti.context.js +8 -0
- package/dist/exports/qti.context.js.map +1 -0
- package/dist/exports/session.context.d.ts +15 -0
- package/dist/exports/session.context.js +10 -0
- package/dist/exports/session.context.js.map +1 -0
- package/dist/exports/test.context.d.ts +16 -0
- package/dist/exports/test.context.js +10 -0
- package/dist/exports/test.context.js.map +1 -0
- package/dist/exports/variables.d.ts +2 -0
- package/dist/exports/variables.js +1 -0
- package/dist/exports/variables.js.map +1 -0
- package/dist/index.d.ts +18 -6
- package/dist/index.js +25 -12
- package/dist/{qti-assessment-item-D77dJ1Ot.d.ts → qti-assessment-item-l-mN3teH.d.ts} +2 -1
- package/dist/qti-components/index.d.ts +14 -76
- package/dist/qti-components/index.js +13 -4
- package/dist/qti-item/index.d.ts +4 -3
- package/dist/qti-item/index.js +6 -3
- package/dist/qti-loader/index.d.ts +3 -2
- package/dist/qti-loader/index.js +2 -1
- package/dist/qti-loader/index.js.map +1 -1
- package/dist/qti-modal-feedback-PKbhO-3w.d.ts +30 -0
- package/dist/qti-test/index.d.ts +16 -129
- package/dist/qti-test/index.js +11 -4
- package/dist/qti-test-BwvOhz_-.d.ts +118 -0
- package/dist/qti-transform-item-C9WtMeDR.d.ts +39 -0
- package/dist/qti-transformers/index.d.ts +2 -38
- package/dist/qti-transformers/index.js +2 -1
- package/dist/{variables-Vgyr6yyW.d.ts → variables-BCkyLoXK.d.ts} +7 -10
- package/package.json +1 -2
- package/dist/chunks/chunk-6K4ROGDD.js.map +0 -1
- package/dist/chunks/chunk-GUDRSXIP.js.map +0 -1
- package/dist/chunks/chunk-LN74Z5QM.js.map +0 -1
- package/dist/chunks/chunk-O5N4DCU6.js.map +0 -1
- package/dist/chunks/chunk-TJ6ZOT7A.js.map +0 -1
- package/dist/test.context-L609DNAz.d.ts +0 -58
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ConfigContext } from './config.context.js';
|
|
3
|
+
import { R as ResponseVariable } from '../variables-BCkyLoXK.js';
|
|
4
|
+
import { IInteraction } from './interaction.interface.js';
|
|
5
|
+
import './expression-result.js';
|
|
6
|
+
|
|
7
|
+
declare enum Correctness {
|
|
8
|
+
Correct = "correct",
|
|
9
|
+
PartiallyCorrect = "partially-correct",
|
|
10
|
+
Incorrect = "incorrect"
|
|
11
|
+
}
|
|
12
|
+
declare abstract class Interaction extends LitElement implements IInteraction {
|
|
13
|
+
private _context;
|
|
14
|
+
protected configContext: ConfigContext;
|
|
15
|
+
static formAssociated: boolean;
|
|
16
|
+
protected _internals: ElementInternals;
|
|
17
|
+
get internals(): ElementInternals;
|
|
18
|
+
responseIdentifier: any;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
readonly: boolean;
|
|
21
|
+
protected _isFullCorrectResponse: boolean;
|
|
22
|
+
get isFullCorrectResponse(): Readonly<boolean>;
|
|
23
|
+
set isFullCorrectResponse(val: Readonly<boolean>);
|
|
24
|
+
protected _correctResponse: string | string[];
|
|
25
|
+
get correctResponse(): Readonly<string | string[]>;
|
|
26
|
+
set correctResponse(val: Readonly<string | string[]>);
|
|
27
|
+
get correctness(): Readonly<Correctness | null>;
|
|
28
|
+
get isInline(): boolean;
|
|
29
|
+
get responseVariable(): ResponseVariable | undefined;
|
|
30
|
+
toggleCorrectResponse(show: boolean): void;
|
|
31
|
+
protected toggleFullCorrectResponse(show: boolean): Promise<void>;
|
|
32
|
+
protected toggleInternalCorrectResponse(show: boolean): void;
|
|
33
|
+
toggleCandidateCorrection(show: boolean): void;
|
|
34
|
+
constructor();
|
|
35
|
+
abstract validate(): boolean;
|
|
36
|
+
get value(): string | null;
|
|
37
|
+
set value(val: string | null);
|
|
38
|
+
abstract get response(): string | string[] | null;
|
|
39
|
+
abstract set response(val: string | string[] | null);
|
|
40
|
+
reportValidity(): boolean;
|
|
41
|
+
reset(): void;
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
saveResponse(value: string | string[]): void;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { Correctness, Interaction };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface IInteraction {
|
|
2
|
+
correctResponse: Readonly<string | string[]>;
|
|
3
|
+
response: string | string[];
|
|
4
|
+
responseIdentifier: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
readonly: boolean;
|
|
7
|
+
validate(): boolean;
|
|
8
|
+
reportValidity(): boolean;
|
|
9
|
+
reset(): void;
|
|
10
|
+
saveResponse(value: string | string[]): void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type { IInteraction };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=interaction.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Correctness,
|
|
3
|
+
Interaction
|
|
4
|
+
} from "../chunks/chunk-HFAUM56X.js";
|
|
5
|
+
import "../chunks/chunk-NJNQOQUU.js";
|
|
6
|
+
import "../chunks/chunk-ERYHQVOT.js";
|
|
7
|
+
import "../chunks/chunk-H2JE6IVU.js";
|
|
8
|
+
export {
|
|
9
|
+
Correctness,
|
|
10
|
+
Interaction
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=interaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { V as VariableDeclaration } from '../variables-BCkyLoXK.js';
|
|
2
|
+
import './expression-result.js';
|
|
3
|
+
|
|
4
|
+
interface ItemContext {
|
|
5
|
+
identifier?: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
variables?: ReadonlyArray<VariableDeclaration<string | string[] | null>>;
|
|
8
|
+
}
|
|
9
|
+
declare const itemContextVariables: VariableDeclaration<string | string[]>[];
|
|
10
|
+
|
|
11
|
+
export { type ItemContext, itemContextVariables };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QtiExpression } from './qti-expression.js';
|
|
2
|
+
import 'lit-html';
|
|
3
|
+
import 'lit';
|
|
4
|
+
import './qti.context.js';
|
|
5
|
+
import '../variables-BCkyLoXK.js';
|
|
6
|
+
import './expression-result.js';
|
|
7
|
+
import './item.context.js';
|
|
8
|
+
|
|
9
|
+
declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
|
|
10
|
+
calculate(): Readonly<boolean>;
|
|
11
|
+
getResult(): Readonly<boolean>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { QtiConditionExpression };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
QtiConditionExpression
|
|
3
|
+
} from "../chunks/chunk-SV4K25ZI.js";
|
|
4
|
+
import "../chunks/chunk-GAAFN7QF.js";
|
|
5
|
+
import "../chunks/chunk-H6KHXSIO.js";
|
|
6
|
+
import "../chunks/chunk-NJNQOQUU.js";
|
|
7
|
+
import "../chunks/chunk-H2JE6IVU.js";
|
|
8
|
+
export {
|
|
9
|
+
QtiConditionExpression
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=qti-condition-expression.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import { QtiContext, QtiContextType } from './qti.context.js';
|
|
5
|
+
import { R as ResponseVariable, V as VariableDeclaration } from '../variables-BCkyLoXK.js';
|
|
6
|
+
import { ItemContext } from './item.context.js';
|
|
7
|
+
import './expression-result.js';
|
|
8
|
+
|
|
9
|
+
interface QtiExpressionBase<T> {
|
|
10
|
+
calculate(): Readonly<T>;
|
|
11
|
+
}
|
|
12
|
+
declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
|
|
13
|
+
protected result: any;
|
|
14
|
+
static styles: lit.CSSResult;
|
|
15
|
+
render(): lit_html.TemplateResult<1>;
|
|
16
|
+
calculate(): Readonly<T>;
|
|
17
|
+
protected getResult(): Readonly<T>;
|
|
18
|
+
protected context?: ItemContext;
|
|
19
|
+
protected qtiContext?: QtiContext;
|
|
20
|
+
getVariables: () => (ResponseVariable | VariableDeclaration<QtiContextType>)[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { QtiExpression, type QtiExpressionBase };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
QtiExpression
|
|
3
|
+
} from "../chunks/chunk-GAAFN7QF.js";
|
|
4
|
+
import "../chunks/chunk-H6KHXSIO.js";
|
|
5
|
+
import "../chunks/chunk-NJNQOQUU.js";
|
|
6
|
+
import "../chunks/chunk-H2JE6IVU.js";
|
|
7
|
+
export {
|
|
8
|
+
QtiExpression
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=qti-expression.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { I as IQtiTest, f as ITestNavigationMixin, g as ITestProcessingMixin, e as QtiTest } from '../qti-test-BwvOhz_-.js';
|
|
2
|
+
import 'lit';
|
|
3
|
+
import './test.context.js';
|
|
4
|
+
import './session.context.js';
|
|
5
|
+
import '../variables-BCkyLoXK.js';
|
|
6
|
+
import '../qti-transform-item-C9WtMeDR.js';
|
|
7
|
+
import '../qti-assessment-item-l-mN3teH.js';
|
|
8
|
+
import 'lit-html';
|
|
9
|
+
import './expression-result.js';
|
|
10
|
+
import '@heximal/templates';
|
|
11
|
+
import '../qti-modal-feedback-PKbhO-3w.js';
|
|
12
|
+
import './item.context.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=qti-test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type QtiContextType = {
|
|
2
|
+
testIdentifier: string;
|
|
3
|
+
candidateIdentifier: string;
|
|
4
|
+
environmentIdentifier: string;
|
|
5
|
+
[key: string]: string | string[];
|
|
6
|
+
};
|
|
7
|
+
interface QtiContext {
|
|
8
|
+
QTI_CONTEXT: QtiContextType;
|
|
9
|
+
}
|
|
10
|
+
declare const qtiContext: {
|
|
11
|
+
__context__: Readonly<QtiContext>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { type QtiContext, type QtiContextType, qtiContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type View = 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor' | '';
|
|
2
|
+
interface SessionContext {
|
|
3
|
+
navPartId?: string | null;
|
|
4
|
+
navSectionId?: string | null;
|
|
5
|
+
navItemRefId?: string | null;
|
|
6
|
+
navItemLoading?: boolean;
|
|
7
|
+
navTestLoading?: boolean;
|
|
8
|
+
view?: View;
|
|
9
|
+
}
|
|
10
|
+
declare const INITIAL_SESSION_CONTEXT: Readonly<SessionContext>;
|
|
11
|
+
declare const sessionContext: {
|
|
12
|
+
__context__: Readonly<SessionContext>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { INITIAL_SESSION_CONTEXT, type SessionContext, type View, sessionContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ItemContext } from './item.context.js';
|
|
2
|
+
import { V as VariableDeclaration } from '../variables-BCkyLoXK.js';
|
|
3
|
+
import './expression-result.js';
|
|
4
|
+
|
|
5
|
+
interface TestContext {
|
|
6
|
+
items: (ItemContext & {
|
|
7
|
+
category?: string;
|
|
8
|
+
})[];
|
|
9
|
+
testOutcomeVariables?: VariableDeclaration<string | string[] | null>[];
|
|
10
|
+
}
|
|
11
|
+
declare const INITIAL_TEST_CONTEXT: Readonly<TestContext>;
|
|
12
|
+
declare const testContext: {
|
|
13
|
+
__context__: Readonly<TestContext>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { INITIAL_TEST_CONTEXT, type TestContext, testContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=variables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
export { Q as QtiAssessmentItem } from './qti-assessment-item-
|
|
1
|
+
export { Q as QtiAssessmentItem } from './qti-assessment-item-l-mN3teH.js';
|
|
2
2
|
export { Orientation, QtiAnd, QtiAssessmentStimulusRef, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiContainerSize, QtiContains, QtiContentBody, QtiCorrect, QtiCustomInteraction, QtiCustomOperator, QtiDefault, QtiDelete, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiFieldValue, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGcd, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiIndex, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiItemBody, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMatchInteraction, QtiMathOperator, QtiMediaInteraction, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiOutcomeProcessing, QtiOutcomeProcessingProcessor, QtiPortableCustomInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiPower, QtiPrintedVariable, QtiProduct, QtiPrompt, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRound, QtiRoundTo, QtiRubricBlock, QtiRule, QtiRuleBase, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSubtract, QtiSum, QtiSumExpression, QtiTextEntryInteraction, QtiUploadInteraction, QtiVariable, qtiAndMixin, qtiSubtractMixin } from './qti-components/index.js';
|
|
3
|
-
export {
|
|
4
|
-
export { c as QtiAreaMapEntry, b as QtiAreaMapping, a as QtiMapEntry, Q as QtiMapping, d as areaShape } from './variables-
|
|
5
|
-
export {
|
|
3
|
+
export { Q as QtiModalFeedback } from './qti-modal-feedback-PKbhO-3w.js';
|
|
4
|
+
export { c as QtiAreaMapEntry, b as QtiAreaMapping, a as QtiMapEntry, Q as QtiMapping, d as areaShape } from './variables-BCkyLoXK.js';
|
|
5
|
+
export { QtiTest, TestCheckItem, TestContainer, TestEndAttempt, TestItemLink, TestNavigation, TestNext, TestPagingButtonsStamp, TestPrev, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionButtonsStamp, TestSectionLink, TestShowCorrectResponse, TestStamp, TestView, TestViewToggle } from './qti-test/index.js';
|
|
6
|
+
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, d as QtiTestFeedback, c as QtiTestPart } from './qti-test-BwvOhz_-.js';
|
|
7
|
+
export { INITIAL_TEST_CONTEXT, TestContext, testContext } from './exports/test.context.js';
|
|
6
8
|
export { ItemContainer, ItemShowCorrectResponse, PrintItemVariables, QtiItem } from './qti-item/index.js';
|
|
7
9
|
import 'lit-html';
|
|
8
10
|
import 'lit';
|
|
9
|
-
import './
|
|
11
|
+
import './exports/expression-result.js';
|
|
12
|
+
import './exports/interaction.interface.js';
|
|
13
|
+
import './exports/interaction.js';
|
|
14
|
+
import './exports/config.context.js';
|
|
15
|
+
import './exports/item.context.js';
|
|
10
16
|
import 'lit-html/directives/ref.js';
|
|
17
|
+
import './exports/qti-expression.js';
|
|
18
|
+
import './exports/qti.context.js';
|
|
19
|
+
import './exports/qti-condition-expression.js';
|
|
20
|
+
import './exports/session.context.js';
|
|
21
|
+
import './exports/computed.context.js';
|
|
22
|
+
import './exports/computed-item.context.js';
|
|
11
23
|
import '@heximal/templates';
|
|
12
|
-
import './computed-item.context-DpK-sS0T.js';
|
|
13
24
|
import 'storybook/internal/types';
|
|
25
|
+
import './qti-transform-item-C9WtMeDR.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ItemContainer,
|
|
3
|
-
ItemShowCorrectResponse,
|
|
4
|
-
PrintItemVariables,
|
|
5
|
-
QtiItem
|
|
6
|
-
} from "./chunks/chunk-6K4ROGDD.js";
|
|
7
1
|
import {
|
|
8
2
|
QtiAnd,
|
|
9
3
|
QtiAssessmentItem,
|
|
@@ -101,7 +95,13 @@ import {
|
|
|
101
95
|
QtiVariable,
|
|
102
96
|
qtiAndMixin,
|
|
103
97
|
qtiSubtractMixin
|
|
104
|
-
} from "./chunks/chunk-
|
|
98
|
+
} from "./chunks/chunk-7RW7LCEJ.js";
|
|
99
|
+
import {
|
|
100
|
+
ItemContainer,
|
|
101
|
+
ItemShowCorrectResponse,
|
|
102
|
+
PrintItemVariables,
|
|
103
|
+
QtiItem
|
|
104
|
+
} from "./chunks/chunk-4BDOB6KY.js";
|
|
105
105
|
import {
|
|
106
106
|
QtiAssessmentItemRef,
|
|
107
107
|
QtiAssessmentSection,
|
|
@@ -127,15 +127,28 @@ import {
|
|
|
127
127
|
TestStamp,
|
|
128
128
|
TestView,
|
|
129
129
|
TestViewToggle
|
|
130
|
-
} from "./chunks/chunk-
|
|
130
|
+
} from "./chunks/chunk-UVKOJQ52.js";
|
|
131
|
+
import {
|
|
132
|
+
QtiModalFeedback
|
|
133
|
+
} from "./chunks/chunk-K47QFOQX.js";
|
|
131
134
|
import "./chunks/chunk-LSEB52SP.js";
|
|
135
|
+
import "./chunks/chunk-ELDMXTUQ.js";
|
|
136
|
+
import "./chunks/chunk-WFUXZ4UT.js";
|
|
137
|
+
import "./chunks/chunk-SV4K25ZI.js";
|
|
138
|
+
import "./chunks/chunk-GAAFN7QF.js";
|
|
139
|
+
import "./chunks/chunk-H6KHXSIO.js";
|
|
140
|
+
import "./chunks/chunk-C5RLRG3L.js";
|
|
132
141
|
import {
|
|
133
142
|
INITIAL_TEST_CONTEXT,
|
|
134
|
-
QtiModalFeedback,
|
|
135
143
|
testContext
|
|
136
|
-
} from "./chunks/chunk-
|
|
137
|
-
import "./chunks/chunk-
|
|
138
|
-
import "./chunks/chunk-
|
|
144
|
+
} from "./chunks/chunk-CJADUWEC.js";
|
|
145
|
+
import "./chunks/chunk-4OGJBG35.js";
|
|
146
|
+
import "./chunks/chunk-DVQQ7I6Y.js";
|
|
147
|
+
import "./chunks/chunk-HFAUM56X.js";
|
|
148
|
+
import "./chunks/chunk-NJNQOQUU.js";
|
|
149
|
+
import "./chunks/chunk-ERYHQVOT.js";
|
|
150
|
+
import "./chunks/chunk-JQ6HWGRY.js";
|
|
151
|
+
import "./chunks/chunk-H2JE6IVU.js";
|
|
139
152
|
export {
|
|
140
153
|
INITIAL_TEST_CONTEXT,
|
|
141
154
|
ItemContainer,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
import {
|
|
3
|
+
import { ResponseInteraction } from './exports/expression-result.js';
|
|
4
|
+
import { e as VariableValue, R as ResponseVariable, O as OutcomeVariable, V as VariableDeclaration } from './variables-BCkyLoXK.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @summary The qti-assessment-item element contains all the other QTI 3 item structures.
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
export { Q as QtiAssessmentItem } from '../qti-assessment-item-
|
|
1
|
+
export { Q as QtiAssessmentItem } from '../qti-assessment-item-l-mN3teH.js';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement, CSSResultGroup, PropertyValues, PropertyValueMap, nothing } from 'lit';
|
|
4
4
|
import * as lit_html from 'lit-html';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import {
|
|
5
|
+
import { Calculate, Cardinality, BaseType } from '../exports/expression-result.js';
|
|
6
|
+
import { a as QtiFeedback } from '../qti-modal-feedback-PKbhO-3w.js';
|
|
7
|
+
export { Q as QtiModalFeedback } from '../qti-modal-feedback-PKbhO-3w.js';
|
|
8
|
+
import { IInteraction } from '../exports/interaction.interface.js';
|
|
9
|
+
import { Interaction, Correctness } from '../exports/interaction.js';
|
|
10
|
+
import { ConfigContext } from '../exports/config.context.js';
|
|
11
|
+
import { ItemContext } from '../exports/item.context.js';
|
|
10
12
|
import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
|
|
13
|
+
import { QtiExpression, QtiExpressionBase } from '../exports/qti-expression.js';
|
|
14
|
+
import { QtiConditionExpression } from '../exports/qti-condition-expression.js';
|
|
15
|
+
import { TestContext } from '../exports/test.context.js';
|
|
16
|
+
import { R as ResponseVariable, V as VariableDeclaration } from '../variables-BCkyLoXK.js';
|
|
17
|
+
export { c as QtiAreaMapEntry, b as QtiAreaMapping, a as QtiMapEntry, Q as QtiMapping, d as areaShape } from '../variables-BCkyLoXK.js';
|
|
18
|
+
import '../exports/qti.context.js';
|
|
11
19
|
|
|
12
20
|
/**
|
|
13
21
|
* Represents a custom element for referencing an assessment stimulus.
|
|
@@ -103,57 +111,6 @@ declare global {
|
|
|
103
111
|
}
|
|
104
112
|
}
|
|
105
113
|
|
|
106
|
-
interface IInteraction {
|
|
107
|
-
correctResponse: Readonly<string | string[]>;
|
|
108
|
-
response: string | string[];
|
|
109
|
-
responseIdentifier: string;
|
|
110
|
-
disabled: boolean;
|
|
111
|
-
readonly: boolean;
|
|
112
|
-
validate(): boolean;
|
|
113
|
-
reportValidity(): boolean;
|
|
114
|
-
reset(): void;
|
|
115
|
-
saveResponse(value: string | string[]): void;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
declare enum Correctness {
|
|
119
|
-
Correct = "correct",
|
|
120
|
-
PartiallyCorrect = "partially-correct",
|
|
121
|
-
Incorrect = "incorrect"
|
|
122
|
-
}
|
|
123
|
-
declare abstract class Interaction extends LitElement implements IInteraction {
|
|
124
|
-
private _context;
|
|
125
|
-
protected configContext: ConfigContext;
|
|
126
|
-
static formAssociated: boolean;
|
|
127
|
-
protected _internals: ElementInternals;
|
|
128
|
-
get internals(): ElementInternals;
|
|
129
|
-
responseIdentifier: any;
|
|
130
|
-
disabled: boolean;
|
|
131
|
-
readonly: boolean;
|
|
132
|
-
protected _isFullCorrectResponse: boolean;
|
|
133
|
-
get isFullCorrectResponse(): Readonly<boolean>;
|
|
134
|
-
set isFullCorrectResponse(val: Readonly<boolean>);
|
|
135
|
-
protected _correctResponse: string | string[];
|
|
136
|
-
get correctResponse(): Readonly<string | string[]>;
|
|
137
|
-
set correctResponse(val: Readonly<string | string[]>);
|
|
138
|
-
get correctness(): Readonly<Correctness | null>;
|
|
139
|
-
get isInline(): boolean;
|
|
140
|
-
get responseVariable(): ResponseVariable | undefined;
|
|
141
|
-
toggleCorrectResponse(show: boolean): void;
|
|
142
|
-
protected toggleFullCorrectResponse(show: boolean): Promise<void>;
|
|
143
|
-
protected toggleInternalCorrectResponse(show: boolean): void;
|
|
144
|
-
toggleCandidateCorrection(show: boolean): void;
|
|
145
|
-
constructor();
|
|
146
|
-
abstract validate(): boolean;
|
|
147
|
-
get value(): string | null;
|
|
148
|
-
set value(val: string | null);
|
|
149
|
-
abstract get response(): string | string[] | null;
|
|
150
|
-
abstract set response(val: string | string[] | null);
|
|
151
|
-
reportValidity(): boolean;
|
|
152
|
-
reset(): void;
|
|
153
|
-
connectedCallback(): void;
|
|
154
|
-
saveResponse(value: string | string[]): void;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
114
|
declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
158
115
|
declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
159
116
|
static styles: CSSResultGroup;
|
|
@@ -1103,20 +1060,6 @@ declare global {
|
|
|
1103
1060
|
}
|
|
1104
1061
|
}
|
|
1105
1062
|
|
|
1106
|
-
interface QtiExpressionBase<T> {
|
|
1107
|
-
calculate(): Readonly<T>;
|
|
1108
|
-
}
|
|
1109
|
-
declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
|
|
1110
|
-
protected result: any;
|
|
1111
|
-
static styles: lit.CSSResult;
|
|
1112
|
-
render(): lit_html.TemplateResult<1>;
|
|
1113
|
-
calculate(): Readonly<T>;
|
|
1114
|
-
protected getResult(): Readonly<T>;
|
|
1115
|
-
protected context?: ItemContext;
|
|
1116
|
-
protected qtiContext?: QtiContext;
|
|
1117
|
-
getVariables: () => (ResponseVariable | VariableDeclaration<QtiContextType>)[];
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
1063
|
/**
|
|
1121
1064
|
* The lookupOutcomeValue rule sets the value of an outcome variable to the value obtained
|
|
1122
1065
|
* by looking up the value of the associated expression in the lookupTable associated
|
|
@@ -1181,11 +1124,6 @@ declare class QtiResponseElseIf extends QtiResponseIf {
|
|
|
1181
1124
|
render(): lit_html.TemplateResult<1>;
|
|
1182
1125
|
}
|
|
1183
1126
|
|
|
1184
|
-
declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
|
|
1185
|
-
calculate(): Readonly<boolean>;
|
|
1186
|
-
getResult(): Readonly<boolean>;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
1127
|
type Constructor$1<T> = new (...args: any[]) => T;
|
|
1190
1128
|
declare const QtiAnd_base: {
|
|
1191
1129
|
new (...args: any[]): {
|
|
@@ -95,12 +95,21 @@ import {
|
|
|
95
95
|
QtiVariable,
|
|
96
96
|
qtiAndMixin,
|
|
97
97
|
qtiSubtractMixin
|
|
98
|
-
} from "../chunks/chunk-
|
|
98
|
+
} from "../chunks/chunk-7RW7LCEJ.js";
|
|
99
99
|
import {
|
|
100
100
|
QtiModalFeedback
|
|
101
|
-
} from "../chunks/chunk-
|
|
102
|
-
import "../chunks/chunk-
|
|
103
|
-
import "../chunks/chunk-
|
|
101
|
+
} from "../chunks/chunk-K47QFOQX.js";
|
|
102
|
+
import "../chunks/chunk-ELDMXTUQ.js";
|
|
103
|
+
import "../chunks/chunk-WFUXZ4UT.js";
|
|
104
|
+
import "../chunks/chunk-SV4K25ZI.js";
|
|
105
|
+
import "../chunks/chunk-GAAFN7QF.js";
|
|
106
|
+
import "../chunks/chunk-H6KHXSIO.js";
|
|
107
|
+
import "../chunks/chunk-CJADUWEC.js";
|
|
108
|
+
import "../chunks/chunk-HFAUM56X.js";
|
|
109
|
+
import "../chunks/chunk-NJNQOQUU.js";
|
|
110
|
+
import "../chunks/chunk-ERYHQVOT.js";
|
|
111
|
+
import "../chunks/chunk-JQ6HWGRY.js";
|
|
112
|
+
import "../chunks/chunk-H2JE6IVU.js";
|
|
104
113
|
export {
|
|
105
114
|
QtiAnd,
|
|
106
115
|
QtiAssessmentItem,
|
package/dist/qti-item/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import '../variables-
|
|
4
|
+
import { ComputedItemContext } from '../exports/computed-item.context.js';
|
|
5
|
+
import { ConfigContext } from '../exports/config.context.js';
|
|
6
|
+
import '../variables-BCkyLoXK.js';
|
|
7
|
+
import '../exports/expression-result.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* `<item-container>` is a custom element designed for hosting the qti-assessment-item.
|
package/dist/qti-item/index.js
CHANGED
|
@@ -3,10 +3,13 @@ import {
|
|
|
3
3
|
ItemShowCorrectResponse,
|
|
4
4
|
PrintItemVariables,
|
|
5
5
|
QtiItem
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-4BDOB6KY.js";
|
|
7
7
|
import "../chunks/chunk-LSEB52SP.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-ELDMXTUQ.js";
|
|
9
|
+
import "../chunks/chunk-WFUXZ4UT.js";
|
|
10
|
+
import "../chunks/chunk-4OGJBG35.js";
|
|
11
|
+
import "../chunks/chunk-ERYHQVOT.js";
|
|
12
|
+
import "../chunks/chunk-H2JE6IVU.js";
|
|
10
13
|
export {
|
|
11
14
|
ItemContainer,
|
|
12
15
|
ItemShowCorrectResponse,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Q as QtiAssessmentItem } from '../qti-assessment-item-
|
|
1
|
+
import { Q as QtiAssessmentItem } from '../qti-assessment-item-l-mN3teH.js';
|
|
2
2
|
import 'lit-html';
|
|
3
3
|
import 'lit';
|
|
4
|
-
import '../
|
|
4
|
+
import '../exports/expression-result.js';
|
|
5
|
+
import '../variables-BCkyLoXK.js';
|
|
5
6
|
|
|
6
7
|
type ManifestInfo = {
|
|
7
8
|
testIdentifier: string;
|
package/dist/qti-loader/index.js
CHANGED
|
@@ -2,7 +2,8 @@ import {
|
|
|
2
2
|
qtiTransformItem,
|
|
3
3
|
qtiTransformManifest,
|
|
4
4
|
qtiTransformTest
|
|
5
|
-
} from "../chunks/chunk-
|
|
5
|
+
} from "../chunks/chunk-WFUXZ4UT.js";
|
|
6
|
+
import "../chunks/chunk-H2JE6IVU.js";
|
|
6
7
|
|
|
7
8
|
// src/lib/qti-loader/qti-loader.ts
|
|
8
9
|
var getManifestInfo = async (manifestURL) => {
|