@nocobase/client 0.7.2-alpha.7 → 0.7.4-alpha.4
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 +1 -0
- package/es/application/Application.js +7 -1
- package/es/block-provider/FormBlockProvider.js +15 -3
- package/es/block-provider/TableFieldProvider.d.ts +1 -0
- package/es/block-provider/TableFieldProvider.js +5 -2
- package/es/block-provider/TableSelectorProvider.js +42 -14
- package/es/block-provider/hooks/index.d.ts +6 -0
- package/es/block-provider/hooks/index.js +159 -65
- package/es/collection-manager/CollectionField.js +11 -4
- package/es/collection-manager/Configuration/AddFieldAction.js +6 -0
- package/es/collection-manager/Configuration/EditFieldAction.js +7 -0
- package/es/collection-manager/Configuration/index.js +5 -1
- package/es/collection-manager/Configuration/schemas/collections.js +2 -1
- package/es/collection-manager/interfaces/checkbox.js +1 -0
- package/es/collection-manager/interfaces/checkboxGroup.js +1 -0
- package/es/collection-manager/interfaces/datetime.js +1 -0
- package/es/collection-manager/interfaces/email.js +1 -0
- package/es/collection-manager/interfaces/icon.js +1 -0
- package/es/collection-manager/interfaces/input.js +104 -0
- package/es/collection-manager/interfaces/integer.js +64 -0
- package/es/collection-manager/interfaces/m2m.js +2 -0
- package/es/collection-manager/interfaces/m2o.js +1 -0
- package/es/collection-manager/interfaces/markdown.js +35 -0
- package/es/collection-manager/interfaces/multipleSelect.js +1 -0
- package/es/collection-manager/interfaces/number.js +56 -0
- package/es/collection-manager/interfaces/o2m.js +1 -0
- package/es/collection-manager/interfaces/o2o.js +3 -0
- package/es/collection-manager/interfaces/password.js +37 -1
- package/es/collection-manager/interfaces/percent.js +98 -0
- package/es/collection-manager/interfaces/phone.js +1 -0
- package/es/collection-manager/interfaces/properties/index.d.ts +1 -0
- package/es/collection-manager/interfaces/properties/index.js +1 -0
- package/es/collection-manager/interfaces/properties/operators.js +4 -4
- package/es/collection-manager/interfaces/radioGroup.js +1 -0
- package/es/collection-manager/interfaces/richText.js +35 -0
- package/es/collection-manager/interfaces/select.js +1 -0
- package/es/collection-manager/interfaces/textarea.js +35 -0
- package/es/collection-manager/interfaces/time.js +1 -0
- package/es/file-manager/FileStorageShortcut.js +2 -2
- package/es/locale/en_US.d.ts +8 -2
- package/es/locale/en_US.js +9 -3
- package/es/locale/zh_CN.d.ts +28 -2
- package/es/locale/zh_CN.js +29 -3
- package/es/plugin-manager/PluginManager.d.ts +1 -0
- package/es/plugin-manager/PluginManager.js +20 -6
- package/es/schema-component/antd/action/Action.Modal.js +1 -1
- package/es/schema-component/antd/calendar/Calendar.Designer.js +16 -10
- package/es/schema-component/antd/date-picker/DatePicker.d.ts +1 -1
- package/es/schema-component/antd/date-picker/DatePicker.js +1 -1
- package/es/schema-component/antd/date-picker/ReadPretty.js +1 -1
- package/es/schema-component/antd/date-picker/util.d.ts +0 -10
- package/es/schema-component/antd/date-picker/util.js +1 -79
- package/es/schema-component/antd/form-item/FormItem.js +193 -10
- package/es/schema-component/antd/grid/Grid.js +72 -6
- package/es/schema-component/antd/input-number/InputNumber.d.ts +1 -5
- package/es/schema-component/antd/input-number/InputNumber.js +25 -1
- package/es/schema-component/antd/input-number/ReadPretty.js +2 -4
- package/es/schema-component/antd/kanban/Kanban.Card.Designer.js +20 -14
- package/es/schema-component/antd/menu/Menu.js +6 -3
- package/es/schema-component/antd/percent/Percent.js +2 -2
- package/es/schema-component/antd/record-picker/InputRecordPicker.js +27 -13
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +5 -3
- package/es/schema-component/antd/table/Table.Array.js +2 -2
- package/es/schema-component/antd/table/Table.Void.js +11 -1
- package/es/schema-component/antd/table-v2/Table.Column.Designer.js +3 -1
- package/es/schema-component/antd/table-v2/Table.d.ts +0 -11
- package/es/schema-component/antd/table-v2/Table.js +163 -92
- package/es/schema-component/antd/table-v2/TableField.js +3 -0
- package/es/schema-component/antd/tabs/Tabs.Designer.js +23 -12
- package/es/schema-component/antd/tabs/Tabs.js +7 -1
- package/es/schema-component/antd/time-picker/ReadPretty.js +11 -5
- package/es/schema-component/core/DesignableSwitch.js +7 -1
- package/es/schema-component/hooks/useDesignable.js +21 -21
- package/es/schema-component/hooks/useProps.js +1 -1
- package/es/schema-initializer/buttons/FormItemInitializers.js +14 -3
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +8 -0
- package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +14 -3
- package/es/schema-initializer/buttons/RecordBlockInitializers.js +32 -3
- package/es/schema-initializer/buttons/TabPaneInitializers.js +11 -3
- package/es/schema-initializer/buttons/TableActionInitializers.js +11 -0
- package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +4 -0
- package/es/schema-initializer/components/assigned-field/AssignedField.js +255 -69
- package/es/schema-initializer/items/index.d.ts +2 -0
- package/es/schema-initializer/items/index.js +48 -2
- package/es/schema-initializer/utils.js +22 -2
- package/es/schema-settings/SchemaSettings.js +7 -0
- package/es/system-settings/SystemSettingsShortcut.js +35 -12
- package/lib/application/Application.d.ts +1 -0
- package/lib/application/Application.js +11 -2
- package/lib/block-provider/FormBlockProvider.js +15 -2
- package/lib/block-provider/TableFieldProvider.d.ts +1 -0
- package/lib/block-provider/TableFieldProvider.js +4 -1
- package/lib/block-provider/TableSelectorProvider.js +42 -14
- package/lib/block-provider/hooks/index.d.ts +6 -0
- package/lib/block-provider/hooks/index.js +168 -67
- package/lib/collection-manager/CollectionField.js +12 -4
- package/lib/collection-manager/Configuration/AddFieldAction.js +6 -0
- package/lib/collection-manager/Configuration/EditFieldAction.js +7 -0
- package/lib/collection-manager/Configuration/index.js +5 -0
- package/lib/collection-manager/Configuration/schemas/collections.js +2 -1
- package/lib/collection-manager/interfaces/checkbox.js +1 -0
- package/lib/collection-manager/interfaces/checkboxGroup.js +1 -0
- package/lib/collection-manager/interfaces/datetime.js +1 -0
- package/lib/collection-manager/interfaces/email.js +1 -0
- package/lib/collection-manager/interfaces/icon.js +1 -0
- package/lib/collection-manager/interfaces/input.js +105 -0
- package/lib/collection-manager/interfaces/integer.js +66 -0
- package/lib/collection-manager/interfaces/m2m.js +2 -0
- package/lib/collection-manager/interfaces/m2o.js +1 -0
- package/lib/collection-manager/interfaces/markdown.js +36 -0
- package/lib/collection-manager/interfaces/multipleSelect.js +1 -0
- package/lib/collection-manager/interfaces/number.js +57 -0
- package/lib/collection-manager/interfaces/o2m.js +1 -0
- package/lib/collection-manager/interfaces/o2o.js +3 -0
- package/lib/collection-manager/interfaces/password.js +38 -1
- package/lib/collection-manager/interfaces/percent.js +100 -0
- package/lib/collection-manager/interfaces/phone.js +1 -0
- package/lib/collection-manager/interfaces/properties/index.d.ts +1 -0
- package/lib/collection-manager/interfaces/properties/index.js +1 -0
- package/lib/collection-manager/interfaces/properties/operators.js +4 -4
- package/lib/collection-manager/interfaces/radioGroup.js +1 -0
- package/lib/collection-manager/interfaces/richText.js +36 -0
- package/lib/collection-manager/interfaces/select.js +1 -0
- package/lib/collection-manager/interfaces/textarea.js +36 -0
- package/lib/collection-manager/interfaces/time.js +1 -0
- package/lib/file-manager/FileStorageShortcut.js +1 -1
- package/lib/locale/en_US.d.ts +8 -2
- package/lib/locale/en_US.js +9 -3
- package/lib/locale/zh_CN.d.ts +28 -2
- package/lib/locale/zh_CN.js +29 -3
- package/lib/plugin-manager/PluginManager.d.ts +1 -0
- package/lib/plugin-manager/PluginManager.js +23 -5
- package/lib/schema-component/antd/action/Action.Modal.js +1 -1
- package/lib/schema-component/antd/calendar/Calendar.Designer.js +16 -10
- package/lib/schema-component/antd/date-picker/DatePicker.d.ts +1 -1
- package/lib/schema-component/antd/date-picker/DatePicker.js +2 -2
- package/lib/schema-component/antd/date-picker/ReadPretty.js +6 -6
- package/lib/schema-component/antd/date-picker/util.d.ts +0 -10
- package/lib/schema-component/antd/date-picker/util.js +6 -89
- package/lib/schema-component/antd/form-item/FormItem.js +196 -12
- package/lib/schema-component/antd/grid/Grid.js +69 -3
- package/lib/schema-component/antd/input-number/InputNumber.d.ts +1 -5
- package/lib/schema-component/antd/input-number/InputNumber.js +28 -1
- package/lib/schema-component/antd/input-number/ReadPretty.js +2 -5
- package/lib/schema-component/antd/kanban/Kanban.Card.Designer.js +20 -14
- package/lib/schema-component/antd/menu/Menu.js +6 -3
- package/lib/schema-component/antd/percent/Percent.js +2 -2
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +27 -12
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +4 -2
- package/lib/schema-component/antd/table/Table.Array.js +2 -2
- package/lib/schema-component/antd/table/Table.Void.js +11 -1
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +3 -1
- package/lib/schema-component/antd/table-v2/Table.d.ts +0 -11
- package/lib/schema-component/antd/table-v2/Table.js +172 -94
- package/lib/schema-component/antd/table-v2/TableField.js +3 -0
- package/lib/schema-component/antd/tabs/Tabs.Designer.js +23 -12
- package/lib/schema-component/antd/tabs/Tabs.js +8 -1
- package/lib/schema-component/antd/time-picker/ReadPretty.js +10 -3
- package/lib/schema-component/core/DesignableSwitch.js +8 -1
- package/lib/schema-component/hooks/useDesignable.js +21 -21
- package/lib/schema-component/hooks/useProps.js +1 -1
- package/lib/schema-initializer/buttons/FormItemInitializers.js +14 -2
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +8 -0
- package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +14 -2
- package/lib/schema-initializer/buttons/RecordBlockInitializers.js +34 -4
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +11 -3
- package/lib/schema-initializer/buttons/TableActionInitializers.js +11 -0
- package/lib/schema-initializer/components/assigned-field/AssignedField.d.ts +4 -0
- package/lib/schema-initializer/components/assigned-field/AssignedField.js +257 -66
- package/lib/schema-initializer/items/index.d.ts +2 -0
- package/lib/schema-initializer/items/index.js +54 -2
- package/lib/schema-initializer/utils.js +22 -2
- package/lib/schema-settings/SchemaSettings.js +7 -0
- package/lib/system-settings/SystemSettingsShortcut.js +37 -13
- package/package.json +7 -4
|
@@ -5,6 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
7
|
import { defaultProps } from './properties';
|
|
8
|
+
import { i18n } from '../../i18n';
|
|
8
9
|
export var richText = {
|
|
9
10
|
name: 'richText',
|
|
10
11
|
type: 'object',
|
|
@@ -20,6 +21,7 @@ export var richText = {
|
|
|
20
21
|
'x-component': 'RichText'
|
|
21
22
|
}
|
|
22
23
|
},
|
|
24
|
+
hasDefaultValue: true,
|
|
23
25
|
properties: _objectSpread({}, defaultProps),
|
|
24
26
|
schemaInitialize: function schemaInitialize(schema, _ref) {
|
|
25
27
|
var block = _ref.block;
|
|
@@ -28,5 +30,38 @@ export var richText = {
|
|
|
28
30
|
schema['x-component-props'] = schema['x-component-props'] || {};
|
|
29
31
|
schema['x-component-props']['ellipsis'] = true;
|
|
30
32
|
}
|
|
33
|
+
},
|
|
34
|
+
validateSchema: function validateSchema(fieldSchema, formItemStyle) {
|
|
35
|
+
return {
|
|
36
|
+
max: {
|
|
37
|
+
type: 'number',
|
|
38
|
+
title: '{{ t("Max length") }}',
|
|
39
|
+
minimum: 0,
|
|
40
|
+
'x-decorator': 'FormItem',
|
|
41
|
+
'x-component': 'InputNumber',
|
|
42
|
+
'x-component-props': {
|
|
43
|
+
precision: 0
|
|
44
|
+
},
|
|
45
|
+
'x-reactions': "{{(field) => {\n const targetValue = field.query('.min').value();\n field.selfErrors =\n !!targetValue && !!field.value && targetValue > field.value ? '".concat(i18n.t('Max length must greater than min length'), "' : ''\n }}}")
|
|
46
|
+
},
|
|
47
|
+
min: {
|
|
48
|
+
type: 'number',
|
|
49
|
+
title: '{{ t("Min length") }}',
|
|
50
|
+
minimum: 0,
|
|
51
|
+
'x-decorator': 'FormItem',
|
|
52
|
+
'x-component': 'InputNumber',
|
|
53
|
+
'x-component-props': {
|
|
54
|
+
precision: 0
|
|
55
|
+
},
|
|
56
|
+
'x-reactions': {
|
|
57
|
+
dependencies: ['.max'],
|
|
58
|
+
fulfill: {
|
|
59
|
+
state: {
|
|
60
|
+
selfErrors: "{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '".concat(i18n.t('Min length must less than max length'), "' : ''}}")
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
31
66
|
}
|
|
32
67
|
};
|
|
@@ -5,6 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
7
|
import { defaultProps } from './properties';
|
|
8
|
+
import { i18n } from '../../i18n';
|
|
8
9
|
export var textarea = {
|
|
9
10
|
name: 'textarea',
|
|
10
11
|
type: 'object',
|
|
@@ -20,6 +21,7 @@ export var textarea = {
|
|
|
20
21
|
'x-component': 'Input.TextArea'
|
|
21
22
|
}
|
|
22
23
|
},
|
|
24
|
+
hasDefaultValue: true,
|
|
23
25
|
properties: _objectSpread({}, defaultProps),
|
|
24
26
|
schemaInitialize: function schemaInitialize(schema, _ref) {
|
|
25
27
|
var block = _ref.block;
|
|
@@ -28,5 +30,38 @@ export var textarea = {
|
|
|
28
30
|
schema['x-component-props'] = schema['x-component-props'] || {};
|
|
29
31
|
schema['x-component-props']['ellipsis'] = true;
|
|
30
32
|
}
|
|
33
|
+
},
|
|
34
|
+
validateSchema: function validateSchema(fieldSchema) {
|
|
35
|
+
return {
|
|
36
|
+
max: {
|
|
37
|
+
type: 'number',
|
|
38
|
+
title: '{{ t("Max length") }}',
|
|
39
|
+
minimum: 0,
|
|
40
|
+
'x-decorator': 'FormItem',
|
|
41
|
+
'x-component': 'InputNumber',
|
|
42
|
+
'x-component-props': {
|
|
43
|
+
precision: 0
|
|
44
|
+
},
|
|
45
|
+
'x-reactions': "{{(field) => {\n const targetValue = field.query('.min').value();\n field.selfErrors =\n !!targetValue && !!field.value && targetValue > field.value ? '".concat(i18n.t('Max length must greater than min length'), "' : ''\n }}}")
|
|
46
|
+
},
|
|
47
|
+
min: {
|
|
48
|
+
type: 'number',
|
|
49
|
+
title: '{{ t("Min length") }}',
|
|
50
|
+
minimum: 0,
|
|
51
|
+
'x-decorator': 'FormItem',
|
|
52
|
+
'x-component': 'InputNumber',
|
|
53
|
+
'x-component-props': {
|
|
54
|
+
precision: 0
|
|
55
|
+
},
|
|
56
|
+
'x-reactions': {
|
|
57
|
+
dependencies: ['.max'],
|
|
58
|
+
fulfill: {
|
|
59
|
+
state: {
|
|
60
|
+
selfErrors: "{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '".concat(i18n.t('Min length must less than max length'), "' : ''}}")
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
31
66
|
}
|
|
32
67
|
};
|
|
@@ -12,7 +12,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12
12
|
|
|
13
13
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { FileOutlined } from '@ant-design/icons';
|
|
16
16
|
import { uid } from '@formily/shared';
|
|
17
17
|
import React, { useState } from 'react';
|
|
18
18
|
import { useTranslation } from 'react-i18next';
|
|
@@ -50,7 +50,7 @@ export var FileStorageShortcut = function FileStorageShortcut() {
|
|
|
50
50
|
onClick: function onClick() {
|
|
51
51
|
setVisible(true);
|
|
52
52
|
},
|
|
53
|
-
icon: /*#__PURE__*/React.createElement(
|
|
53
|
+
icon: /*#__PURE__*/React.createElement(FileOutlined, null),
|
|
54
54
|
title: t('File storages')
|
|
55
55
|
}), /*#__PURE__*/React.createElement(SchemaComponent, {
|
|
56
56
|
components: {
|
package/es/locale/en_US.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare const _default: {
|
|
|
54
54
|
"Select data source": string;
|
|
55
55
|
Calendar: string;
|
|
56
56
|
Kanban: string;
|
|
57
|
-
"Select
|
|
57
|
+
"Select grouping field": string;
|
|
58
58
|
Media: string;
|
|
59
59
|
Markdown: string;
|
|
60
60
|
Wysiwyg: string;
|
|
@@ -98,6 +98,7 @@ declare const _default: {
|
|
|
98
98
|
Update: string;
|
|
99
99
|
View: string;
|
|
100
100
|
"View record": string;
|
|
101
|
+
Refresh: string;
|
|
101
102
|
"Data changes": string;
|
|
102
103
|
"Field name": string;
|
|
103
104
|
"Before change": string;
|
|
@@ -372,7 +373,7 @@ declare const _default: {
|
|
|
372
373
|
"Reference template": string;
|
|
373
374
|
"Create calendar block": string;
|
|
374
375
|
"Create kanban block": string;
|
|
375
|
-
"
|
|
376
|
+
"Grouping field": string;
|
|
376
377
|
"Tab name": string;
|
|
377
378
|
"Current record blocks": string;
|
|
378
379
|
"Popup message": string;
|
|
@@ -549,5 +550,10 @@ declare const _default: {
|
|
|
549
550
|
"Field component": string;
|
|
550
551
|
Subtable: string;
|
|
551
552
|
Subform: string;
|
|
553
|
+
"Regular expression": string;
|
|
554
|
+
"Enabled languages": string;
|
|
555
|
+
"View all plugins": string;
|
|
556
|
+
Print: string;
|
|
557
|
+
'Single select and radio fields can be used as the grouping field': string;
|
|
552
558
|
};
|
|
553
559
|
export default _default;
|
package/es/locale/en_US.js
CHANGED
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
"Select data source": "Select data source",
|
|
55
55
|
"Calendar": "Calendar",
|
|
56
56
|
"Kanban": "Kanban",
|
|
57
|
-
"Select
|
|
57
|
+
"Select grouping field": "Select grouping field",
|
|
58
58
|
"Media": "Media",
|
|
59
59
|
"Markdown": "Markdown",
|
|
60
60
|
"Wysiwyg": "Wysiwyg",
|
|
@@ -98,6 +98,7 @@ export default {
|
|
|
98
98
|
"Update": "Update",
|
|
99
99
|
"View": "View",
|
|
100
100
|
"View record": "View record",
|
|
101
|
+
"Refresh": "Refresh",
|
|
101
102
|
"Data changes": "Data changes",
|
|
102
103
|
"Field name": "Field name",
|
|
103
104
|
"Before change": "Before change",
|
|
@@ -372,7 +373,7 @@ export default {
|
|
|
372
373
|
"Reference template": "Reference template",
|
|
373
374
|
"Create calendar block": "Create calendar block",
|
|
374
375
|
"Create kanban block": "Create kanban block",
|
|
375
|
-
"
|
|
376
|
+
"Grouping field": "Grouping field",
|
|
376
377
|
"Tab name": "Tab name",
|
|
377
378
|
"Current record blocks": "Current record blocks",
|
|
378
379
|
"Popup message": "Popup message",
|
|
@@ -548,5 +549,10 @@ export default {
|
|
|
548
549
|
"Province/city/area name": "Province/city/area name",
|
|
549
550
|
"Field component": "Field component",
|
|
550
551
|
"Subtable": "Subtable",
|
|
551
|
-
"Subform": "Subform"
|
|
552
|
+
"Subform": "Subform",
|
|
553
|
+
"Regular expression": "Pattern",
|
|
554
|
+
"Enabled languages": "Enabled languages",
|
|
555
|
+
"View all plugins": "View all plugins",
|
|
556
|
+
"Print": "Print",
|
|
557
|
+
'Single select and radio fields can be used as the grouping field': 'Single select and radio fields can be used as the grouping field'
|
|
552
558
|
};
|
package/es/locale/zh_CN.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare const _default: {
|
|
|
54
54
|
"Select data source": string;
|
|
55
55
|
Calendar: string;
|
|
56
56
|
Kanban: string;
|
|
57
|
-
"Select
|
|
57
|
+
"Select grouping field": string;
|
|
58
58
|
Media: string;
|
|
59
59
|
Markdown: string;
|
|
60
60
|
Wysiwyg: string;
|
|
@@ -98,6 +98,7 @@ declare const _default: {
|
|
|
98
98
|
Update: string;
|
|
99
99
|
View: string;
|
|
100
100
|
"View record": string;
|
|
101
|
+
Refresh: string;
|
|
101
102
|
"Data changes": string;
|
|
102
103
|
"Field name": string;
|
|
103
104
|
"Before change": string;
|
|
@@ -232,6 +233,26 @@ declare const _default: {
|
|
|
232
233
|
"Label field": string;
|
|
233
234
|
"Default is the ID field": string;
|
|
234
235
|
"Set default sorting rules": string;
|
|
236
|
+
"Set validation rules": string;
|
|
237
|
+
"Max length": string;
|
|
238
|
+
"Min length": string;
|
|
239
|
+
Maximum: string;
|
|
240
|
+
Minimum: string;
|
|
241
|
+
"Max length must greater than min length": string;
|
|
242
|
+
"Min length must less than max length": string;
|
|
243
|
+
"Maximum must greater than minimum": string;
|
|
244
|
+
"Minimum must less than maximum": string;
|
|
245
|
+
"Validation rule": string;
|
|
246
|
+
"Add validation rule": string;
|
|
247
|
+
Format: string;
|
|
248
|
+
"Regular expression": string;
|
|
249
|
+
"Error message": string;
|
|
250
|
+
Length: string;
|
|
251
|
+
"The field value cannot be greater than ": string;
|
|
252
|
+
"The field value cannot be less than ": string;
|
|
253
|
+
"The field value is not an integer number": string;
|
|
254
|
+
"Set default value": string;
|
|
255
|
+
"Default value": string;
|
|
235
256
|
"is before": string;
|
|
236
257
|
"is after": string;
|
|
237
258
|
"is on or after": string;
|
|
@@ -389,7 +410,8 @@ declare const _default: {
|
|
|
389
410
|
'Reference template': string;
|
|
390
411
|
'Create calendar block': string;
|
|
391
412
|
'Create kanban block': string;
|
|
392
|
-
'
|
|
413
|
+
'Grouping field': string;
|
|
414
|
+
'Single select and radio fields can be used as the grouping field': string;
|
|
393
415
|
'Tab name': string;
|
|
394
416
|
'Current record blocks': string;
|
|
395
417
|
'Popup message': string;
|
|
@@ -539,6 +561,7 @@ declare const _default: {
|
|
|
539
561
|
'Dynamic value': string;
|
|
540
562
|
'Current user': string;
|
|
541
563
|
'Current record': string;
|
|
564
|
+
'Current time': string;
|
|
542
565
|
'Popup close method': string;
|
|
543
566
|
'Automatic close': string;
|
|
544
567
|
'Manually close': string;
|
|
@@ -573,5 +596,8 @@ declare const _default: {
|
|
|
573
596
|
"One to one (belongs to)": string;
|
|
574
597
|
"Use the same time zone (GMT) for all users": string;
|
|
575
598
|
"Province/city/area name": string;
|
|
599
|
+
"Enabled languages": string;
|
|
600
|
+
"View all plugins": string;
|
|
601
|
+
Print: string;
|
|
576
602
|
};
|
|
577
603
|
export default _default;
|
package/es/locale/zh_CN.js
CHANGED
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
"Select data source": "选择数据源",
|
|
55
55
|
"Calendar": "日历",
|
|
56
56
|
"Kanban": "看板",
|
|
57
|
-
"Select
|
|
57
|
+
"Select grouping field": "选择分组字段",
|
|
58
58
|
"Media": "多媒体",
|
|
59
59
|
"Markdown": "Markdown",
|
|
60
60
|
"Wysiwyg": "富文本",
|
|
@@ -98,6 +98,7 @@ export default {
|
|
|
98
98
|
"Update": "更新",
|
|
99
99
|
"View": "查看",
|
|
100
100
|
"View record": "查看数据",
|
|
101
|
+
"Refresh": "刷新",
|
|
101
102
|
"Data changes": "数据变更",
|
|
102
103
|
"Field name": "字段标识",
|
|
103
104
|
"Before change": "变更前",
|
|
@@ -232,6 +233,26 @@ export default {
|
|
|
232
233
|
"Label field": "标签字段",
|
|
233
234
|
"Default is the ID field": "默认为 ID 字段",
|
|
234
235
|
"Set default sorting rules": "设置排序规则",
|
|
236
|
+
"Set validation rules": "设置验证规则",
|
|
237
|
+
"Max length": "最大长度",
|
|
238
|
+
"Min length": "最小长度",
|
|
239
|
+
"Maximum": "最大值",
|
|
240
|
+
"Minimum": "最小值",
|
|
241
|
+
"Max length must greater than min length": "最大长度必须大于最小长度",
|
|
242
|
+
"Min length must less than max length": "最小长度必须小于最大长度",
|
|
243
|
+
"Maximum must greater than minimum": "最大值必须大于最小值",
|
|
244
|
+
"Minimum must less than maximum": "最小值必须小于最大值",
|
|
245
|
+
"Validation rule": "验证规则",
|
|
246
|
+
"Add validation rule": "新增验证规则",
|
|
247
|
+
"Format": "格式",
|
|
248
|
+
"Regular expression": "正则表达式",
|
|
249
|
+
"Error message": "错误消息",
|
|
250
|
+
"Length": "长度",
|
|
251
|
+
"The field value cannot be greater than ": "数值不能大于",
|
|
252
|
+
"The field value cannot be less than ": "数值不能小于",
|
|
253
|
+
"The field value is not an integer number": "数字不是整数",
|
|
254
|
+
"Set default value": "设置默认值",
|
|
255
|
+
"Default value": "默认值",
|
|
235
256
|
"is before": "早于",
|
|
236
257
|
"is after": "晚于",
|
|
237
258
|
"is on or after": "不早于",
|
|
@@ -389,7 +410,8 @@ export default {
|
|
|
389
410
|
'Reference template': '引用模板',
|
|
390
411
|
'Create calendar block': '创建日历区块',
|
|
391
412
|
'Create kanban block': '创建看板区块',
|
|
392
|
-
'
|
|
413
|
+
'Grouping field': '分组字段',
|
|
414
|
+
'Single select and radio fields can be used as the grouping field': '数据表的单选字段可以作为分组字段',
|
|
393
415
|
'Tab name': '标签名称',
|
|
394
416
|
'Current record blocks': '当前数据区块',
|
|
395
417
|
'Popup message': '弹窗提示消息',
|
|
@@ -540,6 +562,7 @@ export default {
|
|
|
540
562
|
'Dynamic value': '动态值',
|
|
541
563
|
'Current user': '当前用户',
|
|
542
564
|
'Current record': '当前记录',
|
|
565
|
+
'Current time': '当前时间',
|
|
543
566
|
'Popup close method': '弹窗关闭方式',
|
|
544
567
|
'Automatic close': '自动关闭',
|
|
545
568
|
'Manually close': '手动关闭',
|
|
@@ -574,5 +597,8 @@ export default {
|
|
|
574
597
|
"One to one (has one)": "一对一(has one)",
|
|
575
598
|
"One to one (belongs to)": "一对一(belongs to)",
|
|
576
599
|
"Use the same time zone (GMT) for all users": "所有用户使用同一时区 (格林尼治标准时间)",
|
|
577
|
-
"Province/city/area name": "省市区名称"
|
|
600
|
+
"Province/city/area name": "省市区名称",
|
|
601
|
+
"Enabled languages": "启用的语言",
|
|
602
|
+
"View all plugins": "查看所有插件",
|
|
603
|
+
"Print": "打印"
|
|
578
604
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _templateObject;
|
|
2
|
+
|
|
3
|
+
var _excluded = ["selected", "icon", "title", "subtitle"];
|
|
2
4
|
|
|
3
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
6
|
|
|
5
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
8
|
|
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
10
|
+
|
|
7
11
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
12
|
|
|
9
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -24,11 +28,13 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
24
28
|
|
|
25
29
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
26
30
|
|
|
27
|
-
import {
|
|
31
|
+
import { AppstoreOutlined, EllipsisOutlined } from '@ant-design/icons';
|
|
32
|
+
import { css } from '@emotion/css';
|
|
28
33
|
import { ConfigProvider, Menu, Spin, Tooltip } from 'antd';
|
|
29
34
|
import cls from 'classnames';
|
|
30
35
|
import { get } from 'lodash';
|
|
31
36
|
import React, { createContext, useContext } from 'react';
|
|
37
|
+
import { useTranslation } from 'react-i18next';
|
|
32
38
|
import { useAPIClient, useRequest } from '../api-client';
|
|
33
39
|
import { PluginManagerContext } from './context';
|
|
34
40
|
export var usePrefixCls = function usePrefixCls(tag, props) {
|
|
@@ -80,6 +86,9 @@ PluginManager.Toolbar = function (props) {
|
|
|
80
86
|
pinned = _splitItems2[0],
|
|
81
87
|
unpinned = _splitItems2[1];
|
|
82
88
|
|
|
89
|
+
var _useTranslation = useTranslation(),
|
|
90
|
+
t = _useTranslation.t;
|
|
91
|
+
|
|
83
92
|
return /*#__PURE__*/React.createElement("div", {
|
|
84
93
|
style: {
|
|
85
94
|
display: 'inline-block'
|
|
@@ -100,7 +109,7 @@ PluginManager.Toolbar = function (props) {
|
|
|
100
109
|
}), unpinned.length > 0 && /*#__PURE__*/React.createElement(Menu.SubMenu, {
|
|
101
110
|
popupClassName: 'pm-sub-menu',
|
|
102
111
|
key: 'more',
|
|
103
|
-
title: /*#__PURE__*/React.createElement(
|
|
112
|
+
title: /*#__PURE__*/React.createElement(EllipsisOutlined, null)
|
|
104
113
|
}, unpinned.map(function (item, index) {
|
|
105
114
|
var Action = get(components, item.component);
|
|
106
115
|
return Action && /*#__PURE__*/React.createElement(ToolbarItemContext.Provider, {
|
|
@@ -112,8 +121,8 @@ PluginManager.Toolbar = function (props) {
|
|
|
112
121
|
}), /*#__PURE__*/React.createElement(Menu.Item, {
|
|
113
122
|
key: 'plugins',
|
|
114
123
|
disabled: true,
|
|
115
|
-
icon: /*#__PURE__*/React.createElement(
|
|
116
|
-
},
|
|
124
|
+
icon: /*#__PURE__*/React.createElement(AppstoreOutlined, null)
|
|
125
|
+
}, t('View all plugins')))));
|
|
117
126
|
};
|
|
118
127
|
|
|
119
128
|
PluginManager.Toolbar.Item = function (props) {
|
|
@@ -122,14 +131,19 @@ PluginManager.Toolbar.Item = function (props) {
|
|
|
122
131
|
var selected = props.selected,
|
|
123
132
|
icon = props.icon,
|
|
124
133
|
title = props.title,
|
|
134
|
+
subtitle = props.subtitle,
|
|
125
135
|
others = _objectWithoutProperties(props, _excluded);
|
|
126
136
|
|
|
127
137
|
var prefix = usePrefixCls();
|
|
128
138
|
var className = cls(_defineProperty({}, "".concat(prefix, "-menu-item-selected"), selected));
|
|
129
139
|
|
|
130
140
|
if (item.pin) {
|
|
141
|
+
var subtitleComponent = subtitle && /*#__PURE__*/React.createElement("div", {
|
|
142
|
+
className: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 12px;\n color: #999;\n "])))
|
|
143
|
+
}, subtitle);
|
|
144
|
+
var titleComponent = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, title), subtitleComponent);
|
|
131
145
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
132
|
-
title:
|
|
146
|
+
title: titleComponent
|
|
133
147
|
}, /*#__PURE__*/React.createElement(Menu.Item, _objectSpread(_objectSpread({}, others), {}, {
|
|
134
148
|
className: className,
|
|
135
149
|
eventKey: item.component
|
|
@@ -52,7 +52,7 @@ export var ActionModal = observer(function (props) {
|
|
|
52
52
|
onCancel: function onCancel() {
|
|
53
53
|
return setVisible(false, true);
|
|
54
54
|
},
|
|
55
|
-
className: classNames(others.className, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.nb-action-popup {\n .ant-modal-body {\n background: #f0f2f5;\n }\n }\n "])))),
|
|
55
|
+
className: classNames(others.className, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.nb-action-popup {\n .ant-modal-header {\n display: none;\n }\n .ant-modal-body {\n padding-top: 16px;\n }\n .ant-modal-body {\n background: #f0f2f5;\n }\n .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n }\n }\n "])))),
|
|
56
56
|
footer: footerSchema ? /*#__PURE__*/React.createElement("div", {
|
|
57
57
|
className: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n width: 100%;\n .ant-btn {\n margin-right: 8px;\n }\n "])))
|
|
58
58
|
}, /*#__PURE__*/React.createElement(RecursionField, {
|
|
@@ -15,12 +15,17 @@ import { GeneralSchemaDesigner, SchemaSettings } from '../../../schema-settings'
|
|
|
15
15
|
import { useSchemaTemplate } from '../../../schema-templates';
|
|
16
16
|
|
|
17
17
|
var useOptions = function useOptions() {
|
|
18
|
+
var _fields$filter;
|
|
19
|
+
|
|
20
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'string';
|
|
18
21
|
var compile = useCompile();
|
|
19
22
|
|
|
20
23
|
var _useCollection = useCollection(),
|
|
21
24
|
fields = _useCollection.fields;
|
|
22
25
|
|
|
23
|
-
var options = fields === null || fields === void 0 ? void 0 : fields.
|
|
26
|
+
var options = fields === null || fields === void 0 ? void 0 : (_fields$filter = fields.filter(function (field) {
|
|
27
|
+
return field.type === type;
|
|
28
|
+
})) === null || _fields$filter === void 0 ? void 0 : _fields$filter.map(function (field) {
|
|
24
29
|
var _field$uiSchema;
|
|
25
30
|
|
|
26
31
|
return {
|
|
@@ -57,7 +62,6 @@ export var CalendarDesigner = function CalendarDesigner() {
|
|
|
57
62
|
|
|
58
63
|
var template = useSchemaTemplate();
|
|
59
64
|
var defaultFilter = (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xDecora = fieldSchema['x-decorator-props']) === null || _fieldSchema$xDecora === void 0 ? void 0 : (_fieldSchema$xDecora$ = _fieldSchema$xDecora.params) === null || _fieldSchema$xDecora$ === void 0 ? void 0 : _fieldSchema$xDecora$.filter) || {};
|
|
60
|
-
var options = useOptions();
|
|
61
65
|
var fieldNames = (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xDecora2 = fieldSchema['x-decorator-props']) === null || _fieldSchema$xDecora2 === void 0 ? void 0 : _fieldSchema$xDecora2['fieldNames']) || {};
|
|
62
66
|
var defaultResource = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xDecora3 = fieldSchema['x-decorator-props']) === null || _fieldSchema$xDecora3 === void 0 ? void 0 : _fieldSchema$xDecora3.resource;
|
|
63
67
|
return /*#__PURE__*/React.createElement(GeneralSchemaDesigner, {
|
|
@@ -66,14 +70,16 @@ export var CalendarDesigner = function CalendarDesigner() {
|
|
|
66
70
|
}, /*#__PURE__*/React.createElement(SchemaSettings.BlockTitleItem, null), /*#__PURE__*/React.createElement(SchemaSettings.SelectItem, {
|
|
67
71
|
title: t('Title field'),
|
|
68
72
|
value: fieldNames.title,
|
|
69
|
-
options:
|
|
73
|
+
options: useOptions('string'),
|
|
70
74
|
onChange: function onChange(title) {
|
|
71
75
|
var _schema;
|
|
72
76
|
|
|
73
77
|
var fieldNames = field.decoratorProps.fieldNames || {};
|
|
74
78
|
fieldNames['title'] = title;
|
|
75
79
|
field.decoratorProps.params = fieldNames;
|
|
76
|
-
fieldSchema['x-decorator-props']['params'] = fieldNames;
|
|
80
|
+
fieldSchema['x-decorator-props']['params'] = fieldNames; // Select切换option后value未按照预期切换,固增加以下代码
|
|
81
|
+
|
|
82
|
+
fieldSchema['x-decorator-props']['fieldNames'] = fieldNames;
|
|
77
83
|
service.refresh();
|
|
78
84
|
dn.emit('patch', {
|
|
79
85
|
schema: (_schema = {}, _defineProperty(_schema, 'x-uid', fieldSchema['x-uid']), _defineProperty(_schema, 'x-decorator-props', field.decoratorProps), _schema)
|
|
@@ -83,14 +89,14 @@ export var CalendarDesigner = function CalendarDesigner() {
|
|
|
83
89
|
}), /*#__PURE__*/React.createElement(SchemaSettings.SelectItem, {
|
|
84
90
|
title: t('Start date field'),
|
|
85
91
|
value: fieldNames.start,
|
|
86
|
-
options:
|
|
92
|
+
options: useOptions('date'),
|
|
87
93
|
onChange: function onChange(start) {
|
|
88
94
|
var _schema2;
|
|
89
95
|
|
|
90
96
|
var fieldNames = field.decoratorProps.fieldNames || {};
|
|
91
97
|
fieldNames['start'] = start;
|
|
92
|
-
field.decoratorProps.
|
|
93
|
-
fieldSchema['x-decorator-props']['
|
|
98
|
+
field.decoratorProps.fieldNames = fieldNames;
|
|
99
|
+
fieldSchema['x-decorator-props']['fieldNames'] = fieldNames;
|
|
94
100
|
service.refresh();
|
|
95
101
|
dn.emit('patch', {
|
|
96
102
|
schema: (_schema2 = {}, _defineProperty(_schema2, 'x-uid', fieldSchema['x-uid']), _defineProperty(_schema2, 'x-decorator-props', field.decoratorProps), _schema2)
|
|
@@ -100,14 +106,14 @@ export var CalendarDesigner = function CalendarDesigner() {
|
|
|
100
106
|
}), /*#__PURE__*/React.createElement(SchemaSettings.SelectItem, {
|
|
101
107
|
title: t('End date field'),
|
|
102
108
|
value: fieldNames.end,
|
|
103
|
-
options:
|
|
109
|
+
options: useOptions('date'),
|
|
104
110
|
onChange: function onChange(end) {
|
|
105
111
|
var _schema3;
|
|
106
112
|
|
|
107
113
|
var fieldNames = field.decoratorProps.fieldNames || {};
|
|
108
114
|
fieldNames['end'] = end;
|
|
109
|
-
field.decoratorProps.
|
|
110
|
-
fieldSchema['x-decorator-props']['
|
|
115
|
+
field.decoratorProps.fieldNames = fieldNames;
|
|
116
|
+
fieldSchema['x-decorator-props']['fieldNames'] = fieldNames;
|
|
111
117
|
service.refresh();
|
|
112
118
|
dn.emit('patch', {
|
|
113
119
|
schema: (_schema3 = {}, _defineProperty(_schema3, 'x-uid', fieldSchema['x-uid']), _defineProperty(_schema3, 'x-decorator-props', field.decoratorProps), _schema3)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { DatePickerProps as AntdDatePickerProps, RangePickerProps as AntdRangePickerProps } from 'antd/lib/date-picker';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare type ComposedDatePicker = React.FC<AntdDatePickerProps> & {
|
|
4
4
|
RangePicker?: React.FC<AntdRangePickerProps>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DatePicker as AntdDatePicker } from 'antd';
|
|
2
1
|
import { connect, mapProps, mapReadPretty } from '@formily/react';
|
|
2
|
+
import { DatePicker as AntdDatePicker } from 'antd';
|
|
3
3
|
import { ReadPretty } from './ReadPretty';
|
|
4
4
|
import { mapDateFormat } from './util';
|
|
5
5
|
export var DatePicker = connect(AntdDatePicker, mapProps(mapDateFormat()), mapReadPretty(ReadPretty.DatePicker));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { usePrefixCls } from '@formily/antd/lib/__builtins__';
|
|
2
2
|
import { isArr } from '@formily/shared';
|
|
3
|
+
import { getDefaultFormat, str2moment } from '@nocobase/utils/client';
|
|
3
4
|
import cls from 'classnames';
|
|
4
5
|
import moment from 'moment';
|
|
5
6
|
import React from 'react';
|
|
6
|
-
import { getDefaultFormat, str2moment } from './util';
|
|
7
7
|
export var ReadPretty = function ReadPretty() {
|
|
8
8
|
return null;
|
|
9
9
|
};
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import type { DatePickerProps } from 'antd/lib/date-picker';
|
|
2
1
|
import moment from 'moment';
|
|
3
|
-
export interface Str2momentOptions {
|
|
4
|
-
gmt?: boolean;
|
|
5
|
-
picker?: 'year' | 'month' | 'week' | 'quarter';
|
|
6
|
-
}
|
|
7
|
-
export declare const str2moment: (value?: string | string[], options?: Str2momentOptions) => any;
|
|
8
2
|
export interface Moment2strOptions {
|
|
9
3
|
showTime?: boolean;
|
|
10
4
|
gmt?: boolean;
|
|
11
5
|
picker?: 'year' | 'month' | 'week' | 'quarter';
|
|
12
6
|
}
|
|
13
7
|
export declare const moment2str: (value?: moment.Moment | moment.Moment[], options?: Moment2strOptions) => string | string[] | moment.Moment | moment.Moment[];
|
|
14
|
-
export declare const getDefaultFormat: (props: DatePickerProps & {
|
|
15
|
-
dateFormat: string;
|
|
16
|
-
timeFormat: string;
|
|
17
|
-
}) => string | import("rc-picker/lib/interface").CustomFormat<moment.Moment> | (string | import("rc-picker/lib/interface").CustomFormat<moment.Moment>)[];
|
|
18
8
|
export declare const mapDateFormat: () => (props: any) => any;
|