@citolab/qti-components 7.0.6-beta.4 → 7.0.6-beta.5

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.
Files changed (43) hide show
  1. package/cdn/chunks/chunk-EFU4L43Q.js +8 -0
  2. package/cdn/chunks/chunk-RIXTWE2H.js +8 -0
  3. package/cdn/chunks/chunk-ROZIP5LG.js +8 -0
  4. package/cdn/chunks/chunk-RPZVSBLM.js +8 -0
  5. package/cdn/chunks/chunk-TEYXRLTI.js +8 -0
  6. package/cdn/chunks/{chunk-SXM25YH3.js → chunk-U2TE6TOV.js} +12 -12
  7. package/cdn/index.global.js +1 -1
  8. package/cdn/index.js +1 -1
  9. package/cdn/qti-components/index.js +1 -1
  10. package/cdn/qti-test/components/index.js +1 -1
  11. package/cdn/qti-test/components/test-component.abstract.js +1 -1
  12. package/cdn/qti-test/components/test-end-attempt.js +1 -1
  13. package/cdn/qti-test/components/test-item-link.js +1 -1
  14. package/cdn/qti-test/components/test-next.js +1 -1
  15. package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
  16. package/cdn/qti-test/components/test-prev.js +1 -1
  17. package/cdn/qti-test/components/test-show-correct-response.js +1 -1
  18. package/cdn/qti-test/components/test-view.js +1 -1
  19. package/dist/chunks/{chunk-MEQM6M67.js → chunk-6PAEJQSQ.js} +23 -28
  20. package/dist/chunks/chunk-6PAEJQSQ.js.map +1 -0
  21. package/dist/index.js +16 -16
  22. package/dist/qti-components/index.js +1 -1
  23. package/dist/qti-test/components/index.js +7 -7
  24. package/dist/qti-test/components/test-component.abstract.js +1 -1
  25. package/dist/qti-test/components/test-end-attempt.js +3 -3
  26. package/dist/qti-test/components/test-item-link.js +3 -3
  27. package/dist/qti-test/components/test-next.js +3 -3
  28. package/dist/qti-test/components/test-paging-buttons-stamp.js +1 -1
  29. package/dist/qti-test/components/test-prev.js +3 -3
  30. package/dist/qti-test/components/test-show-correct-response.js +3 -3
  31. package/dist/qti-test/components/test-view.js +1 -1
  32. package/package.json +1 -1
  33. package/dist/chunks/chunk-4MQV5IRV.js +0 -59
  34. package/dist/chunks/chunk-4MQV5IRV.js.map +0 -1
  35. package/dist/chunks/chunk-5RTLOB3Q.js +0 -59
  36. package/dist/chunks/chunk-5RTLOB3Q.js.map +0 -1
  37. package/dist/chunks/chunk-MEQM6M67.js.map +0 -1
  38. package/dist/chunks/chunk-NHA53UTY.js +0 -52
  39. package/dist/chunks/chunk-NHA53UTY.js.map +0 -1
  40. package/dist/chunks/chunk-VAPB5TN4.js +0 -46
  41. package/dist/chunks/chunk-VAPB5TN4.js.map +0 -1
  42. package/dist/chunks/chunk-Z5THRO6Z.js +0 -46
  43. package/dist/chunks/chunk-Z5THRO6Z.js.map +0 -1
