@vue-pdf-viewer/viewer 1.1.0 → 1.1.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,8 @@ declare const _default: {
16
16
  isDark: boolean;
17
17
  onClick: () => void;
18
18
  }) => any;
19
+ iconLight: (_: {}) => any;
20
+ iconDark: (_: {}) => any;
19
21
  };
20
22
  });
21
23
  export default _default;
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  default: (_: {
16
16
  onClick: () => void;
17
17
  }) => any;
18
+ icon: (_: {}) => any;
18
19
  };
19
20
  });
20
21
  export default _default;
@@ -16,6 +16,7 @@ declare const _default: {
16
16
  onClick: () => Promise<void>;
17
17
  isSupported: boolean;
18
18
  }) => any;
19
+ icon: (_: {}) => any;
19
20
  };
20
21
  });
21
22
  export default _default;
@@ -1,10 +1,89 @@
1
1
  import { ViewerPdfPage } from './types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: {
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ rootContainer: HTMLDivElement;
5
+ textSelection: boolean;
6
+ isCancel: boolean;
7
+ pages: ViewerPdfPage[];
8
+ }>>> & {
9
+ onProgress?: ((percent: number) => any) | undefined;
10
+ onLoading?: (() => any) | undefined;
11
+ onLoaded?: (() => any) | undefined;
12
+ onRotateClockwise?: (() => any) | undefined;
13
+ onRotateCounterclockwise?: (() => any) | undefined;
14
+ onTextSelection?: ((isTextSelection: boolean) => any) | undefined;
15
+ onGotoFirstPage?: (() => any) | undefined;
16
+ onGotoLastPage?: (() => any) | undefined;
17
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ rotateClockwise: () => void;
19
+ } & {
20
+ rotateCounterclockwise: () => void;
21
+ } & {
22
+ textSelection: (isTextSelection: boolean) => void;
23
+ } & {
24
+ gotoFirstPage: () => void;
25
+ } & {
26
+ gotoLastPage: () => void;
27
+ } & {
28
+ loading: () => void;
29
+ } & {
30
+ loaded: () => void;
31
+ } & {
32
+ progress: (percent: number) => void;
33
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
34
+ rootContainer: HTMLDivElement;
35
+ textSelection: boolean;
36
+ isCancel: boolean;
37
+ pages: ViewerPdfPage[];
38
+ }>>> & {
39
+ onProgress?: ((percent: number) => any) | undefined;
40
+ onLoading?: (() => any) | undefined;
41
+ onLoaded?: (() => any) | undefined;
42
+ onRotateClockwise?: (() => any) | undefined;
43
+ onRotateCounterclockwise?: (() => any) | undefined;
44
+ onTextSelection?: ((isTextSelection: boolean) => any) | undefined;
45
+ onGotoFirstPage?: (() => any) | undefined;
46
+ onGotoLastPage?: (() => any) | undefined;
47
+ }, {}, true, {}, {}, {
48
+ P: {};
49
+ B: {};
50
+ D: {};
51
+ C: {};
52
+ M: {};
53
+ Defaults: {};
54
+ }, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
55
+ rootContainer: HTMLDivElement;
56
+ textSelection: boolean;
57
+ isCancel: boolean;
58
+ pages: ViewerPdfPage[];
59
+ }>>> & {
60
+ onProgress?: ((percent: number) => any) | undefined;
61
+ onLoading?: (() => any) | undefined;
62
+ onLoaded?: (() => any) | undefined;
63
+ onRotateClockwise?: (() => any) | undefined;
64
+ onRotateCounterclockwise?: (() => any) | undefined;
65
+ onTextSelection?: ((isTextSelection: boolean) => any) | undefined;
66
+ onGotoFirstPage?: (() => any) | undefined;
67
+ onGotoLastPage?: (() => any) | undefined;
68
+ }, {}, {}, {}, {}, {}>;
69
+ __isFragment?: undefined;
70
+ __isTeleport?: undefined;
71
+ __isSuspense?: undefined;
72
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
73
  rootContainer: HTMLDivElement;
4
74
  textSelection: boolean;
5
75
  isCancel: boolean;
