@nocobase/client-v2 2.1.0-beta.38 → 2.1.0-beta.40

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 (137) hide show
  1. package/es/Application.d.ts +6 -0
  2. package/es/collection-field-interface/CollectionFieldInterface.d.ts +51 -15
  3. package/es/collection-field-interface/CollectionFieldInterfaceManager.d.ts +82 -3
  4. package/es/collection-manager/field-configure.d.ts +80 -0
  5. package/es/collection-manager/field-validation.d.ts +43 -0
  6. package/es/collection-manager/filter-operators/index.d.ts +46 -0
  7. package/es/collection-manager/filter-operators/operators.d.ts +30 -0
  8. package/es/collection-manager/interfaces/checkbox.d.ts +1 -41
  9. package/es/collection-manager/interfaces/checkboxGroup.d.ts +12 -44
  10. package/es/collection-manager/interfaces/collection.d.ts +12 -51
  11. package/es/collection-manager/interfaces/color.d.ts +1 -16
  12. package/es/collection-manager/interfaces/createdAt.d.ts +1 -44
  13. package/es/collection-manager/interfaces/createdBy.d.ts +0 -4
  14. package/es/collection-manager/interfaces/dateOnly.d.ts +7 -44
  15. package/es/collection-manager/interfaces/datetime.d.ts +1 -44
  16. package/es/collection-manager/interfaces/datetimeNoTz.d.ts +1 -44
  17. package/es/collection-manager/interfaces/email.d.ts +1 -29
  18. package/es/collection-manager/interfaces/id.d.ts +1 -16
  19. package/es/collection-manager/interfaces/index.d.ts +2 -3
  20. package/es/collection-manager/interfaces/input.d.ts +1 -102
  21. package/es/collection-manager/interfaces/integer.d.ts +1 -95
  22. package/es/collection-manager/interfaces/json.d.ts +16 -7
  23. package/es/collection-manager/interfaces/m2m.d.ts +11 -19
  24. package/es/collection-manager/interfaces/m2o.d.ts +11 -19
  25. package/es/collection-manager/interfaces/markdown.d.ts +1 -63
  26. package/es/collection-manager/interfaces/multipleSelect.d.ts +12 -44
  27. package/es/collection-manager/interfaces/nanoid.d.ts +1 -34
  28. package/es/collection-manager/interfaces/number.d.ts +1 -87
  29. package/es/collection-manager/interfaces/o2m.d.ts +12 -24
  30. package/es/collection-manager/interfaces/obo.d.ts +207 -0
  31. package/es/collection-manager/interfaces/oho.d.ts +207 -0
  32. package/es/collection-manager/interfaces/password.d.ts +1 -56
  33. package/es/collection-manager/interfaces/percent.d.ts +1 -84
  34. package/es/collection-manager/interfaces/phone.d.ts +1 -25
  35. package/es/collection-manager/interfaces/properties/index.d.ts +0 -28
  36. package/es/collection-manager/interfaces/radioGroup.d.ts +1 -29
  37. package/es/collection-manager/interfaces/richText.d.ts +1 -63
  38. package/es/collection-manager/interfaces/select.d.ts +12 -44
  39. package/es/collection-manager/interfaces/snowflake-id.d.ts +1 -34
  40. package/es/collection-manager/interfaces/tableoid.d.ts +1 -10
  41. package/es/collection-manager/interfaces/textarea.d.ts +1 -51
  42. package/es/collection-manager/interfaces/time.d.ts +1 -16
  43. package/es/collection-manager/interfaces/types.d.ts +3 -12
  44. package/es/collection-manager/interfaces/unixTimestamp.d.ts +1 -44
  45. package/es/collection-manager/interfaces/updatedAt.d.ts +1 -44
  46. package/es/collection-manager/interfaces/updatedBy.d.ts +0 -4
  47. package/es/collection-manager/interfaces/url.d.ts +1 -20
  48. package/es/collection-manager/interfaces/uuid.d.ts +1 -34
  49. package/es/collection-manager/template-fields.d.ts +53 -0
  50. package/es/components/form/VariableInput.d.ts +53 -2
  51. package/es/components/form/filter/CollectionFilter.d.ts +9 -1
  52. package/es/components/form/filter/CollectionFilterItem.d.ts +10 -2
  53. package/es/flow/components/filter/useFilterOptions.d.ts +13 -1
  54. package/es/flow/models/blocks/assign-form/assignFieldValuesFlow.d.ts +84 -0
  55. package/es/flow/models/blocks/assign-form/index.d.ts +1 -0
  56. package/es/flow/models/blocks/form/FormActionModel.d.ts +9 -2
  57. package/es/index.d.ts +4 -0
  58. package/es/index.mjs +105 -142
  59. package/lib/index.js +106 -143
  60. package/package.json +7 -7
  61. package/src/Application.tsx +24 -0
  62. package/src/collection-field-interface/CollectionFieldInterface.ts +71 -77
  63. package/src/collection-field-interface/CollectionFieldInterfaceManager.ts +201 -4
  64. package/src/collection-manager/field-configure.ts +548 -0
  65. package/src/collection-manager/field-validation.ts +195 -0
  66. package/src/collection-manager/filter-operators/index.ts +176 -0
  67. package/src/collection-manager/{interfaces/properties → filter-operators}/operators.ts +24 -13
  68. package/src/collection-manager/interfaces/checkbox.ts +2 -9
  69. package/src/collection-manager/interfaces/checkboxGroup.ts +2 -10
  70. package/src/collection-manager/interfaces/collection.ts +2 -15
  71. package/src/collection-manager/interfaces/color.ts +2 -2
  72. package/src/collection-manager/interfaces/createdAt.ts +2 -2
  73. package/src/collection-manager/interfaces/createdBy.ts +1 -12
  74. package/src/collection-manager/interfaces/dateOnly.ts +8 -2
  75. package/src/collection-manager/interfaces/datetime.ts +2 -2
  76. package/src/collection-manager/interfaces/datetimeNoTz.ts +2 -2
  77. package/src/collection-manager/interfaces/email.ts +2 -9
  78. package/src/collection-manager/interfaces/id.ts +1 -2
  79. package/src/collection-manager/interfaces/index.ts +2 -3
  80. package/src/collection-manager/interfaces/input.ts +2 -133
  81. package/src/collection-manager/interfaces/integer.ts +2 -71
  82. package/src/collection-manager/interfaces/json.tsx +17 -11
  83. package/src/collection-manager/interfaces/m2m.tsx +0 -21
  84. package/src/collection-manager/interfaces/m2o.tsx +0 -22
  85. package/src/collection-manager/interfaces/markdown.ts +2 -51
  86. package/src/collection-manager/interfaces/multipleSelect.ts +2 -14
  87. package/src/collection-manager/interfaces/nanoid.ts +2 -2
  88. package/src/collection-manager/interfaces/number.ts +2 -85
  89. package/src/collection-manager/interfaces/o2m.tsx +1 -22
  90. package/src/collection-manager/interfaces/obo.tsx +145 -0
  91. package/src/collection-manager/interfaces/oho.tsx +145 -0
  92. package/src/collection-manager/interfaces/password.ts +2 -44
  93. package/src/collection-manager/interfaces/percent.ts +2 -74
  94. package/src/collection-manager/interfaces/phone.ts +2 -2
  95. package/src/collection-manager/interfaces/properties/index.ts +0 -133
  96. package/src/collection-manager/interfaces/radioGroup.ts +2 -2
  97. package/src/collection-manager/interfaces/richText.ts +2 -51
  98. package/src/collection-manager/interfaces/select.ts +2 -14
  99. package/src/collection-manager/interfaces/snowflake-id.ts +2 -2
  100. package/src/collection-manager/interfaces/tableoid.ts +1 -2
  101. package/src/collection-manager/interfaces/textarea.ts +2 -51
  102. package/src/collection-manager/interfaces/time.ts +2 -2
  103. package/src/collection-manager/interfaces/types.ts +4 -12
  104. package/src/collection-manager/interfaces/unixTimestamp.tsx +2 -2
  105. package/src/collection-manager/interfaces/updatedAt.ts +2 -2
  106. package/src/collection-manager/interfaces/updatedBy.ts +1 -12
  107. package/src/collection-manager/interfaces/url.ts +2 -4
  108. package/src/collection-manager/interfaces/uuid.ts +2 -2
  109. package/src/collection-manager/template-fields.ts +109 -0
  110. package/src/components/README.md +1 -0
  111. package/src/components/README.zh-CN.md +1 -0
  112. package/src/components/form/VariableInput.tsx +101 -28
  113. package/src/components/form/__tests__/VariableInput.test.ts +85 -0
  114. package/src/components/form/filter/CollectionFilter.tsx +11 -1
  115. package/src/components/form/filter/CollectionFilterItem.tsx +12 -4
  116. package/src/components/form/filter/__tests__/CollectionFilterItem.test.tsx +42 -0
  117. package/src/components/form/filter/useFilterActionProps.ts +7 -4
  118. package/src/flow/components/filter/useFilterOptions.ts +27 -5
  119. package/src/flow/models/actions/UpdateRecordActionModel.tsx +14 -95
  120. package/src/flow/models/actions/UpdateRecordActionUtils.ts +4 -7
  121. package/src/flow/models/actions/__tests__/AssignFormRefill.test.ts +26 -1
  122. package/src/flow/models/blocks/assign-form/AssignFormItemModel.tsx +63 -2
  123. package/src/flow/models/blocks/assign-form/assignFieldValuesFlow.tsx +206 -0
  124. package/src/flow/models/blocks/assign-form/index.ts +1 -0
  125. package/src/flow/models/blocks/form/FormActionModel.tsx +30 -3
  126. package/src/flow/models/blocks/form/__tests__/submitHandler.test.ts +71 -0
  127. package/src/flow/models/blocks/form/submitHandler.ts +8 -1
  128. package/src/flow/models/fields/CollectionSelectorFieldModel.tsx +8 -2
  129. package/src/flow/models/fields/DisplayEnumFieldModel.tsx +8 -2
  130. package/src/index.ts +4 -0
  131. package/es/collection-manager/interfaces/linkTo.d.ts +0 -90
  132. package/es/collection-manager/interfaces/o2o.d.ts +0 -621
  133. package/es/collection-manager/interfaces/properties/operators.d.ts +0 -294
  134. package/es/collection-manager/interfaces/subTable.d.ts +0 -172
  135. package/src/collection-manager/interfaces/linkTo.ts +0 -120
  136. package/src/collection-manager/interfaces/o2o.tsx +0 -561
  137. package/src/collection-manager/interfaces/subTable.ts +0 -218
