@vue-pdf-viewer/viewer 1.6.0-beta.0 → 1.6.0-beta.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.
- package/dist/index.js +4979 -4685
- package/dist/index.umd.cjs +31 -11
- package/dist/{info-CnzWbChw.js → info-CqXPnBJe.js} +5 -4
- package/dist/types/components/AppTooltip.vue.d.ts +20 -3
- package/dist/types/components/LayerText.vue.d.ts +1 -7
- package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +2 -0
- package/dist/types/components/ToolSearch.vue.d.ts +43 -18
- package/dist/types/components/VPdfPage.vue.d.ts +1 -1
- package/dist/types/components/VPdfViewer.vue.d.ts +90 -9
- package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +37 -0
- package/dist/types/components/ui/checkbox/index.d.ts +1 -0
- package/dist/types/composables/useSearch.d.ts +3 -3
- package/dist/types/const.d.ts +2 -1
- package/dist/types/utils/types.d.ts +9 -3
- package/package.json +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
width: "
|
|
5
|
-
height: "
|
|
6
|
-
fill: "none"
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
7
8
|
}, r = /* @__PURE__ */ o("path", {
|
|
8
9
|
fill: "currentColor",
|
|
9
10
|
d: "M8 1.5A6.5 6.5 0 1 0 14.5 8 6.507 6.507 0 0 0 8 1.5m0 12A5.5 5.5 0 1 1 13.5 8 5.506 5.506 0 0 1 8 13.5M9 11a.5.5 0 0 1-.5.5 1 1 0 0 1-1-1V8a.5.5 0 0 1 0-1 1 1 0 0 1 1 1v2.5a.5.5 0 0 1 .5.5M7 5.25a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"
|
|
10
11
|
}, null, -1), c = [
|
|
11
12
|
r
|
|
12
13
|
];
|
|
13
|
-
function l(
|
|
14
|
+
function l(i, s) {
|
|
14
15
|
return e(), t("svg", n, [...c]);
|
|
15
16
|
}
|
|
16
17
|
const d = { render: l };
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
contentSide?: "left" | "top" | "bottom" | "right" | undefined;
|
|
4
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
contentSide?: "left" | "top" | "bottom" | "right" | undefined;
|
|
6
|
+
}>>>, {}, true, {}, {}, {
|
|
3
7
|
P: {};
|
|
4
8
|
B: {};
|
|
5
9
|
D: {};
|
|
6
10
|
C: {};
|
|
7
11
|
M: {};
|
|
8
12
|
Defaults: {};
|
|
9
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
contentSide?: "left" | "top" | "bottom" | "right" | undefined;
|
|
15
|
+
}>>>, {}, {}, {}, {}, {}>;
|
|
10
16
|
__isFragment?: undefined;
|
|
11
17
|
__isTeleport?: undefined;
|
|
12
18
|
__isSuspense?: undefined;
|
|
13
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
contentSide?: "left" | "top" | "bottom" | "right" | undefined;
|
|
21
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
14
22
|
$slots: {
|
|
15
23
|
default: (_: {}) => any;
|
|
16
24
|
content: (_: {}) => any;
|
|
17
25
|
};
|
|
18
26
|
});
|
|
19
27
|
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { PDFPageProxy, PageViewport } from 'pdfjs-dist';
|
|
2
|
-
import type { HighlightEventPayload,
|
|
2
|
+
import type { HighlightEventPayload, TextLayerLoadedEventPayload } from '../utils/types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
page: PDFPageProxy;
|
|
5
5
|
viewport: PageViewport;
|
|
6
|
-
currentHighlight?: Match | undefined;
|
|
7
|
-
highlightText?: string | undefined;
|
|
8
|
-
highlightOptions?: HighlightOptions | undefined;
|
|
9
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
7
|
highlight: (payload: HighlightEventPayload) => void;
|
|
11
8
|
} & {
|
|
@@ -13,9 +10,6 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
11
|
page: PDFPageProxy;
|
|
15
12
|
viewport: PageViewport;
|
|
16
|
-
currentHighlight?: Match | undefined;
|
|
17
|
-
highlightText?: string | undefined;
|
|
18
|
-
highlightOptions?: HighlightOptions | undefined;
|
|
19
13
|
}>>> & {
|
|
20
14
|
onHighlight?: ((payload: HighlightEventPayload) => any) | undefined;
|
|
21
15
|
onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { PageViewport } from 'pdfjs-dist';
|
|
2
|
+
import type { TextContent } from 'pdfjs-dist/types/src/display/text_layer';
|
|
2
3
|
interface OwnProps {
|
|
3
4
|
pageIndex: number;
|
|
4
5
|
viewport: PageViewport;
|
|
6
|
+
textContent: TextContent;
|
|
5
7
|
searchKeyword?: string;
|
|
6
8
|
}
|
|
7
9
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<OwnProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>>, {}, {}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SearchCheckboxFilter } from '@/utils/types';
|
|
1
2
|
interface Props {
|
|
2
3
|
searching: boolean;
|
|
3
4
|
open: boolean;
|
|
@@ -6,15 +7,27 @@ interface Props {
|
|
|
6
7
|
}
|
|
7
8
|
declare const _default: {
|
|
8
9
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
9
|
-
onClose?: ((
|
|
10
|
-
onOpen?: ((
|
|
11
|
-
onNext?: ((
|
|
12
|
-
onPrev?: ((
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
onOpen?: (() => any) | undefined;
|
|
12
|
+
onNext?: (() => any) | undefined;
|
|
13
|
+
onPrev?: (() => any) | undefined;
|
|
14
|
+
"onUpdate:checkboxFilter"?: ((value: SearchCheckboxFilter) => any) | undefined;
|
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
prev: () => void;
|
|
17
|
+
} & {
|
|
18
|
+
next: () => void;
|
|
19
|
+
} & {
|
|
20
|
+
open: () => void;
|
|
21
|
+
} & {
|
|
22
|
+
close: () => void;
|
|
23
|
+
} & {
|
|
24
|
+
"update:checkboxFilter": (value: SearchCheckboxFilter) => void;
|
|
25
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
26
|
+
onClose?: (() => any) | undefined;
|
|
27
|
+
onOpen?: (() => any) | undefined;
|
|
28
|
+
onNext?: (() => any) | undefined;
|
|
29
|
+
onPrev?: (() => any) | undefined;
|
|
30
|
+
"onUpdate:checkboxFilter"?: ((value: SearchCheckboxFilter) => any) | undefined;
|
|
18
31
|
}, {}, true, {}, {}, {
|
|
19
32
|
P: {};
|
|
20
33
|
B: {};
|
|
@@ -23,20 +36,32 @@ declare const _default: {
|
|
|
23
36
|
M: {};
|
|
24
37
|
Defaults: {};
|
|
25
38
|
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
26
|
-
onClose?: ((
|
|
27
|
-
onOpen?: ((
|
|
28
|
-
onNext?: ((
|
|
29
|
-
onPrev?: ((
|
|
39
|
+
onClose?: (() => any) | undefined;
|
|
40
|
+
onOpen?: (() => any) | undefined;
|
|
41
|
+
onNext?: (() => any) | undefined;
|
|
42
|
+
onPrev?: (() => any) | undefined;
|
|
43
|
+
"onUpdate:checkboxFilter"?: ((value: SearchCheckboxFilter) => any) | undefined;
|
|
30
44
|
}, {}, {}, {}, {}, {}>;
|
|
31
45
|
__isFragment?: undefined;
|
|
32
46
|
__isTeleport?: undefined;
|
|
33
47
|
__isSuspense?: undefined;
|
|
34
48
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
35
|
-
onClose?: ((
|
|
36
|
-
onOpen?: ((
|
|
37
|
-
onNext?: ((
|
|
38
|
-
onPrev?: ((
|
|
39
|
-
|
|
49
|
+
onClose?: (() => any) | undefined;
|
|
50
|
+
onOpen?: (() => any) | undefined;
|
|
51
|
+
onNext?: (() => any) | undefined;
|
|
52
|
+
onPrev?: (() => any) | undefined;
|
|
53
|
+
"onUpdate:checkboxFilter"?: ((value: SearchCheckboxFilter) => any) | undefined;
|
|
54
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
|
+
prev: () => void;
|
|
56
|
+
} & {
|
|
57
|
+
next: () => void;
|
|
58
|
+
} & {
|
|
59
|
+
open: () => void;
|
|
60
|
+
} & {
|
|
61
|
+
close: () => void;
|
|
62
|
+
} & {
|
|
63
|
+
"update:checkboxFilter": (value: SearchCheckboxFilter) => void;
|
|
64
|
+
}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
40
65
|
$slots: {
|
|
41
66
|
icon: (_: {}) => any;
|
|
42
67
|
loader: (_: {}) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CanvasLoadedCallback, AnnotationEventPayload, HighlightEventPayload, HighlightOptions, Match, TextLayerLoadedEventPayload, VisibilityInfo } from '../utils/types';
|
|
2
1
|
import type { PageViewport, PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
|
|
3
2
|
import type { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
+
import type { CanvasLoadedCallback, AnnotationEventPayload, HighlightEventPayload, HighlightOptions, Match, TextLayerLoadedEventPayload, VisibilityInfo } from '../utils/types';
|
|
4
4
|
interface BaseProps {
|
|
5
5
|
pageIndex: number;
|
|
6
6
|
page: PDFPageProxy;
|
|
@@ -81,9 +81,36 @@ declare const _default: {
|
|
|
81
81
|
onError?: ((error: Error) => void) | undefined;
|
|
82
82
|
onComplete?: (() => void) | undefined;
|
|
83
83
|
} | undefined>;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
pageControl: import("vue").ComputedRef<{
|
|
85
|
+
goToPage: (pageNumber: number) => void;
|
|
86
|
+
totalPages: number;
|
|
87
|
+
currentPage: number;
|
|
88
|
+
} | undefined>;
|
|
89
|
+
searchControl: import("vue").ComputedRef<{
|
|
90
|
+
searchMatches: {
|
|
91
|
+
totalMatches: number;
|
|
92
|
+
matches: {
|
|
93
|
+
index: number;
|
|
94
|
+
page: number;
|
|
95
|
+
}[];
|
|
96
|
+
} | {
|
|
97
|
+
totalMatches: number;
|
|
98
|
+
matches: {
|
|
99
|
+
index: number;
|
|
100
|
+
page: number;
|
|
101
|
+
}[];
|
|
102
|
+
};
|
|
103
|
+
searching: import("vue").Ref<boolean, boolean>;
|
|
104
|
+
goToMatch: (index: number) => void;
|
|
105
|
+
search: (value: string) => void;
|
|
106
|
+
nextSearchMatch: () => void;
|
|
107
|
+
prevSearchMatch: () => void;
|
|
108
|
+
} | undefined>;
|
|
109
|
+
rotateControl: {
|
|
110
|
+
rotateClockwise: () => void;
|
|
111
|
+
rotateCounterclockwise: () => void;
|
|
112
|
+
currentRotation: number;
|
|
113
|
+
};
|
|
87
114
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
88
115
|
annotation: (payload: AnnotationEventPayload) => void;
|
|
89
116
|
} & {
|
|
@@ -271,9 +298,36 @@ declare const _default: {
|
|
|
271
298
|
onError?: ((error: Error) => void) | undefined;
|
|
272
299
|
onComplete?: (() => void) | undefined;
|
|
273
300
|
} | undefined>;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
301
|
+
pageControl: import("vue").ComputedRef<{
|
|
302
|
+
goToPage: (pageNumber: number) => void;
|
|
303
|
+
totalPages: number;
|
|
304
|
+
currentPage: number;
|
|
305
|
+
} | undefined>;
|
|
306
|
+
searchControl: import("vue").ComputedRef<{
|
|
307
|
+
searchMatches: {
|
|
308
|
+
totalMatches: number;
|
|
309
|
+
matches: {
|
|
310
|
+
index: number;
|
|
311
|
+
page: number;
|
|
312
|
+
}[];
|
|
313
|
+
} | {
|
|
314
|
+
totalMatches: number;
|
|
315
|
+
matches: {
|
|
316
|
+
index: number;
|
|
317
|
+
page: number;
|
|
318
|
+
}[];
|
|
319
|
+
};
|
|
320
|
+
searching: import("vue").Ref<boolean, boolean>;
|
|
321
|
+
goToMatch: (index: number) => void;
|
|
322
|
+
search: (value: string) => void;
|
|
323
|
+
nextSearchMatch: () => void;
|
|
324
|
+
prevSearchMatch: () => void;
|
|
325
|
+
} | undefined>;
|
|
326
|
+
rotateControl: {
|
|
327
|
+
rotateClockwise: () => void;
|
|
328
|
+
rotateCounterclockwise: () => void;
|
|
329
|
+
currentRotation: number;
|
|
330
|
+
};
|
|
277
331
|
}, {}, {}, {}, {
|
|
278
332
|
readonly initialViewMode: ViewMode;
|
|
279
333
|
readonly initialScrollMode: ScrollMode;
|
|
@@ -371,9 +425,36 @@ declare const _default: {
|
|
|
371
425
|
onError?: ((error: Error) => void) | undefined;
|
|
372
426
|
onComplete?: (() => void) | undefined;
|
|
373
427
|
} | undefined>;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
428
|
+
pageControl: import("vue").ComputedRef<{
|
|
429
|
+
goToPage: (pageNumber: number) => void;
|
|
430
|
+
totalPages: number;
|
|
431
|
+
currentPage: number;
|
|
432
|
+
} | undefined>;
|
|
433
|
+
searchControl: import("vue").ComputedRef<{
|
|
434
|
+
searchMatches: {
|
|
435
|
+
totalMatches: number;
|
|
436
|
+
matches: {
|
|
437
|
+
index: number;
|
|
438
|
+
page: number;
|
|
439
|
+
}[];
|
|
440
|
+
} | {
|
|
441
|
+
totalMatches: number;
|
|
442
|
+
matches: {
|
|
443
|
+
index: number;
|
|
444
|
+
page: number;
|
|
445
|
+
}[];
|
|
446
|
+
};
|
|
447
|
+
searching: import("vue").Ref<boolean, boolean>;
|
|
448
|
+
goToMatch: (index: number) => void;
|
|
449
|
+
search: (value: string) => void;
|
|
450
|
+
nextSearchMatch: () => void;
|
|
451
|
+
prevSearchMatch: () => void;
|
|
452
|
+
} | undefined>;
|
|
453
|
+
rotateControl: {
|
|
454
|
+
rotateClockwise: () => void;
|
|
455
|
+
rotateCounterclockwise: () => void;
|
|
456
|
+
currentRotation: number;
|
|
457
|
+
};
|
|
377
458
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
378
459
|
annotation: (payload: AnnotationEventPayload) => void;
|
|
379
460
|
} & {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CheckboxRootProps } from 'radix-vue';
|
|
2
|
+
import { type HTMLAttributes } from 'vue';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CheckboxRootProps & {
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CheckboxRootProps & {
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
}>>>, {}, true, {}, {}, {
|
|
9
|
+
P: {};
|
|
10
|
+
B: {};
|
|
11
|
+
D: {};
|
|
12
|
+
C: {};
|
|
13
|
+
M: {};
|
|
14
|
+
Defaults: {};
|
|
15
|
+
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CheckboxRootProps & {
|
|
16
|
+
class?: HTMLAttributes['class'];
|
|
17
|
+
}>>>, {}, {}, {}, {}, {}>;
|
|
18
|
+
__isFragment?: undefined;
|
|
19
|
+
__isTeleport?: undefined;
|
|
20
|
+
__isSuspense?: undefined;
|
|
21
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CheckboxRootProps & {
|
|
22
|
+
class?: HTMLAttributes['class'];
|
|
23
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
24
|
+
$slots: {
|
|
25
|
+
default: (_: {}) => any;
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Checkbox } from './Checkbox.vue';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SearchCheckboxFilter, SearchControlValue } from '@/components';
|
|
2
|
+
import { ShallowRef } from 'vue';
|
|
3
3
|
import type { PDFDocumentProxy } from 'pdfjs-dist';
|
|
4
|
-
export declare const useSearch: (pdfDoc: ShallowRef<PDFDocumentProxy | undefined>,
|
|
4
|
+
export declare const useSearch: (pdfDoc: ShallowRef<PDFDocumentProxy | undefined>, initialSearch?: string, options?: ShallowRef<SearchCheckboxFilter>) => SearchControlValue;
|
package/dist/types/const.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
|
|
2
2
|
import type { PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
|
|
3
3
|
import type { InjectionKey, Slot, Ref, ComponentPublicInstance, ShallowRef, ComputedRef } from 'vue';
|
|
4
|
-
import type { HighlightMatchPosition, Localization, NormalizedKeyword, Offset, ToolbarOptions, ViewerPdfPage } from './utils/types';
|
|
4
|
+
import type { HighlightMatchPosition, Localization, NormalizedKeyword, Offset, SearchCheckboxFilter, ToolbarOptions, ViewerPdfPage } from './utils/types';
|
|
5
5
|
import { LicenseType, ScrollMode, ViewMode, ZoomLevel } from './components';
|
|
6
6
|
export declare const DEFAULT_TOOLBAR_OPTIONS: ToolbarOptions;
|
|
7
7
|
export declare const Locales: Record<string, Localization>;
|
|
@@ -100,6 +100,7 @@ export declare const LICENSE: InjectionKey<{
|
|
|
100
100
|
type: LicenseType;
|
|
101
101
|
}>;
|
|
102
102
|
export declare const LICENSE_KEY: InjectionKey<ComputedRef<string | null | undefined>>;
|
|
103
|
+
export declare const HIGHLIGHT_OPTIONS: InjectionKey<ShallowRef<SearchCheckboxFilter>>;
|
|
103
104
|
export declare const SLOT_LOADER_IMAGE: InjectionKey<Slot<any> | undefined>;
|
|
104
105
|
export declare const SLOT_ICON_OPEN_FILE: InjectionKey<Slot<any> | undefined>;
|
|
105
106
|
export declare const SLOT_ICON_DOWNLOAD: InjectionKey<Slot<any> | undefined>;
|
|
@@ -252,6 +252,10 @@ export interface VisibilityInfo {
|
|
|
252
252
|
pageIndex: number;
|
|
253
253
|
ratio: number;
|
|
254
254
|
}
|
|
255
|
+
export interface SearchCheckboxFilter {
|
|
256
|
+
matchCase: boolean;
|
|
257
|
+
wholeWords: boolean;
|
|
258
|
+
}
|
|
255
259
|
export interface ToolbarOptions {
|
|
256
260
|
/**
|
|
257
261
|
* Determines whether the toolbar includes a search functionality.
|
|
@@ -402,6 +406,8 @@ export type Localization = {
|
|
|
402
406
|
searchPrevTooltip: string;
|
|
403
407
|
searchNextTooltip: string;
|
|
404
408
|
searchCloseButtonTooltip: string;
|
|
409
|
+
searchMatchCaseTooltip: string;
|
|
410
|
+
searchWholeWordsTooltip: string;
|
|
405
411
|
previousPageTooltip: string;
|
|
406
412
|
nextPageTooltip: string;
|
|
407
413
|
zoomOutTooltip: string;
|
|
@@ -589,9 +595,9 @@ export interface RotateControl {
|
|
|
589
595
|
currentRotation: number;
|
|
590
596
|
}
|
|
591
597
|
export interface VPVInstance {
|
|
592
|
-
printControl:
|
|
593
|
-
searchControl:
|
|
594
|
-
pageControl:
|
|
598
|
+
printControl: Reactive<PrintControl> | undefined;
|
|
599
|
+
searchControl: SearchControl | undefined;
|
|
600
|
+
pageControl: PageControl | undefined;
|
|
595
601
|
rotateControl: RotateControl;
|
|
596
602
|
}
|
|
597
603
|
export interface PageControl {
|