@webx-ui/core 0.12.0 → 0.14.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.
@@ -0,0 +1,146 @@
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
+ filters: boolean;
47
+ resizable: boolean;
48
+ minSize: number;
49
+ maxWidth: number;
50
+ saveLabel: string;
51
+ cancelLabel: string;
52
+ ratio: import('..').ImageEditorRatio;
53
+ fileName: string;
54
+ aspect: number;
55
+ ratios: (import('..').ImageEditorRatio | import('..').ImageEditorRatioOption)[];
56
+ rotatable: boolean;
57
+ flippable: boolean;
58
+ maxHeight: number;
59
+ quality: number;
60
+ crossOrigin: "anonymous" | "use-credentials" | "";
61
+ resetLabel: string;
62
+ rotateLeftLabel: string;
63
+ rotateRightLabel: string;
64
+ flipHorizontalLabel: string;
65
+ flipVerticalLabel: string;
66
+ ratioLabel: string;
67
+ cropLabel: string;
68
+ outputLabel: string;
69
+ outputHint: string;
70
+ widthLabel: string;
71
+ heightLabel: string;
72
+ adjustLabel: string;
73
+ brightnessLabel: string;
74
+ contrastLabel: string;
75
+ saturationLabel: string;
76
+ monoLabel: string;
77
+ freeLabel: string;
78
+ originalLabel: string;
79
+ errorText: string;
80
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
81
+ stage: HTMLDivElement;
82
+ frame: HTMLDivElement;
83
+ image: HTMLImageElement;
84
+ cropBox: HTMLDivElement;
85
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
86
+ P: {};
87
+ B: {};
88
+ D: {};
89
+ C: {};
90
+ M: {};
91
+ Defaults: {};
92
+ }, Readonly<import('..').ImageEditorProps> & Readonly<{
93
+ onCrop?: ((crop: import('..').ImageEditorCrop) => any) | undefined;
94
+ onError?: ((error: unknown) => any) | undefined;
95
+ onCancel?: (() => any) | undefined;
96
+ onLoad?: ((size: {
97
+ width: number;
98
+ height: number;
99
+ }) => any) | undefined;
100
+ onSave?: ((result: ImageEditorResult) => any) | undefined;
101
+ }>, {
102
+ apply: () => Promise<ImageEditorResult | undefined>;
103
+ reset: () => void;
104
+ crop: import('vue').ComputedRef<import('..').ImageEditorCrop>;
105
+ }, {}, {}, {}, {
106
+ disabled: boolean;
107
+ footer: boolean;
108
+ background: string;
109
+ format: "auto" | "image/jpeg" | "image/png" | "image/webp";
110
+ filters: boolean;
111
+ resizable: boolean;
112
+ minSize: number;
113
+ maxWidth: number;
114
+ saveLabel: string;
115
+ cancelLabel: string;
116
+ ratio: import('..').ImageEditorRatio;
117
+ fileName: string;
118
+ aspect: number;
119
+ ratios: (import('..').ImageEditorRatio | import('..').ImageEditorRatioOption)[];
120
+ rotatable: boolean;
121
+ flippable: boolean;
122
+ maxHeight: number;
123
+ quality: number;
124
+ crossOrigin: "anonymous" | "use-credentials" | "";
125
+ resetLabel: string;
126
+ rotateLeftLabel: string;
127
+ rotateRightLabel: string;
128
+ flipHorizontalLabel: string;
129
+ flipVerticalLabel: string;
130
+ ratioLabel: string;
131
+ cropLabel: string;
132
+ outputLabel: string;
133
+ outputHint: string;
134
+ widthLabel: string;
135
+ heightLabel: string;
136
+ adjustLabel: string;
137
+ brightnessLabel: string;
138
+ contrastLabel: string;
139
+ saturationLabel: string;
140
+ monoLabel: string;
141
+ freeLabel: string;
142
+ originalLabel: string;
143
+ errorText: string;
144
+ }> | null;
145
+ }, any>;
146
+ export default _default;