@@ -49,15 +49,6 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
49
49
  'x-decorator': string;
50
50
  'x-component': string;
51
51
  'x-disabled': string;
52
- 'x-reactions': {
53
- dependencies: string[];
54
- when: string;
55
- fulfill: {
56
- state: {
57
- value: boolean;
58
- };
59
- };
60
- }[];
61
52
  };
62
53
  unique: {
63
54
  type: string;
@@ -65,15 +56,6 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
65
56
  'x-decorator': string;
66
57
  'x-component': string;
67
58
  'x-disabled': string;
68
- 'x-reactions': {
69
- dependencies: string[];
70
- when: string;
71
- fulfill: {
72
- state: {
73
- value: boolean;
74
- };
75
- };
76
- }[];
77
59
  };
78
60
  };
79
61
  };
@@ -84,15 +66,6 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
84
66
  'x-decorator': string;
85
67
  'x-component': string;
86
68
  'x-disabled': string;
87
- 'x-reactions': {
88
- dependencies: string[];
89
- when: string;
90
- fulfill: {
91
- state: {
92
- value: boolean;
93
- };
94
- };
95
- }[];
96
69
  };
97
70
  'uiSchema.title': {
98
71
  type: string;
@@ -113,74 +86,7 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
113
86
  };
114
87
  };
