@nocobase/client 1.7.0-beta.8 → 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.
- package/.dumirc.ts +4 -0
- package/es/acl/ACLProvider.d.ts +1 -0
- package/es/application/Application.d.ts +14 -0
- package/es/application/CustomRouterContextProvider.d.ts +5 -2
- package/es/application/RouterManager.d.ts +4 -1
- package/es/application/components/defaultComponents.d.ts +3 -1
- package/es/application/hooks/index.d.ts +1 -0
- package/es/application/schema-initializer/components/SchemaInitializerItemSearchFields.d.ts +1 -1
- package/es/block-provider/TemplateBlockProvider.d.ts +2 -0
- package/es/block-provider/hooks/index.d.ts +4 -0
- package/es/collection-manager/interfaces/createdAt.d.ts +9 -0
- package/es/collection-manager/interfaces/dateOnly.d.ts +9 -0
- package/es/collection-manager/interfaces/datetime.d.ts +9 -0
- package/es/collection-manager/interfaces/datetimeNoTz.d.ts +9 -0
- package/es/collection-manager/interfaces/input.d.ts +6 -0
- package/es/collection-manager/interfaces/password.d.ts +18 -0
- package/es/collection-manager/interfaces/properties/operators.d.ts +12 -10
- package/es/collection-manager/interfaces/radioGroup.d.ts +3 -10
- package/es/collection-manager/interfaces/select.d.ts +3 -10
- package/es/collection-manager/interfaces/textarea.d.ts +6 -0
- package/es/collection-manager/interfaces/unixTimestamp.d.ts +9 -0
- package/es/collection-manager/interfaces/updatedAt.d.ts +9 -0
- package/es/collection-manager/mixins/InheritanceCollectionMixin.d.ts +6 -0
- package/es/{variables/utils/cacheLazyLoadedValues.d.ts → common/AppNotFound.d.ts} +2 -2
- package/es/common/SelectWithTitle.d.ts +1 -1
- package/es/common/getVariableValue.d.ts +9 -0
- package/es/common/index.d.ts +2 -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/data-source/data-source/DataSourceManagerProvider.d.ts +1 -1
- package/es/filter-provider/FilterProvider.d.ts +4 -0
- package/es/filter-provider/highlightBlock.d.ts +9 -0
- package/es/flag-provider/FlagProvider.d.ts +2 -0
- package/es/formily/NocoBaseRecursionField.d.ts +1 -0
- package/es/global-theme/type.d.ts +3 -0
- package/es/i18n/constant.d.ts +10 -0
- package/es/i18n/index.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +53642 -51540
- package/es/modules/actions/view-edit-popup/PopupActionInitializer.d.ts +2 -1
- package/es/modules/actions/view-edit-popup/customizePopupActionSettings.d.ts +0 -8
- package/es/modules/blocks/BlockLinkageRuleProvider.d.ts +9 -0
- package/es/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.d.ts +2 -0
- package/es/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.d.ts +1 -0
- package/es/modules/blocks/data-blocks/table/createTableBlockUISchema.d.ts +0 -1
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.d.ts +1 -0
- package/es/modules/blocks/utils.d.ts +10 -0
- package/es/modules/fields/component/FileManager/fileManagerComponentFieldSettings.d.ts +8 -0
- package/es/modules/fields/component/Picker/recordPickerComponentFieldSettings.d.ts +1 -0
- package/es/modules/fields/component/Select/selectComponentFieldSettings.d.ts +1 -0
- package/es/nocobase-buildin-plugin/index.d.ts +0 -2
- package/es/route-switch/antd/admin-layout/KeepAlive.d.ts +1 -0
- package/es/route-switch/antd/admin-layout/index.d.ts +7 -2
- package/es/schema-component/antd/action/Action.Designer.d.ts +1 -0
- package/es/schema-component/antd/action/Action.Modal.d.ts +1 -0
- package/es/schema-component/antd/action/hooks/useGetAfterSuccessVariablesOptions.d.ts +13 -0
- package/es/schema-component/antd/action/index.d.ts +1 -0
- package/es/schema-component/antd/action/types.d.ts +2 -0
- package/es/schema-component/antd/action/utils.d.ts +3 -1
- package/es/schema-component/antd/association-field/InternalViewer.d.ts +2 -0
- package/es/schema-component/antd/cascader/Cascader.d.ts +20 -1
- package/es/schema-component/antd/date-picker/DatePicker.d.ts +6 -12
- package/es/schema-component/antd/date-picker/util.d.ts +13 -0
- package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
- package/es/schema-component/antd/index.d.ts +1 -0
- package/es/schema-component/antd/input/Input.d.ts +4 -1
- package/es/schema-component/antd/linkageFilter/DynamicComponent.d.ts +36 -0
- package/es/schema-component/antd/linkageFilter/FilterGroup.d.ts +10 -0
- package/es/schema-component/antd/linkageFilter/FilterItems.d.ts +10 -0
- package/es/schema-component/antd/linkageFilter/LinkageFilter.d.ts +9 -0
- package/es/schema-component/antd/linkageFilter/LinkageFilterItem.d.ts +10 -0
- package/es/schema-component/antd/linkageFilter/context.d.ts +25 -0
- package/es/schema-component/antd/linkageFilter/index.d.ts +9 -0
- package/es/schema-component/antd/linkageFilter/useOperators.d.ts +13 -0
- package/es/schema-component/antd/linkageFilter/useValues.d.ts +25 -0
- package/es/schema-component/antd/list/index.d.ts +1 -0
- package/es/schema-component/antd/markdown/Markdown.Void.d.ts +5 -1
- package/es/schema-component/antd/page/AllDataBlocksProvider.d.ts +17 -0
- package/es/schema-component/antd/page/PopupSettingsProvider.d.ts +2 -1
- package/es/schema-component/antd/page/index.d.ts +1 -0
- package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
- package/es/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
- package/es/schema-component/antd/variable/Input.d.ts +2 -0
- package/es/schema-component/antd/variable/TextArea.d.ts +14 -1
- package/es/schema-component/antd/variable/Variable.d.ts +1 -1
- package/es/schema-component/common/date-filter-dynamic-component/DateFilterDynamicComponent.d.ts +10 -0
- package/es/schema-component/common/index.d.ts +1 -0
- package/es/schema-component/common/utils/uitls.d.ts +2 -5
- package/es/schema-component/core/DesignableSwitch.d.ts +4 -2
- package/es/schema-component/core/SchemaComponent.d.ts +1 -0
- package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
- package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
- package/es/schema-initializer/hooks/useTemplateBlockNotifier.d.ts +14 -0
- package/es/schema-initializer/index.d.ts +1 -1
- package/es/schema-initializer/utils.d.ts +2 -22
- package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +1 -1
- package/es/schema-settings/LinkageRules/bindLinkageRulesToFiled.d.ts +10 -1
- package/es/schema-settings/LinkageRules/components/BlockLinkageRuleAction.d.ts +10 -0
- package/es/schema-settings/LinkageRules/type.d.ts +3 -1
- package/es/schema-settings/SchemaSettings.d.ts +4 -0
- package/es/schema-settings/VariableInput/VariableInput.d.ts +4 -0
- package/es/schema-settings/VariableInput/hooks/index.d.ts +2 -0
- package/es/schema-settings/VariableInput/hooks/useBaseVariable.d.ts +3 -1
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.d.ts +2 -2
- package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +142 -3
- package/es/schema-settings/VariableInput/hooks/useExactDateVariable.d.ts +118 -0
- package/es/schema-settings/VariableInput/hooks/useRoleVariable.d.ts +1 -1
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +44 -2
- package/es/schema-settings/index.d.ts +2 -0
- package/es/user/CurrentUserSettingsMenuProvider.d.ts +1 -1
- package/lib/index.js +588 -509
- package/lib/locale/de-DE.js +9 -2
- package/lib/locale/en-US.js +12 -2
- package/lib/locale/es-ES.js +12 -2
- package/lib/locale/fr-FR.js +12 -2
- package/lib/locale/it-IT.js +9 -2
- package/lib/locale/ja-JP.js +12 -2
- package/lib/locale/ko-KR.js +12 -2
- package/lib/locale/nl-NL.js +182 -7
- package/lib/locale/pt-BR.js +12 -2
- package/lib/locale/ru-RU.js +12 -2
- package/lib/locale/tr-TR.js +12 -2
- package/lib/locale/uk-UA.js +12 -2
- package/lib/locale/zh-CN.js +50 -6
- package/lib/locale/zh-TW.js +12 -2
- package/package.json +9 -10
- /package/es/schema-settings/LinkageRules/{FieldStyleLinkageRuleAction.d.ts → components/FieldStyleLinkageRuleAction.d.ts} +0 -0
package/.dumirc.ts
CHANGED
package/es/acl/ACLProvider.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const ACLContext: React.Context<any>;
|
|
|
12
12
|
export declare const ACLProvider: (props: any) => React.JSX.Element;
|
|
13
13
|
export declare const ACLRolesCheckProvider: (props: any) => React.JSX.Element;
|
|
14
14
|
export declare const useRoleRecheck: () => () => void;
|
|
15
|
+
export declare const useCurrentRoleMode: () => any;
|
|
15
16
|
export declare const useACLContext: () => any;
|
|
16
17
|
export declare const ACLActionParamsContext: React.Context<any>;
|
|
17
18
|
export declare const ACLCustomContext: React.Context<any>;
|
|
@@ -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;
|
|
@@ -18,6 +18,11 @@ export declare const CurrentPageUidContext: React.Context<string>;
|
|
|
18
18
|
* @internal
|
|
19
19
|
*/
|
|
20
20
|
export declare const CurrentTabUidContext: React.Context<string>;
|
|
21
|
+
export declare const IsSubPageClosedByPageMenuContext: React.Context<{
|
|
22
|
+
isSubPageClosedByPageMenu: () => boolean;
|
|
23
|
+
setFieldSchema: React.Dispatch<React.SetStateAction<Schema>>;
|
|
24
|
+
reset: () => void;
|
|
25
|
+
}>;
|
|
21
26
|
export declare const IsSubPageClosedByPageMenuProvider: FC;
|
|
22
27
|
export declare const CurrentPageUidProvider: FC;
|
|
23
28
|
export declare const CurrentTabUidProvider: FC;
|
|
@@ -34,8 +39,6 @@ export declare const useLocationNoUpdate: () => Location<any>;
|
|
|
34
39
|
export declare const useLocationSearch: () => string;
|
|
35
40
|
export declare const useIsAdminPage: () => boolean;
|
|
36
41
|
export declare const useCurrentPageUid: () => string;
|
|
37
|
-
export declare const useMatchAdmin: () => boolean;
|
|
38
|
-
export declare const useMatchAdminName: () => boolean;
|
|
39
42
|
export declare const useIsInSettingsPage: () => boolean;
|
|
40
43
|
/**
|
|
41
44
|
* @internal
|
|
@@ -25,13 +25,14 @@ export type RouterOptions = (HashRouterOptions | BrowserRouterOptions | MemoryRo
|
|
|
25
25
|
export type ComponentTypeAndString<T = any> = ComponentType<T> | string;
|
|
26
26
|
export interface RouteType extends Omit<RouteObject, 'children' | 'Component'> {
|
|
27
27
|
Component?: ComponentTypeAndString;
|
|
28
|
+
skipAuthCheck?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export type RenderComponentType = (Component: ComponentTypeAndString, props?: any) => React.ReactNode;
|
|
30
31
|
export declare class RouterManager {
|
|
31
32
|
protected routes: Record<string, RouteType>;
|
|
32
33
|
protected options: RouterOptions;
|
|
33
34
|
app: Application;
|
|
34
|
-
|
|
35
|
+
router: any;
|
|
35
36
|
get basename(): any;
|
|
36
37
|
get state(): any;
|
|
37
38
|
get navigate(): any;
|
|
@@ -44,6 +45,8 @@ export declare class RouterManager {
|
|
|
44
45
|
setType(type: RouterOptions['type']): void;
|
|
45
46
|
getBasename(): string;
|
|
46
47
|
setBasename(basename: string): void;
|
|
48
|
+
matchRoutes(pathname: string): import("@remix-run/router").AgnosticRouteMatch<string, RouteType>[];
|
|
49
|
+
isSkippedAuthCheckRoute(pathname: string): boolean;
|
|
47
50
|
/**
|
|
48
51
|
* @internal
|
|
49
52
|
*/
|
|
@@ -13,6 +13,8 @@ import { FC } from 'react';
|
|
|
13
13
|
export declare const useTemplateBlockContext: () => {
|
|
14
14
|
templateFinished?: boolean;
|
|
15
15
|
onTemplateSuccess?: Function;
|
|
16
|
+
isBlockTemplate?: () => boolean;
|
|
17
|
+
setIsBlockTemplate?: (value: boolean) => void;
|
|
16
18
|
};
|
|
17
19
|
declare const TemplateBlockProvider: FC<{
|
|
18
20
|
onTemplateLoaded?: () => void;
|
|
@@ -85,6 +85,7 @@ export declare const useDetailsPaginationProps: () => {
|
|
|
85
85
|
current: any;
|
|
86
86
|
pageSize: number;
|
|
87
87
|
showSizeChanger: boolean;
|
|
88
|
+
align: string;
|
|
88
89
|
onChange(page: any): Promise<void>;
|
|
89
90
|
style: {
|
|
90
91
|
marginTop: number;
|
|
@@ -102,6 +103,7 @@ export declare const useDetailsPaginationProps: () => {
|
|
|
102
103
|
total: any;
|
|
103
104
|
pageSize: number;
|
|
104
105
|
showSizeChanger: boolean;
|
|
106
|
+
align: string;
|
|
105
107
|
onChange(page: any): Promise<void>;
|
|
106
108
|
style: {
|
|
107
109
|
marginTop: number;
|
|
@@ -131,6 +133,7 @@ export declare const useAssociationFilterBlockProps: () => {
|
|
|
131
133
|
run?: undefined;
|
|
132
134
|
valueKey?: undefined;
|
|
133
135
|
labelKey?: undefined;
|
|
136
|
+
dataScopeFilter?: undefined;
|
|
134
137
|
} | {
|
|
135
138
|
/** 渲染 Collapse 的列表数据 */
|
|
136
139
|
list: any;
|
|
@@ -140,6 +143,7 @@ export declare const useAssociationFilterBlockProps: () => {
|
|
|
140
143
|
run: any;
|
|
141
144
|
valueKey: any;
|
|
142
145
|
labelKey: any;
|
|
146
|
+
dataScopeFilter: {};
|
|
143
147
|
};
|
|
144
148
|
export declare function getAssociationPath(str: any): any;
|
|
145
149
|
export declare const getAppends: ({ schema, prefix: defaultPrefix, updateAssociationValues, appends, getCollectionJoinField, getCollection, dataSource, }: {
|
|
@@ -53,6 +53,9 @@ export declare class CreatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
53
53
|
selected: boolean;
|
|
54
54
|
schema: {
|
|
55
55
|
'x-component': string;
|
|
56
|
+
'x-component-props': {
|
|
57
|
+
isRange: boolean;
|
|
58
|
+
};
|
|
56
59
|
};
|
|
57
60
|
onlyFilterAction: boolean;
|
|
58
61
|
noValue?: undefined;
|
|
@@ -61,6 +64,9 @@ export declare class CreatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
61
64
|
value: string;
|
|
62
65
|
schema: {
|
|
63
66
|
'x-component': string;
|
|
67
|
+
'x-component-props': {
|
|
68
|
+
isRange: boolean;
|
|
69
|
+
};
|
|
64
70
|
};
|
|
65
71
|
onlyFilterAction: boolean;
|
|
66
72
|
selected?: undefined;
|
|
@@ -70,6 +76,9 @@ export declare class CreatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
70
76
|
value: string;
|
|
71
77
|
schema: {
|
|
72
78
|
'x-component': string;
|
|
79
|
+
'x-component-props': {
|
|
80
|
+
isRange: boolean;
|
|
81
|
+
};
|
|
73
82
|
};
|
|
74
83
|
selected?: undefined;
|
|
75
84
|
onlyFilterAction?: undefined;
|
|
@@ -58,6 +58,9 @@ export declare class DateFieldInterface extends CollectionFieldInterface {
|
|
|
58
58
|
selected: boolean;
|
|
59
59
|
schema: {
|
|
60
60
|
'x-component': string;
|
|
61
|
+
'x-component-props': {
|
|
62
|
+
isRange: boolean;
|
|
63
|
+
};
|
|
61
64
|
};
|
|
62
65
|
onlyFilterAction: boolean;
|
|
63
66
|
noValue?: undefined;
|
|
@@ -66,6 +69,9 @@ export declare class DateFieldInterface extends CollectionFieldInterface {
|
|
|
66
69
|
value: string;
|
|
67
70
|
schema: {
|
|
68
71
|
'x-component': string;
|
|
72
|
+
'x-component-props': {
|
|
73
|
+
isRange: boolean;
|
|
74
|
+
};
|
|
69
75
|
};
|
|
70
76
|
onlyFilterAction: boolean;
|
|
71
77
|
selected?: undefined;
|
|
@@ -75,6 +81,9 @@ export declare class DateFieldInterface extends CollectionFieldInterface {
|
|
|
75
81
|
value: string;
|
|
76
82
|
schema: {
|
|
77
83
|
'x-component': string;
|
|
84
|
+
'x-component-props': {
|
|
85
|
+
isRange: boolean;
|
|
86
|
+
};
|
|
78
87
|
};
|
|
79
88
|
selected?: undefined;
|
|
80
89
|
onlyFilterAction?: undefined;
|
|
@@ -77,6 +77,9 @@ export declare class DatetimeFieldInterface extends CollectionFieldInterface {
|
|
|
77
77
|
selected: boolean;
|
|
78
78
|
schema: {
|
|
79
79
|
'x-component': string;
|
|
80
|
+
'x-component-props': {
|
|
81
|
+
isRange: boolean;
|
|
82
|
+
};
|
|
80
83
|
};
|
|
81
84
|
onlyFilterAction: boolean;
|
|
82
85
|
noValue?: undefined;
|
|
@@ -85,6 +88,9 @@ export declare class DatetimeFieldInterface extends CollectionFieldInterface {
|
|
|
85
88
|
value: string;
|
|
86
89
|
schema: {
|
|
87
90
|
'x-component': string;
|
|
91
|
+
'x-component-props': {
|
|
92
|
+
isRange: boolean;
|
|
93
|
+
};
|
|
88
94
|
};
|
|
89
95
|
onlyFilterAction: boolean;
|
|
90
96
|
selected?: undefined;
|
|
@@ -94,6 +100,9 @@ export declare class DatetimeFieldInterface extends CollectionFieldInterface {
|
|
|
94
100
|
value: string;
|
|
95
101
|
schema: {
|
|
96
102
|
'x-component': string;
|
|
103
|
+
'x-component-props': {
|
|
104
|
+
isRange: boolean;
|
|
105
|
+
};
|
|
97
106
|
};
|
|
98
107
|
selected?: undefined;
|
|
99
108
|
onlyFilterAction?: undefined;
|
|
@@ -77,6 +77,9 @@ export declare class DatetimeNoTzFieldInterface extends CollectionFieldInterface
|
|
|
77
77
|
selected: boolean;
|
|
78
78
|
schema: {
|
|
79
79
|
'x-component': string;
|
|
80
|
+
'x-component-props': {
|
|
81
|
+
isRange: boolean;
|
|
82
|
+
};
|
|
80
83
|
};
|
|
81
84
|
onlyFilterAction: boolean;
|
|
82
85
|
noValue?: undefined;
|
|
@@ -85,6 +88,9 @@ export declare class DatetimeNoTzFieldInterface extends CollectionFieldInterface
|
|
|
85
88
|
value: string;
|
|
86
89
|
schema: {
|
|
87
90
|
'x-component': string;
|
|
91
|
+
'x-component-props': {
|
|
92
|
+
isRange: boolean;
|
|
93
|
+
};
|
|
88
94
|
};
|
|
89
95
|
onlyFilterAction: boolean;
|
|
90
96
|
selected?: undefined;
|
|
@@ -94,6 +100,9 @@ export declare class DatetimeNoTzFieldInterface extends CollectionFieldInterface
|
|
|
94
100
|
value: string;
|
|
95
101
|
schema: {
|
|
96
102
|
'x-component': string;
|
|
103
|
+
'x-component-props': {
|
|
104
|
+
isRange: boolean;
|
|
105
|
+
};
|
|
97
106
|
};
|
|
98
107
|
selected?: undefined;
|
|
99
108
|
onlyFilterAction?: undefined;
|
|
@@ -26,6 +26,12 @@ export declare class InputFieldInterface extends CollectionFieldInterface {
|
|
|
26
26
|
availableTypes: string[];
|
|
27
27
|
hasDefaultValue: boolean;
|
|
28
28
|
properties: {
|
|
29
|
+
trim: {
|
|
30
|
+
type: string;
|
|
31
|
+
'x-content': string;
|
|
32
|
+
'x-decorator': string;
|
|
33
|
+
'x-component': string;
|
|
34
|
+
};
|
|
29
35
|
layout: {
|
|
30
36
|
type: string;
|
|
31
37
|
title: string;
|
|
@@ -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
|
}
|
|
@@ -66,6 +66,9 @@ export declare const datetime: ({
|
|
|
66
66
|
selected: boolean;
|
|
67
67
|
schema: {
|
|
68
68
|
'x-component': string;
|
|
69
|
+
'x-component-props': {
|
|
70
|
+
isRange: boolean;
|
|
71
|
+
};
|
|
69
72
|
};
|
|
70
73
|
onlyFilterAction: boolean;
|
|
71
74
|
noValue?: undefined;
|
|
@@ -74,6 +77,9 @@ export declare const datetime: ({
|
|
|
74
77
|
value: string;
|
|
75
78
|
schema: {
|
|
76
79
|
'x-component': string;
|
|
80
|
+
'x-component-props': {
|
|
81
|
+
isRange: boolean;
|
|
82
|
+
};
|
|
77
83
|
};
|
|
78
84
|
onlyFilterAction: boolean;
|
|
79
85
|
selected?: undefined;
|
|
@@ -83,6 +89,9 @@ export declare const datetime: ({
|
|
|
83
89
|
value: string;
|
|
84
90
|
schema: {
|
|
85
91
|
'x-component': string;
|
|
92
|
+
'x-component-props': {
|
|
93
|
+
isRange: boolean;
|
|
94
|
+
};
|
|
86
95
|
};
|
|
87
96
|
selected?: undefined;
|
|
88
97
|
onlyFilterAction?: undefined;
|
|
@@ -133,17 +142,10 @@ export declare const enumType: ({
|
|
|
133
142
|
selected: boolean;
|
|
134
143
|
schema: {
|
|
135
144
|
'x-component': string;
|
|
136
|
-
'x-component-props'
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
} | {
|
|
140
|
-
label: string;
|
|
141
|
-
value: string;
|
|
142
|
-
schema: {
|
|
143
|
-
'x-component': string;
|
|
144
|
-
'x-component-props'?: undefined;
|
|
145
|
+
'x-component-props': {
|
|
146
|
+
mode: any;
|
|
147
|
+
};
|
|
145
148
|
};
|
|
146
|
-
selected?: undefined;
|
|
147
149
|
noValue?: undefined;
|
|
148
150
|
} | {
|
|
149
151
|
label: string;
|
|
@@ -106,17 +106,10 @@ export declare class RadioGroupFieldInterface extends CollectionFieldInterface {
|
|
|
106
106
|
selected: boolean;
|
|
107
107
|
schema: {
|
|
108
108
|
'x-component': string;
|
|
109
|
-
'x-component-props'
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
} | {
|
|
113
|
-
label: string;
|
|
114
|
-
value: string;
|
|
115
|
-
schema: {
|
|
116
|
-
'x-component': string;
|
|
117
|
-
'x-component-props'?: undefined;
|
|
109
|
+
'x-component-props': {
|
|
110
|
+
mode: any;
|
|
111
|
+
};
|
|
118
112
|
};
|
|
119
|
-
selected?: undefined;
|
|
120
113
|
noValue?: undefined;
|
|
121
114
|
} | {
|
|
122
115
|
label: string;
|
|
@@ -108,17 +108,10 @@ export declare class SelectFieldInterface extends CollectionFieldInterface {
|
|
|
108
108
|
selected: boolean;
|
|
109
109
|
schema: {
|
|
110
110
|
'x-component': string;
|
|
111
|
-
'x-component-props'
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
} | {
|
|
115
|
-
label: string;
|
|
116
|
-
value: string;
|
|
117
|
-
schema: {
|
|
118
|
-
'x-component': string;
|
|
119
|
-
'x-component-props'?: undefined;
|
|
111
|
+
'x-component-props': {
|
|
112
|
+
mode: any;
|
|
113
|
+
};
|
|
120
114
|
};
|
|
121
|
-
selected?: undefined;
|
|
122
115
|
noValue?: undefined;
|
|
123
116
|
} | {
|
|
124
117
|
label: string;
|
|
@@ -26,6 +26,12 @@ export declare class TextareaFieldInterface extends CollectionFieldInterface {
|
|
|
26
26
|
hasDefaultValue: boolean;
|
|
27
27
|
titleUsable: boolean;
|
|
28
28
|
properties: {
|
|
29
|
+
trim: {
|
|
30
|
+
type: string;
|
|
31
|
+
'x-content': string;
|
|
32
|
+
'x-decorator': string;
|
|
33
|
+
'x-component': string;
|
|
34
|
+
};
|
|
29
35
|
'uiSchema.title': {
|
|
30
36
|
type: string;
|
|
31
37
|
title: string;
|
|
@@ -79,6 +79,9 @@ export declare class UnixTimestampFieldInterface extends CollectionFieldInterfac
|
|
|
79
79
|
selected: boolean;
|
|
80
80
|
schema: {
|
|
81
81
|
'x-component': string;
|
|
82
|
+
'x-component-props': {
|
|
83
|
+
isRange: boolean;
|
|
84
|
+
};
|
|
82
85
|
};
|
|
83
86
|
onlyFilterAction: boolean;
|
|
84
87
|
noValue?: undefined;
|
|
@@ -87,6 +90,9 @@ export declare class UnixTimestampFieldInterface extends CollectionFieldInterfac
|
|
|
87
90
|
value: string;
|
|
88
91
|
schema: {
|
|
89
92
|
'x-component': string;
|
|
93
|
+
'x-component-props': {
|
|
94
|
+
isRange: boolean;
|
|
95
|
+
};
|
|
90
96
|
};
|
|
91
97
|
onlyFilterAction: boolean;
|
|
92
98
|
selected?: undefined;
|
|
@@ -96,6 +102,9 @@ export declare class UnixTimestampFieldInterface extends CollectionFieldInterfac
|
|
|
96
102
|
value: string;
|
|
97
103
|
schema: {
|
|
98
104
|
'x-component': string;
|
|
105
|
+
'x-component-props': {
|
|
106
|
+
isRange: boolean;
|
|
107
|
+
};
|
|
99
108
|
};
|
|
100
109
|
selected?: undefined;
|
|
101
110
|
onlyFilterAction?: undefined;
|
|
@@ -53,6 +53,9 @@ export declare class UpdatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
53
53
|
selected: boolean;
|
|
54
54
|
schema: {
|
|
55
55
|
'x-component': string;
|
|
56
|
+
'x-component-props': {
|
|
57
|
+
isRange: boolean;
|
|
58
|
+
};
|
|
56
59
|
};
|
|
57
60
|
onlyFilterAction: boolean;
|
|
58
61
|
noValue?: undefined;
|
|
@@ -61,6 +64,9 @@ export declare class UpdatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
61
64
|
value: string;
|
|
62
65
|
schema: {
|
|
63
66
|
'x-component': string;
|
|
67
|
+
'x-component-props': {
|
|
68
|
+
isRange: boolean;
|
|
69
|
+
};
|
|
64
70
|
};
|
|
65
71
|
onlyFilterAction: boolean;
|
|
66
72
|
selected?: undefined;
|
|
@@ -70,6 +76,9 @@ export declare class UpdatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
70
76
|
value: string;
|
|
71
77
|
schema: {
|
|
72
78
|
'x-component': string;
|
|
79
|
+
'x-component-props': {
|
|
80
|
+
isRange: boolean;
|
|
81
|
+
};
|
|
73
82
|
};
|
|
74
83
|
selected?: undefined;
|
|
75
84
|
onlyFilterAction?: undefined;
|
|
@@ -25,6 +25,7 @@ export declare class InheritanceCollectionMixin extends Collection {
|
|
|
25
25
|
protected parentCollectionFields: Record<string, CollectionFieldOptions[]>;
|
|
26
26
|
protected allCollectionsInheritChain: string[];
|
|
27
27
|
protected inheritCollectionsChain: string[];
|
|
28
|
+
protected inheritChain: string[];
|
|
28
29
|
protected foreignKeyFields: CollectionFieldOptions[];
|
|
29
30
|
getParentCollectionsName(): string[];
|
|
30
31
|
getParentCollections(): Collection[];
|
|
@@ -36,6 +37,11 @@ export declare class InheritanceCollectionMixin extends Collection {
|
|
|
36
37
|
getParentCollectionFields(parentCollectionName: string): CollectionFieldOptions[];
|
|
37
38
|
getAllCollectionsInheritChain(): string[];
|
|
38
39
|
getInheritCollectionsChain(): string[];
|
|
40
|
+
/**
|
|
41
|
+
* 获取所有祖先数据表和后代数据表,不包括兄弟表。用于下面这些地方:
|
|
42
|
+
* - 筛选区块链接数据区块时使用
|
|
43
|
+
*/
|
|
44
|
+
getInheritChain(): string[];
|
|
39
45
|
getAllFields(predicate?: GetCollectionFieldPredicate): CollectionFieldOptions[];
|
|
40
46
|
getForeignKeyFields(): CollectionFieldOptions[];
|
|
41
47
|
}
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export declare const AppNotFound: () => React.JSX.Element;
|
|
@@ -14,4 +14,4 @@ export interface SelectWithTitleProps {
|
|
|
14
14
|
fieldNames?: any;
|
|
15
15
|
onChange?: (...args: any[]) => void;
|
|
16
16
|
}
|
|
17
|
-
export declare function SelectWithTitle({ title, defaultValue, onChange, options, fieldNames }: SelectWithTitleProps): React.JSX.Element;
|
|
17
|
+
export declare function SelectWithTitle({ title, defaultValue, onChange, options, fieldNames, ...others }: SelectWithTitleProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export declare const getVariableValue: (text: string, scopes: any) => Promise<any>;
|
package/es/common/index.d.ts
CHANGED
|
@@ -6,5 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
+
export * from './AppNotFound';
|
|
9
10
|
export * from './SelectWithTitle';
|
|
10
11
|
export * from './useFieldComponentName';
|
|
12
|
+
export * from './getVariableValue';
|
|
@@ -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, {
|
|
@@ -16,7 +16,7 @@ export interface DataSourceManagerProviderProps {
|
|
|
16
16
|
export declare const DataSourceManagerProvider: FC<DataSourceManagerProviderProps>;
|
|
17
17
|
export declare function useDataSourceManager(): DataSourceManager;
|
|
18
18
|
/**
|
|
19
|
-
* 获取当前 collection 继承链路上的所有 collection
|
|
19
|
+
* 获取当前 collection 继承链路上的所有 collection(不包括兄弟表)
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
22
|
export declare function useAllCollectionsInheritChainGetter(): {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const highlightBlock: (clonedBlockDom: HTMLElement, boxRect: DOMRect) => void;
|
|
2
|
+
export declare const unhighlightBlock: () => void;
|
|
3
|
+
export declare const startScrollEndTracking: (dom: HTMLElement & {
|
|
4
|
+
_prevRect?: DOMRect;
|
|
5
|
+
_timer?: any;
|
|
6
|
+
}, callback: () => void) => void;
|
|
7
|
+
export declare const stopScrollEndTracking: (dom: HTMLElement & {
|
|
8
|
+
_timer?: any;
|
|
9
|
+
}) => void;
|
|
@@ -33,6 +33,8 @@ export interface FlagProviderProps {
|
|
|
33
33
|
* @default true
|
|
34
34
|
*/
|
|
35
35
|
isVariableParsedInOtherContext?: boolean;
|
|
36
|
+
collectionField?: any;
|
|
37
|
+
children?: any;
|
|
36
38
|
}
|
|
37
39
|
export declare const FlagContext: React.Context<Omit<FlagProviderProps, "children">>;
|
|
38
40
|
export declare const FlagProvider: FC<FlagProviderProps>;
|
|
@@ -23,6 +23,7 @@ interface INocoBaseRecursionFieldProps extends IRecursionFieldProps {
|
|
|
23
23
|
* Whether to use Formily Field class - performance will be reduced but provides better compatibility with Formily
|
|
24
24
|
*/
|
|
25
25
|
isUseFormilyField?: boolean;
|
|
26
|
+
parentSchema?: Schema;
|
|
26
27
|
}
|
|
27
28
|
export declare const RefreshComponentProvider: FC<{
|
|
28
29
|
refresh: () => void;
|
|
@@ -27,6 +27,8 @@ export interface CustomToken extends AliasToken {
|
|
|
27
27
|
colorSettings: string;
|
|
28
28
|
/** 鼠标悬浮时显示的背景色 */
|
|
29
29
|
colorBgSettingsHover: string;
|
|
30
|
+
/** 鼠标悬浮模板区块时显示的背景色 */
|
|
31
|
+
colorTemplateBgSettingsHover: string;
|
|
30
32
|
/** 鼠标悬浮时显示的边框色 */
|
|
31
33
|
colorBorderSettingsHover: string;
|
|
32
34
|
/** 页面左右内边距 */
|
|
@@ -41,6 +43,7 @@ export interface CustomToken extends AliasToken {
|
|
|
41
43
|
marginBlock: number;
|
|
42
44
|
/** 区块的圆角 */
|
|
43
45
|
borderRadiusBlock: number;
|
|
46
|
+
siderWidth: number;
|
|
44
47
|
}
|
|
45
48
|
export interface ThemeConfig extends _ThemeConfig {
|
|
46
49
|
name?: string;
|
|
@@ -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
|
+
declare const NAMESPACE_UI_SCHEMA = "ui-schema-storage";
|
|
10
|
+
export { NAMESPACE_UI_SCHEMA };
|
package/es/i18n/index.d.ts
CHANGED