@nocobase/client 1.3.38-beta → 1.4.0-alpha
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 +3 -0
- package/es/acl/ACLProvider.d.ts +1 -0
- package/es/application/schema-initializer/hooks/useSchemaInitializerRender.d.ts +1 -1
- package/es/application/utils/remotePlugins.d.ts +1 -1
- package/es/block-provider/TableFieldProvider.d.ts +1 -1
- package/es/block-provider/TableSelectorProvider.d.ts +1 -1
- package/es/block-provider/hooks/useBlockHeightProps.d.ts +1 -0
- package/es/collection-manager/interfaces/createdAt.d.ts +11 -3
- package/es/collection-manager/interfaces/dateOnly.d.ts +92 -0
- package/es/collection-manager/interfaces/datetime.d.ts +26 -2
- package/es/collection-manager/interfaces/datetimeNoTz.d.ts +111 -0
- package/es/collection-manager/interfaces/index.d.ts +2 -0
- package/es/collection-manager/interfaces/o2m.d.ts +0 -2
- package/es/collection-manager/interfaces/properties/operators.d.ts +10 -2
- package/es/collection-manager/interfaces/unixTimestamp.d.ts +36 -2
- package/es/collection-manager/interfaces/updatedAt.d.ts +11 -3
- package/es/collection-manager/interfaces/utils/index.d.ts +10 -0
- package/es/collection-manager/templates/sql.d.ts +3 -0
- package/es/collection-manager/templates/view.d.ts +3 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +5 -0
- package/es/data-source/collection-record/CollectionRecord.d.ts +1 -1
- package/es/i18n/SwitchLanguage.d.ts +10 -0
- package/es/index.d.ts +3 -0
- package/es/index.mjs +23415 -21598
- package/es/locale/index.d.ts +10 -2
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.d.ts +1 -1
- package/es/modules/blocks/other-blocks/divider/DividerFormItemInitializer.d.ts +10 -0
- package/es/modules/blocks/other-blocks/divider/dividerSettings.d.ts +12 -0
- package/es/modules/fields/component/DatePicker/datePickerComponentFieldSettings.d.ts +1 -0
- package/es/modules/fields/component/Input/inputComponentSettings.d.ts +12 -0
- package/es/modules/fields/component/Input.JSON/inputJSONSettings.d.ts +10 -0
- package/es/modules/fields/component/Input.TextArea/inputTextAreaSettings.d.ts +10 -0
- package/es/modules/fields/component/Input.URL/inputURLSettings.d.ts +10 -0
- package/es/modules/fields/component/Markdown/markdownSettings.d.ts +10 -0
- package/es/modules/fields/component/MarkdownVditor/markdownVditorSettings.d.ts +10 -0
- package/es/modules/fields/component/RichText/richTextSettings.d.ts +10 -0
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +12 -0
- package/es/modules/popup/OpenModeProvider.d.ts +6 -0
- package/es/pm/types.d.ts +1 -0
- package/es/schema-component/antd/association-field/FileManager.d.ts +2 -1
- package/es/schema-component/antd/association-field/InternalPicker.d.ts +0 -1
- package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +1 -1
- package/es/schema-component/antd/block-item/index.d.ts +1 -0
- package/es/schema-component/antd/date-picker/DatePicker.d.ts +1 -0
- package/es/schema-component/antd/date-picker/util.d.ts +1 -0
- package/es/schema-component/antd/divider/Divider.d.ts +11 -0
- package/es/schema-component/antd/divider/index.d.ts +9 -0
- package/es/{schema-settings/DateFormat/ExpiresRadio.d.ts → schema-component/antd/expiresRadio/index.d.ts} +2 -2
- package/es/schema-component/antd/form-item/hooks/useSpecialCase.d.ts +7 -0
- package/es/schema-component/antd/index.d.ts +2 -0
- package/es/schema-component/antd/input/ReadPretty.d.ts +2 -0
- package/es/schema-component/antd/markdown/Markdown.Void.d.ts +1 -1
- package/es/schema-component/antd/markdown/util.d.ts +2 -1
- package/es/schema-component/antd/page/index.d.ts +1 -1
- package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -1
- package/es/schema-component/antd/page/usePopupContextInActionOrAssociationField.d.ts +1 -1
- package/es/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +3 -1
- package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +1 -0
- package/es/schema-component/antd/table-v2/components/ColumnFieldProvider.d.ts +2 -3
- package/es/schema-component/antd/unix-timestamp/UnixTimestamp.d.ts +1 -2
- package/es/schema-component/antd/upload/index.d.ts +2 -0
- package/es/schema-component/antd/upload/shared.d.ts +37 -37
- package/es/schema-component/antd/upload/style.d.ts +1 -0
- package/es/schema-component/antd/variable/Input.d.ts +2 -0
- package/es/schema-component/antd/variable/Variable.d.ts +1 -1
- package/es/schema-settings/LinkageRules/type.d.ts +2 -1
- package/es/schema-settings/SchemaSettings.d.ts +4 -0
- package/es/schema-settings/SchemaSettingsDefaultValue.d.ts +1 -0
- package/es/schema-settings/VariableInput/VariableInput.d.ts +1 -0
- package/es/schema-settings/VariableInput/hooks/index.d.ts +1 -0
- package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +33 -0
- package/es/schema-settings/VariableInput/hooks/useFormVariable.d.ts +11 -0
- package/es/schema-settings/VariableInput/hooks/useIterationVariable.d.ts +12 -0
- package/es/schema-settings/VariableInput/hooks/useParentIterationVariable.d.ts +9 -2
- package/es/schema-settings/VariableInput/hooks/useParentPopupVariable.d.ts +16 -3
- package/es/schema-settings/VariableInput/hooks/useParentRecordVariable.d.ts +10 -0
- package/es/schema-settings/VariableInput/hooks/usePopupVariable.d.ts +16 -3
- package/es/schema-settings/VariableInput/hooks/useRecordVariable.d.ts +14 -0
- package/es/variables/VariablesProvider.d.ts +5 -3
- package/es/variables/hooks/useVariables.d.ts +1 -1
- package/es/variables/index.d.ts +1 -0
- package/es/variables/types.d.ts +1 -0
- package/lib/index.js +330 -306
- package/lib/locale/{en_US.js → en-US.js} +7 -2
- package/lib/locale/{es_ES.js → es-ES.js} +2 -1
- package/lib/locale/{fr_FR.js → fr-FR.js} +2 -1
- package/lib/locale/index.js +6 -3
- package/lib/locale/{ja_JP.js → ja-JP.js} +1 -3
- package/lib/locale/{ko_KR.js → ko-KR.js} +2 -1
- package/lib/locale/{pt_BR.js → pt-BR.js} +2 -1
- package/lib/locale/{ru_RU.js → ru-RU.js} +2 -1
- package/lib/locale/{tr_TR.js → tr-TR.js} +2 -1
- package/lib/locale/{uk_UA.js → uk-UA.js} +2 -1
- package/lib/locale/zh-CN.js +45 -4
- package/lib/locale/zh-TW.js +3 -1
- package/package.json +8 -6
- /package/lib/locale/cron/{zh_CN.js → zh-CN.js} +0 -0
- /package/lib/locale/cron/{zh_TW.js → zh-TW.js} +0 -0
package/.dumirc.ts
CHANGED
|
@@ -26,6 +26,9 @@ export default defineConfig({
|
|
|
26
26
|
{ type: 'component', dir: 'src/schema-component/antd' },
|
|
27
27
|
],
|
|
28
28
|
},
|
|
29
|
+
jsMinifierOptions: {
|
|
30
|
+
target: ['chrome80', 'es2020'],
|
|
31
|
+
},
|
|
29
32
|
locales: lang === 'zh-CN' ? [{ id: 'zh-CN', name: '中文' },] : [{ id: 'en-US', name: 'English' }],
|
|
30
33
|
themeConfig: defineThemeConfig({
|
|
31
34
|
title: 'NocoBase',
|
package/es/acl/ACLProvider.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare const ACLRolesCheckProvider: (props: any) => React.JSX.Element;
|
|
|
14
14
|
export declare const useRoleRecheck: () => () => void;
|
|
15
15
|
export declare const useACLContext: () => any;
|
|
16
16
|
export declare const ACLActionParamsContext: React.Context<any>;
|
|
17
|
+
export declare const ACLCustomContext: React.Context<any>;
|
|
17
18
|
export declare const useACLRolesCheck: () => {
|
|
18
19
|
data: any;
|
|
19
20
|
getActionAlias: (actionPath: string) => any;
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { ButtonProps } from 'antd';
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { SchemaInitializerOptions } from '../types';
|
|
12
11
|
import { SchemaInitializer } from '../SchemaInitializer';
|
|
12
|
+
import { SchemaInitializerOptions } from '../types';
|
|
13
13
|
export declare function useSchemaInitializerRender<P1 = ButtonProps, P2 = {}>(name: string | SchemaInitializer<P1, P2>, options?: Omit<SchemaInitializerOptions<P1, P2>, 'name'>): {
|
|
14
14
|
exists: boolean;
|
|
15
15
|
render: () => any;
|
|
@@ -6,10 +6,10 @@
|
|
|
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
|
+
import type { DevDynamicImport } from '../Application';
|
|
9
10
|
import type { Plugin } from '../Plugin';
|
|
10
11
|
import type { PluginData } from '../PluginManager';
|
|
11
12
|
import type { RequireJS } from './requirejs';
|
|
12
|
-
import type { DevDynamicImport } from '../Application';
|
|
13
13
|
/**
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
@@ -56,7 +56,7 @@ export declare const useTableFieldProps: () => {
|
|
|
56
56
|
pagination: boolean;
|
|
57
57
|
required: any;
|
|
58
58
|
rowKey: (record: any) => number;
|
|
59
|
-
onRowSelectionChange(selectedRowKeys: any): void;
|
|
59
|
+
onRowSelectionChange(selectedRowKeys: any, selectedRowData: any): void;
|
|
60
60
|
onChange({ current, pageSize }: {
|
|
61
61
|
current: any;
|
|
62
62
|
pageSize: any;
|
|
@@ -38,7 +38,7 @@ export declare const useTableSelectorProps: () => {
|
|
|
38
38
|
dragSort: boolean;
|
|
39
39
|
rowKey: any;
|
|
40
40
|
pagination: any;
|
|
41
|
-
onRowSelectionChange(selectedRowKeys: any,
|
|
41
|
+
onRowSelectionChange(selectedRowKeys: any, selectedRowData: any): void;
|
|
42
42
|
onRowDragEnd({ from, to }: {
|
|
43
43
|
from: any;
|
|
44
44
|
to: any;
|
|
@@ -25,7 +25,7 @@ export declare class CreatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
25
25
|
'x-read-pretty': boolean;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
availableTypes:
|
|
28
|
+
availableTypes: any[];
|
|
29
29
|
properties: {
|
|
30
30
|
'uiSchema.title': {
|
|
31
31
|
type: string;
|
|
@@ -50,13 +50,19 @@ export declare class CreatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
50
50
|
label: string;
|
|
51
51
|
value: string;
|
|
52
52
|
selected: boolean;
|
|
53
|
-
schema
|
|
53
|
+
schema: {
|
|
54
|
+
'x-component': string;
|
|
55
|
+
};
|
|
56
|
+
onlyFilterAction: boolean;
|
|
54
57
|
noValue?: undefined;
|
|
55
58
|
} | {
|
|
56
59
|
label: string;
|
|
57
60
|
value: string;
|
|
61
|
+
schema: {
|
|
62
|
+
'x-component': string;
|
|
63
|
+
};
|
|
64
|
+
onlyFilterAction: boolean;
|
|
58
65
|
selected?: undefined;
|
|
59
|
-
schema?: undefined;
|
|
60
66
|
noValue?: undefined;
|
|
61
67
|
} | {
|
|
62
68
|
label: string;
|
|
@@ -65,6 +71,7 @@ export declare class CreatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
65
71
|
'x-component': string;
|
|
66
72
|
};
|
|
67
73
|
selected?: undefined;
|
|
74
|
+
onlyFilterAction?: undefined;
|
|
68
75
|
noValue?: undefined;
|
|
69
76
|
} | {
|
|
70
77
|
label: string;
|
|
@@ -72,6 +79,7 @@ export declare class CreatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
72
79
|
noValue: boolean;
|
|
73
80
|
selected?: undefined;
|
|
74
81
|
schema?: undefined;
|
|
82
|
+
onlyFilterAction?: undefined;
|
|
75
83
|
})[];
|
|
76
84
|
};
|
|
77
85
|
titleUsable: boolean;
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
|
10
|
+
export declare class DateFieldInterface extends CollectionFieldInterface {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
group: string;
|
|
14
|
+
order: number;
|
|
15
|
+
title: string;
|
|
16
|
+
sortable: boolean;
|
|
17
|
+
default: {
|
|
18
|
+
type: string;
|
|
19
|
+
uiSchema: {
|
|
20
|
+
type: string;
|
|
21
|
+
'x-component': string;
|
|
22
|
+
'x-component-props': {
|
|
23
|
+
dateOnly: boolean;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
availableTypes: string[];
|
|
28
|
+
hasDefaultValue: boolean;
|
|
29
|
+
properties: {
|
|
30
|
+
'uiSchema.x-component-props.showTime': {
|
|
31
|
+
type: string;
|
|
32
|
+
'x-decorator': string;
|
|
33
|
+
'x-component': string;
|
|
34
|
+
'x-visible': boolean;
|
|
35
|
+
};
|
|
36
|
+
'uiSchema.title': {
|
|
37
|
+
type: string;
|
|
38
|
+
title: string;
|
|
39
|
+
required: boolean;
|
|
40
|
+
'x-decorator': string;
|
|
41
|
+
'x-component': string;
|
|
42
|
+
};
|
|
43
|
+
name: {
|
|
44
|
+
type: string;
|
|
45
|
+
title: string;
|
|
46
|
+
required: boolean;
|
|
47
|
+
'x-disabled': string;
|
|
48
|
+
'x-decorator': string;
|
|
49
|
+
'x-component': string;
|
|
50
|
+
'x-validator': string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
filterable: {
|
|
55
|
+
operators: ({
|
|
56
|
+
label: string;
|
|
57
|
+
value: string;
|
|
58
|
+
selected: boolean;
|
|
59
|
+
schema: {
|
|
60
|
+
'x-component': string;
|
|
61
|
+
};
|
|
62
|
+
onlyFilterAction: boolean;
|
|
63
|
+
noValue?: undefined;
|
|
64
|
+
} | {
|
|
65
|
+
label: string;
|
|
66
|
+
value: string;
|
|
67
|
+
schema: {
|
|
68
|
+
'x-component': string;
|
|
69
|
+
};
|
|
70
|
+
onlyFilterAction: boolean;
|
|
71
|
+
selected?: undefined;
|
|
72
|
+
noValue?: undefined;
|
|
73
|
+
} | {
|
|
74
|
+
label: string;
|
|
75
|
+
value: string;
|
|
76
|
+
schema: {
|
|
77
|
+
'x-component': string;
|
|
78
|
+
};
|
|
79
|
+
selected?: undefined;
|
|
80
|
+
onlyFilterAction?: undefined;
|
|
81
|
+
noValue?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
label: string;
|
|
84
|
+
value: string;
|
|
85
|
+
noValue: boolean;
|
|
86
|
+
selected?: undefined;
|
|
87
|
+
schema?: undefined;
|
|
88
|
+
onlyFilterAction?: undefined;
|
|
89
|
+
})[];
|
|
90
|
+
};
|
|
91
|
+
titleUsable: boolean;
|
|
92
|
+
}
|
|
@@ -16,17 +16,33 @@ export declare class DatetimeFieldInterface extends CollectionFieldInterface {
|
|
|
16
16
|
sortable: boolean;
|
|
17
17
|
default: {
|
|
18
18
|
type: string;
|
|
19
|
+
defaultToCurrentTime: boolean;
|
|
20
|
+
onUpdateToCurrentTime: boolean;
|
|
21
|
+
timezone: boolean;
|
|
19
22
|
uiSchema: {
|
|
20
23
|
type: string;
|
|
21
24
|
'x-component': string;
|
|
22
25
|
'x-component-props': {
|
|
23
26
|
showTime: boolean;
|
|
27
|
+
utc: boolean;
|
|
24
28
|
};
|
|
25
29
|
};
|
|
26
30
|
};
|
|
27
31
|
availableTypes: string[];
|
|
28
32
|
hasDefaultValue: boolean;
|
|
29
33
|
properties: {
|
|
34
|
+
defaultToCurrentTime: {
|
|
35
|
+
type: string;
|
|
36
|
+
'x-decorator': string;
|
|
37
|
+
'x-component': string;
|
|
38
|
+
'x-content': string;
|
|
39
|
+
};
|
|
40
|
+
onUpdateToCurrentTime: {
|
|
41
|
+
type: string;
|
|
42
|
+
'x-decorator': string;
|
|
43
|
+
'x-component': string;
|
|
44
|
+
'x-content': string;
|
|
45
|
+
};
|
|
30
46
|
'uiSchema.x-component-props.gmt': {
|
|
31
47
|
type: string;
|
|
32
48
|
title: string;
|
|
@@ -59,13 +75,19 @@ export declare class DatetimeFieldInterface extends CollectionFieldInterface {
|
|
|
59
75
|
label: string;
|
|
60
76
|
value: string;
|
|
61
77
|
selected: boolean;
|
|
62
|
-
schema
|
|
78
|
+
schema: {
|
|
79
|
+
'x-component': string;
|
|
80
|
+
};
|
|
81
|
+
onlyFilterAction: boolean;
|
|
63
82
|
noValue?: undefined;
|
|
64
83
|
} | {
|
|
65
84
|
label: string;
|
|
66
85
|
value: string;
|
|
86
|
+
schema: {
|
|
87
|
+
'x-component': string;
|
|
88
|
+
};
|
|
89
|
+
onlyFilterAction: boolean;
|
|
67
90
|
selected?: undefined;
|
|
68
|
-
schema?: undefined;
|
|
69
91
|
noValue?: undefined;
|
|
70
92
|
} | {
|
|
71
93
|
label: string;
|
|
@@ -74,6 +96,7 @@ export declare class DatetimeFieldInterface extends CollectionFieldInterface {
|
|
|
74
96
|
'x-component': string;
|
|
75
97
|
};
|
|
76
98
|
selected?: undefined;
|
|
99
|
+
onlyFilterAction?: undefined;
|
|
77
100
|
noValue?: undefined;
|
|
78
101
|
} | {
|
|
79
102
|
label: string;
|
|
@@ -81,6 +104,7 @@ export declare class DatetimeFieldInterface extends CollectionFieldInterface {
|
|
|
81
104
|
noValue: boolean;
|
|
82
105
|
selected?: undefined;
|
|
83
106
|
schema?: undefined;
|
|
107
|
+
onlyFilterAction?: undefined;
|
|
84
108
|
})[];
|
|
85
109
|
};
|
|
86
110
|
titleUsable: boolean;
|
|
@@ -0,0 +1,111 @@
|
|
|
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 { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
|
10
|
+
export declare class DatetimeNoTzFieldInterface extends CollectionFieldInterface {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
group: string;
|
|
14
|
+
order: number;
|
|
15
|
+
title: string;
|
|
16
|
+
sortable: boolean;
|
|
17
|
+
default: {
|
|
18
|
+
type: string;
|
|
19
|
+
defaultToCurrentTime: boolean;
|
|
20
|
+
onUpdateToCurrentTime: boolean;
|
|
21
|
+
timezone: boolean;
|
|
22
|
+
uiSchema: {
|
|
23
|
+
type: string;
|
|
24
|
+
'x-component': string;
|
|
25
|
+
'x-component-props': {
|
|
26
|
+
showTime: boolean;
|
|
27
|
+
utc: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
availableTypes: string[];
|
|
32
|
+
hasDefaultValue: boolean;
|
|
33
|
+
properties: {
|
|
34
|
+
defaultToCurrentTime: {
|
|
35
|
+
type: string;
|
|
36
|
+
'x-decorator': string;
|
|
37
|
+
'x-component': string;
|
|
38
|
+
'x-content': string;
|
|
39
|
+
};
|
|
40
|
+
onUpdateToCurrentTime: {
|
|
41
|
+
type: string;
|
|
42
|
+
'x-decorator': string;
|
|
43
|
+
'x-component': string;
|
|
44
|
+
'x-content': string;
|
|
45
|
+
};
|
|
46
|
+
'uiSchema.x-component-props.gmt': {
|
|
47
|
+
type: string;
|
|
48
|
+
title: string;
|
|
49
|
+
'x-hidden': boolean;
|
|
50
|
+
'x-component': string;
|
|
51
|
+
'x-content': string;
|
|
52
|
+
'x-decorator': string;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
'uiSchema.title': {
|
|
56
|
+
type: string;
|
|
57
|
+
title: string;
|
|
58
|
+
required: boolean;
|
|
59
|
+
'x-decorator': string;
|
|
60
|
+
'x-component': string;
|
|
61
|
+
};
|
|
62
|
+
name: {
|
|
63
|
+
type: string;
|
|
64
|
+
title: string;
|
|
65
|
+
required: boolean;
|
|
66
|
+
'x-disabled': string;
|
|
67
|
+
'x-decorator': string;
|
|
68
|
+
'x-component': string;
|
|
69
|
+
'x-validator': string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
filterable: {
|
|
74
|
+
operators: ({
|
|
75
|
+
label: string;
|
|
76
|
+
value: string;
|
|
77
|
+
selected: boolean;
|
|
78
|
+
schema: {
|
|
79
|
+
'x-component': string;
|
|
80
|
+
};
|
|
81
|
+
onlyFilterAction: boolean;
|
|
82
|
+
noValue?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
label: string;
|
|
85
|
+
value: string;
|
|
86
|
+
schema: {
|
|
87
|
+
'x-component': string;
|
|
88
|
+
};
|
|
89
|
+
onlyFilterAction: boolean;
|
|
90
|
+
selected?: undefined;
|
|
91
|
+
noValue?: undefined;
|
|
92
|
+
} | {
|
|
93
|
+
label: string;
|
|
94
|
+
value: string;
|
|
95
|
+
schema: {
|
|
96
|
+
'x-component': string;
|
|
97
|
+
};
|
|
98
|
+
selected?: undefined;
|
|
99
|
+
onlyFilterAction?: undefined;
|
|
100
|
+
noValue?: undefined;
|
|
101
|
+
} | {
|
|
102
|
+
label: string;
|
|
103
|
+
value: string;
|
|
104
|
+
noValue: boolean;
|
|
105
|
+
selected?: undefined;
|
|
106
|
+
schema?: undefined;
|
|
107
|
+
onlyFilterAction?: undefined;
|
|
108
|
+
})[];
|
|
109
|
+
};
|
|
110
|
+
titleUsable: boolean;
|
|
111
|
+
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import { ISchema } from '@formily/react';
|
|
10
|
-
import { Collection } from '../../data-source';
|
|
11
10
|
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
|
12
11
|
export declare class O2MFieldInterface extends CollectionFieldInterface {
|
|
13
12
|
name: string;
|
|
@@ -241,4 +240,3 @@ export declare class O2MFieldInterface extends CollectionFieldInterface {
|
|
|
241
240
|
children: any[];
|
|
242
241
|
};
|
|
243
242
|
}
|
|
244
|
-
export declare function getUniqueKeyFromCollection(collection: Collection): string;
|
|
@@ -64,13 +64,19 @@ export declare const datetime: ({
|
|
|
64
64
|
label: string;
|
|
65
65
|
value: string;
|
|
66
66
|
selected: boolean;
|
|
67
|
-
schema
|
|
67
|
+
schema: {
|
|
68
|
+
'x-component': string;
|
|
69
|
+
};
|
|
70
|
+
onlyFilterAction: boolean;
|
|
68
71
|
noValue?: undefined;
|
|
69
72
|
} | {
|
|
70
73
|
label: string;
|
|
71
74
|
value: string;
|
|
75
|
+
schema: {
|
|
76
|
+
'x-component': string;
|
|
77
|
+
};
|
|
78
|
+
onlyFilterAction: boolean;
|
|
72
79
|
selected?: undefined;
|
|
73
|
-
schema?: undefined;
|
|
74
80
|
noValue?: undefined;
|
|
75
81
|
} | {
|
|
76
82
|
label: string;
|
|
@@ -79,6 +85,7 @@ export declare const datetime: ({
|
|
|
79
85
|
'x-component': string;
|
|
80
86
|
};
|
|
81
87
|
selected?: undefined;
|
|
88
|
+
onlyFilterAction?: undefined;
|
|
82
89
|
noValue?: undefined;
|
|
83
90
|
} | {
|
|
84
91
|
label: string;
|
|
@@ -86,6 +93,7 @@ export declare const datetime: ({
|
|
|
86
93
|
noValue: boolean;
|
|
87
94
|
selected?: undefined;
|
|
88
95
|
schema?: undefined;
|
|
96
|
+
onlyFilterAction?: undefined;
|
|
89
97
|
})[];
|
|
90
98
|
export declare const number: ({
|
|
91
99
|
label: string;
|
|
@@ -16,11 +16,14 @@ export declare class UnixTimestampFieldInterface extends CollectionFieldInterfac
|
|
|
16
16
|
sortable: boolean;
|
|
17
17
|
default: {
|
|
18
18
|
type: string;
|
|
19
|
+
accuracy: string;
|
|
20
|
+
timezone: boolean;
|
|
21
|
+
defaultToCurrentTime: boolean;
|
|
22
|
+
onUpdateToCurrentTime: boolean;
|
|
19
23
|
uiSchema: {
|
|
20
24
|
type: string;
|
|
21
25
|
'x-component': string;
|
|
22
26
|
'x-component-props': {
|
|
23
|
-
accuracy: string;
|
|
24
27
|
showTime: boolean;
|
|
25
28
|
};
|
|
26
29
|
};
|
|
@@ -28,7 +31,7 @@ export declare class UnixTimestampFieldInterface extends CollectionFieldInterfac
|
|
|
28
31
|
availableTypes: string[];
|
|
29
32
|
hasDefaultValue: boolean;
|
|
30
33
|
properties: {
|
|
31
|
-
|
|
34
|
+
accuracy: {
|
|
32
35
|
type: string;
|
|
33
36
|
title: string;
|
|
34
37
|
'x-component': string;
|
|
@@ -39,6 +42,18 @@ export declare class UnixTimestampFieldInterface extends CollectionFieldInterfac
|
|
|
39
42
|
label: string;
|
|
40
43
|
}[];
|
|
41
44
|
};
|
|
45
|
+
defaultToCurrentTime: {
|
|
46
|
+
type: string;
|
|
47
|
+
'x-decorator': string;
|
|
48
|
+
'x-component': string;
|
|
49
|
+
'x-content': string;
|
|
50
|
+
};
|
|
51
|
+
onUpdateToCurrentTime: {
|
|
52
|
+
type: string;
|
|
53
|
+
'x-decorator': string;
|
|
54
|
+
'x-component': string;
|
|
55
|
+
'x-content': string;
|
|
56
|
+
};
|
|
42
57
|
'uiSchema.title': {
|
|
43
58
|
type: string;
|
|
44
59
|
title: string;
|
|
@@ -62,17 +77,36 @@ export declare class UnixTimestampFieldInterface extends CollectionFieldInterfac
|
|
|
62
77
|
label: string;
|
|
63
78
|
value: string;
|
|
64
79
|
selected: boolean;
|
|
80
|
+
schema: {
|
|
81
|
+
'x-component': string;
|
|
82
|
+
};
|
|
83
|
+
onlyFilterAction: boolean;
|
|
84
|
+
noValue?: undefined;
|
|
85
|
+
} | {
|
|
86
|
+
label: string;
|
|
87
|
+
value: string;
|
|
88
|
+
schema: {
|
|
89
|
+
'x-component': string;
|
|
90
|
+
};
|
|
91
|
+
onlyFilterAction: boolean;
|
|
92
|
+
selected?: undefined;
|
|
65
93
|
noValue?: undefined;
|
|
66
94
|
} | {
|
|
67
95
|
label: string;
|
|
68
96
|
value: string;
|
|
97
|
+
schema: {
|
|
98
|
+
'x-component': string;
|
|
99
|
+
};
|
|
69
100
|
selected?: undefined;
|
|
101
|
+
onlyFilterAction?: undefined;
|
|
70
102
|
noValue?: undefined;
|
|
71
103
|
} | {
|
|
72
104
|
label: string;
|
|
73
105
|
value: string;
|
|
74
106
|
noValue: boolean;
|
|
75
107
|
selected?: undefined;
|
|
108
|
+
schema?: undefined;
|
|
109
|
+
onlyFilterAction?: undefined;
|
|
76
110
|
})[];
|
|
77
111
|
};
|
|
78
112
|
titleUsable: boolean;
|
|
@@ -25,7 +25,7 @@ export declare class UpdatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
25
25
|
'x-read-pretty': boolean;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
availableTypes:
|
|
28
|
+
availableTypes: any[];
|
|
29
29
|
properties: {
|
|
30
30
|
'uiSchema.title': {
|
|
31
31
|
type: string;
|
|
@@ -50,13 +50,19 @@ export declare class UpdatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
50
50
|
label: string;
|
|
51
51
|
value: string;
|
|
52
52
|
selected: boolean;
|
|
53
|
-
schema
|
|
53
|
+
schema: {
|
|
54
|
+
'x-component': string;
|
|
55
|
+
};
|
|
56
|
+
onlyFilterAction: boolean;
|
|
54
57
|
noValue?: undefined;
|
|
55
58
|
} | {
|
|
56
59
|
label: string;
|
|
57
60
|
value: string;
|
|
61
|
+
schema: {
|
|
62
|
+
'x-component': string;
|
|
63
|
+
};
|
|
64
|
+
onlyFilterAction: boolean;
|
|
58
65
|
selected?: undefined;
|
|
59
|
-
schema?: undefined;
|
|
60
66
|
noValue?: undefined;
|
|
61
67
|
} | {
|
|
62
68
|
label: string;
|
|
@@ -65,6 +71,7 @@ export declare class UpdatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
65
71
|
'x-component': string;
|
|
66
72
|
};
|
|
67
73
|
selected?: undefined;
|
|
74
|
+
onlyFilterAction?: undefined;
|
|
68
75
|
noValue?: undefined;
|
|
69
76
|
} | {
|
|
70
77
|
label: string;
|
|
@@ -72,6 +79,7 @@ export declare class UpdatedAtFieldInterface extends CollectionFieldInterface {
|
|
|
72
79
|
noValue: boolean;
|
|
73
80
|
selected?: undefined;
|
|
74
81
|
schema?: undefined;
|
|
82
|
+
onlyFilterAction?: undefined;
|
|
75
83
|
})[];
|
|
76
84
|
};
|
|
77
85
|
titleUsable: boolean;
|
|
@@ -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 { Collection } from '../../../data-source';
|
|
10
|
+
export declare function getUniqueKeyFromCollection(collection: Collection): any;
|
|
@@ -129,6 +129,9 @@ export declare class ViewCollectionTemplate extends CollectionTemplate {
|
|
|
129
129
|
description: string;
|
|
130
130
|
'x-decorator': string;
|
|
131
131
|
'x-component': string;
|
|
132
|
+
'x-component-props': {
|
|
133
|
+
multiple: boolean;
|
|
134
|
+
};
|
|
132
135
|
'x-reactions': string[];
|
|
133
136
|
};
|
|
134
137
|
};
|
|
@@ -37,6 +37,7 @@ export declare abstract class CollectionFieldInterface {
|
|
|
37
37
|
componentOptions?: CollectionFieldInterfaceComponentOption[];
|
|
38
38
|
isAssociation?: boolean;
|
|
39
39
|
operators?: any[];
|
|
40
|
+
properties?: any;
|
|
40
41
|
/**
|
|
41
42
|
* - 如果该值为空,则在 Filter 组件中该字段会被过滤掉
|
|
42
43
|
* - 如果该值为空,则不会在变量列表中看到该字段
|
|
@@ -58,4 +59,8 @@ export declare abstract class CollectionFieldInterface {
|
|
|
58
59
|
schemaInitialize?(schema: ISchema, data: any): void;
|
|
59
60
|
hidden?: boolean;
|
|
60
61
|
addComponentOption(componentOption: CollectionFieldInterfaceComponentOption): void;
|
|
62
|
+
getConfigureFormProperties(): any;
|
|
63
|
+
getDefaultValueProperty(): {
|
|
64
|
+
defaultValue: any;
|
|
65
|
+
};
|
|
61
66
|
}
|
|
@@ -11,7 +11,7 @@ export interface CollectionRecordOptions<DataType = {}, ParentDataType = {}> {
|
|
|
11
11
|
data?: DataType;
|
|
12
12
|
parentRecord?: CollectionRecord<ParentDataType>;
|
|
13
13
|
}
|
|
14
|
-
export declare class CollectionRecord<DataType =
|
|
14
|
+
export declare class CollectionRecord<DataType = any, ParentDataType = {}> {
|
|
15
15
|
data?: DataType;
|
|
16
16
|
parentRecord?: CollectionRecord<ParentDataType>;
|
|
17
17
|
isNew?: boolean;
|
|
@@ -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 function SwitchLanguage(): React.JSX.Element;
|
package/es/index.d.ts
CHANGED
|
@@ -65,4 +65,7 @@ export * from './modules/blocks/useParentRecordCommon';
|
|
|
65
65
|
export { OpenModeProvider, useOpenModeContext } from './modules/popup/OpenModeProvider';
|
|
66
66
|
export { PopupContextProvider } from './modules/popup/PopupContextProvider';
|
|
67
67
|
export { usePopupUtils } from './modules/popup/usePopupUtils';
|
|
68
|
+
export { SwitchLanguage } from './i18n/SwitchLanguage';
|
|
68
69
|
export { VariablePopupRecordProvider } from './modules/variable/variablesProvider/VariablePopupRecordProvider';
|
|
70
|
+
export { useCurrentPopupRecord } from './modules/variable/variablesProvider/VariablePopupRecordProvider';
|
|
71
|
+
export { languageCodes } from './locale';
|