@fewangsit/wangsvue 1.5.203-alpha.1 → 1.5.203-alpha.3

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.
@@ -84,6 +84,11 @@ export interface DialogConfirmProps {
84
84
  * @default true;
85
85
  */
86
86
  showCloseButton?: boolean;
87
+
88
+ /**
89
+ * Set class for content element.
90
+ */
91
+ contentClass?: any;
87
92
  }
88
93
 
89
94
  /**
@@ -330,6 +330,14 @@ declare class DialogForm extends ClassComponent<
330
330
  value: GenericObject[T],
331
331
  shouldValidate?: boolean,
332
332
  ) => void;
333
+
334
+ /**
335
+ * Set errors fields
336
+ * @param fields - {
337
+ * name: 'This name already exists'
338
+ * }
339
+ */
340
+ setErrors(fields: GenericObject): void;
333
341
  }
334
342
 
335
343
  declare module '@vue/runtime-core' {
@@ -11,6 +11,7 @@ import { ButtonSelectTreeProps } from '../buttonselecttree/ButtonSelectTree.vue.
11
11
  export interface MultiSelectFilterField extends MultiSelectProps {
12
12
  type: 'multiselect';
13
13
  field: string; // The name of the field this filter applies to
14
+ optionField: string; // @example - actionOptions
14
15
  fetchOptionFn?:
15
16
  | ((args?: any) => MultiSelectOption[]) // Sync function to fetch options
16
17
  | ((args?: any) => Promise<MultiSelectOption[]>); // Async function
@@ -19,6 +20,7 @@ export interface MultiSelectFilterField extends MultiSelectProps {
19
20
  export interface DropdownFilterField extends DropdownProps {
20
21
  type: 'dropdown';
21
22
  field: string; // The name of the field this filter applies to
23
+ optionField?: string; // @example - actionOptions
22
24
  fetchOptionFn?:
23
25
  | ((args?: any) => MultiSelectOption[]) // Sync function to fetch options
24
26
  | ((args?: any) => Promise<MultiSelectOption[]>); // Async function
@@ -281,6 +281,14 @@ declare class Form extends ClassComponent<FormProps, FormSlots, FormEmits> {
281
281
  value: GenericObject[T],
282
282
  shouldValidate?: boolean,
283
283
  ): void;
284
+
285
+ /**
286
+ * Set errors fields
287
+ * @param fields - {
288
+ * name: 'This name already exists'
289
+ * }
290
+ */
291
+ setErrors(fields: GenericObject): void;
284
292
  }
285
293
 
286
294
  declare module '@vue/runtime-core' {
@@ -161,6 +161,13 @@ export interface InputTextProps extends /* @vue-ignore */ InputHTMLAttributes {
161
161
  */
162
162
  existingValues?: string[];
163
163
 
164
+ /**
165
+ * Check avaialability of the value.
166
+ *
167
+ * @returns {boolean} - Return true if the value is available, otherwise false.
168
+ */
169
+ checkAvailability?: (value: string) => Promise<boolean> | boolean;
170
+
164
171
  /**
165
172
  * The maximun character length allowed.
166
173
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue",
3
- "version": "1.5.203-alpha.1",
3
+ "version": "1.5.203-alpha.3",
4
4
  "author": "fewangsit",
5
5
  "description": "Wangsit VueJS Component Library",
6
6
  "module": "./wangsvue.es.js",