@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,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 '@internetarchive/ia-menu-slider';
5
- import { ModalManager } from '@internetarchive/modal-manager';
6
- import '@internetarchive/icon-ellipses/icon-ellipses';
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
+ }