115
88
  filterable: {
116
- operators: ({
117
- label: string;
118
- value: string;
119
- selected: boolean;
120
- noValue?: undefined;
121
- } | {
122
- label: string;
123
- value: string;
124
- selected?: undefined;
125
- noValue?: undefined;
126
- } | {
127
- label: string;
128
- value: string;
129
- noValue: boolean;
130
- selected?: undefined;
131
- })[];
89
+ operators: string;
132
90
  };
133
91
  titleUsable: boolean;
134
- validateSchema: (fieldSchema: any) => {
135
- maximum: {
136
- type: string;
137
- title: string;
138
- 'x-decorator': string;
139
- 'x-component': string;
140
- 'x-component-props': {
141
- precision: number;
142
- };
143
- 'x-reactions': string;
144
- };
145
- minimum: {
146
- type: string;
147
- title: string;
148
- 'x-decorator': string;
149
- 'x-component': string;
150
- 'x-component-props': {
151
- precision: number;
152
- };
153
- 'x-reactions': {
154
- dependencies: string[];
155
- fulfill: {
156
- state: {
157
- selfErrors: string;
158
- };
159
- };
160
- };
161
- };
162
- format: {
163
- type: string;
164
- title: string;
165
- 'x-decorator': string;
166
- 'x-component': string;
167
- 'x-component-props': {
168
- allowClear: boolean;
169
- };
170
- enum: {
171
- label: string;
172
- value: string;
173
- }[];
174
- };
175
- pattern: {
176
- type: string;
177
- title: string;
178
- 'x-decorator': string;
179
- 'x-component': string;
180
- 'x-component-props': {
181
- prefix: string;
182
- suffix: string;
183
- };
184
- };
185
- };
186
92
  }
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import React from 'react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class JsonFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -32,14 +31,8 @@ export declare class JsonFieldInterface extends CollectionFieldInterface {
32
31
  hasDefaultValue: boolean;
