@pisell/private-materials 6.8.83 → 6.8.84
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +4 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -1
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +69 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/types.js +65 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/app.js +5 -0
- package/es/components/eftposPay/component/fail/failCustom.js +16 -12
- package/es/components/eftposPay/component/fail/index.js +12 -5
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +3 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +3 -2
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/huifu/Action.d.ts +8 -0
- package/es/components/eftposPay/huifu/Action.js +146 -0
- package/es/components/eftposPay/huifu/const.d.ts +5 -0
- package/es/components/eftposPay/huifu/const.js +70 -0
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/hooks.js +184 -0
- package/es/components/eftposPay/huifu/index.d.ts +5 -0
- package/es/components/eftposPay/huifu/index.js +196 -0
- package/es/components/eftposPay/huifu/index.less +180 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/huifu/types.js +1 -0
- package/es/components/eftposPay/index.js +5 -1
- package/es/components/eftposPay/locales.d.ts +36 -0
- package/es/components/eftposPay/locales.js +42 -3
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +5 -0
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/store/index.d.ts +11 -4
- package/es/components/kioskSkuDetail/index.d.ts +3 -0
- package/es/components/kioskSkuDetail/index.js +266 -173
- package/es/components/kioskSkuDetail/index.less +49 -7
- package/es/components/kioskSkuDetail/locales.d.ts +6 -0
- package/es/components/kioskSkuDetail/locales.js +9 -3
- package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/es/components/pay/toB/types/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentList/serve.js +14 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +16 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +5 -2
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/app.js +5 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- package/lib/components/eftposPay/component/fail/index.js +4 -1
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +3 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +3 -2
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
- package/lib/components/eftposPay/huifu/Action.js +174 -0
- package/lib/components/eftposPay/huifu/const.d.ts +5 -0
- package/lib/components/eftposPay/huifu/const.js +86 -0
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/hooks.js +186 -0
- package/lib/components/eftposPay/huifu/index.d.ts +5 -0
- package/lib/components/eftposPay/huifu/index.js +200 -0
- package/lib/components/eftposPay/huifu/index.less +180 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/huifu/types.js +17 -0
- package/lib/components/eftposPay/index.js +5 -1
- package/lib/components/eftposPay/locales.d.ts +36 -0
- package/lib/components/eftposPay/locales.js +42 -3
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +7 -0
- package/lib/components/eftposPay/pay.js +3 -2
- package/lib/components/eftposPay/store/index.d.ts +11 -4
- package/lib/components/kioskSkuDetail/index.d.ts +3 -0
- package/lib/components/kioskSkuDetail/index.js +180 -113
- package/lib/components/kioskSkuDetail/index.less +49 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
- package/lib/components/kioskSkuDetail/locales.js +9 -3
- package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/lib/components/pay/toB/types/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentList/serve.js +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +16 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lowcode/kiosk-sku-detail/meta.ts +229 -94
- package/package.json +1 -1
|
@@ -1,126 +1,261 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
2
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
3
3
|
|
|
4
|
-
const KioskSkuDetailMeta:
|
|
5
|
-
componentName:
|
|
6
|
-
title:
|
|
7
|
-
docUrl:
|
|
8
|
-
screenshot:
|
|
9
|
-
devMode:
|
|
10
|
-
npm: {
|
|
11
|
-
package:
|
|
12
|
-
version:
|
|
13
|
-
exportName:
|
|
14
|
-
main:
|
|
15
|
-
destructuring: true,
|
|
16
|
-
subName:
|
|
4
|
+
const KioskSkuDetailMeta: ComponentMetadata = {
|
|
5
|
+
"componentName": "KioskSkuDetail",
|
|
6
|
+
"title": "KioskSkuDetail",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@pisell/private-materials",
|
|
12
|
+
"version": "3.4.58",
|
|
13
|
+
"exportName": "KioskSkuDetail",
|
|
14
|
+
"main": "src/index.ts",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
17
|
},
|
|
18
|
-
configure: {
|
|
19
|
-
props: [
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
'zh-CN': '商品ID',
|
|
21
|
+
"title": {
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "i18n",
|
|
24
|
+
"en-US": "productId",
|
|
25
|
+
"zh-CN": "商品 id(可选:目"
|
|
27
26
|
},
|
|
27
|
+
"tip": "productId | 商品 id(可选:目前默认从 URL 读取,props 仅作为兜底以兼容老用法)"
|
|
28
28
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
"name": "productId",
|
|
30
|
+
"description": "商品 id(可选:目前默认从 URL 读取,props 仅作为兜底以兼容老用法)",
|
|
31
|
+
"setter": {
|
|
32
|
+
"componentName": "MixedSetter",
|
|
33
|
+
"props": {
|
|
34
|
+
"setters": [
|
|
35
|
+
{
|
|
36
|
+
"componentName": "ObjectSetter",
|
|
37
|
+
"props": {
|
|
38
|
+
"config": {
|
|
39
|
+
"extraSetter": {
|
|
40
|
+
"componentName": "MixedSetter",
|
|
41
|
+
"isRequired": false,
|
|
42
|
+
"props": {}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"isRequired": false,
|
|
47
|
+
"initialValue": {}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"componentName": "StringSetter",
|
|
51
|
+
"isRequired": false,
|
|
52
|
+
"initialValue": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"componentName": "NumberSetter",
|
|
56
|
+
"isRequired": false,
|
|
57
|
+
"initialValue": 0
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
35
62
|
},
|
|
36
63
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
'zh-CN': '预约日期',
|
|
64
|
+
"title": {
|
|
65
|
+
"label": {
|
|
66
|
+
"type": "i18n",
|
|
67
|
+
"en-US": "scheduleDate",
|
|
68
|
+
"zh-CN": "可选:用于商品报价的"
|
|
43
69
|
},
|
|
70
|
+
"tip": "scheduleDate | 可选:用于商品报价的日期(预约类商品)"
|
|
44
71
|
},
|
|
45
|
-
|
|
46
|
-
|
|
72
|
+
"name": "scheduleDate",
|
|
73
|
+
"description": "可选:用于商品报价的日期(预约类商品)",
|
|
74
|
+
"setter": {
|
|
75
|
+
"componentName": "MixedSetter",
|
|
76
|
+
"props": {
|
|
77
|
+
"setters": [
|
|
78
|
+
{
|
|
79
|
+
"componentName": "ObjectSetter",
|
|
80
|
+
"props": {
|
|
81
|
+
"config": {
|
|
82
|
+
"extraSetter": {
|
|
83
|
+
"componentName": "MixedSetter",
|
|
84
|
+
"isRequired": false,
|
|
85
|
+
"props": {}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"isRequired": false,
|
|
90
|
+
"initialValue": {}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"componentName": "StringSetter",
|
|
94
|
+
"isRequired": false,
|
|
95
|
+
"initialValue": ""
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
47
100
|
},
|
|
48
101
|
{
|
|
49
|
-
title: {
|
|
50
|
-
label: {
|
|
51
|
-
type:
|
|
52
|
-
|
|
53
|
-
|
|
102
|
+
"title": {
|
|
103
|
+
"label": {
|
|
104
|
+
"type": "i18n",
|
|
105
|
+
"en-US": "className",
|
|
106
|
+
"zh-CN": "自定义类名"
|
|
54
107
|
},
|
|
108
|
+
"tip": "className | 自定义类名"
|
|
55
109
|
},
|
|
56
|
-
name:
|
|
57
|
-
|
|
110
|
+
"name": "className",
|
|
111
|
+
"description": "自定义类名",
|
|
112
|
+
"setter": {
|
|
113
|
+
"componentName": "MixedSetter",
|
|
114
|
+
"props": {
|
|
115
|
+
"setters": [
|
|
116
|
+
{
|
|
117
|
+
"componentName": "ObjectSetter",
|
|
118
|
+
"props": {
|
|
119
|
+
"config": {
|
|
120
|
+
"extraSetter": {
|
|
121
|
+
"componentName": "MixedSetter",
|
|
122
|
+
"isRequired": false,
|
|
123
|
+
"props": {}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"isRequired": false,
|
|
128
|
+
"initialValue": {}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"componentName": "StringSetter",
|
|
132
|
+
"isRequired": false,
|
|
133
|
+
"initialValue": ""
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
}
|
|
58
138
|
},
|
|
59
139
|
{
|
|
60
|
-
title: {
|
|
61
|
-
label: {
|
|
62
|
-
type:
|
|
63
|
-
|
|
64
|
-
|
|
140
|
+
"title": {
|
|
141
|
+
"label": {
|
|
142
|
+
"type": "i18n",
|
|
143
|
+
"en-US": "style",
|
|
144
|
+
"zh-CN": "自定义样式"
|
|
65
145
|
},
|
|
146
|
+
"tip": "style | 自定义样式"
|
|
66
147
|
},
|
|
67
|
-
name:
|
|
68
|
-
|
|
148
|
+
"name": "style",
|
|
149
|
+
"description": "自定义样式",
|
|
150
|
+
"setter": {
|
|
151
|
+
"componentName": "MixedSetter",
|
|
152
|
+
"props": {
|
|
153
|
+
"setters": [
|
|
154
|
+
{
|
|
155
|
+
"componentName": "ObjectSetter",
|
|
156
|
+
"props": {
|
|
157
|
+
"config": {
|
|
158
|
+
"extraSetter": {
|
|
159
|
+
"componentName": "MixedSetter",
|
|
160
|
+
"isRequired": false,
|
|
161
|
+
"props": {}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"isRequired": false,
|
|
166
|
+
"initialValue": {}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
69
171
|
},
|
|
70
172
|
{
|
|
71
|
-
title: {
|
|
72
|
-
label: {
|
|
73
|
-
type:
|
|
74
|
-
|
|
75
|
-
|
|
173
|
+
"title": {
|
|
174
|
+
"label": {
|
|
175
|
+
"type": "i18n",
|
|
176
|
+
"en-US": "onBack",
|
|
177
|
+
"zh-CN": "返回"
|
|
76
178
|
},
|
|
179
|
+
"tip": "onBack | 返回"
|
|
77
180
|
},
|
|
78
|
-
name:
|
|
79
|
-
|
|
181
|
+
"name": "onBack",
|
|
182
|
+
"description": "返回",
|
|
183
|
+
"setter": {
|
|
184
|
+
"componentName": "MixedSetter",
|
|
185
|
+
"props": {
|
|
186
|
+
"setters": [
|
|
187
|
+
{
|
|
188
|
+
"componentName": "ObjectSetter",
|
|
189
|
+
"props": {
|
|
190
|
+
"config": {
|
|
191
|
+
"extraSetter": {
|
|
192
|
+
"componentName": "MixedSetter",
|
|
193
|
+
"isRequired": false,
|
|
194
|
+
"props": {}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"isRequired": false,
|
|
199
|
+
"initialValue": {}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"componentName": "FunctionSetter",
|
|
203
|
+
"isRequired": false
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
}
|
|
80
208
|
},
|
|
81
209
|
{
|
|
82
|
-
title: {
|
|
83
|
-
label: {
|
|
84
|
-
type:
|
|
85
|
-
|
|
86
|
-
|
|
210
|
+
"title": {
|
|
211
|
+
"label": {
|
|
212
|
+
"type": "i18n",
|
|
213
|
+
"en-US": "onAddToCart",
|
|
214
|
+
"zh-CN": "加入购物车"
|
|
87
215
|
},
|
|
216
|
+
"tip": "onAddToCart | 加入购物车"
|
|
88
217
|
},
|
|
89
|
-
name:
|
|
90
|
-
|
|
91
|
-
|
|
218
|
+
"name": "onAddToCart",
|
|
219
|
+
"description": "加入购物车",
|
|
220
|
+
"setter": {
|
|
221
|
+
"componentName": "MixedSetter",
|
|
222
|
+
"props": {
|
|
223
|
+
"setters": [
|
|
224
|
+
{
|
|
225
|
+
"componentName": "ObjectSetter",
|
|
226
|
+
"props": {
|
|
227
|
+
"config": {
|
|
228
|
+
"extraSetter": {
|
|
229
|
+
"componentName": "MixedSetter",
|
|
230
|
+
"isRequired": false,
|
|
231
|
+
"props": {}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"isRequired": false,
|
|
236
|
+
"initialValue": {}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"componentName": "FunctionSetter"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
92
245
|
],
|
|
93
|
-
supports: {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
events: [
|
|
97
|
-
{
|
|
98
|
-
name: 'onBack',
|
|
99
|
-
template: "onBack(${extParams}){ console.log('onBack'); }",
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: 'onAddToCart',
|
|
103
|
-
template:
|
|
104
|
-
"onAddToCart(params, ${extParams}){ console.log('onAddToCart', params); }",
|
|
105
|
-
},
|
|
106
|
-
] as any,
|
|
107
|
-
},
|
|
108
|
-
component: {
|
|
109
|
-
isContainer: false,
|
|
110
|
-
},
|
|
111
|
-
},
|
|
246
|
+
"supports": {},
|
|
247
|
+
"component": {}
|
|
248
|
+
}
|
|
112
249
|
};
|
|
113
|
-
const snippets:
|
|
250
|
+
const snippets: Snippet[] = [
|
|
114
251
|
{
|
|
115
|
-
title:
|
|
116
|
-
screenshot:
|
|
117
|
-
schema: {
|
|
118
|
-
componentName:
|
|
119
|
-
props: {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
},
|
|
252
|
+
"title": "KioskSkuDetail",
|
|
253
|
+
"screenshot": "",
|
|
254
|
+
"schema": {
|
|
255
|
+
"componentName": "KioskSkuDetail",
|
|
256
|
+
"props": {}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
124
259
|
];
|
|
125
260
|
|
|
126
261
|
export default {
|