@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.
Files changed (134) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/booking/components/footer/index.d.ts +1 -0
  12. package/es/components/booking/info/index.d.ts +1 -0
  13. package/es/components/checkout/PaymentModal.js +4 -2
  14. package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -1
  15. package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
  16. package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
  17. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  18. package/es/components/eftposPay/aggregatePayment/index.js +3 -0
  19. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  20. package/es/components/eftposPay/aggregatePayment/service.js +69 -0
  21. package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  22. package/es/components/eftposPay/aggregatePayment/types.js +65 -0
  23. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  24. package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
  25. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  26. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
  27. package/es/components/eftposPay/amount.d.ts +1 -1
  28. package/es/components/eftposPay/app.d.ts +1 -1
  29. package/es/components/eftposPay/app.js +5 -0
  30. package/es/components/eftposPay/component/fail/failCustom.js +16 -12
  31. package/es/components/eftposPay/component/fail/index.js +12 -5
  32. package/es/components/eftposPay/const.d.ts +6 -1
  33. package/es/components/eftposPay/const.js +3 -0
  34. package/es/components/eftposPay/device.d.ts +1 -1
  35. package/es/components/eftposPay/hooks.d.ts +3 -2
  36. package/es/components/eftposPay/hooks.js +12 -0
  37. package/es/components/eftposPay/huifu/Action.d.ts +8 -0
  38. package/es/components/eftposPay/huifu/Action.js +146 -0
  39. package/es/components/eftposPay/huifu/const.d.ts +5 -0
  40. package/es/components/eftposPay/huifu/const.js +70 -0
  41. package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
  42. package/es/components/eftposPay/huifu/hooks.js +184 -0
  43. package/es/components/eftposPay/huifu/index.d.ts +5 -0
  44. package/es/components/eftposPay/huifu/index.js +196 -0
  45. package/es/components/eftposPay/huifu/index.less +180 -0
  46. package/es/components/eftposPay/huifu/types.d.ts +14 -0
  47. package/es/components/eftposPay/huifu/types.js +1 -0
  48. package/es/components/eftposPay/index.js +5 -1
  49. package/es/components/eftposPay/locales.d.ts +36 -0
  50. package/es/components/eftposPay/locales.js +42 -3
  51. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  52. package/es/components/eftposPay/manufacturer.js +5 -0
  53. package/es/components/eftposPay/pay.js +6 -2
  54. package/es/components/eftposPay/store/index.d.ts +11 -4
  55. package/es/components/kioskSkuDetail/index.d.ts +3 -0
  56. package/es/components/kioskSkuDetail/index.js +266 -173
  57. package/es/components/kioskSkuDetail/index.less +49 -7
  58. package/es/components/kioskSkuDetail/locales.d.ts +6 -0
  59. package/es/components/kioskSkuDetail/locales.js +9 -3
  60. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  61. package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
  62. package/es/components/pay/toB/types/index.d.ts +1 -0
  63. package/es/components/pay/toC/PaymentList/serve.js +14 -0
  64. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
  65. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  66. package/es/components/ticketBooking/index.d.ts +16 -0
  67. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
  68. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  69. package/es/plus/skuOptionsSelection/locales.js +3 -0
  70. package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
  71. package/es/pro/Login2.0/steps/CodeInput.js +37 -7
  72. package/lib/components/booking/components/footer/index.d.ts +1 -0
  73. package/lib/components/booking/info/index.d.ts +1 -0
  74. package/lib/components/checkout/PaymentModal.js +5 -2
  75. package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  76. package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
  77. package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
  78. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  79. package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
  80. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  81. package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
  82. package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  83. package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
  84. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  85. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
  86. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  87. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
  88. package/lib/components/eftposPay/amount.d.ts +1 -1
  89. package/lib/components/eftposPay/app.d.ts +1 -1
  90. package/lib/components/eftposPay/app.js +5 -0
  91. package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
  92. package/lib/components/eftposPay/component/fail/index.js +4 -1
  93. package/lib/components/eftposPay/const.d.ts +6 -1
  94. package/lib/components/eftposPay/const.js +3 -0
  95. package/lib/components/eftposPay/device.d.ts +1 -1
  96. package/lib/components/eftposPay/hooks.d.ts +3 -2
  97. package/lib/components/eftposPay/hooks.js +16 -0
  98. package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
  99. package/lib/components/eftposPay/huifu/Action.js +174 -0
  100. package/lib/components/eftposPay/huifu/const.d.ts +5 -0
  101. package/lib/components/eftposPay/huifu/const.js +86 -0
  102. package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
  103. package/lib/components/eftposPay/huifu/hooks.js +186 -0
  104. package/lib/components/eftposPay/huifu/index.d.ts +5 -0
  105. package/lib/components/eftposPay/huifu/index.js +200 -0
  106. package/lib/components/eftposPay/huifu/index.less +180 -0
  107. package/lib/components/eftposPay/huifu/types.d.ts +14 -0
  108. package/lib/components/eftposPay/huifu/types.js +17 -0
  109. package/lib/components/eftposPay/index.js +5 -1
  110. package/lib/components/eftposPay/locales.d.ts +36 -0
  111. package/lib/components/eftposPay/locales.js +42 -3
  112. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  113. package/lib/components/eftposPay/manufacturer.js +7 -0
  114. package/lib/components/eftposPay/pay.js +3 -2
  115. package/lib/components/eftposPay/store/index.d.ts +11 -4
  116. package/lib/components/kioskSkuDetail/index.d.ts +3 -0
  117. package/lib/components/kioskSkuDetail/index.js +180 -113
  118. package/lib/components/kioskSkuDetail/index.less +49 -7
  119. package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
  120. package/lib/components/kioskSkuDetail/locales.js +9 -3
  121. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  122. package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
  123. package/lib/components/pay/toB/types/index.d.ts +1 -0
  124. package/lib/components/pay/toC/PaymentList/serve.js +15 -0
  125. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
  126. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  127. package/lib/components/ticketBooking/index.d.ts +16 -0
  128. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
  129. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  130. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  131. package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
  132. package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
  133. package/lowcode/kiosk-sku-detail/meta.ts +229 -94
  134. package/package.json +1 -1
