@citolab/qti-components 7.4.0 → 7.4.1
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 +6 -6
- 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-TJ6ZOT7A.js → chunk-APBAIN6D.js} +25 -23
- package/dist/chunks/chunk-APBAIN6D.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-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 +6 -6
- 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 +20 -7
- 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 -1
- 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 @@
|
|
|
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
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ItemShowCorrectResponse,
|
|
4
4
|
PrintItemVariables,
|
|
5
5
|
QtiItem
|
|
6
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-4BDOB6KY.js";
|
|
7
7
|
import {
|
|
8
8
|
QtiAnd,
|
|
9
9
|
QtiAssessmentItem,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
QtiVariable,
|
|
102
102
|
qtiAndMixin,
|
|
103
103
|
qtiSubtractMixin
|
|
104
|
-
} from "./chunks/chunk-
|
|
104
|
+
} from "./chunks/chunk-7RW7LCEJ.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-APBAIN6D.js";
|
|
131
131
|
import "./chunks/chunk-LSEB52SP.js";
|
|
132
|
+
import {
|
|
133
|
+
QtiModalFeedback
|
|
134
|
+
} from "./chunks/chunk-K47QFOQX.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) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/qti-loader/qti-loader.ts"],"sourcesContent":["import { qtiTransformItem, qtiTransformTest } from '../qti-transformers';\nimport { qtiTransformManifest } from '../qti-transformers/qti-transform-manifest';\n\nimport type { QtiAssessmentItem } from '../qti-components/qti-assessment-item/qti-assessment-item';\n\nexport type ManifestInfo = {\n testIdentifier: string;\n testHTMLDoc: DocumentFragment;\n testURI: string;\n testURL: string;\n items: {\n identifier: string;\n href: string;\n category: string;\n }[];\n};\n\n// Utility function to ensure package URIs end with a '/'\n// const normalizeUri = (uri: string) => (uri.endsWith('/') ? uri : `${uri}/`);\n\n// Fetches assessment data from the manifest\nexport const getManifestInfo = async (manifestURL: string): Promise<ManifestInfo> => {\n const baseURI = manifestURL.substring(0, manifestURL.lastIndexOf('/'));\n\n const test = await qtiTransformManifest()\n .load(`${manifestURL}`)\n .then(api => api.assessmentTest());\n\n const testHTMLDoc = await qtiTransformTest()\n .load(`${baseURI}/${test.href}`)\n .then(api => api.htmlDoc());\n\n const items = await qtiTransformTest()\n .load(`${baseURI}/${test.href}`)\n .then(api => api.items());\n\n const testURL = `${baseURI}/${test.href}`;\n const testURI = `${baseURI}/${test.href.substring(0, test.href.lastIndexOf('/'))}`;\n\n return {\n testHTMLDoc,\n testURI,\n testURL,\n items,\n testIdentifier: test.identifier\n };\n};\n\n// Fetches a single item by URI\nexport const getItemByUri = async (itemUri: string): Promise<QtiAssessmentItem> => {\n return qtiTransformItem()\n .load(itemUri)\n .promise.then(api => api.htmlDoc().firstElementChild as QtiAssessmentItem);\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/lib/qti-loader/qti-loader.ts"],"sourcesContent":["import { qtiTransformItem, qtiTransformTest } from '../qti-transformers';\nimport { qtiTransformManifest } from '../qti-transformers/qti-transform-manifest';\n\nimport type { QtiAssessmentItem } from '../qti-components/qti-assessment-item/qti-assessment-item';\n\nexport type ManifestInfo = {\n testIdentifier: string;\n testHTMLDoc: DocumentFragment;\n testURI: string;\n testURL: string;\n items: {\n identifier: string;\n href: string;\n category: string;\n }[];\n};\n\n// Utility function to ensure package URIs end with a '/'\n// const normalizeUri = (uri: string) => (uri.endsWith('/') ? uri : `${uri}/`);\n\n// Fetches assessment data from the manifest\nexport const getManifestInfo = async (manifestURL: string): Promise<ManifestInfo> => {\n const baseURI = manifestURL.substring(0, manifestURL.lastIndexOf('/'));\n\n const test = await qtiTransformManifest()\n .load(`${manifestURL}`)\n .then(api => api.assessmentTest());\n\n const testHTMLDoc = await qtiTransformTest()\n .load(`${baseURI}/${test.href}`)\n .then(api => api.htmlDoc());\n\n const items = await qtiTransformTest()\n .load(`${baseURI}/${test.href}`)\n .then(api => api.items());\n\n const testURL = `${baseURI}/${test.href}`;\n const testURI = `${baseURI}/${test.href.substring(0, test.href.lastIndexOf('/'))}`;\n\n return {\n testHTMLDoc,\n testURI,\n testURL,\n items,\n testIdentifier: test.identifier\n };\n};\n\n// Fetches a single item by URI\nexport const getItemByUri = async (itemUri: string): Promise<QtiAssessmentItem> => {\n return qtiTransformItem()\n .load(itemUri)\n .promise.then(api => api.htmlDoc().firstElementChild as QtiAssessmentItem);\n};\n"],"mappings":";;;;;;;;AAqBO,IAAM,kBAAkB,OAAO,gBAA+C;AACnF,QAAM,UAAU,YAAY,UAAU,GAAG,YAAY,YAAY,GAAG,CAAC;AAErE,QAAM,OAAO,MAAM,qBAAqB,EACrC,KAAK,GAAG,WAAW,EAAE,EACrB,KAAK,SAAO,IAAI,eAAe,CAAC;AAEnC,QAAM,cAAc,MAAM,iBAAiB,EACxC,KAAK,GAAG,OAAO,IAAI,KAAK,IAAI,EAAE,EAC9B,KAAK,SAAO,IAAI,QAAQ,CAAC;AAE5B,QAAM,QAAQ,MAAM,iBAAiB,EAClC,KAAK,GAAG,OAAO,IAAI,KAAK,IAAI,EAAE,EAC9B,KAAK,SAAO,IAAI,MAAM,CAAC;AAE1B,QAAM,UAAU,GAAG,OAAO,IAAI,KAAK,IAAI;AACvC,QAAM,UAAU,GAAG,OAAO,IAAI,KAAK,KAAK,UAAU,GAAG,KAAK,KAAK,YAAY,GAAG,CAAC,CAAC;AAEhF,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,gBAAgB,KAAK;AAAA,EACvB;AACF;AAGO,IAAM,eAAe,OAAO,YAAgD;AACjF,SAAO,iBAAiB,EACrB,KAAK,OAAO,EACZ,QAAQ,KAAK,SAAO,IAAI,QAAQ,EAAE,iBAAsC;AAC7E;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
|
|
5
|
+
declare abstract class QtiFeedback extends LitElement {
|
|
6
|
+
protected showHide: string;
|
|
7
|
+
outcomeIdentifier: string;
|
|
8
|
+
protected identifier: string;
|
|
9
|
+
showStatus: string;
|
|
10
|
+
private _context?;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
checkShowFeedback(outcomeIdentifier: string): void;
|
|
13
|
+
private showFeedback;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class QtiModalFeedback extends QtiFeedback {
|
|
17
|
+
static styles: lit.CSSResult;
|
|
18
|
+
render(): lit_html.TemplateResult<1>;
|
|
19
|
+
openFeedback(): void;
|
|
20
|
+
closeFeedback(): void;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'qti-modal-feedback': QtiModalFeedback;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { QtiModalFeedback as Q, QtiFeedback as a };
|
package/dist/qti-test/index.d.ts
CHANGED
|
@@ -1,39 +1,23 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
|
-
import { e as VariableValue, O as OutcomeVariable, V as VariableDeclaration } from '../variables-
|
|
2
|
+
import { e as VariableValue, O as OutcomeVariable, V as VariableDeclaration } from '../variables-BCkyLoXK.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { LitElement, PropertyValues, nothing } from 'lit';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { SessionContext } from '../exports/session.context.js';
|
|
6
|
+
import { b as QtiAssessmentTest, I as IQtiTest } from '../qti-test-BwvOhz_-.js';
|
|
7
|
+
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, d as QtiTestFeedback, c as QtiTestPart } from '../qti-test-BwvOhz_-.js';
|
|
8
|
+
import { TestContext } from '../exports/test.context.js';
|
|
9
|
+
export { INITIAL_TEST_CONTEXT, testContext } from '../exports/test.context.js';
|
|
10
|
+
import { QtiContext } from '../exports/qti.context.js';
|
|
11
|
+
import { ComputedContext, ComputedItem } from '../exports/computed.context.js';
|
|
12
|
+
import { ConfigContext } from '../exports/config.context.js';
|
|
8
13
|
import { TemplateFunction } from '@heximal/templates';
|
|
9
|
-
import { C as ComputedItemContext } from '../computed-item.context-DpK-sS0T.js';
|
|
10
|
-
import { C as ConfigContext } from '../config.context-CmQ9L62n.js';
|
|
11
14
|
import { ViewMode } from 'storybook/internal/types';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
navItemLoading?: boolean;
|
|
19
|
-
navTestLoading?: boolean;
|
|
20
|
-
view?: View;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare class QtiAssessmentTest extends LitElement {
|
|
24
|
-
identifier: string;
|
|
25
|
-
get title(): string;
|
|
26
|
-
set title(value: string);
|
|
27
|
-
_testContext?: TestContext;
|
|
28
|
-
private _title;
|
|
29
|
-
connectedCallback(): Promise<void>;
|
|
30
|
-
render(): lit_html.TemplateResult<1>;
|
|
31
|
-
}
|
|
32
|
-
declare global {
|
|
33
|
-
interface HTMLElementTagNameMap {
|
|
34
|
-
'qti-assessment-test': QtiAssessmentTest;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
15
|
+
import '../exports/expression-result.js';
|
|
16
|
+
import '../qti-transform-item-C9WtMeDR.js';
|
|
17
|
+
import '../qti-assessment-item-l-mN3teH.js';
|
|
18
|
+
import '../qti-modal-feedback-PKbhO-3w.js';
|
|
19
|
+
import '../exports/item.context.js';
|
|
20
|
+
import '../exports/computed-item.context.js';
|
|
37
21
|
|
|
38
22
|
declare abstract class TestBase extends LitElement {
|
|
39
23
|
testContext: Readonly<TestContext>;
|
|
@@ -54,78 +38,6 @@ declare abstract class TestBase extends LitElement {
|
|
|
54
38
|
private _updateItemInTestContext;
|
|
55
39
|
}
|
|
56
40
|
|
|
57
|
-
declare class QtiAssessmentItemRef extends LitElement {
|
|
58
|
-
category?: string;
|
|
59
|
-
identifier?: string;
|
|
60
|
-
required?: boolean;
|
|
61
|
-
fixed?: boolean;
|
|
62
|
-
href?: string;
|
|
63
|
-
weigths: Map<string, number>;
|
|
64
|
-
xmlDoc: DocumentFragment;
|
|
65
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
66
|
-
get assessmentItem(): QtiAssessmentItem | null;
|
|
67
|
-
myTemplate: TemplateFunction;
|
|
68
|
-
connectedCallback(): Promise<void>;
|
|
69
|
-
render(): unknown;
|
|
70
|
-
}
|
|
71
|
-
declare global {
|
|
72
|
-
interface HTMLElementTagNameMap {
|
|
73
|
-
'qti-assessment-item-ref': QtiAssessmentItemRef;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
declare class QtiAssessmentSection extends LitElement {
|
|
78
|
-
identifier: string;
|
|
79
|
-
required: string;
|
|
80
|
-
fixed: boolean;
|
|
81
|
-
get title(): string;
|
|
82
|
-
set title(value: string);
|
|
83
|
-
visible: boolean;
|
|
84
|
-
keepTogether: boolean;
|
|
85
|
-
_testContext?: TestContext;
|
|
86
|
-
private _title;
|
|
87
|
-
connectedCallback(): Promise<void>;
|
|
88
|
-
render(): lit_html.TemplateResult<1>;
|
|
89
|
-
}
|
|
90
|
-
declare global {
|
|
91
|
-
interface HTMLElementTagNameMap {
|
|
92
|
-
'qti-assessment-section': QtiAssessmentSection;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare class QtiTestPart extends LitElement {
|
|
97
|
-
identifier: string;
|
|
98
|
-
get title(): string;
|
|
99
|
-
set title(value: string);
|
|
100
|
-
class: string;
|
|
101
|
-
navigationMode: 'linear' | 'nonlinear';
|
|
102
|
-
submissionMode: 'individual' | 'simultaneous';
|
|
103
|
-
private _title;
|
|
104
|
-
connectedCallback(): Promise<void>;
|
|
105
|
-
render(): lit_html.TemplateResult<1>;
|
|
106
|
-
}
|
|
107
|
-
declare global {
|
|
108
|
-
interface HTMLElementTagNameMap {
|
|
109
|
-
'qti-test-part': QtiTestPart;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
declare class QtiTestFeedback extends QtiModalFeedback {
|
|
114
|
-
static styles: lit.CSSResult;
|
|
115
|
-
render(): lit_html.TemplateResult<1>;
|
|
116
|
-
}
|
|
117
|
-
declare global {
|
|
118
|
-
interface HTMLElementTagNameMap {
|
|
119
|
-
'qti-test-feedback': QtiTestFeedback;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface IQtiTest {
|
|
124
|
-
testContext: Readonly<TestContext>;
|
|
125
|
-
sessionContext: Readonly<SessionContext>;
|
|
126
|
-
updateItemVariables(itemRefID: string, variables: VariableValue<string | string[] | null>[]): void;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
41
|
declare const QtiTest_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {
|
|
130
42
|
updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
|
|
131
43
|
getOutcome(identifier: string): Readonly<OutcomeVariable>;
|
|
@@ -194,31 +106,6 @@ declare global {
|
|
|
194
106
|
}
|
|
195
107
|
}
|
|
196
108
|
|
|
197
|
-
type ComputedItem = ComputedItemContext & {
|
|
198
|
-
categories?: string[];
|
|
199
|
-
type?: 'info' | 'regular';
|
|
200
|
-
index?: number;
|
|
201
|
-
active?: boolean;
|
|
202
|
-
};
|
|
203
|
-
type ComputedContext = {
|
|
204
|
-
view: View;
|
|
205
|
-
identifier: string;
|
|
206
|
-
title: string;
|
|
207
|
-
testParts: {
|
|
208
|
-
active?: boolean;
|
|
209
|
-
identifier: string;
|
|
210
|
-
navigationMode: 'linear' | 'nonlinear';
|
|
211
|
-
submissionMode: 'individual' | 'simultaneous';
|
|
212
|
-
sections: {
|
|
213
|
-
active?: boolean;
|
|
214
|
-
identifier: string;
|
|
215
|
-
title: string;
|
|
216
|
-
completed?: boolean;
|
|
217
|
-
items: ComputedItem[];
|
|
218
|
-
}[];
|
|
219
|
-
}[];
|
|
220
|
-
};
|
|
221
|
-
|
|
222
109
|
type CustomEventMap = {
|
|
223
110
|
'test-end-attempt': CustomEvent;
|
|
224
111
|
'test-show-correct-response': CustomEvent<{
|
|
@@ -590,4 +477,4 @@ declare global {
|
|
|
590
477
|
}
|
|
591
478
|
}
|
|
592
479
|
|
|
593
|
-
export {
|
|
480
|
+
export { QtiAssessmentTest, QtiTest, TestCheckItem, TestContainer, TestContext, TestEndAttempt, TestItemLink, TestNavigation, TestNext, TestPagingButtonsStamp, TestPrev, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionButtonsStamp, TestSectionLink, TestShowCorrectResponse, TestStamp, TestView, TestViewToggle };
|
package/dist/qti-test/index.js
CHANGED
|
@@ -23,14 +23,21 @@ import {
|
|
|
23
23
|
TestStamp,
|
|
24
24
|
TestView,
|
|
25
25
|
TestViewToggle
|
|
26
|
-
} from "../chunks/chunk-
|
|
26
|
+
} from "../chunks/chunk-APBAIN6D.js";
|
|
27
27
|
import "../chunks/chunk-LSEB52SP.js";
|
|
28
|
+
import "../chunks/chunk-K47QFOQX.js";
|
|
29
|
+
import "../chunks/chunk-ELDMXTUQ.js";
|
|
30
|
+
import "../chunks/chunk-WFUXZ4UT.js";
|
|
31
|
+
import "../chunks/chunk-H6KHXSIO.js";
|
|
32
|
+
import "../chunks/chunk-C5RLRG3L.js";
|
|
28
33
|
import {
|
|
29
34
|
INITIAL_TEST_CONTEXT,
|
|
30
35
|
testContext
|
|
31
|
-
} from "../chunks/chunk-
|
|
32
|
-
import "../chunks/chunk-
|
|
33
|
-
import "../chunks/chunk-
|
|
36
|
+
} from "../chunks/chunk-CJADUWEC.js";
|
|
37
|
+
import "../chunks/chunk-DVQQ7I6Y.js";
|
|
38
|
+
import "../chunks/chunk-NJNQOQUU.js";
|
|
39
|
+
import "../chunks/chunk-ERYHQVOT.js";
|
|
40
|
+
import "../chunks/chunk-H2JE6IVU.js";
|
|
34
41
|
export {
|
|
35
42
|
INITIAL_TEST_CONTEXT,
|
|
36
43
|
QtiAssessmentItemRef,
|