@pisell/materials 1.0.113 → 1.0.114
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/designer.html +2 -2
- package/build/lowcode/index.html +2 -2
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +12 -12
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +13 -13
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +16 -16
- package/es/components/page/index.js +131 -131
- package/es/components/qrcode/index.d.ts +3 -0
- package/es/components/qrcode/index.js +44 -0
- package/es/components/table/BasicTable/index.js +3 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -2
- package/lib/components/page/index.js +129 -129
- package/lib/components/qrcode/index.d.ts +3 -0
- package/lib/components/qrcode/index.js +68 -0
- package/lib/components/table/BasicTable/index.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +12 -12
- package/package.json +3 -3
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
|
@@ -5,146 +5,146 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
5
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; }
|
|
6
6
|
import React from "react";
|
|
7
7
|
import ConfigProvider from "../config-provider";
|
|
8
|
-
import { AdapterDayjs } from
|
|
9
|
-
import { LocalizationProvider, createTheme, ThemeProvider } from
|
|
8
|
+
import { AdapterDayjs } from "@pisell/date-picker/es/AdapterDayjs";
|
|
9
|
+
import { LocalizationProvider, createTheme, ThemeProvider } from "@pisell/date-picker";
|
|
10
10
|
var theme = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
components: {
|
|
12
|
+
Table: {
|
|
13
|
+
colorFillContent: "#EAECF0",
|
|
14
|
+
colorFillSecondary: "#F2F4F7",
|
|
15
|
+
colorBorderSecondary: "#EAECF0",
|
|
16
|
+
colorFillAlter: "#F9FAFB",
|
|
17
|
+
controlItemBgHover: "#F9FAFB",
|
|
18
|
+
colorTextHeading: "#475467",
|
|
19
|
+
colorTextDescription: "#667085",
|
|
20
|
+
colorText: "#101828",
|
|
21
|
+
controlHeight: 32,
|
|
22
|
+
padding: 24,
|
|
23
|
+
margin: 16
|
|
24
24
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
25
|
+
Button: {
|
|
26
|
+
borderRadiusSM: 6,
|
|
27
|
+
borderRadiusLG: 9,
|
|
28
|
+
borderRadius: 8,
|
|
29
|
+
controlHeight: 36,
|
|
30
|
+
colorBgContainerDisabled: "#F2F4F7",
|
|
31
|
+
colorBgTextHover: "#F9FAFB",
|
|
32
|
+
colorBorder: "#D0D5DD",
|
|
33
|
+
colorError: "#D92D20",
|
|
34
|
+
colorErrorActive: "#D92D20",
|
|
35
|
+
colorErrorHover: "#B42318",
|
|
36
|
+
colorErrorBg: "#FEF3F2",
|
|
37
|
+
colorErrorBorderHover: "#FDA29B",
|
|
38
|
+
colorErrorOutline: "rgba(217, 45, 32, 0.06)",
|
|
39
|
+
colorLink: "#175CD3",
|
|
40
|
+
colorLinkActive: "#194185",
|
|
41
|
+
colorLinkHover: "#1849A9",
|
|
42
|
+
colorPrimaryActive: "#7f56d9",
|
|
43
|
+
colorPrimaryBorder: "#E9D7FE",
|
|
44
|
+
colorText: "#344054",
|
|
45
|
+
colorTextDisabled: "#D0D5DD",
|
|
46
|
+
colorTextLightSolid: "#fff",
|
|
47
|
+
colorBgTextActive: "#D0D5DD",
|
|
48
|
+
controlOutline: "rgba(127, 86, 217, 0.04)",
|
|
49
|
+
controlTmpOutline: "#F9FAFB",
|
|
50
|
+
paddingContentHorizontal: 14,
|
|
51
|
+
marginXS: 8
|
|
52
52
|
},
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
Divider: {
|
|
54
|
+
colorSplit: "#EAECF0"
|
|
55
55
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
Breadcrumb: {
|
|
57
|
+
itemColor: "#475467",
|
|
58
|
+
colorTextDescription: "#475467",
|
|
59
|
+
lastItemColor: "#6941C6",
|
|
60
|
+
separatorMargin: 12,
|
|
61
|
+
separatorColor: "#D0D5DD",
|
|
62
|
+
linkHoverColor: "#1D2939",
|
|
63
|
+
linkColor: "#475467",
|
|
64
|
+
colorBgTextHover: "#F9FAFB",
|
|
65
|
+
paddingXXS: 8
|
|
66
66
|
},
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
Dropdown: {
|
|
68
|
+
borderRadiusLG: 8,
|
|
69
69
|
// "boxShadowPopoverArrow": "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
controlHeight: 42,
|
|
71
|
+
fontSize: 14
|
|
72
72
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
DatePicker: {
|
|
74
|
+
borderRadius: 8,
|
|
75
|
+
colorTextPlaceholder: "#667085",
|
|
76
|
+
colorIcon: "#667085",
|
|
77
|
+
colorTextQuaternary: "#D0D5DD",
|
|
78
|
+
colorBgContainerDisabled: "#F9FAFB",
|
|
79
|
+
colorTextDisabled: "#98A2B3"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
82
|
+
token: {
|
|
83
|
+
colorPrimary: "#7F56D9",
|
|
84
|
+
colorPrimaryBg: "#F9F5FF",
|
|
85
|
+
colorPrimaryBgHover: "#F4EBFF",
|
|
86
|
+
colorPrimaryBorder: "#E9D7FE",
|
|
87
|
+
colorPrimaryBorderHover: "#D6BBFB",
|
|
88
|
+
colorPrimaryHover: "#6941C6",
|
|
89
|
+
colorPrimaryActive: "#53389E",
|
|
90
|
+
colorPrimaryTextHover: "#53389E",
|
|
91
|
+
colorPrimaryText: "#6941C6",
|
|
92
|
+
colorPrimaryTextActive: "#42307D",
|
|
93
|
+
colorSuccess: "#079455",
|
|
94
|
+
colorSuccessBg: "#ECFDF3",
|
|
95
|
+
colorSuccessBgHover: "#DCFAE6",
|
|
96
|
+
colorSuccessBorder: "#ABEFC6",
|
|
97
|
+
colorSuccessBorderHover: "#75E0A7",
|
|
98
|
+
colorSuccessHover: "#067647",
|
|
99
|
+
colorSuccessText: "#067647",
|
|
100
|
+
colorSuccessActive: "#085D3A",
|
|
101
|
+
colorSuccessTextHover: "#085D3A",
|
|
102
|
+
colorSuccessTextActive: "#074D31",
|
|
103
|
+
colorWarning: "#dc6803",
|
|
104
|
+
colorWarningBg: "#FFFAEB",
|
|
105
|
+
colorWarningBgHover: "#FEF0C7",
|
|
106
|
+
colorWarningBorder: "#FEDF89",
|
|
107
|
+
colorWarningBorderHover: "#FEC84B",
|
|
108
|
+
colorWarningHover: "#B54708",
|
|
109
|
+
colorWarningText: "#B54708",
|
|
110
|
+
colorWarningActive: "#93370D",
|
|
111
|
+
colorWarningTextHover: "#93370D",
|
|
112
|
+
colorWarningTextActive: "#7A2E0E",
|
|
113
|
+
colorError: "#d92d20",
|
|
114
|
+
colorErrorBg: "#FEF3F2",
|
|
115
|
+
colorErrorBgHover: "#FEE4E2",
|
|
116
|
+
colorErrorBorder: "#FECDCA",
|
|
117
|
+
colorErrorBorderHover: "#FDA29B",
|
|
118
|
+
colorErrorHover: "#B42318",
|
|
119
|
+
colorErrorText: "#B42318",
|
|
120
|
+
colorErrorActive: "#912018",
|
|
121
|
+
colorErrorTextHover: "#912018",
|
|
122
|
+
colorErrorTextActive: "#7A271A",
|
|
123
|
+
colorInfo: "#1570ef",
|
|
124
|
+
colorInfoBg: "#EFF8FF",
|
|
125
|
+
colorInfoBgHover: "#D1E9FF",
|
|
126
|
+
colorInfoBorder: "#B2DDFF",
|
|
127
|
+
colorInfoBorderHover: "#84CAFF",
|
|
128
|
+
colorInfoHover: "#175CD3",
|
|
129
|
+
colorInfoText: "#175CD3",
|
|
130
|
+
colorInfoActive: "#1849A9",
|
|
131
|
+
colorInfoTextHover: "#1849A9",
|
|
132
|
+
colorInfoTextActive: "#194185",
|
|
133
|
+
colorText: "#101828",
|
|
134
|
+
colorTextSecondary: "#475467",
|
|
135
|
+
colorTextTertiary: "#667085",
|
|
136
|
+
colorTextQuaternary: "#D0D5DD",
|
|
137
|
+
colorBorder: "#D0D5DD",
|
|
138
|
+
colorBorderSecondary: "#EAECF0",
|
|
139
|
+
colorFill: "#D0D5DD",
|
|
140
|
+
colorFillSecondary: "#EAECF0",
|
|
141
|
+
colorFillTertiary: "#F2F4F7",
|
|
142
|
+
colorFillQuaternary: "#F9FAFB",
|
|
143
|
+
colorBgLayout: "#F2F4F7",
|
|
144
|
+
colorBgSpotlight: "#101828",
|
|
145
|
+
colorBgMask: "rgba(0, 0, 0, 0.5)",
|
|
146
|
+
wireframe: false,
|
|
147
|
+
borderRadius: 8
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
var datePickerTheme = createTheme({
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
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; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
import React, { useMemo } from "react";
|
|
9
|
+
import { QRCode as AntQRCode, Modal } from "antd";
|
|
10
|
+
import { getUniqueId } from "@pisell/utils";
|
|
11
|
+
var QRCode = function QRCode(props) {
|
|
12
|
+
var preview = props.preview;
|
|
13
|
+
var _React$useState = React.useState(false),
|
|
14
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
15
|
+
visible = _React$useState2[0],
|
|
16
|
+
setVisible = _React$useState2[1];
|
|
17
|
+
var id = useMemo(function () {
|
|
18
|
+
return getUniqueId();
|
|
19
|
+
}, []);
|
|
20
|
+
var handleClick = function handleClick(e) {
|
|
21
|
+
e.stopPropagation();
|
|
22
|
+
setVisible(true);
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
25
|
+
onClick: handleClick,
|
|
26
|
+
id: id,
|
|
27
|
+
className: "pisell-lowcode-qrcode-wrap"
|
|
28
|
+
}, /*#__PURE__*/React.createElement(AntQRCode, props)), preview && /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
onClick: function onClick(e) {
|
|
30
|
+
return e.stopPropagation();
|
|
31
|
+
}
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Modal, {
|
|
33
|
+
open: visible,
|
|
34
|
+
onCancel: function onCancel() {
|
|
35
|
+
return setVisible(false);
|
|
36
|
+
},
|
|
37
|
+
footer: null,
|
|
38
|
+
width: 248,
|
|
39
|
+
closeIcon: /*#__PURE__*/React.createElement("span", null)
|
|
40
|
+
}, /*#__PURE__*/React.createElement(AntQRCode, _extends({}, props, {
|
|
41
|
+
size: 200
|
|
42
|
+
})))));
|
|
43
|
+
};
|
|
44
|
+
export default QRCode;
|
|
@@ -72,11 +72,12 @@ var BasicTable = function BasicTable(props) {
|
|
|
72
72
|
// 总数
|
|
73
73
|
var total = useMemo(function () {
|
|
74
74
|
// 如果dataSource.length > 当前分页时为前端分页处理 此时total优先取_dataSource中total
|
|
75
|
-
|
|
75
|
+
// 改为通过localPagination判断
|
|
76
|
+
if (localPagination) {
|
|
76
77
|
return (_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.total) || 0;
|
|
77
78
|
}
|
|
78
79
|
return (pagination === null || pagination === void 0 ? void 0 : pagination.total) || (_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.total) || 0;
|
|
79
|
-
}, [_dataSource, pagination]);
|
|
80
|
+
}, [_dataSource, pagination, localPagination]);
|
|
80
81
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Table, _extends({}, other, {
|
|
81
82
|
onChange: function onChange(pagination, filters, sorter) {
|
|
82
83
|
form.setFieldsValue({
|
package/es/index.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export { Progress } from "antd";
|
|
|
26
26
|
export { Rate } from "antd";
|
|
27
27
|
export { Result } from "antd";
|
|
28
28
|
export { Row } from "antd";
|
|
29
|
-
export { QRCode } from "antd";
|
|
30
29
|
export { Space } from "antd";
|
|
31
30
|
export { Spin } from "antd";
|
|
32
31
|
export { Steps } from "antd";
|
|
@@ -66,3 +65,4 @@ export { default as Filter } from "./components/filter";
|
|
|
66
65
|
export { default as Translation } from "./components/translation";
|
|
67
66
|
export { default as SortableList } from "./components/sortableList";
|
|
68
67
|
export { default as RecordView } from "./components/record-view";
|
|
68
|
+
export { default as QRCode } from "./components/qrcode";
|
package/es/index.js
CHANGED
|
@@ -44,7 +44,6 @@ export { Row } from "antd";
|
|
|
44
44
|
|
|
45
45
|
// export { Skeleton } from 'antd';
|
|
46
46
|
|
|
47
|
-
export { QRCode } from "antd";
|
|
48
47
|
export { Space } from "antd";
|
|
49
48
|
export { Spin } from "antd";
|
|
50
49
|
export { Steps } from "antd";
|
|
@@ -88,4 +87,5 @@ export { default as Page } from "./components/page";
|
|
|
88
87
|
export { default as Filter } from "./components/filter";
|
|
89
88
|
export { default as Translation } from "./components/translation";
|
|
90
89
|
export { default as SortableList } from "./components/sortableList";
|
|
91
|
-
export { default as RecordView } from "./components/record-view";
|
|
90
|
+
export { default as RecordView } from "./components/record-view";
|
|
91
|
+
export { default as QRCode } from "./components/qrcode";
|