@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.
Files changed (102) hide show
  1. package/README.en.md +6 -6
  2. package/README.md +6 -6
  3. package/esm/components/ArrayField.d.ts +67 -58
  4. package/esm/components/ArrayField.mjs +23 -23
  5. package/esm/components/ArrayField.mjs.map +1 -1
  6. package/esm/components/ExpressionScope.d.ts +21 -16
  7. package/esm/components/ExpressionScope.mjs +22 -24
  8. package/esm/components/ExpressionScope.mjs.map +1 -1
  9. package/esm/components/Field.d.ts +67 -58
  10. package/esm/components/Field.mjs +23 -23
  11. package/esm/components/Field.mjs.map +1 -1
  12. package/esm/components/FormConsumer.d.ts +9 -4
  13. package/esm/components/FormConsumer.mjs +17 -18
  14. package/esm/components/FormConsumer.mjs.map +1 -1
  15. package/esm/components/FormProvider.d.ts +21 -16
  16. package/esm/components/FormProvider.mjs +26 -26
  17. package/esm/components/FormProvider.mjs.map +1 -1
  18. package/esm/components/ObjectField.d.ts +68 -58
  19. package/esm/components/ObjectField.mjs +23 -23
  20. package/esm/components/ObjectField.mjs.map +1 -1
  21. package/esm/components/ReactiveField.mjs +103 -75
  22. package/esm/components/ReactiveField.mjs.map +1 -1
  23. package/esm/components/RecursionField.d.ts +142 -22
  24. package/esm/components/RecursionField.mjs +123 -127
  25. package/esm/components/RecursionField.mjs.map +1 -1
  26. package/esm/components/SchemaField.d.ts +3041 -2919
  27. package/esm/components/SchemaField.mjs +104 -97
  28. package/esm/components/SchemaField.mjs.map +1 -1
  29. package/esm/components/VoidField.d.ts +48 -42
  30. package/esm/components/VoidField.mjs +23 -23
  31. package/esm/components/VoidField.mjs.map +1 -1
  32. package/esm/components/index.d.ts +9 -9
  33. package/esm/components/index.mjs +10 -21
  34. package/esm/hooks/index.d.ts +5 -5
  35. package/esm/hooks/index.mjs +6 -13
  36. package/esm/hooks/useAttach.mjs +21 -13
  37. package/esm/hooks/useAttach.mjs.map +1 -1
  38. package/esm/hooks/useField.d.ts +8 -3
  39. package/esm/hooks/useField.mjs +9 -8
  40. package/esm/hooks/useField.mjs.map +1 -1
  41. package/esm/hooks/useFieldSchema.d.ts +8 -1
  42. package/esm/hooks/useFieldSchema.mjs +9 -8
  43. package/esm/hooks/useFieldSchema.mjs.map +1 -1
  44. package/esm/hooks/useForm.d.ts +8 -3
  45. package/esm/hooks/useForm.mjs +9 -8
  46. package/esm/hooks/useForm.mjs.map +1 -1
  47. package/esm/hooks/useFormEffects.d.ts +7 -2
  48. package/esm/hooks/useFormEffects.mjs +18 -15
  49. package/esm/hooks/useFormEffects.mjs.map +1 -1
  50. package/esm/hooks/useInjectionCleaner.mjs +8 -7
  51. package/esm/hooks/useInjectionCleaner.mjs.map +1 -1
  52. package/esm/hooks/useParentForm.d.ts +8 -3
  53. package/esm/hooks/useParentForm.mjs +18 -11
  54. package/esm/hooks/useParentForm.mjs.map +1 -1
  55. package/esm/index.d.ts +19 -4
  56. package/esm/index.mjs +20 -42
  57. package/esm/shared/connect.d.ts +10 -5
  58. package/esm/shared/connect.mjs +69 -63
  59. package/esm/shared/connect.mjs.map +1 -1
  60. package/esm/shared/context.d.ts +15 -10
  61. package/esm/shared/context.mjs +11 -10
  62. package/esm/shared/context.mjs.map +1 -1
  63. package/esm/shared/index.d.ts +2 -2
  64. package/esm/shared/index.mjs +3 -14
  65. package/esm/types/index.d.ts +72 -68
  66. package/esm/types/validator.d.ts +39 -35
  67. package/esm/utils/fieldProps.mjs +53 -51
  68. package/esm/utils/fieldProps.mjs.map +1 -1
  69. package/esm/utils/getRawComponent.mjs +16 -12
  70. package/esm/utils/getRawComponent.mjs.map +1 -1
  71. package/esm/utils/reactiveFieldHelpers.mjs +116 -94
  72. package/esm/utils/reactiveFieldHelpers.mjs.map +1 -1
  73. package/esm/utils/recursionFieldProps.mjs +14 -13
  74. package/esm/utils/recursionFieldProps.mjs.map +1 -1
  75. package/esm/utils/resolveSchemaProps.mjs +13 -10
  76. package/esm/utils/resolveSchemaProps.mjs.map +1 -1
  77. package/esm/utils/runtimeProps.d.ts +10 -7
  78. package/esm/utils/runtimeProps.mjs +15 -15
  79. package/esm/utils/runtimeProps.mjs.map +1 -1
  80. package/esm/utils/schemaFieldProps.mjs +63 -62
  81. package/esm/utils/schemaFieldProps.mjs.map +1 -1
  82. package/package.json +13 -12
  83. package/esm/components/ReactiveField.d.ts +0 -16
  84. package/esm/components/index.mjs.map +0 -1
  85. package/esm/global.d.d.ts +0 -1
  86. package/esm/global.d.mjs +0 -2
  87. package/esm/global.d.mjs.map +0 -1
  88. package/esm/hooks/index.mjs.map +0 -1
  89. package/esm/hooks/useAttach.d.ts +0 -7
  90. package/esm/hooks/useInjectionCleaner.d.ts +0 -2
  91. package/esm/index.mjs.map +0 -1
  92. package/esm/shared/index.mjs.map +0 -1
  93. package/esm/types/index.mjs +0 -2
  94. package/esm/types/index.mjs.map +0 -1
  95. package/esm/types/validator.mjs +0 -2
  96. package/esm/types/validator.mjs.map +0 -1
  97. package/esm/utils/fieldProps.d.ts +0 -51
  98. package/esm/utils/getRawComponent.d.ts +0 -8
  99. package/esm/utils/reactiveFieldHelpers.d.ts +0 -16
  100. package/esm/utils/recursionFieldProps.d.ts +0 -67
  101. package/esm/utils/resolveSchemaProps.d.ts +0 -1
  102. package/esm/utils/schemaFieldProps.d.ts +0 -232
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@silver-formily/vue",
3
3
  "type": "module",
