@pisell/private-materials 6.9.1 → 6.9.3

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 (707) hide show
  1. package/README.md +5 -1
  2. package/build/lowcode/index.js +1 -1
  3. package/build/lowcode/meta.js +2 -2
  4. package/build/lowcode/preview.js +150 -164
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +11 -11
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +11 -11
  9. package/es/components/Sales/Cart/index.js +20 -3
  10. package/es/components/Sales/Cart/utils.d.ts +5 -0
  11. package/es/components/Sales/Cart/utils.js +16 -0
  12. package/es/components/Sales/Summary/utils.js +5 -4
  13. package/es/components/appointmentBooking/components/Header/index.js +12 -12
  14. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
  15. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
  16. package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
  17. package/es/components/appointmentBooking/components/Voucher/index.js +26 -5
  18. package/es/components/appointmentBooking/hooks.d.ts +1 -1
  19. package/es/components/appointmentBooking/hooks.js +6 -13
  20. package/es/components/appointmentBooking/locales.d.ts +3 -0
  21. package/es/components/appointmentBooking/locales.js +3 -0
  22. package/es/components/appointmentBooking/utils.d.ts +23 -0
  23. package/es/components/appointmentBooking/utils.js +159 -0
  24. package/es/components/booking/addons/index.js +3 -2
  25. package/es/components/booking/addons/model.d.ts +1 -10
  26. package/es/components/booking/components/actionButtons/index.js +10 -0
  27. package/es/components/booking/components/customiseItemModal/index.js +4 -7
  28. package/es/components/booking/components/footer/amount.d.ts +1 -0
  29. package/es/components/booking/components/footer/amount.js +358 -165
  30. package/es/components/booking/components/footer/index.js +496 -170
  31. package/es/components/booking/components/footer/utils.d.ts +1 -1
  32. package/es/components/booking/components/footer/utils.js +134 -78
  33. package/es/components/booking/components/voucher/index.js +15 -6
  34. package/es/components/booking/components/voucher/index.less +4 -1
  35. package/es/components/booking/components/voucherModal/index.less +1 -0
  36. package/es/components/booking/dashboard/index.js +78 -92
  37. package/es/components/booking/dashboard/serve.d.ts +1 -0
  38. package/es/components/booking/dashboard/serve.js +22 -0
  39. package/es/components/booking/forms/model.d.ts +1 -10
  40. package/es/components/booking/hooks/useQuotation.js +32 -10
  41. package/es/components/booking/info/client/index.js +16 -6
  42. package/es/components/booking/info/model.d.ts +1 -10
  43. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  44. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  45. package/es/components/booking/info/service2/Group/utils.js +2 -2
  46. package/es/components/booking/info/service2/utils.js +45 -41
  47. package/es/components/booking/info2/cartClientCard/index.js +16 -10
  48. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  49. package/es/components/booking/info2/service/editNormalService/index.js +21 -18
  50. package/es/components/booking/info2/service/editService/index.js +33 -2
  51. package/es/components/booking/info2/service/editService/utils.js +9 -5
  52. package/es/components/booking/locales.d.ts +3 -0
  53. package/es/components/booking/locales.js +6 -3
  54. package/es/components/booking/model.d.ts +1 -9
  55. package/es/components/booking/notes/model.d.ts +1 -10
  56. package/es/components/booking/payments/model.d.ts +1 -10
  57. package/es/components/booking/utils.js +4 -4
  58. package/es/components/checkout/PaymentModal.d.ts +1 -0
  59. package/es/components/checkout/PaymentModal.js +172 -65
  60. package/es/components/checkout/components/PaymentDetailModal/index.less +426 -429
  61. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
  62. package/es/components/checkout/components/PaymentOptionsModule/index.js +3 -2
  63. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
  64. package/es/components/checkout/components/PaymentResultToast/index.js +2 -0
  65. package/es/components/checkout/components/WalletPassModule/index.js +1 -0
  66. package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  67. package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
  68. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  69. package/es/components/checkout/hooks/useWalletPass.js +324 -198
  70. package/es/components/checkout/index.less +6 -0
  71. package/es/components/checkout/plugin.js +59 -12
  72. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
  73. package/es/components/ecocup/components/AddCustomerModal/index.js +216 -0
  74. package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
  75. package/es/components/ecocup/components/CupActionList/index.d.ts +13 -0
  76. package/es/components/ecocup/components/CupActionList/index.js +91 -0
  77. package/es/components/ecocup/components/CupActionList/index.less +102 -0
  78. package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  79. package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
  80. package/es/components/ecocup/components/CupActionModal/index.d.ts +14 -0
  81. package/es/components/ecocup/components/CupActionModal/index.js +92 -0
  82. package/es/components/ecocup/components/CupActionModal/index.less +38 -0
  83. package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
  84. package/es/components/ecocup/components/CupInfoCard/index.js +12 -0
  85. package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
  86. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
  87. package/es/components/ecocup/components/CupStatusModal/hooks.js +68 -0
  88. package/es/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
  89. package/es/components/ecocup/components/CupStatusModal/index.js +147 -0
  90. package/es/components/ecocup/components/CupStatusModal/index.less +35 -0
  91. package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  92. package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
  93. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
  94. package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
  95. package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
  96. package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
  97. package/es/components/ecocup/components/CustomerCard/index.js +34 -0
  98. package/es/components/ecocup/components/CustomerCard/index.less +50 -0
  99. package/es/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
  100. package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
  101. package/es/components/ecocup/components/PageHeader/index.d.ts +6 -0
  102. package/es/components/ecocup/components/PageHeader/index.js +37 -0
  103. package/es/components/ecocup/components/PageHeader/index.less +19 -0
  104. package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
  105. package/es/components/ecocup/components/SearchBar/const.js +16 -0
  106. package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
  107. package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
  108. package/es/components/ecocup/components/SearchBar/index.d.ts +12 -0
  109. package/es/components/ecocup/components/SearchBar/index.js +218 -0
  110. package/es/components/ecocup/components/SearchBar/index.less +88 -0
  111. package/es/components/ecocup/cupList/const.d.ts +133 -0
  112. package/es/components/ecocup/cupList/const.js +306 -0
  113. package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
  114. package/es/components/ecocup/cupList/hooks/index.js +4 -0
  115. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
  116. package/es/components/ecocup/cupList/hooks/useColumns.js +168 -0
  117. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
  118. package/es/{plus/myTeamLogin/index.js → components/ecocup/cupList/hooks/useCupApi.js} +129 -259
  119. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
  120. package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
  121. package/es/components/ecocup/cupList/index.d.ts +6 -0
  122. package/es/components/ecocup/cupList/index.js +220 -0
  123. package/es/components/ecocup/cupList/index.less +113 -0
  124. package/es/components/ecocup/cupProject/const.d.ts +7 -0
  125. package/es/components/ecocup/cupProject/const.js +27 -0
  126. package/es/components/ecocup/cupProject/index.d.ts +3 -0
  127. package/es/components/ecocup/cupProject/index.js +103 -0
  128. package/es/components/ecocup/cupProject/index.less +41 -0
  129. package/es/components/ecocup/customerList/const.d.ts +44 -0
  130. package/es/components/ecocup/customerList/const.js +67 -0
  131. package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
  132. package/es/components/ecocup/customerList/hooks/index.js +3 -0
  133. package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  134. package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
  135. package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  136. package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
  137. package/es/components/ecocup/customerList/index.d.ts +7 -0
  138. package/es/components/ecocup/customerList/index.js +127 -0
  139. package/es/components/ecocup/customerList/index.less +15 -0
  140. package/es/components/ecocup/hooks.d.ts +49 -0
  141. package/es/components/ecocup/hooks.js +151 -0
  142. package/es/components/ecocup/locales.d.ts +339 -0
  143. package/es/components/ecocup/locales.js +372 -0
  144. package/es/components/ecocup/types.d.ts +103 -0
  145. package/es/components/ecocup/types.js +36 -0
  146. package/es/components/ecocup/utils/scanListener.d.ts +20 -0
  147. package/es/components/ecocup/utils/scanListener.js +107 -0
  148. package/es/components/eftposPay/EFTPos.js +15 -6
  149. package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
  150. package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
  151. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  152. package/es/components/eftposPay/aggregatePayment/index.js +3 -0
  153. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  154. package/es/components/eftposPay/aggregatePayment/service.js +69 -0
  155. package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  156. package/es/components/eftposPay/aggregatePayment/types.js +65 -0
  157. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  158. package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
  159. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  160. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
  161. package/es/components/eftposPay/app.d.ts +1 -0
  162. package/es/components/eftposPay/app.js +5 -0
  163. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  164. package/es/components/eftposPay/component/fail/failCustom.js +16 -12
  165. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  166. package/es/components/eftposPay/component/fail/index.js +12 -5
  167. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  168. package/es/components/eftposPay/const.d.ts +6 -1
  169. package/es/components/eftposPay/const.js +3 -0
  170. package/es/components/eftposPay/hooks.d.ts +3 -2
  171. package/es/components/eftposPay/hooks.js +12 -0
  172. package/es/components/eftposPay/huifu/Action.d.ts +8 -0
  173. package/es/components/eftposPay/huifu/Action.js +146 -0
  174. package/es/components/eftposPay/huifu/const.d.ts +5 -0
  175. package/es/components/eftposPay/huifu/const.js +70 -0
  176. package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
  177. package/es/components/eftposPay/huifu/hooks.js +184 -0
  178. package/es/components/eftposPay/huifu/index.d.ts +5 -0
  179. package/es/components/eftposPay/huifu/index.js +196 -0
  180. package/es/components/eftposPay/huifu/index.less +180 -0
  181. package/es/components/eftposPay/huifu/types.d.ts +14 -0
  182. package/es/components/eftposPay/huifu/types.js +1 -0
  183. package/es/components/eftposPay/index.d.ts +1 -0
  184. package/es/components/eftposPay/index.js +5 -1
  185. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  186. package/es/components/eftposPay/locales.d.ts +36 -0
  187. package/es/components/eftposPay/locales.js +42 -3
  188. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  189. package/es/components/eftposPay/manufacturer.js +5 -0
  190. package/es/components/eftposPay/pay.d.ts +1 -0
  191. package/es/components/eftposPay/pay.js +6 -2
  192. package/es/components/eftposPay/store/index.d.ts +9 -2
  193. package/es/components/eftposPay/tyro/index.js +97 -4
  194. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  195. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  196. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  197. package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  198. package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
  199. package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
  200. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  201. package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
  202. package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  203. package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
  204. package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
  205. package/es/components/eventBooking/components/Voucher/index.js +266 -0
  206. package/es/components/eventBooking/index.d.ts +1 -0
  207. package/es/components/kioskSkuDetail/index.d.ts +3 -0
  208. package/es/components/kioskSkuDetail/index.js +268 -173
  209. package/es/components/kioskSkuDetail/index.less +49 -7
  210. package/es/components/kioskSkuDetail/locales.d.ts +6 -0
  211. package/es/components/kioskSkuDetail/locales.js +9 -3
  212. package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
  213. package/es/components/pay/toB/components/MX51/index.js +2 -1
  214. package/es/components/pay/toB/paymentMethods/index.js +2 -1
  215. package/es/components/pay/toB/types/index.d.ts +9 -0
  216. package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
  217. package/es/components/pay/toC/PaymentList/index.js +54 -5
  218. package/es/components/pay/toC/PaymentList/index.less +58 -1
  219. package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
  220. package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
  221. package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
  222. package/es/components/pay/toC/PaymentList/serve.js +22 -0
  223. package/es/components/pay/toC/PaymentList/utils.d.ts +26 -0
  224. package/es/components/pay/toC/PaymentList/utils.js +188 -6
  225. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -3
  226. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +139 -42
  227. package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  228. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  229. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
  230. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  231. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  232. package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
  233. package/es/components/pay/toC/index.js +68 -28
  234. package/es/components/pay/toC/locales.d.ts +6 -0
  235. package/es/components/pay/toC/locales.js +9 -3
  236. package/es/components/pay/toC/model.d.ts +2 -9
  237. package/es/components/pay/toC/serve.d.ts +18 -0
  238. package/es/components/pay/toC/serve.js +29 -1
  239. package/es/components/pay/toC/utils.d.ts +2 -2
  240. package/es/components/pay/toC/utils.js +4 -0
  241. package/es/components/productSelect/components/productGroup/index.js +1 -1
  242. package/es/components/ruleSetting/index.d.ts +1 -0
  243. package/es/components/schedules/model.d.ts +1 -9
  244. package/es/components/shoppingCart/components/Cart/Product.js +1 -1
  245. package/es/components/systemSettings/registry/components/SectionList.js +5 -1
  246. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +5 -8
  247. package/es/components/ticketBooking/components/addServiceVariant/addService.js +142 -63
  248. package/es/components/ticketBooking/components/bookingDataPanel/index.js +2 -1
  249. package/es/components/ticketBooking/components/ticketBooking/index.js +18 -4
  250. package/es/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
  251. package/es/components/ticketBooking/context/OsKeyContext.js +12 -2
  252. package/es/components/ticketBooking/context/index.d.ts +1 -1
  253. package/es/components/ticketBooking/context/index.js +1 -1
  254. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
  255. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +14 -11
  256. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +69 -10
  257. package/es/components/ticketBooking/index.d.ts +2 -0
  258. package/es/components/ticketBooking/index.js +2 -1
  259. package/es/components/walletList/index.js +7 -2
  260. package/es/index.d.ts +7 -4
  261. package/es/index.js +7 -4
  262. package/es/plus/clinetSearch/index.d.ts +1 -0
  263. package/es/plus/clinetSearch/index.js +27 -5
  264. package/es/plus/clinetSearch/locales.d.ts +3 -0
  265. package/es/plus/clinetSearch/locales.js +6 -3
  266. package/es/plus/clinetSearch/types.d.ts +9 -0
  267. package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
  268. package/es/plus/orderList/components/BatchActionBar.js +861 -0
  269. package/es/plus/orderList/components/FilterList.d.ts +8 -0
  270. package/es/plus/orderList/components/FilterList.js +78 -0
  271. package/es/plus/orderList/components/HandleActions.d.ts +4 -0
  272. package/es/plus/orderList/components/HandleActions.js +24 -0
  273. package/es/plus/orderList/components/QuickFilter.d.ts +4 -0
  274. package/es/plus/orderList/components/QuickFilter.js +14 -0
  275. package/es/plus/orderList/components/Reset.d.ts +6 -0
  276. package/es/plus/orderList/components/Reset.js +23 -0
  277. package/es/plus/orderList/components/Toolbar.d.ts +5 -0
  278. package/es/plus/orderList/components/Toolbar.js +57 -0
  279. package/es/plus/orderList/config.d.ts +152 -0
  280. package/es/plus/orderList/config.js +785 -0
  281. package/es/plus/orderList/index.d.ts +9 -0
  282. package/es/plus/orderList/index.js +128 -0
  283. package/es/plus/orderList/index.less +125 -0
  284. package/es/plus/orderList/locales.d.ts +372 -0
  285. package/es/plus/orderList/locales.js +459 -0
  286. package/es/plus/orderList/serve.d.ts +42 -0
  287. package/es/plus/orderList/serve.js +351 -0
  288. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  289. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +3 -0
  290. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  291. package/es/plus/productSelect/ProductCard/index.js +12 -3
  292. package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
  293. package/es/plus/productSelect/ProductList/gridComponents.js +30 -10
  294. package/es/plus/productSelect/index.d.ts +3 -1
  295. package/es/plus/productSelect/index.js +85 -14
  296. package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
  297. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  298. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
  299. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  300. package/es/plus/skuOptionsSelection/locales.js +3 -0
  301. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +11 -2
  302. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
  303. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
  304. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
  305. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
  306. package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
  307. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  308. package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
  309. package/es/plus/walletPassGallery/index.js +2 -2
  310. package/es/plus/walletPassGallery/index.less +1 -1
  311. package/es/plus/walletPassGallery/serve.d.ts +8 -0
  312. package/es/plus/walletPassGallery/serve.js +78 -50
  313. package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
  314. package/es/plus/webPosLogin/WebPosLogin.js +7 -2
  315. package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
  316. package/es/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
  317. package/es/plus/webPosLogin/service.js +2 -1
  318. package/es/pro/Login2.0/AuthModal.js +12 -4
  319. package/es/pro/Login2.0/Login2.js +7 -0
  320. package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
  321. package/es/pro/Login2.0/index.less +15 -3
  322. package/es/pro/Login2.0/steps/CodeInput.js +37 -7
  323. package/es/pro/NumericStepper/index.d.ts +27 -1
  324. package/es/pro/NumericStepper/index.js +84 -68
  325. package/es/pro/NumericStepper/index.less +261 -136
  326. package/es/pro/Selector/Selector.js +17 -10
  327. package/es/pro/Selector/demo.d.ts +1 -0
  328. package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
  329. package/es/pro/Selector/hooks/usePresetProps.js +4 -2
  330. package/es/pro/Selector/types.d.ts +1 -0
  331. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  332. package/es/pro/keyboards/index.d.ts +2 -0
  333. package/es/pro/keyboards/index.js +1 -0
  334. package/es/pro/keyboards/locales.d.ts +24 -0
  335. package/es/pro/keyboards/locales.js +35 -0
  336. package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  337. package/es/pro/keyboards/numberKeyboard/index.js +523 -0
  338. package/es/pro/keyboards/numberKeyboard/index.less +59 -0
  339. package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  340. package/es/pro/keyboards/numberKeyboard/types.js +1 -0
  341. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  342. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
  343. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
  344. package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
  345. package/es/pro/skuDetailModal/index.js +57 -55
  346. package/es/pro/skuDetailModal/index.less +46 -4
  347. package/es/pro/skuDetailModal/types.d.ts +7 -0
  348. package/lib/components/Sales/Cart/index.js +25 -7
  349. package/lib/components/Sales/Cart/utils.d.ts +5 -0
  350. package/lib/components/Sales/Cart/utils.js +13 -1
  351. package/lib/components/Sales/Summary/utils.js +2 -4
  352. package/lib/components/appointmentBooking/components/Header/index.js +3 -8
  353. package/lib/components/appointmentBooking/components/Services/index.js +5 -1
  354. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
  355. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
  356. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
  357. package/lib/components/appointmentBooking/components/Voucher/index.js +37 -6
  358. package/lib/components/appointmentBooking/hooks.d.ts +1 -1
  359. package/lib/components/appointmentBooking/hooks.js +6 -11
  360. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  361. package/lib/components/appointmentBooking/locales.js +3 -0
  362. package/lib/components/appointmentBooking/utils.d.ts +23 -0
  363. package/lib/components/appointmentBooking/utils.js +103 -0
  364. package/lib/components/booking/addons/index.js +3 -2
  365. package/lib/components/booking/addons/model.d.ts +1 -10
  366. package/lib/components/booking/components/actionButtons/index.js +10 -0
  367. package/lib/components/booking/components/customiseItemModal/index.js +4 -5
  368. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  369. package/lib/components/booking/components/footer/amount.js +122 -25
  370. package/lib/components/booking/components/footer/index.js +243 -5
  371. package/lib/components/booking/components/footer/utils.d.ts +1 -1
  372. package/lib/components/booking/components/footer/utils.js +52 -18
  373. package/lib/components/booking/components/voucher/index.js +18 -4
  374. package/lib/components/booking/components/voucher/index.less +4 -1
  375. package/lib/components/booking/components/voucherModal/index.less +1 -0
  376. package/lib/components/booking/dashboard/index.js +38 -59
  377. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  378. package/lib/components/booking/dashboard/serve.js +8 -2
  379. package/lib/components/booking/forms/model.d.ts +1 -10
  380. package/lib/components/booking/hooks/useQuotation.js +65 -21
  381. package/lib/components/booking/info/client/index.js +16 -8
  382. package/lib/components/booking/info/model.d.ts +1 -10
  383. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  384. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  385. package/lib/components/booking/info/service2/Group/utils.js +2 -2
  386. package/lib/components/booking/info/service2/utils.js +6 -2
  387. package/lib/components/booking/info2/cartClientCard/index.js +17 -11
  388. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  389. package/lib/components/booking/info2/service/editNormalService/index.js +20 -17
  390. package/lib/components/booking/info2/service/editService/index.js +48 -24
  391. package/lib/components/booking/info2/service/editService/utils.js +7 -4
  392. package/lib/components/booking/locales.d.ts +3 -0
  393. package/lib/components/booking/locales.js +6 -3
  394. package/lib/components/booking/model.d.ts +1 -9
  395. package/lib/components/booking/notes/model.d.ts +1 -10
  396. package/lib/components/booking/payments/model.d.ts +1 -10
  397. package/lib/components/booking/utils.js +3 -3
  398. package/lib/components/checkout/PaymentModal.d.ts +1 -0
  399. package/lib/components/checkout/PaymentModal.js +105 -31
  400. package/lib/components/checkout/components/PaymentDetailModal/index.less +426 -429
  401. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
  402. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -2
  403. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
  404. package/lib/components/checkout/components/PaymentResultToast/index.js +2 -0
  405. package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
  406. package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  407. package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
  408. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  409. package/lib/components/checkout/hooks/useWalletPass.js +160 -109
  410. package/lib/components/checkout/index.less +6 -0
  411. package/lib/components/checkout/plugin.js +195 -150
  412. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
  413. package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
  414. package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
  415. package/lib/components/ecocup/components/CupActionList/index.d.ts +13 -0
  416. package/lib/components/ecocup/components/CupActionList/index.js +116 -0
  417. package/lib/components/ecocup/components/CupActionList/index.less +102 -0
  418. package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  419. package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
  420. package/lib/components/ecocup/components/CupActionModal/index.d.ts +14 -0
  421. package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
  422. package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
  423. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
  424. package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
  425. package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
  426. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
  427. package/lib/components/ecocup/components/CupStatusModal/hooks.js +55 -0
  428. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
  429. package/lib/components/ecocup/components/CupStatusModal/index.js +140 -0
  430. package/lib/components/ecocup/components/CupStatusModal/index.less +35 -0
  431. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  432. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
  433. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
  434. package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
  435. package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
  436. package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
  437. package/lib/components/ecocup/components/CustomerCard/index.js +48 -0
  438. package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
  439. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
  440. package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
  441. package/lib/components/ecocup/components/PageHeader/index.d.ts +6 -0
  442. package/lib/components/ecocup/components/PageHeader/index.js +59 -0
  443. package/lib/components/ecocup/components/PageHeader/index.less +19 -0
  444. package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
  445. package/lib/components/ecocup/components/SearchBar/const.js +50 -0
  446. package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
  447. package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
  448. package/lib/components/ecocup/components/SearchBar/index.d.ts +12 -0
  449. package/lib/components/ecocup/components/SearchBar/index.js +213 -0
  450. package/lib/components/ecocup/components/SearchBar/index.less +88 -0
  451. package/lib/components/ecocup/cupList/const.d.ts +133 -0
  452. package/lib/components/ecocup/cupList/const.js +326 -0
  453. package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
  454. package/lib/components/ecocup/cupList/hooks/index.js +39 -0
  455. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
  456. package/lib/components/ecocup/cupList/hooks/useColumns.js +202 -0
  457. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
  458. package/lib/components/ecocup/cupList/hooks/useCupApi.js +112 -0
  459. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
  460. package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
  461. package/lib/components/ecocup/cupList/index.d.ts +6 -0
  462. package/lib/components/ecocup/cupList/index.js +208 -0
  463. package/lib/components/ecocup/cupList/index.less +113 -0
  464. package/lib/components/ecocup/cupProject/const.d.ts +7 -0
  465. package/lib/components/ecocup/cupProject/const.js +58 -0
  466. package/lib/components/ecocup/cupProject/index.d.ts +3 -0
  467. package/lib/components/ecocup/cupProject/index.js +126 -0
  468. package/lib/components/ecocup/cupProject/index.less +41 -0
  469. package/lib/components/ecocup/customerList/const.d.ts +44 -0
  470. package/lib/components/ecocup/customerList/const.js +93 -0
  471. package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
  472. package/lib/components/ecocup/customerList/hooks/index.js +32 -0
  473. package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  474. package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
  475. package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  476. package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
  477. package/lib/components/ecocup/customerList/index.d.ts +7 -0
  478. package/lib/components/ecocup/customerList/index.js +138 -0
  479. package/lib/components/ecocup/customerList/index.less +15 -0
  480. package/lib/components/ecocup/hooks.d.ts +49 -0
  481. package/lib/components/ecocup/hooks.js +155 -0
  482. package/lib/components/ecocup/locales.d.ts +339 -0
  483. package/lib/components/ecocup/locales.js +389 -0
  484. package/lib/components/ecocup/types.d.ts +103 -0
  485. package/lib/components/ecocup/types.js +57 -0
  486. package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
  487. package/lib/components/ecocup/utils/scanListener.js +90 -0
  488. package/lib/components/eftposPay/EFTPos.js +11 -7
  489. package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
  490. package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
  491. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  492. package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
  493. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  494. package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
  495. package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  496. package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
  497. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  498. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
  499. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  500. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
  501. package/lib/components/eftposPay/app.d.ts +1 -0
  502. package/lib/components/eftposPay/app.js +5 -0
  503. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  504. package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
  505. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  506. package/lib/components/eftposPay/component/fail/index.js +4 -1
  507. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  508. package/lib/components/eftposPay/const.d.ts +6 -1
  509. package/lib/components/eftposPay/const.js +3 -0
  510. package/lib/components/eftposPay/hooks.d.ts +3 -2
  511. package/lib/components/eftposPay/hooks.js +16 -0
  512. package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
  513. package/lib/components/eftposPay/huifu/Action.js +174 -0
  514. package/lib/components/eftposPay/huifu/const.d.ts +5 -0
  515. package/lib/components/eftposPay/huifu/const.js +86 -0
  516. package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
  517. package/lib/components/eftposPay/huifu/hooks.js +186 -0
  518. package/lib/components/eftposPay/huifu/index.d.ts +5 -0
  519. package/lib/components/eftposPay/huifu/index.js +200 -0
  520. package/lib/components/eftposPay/huifu/index.less +180 -0
  521. package/lib/components/eftposPay/huifu/types.d.ts +14 -0
  522. package/lib/components/eftposPay/huifu/types.js +17 -0
  523. package/lib/components/eftposPay/index.d.ts +1 -0
  524. package/lib/components/eftposPay/index.js +5 -1
  525. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  526. package/lib/components/eftposPay/locales.d.ts +36 -0
  527. package/lib/components/eftposPay/locales.js +42 -3
  528. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  529. package/lib/components/eftposPay/manufacturer.js +7 -0
  530. package/lib/components/eftposPay/pay.d.ts +1 -0
  531. package/lib/components/eftposPay/pay.js +3 -2
  532. package/lib/components/eftposPay/store/index.d.ts +9 -2
  533. package/lib/components/eftposPay/tyro/index.js +64 -7
  534. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  535. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  536. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  537. package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  538. package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
  539. package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
  540. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  541. package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
  542. package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  543. package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
  544. package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
  545. package/lib/components/eventBooking/components/Voucher/index.js +197 -0
  546. package/lib/components/eventBooking/index.d.ts +1 -0
  547. package/lib/components/kioskSkuDetail/index.d.ts +3 -0
  548. package/lib/components/kioskSkuDetail/index.js +180 -113
  549. package/lib/components/kioskSkuDetail/index.less +49 -7
  550. package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
  551. package/lib/components/kioskSkuDetail/locales.js +9 -3
  552. package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
  553. package/lib/components/pay/toB/components/MX51/index.js +2 -1
  554. package/lib/components/pay/toB/paymentMethods/index.js +2 -1
  555. package/lib/components/pay/toB/types/index.d.ts +9 -0
  556. package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
  557. package/lib/components/pay/toC/PaymentList/index.js +36 -5
  558. package/lib/components/pay/toC/PaymentList/index.less +58 -1
  559. package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
  560. package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
  561. package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
  562. package/lib/components/pay/toC/PaymentList/serve.js +21 -1
  563. package/lib/components/pay/toC/PaymentList/utils.d.ts +26 -0
  564. package/lib/components/pay/toC/PaymentList/utils.js +156 -7
  565. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
  566. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +97 -7
  567. package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  568. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  569. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
  570. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  571. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  572. package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
  573. package/lib/components/pay/toC/index.js +53 -11
  574. package/lib/components/pay/toC/locales.d.ts +6 -0
  575. package/lib/components/pay/toC/locales.js +9 -3
  576. package/lib/components/pay/toC/model.d.ts +2 -9
  577. package/lib/components/pay/toC/serve.d.ts +18 -0
  578. package/lib/components/pay/toC/serve.js +6 -0
  579. package/lib/components/pay/toC/utils.d.ts +2 -2
  580. package/lib/components/pay/toC/utils.js +4 -0
  581. package/lib/components/productSelect/components/productGroup/index.js +1 -1
  582. package/lib/components/ruleSetting/index.d.ts +1 -0
  583. package/lib/components/schedules/model.d.ts +1 -9
  584. package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
  585. package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
  586. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +3 -7
  587. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -16
  588. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +3 -2
  589. package/lib/components/ticketBooking/components/ticketBooking/index.js +20 -6
  590. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
  591. package/lib/components/ticketBooking/context/OsKeyContext.js +13 -3
  592. package/lib/components/ticketBooking/context/index.d.ts +1 -1
  593. package/lib/components/ticketBooking/context/index.js +2 -0
  594. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
  595. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +3 -2
  596. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +59 -0
  597. package/lib/components/ticketBooking/index.d.ts +2 -0
  598. package/lib/components/ticketBooking/index.js +1 -1
  599. package/lib/components/walletList/index.js +5 -1
  600. package/lib/index.d.ts +7 -4
  601. package/lib/index.js +15 -6
  602. package/lib/plus/clinetSearch/index.d.ts +1 -0
  603. package/lib/plus/clinetSearch/index.js +31 -7
  604. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  605. package/lib/plus/clinetSearch/locales.js +6 -3
  606. package/lib/plus/clinetSearch/types.d.ts +9 -0
  607. package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
  608. package/lib/plus/orderList/components/BatchActionBar.js +584 -0
  609. package/lib/plus/orderList/components/FilterList.d.ts +8 -0
  610. package/lib/plus/orderList/components/FilterList.js +121 -0
  611. package/lib/plus/orderList/components/HandleActions.d.ts +4 -0
  612. package/lib/plus/orderList/components/HandleActions.js +52 -0
  613. package/lib/plus/orderList/components/QuickFilter.d.ts +4 -0
  614. package/lib/plus/orderList/components/QuickFilter.js +43 -0
  615. package/lib/plus/orderList/components/Reset.d.ts +6 -0
  616. package/lib/plus/orderList/components/Reset.js +58 -0
  617. package/lib/plus/orderList/components/Toolbar.d.ts +5 -0
  618. package/lib/plus/orderList/components/Toolbar.js +68 -0
  619. package/lib/plus/orderList/config.d.ts +152 -0
  620. package/lib/plus/orderList/config.js +763 -0
  621. package/lib/plus/orderList/index.d.ts +9 -0
  622. package/lib/plus/orderList/index.js +132 -0
  623. package/lib/plus/orderList/index.less +125 -0
  624. package/lib/plus/orderList/locales.d.ts +372 -0
  625. package/lib/plus/orderList/locales.js +471 -0
  626. package/lib/plus/orderList/serve.d.ts +42 -0
  627. package/lib/plus/orderList/serve.js +177 -0
  628. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  629. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  630. package/lib/plus/productSelect/ProductCard/index.js +3 -3
  631. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
  632. package/lib/plus/productSelect/ProductList/gridComponents.js +7 -1
  633. package/lib/plus/productSelect/index.d.ts +3 -1
  634. package/lib/plus/productSelect/index.js +56 -11
  635. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
  636. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  637. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
  638. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  639. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  640. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -0
  641. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
  642. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
  643. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
  644. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
  645. package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
  646. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  647. package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
  648. package/lib/plus/walletPassGallery/index.js +2 -2
  649. package/lib/plus/walletPassGallery/index.less +1 -1
  650. package/lib/plus/walletPassGallery/serve.d.ts +8 -0
  651. package/lib/plus/walletPassGallery/serve.js +23 -8
  652. package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
  653. package/lib/plus/webPosLogin/WebPosLogin.js +7 -2
  654. package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
  655. package/lib/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
  656. package/lib/plus/webPosLogin/service.js +2 -1
  657. package/lib/pro/Login2.0/AuthModal.js +15 -7
  658. package/lib/pro/Login2.0/Login2.js +7 -0
  659. package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
  660. package/lib/pro/Login2.0/index.less +15 -3
  661. package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
  662. package/lib/pro/NumericStepper/index.d.ts +27 -1
  663. package/lib/pro/NumericStepper/index.js +73 -70
  664. package/lib/pro/NumericStepper/index.less +261 -136
  665. package/lib/pro/Selector/Selector.js +11 -4
  666. package/lib/pro/Selector/demo.d.ts +1 -0
  667. package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
  668. package/lib/pro/Selector/hooks/usePresetProps.js +4 -2
  669. package/lib/pro/Selector/types.d.ts +1 -0
  670. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  671. package/lib/pro/keyboards/index.d.ts +2 -0
  672. package/lib/pro/keyboards/index.js +39 -0
  673. package/lib/pro/keyboards/locales.d.ts +24 -0
  674. package/lib/pro/keyboards/locales.js +47 -0
  675. package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  676. package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
  677. package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
  678. package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  679. package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
  680. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  681. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
  682. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
  683. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
  684. package/lib/pro/skuDetailModal/index.js +114 -64
  685. package/lib/pro/skuDetailModal/index.less +46 -4
  686. package/lib/pro/skuDetailModal/types.d.ts +7 -0
  687. package/lowcode/eco-cup-list/meta.ts +63 -0
  688. package/lowcode/eco-customer-list/meta.ts +63 -0
  689. package/lowcode/ecocup-cup-list/meta.ts +38 -0
  690. package/lowcode/ecocup-cup-project/meta.ts +35 -0
  691. package/lowcode/ecocup-customer-list/meta.ts +38 -0
  692. package/lowcode/kiosk-sku-detail/meta.ts +229 -94
  693. package/lowcode/login2/meta.ts +15 -0
  694. package/lowcode/order-list/meta.ts +87 -0
  695. package/package.json +7 -22
  696. package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
  697. package/es/plus/myTeamLogin/MyTeamLoginCpt.js +0 -157
  698. package/es/plus/myTeamLogin/index.d.ts +0 -11
  699. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  700. package/es/pro/pisellNumberSelector/example.js +0 -68
  701. package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
  702. package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +0 -156
  703. package/lib/plus/myTeamLogin/index.d.ts +0 -11
  704. package/lib/plus/myTeamLogin/index.js +0 -198
  705. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  706. package/lib/pro/pisellNumberSelector/example.js +0 -93
  707. package/lowcode/my-team-login/meta.ts +0 -71