33
32
  properties: {
34
33
  jsonb: {
35
- type: string;
36
34
  title: string;
37
- 'x-decorator': ({ children }: {
38
- children: any;
39
- }) => React.JSX.Element;
40
35
  'x-component': string;
41
- 'x-hidden': string;
42
- 'x-disabled': string;
43
36
  };
44
37
  'uiSchema.title': {
45
38
  type: string;
@@ -59,4 +52,20 @@ export declare class JsonFieldInterface extends CollectionFieldInterface {
59
52
  description: string;
60
53
  };
61
54
  };
55
+ configure: {
56
+ items: {
57
+ name: string;
58
+ title: string;
59
+ component: string;
60
+ schema: {
61
+ 'x-content': string;
62
+ };
63
+ hidden: ({ context }: {
64
+ context: any;
65
+ }) => boolean;
66
+ disabled: ({ context }: {
67
+ context: any;
68
+ }) => boolean;
69
+ }[];
70
+ };
62
71
  }
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { ISchema } from '@formily/react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class M2MFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -37,27 +36,21 @@ export declare class M2MFieldInterface extends CollectionFieldInterface {
37
36
  };
38
37
  availableTypes: string[];
39
38
  validationType: string;
40
- schemaInitialize(schema: ISchema, { field, readPretty, block, targetCollection }: {
41
- field: any;
42
- readPretty: any;
43
- block: any;
44
- targetCollection: any;
45
- }): void;
46
39
  initialize(values: any): void;
