@pisell/private-materials 6.7.8 → 6.8.1

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 (423) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
  12. package/es/components/booking/addons/index.js +25 -17
  13. package/es/components/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/footer/amount.d.ts +1 -0
  15. package/es/components/booking/components/footer/amount.js +548 -84
  16. package/es/components/booking/components/footer/index.js +77 -56
  17. package/es/components/booking/components/footer/utils.d.ts +19 -0
  18. package/es/components/booking/components/footer/utils.js +194 -73
  19. package/es/components/booking/components/voucher/index.js +23 -7
  20. package/es/components/booking/forms/model.d.ts +10 -1
  21. package/es/components/booking/hooks/useQuotation.js +4 -1
  22. package/es/components/booking/info/model.d.ts +10 -1
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service2/utils.js +1 -0
  25. package/es/components/booking/info2/cartClientCard/index.js +30 -6
  26. package/es/components/booking/info2/index.js +1 -1
  27. package/es/components/booking/info2/service/addService/index.js +2 -3
  28. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  29. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  30. package/es/components/booking/info2/service/editService/index.js +16 -6
  31. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  32. package/es/components/booking/info2/service/editService/utils.js +66 -0
  33. package/es/components/booking/model.d.ts +9 -1
  34. package/es/components/booking/notes/model.d.ts +10 -1
  35. package/es/components/booking/payments/model.d.ts +10 -1
  36. package/es/components/booking/utils.d.ts +1 -0
  37. package/es/components/booking/utils.js +16 -3
  38. package/es/components/checkout/PaymentModal.d.ts +13 -5
  39. package/es/components/checkout/PaymentModal.js +304 -252
  40. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  41. package/es/components/checkout/components/AdditionalModule/index.js +52 -12
  42. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  43. package/es/components/checkout/components/AmountSummary/index.less +5 -6
  44. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  45. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  46. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  47. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  48. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  49. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  50. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  51. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  52. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  53. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  54. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  55. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  56. package/es/components/checkout/components/SearchAndClientModule/index.js +39 -40
  57. package/es/components/checkout/hooks/useWalletPass.js +1 -1
  58. package/es/components/checkout/index.less +1 -1
  59. package/es/components/checkout/locales.d.ts +6 -0
  60. package/es/components/checkout/locales.js +6 -0
  61. package/es/components/checkout/plugin.d.ts +2 -0
  62. package/es/components/checkout/plugin.js +303 -0
  63. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  64. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  65. package/es/components/eftposPay/hooks.d.ts +1 -1
  66. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  67. package/es/components/eftposPay/payo/config.js +70 -32
  68. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  69. package/es/components/eftposPay/payo/payment.js +579 -0
  70. package/es/components/eftposPay/store/index.d.ts +4 -4
  71. package/es/components/eftposPay/tyro/index.js +12 -0
  72. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  73. package/es/components/eftposPay/utils/log/index.js +371 -0
  74. package/es/components/index.d.ts +2 -1
  75. package/es/components/index.js +2 -1
  76. package/es/components/list/List.js +99 -56
  77. package/es/components/list/hooks/useListState.d.ts +5 -3
  78. package/es/components/list/hooks/useListState.js +10 -2
  79. package/es/components/list/styles/base.less +4 -0
  80. package/es/components/list/styles/content.less +1 -1
  81. package/es/components/list/styles/header.less +4 -4
  82. package/es/components/list/types.d.ts +1 -0
  83. package/es/components/list/utils/index.d.ts +13 -1
  84. package/es/components/list/utils/index.js +43 -1
  85. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  86. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  87. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  88. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  89. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  90. package/es/components/pay/toC/index.js +7 -4
  91. package/es/components/pay/toC/locales.d.ts +3 -0
  92. package/es/components/pay/toC/locales.js +6 -3
  93. package/es/components/pay/toC/model.d.ts +9 -1
  94. package/es/components/pay/toC/status.d.ts +1 -0
  95. package/es/components/pay/toC/status.js +3 -0
  96. package/es/components/schedules/model.d.ts +9 -1
  97. package/es/components/subTotal/index.js +1 -1
  98. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  99. package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
  100. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  101. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  102. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  103. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  104. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  105. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  106. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  107. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  108. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  109. package/es/components/systemSettings/registry/components/index.js +4 -0
  110. package/es/components/systemSettings/registry/index.d.ts +5 -0
  111. package/es/components/systemSettings/registry/index.js +1059 -0
  112. package/es/components/systemSettings/registry/index.less +410 -0
  113. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  114. package/es/components/systemSettings/registry/locales.js +300 -0
  115. package/es/components/systemSettings/registry/services.d.ts +77 -0
  116. package/es/components/systemSettings/registry/services.js +472 -0
  117. package/es/components/systemSettings/registry/types.d.ts +126 -0
  118. package/es/components/systemSettings/registry/types.js +1 -0
  119. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  120. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  121. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  122. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  123. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +58 -11
  124. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
  125. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
  126. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +149 -36
  127. package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
  128. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  129. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  130. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  131. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  132. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
  133. package/es/components/ticketBooking/locales.d.ts +9 -0
  134. package/es/components/ticketBooking/locales.js +12 -3
  135. package/es/components/ticketBooking/utils/index.d.ts +3 -0
  136. package/es/components/ticketBooking/utils/index.js +36 -13
  137. package/es/components/wallet/Detail/index.js +34 -2
  138. package/es/components/wallet/Detail/index.less +11 -0
  139. package/es/components/wallet/Detail/locales.d.ts +6 -0
  140. package/es/components/wallet/Detail/locales.js +14 -2
  141. package/es/components/wallet/Detail/model.d.ts +13 -1
  142. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  143. package/es/components/wallet/PointCard/model.d.ts +13 -1
  144. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  145. package/es/components/wallet/Voucher/index.js +11 -10
  146. package/es/components/wallet/Voucher/model.d.ts +13 -1
  147. package/es/components/wallet/components/WalletCard.js +5 -1
  148. package/es/components/wallet/index.js +4 -2
  149. package/es/components/wallet/model.d.ts +9 -1
  150. package/es/components/wallet/serve.d.ts +7 -0
  151. package/es/components/wallet/utils.d.ts +48 -0
  152. package/es/components/wallet/utils.js +342 -0
  153. package/es/index.d.ts +5 -0
  154. package/es/index.js +6 -1
  155. package/es/plus/clientCard/locales.js +3 -3
  156. package/es/plus/clinetSearch/index.js +28 -30
  157. package/es/plus/clinetSearch/locales.d.ts +3 -0
  158. package/es/plus/clinetSearch/locales.js +7 -4
  159. package/es/plus/clinetSearch/types.d.ts +12 -0
  160. package/es/plus/productSelect/CategoryTabs/index.d.ts +1 -0
  161. package/es/plus/productSelect/CategoryTabs/index.js +2 -1
  162. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  163. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  164. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  165. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  166. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  167. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  168. package/es/plus/walletPassGallery/index.js +7 -3
  169. package/es/plus/walletPassGallery/serve.d.ts +3 -0
  170. package/es/plus/walletPassGallery/serve.js +4 -2
  171. package/es/pro/Login2.0/index.less +15 -8
  172. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  173. package/es/pro/Selector/BatchSelectorDemo.js +470 -0
  174. package/es/pro/Selector/Selector.d.ts +5 -0
  175. package/es/pro/Selector/Selector.js +283 -0
  176. package/es/pro/Selector/SelectorGroup.d.ts +11 -0
  177. package/es/pro/Selector/SelectorGroup.js +537 -0
  178. package/es/pro/Selector/components/Card/index.d.ts +27 -0
  179. package/es/pro/Selector/components/Card/index.js +96 -0
  180. package/es/pro/Selector/components/Card/index.less +132 -0
  181. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  182. package/es/pro/Selector/components/IntersectionObserver.js +384 -0
  183. package/es/pro/Selector/components/NumericStepper/index.d.ts +41 -0
  184. package/es/pro/Selector/components/NumericStepper/index.js +198 -0
  185. package/es/pro/Selector/components/NumericStepper/index.less +221 -0
  186. package/es/pro/Selector/components/index.d.ts +2 -0
  187. package/es/pro/Selector/components/index.js +2 -0
  188. package/es/pro/Selector/demo.d.ts +3 -0
  189. package/es/pro/Selector/demo.js +158 -0
  190. package/es/pro/Selector/hooks/useSelectionController.d.ts +42 -0
  191. package/es/pro/Selector/hooks/useSelectionController.js +414 -0
  192. package/es/pro/Selector/index.d.ts +8 -0
  193. package/es/pro/Selector/index.js +5 -0
  194. package/es/pro/Selector/locales.d.ts +42 -0
  195. package/es/pro/Selector/locales.js +80 -0
  196. package/es/pro/Selector/selector.less +3 -0
  197. package/es/pro/Selector/selectorGroup.less +8 -0
  198. package/es/pro/Selector/types.d.ts +114 -0
  199. package/es/pro/Selector/types.js +1 -0
  200. package/es/pro/Selector/utils/index.d.ts +49 -0
  201. package/es/pro/Selector/utils/index.js +229 -0
  202. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  203. package/es/pro/comprehensiveSearch/locales.js +1 -1
  204. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
  205. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  206. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  207. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  208. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  209. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  210. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  211. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  212. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  213. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  214. package/lib/components/booking/addons/index.js +15 -7
  215. package/lib/components/booking/addons/model.d.ts +10 -1
  216. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  217. package/lib/components/booking/components/footer/amount.js +293 -41
  218. package/lib/components/booking/components/footer/index.js +30 -11
  219. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  220. package/lib/components/booking/components/footer/utils.js +138 -41
  221. package/lib/components/booking/components/voucher/index.js +25 -9
  222. package/lib/components/booking/forms/model.d.ts +10 -1
  223. package/lib/components/booking/hooks/useQuotation.js +2 -1
  224. package/lib/components/booking/info/model.d.ts +10 -1
  225. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  226. package/lib/components/booking/info/service2/utils.js +1 -0
  227. package/lib/components/booking/info2/cartClientCard/index.js +25 -5
  228. package/lib/components/booking/info2/index.js +7 -2
  229. package/lib/components/booking/info2/service/addService/index.js +1 -2
  230. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  231. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  232. package/lib/components/booking/info2/service/editService/index.js +12 -3
  233. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  234. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  235. package/lib/components/booking/model.d.ts +9 -1
  236. package/lib/components/booking/notes/model.d.ts +10 -1
  237. package/lib/components/booking/payments/model.d.ts +10 -1
  238. package/lib/components/booking/utils.d.ts +1 -0
  239. package/lib/components/booking/utils.js +11 -0
  240. package/lib/components/checkout/PaymentModal.d.ts +13 -5
  241. package/lib/components/checkout/PaymentModal.js +190 -147
  242. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  243. package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
  244. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  245. package/lib/components/checkout/components/AmountSummary/index.less +5 -6
  246. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  247. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  248. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  249. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  250. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  251. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  252. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  253. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  254. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  255. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  256. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  257. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  258. package/lib/components/checkout/components/SearchAndClientModule/index.js +29 -3
  259. package/lib/components/checkout/hooks/useWalletPass.js +1 -1
  260. package/lib/components/checkout/index.less +1 -1
  261. package/lib/components/checkout/locales.d.ts +6 -0
  262. package/lib/components/checkout/locales.js +6 -0
  263. package/lib/components/checkout/plugin.d.ts +2 -0
  264. package/lib/components/checkout/plugin.js +263 -0
  265. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  266. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  267. package/lib/components/eftposPay/hooks.d.ts +1 -1
  268. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  269. package/lib/components/eftposPay/payo/config.js +98 -73
  270. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  271. package/lib/components/eftposPay/payo/payment.js +357 -0
  272. package/lib/components/eftposPay/store/index.d.ts +4 -4
  273. package/lib/components/eftposPay/tyro/index.js +12 -0
  274. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  275. package/lib/components/eftposPay/utils/log/index.js +294 -0
  276. package/lib/components/index.d.ts +2 -1
  277. package/lib/components/index.js +3 -0
  278. package/lib/components/list/List.js +58 -36
  279. package/lib/components/list/hooks/useListState.d.ts +5 -3
  280. package/lib/components/list/hooks/useListState.js +9 -1
  281. package/lib/components/list/styles/base.less +4 -0
  282. package/lib/components/list/styles/content.less +1 -1
  283. package/lib/components/list/styles/header.less +4 -4
  284. package/lib/components/list/types.d.ts +1 -0
  285. package/lib/components/list/utils/index.d.ts +13 -1
  286. package/lib/components/list/utils/index.js +27 -0
  287. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  288. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  289. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  290. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  291. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  292. package/lib/components/pay/toC/index.js +4 -1
  293. package/lib/components/pay/toC/locales.d.ts +3 -0
  294. package/lib/components/pay/toC/locales.js +6 -3
  295. package/lib/components/pay/toC/model.d.ts +9 -1
  296. package/lib/components/pay/toC/status.d.ts +1 -0
  297. package/lib/components/pay/toC/status.js +5 -0
  298. package/lib/components/schedules/model.d.ts +9 -1
  299. package/lib/components/subTotal/index.js +1 -1
  300. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  301. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  302. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  303. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  304. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  305. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  306. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  307. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  308. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  309. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  310. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  311. package/lib/components/systemSettings/registry/components/index.js +48 -0
  312. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  313. package/lib/components/systemSettings/registry/index.js +529 -0
  314. package/lib/components/systemSettings/registry/index.less +410 -0
  315. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  316. package/lib/components/systemSettings/registry/locales.js +324 -0
  317. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  318. package/lib/components/systemSettings/registry/services.js +290 -0
  319. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  320. package/lib/components/systemSettings/registry/types.js +17 -0
  321. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  322. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  323. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  324. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  325. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +40 -5
  326. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
  327. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
  328. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +93 -24
  329. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  330. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  331. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  332. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  333. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  334. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
  335. package/lib/components/ticketBooking/locales.d.ts +9 -0
  336. package/lib/components/ticketBooking/locales.js +12 -3
  337. package/lib/components/ticketBooking/utils/index.d.ts +3 -0
  338. package/lib/components/ticketBooking/utils/index.js +20 -6
  339. package/lib/components/wallet/Detail/index.js +31 -3
  340. package/lib/components/wallet/Detail/index.less +11 -0
  341. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  342. package/lib/components/wallet/Detail/locales.js +14 -2
  343. package/lib/components/wallet/Detail/model.d.ts +13 -1
  344. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  345. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  346. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  347. package/lib/components/wallet/Voucher/index.js +8 -8
  348. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  349. package/lib/components/wallet/components/WalletCard.js +4 -0
  350. package/lib/components/wallet/index.js +2 -2
  351. package/lib/components/wallet/model.d.ts +9 -1
  352. package/lib/components/wallet/serve.d.ts +7 -0
  353. package/lib/components/wallet/utils.d.ts +48 -0
  354. package/lib/components/wallet/utils.js +287 -0
  355. package/lib/index.d.ts +5 -0
  356. package/lib/index.js +15 -0
  357. package/lib/plus/clientCard/locales.js +3 -3
  358. package/lib/plus/clinetSearch/index.js +17 -8
  359. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  360. package/lib/plus/clinetSearch/locales.js +7 -4
  361. package/lib/plus/clinetSearch/types.d.ts +12 -0
  362. package/lib/plus/productSelect/CategoryTabs/index.d.ts +1 -0
  363. package/lib/plus/productSelect/CategoryTabs/index.js +2 -1
  364. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  365. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  366. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  367. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  368. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  369. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  370. package/lib/plus/walletPassGallery/index.js +7 -3
  371. package/lib/plus/walletPassGallery/serve.d.ts +3 -0
  372. package/lib/plus/walletPassGallery/serve.js +3 -2
  373. package/lib/pro/Login2.0/index.less +15 -8
  374. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  375. package/lib/pro/Selector/BatchSelectorDemo.js +376 -0
  376. package/lib/pro/Selector/Selector.d.ts +5 -0
  377. package/lib/pro/Selector/Selector.js +264 -0
  378. package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
  379. package/lib/pro/Selector/SelectorGroup.js +463 -0
  380. package/lib/pro/Selector/components/Card/index.d.ts +27 -0
  381. package/lib/pro/Selector/components/Card/index.js +114 -0
  382. package/lib/pro/Selector/components/Card/index.less +132 -0
  383. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  384. package/lib/pro/Selector/components/IntersectionObserver.js +281 -0
  385. package/lib/pro/Selector/components/NumericStepper/index.d.ts +41 -0
  386. package/lib/pro/Selector/components/NumericStepper/index.js +221 -0
  387. package/lib/pro/Selector/components/NumericStepper/index.less +221 -0
  388. package/lib/pro/Selector/components/index.d.ts +2 -0
  389. package/lib/pro/Selector/components/index.js +42 -0
  390. package/lib/pro/Selector/demo.d.ts +3 -0
  391. package/lib/pro/Selector/demo.js +102 -0
  392. package/lib/pro/Selector/hooks/useSelectionController.d.ts +42 -0
  393. package/lib/pro/Selector/hooks/useSelectionController.js +338 -0
  394. package/lib/pro/Selector/index.d.ts +8 -0
  395. package/lib/pro/Selector/index.js +39 -0
  396. package/lib/pro/Selector/locales.d.ts +42 -0
  397. package/lib/pro/Selector/locales.js +80 -0
  398. package/lib/pro/Selector/selector.less +3 -0
  399. package/lib/pro/Selector/selectorGroup.less +8 -0
  400. package/lib/pro/Selector/types.d.ts +114 -0
  401. package/lib/pro/Selector/types.js +17 -0
  402. package/lib/pro/Selector/utils/index.d.ts +49 -0
  403. package/lib/pro/Selector/utils/index.js +221 -0
  404. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  405. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  406. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
  407. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  408. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  409. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  410. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  411. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  412. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  413. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  414. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  415. package/lowcode/payment-modal/meta.ts +135 -0
  416. package/lowcode/selector/meta.ts +352 -0
  417. package/lowcode/selector.group/meta.ts +200 -0
  418. package/lowcode/settings-registry/meta.ts +29 -0
  419. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  420. package/package.json +3 -3
  421. package/es/components/checkout/PaymentPlugin.d.ts +0 -3
  422. package/lib/components/checkout/PaymentPlugin.d.ts +0 -3
  423. package/lib/components/checkout/PaymentPlugin.js +0 -181