@@ -39,7 +39,6 @@ var import_materials = require("@pisell/materials");
39
39
  var import_dayjs = __toESM(require("dayjs"));
40
40
  var import_utils = require("@pisell/utils");
41
41
  var import_skuOptionsSelection = __toESM(require("../../plus/skuOptionsSelection"));
42
- var import_pisellNumberSelector = __toESM(require("../../pro/pisellNumberSelector"));
43
42
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
44
43
  var import_serve = require("../booking/info/service/serve");
45
44
  var import_locales = __toESM(require("./locales"));
@@ -47,41 +46,21 @@ var import_index = require("./index.less");
47
46
  var import_utils2 = require("../booking/utils");
48
47
  function KioskSkuDetail(props) {
49
48
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
50
- const { className, style, onBack, onAddToCart } = props;
49
+ const { className, style, onAddToCart } = props;
51
50
  const productIdFromUrl = (0, import_react.useMemo)(() => {
52
51
  return getQueryFirstMatch({ keys: ["productId", "product_id", "id"] });
53
52
  }, []);
54
- const resolvedProductId = productIdFromUrl ?? props.productId;
53
+ const initialProductId = productIdFromUrl ?? props.productId ?? null;
55
54
  const scheduleDate = (0, import_react.useMemo)(() => (0, import_dayjs.default)().format("YYYY-MM-DD"), []);
55
+ const stageScale = useDesignStageScale({ designWidth: 1080, designHeight: 1800 });
56
56
  const context = (0, import_useEngineContext.default)();
57
57
  const { interaction } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
58
58
  import_utils.locales.init(import_locales.default, ((_c = (_b = context == null ? void 0 : context.engine) == null ? void 0 : _b.props) == null ? void 0 : _c.locale) || "en");
59
59
  import_utils2.request.setRequest(context.appHelper.utils.request);
60
- const { store, getData } = ((_d = context.appHelper) == null ? void 0 : _d.utils) || {};
60
+ const { store, getData, Toast } = ((_d = context.appHelper) == null ? void 0 : _d.utils) || {};
61
61
  const state = (_e = store == null ? void 0 : store.getState) == null ? void 0 : _e.call(store);
62
62
  const symbol = ((_h = (_g = (_f = store == null ? void 0 : store.getState) == null ? void 0 : _f.call(store)) == null ? void 0 : _g.global) == null ? void 0 : _h.symbol) || "$";
63
63
  const currency_code = ((_k = (_j = (_i = store == null ? void 0 : store.getState) == null ? void 0 : _i.call(store)) == null ? void 0 : _j.global) == null ? void 0 : _k.currency_code) || "AUD";
64
- (0, import_react.useEffect)(() => {
65
- var _a2, _b2;
66
- (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
67
- module: "tickets",
68
- key: "page_load"
69
- });
70
- interaction.utils.mountFunction(
71
- "tickets",
72
- "restore_buy_wallet_pass",
73
- (data) => {
74
- console.log("重置状态", data);
75
- }
76
- );
77
- interaction.utils.mountFunction(
78
- "tickets",
79
- "edit_buy_wallet_pass",
80
- (data) => {
81
- console.log("编辑状态", data);
82
- }
83
- );
84
- }, []);
85
64
  const [isLoading, setIsLoading] = (0, import_react.useState)(false);