6
76
  pages: ViewerPdfPage[];
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
77
+ }>>> & {
78
+ onProgress?: ((percent: number) => any) | undefined;
79
+ onLoading?: (() => any) | undefined;
80
+ onLoaded?: (() => any) | undefined;
81
+ onRotateClockwise?: (() => any) | undefined;
82
+ onRotateCounterclockwise?: (() => any) | undefined;
83
+ onTextSelection?: ((isTextSelection: boolean) => any) | undefined;
84
+ onGotoFirstPage?: (() => any) | undefined;
85
+ onGotoLastPage?: (() => any) | undefined;
86
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
87
  rotateClockwise: () => void;
9
88
  } & {
10
89
  rotateCounterclockwise: () => void;
@@ -20,21 +99,18 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
20
99
  loaded: () => void;
21
100
  } & {
22
101
  progress: (percent: number) => void;
23
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
24
- rootContainer: HTMLDivElement;
25
- textSelection: boolean;
26
- isCancel: boolean;
27
- pages: ViewerPdfPage[];
28
- }>>> & {
29
- onProgress?: ((percent: number) => any) | undefined;
30
- onLoading?: (() => any) | undefined;
31
- onLoaded?: (() => any) | undefined;
32
- onRotateClockwise?: (() => any) | undefined;
33
- onRotateCounterclockwise?: (() => any) | undefined;
34
- onTextSelection?: ((isTextSelection: boolean) => any) | undefined;
35
- onGotoFirstPage?: (() => any) | undefined;
36
- onGotoLastPage?: (() => any) | undefined;
37
- }, {}, {}>;
102
+ }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
103
+ $slots: {
104
+ icon: (_: {}) => any;
105
+ iconFirstPage: (_: {}) => any;
106
+ iconLastPage: (_: {}) => any;
107
+ iconRotateClockwise: (_: {}) => any;
108
+ iconRotateCounterClockwise: (_: {}) => any;
109
+ iconTextSelection: (_: {}) => any;
110
+ iconHandMode: (_: {}) => any;
111
+ iconDocProperties: (_: {}) => any;
112
+ };
113
+ });
38
114
  export default _default;
39
115
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
116
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  default: (_: {
16
16
  onClick: () => void;
17
17
  }) => any;
18
+ icon: (_: {}) => any;
18
19
  };
19
20
  });
20
21
  export default _default;
@@ -59,6 +59,8 @@ declare const _default: {
59
59
  onPrev: () => void;
60
60
  onChangePage: (pageNumber: number) => void;
61
61
  }) => any;
62
+ iconPrevPage: (_: {}) => any;
63
+ iconNextPage: (_: {}) => any;
62
64
  };
63
65
  });
64
66
  export default _default;
@@ -56,6 +56,7 @@ declare const _default: {
56
56
  default: (_: {
57
57
  onClick: () => Promise<void>;
58
58
  }) => any;
59
+ icon: (_: {}) => any;
59
60
  };
60
61
  });
61
62
  export default _default;
@@ -38,6 +38,7 @@ declare const _default: {
38
38
  onPrev?: ((...args: any[]) => any) | undefined;
39
39
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "next" | "prev")[], "open" | "close" | "next" | "prev", {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
40
40
  $slots: {
41
+ icon: (_: {}) => any;
41
42
  loader: (_: {}) => any;
42
43
  };
43
44
  });
@@ -44,6 +44,8 @@ declare const _default: {
44
44
  default: (_: {
45
45
  currentScale: number;
46
46
  }) => any;
47
+ iconZoomOut: (_: {}) => any;
48
+ iconZoomIn: (_: {}) => any;
47
49
  };
48
50
  });
49
51
  export default _default;
