@webitel/ui-datalist 1.1.73 → 1.1.74
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 +1 -1
- package/src/modules/card/composables/useCardValidation.ts +7 -1
- package/types/.tsbuildinfo +1 -1
- package/types/modules/card/composables/useCardComponent.d.ts +1 -1
- package/types/modules/card/composables/useCardValidation.d.ts +2 -1
- package/types/modules/card/composables/useNestedCardComponent.d.ts +1 -1
|
@@ -20,6 +20,6 @@ export declare const useCardComponent: <CardEntity extends Record<string, any>>(
|
|
|
20
20
|
saveText: import("vue").ComputedRef<any>;
|
|
21
21
|
hasValidationErrors: import("vue").ComputedRef<boolean | import("@regle/schemas").RegleSchemaStatus<CardEntity, {}, true>["$error"]>;
|
|
22
22
|
isAnyFieldEdited: Ref<boolean, boolean>;
|
|
23
|
-
validationFields: import("vue").ComputedRef<
|
|
23
|
+
validationFields: import("vue").ComputedRef<import("..").CardValidationFields<CardEntity>>;
|
|
24
24
|
save: () => Promise<unknown>;
|
|
25
25
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { RegleShortcutDefinition } from '@regle/core';
|
|
2
2
|
import type { RegleSchema } from '@regle/schemas';
|
|
3
3
|
import { type Ref } from 'vue';
|
|
4
|
+
import type { CardValidationFields } from '../types/CardValidationFields.types';
|
|
4
5
|
export declare const useCardValidation: <TState extends Record<string, any>, TSchema extends RegleShortcutDefinition = {}>({ validationSchema, }: {
|
|
5
6
|
validationSchema: Ref<RegleSchema<TState, TSchema>>;
|
|
6
7
|
}) => {
|
|
7
8
|
modelValue: import("vue").ComputedRef<import("@regle/core").JoinDiscriminatedUnions<import("vue").UnwrapNestedRefs<TState>> | import("@regle/schemas").RegleSchemaStatus<TState, TSchema, true>["$value"]>;
|
|
8
|
-
validationFields: import("vue").ComputedRef<
|
|
9
|
+
validationFields: import("vue").ComputedRef<CardValidationFields<TState>>;
|
|
9
10
|
hasValidationErrors: import("vue").ComputedRef<boolean | import("@regle/schemas").RegleSchemaStatus<TState, TSchema, true>["$error"]>;
|
|
10
11
|
validate: () => Promise<import("@regle/schemas").RegleSchemaResult<TState>>;
|
|
11
12
|
};
|
|
@@ -31,6 +31,6 @@ export declare const useNestedCardComponent: <CardEntity extends Record<string,
|
|
|
31
31
|
saveText: import("vue").ComputedRef<any>;
|
|
32
32
|
hasValidationErrors: import("vue").ComputedRef<boolean | import("@regle/schemas").RegleSchemaStatus<CardEntity, {}, true>["$error"]>;
|
|
33
33
|
isAnyFieldEdited: import("vue").Ref<boolean, boolean>;
|
|
34
|
-
validationFields: import("vue").ComputedRef<
|
|
34
|
+
validationFields: import("vue").ComputedRef<import("..").CardValidationFields<CardEntity>>;
|
|
35
35
|
save: () => Promise<unknown>;
|
|
36
36
|
};
|