@nocobase/client 2.0.0-alpha.50 → 2.0.0-alpha.51

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 (33) hide show
  1. package/es/collection-manager/interfaces/number.d.ts +44 -0
  2. package/es/flow/components/index.d.ts +0 -1
  3. package/es/flow/{components/JsonInput.d.ts → internal/utils/operatorSchemaHelper.d.ts} +7 -2
  4. package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +3 -0
  5. package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +10 -0
  6. package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +2 -0
  7. package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +10 -0
  8. package/es/flow/models/blocks/table/TableBlockModel.d.ts +1 -1
  9. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +2 -2
  10. package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +3 -3
  11. package/es/flow/models/fields/JsonFieldModel.d.ts +1 -0
  12. package/es/global-theme/type.d.ts +1 -0
  13. package/es/index.mjs +2057 -1568
  14. package/lib/{index-C3fHjsMw-CVjrNNPl.js → index-C3fHjsMw-BgJB2UFd.js} +224 -218
  15. package/lib/index.js +141 -135
  16. package/lib/locale/de-DE.json +5 -3
  17. package/lib/locale/en-US.json +5 -3
  18. package/lib/locale/es-ES.json +5 -3
  19. package/lib/locale/fr-FR.json +5 -3
  20. package/lib/locale/hu-HU.json +5 -3
  21. package/lib/locale/id-ID.json +5 -3
  22. package/lib/locale/it-IT.json +5 -3
  23. package/lib/locale/ja-JP.json +5 -3
  24. package/lib/locale/ko-KR.json +5 -3
  25. package/lib/locale/nl-NL.json +7 -3
  26. package/lib/locale/pt-BR.json +5 -3
  27. package/lib/locale/ru-RU.json +5 -3
  28. package/lib/locale/tr-TR.json +5 -3
  29. package/lib/locale/uk-UA.json +5 -3
  30. package/lib/locale/vi-VN.json +5 -3
  31. package/lib/locale/zh-CN.json +6 -3
  32. package/lib/locale/zh-TW.json +5 -3
  33. package/package.json +6 -6
@@ -57,6 +57,38 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
57
57
  label: string;
58
58
  }[];
59
59
  };
60
+ precision: {
61
+ type: string;
62
+ title: string;
63
+ 'x-component': string;
64
+ 'x-decorator': string;
65
+ 'x-disabled': string;
66
+ default: number;
67
+ 'x-reactions': {
68
+ dependencies: string[];
69
+ fulfill: {
70
+ state: {
71
+ visible: string;
72
+ };
73
+ };
74
+ };
75
+ };
76
+ scale: {
77
+ type: string;
78
+ title: string;
79
+ 'x-component': string;
80
+ 'x-decorator': string;
81
+ 'x-disabled': string;
82
+ default: number;
83
+ 'x-reactions': {
84
+ dependencies: string[];
85
+ fulfill: {
86
+ state: {
87
+ visible: string;
88
+ };
89
+ };
90
+ };
91
+ };
60
92
  'uiSchema.title': {
61
93
  type: string;
62
94
  title: string;
@@ -74,6 +106,18 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
74
106
  'x-validator': string;
75
107
  description: string;
76
108
  };
109
+ type: {
110
+ type: string;
111
+ title: string;
112
+ 'x-component': string;
113
+ 'x-decorator': string;
114
+ 'x-disabled': string;
115
+ default: string;
116
+ enum: {
117
+ label: string;
118
+ value: string;
119
+ }[];
120
+ };
77
121
  };
