@qti-components/test 2.0.0-next.10 → 2.0.0-next.11
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/dist/components/qti-test/getting-started.fixtures.d.ts +4 -3
- package/dist/components/qti-test/getting-started.fixtures.js +4 -3
- package/dist/components/qti-test/getting-started.fixtures.js.map +1 -1
- package/dist/components/test-print-state/test-print-state.d.ts +27 -0
- package/dist/components/test-print-state/test-print-state.js +87 -0
- package/dist/components/test-print-state/test-print-state.js.map +1 -0
- package/dist/elements.d.ts +3 -0
- package/dist/plugins/elements.d.ts +5 -1
- package/dist/plugins/elements.js +3 -1
- package/dist/plugins/elements.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The test behind the Getting started page
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* The test behind the Getting started page, and the demo test of every docs page that only shows an
|
|
3
|
+
* example (State, ...): reuse it rather than adding another. Its files live in
|
|
4
|
+
* `public/assets/docs/getting-started/`. A page that needs a test it cannot show with this one gets a
|
|
5
|
+
* folder of its own under `public/assets/docs/` and a `*.fixtures.ts` next to it.
|
|
5
6
|
*/
|
|
6
7
|
export declare const GETTING_STARTED_TEST = "/assets/docs/getting-started/assessment.xml";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The test behind the Getting started page
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* The test behind the Getting started page, and the demo test of every docs page that only shows an
|
|
3
|
+
* example (State, ...): reuse it rather than adding another. Its files live in
|
|
4
|
+
* `public/assets/docs/getting-started/`. A page that needs a test it cannot show with this one gets a
|
|
5
|
+
* folder of its own under `public/assets/docs/` and a `*.fixtures.ts` next to it.
|
|
5
6
|
*/
|
|
6
7
|
export const GETTING_STARTED_TEST = '/assets/docs/getting-started/assessment.xml';
|
|
7
8
|
//# sourceMappingURL=getting-started.fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started.fixtures.js","sourceRoot":"","sources":["../../../src/components/qti-test/getting-started.fixtures.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"getting-started.fixtures.js","sourceRoot":"","sources":["../../../src/components/qti-test/getting-started.fixtures.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,6CAA6C,CAAC","sourcesContent":["/**\n * The test behind the Getting started page, and the demo test of every docs page that only shows an\n * example (State, ...): reuse it rather than adding another. Its files live in\n * `public/assets/docs/getting-started/`. A page that needs a test it cannot show with this one gets a\n * folder of its own under `public/assets/docs/` and a `*.fixtures.ts` next to it.\n */\nexport const GETTING_STARTED_TEST = '/assets/docs/getting-started/assessment.xml';\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import type { TemplateResult } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
|
|
5
|
+
* on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
|
|
6
|
+
*
|
|
7
|
+
* The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
|
|
8
|
+
* by it. The element only lays out the tree; give it a font, colour and height from the page.
|
|
9
|
+
*
|
|
10
|
+
* @customElement test-print-state
|
|
11
|
+
* @csspart key - the name of a field, or the label of a list entry
|
|
12
|
+
* @csspart value - a value that is not an object or a list
|
|
13
|
+
* @csspart count - the number of entries of a folded object or list
|
|
14
|
+
*/
|
|
15
|
+
export declare class TestPrintState extends LitElement {
|
|
16
|
+
#private;
|
|
17
|
+
private testState?;
|
|
18
|
+
static styles: import("lit").CSSResult;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
render(): TemplateResult<1> | typeof nothing;
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
interface HTMLElementTagNameMap {
|
|
25
|
+
'test-print-state': TestPrintState;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
8
|
+
import { state } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
|
|
11
|
+
* on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
|
|
12
|
+
*
|
|
13
|
+
* The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
|
|
14
|
+
* by it. The element only lays out the tree; give it a font, colour and height from the page.
|
|
15
|
+
*
|
|
16
|
+
* @customElement test-print-state
|
|
17
|
+
* @csspart key - the name of a field, or the label of a list entry
|
|
18
|
+
* @csspart value - a value that is not an object or a list
|
|
19
|
+
* @csspart count - the number of entries of a folded object or list
|
|
20
|
+
*/
|
|
21
|
+
export class TestPrintState extends LitElement {
|
|
22
|
+
#test = null;
|
|
23
|
+
static { this.styles = css `
|
|
24
|
+
:host {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
ul {
|
|
28
|
+
list-style: none;
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding-inline-start: 1rem;
|
|
31
|
+
}
|
|
32
|
+
summary {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
[part~='count'] {
|
|
36
|
+
opacity: 0.7;
|
|
37
|
+
}
|
|
38
|
+
`; }
|
|
39
|
+
#onStateChanged = (event) => {
|
|
40
|
+
this.testState = event.detail;
|
|
41
|
+
};
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
super.connectedCallback();
|
|
44
|
+
this.#test = this.closest('qti-test');
|
|
45
|
+
this.#test?.addEventListener('cito-test-state-changed', this.#onStateChanged);
|
|
46
|
+
this.testState = this.#test?.state;
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
super.disconnectedCallback();
|
|
50
|
+
this.#test?.removeEventListener('cito-test-state-changed', this.#onStateChanged);
|
|
51
|
+
this.#test = null;
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
if (!this.testState)
|
|
55
|
+
return nothing;
|
|
56
|
+
return html `<ul>
|
|
57
|
+
${this.#renderNode('state', this.testState, 0)}
|
|
58
|
+
</ul>`;
|
|
59
|
+
}
|
|
60
|
+
#renderNode(label, value, depth) {
|
|
61
|
+
if (value === null || typeof value !== 'object') {
|
|
62
|
+
return html `<li><span part="key">${label}</span>: <span part="value">${JSON.stringify(value)}</span></li>`;
|
|
63
|
+
}
|
|
64
|
+
const entries = Array.isArray(value)
|
|
65
|
+
? value.map((entry, index) => [entryLabel(entry, index), entry])
|
|
66
|
+
: Object.entries(value);
|
|
67
|
+
const count = Array.isArray(value) ? `[${entries.length}]` : `{${entries.length}}`;
|
|
68
|
+
// `open` is bound once per depth, so Lit leaves a node the reader folded alone on the next update.
|
|
69
|
+
return html `<li>
|
|
70
|
+
<details ?open=${depth < 2}>
|
|
71
|
+
<summary><span part="key">${label}</span> <span part="count">${count}</span></summary>
|
|
72
|
+
<ul>
|
|
73
|
+
${entries.map(([key, entry]) => this.#renderNode(key, entry, depth + 1))}
|
|
74
|
+
</ul>
|
|
75
|
+
</details>
|
|
76
|
+
</li>`;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
__decorate([
|
|
80
|
+
state()
|
|
81
|
+
], TestPrintState.prototype, "testState", void 0);
|
|
82
|
+
/** An item or a variable is easier to find by its identifier than by its index. */
|
|
83
|
+
const entryLabel = (entry, index) => {
|
|
84
|
+
const identifier = entry?.identifier;
|
|
85
|
+
return typeof identifier === 'string' ? `${index} · ${identifier}` : String(index);
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=test-print-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-print-state.js","sourceRoot":"","sources":["../../../src/components/test-print-state/test-print-state.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO1C;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,cAAe,SAAQ,UAAU;IAG5C,KAAK,GAAuB,IAAI,CAAC;aAEjB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;GAe3B,CAAC;IAEF,eAAe,GAAG,CAAC,KAAY,EAAE,EAAE;QACjC,IAAI,CAAC,SAAS,GAAI,KAAmC,CAAC,MAAM,CAAC;IAC/D,CAAC,CAAC;IAEO,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAc,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,yBAAyB,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QAC9E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC;IACrC,CAAC;IAEQ,oBAAoB;QAC3B,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,CAAC,KAAK,EAAE,mBAAmB,CAAC,yBAAyB,EAAE,IAAI,CA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B,KAAK,EAAE;iDAAkC;AAiE5C,mFAAmF;AACnF,MAAM,UAAU,GAAG,CAAC,KAAc,EAAE,KAAa,EAAU,EAAE;IAC3D,MAAM,UAAU,GAAI,KAAyC,EAAE,UAAU,CAAC;IAC1E,OAAO,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,UAAU,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACrF,CAAC,CAAC","sourcesContent":["import { css, html, LitElement, nothing } from 'lit';\nimport { state } from 'lit/decorators.js';\n\nimport type { TemplateResult } from 'lit';\nimport type { QtiTestState } from '../../types/qti-test-state';\n\ntype TestElement = HTMLElement & { state?: QtiTestState };\n\n/**\n * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current\n * on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.\n *\n * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled\n * by it. The element only lays out the tree; give it a font, colour and height from the page.\n *\n * @customElement test-print-state\n * @csspart key - the name of a field, or the label of a list entry\n * @csspart value - a value that is not an object or a list\n * @csspart count - the number of entries of a folded object or list\n */\nexport class TestPrintState extends LitElement {\n @state() private testState?: QtiTestState;\n\n #test: TestElement | null = null;\n\n static override styles = css`\n :host {\n display: block;\n }\n ul {\n list-style: none;\n margin: 0;\n padding-inline-start: 1rem;\n }\n summary {\n cursor: pointer;\n }\n [part~='count'] {\n opacity: 0.7;\n }\n `;\n\n #onStateChanged = (event: Event) => {\n this.testState = (event as CustomEvent<QtiTestState>).detail;\n };\n\n override connectedCallback(): void {\n super.connectedCallback();\n this.#test = this.closest<TestElement>('qti-test');\n this.#test?.addEventListener('cito-test-state-changed', this.#onStateChanged);\n this.testState = this.#test?.state;\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n this.#test?.removeEventListener('cito-test-state-changed', this.#onStateChanged);\n this.#test = null;\n }\n\n override render() {\n if (!this.testState) return nothing;\n return html`<ul>\n ${this.#renderNode('state', this.testState, 0)}\n </ul>`;\n }\n\n #renderNode(label: string, value: unknown, depth: number): TemplateResult {\n if (value === null || typeof value !== 'object') {\n return html`<li><span part=\"key\">${label}</span>: <span part=\"value\">${JSON.stringify(value)}</span></li>`;\n }\n const entries: [string, unknown][] = Array.isArray(value)\n ? value.map((entry, index) => [entryLabel(entry, index), entry])\n : Object.entries(value);\n const count = Array.isArray(value) ? `[${entries.length}]` : `{${entries.length}}`;\n // `open` is bound once per depth, so Lit leaves a node the reader folded alone on the next update.\n return html`<li>\n <details ?open=${depth < 2}>\n <summary><span part=\"key\">${label}</span> <span part=\"count\">${count}</span></summary>\n <ul>\n ${entries.map(([key, entry]) => this.#renderNode(key, entry, depth + 1))}\n </ul>\n </details>\n </li>`;\n }\n}\n\n/** An item or a variable is easier to find by its identifier than by its index. */\nconst entryLabel = (entry: unknown, index: number): string => {\n const identifier = (entry as { identifier?: unknown } | null)?.identifier;\n return typeof identifier === 'string' ? `${index} · ${identifier}` : String(index);\n};\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-print-state': TestPrintState;\n }\n}\n"]}
|
package/dist/elements.d.ts
CHANGED
|
@@ -92,6 +92,9 @@ export declare const qtiTestElements: readonly [{
|
|
|
92
92
|
}, {
|
|
93
93
|
readonly tag: "test-print-item-variables";
|
|
94
94
|
readonly ctor: typeof import("./elements").TestPrintVariables;
|
|
95
|
+
}, {
|
|
96
|
+
readonly tag: "test-print-state";
|
|
97
|
+
readonly ctor: typeof import("./elements").TestPrintState;
|
|
95
98
|
}, {
|
|
96
99
|
readonly tag: "test-scoring-buttons";
|
|
97
100
|
readonly ctor: typeof import("./elements").TestScoringButtons;
|
|
@@ -2,6 +2,7 @@ import { TestBookmark } from '../components/test-bookmark/test-bookmark';
|
|
|
2
2
|
import { TestCheckItem } from '../components/test-check-item/test-check-item';
|
|
3
3
|
import { TestPrintContext } from '../components/test-print-context/test-print-context';
|
|
4
4
|
import { TestPrintVariables } from '../components/test-print-item-variables/test-print-item-variables';
|
|
5
|
+
import { TestPrintState } from '../components/test-print-state/test-print-state';
|
|
5
6
|
import { TestScoringButtons } from '../components/test-scoring-buttons/test-scoring-buttons';
|
|
6
7
|
import { TestScoringFeedback } from '../components/test-scoring-feedback/test-scoring-feedback';
|
|
7
8
|
import { TestStamp } from '../components/test-stamp/test-stamp';
|
|
@@ -10,7 +11,7 @@ import { TestView } from '../components/test-view-toggle/test-view';
|
|
|
10
11
|
import { TestViewToggle } from '../components/test-view-toggle/test-view-toggle';
|
|
11
12
|
export * from '../tts/elements';
|
|
12
13
|
export { bookmarkedItems } from '../components/test-bookmark/test-bookmark';
|
|
13
|
-
export { TestCheckItem, TestBookmark, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestView, TestViewToggle };
|
|
14
|
+
export { TestCheckItem, TestBookmark, TestPrintContext, TestPrintVariables, TestPrintState, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestView, TestViewToggle };
|
|
14
15
|
/**
|
|
15
16
|
* Every test plugin's elements in one list. `qti-test` registers them with the rest of its
|
|
16
17
|
* elements, and a scoped registry can use the list directly. Defines nothing.
|
|
@@ -30,6 +31,9 @@ export declare const pluginElements: readonly [{
|
|
|
30
31
|
}, {
|
|
31
32
|
readonly tag: "test-print-item-variables";
|
|
32
33
|
readonly ctor: typeof TestPrintVariables;
|
|
34
|
+
}, {
|
|
35
|
+
readonly tag: "test-print-state";
|
|
36
|
+
readonly ctor: typeof TestPrintState;
|
|
33
37
|
}, {
|
|
34
38
|
readonly tag: "test-scoring-buttons";
|
|
35
39
|
readonly ctor: typeof TestScoringButtons;
|
package/dist/plugins/elements.js
CHANGED
|
@@ -2,6 +2,7 @@ import { TestBookmark } from '../components/test-bookmark/test-bookmark';
|
|
|
2
2
|
import { TestCheckItem } from '../components/test-check-item/test-check-item';
|
|
3
3
|
import { TestPrintContext } from '../components/test-print-context/test-print-context';
|
|
4
4
|
import { TestPrintVariables } from '../components/test-print-item-variables/test-print-item-variables';
|
|
5
|
+
import { TestPrintState } from '../components/test-print-state/test-print-state';
|
|
5
6
|
import { TestScoringButtons } from '../components/test-scoring-buttons/test-scoring-buttons';
|
|
6
7
|
import { TestScoringFeedback } from '../components/test-scoring-feedback/test-scoring-feedback';
|
|
7
8
|
import { TestStamp } from '../components/test-stamp/test-stamp';
|
|
@@ -11,7 +12,7 @@ import { TestViewToggle } from '../components/test-view-toggle/test-view-toggle'
|
|
|
11
12
|
import { ttsElements } from '../tts/elements';
|
|
12
13
|
export * from '../tts/elements';
|
|
13
14
|
export { bookmarkedItems } from '../components/test-bookmark/test-bookmark';
|
|
14
|
-
export { TestCheckItem, TestBookmark, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestView, TestViewToggle };
|
|
15
|
+
export { TestCheckItem, TestBookmark, TestPrintContext, TestPrintVariables, TestPrintState, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestView, TestViewToggle };
|
|
15
16
|
/**
|
|
16
17
|
* Every test plugin's elements in one list. `qti-test` registers them with the rest of its
|
|
17
18
|
* elements, and a scoped registry can use the list directly. Defines nothing.
|
|
@@ -24,6 +25,7 @@ export const pluginElements = [
|
|
|
24
25
|
{ tag: 'test-bookmark', ctor: TestBookmark },
|
|
25
26
|
{ tag: 'test-print-context', ctor: TestPrintContext },
|
|
26
27
|
{ tag: 'test-print-item-variables', ctor: TestPrintVariables },
|
|
28
|
+
{ tag: 'test-print-state', ctor: TestPrintState },
|
|
27
29
|
{ tag: 'test-scoring-buttons', ctor: TestScoringButtons },
|
|
28
30
|
{ tag: 'test-scoring-feedback', ctor: TestScoringFeedback },
|
|
29
31
|
{ tag: 'test-stamp', ctor: TestStamp },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../src/plugins/elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM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Y,EAAE,IAAI,EAAE,SAAS,EAAE;IACtC,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE;IACxC,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;IACpC,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE;IACjD,GAAG,WAAW;CACN,CAAC","sourcesContent":["import { TestBookmark } from '../components/test-bookmark/test-bookmark';\nimport { TestCheckItem } from '../components/test-check-item/test-check-item';\nimport { TestPrintContext } from '../components/test-print-context/test-print-context';\nimport { TestPrintVariables } from '../components/test-print-item-variables/test-print-item-variables';\nimport { TestScoringButtons } from '../components/test-scoring-buttons/test-scoring-buttons';\nimport { TestScoringFeedback } from '../components/test-scoring-feedback/test-scoring-feedback';\nimport { TestStamp } from '../components/test-stamp/test-stamp';\nimport { TestSubmit } from '../components/test-submit/test-submit';\nimport { TestView } from '../components/test-view-toggle/test-view';\nimport { TestViewToggle } from '../components/test-view-toggle/test-view-toggle';\nimport { ttsElements } from '../tts/elements';\n\nexport * from '../tts/elements';\n\nexport { bookmarkedItems } from '../components/test-bookmark/test-bookmark';\n\nexport {\n TestCheckItem,\n TestBookmark,\n TestPrintContext,\n TestPrintVariables,\n TestScoringButtons,\n TestScoringFeedback,\n TestStamp,\n TestSubmit,\n TestView,\n TestViewToggle\n};\n\n/**\n * Every test plugin's elements in one list. `qti-test` registers them with the rest of its\n * elements, and a scoped registry can use the list directly. Defines nothing.\n *\n * A plugin is the set of files listed for it in `plugin-boundary.spec.ts` (`PLUGINS`); this file is\n * the one place that names them all.\n */\nexport const pluginElements = [\n { tag: 'test-check-item', ctor: TestCheckItem },\n { tag: 'test-bookmark', ctor: TestBookmark },\n { tag: 'test-print-context', ctor: TestPrintContext },\n { tag: 'test-print-item-variables', ctor: TestPrintVariables },\n { tag: 'test-scoring-buttons', ctor: TestScoringButtons },\n { tag: 'test-scoring-feedback', ctor: TestScoringFeedback },\n { tag: 'test-stamp', ctor: TestStamp },\n { tag: 'test-submit', ctor: TestSubmit },\n { tag: 'test-view', ctor: TestView },\n { tag: 'test-view-toggle', ctor: TestViewToggle },\n ...ttsElements\n] as const;\n"]}
|
|
1
|
+
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../src/plugins/elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mEAAmE,CAAC;AACvG,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAE5E,OAAO,EACL,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,cAAc,EACf,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,EAAE,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC/C,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE;IAC5C,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,gBAAgB,EAAE;IACrD,EAAE,GAAG,EAAE,2BAA2B,EAAE,IAAI,EAAE,kBAAkB,EAAE;IAC9D,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE;IACjD,EAAE,GAAG,EAAE,sBAAsB,EAAE,IAAI,EAAE,kBAAkB,EAAE;IACzD,EAAE,GAAG,EAAE,uBAAuB,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAC3D,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;IACtC,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE;IACxC,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;IACpC,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE;IACjD,GAAG,WAAW;CACN,CAAC","sourcesContent":["import { TestBookmark } from '../components/test-bookmark/test-bookmark';\nimport { TestCheckItem } from '../components/test-check-item/test-check-item';\nimport { TestPrintContext } from '../components/test-print-context/test-print-context';\nimport { TestPrintVariables } from '../components/test-print-item-variables/test-print-item-variables';\nimport { TestPrintState } from '../components/test-print-state/test-print-state';\nimport { TestScoringButtons } from '../components/test-scoring-buttons/test-scoring-buttons';\nimport { TestScoringFeedback } from '../components/test-scoring-feedback/test-scoring-feedback';\nimport { TestStamp } from '../components/test-stamp/test-stamp';\nimport { TestSubmit } from '../components/test-submit/test-submit';\nimport { TestView } from '../components/test-view-toggle/test-view';\nimport { TestViewToggle } from '../components/test-view-toggle/test-view-toggle';\nimport { ttsElements } from '../tts/elements';\n\nexport * from '../tts/elements';\n\nexport { bookmarkedItems } from '../components/test-bookmark/test-bookmark';\n\nexport {\n TestCheckItem,\n TestBookmark,\n TestPrintContext,\n TestPrintVariables,\n TestPrintState,\n TestScoringButtons,\n TestScoringFeedback,\n TestStamp,\n TestSubmit,\n TestView,\n TestViewToggle\n};\n\n/**\n * Every test plugin's elements in one list. `qti-test` registers them with the rest of its\n * elements, and a scoped registry can use the list directly. Defines nothing.\n *\n * A plugin is the set of files listed for it in `plugin-boundary.spec.ts` (`PLUGINS`); this file is\n * the one place that names them all.\n */\nexport const pluginElements = [\n { tag: 'test-check-item', ctor: TestCheckItem },\n { tag: 'test-bookmark', ctor: TestBookmark },\n { tag: 'test-print-context', ctor: TestPrintContext },\n { tag: 'test-print-item-variables', ctor: TestPrintVariables },\n { tag: 'test-print-state', ctor: TestPrintState },\n { tag: 'test-scoring-buttons', ctor: TestScoringButtons },\n { tag: 'test-scoring-feedback', ctor: TestScoringFeedback },\n { tag: 'test-stamp', ctor: TestStamp },\n { tag: 'test-submit', ctor: TestSubmit },\n { tag: 'test-view', ctor: TestView },\n { tag: 'test-view-toggle', ctor: TestViewToggle },\n ...ttsElements\n] as const;\n"]}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qti-components/test",
|
|
3
3
|
"description": "QTI test utilities",
|
|
4
|
-
"version": "2.0.0-next.
|
|
4
|
+
"version": "2.0.0-next.11",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@heximal/templates": "^0.1.5",
|
|
8
|
-
"@qti-components/base": "^
|
|
9
|
-
"@qti-components/elements": "^1.10.0-next.
|
|
10
|
-
"@qti-components/interactions": "^1.10.5-next.
|
|
11
|
-
"@qti-components/processing": "^1.6.1-next.
|
|
12
|
-
"@qti-components/theme": "^2.3.0-next.
|
|
8
|
+
"@qti-components/base": "^3.0.0-next.3",
|
|
9
|
+
"@qti-components/elements": "^1.10.0-next.4",
|
|
10
|
+
"@qti-components/interactions": "^1.10.5-next.5",
|
|
11
|
+
"@qti-components/processing": "^1.6.1-next.3",
|
|
12
|
+
"@qti-components/theme": "^2.3.0-next.3",
|
|
13
13
|
"@qti-components/transformers": "^1.7.3",
|
|
14
14
|
"@qti-components/utilities": "^1.3.3"
|
|
15
15
|
},
|