47
40
  properties: {
48
- type: import("@formily/react").Stringify<{
41
+ type: import("@formily/json-schema").Stringify<{
49
42
  [key: symbol]: any;
50
43
  [key: `x-${string}`]: any;
51
44
  [key: `x-${number}`]: any;
52
45
  version?: string;
53
- name?: import("@formily/react").SchemaKey;
46
+ name?: import("@formily/json-schema").SchemaKey;
54
47
  title?: any;
55
48
  description?: any;
56
49
  default?: any;
57
50
  readOnly?: boolean;
58
51
  writeOnly?: boolean;
59
- type?: import("@formily/react").SchemaTypes;
60
- enum?: import("@formily/react").SchemaEnum<any>;
52
+ type?: import("@formily/json-schema").SchemaTypes;
53
+ enum?: import("@formily/json-schema").SchemaEnum<any>;
61
54
  const?: any;
62
55
  multipleOf?: number;
63
56
  maximum?: number;
@@ -76,12 +69,12 @@ export declare class M2MFieldInterface extends CollectionFieldInterface {
76
69
  format?: string;
77
70
  $ref?: string;
78
71
  $namespace?: string;
79
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
80
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
81
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
82
- additionalItems?: import("@formily/react").Stringify<any>;
83
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
84
- additionalProperties?: import("@formily/react").Stringify<any>;
72
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
73
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
74
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
75
+ additionalItems?: import("@formily/json-schema").Stringify<any>;
76
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
77
+ additionalProperties?: import("@formily/json-schema").Stringify<any>;
85
78
  "x-value"?: any;
86
79
  "x-index"?: number;
87
80
  "x-pattern"?: any;
@@ -91,7 +84,7 @@ export declare class M2MFieldInterface extends CollectionFieldInterface {
91
84
  "x-decorator-props"?: any;
92
85
  "x-component"?: any;
93
86
  "x-component-props"?: any;
94
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
87
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
95
88
  "x-content"?: any;
96
89
  "x-data"?: any;
97
90
  "x-visible"?: boolean;
@@ -148,7 +141,6 @@ export declare class M2MFieldInterface extends CollectionFieldInterface {
148
141
  type: string;
149
142
  title: string;
150
143
  required: boolean;
151
- 'x-reactions': string[];
152
144
  'x-decorator': string;
153
145
  'x-component': string;
154
146
  'x-disabled': string;
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { ISchema } from '@formily/react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class M2OFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -37,12 +36,6 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
37
36
  };
38
37
  };
39
38
  availableTypes: string[];
40
- schemaInitialize(schema: ISchema, { field, block, readPretty, targetCollection }: {
41
- field: any;
42
- block: any;
43
- readPretty: any;
44
- targetCollection: any;
45
- }): void;
46
39
  properties: {
47
40
  onDelete: {
48
41
  type: string;
@@ -73,19 +66,19 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
73
66
  'x-component': string;
74
67
  description: string;
75
68
  };
76
- type: import("@formily/react").Stringify<{
69
+ type: import("@formily/json-schema").Stringify<{
77
70
  [key: symbol]: any;
78
71
  [key: `x-${string}`]: any;
79
72
  [key: `x-${number}`]: any;
80
73
  version?: string;
81
- name?: import("@formily/react").SchemaKey;
74
+ name?: import("@formily/json-schema").SchemaKey;
82
75
  title?: any;
83
76
  description?: any;
84
77
  default?: any;
85
78
  readOnly?: boolean;
86
79
  writeOnly?: boolean;
87
- type?: import("@formily/react").SchemaTypes;
88
- enum?: import("@formily/react").SchemaEnum<any>;
80
+ type?: import("@formily/json-schema").SchemaTypes;
81
+ enum?: import("@formily/json-schema").SchemaEnum<any>;
89
82
  const?: any;
90
83
  multipleOf?: number;
91
84
  maximum?: number;
@@ -104,12 +97,12 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
104
97
  format?: string;
105
98
  $ref?: string;
106
99
  $namespace?: string;
107
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
108
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
109
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
110
- additionalItems?: import("@formily/react").Stringify<any>;
111
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
112
- additionalProperties?: import("@formily/react").Stringify<any>;
100
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
101
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
102
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
103
+ additionalItems?: import("@formily/json-schema").Stringify<any>;
104
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
105
+ additionalProperties?: import("@formily/json-schema").Stringify<any>;
113
106
  "x-value"?: any;
114
107
  "x-index"?: number;
115
108
  "x-pattern"?: any;
@@ -119,7 +112,7 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
119
112
  "x-decorator-props"?: any;
120
113
  "x-component"?: any;
121
114
  "x-component-props"?: any;
122
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
115
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
123
116
  "x-content"?: any;
124
117
  "x-data"?: any;
125
118
  "x-visible"?: boolean;
@@ -159,7 +152,6 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
159
152
  type: string;
160
153
  title: string;
161
154
  required: boolean;
162
- 'x-reactions': string[];
163
155
  'x-decorator': string;
164
156
  'x-component': string;
165
157
  'x-disabled': string;
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { ISchema } from '@formily/react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class MarkdownFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -41,68 +40,7 @@ export declare class MarkdownFieldInterface extends CollectionFieldInterface {
41
40
  description: string;
42
41
  };
43
42
  };
44
- schemaInitialize(schema: ISchema, { block }: {
45
- block: any;
46
- }): void;
47
- validateSchema(fieldSchema: any): {
48
- max: {
49
- type: string;
50
- title: string;
51
- minimum: number;
52
- 'x-decorator': string;
53
- 'x-component': string;
54
- 'x-component-props': {
55
- precision: number;
56
- };
57
- 'x-reactions': string;
58
- };
59
- min: {
60
- type: string;
61
- title: string;
62
- minimum: number;
63
- 'x-decorator': string;
64
- 'x-component': string;
65
- 'x-component-props': {
66
- precision: number;
67
- };
68
- 'x-reactions': {
69
- dependencies: string[];
70
- fulfill: {
71
- state: {
72
- selfErrors: string;
73
- };
74
- };
75
- };
76
- };
77
- };
78
43
  filterable: {
79
- operators: ({
80
- label: string;
81
- value: string;
82
- selected: boolean;
83
- schema: {
84
- type: string;
85
- 'x-component': string;
86
- };
87
- noValue?: undefined;
88
- } | {
89
- label: string;
90
- value: string;
91
- schema: {
92
- type: string;
93
- 'x-component': string;
94
- };
95
- selected?: undefined;
96
- noValue?: undefined;
97
- } | {
98
- label: string;
99
- value: string;
100
- noValue: boolean;
101
- schema: {
102
- type: string;
103
- 'x-component': string;
104
- };
105
- selected?: undefined;
106
- })[];
44
+ operators: string;
107
45
  };
108
46
  }
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { ISchema } from '@formily/react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class MultipleSelectFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -29,19 +28,19 @@ export declare class MultipleSelectFieldInterface extends CollectionFieldInterfa
29
28
  availableTypes: string[];
30
29
  hasDefaultValue: boolean;
31
30
  properties: {
32
- 'uiSchema.enum': import("@formily/react").Stringify<{
31
+ 'uiSchema.enum': import("@formily/json-schema").Stringify<{
33
32
  [key: symbol]: any;
34
33
  [key: `x-${string}`]: any;
35
34
  [key: `x-${number}`]: any;
36
35
  version?: string;
37
- name?: import("@formily/react").SchemaKey;
36
+ name?: import("@formily/json-schema").SchemaKey;
38
37
  title?: any;
39
38
  description?: any;
40
39
  default?: any;
41
40
  readOnly?: boolean;
42
41
  writeOnly?: boolean;
43
- type?: import("@formily/react").SchemaTypes;
44
- enum?: import("@formily/react").SchemaEnum<any>;
42
+ type?: import("@formily/json-schema").SchemaTypes;
43
+ enum?: import("@formily/json-schema").SchemaEnum<any>;
45
44
  const?: any;
46
45
  multipleOf?: number;
47
46
  maximum?: number;
@@ -60,12 +59,12 @@ export declare class MultipleSelectFieldInterface extends CollectionFieldInterfa
60
59
  format?: string;
61
60
  $ref?: string;
62
61
  $namespace?: string;
63
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
64
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
65
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
66
- additionalItems?: import("@formily/react").Stringify<any>;
67
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
68
- additionalProperties?: import("@formily/react").Stringify<any>;
62
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
63
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
64
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
65
+ additionalItems?: import("@formily/json-schema").Stringify<any>;
66
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
67
+ additionalProperties?: import("@formily/json-schema").Stringify<any>;
69
68
  "x-value"?: any;
70
69
  "x-index"?: number;
71
70
  "x-pattern"?: any;
@@ -75,7 +74,7 @@ export declare class MultipleSelectFieldInterface extends CollectionFieldInterfa
75
74
  "x-decorator-props"?: any;
76
75
  "x-component"?: any;
77
76
  "x-component-props"?: any;
78
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
77
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
79
78
  "x-content"?: any;
80
79
  "x-data"?: any;
81
80
  "x-visible"?: boolean;
@@ -105,37 +104,6 @@ export declare class MultipleSelectFieldInterface extends CollectionFieldInterfa
105
104
  };
106
105
  };
107
106
  filterable: {
108
- operators: ({
109
- label: string;
110
- value: string;
111
- selected: boolean;
112
- schema: {
113
- 'x-component': string;
114
- 'x-component-props': {
115
- mode: string;
116
- };
117
- };
118
- noValue?: undefined;
119
- } | {
120
- label: string;
121
- value: string;
122
- schema: {
123
- 'x-component': string;
124
- 'x-component-props': {
125
- mode: string;
126
- };
127
- };
128
- selected?: undefined;
129
- noValue?: undefined;
130
- } | {
131
- label: string;
132
- value: string;
133
- noValue: boolean;
134
- selected?: undefined;
135
- schema?: undefined;
136
- })[];
107
+ operators: string;
137
108
  };
138
- schemaInitialize(schema: ISchema, { block }: {
139
- block: any;
140
- }): void;
141
109
  }
@@ -80,15 +80,6 @@ export declare class NanoidFieldInterface extends CollectionFieldInterface {
80
80
  'x-decorator': string;
81
81
  'x-component': string;
82
82
  'x-disabled': string;
83
- 'x-reactions': {
84
- dependencies: string[];
85
- when: string;
86
- fulfill: {
87
- state: {
88
- value: boolean;
89
- };
90
- };
91
- }[];
92
83
  };
93
84
  unique: {
94
85
  type: string;
@@ -96,36 +87,12 @@ export declare class NanoidFieldInterface extends CollectionFieldInterface {
96
87
  'x-decorator': string;
97
88
  'x-component': string;
98
89
  'x-disabled': string;
99
- 'x-reactions': {
100
- dependencies: string[];
101
- when: string;
102
- fulfill: {
103
- state: {
104
- value: boolean;
105
- };
106
- };
107
- }[];
108
90
  };
109
91
  };
110
92
  };
111
93
  };
112
94
  filterable: {
113
- operators: ({
114
- label: string;
115
- value: string;
116
- selected: boolean;
117
- noValue?: undefined;
118
- } | {
119
- label: string;
120
- value: string;
121
- selected?: undefined;
122
- noValue?: undefined;
123
- } | {
124
- label: string;
125
- value: string;
126
- noValue: boolean;
127
- selected?: undefined;
128
- })[];
95
+ operators: string;
129
96
  };
130
97
  titleUsable: boolean;
131
98
  }
@@ -36,15 +36,6 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
36
36
  'x-decorator': string;
37
37
  'x-component': string;
38
38
  'x-disabled': string;
39
- 'x-reactions': {
40
- dependencies: string[];
41
- when: string;
42
- fulfill: {
43
- state: {
44
- value: boolean;
45
- };
46
- };
47
- }[];
48
39
  };
