@nocobase/client 2.0.34 → 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/RecordPickerFieldModel.d.ts +10 -0
- package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +5 -0
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +2 -13
- package/es/index.mjs +1858 -1752
- package/lib/index.js +123 -123
- package/package.json +6 -6
|
@@ -16,6 +16,16 @@ export declare function buildRecordPickerParentItemContext(ctx: any): {
|
|
|
16
16
|
parentItemResolver: ((subPath: string) => boolean) | undefined;
|
|
17
17
|
};
|
|
18
18
|
export declare function injectRecordPickerPopupContext(model: FlowModel, viewCtx: any, fieldModel?: any): void;
|
|
19
|
+
export declare function buildRecordPickerPopupContextInputArgs(ctx: any, options?: {
|
|
20
|
+
currentItemValue?: any;
|
|
21
|
+
extraInputArgs?: Record<string, any>;
|
|
22
|
+
}): {
|
|
23
|
+
parentItem: ItemChain;
|
|
24
|
+
parentItemMeta: any;
|
|
25
|
+
parentItemResolver: (subPath: string) => boolean;
|
|
26
|
+
currentItemValue: any;
|
|
27
|
+
openerUids: string[];
|
|
28
|
+
};
|
|
19
29
|
export declare function RecordPickerContent({ model, toOne }: {
|
|
20
30
|
model: any;
|
|
21
31
|
toOne?: boolean;
|
|
@@ -46,6 +46,8 @@ export declare function createItemChainMetaFactory(options: {
|
|
|
46
46
|
title: string;
|
|
47
47
|
showIndex?: boolean;
|
|
48
48
|
showParentIndex?: boolean;
|
|
49
|
+
disableValueBranch?: boolean;
|
|
50
|
+
valueBranchDisabledReason?: string;
|
|
49
51
|
collectionAccessor: () => any;
|
|
50
52
|
propertiesAccessor: (ctx: any) => any;
|
|
51
53
|
parentCollectionAccessor?: () => any;
|
|
@@ -54,6 +56,7 @@ export declare function createItemChainMetaFactory(options: {
|
|
|
54
56
|
}): any;
|
|
55
57
|
export declare function createItemChainResolver(options: {
|
|
56
58
|
collectionAccessor: () => any;
|
|
59
|
+
disableValueBranch?: boolean;
|
|
57
60
|
propertiesAccessor?: () => unknown;
|
|
58
61
|
parentCollectionAccessor?: () => any;
|
|
59
62
|
parentPropertiesAccessor?: () => unknown;
|
|
@@ -72,6 +75,8 @@ export type AssociationItemChainContextPropertyOptions = {
|
|
|
72
75
|
title: string;
|
|
73
76
|
showIndex?: boolean;
|
|
74
77
|
showParentIndex?: boolean;
|
|
78
|
+
disableValueBranch?: boolean;
|
|
79
|
+
valueBranchDisabledReason?: string;
|
|
75
80
|
collectionAccessor: () => any;
|
|
76
81
|
propertiesAccessor: (ctx: any) => any;
|
|
77
82
|
resolverPropertiesAccessor?: () => unknown;
|
|
@@ -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[];
|