@citolab/qti-components 7.0.6-beta.1 → 7.0.6-beta.3
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/chunks/{chunk-4WXQYE2P.js → chunk-N5OHGRGG.js} +1 -1
- package/cdn/chunks/{chunk-3V6LA7B3.js → chunk-NDHSIO2G.js} +1 -1
- package/cdn/chunks/{chunk-PKT2SJQD.js → chunk-QV6I5NVQ.js} +1 -1
- package/cdn/chunks/{chunk-FTKONGII.js → chunk-TVDTF6P6.js} +28 -28
- package/cdn/chunks/chunk-UJP4TGD3.js +1 -0
- package/cdn/exports/interaction.js +1 -1
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +1 -1
- package/cdn/qti-components/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/test-component.abstract.js +1 -1
- package/cdn/qti-test/components/test-item-link.js +1 -1
- package/cdn/qti-test/components/test-next.js +1 -1
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
- package/cdn/qti-test/components/test-prev.js +1 -1
- package/cdn/qti-test/components/test-view.js +1 -1
- package/dist/chunks/{chunk-ZPNJ2HP5.js → chunk-OIRWOI3E.js} +2 -1
- package/dist/chunks/chunk-OIRWOI3E.js.map +1 -0
- package/dist/chunks/{chunk-DU37U6PW.js → chunk-ZHAJ3CMP.js} +25 -31
- package/dist/chunks/chunk-ZHAJ3CMP.js.map +1 -0
- package/dist/exports/interaction.js +1 -1
- package/dist/index.js +2 -2
- package/dist/qti-components/index.js +2 -2
- package/package.json +1 -1
- package/cdn/chunks/chunk-R33OODNX.js +0 -1
- package/dist/chunks/chunk-2V6LQV2K.js +0 -50
- package/dist/chunks/chunk-2V6LQV2K.js.map +0 -1
- package/dist/chunks/chunk-4WVLWWYJ.js +0 -50
- package/dist/chunks/chunk-4WVLWWYJ.js.map +0 -1
- package/dist/chunks/chunk-DU37U6PW.js.map +0 -1
- package/dist/chunks/chunk-O6WEZVEM.js +0 -43
- package/dist/chunks/chunk-O6WEZVEM.js.map +0 -1
- package/dist/chunks/chunk-ZPNJ2HP5.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
QtiVariable,
|
|
92
92
|
qtiAndMixin,
|
|
93
93
|
qtiSubtractMixin
|
|
94
|
-
} from "./chunks/chunk-
|
|
94
|
+
} from "./chunks/chunk-ZHAJ3CMP.js";
|
|
95
95
|
import {
|
|
96
96
|
getItemByUri,
|
|
97
97
|
getManifestInfo
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
} from "./chunks/chunk-UFYWCLXF.js";
|
|
133
133
|
import "./chunks/chunk-D3RGDWKP.js";
|
|
134
134
|
import "./chunks/chunk-ELDMXTUQ.js";
|
|
135
|
-
import "./chunks/chunk-
|
|
135
|
+
import "./chunks/chunk-OIRWOI3E.js";
|
|
136
136
|
import "./chunks/chunk-DLUJN2FW.js";
|
|
137
137
|
import "./chunks/chunk-XSI6FXGD.js";
|
|
138
138
|
import "./chunks/chunk-BPHQLJWE.js";
|
|
@@ -83,11 +83,11 @@ import {
|
|
|
83
83
|
QtiVariable,
|
|
84
84
|
qtiAndMixin,
|
|
85
85
|
qtiSubtractMixin
|
|
86
|
-
} from "../chunks/chunk-
|
|
86
|
+
} from "../chunks/chunk-ZHAJ3CMP.js";
|
|
87
87
|
import "../chunks/chunk-XDMSEAYC.js";
|
|
88
88
|
import "../chunks/chunk-D3RGDWKP.js";
|
|
89
89
|
import "../chunks/chunk-ELDMXTUQ.js";
|
|
90
|
-
import "../chunks/chunk-
|
|
90
|
+
import "../chunks/chunk-OIRWOI3E.js";
|
|
91
91
|
import "../chunks/chunk-DLUJN2FW.js";
|
|
92
92
|
import "../chunks/chunk-XSI6FXGD.js";
|
|
93
93
|
import "../chunks/chunk-BPHQLJWE.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as s,c as n}from"./chunk-5GCSZ3CH.js";import{i}from"./chunk-LZZB4VGC.js";import{a as r}from"./chunk-IAP2CEE7.js";var e=class extends i{constructor(){super();this.disabled=!1;this.readonly=!1;this._internals=this.attachInternals()}reportValidity(){return this._internals.reportValidity()}reset(){this.value=""}get correctResponse(){return this._correctResponse}set correctResponse(t){this._correctResponse=t}connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0,cancelable:!1,detail:{responseIdentifier:this.responseIdentifier}}))}saveResponse(t){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,cancelable:!1,detail:{responseIdentifier:this.responseIdentifier,response:Array.isArray(t)?[...t]:t}}))}};e.formAssociated=!0,r([s({type:String,attribute:"response-identifier"})],e.prototype,"responseIdentifier",2),r([s({reflect:!0,type:Boolean})],e.prototype,"disabled",2),r([s({reflect:!0,type:Boolean})],e.prototype,"readonly",2),r([n()],e.prototype,"_correctResponse",2);export{e as a};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TestComponent
|
|
3
|
-
} from "./chunk-3EU75IUF.js";
|
|
4
|
-
import {
|
|
5
|
-
btn,
|
|
6
|
-
dis
|
|
7
|
-
} from "./chunk-4O5F7WV7.js";
|
|
8
|
-
import {
|
|
9
|
-
__decorateClass
|
|
10
|
-
} from "./chunk-H2JE6IVU.js";
|
|
11
|
-
|
|
12
|
-
// src/lib/qti-test/components/test-next.ts
|
|
13
|
-
import { css, html } from "lit";
|
|
14
|
-
import { customElement } from "lit/decorators.js";
|
|
15
|
-
var TestNext = class extends TestComponent {
|
|
16
|
-
constructor() {
|
|
17
|
-
super();
|
|
18
|
-
this._internals.role = "button";
|
|
19
|
-
this._internals.ariaLabel = "Next item";
|
|
20
|
-
this.addEventListener("click", (e) => {
|
|
21
|
-
e.preventDefault();
|
|
22
|
-
if (!this.disabled) this._requestItem(this.items[this.itemIndex + 1].identifier);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
willUpdate(changedProperties) {
|
|
26
|
-
super.willUpdate(changedProperties);
|
|
27
|
-
if (changedProperties.has("_testContext")) {
|
|
28
|
-
this.disabled = !this._testElement?.el || this.itemIndex < 0 || this.itemIndex >= this.items.length - 1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
return html`<slot></slot>`;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
TestNext.styles = css`
|
|
36
|
-
:host {
|
|
37
|
-
${btn};
|
|
38
|
-
}
|
|
39
|
-
:host([disabled]) {
|
|
40
|
-
${dis};
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
TestNext = __decorateClass([
|
|
44
|
-
customElement("test-next")
|
|
45
|
-
], TestNext);
|
|
46
|
-
|
|
47
|
-
export {
|
|
48
|
-
TestNext
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=chunk-2V6LQV2K.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/qti-test/components/test-next.ts"],"sourcesContent":["import { css, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport * as styles from './styles';\nimport { TestComponent } from './test-component.abstract';\n\n/**\n * Represents a custom element for navigating to the next test item.\n *\n * @remarks\n * This element provides functionality for navigating to the next test item.\n *\n * @example\n * ```html\n * <test-next></test-next>\n * ```\n */\n@customElement('test-next')\nexport class TestNext extends TestComponent {\n static styles = css`\n :host {\n ${styles.btn};\n }\n :host([disabled]) {\n ${styles.dis};\n }\n `;\n\n constructor() {\n super();\n this._internals.role = 'button';\n this._internals.ariaLabel = 'Next item';\n\n this.addEventListener('click', e => {\n e.preventDefault();\n if (!this.disabled) this._requestItem(this.items[this.itemIndex + 1].identifier);\n });\n }\n\n willUpdate(changedProperties: Map<string | number | symbol, unknown>) {\n super.willUpdate(changedProperties);\n if (changedProperties.has('_testContext')) {\n this.disabled = !this._testElement?.el || this.itemIndex < 0 || this.itemIndex >= this.items.length - 1;\n }\n }\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-next': TestNext;\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,KAAK,YAAY;AAC1B,SAAS,qBAAqB;AAgBvB,IAAM,WAAN,cAAuB,cAAc;AAAA,EAU1C,cAAc;AACZ,UAAM;AACN,SAAK,WAAW,OAAO;AACvB,SAAK,WAAW,YAAY;AAE5B,SAAK,iBAAiB,SAAS,OAAK;AAClC,QAAE,eAAe;AACjB,UAAI,CAAC,KAAK,SAAU,MAAK,aAAa,KAAK,MAAM,KAAK,YAAY,CAAC,EAAE,UAAU;AAAA,IACjF,CAAC;AAAA,EACH;AAAA,EAEA,WAAW,mBAA2D;AACpE,UAAM,WAAW,iBAAiB;AAClC,QAAI,kBAAkB,IAAI,cAAc,GAAG;AACzC,WAAK,WAAW,CAAC,KAAK,cAAc,MAAM,KAAK,YAAY,KAAK,KAAK,aAAa,KAAK,MAAM,SAAS;AAAA,IACxG;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,EACT;AACF;AA/Ba,SACJ,SAAS;AAAA;AAAA,QAEH,GAAG;AAAA;AAAA;AAAA,QAGH,GAAG;AAAA;AAAA;AANL,WAAN;AAAA,EADN,cAAc,WAAW;AAAA,GACb;","names":[]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TestComponent
|
|
3
|
-
} from "./chunk-3EU75IUF.js";
|
|
4
|
-
import {
|
|
5
|
-
btn,
|
|
6
|
-
dis
|
|
7
|
-
} from "./chunk-4O5F7WV7.js";
|
|
8
|
-
import {
|
|
9
|
-
__decorateClass
|
|
10
|
-
} from "./chunk-H2JE6IVU.js";
|
|
11
|
-
|
|
12
|
-
// src/lib/qti-test/components/test-prev.ts
|
|
13
|
-
import { css, html } from "lit";
|
|
14
|
-
import { customElement } from "lit/decorators.js";
|
|
15
|
-
var TestPrev = class extends TestComponent {
|
|
16
|
-
constructor() {
|
|
17
|
-
super();
|
|
18
|
-
this._internals.role = "button";
|
|
19
|
-
this._internals.ariaLabel = "Next item";
|
|
20
|
-
this.addEventListener("click", (e) => {
|
|
21
|
-
e.preventDefault();
|
|
22
|
-
if (!this.disabled) this._requestItem(this.items[this.itemIndex - 1].identifier);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
willUpdate(changedProperties) {
|
|
26
|
-
super.willUpdate(changedProperties);
|
|
27
|
-
if (changedProperties.has("_testContext")) {
|
|
28
|
-
this.disabled = !this._testElement?.el || this.itemIndex === 0 || this.itemIndex === -1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
return html`<slot></slot>`;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
TestPrev.styles = css`
|
|
36
|
-
:host {
|
|
37
|
-
${btn};
|
|
38
|
-
}
|
|
39
|
-
:host([disabled]) {
|
|
40
|
-
${dis};
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
TestPrev = __decorateClass([
|
|
44
|
-
customElement("test-prev")
|
|
45
|
-
], TestPrev);
|
|
46
|
-
|
|
47
|
-
export {
|
|
48
|
-
TestPrev
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=chunk-4WVLWWYJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/qti-test/components/test-prev.ts"],"sourcesContent":["import { css, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { TestComponent } from './test-component.abstract';\nimport * as styles from './styles';\n\n/**\n * Represents a custom element for navigating to the previous test item.\n *\n * @remarks\n * This element provides functionality for navigating to the previous test item.\n *\n * @example\n * ```html\n * <test-prev></test-prev>\n * ```\n */\n@customElement('test-prev')\nexport class TestPrev extends TestComponent {\n static styles = css`\n :host {\n ${styles.btn};\n }\n :host([disabled]) {\n ${styles.dis};\n }\n `;\n\n constructor() {\n super();\n this._internals.role = 'button';\n this._internals.ariaLabel = 'Next item';\n\n this.addEventListener('click', e => {\n e.preventDefault();\n if (!this.disabled) this._requestItem(this.items[this.itemIndex - 1].identifier);\n });\n }\n\n willUpdate(changedProperties: Map<string | number | symbol, unknown>) {\n super.willUpdate(changedProperties);\n if (changedProperties.has('_testContext')) {\n this.disabled = !this._testElement?.el || this.itemIndex === 0 || this.itemIndex === -1;\n }\n }\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-previous': TestPrev;\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,KAAK,YAAY;AAC1B,SAAS,qBAAqB;AAgBvB,IAAM,WAAN,cAAuB,cAAc;AAAA,EAU1C,cAAc;AACZ,UAAM;AACN,SAAK,WAAW,OAAO;AACvB,SAAK,WAAW,YAAY;AAE5B,SAAK,iBAAiB,SAAS,OAAK;AAClC,QAAE,eAAe;AACjB,UAAI,CAAC,KAAK,SAAU,MAAK,aAAa,KAAK,MAAM,KAAK,YAAY,CAAC,EAAE,UAAU;AAAA,IACjF,CAAC;AAAA,EACH;AAAA,EAEA,WAAW,mBAA2D;AACpE,UAAM,WAAW,iBAAiB;AAClC,QAAI,kBAAkB,IAAI,cAAc,GAAG;AACzC,WAAK,WAAW,CAAC,KAAK,cAAc,MAAM,KAAK,cAAc,KAAK,KAAK,cAAc;AAAA,IACvF;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,EACT;AACF;AA/Ba,SACJ,SAAS;AAAA;AAAA,QAEH,GAAG;AAAA;AAAA;AAAA,QAGH,GAAG;AAAA;AAAA;AANL,WAAN;AAAA,EADN,cAAc,WAAW;AAAA,GACb;","names":[]}
|