@lingshugroup/web-plus 1.3.0 → 1.3.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/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx/index.cjs +38 -0
- package/lib/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx/index.js +21633 -0
- package/lib/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx/index.js.br +0 -0
- package/lib/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx/index.js.gz +0 -0
- package/lib/packages/ls-components/components/_hooks/useRouterHook/index.cjs +1 -1
- package/lib/packages/ls-components/components/_hooks/useRouterHook/index.js +38 -37
- package/lib/packages/ls-components/components/_hooks/useRouterHook/index.js.br +0 -0
- package/lib/packages/ls-components/components/_hooks/useRouterHook/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/config/template/bar/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js +12 -12
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js.br +0 -0
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/config/template/line/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/config/template/line/index.js +1 -1
- package/lib/packages/ls-components/components/chart/config/template/line/index.js.br +0 -0
- package/lib/packages/ls-components/components/chart/config/template/line/index.js.gz +0 -0
- package/lib/packages/ls-components/components/preview/components/Image.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview/components/Image.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview/components/Image.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview/components/Image.vue/index2.js +43 -42
- package/lib/packages/ls-components/components/preview/components/Image.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview/components/Image.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js +38 -38
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/config/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/config/index.js +3 -0
- package/lib/packages/ls-components/components/preview_xlsx/config/index.js.br +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/config/index.js.gz +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index.js +3 -3
- package/lib/types/components/_constants/aria.d.ts +17 -0
- package/lib/types/components/_constants/index.d.ts +2 -0
- package/lib/types/components/_constants/previewType.d.ts +22 -0
- package/lib/types/components/_constants/token.d.ts +1 -0
- package/lib/types/components/_directives/auth.d.ts +12 -0
- package/lib/types/components/_directives/index.d.ts +2 -0
- package/lib/types/components/_hooks/index.d.ts +6 -0
- package/lib/types/components/_hooks/useColorthiefHook.d.ts +3 -0
- package/lib/types/components/_hooks/useDelayLoader.d.ts +4 -0
- package/lib/types/components/_hooks/useGlobalConfig.d.ts +1 -0
- package/lib/types/components/_hooks/useNamespace.d.ts +20 -0
- package/lib/types/components/_hooks/useOptionHook.d.ts +14 -0
- package/lib/types/components/_hooks/usePreviewHook.d.ts +6 -0
- package/lib/types/components/_hooks/useRouterHook.d.ts +9376 -0
- package/lib/types/components/_hooks/useSelectOptionsHook.d.ts +3 -0
- package/lib/types/components/_hooks/useTableListHook.d.ts +23 -0
- package/lib/types/components/_hooks/useWSHook.d.ts +7 -0
- package/lib/types/components/_hooks/useZIndex.d.ts +5 -0
- package/lib/types/components/_types/index.d.ts +9 -0
- package/lib/types/components/_utils/check.d.ts +55 -0
- package/lib/types/components/_utils/config.d.ts +7 -0
- package/lib/types/components/_utils/dom.d.ts +2 -0
- package/lib/types/components/_utils/index.d.ts +3 -0
- package/lib/types/components/_utils/power.d.ts +1 -0
- package/lib/types/components/_utils/runtime.d.ts +31 -0
- package/lib/types/components/_utils/types.d.ts +149 -0
- package/lib/types/components/_utils/utils.d.ts +44 -0
- package/lib/types/components/_utils/validate.d.ts +96 -0
- package/lib/types/components/backTop/Index.vue.d.ts +27 -0
- package/lib/types/components/backTop/index.d.ts +34 -0
- package/lib/types/components/backTop/types.d.ts +4 -0
- package/lib/types/components/bellMessage/Index.vue.d.ts +26 -0
- package/lib/types/components/bellMessage/index.d.ts +61 -0
- package/lib/types/components/bellMessage/types.d.ts +24 -0
- package/lib/types/components/breadcrumb/Index.vue.d.ts +17 -0
- package/lib/types/components/breadcrumb/index.d.ts +43 -0
- package/lib/types/components/breadcrumb/types.d.ts +12 -0
- package/lib/types/components/button/Button.vue.d.ts +27 -0
- package/lib/types/components/button/ButtonGroup.vue.d.ts +31 -0
- package/lib/types/components/button/index.d.ts +79 -0
- package/lib/types/components/button/types.d.ts +10 -0
- package/lib/types/components/chart/Index.vue.d.ts +30 -0
- package/lib/types/components/chart/config/base.d.ts +36 -0
- package/lib/types/components/chart/config/index.d.ts +12 -0
- package/lib/types/components/chart/config/template/bar.d.ts +1 -0
- package/lib/types/components/chart/config/template/line.d.ts +1 -0
- package/lib/types/components/chart/config/template/pie.d.ts +2 -0
- package/lib/types/components/chart/index.d.ts +69 -0
- package/lib/types/components/chart/types.d.ts +54 -0
- package/lib/types/components/confirm/Index.vue.d.ts +87 -0
- package/lib/types/components/confirm/index.d.ts +182 -0
- package/lib/types/components/confirm/types.d.ts +28 -0
- package/lib/types/components/containerBox/Index.vue.d.ts +30 -0
- package/lib/types/components/containerBox/index.d.ts +40 -0
- package/lib/types/components/containerBox/types.d.ts +5 -0
- package/lib/types/components/descriptions/Index.vue.d.ts +38 -0
- package/lib/types/components/descriptions/index.d.ts +51 -0
- package/lib/types/components/descriptions/types.d.ts +22 -0
- package/lib/types/components/dialog/Index.vue.d.ts +387 -0
- package/lib/types/components/dialog/index.d.ts +159 -0
- package/lib/types/components/dialog/types.d.ts +35 -0
- package/lib/types/components/editor/Index.vue.d.ts +37 -0
- package/lib/types/components/editor/index.d.ts +88 -0
- package/lib/types/components/editor/types.d.ts +15 -0
- package/lib/types/components/form/Form.vue.d.ts +667 -0
- package/lib/types/components/form/FormItem.vue.d.ts +1367 -0
- package/lib/types/components/form/index.d.ts +2635 -0
- package/lib/types/components/form/types.d.ts +112 -0
- package/lib/types/components/icon/Index.vue.d.ts +46 -0
- package/lib/types/components/icon/index.d.ts +76 -0
- package/lib/types/components/icon/types.d.ts +54 -0
- package/lib/types/components/index.d.ts +4 -0
- package/lib/types/components/jsonEditor/Index.vue.d.ts +13 -0
- package/lib/types/components/jsonEditor/index.d.ts +36 -0
- package/lib/types/components/jsonEditor/types.d.ts +4 -0
- package/lib/types/components/layout/Index.vue.d.ts +54 -0
- package/lib/types/components/layout/components/CommandList.vue.d.ts +103 -0
- package/lib/types/components/layout/components/Header.vue.d.ts +119 -0
- package/lib/types/components/layout/index.d.ts +81 -0
- package/lib/types/components/layout/types.d.ts +55 -0
- package/lib/types/components/list/List.vue.d.ts +1630 -0
- package/lib/types/components/list/index.d.ts +617 -0
- package/lib/types/components/list/types.d.ts +141 -0
- package/lib/types/components/live/Index.vue.d.ts +22 -0
- package/lib/types/components/live/index.d.ts +54 -0
- package/lib/types/components/live/types.d.ts +7 -0
- package/lib/types/components/map/Index.vue.d.ts +137 -0
- package/lib/types/components/map/index.d.ts +241 -0
- package/lib/types/components/map/types.d.ts +61 -0
- package/lib/types/components/menu/Index.vue.d.ts +193 -0
- package/lib/types/components/menu/MenuItem.vue.d.ts +59 -0
- package/lib/types/components/menu/index.d.ts +141 -0
- package/lib/types/components/menu/types.d.ts +100 -0
- package/lib/types/components/preview/Index.vue.d.ts +67 -0
- package/lib/types/components/preview/components/Docx.vue.d.ts +12 -0
- package/lib/types/components/preview/components/Image.vue.d.ts +63 -0
- package/lib/types/components/preview/components/Pdf.vue.d.ts +16 -0
- package/lib/types/components/preview/components/Xlsx.vue.d.ts +21 -0
- package/lib/types/components/preview/components/pdfs/Annotation.vue.d.ts +22 -0
- package/lib/types/components/preview/components/pdfs/PdfItem.vue.d.ts +58 -0
- package/lib/types/components/preview/components/pdfs/Text.vue.d.ts +17 -0
- package/lib/types/components/preview/components/pdfs/XFA.vue.d.ts +13 -0
- package/lib/types/components/preview/components/pdfs/annotations.d.ts +5 -0
- package/lib/types/components/preview/components/pdfs/destination.d.ts +7 -0
- package/lib/types/components/preview/components/pdfs/highlight.d.ts +6 -0
- package/lib/types/components/preview/components/pdfs/linkService.d.ts +71 -0
- package/lib/types/components/preview/components/pdfs/miscellaneous.d.ts +3 -0
- package/lib/types/components/preview/composable.d.ts +30 -0
- package/lib/types/components/preview/index.d.ts +130 -0
- package/lib/types/components/preview/types.d.ts +143 -0
- package/lib/types/components/preview_docx/Docx.vue.d.ts +12 -0
- package/lib/types/components/preview_docx/Index.vue.d.ts +61 -0
- package/lib/types/components/preview_docx/index.d.ts +121 -0
- package/lib/types/components/preview_docx/types.d.ts +5 -0
- package/lib/types/components/preview_image/Image.vue.d.ts +64 -0
- package/lib/types/components/preview_image/Index.vue.d.ts +76 -0
- package/lib/types/components/preview_image/index.d.ts +125 -0
- package/lib/types/components/preview_image/types.d.ts +25 -0
- package/lib/types/components/preview_pdf/Index.vue.d.ts +61 -0
- package/lib/types/components/preview_pdf/Pdf.vue.d.ts +16 -0
- package/lib/types/components/preview_pdf/composable.d.ts +30 -0
- package/lib/types/components/preview_pdf/index.d.ts +121 -0
- package/lib/types/components/preview_pdf/pdfs/Annotation.vue.d.ts +22 -0
- package/lib/types/components/preview_pdf/pdfs/PdfItem.vue.d.ts +58 -0
- package/lib/types/components/preview_pdf/pdfs/Text.vue.d.ts +17 -0
- package/lib/types/components/preview_pdf/pdfs/XFA.vue.d.ts +13 -0
- package/lib/types/components/preview_pdf/pdfs/annotations.d.ts +5 -0
- package/lib/types/components/preview_pdf/pdfs/destination.d.ts +7 -0
- package/lib/types/components/preview_pdf/pdfs/highlight.d.ts +6 -0
- package/lib/types/components/preview_pdf/pdfs/linkService.d.ts +71 -0
- package/lib/types/components/preview_pdf/pdfs/miscellaneous.d.ts +3 -0
- package/lib/types/components/preview_pdf/types.d.ts +79 -0
- package/lib/types/components/preview_xlsx/Index.vue.d.ts +61 -0
- package/lib/types/components/preview_xlsx/Xlsx.vue.d.ts +24 -0
- package/lib/types/components/preview_xlsx/config.d.ts +69 -0
- package/lib/types/components/preview_xlsx/index.d.ts +121 -0
- package/lib/types/components/preview_xlsx/types.d.ts +21 -0
- package/lib/types/components/print/Index.vue.d.ts +34 -0
- package/lib/types/components/print/index.d.ts +52 -0
- package/lib/types/components/print/types.d.ts +10 -0
- package/lib/types/components/table/Table.vue.d.ts +640 -0
- package/lib/types/components/table/index.d.ts +343 -0
- package/lib/types/components/table/types.d.ts +63 -0
- package/lib/types/components/tree/Index.vue.d.ts +83 -0
- package/lib/types/components/tree/index.d.ts +159 -0
- package/lib/types/components/tree/types.d.ts +35 -0
- package/lib/types/components/upload/Index.vue.d.ts +456 -0
- package/lib/types/components/upload/index.d.ts +3 -0
- package/lib/types/components/upload/types.d.ts +54 -0
- package/package.json +2 -1
- package/lib/node_modules/.pnpm/xlsx@https___cdn.sheetjs.com_xlsx-0.20.3_xlsx-0.20.3.tgz/node_modules/xlsx/xlsx/index.cjs +0 -63
- package/lib/node_modules/.pnpm/xlsx@https___cdn.sheetjs.com_xlsx-0.20.3_xlsx-0.20.3.tgz/node_modules/xlsx/xlsx/index.js +0 -20945
- package/lib/node_modules/.pnpm/xlsx@https___cdn.sheetjs.com_xlsx-0.20.3_xlsx-0.20.3.tgz/node_modules/xlsx/xlsx/index.js.br +0 -0
- package/lib/node_modules/.pnpm/xlsx@https___cdn.sheetjs.com_xlsx-0.20.3_xlsx-0.20.3.tgz/node_modules/xlsx/xlsx/index.js.gz +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
source: {
|
|
5
|
+
readonly type: globalThis.PropType<{
|
|
6
|
+
type: unknown;
|
|
7
|
+
required: true;
|
|
8
|
+
}>;
|
|
9
|
+
readonly required: false;
|
|
10
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
11
|
+
__epPropKey: true;
|
|
12
|
+
};
|
|
13
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
14
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
15
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
16
|
+
text: string;
|
|
17
|
+
background: string;
|
|
18
|
+
}, boolean>;
|
|
19
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
20
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: globalThis.PropType<boolean>;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
26
|
+
} & {
|
|
27
|
+
loadComplete: () => any;
|
|
28
|
+
loadError: () => any;
|
|
29
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
30
|
+
source: {
|
|
31
|
+
readonly type: globalThis.PropType<{
|
|
32
|
+
type: unknown;
|
|
33
|
+
required: true;
|
|
34
|
+
}>;
|
|
35
|
+
readonly required: false;
|
|
36
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
|
+
__epPropKey: true;
|
|
38
|
+
};
|
|
39
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
40
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
41
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
42
|
+
text: string;
|
|
43
|
+
background: string;
|
|
44
|
+
}, boolean>;
|
|
45
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
46
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
47
|
+
modelValue: {
|
|
48
|
+
type: globalThis.PropType<boolean>;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{
|
|
51
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
52
|
+
onLoadComplete?: (() => any) | undefined;
|
|
53
|
+
onLoadError?: (() => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
56
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
57
|
+
loadingOption: Record<string, any>;
|
|
58
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
59
|
+
downloadData: Record<string, any>;
|
|
60
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { App, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
import { LSOptions, EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare const LSPreviewDocx: {
|
|
4
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
5
|
+
source: {
|
|
6
|
+
readonly type: globalThis.PropType<{
|
|
7
|
+
type: unknown;
|
|
8
|
+
required: true;
|
|
9
|
+
}>;
|
|
10
|
+
readonly required: false;
|
|
11
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
|
+
__epPropKey: true;
|
|
13
|
+
};
|
|
14
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
15
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
16
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
17
|
+
text: string;
|
|
18
|
+
background: string;
|
|
19
|
+
}, boolean>;
|
|
20
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
21
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: globalThis.PropType<boolean>;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
27
|
+
onLoadComplete?: (() => any) | undefined;
|
|
28
|
+
onLoadError?: (() => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
31
|
+
} & {
|
|
32
|
+
loadComplete: () => any;
|
|
33
|
+
loadError: () => any;
|
|
34
|
+
}, PublicProps, {
|
|
35
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
36
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
37
|
+
loadingOption: Record<string, any>;
|
|
38
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
39
|
+
downloadData: Record<string, any>;
|
|
40
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
41
|
+
P: {};
|
|
42
|
+
B: {};
|
|
43
|
+
D: {};
|
|
44
|
+
C: {};
|
|
45
|
+
M: {};
|
|
46
|
+
Defaults: {};
|
|
47
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
48
|
+
source: {
|
|
49
|
+
readonly type: globalThis.PropType<{
|
|
50
|
+
type: unknown;
|
|
51
|
+
required: true;
|
|
52
|
+
}>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
};
|
|
57
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
58
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
59
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
60
|
+
text: string;
|
|
61
|
+
background: string;
|
|
62
|
+
}, boolean>;
|
|
63
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
64
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
65
|
+
modelValue: {
|
|
66
|
+
type: globalThis.PropType<boolean>;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{
|
|
69
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
70
|
+
onLoadComplete?: (() => any) | undefined;
|
|
71
|
+
onLoadError?: (() => any) | undefined;
|
|
72
|
+
}>, {}, {}, {}, {}, {
|
|
73
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
74
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
75
|
+
loadingOption: Record<string, any>;
|
|
76
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
77
|
+
downloadData: Record<string, any>;
|
|
78
|
+
}>;
|
|
79
|
+
__isFragment?: never;
|
|
80
|
+
__isTeleport?: never;
|
|
81
|
+
__isSuspense?: never;
|
|
82
|
+
} & ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
83
|
+
source: {
|
|
84
|
+
readonly type: globalThis.PropType<{
|
|
85
|
+
type: unknown;
|
|
86
|
+
required: true;
|
|
87
|
+
}>;
|
|
88
|
+
readonly required: false;
|
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
+
__epPropKey: true;
|
|
91
|
+
};
|
|
92
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
93
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
94
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
95
|
+
text: string;
|
|
96
|
+
background: string;
|
|
97
|
+
}, boolean>;
|
|
98
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
99
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
100
|
+
modelValue: {
|
|
101
|
+
type: globalThis.PropType<boolean>;
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
105
|
+
onLoadComplete?: (() => any) | undefined;
|
|
106
|
+
onLoadError?: (() => any) | undefined;
|
|
107
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
108
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
109
|
+
} & {
|
|
110
|
+
loadComplete: () => any;
|
|
111
|
+
loadError: () => any;
|
|
112
|
+
}, string, {
|
|
113
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
114
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
115
|
+
loadingOption: Record<string, any>;
|
|
116
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
117
|
+
downloadData: Record<string, any>;
|
|
118
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
119
|
+
install: (app: App, options?: LSOptions) => void;
|
|
120
|
+
};
|
|
121
|
+
export default LSPreviewDocx;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare function setActiveItem(index: number): void;
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
viewer?(_: {}): any;
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
wrapper: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
17
|
+
readonly source: EpPropFinalized<readonly [globalThis.PropType<string[]>, StringConstructor], unknown, unknown, () => [], boolean>;
|
|
18
|
+
readonly zIndex: {
|
|
19
|
+
readonly type: globalThis.PropType<number>;
|
|
20
|
+
readonly required: false;
|
|
21
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
|
+
__epPropKey: true;
|
|
23
|
+
};
|
|
24
|
+
readonly initialIndex: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
25
|
+
readonly infinite: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
26
|
+
readonly hideOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
27
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
28
|
+
readonly closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
29
|
+
readonly onClose: FunctionConstructor;
|
|
30
|
+
readonly zoomSize: EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, 1.5, boolean>;
|
|
31
|
+
}>, {
|
|
32
|
+
/** @description manually switch image */
|
|
33
|
+
setActiveItem: typeof setActiveItem;
|
|
34
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
35
|
+
readonly source: EpPropFinalized<readonly [globalThis.PropType<string[]>, StringConstructor], unknown, unknown, () => [], boolean>;
|
|
36
|
+
readonly zIndex: {
|
|
37
|
+
readonly type: globalThis.PropType<number>;
|
|
38
|
+
readonly required: false;
|
|
39
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
|
+
__epPropKey: true;
|
|
41
|
+
};
|
|
42
|
+
readonly initialIndex: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
43
|
+
readonly infinite: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
44
|
+
readonly hideOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
45
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
46
|
+
readonly closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
47
|
+
readonly onClose: FunctionConstructor;
|
|
48
|
+
readonly zoomSize: EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, 1.5, boolean>;
|
|
49
|
+
}>> & Readonly<{}>, {
|
|
50
|
+
readonly source: EpPropMergeType<readonly [globalThis.PropType<string[]>, StringConstructor], unknown, unknown>;
|
|
51
|
+
readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
52
|
+
readonly closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
53
|
+
readonly initialIndex: number;
|
|
54
|
+
readonly infinite: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
55
|
+
readonly hideOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
56
|
+
readonly zoomSize: EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>;
|
|
57
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
58
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
viewer?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
13
|
+
source: {
|
|
14
|
+
readonly type: globalThis.PropType<{
|
|
15
|
+
type: unknown;
|
|
16
|
+
required: true;
|
|
17
|
+
}>;
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
|
+
__epPropKey: true;
|
|
21
|
+
};
|
|
22
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
23
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
24
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
25
|
+
text: string;
|
|
26
|
+
background: string;
|
|
27
|
+
}, boolean>;
|
|
28
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
29
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
30
|
+
modelValue: {
|
|
31
|
+
type: globalThis.PropType<boolean>;
|
|
32
|
+
};
|
|
33
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
34
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
35
|
+
} & {
|
|
36
|
+
loadComplete: () => any;
|
|
37
|
+
loadError: () => any;
|
|
38
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
39
|
+
source: {
|
|
40
|
+
readonly type: globalThis.PropType<{
|
|
41
|
+
type: unknown;
|
|
42
|
+
required: true;
|
|
43
|
+
}>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
};
|
|
48
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
49
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
50
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
51
|
+
text: string;
|
|
52
|
+
background: string;
|
|
53
|
+
}, boolean>;
|
|
54
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
55
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: globalThis.PropType<boolean>;
|
|
58
|
+
};
|
|
59
|
+
}>> & Readonly<{
|
|
60
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
61
|
+
onLoadComplete?: (() => any) | undefined;
|
|
62
|
+
onLoadError?: (() => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
65
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
66
|
+
loadingOption: Record<string, any>;
|
|
67
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
68
|
+
downloadData: Record<string, any>;
|
|
69
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
71
|
+
export default _default;
|
|
72
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
73
|
+
new (): {
|
|
74
|
+
$slots: S;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { App, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
import { LSOptions, EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare const LSPreviewImage: {
|
|
4
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
5
|
+
source: {
|
|
6
|
+
readonly type: globalThis.PropType<{
|
|
7
|
+
type: unknown;
|
|
8
|
+
required: true;
|
|
9
|
+
}>;
|
|
10
|
+
readonly required: false;
|
|
11
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
|
+
__epPropKey: true;
|
|
13
|
+
};
|
|
14
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
15
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
16
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
17
|
+
text: string;
|
|
18
|
+
background: string;
|
|
19
|
+
}, boolean>;
|
|
20
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
21
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: globalThis.PropType<boolean>;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
27
|
+
onLoadComplete?: (() => any) | undefined;
|
|
28
|
+
onLoadError?: (() => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
31
|
+
} & {
|
|
32
|
+
loadComplete: () => any;
|
|
33
|
+
loadError: () => any;
|
|
34
|
+
}, PublicProps, {
|
|
35
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
36
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
37
|
+
loadingOption: Record<string, any>;
|
|
38
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
39
|
+
downloadData: Record<string, any>;
|
|
40
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
41
|
+
P: {};
|
|
42
|
+
B: {};
|
|
43
|
+
D: {};
|
|
44
|
+
C: {};
|
|
45
|
+
M: {};
|
|
46
|
+
Defaults: {};
|
|
47
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
48
|
+
source: {
|
|
49
|
+
readonly type: globalThis.PropType<{
|
|
50
|
+
type: unknown;
|
|
51
|
+
required: true;
|
|
52
|
+
}>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
};
|
|
57
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
58
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
59
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
60
|
+
text: string;
|
|
61
|
+
background: string;
|
|
62
|
+
}, boolean>;
|
|
63
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
64
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
65
|
+
modelValue: {
|
|
66
|
+
type: globalThis.PropType<boolean>;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{
|
|
69
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
70
|
+
onLoadComplete?: (() => any) | undefined;
|
|
71
|
+
onLoadError?: (() => any) | undefined;
|
|
72
|
+
}>, {}, {}, {}, {}, {
|
|
73
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
74
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
75
|
+
loadingOption: Record<string, any>;
|
|
76
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
77
|
+
downloadData: Record<string, any>;
|
|
78
|
+
}>;
|
|
79
|
+
__isFragment?: never;
|
|
80
|
+
__isTeleport?: never;
|
|
81
|
+
__isSuspense?: never;
|
|
82
|
+
} & ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
83
|
+
source: {
|
|
84
|
+
readonly type: globalThis.PropType<{
|
|
85
|
+
type: unknown;
|
|
86
|
+
required: true;
|
|
87
|
+
}>;
|
|
88
|
+
readonly required: false;
|
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
+
__epPropKey: true;
|
|
91
|
+
};
|
|
92
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
93
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
94
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
95
|
+
text: string;
|
|
96
|
+
background: string;
|
|
97
|
+
}, boolean>;
|
|
98
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
99
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
100
|
+
modelValue: {
|
|
101
|
+
type: globalThis.PropType<boolean>;
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
105
|
+
onLoadComplete?: (() => any) | undefined;
|
|
106
|
+
onLoadError?: (() => any) | undefined;
|
|
107
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
108
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
109
|
+
} & {
|
|
110
|
+
loadComplete: () => any;
|
|
111
|
+
loadError: () => any;
|
|
112
|
+
}, string, {
|
|
113
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
114
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
115
|
+
loadingOption: Record<string, any>;
|
|
116
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
117
|
+
downloadData: Record<string, any>;
|
|
118
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
119
|
+
$slots: {
|
|
120
|
+
viewer?(_: {}): any;
|
|
121
|
+
};
|
|
122
|
+
}) & {
|
|
123
|
+
install: (app: App, options?: LSOptions) => void;
|
|
124
|
+
};
|
|
125
|
+
export default LSPreviewImage;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { default as LSImage } from './Image.vue';
|
|
3
|
+
import { EpPropFinalized } from '../_utils/types';
|
|
4
|
+
export type ImageViewerAction = 'zoomIn' | 'zoomOut' | 'clockwise' | 'anticlockwise' | 'download';
|
|
5
|
+
export declare const imageViewerProps: {
|
|
6
|
+
readonly source: EpPropFinalized<readonly [globalThis.PropType<string[]>, StringConstructor], unknown, unknown, () => [], boolean>;
|
|
7
|
+
readonly zIndex: {
|
|
8
|
+
readonly type: globalThis.PropType<number>;
|
|
9
|
+
readonly required: false;
|
|
10
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
11
|
+
__epPropKey: true;
|
|
12
|
+
};
|
|
13
|
+
readonly initialIndex: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
14
|
+
readonly infinite: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
15
|
+
readonly hideOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
16
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
17
|
+
readonly closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
18
|
+
readonly onClose: FunctionConstructor;
|
|
19
|
+
readonly zoomSize: EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, 1.5, boolean>;
|
|
20
|
+
};
|
|
21
|
+
export type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>;
|
|
22
|
+
export interface ImageViewerMode {
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
export type ImageViewerInstance = InstanceType<typeof LSImage>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
source: {
|
|
5
|
+
readonly type: globalThis.PropType<{
|
|
6
|
+
type: unknown;
|
|
7
|
+
required: true;
|
|
8
|
+
}>;
|
|
9
|
+
readonly required: false;
|
|
10
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
11
|
+
__epPropKey: true;
|
|
12
|
+
};
|
|
13
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
14
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
15
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
16
|
+
text: string;
|
|
17
|
+
background: string;
|
|
18
|
+
}, boolean>;
|
|
19
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
20
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: globalThis.PropType<boolean>;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
26
|
+
} & {
|
|
27
|
+
loadComplete: () => any;
|
|
28
|
+
loadError: () => any;
|
|
29
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
30
|
+
source: {
|
|
31
|
+
readonly type: globalThis.PropType<{
|
|
32
|
+
type: unknown;
|
|
33
|
+
required: true;
|
|
34
|
+
}>;
|
|
35
|
+
readonly required: false;
|
|
36
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
|
+
__epPropKey: true;
|
|
38
|
+
};
|
|
39
|
+
zoomSize: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, number, boolean>;
|
|
40
|
+
needLoading: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
41
|
+
loadingOption: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {
|
|
42
|
+
text: string;
|
|
43
|
+
background: string;
|
|
44
|
+
}, boolean>;
|
|
45
|
+
hasDownload: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
46
|
+
downloadData: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
47
|
+
modelValue: {
|
|
48
|
+
type: globalThis.PropType<boolean>;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{
|
|
51
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
52
|
+
onLoadComplete?: (() => any) | undefined;
|
|
53
|
+
onLoadError?: (() => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
zoomSize: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
56
|
+
needLoading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
57
|
+
loadingOption: Record<string, any>;
|
|
58
|
+
hasDownload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
59
|
+
downloadData: Record<string, any>;
|
|
60
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
source: string;
|
|
4
|
+
onClose: Function;
|
|
5
|
+
showSize?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
} & {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
showSize: boolean;
|
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Ref, ShallowRef } from 'vue';
|
|
2
|
+
import { PDFDestination, PDFInfo, PDFOptions, PDFSrc } from './types';
|
|
3
|
+
import { PDFDocumentLoadingTask } from 'pdfjs-dist/types/src/display/api';
|
|
4
|
+
/**
|
|
5
|
+
* @typedef {Object} UsePDFParameters
|
|
6
|
+
* @property {string} password
|
|
7
|
+
* Document password to unlock content
|
|
8
|
+
* @property {function} onProgress
|
|
9
|
+
* Callback to request a password if a wrong or no password was provided. The callback receives two parameters: a function that should be called with the new password, and a reason (see PasswordResponses).
|
|
10
|
+
* @property {function} onPassword
|
|
11
|
+
* Callback to be able to monitor the loading progress of the PDF file (necessary to implement e.g. a loading bar). The callback receives an OnProgressParameters argument. if this function is used option.password is ignored
|
|
12
|
+
* @property {function} onError
|
|
13
|
+
* Callback to be able to handle errors during loading
|
|
14
|
+
* */
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param {string | URL | TypedArray | PDFDataRangeTransport | DocumentInitParameters} src
|
|
18
|
+
* Can be a URL where a PDF file is located, a typed array (Uint8Array) already populated with data, or a parameter object.
|
|
19
|
+
* @param {UsePDFParameters} options
|
|
20
|
+
* UsePDF object parameters
|
|
21
|
+
*/
|
|
22
|
+
export declare function usePDF(src: PDFSrc | Ref<PDFSrc>, options?: PDFOptions): {
|
|
23
|
+
pdf: ShallowRef< PDFDocumentLoadingTask | undefined, PDFDocumentLoadingTask | undefined>;
|
|
24
|
+
pages: ShallowRef<number, number>;
|
|
25
|
+
info: ShallowRef<{}, {}> | ShallowRef<PDFInfo, PDFInfo>;
|
|
26
|
+
print: (dpi?: number, filename?: string) => Promise<void>;
|
|
27
|
+
download: (filename?: string) => Promise<void>;
|
|
28
|
+
getPDFDestination: (destination: string | any[] | null) => Promise<PDFDestination | null>;
|
|
29
|
+
processLoadingTask: (source: any) => Promise<void>;
|
|
30
|
+
};
|