tsv2-library 1.1.0-dev-alpha.8 → 1.1.0-dev-alpha.10

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
3
  "author": "fixedassetv2-fe",
4
- "version": "1.1.0-dev-alpha.8",
4
+ "version": "1.1.0-dev-alpha.10",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
7
7
  "repository": {
@@ -38,7 +38,7 @@ declare class CustomColumn extends ClassComponent<
38
38
  /**
39
39
  * Method to show custom column menu.
40
40
  */
41
- toggleMenu: () => void;
41
+ toggleMenu: (event?: Event) => void;
42
42
  /**
43
43
  * Resets the column visibility to default
44
44
  */
@@ -120,6 +120,14 @@ declare class Form extends ClassComponent<FormProps, FormSlots, FormEmits> {
120
120
  * Clears the form fields.
121
121
  */
122
122
  clearField: () => void;
123
+ /**
124
+ * Sets the errors for the form fields.
125
+ */
126
+ setErrors: (errors: Partial<Record<string, string | undefined>>) => void;
127
+ /**
128
+ * Sets the error for a specific field.
129
+ */
130
+ setFieldError: (field: string, error: string | undefined) => void;
123
131
  }
124
132
 
125
133
  declare module '@vue/runtime-core' {
@@ -55,7 +55,16 @@ export interface InputTextProps {
55
55
  * Set custom validator message.
56
56
  * Will be show if invalid="true"
57
57
  */
58
- validatorMessage?: string;
58
+ validatorMessage?:
59
+ | string
60
+ | {
61
+ exist?: string;
62
+ };
63
+ /**
64
+ * Function to check the availability of the input value.
65
+ * Useful for checking if a username or email already exists.
66
+ */
67
+ checkAvailability?: (value: string) => Promise<boolean>;
59
68
  /**
60
69
  * Validate the input on blur event.
61
70
  *