@pisell/materials 1.0.458 → 1.0.459
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 +7 -7
- package/build/lowcode/render/default/view.js +16 -16
- package/build/lowcode/view.js +20 -20
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +0 -2
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +6 -6
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +38 -30
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +6 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.js +17 -0
- package/es/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/es/components/dataSourceComponents/provider/fields/DataSourceProvider.js +3 -1
- package/es/components/productCard/components/Packages/index.js +2 -1
- package/es/components/productCard/hooks/useOpenNote.js +10 -4
- package/es/components/productCard/locales.d.ts +9 -3
- package/es/components/productCard/locales.js +9 -3
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +0 -2
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +30 -17
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +6 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.js +50 -0
- package/lib/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/lib/components/dataSourceComponents/provider/fields/DataSourceProvider.js +2 -1
- package/lib/components/productCard/components/Packages/index.js +4 -3
- package/lib/components/productCard/hooks/useOpenNote.js +6 -3
- package/lib/components/productCard/locales.d.ts +9 -3
- package/lib/components/productCard/locales.js +9 -3
- package/package.json +3 -3
|
@@ -37,11 +37,13 @@ var import_utils = require("@pisell/utils");
|
|
|
37
37
|
var import__ = require("../../../index");
|
|
38
38
|
var useOpenNote = ({ onNoteChange }, ref) => {
|
|
39
39
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
40
|
+
const [item, setItem] = (0, import_react.useState)({});
|
|
40
41
|
const [value, setValue] = (0, import_react.useState)();
|
|
41
42
|
(0, import_react.useImperativeHandle)(ref, () => {
|
|
42
43
|
return {
|
|
43
|
-
open: ({ item }) => {
|
|
44
|
-
|
|
44
|
+
open: ({ item: item2 }) => {
|
|
45
|
+
setItem(item2);
|
|
46
|
+
setValue(item2 == null ? void 0 : item2.note);
|
|
45
47
|
setOpen(true);
|
|
46
48
|
}
|
|
47
49
|
};
|
|
@@ -55,7 +57,7 @@ var useOpenNote = ({ onNoteChange }, ref) => {
|
|
|
55
57
|
{
|
|
56
58
|
open,
|
|
57
59
|
bodyStyle: { padding: 0 },
|
|
58
|
-
title:
|
|
60
|
+
title: (item == null ? void 0 : item.note) ? import_utils.locales.getText("pisell2.product.card.discount.edit.note") : import_utils.locales.getText("pisell2.product.card.discount.add.note"),
|
|
59
61
|
onCancel: () => setOpen(false),
|
|
60
62
|
onOk: handleOk,
|
|
61
63
|
destroyOnClose: true,
|
|
@@ -67,6 +69,7 @@ var useOpenNote = ({ onNoteChange }, ref) => {
|
|
|
67
69
|
import__.Input.TextArea,
|
|
68
70
|
{
|
|
69
71
|
size: "large",
|
|
72
|
+
placeholder: import_utils.locales.getText("pisell2.product.card.note.pla"),
|
|
70
73
|
autoSize: { minRows: 4 },
|
|
71
74
|
allowClear: true,
|
|
72
75
|
value,
|
|
@@ -6,7 +6,9 @@ declare const _default: {
|
|
|
6
6
|
'pisell2.product.card.discount.add.note': string;
|
|
7
7
|
'pisell2.product.card.discount.edit.note': string;
|
|
8
8
|
'pisell2.product.card.confirm': string;
|
|
9
|
-
'pisell2.product.card.
|
|
9
|
+
'pisell2.product.card.cancel': string;
|
|
10
|
+
'pisell2.product.card.note.pla': string;
|
|
11
|
+
'pisell2.product.card.items.package': string;
|
|
10
12
|
};
|
|
11
13
|
'zh-CN': {
|
|
12
14
|
'pisell2.product.card.day': (val: number) => string;
|
|
@@ -15,7 +17,9 @@ declare const _default: {
|
|
|
15
17
|
'pisell2.product.card.discount.add.note': string;
|
|
16
18
|
'pisell2.product.card.discount.edit.note': string;
|
|
17
19
|
'pisell2.product.card.confirm': string;
|
|
18
|
-
'pisell2.product.card.
|
|
20
|
+
'pisell2.product.card.cancel': string;
|
|
21
|
+
'pisell2.product.card.note.pla': string;
|
|
22
|
+
'pisell2.product.card.items.package': string;
|
|
19
23
|
};
|
|
20
24
|
'zh-HK': {
|
|
21
25
|
'pisell2.product.card.day': (val: number) => string;
|
|
@@ -24,7 +28,9 @@ declare const _default: {
|
|
|
24
28
|
'pisell2.product.card.discount.add.note': string;
|
|
25
29
|
'pisell2.product.card.discount.edit.note': string;
|
|
26
30
|
'pisell2.product.card.confirm': string;
|
|
27
|
-
'pisell2.product.card.
|
|
31
|
+
'pisell2.product.card.cancel': string;
|
|
32
|
+
'pisell2.product.card.note.pla': string;
|
|
33
|
+
'pisell2.product.card.items.package': string;
|
|
28
34
|
};
|
|
29
35
|
};
|
|
30
36
|
export default _default;
|
|
@@ -30,7 +30,9 @@ var locales_default = {
|
|
|
30
30
|
"pisell2.product.card.discount.add.note": "Add note",
|
|
31
31
|
"pisell2.product.card.discount.edit.note": "Edit note",
|
|
32
32
|
"pisell2.product.card.confirm": "Confirm",
|
|
33
|
-
"pisell2.product.card.
|
|
33
|
+
"pisell2.product.card.cancel": "Cancel",
|
|
34
|
+
"pisell2.product.card.note.pla": "Please enter the note",
|
|
35
|
+
"pisell2.product.card.items.package": "Items in package"
|
|
34
36
|
},
|
|
35
37
|
"zh-CN": {
|
|
36
38
|
"pisell2.product.card.day": (val) => "天",
|
|
@@ -39,7 +41,9 @@ var locales_default = {
|
|
|
39
41
|
"pisell2.product.card.discount.add.note": "添加备注",
|
|
40
42
|
"pisell2.product.card.discount.edit.note": "编辑备注",
|
|
41
43
|
"pisell2.product.card.confirm": "确定",
|
|
42
|
-
"pisell2.product.card.
|
|
44
|
+
"pisell2.product.card.cancel": "取消",
|
|
45
|
+
"pisell2.product.card.note.pla": "请输入备注",
|
|
46
|
+
"pisell2.product.card.items.package": "包含的商品"
|
|
43
47
|
},
|
|
44
48
|
"zh-HK": {
|
|
45
49
|
"pisell2.product.card.day": (val) => "天",
|
|
@@ -48,6 +52,8 @@ var locales_default = {
|
|
|
48
52
|
"pisell2.product.card.discount.add.note": "添加備註",
|
|
49
53
|
"pisell2.product.card.discount.edit.note": "編輯備註",
|
|
50
54
|
"pisell2.product.card.confirm": "確定",
|
|
51
|
-
"pisell2.product.card.
|
|
55
|
+
"pisell2.product.card.cancel": "取消",
|
|
56
|
+
"pisell2.product.card.note.pla": "請輸入備註",
|
|
57
|
+
"pisell2.product.card.items.package": "包含的商品"
|
|
52
58
|
}
|
|
53
59
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.459",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
66
66
|
"react-window": "^1.8.10",
|
|
67
67
|
"styled-components": "^6.0.0-rc.3",
|
|
68
|
-
"@pisell/
|
|
68
|
+
"@pisell/date-picker": "1.0.112",
|
|
69
69
|
"@pisell/utils": "1.0.43",
|
|
70
|
-
"@pisell/
|
|
70
|
+
"@pisell/icon": "0.0.10"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^18.0.0",
|