@silver-formily/vue 2.3.2 → 2.3.4
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/README.en.md +6 -6
- package/README.md +6 -6
- package/esm/components/ArrayField.d.ts +67 -58
- package/esm/components/ArrayField.mjs +23 -23
- package/esm/components/ArrayField.mjs.map +1 -1
- package/esm/components/ExpressionScope.d.ts +21 -16
- package/esm/components/ExpressionScope.mjs +22 -24
- package/esm/components/ExpressionScope.mjs.map +1 -1
- package/esm/components/Field.d.ts +67 -58
- package/esm/components/Field.mjs +23 -23
- package/esm/components/Field.mjs.map +1 -1
- package/esm/components/FormConsumer.d.ts +9 -4
- package/esm/components/FormConsumer.mjs +17 -18
- package/esm/components/FormConsumer.mjs.map +1 -1
- package/esm/components/FormProvider.d.ts +21 -16
- package/esm/components/FormProvider.mjs +26 -26
- package/esm/components/FormProvider.mjs.map +1 -1
- package/esm/components/ObjectField.d.ts +68 -58
- package/esm/components/ObjectField.mjs +23 -23
- package/esm/components/ObjectField.mjs.map +1 -1
- package/esm/components/ReactiveField.mjs +103 -75
- package/esm/components/ReactiveField.mjs.map +1 -1
- package/esm/components/RecursionField.d.ts +142 -22
- package/esm/components/RecursionField.mjs +123 -127
- package/esm/components/RecursionField.mjs.map +1 -1
- package/esm/components/SchemaField.d.ts +3041 -2919
- package/esm/components/SchemaField.mjs +104 -97
- package/esm/components/SchemaField.mjs.map +1 -1
- package/esm/components/VoidField.d.ts +48 -42
- package/esm/components/VoidField.mjs +23 -23
- package/esm/components/VoidField.mjs.map +1 -1
- package/esm/components/index.d.ts +9 -9
- package/esm/components/index.mjs +10 -21
- package/esm/hooks/index.d.ts +5 -5
- package/esm/hooks/index.mjs +6 -13
- package/esm/hooks/useAttach.mjs +21 -13
- package/esm/hooks/useAttach.mjs.map +1 -1
- package/esm/hooks/useField.d.ts +8 -3
- package/esm/hooks/useField.mjs +9 -8
- package/esm/hooks/useField.mjs.map +1 -1
- package/esm/hooks/useFieldSchema.d.ts +8 -1
- package/esm/hooks/useFieldSchema.mjs +9 -8
- package/esm/hooks/useFieldSchema.mjs.map +1 -1
- package/esm/hooks/useForm.d.ts +8 -3
- package/esm/hooks/useForm.mjs +9 -8
- package/esm/hooks/useForm.mjs.map +1 -1
- package/esm/hooks/useFormEffects.d.ts +7 -2
- package/esm/hooks/useFormEffects.mjs +18 -15
- package/esm/hooks/useFormEffects.mjs.map +1 -1
- package/esm/hooks/useInjectionCleaner.mjs +8 -7
- package/esm/hooks/useInjectionCleaner.mjs.map +1 -1
- package/esm/hooks/useParentForm.d.ts +8 -3
- package/esm/hooks/useParentForm.mjs +18 -11
- package/esm/hooks/useParentForm.mjs.map +1 -1
- package/esm/index.d.ts +19 -4
- package/esm/index.mjs +20 -42
- package/esm/shared/connect.d.ts +10 -5
- package/esm/shared/connect.mjs +69 -63
- package/esm/shared/connect.mjs.map +1 -1
- package/esm/shared/context.d.ts +15 -10
- package/esm/shared/context.mjs +11 -10
- package/esm/shared/context.mjs.map +1 -1
- package/esm/shared/index.d.ts +2 -2
- package/esm/shared/index.mjs +3 -14
- package/esm/types/index.d.ts +72 -68
- package/esm/types/validator.d.ts +39 -35
- package/esm/utils/fieldProps.mjs +53 -51
- package/esm/utils/fieldProps.mjs.map +1 -1
- package/esm/utils/getRawComponent.mjs +16 -12
- package/esm/utils/getRawComponent.mjs.map +1 -1
- package/esm/utils/reactiveFieldHelpers.mjs +116 -94
- package/esm/utils/reactiveFieldHelpers.mjs.map +1 -1
- package/esm/utils/recursionFieldProps.mjs +14 -13
- package/esm/utils/recursionFieldProps.mjs.map +1 -1
- package/esm/utils/resolveSchemaProps.mjs +13 -10
- package/esm/utils/resolveSchemaProps.mjs.map +1 -1
- package/esm/utils/runtimeProps.d.ts +10 -7
- package/esm/utils/runtimeProps.mjs +15 -15
- package/esm/utils/runtimeProps.mjs.map +1 -1
- package/esm/utils/schemaFieldProps.mjs +63 -62
- package/esm/utils/schemaFieldProps.mjs.map +1 -1
- package/package.json +13 -12
- package/esm/components/ReactiveField.d.ts +0 -16
- package/esm/components/index.mjs.map +0 -1
- package/esm/global.d.d.ts +0 -1
- package/esm/global.d.mjs +0 -2
- package/esm/global.d.mjs.map +0 -1
- package/esm/hooks/index.mjs.map +0 -1
- package/esm/hooks/useAttach.d.ts +0 -7
- package/esm/hooks/useInjectionCleaner.d.ts +0 -2
- package/esm/index.mjs.map +0 -1
- package/esm/shared/index.mjs.map +0 -1
- package/esm/types/index.mjs +0 -2
- package/esm/types/index.mjs.map +0 -1
- package/esm/types/validator.mjs +0 -2
- package/esm/types/validator.mjs.map +0 -1
- package/esm/utils/fieldProps.d.ts +0 -51
- package/esm/utils/getRawComponent.d.ts +0 -8
- package/esm/utils/reactiveFieldHelpers.d.ts +0 -16
- package/esm/utils/recursionFieldProps.d.ts +0 -67
- package/esm/utils/resolveSchemaProps.d.ts +0 -1
- package/esm/utils/schemaFieldProps.d.ts +0 -232
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldSchema.mjs","sources":["../../src/hooks/useFieldSchema.ts"],"sourcesContent":["import { inject, ref } from 'vue'\nimport { SchemaSymbol } from '../shared/context'\n\nexport function useFieldSchema() {\n return inject(SchemaSymbol, ref())\n}\n"],"
|
|
1
|
+
{"version":3,"file":"useFieldSchema.mjs","names":[],"sources":["../../src/hooks/useFieldSchema.ts"],"sourcesContent":["import { inject, ref } from 'vue'\nimport { SchemaSymbol } from '../shared/context'\n\nexport function useFieldSchema() {\n return inject(SchemaSymbol, ref())\n}\n"],"mappings":";;;AAGA,SAAgB,iBAAiB;AAC/B,QAAO,OAAO,cAAc,KAAK,CAAC"}
|
package/esm/hooks/useForm.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from "vue";
|
|
2
|
+
import { Form } from "@formily/core";
|
|
3
|
+
|
|
4
|
+
//#region src/hooks/useForm.d.ts
|
|
5
|
+
declare function useForm(): Ref<Form>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useForm };
|
|
8
|
+
//# sourceMappingURL=useForm.d.ts.map
|
package/esm/hooks/useForm.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FormSymbol } from "../shared/context.mjs";
|
|
2
|
+
import { inject, ref } from "vue";
|
|
3
|
+
//#region src/hooks/useForm.ts
|
|
4
|
+
function useForm() {
|
|
5
|
+
return inject(FormSymbol, ref());
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=useForm.mjs.map
|
|
7
|
+
//#endregion
|
|
8
|
+
export { useForm };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=useForm.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.mjs","sources":["../../src/hooks/useForm.ts"],"sourcesContent":["import type { Form } from '@formily/core'\nimport type { Ref } from 'vue'\nimport { inject, ref } from 'vue'\nimport { FormSymbol } from '../shared/context'\n\nexport function useForm() {\n const form = inject(FormSymbol, ref())\n return form as Ref<Form>\n}\n"],"
|
|
1
|
+
{"version":3,"file":"useForm.mjs","names":[],"sources":["../../src/hooks/useForm.ts"],"sourcesContent":["import type { Form } from '@formily/core'\nimport type { Ref } from 'vue'\nimport { inject, ref } from 'vue'\nimport { FormSymbol } from '../shared/context'\n\nexport function useForm() {\n const form = inject(FormSymbol, ref())\n return form as Ref<Form>\n}\n"],"mappings":";;;AAKA,SAAgB,UAAU;AAExB,QADa,OAAO,YAAY,KAAK,CAAC"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { Form } from
|
|
2
|
-
|
|
1
|
+
import { Form } from "@formily/core";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useFormEffects.d.ts
|
|
4
|
+
declare function useFormEffects(effects?: (form: Form) => void): void;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { useFormEffects };
|
|
7
|
+
//# sourceMappingURL=useFormEffects.d.ts.map
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { useForm } from "./useForm.mjs";
|
|
2
|
+
import { onBeforeUnmount, watchEffect } from "vue";
|
|
3
|
+
import { uid } from "@formily/shared";
|
|
4
|
+
//#region src/hooks/useFormEffects.ts
|
|
5
|
+
function useFormEffects(effects) {
|
|
6
|
+
const formRef = useForm();
|
|
7
|
+
const stop = watchEffect((onCleanup) => {
|
|
8
|
+
const id = uid();
|
|
9
|
+
formRef.value.addEffects(id, effects);
|
|
10
|
+
onCleanup(() => {
|
|
11
|
+
formRef.value.removeEffects(id);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
onBeforeUnmount(() => stop());
|
|
12
15
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=useFormEffects.mjs.map
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useFormEffects };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=useFormEffects.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormEffects.mjs","sources":["../../src/hooks/useFormEffects.ts"],"sourcesContent":["import type { Form } from '@formily/core'\nimport { uid } from '@formily/shared'\nimport { onBeforeUnmount, watchEffect } from 'vue'\nimport { useForm } from './useForm'\n\nexport function useFormEffects(effects?: (form: Form) => void): void {\n const formRef = useForm()\n\n const stop = watchEffect((onCleanup) => {\n const id = uid()\n formRef.value.addEffects(id, effects)\n\n onCleanup(() => {\n formRef.value.removeEffects(id)\n })\n })\n\n onBeforeUnmount(() => stop())\n}\n"],"
|
|
1
|
+
{"version":3,"file":"useFormEffects.mjs","names":[],"sources":["../../src/hooks/useFormEffects.ts"],"sourcesContent":["import type { Form } from '@formily/core'\nimport { uid } from '@formily/shared'\nimport { onBeforeUnmount, watchEffect } from 'vue'\nimport { useForm } from './useForm'\n\nexport function useFormEffects(effects?: (form: Form) => void): void {\n const formRef = useForm()\n\n const stop = watchEffect((onCleanup) => {\n const id = uid()\n formRef.value.addEffects(id, effects)\n\n onCleanup(() => {\n formRef.value.removeEffects(id)\n })\n })\n\n onBeforeUnmount(() => stop())\n}\n"],"mappings":";;;;AAKA,SAAgB,eAAe,SAAsC;CACnE,MAAM,UAAU,SAAS;CAEzB,MAAM,OAAO,aAAa,cAAc;EACtC,MAAM,KAAK,KAAK;AAChB,UAAQ,MAAM,WAAW,IAAI,QAAQ;AAErC,kBAAgB;AACd,WAAQ,MAAM,cAAc,GAAG;IAC/B;GACF;AAEF,uBAAsB,MAAM,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { provide
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { provide, ref } from "vue";
|
|
2
|
+
//#region src/hooks/useInjectionCleaner.ts
|
|
3
|
+
function useInjectionCleaner(injectionKeys) {
|
|
4
|
+
injectionKeys.forEach((key) => provide(key, ref()));
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=useInjectionCleaner.mjs.map
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useInjectionCleaner };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=useInjectionCleaner.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInjectionCleaner.mjs","sources":["../../src/hooks/useInjectionCleaner.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue'\nimport { provide, ref } from 'vue'\n\nexport function useInjectionCleaner(injectionKeys: InjectionKey<Ref<unknown>>[]) {\n injectionKeys.forEach(key => provide(key, ref()))\n}\n"],"
|
|
1
|
+
{"version":3,"file":"useInjectionCleaner.mjs","names":[],"sources":["../../src/hooks/useInjectionCleaner.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue'\nimport { provide, ref } from 'vue'\n\nexport function useInjectionCleaner(injectionKeys: InjectionKey<Ref<unknown>>[]) {\n injectionKeys.forEach(key => provide(key, ref()))\n}\n"],"mappings":";;AAGA,SAAgB,oBAAoB,eAA6C;AAC/E,eAAc,SAAQ,QAAO,QAAQ,KAAK,KAAK,CAAC,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Ref } from "vue";
|
|
2
|
+
import { Form, ObjectField } from "@formily/core";
|
|
3
|
+
|
|
4
|
+
//#region src/hooks/useParentForm.d.ts
|
|
5
|
+
declare function useParentForm(): Ref<Form | ObjectField>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useParentForm };
|
|
8
|
+
//# sourceMappingURL=useParentForm.d.ts.map
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { useField } from "./useField.mjs";
|
|
2
|
+
import { useForm } from "./useForm.mjs";
|
|
3
|
+
import { computed } from "vue";
|
|
4
|
+
import { isObjectField } from "@formily/core";
|
|
5
|
+
//#region src/hooks/useParentForm.ts
|
|
6
|
+
function useParentForm() {
|
|
7
|
+
const field = useField();
|
|
8
|
+
const form = useForm();
|
|
9
|
+
const findObjectParent = (field) => {
|
|
10
|
+
if (!field) return form.value;
|
|
11
|
+
if (isObjectField(field)) return field;
|
|
12
|
+
return findObjectParent(field?.parent);
|
|
13
|
+
};
|
|
14
|
+
return computed(() => findObjectParent(field.value));
|
|
8
15
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=useParentForm.mjs.map
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useParentForm };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=useParentForm.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useParentForm.mjs","sources":["../../src/hooks/useParentForm.ts"],"sourcesContent":["import type { Form, GeneralField, ObjectField } from '@formily/core'\nimport type { Ref } from 'vue'\nimport { isObjectField } from '@formily/core'\nimport { computed } from 'vue'\nimport { useField } from './useField'\nimport { useForm } from './useForm'\n\nexport function useParentForm(): Ref<Form | ObjectField> {\n const field = useField()\n const form = useForm()\n const findObjectParent = (field: GeneralField) => {\n if (!field)\n return form.value\n if (isObjectField(field))\n return field\n return findObjectParent(field?.parent)\n }\n return computed(() => findObjectParent(field.value))\n}\n"],"
|
|
1
|
+
{"version":3,"file":"useParentForm.mjs","names":[],"sources":["../../src/hooks/useParentForm.ts"],"sourcesContent":["import type { Form, GeneralField, ObjectField } from '@formily/core'\nimport type { Ref } from 'vue'\nimport { isObjectField } from '@formily/core'\nimport { computed } from 'vue'\nimport { useField } from './useField'\nimport { useForm } from './useForm'\n\nexport function useParentForm(): Ref<Form | ObjectField> {\n const field = useField()\n const form = useForm()\n const findObjectParent = (field: GeneralField) => {\n if (!field)\n return form.value\n if (isObjectField(field))\n return field\n return findObjectParent(field?.parent)\n }\n return computed(() => findObjectParent(field.value))\n}\n"],"mappings":";;;;;AAOA,SAAgB,gBAAyC;CACvD,MAAM,QAAQ,UAAU;CACxB,MAAM,OAAO,SAAS;CACtB,MAAM,oBAAoB,UAAwB;AAChD,MAAI,CAAC,MACH,QAAO,KAAK;AACd,MAAI,cAAc,MAAM,CACtB,QAAO;AACT,SAAO,iBAAiB,OAAO,OAAO;;AAExC,QAAO,eAAe,iBAAiB,MAAM,MAAM,CAAC"}
|
package/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Validator } from "./types/validator.js";
|
|
2
|
+
import { _default } from "./components/ArrayField.js";
|
|
3
|
+
import { ComponentPath, ComponentPropsByPathValue, IArrayFieldProps, IComponentMapper, IExpressionScopeProps, IFieldFactoryProps, IFieldProps, IObjectFieldProps, IProviderProps, IReactiveFieldProps, IRecursionFieldProps, ISchemaFieldProps, ISchemaFieldVueFactoryOptions, ISchemaFilter, ISchemaMapper, ISchemaMarkupFieldProps, ISchemaTypeFieldProps, IStateMapper, IVoidFieldProps, SchemaExpressionScope, SchemaFieldValidator, SchemaMarkupValidator, SchemaMultiValidator, SchemaValidateResult, SchemaValidatorFunction, SchemaValidatorResponse, SchemaValidatorRules, SchemaVueComponents, VueComponentOptionsWithProps, VueComponentProps } from "./types/index.js";
|
|
4
|
+
import { _default as _default$1 } from "./components/ExpressionScope.js";
|
|
5
|
+
import { _default as _default$2 } from "./components/Field.js";
|
|
6
|
+
import { _default as _default$3 } from "./components/FormConsumer.js";
|
|
7
|
+
import { _default as _default$4 } from "./components/FormProvider.js";
|
|
8
|
+
import { _default as _default$5 } from "./components/ObjectField.js";
|
|
9
|
+
import { RecursionField } from "./components/RecursionField.js";
|
|
10
|
+
import { createSchemaField } from "./components/SchemaField.js";
|
|
11
|
+
import { _default as _default$6 } from "./components/VoidField.js";
|
|
12
|
+
import { useField } from "./hooks/useField.js";
|
|
13
|
+
import { useFieldSchema } from "./hooks/useFieldSchema.js";
|
|
14
|
+
import { useForm } from "./hooks/useForm.js";
|
|
15
|
+
import { useFormEffects } from "./hooks/useFormEffects.js";
|
|
16
|
+
import { useParentForm } from "./hooks/useParentForm.js";
|
|
17
|
+
import { connect, mapProps, mapReadPretty } from "./shared/connect.js";
|
|
18
|
+
import { FieldSymbol, FormSymbol, SchemaExpressionScopeSymbol, SchemaMarkupSymbol, SchemaOptionsSymbol, SchemaSymbol } from "./shared/context.js";
|
|
19
|
+
export { _default as ArrayField, ComponentPath, ComponentPropsByPathValue, _default$1 as ExpressionScope, _default$2 as Field, FieldSymbol, _default$3 as FormConsumer, _default$4 as FormProvider, FormSymbol, Validator as FormilyValidator, IArrayFieldProps, IComponentMapper, IExpressionScopeProps, IFieldFactoryProps, IFieldProps, IObjectFieldProps, IProviderProps, IReactiveFieldProps, IRecursionFieldProps, ISchemaFieldProps, ISchemaFieldVueFactoryOptions, ISchemaFilter, ISchemaMapper, ISchemaMarkupFieldProps, ISchemaTypeFieldProps, IStateMapper, IVoidFieldProps, _default$5 as ObjectField, RecursionField, SchemaExpressionScope, SchemaExpressionScopeSymbol, SchemaFieldValidator, SchemaMarkupSymbol, SchemaMarkupValidator, SchemaMultiValidator, SchemaOptionsSymbol, SchemaSymbol, SchemaValidateResult, SchemaValidatorFunction, SchemaValidatorResponse, SchemaValidatorRules, SchemaVueComponents, _default$6 as VoidField, VueComponentOptionsWithProps, VueComponentProps, connect, createSchemaField, mapProps, mapReadPretty, useField, useFieldSchema, useForm, useFormEffects, useParentForm };
|
package/esm/index.mjs
CHANGED
|
@@ -1,42 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
w as FieldSymbol,
|
|
22
|
-
l as FormConsumer,
|
|
23
|
-
d as FormProvider,
|
|
24
|
-
z as FormSymbol,
|
|
25
|
-
u as ObjectField,
|
|
26
|
-
F as RecursionField,
|
|
27
|
-
B as SchemaExpressionScopeSymbol,
|
|
28
|
-
D as SchemaMarkupSymbol,
|
|
29
|
-
G as SchemaOptionsSymbol,
|
|
30
|
-
H as SchemaSymbol,
|
|
31
|
-
y as VoidField,
|
|
32
|
-
M as connect,
|
|
33
|
-
S as createSchemaField,
|
|
34
|
-
V as mapProps,
|
|
35
|
-
g as mapReadPretty,
|
|
36
|
-
h as useField,
|
|
37
|
-
E as useFieldSchema,
|
|
38
|
-
R as useForm,
|
|
39
|
-
k as useFormEffects,
|
|
40
|
-
A as useParentForm
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import { FieldSymbol, FormSymbol, SchemaExpressionScopeSymbol, SchemaMarkupSymbol, SchemaOptionsSymbol, SchemaSymbol } from "./shared/context.mjs";
|
|
2
|
+
import { useField } from "./hooks/useField.mjs";
|
|
3
|
+
import { useFieldSchema } from "./hooks/useFieldSchema.mjs";
|
|
4
|
+
import { useForm } from "./hooks/useForm.mjs";
|
|
5
|
+
import { useFormEffects } from "./hooks/useFormEffects.mjs";
|
|
6
|
+
import { useParentForm } from "./hooks/useParentForm.mjs";
|
|
7
|
+
import "./hooks/index.mjs";
|
|
8
|
+
import { connect, mapProps, mapReadPretty } from "./shared/connect.mjs";
|
|
9
|
+
import "./shared/index.mjs";
|
|
10
|
+
import ArrayField_default from "./components/ArrayField.mjs";
|
|
11
|
+
import ExpressionScope_default from "./components/ExpressionScope.mjs";
|
|
12
|
+
import Field_default from "./components/Field.mjs";
|
|
13
|
+
import FormConsumer_default from "./components/FormConsumer.mjs";
|
|
14
|
+
import FormProvider_default from "./components/FormProvider.mjs";
|
|
15
|
+
import ObjectField_default from "./components/ObjectField.mjs";
|
|
16
|
+
import VoidField_default from "./components/VoidField.mjs";
|
|
17
|
+
import RecursionField from "./components/RecursionField.mjs";
|
|
18
|
+
import { createSchemaField } from "./components/SchemaField.mjs";
|
|
19
|
+
import "./components/index.mjs";
|
|
20
|
+
export { ArrayField_default as ArrayField, ExpressionScope_default as ExpressionScope, Field_default as Field, FieldSymbol, FormConsumer_default as FormConsumer, FormProvider_default as FormProvider, FormSymbol, ObjectField_default as ObjectField, RecursionField, SchemaExpressionScopeSymbol, SchemaMarkupSymbol, SchemaOptionsSymbol, SchemaSymbol, VoidField_default as VoidField, connect, createSchemaField, mapProps, mapReadPretty, useField, useFieldSchema, useForm, useFormEffects, useParentForm };
|
package/esm/shared/connect.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { IComponentMapper, IStateMapper, VueComponentProps } from "../types/index.js";
|
|
2
|
+
import { Component } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/connect.d.ts
|
|
5
|
+
declare function mapProps<T extends Component = Component>(...args: IStateMapper<VueComponentProps<T>>[]): (target: T) => any;
|
|
6
|
+
declare function mapReadPretty<T extends Component, C extends Component>(component: C, readPrettyProps?: Record<string, any>): (target: T) => any;
|
|
7
|
+
declare function connect<T extends Component>(target: T, ...args: IComponentMapper[]): T;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { connect, mapProps, mapReadPretty };
|
|
10
|
+
//# sourceMappingURL=connect.d.ts.map
|
package/esm/shared/connect.mjs
CHANGED
|
@@ -1,66 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { useField } from "../hooks/useField.mjs";
|
|
2
|
+
import { createVNodeProps, extractAttrsAndEvents } from "../utils/reactiveFieldHelpers.mjs";
|
|
3
|
+
import { defineComponent, h, markRaw } from "vue";
|
|
4
|
+
import { isVoidField } from "@formily/core";
|
|
5
|
+
import { FormPath, each, isFn, isStr, isValid } from "@formily/shared";
|
|
6
|
+
import { observer } from "@silver-formily/reactive-vue";
|
|
7
|
+
//#region src/shared/connect.ts
|
|
8
|
+
function mapProps(...args) {
|
|
9
|
+
const transform = (input, field) => args.reduce((props, mapper) => {
|
|
10
|
+
if (isFn(mapper)) props = Object.assign(props, mapper(props, field));
|
|
11
|
+
else each(mapper, (to, extract) => {
|
|
12
|
+
const extractValue = FormPath.getIn(field, extract);
|
|
13
|
+
const targetValue = isStr(to) ? to : extract;
|
|
14
|
+
const originalValue = FormPath.getIn(props, targetValue);
|
|
15
|
+
if (extract === "value") {
|
|
16
|
+
if (to !== extract) delete props.value;
|
|
17
|
+
}
|
|
18
|
+
if (isValid(originalValue) && !isValid(extractValue)) return;
|
|
19
|
+
FormPath.setIn(props, targetValue, extractValue);
|
|
20
|
+
});
|
|
21
|
+
return props;
|
|
22
|
+
}, input);
|
|
23
|
+
return (target) => {
|
|
24
|
+
return observer(defineComponent({
|
|
25
|
+
name: target.name ? `Connected${target.name}` : `ConnectedComponent`,
|
|
26
|
+
setup(_, { attrs, slots }) {
|
|
27
|
+
const fieldRef = useField();
|
|
28
|
+
return () => {
|
|
29
|
+
const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs);
|
|
30
|
+
const baseAttrs = { ...normalizedAttrs };
|
|
31
|
+
return h(target, createVNodeProps(fieldRef.value ? transform(baseAttrs, fieldRef.value) : baseAttrs, events), slots);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
24
36
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
r
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
})
|
|
47
|
-
);
|
|
37
|
+
function mapReadPretty(component, readPrettyProps) {
|
|
38
|
+
return (target) => {
|
|
39
|
+
return observer(defineComponent({
|
|
40
|
+
name: target.name ? `Read${target.name}` : `ReadComponent`,
|
|
41
|
+
setup(_, { attrs, slots }) {
|
|
42
|
+
const fieldRef = useField();
|
|
43
|
+
return () => {
|
|
44
|
+
const field = fieldRef.value;
|
|
45
|
+
const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs);
|
|
46
|
+
return h(field && !isVoidField(field) && field.pattern === "readPretty" ? component : target, createVNodeProps({
|
|
47
|
+
...readPrettyProps,
|
|
48
|
+
...normalizedAttrs
|
|
49
|
+
}, events), slots);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
48
54
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
function connect(target, ...args) {
|
|
56
|
+
const Component = args.reduce((target, mapper) => {
|
|
57
|
+
return mapper(target);
|
|
58
|
+
}, target);
|
|
59
|
+
return markRaw(defineComponent({
|
|
60
|
+
name: target.name,
|
|
61
|
+
setup(_, { attrs, slots }) {
|
|
62
|
+
return () => {
|
|
63
|
+
const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs);
|
|
64
|
+
return h(Component, createVNodeProps(normalizedAttrs, events), slots);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}));
|
|
60
68
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=connect.mjs.map
|
|
69
|
+
//#endregion
|
|
70
|
+
export { connect, mapProps, mapReadPretty };
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=connect.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.mjs","sources":["../../src/shared/connect.ts"],"sourcesContent":["import type { GeneralField } from '@formily/core'\nimport type { Component } from 'vue'\nimport type { IComponentMapper, IStateMapper, VueComponentProps } from '../types'\nimport { isVoidField } from '@formily/core'\nimport { each, FormPath, isFn, isStr, isValid } from '@formily/shared'\nimport { observer } from '@silver-formily/reactive-vue'\nimport { defineComponent, h, markRaw } from 'vue'\nimport { useField } from '../hooks/useField'\n\nimport { createVNodeProps, extractAttrsAndEvents } from '../utils/reactiveFieldHelpers'\n\nexport function mapProps<T extends Component = Component>(\n ...args: IStateMapper<VueComponentProps<T>>[]\n) {\n const transform = (input: VueComponentProps<T>, field: GeneralField) =>\n args.reduce((props, mapper) => {\n if (isFn(mapper)) {\n props = Object.assign(props, mapper(props, field))\n }\n else {\n each(mapper, (to, extract) => {\n const extractValue = FormPath.getIn(field, extract)\n const targetValue = isStr(to) ? to : extract\n const originalValue = FormPath.getIn(props, targetValue)\n if (extract === 'value') {\n if (to !== extract) {\n delete props.value\n }\n }\n if (isValid(originalValue) && !isValid(extractValue))\n return\n FormPath.setIn(props, targetValue, extractValue)\n })\n }\n return props\n }, input)\n\n return (target: T) => {\n return observer(\n defineComponent({\n name: target.name ? `Connected${target.name}` : `ConnectedComponent`,\n setup(_, { attrs, slots }) {\n const fieldRef = useField()\n return () => {\n const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs)\n const baseAttrs = { ...normalizedAttrs } as VueComponentProps<T>\n const newAttrs = fieldRef.value ? transform(baseAttrs, fieldRef.value) : baseAttrs\n return h(target, createVNodeProps(newAttrs, events), slots)\n }\n },\n }),\n )\n }\n}\n\nexport function mapReadPretty<T extends Component, C extends Component>(\n component: C,\n readPrettyProps?: Record<string, any>,\n) {\n return (target: T) => {\n return observer(\n defineComponent({\n name: target.name ? `Read${target.name}` : `ReadComponent`,\n setup(_, { attrs, slots }) {\n const fieldRef = useField()\n return () => {\n const field = fieldRef.value\n const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs)\n return h(\n field && !isVoidField(field) && field.pattern === 'readPretty' ? component : target,\n createVNodeProps(\n {\n ...readPrettyProps,\n ...normalizedAttrs,\n },\n events,\n ),\n slots,\n )\n }\n },\n }),\n )\n }\n}\n\nexport function connect<T extends Component>(target: T, ...args: IComponentMapper[]): T {\n const Component = args.reduce((target: Component, mapper) => {\n return mapper(target)\n }, target)\n\n const functionalComponent = defineComponent({\n name: target.name,\n setup(_, { attrs, slots }) {\n return () => {\n const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs)\n return h(Component, createVNodeProps(normalizedAttrs, events), slots)\n }\n },\n })\n\n return markRaw(functionalComponent) as unknown as T\n}\n"],"
|
|
1
|
+
{"version":3,"file":"connect.mjs","names":[],"sources":["../../src/shared/connect.ts"],"sourcesContent":["import type { GeneralField } from '@formily/core'\nimport type { Component } from 'vue'\nimport type { IComponentMapper, IStateMapper, VueComponentProps } from '../types'\nimport { isVoidField } from '@formily/core'\nimport { each, FormPath, isFn, isStr, isValid } from '@formily/shared'\nimport { observer } from '@silver-formily/reactive-vue'\nimport { defineComponent, h, markRaw } from 'vue'\nimport { useField } from '../hooks/useField'\n\nimport { createVNodeProps, extractAttrsAndEvents } from '../utils/reactiveFieldHelpers'\n\nexport function mapProps<T extends Component = Component>(\n ...args: IStateMapper<VueComponentProps<T>>[]\n) {\n const transform = (input: VueComponentProps<T>, field: GeneralField) =>\n args.reduce((props, mapper) => {\n if (isFn(mapper)) {\n props = Object.assign(props, mapper(props, field))\n }\n else {\n each(mapper, (to, extract) => {\n const extractValue = FormPath.getIn(field, extract)\n const targetValue = isStr(to) ? to : extract\n const originalValue = FormPath.getIn(props, targetValue)\n if (extract === 'value') {\n if (to !== extract) {\n delete props.value\n }\n }\n if (isValid(originalValue) && !isValid(extractValue))\n return\n FormPath.setIn(props, targetValue, extractValue)\n })\n }\n return props\n }, input)\n\n return (target: T) => {\n return observer(\n defineComponent({\n name: target.name ? `Connected${target.name}` : `ConnectedComponent`,\n setup(_, { attrs, slots }) {\n const fieldRef = useField()\n return () => {\n const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs)\n const baseAttrs = { ...normalizedAttrs } as VueComponentProps<T>\n const newAttrs = fieldRef.value ? transform(baseAttrs, fieldRef.value) : baseAttrs\n return h(target, createVNodeProps(newAttrs, events), slots)\n }\n },\n }),\n )\n }\n}\n\nexport function mapReadPretty<T extends Component, C extends Component>(\n component: C,\n readPrettyProps?: Record<string, any>,\n) {\n return (target: T) => {\n return observer(\n defineComponent({\n name: target.name ? `Read${target.name}` : `ReadComponent`,\n setup(_, { attrs, slots }) {\n const fieldRef = useField()\n return () => {\n const field = fieldRef.value\n const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs)\n return h(\n field && !isVoidField(field) && field.pattern === 'readPretty' ? component : target,\n createVNodeProps(\n {\n ...readPrettyProps,\n ...normalizedAttrs,\n },\n events,\n ),\n slots,\n )\n }\n },\n }),\n )\n }\n}\n\nexport function connect<T extends Component>(target: T, ...args: IComponentMapper[]): T {\n const Component = args.reduce((target: Component, mapper) => {\n return mapper(target)\n }, target)\n\n const functionalComponent = defineComponent({\n name: target.name,\n setup(_, { attrs, slots }) {\n return () => {\n const { attrs: normalizedAttrs, events } = extractAttrsAndEvents(attrs)\n return h(Component, createVNodeProps(normalizedAttrs, events), slots)\n }\n },\n })\n\n return markRaw(functionalComponent) as unknown as T\n}\n"],"mappings":";;;;;;;AAWA,SAAgB,SACd,GAAG,MACH;CACA,MAAM,aAAa,OAA6B,UAC9C,KAAK,QAAQ,OAAO,WAAW;AAC7B,MAAI,KAAK,OAAO,CACd,SAAQ,OAAO,OAAO,OAAO,OAAO,OAAO,MAAM,CAAC;MAGlD,MAAK,SAAS,IAAI,YAAY;GAC5B,MAAM,eAAe,SAAS,MAAM,OAAO,QAAQ;GACnD,MAAM,cAAc,MAAM,GAAG,GAAG,KAAK;GACrC,MAAM,gBAAgB,SAAS,MAAM,OAAO,YAAY;AACxD,OAAI,YAAY;QACV,OAAO,QACT,QAAO,MAAM;;AAGjB,OAAI,QAAQ,cAAc,IAAI,CAAC,QAAQ,aAAa,CAClD;AACF,YAAS,MAAM,OAAO,aAAa,aAAa;IAChD;AAEJ,SAAO;IACN,MAAM;AAEX,SAAQ,WAAc;AACpB,SAAO,SACL,gBAAgB;GACd,MAAM,OAAO,OAAO,YAAY,OAAO,SAAS;GAChD,MAAM,GAAG,EAAE,OAAO,SAAS;IACzB,MAAM,WAAW,UAAU;AAC3B,iBAAa;KACX,MAAM,EAAE,OAAO,iBAAiB,WAAW,sBAAsB,MAAM;KACvE,MAAM,YAAY,EAAE,GAAG,iBAAiB;AAExC,YAAO,EAAE,QAAQ,iBADA,SAAS,QAAQ,UAAU,WAAW,SAAS,MAAM,GAAG,WAC7B,OAAO,EAAE,MAAM;;;GAGhE,CAAC,CACH;;;AAIL,SAAgB,cACd,WACA,iBACA;AACA,SAAQ,WAAc;AACpB,SAAO,SACL,gBAAgB;GACd,MAAM,OAAO,OAAO,OAAO,OAAO,SAAS;GAC3C,MAAM,GAAG,EAAE,OAAO,SAAS;IACzB,MAAM,WAAW,UAAU;AAC3B,iBAAa;KACX,MAAM,QAAQ,SAAS;KACvB,MAAM,EAAE,OAAO,iBAAiB,WAAW,sBAAsB,MAAM;AACvE,YAAO,EACL,SAAS,CAAC,YAAY,MAAM,IAAI,MAAM,YAAY,eAAe,YAAY,QAC7E,iBACE;MACE,GAAG;MACH,GAAG;MACJ,EACD,OACD,EACD,MACD;;;GAGN,CAAC,CACH;;;AAIL,SAAgB,QAA6B,QAAW,GAAG,MAA6B;CACtF,MAAM,YAAY,KAAK,QAAQ,QAAmB,WAAW;AAC3D,SAAO,OAAO,OAAO;IACpB,OAAO;AAYV,QAAO,QAVqB,gBAAgB;EAC1C,MAAM,OAAO;EACb,MAAM,GAAG,EAAE,OAAO,SAAS;AACzB,gBAAa;IACX,MAAM,EAAE,OAAO,iBAAiB,WAAW,sBAAsB,MAAM;AACvE,WAAO,EAAE,WAAW,iBAAiB,iBAAiB,OAAO,EAAE,MAAM;;;EAG1E,CAAC,CAEiC"}
|
package/esm/shared/context.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { ISchemaFieldVueFactoryOptions, SchemaExpressionScope } from "../types/index.js";
|
|
2
|
+
import { InjectionKey, Ref } from "vue";
|
|
3
|
+
import { Form, GeneralField } from "@formily/core";
|
|
4
|
+
import { Schema } from "@formily/json-schema";
|
|
5
|
+
|
|
6
|
+
//#region src/shared/context.d.ts
|
|
7
|
+
declare const FormSymbol: InjectionKey<Ref<Form>>;
|
|
8
|
+
declare const FieldSymbol: InjectionKey<Ref<GeneralField>>;
|
|
9
|
+
declare const SchemaMarkupSymbol: InjectionKey<Ref<Schema>>;
|
|
10
|
+
declare const SchemaSymbol: InjectionKey<Ref<Schema>>;
|
|
11
|
+
declare const SchemaExpressionScopeSymbol: InjectionKey<Ref<SchemaExpressionScope>>;
|
|
12
|
+
declare const SchemaOptionsSymbol: InjectionKey<Ref<ISchemaFieldVueFactoryOptions>>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { FieldSymbol, FormSymbol, SchemaExpressionScopeSymbol, SchemaMarkupSymbol, SchemaOptionsSymbol, SchemaSymbol };
|
|
15
|
+
//# sourceMappingURL=context.d.ts.map
|
package/esm/shared/context.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
1
|
+
//#region src/shared/context.ts
|
|
2
|
+
const FormSymbol = Symbol("form");
|
|
3
|
+
const FieldSymbol = Symbol("field");
|
|
4
|
+
const SchemaMarkupSymbol = Symbol("schemaMarkup");
|
|
5
|
+
const SchemaSymbol = Symbol("schema");
|
|
6
|
+
const SchemaExpressionScopeSymbol = Symbol("schemaExpression");
|
|
7
|
+
const SchemaOptionsSymbol = Symbol("schemaOptions");
|
|
8
|
+
//#endregion
|
|
9
|
+
export { FieldSymbol, FormSymbol, SchemaExpressionScopeSymbol, SchemaMarkupSymbol, SchemaOptionsSymbol, SchemaSymbol };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=context.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.mjs","sources":["../../src/shared/context.ts"],"sourcesContent":["import type { Form, GeneralField } from '@formily/core'\nimport type { Schema } from '@formily/json-schema'\nimport type { InjectionKey, Ref } from 'vue'\nimport type { ISchemaFieldVueFactoryOptions, SchemaExpressionScope } from '../types'\n\nexport const FormSymbol: InjectionKey<Ref<Form>> = Symbol('form')\nexport const FieldSymbol: InjectionKey<Ref<GeneralField>> = Symbol('field')\nexport const SchemaMarkupSymbol: InjectionKey<Ref<Schema>> = Symbol('schemaMarkup')\nexport const SchemaSymbol: InjectionKey<Ref<Schema>> = Symbol('schema')\nexport const SchemaExpressionScopeSymbol: InjectionKey<Ref<SchemaExpressionScope>>\n = Symbol('schemaExpression')\nexport const SchemaOptionsSymbol: InjectionKey<Ref<ISchemaFieldVueFactoryOptions>>\n = Symbol('schemaOptions')\n"],"
|
|
1
|
+
{"version":3,"file":"context.mjs","names":[],"sources":["../../src/shared/context.ts"],"sourcesContent":["import type { Form, GeneralField } from '@formily/core'\nimport type { Schema } from '@formily/json-schema'\nimport type { InjectionKey, Ref } from 'vue'\nimport type { ISchemaFieldVueFactoryOptions, SchemaExpressionScope } from '../types'\n\nexport const FormSymbol: InjectionKey<Ref<Form>> = Symbol('form')\nexport const FieldSymbol: InjectionKey<Ref<GeneralField>> = Symbol('field')\nexport const SchemaMarkupSymbol: InjectionKey<Ref<Schema>> = Symbol('schemaMarkup')\nexport const SchemaSymbol: InjectionKey<Ref<Schema>> = Symbol('schema')\nexport const SchemaExpressionScopeSymbol: InjectionKey<Ref<SchemaExpressionScope>>\n = Symbol('schemaExpression')\nexport const SchemaOptionsSymbol: InjectionKey<Ref<ISchemaFieldVueFactoryOptions>>\n = Symbol('schemaOptions')\n"],"mappings":";AAKA,MAAa,aAAsC,OAAO,OAAO;AACjE,MAAa,cAA+C,OAAO,QAAQ;AAC3E,MAAa,qBAAgD,OAAO,eAAe;AACnF,MAAa,eAA0C,OAAO,SAAS;AACvE,MAAa,8BACT,OAAO,mBAAmB;AAC9B,MAAa,sBACT,OAAO,gBAAgB"}
|
package/esm/shared/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { connect, mapProps, mapReadPretty } from "./connect.js";
|
|
2
|
+
import { FieldSymbol, FormSymbol, SchemaExpressionScopeSymbol, SchemaMarkupSymbol, SchemaOptionsSymbol, SchemaSymbol } from "./context.js";
|
package/esm/shared/index.mjs
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export {
|
|
4
|
-
a as FieldSymbol,
|
|
5
|
-
c as FormSymbol,
|
|
6
|
-
l as SchemaExpressionScopeSymbol,
|
|
7
|
-
y as SchemaMarkupSymbol,
|
|
8
|
-
b as SchemaOptionsSymbol,
|
|
9
|
-
t as SchemaSymbol,
|
|
10
|
-
e as connect,
|
|
11
|
-
S as mapProps,
|
|
12
|
-
p as mapReadPretty
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import "./context.mjs";
|
|
2
|
+
import "./connect.mjs";
|
|
3
|
+
export {};
|