@nocobase/client 1.7.0-beta.31 → 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.
@@ -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;
@@ -32,7 +32,7 @@ export declare class RouterManager {
32
32
  protected routes: Record<string, RouteType>;
33
33
  protected options: RouterOptions;
34
34
  app: Application;
35
- private router;
35
+ router: any;
36
36
  get basename(): any;
37
37
  get state(): any;
38
38
  get navigate(): any;
@@ -63,4 +63,5 @@ export declare abstract class CollectionFieldInterface {
63
63
  getDefaultValueProperty(): {
64
64
  defaultValue: any;
65
65
  };
66
+ addOperator(operatorOption: any): void;
66
67
  }
@@ -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, {