86
65
  const [errorText, setErrorText] = (0, import_react.useState)(null);
87
66
  const [productData, setProductData] = (0, import_react.useState)(null);
@@ -98,47 +77,130 @@ function KioskSkuDetail(props) {
98
77
  bundle: [],
99
78
  option: []
100
79
  });
101
- (0, import_react.useEffect)(() => {
102
- let isCancelled = false;
103
- async function load() {
104
- if (!resolvedProductId) return;
105
- setIsLoading(true);
106
- setErrorText(null);
107
- try {
108
- const open_deposit = (getData == null ? void 0 : getData("bookingv2_deposit")) || 0;
109
- const params = { open_deposit };
110
- params.schedule_date = scheduleDate;
111
- const res = await (0, import_serve.getProductDetail)(String(resolvedProductId), params);
112
- const apiData = (res == null ? void 0 : res.data) || {};
113
- if (isCancelled) return;
114
- setProductData(apiData);
115
- const normalizedProductId = Number(
116
- (apiData == null ? void 0 : apiData.product_id) || (apiData == null ? void 0 : apiData.id) || resolvedProductId || 0
117
- );
118
- const minNumUnit = Number((apiData == null ? void 0 : apiData.min_num_unit) || 1);
80
+ const [isEdit, setIsEdit] = (0, import_react.useState)(false);
81
+ const skuOptionsSelectionRef = (0, import_react.useRef)(null);
82
+ const requestSeqRef = (0, import_react.useRef)(0);
83
+ const resetForInit = (0, import_react.useCallback)(() => {
84
+ setProductData(null);
85
+ setErrorText(null);
86
+ setQuantity(1);
87
+ setSkuValue({
88
+ product_id: 0,
89
+ product_variant_id: 0,
90
+ bundle: [],
91
+ option: []
92
+ });
93
+ setSkuDefaultValue({
94
+ product_id: 0,
95
+ product_variant_id: 0,
96
+ bundle: [],
97
+ option: []
98
+ });
99
+ }, []);
100
+ const loadByProductId = (0, import_react.useCallback)(async (productId, options = {}) => {
101
+ var _a2, _b2;
102
+ console.log("准备 load", productId);
103
+ if (productId === null || typeof productId === "undefined" || productId === "") return;
104
+ const reqId = ++requestSeqRef.current;
105
+ setIsLoading(true);
106
+ setErrorText(null);
107
+ try {
108
+ const open_deposit = (getData == null ? void 0 : getData("bookingv2_deposit")) || 0;
109
+ const params = { open_deposit, "translate-locale": ((_b2 = (_a2 = context == null ? void 0 : context.engine) == null ? void 0 : _a2.props) == null ? void 0 : _b2.locale) || "en" };
110
+ params.schedule_date = scheduleDate;
111
+ const res = await (0, import_serve.getProductDetail)(String(productId), params);
112
+ console.log("详情接口");
113
+ console.log(JSON.stringify(res));
114
+ const apiData = ((res == null ? void 0 : res.id) ? res : res == null ? void 0 : res.data) || {};
115
+ if (reqId !== requestSeqRef.current) return;
116
+ setProductData(apiData);
117
+ console.log("已设置 productData");
118
+ const normalizedProductId = Number(
119
+ (apiData == null ? void 0 : apiData.product_id) || (apiData == null ? void 0 : apiData.id) || productId || 0
120
+ );
121
+ const minNumUnit = Number((apiData == null ? void 0 : apiData.min_num_unit) || 1);
122
+ if (options.shouldInitQuantity !== false) {
119
123
  setQuantity(minNumUnit > 0 ? minNumUnit : 1);
120
- const initialSkuValue = {
121
- product_id: normalizedProductId,
122
- product_variant_id: 0,
123
- bundle: [],
124
- option: []
125
- };
124
+ }
125
+ const defaultVariantId = (() => {
126
+ var _a3, _b3;
127
+ const firstVariantId = Array.isArray(apiData == null ? void 0 : apiData.variant) ? Number(((_b3 = (_a3 = apiData == null ? void 0 : apiData.variant) == null ? void 0 : _a3[0]) == null ? void 0 : _b3.id) || 0) : 0;
128
+ return Number.isFinite(firstVariantId) ? firstVariantId : 0;
129
+ })();
130
+ const initialSkuValue = {
131
+ product_id: normalizedProductId,
132
+ product_variant_id: defaultVariantId,
133
+ bundle: [],
134
+ option: []
135
+ };
136
+ if (options.shouldInitSku !== false) {
126
137
  setSkuValue(initialSkuValue);
127
138
  setSkuDefaultValue(initialSkuValue);
128
- } catch (error) {
129
- console.error(error);
130
- if (isCancelled) return;
131
- setErrorText("Failed to load product detail");
132
- } finally {
133
- if (isCancelled) return;
134
- setIsLoading(false);
139
+ setTimeout(() => {
140
+ var _a3;
141
+ if (initialSkuValue.product_variant_id) {
142
+ (_a3 = skuOptionsSelectionRef.current) == null ? void 0 : _a3.validate();
143
+ }
144
+ }, 0);
135
145
  }
146
+ } catch (error) {
147
+ console.error(error);
148
+ setErrorText("Failed to load product detail");
149
+ } finally {
150
+ if (reqId !== requestSeqRef.current) return;
151
+ setIsLoading(false);
136
152
  }
137
- load();
138
- return () => {
139
- isCancelled = true;
140
- };
141
- }, [getData, resolvedProductId, scheduleDate]);
153
+ }, [getData, scheduleDate]);
154
+ const loadRef = (0, import_react.useRef)(loadByProductId);
155
+ loadRef.current = loadByProductId;
156
+ (0, import_react.useEffect)(() => {
157
+ var _a2, _b2, _c2, _d2, _e2, _f2;
158
+ (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
159
+ module: "wallet_pass",
160
+ key: "page_load"
161
+ });
162
+ (_d2 = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.mountFunction) == null ? void 0 : _d2.call(
163
+ _c2,
164
+ "wallet_pass",
165
+ "restore_buy_wallet_pass",
166
+ (id) => {
167
+ console.log("重置状态", id);
168
+ console.log("宽", window.innerWidth);
169
+ console.log("高", window.innerHeight);
170
+ console.log("设备像素比", window.devicePixelRatio);
171
+ resetForInit();
172
+ if (id || id === 0) loadRef.current(id);
173
+ setIsEdit(false);
174
+ }
175
+ );
176
+ (_f2 = (_e2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e2.mountFunction) == null ? void 0 : _f2.call(
177
+ _e2,
178
+ "wallet_pass",
179
+ "edit_buy_wallet_pass",
180
+ (data) => {
181
+ console.log("编辑状态", data);
182
+ const productData2 = JSON.parse(data);
183
+ loadRef.current(productData2.productId, {
184
+ shouldInitSku: false,
185
+ shouldInitQuantity: false
186
+ });
187
+ setSkuValue({
188
+ product_id: productData2.productId,
189
+ product_variant_id: Number(productData2.variantId),
190
+ bundle: [],
191
+ option: []
192
+ });
193
+ setSkuDefaultValue({
194
+ product_id: productData2.productId,
195
+ product_variant_id: Number(productData2.variantId),
196
+ bundle: [],
197
+ option: []
198
+ });
199
+ setIsEdit(true);
200
+ }
201
+ );
202
+ if (initialProductId || initialProductId === 0) loadRef.current(initialProductId);
203
+ }, []);
142
204
  const coverUrl = (0, import_react.useMemo)(() => {
143
205
  return (productData == null ? void 0 : productData.cover) || (productData == null ? void 0 : productData.image) || "";
144
206
  }, [productData]);
@@ -182,55 +244,51 @@ function KioskSkuDetail(props) {
182
244
  return `${priceSign}${symbol}${deTotal.abs().toNumber().toFixed(2)}`;
183
245
  }, [itemTotal, symbol]);
184
246
  const handleAddToCart = () => {
247
+ var _a2;
185
248
  if (!productData) return;
186
- const productBundle = [];
187
- skuValue.bundle.forEach((item) => {
188
- if (!item.num || item.num < 1) return;
189
- let targetBundleData;
190
- let bundle_group_id;
191
- for (let i = 0; i < productData.bundle_group.length; i++) {
192
- const { id, bundle_item = [] } = productData.bundle_group[i];
193
- for (let j = 0; j < bundle_item.length; j++) {
194
- if (item.id === bundle_item[j].bundle_product_id) {
195
- bundle_group_id = id;
196
- targetBundleData = bundle_item[j];
197
- break;
198
- }
199
- }
200
- }
201
- productBundle.push({
202
- bundle_group_id,
203
- bundle_id: targetBundleData.id,
204
- bundle_product_id: item.id,
205
- bundle_variant_id: targetBundleData.bundle_variant_id,
206
- num: item.num,
207
- extension_id: targetBundleData.extension_id,
208
- extension_type: targetBundleData.extension_type
209
- });
210
- });
211
- productData.option_group = [];
212
- productData.variant_group = [];
249
+ (_a2 = skuOptionsSelectionRef.current) == null ? void 0 : _a2.validate();
250
+ if (!skuValue.product_variant_id) {
251
+ Toast.info(import_utils.locales.getText("pisell2.text.kiosk.sku.detail.toast.select.variant"));
252
+ return;
253
+ }
254
+ ;
213
255
  const obj = {
214
256
  productDetail: productData,
215
257
  quantity,
258
+ variantId: skuValue.product_variant_id,
216
259
  pricePerUnit: unitPrice,
217
- bundlePrice: productData.price,
218
- productBundle
260
+ isWebBuyWalletPass: true
219
261
  };
220
262
  interaction.utils.postMessageToApp({
221
- module: "tickets",
263
+ module: "wallet_pass",
222
264
  key: "buy_wallet_pass",
223
265
  data: {
224
266
  // 把洗好的数据放这里
225
- productData: [obj]
267
+ productData: obj,
268
+ isEdit
226
269
  }
227
270
  });
228
271
  };
229
- return /* @__PURE__ */ import_react.default.createElement(
272
+ const onBack = () => {
273
+ interaction.utils.postMessageToApp({
274
+ module: "wallet_pass",
275
+ key: "back"
276
+ });
277
+ };
278
+ const stageStyle = (0, import_react.useMemo)(() => {
279
+ return {
280
+ ...style || {},
281
+ width: 1080,
282
+ height: 1800,
283
+ transform: `translateX(-50%) scale(${stageScale})`,
284
+ transformOrigin: "top center"
285
+ };
286
+ }, [stageScale, style]);
287
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail-viewport" }, /* @__PURE__ */ import_react.default.createElement(
230
288
  "div",
231
289
  {
232
290
  className: (0, import_classnames.default)("pisell-kiosk-sku-detail", className),
233
- style
291
+ style: stageStyle
234
292
  },
235
293
  /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__hero" }, coverUrl ? /* @__PURE__ */ import_react.default.createElement(
236
294
  "img",
@@ -246,9 +304,10 @@ function KioskSkuDetail(props) {
246
304
  __html: descriptionText
247
305
  }
248
306
  }
249
- )), !!priceRangeText && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__price-range" }, priceRangeText, " ", currency_code), !!errorText && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__error" }, errorText)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__options-card" }, productData ? /* @__PURE__ */ import_react.default.createElement(
307
+ )), !!priceRangeText && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__price-range" }, priceRangeText, " ", currency_code), !!errorText && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__error" }, errorText)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__options-card" }, productData && Array.isArray(productData == null ? void 0 : productData.variant) && productData.variant.length > 0 ? /* @__PURE__ */ import_react.default.createElement(
250
308
  import_skuOptionsSelection.default,