@@ -1,52 +0,0 @@
1
- import {
2
- btn,
3
- dis
4
- } from "./chunk-4O5F7WV7.js";
5
- import {
6
- TestComponent
7
- } from "./chunk-MLT7V47R.js";
8
- import {
9
- __decorateClass
10
- } from "./chunk-H2JE6IVU.js";
11
-
12
- // src/lib/qti-test/components/test-item-link.ts
13
- import { css, html } from "lit";
14
- import { customElement, property } from "lit/decorators.js";
15
- var TestItemLink = class extends TestComponent {
16
- constructor() {
17
- super();
18
- this.itemId = null;
19
- this.addEventListener("click", () => this._requestItem(this.itemId));
20
- }
21
- _requestItem(identifier) {
22
- this.dispatchEvent(
23
- new CustomEvent("qti-request-test-item", {
24
- composed: true,
25
- bubbles: true,
26
- detail: identifier
27
- })
28
- );
29
- }
30
- render() {
31
- return html` <slot></slot> `;
32
- }
33
- };
34
- TestItemLink.styles = css`
35
- :host {
36
- ${btn};
37
- }
38
- :host([disabled]) {
39
- ${dis};
40
- }
41
- `;
42
- __decorateClass([
43
- property({ type: String, attribute: "item-id" })
44
- ], TestItemLink.prototype, "itemId", 2);
45
- TestItemLink = __decorateClass([
46
- customElement("test-item-link")
47
- ], TestItemLink);
48
-
49
- export {
50
- TestItemLink
51
- };
52
- //# sourceMappingURL=chunk-NHA53UTY.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/lib/qti-test/components/test-item-link.ts"],"sourcesContent":["import { css, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { TestComponent } from './test-component.abstract';\nimport * as styles from './styles';\n\n@customElement('test-item-link')\nexport class TestItemLink extends TestComponent {\n static styles = css`\n :host {\n ${styles.btn};\n }\n :host([disabled]) {\n ${styles.dis};\n }\n `;\n\n @property({ type: String, attribute: 'item-id' })\n private itemId: string = null;\n\n constructor() {\n super();\n this.addEventListener('click', () => this._requestItem(this.itemId));\n }\n\n protected _requestItem(identifier: string): void {\n this.dispatchEvent(\n new CustomEvent('qti-request-test-item', {\n composed: true,\n bubbles: true,\n detail: identifier\n })\n );\n }\n\n render() {\n return html` <slot></slot> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-item-link': TestItemLink;\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,KAAK,YAAY;AAC1B,SAAS,eAAe,gBAAgB;AAKjC,IAAM,eAAN,cAA2B,cAAc;AAAA,EAa9C,cAAc;AACZ,UAAM;AAHR,SAAQ,SAAiB;AAIvB,SAAK,iBAAiB,SAAS,MAAM,KAAK,aAAa,KAAK,MAAM,CAAC;AAAA,EACrE;AAAA,EAEU,aAAa,YAA0B;AAC/C,SAAK;AAAA,MACH,IAAI,YAAY,yBAAyB;AAAA,QACvC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,QAAQ;AAAA,MACV,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,EACT;AACF;AA/Ba,aACJ,SAAS;AAAA;AAAA,QAEH,GAAG;AAAA;AAAA;AAAA,QAGH,GAAG;AAAA;AAAA;AAKR;AAAA,EADP,SAAS,EAAE,MAAM,QAAQ,WAAW,UAAU,CAAC;AAAA,GAVrC,aAWH;AAXG,eAAN;AAAA,EADN,cAAc,gBAAgB;AAAA,GAClB;","names":[]}
@@ -1,46 +0,0 @@
1
- import {
2
- btn,
3
- dis
4
- } from "./chunk-4O5F7WV7.js";
5
- import {
6
- TestComponent
7
- } from "./chunk-MLT7V47R.js";
8
- import {
9
- __decorateClass
10
- } from "./chunk-H2JE6IVU.js";
11
-
12
- // src/lib/qti-test/components/test-end-attempt.ts
13
- import { css, html } from "lit";
14
- import { customElement } from "lit/decorators.js";
15
- var TestEndAttempt = class extends TestComponent {
16
- _processResponse() {
17
- const qtiItemEl = this._testElement.querySelector(
18
- `qti-assessment-item-ref[identifier="${this._testContext.navItemId}"]`
19
- );
20
- const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
21
- qtiAssessmentItemEl.processResponse();
22
- }
23
- constructor() {
24
- super();
25
- this.addEventListener("click", () => this._processResponse());
26
- }
27
- render() {
28
- return html` <slot></slot> `;
29
- }
30
- };
31
- TestEndAttempt.styles = css`
32
- :host {
33
- ${btn};
34
- }
35
- :host([disabled]) {
36
- ${dis};
37
- }
38
- `;
39
- TestEndAttempt = __decorateClass([
40
- customElement("test-end-attempt")
41
- ], TestEndAttempt);
42
-
43
- export {
44
- TestEndAttempt
45
- };
46
- //# sourceMappingURL=chunk-VAPB5TN4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/lib/qti-test/components/test-end-attempt.ts"],"sourcesContent":["import { css, html } from 'lit';\n\nimport { customElement } from 'lit/decorators.js';\nimport type { QtiAssessmentItemRef } from '../core';\nimport * as styles from './styles';\nimport { TestComponent } from './test-component.abstract';\n\n@customElement('test-end-attempt')\nexport class TestEndAttempt extends TestComponent {\n static styles = css`\n :host {\n ${styles.btn};\n }\n :host([disabled]) {\n ${styles.dis};\n }\n `;\n\n _processResponse() {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this._testContext.navItemId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n qtiAssessmentItemEl.processResponse();\n }\n\n constructor() {\n super();\n this.addEventListener('click', () => this._processResponse());\n }\n\n render() {\n return html` <slot></slot> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-end-attempt': TestEndAttempt;\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,KAAK,YAAY;AAE1B,SAAS,qBAAqB;AAMvB,IAAM,iBAAN,cAA6B,cAAc;AAAA,EAUhD,mBAAmB;AACjB,UAAM,YAAY,KAAK,aAAa;AAAA,MAClC,uCAAuC,KAAK,aAAa,SAAS;AAAA,IACpE;AACA,UAAM,sBAAsB,UAAU;AACtC,wBAAoB,gBAAgB;AAAA,EACtC;AAAA,EAEA,cAAc;AACZ,UAAM;AACN,SAAK,iBAAiB,SAAS,MAAM,KAAK,iBAAiB,CAAC;AAAA,EAC9D;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,EACT;AACF;AA1Ba,eACJ,SAAS;AAAA;AAAA,QAEH,GAAG;AAAA;AAAA;AAAA,QAGH,GAAG;AAAA;AAAA;AANL,iBAAN;AAAA,EADN,cAAc,kBAAkB;AAAA,GACpB;","names":[]}
@@ -1,46 +0,0 @@
1
- import {
2
- btn,
3
- dis
4
- } from "./chunk-4O5F7WV7.js";
5
- import {
6
- TestComponent
7
- } from "./chunk-MLT7V47R.js";
8
- import {
9
- __decorateClass
10
- } from "./chunk-H2JE6IVU.js";
11
-
12
- // src/lib/qti-test/components/test-show-correct-response.ts
13
- import { css, html } from "lit";
14
- import { customElement } from "lit/decorators.js";
15
- var TestShowCorrectResponse = class extends TestComponent {
16
- _processResponse() {
17
- const qtiItemEl = this._testElement.querySelector(
18
- `qti-assessment-item-ref[identifier="${this._testContext.navItemId}"]`
19
- );
20
- const qtiAssessmentItemEl = qtiItemEl.assessmentItem;
21
- qtiAssessmentItemEl.showCorrectResponse(true);
22
- }
23
- constructor() {
24
- super();
25
- this.addEventListener("click", () => this._processResponse());
26
- }
27
- render() {
28
- return html` <slot></slot> `;
29
- }
30
- };
31
- TestShowCorrectResponse.styles = css`
32
- :host {
33
- ${btn};
34
- }
35
- :host([disabled]) {
36
- ${dis};
37
- }
38
- `;
39
- TestShowCorrectResponse = __decorateClass([
40
- customElement("test-show-correct-response")
41
- ], TestShowCorrectResponse);
42
-
43
- export {
44
- TestShowCorrectResponse
45
- };
46
- //# sourceMappingURL=chunk-Z5THRO6Z.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/lib/qti-test/components/test-show-correct-response.ts"],"sourcesContent":["import { css, html } from 'lit';\n\nimport { customElement } from 'lit/decorators.js';\nimport type { QtiAssessmentItemRef } from '../core';\nimport * as styles from './styles';\nimport { TestComponent } from './test-component.abstract';\n\n@customElement('test-show-correct-response')\nexport class TestShowCorrectResponse extends TestComponent {\n static styles = css`\n :host {\n ${styles.btn};\n }\n :host([disabled]) {\n ${styles.dis};\n }\n `;\n\n _processResponse() {\n const qtiItemEl = this._testElement.querySelector<QtiAssessmentItemRef>(\n `qti-assessment-item-ref[identifier=\"${this._testContext.navItemId}\"]`\n );\n const qtiAssessmentItemEl = qtiItemEl.assessmentItem;\n qtiAssessmentItemEl.showCorrectResponse(true);\n }\n\n constructor() {\n super();\n this.addEventListener('click', () => this._processResponse());\n }\n\n render() {\n return html` <slot></slot> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-show-correct-response': TestShowCorrectResponse;\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,KAAK,YAAY;AAE1B,SAAS,qBAAqB;AAMvB,IAAM,0BAAN,cAAsC,cAAc;AAAA,EAUzD,mBAAmB;AACjB,UAAM,YAAY,KAAK,aAAa;AAAA,MAClC,uCAAuC,KAAK,aAAa,SAAS;AAAA,IACpE;AACA,UAAM,sBAAsB,UAAU;AACtC,wBAAoB,oBAAoB,IAAI;AAAA,EAC9C;AAAA,EAEA,cAAc;AACZ,UAAM;AACN,SAAK,iBAAiB,SAAS,MAAM,KAAK,iBAAiB,CAAC;AAAA,EAC9D;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,EACT;AACF;AA1Ba,wBACJ,SAAS;AAAA;AAAA,QAEH,GAAG;AAAA;AAAA;AAAA,QAGH,GAAG;AAAA;AAAA;AANL,0BAAN;AAAA,EADN,cAAc,4BAA4B;AAAA,GAC9B;","names":[]}