@citolab/qti-components 10.0.0-next.2 → 10.0.0-next.20
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 +4334 -2688
- package/dist/base.d.ts +39 -13
- package/dist/base.js +14 -1
- package/dist/{chunk-RU6332MD.js → chunk-2A52V5TQ.js} +4 -4
- package/dist/{chunk-MI7774NV.js → chunk-5BP2A7BI.js} +2 -2
- package/dist/{chunk-35WWWFS6.js → chunk-DAESCCLR.js} +2 -2
- package/dist/chunk-DJ7PB252.js +7 -0
- package/dist/chunk-DJ7PB252.js.map +1 -0
- package/dist/{chunk-3ZNECUPV.js → chunk-GJWA6LLT.js} +2 -2
- package/dist/{chunk-TDWJ6WZA.js → chunk-GPC53O7P.js} +166 -10
- package/dist/chunk-GPC53O7P.js.map +1 -0
- package/dist/{chunk-6U3YPHXU.js → chunk-H6DO5UHC.js} +277 -154
- package/dist/chunk-H6DO5UHC.js.map +1 -0
- package/dist/chunk-J6VX4N7M.js +197 -0
- package/dist/chunk-J6VX4N7M.js.map +1 -0
- package/dist/{chunk-FD4AB6TM.js → chunk-KQ2LED4X.js} +2 -2
- package/dist/{chunk-6K3QWJHH.js → chunk-LPYZVKHX.js} +48 -7
- package/dist/chunk-LPYZVKHX.js.map +1 -0
- package/dist/{chunk-K3VKQ6QF.js → chunk-ORQFZNJW.js} +614 -1847
- package/dist/chunk-ORQFZNJW.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/{chunk-GBZNFSFY.js → chunk-TSJGL6FI.js} +2 -2
- package/dist/{chunk-RSMYGGQK.js → chunk-TZCOXFPB.js} +1590 -610
- package/dist/chunk-TZCOXFPB.js.map +1 -0
- package/dist/chunk-UCXLDQYA.js +56 -0
- package/dist/chunk-UCXLDQYA.js.map +1 -0
- package/dist/chunk-WWY2H2YO.js +7 -0
- package/dist/chunk-WWY2H2YO.js.map +1 -0
- package/dist/{chunk-LFVPS7KB.js → chunk-XWRZP2RM.js} +2 -2
- package/dist/{chunk-2KP5UU5A.js → chunk-Y6Q3F2S7.js} +117 -92
- package/dist/chunk-Y6Q3F2S7.js.map +1 -0
- package/dist/{chunk-TLAVOBEM.js → chunk-ZRORBAHB.js} +122 -3
- package/dist/chunk-ZRORBAHB.js.map +1 -0
- package/dist/computed.types.d-6Ht-HNRx.d.ts +80 -0
- package/dist/{config.context.d-BvU9r-Mg.d.ts → config.context.d-Dm11aAuw.d.ts} +21 -3
- package/dist/corrections.d.ts +137 -24
- package/dist/corrections.js +12 -12
- package/dist/corrections.js.map +1 -1
- package/dist/elements.d.ts +66 -73
- package/dist/elements.js +9 -6
- package/dist/index.d.ts +21 -17
- package/dist/index.js +47 -61
- package/dist/interactions.d.ts +98 -19
- package/dist/interactions.js +8 -3
- package/dist/item.css +1948 -1946
- package/dist/item.d.ts +8 -6
- package/dist/item.js +6 -5
- package/dist/item.types.d-Zc6ZQDhu.d.ts +25 -0
- package/dist/loader.d.ts +5 -3
- package/dist/loader.js +3 -2
- package/dist/processing.d.ts +19 -7
- package/dist/processing.js +4 -3
- package/dist/public-events.d-3dGip9pd.d.ts +105 -0
- package/dist/qti-components-jsx.d.ts +1780 -1727
- package/dist/{qti-condition-expression.d-VJH6cWxf.d.ts → qti-condition-expression.d-7Kd4LBxn.d.ts} +1 -1
- package/dist/{qti-expression.d-BPxEp8HU.d.ts → qti-expression.d-iH3w6mqf.d.ts} +2 -1
- package/dist/{qti-feedback.d-wMYNVkkj.d.ts → qti-feedback.d-CT0W-8Gm.d.ts} +8 -1
- package/dist/{qti-item.d-DgC1AQbY.d.ts → qti-item.d-CxP6KtCH.d.ts} +3 -2
- package/dist/{qti-rule-base.d-Bdzg8eGH.d.ts → qti-rule-base.d-CeKP0Ooi.d.ts} +2 -2
- package/dist/qti-test-state-CF9S8X9C.d.ts +68 -0
- package/dist/qti-test-state.d-D8Q89RzZ.d.ts +57 -0
- package/dist/{qti-test.d-DkpBNcsv.d.ts → qti-test.d-sskv-dEN.d.ts} +87 -485
- package/dist/{qti-text-entry-interaction.d-q8u5BiVK.d.ts → qti-text-entry-interaction.d-m0EFv9no.d.ts} +221 -73
- package/dist/{qti-transform-test.d-BL7GGFJj.d.ts → qti-transform-test.d-Bb9vnLzP.d.ts} +1 -0
- package/dist/{interaction.d-g6XG0T0Z.d.ts → record.d-N1Bq7e1f.d.ts} +67 -4
- package/dist/{session.context.d-D5080LVx.d.ts → session.context.d-9gRdGK4T.d.ts} +7 -1
- package/dist/test-plugin-api.d.ts +134 -0
- package/dist/test-plugin-api.js +19 -0
- package/dist/test-plugin-api.js.map +1 -0
- package/dist/test.d.ts +26 -57
- package/dist/test.js +19 -48
- package/dist/transformers.d.ts +1 -1
- package/dist/transformers.js +2 -1
- package/dist/{item.types.d-B55QkJ92.d.ts → variables.d-DWHlTszN.d.ts} +8 -24
- package/package.json +16 -11
- package/dist/chunk-2KP5UU5A.js.map +0 -1
- package/dist/chunk-6K3QWJHH.js.map +0 -1
- package/dist/chunk-6U3YPHXU.js.map +0 -1
- package/dist/chunk-K3VKQ6QF.js.map +0 -1
- package/dist/chunk-RSMYGGQK.js.map +0 -1
- package/dist/chunk-TDWJ6WZA.js.map +0 -1
- package/dist/chunk-TLAVOBEM.js.map +0 -1
- package/dist/chunk-ZP6QQYSU.js +0 -7
- package/dist/chunk-ZP6QQYSU.js.map +0 -1
- package/dist/computed.types.d-gJrBeUMG.d.ts +0 -42
- /package/dist/{chunk-RU6332MD.js.map → chunk-2A52V5TQ.js.map} +0 -0
- /package/dist/{chunk-MI7774NV.js.map → chunk-5BP2A7BI.js.map} +0 -0
- /package/dist/{chunk-35WWWFS6.js.map → chunk-DAESCCLR.js.map} +0 -0
- /package/dist/{chunk-3ZNECUPV.js.map → chunk-GJWA6LLT.js.map} +0 -0
- /package/dist/{chunk-FD4AB6TM.js.map → chunk-KQ2LED4X.js.map} +0 -0
- /package/dist/{chunk-GBZNFSFY.js.map → chunk-TSJGL6FI.js.map} +0 -0
- /package/dist/{chunk-LFVPS7KB.js.map → chunk-XWRZP2RM.js.map} +0 -0
package/dist/corrections.js
CHANGED
|
@@ -30,37 +30,38 @@ import {
|
|
|
30
30
|
QtiSliderInteractionCorrection,
|
|
31
31
|
QtiTestCorrection,
|
|
32
32
|
QtiTextEntryInteractionCorrection,
|
|
33
|
-
TestCheckItemCorrection,
|
|
34
33
|
TestNavigationCorrection,
|
|
35
34
|
TestShowCorrectResponse,
|
|
36
35
|
correctionPart
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Y6Q3F2S7.js";
|
|
38
37
|
import {
|
|
39
38
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ORQFZNJW.js";
|
|
40
|
+
import "./chunk-J6VX4N7M.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-H6DO5UHC.js";
|
|
44
|
+
import "./chunk-UCXLDQYA.js";
|
|
44
45
|
import {
|
|
45
46
|
qtiInteractionElements
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TZCOXFPB.js";
|
|
47
48
|
import {
|
|
48
49
|
qtiItemElements
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-2A52V5TQ.js";
|
|
51
|
+
import "./chunk-WWY2H2YO.js";
|
|
51
52
|
import "./chunk-4DB4SC5K.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-ZRORBAHB.js";
|
|
53
54
|
import {
|
|
54
55
|
qtiProcessingElements
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-LPYZVKHX.js";
|
|
56
57
|
import {
|
|
57
58
|
qtiBaseElements
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-GPC53O7P.js";
|
|
60
|
+
import "./chunk-PZ5AY32C.js";
|
|
59
61
|
|
|
60
62
|
// ../qti-corrections/dist/elements.js
|
|
61
63
|
var qtiCorrectionElements = [
|
|
62
64
|
{ tag: "test-show-correct-response", ctor: TestShowCorrectResponse },
|
|
63
|
-
{ tag: "test-check-item", ctor: TestCheckItemCorrection },
|
|
64
65
|
{ tag: "test-navigation", ctor: TestNavigationCorrection },
|
|
65
66
|
{ tag: "qti-test", ctor: QtiTestCorrection },
|
|
66
67
|
{ tag: "item-correct-response-mode", ctor: ItemCorrectResponseMode },
|
|
@@ -150,7 +151,6 @@ export {
|
|
|
150
151
|
QtiSliderInteractionCorrection,
|
|
151
152
|
QtiTestCorrection,
|
|
152
153
|
QtiTextEntryInteractionCorrection,
|
|
153
|
-
TestCheckItemCorrection,
|
|
154
154
|
TestNavigationCorrection,
|
|
155
155
|
TestShowCorrectResponse,
|
|
156
156
|
correctionPart
|
package/dist/corrections.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../qti-corrections/src/elements.ts","../src/corrections.ts"],"sourcesContent":["import { ItemCorrectResponseMode } from './components/item-correct-response-mode/item-correct-response-mode';\nimport { ItemShowCandidateCorrection } from './components/item-show-candidate-correction/item-show-candidate-correction';\nimport { ItemShowCorrectResponse } from './components/item-show-correct-response/item-show-correct-response';\nimport { TestShowCorrectResponse } from './components/test-show-correct-response/test-show-correct-response';\nimport {\n QtiGapTextCorrection,\n QtiHotspotChoiceCorrection,\n QtiHottextCorrection,\n QtiSimpleAssociableChoiceCorrection,\n QtiSimpleChoiceCorrection\n} from './elements/index';\nimport {\n QtiAssociateInteractionCorrection,\n QtiChoiceInteractionCorrection,\n QtiExtendedTextInteractionCorrection,\n QtiGapMatchInteractionCorrection,\n QtiGraphicAssociateInteractionCorrection,\n QtiGraphicGapMatchInteractionCorrection,\n QtiGraphicOrderInteractionCorrection,\n QtiHotspotInteractionCorrection,\n QtiHottextInteractionCorrection,\n QtiInlineChoiceInteractionCorrection,\n QtiMatchInteractionCorrection,\n QtiOrderInteractionCorrection,\n QtiPortableCustomInteractionCorrection,\n QtiSelectPointInteractionCorrection,\n QtiSliderInteractionCorrection,\n QtiTextEntryInteractionCorrection\n} from './interactions';\nimport { QtiAssessmentItemCorrection } from './components/qti-assessment-item-correction';\nimport { QtiItemCorrection } from './components/qti-item-correction';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../qti-corrections/src/elements.ts","../src/corrections.ts"],"sourcesContent":["import { ItemCorrectResponseMode } from './components/item-correct-response-mode/item-correct-response-mode';\nimport { ItemShowCandidateCorrection } from './components/item-show-candidate-correction/item-show-candidate-correction';\nimport { ItemShowCorrectResponse } from './components/item-show-correct-response/item-show-correct-response';\nimport { TestShowCorrectResponse } from './components/test-show-correct-response/test-show-correct-response';\nimport {\n QtiGapTextCorrection,\n QtiHotspotChoiceCorrection,\n QtiHottextCorrection,\n QtiSimpleAssociableChoiceCorrection,\n QtiSimpleChoiceCorrection\n} from './elements/index';\nimport {\n QtiAssociateInteractionCorrection,\n QtiChoiceInteractionCorrection,\n QtiExtendedTextInteractionCorrection,\n QtiGapMatchInteractionCorrection,\n QtiGraphicAssociateInteractionCorrection,\n QtiGraphicGapMatchInteractionCorrection,\n QtiGraphicOrderInteractionCorrection,\n QtiHotspotInteractionCorrection,\n QtiHottextInteractionCorrection,\n QtiInlineChoiceInteractionCorrection,\n QtiMatchInteractionCorrection,\n QtiOrderInteractionCorrection,\n QtiPortableCustomInteractionCorrection,\n QtiSelectPointInteractionCorrection,\n QtiSliderInteractionCorrection,\n QtiTextEntryInteractionCorrection\n} from './interactions';\nimport { QtiAssessmentItemCorrection } from './components/qti-assessment-item-correction';\nimport { QtiItemCorrection } from './components/qti-item-correction';\nimport { QtiTestCorrection, TestNavigationCorrection } from './components/test-correction-elements';\n\n/** Correction constructors keyed by their standard QTI tag names. */\nexport const qtiCorrectionElements = [\n { tag: 'test-show-correct-response', ctor: TestShowCorrectResponse },\n { tag: 'test-navigation', ctor: TestNavigationCorrection },\n { tag: 'qti-test', ctor: QtiTestCorrection },\n { tag: 'item-correct-response-mode', ctor: ItemCorrectResponseMode },\n { tag: 'item-show-candidate-correction', ctor: ItemShowCandidateCorrection },\n { tag: 'item-show-correct-response', ctor: ItemShowCorrectResponse },\n { tag: 'qti-item', ctor: QtiItemCorrection },\n { tag: 'qti-assessment-item', ctor: QtiAssessmentItemCorrection },\n { tag: 'qti-associate-interaction', ctor: QtiAssociateInteractionCorrection },\n { tag: 'qti-choice-interaction', ctor: QtiChoiceInteractionCorrection },\n { tag: 'qti-extended-text-interaction', ctor: QtiExtendedTextInteractionCorrection },\n { tag: 'qti-gap-match-interaction', ctor: QtiGapMatchInteractionCorrection },\n { tag: 'qti-graphic-associate-interaction', ctor: QtiGraphicAssociateInteractionCorrection },\n { tag: 'qti-graphic-gap-match-interaction', ctor: QtiGraphicGapMatchInteractionCorrection },\n { tag: 'qti-graphic-order-interaction', ctor: QtiGraphicOrderInteractionCorrection },\n { tag: 'qti-hotspot-interaction', ctor: QtiHotspotInteractionCorrection },\n { tag: 'qti-hottext-interaction', ctor: QtiHottextInteractionCorrection },\n { tag: 'qti-inline-choice-interaction', ctor: QtiInlineChoiceInteractionCorrection },\n { tag: 'qti-match-interaction', ctor: QtiMatchInteractionCorrection },\n { tag: 'qti-order-interaction', ctor: QtiOrderInteractionCorrection },\n { tag: 'qti-portable-custom-interaction', ctor: QtiPortableCustomInteractionCorrection },\n { tag: 'qti-select-point-interaction', ctor: QtiSelectPointInteractionCorrection },\n { tag: 'qti-slider-interaction', ctor: QtiSliderInteractionCorrection },\n { tag: 'qti-text-entry-interaction', ctor: QtiTextEntryInteractionCorrection },\n { tag: 'qti-gap-text', ctor: QtiGapTextCorrection },\n { tag: 'qti-hotspot-choice', ctor: QtiHotspotChoiceCorrection },\n { tag: 'qti-hottext', ctor: QtiHottextCorrection },\n { tag: 'qti-simple-associable-choice', ctor: QtiSimpleAssociableChoiceCorrection },\n { tag: 'qti-simple-choice', ctor: QtiSimpleChoiceCorrection }\n] as const;\n","/**\n * Correction-mode entry point: the standard delivery elements with the correction variants\n * substituted, registered globally.\n *\n * <script type=\"module\">import '@citolab/qti-components/corrections';</script>\n *\n * The sibling of the package root. `@citolab/qti-components` registers the standard elements;\n * this registers the same set with the correction variants winning for the tags they cover, plus\n * the correction-only controls (`item-show-correct-response`, `test-show-correct-response`,\n * `item-correct-response-mode`, `item-show-candidate-correction`). Import ONE of the two.\n *\n * Why substitution rather than \"corrections on top\": the correction classes are keyed by the\n * STANDARD tag names — `QtiChoiceInteractionCorrection` is `ChoiceCorrectionMixin(\n * QtiChoiceInteraction)` registered as `qti-choice-interaction`. A registry holds one constructor\n * per tag, so this is a replacement, never an addition. Everything without a correction variant —\n * the processing operators, most test controls, interactions like media and upload — still gets\n * its standard constructor, because a page needs those to work at all.\n *\n * Every import below is a `/elements` subpath, deliberately. The package ROOTS run their\n * `register.ts` on evaluation and would define the standard constructors before this file gets to\n * choose; `/elements` exports the `{ tag, ctor }` arrays and defines nothing.\n */\nimport { qtiBaseElements } from '@qti-components/base/elements';\nimport { qtiContentElements } from '@qti-components/elements/elements';\nimport { qtiItemElements } from '@qti-components/item/elements';\nimport { qtiProcessingElements } from '@qti-components/processing/elements';\nimport { qtiTestElements } from '@qti-components/test/elements';\nimport { qtiInteractionElements } from '@qti-components/interactions/elements';\nimport { qtiCorrectionElements } from '@qti-components/corrections/elements';\n\nconst standardElements = [\n ...qtiBaseElements,\n ...qtiProcessingElements,\n ...qtiContentElements,\n ...qtiItemElements,\n ...qtiTestElements,\n ...qtiInteractionElements\n];\n\n// Keyed as `string`, not the inferred literal union: the lookup below is driven by the standard\n// tag lists, most of whose tags have no correction variant.\nconst correctionByTag = new Map<string, CustomElementConstructor>(\n qtiCorrectionElements.map(({ tag, ctor }) => [tag, ctor])\n);\n\n/**\n * Registration is first-wins and silent — every `register.ts` in the workspace guards with\n * `if (!customElements.get(tag))` so that a module graph holding two copies of a package does not\n * throw `NotSupportedError` on the second define.\n *\n * That guard makes the failure mode here invisible: if anything already pulled in\n * `@citolab/qti-components` (or a package root) the standard constructor holds the tag, this file\n * skips it, and the page renders correctly EXCEPT that nothing ever shows a correct answer.\n * Nothing throws and nothing logs. So say it out loud.\n */\nconst alreadyTaken = qtiCorrectionElements\n .filter(({ tag, ctor }) => {\n const registered = customElements.get(tag);\n return registered !== undefined && registered !== ctor;\n })\n .map(({ tag }) => tag);\n\nif (alreadyTaken.length > 0) {\n console.warn(\n `[@citolab/qti-components/corrections] ${alreadyTaken.length} tag(s) were already registered ` +\n `by another entry point, so the correction variants for them are inactive: ` +\n `${alreadyTaken.join(', ')}. Import EITHER '@citolab/qti-components' OR ` +\n `'@citolab/qti-components/corrections', not both.`\n );\n}\n\nfor (const { tag, ctor } of standardElements) {\n if (!customElements.get(tag)) customElements.define(tag, correctionByTag.get(tag) ?? ctor);\n}\n\n// The correction-only controls, which replace no standard tag.\nfor (const { tag, ctor } of qtiCorrectionElements) {\n if (!customElements.get(tag)) customElements.define(tag, ctor);\n}\n\nexport * from '@qti-components/corrections';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCO,IAAM,wBAAwB;EACnC,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,mBAAmB,MAAM,yBAAwB;EACxD,EAAE,KAAK,YAAY,MAAM,kBAAiB;EAC1C,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,kCAAkC,MAAM,4BAA2B;EAC1E,EAAE,KAAK,8BAA8B,MAAM,wBAAuB;EAClE,EAAE,KAAK,YAAY,MAAM,kBAAiB;EAC1C,EAAE,KAAK,uBAAuB,MAAM,4BAA2B;EAC/D,EAAE,KAAK,6BAA6B,MAAM,kCAAiC;EAC3E,EAAE,KAAK,0BAA0B,MAAM,+BAA8B;EACrE,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,6BAA6B,MAAM,iCAAgC;EAC1E,EAAE,KAAK,qCAAqC,MAAM,yCAAwC;EAC1F,EAAE,KAAK,qCAAqC,MAAM,wCAAuC;EACzF,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,2BAA2B,MAAM,gCAA+B;EACvE,EAAE,KAAK,2BAA2B,MAAM,gCAA+B;EACvE,EAAE,KAAK,iCAAiC,MAAM,qCAAoC;EAClF,EAAE,KAAK,yBAAyB,MAAM,8BAA6B;EACnE,EAAE,KAAK,yBAAyB,MAAM,8BAA6B;EACnE,EAAE,KAAK,mCAAmC,MAAM,uCAAsC;EACtF,EAAE,KAAK,gCAAgC,MAAM,oCAAmC;EAChF,EAAE,KAAK,0BAA0B,MAAM,+BAA8B;EACrE,EAAE,KAAK,8BAA8B,MAAM,kCAAiC;EAC5E,EAAE,KAAK,gBAAgB,MAAM,qBAAoB;EACjD,EAAE,KAAK,sBAAsB,MAAM,2BAA0B;EAC7D,EAAE,KAAK,eAAe,MAAM,qBAAoB;EAChD,EAAE,KAAK,gCAAgC,MAAM,oCAAmC;EAChF,EAAE,KAAK,qBAAqB,MAAM,0BAAyB;;;;ACjC7D,IAAM,mBAAmB;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAIA,IAAM,kBAAkB,IAAI;AAAA,EAC1B,sBAAsB,IAAI,CAAC,EAAE,KAAK,KAAK,MAAM,CAAC,KAAK,IAAI,CAAC;AAC1D;AAYA,IAAM,eAAe,sBAClB,OAAO,CAAC,EAAE,KAAK,KAAK,MAAM;AACzB,QAAM,aAAa,eAAe,IAAI,GAAG;AACzC,SAAO,eAAe,UAAa,eAAe;AACpD,CAAC,EACA,IAAI,CAAC,EAAE,IAAI,MAAM,GAAG;AAEvB,IAAI,aAAa,SAAS,GAAG;AAC3B,UAAQ;AAAA,IACN,yCAAyC,aAAa,MAAM,6GAEvD,aAAa,KAAK,IAAI,CAAC;AAAA,EAE9B;AACF;AAEA,WAAW,EAAE,KAAK,KAAK,KAAK,kBAAkB;AAC5C,MAAI,CAAC,eAAe,IAAI,GAAG,EAAG,gBAAe,OAAO,KAAK,gBAAgB,IAAI,GAAG,KAAK,IAAI;AAC3F;AAGA,WAAW,EAAE,KAAK,KAAK,KAAK,uBAAuB;AACjD,MAAI,CAAC,eAAe,IAAI,GAAG,EAAG,gBAAe,OAAO,KAAK,IAAI;AAC/D;","names":[]}
|
package/dist/elements.d.ts
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
export { F as FeedbackEventDetail, P as PUBLIC_ITEM_EVENTS, a as PublicEventDeclaration, b as PublicItemEventMap, c as PublicItemEventName, R as RubricPlacement, d as dispatchDeclared, e as dispatchPublic, l as listenDeclared, f as listenPublic } from './public-events.d-3dGip9pd.js';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement, PropertyValues, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
4
|
+
import { g as VariableValue, R as ResponseInteraction, f as ResponseVariable, b as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, I as InterpolationTableEntry, T as TemplateVariable } from './variables.d-DWHlTszN.js';
|
|
5
|
+
import { I as ItemContext } from './item.types.d-Zc6ZQDhu.js';
|
|
4
6
|
import { a as RegisteredInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
5
|
-
import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-
|
|
6
|
-
import { b as QtiRuleBase } from './qti-rule-base.d-
|
|
7
|
+
import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-CT0W-8Gm.js';
|
|
8
|
+
import { b as QtiRuleBase } from './qti-rule-base.d-CeKP0Ooi.js';
|
|
7
9
|
|
|
8
|
-
/**
|
|
9
|
-
* @summary The qti-assessment-item element contains all the other QTI 3 item structures.
|
|
10
|
-
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.dltnnj87l0yj
|
|
11
|
-
*
|
|
12
|
-
* @dependency qti-feedback
|
|
13
|
-
* @dependency qti-responseprocessing
|
|
14
|
-
*
|
|
15
|
-
* @event qti-item-context-updated - Emitted when through a user action the itemContext is updated,
|
|
16
|
-
* typically on interaction with the interactions, or calling response processing.
|
|
17
|
-
*/
|
|
18
10
|
declare class QtiAssessmentItem extends LitElement {
|
|
19
11
|
#private;
|
|
20
12
|
identifier: string;
|
|
@@ -57,6 +49,16 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
57
49
|
render(): lit.TemplateResult<1>;
|
|
58
50
|
connectedCallback(): void;
|
|
59
51
|
disconnectedCallback(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Scores the attempt. The item does not score itself: its response processing does, like a
|
|
54
|
+
* backend, and sends the outcomes back in `qc-item-set-outcomes`, which the item applies in one
|
|
55
|
+
* update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
|
|
56
|
+
* numAttempts) and hands the new count to the run, whose rules may read it. Without response
|
|
57
|
+
* processing the item only counts the attempt. A run that throws still counts the attempt and applies
|
|
58
|
+
* no outcomes.
|
|
59
|
+
*
|
|
60
|
+
* @returns whether the item has response processing.
|
|
61
|
+
*/
|
|
60
62
|
processResponse(countNumAttempts?: boolean, reportValidityAfterScoring?: boolean): boolean;
|
|
61
63
|
resetResponses(): void;
|
|
62
64
|
protected getResponse(identifier: string): Readonly<ResponseVariable>;
|
|
@@ -108,7 +110,7 @@ declare global {
|
|
|
108
110
|
declare module '../../public-events' {
|
|
109
111
|
interface PublicItemEventMap {
|
|
110
112
|
/** The item rendered: its interactions are in the DOM and its validity is known. */
|
|
111
|
-
'
|
|
113
|
+
'qc-item-rendered': CustomEvent<QtiAssessmentItem>;
|
|
112
114
|
}
|
|
113
115
|
}
|
|
114
116
|
|
|
@@ -250,9 +252,19 @@ declare global {
|
|
|
250
252
|
}
|
|
251
253
|
}
|
|
252
254
|
|
|
255
|
+
/**
|
|
256
|
+
* Block feedback: shown or hidden by the outcome it is bound to.
|
|
257
|
+
*
|
|
258
|
+
* @slot - The feedback content.
|
|
259
|
+
*
|
|
260
|
+
* @csspart feedback - The feedback box.
|
|
261
|
+
*/
|
|
253
262
|
declare class QtiFeedbackBlock extends QtiFeedback {
|
|
254
263
|
static styles: lit.CSSResult;
|
|
255
264
|
render(): lit.TemplateResult<1>;
|
|
265
|
+
/** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
|
|
266
|
+
protected feedbackShowing(): boolean;
|
|
267
|
+
protected feedbackHiding(): boolean;
|
|
256
268
|
connectedCallback(): void;
|
|
257
269
|
}
|
|
258
270
|
declare global {
|
|
@@ -261,9 +273,19 @@ declare global {
|
|
|
261
273
|
}
|
|
262
274
|
}
|
|
263
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Inline feedback: shown or hidden by the outcome it is bound to.
|
|
278
|
+
*
|
|
279
|
+
* @slot - The feedback content.
|
|
280
|
+
*
|
|
281
|
+
* @csspart feedback - The feedback box.
|
|
282
|
+
*/
|
|
264
283
|
declare class QtiFeedbackInline extends QtiFeedback {
|
|
265
284
|
static styles: lit.CSSResult;
|
|
266
285
|
render: () => lit.TemplateResult<1>;
|
|
286
|
+
/** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
|
|
287
|
+
protected feedbackShowing(): boolean;
|
|
288
|
+
protected feedbackHiding(): boolean;
|
|
267
289
|
connectedCallback(): void;
|
|
268
290
|
}
|
|
269
291
|
declare global {
|
|
@@ -280,7 +302,8 @@ declare global {
|
|
|
280
302
|
*
|
|
281
303
|
* @slot - item body content.
|
|
282
304
|
* @slot qti-rubric-block - the qti rubric block is placed above the item
|
|
283
|
-
*
|
|
305
|
+
*
|
|
306
|
+
* @csspart rubrics - The rubric-block slot (was `qti-rubric-blocks`).
|
|
284
307
|
*/
|
|
285
308
|
declare class QtiItemBody extends LitElement {
|
|
286
309
|
static styles: CSSResultGroup;
|
|
@@ -292,11 +315,21 @@ declare global {
|
|
|
292
315
|
}
|
|
293
316
|
}
|
|
294
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Modal feedback: a dialog opened by the outcome it is bound to.
|
|
320
|
+
*
|
|
321
|
+
* @slot - The feedback content.
|
|
322
|
+
*
|
|
323
|
+
* @csspart feedback - The feedback box (the dialog).
|
|
324
|
+
*/
|
|
295
325
|
declare class QtiModalFeedback extends QtiFeedback {
|
|
296
326
|
static styles: lit.CSSResult;
|
|
297
327
|
render(): lit.TemplateResult<1>;
|
|
298
328
|
openFeedback(): void;
|
|
299
329
|
closeFeedback(): void;
|
|
330
|
+
/** `qc-feedback-show`: a listener that calls `preventDefault()` keeps this hidden and shows it itself. */
|
|
331
|
+
protected feedbackShowing(): boolean;
|
|
332
|
+
protected feedbackHiding(): boolean;
|
|
300
333
|
connectedCallback(): void;
|
|
301
334
|
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
302
335
|
}
|
|
@@ -352,10 +385,26 @@ declare global {
|
|
|
352
385
|
}
|
|
353
386
|
}
|
|
354
387
|
|
|
388
|
+
/**
|
|
389
|
+
* Response processing as the item's own backend: it reads the item context, runs its rules once and
|
|
390
|
+
* sends the outcomes and the attempt count back in one `qc-item-set-outcomes`. The item applies
|
|
391
|
+
* them; a host that scores elsewhere sends the same event instead.
|
|
392
|
+
*/
|
|
355
393
|
declare class QtiResponseProcessing extends LitElement {
|
|
394
|
+
#private;
|
|
356
395
|
static styles: lit.CSSResult[];
|
|
396
|
+
constructor();
|
|
357
397
|
render(): lit.TemplateResult<1>;
|
|
358
|
-
|
|
398
|
+
/**
|
|
399
|
+
* Scores the attempt on the copy: sets `numAttempts` to the count the item hands over, resets a
|
|
400
|
+
* non-adaptive item's outcomes to their defaults (QTI info model §2.5), runs the rules and sends
|
|
401
|
+
* every outcome and `numAttempts` in one `qc-item-set-outcomes`. The item applies them and publishes, which gives this element a
|
|
402
|
+
* fresh copy. A rule that throws ends the run and the error propagates; nothing is sent, and the
|
|
403
|
+
* run's writes stay in the copy until the item's next update.
|
|
404
|
+
*/
|
|
405
|
+
processResponse({ numAttempts }: {
|
|
406
|
+
numAttempts: number;
|
|
407
|
+
}): void;
|
|
359
408
|
firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
360
409
|
}
|
|
361
410
|
declare global {
|
|
@@ -467,60 +516,4 @@ declare global {
|
|
|
467
516
|
}
|
|
468
517
|
}
|
|
469
518
|
|
|
470
|
-
|
|
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 };
|
|
519
|
+
export { QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing };
|
package/dist/elements.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-TSJGL6FI.js";
|
|
2
2
|
import {
|
|
3
|
-
PUBLIC_ITEM_EVENTS,
|
|
4
3
|
QtiAssessmentItem,
|
|
5
4
|
QtiAssessmentStimulus,
|
|
6
5
|
QtiAssessmentStimulusRef,
|
|
@@ -20,15 +19,19 @@ import {
|
|
|
20
19
|
QtiStylesheet,
|
|
21
20
|
QtiTemplateConstraint,
|
|
22
21
|
QtiTemplateDeclaration,
|
|
23
|
-
QtiTemplateProcessing
|
|
22
|
+
QtiTemplateProcessing
|
|
23
|
+
} from "./chunk-H6DO5UHC.js";
|
|
24
|
+
import {
|
|
25
|
+
PUBLIC_ITEM_EVENTS,
|
|
24
26
|
dispatchDeclared,
|
|
25
27
|
dispatchPublic,
|
|
26
28
|
listenDeclared,
|
|
27
29
|
listenPublic
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UCXLDQYA.js";
|
|
29
31
|
import "./chunk-4DB4SC5K.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-ZRORBAHB.js";
|
|
33
|
+
import "./chunk-GPC53O7P.js";
|
|
34
|
+
import "./chunk-PZ5AY32C.js";
|
|
32
35
|
export {
|
|
33
36
|
PUBLIC_ITEM_EVENTS,
|
|
34
37
|
QtiAssessmentItem,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as
|
|
2
|
-
export { IMyQtiTest, IQtiTest, ITestProcessingMixin,
|
|
3
|
-
export {
|
|
1
|
+
export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, T as TestContainer, q as TestEndAttempt, r as TestNavigation, s as TestNext, t as TestPrev, u as TestSubmit } from './qti-test.d-sskv-dEN.js';
|
|
2
|
+
export { IMyQtiTest, IQtiTest, ITestProcessingMixin, pluginElements } from './test.js';
|
|
3
|
+
export { Q as QTI_TEST_STATE_VERSION, a as QtiTestPluginState, b as QtiTestState, c as QtiTestStateItem, d as QtiTestStateSession, e as QtiTestStateValue, p as pluginState } from './qti-test-state-CF9S8X9C.js';
|
|
4
|
+
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-CxP6KtCH.js';
|
|
4
5
|
export { ItemViewMixin } from './item.js';
|
|
5
|
-
export {
|
|
6
|
+
export { F as FeedbackEventDetail, P as PUBLIC_ITEM_EVENTS, a as PublicEventDeclaration, b as PublicItemEventMap, c as PublicItemEventName, R as RubricPlacement, d as dispatchDeclared, e as dispatchPublic, l as listenDeclared, f as listenPublic } from './public-events.d-3dGip9pd.js';
|
|
7
|
+
export { QtiAssessmentItem, QtiAssessmentStimulus, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing } from './elements.js';
|
|
6
8
|
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-
|
|
8
|
-
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-
|
|
9
|
+
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction, z as inlineScriptText, A as inlineStyleText } from './qti-text-entry-interaction.d-m0EFv9no.js';
|
|
10
|
+
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-Bb9vnLzP.js';
|
|
9
11
|
export { qtiTransformManifest } from './transformers.js';
|
|
10
12
|
export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
|
|
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-
|
|
14
|
-
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-
|
|
15
|
-
export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './
|
|
16
|
-
export {
|
|
13
|
+
export { CustomOperator, CustomOperatorValue, CustomStateSetShim, CustomStateSupport, IsNullOrUndefined, STATE_ALIASES, ScoringHelper, boxSizing, classifyCustomStateSupport, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, getCustomOperator, hasState, installCustomStateSetFallback, itemContext, registerCustomOperator, removeDoubleSlashes, setState, unregisterCustomOperator, validationMessage } from './base.js';
|
|
14
|
+
export { C as ComputedItemContext, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-9gRdGK4T.js';
|
|
15
|
+
export { C as ComputedContext, a as ComputedItem, S as SessionControl } from './computed.types.d-6Ht-HNRx.js';
|
|
16
|
+
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-Dm11aAuw.js';
|
|
17
|
+
export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, V as ValidityKind, c as ValidityTrigger, i as inferRecordFieldBaseType, d as interactionContext, e as isRecordValue, r as readRecordFieldValues } from './record.d-N1Bq7e1f.js';
|
|
18
|
+
export { I as ItemContext, i as itemContextVariables } from './item.types.d-Zc6ZQDhu.js';
|
|
17
19
|
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-
|
|
20
|
+
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-iH3w6mqf.js';
|
|
21
|
+
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-CT0W-8Gm.js';
|
|
22
|
+
export { Q as QtiConditionExpression } from './qti-condition-expression.d-7Kd4LBxn.js';
|
|
21
23
|
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';
|
|
24
|
+
export { B as BaseType, C as Calculate, a as Cardinality, I as InterpolationTableEntry, M as Multiple, O as Ordered, b as OutcomeVariable, Q as QtiAreaMapEntry, c as QtiAreaMapping, d as QtiMapEntry, e as QtiMapping, R as ResponseInteraction, f as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, g as VariableValue, h as areaShape, i as directedPair, j as float, k as integer } from './variables.d-DWHlTszN.js';
|
|
22
25
|
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
|
-
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-
|
|
26
|
+
export { Q as QtiExitResponseSignal, a as QtiExitTestSignal, b as QtiRuleBase, c as QtiRuleElement } from './qti-rule-base.d-CeKP0Ooi.js';
|
|
24
27
|
export { QtiAnd, QtiAnyN, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiDivide, QtiDurationGte, QtiDurationLt, QtiEqual, QtiEqualRounded, QtiExitResponse, QtiExitTest, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiInside, QtiIntegerDivide, QtiIntegerModulus, QtiIntegerToFloat, QtiIsNull, QtiLcm, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathConstant, QtiMathOperator, QtiMax, QtiMember, QtiMin, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiOutcomeCondition, QtiOutcomeElse, QtiOutcomeElseIf, QtiOutcomeIf, QtiPatternMatch, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiRepeat, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessingFragment, QtiRound, QtiRoundTo, QtiSetCorrectResponse, QtiSetCorrectResponseRule, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSetTemplateValue, QtiSetTemplateValueRule, QtiStatsOperator, QtiStringMatch, QtiSubstring, QtiSubtract, QtiSum, QtiSumExpression, QtiTruncate, QtiVariable, qtiAndMixin, qtiSubtractMixin } from './processing.js';
|
|
25
|
-
export { CandidateCorrectionMixin, ChoiceCorrectionMixin, CorrectResponseInterface, CorrectResponseMixin, CorrectResponseMode, CorrectionConfig, Correctness, ItemCorrectResponseMode, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiAssessmentItemCorrection, QtiAssociateInteractionCorrection, QtiChoiceInteractionCorrection, QtiExtendedTextInteractionCorrection, QtiGapMatchInteractionCorrection, QtiGapTextCorrection, QtiGraphicAssociateInteractionCorrection, QtiGraphicGapMatchInteractionCorrection, QtiGraphicOrderInteractionCorrection, QtiHotspotChoiceCorrection, QtiHotspotInteractionCorrection, QtiHottextCorrection, QtiHottextInteractionCorrection, QtiInlineChoiceInteractionCorrection, QtiItemCorrection, QtiMatchInteractionCorrection, QtiOrderInteractionCorrection, QtiPortableCustomInteractionCorrection, QtiSelectPointInteractionCorrection, QtiSimpleAssociableChoiceCorrection, QtiSimpleChoiceCorrection, QtiSliderInteractionCorrection, QtiTestCorrection, QtiTextEntryInteractionCorrection,
|
|
28
|
+
export { CandidateCorrectionMixin, ChoiceCorrectionMixin, CorrectResponseInterface, CorrectResponseMixin, CorrectResponseMode, CorrectionConfig, Correctness, ItemCorrectResponseMode, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiAssessmentItemCorrection, QtiAssociateInteractionCorrection, QtiChoiceInteractionCorrection, QtiExtendedTextInteractionCorrection, QtiGapMatchInteractionCorrection, QtiGapTextCorrection, QtiGraphicAssociateInteractionCorrection, QtiGraphicGapMatchInteractionCorrection, QtiGraphicOrderInteractionCorrection, QtiHotspotChoiceCorrection, QtiHotspotInteractionCorrection, QtiHottextCorrection, QtiHottextInteractionCorrection, QtiInlineChoiceInteractionCorrection, QtiItemCorrection, QtiMatchInteractionCorrection, QtiOrderInteractionCorrection, QtiPortableCustomInteractionCorrection, QtiSelectPointInteractionCorrection, QtiSimpleAssociableChoiceCorrection, QtiSimpleChoiceCorrection, QtiSliderInteractionCorrection, QtiTestCorrection, QtiTextEntryInteractionCorrection, TestNavigationCorrection, TestShowCorrectResponse, correctionPart } from './corrections.js';
|
|
26
29
|
import 'lit';
|
|
27
30
|
import '@heximal/templates';
|
|
31
|
+
import './qti-test-state.d-D8Q89RzZ.js';
|
|
28
32
|
import 'lit/directives/ref.js';
|