@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,37 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type WalletPassType = 'rechargeable' | 'point' | 'voucher' | 'discount';
4
+ export interface MultiLanguageTitle {
5
+ original?: string;
6
+ en?: string;
7
+ 'zh-CN'?: string;
8
+ 'zh-HK'?: string;
9
+ }
10
+ export interface WalletPassItem {
11
+ /** 钱包通行证类型 */
12
+ type: WalletPassType;
13
+ /** 是否显示,1表示显示,0表示隐藏 */
14
+ display: 0 | 1;
15
+ /** 自定义标题,支持多语言 */
16
+ custom_title?: MultiLanguageTitle;
17
+ }
18
+ export interface SortableWalletPassTypesProps {
19
+ /** 当前值,包含各种钱包通行证类型的配置 */
20
+ value?: WalletPassItem[];
21
+ /** 值变化时的回调函数 */
22
+ onChange?: (value: WalletPassItem[]) => void;
23
+ /** 是否禁用编辑 */
24
+ disabled?: boolean;
25
+ /** 组件类名 */
26
+ className?: string;
27
+ /** 组件样式 */
28
+ style?: React.CSSProperties;
29
+ }
30
+ /** 默认的钱包通行证类型配置 */
31
+ export interface WalletPassTypeInfo {
32
+ type: WalletPassType;
33
+ custom_title: MultiLanguageTitle;
34
+ }
35
+ export declare const DEFAULT_WALLET_PASS_TYPES_CONFIG: WalletPassTypeInfo[];
36
+ declare const SortableWalletPassTypes: React.FC<SortableWalletPassTypesProps>;
37
+ export default SortableWalletPassTypes;
@@ -0,0 +1,193 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ import React, { useMemo, useCallback } from 'react';
14
+ import { EyeOutlined, EyeInvisibleOutlined, HolderOutlined } from '@ant-design/icons';
15
+ import classNames from 'classnames';
16
+ import { PisellText, SortableList } from '@pisell/materials';
17
+ import "./index.less";
18
+ var Editable = PisellText.Editable;
19
+ // import Editable from '@pisell/materials/src/components/pisellText/components/Editable';
20
+
21
+ // Types
22
+
23
+ /** 默认的钱包通行证类型配置 */
24
+
25
+ var WALLET_PASS_TYPES = ['rechargeable', 'point', 'voucher', 'discount'];
26
+
27
+ // 默认的钱包通行证类型配置
28
+ export var DEFAULT_WALLET_PASS_TYPES_CONFIG = [{
29
+ type: 'rechargeable',
30
+ custom_title: {
31
+ original: 'Balance',
32
+ en: 'Balance',
33
+ 'zh-CN': '余额',
34
+ 'zh-HK': '餘額'
35
+ }
36
+ }, {
37
+ type: 'point',
38
+ custom_title: {
39
+ original: 'Points',
40
+ en: 'Points',
41
+ 'zh-CN': '积分',
42
+ 'zh-HK': '積分'
43
+ }
44
+ }, {
45
+ type: 'voucher',
46
+ custom_title: {
47
+ original: 'Voucher',
48
+ en: 'Voucher',
49
+ 'zh-CN': '代金券',
50
+ 'zh-HK': '代金券'
51
+ }
52
+ }, {
53
+ type: 'discount',
54
+ custom_title: {
55
+ original: 'Discount',
56
+ en: 'Discount',
57
+ 'zh-CN': '折扣券',
58
+ 'zh-HK': '折扣券'
59
+ }
60
+ }];
61
+ var SortableWalletPassTypes = function SortableWalletPassTypes(props) {
62
+ var _props$value = props.value,
63
+ value = _props$value === void 0 ? [] : _props$value,
64
+ onChange = props.onChange,
65
+ _props$disabled = props.disabled,
66
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
67
+ className = props.className,
68
+ style = props.style;
69
+
70
+ // 生成完整的数据源,确保四种类型都存在,保持外部传入的顺序
71
+ var dataSource = useMemo(function () {
72
+ var result = [];
73
+ var processedTypes = new Set();
74
+
75
+ // 首先按照 value 的顺序添加已存在的项
76
+ value.forEach(function (item) {
77
+ if (WALLET_PASS_TYPES.includes(item.type) && !processedTypes.has(item.type)) {
78
+ result.push(item);
79
+ processedTypes.add(item.type);
80
+ }
81
+ });
82
+
83
+ // 然后添加缺失的默认类型
84
+ DEFAULT_WALLET_PASS_TYPES_CONFIG.forEach(function (defaultType) {
85
+ if (!processedTypes.has(defaultType.type)) {
86
+ result.push({
87
+ type: defaultType.type,
88
+ display: 0,
89
+ custom_title: defaultType.custom_title
90
+ });
91
+ }
92
+ });
93
+ return result;
94
+ }, [value]);
95
+
96
+ // 处理排序变化
97
+ var handleSortChange = useCallback(function (newList) {
98
+ if (!onChange || disabled) return;
99
+ onChange(newList);
100
+ }, [onChange, disabled]);
101
+
102
+ // 处理显示/隐藏切换
103
+ var handleToggleDisplay = useCallback(function (index) {
104
+ if (!onChange || disabled) return;
105
+ var newList = _toConsumableArray(dataSource);
106
+ newList[index] = _objectSpread(_objectSpread({}, newList[index]), {}, {
107
+ display: newList[index].display === 1 ? 0 : 1
108
+ });
109
+ onChange(newList);
110
+ }, [dataSource, onChange, disabled]);
111
+
112
+ // 处理标题编辑
113
+ var handleTitleChange = useCallback(function (index, newTitle) {
114
+ if (!onChange || disabled) return;
115
+ var newList = _toConsumableArray(dataSource);
116
+ newList[index] = _objectSpread(_objectSpread({}, newList[index]), {}, {
117
+ custom_title: typeof newTitle === 'string' ? {
118
+ original: newTitle,
119
+ en: newTitle
120
+ } : newTitle
121
+ });
122
+ onChange(newList);
123
+ }, [dataSource, onChange, disabled]);
124
+
125
+ // 获取显示标题
126
+ var getDisplayTitle = useCallback(function (item) {
127
+ var defaultType = DEFAULT_WALLET_PASS_TYPES_CONFIG.find(function (t) {
128
+ return t.type === item.type;
129
+ });
130
+ return item.custom_title || (defaultType === null || defaultType === void 0 ? void 0 : defaultType.custom_title) || {
131
+ original: item.type,
132
+ en: item.type
133
+ };
134
+ }, []);
135
+
136
+ // 渲染单个项
137
+ var renderItem = useCallback(function (item, index) {
138
+ var displayTitle = getDisplayTitle(item);
139
+ var isVisible = item.display === 1;
140
+ return /*#__PURE__*/React.createElement("div", {
141
+ className: classNames('sortable-wallet-pass-item', {
142
+ 'sortable-wallet-pass-item-disabled': disabled,
143
+ 'sortable-wallet-pass-item-hidden': !isVisible
144
+ })
145
+ }, /*#__PURE__*/React.createElement("div", {
146
+ className: "sortable-wallet-pass-drag-handle"
147
+ }, /*#__PURE__*/React.createElement(HolderOutlined, {
148
+ className: "drag-dots",
149
+ size: 20
150
+ })), /*#__PURE__*/React.createElement("div", {
151
+ className: "sortable-wallet-pass-title"
152
+ }, /*#__PURE__*/React.createElement(Editable, {
153
+ value: displayTitle,
154
+ editable: !disabled && {
155
+ maxLength: 10
156
+ },
157
+ onChange: function onChange(newValue) {
158
+ return handleTitleChange(index, newValue);
159
+ }
160
+ })), /*#__PURE__*/React.createElement("div", {
161
+ className: "sortable-wallet-pass-toggle"
162
+ }, /*#__PURE__*/React.createElement("button", {
163
+ type: "button",
164
+ style: {
165
+ cursor: 'pointer',
166
+ border: 'none',
167
+ background: 'transparent'
168
+ },
169
+ onClick: function onClick() {
170
+ return handleToggleDisplay(index);
171
+ }
172
+ }, isVisible ? /*#__PURE__*/React.createElement(EyeOutlined, {
173
+ className: "eye-icon eye-icon-visible"
174
+ }) : /*#__PURE__*/React.createElement(EyeInvisibleOutlined, {
175
+ className: "eye-icon eye-icon-hidden"
176
+ }))));
177
+ }, [disabled, getDisplayTitle, handleTitleChange, handleToggleDisplay]);
178
+ return /*#__PURE__*/React.createElement("div", {
179
+ className: classNames('sortable-wallet-pass-types', className, {
180
+ 'sortable-wallet-pass-types-disabled': disabled
181
+ }),
182
+ style: style
183
+ }, /*#__PURE__*/React.createElement(SortableList, {
184
+ dataSource: dataSource,
185
+ onChange: handleSortChange,
186
+ rowKey: "type",
187
+ renderItem: renderItem,
188
+ activationConstraint: {
189
+ distance: 5
190
+ }
191
+ }));
192
+ };
193
+ export default SortableWalletPassTypes;
@@ -0,0 +1,110 @@
1
+ .sortable-wallet-pass-types {
2
+ background: #fff;
3
+ border-radius: 8px;
4
+
5
+ &-disabled {
6
+ pointer-events: none;
7
+ opacity: 0.6;
8
+ }
9
+ }
10
+
11
+ .sortable-wallet-pass-item {
12
+ display: flex;
13
+ align-items: center;
14
+ padding: 4px 8px;
15
+ border-bottom: 1px solid #f0f0f0;
16
+ background: #fff;
17
+ transition: all 0.2s ease;
18
+ cursor: grab;
19
+
20
+ &:last-child {
21
+ border-bottom: none;
22
+ }
23
+
24
+ &:hover {
25
+ background: #fafafa;
26
+ }
27
+
28
+ &:active {
29
+ cursor: grabbing;
30
+ }
31
+
32
+ &-disabled {
33
+ cursor: not-allowed;
34
+
35
+ &:hover {
36
+ background: #fff;
37
+ }
38
+ }
39
+
40
+ &-hidden {
41
+ .sortable-wallet-pass-title {
42
+ opacity: 0.5;
43
+ }
44
+ }
45
+ }
46
+
47
+ .sortable-wallet-pass-drag-handle {
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ margin-right: 8px;
52
+ font-size: 18px;
53
+ cursor: grab;
54
+ line-height: 1;
55
+
56
+ .drag-dots {
57
+ display: inline-block;
58
+ }
59
+
60
+ &:active {
61
+ cursor: grabbing;
62
+ }
63
+ }
64
+
65
+ .sortable-wallet-pass-title {
66
+ flex: 1;
67
+ margin-right: 12px;
68
+ display: flex;
69
+ align-items: center;
70
+ min-height: 36px;
71
+ font-weight: bold;
72
+
73
+ .pisell-text-editable {
74
+ min-width: 120px;
75
+ }
76
+ }
77
+
78
+ .sortable-wallet-pass-toggle {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ width: 24px;
83
+ height: 24px;
84
+ cursor: pointer;
85
+ border-radius: 4px;
86
+ transition: all 0.2s ease;
87
+
88
+ &:hover {
89
+ background: #f5f5f5;
90
+ }
91
+
92
+ .eye-icon {
93
+ font-size: 16px;
94
+ }
95
+ }
96
+
97
+ // 拖拽时的样式
98
+ .sortable-wallet-pass-item[data-dnd-dragging='true'] {
99
+ background: #e6f7ff;
100
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
101
+ border-radius: 6px;
102
+ transform: rotate(3deg);
103
+ }
104
+
105
+ // 拖拽占位符样式
106
+ .sortable-wallet-pass-item[data-dnd-placeholder='true'] {
107
+ background: #f0f2f5;
108
+ border: 2px dashed #d9d9d9;
109
+ opacity: 0.6;
110
+ }
@@ -0,0 +1,3 @@
1
+ import WalletEditor from './WalletEditor';
2
+ export default WalletEditor;
3
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ import WalletEditor from "./WalletEditor";
2
+ export default WalletEditor;
3
+ export * from "./types";
@@ -0,0 +1,126 @@
1
+ declare const _default: {
2
+ en: {
3
+ walletName: string;
4
+ validityPeriod: string;
5
+ linkedPasses: string;
6
+ linkedPassesDesc: string;
7
+ sort: string;
8
+ status: string;
9
+ distributionConditions: string;
10
+ selectPasses: string;
11
+ backgroundImage: string;
12
+ advancedSettings: string;
13
+ sendConfig: string;
14
+ displaySettings: string;
15
+ viewPreview: string;
16
+ coverImage: string;
17
+ icon: string;
18
+ upload: string;
19
+ enable: string;
20
+ disable: string;
21
+ barCode: string;
22
+ qrCode: string;
23
+ day: string;
24
+ days: string;
25
+ month: string;
26
+ months: string;
27
+ year: string;
28
+ years: string;
29
+ forever: string;
30
+ custom: string;
31
+ balance: string;
32
+ point: string;
33
+ voucher: string;
34
+ discount: string;
35
+ rechargeable: string;
36
+ pleaseInputWalletName: string;
37
+ enterCoverImageURL: string;
38
+ enterJSONConfig: string;
39
+ selectValidityPeriod: string;
40
+ selectCustomDate: string;
41
+ registerToIssue: string;
42
+ };
43
+ 'zh-CN': {
44
+ walletName: string;
45
+ validityPeriod: string;
46
+ linkedPasses: string;
47
+ linkedPassesDesc: string;
48
+ sort: string;
49
+ status: string;
50
+ distributionConditions: string;
51
+ selectPasses: string;
52
+ backgroundImage: string;
53
+ advancedSettings: string;
54
+ sendConfig: string;
55
+ displaySettings: string;
56
+ viewPreview: string;
57
+ coverImage: string;
58
+ icon: string;
59
+ upload: string;
60
+ enable: string;
61
+ disable: string;
62
+ barCode: string;
63
+ qrCode: string;
64
+ day: string;
65
+ days: string;
66
+ month: string;
67
+ months: string;
68
+ year: string;
69
+ years: string;
70
+ forever: string;
71
+ custom: string;
72
+ balance: string;
73
+ point: string;
74
+ voucher: string;
75
+ discount: string;
76
+ rechargeable: string;
77
+ pleaseInputWalletName: string;
78
+ enterCoverImageURL: string;
79
+ enterJSONConfig: string;
80
+ selectValidityPeriod: string;
81
+ selectCustomDate: string;
82
+ registerToIssue: string;
83
+ };
84
+ 'zh-HK': {
85
+ walletName: string;
86
+ validityPeriod: string;
87
+ linkedPasses: string;
88
+ linkedPassesDesc: string;
89
+ sort: string;
90
+ status: string;
91
+ distributionConditions: string;
92
+ selectPasses: string;
93
+ backgroundImage: string;
94
+ advancedSettings: string;
95
+ sendConfig: string;
96
+ displaySettings: string;
97
+ viewPreview: string;
98
+ coverImage: string;
99
+ icon: string;
100
+ upload: string;
101
+ enable: string;
102
+ disable: string;
103
+ barCode: string;
104
+ qrCode: string;
105
+ day: string;
106
+ days: string;
107
+ month: string;
108
+ months: string;
109
+ year: string;
110
+ years: string;
111
+ forever: string;
112
+ custom: string;
113
+ balance: string;
114
+ point: string;
115
+ voucher: string;
116
+ discount: string;
117
+ rechargeable: string;
118
+ pleaseInputWalletName: string;
119
+ enterCoverImageURL: string;
120
+ enterJSONConfig: string;
121
+ selectValidityPeriod: string;
122
+ selectCustomDate: string;
123
+ registerToIssue: string;
124
+ };
125
+ };
126
+ export default _default;
@@ -0,0 +1,143 @@
1
+ export default {
2
+ en: {
3
+ // Form Labels
4
+ walletName: 'Wallet name',
5
+ validityPeriod: 'Validity Period',
6
+ linkedPasses: 'Linked passes',
7
+ linkedPassesDesc: 'Select the passes that will be available in this Wallet.',
8
+ sort: 'Sort',
9
+ status: 'Status',
10
+ distributionConditions: 'Issuance conditions',
11
+ selectPasses: 'Select passes',
12
+ backgroundImage: 'Background image',
13
+ advancedSettings: 'Advanced Settings',
14
+ sendConfig: 'Send Config',
15
+ displaySettings: 'Display settings',
16
+ viewPreview: 'View Preview',
17
+ coverImage: 'Cover Image',
18
+ icon: 'Icon',
19
+ upload: 'Upload',
20
+ // Status Options
21
+ enable: 'Enable',
22
+ disable: 'Disable',
23
+ // Barcode Types
24
+ barCode: 'Barcode',
25
+ qrCode: 'QR Code',
26
+ // Validity Period Options
27
+ day: 'day',
28
+ days: 'days',
29
+ month: 'month',
30
+ months: 'months',
31
+ year: 'year',
32
+ years: 'years',
33
+ forever: 'Forever',
34
+ custom: 'Custom',
35
+ // Wallet Pass Types
36
+ balance: 'Balance',
37
+ point: 'Points',
38
+ voucher: 'Voucher',
39
+ discount: 'Discount',
40
+ rechargeable: 'Rechargeable',
41
+ // Messages
42
+ pleaseInputWalletName: 'Please input wallet name!',
43
+ enterCoverImageURL: 'Enter cover image URL',
44
+ enterJSONConfig: 'Enter JSON config, e.g. {"type": "register"}',
45
+ selectValidityPeriod: 'Select validity period',
46
+ selectCustomDate: 'Select custom date',
47
+ registerToIssue: 'Register to issue'
48
+ },
49
+ 'zh-CN': {
50
+ // 表单标签
51
+ walletName: '钱包名称',
52
+ validityPeriod: '有效期',
53
+ linkedPasses: '包含的卡券',
54
+ linkedPassesDesc: '选择此 Wallet 中可展示与使用的卡券。',
55
+ sort: '排序',
56
+ status: '状态',
57
+ distributionConditions: '发放条件',
58
+ selectPasses: '选择卡券',
59
+ backgroundImage: '背景图',
60
+ advancedSettings: '高级设置',
61
+ sendConfig: '发送配置',
62
+ displaySettings: '显示设置',
63
+ viewPreview: '查看预览',
64
+ coverImage: '封面图片',
65
+ icon: '图标',
66
+ upload: '上传',
67
+ // 状态选项
68
+ enable: '启用',
69
+ disable: '禁用',
70
+ // 条形码类型
71
+ barCode: '条形码',
72
+ qrCode: '二维码',
73
+ // 有效期选项
74
+ day: '天',
75
+ days: '天',
76
+ month: '个月',
77
+ months: '个月',
78
+ year: '年',
79
+ years: '年',
80
+ forever: '永久',
81
+ custom: '自定义',
82
+ // 钱包通行证类型
83
+ balance: '余额',
84
+ point: '积分',
85
+ voucher: '代金券',
86
+ discount: '折扣券',
87
+ rechargeable: '充值卡',
88
+ // 消息
89
+ pleaseInputWalletName: '请输入钱包名称!',
90
+ enterCoverImageURL: '输入封面图片URL',
91
+ enterJSONConfig: '输入JSON配置,例如 {"type": "register"}',
92
+ selectValidityPeriod: '选择有效期',
93
+ selectCustomDate: '选择自定义日期',
94
+ registerToIssue: '注册即发放'
95
+ },
96
+ 'zh-HK': {
97
+ // 表單標籤
98
+ walletName: '錢包名稱',
99
+ validityPeriod: '有效期',
100
+ linkedPasses: '包含的卡券',
101
+ linkedPassesDesc: '選擇此 Wallet 中可展示與使用的卡券。',
102
+ sort: '排序',
103
+ status: '狀態',
104
+ distributionConditions: '發放條件',
105
+ selectPasses: '選擇卡券',
106
+ backgroundImage: '背景圖',
107
+ advancedSettings: '高級設置',
108
+ sendConfig: '發送配置',
109
+ displaySettings: '顯示設置',
110
+ viewPreview: '查看預覽',
111
+ coverImage: '封面圖片',
112
+ icon: '圖標',
113
+ upload: '上傳',
114
+ // 狀態選項
115
+ enable: '啟用',
116
+ disable: '禁用',
117
+ // 條形碼類型
118
+ barCode: '條形碼',
119
+ qrCode: '二維碼',
120
+ // 有效期選項
121
+ day: '天',
122
+ days: '天',
123
+ month: '個月',
124
+ months: '個月',
125
+ year: '年',
126
+ years: '年',
127
+ forever: '永久',
128
+ custom: '自定義',
129
+ // 錢包通行證類型
130
+ balance: '餘額',
131
+ point: '積分',
132
+ voucher: '代金券',
133
+ discount: '折扣券',
134
+ rechargeable: '充值卡',
135
+ // 消息
136
+ pleaseInputWalletName: '請輸入錢包名稱!',
137
+ enterCoverImageURL: '輸入封面圖片URL',
138
+ enterJSONConfig: '輸入JSON配置,例如 {"type": "register"}',
139
+ selectValidityPeriod: '選擇有效期',
140
+ selectCustomDate: '選擇自定義日期',
141
+ registerToIssue: '註冊即發放'
142
+ }
143
+ };
@@ -0,0 +1,52 @@
1
+ /// <reference types="react" />
2
+ import { FormInstance } from 'antd';
3
+ export interface MultiLanguageTitle {
4
+ original?: string;
5
+ 'zh-CN'?: string;
6
+ 'zh-HK'?: string;
7
+ en?: string;
8
+ }
9
+ export interface ValidForConfig {
10
+ unit: string;
11
+ unit_type: 'day' | 'month' | 'year';
12
+ type: 'normal' | 'custom' | 'forever';
13
+ custom_date?: string;
14
+ }
15
+ export declare type WalletPassType = 'balance' | 'point' | 'voucher' | 'discount' | 'rechargeable';
16
+ export interface ShowcaseWalletPassItem {
17
+ type: WalletPassType;
18
+ display: 0 | 1;
19
+ name?: MultiLanguageTitle;
20
+ custom_title?: MultiLanguageTitle;
21
+ }
22
+ export interface SendConfig {
23
+ type: string;
24
+ [key: string]: any;
25
+ }
26
+ export interface WalletMetadata {
27
+ showcaseWalletPass?: string[];
28
+ showcaseWalletPassNew?: ShowcaseWalletPassItem[];
29
+ welcomeText?: string;
30
+ customerName?: string;
31
+ coverImage?: string;
32
+ send_config?: SendConfig;
33
+ }
34
+ export interface WalletEditorValue {
35
+ name?: MultiLanguageTitle;
36
+ status: 'enable' | 'disable';
37
+ valid_for: ValidForConfig;
38
+ metadata: WalletMetadata;
39
+ }
40
+ export interface WalletEditorRef {
41
+ form: FormInstance;
42
+ setInitialValues: (values: WalletEditorValue) => void;
43
+ getValues: () => WalletEditorValue;
44
+ }
45
+ export interface WalletEditorProps {
46
+ value?: WalletEditorValue;
47
+ onChange?: (value: WalletEditorValue) => void;
48
+ onValuesChange?: (changedValue: any, values: WalletEditorValue) => void;
49
+ disabled?: boolean;
50
+ className?: string;
51
+ style?: React.CSSProperties;
52
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface FooterButtonsProps {
4
+ onRechargeClick?: () => void;
5
+ platform?: 'pc' | 'h5';
6
+ appleWalletUrl?: string;
7
+ googleWalletUrl?: string;
8
+ }
9
+ /**
10
+ * 通用底部按钮组件
11
+ * 根据step不同显示不同的按钮组
12
+ */
13
+ declare const FooterButtons: React.FC<FooterButtonsProps>;
14
+ export default FooterButtons;