@pisell/private-materials 3.4.47 → 3.4.49

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 (367) 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 +2 -2
  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 +23 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +23 -8
  11. package/es/components/Sales/Event/Detail.d.ts +30 -0
  12. package/es/components/Sales/Summary/utils.d.ts +1 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  15. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  16. package/es/components/appointmentBooking/hooks.d.ts +107 -0
  17. package/es/components/appointmentBooking/hooks.js +5 -0
  18. package/es/components/appointmentBooking/locales.d.ts +363 -0
  19. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  20. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  21. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  22. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  23. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  24. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  25. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  26. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  27. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  28. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  29. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  30. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  31. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  32. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  33. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  34. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  35. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  36. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  37. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  38. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  39. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  40. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  41. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  42. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  43. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  44. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  48. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  49. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  50. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  51. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  52. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  53. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  54. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  55. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  56. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  57. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  58. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  59. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  60. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  61. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  62. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  63. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  64. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  65. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  66. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  67. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  68. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  69. package/es/components/authentication/admin/index.d.ts +26 -0
  70. package/es/components/authentication/index.d.ts +0 -0
  71. package/es/components/booking/addons/model.d.ts +10 -1
  72. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  73. package/es/components/booking/components/customSelect/index.js +22 -3
  74. package/es/components/booking/components/footer/index.d.ts +11 -0
  75. package/es/components/booking/components/footer/utils.d.ts +41 -0
  76. package/es/components/booking/forms/footer.d.ts +6 -0
  77. package/es/components/booking/forms/model.d.ts +10 -1
  78. package/es/components/booking/info/client/index.d.ts +4 -0
  79. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
  80. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +25 -0
  81. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  82. package/es/components/booking/info/main.d.ts +12 -0
  83. package/es/components/booking/info/model.d.ts +14 -0
  84. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  85. package/es/components/booking/info2/index.d.ts +12 -0
  86. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  87. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  88. package/es/components/booking/locales.d.ts +834 -0
  89. package/es/components/booking/model.d.ts +119 -0
  90. package/es/components/booking/notes/model.d.ts +10 -1
  91. package/es/components/booking/payments/model.d.ts +10 -1
  92. package/es/components/eftposPay/hooks.d.ts +1 -1
  93. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  94. package/es/components/eftposPay/store/index.d.ts +3 -3
  95. package/es/components/index.d.ts +23 -0
  96. package/es/components/index.js +1 -1
  97. package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  98. package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  99. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  100. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  101. package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  102. package/es/components/pay/toC/index.d.ts +3 -0
  103. package/es/components/pay/toC/locales.d.ts +298 -0
  104. package/es/components/pay/toC/model.d.ts +40 -0
  105. package/es/components/pay/toC/serve.d.ts +62 -0
  106. package/es/components/schedules/model.d.ts +9 -1
  107. package/es/components/wallet/Detail/model.d.ts +13 -1
  108. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  109. package/es/components/wallet/PointCard/model.d.ts +13 -1
  110. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  111. package/es/components/wallet/Voucher/model.d.ts +13 -1
  112. package/es/components/wallet/model.d.ts +9 -1
  113. package/es/components/walletList/index.d.ts +0 -25
  114. package/es/components/walletList/index.js +93 -61
  115. package/es/components/walletList/serve.d.ts +4 -0
  116. package/es/components/walletList/serve.js +46 -13
  117. package/es/components/walletList/types/index.d.ts +12 -12
  118. package/es/components/walletList/types/index.js +2 -2
  119. package/es/index.d.ts +58 -0
  120. package/es/index.js +3 -2
  121. package/es/plus/clientName/index.d.ts +4 -0
  122. package/es/plus/clientName/type.d.ts +13 -0
  123. package/es/plus/clientName/utils.d.ts +2 -0
  124. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  125. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  126. package/es/plus/contactInfo/index.d.ts +6 -0
  127. package/es/plus/contactInfo/locales.d.ts +15 -0
  128. package/es/plus/contactInfo/types.d.ts +91 -0
  129. package/es/plus/contactInfo/utils.d.ts +7 -0
  130. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  131. package/es/plus/contactInfoModal/index.d.ts +41 -0
  132. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  133. package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  134. package/es/plus/productSelect/CategoryTabs/index.js +6 -3
  135. package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
  136. package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  137. package/es/plus/productSelect/index.d.ts +32 -0
  138. package/es/plus/productSelect/utils.js +0 -1
  139. package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
  140. package/es/plus/walletEditor/WalletEditor.js +316 -0
  141. package/es/plus/walletEditor/WalletEditor.less +129 -0
  142. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  143. package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
  144. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  145. package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
  146. package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
  147. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  148. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
  149. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  150. package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  151. package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
  152. package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
  153. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  154. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
  155. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  156. package/es/plus/walletEditor/index.d.ts +3 -0
  157. package/es/plus/walletEditor/index.js +3 -0
  158. package/es/plus/walletEditor/locales.d.ts +126 -0
  159. package/es/plus/walletEditor/locales.js +143 -0
  160. package/es/plus/walletEditor/types.d.ts +52 -0
  161. package/es/plus/walletEditor/types.js +1 -0
  162. package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  163. package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
  164. package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
  165. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  166. package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
  167. package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
  168. package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  169. package/es/plus/walletPassGallery/components/passList/index.js +115 -0
  170. package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  171. package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
  172. package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
  173. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  174. package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
  175. package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  176. package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  177. package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
  178. package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
  179. package/es/plus/walletPassGallery/index.d.ts +6 -0
  180. package/es/plus/walletPassGallery/index.js +602 -0
  181. package/es/plus/walletPassGallery/index.less +115 -0
  182. package/es/plus/walletPassGallery/locales.d.ts +270 -0
  183. package/es/plus/walletPassGallery/locales.js +279 -0
  184. package/es/plus/walletPassGallery/serve.d.ts +218 -0
  185. package/es/plus/walletPassGallery/serve.js +289 -0
  186. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  187. package/lib/components/Sales/Event/Detail.d.ts +30 -0
  188. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  189. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  190. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  191. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  192. package/lib/components/appointmentBooking/hooks.d.ts +107 -0
  193. package/lib/components/appointmentBooking/hooks.js +3 -0
  194. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  195. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  196. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  197. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  198. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  199. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  200. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  201. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  202. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  203. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  204. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  205. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  206. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  207. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  208. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  209. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  210. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  211. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  212. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  213. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  214. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  215. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  216. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  217. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  218. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  219. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  220. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  221. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  222. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  223. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  224. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  225. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  226. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  227. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  228. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  229. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  230. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  231. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  232. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  233. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  234. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  235. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  236. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  237. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  238. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  239. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  240. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  241. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  242. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  243. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  244. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  245. package/lib/components/authentication/admin/index.d.ts +26 -0
  246. package/lib/components/authentication/index.d.ts +0 -0
  247. package/lib/components/booking/addons/model.d.ts +10 -1
  248. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  249. package/lib/components/booking/components/customSelect/index.js +26 -3
  250. package/lib/components/booking/components/footer/index.d.ts +11 -0
  251. package/lib/components/booking/components/footer/utils.d.ts +41 -0
  252. package/lib/components/booking/forms/footer.d.ts +6 -0
  253. package/lib/components/booking/forms/model.d.ts +10 -1
  254. package/lib/components/booking/info/client/index.d.ts +4 -0
  255. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
  256. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +25 -0
  257. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  258. package/lib/components/booking/info/main.d.ts +12 -0
  259. package/lib/components/booking/info/model.d.ts +14 -0
  260. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  261. package/lib/components/booking/info2/index.d.ts +12 -0
  262. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  263. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  264. package/lib/components/booking/locales.d.ts +834 -0
  265. package/lib/components/booking/model.d.ts +119 -0
  266. package/lib/components/booking/notes/model.d.ts +10 -1
  267. package/lib/components/booking/payments/model.d.ts +10 -1
  268. package/lib/components/eftposPay/hooks.d.ts +1 -1
  269. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  270. package/lib/components/eftposPay/store/index.d.ts +3 -3
  271. package/lib/components/index.d.ts +23 -0
  272. package/lib/components/index.js +1 -1
  273. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  274. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  275. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  276. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  277. package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  278. package/lib/components/pay/toC/index.d.ts +3 -0
  279. package/lib/components/pay/toC/locales.d.ts +298 -0
  280. package/lib/components/pay/toC/model.d.ts +40 -0
  281. package/lib/components/pay/toC/serve.d.ts +62 -0
  282. package/lib/components/schedules/model.d.ts +9 -1
  283. package/lib/components/wallet/Detail/model.d.ts +13 -1
  284. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  285. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  286. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  287. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  288. package/lib/components/wallet/model.d.ts +9 -1
  289. package/lib/components/walletList/index.d.ts +0 -25
  290. package/lib/components/walletList/index.js +88 -47
  291. package/lib/components/walletList/serve.d.ts +4 -0
  292. package/lib/components/walletList/serve.js +12 -0
  293. package/lib/components/walletList/types/index.d.ts +12 -12
  294. package/lib/index.d.ts +58 -0
  295. package/lib/index.js +6 -3
  296. package/lib/plus/clientName/index.d.ts +4 -0
  297. package/lib/plus/clientName/type.d.ts +13 -0
  298. package/lib/plus/clientName/utils.d.ts +2 -0
  299. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  300. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  301. package/lib/plus/contactInfo/index.d.ts +6 -0
  302. package/lib/plus/contactInfo/locales.d.ts +15 -0
  303. package/lib/plus/contactInfo/types.d.ts +91 -0
  304. package/lib/plus/contactInfo/utils.d.ts +7 -0
  305. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  306. package/lib/plus/contactInfoModal/index.d.ts +41 -0
  307. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  308. package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  309. package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
  310. package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
  311. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  312. package/lib/plus/productSelect/index.d.ts +32 -0
  313. package/lib/plus/productSelect/utils.js +0 -1
  314. package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
  315. package/lib/plus/walletEditor/WalletEditor.js +354 -0
  316. package/lib/plus/walletEditor/WalletEditor.less +129 -0
  317. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  318. package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
  319. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  320. package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
  321. package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
  322. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  323. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
  324. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  325. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  326. package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
  327. package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
  328. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  329. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
  330. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  331. package/lib/plus/walletEditor/index.d.ts +3 -0
  332. package/lib/plus/walletEditor/index.js +42 -0
  333. package/lib/plus/walletEditor/locales.d.ts +126 -0
  334. package/lib/plus/walletEditor/locales.js +167 -0
  335. package/lib/plus/walletEditor/types.d.ts +52 -0
  336. package/lib/plus/walletEditor/types.js +17 -0
  337. package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  338. package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
  339. package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
  340. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  341. package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
  342. package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
  343. package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  344. package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
  345. package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  346. package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
  347. package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
  348. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  349. package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
  350. package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  351. package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  352. package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
  353. package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
  354. package/lib/plus/walletPassGallery/index.d.ts +6 -0
  355. package/lib/plus/walletPassGallery/index.js +498 -0
  356. package/lib/plus/walletPassGallery/index.less +115 -0
  357. package/lib/plus/walletPassGallery/locales.d.ts +270 -0
  358. package/lib/plus/walletPassGallery/locales.js +299 -0
  359. package/lib/plus/walletPassGallery/serve.d.ts +218 -0
  360. package/lib/plus/walletPassGallery/serve.js +98 -0
  361. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  362. package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
  363. package/lowcode/wallet-editor/meta.ts +57 -0
  364. package/lowcode/wallet-editor/snippets.ts +13 -0
  365. package/lowcode/wallet-pass-gallery/meta.ts +35 -0
  366. package/package.json +3 -3
  367. package/lowcode/wallet/meta.ts +0 -79
