@nocobase/client 1.7.0-beta.9 → 1.7.0

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.
Files changed (114) hide show
  1. package/.dumirc.ts +4 -0
  2. package/es/application/Application.d.ts +14 -0
  3. package/es/application/CustomRouterContextProvider.d.ts +5 -2
  4. package/es/application/RouterManager.d.ts +1 -1
  5. package/es/application/components/defaultComponents.d.ts +3 -1
  6. package/es/block-provider/TemplateBlockProvider.d.ts +2 -0
  7. package/es/block-provider/hooks/index.d.ts +2 -0
  8. package/es/collection-manager/interfaces/createdAt.d.ts +9 -0
  9. package/es/collection-manager/interfaces/dateOnly.d.ts +9 -0
  10. package/es/collection-manager/interfaces/datetime.d.ts +9 -0
  11. package/es/collection-manager/interfaces/datetimeNoTz.d.ts +9 -0
  12. package/es/collection-manager/interfaces/input.d.ts +6 -0
  13. package/es/collection-manager/interfaces/password.d.ts +18 -0
  14. package/es/collection-manager/interfaces/properties/operators.d.ts +12 -10
  15. package/es/collection-manager/interfaces/radioGroup.d.ts +3 -10
  16. package/es/collection-manager/interfaces/select.d.ts +3 -10
  17. package/es/collection-manager/interfaces/textarea.d.ts +6 -0
  18. package/es/collection-manager/interfaces/unixTimestamp.d.ts +9 -0
  19. package/es/collection-manager/interfaces/updatedAt.d.ts +9 -0
  20. package/es/collection-manager/mixins/InheritanceCollectionMixin.d.ts +6 -0
  21. package/es/{schema-initializer/components/DeprecatedTemplateTitle.d.ts → common/AppNotFound.d.ts} +1 -2
  22. package/es/common/SelectWithTitle.d.ts +1 -1
  23. package/es/common/getVariableValue.d.ts +9 -0
  24. package/es/common/index.d.ts +2 -0
  25. package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
  26. package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.d.ts +14 -0
  27. package/es/data-source/data-source/DataSourceManagerProvider.d.ts +1 -1
  28. package/es/filter-provider/FilterProvider.d.ts +4 -0
  29. package/es/filter-provider/highlightBlock.d.ts +9 -0
  30. package/es/flag-provider/FlagProvider.d.ts +2 -0
  31. package/es/formily/NocoBaseRecursionField.d.ts +1 -0
  32. package/es/global-theme/type.d.ts +1 -0
  33. package/es/i18n/constant.d.ts +10 -0
  34. package/es/i18n/index.d.ts +1 -0
  35. package/es/index.d.ts +1 -0
  36. package/es/index.mjs +52339 -50474
  37. package/es/modules/actions/view-edit-popup/PopupActionInitializer.d.ts +2 -1
  38. package/es/modules/actions/view-edit-popup/customizePopupActionSettings.d.ts +0 -8
  39. package/es/modules/blocks/BlockLinkageRuleProvider.d.ts +9 -0
  40. package/es/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.d.ts +2 -0
  41. package/es/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.d.ts +1 -0
  42. package/es/modules/blocks/data-blocks/table/createTableBlockUISchema.d.ts +0 -1
  43. package/es/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.d.ts +1 -0
  44. package/es/modules/blocks/utils.d.ts +10 -0
  45. package/es/modules/fields/component/FileManager/fileManagerComponentFieldSettings.d.ts +8 -0
  46. package/es/modules/fields/component/Picker/recordPickerComponentFieldSettings.d.ts +1 -0
  47. package/es/nocobase-buildin-plugin/index.d.ts +0 -2
  48. package/es/route-switch/antd/admin-layout/KeepAlive.d.ts +1 -0
  49. package/es/route-switch/antd/admin-layout/index.d.ts +3 -2
  50. package/es/schema-component/antd/action/Action.Designer.d.ts +1 -0
  51. package/es/schema-component/antd/action/Action.Modal.d.ts +1 -0
  52. package/es/schema-component/antd/action/hooks/useGetAfterSuccessVariablesOptions.d.ts +13 -0
  53. package/es/schema-component/antd/action/index.d.ts +1 -0
  54. package/es/schema-component/antd/action/types.d.ts +2 -0
  55. package/es/schema-component/antd/action/utils.d.ts +3 -1
  56. package/es/schema-component/antd/association-field/InternalViewer.d.ts +2 -0
  57. package/es/schema-component/antd/date-picker/util.d.ts +13 -0
  58. package/es/schema-component/antd/index.d.ts +1 -0
  59. package/es/schema-component/antd/input/Input.d.ts +4 -1
  60. package/es/schema-component/antd/linkageFilter/DynamicComponent.d.ts +36 -0
  61. package/es/schema-component/antd/linkageFilter/FilterGroup.d.ts +10 -0
  62. package/es/schema-component/antd/linkageFilter/FilterItems.d.ts +10 -0
  63. package/es/schema-component/antd/linkageFilter/LinkageFilter.d.ts +9 -0
  64. package/es/schema-component/antd/linkageFilter/LinkageFilterItem.d.ts +10 -0
  65. package/es/schema-component/antd/linkageFilter/context.d.ts +25 -0
  66. package/es/schema-component/antd/linkageFilter/index.d.ts +9 -0
  67. package/es/schema-component/antd/linkageFilter/useOperators.d.ts +13 -0
  68. package/es/schema-component/antd/linkageFilter/useValues.d.ts +25 -0
  69. package/es/schema-component/antd/list/index.d.ts +1 -0
  70. package/es/schema-component/antd/markdown/Markdown.Void.d.ts +5 -1
  71. package/es/schema-component/antd/page/AllDataBlocksProvider.d.ts +17 -0
  72. package/es/schema-component/antd/page/index.d.ts +1 -0
  73. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  74. package/es/schema-component/antd/variable/Input.d.ts +2 -0
  75. package/es/schema-component/antd/variable/TextArea.d.ts +14 -1
  76. package/es/schema-component/antd/variable/Variable.d.ts +1 -1
  77. package/es/schema-component/common/date-filter-dynamic-component/DateFilterDynamicComponent.d.ts +10 -0
  78. package/es/schema-component/common/index.d.ts +1 -0
  79. package/es/schema-component/common/utils/uitls.d.ts +2 -5
  80. package/es/schema-component/core/DesignableSwitch.d.ts +4 -2
  81. package/es/schema-component/core/SchemaComponent.d.ts +1 -0
  82. package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
  83. package/es/schema-initializer/utils.d.ts +1 -1
  84. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +1 -1
  85. package/es/schema-settings/LinkageRules/bindLinkageRulesToFiled.d.ts +10 -1
  86. package/es/schema-settings/LinkageRules/components/BlockLinkageRuleAction.d.ts +10 -0
  87. package/es/schema-settings/LinkageRules/type.d.ts +3 -1
  88. package/es/schema-settings/SchemaSettings.d.ts +4 -0
  89. package/es/schema-settings/VariableInput/VariableInput.d.ts +4 -0
  90. package/es/schema-settings/VariableInput/hooks/index.d.ts +2 -0
  91. package/es/schema-settings/VariableInput/hooks/useBaseVariable.d.ts +3 -1
  92. package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.d.ts +2 -2
  93. package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +142 -3
  94. package/es/schema-settings/VariableInput/hooks/useExactDateVariable.d.ts +118 -0
  95. package/es/schema-settings/VariableInput/hooks/useRoleVariable.d.ts +1 -1
  96. package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +44 -2
  97. package/es/schema-settings/index.d.ts +2 -0
  98. package/lib/index.js +624 -559
  99. package/lib/locale/de-DE.js +9 -2
  100. package/lib/locale/en-US.js +9 -3
  101. package/lib/locale/es-ES.js +9 -3
  102. package/lib/locale/fr-FR.js +9 -3
  103. package/lib/locale/it-IT.js +9 -2
  104. package/lib/locale/ja-JP.js +9 -3
  105. package/lib/locale/ko-KR.js +9 -3
  106. package/lib/locale/nl-NL.js +182 -7
  107. package/lib/locale/pt-BR.js +9 -3
  108. package/lib/locale/ru-RU.js +9 -3
  109. package/lib/locale/tr-TR.js +9 -3
  110. package/lib/locale/uk-UA.js +9 -3
  111. package/lib/locale/zh-CN.js +46 -6
  112. package/lib/locale/zh-TW.js +9 -3
  113. package/package.json +7 -8
  114. /package/es/schema-settings/LinkageRules/{FieldStyleLinkageRuleAction.d.ts → components/FieldStyleLinkageRuleAction.d.ts} +0 -0
