@citolab/qti-components 7.0.6-beta.1 → 7.0.6-beta.2

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.
@@ -1,43 +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-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
- render() {
22
- return html` <slot></slot> `;
23
- }
24
- };
25
- TestItemLink.styles = css`
26
- :host {
27
- ${btn};
28
- }
29
- :host([disabled]) {
30
- ${dis};
31
- }
32
- `;
33
- __decorateClass([
34
- property({ type: String, attribute: "item-id" })
35
- ], TestItemLink.prototype, "itemId", 2);
36
- TestItemLink = __decorateClass([
37
- customElement("test-item-link")
38
- ], TestItemLink);
39
-
40
- export {
41
- TestItemLink
42
- };
43
- //# sourceMappingURL=chunk-O6WEZVEM.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 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,EAEA,SAAS;AACP,WAAO;AAAA,EACT;AACF;AArBa,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":[]}