@webx-ui/core 0.12.0 → 0.13.0
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/components/Icon/icons.d.ts +4 -0
- package/dist/components/ImageEditor/ImageEditor.d.ts +67 -0
- package/dist/components/ImageEditor/crop.d.ts +46 -0
- package/dist/components/ImageEditor/index.d.ts +3 -0
- package/dist/components/ImageEditor/types.d.ts +128 -0
- package/dist/components/Kanban/Kanban.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/composables/imageEditor.d.ts +19 -0
- package/dist/composables/useModal.d.ts +4 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5390 -4795
- package/dist/index.js.map +1 -1
- package/dist/internal/ImageEditorDialog.d.ts +128 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { ImageEditorResult } from '../components/ImageEditor/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
src: string | Blob;
|
|
4
|
+
title?: string;
|
|
5
|
+
width?: number | string;
|
|
6
|
+
saveLabel?: string;
|
|
7
|
+
cancelLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
save: (result: ImageEditorResult) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onSave?: ((result: ImageEditorResult) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
title: string;
|
|
15
|
+
width: number | string;
|
|
16
|
+
saveLabel: string;
|
|
17
|
+
cancelLabel: string;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
editor: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').ImageEditorProps> & Readonly<{
|
|
20
|
+
onCrop?: ((crop: import('..').ImageEditorCrop) => any) | undefined;
|
|
21
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
22
|
+
onCancel?: (() => any) | undefined;
|
|
23
|
+
onLoad?: ((size: {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}) => any) | undefined;
|
|
27
|
+
onSave?: ((result: ImageEditorResult) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
apply: () => Promise<ImageEditorResult | undefined>;
|
|
30
|
+
reset: () => void;
|
|
31
|
+
crop: import('vue').ComputedRef<import('..').ImageEditorCrop>;
|
|
32
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
crop: (crop: import('..').ImageEditorCrop) => any;
|
|
34
|
+
error: (error: unknown) => any;
|
|
35
|
+
cancel: () => any;
|
|
36
|
+
load: (size: {
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
}) => any;
|
|
40
|
+
save: (result: ImageEditorResult) => any;
|
|
41
|
+
}, import('vue').PublicProps, {
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
footer: boolean;
|
|
44
|
+
background: string;
|
|
45
|
+
format: "auto" | "image/jpeg" | "image/png" | "image/webp";
|
|
46
|
+
resizable: boolean;
|
|
47
|
+
minSize: number;
|
|
48
|
+
maxWidth: number;
|
|
49
|
+
saveLabel: string;
|
|
50
|
+
cancelLabel: string;
|
|
51
|
+
ratio: import('..').ImageEditorRatio;
|
|
52
|
+
fileName: string;
|
|
53
|
+
aspect: number;
|
|
54
|
+
ratios: (import('..').ImageEditorRatio | import('..').ImageEditorRatioOption)[];
|
|
55
|
+
rotatable: boolean;
|
|
56
|
+
flippable: boolean;
|
|
57
|
+
maxHeight: number;
|
|
58
|
+
quality: number;
|
|
59
|
+
crossOrigin: "anonymous" | "use-credentials" | "";
|
|
60
|
+
resetLabel: string;
|
|
61
|
+
rotateLeftLabel: string;
|
|
62
|
+
rotateRightLabel: string;
|
|
63
|
+
flipHorizontalLabel: string;
|
|
64
|
+
flipVerticalLabel: string;
|
|
65
|
+
ratioLabel: string;
|
|
66
|
+
cropLabel: string;
|
|
67
|
+
widthLabel: string;
|
|
68
|
+
freeLabel: string;
|
|
69
|
+
originalLabel: string;
|
|
70
|
+
errorText: string;
|
|
71
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
72
|
+
stage: HTMLDivElement;
|
|
73
|
+
frame: HTMLDivElement;
|
|
74
|
+
image: HTMLImageElement;
|
|
75
|
+
cropBox: HTMLDivElement;
|
|
76
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
77
|
+
P: {};
|
|
78
|
+
B: {};
|
|
79
|
+
D: {};
|
|
80
|
+
C: {};
|
|
81
|
+
M: {};
|
|
82
|
+
Defaults: {};
|
|
83
|
+
}, Readonly<import('..').ImageEditorProps> & Readonly<{
|
|
84
|
+
onCrop?: ((crop: import('..').ImageEditorCrop) => any) | undefined;
|
|
85
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
86
|
+
onCancel?: (() => any) | undefined;
|
|
87
|
+
onLoad?: ((size: {
|
|
88
|
+
width: number;
|
|
89
|
+
height: number;
|
|
90
|
+
}) => any) | undefined;
|
|
91
|
+
onSave?: ((result: ImageEditorResult) => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
apply: () => Promise<ImageEditorResult | undefined>;
|
|
94
|
+
reset: () => void;
|
|
95
|
+
crop: import('vue').ComputedRef<import('..').ImageEditorCrop>;
|
|
96
|
+
}, {}, {}, {}, {
|
|
97
|
+
disabled: boolean;
|
|
98
|
+
footer: boolean;
|
|
99
|
+
background: string;
|
|
100
|
+
format: "auto" | "image/jpeg" | "image/png" | "image/webp";
|
|
101
|
+
resizable: boolean;
|
|
102
|
+
minSize: number;
|
|
103
|
+
maxWidth: number;
|
|
104
|
+
saveLabel: string;
|
|
105
|
+
cancelLabel: string;
|
|
106
|
+
ratio: import('..').ImageEditorRatio;
|
|
107
|
+
fileName: string;
|
|
108
|
+
aspect: number;
|
|
109
|
+
ratios: (import('..').ImageEditorRatio | import('..').ImageEditorRatioOption)[];
|
|
110
|
+
rotatable: boolean;
|
|
111
|
+
flippable: boolean;
|
|
112
|
+
maxHeight: number;
|
|
113
|
+
quality: number;
|
|
114
|
+
crossOrigin: "anonymous" | "use-credentials" | "";
|
|
115
|
+
resetLabel: string;
|
|
116
|
+
rotateLeftLabel: string;
|
|
117
|
+
rotateRightLabel: string;
|
|
118
|
+
flipHorizontalLabel: string;
|
|
119
|
+
flipVerticalLabel: string;
|
|
120
|
+
ratioLabel: string;
|
|
121
|
+
cropLabel: string;
|
|
122
|
+
widthLabel: string;
|
|
123
|
+
freeLabel: string;
|
|
124
|
+
originalLabel: string;
|
|
125
|
+
errorText: string;
|
|
126
|
+
}> | null;
|
|
127
|
+
}, any>;
|
|
128
|
+
export default _default;
|