@teamix/pro 1.1.7 → 1.1.8
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/dist/212.js +2 -2
- package/dist/pro.css +1 -1
- package/dist/pro.js +1963 -658
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/form/Components/ProField/index.d.ts +8 -0
- package/es/form/ProForm/index.js +9 -2
- package/es/form/ProForm/index.scss +33 -6
- package/es/form/SchemaForm/adapterType.js +2 -0
- package/es/form/SchemaForm/index.js +6 -3
- package/es/form/SchemaForm/initializeArrayIcon.js +7 -2
- package/es/form/SchemaForm/initializeFormButton.js +35 -38
- package/es/form/SchemaForm/initializeFormStep.d.ts +3 -1
- package/es/form/SchemaForm/initializeFormStep.js +21 -7
- package/es/form/SchemaForm/initializeProField.js +2 -0
- package/es/form/index.d.ts +2 -1
- package/es/form/index.js +2 -1
- package/es/form/typing.d.ts +1 -1
- package/es/index.d.ts +3 -3
- package/es/index.js +3 -3
- package/es/nocode/index.scss +1 -4
- package/es/page-header/index.d.ts +2 -0
- package/es/page-header/index.js +22 -6
- package/es/page-header/index.scss +4 -0
- package/es/table/components/ToolBar/FilterColumnIcon.js +77 -17
- package/es/table/components/ToolBar/index.scss +10 -0
- package/es/table/index.js +68 -36
- package/es/table/typing.d.ts +3 -1
- package/lib/form/Components/ProField/index.d.ts +8 -0
- package/lib/form/ProForm/index.js +10 -2
- package/lib/form/ProForm/index.scss +33 -6
- package/lib/form/SchemaForm/adapterType.js +2 -0
- package/lib/form/SchemaForm/index.js +7 -3
- package/lib/form/SchemaForm/initializeArrayIcon.js +7 -2
- package/lib/form/SchemaForm/initializeFormButton.js +35 -38
- package/lib/form/SchemaForm/initializeFormStep.d.ts +3 -1
- package/lib/form/SchemaForm/initializeFormStep.js +21 -7
- package/lib/form/SchemaForm/initializeProField.js +2 -0
- package/lib/form/index.d.ts +2 -1
- package/lib/form/index.js +35 -0
- package/lib/form/typing.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/nocode/index.scss +1 -4
- package/lib/page-header/index.d.ts +2 -0
- package/lib/page-header/index.js +23 -6
- package/lib/page-header/index.scss +4 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.js +75 -16
- package/lib/table/components/ToolBar/index.scss +10 -0
- package/lib/table/index.js +67 -37
- package/lib/table/typing.d.ts +3 -1
- package/package.json +1 -1
@@ -139,6 +139,14 @@ declare const _default: React.ForwardRefExoticComponent<(Partial<import("@teamix
|
|
139
139
|
type: "search";
|
140
140
|
} & {
|
141
141
|
children?: React.ReactNode;
|
142
|
+
}> | Partial<import("@teamix/pro-field/lib/components/FieldTagFilter").IProFieldTagFilter & {
|
143
|
+
type: "tagFilter";
|
144
|
+
} & {
|
145
|
+
children?: React.ReactNode;
|
146
|
+
}> | Partial<import("@teamix/pro-field/lib/components/FieldMenuSelect").IProFieldMenuSelect & {
|
147
|
+
type: "menuSelect";
|
148
|
+
} & {
|
149
|
+
children?: React.ReactNode;
|
142
150
|
}> | Pick<Partial<{
|
143
151
|
[key: string]: any;
|
144
152
|
type: string;
|
package/es/form/ProForm/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["form", "initialValues", "schema", "scope", "components", "children", "layout", "labelAlign", "wrapperAlign", "labelCol", "wrapperCol", "breakpoints", "onChange", "onSubmit", "onSubmitFailed"];
|
1
|
+
var _excluded = ["form", "initialValues", "schema", "scope", "components", "children", "layout", "labelAlign", "wrapperAlign", "labelCol", "wrapperCol", "breakpoints", "onChange", "onSubmit", "onSubmitFailed", "className"];
|
2
2
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
4
4
|
|
@@ -11,6 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
12
12
|
|
13
13
|
import React, { memo, useEffect, useMemo } from 'react';
|
14
|
+
import cls from 'classnames';
|
14
15
|
import { createForm, onFormValuesChange } from '@formily/core';
|
15
16
|
import { toJS } from '@formily/reactive';
|
16
17
|
import { Form, FormLayout } from '@teamix/formily';
|
@@ -35,11 +36,13 @@ var ProForm = /*#__PURE__*/memo(function (_ref) {
|
|
35
36
|
onChange = _ref.onChange,
|
36
37
|
onSubmit = _ref.onSubmit,
|
37
38
|
onSubmitFailed = _ref.onSubmitFailed,
|
39
|
+
className = _ref.className,
|
38
40
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
39
41
|
|
40
42
|
var form = useMemo(function () {
|
41
43
|
return outerForm || createForm();
|
42
44
|
}, []);
|
45
|
+
var prefix = 'teamix-pro-form';
|
43
46
|
var getTeamixLayout = useMemo(function () {
|
44
47
|
return breakpoints ? {
|
45
48
|
breakpoints: breakpoints,
|
@@ -83,7 +86,11 @@ var ProForm = /*#__PURE__*/memo(function (_ref) {
|
|
83
86
|
return outerForm === false ?
|
84
87
|
/*#__PURE__*/
|
85
88
|
// 特殊表单,无需渲染form实例,例如FormDialog等
|
86
|
-
React.createElement(FormLayout, _objectSpread(_objectSpread({
|
89
|
+
React.createElement(FormLayout, _objectSpread(_objectSpread({
|
90
|
+
className: cls(prefix, className)
|
91
|
+
}, otherProps), getTeamixLayout), formChildren) : /*#__PURE__*/React.createElement(Form, _objectSpread(_objectSpread(_objectSpread({
|
92
|
+
className: cls(prefix, className)
|
93
|
+
}, otherProps), getTeamixLayout), {}, {
|
87
94
|
form: form,
|
88
95
|
onAutoSubmit: onSubmit,
|
89
96
|
onAutoSubmitFailed: onSubmitFailed
|
@@ -1,6 +1,13 @@
|
|
1
1
|
@import '~@alifd/next/lib/core/index-noreset.scss';
|
2
2
|
|
3
3
|
$form-item-cls: #{$css-prefix}formily-item;
|
4
|
+
$teamix-pro-form: teamix-pro-form;
|
5
|
+
|
6
|
+
.#{$teamix-pro-form} {
|
7
|
+
.next-affix {
|
8
|
+
top: auto !important; // todo 待pro-page-containe修复后移除
|
9
|
+
}
|
10
|
+
}
|
4
11
|
|
5
12
|
// FormItem 样式重写
|
6
13
|
.#{$form-item-cls} {
|
@@ -38,6 +45,7 @@ $form-item-cls: #{$css-prefix}formily-item;
|
|
38
45
|
.teamix-pro-field-radio,
|
39
46
|
.teamix-pro-field-switch,
|
40
47
|
.teamix-pro-field-colorradio,
|
48
|
+
.teamix-pro-field-range,
|
41
49
|
.#{$css-prefix}btn-text {
|
42
50
|
line-height: var(--form-element-medium-height, 32px);
|
43
51
|
}
|
@@ -91,6 +99,9 @@ $form-item-cls: #{$css-prefix}formily-item;
|
|
91
99
|
.#{$form-item-cls}-extra {
|
92
100
|
color: var(--color-text1-8, #848484);
|
93
101
|
}
|
102
|
+
.#{$form-item-cls}-error-help {
|
103
|
+
color: var(--color-error-5, #e84738);
|
104
|
+
}
|
94
105
|
|
95
106
|
// 前缀 后缀
|
96
107
|
.#{$form-item-cls}-control {
|
@@ -224,14 +235,16 @@ $inset-font-weight-medium: calc(
|
|
224
235
|
}
|
225
236
|
}
|
226
237
|
|
227
|
-
.#{$
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
238
|
+
.#{$teamix-pro-form}-button-affix.#{$css-prefix}affix {
|
239
|
+
left: 0;
|
240
|
+
right: 0;
|
241
|
+
width: 100% !important;
|
242
|
+
height: 56px !important;
|
243
|
+
padding-left: 24px;
|
244
|
+
background: var(--color-fill1-1, #fff) !important;
|
232
245
|
box-shadow: 0 -1px 5px 0 rgba(38, 38, 38, 0.14);
|
233
246
|
.#{$css-prefix}formily-button-group {
|
234
|
-
margin-
|
247
|
+
margin-bottom: 12px;
|
235
248
|
}
|
236
249
|
}
|
237
250
|
|
@@ -252,3 +265,17 @@ $inset-font-weight-medium: calc(
|
|
252
265
|
}
|
253
266
|
}
|
254
267
|
}
|
268
|
+
|
269
|
+
// ArrayItems
|
270
|
+
.#{$css-prefix}formily-array-items {
|
271
|
+
.#{$css-prefix}formily-grid-layout {
|
272
|
+
> div:last-child {
|
273
|
+
display: flex;
|
274
|
+
justify-content: flex-end;
|
275
|
+
align-items: center;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
.#{$css-prefix}formily-array-base-remove {
|
279
|
+
cursor: pointer;
|
280
|
+
}
|
281
|
+
}
|
@@ -24,6 +24,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
24
24
|
|
25
25
|
import React, { memo, useCallback, useMemo } from 'react';
|
26
26
|
import { createSchemaField } from '@formily/react';
|
27
|
+
import { Affix } from '@alicloudfe/components';
|
27
28
|
import { Upload, FormLayout, FormItem, ArrayCollapse, ArrayCards, ArrayItems, ArrayTable, Space, FormGrid, FormTab, FormCollapse, FormStep, Editable, FormDialog, FormDrawer, FormButtonGroup, Submit, Reset } from '@teamix/formily';
|
28
29
|
import ProField from '../Components/ProField';
|
29
30
|
import { EditableDialog, EditableDrawer, EditablePopover } from '../Components/Editable';
|
@@ -55,7 +56,6 @@ export default /*#__PURE__*/memo(function (_ref) {
|
|
55
56
|
var SchemaField = useMemo(function () {
|
56
57
|
return createSchemaField({
|
57
58
|
components: {
|
58
|
-
Upload: Upload,
|
59
59
|
ProField: ProField,
|
60
60
|
FormLayout: FormLayout,
|
61
61
|
FormItem: FormItem,
|
@@ -79,7 +79,9 @@ export default /*#__PURE__*/memo(function (_ref) {
|
|
79
79
|
EditablePopover: EditablePopover,
|
80
80
|
FormGroup: FormGroup,
|
81
81
|
Search: Search,
|
82
|
-
QueryFilter: QueryFilter
|
82
|
+
QueryFilter: QueryFilter,
|
83
|
+
Upload: Upload,
|
84
|
+
Affix: Affix
|
83
85
|
}
|
84
86
|
});
|
85
87
|
}, []); // 合并schema中request的scope
|
@@ -250,7 +252,8 @@ export default /*#__PURE__*/memo(function (_ref) {
|
|
250
252
|
type: 'object',
|
251
253
|
properties: formatSchema(schema)
|
252
254
|
};
|
253
|
-
}, [formatSchema, schema]);
|
255
|
+
}, [formatSchema, schema]); // console.log(schemaPro);
|
256
|
+
|
254
257
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SchemaField, {
|
255
258
|
schema: schemaPro,
|
256
259
|
components: components,
|
@@ -1,5 +1,6 @@
|
|
1
1
|
var _excluded = ["component", "props"],
|
2
|
-
_excluded2 = ["icon"]
|
2
|
+
_excluded2 = ["icon"],
|
3
|
+
_excluded3 = ["text", "type"];
|
3
4
|
|
4
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
5
6
|
|
@@ -44,7 +45,11 @@ var initialize = function initialize(item) {
|
|
44
45
|
return _objectSpread(_objectSpread({}, other), {}, {
|
45
46
|
component: component,
|
46
47
|
props: _objectSpread({
|
47
|
-
icon: function icon(
|
48
|
+
icon: function icon(_ref) {
|
49
|
+
var text = _ref.text,
|
50
|
+
type = _ref.type,
|
51
|
+
props = _objectWithoutProperties(_ref, _excluded3);
|
52
|
+
|
48
53
|
return /*#__PURE__*/React.createElement(TeamixIcon, _objectSpread(_objectSpread({}, props), {}, {
|
49
54
|
type: iconType,
|
50
55
|
size: "small"
|
@@ -1,5 +1,8 @@
|
|
1
|
-
var _excluded = ["
|
2
|
-
|
1
|
+
var _excluded = ["sticky"];
|
2
|
+
|
3
|
+
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; }
|
4
|
+
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
3
6
|
|
4
7
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
5
8
|
|
@@ -7,10 +10,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
7
10
|
|
8
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; }
|
9
12
|
|
10
|
-
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; }
|
11
|
-
|
12
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
13
|
-
|
14
13
|
var buttonTextMap = {
|
15
14
|
Submit: '提交',
|
16
15
|
Reset: '重置'
|
@@ -18,58 +17,56 @@ var buttonTextMap = {
|
|
18
17
|
|
19
18
|
var initializeButton = function initializeButton(item) {
|
20
19
|
var component = item.component,
|
21
|
-
props = item.props,
|
22
|
-
|
23
|
-
|
24
|
-
return _objectSpread({
|
20
|
+
_item$props = item.props,
|
21
|
+
props = _item$props === void 0 ? {} : _item$props;
|
22
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
25
23
|
component: component,
|
26
24
|
props: _objectSpread({
|
27
25
|
children: buttonTextMap[component]
|
28
26
|
}, props)
|
29
|
-
}
|
27
|
+
});
|
30
28
|
};
|
31
29
|
|
32
30
|
var initialize = function initialize(item) {
|
33
|
-
var
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
var component = item.component,
|
32
|
+
_item$props2 = item.props,
|
33
|
+
props = _item$props2 === void 0 ? {} : _item$props2,
|
34
|
+
_item$decoratorProps = item.decoratorProps,
|
35
|
+
decoratorProps = _item$decoratorProps === void 0 ? {} : _item$decoratorProps;
|
37
36
|
|
38
37
|
var sticky = props.sticky,
|
39
|
-
|
40
|
-
|
41
|
-
var alignProps = align ? {
|
42
|
-
align: align
|
43
|
-
} : {};
|
44
|
-
var gutterProps = gutter ? {
|
45
|
-
gutter: gutter
|
46
|
-
} : {};
|
38
|
+
otherProps = _objectWithoutProperties(props, _excluded); // 单个按钮
|
39
|
+
|
47
40
|
|
48
41
|
if (component && ['Submit', 'Reset'].includes(component)) {
|
49
42
|
return initializeButton(item);
|
50
43
|
}
|
51
44
|
|
52
|
-
var
|
53
|
-
title: ' '
|
45
|
+
var commonMode = _objectSpread(_objectSpread({
|
46
|
+
title: ' '
|
47
|
+
}, item), {}, {
|
48
|
+
component: component,
|
49
|
+
props: otherProps,
|
54
50
|
decorator: 'FormButtonGroup.FormItem',
|
55
|
-
decoratorProps: {
|
51
|
+
decoratorProps: _objectSpread({
|
56
52
|
inset: false
|
57
|
-
},
|
58
|
-
|
59
|
-
|
53
|
+
}, decoratorProps)
|
54
|
+
}); // 吸底模式
|
55
|
+
|
60
56
|
|
61
57
|
if (sticky) {
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
58
|
+
return {
|
59
|
+
component: 'Affix',
|
60
|
+
props: {
|
61
|
+
offsetBottom: 0,
|
62
|
+
className: 'teamix-pro-form-button-affix'
|
63
|
+
},
|
64
|
+
children: [commonMode]
|
67
65
|
};
|
68
|
-
}
|
66
|
+
} // 普通模式
|
67
|
+
|
69
68
|
|
70
|
-
return
|
71
|
-
component: component
|
72
|
-
}, decoratorTemp), otherProps);
|
69
|
+
return commonMode;
|
73
70
|
};
|
74
71
|
|
75
72
|
export default initialize;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
var _excluded = ["props", "children", "title"],
|
2
|
-
_excluded2 = ["
|
2
|
+
_excluded2 = ["col", "style"];
|
3
3
|
|
4
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
5
5
|
|
@@ -11,6 +11,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
11
11
|
|
12
12
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
13
13
|
|
14
|
+
var getWidth = function getWidth(col, length) {
|
15
|
+
var newCol = col !== null && col !== void 0 ? col : (length + 1) * 4;
|
16
|
+
newCol = newCol > 24 ? 24 : newCol;
|
17
|
+
var width = 100 / 24 * newCol;
|
18
|
+
return "".concat(width, "%");
|
19
|
+
};
|
20
|
+
|
14
21
|
var initializeStepPane = function initializeStepPane(item) {
|
15
22
|
var _item$props = item.props,
|
16
23
|
props = _item$props === void 0 ? {} : _item$props,
|
@@ -32,17 +39,24 @@ var initialize = function initialize(item) {
|
|
32
39
|
var _item$props2 = item.props,
|
33
40
|
props = _item$props2 === void 0 ? {} : _item$props2,
|
34
41
|
_item$children2 = item.children,
|
35
|
-
children = _item$children2 === void 0 ? [] : _item$children2
|
36
|
-
otherProps = _objectWithoutProperties(item, _excluded2);
|
42
|
+
children = _item$children2 === void 0 ? [] : _item$children2;
|
37
43
|
|
38
|
-
|
44
|
+
var col = props.col,
|
45
|
+
style = props.style,
|
46
|
+
otherProps = _objectWithoutProperties(props, _excluded2);
|
47
|
+
|
48
|
+
var width = getWidth(col, children.length);
|
49
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
39
50
|
props: _objectSpread({
|
40
|
-
labelPlacement: 'hoz'
|
41
|
-
|
51
|
+
labelPlacement: 'hoz',
|
52
|
+
style: _objectSpread({
|
53
|
+
width: width
|
54
|
+
}, style)
|
55
|
+
}, otherProps),
|
42
56
|
children: children.map(function (item) {
|
43
57
|
return initializeStepPane(item);
|
44
58
|
})
|
45
|
-
}
|
59
|
+
});
|
46
60
|
};
|
47
61
|
|
48
62
|
export default initialize;
|
package/es/form/index.d.ts
CHANGED
@@ -14,7 +14,8 @@ export * as formilyTeamix from '@teamix/formily';
|
|
14
14
|
*/
|
15
15
|
import { createForm, registerValidateRules as registerRules, registerValidateFormats as registerFormats, registerValidateLocale, setValidateLanguage } from '@formily/core';
|
16
16
|
import { FormConsumer } from '@formily/react';
|
17
|
-
|
17
|
+
import { FormDialog, FormDrawer, FormStep, FormTab, FormCollapse } from '@teamix/formily';
|
18
|
+
export { createForm, FormConsumer, FormDialog, FormDrawer, FormStep, FormTab, FormCollapse, registerRules, registerFormats, registerValidateLocale, setValidateLanguage, };
|
18
19
|
/**
|
19
20
|
* 导出 Filter 组件
|
20
21
|
*/
|
package/es/form/index.js
CHANGED
@@ -20,7 +20,8 @@ export { _formilyTeamix as formilyTeamix };
|
|
20
20
|
|
21
21
|
import { createForm, registerValidateRules as registerRules, registerValidateFormats as registerFormats, registerValidateLocale, setValidateLanguage } from '@formily/core';
|
22
22
|
import { FormConsumer } from '@formily/react';
|
23
|
-
|
23
|
+
import { FormDialog, FormDrawer, FormStep, FormTab, FormCollapse } from '@teamix/formily';
|
24
|
+
export { createForm, FormConsumer, FormDialog, FormDrawer, FormStep, FormTab, FormCollapse, registerRules, registerFormats, registerValidateLocale, setValidateLanguage };
|
24
25
|
/**
|
25
26
|
* 导出 Filter 组件
|
26
27
|
*/
|
package/es/form/typing.d.ts
CHANGED
@@ -6,7 +6,7 @@ export interface anyObject {
|
|
6
6
|
[propName: string]: any;
|
7
7
|
}
|
8
8
|
declare type FieldDisplayTypes = 'none' | 'hidden' | 'visible';
|
9
|
-
export declare type IBaseComponent = 'Input' | 'Password' | 'TextArea' | 'NumberPicker' | 'Percent' | 'Money' | 'Select' | 'MultipleSelect' | 'TreeSelect' | 'Cascader' | 'MultipleCascader' | 'ArbitraryCascader' | 'Radio' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'DateTimePicker' | 'WeekPicker' | 'MonthPicker' | 'YearPicker' | 'QuarterPicker' | 'DateRangePicker' | 'TimeRangePicker' | 'DateTimeRangePicker' | 'WeekRangePicker' | 'MonthRangePicker' | 'YearRangePicker' | 'QuarterRangePicker' | 'Transfer' | 'Upload' | 'ColorPicker' | 'ColorRadio' | 'IconPicker' | 'JsonInput';
|
9
|
+
export declare type IBaseComponent = 'Input' | 'Password' | 'TextArea' | 'NumberPicker' | 'Percent' | 'Money' | 'Select' | 'MultipleSelect' | 'TreeSelect' | 'Cascader' | 'MultipleCascader' | 'ArbitraryCascader' | 'Radio' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'DateTimePicker' | 'WeekPicker' | 'MonthPicker' | 'YearPicker' | 'QuarterPicker' | 'DateRangePicker' | 'TimeRangePicker' | 'DateTimeRangePicker' | 'WeekRangePicker' | 'MonthRangePicker' | 'YearRangePicker' | 'QuarterRangePicker' | 'Transfer' | 'Upload' | 'ColorPicker' | 'ColorRadio' | 'IconPicker' | 'JsonInput' | 'TagPicker' | 'Range' | 'Search';
|
10
10
|
export declare type IButtonComponent = 'Submit' | 'Reset';
|
11
11
|
export declare type IComboComponent = 'ArrayCards' | 'ArrayCards.Addition' | 'ArrayCards.Remove' | 'ArrayCards.MoveUp' | 'ArrayCards.MoveDown' | 'ArrayCards.Index' | 'ArrayCollapse' | 'ArrayCollapse.CollapsePanel' | 'ArrayCollapse.Addition' | 'ArrayCollapse.Remove' | 'ArrayCollapse.MoveUp' | 'ArrayCollapse.MoveDown' | 'ArrayCollapse.Index' | 'ArrayTable' | 'ArrayTable.Column' | 'ArrayTable.SortHandle' | 'ArrayTable.Addition' | 'ArrayTable.Remove' | 'ArrayTable.MoveDown' | 'ArrayTable.MoveUp' | 'ArrayTable.Index' | 'ArrayItems' | 'ArrayItems.Item' | 'ArrayItems.SortHandle' | 'ArrayItems.Addition' | 'ArrayItems.Remove' | 'ArrayItems.MoveDown' | 'ArrayItems.MoveUp' | 'ArrayItems.Index' | 'Editable' | 'Editable.Popover' | 'Editable.Dialog' | 'Editable.Drawer';
|
12
12
|
export declare type ILayoutComponent = 'FormFlex' | 'FormGrid' | 'FormGroup' | 'FormGroup.GroupPanel' | 'Search' | 'Search.SearchPanel' | 'FormTab' | 'FormTab.TabPane' | 'FormStep' | 'FormStep.StepPane' | 'FormCollapse' | 'FormCollapse.CollapsePanel' | 'FormButtonGroup' | 'FormDialog' | 'FormDrawer' | 'FormDialog.Footer' | 'FormDrawer.Footer';
|
package/es/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import ProActions from './actions';
|
2
2
|
import ProCard from './card';
|
3
3
|
import ProField from './field';
|
4
4
|
import ProForm from './form';
|
@@ -20,5 +20,5 @@ export * from './page-container';
|
|
20
20
|
export * from './page-header';
|
21
21
|
export * from './skeleton';
|
22
22
|
export * from './table';
|
23
|
-
declare const version = "1.1.
|
24
|
-
export { version,
|
23
|
+
declare const version = "1.1.7";
|
24
|
+
export { version, ProActions, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, hooks, nocode, templates, utils, };
|
package/es/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import ProActions from './actions';
|
2
2
|
import ProCard from './card';
|
3
3
|
import ProField from './field';
|
4
4
|
import ProForm from './form';
|
@@ -24,6 +24,6 @@ export * from './page-container';
|
|
24
24
|
export * from './page-header';
|
25
25
|
export * from './skeleton';
|
26
26
|
export * from './table';
|
27
|
-
var version = '1.1.
|
28
|
-
export { version,
|
27
|
+
var version = '1.1.7';
|
28
|
+
export { version, ProActions, ProCard, ProField, ProForm, ProInfo, // ProLayout,
|
29
29
|
ProPageContainer, ProPageHeader, ProSkeleton, ProTable, hooks, nocode, templates, utils };
|
package/es/nocode/index.scss
CHANGED
@@ -17,13 +17,10 @@
|
|
17
17
|
border: 1px solid var(--color-line1-1, #eaeaea);
|
18
18
|
|
19
19
|
&-component {
|
20
|
+
position: relative;
|
20
21
|
padding: 20px;
|
21
22
|
flex-grow: 1;
|
22
23
|
border-right: 1px solid var(--color-line1-1, #eaeaea);
|
23
|
-
|
24
|
-
&>.teamix-pro-page-container {
|
25
|
-
padding: 0;
|
26
|
-
}
|
27
24
|
}
|
28
25
|
|
29
26
|
&-configurator {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IActionButton } from '../actions';
|
3
|
+
import { ProInfoProps } from '../info';
|
3
4
|
import './index.scss';
|
4
5
|
export interface BreadcrumbItem {
|
5
6
|
link?: string;
|
@@ -38,6 +39,7 @@ export declare type PageHeaderProps = {
|
|
38
39
|
maxActions?: number;
|
39
40
|
tags?: TagItem[];
|
40
41
|
data?: DataItem[];
|
42
|
+
info?: ProInfoProps | React.ReactNode;
|
41
43
|
} & React.HTMLAttributes<HTMLElement>;
|
42
44
|
declare const PageHeader: React.FC<PageHeaderProps>;
|
43
45
|
export default PageHeader;
|
package/es/page-header/index.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
var _excluded = ["title", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "maxActions", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "children", "className", "style"];
|
2
|
-
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
4
|
-
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
1
|
+
var _excluded = ["title", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "maxActions", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "info", "children", "className", "style"];
|
6
2
|
|
7
3
|
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; }
|
8
4
|
|
9
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
10
6
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
8
|
+
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
10
|
+
|
11
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; }
|
12
12
|
|
13
13
|
import React from 'react';
|
@@ -18,6 +18,7 @@ import { Breadcrumb, Tag } from '@alicloudfe/components';
|
|
18
18
|
import { baseClass } from '@teamix/utils';
|
19
19
|
import { ActionGroup } from '../actions';
|
20
20
|
import { BaseSkeleton } from '../skeleton';
|
21
|
+
import ProInfo from '../info';
|
21
22
|
import './index.scss';
|
22
23
|
var cls = baseClass('teamix-pro-page-header');
|
23
24
|
|
@@ -140,6 +141,18 @@ var renderData = function renderData(data) {
|
|
140
141
|
}));
|
141
142
|
};
|
142
143
|
|
144
|
+
var renderInfo = function renderInfo(info) {
|
145
|
+
// @ts-ignore
|
146
|
+
if (info === null || info === void 0 ? void 0 : info.columns) {
|
147
|
+
// @ts-ignore
|
148
|
+
return /*#__PURE__*/React.createElement(ProInfo, _objectSpread({
|
149
|
+
type: "header"
|
150
|
+
}, info));
|
151
|
+
}
|
152
|
+
|
153
|
+
return info;
|
154
|
+
};
|
155
|
+
|
143
156
|
var PageHeader = function PageHeader(props) {
|
144
157
|
var title = props.title,
|
145
158
|
description = props.description,
|
@@ -158,6 +171,7 @@ var PageHeader = function PageHeader(props) {
|
|
158
171
|
breadcrumb = props.breadcrumb,
|
159
172
|
tags = props.tags,
|
160
173
|
data = props.data,
|
174
|
+
info = props.info,
|
161
175
|
children = props.children,
|
162
176
|
className = props.className,
|
163
177
|
style = props.style,
|
@@ -227,7 +241,9 @@ var PageHeader = function PageHeader(props) {
|
|
227
241
|
className: cls('data')
|
228
242
|
}, renderData(data)), /*#__PURE__*/React.createElement("section", {
|
229
243
|
className: cls('operation')
|
230
|
-
}, !loading && renderOperations(operation, maxActions)))),
|
244
|
+
}, !loading && renderOperations(operation, maxActions)))), info && !loading && /*#__PURE__*/React.createElement("section", {
|
245
|
+
className: classnames(cls('section'), cls('info'))
|
246
|
+
}, renderInfo(info)), children);
|
231
247
|
};
|
232
248
|
|
233
249
|
export default PageHeader;
|