@pisell/materials 1.0.37 → 1.0.38
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -159
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -155
- package/dist/umd/materials.min.css +1 -1
- package/dist/umd/materials.min.js +1 -1
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/es/components/Pagination/index.d.ts +1 -2
- package/es/components/Pagination/index.js +1 -44
- package/es/components/Pagination/index.less +1 -8
- package/es/components/date-picker/index.js +2 -12
- package/es/components/page/index.js +72 -156
- package/es/components/table/Actions/Filter/FilterItem/index.js +2 -3
- package/es/components/table/Actions/Sort/index.d.ts +3 -3
- package/es/components/table/Actions/Sort/index.js +17 -53
- package/es/components/table/Actions/index.js +5 -6
- package/es/components/table/Actions/index.less +0 -2
- package/es/components/table/BasicTable/index.js +48 -32
- package/es/components/table/Table/fields/index.d.ts +0 -29
- package/es/components/table/Table/fields/index.js +2 -5
- package/es/components/table/Table/fields/link/Show/index.js +2 -5
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +3 -13
- package/es/components/table/Table/index.js +4 -4
- package/es/components/table/Table/tableConfig/body/CellContent/index.less +1 -0
- package/es/components/table/Table/tableConfig/body/CellProvider/index.less +3 -0
- package/es/components/table/Table/tableConfig/header/CellProvider/index.less +1 -1
- package/es/components/table/index.js +4 -21
- package/es/components/table/model.js +1 -1
- package/es/index.d.ts +63 -64
- package/es/index.js +43 -41
- package/lib/components/Pagination/index.d.ts +1 -2
- package/lib/components/Pagination/index.js +0 -34
- package/lib/components/Pagination/index.less +1 -8
- package/lib/components/date-picker/index.js +8 -2
- package/lib/components/page/index.js +72 -147
- package/lib/components/table/Actions/Filter/FilterItem/index.js +2 -2
- package/lib/components/table/Actions/Sort/index.d.ts +3 -3
- package/lib/components/table/Actions/Sort/index.js +2 -47
- package/lib/components/table/Actions/index.js +2 -2
- package/lib/components/table/Actions/index.less +0 -2
- package/lib/components/table/BasicTable/index.js +25 -31
- package/lib/components/table/Table/fields/index.d.ts +0 -29
- package/lib/components/table/Table/fields/index.js +2 -5
- package/lib/components/table/Table/fields/link/Show/index.js +2 -11
- package/lib/components/table/Table/fields/rangePicker/Edit/index.js +1 -6
- package/lib/components/table/Table/index.js +6 -4
- package/lib/components/table/Table/tableConfig/body/CellContent/index.less +1 -0
- package/lib/components/table/Table/tableConfig/body/CellProvider/index.less +3 -0
- package/lib/components/table/Table/tableConfig/header/CellProvider/index.less +1 -1
- package/lib/components/table/index.js +3 -21
- package/lib/components/table/model.js +1 -1
- package/lib/index.d.ts +63 -64
- package/lib/index.js +0 -3
- package/lowcode/filter/meta.ts +137 -0
- package/package.json +2 -2
- package/es/components/table/Table/fields/search/Config/index.d.ts +0 -3
- package/es/components/table/Table/fields/search/Config/index.js +0 -4
- package/es/components/table/Table/fields/search/Edit/index.d.ts +0 -4
- package/es/components/table/Table/fields/search/Edit/index.js +0 -28
- package/es/components/table/Table/fields/search/Edit/index.less +0 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -4
- package/es/components/table/Table/fields/search/Show/index.js +0 -16
- package/es/components/table/Table/fields/search/Show/index.less +0 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -3
- package/es/components/table/Table/fields/search/Sort/index.js +0 -4
- package/es/components/table/Table/fields/search/index.d.ts +0 -14
- package/es/components/table/Table/fields/search/index.js +0 -17
- package/es/components/table/Table/fields/search/index.less +0 -0
- package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -3
- package/lib/components/table/Table/fields/search/Config/index.js +0 -28
- package/lib/components/table/Table/fields/search/Edit/index.d.ts +0 -4
- package/lib/components/table/Table/fields/search/Edit/index.js +0 -51
- package/lib/components/table/Table/fields/search/Edit/index.less +0 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -4
- package/lib/components/table/Table/fields/search/Show/index.js +0 -37
- package/lib/components/table/Table/fields/search/Show/index.less +0 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -3
- package/lib/components/table/Table/fields/search/Sort/index.js +0 -28
- package/lib/components/table/Table/fields/search/index.d.ts +0 -14
- package/lib/components/table/Table/fields/search/index.js +0 -51
- package/lib/components/table/Table/fields/search/index.less +0 -0
|
@@ -84,18 +84,6 @@ export declare const fieldMaps: {
|
|
|
84
84
|
sort: () => JSX.Element;
|
|
85
85
|
show: (props: import("./types").FieldPropsType) => JSX.Element;
|
|
86
86
|
};
|
|
87
|
-
search: {
|
|
88
|
-
field: {
|
|
89
|
-
field_icon: string;
|
|
90
|
-
field_name: string;
|
|
91
|
-
field_type: string;
|
|
92
|
-
default_value: string;
|
|
93
|
-
};
|
|
94
|
-
config: () => JSX.Element;
|
|
95
|
-
edit: import("react").ForwardRefExoticComponent<Omit<import("./types").EditPropsType, "ref"> & import("react").RefAttributes<any>>;
|
|
96
|
-
sort: () => JSX.Element;
|
|
97
|
-
show: (props: import("./types").FieldPropsType) => JSX.Element;
|
|
98
|
-
};
|
|
99
87
|
};
|
|
100
88
|
export declare const fieldList: ({
|
|
101
89
|
field_icon: string;
|
|
@@ -132,11 +120,6 @@ export declare const fieldList: ({
|
|
|
132
120
|
field_name: string;
|
|
133
121
|
field_type: string;
|
|
134
122
|
default_value: string;
|
|
135
|
-
} | {
|
|
136
|
-
field_icon: string;
|
|
137
|
-
field_name: string;
|
|
138
|
-
field_type: string;
|
|
139
|
-
default_value: string;
|
|
140
123
|
})[];
|
|
141
124
|
export declare const getFieldByType: (type: string) => {
|
|
142
125
|
field: {
|
|
@@ -235,17 +218,5 @@ declare const _default: {
|
|
|
235
218
|
sort: () => JSX.Element;
|
|
236
219
|
show: (props: import("./types").FieldPropsType) => JSX.Element;
|
|
237
220
|
};
|
|
238
|
-
search: {
|
|
239
|
-
field: {
|
|
240
|
-
field_icon: string;
|
|
241
|
-
field_name: string;
|
|
242
|
-
field_type: string;
|
|
243
|
-
default_value: string;
|
|
244
|
-
};
|
|
245
|
-
config: () => JSX.Element;
|
|
246
|
-
edit: import("react").ForwardRefExoticComponent<Omit<import("./types").EditPropsType, "ref"> & import("react").RefAttributes<any>>;
|
|
247
|
-
sort: () => JSX.Element;
|
|
248
|
-
show: (props: import("./types").FieldPropsType) => JSX.Element;
|
|
249
|
-
};
|
|
250
221
|
};
|
|
251
222
|
export default _default;
|
|
@@ -5,7 +5,6 @@ import select from "./select";
|
|
|
5
5
|
import text from "./text";
|
|
6
6
|
import image from "./image";
|
|
7
7
|
import rangePicker from "./rangePicker";
|
|
8
|
-
import search from "./search";
|
|
9
8
|
export var fieldMaps = {
|
|
10
9
|
text: text,
|
|
11
10
|
link: link,
|
|
@@ -13,8 +12,7 @@ export var fieldMaps = {
|
|
|
13
12
|
date: date,
|
|
14
13
|
select: select,
|
|
15
14
|
image: image,
|
|
16
|
-
rangePicker: rangePicker
|
|
17
|
-
search: search
|
|
15
|
+
rangePicker: rangePicker
|
|
18
16
|
};
|
|
19
17
|
export var fieldList = Object.values(fieldMaps).map(function (d) {
|
|
20
18
|
return d.field;
|
|
@@ -29,6 +27,5 @@ export default {
|
|
|
29
27
|
date: date,
|
|
30
28
|
select: select,
|
|
31
29
|
image: image,
|
|
32
|
-
rangePicker: rangePicker
|
|
33
|
-
search: search
|
|
30
|
+
rangePicker: rangePicker
|
|
34
31
|
};
|
|
@@ -15,7 +15,7 @@ var Show = function Show(props) {
|
|
|
15
15
|
if (isString(record[dataIndex])) {
|
|
16
16
|
return {
|
|
17
17
|
content: record[dataIndex],
|
|
18
|
-
url:
|
|
18
|
+
url: ""
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
return record[dataIndex];
|
|
@@ -23,10 +23,7 @@ var Show = function Show(props) {
|
|
|
23
23
|
return /*#__PURE__*/React.createElement("a", {
|
|
24
24
|
className: "",
|
|
25
25
|
href: field.url,
|
|
26
|
-
target: "_blank"
|
|
27
|
-
onClick: function onClick(e) {
|
|
28
|
-
return e.stopPropagation();
|
|
29
|
-
}
|
|
26
|
+
target: "_blank"
|
|
30
27
|
}, field.content);
|
|
31
28
|
};
|
|
32
29
|
export default Show;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["value", "onChange", "onPressEnter", "onBlur", "style", "bordered", "presets", "showTime", "format"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
2
|
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; }
|
|
5
3
|
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
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
-
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; }
|
|
10
|
-
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; }
|
|
11
7
|
import { isArr, isBoolean, isString } from "@pisell/utils";
|
|
12
8
|
import dayjs from "dayjs";
|
|
13
9
|
import { forwardRef, useMemo } from "react";
|
|
@@ -21,9 +17,7 @@ var Edit = function Edit(props, ref) {
|
|
|
21
17
|
style = props.style,
|
|
22
18
|
bordered = props.bordered,
|
|
23
19
|
presets = props.presets,
|
|
24
|
-
showTime = props.showTime
|
|
25
|
-
format = props.format,
|
|
26
|
-
others = _objectWithoutProperties(props, _excluded);
|
|
20
|
+
showTime = props.showTime;
|
|
27
21
|
var dayjsVal = useMemo(function () {
|
|
28
22
|
if (isString(value)) {
|
|
29
23
|
return dayjs(value);
|
|
@@ -41,9 +35,6 @@ var Edit = function Edit(props, ref) {
|
|
|
41
35
|
var rangePresets = [{
|
|
42
36
|
label: "Today",
|
|
43
37
|
value: [dayjs().startOf('day'), dayjs().endOf('day')]
|
|
44
|
-
}, {
|
|
45
|
-
label: "Yesterday",
|
|
46
|
-
value: [dayjs().add(-1, "d").startOf('day'), dayjs().add(-1, "d").endOf('day')]
|
|
47
38
|
}, {
|
|
48
39
|
label: "Last 3 Days",
|
|
49
40
|
value: [dayjs().add(-3, "d").startOf('day'), dayjs().endOf('day')]
|
|
@@ -66,8 +57,7 @@ var Edit = function Edit(props, ref) {
|
|
|
66
57
|
}
|
|
67
58
|
return true;
|
|
68
59
|
}, [showTime]);
|
|
69
|
-
return /*#__PURE__*/React.createElement(RangePicker,
|
|
70
|
-
format: format,
|
|
60
|
+
return /*#__PURE__*/React.createElement(RangePicker, {
|
|
71
61
|
showTime: _showTime,
|
|
72
62
|
presets: presets || rangePresets,
|
|
73
63
|
ref: ref,
|
|
@@ -92,6 +82,6 @@ var Edit = function Edit(props, ref) {
|
|
|
92
82
|
}
|
|
93
83
|
}, dom);
|
|
94
84
|
}
|
|
95
|
-
})
|
|
85
|
+
});
|
|
96
86
|
};
|
|
97
87
|
export default /*#__PURE__*/forwardRef(Edit);
|
|
@@ -87,11 +87,11 @@ var GridViewTable = function GridViewTable(_ref) {
|
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
}, [defaultColumns]);
|
|
90
|
-
var showTotal = useCallback(function (total, range
|
|
90
|
+
var showTotal = useCallback(function (total, range) {
|
|
91
91
|
var start = range[0] - 1;
|
|
92
|
-
var _current = start / pageSize + 1;
|
|
93
|
-
return "Page ".concat(_current, " of ").concat(Math.ceil(total / pageSize));
|
|
94
|
-
}, []);
|
|
92
|
+
var _current = start / tableProps.pagination.pageSize + 1;
|
|
93
|
+
return "Page ".concat(_current, " of ").concat(Math.ceil(total / tableProps.pagination.pageSize));
|
|
94
|
+
}, [tableProps.pagination.pageSize]);
|
|
95
95
|
var _paginationConfig = useMemo(function () {
|
|
96
96
|
if (tableProps.pagination === false) {
|
|
97
97
|
return false;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
.cell-provider {
|
|
2
|
+
position: relative;
|
|
3
|
+
cursor: pointer;
|
|
2
4
|
width: 100%;
|
|
3
5
|
height: 100%;
|
|
4
6
|
display: flex;
|
|
@@ -6,6 +8,7 @@
|
|
|
6
8
|
justify-content: center;
|
|
7
9
|
border-radius: 4px;
|
|
8
10
|
padding: 12px;
|
|
11
|
+
// cursor: pointer;
|
|
9
12
|
|
|
10
13
|
&.focus {
|
|
11
14
|
box-shadow: var(--theme-color) 0px 0px 0px 1px !important;
|
|
@@ -36,7 +36,7 @@ var GridView = Provider(function (props) {
|
|
|
36
36
|
buttons = props.buttons,
|
|
37
37
|
title = props.title,
|
|
38
38
|
summary = props.summary,
|
|
39
|
-
|
|
39
|
+
onValuesChange = props.onValuesChange,
|
|
40
40
|
other = _objectWithoutProperties(props, _excluded);
|
|
41
41
|
useEffect(function () {
|
|
42
42
|
modal.dispatch({
|
|
@@ -62,32 +62,15 @@ var GridView = Provider(function (props) {
|
|
|
62
62
|
});
|
|
63
63
|
}, [filter]);
|
|
64
64
|
var initialValues = useMemo(function () {
|
|
65
|
-
return (
|
|
65
|
+
return (filter.list || []).reduce(function (p, c) {
|
|
66
66
|
var _c$other;
|
|
67
67
|
return _objectSpread(_objectSpread({}, p), {}, _defineProperty({}, c.name, c === null || c === void 0 ? void 0 : (_c$other = c.other) === null || _c$other === void 0 ? void 0 : _c$other.defaultValue));
|
|
68
68
|
}, {});
|
|
69
|
-
}, [filter
|
|
69
|
+
}, [filter.list]);
|
|
70
70
|
return /*#__PURE__*/React.createElement(Form, {
|
|
71
71
|
form: form,
|
|
72
72
|
layout: "vertical",
|
|
73
|
-
onValuesChange:
|
|
74
|
-
var _values = _objectSpread({}, values);
|
|
75
|
-
var currentKey = Object.keys(cur)[0];
|
|
76
|
-
if (currentKey !== "pagination") {
|
|
77
|
-
_values.pagination = _objectSpread(_objectSpread({}, _values.pagination), {}, {
|
|
78
|
-
page: 1
|
|
79
|
-
});
|
|
80
|
-
} else {
|
|
81
|
-
var _other$pagination;
|
|
82
|
-
if ((dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > (other === null || other === void 0 ? void 0 : (_other$pagination = other.pagination) === null || _other$pagination === void 0 ? void 0 : _other$pagination.pageSize)) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
form.setFieldsValue({
|
|
87
|
-
pagination: _values.pagination
|
|
88
|
-
});
|
|
89
|
-
_onValuesChange(cur, values);
|
|
90
|
-
},
|
|
73
|
+
onValuesChange: onValuesChange,
|
|
91
74
|
initialValues: initialValues
|
|
92
75
|
}, /*#__PURE__*/React.createElement("div", {
|
|
93
76
|
className: "materials-grid",
|
package/es/index.d.ts
CHANGED
|
@@ -1,64 +1,63 @@
|
|
|
1
|
-
export { Affix } from
|
|
2
|
-
export { Anchor } from
|
|
3
|
-
export { Alert } from
|
|
4
|
-
export { Avatar } from
|
|
5
|
-
export { Badge } from
|
|
6
|
-
export { Breadcrumb } from
|
|
7
|
-
export { Card } from
|
|
8
|
-
export { Collapse } from
|
|
9
|
-
export { Carousel } from
|
|
10
|
-
export { Col } from
|
|
11
|
-
export { Descriptions } from
|
|
12
|
-
export { Divider } from
|
|
13
|
-
export { Empty } from
|
|
14
|
-
export { Grid } from
|
|
15
|
-
export { Image } from
|
|
16
|
-
export { InputNumber } from
|
|
17
|
-
export { List } from
|
|
18
|
-
export { message } from
|
|
19
|
-
export { Menu } from
|
|
20
|
-
export { Mentions } from
|
|
21
|
-
export { Statistic } from
|
|
22
|
-
export { notification } from
|
|
23
|
-
export { Pagination } from
|
|
24
|
-
export { Popconfirm } from
|
|
25
|
-
export { Popover } from
|
|
26
|
-
export { Progress } from
|
|
27
|
-
export { Rate } from
|
|
28
|
-
export { Result } from
|
|
29
|
-
export { Row } from
|
|
30
|
-
export { Space } from
|
|
31
|
-
export { Spin } from
|
|
32
|
-
export { Steps } from
|
|
33
|
-
export { Switch } from
|
|
34
|
-
export { Transfer } from
|
|
35
|
-
export { Tree } from
|
|
36
|
-
export { Tag } from
|
|
37
|
-
export { Timeline } from
|
|
38
|
-
export { Tooltip } from
|
|
39
|
-
export { Typography } from
|
|
40
|
-
export { version } from
|
|
41
|
-
export { default as Skeleton } from
|
|
42
|
-
export { default as Checkbox } from
|
|
43
|
-
export { default as Button } from
|
|
44
|
-
export { default as Radio } from
|
|
45
|
-
export { default as Upload } from
|
|
46
|
-
export { default as
|
|
47
|
-
export { default as
|
|
48
|
-
export { default as
|
|
49
|
-
export { default as
|
|
50
|
-
export { default as
|
|
51
|
-
export { default as
|
|
52
|
-
export { default as
|
|
53
|
-
export { default as
|
|
54
|
-
export { default as
|
|
55
|
-
export { default as
|
|
56
|
-
export { default as
|
|
57
|
-
export { default as
|
|
58
|
-
export { default as
|
|
59
|
-
export { default as
|
|
60
|
-
export { default as
|
|
61
|
-
export { default as
|
|
62
|
-
export { default as
|
|
63
|
-
export { default as
|
|
64
|
-
export { default as Page } from "./components/page";
|
|
1
|
+
export { Affix } from 'antd';
|
|
2
|
+
export { Anchor } from 'antd';
|
|
3
|
+
export { Alert } from 'antd';
|
|
4
|
+
export { Avatar } from 'antd';
|
|
5
|
+
export { Badge } from 'antd';
|
|
6
|
+
export { Breadcrumb } from 'antd';
|
|
7
|
+
export { Card } from 'antd';
|
|
8
|
+
export { Collapse } from 'antd';
|
|
9
|
+
export { Carousel } from 'antd';
|
|
10
|
+
export { Col } from 'antd';
|
|
11
|
+
export { Descriptions } from 'antd';
|
|
12
|
+
export { Divider } from 'antd';
|
|
13
|
+
export { Empty } from 'antd';
|
|
14
|
+
export { Grid } from 'antd';
|
|
15
|
+
export { Image } from 'antd';
|
|
16
|
+
export { InputNumber } from 'antd';
|
|
17
|
+
export { List } from 'antd';
|
|
18
|
+
export { message } from 'antd';
|
|
19
|
+
export { Menu } from 'antd';
|
|
20
|
+
export { Mentions } from 'antd';
|
|
21
|
+
export { Statistic } from 'antd';
|
|
22
|
+
export { notification } from 'antd';
|
|
23
|
+
export { Pagination } from 'antd';
|
|
24
|
+
export { Popconfirm } from 'antd';
|
|
25
|
+
export { Popover } from 'antd';
|
|
26
|
+
export { Progress } from 'antd';
|
|
27
|
+
export { Rate } from 'antd';
|
|
28
|
+
export { Result } from 'antd';
|
|
29
|
+
export { Row } from 'antd';
|
|
30
|
+
export { Space } from 'antd';
|
|
31
|
+
export { Spin } from 'antd';
|
|
32
|
+
export { Steps } from 'antd';
|
|
33
|
+
export { Switch } from 'antd';
|
|
34
|
+
export { Transfer } from 'antd';
|
|
35
|
+
export { Tree } from 'antd';
|
|
36
|
+
export { Tag } from 'antd';
|
|
37
|
+
export { Timeline } from 'antd';
|
|
38
|
+
export { Tooltip } from 'antd';
|
|
39
|
+
export { Typography } from 'antd';
|
|
40
|
+
export { version } from 'antd';
|
|
41
|
+
export { default as Skeleton } from './components/skeleton';
|
|
42
|
+
export { default as Checkbox } from './components/checkbox';
|
|
43
|
+
export { default as Button } from './components/button';
|
|
44
|
+
export { default as Radio } from './components/radio';
|
|
45
|
+
export { default as Upload } from './components/upload';
|
|
46
|
+
export { default as Form } from './components/form';
|
|
47
|
+
export { default as Dropdown } from './components/dropdown';
|
|
48
|
+
export { default as Calendar } from './components/calendar';
|
|
49
|
+
export { default as ConfigProvider } from './components/config-provider';
|
|
50
|
+
export { default as DatePicker } from './components/date-picker';
|
|
51
|
+
export { default as Tabs } from './components/tabs';
|
|
52
|
+
export { default as TimePicker } from './components/time-picker';
|
|
53
|
+
export { default as Slider } from './components/slider';
|
|
54
|
+
export { default as Table } from './components/table';
|
|
55
|
+
export { default as Modal } from './components/modal';
|
|
56
|
+
export { default as Drawer } from './components/drawer';
|
|
57
|
+
export { default as TreeSelect } from './components/tree-select';
|
|
58
|
+
export { default as Input } from './components/input';
|
|
59
|
+
export { default as Select } from './components/select';
|
|
60
|
+
export { default as Cascader } from './components/cascader';
|
|
61
|
+
export { default as AutoComplete } from './components/auto-complete';
|
|
62
|
+
export { default as Div } from './components/div';
|
|
63
|
+
export { default as Page } from './components/page';
|
package/es/index.js
CHANGED
|
@@ -1,74 +1,76 @@
|
|
|
1
|
-
export { Affix } from
|
|
2
|
-
export { Anchor } from
|
|
3
|
-
export { Alert } from
|
|
4
|
-
export { Avatar } from
|
|
5
|
-
export { Badge } from
|
|
6
|
-
export { Breadcrumb } from
|
|
7
|
-
export { Card } from
|
|
8
|
-
export { Collapse } from
|
|
9
|
-
export { Carousel } from
|
|
1
|
+
export { Affix } from 'antd';
|
|
2
|
+
export { Anchor } from 'antd';
|
|
3
|
+
export { Alert } from 'antd';
|
|
4
|
+
export { Avatar } from 'antd';
|
|
5
|
+
export { Badge } from 'antd';
|
|
6
|
+
export { Breadcrumb } from 'antd';
|
|
7
|
+
export { Card } from 'antd';
|
|
8
|
+
export { Collapse } from 'antd';
|
|
9
|
+
export { Carousel } from 'antd';
|
|
10
10
|
|
|
11
11
|
// export { Cascader } from 'antd';
|
|
12
12
|
|
|
13
13
|
// export { Checkbox } from 'antd';
|
|
14
14
|
|
|
15
|
-
export { Col } from
|
|
16
|
-
export { Descriptions } from
|
|
17
|
-
export { Divider } from
|
|
15
|
+
export { Col } from 'antd';
|
|
16
|
+
export { Descriptions } from 'antd';
|
|
17
|
+
export { Divider } from 'antd';
|
|
18
18
|
|
|
19
19
|
// export { Drawer } from 'antd';
|
|
20
20
|
|
|
21
|
-
export { Empty } from
|
|
22
|
-
export { Grid } from
|
|
21
|
+
export { Empty } from 'antd';
|
|
22
|
+
export { Grid } from 'antd';
|
|
23
23
|
|
|
24
24
|
// export { Input } from 'antd';
|
|
25
25
|
|
|
26
|
-
export { Image } from
|
|
27
|
-
export { InputNumber } from
|
|
28
|
-
export { List } from
|
|
29
|
-
export { message } from
|
|
30
|
-
export { Menu } from
|
|
31
|
-
export { Mentions } from
|
|
32
|
-
export { Statistic } from
|
|
33
|
-
export { notification } from
|
|
26
|
+
export { Image } from 'antd';
|
|
27
|
+
export { InputNumber } from 'antd';
|
|
28
|
+
export { List } from 'antd';
|
|
29
|
+
export { message } from 'antd';
|
|
30
|
+
export { Menu } from 'antd';
|
|
31
|
+
export { Mentions } from 'antd';
|
|
32
|
+
export { Statistic } from 'antd';
|
|
33
|
+
export { notification } from 'antd';
|
|
34
34
|
|
|
35
35
|
// export { PageHeader } from 'antd';
|
|
36
36
|
|
|
37
|
-
export { Pagination } from
|
|
38
|
-
export { Popconfirm } from
|
|
39
|
-
export { Popover } from
|
|
40
|
-
export { Progress } from
|
|
37
|
+
export { Pagination } from 'antd';
|
|
38
|
+
export { Popconfirm } from 'antd';
|
|
39
|
+
export { Popover } from 'antd';
|
|
40
|
+
export { Progress } from 'antd';
|
|
41
41
|
|
|
42
42
|
// export { Radio } from 'antd';
|
|
43
43
|
|
|
44
|
-
export { Rate } from
|
|
45
|
-
export { Result } from
|
|
46
|
-
export { Row } from
|
|
44
|
+
export { Rate } from 'antd';
|
|
45
|
+
export { Result } from 'antd';
|
|
46
|
+
export { Row } from 'antd';
|
|
47
47
|
|
|
48
48
|
// export { Skeleton } from 'antd';
|
|
49
49
|
|
|
50
|
-
export { Space } from
|
|
51
|
-
export { Spin } from
|
|
52
|
-
export { Steps } from
|
|
53
|
-
export { Switch } from
|
|
54
|
-
export { Transfer } from
|
|
55
|
-
export { Tree } from
|
|
50
|
+
export { Space } from 'antd';
|
|
51
|
+
export { Spin } from 'antd';
|
|
52
|
+
export { Steps } from 'antd';
|
|
53
|
+
export { Switch } from 'antd';
|
|
54
|
+
export { Transfer } from 'antd';
|
|
55
|
+
export { Tree } from 'antd';
|
|
56
56
|
|
|
57
57
|
// export { TreeSelect } from 'antd';
|
|
58
58
|
|
|
59
59
|
// export { Tabs } from 'antd';
|
|
60
60
|
|
|
61
|
-
export { Tag } from
|
|
62
|
-
export { Timeline } from
|
|
63
|
-
export { Tooltip } from
|
|
64
|
-
export { Typography } from
|
|
65
|
-
export { version } from
|
|
61
|
+
export { Tag } from 'antd';
|
|
62
|
+
export { Timeline } from 'antd';
|
|
63
|
+
export { Tooltip } from 'antd';
|
|
64
|
+
export { Typography } from 'antd';
|
|
65
|
+
export { version } from 'antd';
|
|
66
66
|
export { default as Skeleton } from "./components/skeleton";
|
|
67
67
|
export { default as Checkbox } from "./components/checkbox";
|
|
68
68
|
export { default as Button } from "./components/button";
|
|
69
69
|
export { default as Radio } from "./components/radio";
|
|
70
70
|
export { default as Upload } from "./components/upload";
|
|
71
|
-
|
|
71
|
+
|
|
72
|
+
// export { default as Icon } from './components/icon';
|
|
73
|
+
|
|
72
74
|
export { default as Form } from "./components/form";
|
|
73
75
|
export { default as Dropdown } from "./components/dropdown";
|
|
74
76
|
export { default as Calendar } from "./components/calendar";
|
|
@@ -5,10 +5,9 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "page" | "
|
|
8
|
+
itemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
12
12
|
declare const Pagination: (props: PaginationProps) => JSX.Element | null;
|
|
13
13
|
export default Pagination;
|
|
14
|
-
export declare const FormPagination: ({ value, onChange, page, pageSize, ...other }: any) => JSX.Element;
|
|
@@ -29,7 +29,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/Pagination/index.tsx
|
|
30
30
|
var Pagination_exports = {};
|
|
31
31
|
__export(Pagination_exports, {
|
|
32
|
-
FormPagination: () => FormPagination,
|
|
33
32
|
default: () => Pagination_default,
|
|
34
33
|
paginationConfig: () => paginationConfig
|
|
35
34
|
});
|
|
@@ -119,40 +118,7 @@ var MiniPagination = (props) => {
|
|
|
119
118
|
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "right") }, /* @__PURE__ */ import_react.default.createElement(import_icon.ArrowRight, { className: "paginator-page-btn-right-icon" }))
|
|
120
119
|
));
|
|
121
120
|
};
|
|
122
|
-
var FormPagination = ({
|
|
123
|
-
value = {},
|
|
124
|
-
onChange,
|
|
125
|
-
page,
|
|
126
|
-
pageSize,
|
|
127
|
-
...other
|
|
128
|
-
}) => {
|
|
129
|
-
const [_p, _setP] = (0, import_react.useState)(1);
|
|
130
|
-
const [_ps, _setPs] = (0, import_react.useState)(10);
|
|
131
|
-
const _onChange = (p, ps) => {
|
|
132
|
-
onChange && onChange({
|
|
133
|
-
page: ps === _ps ? p : 1,
|
|
134
|
-
size: ps
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
(0, import_react.useEffect)(() => {
|
|
138
|
-
const _page = (value == null ? void 0 : value.page) || 1;
|
|
139
|
-
const _size = (value == null ? void 0 : value.size) || 10;
|
|
140
|
-
_setP(_page);
|
|
141
|
-
_setPs(_size);
|
|
142
|
-
}, [value]);
|
|
143
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
144
|
-
Pagination,
|
|
145
|
-
{
|
|
146
|
-
...other,
|
|
147
|
-
pageSize: _ps,
|
|
148
|
-
current: _p,
|
|
149
|
-
onChange: _onChange,
|
|
150
|
-
onShowSizeChange: _onChange
|
|
151
|
-
}
|
|
152
|
-
));
|
|
153
|
-
};
|
|
154
121
|
// Annotate the CommonJS export names for ESM import in node:
|
|
155
122
|
0 && (module.exports = {
|
|
156
|
-
FormPagination,
|
|
157
123
|
paginationConfig
|
|
158
124
|
});
|
|
@@ -55,14 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.pisell-lowcode-pagination-disabled {
|
|
59
|
-
cursor: not-allowed;
|
|
60
|
-
color: rgba(0,0,0,.25);
|
|
61
|
-
.paginator-page-btn {
|
|
62
|
-
cursor: not-allowed;
|
|
63
|
-
color: rgba(0,0,0,.25);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
58
|
+
.pisell-lowcode-pagination-disabled {}
|
|
66
59
|
|
|
67
60
|
.pisell-lowcode-pagination-item-active:hover {
|
|
68
61
|
border-color: #D0D5DD !important;
|
|
@@ -35,16 +35,22 @@ module.exports = __toCommonJS(date_picker_exports);
|
|
|
35
35
|
var import_antd = require("antd");
|
|
36
36
|
var import_hoc = require("../../utils/hoc");
|
|
37
37
|
var import_dayjs = __toESM(require("dayjs"));
|
|
38
|
-
var import_date_picker = require("@pisell/date-picker");
|
|
39
38
|
var import_localeData = __toESM(require("dayjs/plugin/localeData"));
|
|
40
39
|
var import_weekday = __toESM(require("dayjs/plugin/weekday"));
|
|
41
40
|
import_dayjs.default.extend(import_weekday.default);
|
|
42
41
|
import_dayjs.default.extend(import_localeData.default);
|
|
42
|
+
var OriginalRangePicker = import_antd.DatePicker.RangePicker;
|
|
43
43
|
var DatePicker = (0, import_hoc.withMomentProps)(import_antd.DatePicker, [
|
|
44
44
|
"defaultPickerValue",
|
|
45
45
|
"defaultValue",
|
|
46
46
|
"showTime.defaultValue",
|
|
47
47
|
"value"
|
|
48
48
|
]);
|
|
49
|
-
|
|
49
|
+
var RangePicker = (0, import_hoc.withMomentProps)(OriginalRangePicker, [
|
|
50
|
+
"defaultPickerValue",
|
|
51
|
+
"defaultValue",
|
|
52
|
+
"showTime.defaultValue",
|
|
53
|
+
"value"
|
|
54
|
+
]);
|
|
55
|
+
DatePicker.RangePicker = RangePicker;
|
|
50
56
|
var date_picker_default = DatePicker;
|