@codemonster-ru/vueforge 0.82.0 → 0.84.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.
@@ -12,6 +12,7 @@ export interface DataTableColumn {
12
12
  align?: Align;
13
13
  width?: string;
14
14
  minWidth?: string;
15
+ sticky?: 'left' | 'right';
15
16
  formatter?: (row: Record<string, unknown>, value: unknown, column: DataTableColumn) => string | number;
16
17
  }
17
18
  export interface DataTableQuery {
@@ -51,6 +52,7 @@ interface Props {
51
52
  bulkActions?: Array<DataTableBulkAction>;
52
53
  selectAllAriaLabel?: string;
53
54
  selectRowAriaLabel?: string;
55
+ stickyHeader?: boolean;
54
56
  }
55
57
  declare function __VLS_template(): {
56
58
  attrs: Partial<{}>;
@@ -126,6 +128,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
126
128
  emptyText: string;
127
129
  rows: Array<Record<string, unknown>>;
128
130
  pageSize: number;
131
+ stickyHeader: boolean;
129
132
  rowKey: string | ((row: Record<string, unknown>, index: number) => string | number);
130
133
  sortable: boolean;
131
134
  sortField: string | null;
@@ -4,10 +4,14 @@ export type FormErrors = Record<string, string>;
4
4
  export type FormTouched = Record<string, boolean>;
5
5
  export type FormValidateResult = FormErrors | string | boolean | null | undefined;
6
6
  export type FormValidateHandler = (values: FormValues) => FormValidateResult | Promise<FormValidateResult>;
7
+ export type FormSubmitHandler = (values: FormValues) => unknown | Promise<unknown>;
8
+ export type FormSubmitErrorMapper = (error: unknown, values: FormValues) => FormValidateResult;
7
9
  interface Props {
8
10
  modelValue?: FormValues;
9
11
  initialValues?: FormValues;
10
12
  validate?: FormValidateHandler;
13
+ submit?: FormSubmitHandler;
14
+ mapSubmitError?: FormSubmitErrorMapper;
11
15
  validateOn?: ValidateTrigger | Array<ValidateTrigger>;
12
16
  disabled?: boolean;
13
17
  novalidate?: boolean;
@@ -48,6 +52,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
48
52
  submit: (...args: any[]) => void;
49
53
  "update:modelValue": (...args: any[]) => void;
50
54
  validate: (...args: any[]) => void;
55
+ submitSuccess: (...args: any[]) => void;
56
+ submitError: (...args: any[]) => void;
51
57
  invalidSubmit: (...args: any[]) => void;
52
58
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
53
59
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -56,14 +62,18 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
56
62
  onSubmit?: ((...args: any[]) => any) | undefined;
57
63
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
58
64
  onValidate?: ((...args: any[]) => any) | undefined;
65
+ onSubmitSuccess?: ((...args: any[]) => any) | undefined;
66
+ onSubmitError?: ((...args: any[]) => any) | undefined;
59
67
  onInvalidSubmit?: ((...args: any[]) => any) | undefined;
60
68
  }>, {
61
69
  disabled: boolean;
70
+ submit: FormSubmitHandler;
62
71
  id: string;
63
72
  modelValue: FormValues;
64
73
  ariaLabel: string;
65
74
  initialValues: FormValues;
66
75
  validate: FormValidateHandler;
76
+ mapSubmitError: FormSubmitErrorMapper;
67
77
  validateOn: ValidateTrigger | Array<ValidateTrigger>;
68
78
  novalidate: boolean;
69
79
  ariaLabelledby: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.82.0",
3
+ "version": "0.84.0",
4
4
  "description": "Open source UI components for Vue.js.",
5
5
  "license": "MIT",
6
6
  "author": "Kirill Kolesnikov",