@internetarchive/ia-item-navigator 1.0.4-a1 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/demo/app-root.d.ts +47 -47
- package/dist/demo/app-root.js +199 -199
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/src/interfaces/custom-theater-interface.d.ts +20 -20
- package/dist/src/interfaces/custom-theater-interface.js +1 -1
- package/dist/src/interfaces/event-interfaces.d.ts +40 -40
- package/dist/src/interfaces/event-interfaces.js +1 -1
- package/dist/src/interfaces/menu-interfaces.d.ts +22 -22
- package/dist/src/interfaces/menu-interfaces.js +1 -1
- package/dist/src/item-navigator.d.ts +69 -69
- package/dist/src/item-navigator.js +256 -256
- package/dist/src/loader.d.ts +13 -13
- package/dist/src/loader.js +31 -31
- package/dist/src/menu-slider/ia-menu-slider.d.ts +30 -30
- package/dist/src/menu-slider/ia-menu-slider.js +112 -112
- package/dist/src/menu-slider/menu-button.d.ts +19 -19
- package/dist/src/menu-slider/menu-button.js +75 -75
- package/dist/src/menu-slider/styles/menu-button.d.ts +2 -2
- package/dist/src/menu-slider/styles/menu-button.js +2 -2
- package/dist/src/menu-slider/styles/menu-slider.d.ts +2 -2
- package/dist/src/menu-slider/styles/menu-slider.js +9 -20
- package/dist/src/menu-slider/styles/menu-slider.js.map +1 -1
- package/dist/src/no-theater-available.d.ts +9 -9
- package/dist/src/no-theater-available.js +35 -35
- package/dist/test/ia-item-navigator.test.d.ts +1 -1
- package/dist/test/ia-item-navigator.test.js +296 -296
- package/dist/test/ia-stub.d.ts +22 -22
- package/dist/test/ia-stub.js +34 -34
- package/dist/test/no-theater-available.test.d.ts +1 -1
- package/dist/test/no-theater-available.test.js +22 -22
- package/package.json +1 -1
- package/src/menu-slider/styles/menu-slider.ts +4 -15
@@ -1,25 +1,25 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { LitElement, html, css, } from 'lit';
|
3
|
-
import { customElement, property } from 'lit/decorators.js';
|
4
|
-
let IANoTheaterAvailable = class IANoTheaterAvailable extends LitElement {
|
5
|
-
constructor() {
|
6
|
-
super(...arguments);
|
7
|
-
this.identifier = '';
|
8
|
-
}
|
9
|
-
emitLoaded() {
|
10
|
-
this.dispatchEvent(new CustomEvent('loadingStateUpdated', {
|
11
|
-
detail: { loaded: true },
|
12
|
-
}));
|
13
|
-
}
|
14
|
-
updated(changed) {
|
15
|
-
if (changed.has('identifier')) {
|
16
|
-
this.emitLoaded();
|
17
|
-
}
|
18
|
-
}
|
19
|
-
get downloadUrl() {
|
20
|
-
return `/download/${this.identifier}`;
|
21
|
-
}
|
22
|
-
render() {
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { LitElement, html, css, } from 'lit';
|
3
|
+
import { customElement, property } from 'lit/decorators.js';
|
4
|
+
let IANoTheaterAvailable = class IANoTheaterAvailable extends LitElement {
|
5
|
+
constructor() {
|
6
|
+
super(...arguments);
|
7
|
+
this.identifier = '';
|
8
|
+
}
|
9
|
+
emitLoaded() {
|
10
|
+
this.dispatchEvent(new CustomEvent('loadingStateUpdated', {
|
11
|
+
detail: { loaded: true },
|
12
|
+
}));
|
13
|
+
}
|
14
|
+
updated(changed) {
|
15
|
+
if (changed.has('identifier')) {
|
16
|
+
this.emitLoaded();
|
17
|
+
}
|
18
|
+
}
|
19
|
+
get downloadUrl() {
|
20
|
+
return `/download/${this.identifier}`;
|
21
|
+
}
|
22
|
+
render() {
|
23
23
|
return html `
|
24
24
|
<section>
|
25
25
|
<h2>THERE IS NO PREVIEW AVAILABLE FOR THIS ITEM</h2>
|
@@ -31,9 +31,9 @@ let IANoTheaterAvailable = class IANoTheaterAvailable extends LitElement {
|
|
31
31
|
</p>
|
32
32
|
<a href=${this.downloadUrl}>Show all files</a>
|
33
33
|
</section>
|
34
|
-
`;
|
35
|
-
}
|
36
|
-
static get styles() {
|
34
|
+
`;
|
35
|
+
}
|
36
|
+
static get styles() {
|
37
37
|
return css `
|
38
38
|
:host {
|
39
39
|
color: var(--primaryTextColor, #fff);
|
@@ -68,14 +68,14 @@ let IANoTheaterAvailable = class IANoTheaterAvailable extends LitElement {
|
|
68
68
|
user-select: none;
|
69
69
|
text-decoration: none;
|
70
70
|
}
|
71
|
-
`;
|
72
|
-
}
|
73
|
-
};
|
74
|
-
__decorate([
|
75
|
-
property({ type: String })
|
76
|
-
], IANoTheaterAvailable.prototype, "identifier", void 0);
|
77
|
-
IANoTheaterAvailable = __decorate([
|
78
|
-
customElement('ia-no-theater-available')
|
79
|
-
], IANoTheaterAvailable);
|
80
|
-
export { IANoTheaterAvailable };
|
71
|
+
`;
|
72
|
+
}
|
73
|
+
};
|
74
|
+
__decorate([
|
75
|
+
property({ type: String })
|
76
|
+
], IANoTheaterAvailable.prototype, "identifier", void 0);
|
77
|
+
IANoTheaterAvailable = __decorate([
|
78
|
+
customElement('ia-no-theater-available')
|
79
|
+
], IANoTheaterAvailable);
|
80
|
+
export { IANoTheaterAvailable };
|
81
81
|
//# sourceMappingURL=no-theater-available.js.map
|
@@ -1 +1 @@
|
|
1
|
-
import '../src/item-navigator';
|
1
|
+
import '../src/item-navigator';
|