@effect-app/vue-components 0.0.6 → 0.0.9
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.
|
@@ -22,10 +22,7 @@ export type FormType<T, S> = OmegaFormApi<T, S> & {
|
|
|
22
22
|
Field: Component;
|
|
23
23
|
};
|
|
24
24
|
export type PrefixFromDepth<K extends string | number, _TDepth extends any[]> = K;
|
|
25
|
-
export type
|
|
26
|
-
[K in keyof T]-?: K extends string | number ? PrefixFromDepth<K, TDepth> | `${PrefixFromDepth<K, TDepth>}${DeepKeys<T[K], [TDepth]>}` : never;
|
|
27
|
-
}[keyof T];
|
|
28
|
-
export type NestedKeyOf<T> = T extends object ? PrefixObjectAccessor<T> : never;
|
|
25
|
+
export type NestedKeyOf<T> = DeepKeys<T>;
|
|
29
26
|
export type FieldValidators<T> = {
|
|
30
27
|
onChangeAsync?: FieldAsyncValidateOrFn<T, any, any>;
|
|
31
28
|
onChange?: FieldValidateOrFn<T, any, any>;
|
|
@@ -24,7 +24,7 @@ declare const _default: <From, To>(__VLS_props: NonNullable<Awaited<typeof __VLS
|
|
|
24
24
|
title: string;
|
|
25
25
|
value: string;
|
|
26
26
|
}[] | undefined;
|
|
27
|
-
meta: MetaRecord<To>[
|
|
27
|
+
meta: MetaRecord<To>[import("@tanstack/vue-form").DeepKeys<To>];
|
|
28
28
|
type: TypeOverride | undefined;
|
|
29
29
|
}) => any) | undefined;
|
|
30
30
|
};
|
|
@@ -6,7 +6,7 @@ export * from "./OmegaFormStuff";
|
|
|
6
6
|
export { useOmegaForm } from "./useOmegaForm";
|
|
7
7
|
export { default } from "./OmegaWrapper.vue";
|
|
8
8
|
export { OmegaForm, OmegaInput, OmegaErrors };
|
|
9
|
-
declare const OmegaFormCE: new <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, K extends keyof import("./OmegaFormStuff").OmegaFormState<To, From> = keyof import("
|
|
9
|
+
declare const OmegaFormCE: new <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, K extends keyof import("./OmegaFormStuff").OmegaFormState<To, From> = keyof import("./OmegaFormStuff").OmegaFormState<To, From>>(initialProps?: Record<string, any>) => import("vue").VueElement & ((({
|
|
10
10
|
subscribe?: K[] | undefined;
|
|
11
11
|
form: import("./OmegaFormStuff").OmegaFormApi<To, From> & {
|
|
12
12
|
meta: import("./OmegaFormStuff").MetaRecord<To>;
|
|
@@ -38,7 +38,7 @@ declare const OmegaInputCE: new <From, To>(initialProps?: Record<string, any>) =
|
|
|
38
38
|
form: import("./OmegaFormStuff").FormType<From, To> & {
|
|
39
39
|
meta: import("./OmegaFormStuff").MetaRecord<To>;
|
|
40
40
|
};
|
|
41
|
-
name: import("
|
|
41
|
+
name: import("@tanstack/vue-form").DeepKeys<To>;
|
|
42
42
|
validators?: import("./OmegaFormStuff").FieldValidators<From> | undefined;
|
|
43
43
|
label: string;
|
|
44
44
|
options?: {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
|
-
"@tanstack/vue-form": "^1.
|
|
6
|
+
"@tanstack/vue-form": "^1.2.4",
|
|
7
7
|
"effect": "^3.14.2",
|
|
8
8
|
"intl-messageformat": "^10.7.16",
|
|
9
9
|
"mdi-js": "^1.0.1",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"./dist/vue-components.css": "./dist/vue-components.css"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"effect-app": "2.
|
|
40
|
-
"
|
|
39
|
+
"@effect-app/vue": "2.39.8",
|
|
40
|
+
"effect-app": "2.38.4"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
@@ -116,18 +116,7 @@ export type PrefixFromDepth<
|
|
|
116
116
|
_TDepth extends any[],
|
|
117
117
|
> = K
|
|
118
118
|
|
|
119
|
-
export type
|
|
120
|
-
T extends object,
|
|
121
|
-
TDepth extends any[] = [],
|
|
122
|
-
> = {
|
|
123
|
-
[K in keyof T]-?: K extends string | number
|
|
124
|
-
?
|
|
125
|
-
| PrefixFromDepth<K, TDepth>
|
|
126
|
-
| `${PrefixFromDepth<K, TDepth>}${DeepKeys<T[K], [TDepth]>}`
|
|
127
|
-
: never
|
|
128
|
-
}[keyof T]
|
|
129
|
-
|
|
130
|
-
export type NestedKeyOf<T> = T extends object ? PrefixObjectAccessor<T> : never
|
|
119
|
+
export type NestedKeyOf<T> = DeepKeys<T>
|
|
131
120
|
|
|
132
121
|
export type FieldValidators<T> = {
|
|
133
122
|
onChangeAsync?: FieldAsyncValidateOrFn<T, any, any>
|