@getblock/common 0.1.77 → 0.1.78
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/cn.271f0152.js +31 -0
- package/dist/en.df69dcda.js +31 -0
- package/dist/getblock-common.es.ts +1740 -1483
- package/dist/getblock-common.umd.ts +3 -3
- package/dist/src/components/contactFormNew/ContactFormNew.vue.d.ts +501 -0
- package/dist/src/components/contactFormNew/locales/cn.d.ts +2 -0
- package/dist/src/components/contactFormNew/locales/en.d.ts +2 -0
- package/dist/src/components/contactFormNew/type/shared.d.ts +30 -0
- package/dist/src/components/contactFormNew/utils/useTexts.d.ts +32 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ColorModeType, LocaleType } from '../../components/contactFormNew/type/shared';
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
locale: {
|
|
6
|
+
type: PropType<LocaleType>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
colorMode: {
|
|
10
|
+
type: PropType<ColorModeType>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
isTitleEmpty: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
isButtonDisabled: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>, {
|
|
26
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
locale: {
|
|
28
|
+
type: PropType<LocaleType>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
colorMode: {
|
|
32
|
+
type: PropType<ColorModeType>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
title: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
isTitleEmpty: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
isButtonDisabled: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
}>> & Readonly<{
|
|
48
|
+
onContactFormSent?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}> & {}>;
|
|
50
|
+
emits: (event: "contactFormSent", ...args: any[]) => void;
|
|
51
|
+
getText: import("vue").ComputedRef<{
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
54
|
+
form: {
|
|
55
|
+
placeholders: {
|
|
56
|
+
name: string;
|
|
57
|
+
company: string;
|
|
58
|
+
email: string;
|
|
59
|
+
contact: string;
|
|
60
|
+
textMessage: string;
|
|
61
|
+
};
|
|
62
|
+
errors: {
|
|
63
|
+
name: string;
|
|
64
|
+
company: string;
|
|
65
|
+
email: {
|
|
66
|
+
empty: string;
|
|
67
|
+
noValid: string;
|
|
68
|
+
};
|
|
69
|
+
contact: string;
|
|
70
|
+
textMessage: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
button: string;
|
|
74
|
+
agreement: {
|
|
75
|
+
1: string;
|
|
76
|
+
2: string;
|
|
77
|
+
};
|
|
78
|
+
} | undefined>;
|
|
79
|
+
loadTexts: (locale: LocaleType) => Promise<void>;
|
|
80
|
+
name: import("vue").Ref<string, string>;
|
|
81
|
+
nameError: import("vue").Ref<boolean, boolean>;
|
|
82
|
+
company: import("vue").Ref<string, string>;
|
|
83
|
+
companyError: import("vue").Ref<boolean, boolean>;
|
|
84
|
+
email: import("vue").Ref<string, string>;
|
|
85
|
+
emailError: import("vue").Ref<boolean, boolean>;
|
|
86
|
+
emailErrorType: import("vue").Ref<"invalid" | "empty" | null, "invalid" | "empty" | null>;
|
|
87
|
+
contact: import("vue").Ref<string, string>;
|
|
88
|
+
contactError: import("vue").Ref<boolean, boolean>;
|
|
89
|
+
textMessage: import("vue").Ref<string, string>;
|
|
90
|
+
textMessageError: import("vue").Ref<boolean, boolean>;
|
|
91
|
+
isSendButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
92
|
+
getErrorText: (inputName: string) => string | undefined;
|
|
93
|
+
checkInputIsValid: (inputName: string) => void;
|
|
94
|
+
validateAllFields: () => boolean;
|
|
95
|
+
sendContactForm: () => void;
|
|
96
|
+
goToOuterLink: (link: string, event: Event) => void;
|
|
97
|
+
readonly GetBlockUIButton: import("vue").DefineComponent<{
|
|
98
|
+
disabled: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
mainType: {
|
|
103
|
+
type: PropType<import("@getblock/core/dist/components/button/Button.types").ButtonMainTypeProps>;
|
|
104
|
+
default: string;
|
|
105
|
+
validator: (value: import("@getblock/core/dist/components/button/Button.types").ButtonMainTypeProps) => boolean;
|
|
106
|
+
};
|
|
107
|
+
colorType: {
|
|
108
|
+
type: PropType<import("@getblock/core/dist/components/button/Button.types").ButtonColorTypeProps>;
|
|
109
|
+
default: string;
|
|
110
|
+
validator: (value: import("@getblock/core/dist/components/button/Button.types").ButtonColorTypeProps) => boolean;
|
|
111
|
+
};
|
|
112
|
+
sizeType: {
|
|
113
|
+
type: PropType<import("@getblock/core/dist/components/button/Button.types").ButtonSizeTypeProps>;
|
|
114
|
+
default: string;
|
|
115
|
+
validator: (value: import("@getblock/core/dist/components/button/Button.types").ButtonSizeTypeProps) => boolean;
|
|
116
|
+
};
|
|
117
|
+
iconButton: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
}, {
|
|
122
|
+
props: any;
|
|
123
|
+
classObject: import("vue").ComputedRef<object>;
|
|
124
|
+
readonly button: CSSModuleClasses;
|
|
125
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
|
+
disabled: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
mainType: {
|
|
131
|
+
type: PropType<import("@getblock/core/dist/components/button/Button.types").ButtonMainTypeProps>;
|
|
132
|
+
default: string;
|
|
133
|
+
validator: (value: import("@getblock/core/dist/components/button/Button.types").ButtonMainTypeProps) => boolean;
|
|
134
|
+
};
|
|
135
|
+
colorType: {
|
|
136
|
+
type: PropType<import("@getblock/core/dist/components/button/Button.types").ButtonColorTypeProps>;
|
|
137
|
+
default: string;
|
|
138
|
+
validator: (value: import("@getblock/core/dist/components/button/Button.types").ButtonColorTypeProps) => boolean;
|
|
139
|
+
};
|
|
140
|
+
sizeType: {
|
|
141
|
+
type: PropType<import("@getblock/core/dist/components/button/Button.types").ButtonSizeTypeProps>;
|
|
142
|
+
default: string;
|
|
143
|
+
validator: (value: import("@getblock/core/dist/components/button/Button.types").ButtonSizeTypeProps) => boolean;
|
|
144
|
+
};
|
|
145
|
+
iconButton: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
}>>, {
|
|
150
|
+
colorType: import("@getblock/core/dist/components/button/Button.types").ButtonColorTypeProps;
|
|
151
|
+
sizeType: import("@getblock/core/dist/components/button/Button.types").ButtonSizeTypeProps;
|
|
152
|
+
disabled: boolean;
|
|
153
|
+
mainType: import("@getblock/core/dist/components/button/Button.types").ButtonMainTypeProps;
|
|
154
|
+
iconButton: boolean;
|
|
155
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
156
|
+
readonly GetBlockUIInput: import("vue").DefineComponent<{
|
|
157
|
+
disabled: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
error: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
placeholder: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
inputName: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
required: true;
|
|
172
|
+
};
|
|
173
|
+
inputValue: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
required: true;
|
|
176
|
+
};
|
|
177
|
+
inputType: {
|
|
178
|
+
type: PropType<import("@getblock/core/dist/components/input/types").InputTypeProps>;
|
|
179
|
+
default: string;
|
|
180
|
+
validator: (value: import("@getblock/core/dist/components/input/types").InputTypeProps) => boolean;
|
|
181
|
+
};
|
|
182
|
+
colorType: {
|
|
183
|
+
type: PropType<import("@getblock/core/dist/components/input/types").ColorTypeProps>;
|
|
184
|
+
default: string;
|
|
185
|
+
validator: (value: import("@getblock/core/dist/components/input/types").ColorTypeProps) => boolean;
|
|
186
|
+
};
|
|
187
|
+
sizeType: {
|
|
188
|
+
type: PropType<import("@getblock/core/dist/components/input/types").SizeTypeProps>;
|
|
189
|
+
default: string;
|
|
190
|
+
validator: (value: import("@getblock/core/dist/components/input/types").SizeTypeProps) => boolean;
|
|
191
|
+
};
|
|
192
|
+
iconName: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
196
|
+
statusIcon: {
|
|
197
|
+
type: PropType<import("@getblock/core/dist/components/input/types").StatusIconProps>;
|
|
198
|
+
default: string;
|
|
199
|
+
validator: (value: import("@getblock/core/dist/components/input/types").StatusIconProps) => boolean;
|
|
200
|
+
};
|
|
201
|
+
customEventRightButton: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
rightIconName: {
|
|
206
|
+
type: StringConstructor;
|
|
207
|
+
default: string;
|
|
208
|
+
};
|
|
209
|
+
tabIndex: {
|
|
210
|
+
type: NumberConstructor;
|
|
211
|
+
default: number;
|
|
212
|
+
};
|
|
213
|
+
}, {
|
|
214
|
+
emits: (event: "resetError" | "update:inputValue" | "focusOut" | "onClickRightButton", ...args: any[]) => void;
|
|
215
|
+
props: any;
|
|
216
|
+
iconStatus: import("vue").ComputedRef<import("@getblock/core/dist/components/input/types").IconStatus>;
|
|
217
|
+
inputRef: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
218
|
+
isFocused: import("vue").Ref<boolean, boolean>;
|
|
219
|
+
inputType: import("vue").Ref<import("@getblock/core/dist/components/input/types").InputTypeProps, import("@getblock/core/dist/components/input/types").InputTypeProps>;
|
|
220
|
+
value: import("vue").WritableComputedRef<string, string>;
|
|
221
|
+
iconRight: import("vue").ComputedRef<string>;
|
|
222
|
+
classObject: import("vue").ComputedRef<object>;
|
|
223
|
+
hintClassObject: import("vue").ComputedRef<object>;
|
|
224
|
+
labelClassObject: import("vue").ComputedRef<object>;
|
|
225
|
+
clearInput: () => void;
|
|
226
|
+
changeTypeInput: () => void;
|
|
227
|
+
eventRightButton: () => void;
|
|
228
|
+
onFocus: () => void;
|
|
229
|
+
onFocusOut: () => void;
|
|
230
|
+
slots: Readonly<{
|
|
231
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
Icon: import("vue").DefineComponent<{
|
|
234
|
+
iconName: {
|
|
235
|
+
type: StringConstructor;
|
|
236
|
+
required: true;
|
|
237
|
+
};
|
|
238
|
+
colorType: {
|
|
239
|
+
type: PropType<import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps>;
|
|
240
|
+
default: string;
|
|
241
|
+
validator: (value: import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps) => boolean;
|
|
242
|
+
};
|
|
243
|
+
sizeType: {
|
|
244
|
+
type: PropType<import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps>;
|
|
245
|
+
default: string;
|
|
246
|
+
validator: (value: import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
247
|
+
};
|
|
248
|
+
}, {
|
|
249
|
+
props: any;
|
|
250
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
251
|
+
classObject: import("vue").ComputedRef<object>;
|
|
252
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
253
|
+
iconName: {
|
|
254
|
+
type: StringConstructor;
|
|
255
|
+
required: true;
|
|
256
|
+
};
|
|
257
|
+
colorType: {
|
|
258
|
+
type: PropType<import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps>;
|
|
259
|
+
default: string;
|
|
260
|
+
validator: (value: import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps) => boolean;
|
|
261
|
+
};
|
|
262
|
+
sizeType: {
|
|
263
|
+
type: PropType<import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps>;
|
|
264
|
+
default: string;
|
|
265
|
+
validator: (value: import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
266
|
+
};
|
|
267
|
+
}>>, {
|
|
268
|
+
colorType: import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps;
|
|
269
|
+
sizeType: import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps;
|
|
270
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
271
|
+
readonly input: CSSModuleClasses;
|
|
272
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("resetError" | "update:inputValue" | "focusOut" | "onClickRightButton")[], "resetError" | "update:inputValue" | "focusOut" | "onClickRightButton", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
273
|
+
disabled: {
|
|
274
|
+
type: BooleanConstructor;
|
|
275
|
+
default: boolean;
|
|
276
|
+
};
|
|
277
|
+
error: {
|
|
278
|
+
type: BooleanConstructor;
|
|
279
|
+
default: boolean;
|
|
280
|
+
};
|
|
281
|
+
placeholder: {
|
|
282
|
+
type: StringConstructor;
|
|
283
|
+
default: string;
|
|
284
|
+
};
|
|
285
|
+
inputName: {
|
|
286
|
+
type: StringConstructor;
|
|
287
|
+
required: true;
|
|
288
|
+
};
|
|
289
|
+
inputValue: {
|
|
290
|
+
type: StringConstructor;
|
|
291
|
+
required: true;
|
|
292
|
+
};
|
|
293
|
+
inputType: {
|
|
294
|
+
type: PropType<import("@getblock/core/dist/components/input/types").InputTypeProps>;
|
|
295
|
+
default: string;
|
|
296
|
+
validator: (value: import("@getblock/core/dist/components/input/types").InputTypeProps) => boolean;
|
|
297
|
+
};
|
|
298
|
+
colorType: {
|
|
299
|
+
type: PropType<import("@getblock/core/dist/components/input/types").ColorTypeProps>;
|
|
300
|
+
default: string;
|
|
301
|
+
validator: (value: import("@getblock/core/dist/components/input/types").ColorTypeProps) => boolean;
|
|
302
|
+
};
|
|
303
|
+
sizeType: {
|
|
304
|
+
type: PropType<import("@getblock/core/dist/components/input/types").SizeTypeProps>;
|
|
305
|
+
default: string;
|
|
306
|
+
validator: (value: import("@getblock/core/dist/components/input/types").SizeTypeProps) => boolean;
|
|
307
|
+
};
|
|
308
|
+
iconName: {
|
|
309
|
+
type: StringConstructor;
|
|
310
|
+
default: string;
|
|
311
|
+
};
|
|
312
|
+
statusIcon: {
|
|
313
|
+
type: PropType<import("@getblock/core/dist/components/input/types").StatusIconProps>;
|
|
314
|
+
default: string;
|
|
315
|
+
validator: (value: import("@getblock/core/dist/components/input/types").StatusIconProps) => boolean;
|
|
316
|
+
};
|
|
317
|
+
customEventRightButton: {
|
|
318
|
+
type: BooleanConstructor;
|
|
319
|
+
default: boolean;
|
|
320
|
+
};
|
|
321
|
+
rightIconName: {
|
|
322
|
+
type: StringConstructor;
|
|
323
|
+
default: string;
|
|
324
|
+
};
|
|
325
|
+
tabIndex: {
|
|
326
|
+
type: NumberConstructor;
|
|
327
|
+
default: number;
|
|
328
|
+
};
|
|
329
|
+
}>> & {
|
|
330
|
+
onResetError?: ((...args: any[]) => any) | undefined;
|
|
331
|
+
"onUpdate:inputValue"?: ((...args: any[]) => any) | undefined;
|
|
332
|
+
onFocusOut?: ((...args: any[]) => any) | undefined;
|
|
333
|
+
onOnClickRightButton?: ((...args: any[]) => any) | undefined;
|
|
334
|
+
}, {
|
|
335
|
+
error: boolean;
|
|
336
|
+
colorType: import("@getblock/core/dist/components/input/types").ColorTypeProps;
|
|
337
|
+
iconName: string;
|
|
338
|
+
sizeType: import("@getblock/core/dist/components/input/types").SizeTypeProps;
|
|
339
|
+
disabled: boolean;
|
|
340
|
+
placeholder: string;
|
|
341
|
+
tabIndex: number;
|
|
342
|
+
inputType: import("@getblock/core/dist/components/input/types").InputTypeProps;
|
|
343
|
+
statusIcon: import("@getblock/core/dist/components/input/types").StatusIconProps;
|
|
344
|
+
customEventRightButton: boolean;
|
|
345
|
+
rightIconName: string;
|
|
346
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
347
|
+
readonly GetBlockUITextArea: import("vue").DefineComponent<{
|
|
348
|
+
disabled: {
|
|
349
|
+
type: BooleanConstructor;
|
|
350
|
+
default: boolean;
|
|
351
|
+
};
|
|
352
|
+
error: {
|
|
353
|
+
type: BooleanConstructor;
|
|
354
|
+
default: boolean;
|
|
355
|
+
};
|
|
356
|
+
placeholder: {
|
|
357
|
+
type: StringConstructor;
|
|
358
|
+
default: string;
|
|
359
|
+
};
|
|
360
|
+
inputName: {
|
|
361
|
+
type: StringConstructor;
|
|
362
|
+
required: true;
|
|
363
|
+
};
|
|
364
|
+
inputValue: {
|
|
365
|
+
type: StringConstructor;
|
|
366
|
+
required: true;
|
|
367
|
+
};
|
|
368
|
+
colorType: {
|
|
369
|
+
type: PropType<"fill" | "outline">;
|
|
370
|
+
default: string;
|
|
371
|
+
validator: (value: "fill" | "outline") => boolean;
|
|
372
|
+
};
|
|
373
|
+
tabIndex: {
|
|
374
|
+
type: NumberConstructor;
|
|
375
|
+
default: number;
|
|
376
|
+
};
|
|
377
|
+
}, {
|
|
378
|
+
emits: (event: "resetError" | "update:inputValue", ...args: any[]) => void;
|
|
379
|
+
props: any;
|
|
380
|
+
inputRef: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
381
|
+
isFocused: import("vue").Ref<boolean, boolean>;
|
|
382
|
+
maxMessageSymbols: import("vue").Ref<number, number>;
|
|
383
|
+
value: import("vue").WritableComputedRef<string, string>;
|
|
384
|
+
classObject: import("vue").ComputedRef<object>;
|
|
385
|
+
hintClassObject: import("vue").ComputedRef<object>;
|
|
386
|
+
labelClassObject: import("vue").ComputedRef<object>;
|
|
387
|
+
onFocus: () => void;
|
|
388
|
+
onFocusOut: () => void;
|
|
389
|
+
slots: Readonly<{
|
|
390
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
391
|
+
}>;
|
|
392
|
+
Icon: import("vue").DefineComponent<{
|
|
393
|
+
iconName: {
|
|
394
|
+
type: StringConstructor;
|
|
395
|
+
required: true;
|
|
396
|
+
};
|
|
397
|
+
colorType: {
|
|
398
|
+
type: PropType<import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps>;
|
|
399
|
+
default: string;
|
|
400
|
+
validator: (value: import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps) => boolean;
|
|
401
|
+
};
|
|
402
|
+
sizeType: {
|
|
403
|
+
type: PropType<import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps>;
|
|
404
|
+
default: string;
|
|
405
|
+
validator: (value: import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
406
|
+
};
|
|
407
|
+
}, {
|
|
408
|
+
props: any;
|
|
409
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
410
|
+
classObject: import("vue").ComputedRef<object>;
|
|
411
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
412
|
+
iconName: {
|
|
413
|
+
type: StringConstructor;
|
|
414
|
+
required: true;
|
|
415
|
+
};
|
|
416
|
+
colorType: {
|
|
417
|
+
type: PropType<import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps>;
|
|
418
|
+
default: string;
|
|
419
|
+
validator: (value: import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps) => boolean;
|
|
420
|
+
};
|
|
421
|
+
sizeType: {
|
|
422
|
+
type: PropType<import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps>;
|
|
423
|
+
default: string;
|
|
424
|
+
validator: (value: import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
425
|
+
};
|
|
426
|
+
}>>, {
|
|
427
|
+
colorType: import("@getblock/core/dist/components/icon/Icon.types").IconColorTypeProps;
|
|
428
|
+
sizeType: import("@getblock/core/dist/components/icon/Icon.types").IconSizeTypeProps;
|
|
429
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
430
|
+
readonly textarea: CSSModuleClasses;
|
|
431
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("resetError" | "update:inputValue")[], "resetError" | "update:inputValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
432
|
+
disabled: {
|
|
433
|
+
type: BooleanConstructor;
|
|
434
|
+
default: boolean;
|
|
435
|
+
};
|
|
436
|
+
error: {
|
|
437
|
+
type: BooleanConstructor;
|
|
438
|
+
default: boolean;
|
|
439
|
+
};
|
|
440
|
+
placeholder: {
|
|
441
|
+
type: StringConstructor;
|
|
442
|
+
default: string;
|
|
443
|
+
};
|
|
444
|
+
inputName: {
|
|
445
|
+
type: StringConstructor;
|
|
446
|
+
required: true;
|
|
447
|
+
};
|
|
448
|
+
inputValue: {
|
|
449
|
+
type: StringConstructor;
|
|
450
|
+
required: true;
|
|
451
|
+
};
|
|
452
|
+
colorType: {
|
|
453
|
+
type: PropType<"fill" | "outline">;
|
|
454
|
+
default: string;
|
|
455
|
+
validator: (value: "fill" | "outline") => boolean;
|
|
456
|
+
};
|
|
457
|
+
tabIndex: {
|
|
458
|
+
type: NumberConstructor;
|
|
459
|
+
default: number;
|
|
460
|
+
};
|
|
461
|
+
}>> & {
|
|
462
|
+
onResetError?: ((...args: any[]) => any) | undefined;
|
|
463
|
+
"onUpdate:inputValue"?: ((...args: any[]) => any) | undefined;
|
|
464
|
+
}, {
|
|
465
|
+
error: boolean;
|
|
466
|
+
colorType: "fill" | "outline";
|
|
467
|
+
disabled: boolean;
|
|
468
|
+
placeholder: string;
|
|
469
|
+
tabIndex: number;
|
|
470
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
471
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "contactFormSent"[], "contactFormSent", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
472
|
+
locale: {
|
|
473
|
+
type: PropType<LocaleType>;
|
|
474
|
+
default: string;
|
|
475
|
+
};
|
|
476
|
+
colorMode: {
|
|
477
|
+
type: PropType<ColorModeType>;
|
|
478
|
+
default: string;
|
|
479
|
+
};
|
|
480
|
+
title: {
|
|
481
|
+
type: StringConstructor;
|
|
482
|
+
default: string;
|
|
483
|
+
};
|
|
484
|
+
isTitleEmpty: {
|
|
485
|
+
type: BooleanConstructor;
|
|
486
|
+
default: boolean;
|
|
487
|
+
};
|
|
488
|
+
isButtonDisabled: {
|
|
489
|
+
type: BooleanConstructor;
|
|
490
|
+
default: boolean;
|
|
491
|
+
};
|
|
492
|
+
}>> & Readonly<{
|
|
493
|
+
onContactFormSent?: ((...args: any[]) => any) | undefined;
|
|
494
|
+
}>, {
|
|
495
|
+
locale: LocaleType;
|
|
496
|
+
colorMode: ColorModeType;
|
|
497
|
+
title: string;
|
|
498
|
+
isTitleEmpty: boolean;
|
|
499
|
+
isButtonDisabled: boolean;
|
|
500
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
501
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare type LocaleType = 'en' | 'cn';
|
|
2
|
+
export declare type ColorModeType = 'light' | 'dark';
|
|
3
|
+
export interface IText {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
form: {
|
|
7
|
+
placeholders: {
|
|
8
|
+
name: string;
|
|
9
|
+
company: string;
|
|
10
|
+
email: string;
|
|
11
|
+
contact: string;
|
|
12
|
+
textMessage: string;
|
|
13
|
+
};
|
|
14
|
+
errors: {
|
|
15
|
+
name: string;
|
|
16
|
+
company: string;
|
|
17
|
+
email: {
|
|
18
|
+
empty: string;
|
|
19
|
+
noValid: string;
|
|
20
|
+
};
|
|
21
|
+
contact: string;
|
|
22
|
+
textMessage: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
button: string;
|
|
26
|
+
agreement: {
|
|
27
|
+
'1': string;
|
|
28
|
+
'2': string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LocaleType } from '../../../components/contactFormNew/type/shared';
|
|
2
|
+
export declare function useTexts(): {
|
|
3
|
+
getText: import("vue").ComputedRef<{
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
form: {
|
|
7
|
+
placeholders: {
|
|
8
|
+
name: string;
|
|
9
|
+
company: string;
|
|
10
|
+
email: string;
|
|
11
|
+
contact: string;
|
|
12
|
+
textMessage: string;
|
|
13
|
+
};
|
|
14
|
+
errors: {
|
|
15
|
+
name: string;
|
|
16
|
+
company: string;
|
|
17
|
+
email: {
|
|
18
|
+
empty: string;
|
|
19
|
+
noValid: string;
|
|
20
|
+
};
|
|
21
|
+
contact: string;
|
|
22
|
+
textMessage: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
button: string;
|
|
26
|
+
agreement: {
|
|
27
|
+
1: string;
|
|
28
|
+
2: string;
|
|
29
|
+
};
|
|
30
|
+
} | undefined>;
|
|
31
|
+
loadTexts: (locale: LocaleType) => Promise<void>;
|
|
32
|
+
};
|
|
@@ -5,6 +5,7 @@ export { default as GetBlockUINavbar } from './navbar/Navbar.vue';
|
|
|
5
5
|
export { default as GetBlockUIAnnouncement } from './announcement/Announcement.vue';
|
|
6
6
|
export { default as GetBlockUIOptionalAnnouncement } from './optionalAnnouncement/OptionalAnnouncement.vue';
|
|
7
7
|
export { default as GetBlockUiContactForm } from '../components/contactForm/ContactForm.vue';
|
|
8
|
+
export { default as GetBlockUiContactFormNew } from '../components/contactFormNew/ContactFormNew.vue';
|
|
8
9
|
export { default as GetBlockUIBlackFridayAnnouncement } from '../components/blackFridayAnnouncement/BlackFridayAnnouncement.vue';
|
|
9
10
|
export { default as GetBlockUIInfoModal } from '../components/infoModal/InfoModal.vue';
|
|
10
11
|
export { default as GetBlockUIEnterpriseModal } from '../components/enterpriseModal/EnterpriseModal.vue';
|