4
- "version": "2.3.2",
4
+ "version": "2.3.4",
5
5
  "description": "Vue3 版本的 @formily/vue",
6
6
  "author": "hezhengxu",
7
7
  "license": "MIT",
@@ -20,7 +20,11 @@
20
20
  "import": "./esm/index.mjs",
21
21
  "default": "./esm/index.mjs"
22
22
  },
23
- "./*": "./esm/*"
23
+ "./*": {
24
+ "types": "./esm/*.d.ts",
25
+ "import": "./esm/*.mjs",
26
+ "default": "./esm/*.mjs"
27
+ }
24
28
  },
25
29
  "main": "./esm/index.mjs",
26
30
  "types": "./esm/index.d.ts",
@@ -44,11 +48,10 @@
44
48
  }
45
49
  },
46
50
  "devDependencies": {
47
- "@antfu/eslint-config": "^5.2.1",
51
+ "@antfu/eslint-config": "^8.2.0",
48
52
  "@commitlint/config-conventional": "^19.8.1",
49
53
  "@formily/validator": "^2.3.7",
50
54
  "@types/node": "^24.3.0",
51
- "@vitejs/plugin-vue": "^6.0.3",
52
55
  "@vue/language-core": "~3.0.1",
53
56
  "@vue/shared": "^3.5.27",
54
57
  "commitlint": "^19.8.1",
@@ -56,20 +59,18 @@
56
59
  "czg": "^1.12.0",
57
60
  "eslint": "^9.36.0",
58
61
  "eslint-plugin-format": "^1.3.1",
59
- "fast-glob": "^3.3.3",
60
- "typescript": "5.9.2",
61
- "unplugin-dts": "1.0.0-beta.6",
62
- "vite": "^7.3.1",
63
- "@silver-formily/reactive-vue": "1.1.0",
62
+ "tsdown": "^0.21.7",
63
+ "typescript": "6.0.2",
64
+ "vue": "^3.5.27",
65
+ "vue-tsc": "^3.2.6",
66
+ "@silver-formily/reactive-vue": "1.1.1",
64
67
  "@silver-formily/typescript-config": "0.0.0"
65
68
  },