@@ -145,6 +145,8 @@ declare const _default: {
145
145
  thumbnailTool: (_: {
146
146
  onToggle: () => void;
147
147
  }) => any;
148
+ iconThumbnail: (_: {}) => any;
149
+ iconSearch: (_: {}) => any;
148
150
  pageNavigationTool: (_: {
149
151
  total: number;
150
152
  current: number;
@@ -152,27 +154,45 @@ declare const _default: {
152
154
  onPrev: () => void;
153
155
  onChangePage: (pageNumber: number) => void;
154
156
  }) => any;
157
+ iconPrevPage: (_: {}) => any;
158
+ iconNextPage: (_: {}) => any;
155
159
  zoomTool: (_: {
156
160
  currentScale: number;
157
161
  zoom: (nextScale: number) => void;
158
162
  }) => any;
163
+ iconZoomOut: (_: {}) => any;
164
+ iconZoomIn: (_: {}) => any;
159
165
  themeTool: (_: {
160
166
  isDark: boolean;
161
167
  onClick: () => void;
162
168
  }) => any;
169
+ iconThemeDark: (_: {}) => any;
170
+ iconThemeLight: (_: {}) => any;
163
171
  openFileTool: (_: {
164
172
  onClick: () => void;
165
173
  }) => any;
174
+ iconOpenFile: (_: {}) => any;
166
175
  downloadTool: (_: {
167
176
  onClick: () => void;
168
177
  }) => any;
178
+ iconDownload: (_: {}) => any;
169
179
  printTool: (_: {
170
180
  onClick: () => Promise<void>;
171
181
  }) => any;
182
+ iconPrint: (_: {}) => any;
172
183
  fullScreenTool: (_: {
173
184
  onClick: () => Promise<void>;
174
185
  isSupported: boolean;
175
186
  }) => any;
187
+ iconFullScreen: (_: {}) => any;
188
+ iconMoreOptions: (_: {}) => any;
189
+ iconFirstPage: (_: {}) => any;
190
+ iconLastPage: (_: {}) => any;
191
+ iconRotateClockwise: (_: {}) => any;
192
+ iconRotateCounterClockwise: (_: {}) => any;
193
+ iconTextSelection: (_: {}) => any;
194
+ iconHandMode: (_: {}) => any;
195
+ iconDocProperties: (_: {}) => any;
176
196
  };
177
197
  });
178
198
  export default _default;
@@ -6,7 +6,6 @@ export declare const MIN_ZOOM_SCALE = 0.25;
6
6
  export declare const MAX_ZOOM_SCALE = 10;
7
7
  export declare const SCROLL_BAR_WIDTH = 20;
8
8
  export declare const PAGE_PADDING = 8;
9
- export declare const START_MOBILE_WIDTH = 768;
10
9
  export declare const FILE_INPUT: InjectionKey<Ref<ComponentPublicInstance<import("vue").DefineComponent<{}, {
11
10
  triggerClick: () => void;
12
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -48,7 +47,6 @@ export declare const TOOLBAR_OPTIONS: InjectionKey<Ref<ToolbarOptions | undefine
48
47
  export declare const TOTAL_TOOL_OTHERS_MENU: InjectionKey<Ref<number, number>>;
49
48
  export declare const IS_DARK: InjectionKey<Ref<boolean, boolean>>;
50
49
  export declare const IS_MOBILE_VIEW: InjectionKey<Ref<boolean, boolean>>;
51
- export declare const LOADER_IMAGE: InjectionKey<Slot<any> | undefined>;
52
50
  export declare const PAGES_CONTAINER: InjectionKey<ShallowRef<HTMLDivElement | null>>;
53
51
  export declare const pdfPagesKey: InjectionKey<ViewerPdfPage[] | null>;
54
52
  export declare const FOCUSED_PAGE_NUMBER: InjectionKey<Ref<number, number>>;
@@ -57,3 +55,8 @@ export declare const TOTAL_PAGE: InjectionKey<Ref<number, number>>;
57
55
  export declare const INITIAL_TEXT_LAYER: InjectionKey<boolean>;
58
56
  export declare const DOWNLOAD_FILE: InjectionKey<() => Promise<void>>;
59
57
  export declare const LICENSE: InjectionKey<ShallowRef<License | undefined>>;
58
+ export declare const SLOT_LOADER_IMAGE: InjectionKey<Slot<any> | undefined>;
59
+ export declare const SLOT_ICON_OPEN_FILE: InjectionKey<Slot<any> | undefined>;
60
+ export declare const SLOT_ICON_DOWNLOAD: InjectionKey<Slot<any> | undefined>;
61
+ export declare const SLOT_ICON_PRINT: InjectionKey<Slot<any> | undefined>;
62
+ export declare const SLOT_ICON_FULLSCREEN: InjectionKey<Slot<any> | undefined>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "1.1.0",
4
+ "version": "1.1.1-rc.2",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",