@@ -8,6 +8,8 @@ interface AdditionalModuleProps {
8
8
  hasOrderNote?: boolean;
9
9
  disabled?: boolean;
10
10
  showCashPayment?: boolean;
11
+ isFullWidth?: boolean;
12
+ showMore?: boolean;
11
13
  }
12
- declare function AdditionalModule({ orderInfo, customAmount, handleButtonClick, hasOrderNote, disabled, showCashPayment, }: AdditionalModuleProps): React.JSX.Element;
14
+ declare function AdditionalModule({ orderInfo, customAmount, handleButtonClick, hasOrderNote, disabled, showCashPayment, isFullWidth, showMore }: AdditionalModuleProps): React.JSX.Element;
13
15
  export default AdditionalModule;
@@ -18,7 +18,11 @@ function AdditionalModule(_ref) {
18
18
  _ref$disabled = _ref.disabled,
19
19
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
20
20
  _ref$showCashPayment = _ref.showCashPayment,
21
- showCashPayment = _ref$showCashPayment === void 0 ? false : _ref$showCashPayment;
21
+ showCashPayment = _ref$showCashPayment === void 0 ? false : _ref$showCashPayment,
22
+ _ref$isFullWidth = _ref.isFullWidth,
23
+ isFullWidth = _ref$isFullWidth === void 0 ? false : _ref$isFullWidth,
24
+ _ref$showMore = _ref.showMore,
25
+ showMore = _ref$showMore === void 0 ? true : _ref$showMore;
22
26
  // 初始化国际化
23
27
  locales.init(localeTexts, getLocale());
24
28
 
@@ -27,6 +31,12 @@ function AdditionalModule(_ref) {
27
31
  key: 'send-link',
28
32
  label: locales.getText('pisell2.text.send-link'),
29
33
  icon: /*#__PURE__*/React.createElement(LinkOutlined, null)
34
+ }, {
35
+ key: 'print-receipt',
36
+ label: locales.getText('pisell2.text.print-receipt'),
37
+ icon: /*#__PURE__*/React.createElement(Icon, {
38
+ type: "pisell2-printer"
39
+ })
30
40
  }];