251
309
  {
310
+ ref: skuOptionsSelectionRef,
252
311
  dataSource: productData,
253
312
  value: skuDefaultValue,
254
313
  skuCardConfig: {
@@ -273,22 +332,7 @@ function KioskSkuDetail(props) {
273
332
  onClick: onBack
274
333
  },
275
334
  import_utils.locales.getText("pisell2.text.kiosk.sku.detail.btn.back")
276
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__footer-center" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__item-total" }, import_utils.locales.getText("pisell2.text.kiosk.sku.detail.item.total"), ":", " ", itemTotalText), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__qty" }, /* @__PURE__ */ import_react.default.createElement(
277
- import_pisellNumberSelector.default,
278
- {
279
- value: quantity,
280
- width: "140px",
281
- onChange: (v) => {
282
- if (!v) return;
283
- setQuantity(v);
284
- },
285
- min: 1,
286
- max: 99999,
287
- step: 1,
288
- size: "large",
289
- enablePriceAdjust: false
290
- }
291
- ))), /* @__PURE__ */ import_react.default.createElement(
335
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__footer-center" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__item-total" }, import_utils.locales.getText("pisell2.text.kiosk.sku.detail.item.total"), ":", " ", itemTotalText)), /* @__PURE__ */ import_react.default.createElement(
292
336
  import_materials.Button,
293
337
  {
294
338
  type: "primary",
@@ -297,9 +341,11 @@ function KioskSkuDetail(props) {
297
341
  onClick: handleAddToCart,
298
342
  disabled: !productData || isLoading
299
343
  },
300
- import_utils.locales.getText("pisell2.text.kiosk.sku.detail.btn.add.to.cart")
344
+ import_utils.locales.getText(
345
+ isEdit ? "pisell2.text.kiosk.sku.detail.btn.update" : "pisell2.text.kiosk.sku.detail.btn.add.to.cart"
346
+ )
301
347
  ))