@@ -0,0 +1,62 @@
1
+ export declare const getPaymentList: (values: any) => Promise<{
2
+ message: string;
3
+ status: string;
4
+ paymentList?: undefined;
5
+ } | {
6
+ message: string;
7
+ status: string;
8
+ paymentList: any;
9
+ }>;
10
+ /**
11
+ * @title: 聚合接口, 根据订单 返回支付列表和钱包
12
+ * @description:
13
+ * @param {object} values
14
+ * @return {*}
15
+ * @Author: zhiwei.Wang
16
+ * @Date: 2024-08-15 11:52
17
+ */
18
+ export declare const getPaymentsAndWalletPass: (values: {
19
+ order_id: string;
20
+ total_amount: number;
21
+ sale_channel: string;
22
+ }) => Promise<any>;
23
+ /**
24
+ * @title: 初始化交易组
25
+ * @description:
26
+ * @param {object} values
27
+ * @return {*}
28
+ * @Author: zhiwei.Wang
29
+ * @Date: 2024-08-16 10:42
30
+ */
31
+ export declare const getPaymentInit: (values: {
32
+ order_id?: string;
33
+ amount?: number;
34
+ }) => Promise<any>;
35
+ /**
36
+ * @title: 获取钱包名称和弹窗状态
37
+ * @description:
38
+ * @param {object} values
39
+ * @return {*}
40
+ * @Author: shengjie.zuo
41
+ * @member: 马天宇
42
+ * @Date: 2025-02-21 10:42
43
+ */
44
+ export declare const getWalletNameAndPopupStatus: (values: {
45
+ setting_type?: string;
46
+ }) => Promise<{
47
+ wallet: {
48
+ name?: {
49
+ en: string;
50
+ 'zh-CN': string;
51
+ 'zh-HK': string;
52
+ };
53
+ };
54
+ wallet_setting: {
55
+ popup_status?: 1 | 0;
56
+ };
57
+ }>;
58
+ /**
59
+ * @title: 获取支付结果
60
+ * @description: 获取支付结果
61
+ */
62
+ export declare const getPaymentResult: (values: any) => Promise<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
72
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
+ state: FormState;
74
+ } & {
75
+ dispatch: (params: {
76
+ type: string;
77
+ payload: any;
78
+ }) => void;
79
+ }>;
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
@@ -1,28 +1,3 @@
1
- import React from 'react';
2
1
  import './index.less';