78
122
  filterable: {
79
123
  operators: ({
@@ -10,6 +10,5 @@ export * from './BlockItemCard';
10
10
  export * from './drag-drop';
11
11
  export * from './EllipsisWithTooltip';
12
12
  export * from './ExpiresRadio';
13
- export * from './JsonInput';
14
13
  export * from './code-editor';
15
14
  export * from './TextAreaWithContextSelector';
@@ -6,5 +6,10 @@
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
- export declare const JsonInput: (props: any) => React.JSX.Element;
9
+ /**
10
+ * 根据操作符的 schema 定位组件及其 props
11
+ */
12
+ export declare function resolveOperatorComponent(app: any, operator: string, operators?: Array<any>): {
13
+ Comp: any;
14
+ props: Record<string, any>;
15
+ };
@@ -19,12 +19,15 @@ export declare class FilterFormBlockModel extends FilterBlockModel<{
19
19
  * 是否需要自动触发筛选,当字段值变更时自动执行筛选
20
20
  */
21
21
  autoTriggerFilter: boolean;
22
+ private removeTargetBlockListener?;
22
23
  get form(): any;
23
24
  get title(): string;
24
25
  useHooksBeforeRender(): void;
25
26
  addAppends(): void;
26
27
  onInit(options: any): void;
27
28
  onMount(): void;
29
+ onUnmount(): void;
30
+ private handleTargetBlockRemoved;
28
31
  destroy(): Promise<boolean>;
29
32
  renderComponent(): React.JSX.Element;
30
33
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { FilterFormItemModel } from '../../filter-form/FilterFormItemModel';
10
+ export declare const customizeFilterRender: import("@nocobase/flow-engine").ActionDefinition<FilterFormItemModel, import("@nocobase/flow-engine").FlowContext>;
@@ -8,3 +8,5 @@
8
8
  */
9
9
  export * from './connectFields';
10
10
  export * from './defaultOperator';
11
+ export * from './customizeFilterRender';
12
+ export * from './operatorComponentProps';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { FilterFormItemModel } from '../../filter-form/FilterFormItemModel';
10
+ export declare const operatorComponentProps: import("@nocobase/flow-engine").ActionDefinition<FilterFormItemModel, import("@nocobase/flow-engine").FlowContext>;
@@ -61,7 +61,7 @@ export declare class TableBlockModel extends CollectionBlockModel<TableBlockMode
61
61
  };
62
62
  };
63
63
  renderCell: (checked: any, record: any, index: any, originNode: any) => any;
64
- renderConfiguireActions(): React.JSX.Element;
64
+ renderConfigureActions(): React.JSX.Element;
65
65
  pagination(): {
66
66
  current: number;
67
67
  pageSize: number;
@@ -11,13 +11,13 @@ import { TableColumnProps } from 'antd';
11
11
  import React from 'react';
12
12
  import { SubTableFieldModel } from '.';
13
13
  import { FieldModel } from '../../../base';
14
- export interface SubTableColumnModelStructor {
14
+ export interface SubTableColumnModelStructure {
15
15
  parent: SubTableFieldModel;
16
16
  subModels: {
17
17
  field: FieldModel;
18
18
  };
19
19
  }
20
- export declare class SubTableColumnModel<T extends SubTableColumnModelStructor = SubTableColumnModelStructor> extends EditableItemModel<T> {
20
+ export declare class SubTableColumnModel<T extends SubTableColumnModelStructure = SubTableColumnModelStructure> extends EditableItemModel<T> {
21
21
  static renderMode: ModelRenderMode;
22
22
  renderHiddenInConfig(): React.JSX.Element;
23
23
  static defineChildren(ctx: FlowModelContext): any;
@@ -7,7 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- import { FieldModel } from '../base';
11
- export declare class DisplayJSONFieldModel extends FieldModel {
12
- render(): React.JSX.Element;
10
+ import { DisplayTitleFieldModel } from './DisplayTitleFieldModel';
11
+ export declare class DisplayJSONFieldModel extends DisplayTitleFieldModel {
12
+ renderComponent(value: any): React.JSX.Element;
13
13
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FieldModel } from '../base';
3
+ export declare const JsonInput: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
3
4
  export declare class JsonFieldModel extends FieldModel {
4
5
  render(): React.JSX.Element;
5
6
  }
@@ -56,6 +56,7 @@ export interface CustomToken extends AliasToken {
56
56
  /** 区块的圆角 */
57
57
  borderRadiusBlock: number;
58
58
  siderWidth: number;
59
+ globalStyle?: string;
59
60
  }
60
61
  export interface ThemeConfig extends _ThemeConfig {
61
62
  name?: string;