31
41
  var Toast = useToast();
32
42
  return /*#__PURE__*/React.createElement("div", {
@@ -35,9 +45,9 @@ function AdditionalModule(_ref) {
35
45
  className: "additional-module-title"
36
46
  }, locales.getText('pisell2.text.others')), /*#__PURE__*/React.createElement("div", {
37
47
  className: "additional-module-buttons-container"
38
- }, showCashPayment ?
48
+ }, showCashPayment && !isFullWidth ?
39
49
  /*#__PURE__*/
40
- // Grid布局模式:两行布局(显示现金支付模块时)
50
+ // Grid布局模式:两行布局(显示现金支付模块且非全宽时)
41
51
  React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
42
52
  className: "additional-module-button-row"
43
53
  }, /*#__PURE__*/React.createElement(Button, {
@@ -57,14 +67,14 @@ function AdditionalModule(_ref) {
57
67
  }))), /*#__PURE__*/React.createElement(Button, {
58
68
  className: "additional-module-button-base purple-theme",
59
69
  onClick: function onClick() {
60
- handleButtonClick('print-receipt');
70
+ handleButtonClick('split-payment');
61
71
  },
62
72
  icon: /*#__PURE__*/React.createElement(Icon, {
63
- type: "pisell2-printer",
73
+ type: "pisell2-coins-01",
64
74
  className: "additional-module-button-icon"
65
75
  }),
66
76
  size: "large"
67
- }, locales.getText('pisell2.text.print-receipt'))), /*#__PURE__*/React.createElement("div", {
77
+ }, locales.getText('split.payment'))), /*#__PURE__*/React.createElement("div", {
68
78
  className: "additional-module-button-row"
69
79
  }, /*#__PURE__*/React.createElement(Button, {
70
80
  className: "additional-module-button-base purple-theme",
@@ -86,7 +96,7 @@ function AdditionalModule(_ref) {
86
96
  icon: /*#__PURE__*/React.createElement(ClockCircleOutlined, {
87
97
  className: "additional-module-button-icon"
88
98
  })
89
- }, locales.getText('pisell2.text.save-pay-later')), /*#__PURE__*/React.createElement(Dropdown, {
99
+ }, locales.getText('pisell2.text.save-pay-later')), showMore && /*#__PURE__*/React.createElement(Dropdown, {
90
100
  menu: {
91
101
  items: moreMenuItems,
92
102
  onClick: function onClick(_ref2) {
@@ -98,6 +108,12 @@ function AdditionalModule(_ref) {
98
108
  } else {
99
109
  Toast.fail(locales.getText('pisell2.text.order-no-payment-cannot-send-link'));
100
110
  }
111
+ } else if (key === 'print-receipt') {
112
+ handleButtonClick('print-receipt');
113
+ } else if (key === 'split-payment') {
114
+ handleButtonClick('split-payment');
115
+ } else if (key === 'print-receipt') {
116
+ handleButtonClick('print-receipt');
101
117
  }
102
118
  }
103
119
  },
@@ -118,9 +134,29 @@ function AdditionalModule(_ref) {
118
134
  type: "pisell2-dots-vertical",
119
135
  size: 20
120
136
  })
121
- })))) :
137
+ }))), !showMore && /*#__PURE__*/React.createElement("div", {
138
+ className: "additional-module-button-row"
139
+ }, /*#__PURE__*/React.createElement(Button, {
140
+ className: "additional-module-button-base purple-theme",
141
+ onClick: function onClick() {
142
+ handleButtonClick('send-link');
143
+ },
144
+ disabled: disabled,
145
+ size: "large",
146
+ icon: /*#__PURE__*/React.createElement(LinkOutlined, null)
147
+ }, locales.getText('pisell2.text.send-link')), /*#__PURE__*/React.createElement(Button, {
148
+ className: "additional-module-button-base purple-theme",
149
+ onClick: function onClick() {
150
+ handleButtonClick('print-receipt');
151
+ },
152
+ disabled: disabled,
153
+ size: "large",
154
+ icon: /*#__PURE__*/React.createElement(Icon, {
155
+ type: "pisell2-printer"
156
+ })
157
+ }, locales.getText('pisell2.text.print-receipt')))) :
122
158
  /*#__PURE__*/
