@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,40 +1,40 @@
1
- import { MenuProviderInterface, MenuShortcutInterface, MenuId } from './menu-interfaces';
2
- /** Toggles Menu && Sets open panel */
3
- export interface ToggleSideMenuOpenEvent extends CustomEvent {
4
- type: 'updateSideMenu';
5
- detail: {
6
- menuId: MenuId | undefined | '';
7
- action: 'open' | 'toggle' | '';
8
- };
9
- }
10
- /** Sets open panel */
11
- export interface ToggleSidePanelOpenEvent extends CustomEvent {
12
- type: 'menuTypeSelected';
13
- detail: {
14
- id: MenuId | '';
15
- };
16
- }
17
- /** Sets menu order that is displayed */
18
- export interface SetSideMenuContentsEvent extends CustomEvent {
19
- type: 'menuUpdated';
20
- detail: MenuProviderInterface[];
21
- }
22
- /** Sets menu shortcuts that is displayed */
23
- export interface SetSideMenuShortcutsEvent extends CustomEvent {
24
- type: 'menuUpdated';
25
- detail: MenuShortcutInterface[];
26
- }
27
- /** Toggles fullscreen mode */
28
- export interface ManageFullscreenEvent extends CustomEvent {
29
- type: 'ViewportInFullScreen';
30
- detail: {
31
- isFullScreen: boolean;
32
- };
33
- }
34
- /** Toggles loading view */
35
- export interface loadingStateUpdatedEvent extends CustomEvent {
36
- type: 'loadingStateUpdated';
37
- detail: {
38
- loaded: boolean;
39
- };
40
- }
1
+ import { MenuProviderInterface, MenuShortcutInterface, MenuId } from './menu-interfaces';
2
+ /** Toggles Menu && Sets open panel */
3
+ export interface ToggleSideMenuOpenEvent extends CustomEvent {
4
+ type: 'updateSideMenu';
5
+ detail: {
6
+ menuId: MenuId | undefined | '';
7
+ action: 'open' | 'toggle' | '';
8
+ };
9
+ }
10
+ /** Sets open panel */
11
+ export interface ToggleSidePanelOpenEvent extends CustomEvent {
12
+ type: 'menuTypeSelected';
13
+ detail: {
14
+ id: MenuId | '';
15
+ };
16
+ }
17
+ /** Sets menu order that is displayed */
18
+ export interface SetSideMenuContentsEvent extends CustomEvent {
19
+ type: 'menuUpdated';
20
+ detail: MenuProviderInterface[];
21
+ }
22
+ /** Sets menu shortcuts that is displayed */
23
+ export interface SetSideMenuShortcutsEvent extends CustomEvent {
24
+ type: 'menuUpdated';
25
+ detail: MenuShortcutInterface[];
26
+ }
27
+ /** Toggles fullscreen mode */
28
+ export interface ManageFullscreenEvent extends CustomEvent {
29
+ type: 'ViewportInFullScreen';
30
+ detail: {
31
+ isFullScreen: boolean;
32
+ };
33
+ }
34
+ /** Toggles loading view */
35
+ export interface loadingStateUpdatedEvent extends CustomEvent {
36
+ type: 'loadingStateUpdated';
37
+ detail: {
38
+ loaded: boolean;
39
+ };
40
+ }
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=event-interfaces.js.map
@@ -1,22 +1,22 @@
1
- import { TemplateResult } from 'lit';
2
- import { MetadataResponse } from '@internetarchive/search-service';
3
- export declare type MenuId = string;
4
- export interface MenuShortcutInterface {
5
- icon: TemplateResult;
6
- id: MenuId;
7
- }
8
- export interface MenuDetailsInterface extends MenuShortcutInterface {
9
- label: string;
10
- menuDetails?: TemplateResult;
11
- selected?: boolean;
12
- followable?: boolean;
13
- href?: string;
14
- }
15
- export interface MenuProviderBaseConfigInterface {
16
- item: MetadataResponse;
17
- baseHost: string;
18
- subPrefix: string;
19
- updated?: any;
20
- }
21
- export interface MenuProviderInterface extends MenuProviderBaseConfigInterface, MenuDetailsInterface, MenuShortcutInterface {
22
- }
1
+ import { TemplateResult } from 'lit';
2
+ import { MetadataResponse } from '@internetarchive/search-service';
3
+ export declare type MenuId = string;
4
+ export interface MenuShortcutInterface {
5
+ icon: TemplateResult;
6
+ id: MenuId;
7
+ }
8
+ export interface MenuDetailsInterface extends MenuShortcutInterface {
9
+ label: string;
10
+ menuDetails?: TemplateResult;
11
+ selected?: boolean;
12
+ followable?: boolean;
13
+ href?: string;
14
+ }
15
+ export interface MenuProviderBaseConfigInterface {
16
+ item: MetadataResponse;
17
+ baseHost: string;
18
+ subPrefix: string;
19
+ updated?: any;
20
+ }
21
+ export interface MenuProviderInterface extends MenuProviderBaseConfigInterface, MenuDetailsInterface, MenuShortcutInterface {
22
+ }
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=menu-interfaces.js.map
@@ -1,69 +1,69 @@
1
- import { LitElement, PropertyValues, CSSResult, TemplateResult, nothing } from 'lit';
2
- import { MetadataResponse } from '@internetarchive/search-service';
3
- import { SharedResizeObserver, SharedResizeObserverResizeHandlerInterface } from '@internetarchive/shared-resize-observer';
4
- import { ModalManager } from '@internetarchive/modal-manager';
5
- import '@internetarchive/icon-ellipses/icon-ellipses';
6
- import './menu-slider/ia-menu-slider';
7
- import './loader';
8
- import { ToggleSideMenuOpenEvent, ToggleSidePanelOpenEvent, SetSideMenuContentsEvent, SetSideMenuShortcutsEvent, loadingStateUpdatedEvent, ManageFullscreenEvent } from './interfaces/event-interfaces';
9
- import { MenuProviderInterface, MenuShortcutInterface, MenuId } from './interfaces/menu-interfaces';
10
- import './no-theater-available';
11
- export declare class ItemNavigator extends LitElement implements SharedResizeObserverResizeHandlerInterface {
12
- item?: MetadataResponse;
13
- viewAvailable: Boolean;
14
- baseHost: string;
15
- signedIn: boolean;
16
- menuContents: MenuProviderInterface[];
17
- menuShortcuts: MenuShortcutInterface[];
18
- viewportInFullscreen: boolean | null;
19
- menuOpened: boolean;
20
- openMenu?: MenuId;
21
- modal?: ModalManager;
22
- sharedObserver?: SharedResizeObserver;
23
- loaded: true | null;
24
- openMenuState: 'overlay' | 'shift';
25
- private frame;
26
- private headerSlot;
27
- private mainSlot;
28
- disconnectedCallback(): void;
29
- updated(changed: PropertyValues): void;
30
- /** Shared observer */
31
- handleResize(entry: ResizeObserverEntry): void;
32
- private setResizeObserver;
33
- private removeResizeObserver;
34
- get resizeObserverConfig(): {
35
- handler: SharedResizeObserverResizeHandlerInterface;
36
- target: Element;
37
- };
38
- /** End shared observer */
39
- get loaderTitle(): "" | "Internet Archive";
40
- get loadingArea(): TemplateResult<1>;
41
- slotChange(e: Event, type: 'header' | 'main'): void;
42
- render(): TemplateResult;
43
- get noTheaterView(): TemplateResult<1>;
44
- get renderViewport(): TemplateResult | typeof nothing;
45
- loadingStateUpdated(e: loadingStateUpdatedEvent): void;
46
- /** Fullscreen Management */
47
- manageViewportFullscreen(e: ManageFullscreenEvent): void;
48
- /** End Fullscreen Management */
49
- /** Side menu */
50
- get shouldRenderMenu(): boolean;
51
- toggleMenu(): void;
52
- closeMenu(): void;
53
- setOpenMenu(e: ToggleSidePanelOpenEvent): void;
54
- setMenuContents(e: SetSideMenuContentsEvent): void;
55
- setMenuShortcuts(e: SetSideMenuShortcutsEvent): void;
56
- /** Toggles Side Menu & Sets viewable subpanel */
57
- manageSideMenuEvents(e: ToggleSideMenuOpenEvent): void;
58
- get menuToggleButton(): TemplateResult<1>;
59
- get selectedMenuId(): MenuId | '';
60
- get renderSideMenu(): TemplateResult;
61
- /** End Side menu */
62
- /** Menu Shortcuts */
63
- openShortcut(selectedMenuId?: MenuId): void;
64
- get shortcuts(): TemplateResult;
65
- /** End Menu Shortcuts */
66
- /** Misc Render */
67
- get menuClass(): string;
68
- static get styles(): CSSResult;
69
- }
1
+ import { LitElement, PropertyValues, CSSResult, TemplateResult, nothing } from 'lit';
2
+ import { MetadataResponse } from '@internetarchive/search-service';
3
+ import { SharedResizeObserver, SharedResizeObserverResizeHandlerInterface } from '@internetarchive/shared-resize-observer';
4
+ import { ModalManager } from '@internetarchive/modal-manager';
5
+ import '@internetarchive/icon-ellipses/icon-ellipses';
6
+ import './menu-slider/ia-menu-slider';
7
+ import './loader';
8
+ import { ToggleSideMenuOpenEvent, ToggleSidePanelOpenEvent, SetSideMenuContentsEvent, SetSideMenuShortcutsEvent, loadingStateUpdatedEvent, ManageFullscreenEvent } from './interfaces/event-interfaces';
9
+ import { MenuProviderInterface, MenuShortcutInterface, MenuId } from './interfaces/menu-interfaces';
10
+ import './no-theater-available';
11
+ export declare class ItemNavigator extends LitElement implements SharedResizeObserverResizeHandlerInterface {
12
+ item?: MetadataResponse;
13
+ viewAvailable: Boolean;
14
+ baseHost: string;
15
+ signedIn: boolean;
16
+ menuContents: MenuProviderInterface[];
17
+ menuShortcuts: MenuShortcutInterface[];
18
+ viewportInFullscreen: boolean | null;
19
+ menuOpened: boolean;
20
+ openMenu?: MenuId;
21
+ modal?: ModalManager;
22
+ sharedObserver?: SharedResizeObserver;
23
+ loaded: true | null;
24
+ openMenuState: 'overlay' | 'shift';
25
+ private frame;
26
+ private headerSlot;
27
+ private mainSlot;
28
+ disconnectedCallback(): void;
29
+ updated(changed: PropertyValues): void;
30
+ /** Shared observer */
31
+ handleResize(entry: ResizeObserverEntry): void;
32
+ private setResizeObserver;
33
+ private removeResizeObserver;
34
+ get resizeObserverConfig(): {
35
+ handler: SharedResizeObserverResizeHandlerInterface;
36
+ target: Element;
37
+ };
38
+ /** End shared observer */
39
+ get loaderTitle(): "" | "Internet Archive";
40
+ get loadingArea(): TemplateResult<1>;
41
+ slotChange(e: Event, type: 'header' | 'main'): void;
42
+ render(): TemplateResult;
43
+ get noTheaterView(): TemplateResult<1>;
44
+ get renderViewport(): TemplateResult | typeof nothing;
45
+ loadingStateUpdated(e: loadingStateUpdatedEvent): void;
46
+ /** Fullscreen Management */
47
+ manageViewportFullscreen(e: ManageFullscreenEvent): void;
48
+ /** End Fullscreen Management */
49
+ /** Side menu */
50
+ get shouldRenderMenu(): boolean;
51
+ toggleMenu(): void;
52
+ closeMenu(): void;
53
+ setOpenMenu(e: ToggleSidePanelOpenEvent): void;
54
+ setMenuContents(e: SetSideMenuContentsEvent): void;
55
+ setMenuShortcuts(e: SetSideMenuShortcutsEvent): void;
56
+ /** Toggles Side Menu & Sets viewable subpanel */
57
+ manageSideMenuEvents(e: ToggleSideMenuOpenEvent): void;
58
+ get menuToggleButton(): TemplateResult<1>;
59
+ get selectedMenuId(): MenuId | '';
60
+ get renderSideMenu(): TemplateResult;
61
+ /** End Side menu */
62
+ /** Menu Shortcuts */
63
+ openShortcut(selectedMenuId?: MenuId): void;
64
+ get shortcuts(): TemplateResult;
65
+ /** End Menu Shortcuts */
66
+ /** Misc Render */
67
+ get menuClass(): string;
68
+ static get styles(): CSSResult;
69
+ }