@pisell/materials 1.0.430 → 1.0.432
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.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/pisellInformationEntry/Input/index.js +6 -3
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +44 -0
- package/es/components/pisellInformationEntry/index.js +14 -2
- package/es/components/pisellWalletPassCard/index.d.ts +2 -0
- package/es/components/pisellWalletPassCard/index.js +16 -4
- package/es/components/pisellWalletPassCard/index.less +3 -0
- package/es/components/select-time/RightPanel/index.d.ts +2 -2
- package/es/components/select-time/RightPanel/index.js +7 -7
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Keyboard/index.js +10 -2
- package/es/locales/en-US.d.ts +2 -0
- package/es/locales/en-US.js +3 -1
- package/es/locales/zh-CN.d.ts +2 -0
- package/es/locales/zh-CN.js +3 -1
- package/es/locales/zh-TW.d.ts +2 -0
- package/es/locales/zh-TW.js +3 -1
- package/lib/components/pisellInformationEntry/Input/index.js +6 -1
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +73 -0
- package/lib/components/pisellInformationEntry/index.js +12 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +2 -0
- package/lib/components/pisellWalletPassCard/index.js +8 -4
- package/lib/components/pisellWalletPassCard/index.less +3 -0
- package/lib/components/select-time/RightPanel/index.d.ts +2 -2
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Keyboard/index.js +15 -2
- package/lib/locales/en-US.d.ts +2 -0
- package/lib/locales/en-US.js +3 -1
- package/lib/locales/zh-CN.d.ts +2 -0
- package/lib/locales/zh-CN.js +3 -1
- package/lib/locales/zh-TW.d.ts +2 -0
- package/lib/locales/zh-TW.js +3 -1
- package/lowcode/pisell-card-list/meta.ts +54 -24
- package/lowcode/pisell-information-entry/meta.ts +22 -7
- package/package.json +3 -3
|
@@ -15,6 +15,7 @@ export interface KeyboardProps {
|
|
|
15
15
|
onChange?: (value?: ItemValue) => void;
|
|
16
16
|
items?: Item[];
|
|
17
17
|
rightItems?: Item[];
|
|
18
|
+
keydown?: boolean;
|
|
18
19
|
}
|
|
19
20
|
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => React.JSX.Element>;
|
|
20
21
|
export default _default;
|
|
@@ -37,18 +37,31 @@ var import_antd = require("antd");
|
|
|
37
37
|
var import_index = require("./index.less");
|
|
38
38
|
var import_classnames = __toESM(require("classnames"));
|
|
39
39
|
var import_ahooks = require("ahooks");
|
|
40
|
-
var list = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "ok"];
|
|
40
|
+
var list = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "+", "ok"];
|
|
41
41
|
var defaultArr = [];
|
|
42
42
|
var Keyboard = (props) => {
|
|
43
|
-
const {
|
|
43
|
+
const {
|
|
44
|
+
items = defaultArr,
|
|
45
|
+
className,
|
|
46
|
+
style,
|
|
47
|
+
onChange,
|
|
48
|
+
rightItems,
|
|
49
|
+
keydown = true
|
|
50
|
+
} = props;
|
|
44
51
|
const contentRef = (0, import_react.useRef)(null);
|
|
45
52
|
const size = (0, import_ahooks.useSize)(contentRef);
|
|
46
53
|
(0, import_ahooks.useEventListener)("keydown", (ev) => {
|
|
47
54
|
console.log("ev", ev);
|
|
55
|
+
if (!keydown) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
48
58
|
let key = ev.key;
|
|
49
59
|
if (key === "Enter") {
|
|
50
60
|
key = "ok";
|
|
51
61
|
}
|
|
62
|
+
if (key === "keydown") {
|
|
63
|
+
key = "+";
|
|
64
|
+
}
|
|
52
65
|
if (list.includes(key)) {
|
|
53
66
|
onChange == null ? void 0 : onChange(key);
|
|
54
67
|
}
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -124,5 +124,7 @@ declare const _default: {
|
|
|
124
124
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
125
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
126
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
+
'pisell-discount-card-title': string;
|
|
128
|
+
'pisell-discount-card-unit': string;
|
|
127
129
|
};
|
|
128
130
|
export default _default;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -156,5 +156,7 @@ var en_US_default = {
|
|
|
156
156
|
"pisell-adjust-price-discount-amount": "Amount",
|
|
157
157
|
"pisell-adjust-price-discount-percentage": "Percentage",
|
|
158
158
|
"pisell-adjust-price-total-after-discount": "Total after discount: ",
|
|
159
|
-
"pisell-adjust-price-discount-can-be-maximum": "Discount can be maximum"
|
|
159
|
+
"pisell-adjust-price-discount-can-be-maximum": "Discount can be maximum",
|
|
160
|
+
"pisell-discount-card-title": "Discount",
|
|
161
|
+
"pisell-discount-card-unit": "off"
|
|
160
162
|
};
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -124,5 +124,7 @@ declare const _default: {
|
|
|
124
124
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
125
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
126
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
+
'pisell-discount-card-title': string;
|
|
128
|
+
'pisell-discount-card-unit': string;
|
|
127
129
|
};
|
|
128
130
|
export default _default;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -156,5 +156,7 @@ var zh_CN_default = {
|
|
|
156
156
|
"pisell-adjust-price-discount-amount": "金额",
|
|
157
157
|
"pisell-adjust-price-discount-percentage": "百分比",
|
|
158
158
|
"pisell-adjust-price-total-after-discount": "打折后总价",
|
|
159
|
-
"pisell-adjust-price-discount-can-be-maximum": "折扣最高可达"
|
|
159
|
+
"pisell-adjust-price-discount-can-be-maximum": "折扣最高可达",
|
|
160
|
+
"pisell-discount-card-title": "折扣",
|
|
161
|
+
"pisell-discount-card-unit": "折扣"
|
|
160
162
|
};
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -124,5 +124,7 @@ declare const _default: {
|
|
|
124
124
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
125
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
126
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
+
'pisell-discount-card-title': string;
|
|
128
|
+
'pisell-discount-card-unit': string;
|
|
127
129
|
};
|
|
128
130
|
export default _default;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -156,5 +156,7 @@ var zh_TW_default = {
|
|
|
156
156
|
"pisell-adjust-price-discount-amount": "金額",
|
|
157
157
|
"pisell-adjust-price-discount-percentage": "百分比",
|
|
158
158
|
"pisell-adjust-price-total-after-discount": "打折后總價",
|
|
159
|
-
"pisell-adjust-price-discount-can-be-maximum": "折扣最高可達"
|
|
159
|
+
"pisell-adjust-price-discount-can-be-maximum": "折扣最高可達",
|
|
160
|
+
"pisell-discount-card-title": "折扣",
|
|
161
|
+
"pisell-discount-card-unit": "折扣"
|
|
160
162
|
};
|
|
@@ -18,64 +18,76 @@ export default {
|
|
|
18
18
|
},
|
|
19
19
|
props: [
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
21
|
+
name: 'platform',
|
|
22
22
|
title: {
|
|
23
|
-
label:
|
|
23
|
+
label: '平台',
|
|
24
24
|
},
|
|
25
|
-
propType: { type:
|
|
25
|
+
propType: { type: 'oneOf', value: ['h5', 'pc', 'ipad'] },
|
|
26
26
|
setter: [
|
|
27
27
|
{
|
|
28
|
-
componentName:
|
|
28
|
+
componentName: 'RadioGroupSetter',
|
|
29
29
|
props: {
|
|
30
30
|
options: [
|
|
31
31
|
{
|
|
32
|
-
title:
|
|
33
|
-
value:
|
|
32
|
+
title: 'h5',
|
|
33
|
+
value: 'h5',
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
title:
|
|
37
|
-
value:
|
|
36
|
+
title: 'pc',
|
|
37
|
+
value: 'pc',
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
title:
|
|
41
|
-
value:
|
|
40
|
+
title: 'ipad',
|
|
41
|
+
value: 'ipad',
|
|
42
42
|
},
|
|
43
43
|
],
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
'VariableSetter',
|
|
47
47
|
],
|
|
48
|
-
defaultValue:
|
|
48
|
+
defaultValue: 'pc',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
name:
|
|
51
|
+
name: 'mode',
|
|
52
52
|
title: {
|
|
53
|
-
label:
|
|
53
|
+
label: '选择类型',
|
|
54
54
|
},
|
|
55
|
-
propType: { type:
|
|
55
|
+
propType: { type: 'oneOf', value: ['multiple', 'single', null] },
|
|
56
56
|
setter: [
|
|
57
57
|
{
|
|
58
|
-
componentName:
|
|
58
|
+
componentName: 'RadioGroupSetter',
|
|
59
59
|
props: {
|
|
60
60
|
options: [
|
|
61
61
|
{
|
|
62
|
-
title:
|
|
62
|
+
title: '不选',
|
|
63
63
|
value: null,
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
title:
|
|
67
|
-
value:
|
|
66
|
+
title: '单选',
|
|
67
|
+
value: 'single',
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
title:
|
|
71
|
-
value:
|
|
70
|
+
title: '多选',
|
|
71
|
+
value: 'multiple',
|
|
72
72
|
},
|
|
73
73
|
],
|
|
74
74
|
},
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
'VariableSetter',
|
|
77
77
|
],
|
|
78
|
-
defaultValue:
|
|
78
|
+
defaultValue: 'single',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'data',
|
|
82
|
+
title: { label: '当前list数据', tip: '当前list数据' },
|
|
83
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'hasMore',
|
|
87
|
+
title: { label: '是否有更多数据', tip: '是否有更多数据' },
|
|
88
|
+
propType: 'bool',
|
|
89
|
+
setter: 'BoolSetter',
|
|
90
|
+
defaultValue: false,
|
|
79
91
|
},
|
|
80
92
|
{
|
|
81
93
|
name: 'showName',
|
|
@@ -140,6 +152,24 @@ export default {
|
|
|
140
152
|
setter: 'BoolSetter',
|
|
141
153
|
defaultValue: true,
|
|
142
154
|
},
|
|
155
|
+
{
|
|
156
|
+
name: 'showEmpty',
|
|
157
|
+
title: { label: '是否展示空占位', tip: '是否展示空占位' },
|
|
158
|
+
propType: 'bool',
|
|
159
|
+
setter: 'BoolSetter',
|
|
160
|
+
defaultValue: false,
|
|
161
|
+
},
|
|
143
162
|
],
|
|
144
|
-
configure: {
|
|
163
|
+
configure: {
|
|
164
|
+
supports: {
|
|
165
|
+
style: true,
|
|
166
|
+
events: [
|
|
167
|
+
{
|
|
168
|
+
name: 'onChange',
|
|
169
|
+
template:
|
|
170
|
+
"onChange(event,${extParams}){\n// 选择变化时的回调\nconsole.log('onChange',event);}",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
145
175
|
};
|
|
@@ -63,11 +63,14 @@ export default {
|
|
|
63
63
|
setter: [
|
|
64
64
|
{
|
|
65
65
|
componentName: 'SelectSetter',
|
|
66
|
-
mode:
|
|
66
|
+
mode: 'single',
|
|
67
67
|
props: (target) => {
|
|
68
68
|
// console.log(target,'targettarget',target.parent.parent.parent.getPropValue("entryModes"));
|
|
69
|
-
const typeValues = target.parent.parent.parent
|
|
70
|
-
|
|
69
|
+
const typeValues = target.parent.parent.parent
|
|
70
|
+
.getPropValue('entryModes')
|
|
71
|
+
.filter(Boolean)
|
|
72
|
+
.map((item) => item?.type);
|
|
73
|
+
console.log(typeValues, 'typeValues');
|
|
71
74
|
return {
|
|
72
75
|
options: [
|
|
73
76
|
{
|
|
@@ -107,9 +110,9 @@ export default {
|
|
|
107
110
|
},
|
|
108
111
|
},
|
|
109
112
|
initialValue: {
|
|
110
|
-
type:
|
|
111
|
-
name:
|
|
112
|
-
}
|
|
113
|
+
type: '',
|
|
114
|
+
name: '',
|
|
115
|
+
},
|
|
113
116
|
},
|
|
114
117
|
},
|
|
115
118
|
},
|
|
@@ -127,5 +130,17 @@ export default {
|
|
|
127
130
|
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
128
131
|
},
|
|
129
132
|
],
|
|
130
|
-
|
|
133
|
+
|
|
134
|
+
configure: {
|
|
135
|
+
supports: {
|
|
136
|
+
style: true,
|
|
137
|
+
events: [
|
|
138
|
+
{
|
|
139
|
+
name: 'onChange',
|
|
140
|
+
template:
|
|
141
|
+
"onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
131
146
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.432",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
65
65
|
"crypto-js": "^4.2.0",
|
|
66
66
|
"@zxing/library": "0.21.2",
|
|
67
|
-
"@pisell/utils": "1.0.42",
|
|
68
67
|
"@pisell/icon": "0.0.10",
|
|
69
|
-
"@pisell/date-picker": "1.0.111"
|
|
68
|
+
"@pisell/date-picker": "1.0.111",
|
|
69
|
+
"@pisell/utils": "1.0.42"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^18.0.0",
|