@nocobase/client 0.21.0-alpha.11 → 0.21.0-alpha.13
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/es/block-provider/BlockProvider.d.ts +2 -3
- package/es/block-provider/TableSelectorProvider.d.ts +1 -4
- package/es/data-source/collection/CollectionProvider.d.ts +7 -1
- package/es/data-source/collection-field/CollectionFieldProvider.d.ts +1 -0
- package/es/index.mjs +1469 -1347
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +75 -0
- package/es/schema-component/antd/association-field/InternalPicker.d.ts +1 -4
- package/es/schema-initializer/items/DataBlockInitializer.d.ts +7 -0
- package/es/schema-initializer/utils.d.ts +5 -1
- package/lib/index.js +66 -66
- package/package.json +5 -5
|
@@ -53,9 +53,8 @@ export declare const useBlockRequestContext: () => {
|
|
|
53
53
|
updateAssociationValues?: any[];
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
|
-
* @
|
|
57
|
-
*
|
|
58
|
-
* @returns
|
|
56
|
+
* @deprecated
|
|
57
|
+
* 废弃组件,不建议使用
|
|
59
58
|
*/
|
|
60
59
|
export declare const RenderChildrenWithAssociationFilter: React.FC<any>;
|
|
61
60
|
/**
|
|
@@ -22,10 +22,7 @@ export declare const useTableSelectorProps: () => {
|
|
|
22
22
|
showIndex: boolean;
|
|
23
23
|
dragSort: boolean;
|
|
24
24
|
rowKey: any;
|
|
25
|
-
pagination:
|
|
26
|
-
defaultCurrent: any;
|
|
27
|
-
defaultPageSize: any;
|
|
28
|
-
};
|
|
25
|
+
pagination: any;
|
|
29
26
|
onRowSelectionChange(selectedRowKeys: any, selectedRows: any): void;
|
|
30
27
|
onRowDragEnd({ from, to }: {
|
|
31
28
|
from: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Collection, CollectionOptions, GetCollectionFieldPredicate } from './Collection';
|
|
3
3
|
export declare const CollectionContext: React.Context<Collection>;
|
|
4
4
|
export interface CollectionProviderProps {
|
|
5
5
|
name: string | CollectionOptions;
|
|
@@ -7,5 +7,11 @@ export interface CollectionProviderProps {
|
|
|
7
7
|
allowNull?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const CollectionProvider: FC<CollectionProviderProps>;
|
|
10
|
+
/**
|
|
11
|
+
* 用来消除普通区块(非关系区块)中可能存在的 CollectionField 上下文,因为普通区块就是一个区块,不应该和任何字段有关联
|
|
12
|
+
* @param props
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare const SanitizedCollectionProvider: FC<CollectionProviderProps>;
|
|
10
16
|
export declare function useCollection<Mixins = {}>(): (Mixins & Collection) | undefined;
|
|
11
17
|
export declare const useCollectionFields: (predicate?: GetCollectionFieldPredicate) => import("./Collection").CollectionFieldOptions[];
|
|
@@ -8,4 +8,5 @@ export type CollectionFieldProviderProps = {
|
|
|
8
8
|
allowNull?: boolean;
|
|
9
9
|
};
|
|
10
10
|
export declare const CollectionFieldProvider: FC<CollectionFieldProviderProps>;
|
|
11
|
+
export declare const ClearCollectionFieldContext: FC;
|
|
11
12
|
export declare const useCollectionField: () => CollectionFieldOptions;
|