@internetarchive/ia-item-navigator 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) 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 -1
  4. package/dist/index.js +3 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/src/interfaces/custom-theater-interface.d.ts +20 -20
  7. package/dist/src/interfaces/custom-theater-interface.js +1 -1
  8. package/dist/src/interfaces/event-interfaces.d.ts +40 -40
  9. package/dist/src/interfaces/event-interfaces.js +1 -1
  10. package/dist/src/interfaces/menu-interfaces.d.ts +22 -22
  11. package/dist/src/interfaces/menu-interfaces.js +1 -1
  12. package/dist/src/item-navigator.d.ts +69 -69
  13. package/dist/src/item-navigator.js +256 -256
  14. package/dist/src/item-navigator.js.map +1 -1
  15. package/dist/src/loader.d.ts +13 -13
  16. package/dist/src/loader.js +31 -31
  17. package/dist/src/menu-slider/ia-menu-slider.d.ts +30 -0
  18. package/dist/src/menu-slider/ia-menu-slider.js +160 -0
  19. package/dist/src/menu-slider/ia-menu-slider.js.map +1 -0
  20. package/dist/src/menu-slider/menu-button.d.ts +19 -0
  21. package/dist/src/menu-slider/menu-button.js +91 -0
  22. package/dist/src/menu-slider/menu-button.js.map +1 -0
  23. package/dist/src/menu-slider/styles/menu-button.d.ts +2 -0
  24. package/dist/src/menu-slider/styles/menu-button.js +79 -0
  25. package/dist/src/menu-slider/styles/menu-button.js.map +1 -0
  26. package/dist/src/menu-slider/styles/menu-slider.d.ts +2 -0
  27. package/dist/src/menu-slider/styles/menu-slider.js +118 -0
  28. package/dist/src/menu-slider/styles/menu-slider.js.map +1 -0
  29. package/dist/src/no-theater-available.d.ts +9 -9
  30. package/dist/src/no-theater-available.js +35 -35
  31. package/dist/test/ia-item-navigator.test.d.ts +1 -1
  32. package/dist/test/ia-item-navigator.test.js +296 -296
  33. package/dist/test/ia-stub.d.ts +22 -22
  34. package/dist/test/ia-stub.js +34 -34
  35. package/dist/test/no-theater-available.test.d.ts +1 -1
  36. package/dist/test/no-theater-available.test.js +22 -22
  37. package/index.ts +2 -0
  38. package/package.json +3 -3
  39. package/src/item-navigator.ts +2 -2
  40. package/src/menu-slider/ia-menu-slider.ts +161 -0
  41. package/src/menu-slider/menu-button.ts +80 -0
  42. package/src/menu-slider/styles/menu-button.ts +79 -0
  43. package/src/menu-slider/styles/menu-slider.ts +119 -0
  44. package/test/ia-menu-slider.test.js +273 -0
  45. package/dist/src/event-interfaces.d.ts +0 -37
  46. package/dist/src/event-interfaces.js +0 -2
  47. package/dist/src/event-interfaces.js.map +0 -1
  48. package/dist/src/grouped-files-provider.d.ts +0 -0
  49. package/dist/src/grouped-files-provider.js +0 -2
  50. package/dist/src/grouped-files-provider.js.map +0 -1
  51. package/dist/src/interfaces/nav-controller-interface.d.ts +0 -20
  52. package/dist/src/interfaces/nav-controller-interface.js +0 -2
  53. package/dist/src/interfaces/nav-controller-interface.js.map +0 -1
  54. package/dist/src/item-inspector/files-by-type/files-by-type-provider.d.ts +0 -14
  55. package/dist/src/item-inspector/files-by-type/files-by-type-provider.js +0 -29
  56. package/dist/src/item-inspector/files-by-type/files-by-type-provider.js.map +0 -1
  57. package/dist/src/item-inspector/files-by-type/ia-files-by-type.d.ts +0 -16
  58. package/dist/src/item-inspector/files-by-type/ia-files-by-type.js +0 -95
  59. package/dist/src/item-inspector/files-by-type/ia-files-by-type.js.map +0 -1
  60. package/dist/src/item-inspector/files-by-type/ia-grouped-files-by-type.d.ts +0 -0
  61. package/dist/src/item-inspector/files-by-type/ia-grouped-files-by-type.js +0 -2
  62. package/dist/src/item-inspector/files-by-type/ia-grouped-files-by-type.js.map +0 -1
  63. package/dist/src/item-inspector/grouped-files/files-by-type-provider.d.ts +0 -15
  64. package/dist/src/item-inspector/grouped-files/files-by-type-provider.js +0 -33
  65. package/dist/src/item-inspector/grouped-files/files-by-type-provider.js.map +0 -1
  66. package/dist/src/item-inspector/grouped-files/grouped-files-provider.d.ts +0 -15
  67. package/dist/src/item-inspector/grouped-files/grouped-files-provider.js +0 -33
  68. package/dist/src/item-inspector/grouped-files/grouped-files-provider.js.map +0 -1
  69. package/dist/src/item-inspector/grouped-files/ia-grouped-files-by-type.d.ts +0 -0
  70. package/dist/src/item-inspector/grouped-files/ia-grouped-files-by-type.js +0 -2
  71. package/dist/src/item-inspector/grouped-files/ia-grouped-files-by-type.js.map +0 -1
  72. package/dist/src/item-inspector/grouped-files/ia-grouped-files.d.ts +0 -0
  73. package/dist/src/item-inspector/grouped-files/ia-grouped-files.js +0 -2
  74. package/dist/src/item-inspector/grouped-files/ia-grouped-files.js.map +0 -1
  75. package/dist/src/item-inspector/grouped-files-provider.d.ts +0 -15
  76. package/dist/src/item-inspector/grouped-files-provider.js +0 -33
  77. package/dist/src/item-inspector/grouped-files-provider.js.map +0 -1
  78. package/dist/src/item-inspector/item-inspector.d.ts +0 -0
  79. package/dist/src/item-inspector/item-inspector.js +0 -254
  80. package/dist/src/item-inspector/item-inspector.js.map +0 -1
  81. package/dist/src/item-inspector/share-provider.d.ts +0 -15
  82. package/dist/src/item-inspector/share-provider.js +0 -35
  83. package/dist/src/item-inspector/share-provider.js.map +0 -1
  84. package/dist/src/item-inspector/visual-mod-provider.d.ts +0 -19
  85. package/dist/src/item-inspector/visual-mod-provider.js +0 -46
  86. package/dist/src/item-inspector/visual-mod-provider.js.map +0 -1
  87. package/dist/src/item-inspector.d.ts +0 -24
  88. package/dist/src/item-inspector.js +0 -92
  89. package/dist/src/item-inspector.js.map +0 -1
  90. package/dist/src/menu-interfaces.d.ts +0 -16
  91. package/dist/src/menu-interfaces.js +0 -2
  92. package/dist/src/menu-interfaces.js.map +0 -1
  93. package/dist/src/nav-controller-interface.d.ts +0 -9
  94. package/dist/src/nav-controller-interface.js +0 -2
  95. package/dist/src/nav-controller-interface.js.map +0 -1
  96. package/dist/src/your-webcomponent.d.ts +0 -8
  97. package/dist/src/your-webcomponent.js +0 -37
  98. package/dist/src/your-webcomponent.js.map +0 -1
  99. package/dist/test/book-nav-stub.d.ts +0 -22
  100. package/dist/test/book-nav-stub.js +0 -49
  101. package/dist/test/book-nav-stub.js.map +0 -1
  102. package/dist/test/ia-stub-goody.d.ts +0 -210
  103. package/dist/test/ia-stub-goody.js +0 -276
  104. package/dist/test/ia-stub-goody.js.map +0 -1
  105. package/dist/test/your-webcomponent.test.d.ts +0 -0
  106. package/dist/test/your-webcomponent.test.js +0 -33
  107. package/dist/test/your-webcomponent.test.js.map +0 -1
