@codemonster-ru/vueforge 0.15.0 → 0.17.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/README.md +67 -4
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +1385 -999
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/datepicker.test.d.ts +1 -0
- package/dist/package/components/__tests__/form-field.test.d.ts +1 -0
- package/dist/package/components/datepicker.vue.d.ts +41 -0
- package/dist/package/components/form-field.vue.d.ts +43 -0
- package/dist/package/config/theme-core.d.ts +74 -0
- package/dist/package/themes/default/components/datepicker.d.ts +52 -0
- package/dist/package/themes/default/components/form-field.d.ts +22 -0
- package/dist/package/themes/default/index.d.ts +72 -0
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
type Variant = 'filled' | 'outlined';
|
|
3
|
+
interface Props {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
readonly?: boolean;
|
|
8
|
+
min?: string;
|
|
9
|
+
max?: string;
|
|
10
|
+
locale?: string;
|
|
11
|
+
firstDayOfWeek?: number;
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
size?: Size;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
blur: (...args: any[]) => void;
|
|
17
|
+
change: (...args: any[]) => void;
|
|
18
|
+
focus: (...args: any[]) => void;
|
|
19
|
+
"update:modelValue": (...args: any[]) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
21
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
size: Size;
|
|
28
|
+
variant: Variant;
|
|
29
|
+
modelValue: string;
|
|
30
|
+
placeholder: string;
|
|
31
|
+
readonly: boolean;
|
|
32
|
+
min: string;
|
|
33
|
+
max: string;
|
|
34
|
+
locale: string;
|
|
35
|
+
firstDayOfWeek: number;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
37
|
+
root: HTMLDivElement;
|
|
38
|
+
control: HTMLButtonElement;
|
|
39
|
+
panel: HTMLDivElement;
|
|
40
|
+
}, HTMLDivElement>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
interface Props {
|
|
3
|
+
id?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
size?: Size;
|
|
10
|
+
}
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
label?(_: {}): any;
|
|
15
|
+
default?(_: {
|
|
16
|
+
id: string;
|
|
17
|
+
describedBy: string | undefined;
|
|
18
|
+
invalid: boolean;
|
|
19
|
+
required: boolean;
|
|
20
|
+
}): any;
|
|
21
|
+
hint?(_: {}): any;
|
|
22
|
+
error?(_: {}): any;
|
|
23
|
+
};
|
|
24
|
+
refs: {};
|
|
25
|
+
rootEl: HTMLDivElement;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
29
|
+
label: string;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
error: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
size: Size;
|
|
34
|
+
id: string;
|
|
35
|
+
hint: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -77,6 +77,27 @@ export type InputTokens = {
|
|
|
77
77
|
fontSize?: string;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
+
export type FormFieldTokens = {
|
|
81
|
+
gap?: string;
|
|
82
|
+
textColor?: string;
|
|
83
|
+
labelFontSize?: string;
|
|
84
|
+
labelColor?: string;
|
|
85
|
+
requiredColor?: string;
|
|
86
|
+
hintFontSize?: string;
|
|
87
|
+
hintColor?: string;
|
|
88
|
+
errorColor?: string;
|
|
89
|
+
disabledOpacity?: string;
|
|
90
|
+
small?: {
|
|
91
|
+
gap?: string;
|
|
92
|
+
labelFontSize?: string;
|
|
93
|
+
hintFontSize?: string;
|
|
94
|
+
};
|
|
95
|
+
large?: {
|
|
96
|
+
gap?: string;
|
|
97
|
+
labelFontSize?: string;
|
|
98
|
+
hintFontSize?: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
80
101
|
export type TextareaTokens = {
|
|
81
102
|
gap?: string;
|
|
82
103
|
fontSize?: string;
|
|
@@ -234,6 +255,57 @@ export type AutocompleteTokens = {
|
|
|
234
255
|
fontSize?: string;
|
|
235
256
|
};
|
|
236
257
|
};
|
|
258
|
+
export type DatePickerTokens = {
|
|
259
|
+
minWidth?: string;
|
|
260
|
+
fontSize?: string;
|
|
261
|
+
controlGap?: string;
|
|
262
|
+
chevronSize?: string;
|
|
263
|
+
padding?: string;
|
|
264
|
+
borderRadius?: string;
|
|
265
|
+
borderColor?: string;
|
|
266
|
+
backgroundColor?: string;
|
|
267
|
+
textColor?: string;
|
|
268
|
+
placeholderColor?: string;
|
|
269
|
+
focusBorderColor?: string;
|
|
270
|
+
hoverBorderColor?: string;
|
|
271
|
+
disabledOpacity?: string;
|
|
272
|
+
panelWidth?: string;
|
|
273
|
+
panelBackgroundColor?: string;
|
|
274
|
+
panelBorderColor?: string;
|
|
275
|
+
panelPadding?: string;
|
|
276
|
+
panelRadiusOffset?: string;
|
|
277
|
+
panelShadow?: string;
|
|
278
|
+
focusRingShadow?: string;
|
|
279
|
+
headerGap?: string;
|
|
280
|
+
headerPadding?: string;
|
|
281
|
+
monthLabelFontSize?: string;
|
|
282
|
+
monthLabelFontWeight?: string;
|
|
283
|
+
navButtonSize?: string;
|
|
284
|
+
navButtonRadius?: string;
|
|
285
|
+
navButtonFontSize?: string;
|
|
286
|
+
weekdayColor?: string;
|
|
287
|
+
weekdayFontSize?: string;
|
|
288
|
+
weekdaysMarginBottom?: string;
|
|
289
|
+
daysGap?: string;
|
|
290
|
+
daySize?: string;
|
|
291
|
+
dayFontSize?: string;
|
|
292
|
+
dayBorderRadius?: string;
|
|
293
|
+
dayHoverBackgroundColor?: string;
|
|
294
|
+
daySelectedBackgroundColor?: string;
|
|
295
|
+
daySelectedTextColor?: string;
|
|
296
|
+
dayMutedColor?: string;
|
|
297
|
+
dayTodayBorderColor?: string;
|
|
298
|
+
small?: {
|
|
299
|
+
padding?: string;
|
|
300
|
+
fontSize?: string;
|
|
301
|
+
daySize?: string;
|
|
302
|
+
};
|
|
303
|
+
large?: {
|
|
304
|
+
padding?: string;
|
|
305
|
+
fontSize?: string;
|
|
306
|
+
daySize?: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
237
309
|
export type SwitchTokens = {
|
|
238
310
|
width?: string;
|
|
239
311
|
height?: string;
|
|
@@ -328,6 +400,7 @@ export type ThemeComponentTokens = {
|
|
|
328
400
|
radio?: RadioTokens;
|
|
329
401
|
tabs?: TabsTokens;
|
|
330
402
|
input?: InputTokens;
|
|
403
|
+
formField?: FormFieldTokens;
|
|
331
404
|
textarea?: TextareaTokens;
|
|
332
405
|
link?: LinkTokens;
|
|
333
406
|
menu?: MenuTokens;
|
|
@@ -335,6 +408,7 @@ export type ThemeComponentTokens = {
|
|
|
335
408
|
popover?: PopoverTokens;
|
|
336
409
|
select?: SelectTokens;
|
|
337
410
|
autocomplete?: AutocompleteTokens;
|
|
411
|
+
datepicker?: DatePickerTokens;
|
|
338
412
|
switch?: SwitchTokens;
|
|
339
413
|
tooltip?: TooltipTokens;
|
|
340
414
|
toast?: ToastTokens;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
minWidth: string;
|
|
3
|
+
fontSize: string;
|
|
4
|
+
controlGap: string;
|
|
5
|
+
chevronSize: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
textColor: string;
|
|
11
|
+
placeholderColor: string;
|
|
12
|
+
focusBorderColor: string;
|
|
13
|
+
hoverBorderColor: string;
|
|
14
|
+
disabledOpacity: string;
|
|
15
|
+
panelWidth: string;
|
|
16
|
+
panelBackgroundColor: string;
|
|
17
|
+
panelBorderColor: string;
|
|
18
|
+
panelPadding: string;
|
|
19
|
+
panelRadiusOffset: string;
|
|
20
|
+
panelShadow: string;
|
|
21
|
+
focusRingShadow: string;
|
|
22
|
+
headerGap: string;
|
|
23
|
+
headerPadding: string;
|
|
24
|
+
monthLabelFontSize: string;
|
|
25
|
+
monthLabelFontWeight: string;
|
|
26
|
+
navButtonSize: string;
|
|
27
|
+
navButtonRadius: string;
|
|
28
|
+
navButtonFontSize: string;
|
|
29
|
+
weekdayColor: string;
|
|
30
|
+
weekdayFontSize: string;
|
|
31
|
+
weekdaysMarginBottom: string;
|
|
32
|
+
daysGap: string;
|
|
33
|
+
daySize: string;
|
|
34
|
+
dayFontSize: string;
|
|
35
|
+
dayBorderRadius: string;
|
|
36
|
+
dayHoverBackgroundColor: string;
|
|
37
|
+
daySelectedBackgroundColor: string;
|
|
38
|
+
daySelectedTextColor: string;
|
|
39
|
+
dayMutedColor: string;
|
|
40
|
+
dayTodayBorderColor: string;
|
|
41
|
+
small: {
|
|
42
|
+
padding: string;
|
|
43
|
+
fontSize: string;
|
|
44
|
+
daySize: string;
|
|
45
|
+
};
|
|
46
|
+
large: {
|
|
47
|
+
padding: string;
|
|
48
|
+
fontSize: string;
|
|
49
|
+
daySize: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
textColor: string;
|
|
4
|
+
labelFontSize: string;
|
|
5
|
+
labelColor: string;
|
|
6
|
+
requiredColor: string;
|
|
7
|
+
hintFontSize: string;
|
|
8
|
+
hintColor: string;
|
|
9
|
+
errorColor: string;
|
|
10
|
+
disabledOpacity: string;
|
|
11
|
+
small: {
|
|
12
|
+
gap: string;
|
|
13
|
+
labelFontSize: string;
|
|
14
|
+
hintFontSize: string;
|
|
15
|
+
};
|
|
16
|
+
large: {
|
|
17
|
+
gap: string;
|
|
18
|
+
labelFontSize: string;
|
|
19
|
+
hintFontSize: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -234,6 +234,27 @@ declare const _default: {
|
|
|
234
234
|
fontSize: string;
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
|
+
formField: {
|
|
238
|
+
gap: string;
|
|
239
|
+
textColor: string;
|
|
240
|
+
labelFontSize: string;
|
|
241
|
+
labelColor: string;
|
|
242
|
+
requiredColor: string;
|
|
243
|
+
hintFontSize: string;
|
|
244
|
+
hintColor: string;
|
|
245
|
+
errorColor: string;
|
|
246
|
+
disabledOpacity: string;
|
|
247
|
+
small: {
|
|
248
|
+
gap: string;
|
|
249
|
+
labelFontSize: string;
|
|
250
|
+
hintFontSize: string;
|
|
251
|
+
};
|
|
252
|
+
large: {
|
|
253
|
+
gap: string;
|
|
254
|
+
labelFontSize: string;
|
|
255
|
+
hintFontSize: string;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
237
258
|
textarea: {
|
|
238
259
|
gap: string;
|
|
239
260
|
fontSize: string;
|
|
@@ -388,6 +409,57 @@ declare const _default: {
|
|
|
388
409
|
fontSize: string;
|
|
389
410
|
};
|
|
390
411
|
};
|
|
412
|
+
datepicker: {
|
|
413
|
+
minWidth: string;
|
|
414
|
+
fontSize: string;
|
|
415
|
+
controlGap: string;
|
|
416
|
+
chevronSize: string;
|
|
417
|
+
padding: string;
|
|
418
|
+
borderRadius: string;
|
|
419
|
+
borderColor: string;
|
|
420
|
+
backgroundColor: string;
|
|
421
|
+
textColor: string;
|
|
422
|
+
placeholderColor: string;
|
|
423
|
+
focusBorderColor: string;
|
|
424
|
+
hoverBorderColor: string;
|
|
425
|
+
disabledOpacity: string;
|
|
426
|
+
panelWidth: string;
|
|
427
|
+
panelBackgroundColor: string;
|
|
428
|
+
panelBorderColor: string;
|
|
429
|
+
panelPadding: string;
|
|
430
|
+
panelRadiusOffset: string;
|
|
431
|
+
panelShadow: string;
|
|
432
|
+
focusRingShadow: string;
|
|
433
|
+
headerGap: string;
|
|
434
|
+
headerPadding: string;
|
|
435
|
+
monthLabelFontSize: string;
|
|
436
|
+
monthLabelFontWeight: string;
|
|
437
|
+
navButtonSize: string;
|
|
438
|
+
navButtonRadius: string;
|
|
439
|
+
navButtonFontSize: string;
|
|
440
|
+
weekdayColor: string;
|
|
441
|
+
weekdayFontSize: string;
|
|
442
|
+
weekdaysMarginBottom: string;
|
|
443
|
+
daysGap: string;
|
|
444
|
+
daySize: string;
|
|
445
|
+
dayFontSize: string;
|
|
446
|
+
dayBorderRadius: string;
|
|
447
|
+
dayHoverBackgroundColor: string;
|
|
448
|
+
daySelectedBackgroundColor: string;
|
|
449
|
+
daySelectedTextColor: string;
|
|
450
|
+
dayMutedColor: string;
|
|
451
|
+
dayTodayBorderColor: string;
|
|
452
|
+
small: {
|
|
453
|
+
padding: string;
|
|
454
|
+
fontSize: string;
|
|
455
|
+
daySize: string;
|
|
456
|
+
};
|
|
457
|
+
large: {
|
|
458
|
+
padding: string;
|
|
459
|
+
fontSize: string;
|
|
460
|
+
daySize: string;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
391
463
|
checkbox: {
|
|
392
464
|
size: string;
|
|
393
465
|
gap: string;
|