123
- // Flex布局模式:一行布局(不显示现金支付模块时)
159
+ // Flex布局模式:一行布局(不显示现金支付模块或强制全宽时)
124
160
  React.createElement("div", {
125
161
  className: "additional-module-button-row"
126
162
  }, /*#__PURE__*/React.createElement(Button, {
@@ -140,14 +176,14 @@ function AdditionalModule(_ref) {
140
176
  }))), /*#__PURE__*/React.createElement(Button, {
141
177
  className: "additional-module-button-base purple-theme",
142
178
  onClick: function onClick() {
143
- handleButtonClick('print-receipt');
179
+ handleButtonClick('split-payment');
144
180
  },
145
181
  size: "large",
146
182
  icon: /*#__PURE__*/React.createElement(Icon, {
147
- type: "pisell2-printer",
183
+ type: "pisell2-coins-01",
148
184
  className: "additional-module-button-icon"
149
185
  })
150
- }, locales.getText('pisell2.text.print-receipt')), /*#__PURE__*/React.createElement(Button, {
186
+ }, locales.getText('split.payment')), /*#__PURE__*/React.createElement(Button, {
151
187
  className: "additional-module-button-base purple-theme",
152
188
  onClick: function onClick() {
153
189
  handleButtonClick('manual-discount');
@@ -179,6 +215,10 @@ function AdditionalModule(_ref) {
179
215
  } else {
180
216
  Toast.fail(locales.getText('pisell2.text.order-no-payment-cannot-send-link'));
181
217
  }
218
+ } else if (key === 'split-payment') {
219
+ handleButtonClick('split-payment');
220
+ } else if (key === 'print-receipt') {
221
+ handleButtonClick('print-receipt');
182
222
  }
183
223
  }
184
224
  },
