@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.
Files changed (33) hide show
  1. package/dist/demo/app-root.d.ts +47 -47
  2. package/dist/demo/app-root.js +199 -199
  3. package/dist/index.d.ts +3 -3
  4. package/dist/index.js +3 -3
  5. package/dist/src/interfaces/custom-theater-interface.d.ts +20 -20
  6. package/dist/src/interfaces/custom-theater-interface.js +1 -1
  7. package/dist/src/interfaces/event-interfaces.d.ts +40 -40
  8. package/dist/src/interfaces/event-interfaces.js +1 -1
  9. package/dist/src/interfaces/menu-interfaces.d.ts +22 -22
  10. package/dist/src/interfaces/menu-interfaces.js +1 -1
  11. package/dist/src/item-navigator.d.ts +69 -69
  12. package/dist/src/item-navigator.js +256 -256
  13. package/dist/src/loader.d.ts +13 -13
  14. package/dist/src/loader.js +31 -31
  15. package/dist/src/menu-slider/ia-menu-slider.d.ts +30 -30
  16. package/dist/src/menu-slider/ia-menu-slider.js +112 -112
  17. package/dist/src/menu-slider/menu-button.d.ts +19 -19
  18. package/dist/src/menu-slider/menu-button.js +75 -75
  19. package/dist/src/menu-slider/styles/menu-button.d.ts +2 -2
  20. package/dist/src/menu-slider/styles/menu-button.js +2 -2
  21. package/dist/src/menu-slider/styles/menu-slider.d.ts +2 -2
  22. package/dist/src/menu-slider/styles/menu-slider.js +9 -20
  23. package/dist/src/menu-slider/styles/menu-slider.js.map +1 -1
  24. package/dist/src/no-theater-available.d.ts +9 -9
  25. package/dist/src/no-theater-available.js +35 -35
  26. package/dist/test/ia-item-navigator.test.d.ts +1 -1
  27. package/dist/test/ia-item-navigator.test.js +296 -296
  28. package/dist/test/ia-stub.d.ts +22 -22
  29. package/dist/test/ia-stub.js +34 -34
  30. package/dist/test/no-theater-available.test.d.ts +1 -1
  31. package/dist/test/no-theater-available.test.js +22 -22
  32. package/package.json +1 -1
  33. 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';