@nocobase/client 2.0.35 → 2.0.36
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/models/fields/AssociationFieldModel/recordSelectShared.d.ts +2 -13
- package/es/index.mjs +1727 -1661
- package/lib/index.js +122 -122
- package/package.json +6 -6
|
@@ -13,6 +13,7 @@ export interface AssociationFieldNames {
|
|
|
13
13
|
label: string;
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
|
+
export declare function normalizeAssociationFieldNames(fieldNames: Partial<AssociationFieldNames> | undefined, targetCollection?: any): AssociationFieldNames;
|
|
16
17
|
export type AssociationOption = Record<string, any>;
|
|
17
18
|
export type PopupScrollEvent = Parameters<NonNullable<SelectProps<any>['onPopupScroll']>>[0];
|
|
18
19
|
export declare function buildOpenerUids(ctx: FlowRuntimeContext, inputArgs?: Record<string, unknown>): string[];
|
|
@@ -43,17 +44,5 @@ export interface LabelByFieldProps {
|
|
|
43
44
|
fieldNames: AssociationFieldNames;
|
|
44
45
|
}
|
|
45
46
|
export declare function LabelByField(props: Readonly<LabelByFieldProps>): React.JSX.Element;
|
|
46
|
-
export declare function toSelectValue(record: AssociationOption | AssociationOption[] | string | string[] | number | number[] | undefined, fieldNames: AssociationFieldNames, multiple?: boolean, valueMode?: 'record' | 'value', options?: AssociationOption[]):
|
|
47
|
-
label: React.JSX.Element;
|
|
48
|
-
value: any;
|
|
49
|
-
} | {
|
|
50
|
-
label: string | number | AssociationOption;
|
|
51
|
-
value: string | number | AssociationOption;
|
|
52
|
-
} | ({
|
|
53
|
-
label: React.JSX.Element;
|
|
54
|
-
value: any;
|
|
55
|
-
} | {
|
|
56
|
-
label: string | number | AssociationOption;
|
|
57
|
-
value: string | number | AssociationOption;
|
|
58
|
-
})[];
|
|
47
|
+
export declare function toSelectValue(record: AssociationOption | AssociationOption[] | string | string[] | number | number[] | undefined, fieldNames: AssociationFieldNames, multiple?: boolean, valueMode?: 'record' | 'value', options?: AssociationOption[]): any;
|
|
59
48
|
export declare function resolveOptions(options: AssociationOption[] | undefined, value: AssociationOption | AssociationOption[] | string | string[] | number | number[] | undefined, isMultiple: boolean): AssociationOption[];
|