3
- declare module 'react' {
4
- interface HTMLAttributes<T> {
5
- role?: string;
6
- }
7
- }
8
- declare global {
9
- namespace JSX {
10
- interface IntrinsicElements {
11
- div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
12
- children?: React.ReactNode;
13
- onClick?: React.MouseEventHandler<HTMLDivElement>;
14
- onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
15
- onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
16
- onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
17
- onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
18
- role?: string;
19
- };
20
- img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
21
- span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
22
- children?: React.ReactNode;
23
- };
24
- }
25
- }
26
- }
27
2
  declare const WalletList: (props: any) => JSX.Element;
28
3
  export default WalletList;
@@ -21,7 +21,7 @@ import { Provider, Context } from "./model";
21
21
  import { WalletCard, Carousel } from '@pisell/materials';
22
22
  import { LeftOutlined, RightOutlined } from '@ant-design/icons';
23
23
  import useEngineContext from "./../../hooks/useEngineContext";
24
- import { getWalletList, getWalletBalance, getWalletShopList } from "./serve";
24
+ import { getWalletList, batchGetWalletBalance, getWalletShopList } from "./serve";
25
25
  import { locales, getUniqueId } from '@pisell/utils';
26
26
  import { request } from "./../../utils";
27
27
  import { defaultWalletGuideConfig } from "./status";