@@ -1,92 +1,92 @@
1
- import { __decorate } from "tslib";
2
- import { css, html, LitElement, nothing, } from 'lit';
3
- import { customElement, property, state, query } from 'lit/decorators.js';
4
- import { MetadataResponse } from '@internetarchive/search-service';
5
- import '@internetarchive/ia-menu-slider';
6
- import '@internetarchive/icon-ellipses/icon-ellipses';
7
- import './loader';
8
- import './no-theater-available';
9
- let ItemNavigator = class ItemNavigator extends LitElement {
10
- constructor() {
11
- super(...arguments);
12
- this.viewAvailable = true;
13
- this.baseHost = 'archive.org';
14
- this.signedIn = false;
15
- this.menuContents = [];
16
- this.menuShortcuts = [];
17
- this.viewportInFullscreen = null;
18
- this.menuOpened = false;
19
- this.loaded = null;
20
- this.openMenuState = 'shift';
21
- }
22
- disconnectedCallback() {
23
- this.removeResizeObserver();
24
- }
25
- updated(changed) {
26
- if (changed.has('sharedObserver')) {
27
- const oldObserver = changed.get('sharedObserver');
28
- oldObserver === null || oldObserver === void 0 ? void 0 : oldObserver.removeObserver(this.resizeObserverConfig);
29
- this.setResizeObserver();
30
- }
31
- }
32
- /** Shared observer */
33
- handleResize(entry) {
34
- const { width } = entry.contentRect;
35
- if (width <= 600) {
36
- this.openMenuState = 'overlay';
37
- return;
38
- }
39
- this.openMenuState = 'shift';
40
- }
41
- setResizeObserver() {
42
- var _a, _b;
43
- (_a = this.sharedObserver) === null || _a === void 0 ? void 0 : _a.addObserver(this.resizeObserverConfig);
44
- (_b = this.sharedObserver) === null || _b === void 0 ? void 0 : _b.addObserver({
45
- target: this.headerSlot,
46
- handler: {
47
- handleResize: ({ contentRect }) => {
48
- if (contentRect.height) {
49
- this.requestUpdate();
50
- }
51
- },
52
- },
53
- });
54
- }
55
- removeResizeObserver() {
56
- var _a;
57
- (_a = this.sharedObserver) === null || _a === void 0 ? void 0 : _a.removeObserver(this.resizeObserverConfig);
58
- }
59
- get resizeObserverConfig() {
60
- return {
61
- handler: this,
62
- target: this.frame,
63
- };
64
- }
65
- /** End shared observer */
66
- get loaderTitle() {
67
- return this.viewportInFullscreen ? 'Internet Archive' : '';
68
- }
69
- get loadingArea() {
1
+ import { __decorate } from "tslib";
2
+ import { css, html, LitElement, nothing, } from 'lit';
3
+ import { customElement, property, state, query } from 'lit/decorators.js';
4
+ import { MetadataResponse } from '@internetarchive/search-service';
5
+ import '@internetarchive/icon-ellipses/icon-ellipses';
6
+ import './menu-slider/ia-menu-slider';
7
+ import './loader';
8
+ import './no-theater-available';
9
+ let ItemNavigator = class ItemNavigator extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.viewAvailable = true;
13
+ this.baseHost = 'archive.org';
14
+ this.signedIn = false;
15
+ this.menuContents = [];
16
+ this.menuShortcuts = [];
17
+ this.viewportInFullscreen = null;
18
+ this.menuOpened = false;
19
+ this.loaded = null;
20
+ this.openMenuState = 'shift';
21
+ }
22
+ disconnectedCallback() {
23
+ this.removeResizeObserver();
24
+ }
25
+ updated(changed) {
26
+ if (changed.has('sharedObserver')) {
27
+ const oldObserver = changed.get('sharedObserver');
28
+ oldObserver === null || oldObserver === void 0 ? void 0 : oldObserver.removeObserver(this.resizeObserverConfig);
29
+ this.setResizeObserver();
30
+ }
31
+ }
32
+ /** Shared observer */
33
+ handleResize(entry) {
34
+ const { width } = entry.contentRect;
35
+ if (width <= 600) {
36
+ this.openMenuState = 'overlay';
37
+ return;
38
+ }
39
+ this.openMenuState = 'shift';
40
+ }
41
+ setResizeObserver() {
42
+ var _a, _b;
43
+ (_a = this.sharedObserver) === null || _a === void 0 ? void 0 : _a.addObserver(this.resizeObserverConfig);
44
+ (_b = this.sharedObserver) === null || _b === void 0 ? void 0 : _b.addObserver({
45
+ target: this.headerSlot,
46
+ handler: {
47
+ handleResize: ({ contentRect }) => {
48
+ if (contentRect.height) {
49
+ this.requestUpdate();
50
+ }
51
+ },
52
+ },
53
+ });
54
+ }
55
+ removeResizeObserver() {
56
+ var _a;
57
+ (_a = this.sharedObserver) === null || _a === void 0 ? void 0 : _a.removeObserver(this.resizeObserverConfig);
58
+ }
59
+ get resizeObserverConfig() {
60
+ return {
61
+ handler: this,
62
+ target: this.frame,
63
+ };
64
+ }
65
+ /** End shared observer */
66
+ get loaderTitle() {
67
+ return this.viewportInFullscreen ? 'Internet Archive' : '';
68
+ }
69
+ get loadingArea() {
70
70
  return html `
71
71
  <div class="loading-area">
72
72
  <div class="loading-view">
73
73
  <ia-itemnav-loader .title=${this.loaderTitle}></ia-itemnav-loader>
74
74
  </div>
75
75
  </div>
76
- `;
77
- }
78
- slotChange(e, type) {
79
- var _a;
80
- const slottedContent = (_a = e.target.assignedNodes()) === null || _a === void 0 ? void 0 : _a[0];
81
- this.dispatchEvent(new CustomEvent('slotChange', {
82
- detail: { slot: slottedContent, type },
83
- }));
84
- this.requestUpdate();
85
- }
86
- render() {
87
- var _a, _b;
88
- const displayReaderClass = this.loaded ? '' : 'hidden';
89
- const headerHeight = ((_b = (_a = this.headerSlot) === null || _a === void 0 ? void 0 : _a.assignedNodes()[0]) === null || _b === void 0 ? void 0 : _b.offsetHeight) || 0;
76
+ `;
77
+ }
78
+ slotChange(e, type) {
79
+ var _a;
80
+ const slottedContent = (_a = e.target.assignedNodes()) === null || _a === void 0 ? void 0 : _a[0];
81
+ this.dispatchEvent(new CustomEvent('slotChange', {
82
+ detail: { slot: slottedContent, type },
83
+ }));
84
+ this.requestUpdate();
85
+ }
86
+ render() {
87
+ var _a, _b;
88
+ const displayReaderClass = this.loaded ? '' : 'hidden';
89
+ const headerHeight = ((_b = (_a = this.headerSlot) === null || _a === void 0 ? void 0 : _a.assignedNodes()[0]) === null || _b === void 0 ? void 0 : _b.offsetHeight) || 0;
90
90
  return html `
91
91
  <div id="frame" class=${this.menuClass}>
92
92
  <slot
@@ -102,20 +102,20 @@ let ItemNavigator = class ItemNavigator extends LitElement {
102
102
  ${!this.loaded ? this.loadingArea : nothing}
103
103
  </div>
104
104
  </div>
105
- `;
106
- }
107
- get noTheaterView() {
108
- var _a, _b;
105
+ `;
106
+ }
107
+ get noTheaterView() {
108
+ var _a, _b;
109
109
  return html `<ia-no-theater-available
110
110
  .identifier=${(_b = (_a = this.item) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.identifier}
111
111
  @loadingStateUpdated=${this.loadingStateUpdated}
112
- ></ia-no-theater-available>`;
113
- }
114
- get renderViewport() {
115
- if (!this.viewAvailable) {
116
- return this.noTheaterView;
117
- }
118
- const slotVisibility = !this.loaded ? 'opacity: 0;' : 'opacity: 1;';
112
+ ></ia-no-theater-available>`;
113
+ }
114
+ get renderViewport() {
115
+ if (!this.viewAvailable) {
116
+ return this.noTheaterView;
117
+ }
118
+ const slotVisibility = !this.loaded ? 'opacity: 0;' : 'opacity: 1;';
119
119
  return html `
120
120
  <div slot="main" style=${slotVisibility}>
121
121
  <slot
@@ -123,59 +123,59 @@ let ItemNavigator = class ItemNavigator extends LitElement {
123
123
  @slotchange=${(e) => this.slotChange(e, 'main')}
124
124
  ></slot>
125
125
  </div>
126
- `;
127
- }
128
- loadingStateUpdated(e) {
129
- const { loaded } = e.detail;
130
- this.loaded = loaded || null;
131
- }
132
- /** Fullscreen Management */
133
- manageViewportFullscreen(e) {
134
- const fullscreenStatus = !!e.detail.isFullScreen;
135
- this.viewportInFullscreen = !fullscreenStatus ? null : fullscreenStatus;
136
- const event = new CustomEvent('fullscreenToggled', {
137
- detail: e.detail,
138
- });
139
- this.dispatchEvent(event);
140
- }
141
- /** End Fullscreen Management */
142
- /** Side menu */
143
- get shouldRenderMenu() {
144
- var _a;
145
- return !!((_a = this.menuContents) === null || _a === void 0 ? void 0 : _a.length);
146
- }
147
- toggleMenu() {
148
- this.menuOpened = !this.menuOpened;
149
- }
150
- closeMenu() {
151
- this.menuOpened = false;
152
- }
153
- setOpenMenu(e) {
154
- const { id } = e.detail;
155
- this.openMenu = id !== this.openMenu ? id : undefined;
156
- }
157
- setMenuContents(e) {
158
- const updatedContents = [...e.detail];
159
- this.menuContents = updatedContents;
160
- }
161
- setMenuShortcuts(e) {
162
- this.menuShortcuts = [...e.detail];
163
- }
164
- /** Toggles Side Menu & Sets viewable subpanel */
165
- manageSideMenuEvents(e) {
166
- const { menuId, action } = e.detail;
167
- if (!menuId) {
168
- return;
169
- }
170
- if (action === 'open') {
171
- this.openShortcut(menuId);
172
- }
173
- else if (action === 'toggle') {
174
- this.openMenu = menuId;
175
- this.toggleMenu();
176
- }
177
- }
178
- get menuToggleButton() {
126
+ `;
127
+ }
128
+ loadingStateUpdated(e) {
129
+ const { loaded } = e.detail;
130
+ this.loaded = loaded || null;
131
+ }
132
+ /** Fullscreen Management */
133
+ manageViewportFullscreen(e) {
134
+ const fullscreenStatus = !!e.detail.isFullScreen;
135
+ this.viewportInFullscreen = !fullscreenStatus ? null : fullscreenStatus;
136
+ const event = new CustomEvent('fullscreenToggled', {
137
+ detail: e.detail,
138
+ });
139
+ this.dispatchEvent(event);
140
+ }
141
+ /** End Fullscreen Management */
142
+ /** Side menu */
143
+ get shouldRenderMenu() {
144
+ var _a;
145
+ return !!((_a = this.menuContents) === null || _a === void 0 ? void 0 : _a.length);
146
+ }
147
+ toggleMenu() {
148
+ this.menuOpened = !this.menuOpened;
149
+ }
150
+ closeMenu() {
151
+ this.menuOpened = false;
152
+ }
153
+ setOpenMenu(e) {
154
+ const { id } = e.detail;
155
+ this.openMenu = id !== this.openMenu ? id : undefined;
156
+ }
157
+ setMenuContents(e) {
158
+ const updatedContents = [...e.detail];
159
+ this.menuContents = updatedContents;
160
+ }
161
+ setMenuShortcuts(e) {
162
+ this.menuShortcuts = [...e.detail];
163
+ }
164
+ /** Toggles Side Menu & Sets viewable subpanel */
165
+ manageSideMenuEvents(e) {
166
+ const { menuId, action } = e.detail;
167
+ if (!menuId) {
168
+ return;
169
+ }
170
+ if (action === 'open') {
171
+ this.openShortcut(menuId);
172
+ }
173
+ else if (action === 'toggle') {
174
+ this.openMenu = menuId;
175
+ this.toggleMenu();
176
+ }
177
+ }
178
+ get menuToggleButton() {
179
179
  return html `
180
180
  <button
181
181
  class="toggle-menu"
@@ -188,13 +188,13 @@ let ItemNavigator = class ItemNavigator extends LitElement {
188
188
  ></ia-icon-ellipses>
189
189
  </div>
190
190
  </button>
191
- `;
192
- }
193
- get selectedMenuId() {
194
- return this.openMenu || '';
195
- }
196
- get renderSideMenu() {
197
- const drawerState = this.menuOpened ? '' : 'hidden';
191
+ `;
192
+ }
193
+ get selectedMenuId() {
194
+ return this.openMenu || '';
195
+ }
196
+ get renderSideMenu() {
197
+ const drawerState = this.menuOpened ? '' : 'hidden';
198
198
  return html `
199
199
  <nav>
200
200
  <div class="minimized">${this.shortcuts} ${this.menuToggleButton}</div>
@@ -209,42 +209,42 @@ let ItemNavigator = class ItemNavigator extends LitElement {
209
209
  ></ia-menu-slider>
210
210
  </div>
211
211
  </nav>
212
- `;
213
- }
214
- /** End Side menu */
215
- /** Menu Shortcuts */
216
- openShortcut(selectedMenuId = '') {
217
- this.openMenu = selectedMenuId;
218
- this.menuOpened = true;
219
- }
220
- get shortcuts() {
221
- const shortcuts = this.menuShortcuts.map(({ icon, id }) => {
222
- if (id === 'fullscreen') {
223
- return html `${icon}`;
224
- }
212
+ `;
213
+ }
214
+ /** End Side menu */
215
+ /** Menu Shortcuts */
216
+ openShortcut(selectedMenuId = '') {
217
+ this.openMenu = selectedMenuId;
218
+ this.menuOpened = true;
219
+ }
220
+ get shortcuts() {
221
+ const shortcuts = this.menuShortcuts.map(({ icon, id }) => {
222
+ if (id === 'fullscreen') {
223
+ return html `${icon}`;
224
+ }
225
225
  return html `
226
226
  <button class="shortcut ${id}" @click="${() => this.openShortcut(id)}">
227
227
  ${icon}
228
228
  </button>
229
- `;
230
- });
231
- return html `<div class="shortcuts">${shortcuts}</div>`;
232
- }
233
- /** End Menu Shortcuts */
234
- /** Misc Render */
235
- get menuClass() {
236
- var _a, _b;
237
- const hasMenuOrShortcuts = ((_a = this.menuContents) === null || _a === void 0 ? void 0 : _a.length) || ((_b = this.menuShortcuts) === null || _b === void 0 ? void 0 : _b.length);
238
- const drawerState = this.menuOpened && hasMenuOrShortcuts ? 'open' : '';
239
- const fullscreenState = this.viewportInFullscreen ? 'fullscreen' : '';
240
- return `${drawerState} ${fullscreenState} ${this.openMenuState}`;
241
- }
242
- static get styles() {
243
- const subnavWidth = css `var(--menuWidth, 320px)`;
244
- const transitionTiming = css `var(--animationTiming, 200ms)`;
245
- const transitionEffect = css `transform ${transitionTiming} ease-out`;
246
- const menuMargin = css `var(--theaterMenuMargin, 42px)`;
247
- const theaterBg = css `var(--theaterBgColor, #000)`;
229
+ `;
230
+ });
231
+ return html `<div class="shortcuts">${shortcuts}</div>`;
232
+ }
233
+ /** End Menu Shortcuts */
234
+ /** Misc Render */
235
+ get menuClass() {
236
+ var _a, _b;
237
+ const hasMenuOrShortcuts = ((_a = this.menuContents) === null || _a === void 0 ? void 0 : _a.length) || ((_b = this.menuShortcuts) === null || _b === void 0 ? void 0 : _b.length);
238
+ const drawerState = this.menuOpened && hasMenuOrShortcuts ? 'open' : '';
239
+ const fullscreenState = this.viewportInFullscreen ? 'fullscreen' : '';
240
+ return `${drawerState} ${fullscreenState} ${this.openMenuState}`;
241
+ }
242
+ static get styles() {
243
+ const subnavWidth = css `var(--menuWidth, 320px)`;
244
+ const transitionTiming = css `var(--animationTiming, 200ms)`;
245
+ const transitionEffect = css `transform ${transitionTiming} ease-out`;
246
+ const menuMargin = css `var(--theaterMenuMargin, 42px)`;
247
+ const theaterBg = css `var(--theaterBgColor, #000)`;
248
248
  return css `
249
249
  :host,
250
250
  #frame,
@@ -409,74 +409,74 @@ let ItemNavigator = class ItemNavigator extends LitElement {
409
409
  margin-left: ${subnavWidth};
410
410
  transition: ${transitionEffect};
411
411
  }
412
- `;
413
- }
414
- };
415
- __decorate([
416
- property({
417
- type: Object,
418
- converter: (value) => {
419
- if (value && typeof value === 'string') {
420
- return new MetadataResponse(JSON.parse(atob(value)));
421
- }
422
- return value;
423
- },
424
- })
425
- ], ItemNavigator.prototype, "item", void 0);
426
- __decorate([
427
- property({ type: Boolean })
428
- ], ItemNavigator.prototype, "viewAvailable", void 0);
429
- __decorate([
430
- property({ type: String })
431
- ], ItemNavigator.prototype, "baseHost", void 0);
432
- __decorate([
433
- property({
434
- converter: (arg) => {
435
- if (typeof arg === 'boolean') {
436
- return arg;
437
- }
438
- return arg === 'true';
439
- },
440
- })
441
- ], ItemNavigator.prototype, "signedIn", void 0);
442
- __decorate([
443
- property({ type: Array })
444
- ], ItemNavigator.prototype, "menuContents", void 0);
445
- __decorate([
446
- property({ type: Array })
447
- ], ItemNavigator.prototype, "menuShortcuts", void 0);
448
- __decorate([
449
- property({ type: Boolean, reflect: true, attribute: true })
450
- ], ItemNavigator.prototype, "viewportInFullscreen", void 0);
451
- __decorate([
452
- property({ type: Boolean })
453
- ], ItemNavigator.prototype, "menuOpened", void 0);
454
- __decorate([
455
- property({ type: String })
456
- ], ItemNavigator.prototype, "openMenu", void 0);
457
- __decorate([
458
- property({ attribute: false })
459
- ], ItemNavigator.prototype, "modal", void 0);
460
- __decorate([
461
- property({ attribute: false })
462
- ], ItemNavigator.prototype, "sharedObserver", void 0);
463
- __decorate([
464
- property({ type: Boolean, reflect: true, attribute: true })
465
- ], ItemNavigator.prototype, "loaded", void 0);
466
- __decorate([
467
- state()
468
- ], ItemNavigator.prototype, "openMenuState", void 0);
469
- __decorate([
470
- query('#frame')
471
- ], ItemNavigator.prototype, "frame", void 0);
472
- __decorate([
473
- query('slot[name="header"]')
474
- ], ItemNavigator.prototype, "headerSlot", void 0);
475
- __decorate([
476
- query('slot[name="main"]')
477
- ], ItemNavigator.prototype, "mainSlot", void 0);
478
- ItemNavigator = __decorate([
479
- customElement('ia-item-navigator')
480
- ], ItemNavigator);
481
- export { ItemNavigator };
412
+ `;
413
+ }
414
+ };
415
+ __decorate([
416
+ property({
417
+ type: Object,
418
+ converter: (value) => {
419
+ if (value && typeof value === 'string') {
420
+ return new MetadataResponse(JSON.parse(atob(value)));
421
+ }
422
+ return value;
423
+ },
424
+ })
425
+ ], ItemNavigator.prototype, "item", void 0);
426
+ __decorate([
427
+ property({ type: Boolean })
428
+ ], ItemNavigator.prototype, "viewAvailable", void 0);
429
+ __decorate([
430
+ property({ type: String })
431
+ ], ItemNavigator.prototype, "baseHost", void 0);
432
+ __decorate([
433
+ property({
434
+ converter: (arg) => {
435
+ if (typeof arg === 'boolean') {
436
+ return arg;
437
+ }
438
+ return arg === 'true';
439
+ },
440
+ })
441
+ ], ItemNavigator.prototype, "signedIn", void 0);
442
+ __decorate([
443
+ property({ type: Array })
444
+ ], ItemNavigator.prototype, "menuContents", void 0);
445
+ __decorate([
446
+ property({ type: Array })
447
+ ], ItemNavigator.prototype, "menuShortcuts", void 0);
448
+ __decorate([
449
+ property({ type: Boolean, reflect: true, attribute: true })
450
+ ], ItemNavigator.prototype, "viewportInFullscreen", void 0);
451
+ __decorate([
452
+ property({ type: Boolean })
453
+ ], ItemNavigator.prototype, "menuOpened", void 0);
454
+ __decorate([
455
+ property({ type: String })
456
+ ], ItemNavigator.prototype, "openMenu", void 0);
457
+ __decorate([
458
+ property({ attribute: false })
459
+ ], ItemNavigator.prototype, "modal", void 0);
460
+ __decorate([
461
+ property({ attribute: false })
462
+ ], ItemNavigator.prototype, "sharedObserver", void 0);
463
+ __decorate([
464
+ property({ type: Boolean, reflect: true, attribute: true })
465
+ ], ItemNavigator.prototype, "loaded", void 0);
466
+ __decorate([
467
+ state()
468
+ ], ItemNavigator.prototype, "openMenuState", void 0);
469
+ __decorate([
470
+ query('#frame')
471
+ ], ItemNavigator.prototype, "frame", void 0);
472
+ __decorate([
473
+ query('slot[name="header"]')
474
+ ], ItemNavigator.prototype, "headerSlot", void 0);
475
+ __decorate([
476
+ query('slot[name="main"]')
477
+ ], ItemNavigator.prototype, "mainSlot", void 0);
478
+ ItemNavigator = __decorate([
479
+ customElement('ia-item-navigator')
480
+ ], ItemNavigator);
481
+ export { ItemNavigator };
482
482
  //# sourceMappingURL=item-navigator.js.map