@codemonster-ru/vueforge 0.58.0 → 0.60.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 +122 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.ts.mjs +4030 -3748
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/form.test.d.ts +1 -0
- package/dist/package/components/__tests__/input-group.test.d.ts +1 -0
- package/dist/package/components/accordion.vue.d.ts +1 -1
- package/dist/package/components/file-upload.vue.d.ts +1 -1
- package/dist/package/components/filter-chips.vue.d.ts +1 -1
- package/dist/package/components/form.vue.d.ts +79 -0
- package/dist/package/components/input-addon.vue.d.ts +22 -0
- package/dist/package/components/input-group.vue.d.ts +28 -0
- package/dist/package/components/radio-group.vue.d.ts +1 -1
- package/dist/package/components/segmented-control.vue.d.ts +1 -1
- package/dist/package/components/tree.vue.d.ts +1 -1
- package/dist/package/config/theme-core.d.ts +28 -0
- package/dist/package/themes/default/components/form-field.d.ts +2 -0
- package/dist/package/themes/default/components/form.d.ts +6 -0
- package/dist/package/themes/default/components/input-group.d.ts +20 -0
- package/dist/package/themes/default/index.d.ts +26 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -29,8 +29,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
29
29
|
variant: AccordionVariant;
|
|
30
30
|
modelValue: AccordionValue | AccordionValue[];
|
|
31
31
|
ariaLabel: string;
|
|
32
|
-
multiple: boolean;
|
|
33
32
|
ariaLabelledby: string;
|
|
33
|
+
multiple: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
35
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
36
|
export default _default;
|
|
@@ -32,9 +32,9 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
32
32
|
modelValue: File | Array<File> | null;
|
|
33
33
|
placeholder: string;
|
|
34
34
|
readonly: boolean;
|
|
35
|
+
multiple: boolean;
|
|
35
36
|
maxSize: number;
|
|
36
37
|
maxFiles: number;
|
|
37
|
-
multiple: boolean;
|
|
38
38
|
accept: string;
|
|
39
39
|
buttonLabel: string;
|
|
40
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -38,9 +38,9 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
38
38
|
modelValue: FilterModel;
|
|
39
39
|
clearable: boolean;
|
|
40
40
|
ariaLabel: string;
|
|
41
|
+
ariaLabelledby: string;
|
|
41
42
|
multiple: boolean;
|
|
42
43
|
options: Array<FilterChipOption>;
|
|
43
|
-
ariaLabelledby: string;
|
|
44
44
|
allowEmpty: boolean;
|
|
45
45
|
clearText: string;
|
|
46
46
|
clearLabel: string;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
type ValidateTrigger = 'submit' | 'input' | 'change' | 'blur';
|
|
2
|
+
export type FormValues = Record<string, unknown>;
|
|
3
|
+
export type FormErrors = Record<string, string>;
|
|
4
|
+
export type FormTouched = Record<string, boolean>;
|
|
5
|
+
export type FormValidateResult = FormErrors | string | boolean | null | undefined;
|
|
6
|
+
export type FormValidateHandler = (values: FormValues) => FormValidateResult | Promise<FormValidateResult>;
|
|
7
|
+
interface Props {
|
|
8
|
+
modelValue?: FormValues;
|
|
9
|
+
initialValues?: FormValues;
|
|
10
|
+
validate?: FormValidateHandler;
|
|
11
|
+
validateOn?: ValidateTrigger | Array<ValidateTrigger>;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
novalidate?: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
ariaLabelledby?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function __VLS_template(): {
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
slots: {
|
|
21
|
+
default?(_: {
|
|
22
|
+
values: FormValues;
|
|
23
|
+
errors: FormErrors;
|
|
24
|
+
touched: FormTouched;
|
|
25
|
+
isValid: boolean;
|
|
26
|
+
isDirty: boolean;
|
|
27
|
+
isSubmitting: boolean;
|
|
28
|
+
setFieldValue: (name: string, value: unknown, options?: {
|
|
29
|
+
emitChange?: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
setFieldTouched: (name: string, state?: boolean) => void;
|
|
32
|
+
setFieldError: (name: string, message?: string) => void;
|
|
33
|
+
validate: (trigger?: ValidateTrigger) => Promise<boolean>;
|
|
34
|
+
submit: (event?: Event) => Promise<void>;
|
|
35
|
+
reset: (event?: Event) => void;
|
|
36
|
+
}): any;
|
|
37
|
+
};
|
|
38
|
+
refs: {
|
|
39
|
+
formRef: HTMLFormElement;
|
|
40
|
+
};
|
|
41
|
+
rootEl: HTMLFormElement;
|
|
42
|
+
};
|
|
43
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
44
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
+
blur: (...args: any[]) => void;
|
|
46
|
+
change: (...args: any[]) => void;
|
|
47
|
+
reset: (...args: any[]) => void;
|
|
48
|
+
submit: (...args: any[]) => void;
|
|
49
|
+
"update:modelValue": (...args: any[]) => void;
|
|
50
|
+
validate: (...args: any[]) => void;
|
|
51
|
+
invalidSubmit: (...args: any[]) => void;
|
|
52
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
53
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onValidate?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onInvalidSubmit?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
modelValue: FormValues;
|
|
63
|
+
ariaLabel: string;
|
|
64
|
+
id: string;
|
|
65
|
+
initialValues: FormValues;
|
|
66
|
+
validate: FormValidateHandler;
|
|
67
|
+
validateOn: ValidateTrigger | Array<ValidateTrigger>;
|
|
68
|
+
novalidate: boolean;
|
|
69
|
+
ariaLabelledby: string;
|
|
70
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
71
|
+
formRef: HTMLFormElement;
|
|
72
|
+
}, HTMLFormElement>;
|
|
73
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
74
|
+
export default _default;
|
|
75
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
76
|
+
new (): {
|
|
77
|
+
$slots: S;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
as?: string;
|
|
3
|
+
}
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
as: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
type Variant = 'filled' | 'outlined';
|
|
3
|
+
interface Props {
|
|
4
|
+
size?: Size;
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
size: Size;
|
|
20
|
+
variant: Variant;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -30,8 +30,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
30
30
|
variant: RadioVariant;
|
|
31
31
|
modelValue: string | number | boolean | null;
|
|
32
32
|
ariaLabel: string;
|
|
33
|
-
direction: Direction;
|
|
34
33
|
ariaLabelledby: string;
|
|
34
|
+
direction: Direction;
|
|
35
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
36
36
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
37
|
export default _default;
|
|
@@ -32,8 +32,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
32
32
|
variant: Variant;
|
|
33
33
|
modelValue: SegmentedValue;
|
|
34
34
|
ariaLabel: string;
|
|
35
|
-
options: Array<SegmentedOption>;
|
|
36
35
|
ariaLabelledby: string;
|
|
36
|
+
options: Array<SegmentedOption>;
|
|
37
37
|
fullWidth: boolean;
|
|
38
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
39
39
|
export default _default;
|
|
@@ -56,8 +56,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
56
56
|
variant: "filled" | "outlined";
|
|
57
57
|
modelValue: TreeValue | TreeValue[];
|
|
58
58
|
ariaLabel: string;
|
|
59
|
-
multiple: boolean;
|
|
60
59
|
ariaLabelledby: string;
|
|
60
|
+
multiple: boolean;
|
|
61
61
|
expandOnClick: boolean;
|
|
62
62
|
selectable: boolean;
|
|
63
63
|
expandedKeys: Array<TreeValue>;
|
|
@@ -77,6 +77,25 @@ export type InputTokens = {
|
|
|
77
77
|
fontSize?: string;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
+
export type InputGroupTokens = {
|
|
81
|
+
gap?: string;
|
|
82
|
+
borderRadius?: string;
|
|
83
|
+
addonPadding?: string;
|
|
84
|
+
addonFontSize?: string;
|
|
85
|
+
addonBackgroundColor?: string;
|
|
86
|
+
addonOutlinedBackgroundColor?: string;
|
|
87
|
+
addonTextColor?: string;
|
|
88
|
+
addonBorderColor?: string;
|
|
89
|
+
disabledOpacity?: string;
|
|
90
|
+
small?: {
|
|
91
|
+
addonPadding?: string;
|
|
92
|
+
addonFontSize?: string;
|
|
93
|
+
};
|
|
94
|
+
large?: {
|
|
95
|
+
addonPadding?: string;
|
|
96
|
+
addonFontSize?: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
80
99
|
export type InlineEditTokens = {
|
|
81
100
|
gap?: string;
|
|
82
101
|
fontSize?: string;
|
|
@@ -336,6 +355,11 @@ export type NumberInputTokens = {
|
|
|
336
355
|
controlFontSize?: string;
|
|
337
356
|
};
|
|
338
357
|
};
|
|
358
|
+
export type FormTokens = {
|
|
359
|
+
gap?: string;
|
|
360
|
+
textColor?: string;
|
|
361
|
+
disabledOpacity?: string;
|
|
362
|
+
};
|
|
339
363
|
export type FormFieldTokens = {
|
|
340
364
|
gap?: string;
|
|
341
365
|
textColor?: string;
|
|
@@ -345,6 +369,8 @@ export type FormFieldTokens = {
|
|
|
345
369
|
hintFontSize?: string;
|
|
346
370
|
hintColor?: string;
|
|
347
371
|
errorColor?: string;
|
|
372
|
+
errorBorderColor?: string;
|
|
373
|
+
errorFocusBorderColor?: string;
|
|
348
374
|
disabledOpacity?: string;
|
|
349
375
|
small?: {
|
|
350
376
|
gap?: string;
|
|
@@ -1751,6 +1777,7 @@ export type ThemeComponentTokens = {
|
|
|
1751
1777
|
tabs?: TabsTokens;
|
|
1752
1778
|
accordion?: AccordionTokens;
|
|
1753
1779
|
input?: InputTokens;
|
|
1780
|
+
inputGroup?: InputGroupTokens;
|
|
1754
1781
|
inlineEdit?: InlineEditTokens;
|
|
1755
1782
|
searchInput?: SearchInputTokens;
|
|
1756
1783
|
mentionInput?: MentionInputTokens;
|
|
@@ -1759,6 +1786,7 @@ export type ThemeComponentTokens = {
|
|
|
1759
1786
|
colorPicker?: ColorPickerTokens;
|
|
1760
1787
|
maskedInput?: MaskedInputTokens;
|
|
1761
1788
|
numberInput?: NumberInputTokens;
|
|
1789
|
+
form?: FormTokens;
|
|
1762
1790
|
formField?: FormFieldTokens;
|
|
1763
1791
|
textarea?: TextareaTokens;
|
|
1764
1792
|
fileUpload?: FileUploadTokens;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
borderRadius: string;
|
|
4
|
+
addonPadding: string;
|
|
5
|
+
addonFontSize: string;
|
|
6
|
+
addonBackgroundColor: string;
|
|
7
|
+
addonOutlinedBackgroundColor: string;
|
|
8
|
+
addonTextColor: string;
|
|
9
|
+
addonBorderColor: string;
|
|
10
|
+
disabledOpacity: string;
|
|
11
|
+
small: {
|
|
12
|
+
addonPadding: string;
|
|
13
|
+
addonFontSize: string;
|
|
14
|
+
};
|
|
15
|
+
large: {
|
|
16
|
+
addonPadding: string;
|
|
17
|
+
addonFontSize: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -234,6 +234,25 @@ declare const _default: {
|
|
|
234
234
|
fontSize: string;
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
|
+
inputGroup: {
|
|
238
|
+
gap: string;
|
|
239
|
+
borderRadius: string;
|
|
240
|
+
addonPadding: string;
|
|
241
|
+
addonFontSize: string;
|
|
242
|
+
addonBackgroundColor: string;
|
|
243
|
+
addonOutlinedBackgroundColor: string;
|
|
244
|
+
addonTextColor: string;
|
|
245
|
+
addonBorderColor: string;
|
|
246
|
+
disabledOpacity: string;
|
|
247
|
+
small: {
|
|
248
|
+
addonPadding: string;
|
|
249
|
+
addonFontSize: string;
|
|
250
|
+
};
|
|
251
|
+
large: {
|
|
252
|
+
addonPadding: string;
|
|
253
|
+
addonFontSize: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
237
256
|
inlineEdit: {
|
|
238
257
|
gap: string;
|
|
239
258
|
fontSize: string;
|
|
@@ -493,6 +512,11 @@ declare const _default: {
|
|
|
493
512
|
controlFontSize: string;
|
|
494
513
|
};
|
|
495
514
|
};
|
|
515
|
+
form: {
|
|
516
|
+
gap: string;
|
|
517
|
+
textColor: string;
|
|
518
|
+
disabledOpacity: string;
|
|
519
|
+
};
|
|
496
520
|
formField: {
|
|
497
521
|
gap: string;
|
|
498
522
|
textColor: string;
|
|
@@ -502,6 +526,8 @@ declare const _default: {
|
|
|
502
526
|
hintFontSize: string;
|
|
503
527
|
hintColor: string;
|
|
504
528
|
errorColor: string;
|
|
529
|
+
errorBorderColor: string;
|
|
530
|
+
errorFocusBorderColor: string;
|
|
505
531
|
disabledOpacity: string;
|
|
506
532
|
small: {
|
|
507
533
|
gap: string;
|