@@ -9,7 +9,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
9
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import { useState, useEffect, useMemo } from 'react';
12
- import { Button, Dropdown, Popover } from 'antd';
12
+ import { Button, Dropdown } from 'antd';
13
13
  import { CheckCircleOutlined, PieChartOutlined } from '@ant-design/icons';
14
14
  import { Edit05 } from '@pisell/icon';
15
15
  import { PisellModal } from '@pisell/materials';
@@ -18,7 +18,8 @@ import Decimal from 'decimal.js';
18
18
  import checkoutLocales from "../../locales";
19
19
  import PaymentDetailModal from "../PaymentDetailModal";
20
20
  import PisellPriceKeyboardPopover from "../../../../pro/pisellSimplePriceKeyboardPopover";
21
- import { PaymentKeyboard } from "../../../../pro/priceKeyboard";
21
+ // import { PaymentKeyboard } from '../../../../pro/priceKeyboard';
22
+
22
23
  import "./index.less";
23
24
  import classNames from 'classnames';
24
25
  import useEngineContext from "../../../../hooks/useEngineContext";
@@ -503,12 +504,12 @@ function AmountSummary(_ref2) {
503
504
  var syncedVoucherAmount = paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce(function (acc, item) {
504
505
  // 如果当前是普通支付,则减去order_payment_type不为 deposit的支付项
505
506
  // 如果当前是定金支付,则减去order_payment_type为 deposit的支付项
506
- if (item.isSynced && (paymentType === 'regular' && item.order_payment_type !== 'deposit' || paymentType === 'deposit' && item.order_payment_type === 'deposit')) {
507
+ if ((item.isSynced || item.voucher_id) && (paymentType === 'regular' && item.order_payment_type !== 'deposit' || paymentType === 'deposit' && item.order_payment_type === 'deposit')) {
507
508
  return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
508
509
  }
509
510
  return acc;
510
511
  }, new Decimal(0)).toNumber();
511
- balanceDecimal = balanceDecimal.minus(syncedVoucherAmount);
512
+ balanceDecimal = new Decimal(Math.abs(balanceDecimal.minus(new Decimal(syncedVoucherAmount)).toNumber()));
512
513
  // if (walletPassData?.selectedDiscountList && walletPassData.selectedDiscountList.length > 0) {
513
514
  // walletPassData?.availableDiscountList?.forEach((discountItem: any) => {
514
515
  // discountItem.appliedProductDetails?.forEach((productDetail: any) => {
@@ -639,8 +640,9 @@ function AmountSummary(_ref2) {
639
640
  return balanceDueAmount !== customAmount && Number(balanceDueAmount) > 0 && Number(customAmount) > 0;
640
641
  }, [customAmount, balanceDueAmount]);
641
642
  var handleChangeDepositAmount = function handleChangeDepositAmount(value) {
642
- console.log('handleChangeDepositAmount', value);
643
- checkoutModule === null || checkoutModule === void 0 || checkoutModule.setDepositAmountAsync(value);
643
+ var valueStr = String(value);
644
+ console.log('handleChangeDepositAmount', valueStr);
645
+ checkoutModule === null || checkoutModule === void 0 || checkoutModule.setDepositAmountAsync(valueStr);
644
646
  };
645
647
  var hasDepositPayment = useMemo(function () {
646
648
  return paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.some(function (item) {
@@ -778,76 +780,7 @@ function AmountSummary(_ref2) {
778
780
  hideDecimalForWholeNumbers: false,
779
781
  useThousandsSeparator: true,
780
782
  showCurrencySymbol: true
781
- })))), !shouldShowConfirmMode() && (showCancelSplitPayment ? /*#__PURE__*/React.createElement(Button, {
782
- className: classNames('cancel-split-payment-button'),
783
- onClick: function onClick() {
784
- return onAmountChange === null || onAmountChange === void 0 ? void 0 : onAmountChange(balanceDueAmount);
785
- }
786
- }, getText('split.cancel') || '取消部\n分支付') : /*#__PURE__*/React.createElement(Popover, {
787
- content: /*#__PURE__*/React.createElement("div", {
788
- onClick: function onClick(e) {
789
- return e.stopPropagation();
790
- }
791
- }, /*#__PURE__*/React.createElement(PaymentKeyboard
792
- // 原始值:此支付阶段的待支付金额,reset时还原为此值
793
- , {
794
- paymentOriginalValue: balanceDueAmount,
795
- paymentDefaultValue: String(customAmount || 0),
796
- enableExceedMaxAmount: false,
797
- payment: {
798
- enable: true
799
- },
800
- surcharge: {
801
- enable: false
802
- },
803
- surchargeDefaultValue: {
804
- percent: '0',
805
- fixed: '0'
806
- },
807
- selectType: "light",
808
- onChange: function onChange(value) {
809
- console.log(value);
810
- },
811
- doneText: getText('confirm'),
812
- onPay: function onPay(args) {
813
- console.log(args);
814
- // 处理支付逻辑
815
- setIsKeyboardVisible(false);
816
- handleKeyboardConfirm(args.amount);
817
- }
818
- })),
819
- trigger: "click",
820
- open: isKeyboardVisible,
821
- onOpenChange: setIsKeyboardVisible,
822
- placement: "bottom",
823
- overlayClassName: "payment-keyboard-popover",
824
- arrow: true,
825
- destroyTooltipOnHide: true
826
- }, /*#__PURE__*/React.createElement(Button, {
827
- className: classNames('split-payment-button')
828
- }, getText('split.payment') || '拆分支付')))
829
- // <PisellPriceKeyboardPopover
830
- // value={(() => {
831
- // try {
832
- // return new Decimal(currentAmount || '0').toNumber();
833
- // } catch {
834
- // return 0;
835
- // }
836
- // })()}
837
- // // onChange={handleKeyboardConfirm}
838
- // onConfirm={handleKeyboardConfirm}
839
- // // onCancel={handleKeyboardCancel}
840
- // showCurrencySymbol={true}
841
- // useThousandsSeparator={false}
842
- // selectType="dark"
843
- // overlayClassName="amount-summary-keyboard-popover"
844
- // >
845
- // {/* 右侧: 拆分支付按钮 */}
846
- // <Button className={classNames('split-payment-button')}>
847
- // {getText('split.payment') || '拆分支付'}
848
- // </Button>
849
- // </PisellPriceKeyboardPopover>
850
- , /*#__PURE__*/React.createElement(PisellModal, {
783
+ })))), /*#__PURE__*/React.createElement(PisellModal, {
851
784
  open: isPaymentDetailOpen,
852
785
  onCancel: handlePaymentDetailClose,
853
786
  footer: null,
@@ -226,7 +226,7 @@
226
226
  border-radius: 16px;
227
227
  padding: 0 16px 0 16px;
228
228
  color: #1a1a1a;
229
- width: 350px;
229
+ width: 400px;
230
230
  min-width: 200px;
231
231
  height: 80px;
232
232
  display: flex;
@@ -248,7 +248,6 @@
248
248
 
249
249
  .balance-due-label {
250
250
  font-size: 16px;
251
- color: #7f56da;
252
251
  font-weight: 400;
253
252
  line-height: 1.5;
254
253
  margin-bottom: 4px;
@@ -256,7 +255,7 @@
256
255
 
257
256
  .balance-due-amount {
258
257
  font-size: 14px;
259
- font-weight: 400;
258
+ font-weight: 600;
260
259
  color: #7f56da;
261
260
  line-height: 0.75;
262
261
  text-decoration: underline;
@@ -272,13 +271,13 @@
272
271
  .pay-text {
273
272
  font-size: 16px;
274
273
  font-weight: 500;
275
- color: #7f56da;
276
274
  letter-spacing: 0.09375em;
275
+ margin-top: 12px;
277
276
  }
278
277
 
279
278
  .pay-amount {
280
- font-size: 32px;
281
- font-weight: 400;
279
+ font-size: 36px;
280
+ font-weight: 600;
282
281
  color: #1e1830;
283
282
  line-height: 0.75;
284
283
  }
@@ -15,10 +15,12 @@ export interface CashPaymentModuleProps {
15
15
  balanceDueAmount?: string;
16
16
  balanceDueTotalAmount?: string;
17
17
  syncingLock?: boolean;
18
+ shortcutsSize?: 'default' | 'large';
18
19
  }
19
20
  export declare function CashPaymentModule({ amountSymbol, orderInfo, onPaymentComplete, customAmount, amountButtons, // 按钮列表,默认5个推荐金额
20
21
  disabled, // 禁用状态
21
22
  roundingFunction, balanceDueAmount, // 当前阶段剩余支付金额(定金或普通支付)
22
23
  balanceDueTotalAmount, // 完整订单剩余待付金额
23
- syncingLock, }: CashPaymentModuleProps): React.JSX.Element;
24
+ syncingLock, // 是否锁定
25
+ shortcutsSize, }: CashPaymentModuleProps): React.JSX.Element;
24
26
  export default CashPaymentModule;
@@ -32,7 +32,9 @@ export function CashPaymentModule(_ref) {
32
32
  _ref$balanceDueTotalA = _ref.balanceDueTotalAmount,
33
33
  balanceDueTotalAmount = _ref$balanceDueTotalA === void 0 ? '0' : _ref$balanceDueTotalA,
34
34
  _ref$syncingLock = _ref.syncingLock,
35
- syncingLock = _ref$syncingLock === void 0 ? false : _ref$syncingLock;
35
+ syncingLock = _ref$syncingLock === void 0 ? false : _ref$syncingLock,
36
+ _ref$shortcutsSize = _ref.shortcutsSize,
37
+ shortcutsSize = _ref$shortcutsSize === void 0 ? 'default' : _ref$shortcutsSize;
36
38
  var _useState = useState(customAmount || ''),
37
39
  _useState2 = _slicedToArray(_useState, 2),
38
40
  amount = _useState2[0],
@@ -258,7 +260,8 @@ export function CashPaymentModule(_ref) {
258
260
  };
259
261
  }),
260
262
  onReset: handleReset,
261
- onEnter: syncingLock ? undefined : handleCashPay
263
+ onEnter: syncingLock ? undefined : handleCashPay,
264
+ shortcutsSize: shortcutsSize
262
265
  });
