@nocobase/client 1.7.0-beta.30 → 1.7.0-beta.32
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/application/Application.d.ts +14 -0
- package/es/application/RouterManager.d.ts +1 -1
- package/es/collection-manager/interfaces/password.d.ts +18 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.d.ts +14 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +7020 -6942
- package/es/modules/fields/component/FileManager/fileManagerComponentFieldSettings.d.ts +8 -0
- package/es/schema-component/antd/action/utils.d.ts +2 -1
- package/lib/index.js +44 -35
- package/lib/locale/zh-CN.js +2 -2
- package/package.json +5 -5
|
@@ -129,6 +129,20 @@ export declare class Application {
|
|
|
129
129
|
mount(containerOrSelector: Element | ShadowRoot | string): import("react-dom/client").Root;
|
|
130
130
|
addFieldInterfaces(fieldInterfaceClasses?: CollectionFieldInterfaceFactory[]): void;
|
|
131
131
|
addFieldInterfaceComponentOption(fieldName: string, componentOption: CollectionFieldInterfaceComponentOption): void;
|
|
132
|
+
/**
|
|
133
|
+
* 为指定的字段接口添加操作符选项
|
|
134
|
+
*
|
|
135
|
+
* @param name 字段接口的名称
|
|
136
|
+
* @param operatorOption 要添加的操作符选项
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* // 为"单行文本"类型字段添加"等于任意一个"操作符
|
|
140
|
+
* app.addFieldInterfaceOperator('input', {
|
|
141
|
+
* label: '{{t("equals any of")}}',
|
|
142
|
+
* value: '$in',
|
|
143
|
+
* });
|
|
144
|
+
*/
|
|
145
|
+
addFieldInterfaceOperator(name: string, operatorOption: any): void;
|
|
132
146
|
addGlobalVar(key: string, value: any, varCtx?: any): void;
|
|
133
147
|
getGlobalVar(key: any): any;
|
|
134
148
|
getGlobalVarCtx(key: any): any;
|
|
@@ -89,4 +89,22 @@ export declare class PasswordFieldInterface extends CollectionFieldInterface {
|
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
|
+
filterable: {
|
|
93
|
+
operators: ({
|
|
94
|
+
label: string;
|
|
95
|
+
value: string;
|
|
96
|
+
selected: boolean;
|
|
97
|
+
noValue?: undefined;
|
|
98
|
+
} | {
|
|
99
|
+
label: string;
|
|
100
|
+
value: string;
|
|
101
|
+
selected?: undefined;
|
|
102
|
+
noValue?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
label: string;
|
|
105
|
+
value: string;
|
|
106
|
+
noValue: boolean;
|
|
107
|
+
selected?: undefined;
|
|
108
|
+
})[];
|
|
109
|
+
};
|
|
92
110
|
}
|
|
@@ -26,6 +26,20 @@ export declare class CollectionFieldInterfaceManager {
|
|
|
26
26
|
}>, dataSourceManager: DataSourceManager);
|
|
27
27
|
addFieldInterfaces(fieldInterfaceClasses?: CollectionFieldInterfaceFactory[]): void;
|
|
28
28
|
addFieldInterfaceComponentOption(interfaceName: string, componentOption: CollectionFieldInterfaceComponentOption): void;
|
|
29
|
+
/**
|
|
30
|
+
* 为指定的字段接口添加操作符选项
|
|
31
|
+
*
|
|
32
|
+
* @param name 字段接口的名称
|
|
33
|
+
* @param operatorOption 要添加的操作符选项
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* // 为"单行文本"类型字段添加"等于任意一个"操作符
|
|
37
|
+
* fieldInterfaceManager.addFieldInterfaceOperator('input', {
|
|
38
|
+
* label: '{{t("equals any of")}}',
|
|
39
|
+
* value: '$in',
|
|
40
|
+
* });
|
|
41
|
+
*/
|
|
42
|
+
addFieldInterfaceOperator(name: string, operatorOption: any): void;
|
|
29
43
|
getFieldInterface<T extends CollectionFieldInterface>(name: string): T;
|
|
30
44
|
getFieldInterfaces(dataSourceType?: string): CollectionFieldInterface[];
|
|
31
45
|
addFieldInterfaceGroups(groups: Record<string, {
|
package/es/index.d.ts
CHANGED
|
@@ -71,5 +71,6 @@ export { usePopupUtils } from './modules/popup/usePopupUtils';
|
|
|
71
71
|
export { VariablePopupRecordProvider } from './modules/variable/variablesProvider/VariablePopupRecordProvider';
|
|
72
72
|
export { showFileName } from './modules/fields/component/FileManager/fileManagerComponentFieldSettings';
|
|
73
73
|
export { useCurrentPopupRecord } from './modules/variable/variablesProvider/VariablePopupRecordProvider';
|
|
74
|
+
export { fileSizeSetting } from './modules/fields/component/FileManager/fileManagerComponentFieldSettings';
|
|
74
75
|
export { languageCodes } from './locale';
|
|
75
76
|
export { CollectionFieldUISchemaProvider, IsInNocoBaseRecursionFieldContext, NocoBaseRecursionField, RefreshComponentProvider, useRefreshFieldSchema, } from './formily/NocoBaseRecursionField';
|