@pisell/materials 3.3.9 → 3.3.10
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.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +0 -1
- package/es/components/productCard/components/Sales/index.js +2 -1
- package/es/components/productCard/locales.d.ts +63 -0
- package/es/components/productCard/locales.js +6 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -1
- package/lib/components/productCard/components/Sales/index.js +2 -1
- package/lib/components/productCard/locales.d.ts +63 -0
- package/lib/components/productCard/locales.js +6 -3
- package/package.json +3 -3
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -97
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -161
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/es/components/table/types.d.ts +0 -251
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/components/walletCard/index.d.ts +0 -65
- package/es/index.d.ts +0 -141
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -97
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -161
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/components/walletCard/index.d.ts +0 -65
- package/lib/index.d.ts +0 -141
|
@@ -8,6 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import CollapsibleList from "../Packages/components/collapsibleList";
|
|
9
9
|
import { renderBundles } from "../Packages/components/collapsibleList/utils";
|
|
10
10
|
import "./index.less";
|
|
11
|
+
import { locales } from '@pisell/utils';
|
|
11
12
|
var prefix = 'pisell-lowcode-';
|
|
12
13
|
var Sales = function Sales(_ref) {
|
|
13
14
|
var _other_products;
|
|
@@ -29,7 +30,7 @@ var Sales = function Sales(_ref) {
|
|
|
29
30
|
className: "".concat(prefix, "product-sales-wrap")
|
|
30
31
|
}, /*#__PURE__*/React.createElement("div", {
|
|
31
32
|
className: "".concat(prefix, "product-sales-title")
|
|
32
|
-
},
|
|
33
|
+
}, locales.getText('pisell2.product.card.sales')), /*#__PURE__*/React.createElement(CollapsibleList, {
|
|
33
34
|
list: other_products || [],
|
|
34
35
|
renderItem: function renderItem(items) {
|
|
35
36
|
return renderBundles(items, true, isShowNote);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
4
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
5
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
6
|
+
'pisell2.product.card.discount.reason': string;
|
|
7
|
+
'pisell2.product.card.discount.note': string;
|
|
8
|
+
'pisell2.product.card.edit': string;
|
|
9
|
+
'pisell2.product.card.discount.add.note': string;
|
|
10
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
11
|
+
'pisell2.product.card.confirm': string;
|
|
12
|
+
'pisell2.product.card.cancel': string;
|
|
13
|
+
'pisell2.product.card.note.pla': string;
|
|
14
|
+
'pisell2.product.card.items.package': string;
|
|
15
|
+
'pisell2.product.card.view-all': string;
|
|
16
|
+
'pisell2.product.card.view-less': string;
|
|
17
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
18
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
19
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
20
|
+
'pisell2.product.card.sales': string;
|
|
21
|
+
};
|
|
22
|
+
'zh-CN': {
|
|
23
|
+
'pisell2.product.card.edit': string;
|
|
24
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
25
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
26
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
27
|
+
'pisell2.product.card.discount.reason': string;
|
|
28
|
+
'pisell2.product.card.discount.note': string;
|
|
29
|
+
'pisell2.product.card.discount.add.note': string;
|
|
30
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
31
|
+
'pisell2.product.card.confirm': string;
|
|
32
|
+
'pisell2.product.card.cancel': string;
|
|
33
|
+
'pisell2.product.card.note.pla': string;
|
|
34
|
+
'pisell2.product.card.items.package': string;
|
|
35
|
+
'pisell2.product.card.view-all': string;
|
|
36
|
+
'pisell2.product.card.view-less': string;
|
|
37
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
38
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
39
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
40
|
+
'pisell2.product.card.sales': string;
|
|
41
|
+
};
|
|
42
|
+
'zh-HK': {
|
|
43
|
+
'pisell2.product.card.edit': string;
|
|
44
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
45
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
46
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
47
|
+
'pisell2.product.card.discount.reason': string;
|
|
48
|
+
'pisell2.product.card.discount.note': string;
|
|
49
|
+
'pisell2.product.card.discount.add.note': string;
|
|
50
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
51
|
+
'pisell2.product.card.confirm': string;
|
|
52
|
+
'pisell2.product.card.cancel': string;
|
|
53
|
+
'pisell2.product.card.note.pla': string;
|
|
54
|
+
'pisell2.product.card.items.package': string;
|
|
55
|
+
'pisell2.product.card.view-all': string;
|
|
56
|
+
'pisell2.product.card.view-less': string;
|
|
57
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
58
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
59
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
60
|
+
'pisell2.product.card.sales': string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
@@ -28,7 +28,8 @@ export default {
|
|
|
28
28
|
},
|
|
29
29
|
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
30
30
|
return "".concat(hour > 0 ? "".concat(hour, "h") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "min") : '');
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
'pisell2.product.card.sales': 'Sales'
|
|
32
33
|
},
|
|
33
34
|
'zh-CN': {
|
|
34
35
|
'pisell2.product.card.edit': '编辑',
|
|
@@ -59,7 +60,8 @@ export default {
|
|
|
59
60
|
},
|
|
60
61
|
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
61
62
|
return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u65F6") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u949F") : '');
|
|
62
|
-
}
|
|
63
|
+
},
|
|
64
|
+
'pisell2.product.card.sales': '销售'
|
|
63
65
|
},
|
|
64
66
|
'zh-HK': {
|
|
65
67
|
'pisell2.product.card.edit': '編輯',
|
|
@@ -90,6 +92,7 @@ export default {
|
|
|
90
92
|
},
|
|
91
93
|
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
92
94
|
return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u6642") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u9418") : '');
|
|
93
|
-
}
|
|
95
|
+
},
|
|
96
|
+
'pisell2.product.card.sales': '銷售'
|
|
94
97
|
}
|
|
95
98
|
};
|
|
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_collapsibleList = __toESM(require("../Packages/components/collapsibleList"));
|
|
37
37
|
var import_utils = require("../Packages/components/collapsibleList/utils");
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
|
+
var import_utils2 = require("@pisell/utils");
|
|
39
40
|
var prefix = "pisell-lowcode-";
|
|
40
41
|
var Sales = ({ item, isShowNote }) => {
|
|
41
42
|
let other_products = (item == null ? void 0 : item.relation_products) || [];
|
|
@@ -49,7 +50,7 @@ var Sales = ({ item, isShowNote }) => {
|
|
|
49
50
|
total: p == null ? void 0 : p.payment_price
|
|
50
51
|
};
|
|
51
52
|
});
|
|
52
|
-
return (other_products == null ? void 0 : other_products.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-title` }, "
|
|
53
|
+
return (other_products == null ? void 0 : other_products.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-title` }, import_utils2.locales.getText("pisell2.product.card.sales")), /* @__PURE__ */ import_react.default.createElement(
|
|
53
54
|
import_collapsibleList.default,
|
|
54
55
|
{
|
|
55
56
|
list: other_products || [],
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
4
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
5
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
6
|
+
'pisell2.product.card.discount.reason': string;
|
|
7
|
+
'pisell2.product.card.discount.note': string;
|
|
8
|
+
'pisell2.product.card.edit': string;
|
|
9
|
+
'pisell2.product.card.discount.add.note': string;
|
|
10
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
11
|
+
'pisell2.product.card.confirm': string;
|
|
12
|
+
'pisell2.product.card.cancel': string;
|
|
13
|
+
'pisell2.product.card.note.pla': string;
|
|
14
|
+
'pisell2.product.card.items.package': string;
|
|
15
|
+
'pisell2.product.card.view-all': string;
|
|
16
|
+
'pisell2.product.card.view-less': string;
|
|
17
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
18
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
19
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
20
|
+
'pisell2.product.card.sales': string;
|
|
21
|
+
};
|
|
22
|
+
'zh-CN': {
|
|
23
|
+
'pisell2.product.card.edit': string;
|
|
24
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
25
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
26
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
27
|
+
'pisell2.product.card.discount.reason': string;
|
|
28
|
+
'pisell2.product.card.discount.note': string;
|
|
29
|
+
'pisell2.product.card.discount.add.note': string;
|
|
30
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
31
|
+
'pisell2.product.card.confirm': string;
|
|
32
|
+
'pisell2.product.card.cancel': string;
|
|
33
|
+
'pisell2.product.card.note.pla': string;
|
|
34
|
+
'pisell2.product.card.items.package': string;
|
|
35
|
+
'pisell2.product.card.view-all': string;
|
|
36
|
+
'pisell2.product.card.view-less': string;
|
|
37
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
38
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
39
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
40
|
+
'pisell2.product.card.sales': string;
|
|
41
|
+
};
|
|
42
|
+
'zh-HK': {
|
|
43
|
+
'pisell2.product.card.edit': string;
|
|
44
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
45
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
46
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
47
|
+
'pisell2.product.card.discount.reason': string;
|
|
48
|
+
'pisell2.product.card.discount.note': string;
|
|
49
|
+
'pisell2.product.card.discount.add.note': string;
|
|
50
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
51
|
+
'pisell2.product.card.confirm': string;
|
|
52
|
+
'pisell2.product.card.cancel': string;
|
|
53
|
+
'pisell2.product.card.note.pla': string;
|
|
54
|
+
'pisell2.product.card.items.package': string;
|
|
55
|
+
'pisell2.product.card.view-all': string;
|
|
56
|
+
'pisell2.product.card.view-less': string;
|
|
57
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
58
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
59
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
60
|
+
'pisell2.product.card.sales': string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
@@ -40,7 +40,8 @@ var locales_default = {
|
|
|
40
40
|
"pisell2.product.card.view-less": "View less",
|
|
41
41
|
"pisell2.product.card.add.holder.button.text": (val) => `Add ${val || ""}`,
|
|
42
42
|
"pisell2.product.card.add.holder.placeholder": (val) => `Please select ${val || ""}`,
|
|
43
|
-
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}
|
|
43
|
+
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`,
|
|
44
|
+
"pisell2.product.card.sales": "Sales"
|
|
44
45
|
},
|
|
45
46
|
"zh-CN": {
|
|
46
47
|
"pisell2.product.card.edit": "编辑",
|
|
@@ -59,7 +60,8 @@ var locales_default = {
|
|
|
59
60
|
"pisell2.product.card.view-less": "收起",
|
|
60
61
|
"pisell2.product.card.add.holder.button.text": (val) => `添加${val || ""}`,
|
|
61
62
|
"pisell2.product.card.add.holder.placeholder": (val) => `请选择${val || ""}`,
|
|
62
|
-
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}
|
|
63
|
+
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`,
|
|
64
|
+
"pisell2.product.card.sales": "销售"
|
|
63
65
|
},
|
|
64
66
|
"zh-HK": {
|
|
65
67
|
"pisell2.product.card.edit": "編輯",
|
|
@@ -78,6 +80,7 @@ var locales_default = {
|
|
|
78
80
|
"pisell2.product.card.view-less": "收起",
|
|
79
81
|
"pisell2.product.card.add.holder.button.text": (val) => `添加${val || ""}`,
|
|
80
82
|
"pisell2.product.card.add.holder.placeholder": (val) => `請選擇${val || ""}`,
|
|
81
|
-
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}
|
|
83
|
+
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`,
|
|
84
|
+
"pisell2.product.card.sales": "銷售"
|
|
82
85
|
}
|
|
83
86
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.10",
|
|
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": "3.0.2",
|
|
75
|
-
"@pisell/
|
|
76
|
-
"@pisell/
|
|
75
|
+
"@pisell/icon": "0.0.11",
|
|
76
|
+
"@pisell/utils": "1.0.42"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { ModeType } from './type';
|
|
4
|
-
import './style.less';
|
|
5
|
-
export interface WithModeProps {
|
|
6
|
-
renderMode?: ModeType;
|
|
7
|
-
value?: any;
|
|
8
|
-
onChange?: (value: any) => void;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title: 增加renderMode属性
|
|
13
|
-
* @description: 基于renderMode属性控制渲染模式
|
|
14
|
-
* @return: *
|
|
15
|
-
* @Author: shengjie.zuo
|
|
16
|
-
* @Date: 2024-11-23 17:13:18
|
|
17
|
-
*/
|
|
18
|
-
export declare const withMode: <P extends object>(FieldComponent: React.ComponentType<P>, ReadPrettyComponent?: React.ComponentType<P & {
|
|
19
|
-
renderMode: ModeType;
|
|
20
|
-
}> | undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC<P & WithModeProps>;
|
|
21
|
-
export interface WithFormItemProps {
|
|
22
|
-
name: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
mode?: ModeType;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
export declare const formItemNameReplace: (name: string) => string;
|
|
28
|
-
export declare const formItemNameReverse: (name: string) => string;
|
|
29
|
-
export declare const isValidDomain: (value: string) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @title: 追加formItem层
|
|
32
|
-
* @description:
|
|
33
|
-
* @return: *
|
|
34
|
-
* @Author: shengjie.zuo
|
|
35
|
-
* @Date: 2024-11-23 17:14:25
|
|
36
|
-
*/
|
|
37
|
-
export declare const withFormItem: <P extends object>(WrappedComponent: React.ComponentType<P>, overlayProps?: {
|
|
38
|
-
otherFormItemProps?: Record<string, any> | ((props: Record<string, any>, others?: Record<string, any>) => Record<string, any>) | undefined;
|
|
39
|
-
innerProps?: Record<string, any> | undefined;
|
|
40
|
-
} | undefined) => React.FC<P & WithFormItemProps>;
|
|
41
|
-
export declare const withDataSource: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
42
|
-
dataSource?: any;
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
45
|
-
options?: any;
|
|
46
|
-
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
47
|
-
labelField: string;
|
|
48
|
-
valueField: string;
|
|
49
|
-
extraParams?: Record<string, any> | undefined;
|
|
50
|
-
}) => JSX.Element;
|
|
51
|
-
export declare const getNestedValue: (obj: Record<string, any>, path: string) => Record<string, any>;
|
|
52
|
-
export declare const renderValueWithMap: (value: any, valueMap?: Record<string, string>, renderMode?: ModeType) => JSX.Element | null;
|
|
53
|
-
export declare function toArr(str: string | number | (string | number)[]): (string | number)[];
|
|
54
|
-
export declare const filterSystemFields: (params: Record<string, any>) => Record<string, any>;
|
|
55
|
-
export declare const transformFormObjToArrayWithUntouched: (obj: Record<string, any>) => any[];
|
|
56
|
-
export declare const setFormFieldsUntouched: (form: FormInstance) => void;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Drawer } from 'antd';
|
|
2
|
-
import { OperationItem } from '../type';
|
|
3
|
-
declare const useDrawerState: (operationContent?: {
|
|
4
|
-
[key: string]: import("react").ReactNode;
|
|
5
|
-
} | undefined) => {
|
|
6
|
-
drawerVisible: boolean;
|
|
7
|
-
setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
-
openDrawer: (item: OperationItem) => void;
|
|
9
|
-
closeDrawer: () => void;
|
|
10
|
-
drawerContent: import("react").ReactNode;
|
|
11
|
-
Container: {
|
|
12
|
-
(props: import("../../../pisellModal").PisellModalProps): JSX.Element;
|
|
13
|
-
confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
14
|
-
destroy: () => void;
|
|
15
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
16
|
-
};
|
|
17
|
-
info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
18
|
-
destroy: () => void;
|
|
19
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
-
};
|
|
21
|
-
error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
22
|
-
destroy: () => void;
|
|
23
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
24
|
-
};
|
|
25
|
-
warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
|
|
26
|
-
warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
27
|
-
destroy: () => void;
|
|
28
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
29
|
-
};
|
|
30
|
-
success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
31
|
-
destroy: () => void;
|
|
32
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
33
|
-
};
|
|
34
|
-
Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
|
|
35
|
-
} | typeof Drawer;
|
|
36
|
-
containerProps: {};
|
|
37
|
-
};
|
|
38
|
-
export default useDrawerState;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from '../type';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
interface UseTablePropsProps {
|
|
5
|
-
data: any;
|
|
6
|
-
originProps: DataSourceTableProps;
|
|
7
|
-
openDrawer: (type: OperationItem) => void;
|
|
8
|
-
closeDrawer: () => void;
|
|
9
|
-
refreshData: () => void;
|
|
10
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
11
|
-
tableRef: any;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 处理table的props
|
|
15
|
-
* 转换title
|
|
16
|
-
* @param props
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
|
-
pagination: {
|
|
22
|
-
total: number;
|
|
23
|
-
current: number;
|
|
24
|
-
pageSize: number;
|
|
25
|
-
size: string;
|
|
26
|
-
showSizeChanger: boolean;
|
|
27
|
-
};
|
|
28
|
-
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
|
-
buttons: any[] | null;
|
|
31
|
-
filter: JSX.Element | null;
|
|
32
|
-
onRow: (record: any) => any;
|
|
33
|
-
actionButtons: any[] | null;
|
|
34
|
-
titleButtons?: {
|
|
35
|
-
show: boolean;
|
|
36
|
-
maxCount: number;
|
|
37
|
-
items: OperationItem[];
|
|
38
|
-
} | undefined;
|
|
39
|
-
tableButtons?: {
|
|
40
|
-
show: boolean;
|
|
41
|
-
maxCount: number;
|
|
42
|
-
items: OperationItem[];
|
|
43
|
-
} | undefined;
|
|
44
|
-
operation?: {
|
|
45
|
-
show: boolean;
|
|
46
|
-
title: string; /**
|
|
47
|
-
* 处理table的props
|
|
48
|
-
* 转换title
|
|
49
|
-
* @param props
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
width: number;
|
|
53
|
-
align: "center" | "left" | "right";
|
|
54
|
-
fixed: false | "left" | "right";
|
|
55
|
-
type: "button" | "link";
|
|
56
|
-
items: OperationItem[];
|
|
57
|
-
} | undefined;
|
|
58
|
-
operationContent?: {
|
|
59
|
-
[key: string]: React.ReactNode;
|
|
60
|
-
} | undefined;
|
|
61
|
-
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
62
|
-
search?: {
|
|
63
|
-
show: boolean;
|
|
64
|
-
placeholder: string;
|
|
65
|
-
} | undefined;
|
|
66
|
-
__designMode: string;
|
|
67
|
-
componentId: string;
|
|
68
|
-
clickToDetail?: {
|
|
69
|
-
show: boolean;
|
|
70
|
-
useCustomAction: boolean;
|
|
71
|
-
actionType: string;
|
|
72
|
-
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "small" | "large" | "middle";
|
|
74
|
-
openTitle: string;
|
|
75
|
-
key: string;
|
|
76
|
-
} | undefined;
|
|
77
|
-
filterBy?: Record<string, any> | undefined;
|
|
78
|
-
sortBy: string;
|
|
79
|
-
tabs?: {
|
|
80
|
-
show: boolean;
|
|
81
|
-
type: string;
|
|
82
|
-
items: {
|
|
83
|
-
name: string;
|
|
84
|
-
filterBy: Record<string, any>;
|
|
85
|
-
sortBy: string;
|
|
86
|
-
}[];
|
|
87
|
-
} | undefined;
|
|
88
|
-
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
89
|
-
extraParams?: {
|
|
90
|
-
list?: Record<string, any> | undefined;
|
|
91
|
-
get?: Record<string, any> | undefined;
|
|
92
|
-
update?: Record<string, any> | undefined;
|
|
93
|
-
create?: Record<string, any> | undefined;
|
|
94
|
-
destroy?: Record<string, any> | undefined;
|
|
95
|
-
} | undefined;
|
|
96
|
-
};
|
|
97
|
-
export default useTableProps;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
4
|
-
export declare type OperationItem = {
|
|
5
|
-
label?: string;
|
|
6
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
7
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
8
|
-
openTitle: string;
|
|
9
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
10
|
-
key: string;
|
|
11
|
-
buttonProps?: any;
|
|
12
|
-
onClick?: (record: any) => void;
|
|
13
|
-
};
|
|
14
|
-
export interface DataSourceTableProps {
|
|
15
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
16
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
titleButtons?: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
maxCount: number;
|
|
20
|
-
items: OperationItem[];
|
|
21
|
-
};
|
|
22
|
-
tableButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
buttons?: any[];
|
|
28
|
-
operation?: {
|
|
29
|
-
show: boolean;
|
|
30
|
-
title: string;
|
|
31
|
-
width: number;
|
|
32
|
-
align: 'left' | 'center' | 'right';
|
|
33
|
-
fixed: 'left' | 'right' | false;
|
|
34
|
-
type: 'link' | 'button';
|
|
35
|
-
items: OperationItem[];
|
|
36
|
-
};
|
|
37
|
-
operationContent?: {
|
|
38
|
-
[key: string]: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
dataSource: DataSourceType;
|
|
41
|
-
columns: ColumnType<any>[];
|
|
42
|
-
filter: any;
|
|
43
|
-
search?: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
};
|
|
47
|
-
__designMode: string;
|
|
48
|
-
componentId: string;
|
|
49
|
-
clickToDetail?: {
|
|
50
|
-
show: boolean;
|
|
51
|
-
useCustomAction: boolean;
|
|
52
|
-
actionType: string;
|
|
53
|
-
openMode: 'modal' | 'drawer';
|
|
54
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
55
|
-
openTitle: string;
|
|
56
|
-
key: string;
|
|
57
|
-
};
|
|
58
|
-
onRow?: any;
|
|
59
|
-
filterBy?: Record<string, any>;
|
|
60
|
-
sortBy: string;
|
|
61
|
-
tabs?: {
|
|
62
|
-
show: boolean;
|
|
63
|
-
type: string;
|
|
64
|
-
items: {
|
|
65
|
-
name: string;
|
|
66
|
-
filterBy: Record<string, any>;
|
|
67
|
-
sortBy: string;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
71
|
-
extraParams?: {
|
|
72
|
-
list?: Record<string, any>;
|
|
73
|
-
get?: Record<string, any>;
|
|
74
|
-
update?: Record<string, any>;
|
|
75
|
-
create?: Record<string, any>;
|
|
76
|
-
destroy?: Record<string, any>;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
5
|
-
renderMode: ModeType;
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
10
|
-
export default MobileNumberInputWithMode;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
5
|
-
renderMode: ModeType;
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
10
|
-
export default PhoneNumberInputWithMode;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取nocobase数据列表
|
|
3
|
-
*/
|
|
4
|
-
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
-
export interface Country {
|
|
6
|
-
id: number;
|
|
7
|
-
name: {
|
|
8
|
-
en: string;
|
|
9
|
-
"zh-CN": string;
|
|
10
|
-
"zh-HK": string;
|
|
11
|
-
original: string;
|
|
12
|
-
};
|
|
13
|
-
code: string;
|
|
14
|
-
calling_code: string;
|
|
15
|
-
currency_code: string;
|
|
16
|
-
sort: number;
|
|
17
|
-
status: string;
|
|
18
|
-
created_at: string;
|
|
19
|
-
updated_at: string;
|
|
20
|
-
prefix: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const useCountries: () => {
|
|
23
|
-
data: Country[];
|
|
24
|
-
};
|