@nocobase/client 2.0.0-alpha.32 → 2.0.0-alpha.34
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/flow/components/filter/FilterGroup.d.ts +2 -0
- package/es/flow/internal/utils/enumOptionsUtils.d.ts +7 -7
- package/es/flow/models/base/GridModel.d.ts +1 -1
- package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +1 -0
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +2 -0
- package/es/flow/models/fields/ClickableFieldModel.d.ts +1 -1
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +1 -1
- package/es/flow/models/fields/TimeFieldModel.d.ts +0 -1
- package/es/index.mjs +2438 -2275
- package/lib/{index-C3fHjsMw-0PBHkcRM.js → index-C3fHjsMw-mfsrxrqM.js} +244 -240
- package/lib/index.js +109 -105
- package/package.json +6 -6
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React, { FC } from 'react';
|
|
10
|
+
import { AntdIconProps } from '@ant-design/icons/lib/components/AntdIcon';
|
|
10
11
|
/**
|
|
11
12
|
* 筛选项组件的属性接口
|
|
12
13
|
*/
|
|
@@ -25,6 +26,7 @@ interface FilterGroupProps {
|
|
|
25
26
|
value: Record<string, any>;
|
|
26
27
|
/** 自定义筛选项组件 */
|
|
27
28
|
FilterItem?: React.FC<FilterItemProps>;
|
|
29
|
+
CloseIcon?: React.FC<AntdIconProps>;
|
|
28
30
|
/** 是否显示边框 */
|
|
29
31
|
showBorder?: boolean;
|
|
30
32
|
/** 移除当前组的回调 */
|
|
@@ -13,11 +13,11 @@ export type UiSchemaEnumItem = string | number | boolean | {
|
|
|
13
13
|
color?: string;
|
|
14
14
|
icon?: any;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
16
|
+
type Option = {
|
|
17
|
+
label: any;
|
|
18
|
+
value: any;
|
|
19
|
+
} & Record<string, any>;
|
|
20
|
+
export declare function translateOptions(options: Option[], t: (s: string) => string): Option[];
|
|
21
|
+
export declare function enumToOptions(uiEnum: UiSchemaEnumItem[] | undefined, t: (s: string) => string): Option[] | undefined;
|
|
23
22
|
export declare function ensureOptionsFromUiSchemaEnumIfAbsent(model: FlowModel, collectionField: CollectionField): boolean;
|
|
23
|
+
export {};
|
|
@@ -34,7 +34,7 @@ export declare class GridModel<T extends {
|
|
|
34
34
|
private dragState?;
|
|
35
35
|
private _memoItemFlowSettings?;
|
|
36
36
|
private getItemFlowSettings;
|
|
37
|
-
|
|
37
|
+
onMount(): void;
|
|
38
38
|
saveGridLayout(layout?: GridLayoutData): void;
|
|
39
39
|
mergeRowsWithItems(rows: Record<string, string[][]>): Record<string, string[][]>;
|
|
40
40
|
resetRows(syncProps?: boolean): void;
|
|
@@ -11,6 +11,7 @@ import React from 'react';
|
|
|
11
11
|
import { GridModel } from '../../base';
|
|
12
12
|
import { FilterFormItemModel } from './FilterFormItemModel';
|
|
13
13
|
export declare class FilterFormGridModel extends GridModel {
|
|
14
|
+
itemSettingsMenuLevel: number;
|
|
14
15
|
itemFlowSettings: {
|
|
15
16
|
showBackground: boolean;
|
|
16
17
|
style: {
|
|
@@ -16,7 +16,7 @@ export declare class ClickableFieldModel extends FieldModel {
|
|
|
16
16
|
*/
|
|
17
17
|
onClick(event: any, currentRecord: any): void;
|
|
18
18
|
renderComponent(value: any): any;
|
|
19
|
-
renderInDisplayStyle(value: any, record?: any): React.JSX.Element;
|
|
19
|
+
renderInDisplayStyle(value: any, record?: any, isToMany?: any): React.JSX.Element;
|
|
20
20
|
/**
|
|
21
21
|
* 基类统一渲染逻辑
|
|
22
22
|
*/
|