@@ -23,6 +23,7 @@ interface Props {
23
23
  */
24
24
  variableNameOfLeftCondition?: string;
25
25
  action?: any;
26
+ conditionType?: 'advanced' | 'basic';
26
27
  }
27
28
  export declare function bindLinkageRulesToFiled({ field, linkageRules, formValues, localVariables, action, rule, variables, variableNameOfLeftCondition, }: {
28
29
  field: any;
@@ -38,7 +39,15 @@ export declare function bindLinkageRulesToFiled({ field, linkageRules, formValue
38
39
  */
39
40
  variableNameOfLeftCondition?: string;
40
41
  }, jsonLogic: any): () => void;
41
- export declare const collectFieldStateOfLinkageRules: ({ operator, value, field, condition, variables, localVariables, variableNameOfLeftCondition, action }: Props, jsonLogic: any) => any; /**
42
+ export declare function getVariableValuesInCondition({ linkageRules, localVariables, }: {
43
+ linkageRules: any[];
44
+ localVariables: VariableOption[];
45
+ }): any[];
46
+ export declare function getVariableValuesInExpression({ action, localVariables }: {
47
+ action: any;
48
+ localVariables: any;
49
+ }): any[];
50
+ export declare const collectFieldStateOfLinkageRules: ({ operator, value, field, condition, variables, localVariables, variableNameOfLeftCondition, action, conditionType, }: Props, jsonLogic: any) => any; /**
42
51
  * 获取字段临时状态对象
43
52
  */
44
53
  export declare function getTempFieldState(condition: boolean | Promise<boolean>, value: any): Promise<{
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare const BlockLinkageRuleAction: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
@@ -29,6 +29,8 @@ export declare enum ActionType {
29
29
  }
30
30
  export declare enum LinkageRuleCategory {
31
31
  default = "default",
32
- style = "style"
32
+ style = "style",
33
+ button = "button",
34
+ block = "block"
33
35
  }
34
36
  export declare const LinkageRuleDataKeyMap: Record<`${LinkageRuleCategory}`, string>;
@@ -72,6 +72,9 @@ export interface SchemaSettingsRemoveProps {
72
72
  export declare const SchemaSettingsRemove: FC<SchemaSettingsRemoveProps>;
73
73
  export interface SchemaSettingsSelectItemProps extends Omit<SchemaSettingsItemProps, 'onChange' | 'onClick'>, Omit<SelectWithTitleProps, 'title' | 'defaultValue'> {
74
74
  value?: SelectWithTitleProps['defaultValue'];
75
+ optionRender?: (option: any, info: {
76
+ index: number;
77
+ }) => React.ReactNode;
75
78
  }
76
79
  export declare const SchemaSettingsSelectItem: FC<SchemaSettingsSelectItemProps>;
77
80
  export type SchemaSettingsCascaderItemProps = CascaderProps<any> & Omit<MenuItemProps, 'title'> & {
@@ -116,6 +119,7 @@ export interface SchemaSettingsModalItemProps {
116
119
  noRecord?: boolean;
117
120
  /** 自定义 Modal 上下文 */
118
121
  ModalContextProvider?: React.FC;
122
+ dialogRootClassName?: string;
119
123
  }
120
124
  export declare const SchemaSettingsModalItem: FC<SchemaSettingsModalItemProps>;
121
125
  export declare const SchemaSettingsDefaultSortingRules: (props: any) => React.JSX.Element;
@@ -57,6 +57,10 @@ type Props = {
57
57
  */
58
58
  noDisabled?: boolean;
59
59
  hideVariableButton?: boolean;
60
+ setScopes?: any;
61
+ nullable?: boolean;
62
+ constantAbel?: boolean;
63
+ changeOnSelect?: boolean;
60
64
  };
61
65
  /**
62
66
  * 注意:该组件存在以下问题:
@@ -14,3 +14,5 @@ export * from './useURLSearchParamsVariable';
14
14
  export * from './useUserVariable';
15
15
  export * from './useVariableOptions';
16
16
  export * from './usePopupVariable';
17
+ export * from './useContextAssociationFields';
18
+ export * from './useExactDateVariable';
@@ -51,6 +51,8 @@ interface BaseProps {
51
51
  */
52
52
  deprecated?: boolean;
53
53
  tooltip?: string;
54
+ /**支持的操作符 */
55
+ operators?: any[];
54
56
  }
55
57
  interface BaseVariableProviderProps {
56
58
  /**
@@ -61,5 +63,5 @@ interface BaseVariableProviderProps {
61
63
  }
62
64
  export declare const BaseVariableProvider: (props: BaseVariableProviderProps) => React.JSX.Element;
63
65
  export declare const getLabelWithTooltip: (title: string, tooltip?: string) => string | React.JSX.Element;
64
- export declare const useBaseVariable: ({ collectionField, uiSchema, targetFieldSchema, maxDepth, name, title, collectionName, noChildren, noDisabled, dataSource, returnFields, deprecated, tooltip, }: BaseProps) => Option;
66
+ export declare const useBaseVariable: ({ collectionField, uiSchema, targetFieldSchema, maxDepth, name, title, collectionName, noChildren, noDisabled, dataSource, returnFields, deprecated, tooltip, operators, }: BaseProps) => Option;
65
67
  export {};
@@ -10,8 +10,8 @@ import { CollectionFieldOptions_deprecated } from '../../../collection-manager';
10
10
  import { Option } from '../type';
11
11
  export declare const useIsSameOrChildCollection: () => (contextCollection: any, targetCollection: any) => boolean;
12
12
  export declare const useContextAssociationFields: ({ schema, maxDepth, contextCollectionName, collectionField, }: {
13
- schema: any;
13
+ schema?: any;
14
14
  maxDepth?: number;
15
15
  contextCollectionName: string;
16
- collectionField: CollectionFieldOptions_deprecated;
16
+ collectionField?: CollectionFieldOptions_deprecated;
17
17
  }) => Option;
@@ -32,12 +32,107 @@ export declare const useDateVariable: ({ operator, schema, noDisabled }: Props)
32
32
  value: string;
33
33
  key: string;
34
34
  disabled: boolean;
35
- children: {
35
+ children: ({
36
36
  key: string;
37
37
  value: string;
38
38
  label: string;
39
39
  disabled: boolean;
40
- }[];
40
+ operators: ({
41
+ label: string;
42
+ value: string;
43
+ selected: boolean;
44
+ schema: {
45
+ 'x-component': string;
46
+ 'x-component-props': {
47
+ isRange: boolean;
48
+ };
49
+ };
50
+ onlyFilterAction: boolean;
51
+ noValue?: undefined;
52
+ } | {
53
+ label: string;
54
+ value: string;
55
+ schema: {
56
+ 'x-component': string;
57
+ 'x-component-props': {
58
+ isRange: boolean;
59
+ };
60
+ };
61
+ onlyFilterAction: boolean;
62
+ selected?: undefined;
63
+ noValue?: undefined;
64
+ } | {
65
+ label: string;
66
+ value: string;
67
+ schema: {
68
+ 'x-component': string;
69
+ 'x-component-props': {
70
+ isRange: boolean;
71
+ };
72
+ };
73
+ selected?: undefined;
74
+ onlyFilterAction?: undefined;
75
+ noValue?: undefined;
76
+ } | {
77
+ label: string;
78
+ value: string;
79
+ noValue: boolean;
80
+ selected?: undefined;
81
+ schema?: undefined;
82
+ onlyFilterAction?: undefined;
83
+ })[];
84
+ schema: {};
85
+ } | {
86
+ key: string;
87
+ value: string;
88
+ label: string;
89
+ disabled: boolean;
90
+ operators: ({
91
+ label: string;
92
+ value: string;
93
+ selected: boolean;
94
+ schema: {
95
+ 'x-component': string;
96
+ 'x-component-props': {
97
+ isRange: boolean;
98
+ };
99
+ };
100
+ onlyFilterAction: boolean;
101
+ noValue?: undefined;
102
+ } | {
103
+ label: string;
104
+ value: string;
105
+ schema: {
106
+ 'x-component': string;
107
+ 'x-component-props': {
108
+ isRange: boolean;
109
+ };
110
+ };
111
+ onlyFilterAction: boolean;
112
+ selected?: undefined;
113
+ noValue?: undefined;
114
+ } | {
115
+ label: string;
116
+ value: string;
117
+ schema: {
118
+ 'x-component': string;
119
+ 'x-component-props': {
120
+ isRange: boolean;
121
+ };
122
+ };
123
+ selected?: undefined;
124
+ onlyFilterAction?: undefined;
125
+ noValue?: undefined;
126
+ } | {
127
+ label: string;
128
+ value: string;
129
+ noValue: boolean;
130
+ selected?: undefined;
131
+ schema?: undefined;
132
+ onlyFilterAction?: undefined;
133
+ })[];
134
+ schema?: undefined;
135
+ })[];
41
136
  };
42
137
  /**
43
138
  * 变量:`日期变量`的上下文
@@ -73,7 +168,7 @@ export declare const useDatetimeVariableContext: () => {
73
168
  };
74
169
  };
75
170
  /**
76
- * 变量:`日期变量`
171
+ * 变量:`日期变量`,主要用于筛选、联动规则条件场景
77
172
  * @param param0
78
173
  * @returns
79
174
  */
@@ -88,6 +183,50 @@ export declare const useDatetimeVariable: ({ operator, schema, noDisabled, targe
88
183
  value: string;
89
184
  label: string;
90
185
  disabled: boolean;
186
+ operators: ({
187
+ label: string;
188
+ value: string;
189
+ selected: boolean;
190
+ schema: {
191
+ 'x-component': string;
192
+ 'x-component-props': {
193
+ isRange: boolean;
194
+ };
195
+ };
196
+ onlyFilterAction: boolean;
197
+ noValue?: undefined;
198
+ } | {
199
+ label: string;
200
+ value: string;
201
+ schema: {
202
+ 'x-component': string;
203
+ 'x-component-props': {
204
+ isRange: boolean;
205
+ };
206
+ };
207
+ onlyFilterAction: boolean;
208
+ selected?: undefined;
209
+ noValue?: undefined;
210
+ } | {
211
+ label: string;
212
+ value: string;
213
+ schema: {
214
+ 'x-component': string;
215
+ 'x-component-props': {
216
+ isRange: boolean;
217
+ };
218
+ };
219
+ selected?: undefined;
220
+ onlyFilterAction?: undefined;
221
+ noValue?: undefined;
222
+ } | {
223
+ label: string;
224
+ value: string;
225
+ noValue: boolean;
226
+ selected?: undefined;
227
+ schema?: undefined;
228
+ onlyFilterAction?: undefined;
229
+ })[];
91
230
  }[];
92
231
  };
93
232
  datetimeCtx: {
@@ -0,0 +1,118 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Schema } from '@formily/json-schema';
10
+ interface Props {
11
+ operator?: {
12
+ value: string;
13
+ };
14
+ schema?: any;
15
+ /**
16
+ * 不需要禁用选项,一般会在表达式中使用
17
+ */
18
+ noDisabled?: boolean;
19
+ /** 消费变量值的字段 */
20
+ targetFieldSchema?: Schema;
21
+ dateOnly?: boolean;
22
+ utc?: boolean;
23
+ }
24
+ /**
25
+ * 变量:`日期变量`的上下文
26
+ * @returns
27
+ */
28
+ export declare const useExactDateVariableContext: () => {
29
+ exactDateTimeCtx: {
30
+ nowUtc: () => string;
31
+ nowLocal: () => string;
32
+ todayUtc: () => string;
33
+ todayLocal: () => string;
34
+ todayDate: () => string;
35
+ yesterdayUtc: () => string;
36
+ yesterdayLocal: () => string;
37
+ yesterdayDate: () => string;
38
+ tomorrowUtc: () => string;
39
+ tomorrowLocal: () => string;
40
+ tomorrowDate: () => string;
41
+ };
42
+ };
43
+ /**
44
+ * 变量:`日期时刻变量`,主要用于赋值的场景
45
+ * @param param0
46
+ * @returns
47
+ */
48
+ export declare const useExactDateVariable: ({ schema, targetFieldSchema }?: Props) => {
49
+ exactDateTimeSettings: {
50
+ label: string;
51
+ value: string;
52
+ key: string;
53
+ children: {
54
+ key: string;
55
+ value: string;
56
+ label: string;
57
+ operators: ({
58
+ label: string;
59
+ value: string;
60
+ selected: boolean;
61
+ schema: {
62
+ 'x-component': string;
63
+ 'x-component-props': {
64
+ isRange: boolean;
65
+ };
66
+ };
67
+ onlyFilterAction: boolean;
68
+ noValue?: undefined;
69
+ } | {
70
+ label: string;
71
+ value: string;
72
+ schema: {
73
+ 'x-component': string;
74
+ 'x-component-props': {
75
+ isRange: boolean;
76
+ };
77
+ };
78
+ onlyFilterAction: boolean;
79
+ selected?: undefined;
80
+ noValue?: undefined;
81
+ } | {
82
+ label: string;
83
+ value: string;
84
+ schema: {
85
+ 'x-component': string;
86
+ 'x-component-props': {
87
+ isRange: boolean;
88
+ };
89
+ };
90
+ selected?: undefined;
91
+ onlyFilterAction?: undefined;
92
+ noValue?: undefined;
93
+ } | {
94
+ label: string;
95
+ value: string;
96
+ noValue: boolean;
97
+ selected?: undefined;
98
+ schema?: undefined;
99
+ onlyFilterAction?: undefined;
100
+ })[];
101
+ }[];
102
+ };
103
+ exactDateTimeCtx: {
104
+ nowUtc: () => string;
105
+ nowLocal: () => string;
106
+ todayUtc: () => string;
107
+ todayLocal: () => string;
108
+ todayDate: () => string;
109
+ yesterdayUtc: () => string;
110
+ yesterdayLocal: () => string;
111
+ yesterdayDate: () => string;
112
+ tomorrowUtc: () => string;
113
+ tomorrowLocal: () => string;
114
+ tomorrowDate: () => string;
115
+ };
116
+ shouldDisplayExactDate: boolean;
117
+ };
118
+ export {};
@@ -41,5 +41,5 @@ export declare const useCurrentRoleVariable: ({ collectionField, uiSchema, noDis
41
41
  /** 变量配置项 */
42
42
  currentRoleSettings: import("../type").Option;
43
43
  /** 变量的值 */
44
- currentRoleCtx: string;
44
+ currentRoleCtx: any;
45
45
  };
@@ -40,12 +40,54 @@ export declare const useVariableOptions: ({ collectionField, form, uiSchema, ope
40
40
  label: string;
41
41
  value: string;
42
42
  key: string;
43
- disabled: boolean;
44
43
  children: {
45
44
  key: string;
46
45
  value: string;
47
46
  label: string;
48
- disabled: boolean;
47
+ operators: ({
48
+ label: string;
49
+ value: string;
50
+ selected: boolean;
51
+ schema: {
52
+ 'x-component': string; /** 消费变量值的字段 */
53
+ 'x-component-props': {
54
+ isRange: boolean;
55
+ };
56
+ };
57
+ onlyFilterAction: boolean;
58
+ noValue?: undefined;
59
+ } | {
60
+ label: string;
61
+ value: string;
62
+ schema: {
63
+ 'x-component': string;
64
+ 'x-component-props': {
65
+ isRange: boolean;
66
+ };
67
+ };
68
+ onlyFilterAction: boolean;
69
+ selected?: undefined;
70
+ noValue?: undefined;
71
+ } | {
72
+ label: string;
73
+ value: string;
74
+ schema: {
75
+ 'x-component': string;
76
+ 'x-component-props': {
77
+ isRange: boolean;
78
+ };
79
+ };
80
+ selected?: undefined;
81
+ onlyFilterAction?: undefined;
82
+ noValue?: undefined;
83
+ } | {
84
+ label: string;
85
+ value: string;
86
+ noValue: boolean;
87
+ selected?: undefined;
88
+ schema?: undefined;
89
+ onlyFilterAction?: undefined;
90
+ })[];
49
91
  }[];
50
92
  })[];
51
93
  export {};
@@ -30,3 +30,5 @@ export { default as useParseDataScopeFilter } from './hooks/useParseDataScopeFil
30
30
  export * from './isPatternDisabled';
31
31
  export { SchemaSettingsPlugin } from './SchemaSettingsPlugin';
32
32
  export * from './VariableInput';
33
+ export { replaceVariables } from './LinkageRules/bindLinkageRulesToFiled';
34
+ export * from './LinkageRules/type';