@nocobase/client 2.0.38 → 2.0.39
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/FieldAssignValueInput.d.ts +23 -4
- package/es/index.mjs +4240 -4136
- package/lib/index.js +172 -186
- package/package.json +7 -7
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { dayjs } from '@nocobase/utils/client';
|
|
11
|
-
import { type MetaTreeNode } from '@nocobase/flow-engine';
|
|
11
|
+
import { type CollectionField, type MetaTreeNode } from '@nocobase/flow-engine';
|
|
12
12
|
import { type ExactDatePickerMode } from './FieldAssignExactDatePicker';
|
|
13
13
|
export type DateVariableExactNormalizeMode = 'none' | 'date' | 'datetimeNoTz' | 'iso';
|
|
14
14
|
export declare function toExactPickerDisplayValue(rawValue: unknown, options: {
|
|
@@ -55,11 +55,30 @@ interface Props {
|
|
|
55
55
|
}
|
|
56
56
|
export declare function mergeItemMetaTreeForAssignValue(baseTree: MetaTreeNode[], extraTree: MetaTreeNode[]): MetaTreeNode[];
|
|
57
57
|
export declare function resolveAssignValueFieldPath(itemModel: any): string | undefined;
|
|
58
|
-
|
|
58
|
+
type AssignValueFieldSettingsInit = {
|
|
59
|
+
dataSourceKey?: string;
|
|
60
|
+
collectionName?: string;
|
|
61
|
+
fieldPath?: string;
|
|
62
|
+
};
|
|
63
|
+
type AssignValueFieldSource = {
|
|
64
|
+
originFieldModel?: any;
|
|
65
|
+
originProps: Record<string, any>;
|
|
66
|
+
customFieldName?: string;
|
|
67
|
+
customFieldProps: Record<string, any>;
|
|
68
|
+
currentAllowMultiple?: boolean;
|
|
69
|
+
currentFieldModelUse?: string;
|
|
70
|
+
};
|
|
71
|
+
export declare function resolveAssignValueFieldModelConfig(options: {
|
|
59
72
|
itemModel: any;
|
|
60
|
-
|
|
73
|
+
defaultBindingUse?: string;
|
|
74
|
+
collectionField?: Pick<CollectionField, 'isAssociationField'> | null;
|
|
75
|
+
fieldSource?: AssignValueFieldSource;
|
|
61
76
|
preferFormItemFieldModel?: boolean;
|
|
62
|
-
|
|
77
|
+
fieldSettingsInit?: AssignValueFieldSettingsInit;
|
|
78
|
+
}): {
|
|
79
|
+
use?: string;
|
|
80
|
+
stepParams: Record<string, any>;
|
|
81
|
+
};
|
|
63
82
|
/**
|
|
64
83
|
* 根据所选字段渲染对应的赋值编辑器:
|
|
65
84
|
* - 使用临时的 VariableFieldFormModel 包裹字段模型,确保常量编辑为真实字段组件
|