@nocobase/client 0.21.0-alpha.3 → 0.21.0-alpha.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.
@@ -1,5 +1,6 @@
1
1
  import { GeneralField } from '@formily/core';
2
2
  import React from 'react';
3
+ import { useSourceId } from '../modules/blocks/useSourceId';
3
4
  /**
4
5
  * @deprecated
5
6
  */
@@ -96,7 +97,7 @@ export declare const useFilterByTk: () => any;
96
97
  export declare const useSourceIdFromRecord: () => any;
97
98
  /**
98
99
  * @deprecated
99
- * @returns
100
+ * use `useSourceId` instead
100
101
  */
101
102
  export declare const useSourceIdFromParentRecord: () => any;
102
103
  /**
@@ -53,6 +53,51 @@ export declare class NanoidFieldInterface extends CollectionFieldInterface {
53
53
  'x-decorator': string;
54
54
  'x-component': string;
55
55
  };
56
+ layout: {
57
+ type: string;
58
+ title: string;
59
+ 'x-component': string;
60
+ 'x-decorator': string;
61
+ 'x-decorator-props': {
62
+ style: {
63
+ marginBottom: string;
64
+ };
65
+ };
66
+ properties: {
67
+ primaryKey: {
68
+ type: string;
69
+ 'x-content': string;
70
+ 'x-decorator': string;
71
+ 'x-component': string;
72
+ 'x-disabled': string;
73
+ 'x-reactions': {
74
+ dependencies: string[];
75
+ when: string;
76
+ fulfill: {
77
+ state: {
78
+ value: boolean;
79
+ };
80
+ };
81
+ }[];
82
+ };
83
+ unique: {
84
+ type: string;
85
+ 'x-content': string;
86
+ 'x-decorator': string;
87
+ 'x-component': string;
88
+ 'x-disabled': string;
89
+ 'x-reactions': {
90
+ dependencies: string[];
91
+ when: string;
92
+ fulfill: {
93
+ state: {
94
+ value: boolean;
95
+ };
96
+ };
97
+ }[];
98
+ };
99
+ };
100
+ };
56
101
  };
57
102
  filterable: {
58
103
  operators: ({
@@ -40,6 +40,51 @@ export declare class UUIDFieldInterface extends CollectionFieldInterface {
40
40
  'x-decorator': string;
41
41
  'x-component': string;
42
42
  };
43
+ layout: {
44
+ type: string;
45
+ title: string;
46
+ 'x-component': string;
47
+ 'x-decorator': string;
48
+ 'x-decorator-props': {
49
+ style: {
50
+ marginBottom: string;
51
+ };
52
+ };
53
+ properties: {
54
+ primaryKey: {
55
+ type: string;
56
+ 'x-content': string;
57
+ 'x-decorator': string;
58
+ 'x-component': string;
59
+ 'x-disabled': string;
60
+ 'x-reactions': {
61
+ dependencies: string[];
62
+ when: string;
63
+ fulfill: {
64
+ state: {
65
+ value: boolean;
66
+ };
67
+ };
68
+ }[];
69
+ };
70
+ unique: {
71
+ type: string;
72
+ 'x-content': string;
73
+ 'x-decorator': string;
74
+ 'x-component': string;
75
+ 'x-disabled': string;
76
+ 'x-reactions': {
77
+ dependencies: string[];
78
+ when: string;
79
+ fulfill: {
80
+ state: {
81
+ value: boolean;
82
+ };
83
+ };
84
+ }[];
85
+ };
86
+ };
87
+ };
43
88
  };
44
89
  filterable: {
45
90
  operators: ({
@@ -32,6 +32,7 @@ export declare class CollectionManager {
32
32
  */
33
33
  getCollectionField(path: SchemaKey | CollectionFieldOptions): any;
34
34
  getCollectionFields(collectionName: string, predicate?: GetCollectionFieldPredicate): CollectionFieldOptions[];
35
+ getSourceKeyByAssocation(associationName: string): any;
35
36
  /**
36
37
  * @internal
37
38
  */