302
- );
348
+ ));
303
349
  }
304
350
  var kioskSkuDetail_default = KioskSkuDetail;
305
351
  function getQueryFirstMatch(params) {
@@ -324,3 +370,24 @@ function getQueryFirstMatch(params) {
324
370
  if (queryIndex === -1) return null;
325
371
  return tryRead(hash.slice(queryIndex + 1));
326
372
  }
373
+ function useDesignStageScale(params) {
374
+ const designWidth = params.designWidth;
375
+ const designHeight = params.designHeight;
376
+ const [scale, setScale] = (0, import_react.useState)(1);
377
+ (0, import_react.useEffect)(() => {
378
+ const update = () => {
379
+ const viewportWidth = window.innerWidth || designWidth;
380
+ const viewportHeight = window.innerHeight || designHeight;
381
+ const nextScale = Math.min(
382
+ viewportWidth / designWidth,
383
+ viewportHeight / designHeight,
384
+ 1
385
+ );
386
+ setScale(nextScale);
387
+ };
388
+ update();
389
+ window.addEventListener("resize", update);
390
+ return () => window.removeEventListener("resize", update);
391
+ }, [designHeight, designWidth]);
392
+ return scale;
393
+ }
@@ -1,7 +1,17 @@
1
- .pisell-kiosk-sku-detail {
1
+ .pisell-kiosk-sku-detail-viewport {
2
2
  position: relative;
3
- width: 100%;
3
+ width: 100vw;
4
4
  height: 100vh;
5
+ overflow: hidden;
6
+ background: #f2f4f7;
7
+ }
8
+
9
+ .pisell-kiosk-sku-detail {
10
+ position: absolute;
11
+ top: 0;
12
+ left: 50%;
13
+ width: 1080px;
14
+ height: 1800px;
5
15
  overflow-y: auto;
6
16
  background: #f2f4f7;
7
17
  background-size: cover;
@@ -11,12 +21,40 @@
11
21
  }
12
22
 
13
23
  .pisell-kiosk-sku-detail__content {
14
- max-width: 1000px;
24
+ width: 100%;
15
25
  margin: 0 auto;
16
26
  display: flex;
17
27
  flex-direction: column;
18
28
  gap: 40px;
19
29
  padding-bottom: 220px; // avoid overlap with footer
30
+ .pisell-pro-selector_header-content {
31
+ .pisell-pro-selector_header-content-title {
32
+ color: #101828;
33
+ font-size: 36px !important;
34
+ }
35
+ .pisell-lowcode-tag {
36
+ font-size: 22px !important;
37
+ margin-left: 20px !important;
38
+ padding-top: 5px !important;
39
+ padding-bottom: 5px !important;
40
+ }
41
+ }
42
+ .pisell-pro-selector_tip {
43
+ font-size: 36px !important;
44
+ color: #667085;
45
+ }
46
+ .pisell-sku-options-selection-variant-card__title {
47
+ font-size: 36px !important;
48
+ font-weight: 600 !important;
49
+ color: #101828;
50
+ }
51
+ .pisell-sku-options-selection-variant-card__price {
52
+ font-size: 30px !important;
53
+ }
54
+ .pisell-sku-options-selection-variant-card {
55
+ padding-top: 30px !important;
56
+ padding-bottom: 30px !important;
57
+ }
20
58
  }
21
59
 
22
60
  .pisell-kiosk-sku-detail__hero {
@@ -55,7 +93,6 @@
55
93
  }
56
94
 
57
95
  .pisell-kiosk-sku-detail__desc {
58
- max-width: 860px;
59
96
  font-size: 36px;
60
97
  line-height: 44px;
61
98
  font-weight: 400;
@@ -91,11 +128,13 @@
91
128
  }
92
129
 
93
130
  .pisell-kiosk-sku-detail__footer {
131
+ // 注意:父容器有 transform(scale),fixed 会相对该容器定位(适配小分辨率缩放舞台)
94
132
  position: fixed;
95
- left: 50%;
133
+ left: 30px;
134
+ right: 30px;
96
135
  bottom: 30px;
97
- transform: translateX(-50%);
98
- width: min(1020px, calc(100% - 60px));
136
+ transform: none;
137
+ width: auto;
99
138
  display: flex;
100
139
  align-items: center;
101
140
  justify-content: space-between;
@@ -125,6 +164,9 @@
125
164
  display: flex;
126
165
  align-items: center;
127
166
  gap: 20px;
167
+ // 靠右,并与右侧主按钮保持 20px 间距
168
+ margin-left: auto;
169
+ margin-right: 20px;
128
170
  }
129
171
 
130
172
  .pisell-kiosk-sku-detail__item-total {
@@ -3,19 +3,25 @@ declare const _default: {
3
3
  'pisell2.text.kiosk.sku.detail.btn.back': string;
4
4
  'pisell2.text.kiosk.sku.detail.item.total': string;
5
5
  'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
6
+ 'pisell2.text.kiosk.sku.detail.btn.update': string;
6
7
  'pisell2.text.kiosk.sku.detail.loading.options': string;
8
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
7
9
  };
8
10
  'zh-CN': {
9
11
  'pisell2.text.kiosk.sku.detail.btn.back': string;
10
12
  'pisell2.text.kiosk.sku.detail.item.total': string;
11
13
  'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
14
+ 'pisell2.text.kiosk.sku.detail.btn.update': string;
12
15
  'pisell2.text.kiosk.sku.detail.loading.options': string;
16
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
13
17
  };
14
18
  'zh-TW': {
15
19
  'pisell2.text.kiosk.sku.detail.btn.back': string;
16
20
  'pisell2.text.kiosk.sku.detail.item.total': string;
17
21
  'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
22
+ 'pisell2.text.kiosk.sku.detail.btn.update': string;
18
23
  'pisell2.text.kiosk.sku.detail.loading.options': string;
24
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
19
25
  };
20
26
  };
21
27
  export default _default;
@@ -27,18 +27,24 @@ var locales_default = {
27
27
  "pisell2.text.kiosk.sku.detail.btn.back": "Back",
28
28
  "pisell2.text.kiosk.sku.detail.item.total": "Item total",
29
29
  "pisell2.text.kiosk.sku.detail.btn.add.to.cart": "Add to cart",
30
- "pisell2.text.kiosk.sku.detail.loading.options": "Loading options…"
30
+ "pisell2.text.kiosk.sku.detail.btn.update": "Update",
31
+ "pisell2.text.kiosk.sku.detail.loading.options": "Loading options…",
32
+ "pisell2.text.kiosk.sku.detail.toast.select.variant": "Please select a top-up option"
31
33
  },
32
34
  "zh-CN": {
33
35
  "pisell2.text.kiosk.sku.detail.btn.back": "返回",
34
36
  "pisell2.text.kiosk.sku.detail.item.total": "小计",
35
37
  "pisell2.text.kiosk.sku.detail.btn.add.to.cart": "加入购物车",
36
- "pisell2.text.kiosk.sku.detail.loading.options": "正在加载选项…"
38
+ "pisell2.text.kiosk.sku.detail.btn.update": "更新",
39
+ "pisell2.text.kiosk.sku.detail.loading.options": "正在加载选项…",
40
+ "pisell2.text.kiosk.sku.detail.toast.select.variant": "请选择充值选项"
37
41
  },
38
42
  "zh-TW": {
39
43
  "pisell2.text.kiosk.sku.detail.btn.back": "返回",
40
44
  "pisell2.text.kiosk.sku.detail.item.total": "小計",
41
45
  "pisell2.text.kiosk.sku.detail.btn.add.to.cart": "加入購物車",
42
- "pisell2.text.kiosk.sku.detail.loading.options": "正在載入選項…"
46
+ "pisell2.text.kiosk.sku.detail.btn.update": "更新",
47
+ "pisell2.text.kiosk.sku.detail.loading.options": "正在載入選項…",
48
+ "pisell2.text.kiosk.sku.detail.toast.select.variant": "請選擇充值選項"
43
49
  }
44
50
  };
@@ -97,7 +97,14 @@ var EFTPOS = (props, ref) => {
97
97
  name: payMethod.name,
98
98
  symbol: params.symbol,
99
99
  amount: params.amount,
100
- device_number
100
+ device_number,
101
+ custom_payment_id: payMethod == null ? void 0 : payMethod.id,
102
+ custom_payment_code: payMethod == null ? void 0 : payMethod.code,
103
+ custom_payment_name: payMethod == null ? void 0 : payMethod.name,
104
+ custom_payment_type: payMethod == null ? void 0 : payMethod.type,
105
+ operator_type: params == null ? void 0 : params.operator_type,
106
+ operator_id: params == null ? void 0 : params.operator_id,
107
+ platform: params == null ? void 0 : params.platform
101
108
  },
102
109
  mode
103
110
  };