263
266
  }
264
267
  export default CashPaymentModule;
@@ -169,7 +169,7 @@ function PaymentDetailModal(_ref) {
169
169
  className: classNames('payment-item-content')
170
170
  }, /*#__PURE__*/React.createElement("div", {
171
171
  className: classNames('payment-item-text')
172
- }, item.name, " - ", new Date().toLocaleDateString(), ' ', getText('pisell2.checkout.payment-detail.by') || 'by', ' ', getCustomerInfo().nickname), /*#__PURE__*/React.createElement("div", {
172
+ }, item.name, " - ", item.created_at || new Date().toLocaleDateString(), ' ', getText('pisell2.checkout.payment-detail.by') || 'by', ' ', getCustomerInfo().nickname), /*#__PURE__*/React.createElement("div", {
173
173
  className: classNames('payment-item-actions')
174
174
  }, /*#__PURE__*/React.createElement("div", {
175
175
  className: classNames('payment-item-amount')
@@ -202,7 +202,7 @@ function PaymentDetailModal(_ref) {
202
202
  className: classNames('payment-item-content')
203
203
  }, /*#__PURE__*/React.createElement("div", {
204
204
  className: classNames('payment-item-text')
205
- }, item.name, " - ", new Date().toLocaleDateString(), ' ', getText('pisell2.checkout.payment-detail.by') || 'by', ' ', getCustomerInfo().nickname), /*#__PURE__*/React.createElement("div", {
205
+ }, item.name, " - ", item.created_at || new Date().toLocaleDateString(), ' ', getText('pisell2.checkout.payment-detail.by') || 'by', ' ', getCustomerInfo().nickname), /*#__PURE__*/React.createElement("div", {
206
206
  className: classNames('payment-item-actions')
207
207
  }, /*#__PURE__*/React.createElement("div", {
208
208
  className: classNames('payment-item-amount')
@@ -24,6 +24,8 @@ export interface PaymentMethodItemProps {
24
24
  onClick?: (method: ExtendedPaymentMethod) => void;
25
25
  /** 获取文本的函数 */
26
26
  getText?: (key: string, fallback?: string) => string;
27
+ /** 大小 */
28
+ size?: 'default' | 'large';
27
29
  }
28
30
  declare const PaymentMethodItem: React.FC<PaymentMethodItemProps>;
29
31
  export default PaymentMethodItem;
@@ -27,7 +27,9 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
27
27
  _ref$disabled = _ref.disabled,
28
28
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
29
29
  onClick = _ref.onClick,
30
- getText = _ref.getText;
30
+ getText = _ref.getText,
31
+ _ref$size = _ref.size,
32
+ size = _ref$size === void 0 ? 'default' : _ref$size;
31
33
  // 控制键盘弹窗显示状态
32
34
  var _useState = useState(false),
33
35
  _useState2 = _slicedToArray(_useState, 2),
@@ -151,6 +153,9 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
151
153
  'payment-options-module-pointer': !disabled,
152
154
  'payment-options-module-disabled': disabled
153
155
  }),
156
+ style: {
157
+ height: size === 'large' ? '82px' : '62px'
158
+ },
154
159
  onClick: showKeyboard,
155
160
  type: "button",
156
161
  disabled: disabled
@@ -11,5 +11,6 @@ interface ExtendedPaymentOptionsModuleProps extends PaymentOptionsModuleProps {
11
11
  disabled?: boolean;
12
12
  showCashPayment?: boolean;
13
13
  }
14
+ export declare const SHOW_METHODS_CODE: string[];
14
15
  declare function PaymentOptionsModule({ amountSymbol, orderInfo, onClick, paymentMethods, customAmount, title, disabled, showCashPayment, }: ExtendedPaymentOptionsModuleProps): React.JSX.Element;
15
16
  export default PaymentOptionsModule;
@@ -10,7 +10,7 @@ import checkoutLocales from "../../locales";
10
10
 
11
11
  // 扩展 PaymentOptionsModule Props 接口
12
12
 
13
- var SHOW_METHODS_CODE = ['EFTPOS_LINKLY', 'EFTPOS', 'EFTPOS_TYRO', 'EFTPOS_WINDCAVE', 'EFTPOS_PAYO'];
13
+ export var SHOW_METHODS_CODE = ['EFTPOS_LINKLY', 'EFTPOS', 'EFTPOS_TYRO', 'EFTPOS_WINDCAVE', 'EFTPOS_PAYO'];
14
14
  function PaymentOptionsModule(_ref) {
15
15
  var _context$appHelper, _context$appHelper$ge, _context$appHelper$ge2, _context$appHelper$ut;
16
16
  var amountSymbol = _ref.amountSymbol,
@@ -92,6 +92,7 @@ function PaymentOptionsModule(_ref) {
92
92
  }
93
93
  }, filteredPaymentMethods.map(function (method) {
94
94
  return /*#__PURE__*/React.createElement(PaymentMethodItem, {
95
+ size: (filteredPaymentMethods === null || filteredPaymentMethods === void 0 ? void 0 : filteredPaymentMethods.length) === 2 ? 'large' : 'default',
95
96
  key: method.id,
96
97
  method: method,
97
98
  amountSymbol: amountSymbol,
@@ -234,6 +234,10 @@
234
234
  }
235
235
 
236
236
  .payment-options-module-pay-button{
237
+ width: 118px;
238
+ height: 40px;
239
+ font-weight: 600;
240
+ font-size: 18px;
237
241
  background: var(--theme-color, #7F56DA);
238
242
  &:disabled {
239
243
  background: #D0D5DD;
@@ -23,6 +23,10 @@ interface ShowPaymentResultToastConfig {
23
23
  onClose?: () => void;
24
24
  /** 是否显示右上角关闭按钮 */
25
25
  closable?: boolean;
26
+ /** 是否启用点击外部区域关闭弹窗(使用纯JS实现) */
27
+ clickOutsideToClose?: boolean;
28
+ /** 是否显示遮罩 */
29
+ mask?: boolean;
26
30
  }
27
31
  interface PaymentResultToastContextType {
28
32
  /** 显示成功弹窗 */
@@ -263,6 +263,13 @@ var GlobalToastManager = /*#__PURE__*/function () {
263
263
 
264
264
  // 更新容器样式,带有平滑动画效果
265
265
  if (instance.container) {
266
+ // 如果开启了遮罩,使用居中定位,不更新位置
267
+ var hasMask = instance.container.getAttribute('data-mask') === 'true';
268
+ if (hasMask) {
269
+ // mask 模式下保持居中,不更新位置
270
+ return;
271
+ }
272
+
266
273
  // 添加动画类名表示正在移动
267
274
  instance.container.classList.add('toast-moving');
268
275
  instance.container.style.position = 'fixed';
@@ -312,30 +319,46 @@ var GlobalToastManager = /*#__PURE__*/function () {
312
319
  autoClose: config.autoClose,
313
320
  autoCloseDelay: config.autoCloseDelay || 30,
314
321
  showCountdownProgress: config.showCountdownProgress,
322
+ clickOutsideToClose: config.clickOutsideToClose,
315
323
  onCountdownComplete: config.onCountdownComplete,
316
324
  onClose: function onClose() {
317
325
  var _config$onClose2;
318
326
  (_config$onClose2 = config.onClose) === null || _config$onClose2 === void 0 || _config$onClose2.call(config);
319
327
  _this2.removeToast(id);
320
328
  },
321
- closable: config.closable !== undefined ? config.closable : DEFAULT_TOAST_CONFIG.closable
329
+ closable: config.closable !== undefined ? config.closable : DEFAULT_TOAST_CONFIG.closable,
330
+ mask: config.mask || false
322
331
  });
323
332
 
324
333
  // 创建容器
325
334
  var container = document.createElement('div');
326
335
  container.setAttribute('data-toast-id', id);
336
+ // 如果开启遮罩,添加 data-mask 属性用于 CSS 样式区分
337
+ if (config.mask) {
338
+ container.setAttribute('data-mask', 'true');
339
+ }
327
340
 
328
341
  // 计算动态的bottom位置
329
342
  var dynamicBottomOffset = this.calculateAndCacheBottomOffset();
330
343
  // const centerOffset = this.calculateAndCacheCenterOffset();
331
-
332
- // 设置初始样式确保左下角定位
333
- // 新Toast使用动态计算的位置
334
344
  container.style.position = 'fixed';
335
- container.style.left = "".concat(this.LEFT_OFFSET, "px");
336
- container.style.bottom = "".concat(dynamicBottomOffset, "px"); // 使用动态计算的位置
337
- container.style.top = 'auto';
338
- container.style.right = 'auto';
345
+ // 如果开启遮罩,则需要居中
346
+ if (config.mask) {
347
+ container.style.left = '50%';
348
+ container.style.top = '50%';
349
+ container.style.transform = 'translate(-50%, -50%)';
350
+ container.style.bottom = 'auto';
351
+ container.style.right = 'auto';
352
+ } else {
353
+ // 设置初始样式确保左下角定位
354
+ // 新Toast使用动态计算的位置
355
+ container.style.left = "".concat(this.LEFT_OFFSET, "px");
356
+ container.style.bottom = "".concat(dynamicBottomOffset, "px"); // 使用动态计算的位置
357
+ container.style.top = 'auto';
358
+ container.style.right = 'auto';
359
+ container.style.transform = 'none';
360
+ }
361
+
339
362
  // 移除强制的z-index设置,让Toast使用默认层级
340
363
  // container.style.zIndex = `${(finalConfig.zIndex || 2000) + this.instances.size}`;
341
364
 
@@ -269,8 +269,8 @@ var PaymentResultToast = /*#__PURE__*/memo(function (props) {
269
269
  mask: mask,
270
270
  maskClosable: maskClosable,
271
271
  closable: false,
272
- className: getBaseClassName("".concat(className, " ").concat(statusClassName)),
273
- wrapClassName: "toast-modal-wrap",
272
+ className: getBaseClassName("".concat(className, " ").concat(statusClassName, " ").concat(mask ? 'payment-result-toast-with-mask' : '')),
273
+ wrapClassName: "toast-modal-wrap ".concat(mask ? 'toast-modal-wrap-with-mask' : ''),
274
274
  style: _objectSpread(_objectSpread({}, height ? {
275
275
  height: "".concat(height, "px")
276
276
  } : {}), {}, {
@@ -297,12 +297,12 @@ var PaymentResultToast = /*#__PURE__*/memo(function (props) {
297
297
  ,
298
298
  transitionName: "",
299
299
  maskTransitionName: ""
300
- // 禁用居中定位
300
+ // mask 模式下使用居中定位,非 mask 模式下禁用居中
301
301
  ,
302
- centered: false
303
- // 使用自定义getContainer确保渲染到正确的位置
302
+ centered: mask
303
+ // mask 模式下渲染到 body,非 mask 模式下渲染到容器内
304
304
  ,
305
- getContainer: false
305
+ getContainer: mask ? undefined : false
306
306
  }, /*#__PURE__*/React.createElement("div", {
307
307
  ref: modalContentRef,
308
308
  className: getClassName('content', statusClassName),