49
40
  'uiSchema.x-component-props.step': {
50
41
  type: string;
@@ -64,14 +55,6 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
64
55
  'x-decorator': string;
65
56
  'x-disabled': string;
66
57
  default: number;
67
- 'x-reactions': {
68
- dependencies: string[];
69
- fulfill: {
70
- state: {
71
- visible: string;
72
- };
73
- };
74
- };
75
58
  };
76
59
  scale: {
77
60
  type: string;
@@ -80,14 +63,6 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
80
63
  'x-decorator': string;
81
64
  'x-disabled': string;
82
65
  default: number;
83
- 'x-reactions': {
84
- dependencies: string[];
85
- fulfill: {
86
- state: {
87
- visible: string;
88
- };
89
- };
90
- };
91
66
  };
92
67
  'uiSchema.title': {
93
68
  type: string;
@@ -120,68 +95,7 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
120
95
  };
121
96
  };
122
97
  filterable: {
123
- operators: ({
124
- label: string;
125
- value: string;
126
- selected: boolean;
127
- noValue?: undefined;
128
- } | {
129
- label: string;
130
- value: string;
131
- selected?: undefined;
132
- noValue?: undefined;
133
- } | {
134
- label: string;
135
- value: string;
136
- noValue: boolean;
137
- selected?: undefined;
138
- })[];
98
+ operators: string;
139
99
  };
140
100
  titleUsable: boolean;
141
- validateSchema(fieldSchema: any): {
142
- maximum: {
143
- type: string;
144
- title: string;
145
- 'x-decorator': string;
146
- 'x-component': string;
147
- 'x-reactions': string;
148
- };
149
- minimum: {
150
- type: string;
151
- title: string;
152
- 'x-decorator': string;
153
- 'x-component': string;
154
- 'x-reactions': {
155
- dependencies: string[];
156
- fulfill: {
157
- state: {
158
- selfErrors: string;
159
- };
160
- };
161
- };
162
- };
163
- format: {
164
- type: string;
165
- title: string;
166
- 'x-decorator': string;
167
- 'x-component': string;
168
- 'x-component-props': {
169
- allowClear: boolean;
170
- };
171
- enum: {
172
- label: string;
173
- value: string;
174
- }[];
175
- };
176
- pattern: {
177
- type: string;
178
- title: string;
179
- 'x-decorator': string;
180
- 'x-component': string;
181
- 'x-component-props': {
182
- prefix: string;
183
- suffix: string;
184
- };
185
- };
186
- };
187
101
  }