@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.
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +5 -0
- package/components/dialogform/DialogForm.vue.d.ts +8 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +2 -0
- package/components/form/Form.vue.d.ts +8 -0
- package/components/inputtext/InputText.vue.d.ts +7 -0
- package/package.json +1 -1
- package/wangsvue.es.js +16800 -16807
- package/wangsvue.system.js +120 -120
|
@@ -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
|
*
|