@pisell/materials 1.0.827 → 1.0.829
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/hardwareErrorTip/errorCard/index.js +1 -1
- package/es/components/hardwareErrorTip/errorTipStatistics/index.js +1 -1
- package/es/components/hardwareErrorTip/types.d.ts +4 -4
- package/es/components/hardwareErrorTip/types.js +12 -4
- package/es/components/walletCard/index.less +2 -2
- package/lib/components/hardwareErrorTip/errorCard/index.js +1 -1
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.js +1 -1
- package/lib/components/hardwareErrorTip/types.d.ts +4 -4
- package/lib/components/hardwareErrorTip/types.js +4 -4
- package/lib/components/walletCard/index.less +2 -2
- package/package.json +3 -3
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -53,7 +53,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
53
53
|
width: number;
|
|
54
54
|
align: "center" | "left" | "right";
|
|
55
55
|
fixed: false | "left" | "right";
|
|
56
|
-
type: "
|
|
56
|
+
type: "button" | "link";
|
|
57
57
|
items: OperationItem[];
|
|
58
58
|
} | undefined;
|
|
59
59
|
operationContent?: {
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
|
|
@@ -73,7 +73,7 @@ var ErrorCard = function ErrorCard(props) {
|
|
|
73
73
|
color: theme.iconColor,
|
|
74
74
|
backgroundColor: theme.badgeColor
|
|
75
75
|
}
|
|
76
|
-
}, errorConfig.title), /*#__PURE__*/React.createElement("span", {
|
|
76
|
+
}, errorConfig.title()), /*#__PURE__*/React.createElement("span", {
|
|
77
77
|
className: "".concat(prefix, "-error-card-device")
|
|
78
78
|
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
79
79
|
type: deviceIcon,
|
|
@@ -22,7 +22,7 @@ var renderErrorItem = function renderErrorItem(errorType, count) {
|
|
|
22
22
|
className: "statistics-item-info"
|
|
23
23
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24
24
|
className: "statistics-item-title"
|
|
25
|
-
}, errorType.title), /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
}, errorType.title()), /*#__PURE__*/React.createElement("div", {
|
|
26
26
|
className: "statistics-item-count"
|
|
27
27
|
}, count)));
|
|
28
28
|
};
|
|
@@ -28,18 +28,18 @@ export declare const ErrorTypeTheme: {
|
|
|
28
28
|
};
|
|
29
29
|
export declare const errorTypes: ({
|
|
30
30
|
type: "fatal";
|
|
31
|
-
title: any;
|
|
31
|
+
title: () => any;
|
|
32
32
|
icon: import("react").ForwardRefExoticComponent<Omit<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
33
33
|
} | {
|
|
34
34
|
type: "critical";
|
|
35
|
-
title: any;
|
|
35
|
+
title: () => any;
|
|
36
36
|
icon: import("react").ForwardRefExoticComponent<Omit<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
37
37
|
} | {
|
|
38
38
|
type: "normal";
|
|
39
|
-
title: any;
|
|
39
|
+
title: () => any;
|
|
40
40
|
icon: import("react").ForwardRefExoticComponent<Omit<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
41
41
|
} | {
|
|
42
42
|
type: "info";
|
|
43
|
-
title: any;
|
|
43
|
+
title: () => any;
|
|
44
44
|
icon: import("react").ForwardRefExoticComponent<Omit<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
45
45
|
})[];
|
|
@@ -33,18 +33,26 @@ export var ErrorTypeTheme = {
|
|
|
33
33
|
// 错误类型配置
|
|
34
34
|
export var errorTypes = [{
|
|
35
35
|
type: 'fatal',
|
|
36
|
-
title:
|
|
36
|
+
title: function title() {
|
|
37
|
+
return getText('pisell2.text.hardware-error.fatal');
|
|
38
|
+
},
|
|
37
39
|
icon: CloseCircleOutlined
|
|
38
40
|
}, {
|
|
39
41
|
type: 'critical',
|
|
40
|
-
title:
|
|
42
|
+
title: function title() {
|
|
43
|
+
return getText('pisell2.text.hardware-error.critical');
|
|
44
|
+
},
|
|
41
45
|
icon: ExclamationCircleOutlined
|
|
42
46
|
}, {
|
|
43
47
|
type: 'normal',
|
|
44
|
-
title:
|
|
48
|
+
title: function title() {
|
|
49
|
+
return getText('pisell2.text.hardware-error.normal');
|
|
50
|
+
},
|
|
45
51
|
icon: ExclamationCircleOutlined
|
|
46
52
|
}, {
|
|
47
53
|
type: 'info',
|
|
48
|
-
title:
|
|
54
|
+
title: function title() {
|
|
55
|
+
return getText('pisell2.text.hardware-error.info');
|
|
56
|
+
},
|
|
49
57
|
icon: ExclamationCircleOutlined
|
|
50
58
|
}];
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
// 暗色主题
|
|
22
22
|
&.dark {
|
|
23
|
-
background-color:
|
|
23
|
+
background-color: transparent;
|
|
24
24
|
|
|
25
25
|
.pisell-wallet-card-header-left {
|
|
26
26
|
color: #fff;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
// 亮色主题
|
|
41
41
|
&.light {
|
|
42
|
-
background-color:
|
|
42
|
+
background-color: transparent;
|
|
43
43
|
|
|
44
44
|
.pisell-wallet-card-header-left {
|
|
45
45
|
color: #101828;
|
|
@@ -107,7 +107,7 @@ var ErrorCard = (props) => {
|
|
|
107
107
|
backgroundColor: theme.badgeColor
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
errorConfig.title
|
|
110
|
+
errorConfig.title()
|
|
111
111
|
), /* @__PURE__ */ import_react.default.createElement("span", { className: `${import_types.prefix}-error-card-device` }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: deviceIcon, style: { marginRight: 8, fontSize: 16 } }), deviceTypeName))),
|
|
112
112
|
/* @__PURE__ */ import_react.default.createElement("div", { className: `${import_types.prefix}-error-card-content` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_types.prefix}-error-card-info-row` }, /* @__PURE__ */ import_react.default.createElement("span", { className: `${import_types.prefix}-error-card-label` }, (0, import_locales.getText)("pisell2.text.hardware-error.error-code"), ":"), /* @__PURE__ */ import_react.default.createElement("span", { className: `${import_types.prefix}-error-card-value` }, data.error_code), /* @__PURE__ */ import_react.default.createElement("span", { className: `${import_types.prefix}-error-card-label` }, (0, import_locales.getText)("pisell2.text.hardware-error.time"), ":"), /* @__PURE__ */ import_react.default.createElement("span", { className: `${import_types.prefix}-error-card-value` }, data.time)), /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_types.prefix}-error-card-description` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_types.prefix}-error-card-label` }, (0, import_locales.getText)("pisell2.text.hardware-error.error-description"), ":"), /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_types.prefix}-error-card-message` }, data.error_message)), /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_types.prefix}-error-card-solution` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_types.prefix}-error-card-label` }, (0, import_locales.getText)("pisell2.text.hardware-error.solution"), ":"), /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_types.prefix}-error-card-solution-text` }, "请检查", deviceTypeName, "电源和连接线")))
|
|
113
113
|
);
|
|
@@ -60,7 +60,7 @@ var renderErrorItem = (errorType, count) => {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "statistics-item-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "statistics-item-title" }, errorType.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "statistics-item-count" }, count))
|
|
63
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "statistics-item-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "statistics-item-title" }, errorType.title()), /* @__PURE__ */ import_react.default.createElement("div", { className: "statistics-item-count" }, count))
|
|
64
64
|
);
|
|
65
65
|
};
|
|
66
66
|
var Statistics = (props) => {
|
|
@@ -28,18 +28,18 @@ export declare const ErrorTypeTheme: {
|
|
|
28
28
|
};
|
|
29
29
|
export declare const errorTypes: ({
|
|
30
30
|
type: "fatal";
|
|
31
|
-
title: any;
|
|
31
|
+
title: () => any;
|
|
32
32
|
icon: import("react").ForwardRefExoticComponent<Omit<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
33
33
|
} | {
|
|
34
34
|
type: "critical";
|
|
35
|
-
title: any;
|
|
35
|
+
title: () => any;
|
|
36
36
|
icon: import("react").ForwardRefExoticComponent<Omit<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
37
37
|
} | {
|
|
38
38
|
type: "normal";
|
|
39
|
-
title: any;
|
|
39
|
+
title: () => any;
|
|
40
40
|
icon: import("react").ForwardRefExoticComponent<Omit<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
41
41
|
} | {
|
|
42
42
|
type: "info";
|
|
43
|
-
title: any;
|
|
43
|
+
title: () => any;
|
|
44
44
|
icon: import("react").ForwardRefExoticComponent<Omit<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
45
45
|
})[];
|
|
@@ -56,22 +56,22 @@ var ErrorTypeTheme = {
|
|
|
56
56
|
var errorTypes = [
|
|
57
57
|
{
|
|
58
58
|
type: "fatal",
|
|
59
|
-
title: (0, import_locales.getText)("pisell2.text.hardware-error.fatal"),
|
|
59
|
+
title: () => (0, import_locales.getText)("pisell2.text.hardware-error.fatal"),
|
|
60
60
|
icon: import_icons.CloseCircleOutlined
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
type: "critical",
|
|
64
|
-
title: (0, import_locales.getText)("pisell2.text.hardware-error.critical"),
|
|
64
|
+
title: () => (0, import_locales.getText)("pisell2.text.hardware-error.critical"),
|
|
65
65
|
icon: import_icons.ExclamationCircleOutlined
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
type: "normal",
|
|
69
|
-
title: (0, import_locales.getText)("pisell2.text.hardware-error.normal"),
|
|
69
|
+
title: () => (0, import_locales.getText)("pisell2.text.hardware-error.normal"),
|
|
70
70
|
icon: import_icons.ExclamationCircleOutlined
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
type: "info",
|
|
74
|
-
title: (0, import_locales.getText)("pisell2.text.hardware-error.info"),
|
|
74
|
+
title: () => (0, import_locales.getText)("pisell2.text.hardware-error.info"),
|
|
75
75
|
icon: import_icons.ExclamationCircleOutlined
|
|
76
76
|
}
|
|
77
77
|
];
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
// 暗色主题
|
|
22
22
|
&.dark {
|
|
23
|
-
background-color:
|
|
23
|
+
background-color: transparent;
|
|
24
24
|
|
|
25
25
|
.pisell-wallet-card-header-left {
|
|
26
26
|
color: #fff;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
// 亮色主题
|
|
41
41
|
&.light {
|
|
42
|
-
background-color:
|
|
42
|
+
background-color: transparent;
|
|
43
43
|
|
|
44
44
|
.pisell-wallet-card-header-left {
|
|
45
45
|
color: #101828;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.829",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"react-barcode": "^1.5.3",
|
|
73
73
|
"vod-js-sdk-v6": "^1.4.11",
|
|
74
74
|
"@pisell/date-picker": "1.0.122",
|
|
75
|
-
"@pisell/
|
|
76
|
-
"@pisell/
|
|
75
|
+
"@pisell/utils": "1.0.50",
|
|
76
|
+
"@pisell/icon": "0.0.10"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|