@@ -84,7 +84,8 @@ var MX51 = (props, ref) => {
84
84
  msg: _res == null ? void 0 : _res.msg,
85
85
  amount: (_a2 = _res == null ? void 0 : _res.data) == null ? void 0 : _a2.amount,
86
86
  surcharge: (_b2 = _res == null ? void 0 : _res.data) == null ? void 0 : _b2.surcharge,
87
- uniquePaymentNumber: _res == null ? void 0 : _res.uuid
87
+ uniquePaymentNumber: _res == null ? void 0 : _res.uuid,
88
+ action: _res == null ? void 0 : _res.action
88
89
  };
89
90
  isSame = (_res == null ? void 0 : _res.uuid) === uniquePaymentNumber;
90
91
  if (isSame) {
@@ -76,7 +76,8 @@ var PaymentMethods = (props, ref) => {
76
76
  data: {
77
77
  amount: res.amount,
78
78
  surcharge: res.surcharge,
79
- uniquePaymentNumber: res.uniquePaymentNumber
79
+ uniquePaymentNumber: res.uniquePaymentNumber,
80
+ action: res.action
80
81
  },
81
82
  msg: res.msg
82
83
  };
@@ -14,6 +14,7 @@ export interface ToBPayParams {
14
14
  symbol?: string;
15
15
  amount: string;
16
16
  surcharge?: string;
17
+ [key: string]: any;
17
18
  };
18
19
  mode: 'pay' | 'refund';
19
20
  };
