@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.
@@ -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
- * 将 uiSchema.enum 归一化为 antd 可识别的 options 数组
18
- */
19
- export declare function normalizeUiSchemaEnumToOptions(uiEnum?: UiSchemaEnumItem[]): any[];
20
- /**
21
- * 若符合条件,则为模型补全 options,返回是否发生了注入
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
- onInit(options: any): void;
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: {
@@ -6,6 +6,8 @@ export declare class SubTableFieldModel extends AssociationFieldModel {
6
6
  value: any[];
7
7
  };
8
8
  updateAssociation: boolean;
9
+ setCurrentPage: any;
10
+ currentPageSize: any;
9
11
  get collection(): any;
10
12
  getColumns(): any;
11
13
  render(): React.JSX.Element;
@@ -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
  */
@@ -13,6 +13,6 @@ export declare class DisplaySubTableFieldModel extends FieldModel {
13
13
  get collectionField(): any;
14
14
  onInit(options: any): void;
15
15
  afterAddAsSubModel(): Promise<void>;
16
- getColumns(): any;
16
+ getBaseColumns(): any[];
17
17
  render(): React.JSX.Element;
18
18
  }
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { FieldModel } from '../base';
3
3
  export declare class TimeFieldModel extends FieldModel {
4
- setProps(props: any): void;
5
4
  render(): React.JSX.Element;
6
5
  }