@@ -1,126 +1,261 @@
1
1
 
2
- import type { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
3
 
4
- const KioskSkuDetailMeta: IPublicTypeComponentMetadata = {
5
- componentName: 'KioskSkuDetail',
6
- title: 'KioskSkuDetail',
7
- docUrl: '',
8
- screenshot: '',
9
- devMode: 'proCode',
10
- npm: {
11
- package: '@pisell/private-materials',
12
- version: '1.0.4',
13
- exportName: 'KioskSkuDetail',
14
- main: 'src/index.ts',
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
- name: 'productId',
22
- title: {
23
- label: {
24
- type: 'i18n',
25
- 'en-US': 'productId',
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
- description: '外部传入商品 id,用于拉取商品详情',
30
- setter: [
31
- { componentName: 'NumberSetter' },
32
- { componentName: 'StringSetter' },
33
- { componentName: 'VariableSetter' },
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
- name: 'scheduleDate',
38
- title: {
39
- label: {
40
- type: 'i18n',
41
- 'en-US': 'scheduleDate',
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
- description: '可选:用于预约类商品报价(如 2025-12-18)',
46
- setter: [{ componentName: 'StringSetter' }, { componentName: 'VariableSetter' }],
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: 'i18n',
52
- 'en-US': 'className',
53
- 'zh-CN': '类名',
102
+ "title": {
103
+ "label": {
104
+ "type": "i18n",
105
+ "en-US": "className",
106
+ "zh-CN": "自定义类名"
54
107
  },
108
+ "tip": "className | 自定义类名"
55
109
  },
56
- name: 'className',
57
- setter: 'StringSetter',
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: 'i18n',
63
- 'en-US': 'style',
64
- 'zh-CN': '样式',
140
+ "title": {
141
+ "label": {
142
+ "type": "i18n",
143
+ "en-US": "style",
144
+ "zh-CN": "自定义样式"
65
145
  },
146
+ "tip": "style | 自定义样式"
66
147
  },
67
- name: 'style',
68
- setter: 'StyleSetter',
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: 'i18n',
74
- 'en-US': 'onBack',
75
- 'zh-CN': '返回事件',
173
+ "title": {
174
+ "label": {
175
+ "type": "i18n",
176
+ "en-US": "onBack",
177
+ "zh-CN": "返回"
76
178
  },
179
+ "tip": "onBack | 返回"
77
180
  },
78
- name: 'onBack',
79
- setter: 'FunctionSetter',
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: 'i18n',
85
- 'en-US': 'onAddToCart',
86
- 'zh-CN': '加入购物车事件',
210
+ "title": {
211
+ "label": {
212
+ "type": "i18n",
213
+ "en-US": "onAddToCart",
214
+ "zh-CN": "加入购物车"
87
215
  },
216
+ "tip": "onAddToCart | 加入购物车"
88
217
  },
89
- name: 'onAddToCart',
90
- setter: 'FunctionSetter',
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
- style: true,
95
- // lowcode-types 在不同版本下 events 结构有差异,这里以运行时能力为准并做类型兜底
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: IPublicTypeSnippet[] = [
250
+ const snippets: Snippet[] = [
114
251
  {
115
- title: 'KioskSkuDetail',
116
- screenshot: '',
117
- schema: {
118
- componentName: 'KioskSkuDetail',
119
- props: {
120
- productId: 1,
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.83",
3
+ "version": "6.8.84",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",