@codemonster-ru/vueforge 0.58.0 → 0.59.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 +74 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +3749 -3521
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/form.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/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 +8 -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/index.d.ts +7 -0
- package/package.json +1 -1
|
@@ -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
|
+
};
|
|
@@ -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>;
|
|
@@ -336,6 +336,11 @@ export type NumberInputTokens = {
|
|
|
336
336
|
controlFontSize?: string;
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
|
+
export type FormTokens = {
|
|
340
|
+
gap?: string;
|
|
341
|
+
textColor?: string;
|
|
342
|
+
disabledOpacity?: string;
|
|
343
|
+
};
|
|
339
344
|
export type FormFieldTokens = {
|
|
340
345
|
gap?: string;
|
|
341
346
|
textColor?: string;
|
|
@@ -345,6 +350,8 @@ export type FormFieldTokens = {
|
|
|
345
350
|
hintFontSize?: string;
|
|
346
351
|
hintColor?: string;
|
|
347
352
|
errorColor?: string;
|
|
353
|
+
errorBorderColor?: string;
|
|
354
|
+
errorFocusBorderColor?: string;
|
|
348
355
|
disabledOpacity?: string;
|
|
349
356
|
small?: {
|
|
350
357
|
gap?: string;
|
|
@@ -1759,6 +1766,7 @@ export type ThemeComponentTokens = {
|
|
|
1759
1766
|
colorPicker?: ColorPickerTokens;
|
|
1760
1767
|
maskedInput?: MaskedInputTokens;
|
|
1761
1768
|
numberInput?: NumberInputTokens;
|
|
1769
|
+
form?: FormTokens;
|
|
1762
1770
|
formField?: FormFieldTokens;
|
|
1763
1771
|
textarea?: TextareaTokens;
|
|
1764
1772
|
fileUpload?: FileUploadTokens;
|
|
@@ -493,6 +493,11 @@ declare const _default: {
|
|
|
493
493
|
controlFontSize: string;
|
|
494
494
|
};
|
|
495
495
|
};
|
|
496
|
+
form: {
|
|
497
|
+
gap: string;
|
|
498
|
+
textColor: string;
|
|
499
|
+
disabledOpacity: string;
|
|
500
|
+
};
|
|
496
501
|
formField: {
|
|
497
502
|
gap: string;
|
|
498
503
|
textColor: string;
|
|
@@ -502,6 +507,8 @@ declare const _default: {
|
|
|
502
507
|
hintFontSize: string;
|
|
503
508
|
hintColor: string;
|
|
504
509
|
errorColor: string;
|
|
510
|
+
errorBorderColor: string;
|
|
511
|
+
errorFocusBorderColor: string;
|
|
505
512
|
disabledOpacity: string;
|
|
506
513
|
small: {
|
|
507
514
|
gap: string;
|