66
69
  "scripts": {
67
- "build": "vite build",
70
+ "build": "tsdown --tsconfig tsconfig.build.json",
68
71
  "lint": "eslint .",
69
72
  "format": "eslint . --fix",
70
73
  "check-types": "vue-tsc --noEmit",
71
- "docs:dev": "pnpm --filter vue-docs dev",
72
- "docs:build": "pnpm turbo run docs:build --filter=vue-docs",
73
74
  "commit": "czg"
74
75
  }
75
76
  }
@@ -1,16 +0,0 @@
1
- import { VNode } from 'vue';
2
- declare const _default: import('vue').DefineComponent<{
3
- fieldType: "Field" | "ArrayField" | "ObjectField" | "VoidField";
4
- fieldProps: import('..').IVoidFieldProps<import('vue').Component, import('vue').Component>;
5
- }, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
6
- [key: string]: any;
7
- }> | VNode<import('vue').RendererNode, import('vue').RendererElement, {
8
- [key: string]: any;
9
- }>[] | null | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
10
- fieldType: "Field" | "ArrayField" | "ObjectField" | "VoidField";
11
- fieldProps: import('..').IVoidFieldProps<import('vue').Component, import('vue').Component>;
12
- }> & Readonly<{}>, {
13
- fieldType: string;
14
- fieldProps: Record<string, any>;
15
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
- export default _default;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
package/esm/global.d.d.ts DELETED
@@ -1 +0,0 @@
1
- export {}
package/esm/global.d.mjs DELETED
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=global.d.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global.d.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,7 +0,0 @@
1
- import { Ref } from 'vue';
2
- interface IRecycleTarget {
3
- onMount: () => void;
4
- onUnmount: () => void;
5
- }
6
- export declare function useAttach<T extends IRecycleTarget>(target: Ref<T>): Ref<T>;
7
- export {};
@@ -1,2 +0,0 @@
1
- import { InjectionKey, Ref } from 'vue';
2
- export declare function useInjectionCleaner(injectionKeys: InjectionKey<Ref<unknown>>[]): void;
package/esm/index.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=validator.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validator.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,51 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- export declare const fieldProps: {
3
- readonly name: import('./runtimeProps').RuntimeProp<import('@formily/core').FormPathPattern>;
4
- readonly title: import('./runtimeProps').RuntimeProp<any>;
5
- readonly description: import('./runtimeProps').RuntimeProp<any>;
6
- readonly value: import('./runtimeProps').RuntimeProp<any>;
7
- readonly initialValue: import('./runtimeProps').RuntimeProp<any>;
8
- readonly basePath: import('./runtimeProps').RuntimeProp<import('@formily/core').FormPathPattern | undefined>;
9
- readonly decorator: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldDecorator<import('vue').Component, any> | undefined>;
10
- readonly decoratorContent: import('./runtimeProps').RuntimeProp<any>;
11
- readonly component: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldComponent<import('vue').Component, any> | undefined>;
12
- readonly display: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldDisplayTypes | undefined>;
13
- readonly pattern: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldPatternTypes | undefined>;
14
- readonly required: import('./runtimeProps').RuntimeProp<boolean>;
15
- readonly validateFirst: import('./runtimeProps').RuntimeProp<boolean>;
16
- readonly hidden: import('./runtimeProps').RuntimeProp<boolean>;
17
- readonly visible: import('./runtimeProps').RuntimeProp<boolean>;
18
- readonly editable: import('./runtimeProps').RuntimeProp<boolean>;
19
- readonly disabled: import('./runtimeProps').RuntimeProp<boolean>;
20
- readonly readOnly: import('./runtimeProps').RuntimeProp<boolean>;
21
- readonly readPretty: import('./runtimeProps').RuntimeProp<boolean>;
22
- readonly dataSource: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldDataSource | undefined>;
23
- readonly validatePattern: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldPatternTypes[] | undefined>;
24
- readonly validateDisplay: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldDisplayTypes[] | undefined>;
25
- readonly validator: import('./runtimeProps').RuntimeProp<import('..').SchemaFieldValidator | undefined>;
26
- readonly reactions: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldReaction | import('@formily/core').FieldReaction[] | undefined>;
27
- readonly content: import('./runtimeProps').RuntimeProp<any>;
28
- readonly data: import('./runtimeProps').RuntimeProp<any>;
29
- };
30
- export declare const voidFieldProps: {
31
- readonly name: import('./runtimeProps').RuntimeProp<import('@formily/core').FormPathPattern>;
32
- readonly title: import('./runtimeProps').RuntimeProp<any>;
33
- readonly description: import('./runtimeProps').RuntimeProp<any>;
34
- readonly basePath: import('./runtimeProps').RuntimeProp<import('@formily/core').FormPathPattern | undefined>;
35
- readonly decorator: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldDecorator<import('vue').Component, any> | undefined>;
36
- readonly decoratorContent: import('./runtimeProps').RuntimeProp<any>;
37
- readonly component: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldComponent<import('vue').Component, any> | undefined>;
38
- readonly display: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldDisplayTypes | undefined>;
39
- readonly pattern: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldPatternTypes | undefined>;
40
- readonly hidden: import('./runtimeProps').RuntimeProp<boolean>;
41
- readonly visible: import('./runtimeProps').RuntimeProp<boolean>;
42
- readonly editable: import('./runtimeProps').RuntimeProp<boolean>;
43
- readonly disabled: import('./runtimeProps').RuntimeProp<boolean>;
44
- readonly readOnly: import('./runtimeProps').RuntimeProp<boolean>;
45
- readonly readPretty: import('./runtimeProps').RuntimeProp<boolean>;
46
- readonly reactions: import('./runtimeProps').RuntimeProp<import('@formily/core').FieldReaction | import('@formily/core').FieldReaction[] | undefined>;
47
- readonly content: import('./runtimeProps').RuntimeProp<any>;
48
- readonly data: import('./runtimeProps').RuntimeProp<any>;
49
- };
50
- export type FieldProps = ExtractPropTypes<typeof fieldProps>;
51
- export type VoidFieldProps = ExtractPropTypes<typeof voidFieldProps>;
@@ -1,8 +0,0 @@
1
- import { Component } from 'vue';
2
- import { IFieldProps } from '../types';
3
- type ComponentLikeProps = Pick<IFieldProps<Component, Component>, 'component' | 'decorator'>;
4
- export declare function getRawComponent(props: ComponentLikeProps): {
5
- component: boolean | any[] | undefined;
6
- decorator: boolean | any[] | undefined;
7
- };
8
- export {};
@@ -1,16 +0,0 @@
1
- import { GeneralField } from '@formily/core';
2
- import { Component, Slots, VNode } from 'vue';
3
- type SlotContent = string | Component | null | undefined;
4
- type SlotContentMap = Record<string, SlotContent>;
5
- type FieldContent = SlotContent | SlotContentMap | null | undefined;
6
- type EventHandler = (...args: unknown[]) => unknown;
7
- type EventMap = Partial<Record<string, EventHandler>>;
8
- type Attrs = Record<string, unknown>;
9
- export declare function wrapFragment(childNodes?: VNode[] | VNode | null): VNode | null;
10
- export declare function mergeSlots(field: GeneralField, slots: Slots, content: FieldContent): Slots;
11
- export declare function extractAttrsAndEvents(rawAttrs?: Attrs): {
12
- attrs: Attrs;
13
- events: EventMap;
14
- };
15
- export declare function createVNodeProps(attrs: Attrs, events: EventMap): Attrs;
16
- export {};
@@ -1,67 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- export declare const recursionFieldProps: {
3
- readonly schema: import('./runtimeProps').RuntimeProp<import('@formily/json-schema').Stringify<{
4
- [key: symbol]: any;
5
- [key: `x-${string}`]: any;
6
- [key: `x-${number}`]: any;
7
- version?: string;
8
- name?: import('@formily/json-schema').SchemaKey;
9
- title?: any;
10
- description?: any;
11
- default?: any;
12
- readOnly?: boolean;
13
- writeOnly?: boolean;
14
- type?: import('@formily/json-schema').SchemaTypes;
15
- enum?: import('@formily/json-schema').SchemaEnum<any> | undefined;
16
- const?: any;
17
- multipleOf?: number;
18
- maximum?: number;
19
- exclusiveMaximum?: number;
20
- minimum?: number;
21
- exclusiveMinimum?: number;
22
- maxLength?: number;
23
- minLength?: number;
24
- pattern?: string | RegExp;
25
- maxItems?: number;
26
- minItems?: number;
27
- uniqueItems?: boolean;
28
- maxProperties?: number;
29
- minProperties?: number;
30
- required?: string[] | boolean | string;
31
- format?: string;
32
- $ref?: string;
33
- $namespace?: string;
34
- definitions?: import('@formily/json-schema').SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
35
- properties?: import('@formily/json-schema').SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
36
- items?: import('@formily/json-schema').SchemaItems<any, any, any, any, any, any, any, any> | undefined;
37
- additionalItems?: import('@formily/json-schema').Stringify</*elided*/ any> | undefined;
38
- patternProperties?: import('@formily/json-schema').SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
39
- additionalProperties?: import('@formily/json-schema').Stringify</*elided*/ any> | undefined;
40
- "x-value"?: any;
41
- "x-index"?: number;
42
- "x-pattern"?: any;
43
- "x-display"?: any;
44
- "x-validator"?: any;
45
- "x-decorator"?: any;
46
- "x-decorator-props"?: any;
47
- "x-component"?: any;
48
- "x-component-props"?: any;
49
- "x-reactions"?: import('@formily/json-schema').SchemaReactions<any> | undefined;
50
- "x-content"?: any;
51
- "x-data"?: any;
52
- "x-visible"?: boolean;
53
- "x-hidden"?: boolean;
54
- "x-disabled"?: boolean;
55
- "x-editable"?: boolean;
56
- "x-read-only"?: boolean;
57
- "x-read-pretty"?: boolean;
58
- "x-compile-omitted"?: string[];
59
- }> | import('@formily/json-schema').Schema<any, any, any, any, any, any, any, any, any>>;
60
- readonly name: import('./runtimeProps').RuntimeProp<import('@formily/json-schema').SchemaKey | undefined>;
61
- readonly basePath: import('./runtimeProps').RuntimeProp<import('@formily/shared').FormPathPattern | undefined>;
62
- readonly onlyRenderProperties: import('./runtimeProps').RuntimeProp<boolean>;
63
- readonly onlyRenderSelf: import('./runtimeProps').RuntimeProp<boolean>;
64
- readonly mapProperties: import('./runtimeProps').RuntimeProp<import('..').ISchemaMapper | undefined>;
65
- readonly filterProperties: import('./runtimeProps').RuntimeProp<import('..').ISchemaFilter | undefined>;
66
- };
67
- export type RecursionFieldProps = ExtractPropTypes<typeof recursionFieldProps>;
@@ -1 +0,0 @@
1
- export declare function resolveSchemaProps(props: Record<string, unknown>): Record<string, unknown>;
@@ -1,232 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- export declare const schemaFieldProps: {
3
- readonly schema: import('./runtimeProps').RuntimeProp<import('@formily/json-schema').Stringify<{
4
- [key: symbol]: any;
5
- [key: `x-${string}`]: any;
6
- [key: `x-${number}`]: any;
7
- version?: string;
8
- name?: import('@formily/json-schema').SchemaKey;
9
- title?: any;
10
- description?: any;
11
- default?: any;
12
- readOnly?: boolean;
13
- writeOnly?: boolean;
14
- type?: import('@formily/json-schema').SchemaTypes;
15
- enum?: import('@formily/json-schema').SchemaEnum<any> | undefined;
16
- const?: any;
17
- multipleOf?: number;
18
- maximum?: number;
19
- exclusiveMaximum?: number;
20
- minimum?: number;
21
- exclusiveMinimum?: number;
22
- maxLength?: number;
23
- minLength?: number;
24
- pattern?: string | RegExp;
25
- maxItems?: number;
26
- minItems?: number;
27
- uniqueItems?: boolean;
28
- maxProperties?: number;
29
- minProperties?: number;
30
- required?: string[] | boolean | string;
31
- format?: string;
32
- $ref?: string;
33
- $namespace?: string;
34
- definitions?: import('@formily/json-schema').SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
35
- properties?: import('@formily/json-schema').SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
36
- items?: import('@formily/json-schema').SchemaItems<any, any, any, any, any, any, any, any> | undefined;
37
- additionalItems?: import('@formily/json-schema').Stringify</*elided*/ any> | undefined;
38
- patternProperties?: import('@formily/json-schema').SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
39
- additionalProperties?: import('@formily/json-schema').Stringify</*elided*/ any> | undefined;
40
- "x-value"?: any;
41
- "x-index"?: number;
42
- "x-pattern"?: any;
43
- "x-display"?: any;
44
- "x-validator"?: any;
45
- "x-decorator"?: any;
46
- "x-decorator-props"?: any;
47
- "x-component"?: any;
48
- "x-component-props"?: any;
49
- "x-reactions"?: import('@formily/json-schema').SchemaReactions<any> | undefined;
50
- "x-content"?: any;
51
- "x-data"?: any;
52
- "x-visible"?: boolean;
53
- "x-hidden"?: boolean;
54
- "x-disabled"?: boolean;
55
- "x-editable"?: boolean;
56
- "x-read-only"?: boolean;
57
- "x-read-pretty"?: boolean;
58
- "x-compile-omitted"?: string[];
59
- }> | undefined>;
60
- readonly scope: import('./runtimeProps').RuntimeProp<import('..').SchemaExpressionScope | undefined>;
61
- readonly components: import('./runtimeProps').RuntimeProp<{
62
- [key: string]: import('vue').Component;
63
- } | undefined>;
64
- readonly name: import('./runtimeProps').RuntimeProp<import('@formily/json-schema').SchemaKey | undefined>;
65
- readonly basePath: import('./runtimeProps').RuntimeProp<import('@formily/shared').FormPathPattern | undefined>;
66
- readonly onlyRenderProperties: import('./runtimeProps').RuntimeProp<boolean>;
67
- readonly onlyRenderSelf: import('./runtimeProps').RuntimeProp<boolean>;
68
- readonly mapProperties: import('./runtimeProps').RuntimeProp<import('..').ISchemaMapper | undefined>;
69
- readonly filterProperties: import('./runtimeProps').RuntimeProp<import('..').ISchemaFilter | undefined>;
70
- };
71
- export declare const markupSchemaProps: {
72
- readonly version: import('./runtimeProps').RuntimeProp<string | (string & {}) | undefined>;
73
- readonly name: import('./runtimeProps').RuntimeProp<(string & {}) | import('@formily/json-schema').SchemaKey | undefined>;
74
- readonly title: import('./runtimeProps').RuntimeProp<string | (string & {}) | undefined>;
75
- readonly description: import('./runtimeProps').RuntimeProp<string | (string & {}) | undefined>;
76
- readonly default: import('./runtimeProps').RuntimeProp<any>;
77
- readonly readOnly: import('./runtimeProps').RuntimeProp<boolean>;
78
- readonly writeOnly: import('./runtimeProps').RuntimeProp<boolean>;
79
- readonly enum: import('./runtimeProps').RuntimeProp<(string & {}) | import('@formily/json-schema').SchemaEnum<string> | undefined>;
80
- readonly const: import('./runtimeProps').RuntimeProp<any>;
81
- readonly multipleOf: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
82
- readonly maximum: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
83
- readonly exclusiveMaximum: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
84
- readonly minimum: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
85
- readonly exclusiveMinimum: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
86
- readonly maxLength: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
87
- readonly minLength: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
88
- readonly pattern: import('./runtimeProps').RuntimeProp<string | RegExp | (string & {}) | undefined>;
89
- readonly maxItems: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
90
- readonly minItems: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
91
- readonly uniqueItems: import('./runtimeProps').RuntimeProp<boolean>;
92
- readonly maxProperties: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
93
- readonly minProperties: import('./runtimeProps').RuntimeProp<number | (string & {}) | undefined>;
94
- readonly required: import('./runtimeProps').RuntimeProp<string | boolean | (string & {}) | string[] | undefined>;
95
- readonly format: import('./runtimeProps').RuntimeProp<string | (string & {}) | undefined>;
96
- readonly properties: import('./runtimeProps').RuntimeProp<(string & {}) | import('@formily/json-schema').SchemaProperties<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined>;
97
- readonly items: import('./runtimeProps').RuntimeProp<(string & {}) | import('@formily/json-schema').SchemaItems<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined>;
98
- readonly additionalItems: import('./runtimeProps').RuntimeProp<(string & {}) | import('@formily/json-schema').Stringify<{
99
- [key: symbol]: any;
100
- [key: `x-${string}`]: any;
101
- [key: `x-${number}`]: any;
102
- version?: string;
103
- name?: import('@formily/json-schema').SchemaKey;
104
- title?: string | undefined;
105
- description?: string | undefined;
106
- default?: any;
107
- readOnly?: boolean;
108
- writeOnly?: boolean;
109
- type?: import('@formily/json-schema').SchemaTypes;
110
- enum?: import('@formily/json-schema').SchemaEnum<string> | undefined;
111
- const?: any;
112
- multipleOf?: number;
113
- maximum?: number;
114
- exclusiveMaximum?: number;
115
- minimum?: number;
116
- exclusiveMinimum?: number;
117
- maxLength?: number;
118
- minLength?: number;
119
- pattern?: string | RegExp;
120
- maxItems?: number;
121
- minItems?: number;
122
- uniqueItems?: boolean;
123
- maxProperties?: number;
124
- minProperties?: number;
125
- required?: string[] | boolean | string;
126
- format?: string;
127
- $ref?: string;
128
- $namespace?: string;
129
- definitions?: import('@formily/json-schema').SchemaProperties<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined;
130
- properties?: import('@formily/json-schema').SchemaProperties<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined;
131
- items?: import('@formily/json-schema').SchemaItems<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined;
132
- additionalItems?: import('@formily/json-schema').Stringify</*elided*/ any> | undefined;
133
- patternProperties?: import('@formily/json-schema').SchemaProperties<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined;
134
- additionalProperties?: import('@formily/json-schema').Stringify</*elided*/ any> | undefined;
135
- "x-value"?: any;
136
- "x-index"?: number;
137
- "x-pattern"?: import('@formily/core').FormPatternTypes | undefined;
138
- "x-display"?: import('@formily/core').FieldDisplayTypes | undefined;
139
- "x-validator"?: import('..').SchemaFieldValidator | undefined;
140
- "x-decorator"?: string | (string & {}) | ((...args: any[]) => any) | undefined;
141
- "x-decorator-props"?: Record<string, unknown> | undefined;
142
- "x-component"?: string | (string & {}) | ((...args: any[]) => any) | undefined;
143
- "x-component-props"?: Record<string, unknown> | undefined;
144
- "x-reactions"?: import('@formily/json-schema').SchemaReactions<any> | undefined;
145
- "x-content"?: any;
146
- "x-data"?: any;
147
- "x-visible"?: boolean;
148
- "x-hidden"?: boolean;
149
- "x-disabled"?: boolean;
150
- "x-editable"?: boolean;
151
- "x-read-only"?: boolean;
152
- "x-read-pretty"?: boolean;
153
- "x-compile-omitted"?: string[];
154
- }> | undefined>;
155
- readonly patternProperties: import('./runtimeProps').RuntimeProp<(string & {}) | import('@formily/json-schema').SchemaProperties<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined>;
156
- readonly additionalProperties: import('./runtimeProps').RuntimeProp<(string & {}) | import('@formily/json-schema').Stringify<{
157
- [key: symbol]: any;
158
- [key: `x-${string}`]: any;
159
- [key: `x-${number}`]: any;
160
- version?: string;
161
- name?: import('@formily/json-schema').SchemaKey;
162
- title?: string | undefined;
163
- description?: string | undefined;
164
- default?: any;
165
- readOnly?: boolean;
166
- writeOnly?: boolean;
167
- type?: import('@formily/json-schema').SchemaTypes;
168
- enum?: import('@formily/json-schema').SchemaEnum<string> | undefined;
169
- const?: any;
170
- multipleOf?: number;
171
- maximum?: number;
172
- exclusiveMaximum?: number;
173
- minimum?: number;
174
- exclusiveMinimum?: number;
175
- maxLength?: number;
176
- minLength?: number;
177
- pattern?: string | RegExp;
178
- maxItems?: number;
179
- minItems?: number;
180
- uniqueItems?: boolean;
181
- maxProperties?: number;
182
- minProperties?: number;
183
- required?: string[] | boolean | string;
184
- format?: string;
185
- $ref?: string;
186
- $namespace?: string;
187
- definitions?: import('@formily/json-schema').SchemaProperties<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined;
188
- properties?: import('@formily/json-schema').SchemaProperties<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined;
189
- items?: import('@formily/json-schema').SchemaItems<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined;
190
- additionalItems?: import('@formily/json-schema').Stringify</*elided*/ any> | undefined;
191
- patternProperties?: import('@formily/json-schema').SchemaProperties<string, string, Record<string, unknown>, Record<string, unknown>, import('@formily/core').FormPatternTypes, import('@formily/core').FieldDisplayTypes, import('..').SchemaFieldValidator, string> | undefined;
192
- additionalProperties?: import('@formily/json-schema').Stringify</*elided*/ any> | undefined;
193
- "x-value"?: any;
194
- "x-index"?: number;
195
- "x-pattern"?: import('@formily/core').FormPatternTypes | undefined;
196
- "x-display"?: import('@formily/core').FieldDisplayTypes | undefined;
197
- "x-validator"?: import('..').SchemaFieldValidator | undefined;
198
- "x-decorator"?: string | (string & {}) | ((...args: any[]) => any) | undefined;
199
- "x-decorator-props"?: Record<string, unknown> | undefined;
200
- "x-component"?: string | (string & {}) | ((...args: any[]) => any) | undefined;
201
- "x-component-props"?: Record<string, unknown> | undefined;
202
- "x-reactions"?: import('@formily/json-schema').SchemaReactions<any> | undefined;
203
- "x-content"?: any;
204
- "x-data"?: any;
205
- "x-visible"?: boolean;
206
- "x-hidden"?: boolean;
207
- "x-disabled"?: boolean;
208
- "x-editable"?: boolean;
209
- "x-read-only"?: boolean;
210
- "x-read-pretty"?: boolean;
211
- "x-compile-omitted"?: string[];
212
- }> | undefined>;
213
- readonly 'x-index': import('./runtimeProps').RuntimeProp<any>;
214
- readonly 'x-pattern': import('./runtimeProps').RuntimeProp<any>;
215
- readonly 'x-display': import('./runtimeProps').RuntimeProp<any>;
216
- readonly 'x-validator': import('./runtimeProps').RuntimeProp<import('..').SchemaFieldValidator | undefined>;
217
- readonly 'x-decorator': import('./runtimeProps').RuntimeProp<any>;
218
- readonly 'x-decorator-props': import('./runtimeProps').RuntimeProp<any>;
219
- readonly 'x-decorator-content': import('./runtimeProps').RuntimeProp<any>;
220
- readonly 'x-component': import('./runtimeProps').RuntimeProp<any>;
221
- readonly 'x-component-props': import('./runtimeProps').RuntimeProp<any>;
222
- readonly 'x-reactions': import('./runtimeProps').RuntimeProp<any>;
223
- readonly 'x-content': import('./runtimeProps').RuntimeProp<any>;
224
- readonly 'x-visible': import('./runtimeProps').RuntimeProp<boolean>;
225
- readonly 'x-hidden': import('./runtimeProps').RuntimeProp<boolean>;
226
- readonly 'x-disabled': import('./runtimeProps').RuntimeProp<boolean>;
227
- readonly 'x-editable': import('./runtimeProps').RuntimeProp<boolean>;
228
- readonly 'x-read-only': import('./runtimeProps').RuntimeProp<boolean>;
229
- readonly 'x-read-pretty': import('./runtimeProps').RuntimeProp<boolean>;
230
- };
231
- export type SchemaFieldProps = ExtractPropTypes<typeof schemaFieldProps>;
232
- export type MarkupSchemaProps = ExtractPropTypes<typeof markupSchemaProps>;