@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.
- package/dist/demo/app-root.d.ts +47 -47
- package/dist/demo/app-root.js +199 -199
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- 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 +22 -22
- package/dist/src/interfaces/menu-interfaces.js +1 -1
- package/dist/src/item-navigator.d.ts +69 -69
- package/dist/src/item-navigator.js +256 -256
- package/dist/src/item-navigator.js.map +1 -1
- package/dist/src/loader.d.ts +13 -13
- package/dist/src/loader.js +31 -31
- package/dist/src/menu-slider/ia-menu-slider.d.ts +30 -0
- package/dist/src/menu-slider/ia-menu-slider.js +160 -0
- package/dist/src/menu-slider/ia-menu-slider.js.map +1 -0
- package/dist/src/menu-slider/menu-button.d.ts +19 -0
- package/dist/src/menu-slider/menu-button.js +91 -0
- package/dist/src/menu-slider/menu-button.js.map +1 -0
- package/dist/src/menu-slider/styles/menu-button.d.ts +2 -0
- package/dist/src/menu-slider/styles/menu-button.js +79 -0
- package/dist/src/menu-slider/styles/menu-button.js.map +1 -0
- package/dist/src/menu-slider/styles/menu-slider.d.ts +2 -0
- package/dist/src/menu-slider/styles/menu-slider.js +118 -0
- package/dist/src/menu-slider/styles/menu-slider.js.map +1 -0
- package/dist/src/no-theater-available.d.ts +9 -9
- package/dist/src/no-theater-available.js +35 -35
- 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-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/index.ts +2 -0
- package/package.json +3 -3
- package/src/item-navigator.ts +2 -2
- package/src/menu-slider/ia-menu-slider.ts +161 -0
- package/src/menu-slider/menu-button.ts +80 -0
- package/src/menu-slider/styles/menu-button.ts +79 -0
- package/src/menu-slider/styles/menu-slider.ts +119 -0
- package/test/ia-menu-slider.test.js +273 -0
- package/dist/src/event-interfaces.d.ts +0 -37
- package/dist/src/event-interfaces.js +0 -2
- package/dist/src/event-interfaces.js.map +0 -1
- package/dist/src/grouped-files-provider.d.ts +0 -0
- package/dist/src/grouped-files-provider.js +0 -2
- package/dist/src/grouped-files-provider.js.map +0 -1
- package/dist/src/interfaces/nav-controller-interface.d.ts +0 -20
- package/dist/src/interfaces/nav-controller-interface.js +0 -2
- package/dist/src/interfaces/nav-controller-interface.js.map +0 -1
- package/dist/src/item-inspector/files-by-type/files-by-type-provider.d.ts +0 -14
- package/dist/src/item-inspector/files-by-type/files-by-type-provider.js +0 -29
- package/dist/src/item-inspector/files-by-type/files-by-type-provider.js.map +0 -1
- package/dist/src/item-inspector/files-by-type/ia-files-by-type.d.ts +0 -16
- package/dist/src/item-inspector/files-by-type/ia-files-by-type.js +0 -95
- package/dist/src/item-inspector/files-by-type/ia-files-by-type.js.map +0 -1
- package/dist/src/item-inspector/files-by-type/ia-grouped-files-by-type.d.ts +0 -0
- package/dist/src/item-inspector/files-by-type/ia-grouped-files-by-type.js +0 -2
- package/dist/src/item-inspector/files-by-type/ia-grouped-files-by-type.js.map +0 -1
- package/dist/src/item-inspector/grouped-files/files-by-type-provider.d.ts +0 -15
- package/dist/src/item-inspector/grouped-files/files-by-type-provider.js +0 -33
- package/dist/src/item-inspector/grouped-files/files-by-type-provider.js.map +0 -1
- package/dist/src/item-inspector/grouped-files/grouped-files-provider.d.ts +0 -15
- package/dist/src/item-inspector/grouped-files/grouped-files-provider.js +0 -33
- package/dist/src/item-inspector/grouped-files/grouped-files-provider.js.map +0 -1
- package/dist/src/item-inspector/grouped-files/ia-grouped-files-by-type.d.ts +0 -0
- package/dist/src/item-inspector/grouped-files/ia-grouped-files-by-type.js +0 -2
- package/dist/src/item-inspector/grouped-files/ia-grouped-files-by-type.js.map +0 -1
- package/dist/src/item-inspector/grouped-files/ia-grouped-files.d.ts +0 -0
- package/dist/src/item-inspector/grouped-files/ia-grouped-files.js +0 -2
- package/dist/src/item-inspector/grouped-files/ia-grouped-files.js.map +0 -1
- package/dist/src/item-inspector/grouped-files-provider.d.ts +0 -15
- package/dist/src/item-inspector/grouped-files-provider.js +0 -33
- package/dist/src/item-inspector/grouped-files-provider.js.map +0 -1
- package/dist/src/item-inspector/item-inspector.d.ts +0 -0
- package/dist/src/item-inspector/item-inspector.js +0 -254
- package/dist/src/item-inspector/item-inspector.js.map +0 -1
- package/dist/src/item-inspector/share-provider.d.ts +0 -15
- package/dist/src/item-inspector/share-provider.js +0 -35
- package/dist/src/item-inspector/share-provider.js.map +0 -1
- package/dist/src/item-inspector/visual-mod-provider.d.ts +0 -19
- package/dist/src/item-inspector/visual-mod-provider.js +0 -46
- package/dist/src/item-inspector/visual-mod-provider.js.map +0 -1
- package/dist/src/item-inspector.d.ts +0 -24
- package/dist/src/item-inspector.js +0 -92
- package/dist/src/item-inspector.js.map +0 -1
- package/dist/src/menu-interfaces.d.ts +0 -16
- package/dist/src/menu-interfaces.js +0 -2
- package/dist/src/menu-interfaces.js.map +0 -1
- package/dist/src/nav-controller-interface.d.ts +0 -9
- package/dist/src/nav-controller-interface.js +0 -2
- package/dist/src/nav-controller-interface.js.map +0 -1
- package/dist/src/your-webcomponent.d.ts +0 -8
- package/dist/src/your-webcomponent.js +0 -37
- package/dist/src/your-webcomponent.js.map +0 -1
- package/dist/test/book-nav-stub.d.ts +0 -22
- package/dist/test/book-nav-stub.js +0 -49
- package/dist/test/book-nav-stub.js.map +0 -1
- package/dist/test/ia-stub-goody.d.ts +0 -210
- package/dist/test/ia-stub-goody.js +0 -276
- package/dist/test/ia-stub-goody.js.map +0 -1
- package/dist/test/your-webcomponent.test.d.ts +0 -0
- package/dist/test/your-webcomponent.test.js +0 -33
- 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/
|
5
|
-
import
|
6
|
-
import '
|
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
|
+
}
|