@nocobase/client 2.0.0-alpha.51 → 2.0.0-alpha.53
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/LinkageFilterItem.d.ts +1 -0
- package/es/flow/components/filter/VariableFilterItem.d.ts +2 -0
- package/es/flow/index.d.ts +1 -0
- package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +2 -1
- package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +1 -3
- package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +5 -0
- package/es/flow/models/fields/ClickableFieldModel.d.ts +2 -2
- package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +1 -0
- package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +3 -1
- package/es/flow/models/fields/DisplayTextFieldModel.d.ts +1 -1
- package/es/flow/utils/index.d.ts +9 -0
- package/es/index.mjs +3013 -2613
- package/lib/{index-C3fHjsMw-BgJB2UFd.js → index-C3fHjsMw-ebogyi-Q.js} +243 -246
- package/lib/index.js +136 -139
- package/lib/locale/zh-CN.json +3 -2
- package/package.json +6 -6
- /package/es/flow/{internal/utils → utils}/blockUtils.d.ts +0 -0
|
@@ -12,6 +12,8 @@ export interface VariableFilterItemValue {
|
|
|
12
12
|
path: string;
|
|
13
13
|
operator: string;
|
|
14
14
|
value: string | number | boolean | null | Array<string | number> | Record<string, unknown>;
|
|
15
|
+
/** 操作符是否无右值(用于透传到 transformFilter 等) */
|
|
16
|
+
noValue?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export interface VariableFilterItemProps {
|
|
17
19
|
/** 筛选条件值对象 */
|
package/es/flow/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './components/TextAreaWithContextSelector';
|
|
|
16
16
|
export * from './FlowModelRepository';
|
|
17
17
|
export * from './FlowPage';
|
|
18
18
|
export * from './models';
|
|
19
|
+
export * from './utils';
|
|
19
20
|
export { openViewFlow } from './flows/openViewFlow';
|
|
20
21
|
export { editMarkdownFlow } from './flows/editMarkdownFlow';
|
|
21
22
|
export { TextAreaWithContextSelector } from './components/TextAreaWithContextSelector';
|
|
@@ -26,7 +26,8 @@ type RebuildOptions = {
|
|
|
26
26
|
targetUse: string;
|
|
27
27
|
defaultProps?: Record<string, unknown>;
|
|
28
28
|
pattern?: string;
|
|
29
|
+
fieldSettingsInit?: unknown;
|
|
29
30
|
};
|
|
30
31
|
export declare function getFieldBindingUse(fieldModel?: FieldModel): string | undefined;
|
|
31
|
-
export declare function rebuildFieldSubModel({ parentModel, targetUse, defaultProps, pattern }: RebuildOptions): Promise<void>;
|
|
32
|
+
export declare function rebuildFieldSubModel({ parentModel, targetUse, defaultProps, pattern, fieldSettingsInit, }: RebuildOptions): Promise<void>;
|
|
32
33
|
export {};
|
|
@@ -41,9 +41,6 @@ export declare class FilterFormItemModel extends FilterableItemModel<{
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
filterFormItemSettings: {
|
|
44
|
-
label: {
|
|
45
|
-
label: any;
|
|
46
|
-
};
|
|
47
44
|
init: {
|
|
48
45
|
filterField: Pick<any, "name" | "title" | "type" | "interface">;
|
|
49
46
|
defaultTargetUid: string;
|
|
@@ -67,6 +64,7 @@ export declare class FilterFormItemModel extends FilterableItemModel<{
|
|
|
67
64
|
operator: string;
|
|
68
65
|
private debouncedDoFilter;
|
|
69
66
|
get defaultTargetUid(): string;
|
|
67
|
+
private getCurrentOperatorMeta;
|
|
70
68
|
onInit(options: any): void;
|
|
71
69
|
onUnmount(): void;
|
|
72
70
|
doFilter(): void;
|
|
@@ -19,8 +19,13 @@ export declare class SubFormFieldModel extends FormAssociationFieldModel {
|
|
|
19
19
|
render(): React.JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export declare class SubFormListFieldModel extends FormAssociationFieldModel {
|
|
22
|
+
selectedRows: {
|
|
23
|
+
value: any[];
|
|
24
|
+
};
|
|
22
25
|
updateAssociation: boolean;
|
|
23
26
|
onInit(options: any): void;
|
|
27
|
+
set onSelectExitRecordClick(fn: any);
|
|
28
|
+
change(): void;
|
|
24
29
|
onMount(): void;
|
|
25
30
|
render(): React.JSX.Element;
|
|
26
31
|
}
|
|
@@ -16,8 +16,8 @@ export declare class ClickableFieldModel extends FieldModel {
|
|
|
16
16
|
* 点击打开行为
|
|
17
17
|
*/
|
|
18
18
|
onClick(event: any, currentRecord: any): void;
|
|
19
|
-
renderComponent(value: any): any;
|
|
20
|
-
renderInDisplayStyle(value: any, record?: any, isToMany?: any): React.JSX.Element;
|
|
19
|
+
renderComponent(value: any, wrap?: any): any;
|
|
20
|
+
renderInDisplayStyle(value: any, record?: any, isToMany?: any, wrap?: any): React.JSX.Element;
|
|
21
21
|
/**
|
|
22
22
|
* 基类统一渲染逻辑
|
|
23
23
|
*/
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { ClickableFieldModel } from './ClickableFieldModel';
|
|
11
|
+
export declare function formatNumber(props: any): any;
|
|
11
12
|
interface displayNumberProps {
|
|
12
13
|
formatStyle?: 'normal' | 'scientifix';
|
|
13
14
|
unitConversion?: number;
|
|
@@ -24,8 +25,9 @@ interface displayNumberProps {
|
|
|
24
25
|
addonBefore?: React.ReactNode;
|
|
25
26
|
addonAfter?: React.ReactNode;
|
|
26
27
|
}
|
|
27
|
-
export declare const
|
|
28
|
+
export declare const getDisplayNumber: (props: displayNumberProps) => any;
|
|
28
29
|
export declare class DisplayNumberFieldModel extends ClickableFieldModel {
|
|
29
30
|
renderComponent(value: any): React.JSX.Element;
|
|
30
31
|
}
|
|
32
|
+
export declare const UnitConversion: () => React.JSX.Element;
|
|
31
33
|
export {};
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { ClickableFieldModel } from './ClickableFieldModel';
|
|
11
11
|
export declare class DisplayTextFieldModel extends ClickableFieldModel {
|
|
12
|
-
renderComponent(value: any): React.JSX.Element;
|
|
12
|
+
renderComponent(value: any, wrap: any): React.JSX.Element;
|
|
13
13
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export * from './blockUtils';
|