@internetarchive/ia-item-navigator 1.0.4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/ci.yml +4 -5
- package/.github/workflows/gh-pages-main.yml +39 -0
- package/.github/workflows/pr-preview.yml +38 -0
- package/demo/app-root.ts +13 -13
- package/dist/demo/app-root.d.ts +47 -47
- package/dist/demo/app-root.js +200 -199
- package/dist/demo/app-root.js.map +1 -1
- 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 +23 -22
- package/dist/src/interfaces/menu-interfaces.js +1 -1
- package/dist/src/interfaces/menu-interfaces.js.map +1 -1
- package/dist/src/item-navigator.d.ts +69 -69
- package/dist/src/item-navigator.js +259 -257
- package/dist/src/item-navigator.js.map +1 -1
- package/dist/src/loader.d.ts +9 -13
- package/dist/src/loader.js +35 -31
- package/dist/src/loader.js.map +1 -1
- package/dist/src/menu-slider/ia-menu-slider.d.ts +31 -30
- package/dist/src/menu-slider/ia-menu-slider.js +123 -124
- package/dist/src/menu-slider/ia-menu-slider.js.map +1 -1
- 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/menu-button.js.map +1 -1
- 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 +5 -5
- package/dist/src/no-theater-available.d.ts +9 -9
- package/dist/src/no-theater-available.js +35 -35
- package/dist/src/no-theater-available.js.map +1 -1
- 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-item-navigator.test.js.map +1 -1
- 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/dist/test/no-theater-available.test.js.map +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/dist/vite.config.js +25 -0
- package/dist/vite.config.js.map +1 -0
- package/package.json +35 -21
- package/src/interfaces/menu-interfaces.ts +3 -1
- package/src/item-navigator.ts +9 -4
- package/src/loader.ts +5 -7
- package/src/menu-slider/ia-menu-slider.ts +17 -17
- package/src/menu-slider/menu-button.ts +3 -3
- package/src/no-theater-available.ts +1 -1
- package/test/ia-item-navigator.test.ts +24 -24
- package/test/no-theater-available.test.ts +2 -2
- package/tsconfig.json +2 -1
- package/vite.config.ts +25 -0
@@ -1,19 +1,19 @@
|
|
1
|
-
import { LitElement } from 'lit';
|
2
|
-
export declare class MenuButton extends LitElement {
|
3
|
-
static get styles(): import("lit").CSSResult;
|
4
|
-
icon: string;
|
5
|
-
href: string;
|
6
|
-
label: string;
|
7
|
-
menuDetails: string;
|
8
|
-
|
9
|
-
selected: boolean;
|
10
|
-
followable: boolean;
|
11
|
-
onClick(e: Event): void;
|
12
|
-
dispatchMenuTypeSelectedEvent(): void;
|
13
|
-
get buttonClass(): "" | "selected";
|
14
|
-
get iconClass(): "
|
15
|
-
get menuItem(): import("lit-html").TemplateResult<1>;
|
16
|
-
get linkButton(): import("lit-html").TemplateResult<1>;
|
17
|
-
get clickButton(): import("lit-html").TemplateResult<1>;
|
18
|
-
render(): import("lit-html").TemplateResult<1>;
|
19
|
-
}
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
export declare class MenuButton extends LitElement {
|
3
|
+
static get styles(): import("lit").CSSResult;
|
4
|
+
icon: string;
|
5
|
+
href: string;
|
6
|
+
label: string;
|
7
|
+
menuDetails: string;
|
8
|
+
buttonId: string;
|
9
|
+
selected: boolean;
|
10
|
+
followable: boolean;
|
11
|
+
onClick(e: Event): void;
|
12
|
+
dispatchMenuTypeSelectedEvent(): void;
|
13
|
+
get buttonClass(): "" | "selected";
|
14
|
+
get iconClass(): "" | "active";
|
15
|
+
get menuItem(): import("lit-html").TemplateResult<1>;
|
16
|
+
get linkButton(): import("lit-html").TemplateResult<1>;
|
17
|
+
get clickButton(): import("lit-html").TemplateResult<1>;
|
18
|
+
render(): import("lit-html").TemplateResult<1>;
|
19
|
+
}
|
@@ -1,48 +1,48 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { html, LitElement } from 'lit';
|
3
|
-
import { customElement, property } from 'lit/decorators.js';
|
4
|
-
import menuButtonCSS from './styles/menu-button';
|
5
|
-
let MenuButton = class MenuButton extends LitElement {
|
6
|
-
constructor() {
|
7
|
-
super(...arguments);
|
8
|
-
this.icon = '';
|
9
|
-
this.href = '';
|
10
|
-
this.label = '';
|
11
|
-
this.menuDetails = '';
|
12
|
-
this.
|
13
|
-
this.selected = false;
|
14
|
-
this.followable = false;
|
15
|
-
}
|
16
|
-
static get styles() {
|
17
|
-
return menuButtonCSS;
|
18
|
-
}
|
19
|
-
onClick(e) {
|
20
|
-
e.preventDefault();
|
21
|
-
this.dispatchMenuTypeSelectedEvent();
|
22
|
-
}
|
23
|
-
dispatchMenuTypeSelectedEvent() {
|
24
|
-
this.dispatchEvent(new CustomEvent('menuTypeSelected', {
|
25
|
-
bubbles: true,
|
26
|
-
composed: true,
|
27
|
-
detail: {
|
28
|
-
id: this.
|
29
|
-
},
|
30
|
-
}));
|
31
|
-
}
|
32
|
-
get buttonClass() {
|
33
|
-
return this.selected ? 'selected' : '';
|
34
|
-
}
|
35
|
-
get iconClass() {
|
36
|
-
return this.selected ? 'active' : '';
|
37
|
-
}
|
38
|
-
get menuItem() {
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { html, LitElement } from 'lit';
|
3
|
+
import { customElement, property } from 'lit/decorators.js';
|
4
|
+
import menuButtonCSS from './styles/menu-button';
|
5
|
+
let MenuButton = class MenuButton extends LitElement {
|
6
|
+
constructor() {
|
7
|
+
super(...arguments);
|
8
|
+
this.icon = '';
|
9
|
+
this.href = '';
|
10
|
+
this.label = '';
|
11
|
+
this.menuDetails = '';
|
12
|
+
this.buttonId = '';
|
13
|
+
this.selected = false;
|
14
|
+
this.followable = false;
|
15
|
+
}
|
16
|
+
static get styles() {
|
17
|
+
return menuButtonCSS;
|
18
|
+
}
|
19
|
+
onClick(e) {
|
20
|
+
e.preventDefault();
|
21
|
+
this.dispatchMenuTypeSelectedEvent();
|
22
|
+
}
|
23
|
+
dispatchMenuTypeSelectedEvent() {
|
24
|
+
this.dispatchEvent(new CustomEvent('menuTypeSelected', {
|
25
|
+
bubbles: true,
|
26
|
+
composed: true,
|
27
|
+
detail: {
|
28
|
+
id: this.buttonId,
|
29
|
+
},
|
30
|
+
}));
|
31
|
+
}
|
32
|
+
get buttonClass() {
|
33
|
+
return this.selected ? 'selected' : '';
|
34
|
+
}
|
35
|
+
get iconClass() {
|
36
|
+
return this.selected ? 'active' : '';
|
37
|
+
}
|
38
|
+
get menuItem() {
|
39
39
|
return html `
|
40
40
|
<span class="icon ${this.iconClass}"> ${this.icon} </span>
|
41
41
|
<span class="label">${this.label}</span>
|
42
42
|
<span class="menu-details">${this.menuDetails}</span>
|
43
|
-
`;
|
44
|
-
}
|
45
|
-
get linkButton() {
|
43
|
+
`;
|
44
|
+
}
|
45
|
+
get linkButton() {
|
46
46
|
return html `
|
47
47
|
<a
|
48
48
|
href="${this.href}"
|
@@ -50,42 +50,42 @@ let MenuButton = class MenuButton extends LitElement {
|
|
50
50
|
@click=${this.followable ? undefined : this.onClick}
|
51
51
|
>${this.menuItem}</a
|
52
52
|
>
|
53
|
-
`;
|
54
|
-
}
|
55
|
-
get clickButton() {
|
53
|
+
`;
|
54
|
+
}
|
55
|
+
get clickButton() {
|
56
56
|
return html `
|
57
57
|
<button class="menu-item ${this.buttonClass}" @click=${this.onClick}>
|
58
58
|
${this.menuItem}
|
59
59
|
</button>
|
60
|
-
`;
|
61
|
-
}
|
62
|
-
render() {
|
63
|
-
return this.href ? this.linkButton : this.clickButton;
|
64
|
-
}
|
65
|
-
};
|
66
|
-
__decorate([
|
67
|
-
property({ type: String })
|
68
|
-
], MenuButton.prototype, "icon", void 0);
|
69
|
-
__decorate([
|
70
|
-
property({ type: String })
|
71
|
-
], MenuButton.prototype, "href", void 0);
|
72
|
-
__decorate([
|
73
|
-
property({ type: String })
|
74
|
-
], MenuButton.prototype, "label", void 0);
|
75
|
-
__decorate([
|
76
|
-
property({ type: String })
|
77
|
-
], MenuButton.prototype, "menuDetails", void 0);
|
78
|
-
__decorate([
|
79
|
-
property({ type: String })
|
80
|
-
], MenuButton.prototype, "
|
81
|
-
__decorate([
|
82
|
-
property({ type: Boolean })
|
83
|
-
], MenuButton.prototype, "selected", void 0);
|
84
|
-
__decorate([
|
85
|
-
property({ type: Boolean })
|
86
|
-
], MenuButton.prototype, "followable", void 0);
|
87
|
-
MenuButton = __decorate([
|
88
|
-
customElement('menu-button')
|
89
|
-
], MenuButton);
|
90
|
-
export { MenuButton };
|
60
|
+
`;
|
61
|
+
}
|
62
|
+
render() {
|
63
|
+
return this.href ? this.linkButton : this.clickButton;
|
64
|
+
}
|
65
|
+
};
|
66
|
+
__decorate([
|
67
|
+
property({ type: String })
|
68
|
+
], MenuButton.prototype, "icon", void 0);
|
69
|
+
__decorate([
|
70
|
+
property({ type: String })
|
71
|
+
], MenuButton.prototype, "href", void 0);
|
72
|
+
__decorate([
|
73
|
+
property({ type: String })
|
74
|
+
], MenuButton.prototype, "label", void 0);
|
75
|
+
__decorate([
|
76
|
+
property({ type: String })
|
77
|
+
], MenuButton.prototype, "menuDetails", void 0);
|
78
|
+
__decorate([
|
79
|
+
property({ type: String })
|
80
|
+
], MenuButton.prototype, "buttonId", void 0);
|
81
|
+
__decorate([
|
82
|
+
property({ type: Boolean })
|
83
|
+
], MenuButton.prototype, "selected", void 0);
|
84
|
+
__decorate([
|
85
|
+
property({ type: Boolean })
|
86
|
+
], MenuButton.prototype, "followable", void 0);
|
87
|
+
MenuButton = __decorate([
|
88
|
+
customElement('menu-button')
|
89
|
+
], MenuButton);
|
90
|
+
export { MenuButton };
|
91
91
|
//# sourceMappingURL=menu-button.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu-button.js","sourceRoot":"","sources":["../../../src/menu-slider/menu-button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,aAAa,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"menu-button.js","sourceRoot":"","sources":["../../../src/menu-slider/menu-button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAG1C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QAKuB,SAAI,GAAG,EAAE,CAAC;QAEV,SAAI,GAAG,EAAE,CAAC;QAEV,UAAK,GAAG,EAAE,CAAC;QAEX,gBAAW,GAAG,EAAE,CAAC;QAEjB,aAAQ,GAAG,EAAE,CAAC;QAEb,aAAQ,GAAG,KAAK,CAAC;QAEjB,eAAU,GAAG,KAAK,CAAC;IAyDlD,CAAC;IAzEC,MAAM,KAAK,MAAM;QACf,OAAO,aAAa,CAAC;IACvB,CAAC;IAgBD,OAAO,CAAC,CAAQ;QACd,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,CAAC,6BAA6B,EAAE,CAAC;IACvC,CAAC;IAED,6BAA6B;QAC3B,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,kBAAkB,EAAE;YAClC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI,CAAC,QAAQ;aAClB;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IACzC,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAA;0BACW,IAAI,CAAC,SAAS,MAAM,IAAI,CAAC,IAAI;4BAC3B,IAAI,CAAC,KAAK;mCACH,IAAI,CAAC,WAAW;KAC9C,CAAC;IACJ,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAA;;gBAEC,IAAI,CAAC,IAAI;2BACE,IAAI,CAAC,WAAW;iBAC1B,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO;WAChD,IAAI,CAAC,QAAQ;;KAEnB,CAAC;IACJ,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAA;iCACkB,IAAI,CAAC,WAAW,YAAY,IAAI,CAAC,OAAO;UAC/D,IAAI,CAAC,QAAQ;;KAElB,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;IACxD,CAAC;CACF,CAAA;AArE6B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAW;AAEV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAW;AAEV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAAY;AAEX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAkB;AAEjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAe;AAEb;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4CAAkB;AAEjB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8CAAoB;AAjBrC,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA0EtB","sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport menuButtonCSS from './styles/menu-button';\n\n@customElement('menu-button')\nexport class MenuButton extends LitElement {\n static get styles() {\n return menuButtonCSS;\n }\n\n @property({ type: String }) icon = '';\n\n @property({ type: String }) href = '';\n\n @property({ type: String }) label = '';\n\n @property({ type: String }) menuDetails = '';\n\n @property({ type: String }) buttonId = '';\n\n @property({ type: Boolean }) selected = false;\n\n @property({ type: Boolean }) followable = false;\n\n onClick(e: Event) {\n e.preventDefault();\n this.dispatchMenuTypeSelectedEvent();\n }\n\n dispatchMenuTypeSelectedEvent() {\n this.dispatchEvent(\n new CustomEvent('menuTypeSelected', {\n bubbles: true,\n composed: true,\n detail: {\n id: this.buttonId,\n },\n }),\n );\n }\n\n get buttonClass() {\n return this.selected ? 'selected' : '';\n }\n\n get iconClass() {\n return this.selected ? 'active' : '';\n }\n\n get menuItem() {\n return html`\n <span class=\"icon ${this.iconClass}\"> ${this.icon} </span>\n <span class=\"label\">${this.label}</span>\n <span class=\"menu-details\">${this.menuDetails}</span>\n `;\n }\n\n get linkButton() {\n return html`\n <a\n href=\"${this.href}\"\n class=\"menu-item ${this.buttonClass}\"\n @click=${this.followable ? undefined : this.onClick}\n >${this.menuItem}</a\n >\n `;\n }\n\n get clickButton() {\n return html`\n <button class=\"menu-item ${this.buttonClass}\" @click=${this.onClick}>\n ${this.menuItem}\n </button>\n `;\n }\n\n render() {\n return this.href ? this.linkButton : this.clickButton;\n }\n}\n"]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: import("lit").CSSResult;
|
2
|
-
export default _default;
|
1
|
+
declare const _default: import("lit").CSSResult;
|
2
|
+
export default _default;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: import("lit").CSSResult;
|
2
|
-
export default _default;
|
1
|
+
declare const _default: import("lit").CSSResult;
|
2
|
+
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { css } from 'lit';
|
2
|
-
const menuButtonWidth = css `42px`;
|
3
|
-
const sliderWidth = css `var(--menuWidth, 320px)`;
|
4
|
-
const transitionTiming = css `var(--animationTiming, 200ms)`;
|
1
|
+
import { css } from 'lit';
|
2
|
+
const menuButtonWidth = css `42px`;
|
3
|
+
const sliderWidth = css `var(--menuWidth, 320px)`;
|
4
|
+
const transitionTiming = css `var(--animationTiming, 200ms)`;
|
5
5
|
export default css `
|
6
6
|
.main {
|
7
7
|
overflow: hidden;
|
@@ -114,5 +114,5 @@ export default css `
|
|
114
114
|
overflow: auto;
|
115
115
|
overscroll-behavior: contain;
|
116
116
|
}
|
117
|
-
`;
|
117
|
+
`;
|
118
118
|
//# sourceMappingURL=menu-slider.js.map
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { LitElement, TemplateResult, PropertyValues, CSSResult } from 'lit';
|
2
|
-
export declare class IANoTheaterAvailable extends LitElement {
|
3
|
-
identifier?: string;
|
4
|
-
emitLoaded(): void;
|
5
|
-
updated(changed: PropertyValues): void;
|
6
|
-
get downloadUrl(): string;
|
7
|
-
render(): TemplateResult;
|
8
|
-
static get styles(): CSSResult;
|
9
|
-
}
|
1
|
+
import { LitElement, TemplateResult, PropertyValues, CSSResult } from 'lit';
|
2
|
+
export declare class IANoTheaterAvailable extends LitElement {
|
3
|
+
identifier?: string;
|
4
|
+
emitLoaded(): void;
|
5
|
+
updated(changed: PropertyValues): void;
|
6
|
+
get downloadUrl(): string;
|
7
|
+
render(): TemplateResult;
|
8
|
+
static get styles(): CSSResult;
|
9
|
+
}
|
@@ -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
|
-
{"version":3,"file":"no-theater-available.js","sourceRoot":"","sources":["../../src/no-theater-available.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,IAAI,EAIJ,GAAG,GACJ,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"no-theater-available.js","sourceRoot":"","sources":["../../src/no-theater-available.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,IAAI,EAIJ,GAAG,GACJ,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGrD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,UAAU;IAA7C;;QACuB,eAAU,GAAY,EAAE,CAAC;IAwEvD,CAAC;IAtEC,UAAU;QACR,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAsB,qBAAqB,EAAE;YAC1D,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;SACzB,CAAC,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,OAAuB;QAC7B,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;YAC7B,IAAI,CAAC,UAAU,EAAE,CAAC;SACnB;IACH,CAAC;IAED,IAAI,WAAW;QACb,OAAO,aAAa,IAAI,CAAC,UAAU,EAAE,CAAC;IACxC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;;;;;;;;kBASG,IAAI,CAAC,WAAW;;KAE7B,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,MAAM;QACf,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkCT,CAAC;IACJ,CAAC;CACF,CAAA;AAxE6B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAA0B;AAD1C,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAyEhC","sourcesContent":["import {\n LitElement,\n html,\n TemplateResult,\n PropertyValues,\n CSSResult,\n css,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\n@customElement('ia-no-theater-available')\nexport class IANoTheaterAvailable extends LitElement {\n @property({ type: String }) identifier?: string = '';\n\n emitLoaded(): void {\n this.dispatchEvent(\n new CustomEvent<{ loaded: boolean }>('loadingStateUpdated', {\n detail: { loaded: true },\n }),\n );\n }\n\n updated(changed: PropertyValues): void {\n if (changed.has('identifier')) {\n this.emitLoaded();\n }\n }\n\n get downloadUrl(): string {\n return `/download/${this.identifier}`;\n }\n\n render(): TemplateResult {\n return html`\n <section>\n <h2>THERE IS NO PREVIEW AVAILABLE FOR THIS ITEM</h2>\n <p>\n This item does not appear to have any files that can be experienced on\n Archive.org. <br />\n Please download files in this item to interact with them on your\n computer.\n </p>\n <a href=${this.downloadUrl}>Show all files</a>\n </section>\n `;\n }\n\n static get styles(): CSSResult {\n return css`\n :host {\n color: var(--primaryTextColor, #fff);\n text-align: center;\n }\n section {\n width: 100%;\n margin: 5%;\n padding: 0 5%;\n }\n p {\n font-size: 1.4rem;\n }\n a {\n color: var(--primaryTextColor, #fff);\n background-color: rgb(25, 72, 128);\n min-height: 35px;\n outline: none;\n cursor: pointer;\n line-height: normal;\n border-radius: 0.4rem;\n text-align: center;\n vertical-align: middle;\n font-size: 1.4rem;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n display: inline-block;\n padding: 0.85rem 1.2rem;\n border: 1px solid rgb(197, 209, 223);\n white-space: nowrap;\n appearance: auto;\n box-sizing: border-box;\n user-select: none;\n text-decoration: none;\n }\n `;\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
import '../src/item-navigator';
|
1
|
+
import '../src/item-navigator';
|