@mythpe/quasar-ui-qui 0.5.47 → 0.5.49
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,240 @@
|
|
|
1
|
+
import { MSignaturePadProps as Props, SignaturePadWaterMark } from './MSignaturePad';
|
|
2
|
+
import { MaybeRefOrGetter, MaybeRef, Ref, DefineComponent, ExtractPropTypes, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
3
|
+
import { FieldMeta, FieldState, FieldValidator, FieldContext, FieldOptions } from 'vee-validate';
|
|
4
|
+
interface P {
|
|
5
|
+
name: Props['name'];
|
|
6
|
+
clearOnResize?: Props['clearOnResize'];
|
|
7
|
+
large?: Props['large'];
|
|
8
|
+
disabled?: Props['disabled'];
|
|
9
|
+
required?: Props['required'];
|
|
10
|
+
color?: Props['color'];
|
|
11
|
+
bg?: Props['bg'];
|
|
12
|
+
height?: Props['height'];
|
|
13
|
+
width?: Props['width'];
|
|
14
|
+
label?: Props['label'];
|
|
15
|
+
center?: Props['center'];
|
|
16
|
+
labelProps?: Props['labelProps'];
|
|
17
|
+
noBtn?: Props['noBtn'];
|
|
18
|
+
waterMark?: Props['waterMark'];
|
|
19
|
+
viewMode?: Props['viewMode'];
|
|
20
|
+
fieldOptions?: Props['fieldOptions'];
|
|
21
|
+
confirmedIcon?: Props['confirmedIcon'];
|
|
22
|
+
}
|
|
23
|
+
type __VLS_Props = P;
|
|
24
|
+
type __VLS_ModelProps = {
|
|
25
|
+
modelValue?: Props['modelValue'];
|
|
26
|
+
'url'?: Props['url'];
|
|
27
|
+
};
|
|
28
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
29
|
+
declare var __VLS_8: {
|
|
30
|
+
type?: string | undefined;
|
|
31
|
+
label?: MaybeRefOrGetter<string | undefined>;
|
|
32
|
+
name: MaybeRef<string>;
|
|
33
|
+
errorMessage: Ref<string | undefined>;
|
|
34
|
+
checked?: Ref<boolean> | undefined;
|
|
35
|
+
value: Ref<string | null | undefined, string | null | undefined>;
|
|
36
|
+
meta: FieldMeta<string | null | undefined>;
|
|
37
|
+
errors: Ref<string[]>;
|
|
38
|
+
bails?: boolean | undefined;
|
|
39
|
+
keepValueOnUnmount?: MaybeRefOrGetter<boolean | undefined>;
|
|
40
|
+
checkedValue?: MaybeRefOrGetter<string | null | undefined>;
|
|
41
|
+
uncheckedValue?: MaybeRefOrGetter<string | null | undefined>;
|
|
42
|
+
resetField: (state?: Partial< FieldState<string | null | undefined>> | undefined) => void;
|
|
43
|
+
handleReset: () => void;
|
|
44
|
+
validate: FieldValidator<string | null | undefined>;
|
|
45
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
46
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
47
|
+
setState: (state: Partial< FieldState<string | null | undefined>>) => void;
|
|
48
|
+
setTouched: (isTouched: boolean) => void;
|
|
49
|
+
setErrors: (message: string | string[]) => void;
|
|
50
|
+
setValue: (value: string | null | undefined, shouldValidate?: boolean) => void;
|
|
51
|
+
confirmed: boolean;
|
|
52
|
+
}, __VLS_32: {
|
|
53
|
+
width: string;
|
|
54
|
+
height: string;
|
|
55
|
+
reset: () => void;
|
|
56
|
+
save: (type: "image/jpeg" | "image/svg+xml") => void;
|
|
57
|
+
clear: () => void;
|
|
58
|
+
undo: () => void;
|
|
59
|
+
confirmed: boolean;
|
|
60
|
+
type?: string | undefined;
|
|
61
|
+
label?: MaybeRefOrGetter<string | undefined>;
|
|
62
|
+
name: MaybeRef<string>;
|
|
63
|
+
errorMessage: Ref<string | undefined>;
|
|
64
|
+
checked?: Ref<boolean> | undefined;
|
|
65
|
+
value: Ref<string | null | undefined, string | null | undefined>;
|
|
66
|
+
meta: FieldMeta<string | null | undefined>;
|
|
67
|
+
errors: Ref<string[]>;
|
|
68
|
+
bails?: boolean | undefined;
|
|
69
|
+
keepValueOnUnmount?: MaybeRefOrGetter<boolean | undefined>;
|
|
70
|
+
checkedValue?: MaybeRefOrGetter<string | null | undefined>;
|
|
71
|
+
uncheckedValue?: MaybeRefOrGetter<string | null | undefined>;
|
|
72
|
+
resetField: (state?: Partial< FieldState<string | null | undefined>> | undefined) => void;
|
|
73
|
+
handleReset: () => void;
|
|
74
|
+
validate: FieldValidator<string | null | undefined>;
|
|
75
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
76
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
77
|
+
setState: (state: Partial< FieldState<string | null | undefined>>) => void;
|
|
78
|
+
setTouched: (isTouched: boolean) => void;
|
|
79
|
+
setErrors: (message: string | string[]) => void;
|
|
80
|
+
setValue: (value: string | null | undefined, shouldValidate?: boolean) => void;
|
|
81
|
+
}, __VLS_52: {
|
|
82
|
+
type?: string | undefined;
|
|
83
|
+
label?: MaybeRefOrGetter<string | undefined>;
|
|
84
|
+
name: MaybeRef<string>;
|
|
85
|
+
errorMessage: Ref<string | undefined>;
|
|
86
|
+
checked?: Ref<boolean> | undefined;
|
|
87
|
+
value: Ref<string | null | undefined, string | null | undefined>;
|
|
88
|
+
meta: FieldMeta<string | null | undefined>;
|
|
89
|
+
errors: Ref<string[]>;
|
|
90
|
+
bails?: boolean | undefined;
|
|
91
|
+
keepValueOnUnmount?: MaybeRefOrGetter<boolean | undefined>;
|
|
92
|
+
checkedValue?: MaybeRefOrGetter<string | null | undefined>;
|
|
93
|
+
uncheckedValue?: MaybeRefOrGetter<string | null | undefined>;
|
|
94
|
+
resetField: (state?: Partial< FieldState<string | null | undefined>> | undefined) => void;
|
|
95
|
+
handleReset: () => void;
|
|
96
|
+
validate: FieldValidator<string | null | undefined>;
|
|
97
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
98
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
99
|
+
setState: (state: Partial< FieldState<string | null | undefined>>) => void;
|
|
100
|
+
setTouched: (isTouched: boolean) => void;
|
|
101
|
+
setErrors: (message: string | string[]) => void;
|
|
102
|
+
setValue: (value: string | null | undefined, shouldValidate?: boolean) => void;
|
|
103
|
+
confirmed: boolean;
|
|
104
|
+
}, __VLS_111: {
|
|
105
|
+
type?: string | undefined;
|
|
106
|
+
label?: MaybeRefOrGetter<string | undefined>;
|
|
107
|
+
name: MaybeRef<string>;
|
|
108
|
+
errorMessage: Ref<string | undefined>;
|
|
109
|
+
checked?: Ref<boolean> | undefined;
|
|
110
|
+
value: Ref<string | null | undefined, string | null | undefined>;
|
|
111
|
+
meta: FieldMeta<string | null | undefined>;
|
|
112
|
+
errors: Ref<string[]>;
|
|
113
|
+
bails?: boolean | undefined;
|
|
114
|
+
keepValueOnUnmount?: MaybeRefOrGetter<boolean | undefined>;
|
|
115
|
+
checkedValue?: MaybeRefOrGetter<string | null | undefined>;
|
|
116
|
+
uncheckedValue?: MaybeRefOrGetter<string | null | undefined>;
|
|
117
|
+
resetField: (state?: Partial< FieldState<string | null | undefined>> | undefined) => void;
|
|
118
|
+
handleReset: () => void;
|
|
119
|
+
validate: FieldValidator<string | null | undefined>;
|
|
120
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
121
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
122
|
+
setState: (state: Partial< FieldState<string | null | undefined>>) => void;
|
|
123
|
+
setTouched: (isTouched: boolean) => void;
|
|
124
|
+
setErrors: (message: string | string[]) => void;
|
|
125
|
+
setValue: (value: string | null | undefined, shouldValidate?: boolean) => void;
|
|
126
|
+
confirmed: boolean;
|
|
127
|
+
};
|
|
128
|
+
type __VLS_Slots = {} & {
|
|
129
|
+
'top-input'?: (props: typeof __VLS_8) => any;
|
|
130
|
+
} & {
|
|
131
|
+
pad?: (props: typeof __VLS_32) => any;
|
|
132
|
+
} & {
|
|
133
|
+
default?: (props: typeof __VLS_52) => any;
|
|
134
|
+
} & {
|
|
135
|
+
'bottom-input'?: (props: typeof __VLS_111) => any;
|
|
136
|
+
};
|
|
137
|
+
declare const __VLS_base: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
138
|
+
name: string;
|
|
139
|
+
clearOnResize: boolean;
|
|
140
|
+
large: boolean;
|
|
141
|
+
disabled: boolean;
|
|
142
|
+
required: boolean;
|
|
143
|
+
color: string;
|
|
144
|
+
bg: string;
|
|
145
|
+
height: string;
|
|
146
|
+
width: string;
|
|
147
|
+
label: undefined;
|
|
148
|
+
center: boolean;
|
|
149
|
+
labelProps: undefined;
|
|
150
|
+
noBtn: boolean;
|
|
151
|
+
waterMark: undefined;
|
|
152
|
+
fieldOptions: undefined;
|
|
153
|
+
viewMode: boolean;
|
|
154
|
+
confirmedIcon: undefined;
|
|
155
|
+
}>>, {
|
|
156
|
+
reset: () => void;
|
|
157
|
+
save: (type: "image/jpeg" | "image/svg+xml") => void;
|
|
158
|
+
clear: () => void;
|
|
159
|
+
undo: () => void;
|
|
160
|
+
disabled: ComputedRef<boolean>;
|
|
161
|
+
isEmpty: () => boolean;
|
|
162
|
+
addWaterMark: (opt: SignaturePadWaterMark) => any;
|
|
163
|
+
fromDataURL: (url: string) => any;
|
|
164
|
+
padRef: Readonly< ShallowRef<any>>;
|
|
165
|
+
field: FieldContext<string | null | undefined>;
|
|
166
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
167
|
+
save: (value: string | null) => void;
|
|
168
|
+
clear: () => void;
|
|
169
|
+
undo: () => void;
|
|
170
|
+
"update:modelValue": (value: string | null | undefined) => void;
|
|
171
|
+
"update:url": (value: string | null | undefined) => void;
|
|
172
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
173
|
+
name: string;
|
|
174
|
+
clearOnResize: boolean;
|
|
175
|
+
large: boolean;
|
|
176
|
+
disabled: boolean;
|
|
177
|
+
required: boolean;
|
|
178
|
+
color: string;
|
|
179
|
+
bg: string;
|
|
180
|
+
height: string;
|
|
181
|
+
width: string;
|
|
182
|
+
label: undefined;
|
|
183
|
+
center: boolean;
|
|
184
|
+
labelProps: undefined;
|
|
185
|
+
noBtn: boolean;
|
|
186
|
+
waterMark: undefined;
|
|
187
|
+
fieldOptions: undefined;
|
|
188
|
+
viewMode: boolean;
|
|
189
|
+
confirmedIcon: undefined;
|
|
190
|
+
}>>> & Readonly<{
|
|
191
|
+
onClear?: (() => any) | undefined;
|
|
192
|
+
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
193
|
+
onUndo?: (() => any) | undefined;
|
|
194
|
+
onSave?: ((value: string | null) => any) | undefined;
|
|
195
|
+
"onUpdate:url"?: ((value: string | null | undefined) => any) | undefined;
|
|
196
|
+
}>, {
|
|
197
|
+
color: string;
|
|
198
|
+
label: string | null;
|
|
199
|
+
name: Props["name"];
|
|
200
|
+
disabled: boolean;
|
|
201
|
+
height: string;
|
|
202
|
+
required: boolean;
|
|
203
|
+
width: string;
|
|
204
|
+
center: boolean;
|
|
205
|
+
fieldOptions: MaybeRefOrGetter<Partial< FieldOptions<unknown>>>;
|
|
206
|
+
viewMode: boolean;
|
|
207
|
+
large: boolean;
|
|
208
|
+
bg: string;
|
|
209
|
+
clearOnResize: boolean;
|
|
210
|
+
labelProps: Record<string, any>;
|
|
211
|
+
noBtn: boolean;
|
|
212
|
+
waterMark: SignaturePadWaterMark;
|
|
213
|
+
confirmedIcon: string | null;
|
|
214
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
215
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
216
|
+
declare const _default: typeof __VLS_export;
|
|
217
|
+
export default _default;
|
|
218
|
+
type __VLS_TypePropsToOption<T> = {
|
|
219
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
220
|
+
type: PropType<Required<T>[K]>;
|
|
221
|
+
} : {
|
|
222
|
+
type: PropType<T[K]>;
|
|
223
|
+
required: true;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
type __VLS_WithDefaults<P, D> = {
|
|
227
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
228
|
+
default: D[K];
|
|
229
|
+
}> : P[K];
|
|
230
|
+
};
|
|
231
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
232
|
+
new (): {
|
|
233
|
+
$slots: S;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
237
|
+
[K in keyof T]: T[K];
|
|
238
|
+
} : {
|
|
239
|
+
[K in keyof T as K]: T[K];
|
|
240
|
+
}) & {};
|