@@ -27,6 +28,12 @@ export declare type ToBPayCallback = (res: {
27
28
  surMoney?: number;
28
29
  surcharge?: number;
29
30
  uniquePaymentNumber?: string;
31
+ /**
32
+ * @description
33
+ * 支付组件返回的额外动作指令(例如:取消订单并开始新订单)
34
+ * PaymentModal 里会根据该字段执行对应流程。
35
+ */
36
+ action?: 'cancel_order' | string;
30
37
  };
31
38
  msg?: string;
32
39
  }) => void;
@@ -57,11 +64,13 @@ export interface MX51PayResult {
57
64
  amount: number;
58
65
  surcharge: number;
59
66
  uniquePaymentNumber: string;
67
+ action?: 'cancel_order' | string;
60
68
  }
61
69
  /**
62
70
  * @title 原生MX51支付结果
63
71
  */
64
72
  export interface NativeMX51PayResult {
73
+ action?: 'cancel_order' | string;
65
74
  code: string;
66
75
  msg?: string;
67
76
  data: {
@@ -12,7 +12,7 @@ export interface PaymentListProps {
12
12
  renderTitle?: () => React.ReactNode;
13
13
  }
14
14
  export interface PaymentListRef {
15
- init: (props: any) => {};
15
+ init: (props: any, amount?: number) => {};
16
16
  calculateSurcharge: (amount: number) => any;
17
17
  }
18
18
  declare const _default: React.ForwardRefExoticComponent<PaymentListProps & React.RefAttributes<unknown>>;