@@ -29,7 +29,7 @@ import localeTexts from "./locales";
29
29
  import "./index.less";
30
30
  import classNames from 'classnames';
31
31
  // 导入所有类型
32
- import { WalletCardItem, DEFAULT_CARD_CONFIG } from "./types";
32
+ import { DEFAULT_CARD_CONFIG } from "./types";
33
33
  import PinModal from "../pinModal";
34
34
 
35
35
  // 添加 localStorage 相关的操作函数
@@ -73,10 +73,6 @@ var getFromLocalStorage = function getFromLocalStorage(key) {
73
73
  }
74
74
  };
75
75
 
76
- // @ts-ignore
77
-
78
- // @ts-ignore
79
-
80
76
  // 定义轮播图配置
81
77
  var CAROUSEL_CONFIG = {
82
78
  className: 'pisell-lowcode__walletList',
@@ -126,8 +122,43 @@ var DEFAULT_WALLET_CARD = {
126
122
  en: 'Level'
127
123
  },
128
124
  metadata: {
129
- barcodetype: 'barCode',
130
- showcaseWalletPass: ['rechargeable', 'piont', 'voucher', 'discount'],
125
+ showcaseWalletPassNew: [{
126
+ type: 'rechargeable',
127
+ display: 1,
128
+ custom_title: {
129
+ original: 'Balance',
130
+ 'zh-CN': '充值卡',
131
+ 'zh-HK': '充值卡',
132
+ en: 'Balance'
133
+ }
134
+ }, {
135
+ type: 'point',
136
+ display: 1,
137
+ custom_title: {
138
+ original: 'Points',
139
+ 'zh-CN': '积分卡',
140
+ 'zh-HK': '積分卡',
141
+ en: 'Points'
142
+ }
143
+ }, {
144
+ type: 'voucher',
145
+ display: 1,
146
+ custom_title: {
147
+ original: 'Voucher',
148
+ 'zh-CN': '代金券',
149
+ 'zh-HK': '代金券',
150
+ en: 'Voucher'
151
+ }
152
+ }, {
153
+ type: 'discount',
154
+ display: 1,
155
+ custom_title: {
156
+ original: 'Discount',
157
+ 'zh-CN': '折扣卡',
158
+ 'zh-HK': '折扣卡',
159
+ en: 'Discount'
160
+ }
161
+ }],
131
162
  coverImage: '',
132
163
  icon: ''
133
164
  }
@@ -243,7 +274,7 @@ var WalletList = Provider(function (props) {
243
274
  if (isMountedRef.current) {
244
275
  setState({
245
276
  list: [DEFAULT_WALLET_CARD],
246
- balance: DEFAULT_BALANCE,
277
+ balance: [],
247
278
  hasAttempted: true,
248
279
  isLoggedIn: false
249
280
  });
@@ -392,7 +423,7 @@ var WalletList = Provider(function (props) {
392
423
  };
393
424
  var initData = /*#__PURE__*/function () {
394
425
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(requestId) {
395
- var cachedList, cachedBalance, _yield$Promise$all, _yield$Promise$all2, walletListData, walletBalanceData, _message, _data, isAuthError;
426
+ var cachedList, cachedBalance, walletListData, walletBalanceData, _message, _data, isAuthError;
396
427
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
397
428
  while (1) switch (_context3.prev = _context3.next) {
398
429
  case 0:
@@ -415,7 +446,7 @@ var WalletList = Provider(function (props) {
415
446
  // 设置状态为已尝试请求,提供默认数据而不是空列表
416
447
  setState({
417
448
  list: [DEFAULT_WALLET_CARD],
418
- balance: DEFAULT_BALANCE,
449
+ balance: [],
419
450
  hasAttempted: true,
420
451
  isLoggedIn: false
421
452
  });
@@ -433,6 +464,13 @@ var WalletList = Provider(function (props) {
433
464
  try {
434
465
  cachedList = getFromLocalStorage(STORAGE_KEY);
435
466
  cachedBalance = getFromLocalStorage(STORAGE_KEY_BALANCE);
467
+ // 避免使用旧版数据
468
+ if (!Array.isArray(cachedBalance) || !cachedBalance.some(function (item) {
469
+ var _item$hasOwnProperty;
470
+ return (_item$hasOwnProperty = item.hasOwnProperty) === null || _item$hasOwnProperty === void 0 ? void 0 : _item$hasOwnProperty.call(item, 'gift_card_balance');
471
+ })) {
472
+ cachedBalance = null;
473
+ }
436
474
  } catch (e) {
437
475
  console.error('Error fetching from localStorage:', e);
438
476
  }
@@ -453,12 +491,15 @@ var WalletList = Provider(function (props) {
453
491
  return _context3.abrupt("return");
454
492
  case 16:
455
493
  _context3.next = 18;
456
- return Promise.all([getWalletList(), getWalletBalance()]);
494
+ return getWalletList();
457
495
  case 18:
458
- _yield$Promise$all = _context3.sent;
459
- _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
460
- walletListData = _yield$Promise$all2[0];
461
- walletBalanceData = _yield$Promise$all2[1];
496
+ walletListData = _context3.sent;
497
+ _context3.next = 21;
498
+ return batchGetWalletBalance(walletListData.map(function (item) {
499
+ return item.wallet_id;
500
+ }));
501
+ case 21:
502
+ walletBalanceData = _context3.sent;
462
503
  if (!(!isMountedRef.current || requestIdRef.current !== requestId)) {
463
504
  _context3.next = 24;
464
505
  break;
@@ -498,36 +539,38 @@ var WalletList = Provider(function (props) {
498
539
  _context2.prev = 2;
499
540
  // 准备重试请求
500
541
  retryBalanceData = walletBalanceData;
501
- retryListData = walletListData; // 如果余额数据为空,重试请求余额
502
- if (walletBalanceData) {
542
+ retryListData = walletListData; // 如果列表数据为空,重试请求列表
543
+ if (!(Array.isArray(walletListData) && walletListData.length === 0)) {
503
544
  _context2.next = 10;
504
545
  break;
505
546
  }
506
547
  _context2.next = 8;
507
- return getWalletBalance();
548
+ return getWalletList();
508
549
  case 8:
509
- retryBalanceData = _context2.sent;
510
- if (retryBalanceData) {
550
+ retryListData = _context2.sent;
551
+ if (retryListData && retryListData.length > 0) {
511
552
  try {
512
- saveToLocalStorage(STORAGE_KEY_BALANCE, retryBalanceData);
553
+ saveToLocalStorage(STORAGE_KEY, retryListData);
513
554
  } catch (e) {
514
- console.error('Error saving retry balance to localStorage:', e);
555
+ console.error('Error saving retry list to localStorage:', e);
515
556
  }
516
557
  }
517
558
  case 10:
518
- if (!(Array.isArray(walletListData) && walletListData.length === 0)) {
559
+ if (walletBalanceData) {
519
560
  _context2.next = 15;
520
561
  break;
521
562
  }
522
563
  _context2.next = 13;
523
- return getWalletList({});
564
+ return batchGetWalletBalance(retryListData.map(function (item) {
565
+ return item.wallet_id;
566
+ }));
524
567
  case 13:
525
- retryListData = _context2.sent;
526
- if (retryListData && retryListData.length > 0) {
568
+ retryBalanceData = _context2.sent;
569
+ if (retryBalanceData) {
527
570
  try {
528
- saveToLocalStorage(STORAGE_KEY, retryListData);
571
+ saveToLocalStorage(STORAGE_KEY_BALANCE, retryBalanceData);
529
572
  } catch (e) {
530
- console.error('Error saving retry list to localStorage:', e);
573
+ console.error('Error saving retry balance to localStorage:', e);
531
574
  }
532
575
  }
533
576
  case 15:
@@ -608,57 +651,46 @@ var WalletList = Provider(function (props) {
608
651
  metadata = _ref5.metadata,
609
652
  name = _ref5.name;
610
653
  var _ref6 = metadata || {},
611
- _ref6$barcodetype = _ref6.barcodetype,
612
- barcodetype = _ref6$barcodetype === void 0 ? 'barCode' : _ref6$barcodetype,
613
- _ref6$showcaseWalletP = _ref6.showcaseWalletPass,
614
- showcaseWalletPass = _ref6$showcaseWalletP === void 0 ? [] : _ref6$showcaseWalletP,
654
+ _ref6$showcaseWalletP = _ref6.showcaseWalletPassNew,
655
+ showcaseWalletPassNew = _ref6$showcaseWalletP === void 0 ? [] : _ref6$showcaseWalletP,
615
656
  _ref6$coverImage = _ref6.coverImage,
616
657
  coverImage = _ref6$coverImage === void 0 ? '' : _ref6$coverImage,
617
658
  _ref6$icon = _ref6.icon,
618
659
  icon = _ref6$icon === void 0 ? '' : _ref6$icon;
619
660
  var shopName = shop.name;
620
- var balance = state.balance;
661
+ var _state$balance = state.balance,
662
+ balance = _state$balance === void 0 ? [] : _state$balance;
663
+ var balanceItem = balance.find(function (bi) {
664
+ return bi.wallet_id == item.wallet_id;
665
+ }) || DEFAULT_BALANCE;
621
666
 
622
667
  // 字段映射关系
623
- var balanceKeyMap = {
624
- gift_card_balance: 'rechargeable',
625
- point_card_balance: 'piont',
626
- voucher_count: 'voucher',
627
- discount_card_count: 'discount'
668
+ var _balanceKeyMap = {
669
+ rechargeable: 'gift_card_balance',
670
+ point: 'point_card_balance',
671
+ voucher: 'voucher_count',
672
+ discount: 'discount_card_count'
628
673
  };
629
-
630
- // 根据showcaseWalletPass生成items数组
631
- var cardItems = (showcaseWalletPass || []).map(function (key) {
632
- var _Object$entries$find;
633
- // 找到对应的balance字段
634
- var balanceKey = (_Object$entries$find = Object.entries(balanceKeyMap).find(function (_ref7) {
635
- var _ref8 = _slicedToArray(_ref7, 2),
636
- _ = _ref8[0],
637
- value = _ref8[1];
638
- return value === key;
639
- })) === null || _Object$entries$find === void 0 ? void 0 : _Object$entries$find[0];
640
- var value = balanceKey ? balance[balanceKey] || 0 : 0;
641
- if (balanceKey === 'voucher_count') {
642
- value += balance.good_pass_count;
643
- }
644
- return {
645
- key: key,
646
- label: key,
647
- hidden: false,
674
+ var cardItems = showcaseWalletPassNew.map(function (showCaseItem) {
675
+ var balanceKey = _balanceKeyMap[showCaseItem.type];
676
+ var value = balanceKey ? balanceItem[balanceKey] || 0 : 0;
677
+ return _objectSpread(_objectSpread({}, showCaseItem), {}, {
648
678
  value: value
649
- };
679
+ });
650
680
  });
681
+
651
682
  // 构建WalletCard的props
652
683
  // 优先级:接口返回值 > globalState > DEFAULT_CARD_CONFIG
653
684
  var cardProps = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_CARD_CONFIG), globalState), {}, {
654
685
  // 最后应用API返回的数据,这些拥有最高优先级
686
+ id: wallet.id,
655
687
  iconImg: icon,
656
688
  symbol: symbol,
657
689
  cardNo: code,
658
690
  walletName: getLocalizedName(name, dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale),
659
691
  shopName: shopName,
660
- codeType: barcodetype,
661
- items: cardItems,
692
+ // codeType: barcodetype,
693
+ items: cardItems.slice(0, 4),
662
694
  customBackgroundImage: coverImage,
663
695
  isLogin: isUserLoggedIn // 添加登录状态
664
696
  });
@@ -10,6 +10,10 @@ export declare const getWalletList: () => Promise<WalletPass[]>;
10
10
  * @returns
11
11
  */
12
12
  export declare const getWalletBalance: () => Promise<WalletBalance | null>;
13
+ /**
14
+ * 批量获取钱包余额信息
15
+ */
16
+ export declare const batchGetWalletBalance: (walletIds: string[]) => Promise<Record<string, WalletBalance> | null>;
13
17
  /**
14
18
  * @title: 获取钱包店铺列表
15
19
  * @description:
@@ -69,39 +69,72 @@ export var getWalletBalance = /*#__PURE__*/function () {
69
69
  }();
70
70
 
71
71
  /**
72
- * @title: 获取钱包店铺列表
73
- * @description:
74
- * @return {*}
75
- * @Author: WangHan
76
- * @Date: 2025-06-09 11:12
72
+ * 批量获取钱包余额信息
77
73
  */
78
- export var getWalletShopList = /*#__PURE__*/function () {
79
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
74
+ export var batchGetWalletBalance = /*#__PURE__*/function () {
75
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(walletIds) {
80
76
  var _yield$request$getReq3, data;
81
77
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
82
78
  while (1) switch (_context3.prev = _context3.next) {
83
79
  case 0:
84
80
  _context3.prev = 0;
85
81
  _context3.next = 3;
86
- return request.getRequest().get('/h5/wallet/shop/list', params || {}, {
87
- // abort: true,
88
- useCache: true
82
+ return request.getRequest().get('/h5/wallet/wallet-pass/balance/batch', {
83
+ wallet_id: walletIds
89
84
  });
90
85
  case 3:
91
86
  _yield$request$getReq3 = _context3.sent;
92
87
  data = _yield$request$getReq3.data;
93
- return _context3.abrupt("return", data || null);
88
+ return _context3.abrupt("return", data || {});
94
89
  case 8:
95
90
  _context3.prev = 8;
96
91
  _context3.t0 = _context3["catch"](0);
97
- return _context3.abrupt("return", null);
92
+ return _context3.abrupt("return", {});
98
93
  case 11:
99
94
  case "end":
100
95
  return _context3.stop();
101
96
  }
102
97
  }, _callee3, null, [[0, 8]]);
103
98
  }));
104
- return function getWalletShopList(_x) {
99
+ return function batchGetWalletBalance(_x) {
105
100
  return _ref3.apply(this, arguments);
106
101
  };
102
+ }();
103
+
104
+ /**
105
+ * @title: 获取钱包店铺列表
106
+ * @description:
107
+ * @return {*}
108
+ * @Author: WangHan
109
+ * @Date: 2025-06-09 11:12
110
+ */
111
+ export var getWalletShopList = /*#__PURE__*/function () {
112
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
113
+ var _yield$request$getReq4, data;
114
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
115
+ while (1) switch (_context4.prev = _context4.next) {
116
+ case 0:
117
+ _context4.prev = 0;
118
+ _context4.next = 3;
119
+ return request.getRequest().get('/h5/wallet/shop/list', params || {}, {
120
+ // abort: true,
121
+ useCache: true
122
+ });
123
+ case 3:
124
+ _yield$request$getReq4 = _context4.sent;
125
+ data = _yield$request$getReq4.data;
126
+ return _context4.abrupt("return", data || null);
127
+ case 8:
128
+ _context4.prev = 8;
129
+ _context4.t0 = _context4["catch"](0);
130
+ return _context4.abrupt("return", null);
131
+ case 11:
132
+ case "end":
133
+ return _context4.stop();
134
+ }
135
+ }, _callee4, null, [[0, 8]]);
136
+ }));
137
+ return function getWalletShopList(_x2) {
138
+ return _ref4.apply(this, arguments);
139
+ };
107
140
  }();
@@ -6,14 +6,18 @@ export interface MultiLanguageName {
6
6
  en: string;
7
7
  [key: string]: string;
8
8
  }
9
+ declare type WalletPassType = 'rechargeable' | 'point' | 'voucher' | 'discount';
9
10
  export interface WalletMetadata {
10
11
  name: MultiLanguageName;
11
12
  welcomeText?: string | MultiLanguageName;
12
13
  customerName?: string;
13
14
  coverImage?: string;
14
15
  icon?: string;
15
- barcodetype: 'barCode' | 'orCode';
16
- showcaseWalletPass?: ('rechargeable' | 'piont' | 'voucher' | 'discount')[];
16
+ showcaseWalletPassNew?: Array<{
17
+ type: WalletPassType;
18
+ custom_title?: string | MultiLanguageName;
19
+ display?: 0 | 1;
20
+ }>;
17
21
  }
18
22
  export interface Shop {
19
23
  id: number;
@@ -56,15 +60,10 @@ export interface WalletBalance {
56
60
  voucher_count: number;
57
61
  discount_card_count: number;
58
62
  }
59
- export interface WalletBalanceItem {
60
- key: string;
61
- label: string;
62
- value: number;
63
- }
64
63
  export interface WalletCardItem {
65
- key: string;
66
- label: string;
67
- hidden: boolean;
64
+ type: WalletPassType;
65
+ custom_title?: string | MultiLanguageName;
66
+ display: 0 | 1;
68
67
  value?: number;
69
68
  }
70
69
  export interface State {
@@ -106,7 +105,7 @@ export interface WalletListProps {
106
105
  platform?: 'pc' | 'h5' | 'ipad';
107
106
  mode?: 'dark' | 'light';
108
107
  cardStyle?: 'normal' | 'full';
109
- codeType?: 'barCode' | 'orCode';
108
+ codeType?: 'barCode' | 'qrCode';
110
109
  codeDirection?: 'bottom' | 'top';
111
110
  shopName?: boolean;
112
111
  showWalletName?: boolean;
@@ -131,7 +130,7 @@ export interface WalletCardProps {
131
130
  platform?: 'pc' | 'h5' | 'ipad';
132
131
  mode?: 'dark' | 'light';
133
132
  cardStyle?: 'normal' | 'full';
134
- codeType?: 'barCode' | 'orCode';
133
+ codeType?: 'barCode' | 'qrCode';
135
134
  codeDirection?: 'bottom' | 'top';
136
135
  shopName?: boolean;
137
136
  showIcon?: boolean;
@@ -192,3 +191,4 @@ export interface CarouselSettings {
192
191
  };
193
192
  }>;
194
193
  }
194
+ export {};
@@ -1,5 +1,7 @@
1
1
  // 多语言名称接口
2
2
 
3
+ //rechargeable:充值卡 point:积分卡 voucher:优惠券 discountCard:折扣卡
4
+
3
5
  // 钱包元数据接口
4
6
 
5
7
  // 商店接口
@@ -10,8 +12,6 @@
10
12
 
11
13
  // 钱包余额接口
12
14
 
13
- // 钱包余额项接口
14
-
15
15
  // 卡片项接口
16
16
 
17
17
  // 应用状态接口