@pisell/private-materials 6.3.137 → 6.3.139

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 (455) 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 +153 -426
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  12. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  13. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  14. package/es/components/appointmentBooking/hooks.d.ts +107 -0
  15. package/es/components/appointmentBooking/utils.d.ts +227 -0
  16. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +24 -5
  17. package/es/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
  18. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  19. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  20. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  21. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  22. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  23. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  24. package/es/components/booking/components/footer/utils.d.ts +47 -0
  25. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  26. package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  27. package/es/components/booking/components/voucher/index.d.ts +3 -0
  28. package/es/components/booking/forms/single/index.d.ts +1 -0
  29. package/es/components/booking/forms/table/index.d.ts +1 -0
  30. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  31. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  32. package/es/components/booking/info/date/index.d.ts +1 -0
  33. package/es/components/booking/info/notes/index.d.ts +1 -0
  34. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  35. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  36. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  37. package/es/components/booking/info/service/like/index.d.ts +1 -0
  38. package/es/components/booking/info/service2/utils.d.ts +248 -0
  39. package/es/components/booking/info2/index.d.ts +12 -0
  40. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  41. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  42. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  43. package/es/components/booking/locales.d.ts +1489 -0
  44. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  45. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  46. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  47. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  48. package/es/components/booking/model.d.ts +120 -0
  49. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  50. package/es/components/booking/utils.d.ts +2 -2
  51. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  52. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  53. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  54. package/es/components/eftpos/form/index.d.ts +1 -0
  55. package/es/components/eftpos/group/index.d.ts +1 -0
  56. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  57. package/es/components/eftpos/icon/device.d.ts +1 -0
  58. package/es/components/eftpos/pos.d.ts +1 -0
  59. package/es/components/eftpos/receipt/index.d.ts +1 -0
  60. package/es/components/eftposPay/amount.d.ts +21 -0
  61. package/es/components/eftposPay/app.d.ts +10 -0
  62. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  63. package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  64. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  65. package/es/components/eftposPay/component/fail/network.d.ts +9 -0
  66. package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
  67. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  68. package/es/components/eftposPay/component/manual/index.d.ts +9 -0
  69. package/es/components/eftposPay/component/signature/index.d.ts +9 -0
  70. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  71. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  72. package/es/components/eftposPay/device.d.ts +23 -0
  73. package/es/components/eftposPay/hooks.d.ts +2 -2
  74. package/es/components/eftposPay/index.d.ts +4 -0
  75. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  76. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  77. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  78. package/es/components/eftposPay/pay.d.ts +20 -0
  79. package/es/components/eftposPay/payo/config.d.ts +13 -0
  80. package/es/components/eftposPay/payo/hooks.d.ts +10 -0
  81. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  82. package/es/components/eftposPay/store/index.d.ts +5 -5
  83. package/es/components/eftposPay/tip.d.ts +10 -0
  84. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  85. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  86. package/es/components/eftposPay/utils/payLog.d.ts +81 -0
  87. package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
  88. package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
  89. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  92. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  96. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  97. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  98. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  99. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  100. package/es/components/kioskSkuDetail/locales.d.ts +48 -0
  101. package/es/components/login/index.d.ts +1 -0
  102. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  103. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  104. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  105. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
  106. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
  107. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
  108. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -5
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  110. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  111. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  112. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  113. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
  114. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
  115. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
  116. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  117. package/es/components/pay/toC/index.d.ts +3 -0
  118. package/es/components/pay/toC/locales.d.ts +631 -0
  119. package/es/components/pay/toC/payGroup.d.ts +59 -0
  120. package/es/components/pay/toC/serve.d.ts +87 -0
  121. package/es/components/pay/toC/utils.d.ts +65 -0
  122. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  123. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  124. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  125. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  126. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  127. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  128. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  129. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  130. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  131. package/es/components/ruleSetting/locales.d.ts +78 -0
  132. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  133. package/es/components/scanOrder/components/Cart/index.d.ts +2 -0
  134. package/es/components/scanOrder/components/Cart/index.js +58 -24
  135. package/es/components/scanOrder/components/Cart/index.less +61 -8
  136. package/es/components/scanOrder/components/Check/index.js +232 -51
  137. package/es/components/scanOrder/components/Check/index.less +30 -0
  138. package/es/components/scanOrder/components/Content/index.js +358 -121
  139. package/es/components/scanOrder/components/Footer/index.d.ts +2 -0
  140. package/es/components/scanOrder/components/Footer/index.js +4 -2
  141. package/es/components/scanOrder/components/Footer/index.less +16 -7
  142. package/es/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
  143. package/es/components/scanOrder/components/FulfillmentMode/index.js +90 -0
  144. package/es/components/scanOrder/components/FulfillmentMode/index.less +40 -0
  145. package/es/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
  146. package/es/components/scanOrder/components/ManualPickupRefModal/index.js +87 -0
  147. package/es/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
  148. package/es/components/scanOrder/context.js +104 -21
  149. package/es/components/scanOrder/locales.d.ts +55 -0
  150. package/es/components/scanOrder/locales.js +55 -0
  151. package/es/components/scanOrder/types.d.ts +23 -0
  152. package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
  153. package/es/components/scanOrder/utils/toShoppingCartProducts.js +15 -9
  154. package/es/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
  155. package/es/components/scanOrder/utils/transformProductDetail.js +7 -6
  156. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  157. package/es/components/schedules/calendar/index.d.ts +1 -0
  158. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  159. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  160. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  161. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  162. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  163. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  164. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  165. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  166. package/es/components/schedules/products/index.d.ts +1 -0
  167. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  168. package/es/components/schedules/products/list/index.d.ts +1 -0
  169. package/es/components/schedules/resources/index.d.ts +1 -0
  170. package/es/components/schedules/resources/list/index.d.ts +1 -0
  171. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  172. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  173. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  174. package/es/components/schedules/schedules/index.d.ts +1 -0
  175. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  176. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  177. package/es/components/shoppingCart/index.d.ts +1 -0
  178. package/es/components/systemSettings/registry/components/GroupModal.js +8 -1
  179. package/es/components/systemSettings/registry/components/ItemModal.js +3 -0
  180. package/es/components/systemSettings/registry/index.js +3 -1
  181. package/es/components/systemSettings/registry/services.d.ts +2 -0
  182. package/es/components/systemSettings/registry/types.d.ts +3 -0
  183. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  184. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  185. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  186. package/es/components/ticketBooking/index.d.ts +7 -0
  187. package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +130 -18
  188. package/es/components/venueBooking/context.js +38 -12
  189. package/es/components/venueBooking/hooks.d.ts +16 -3
  190. package/es/components/venueBooking/hooks.js +16 -4
  191. package/es/components/venueBooking/types.d.ts +19 -2
  192. package/es/hooks/usePaymentLogger.d.ts +1 -0
  193. package/es/index.d.ts +87 -0
  194. package/es/index.js +1 -1
  195. package/es/plus/clientName/index.d.ts +1 -0
  196. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  197. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  198. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  199. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  200. package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
  201. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  202. package/es/plus/pisellSalesProductCard/index.js +16 -1
  203. package/es/plus/pisellSalesProductCard/types.d.ts +21 -1
  204. package/es/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
  205. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  206. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  207. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  208. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  209. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  210. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  211. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  212. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  213. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  214. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  215. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  216. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  217. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  218. package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
  219. package/es/plus/skuOptionsSelection/types.d.ts +458 -0
  220. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  221. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  222. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  223. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  224. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  225. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  226. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  227. package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
  228. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  229. package/es/pro/NumericStepper/index.d.ts +19 -0
  230. package/es/pro/NumericStepper/index.js +37 -6
  231. package/es/pro/Selector/demo.d.ts +1 -0
  232. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  233. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  234. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  235. package/lib/components/appointmentBooking/hooks.d.ts +107 -0
  236. package/lib/components/appointmentBooking/utils.d.ts +227 -0
  237. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +19 -4
  238. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
  239. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  240. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  241. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  242. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  243. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  244. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  245. package/lib/components/booking/components/footer/utils.d.ts +47 -0
  246. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  247. package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  248. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  249. package/lib/components/booking/forms/single/index.d.ts +1 -0
  250. package/lib/components/booking/forms/table/index.d.ts +1 -0
  251. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  252. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  253. package/lib/components/booking/info/date/index.d.ts +1 -0
  254. package/lib/components/booking/info/notes/index.d.ts +1 -0
  255. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  256. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  257. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  258. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  259. package/lib/components/booking/info/service2/utils.d.ts +248 -0
  260. package/lib/components/booking/info2/index.d.ts +12 -0
  261. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  262. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  263. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  264. package/lib/components/booking/locales.d.ts +1489 -0
  265. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  266. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  267. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  268. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  269. package/lib/components/booking/model.d.ts +120 -0
  270. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  271. package/lib/components/booking/utils.d.ts +2 -2
  272. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  273. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  274. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  275. package/lib/components/eftpos/form/index.d.ts +1 -0
  276. package/lib/components/eftpos/group/index.d.ts +1 -0
  277. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  278. package/lib/components/eftpos/icon/device.d.ts +1 -0
  279. package/lib/components/eftpos/pos.d.ts +1 -0
  280. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  281. package/lib/components/eftposPay/amount.d.ts +21 -0
  282. package/lib/components/eftposPay/app.d.ts +10 -0
  283. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  284. package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  285. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  286. package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
  287. package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
  288. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  289. package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
  290. package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
  291. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  292. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  293. package/lib/components/eftposPay/device.d.ts +23 -0
  294. package/lib/components/eftposPay/hooks.d.ts +2 -2
  295. package/lib/components/eftposPay/index.d.ts +4 -0
  296. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  297. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  298. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  299. package/lib/components/eftposPay/pay.d.ts +20 -0
  300. package/lib/components/eftposPay/payo/config.d.ts +13 -0
  301. package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
  302. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  303. package/lib/components/eftposPay/store/index.d.ts +5 -5
  304. package/lib/components/eftposPay/tip.d.ts +10 -0
  305. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  306. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  307. package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
  308. package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
  309. package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
  310. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  311. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  312. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  313. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  314. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  315. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  316. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  317. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  318. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  319. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  320. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  321. package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
  322. package/lib/components/login/index.d.ts +1 -0
  323. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  324. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  325. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  326. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
  327. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
  328. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
  329. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  330. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  331. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  332. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  333. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  334. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
  335. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
  336. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
  337. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  338. package/lib/components/pay/toC/index.d.ts +3 -0
  339. package/lib/components/pay/toC/locales.d.ts +631 -0
  340. package/lib/components/pay/toC/payGroup.d.ts +59 -0
  341. package/lib/components/pay/toC/serve.d.ts +87 -0
  342. package/lib/components/pay/toC/utils.d.ts +65 -0
  343. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  344. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  345. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  346. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  347. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  348. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  349. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  350. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  351. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  352. package/lib/components/ruleSetting/locales.d.ts +78 -0
  353. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  354. package/lib/components/scanOrder/components/Cart/index.d.ts +2 -0
  355. package/lib/components/scanOrder/components/Cart/index.js +43 -9
  356. package/lib/components/scanOrder/components/Cart/index.less +61 -8
  357. package/lib/components/scanOrder/components/Check/index.js +97 -8
  358. package/lib/components/scanOrder/components/Check/index.less +30 -0
  359. package/lib/components/scanOrder/components/Content/index.js +215 -69
  360. package/lib/components/scanOrder/components/Footer/index.d.ts +2 -0
  361. package/lib/components/scanOrder/components/Footer/index.js +2 -2
  362. package/lib/components/scanOrder/components/Footer/index.less +16 -7
  363. package/lib/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
  364. package/lib/components/scanOrder/components/FulfillmentMode/index.js +96 -0
  365. package/lib/components/scanOrder/components/FulfillmentMode/index.less +40 -0
  366. package/lib/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
  367. package/lib/components/scanOrder/components/ManualPickupRefModal/index.js +116 -0
  368. package/lib/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
  369. package/lib/components/scanOrder/context.js +80 -12
  370. package/lib/components/scanOrder/locales.d.ts +55 -0
  371. package/lib/components/scanOrder/locales.js +55 -0
  372. package/lib/components/scanOrder/types.d.ts +23 -0
  373. package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
  374. package/lib/components/scanOrder/utils/toShoppingCartProducts.js +8 -5
  375. package/lib/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
  376. package/lib/components/scanOrder/utils/transformProductDetail.js +1 -9
  377. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  378. package/lib/components/schedules/calendar/index.d.ts +1 -0
  379. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  380. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  381. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  382. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  383. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  384. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  385. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  386. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  387. package/lib/components/schedules/products/index.d.ts +1 -0
  388. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  389. package/lib/components/schedules/products/list/index.d.ts +1 -0
  390. package/lib/components/schedules/resources/index.d.ts +1 -0
  391. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  392. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  393. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  394. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  395. package/lib/components/schedules/schedules/index.d.ts +1 -0
  396. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  397. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  398. package/lib/components/shoppingCart/index.d.ts +1 -0
  399. package/lib/components/systemSettings/registry/components/GroupModal.js +71 -72
  400. package/lib/components/systemSettings/registry/components/ItemModal.js +2 -1
  401. package/lib/components/systemSettings/registry/index.js +3 -1
  402. package/lib/components/systemSettings/registry/services.d.ts +2 -0
  403. package/lib/components/systemSettings/registry/types.d.ts +3 -0
  404. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  405. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  406. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  407. package/lib/components/ticketBooking/index.d.ts +7 -0
  408. package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +119 -19
  409. package/lib/components/venueBooking/context.js +16 -7
  410. package/lib/components/venueBooking/hooks.d.ts +16 -3
  411. package/lib/components/venueBooking/hooks.js +8 -2
  412. package/lib/components/venueBooking/types.d.ts +19 -2
  413. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  414. package/lib/index.d.ts +87 -0
  415. package/lib/index.js +2 -0
  416. package/lib/plus/clientName/index.d.ts +1 -0
  417. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  418. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  419. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  420. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  421. package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
  422. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  423. package/lib/plus/pisellSalesProductCard/index.js +10 -0
  424. package/lib/plus/pisellSalesProductCard/types.d.ts +21 -1
  425. package/lib/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
  426. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  427. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  428. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  429. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  430. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  431. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  432. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  433. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  434. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  435. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  436. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  437. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  438. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  439. package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
  440. package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
  441. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  442. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  443. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  444. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  445. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  446. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  447. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  448. package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
  449. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  450. package/lib/pro/NumericStepper/index.d.ts +19 -0
  451. package/lib/pro/NumericStepper/index.js +21 -4
  452. package/lib/pro/Selector/demo.d.ts +1 -0
  453. package/lowcode/admin-auth-channel-auth/meta.ts +116 -0
  454. package/lowcode/admin-auth-online-shop-auth/meta.ts +81 -5
  455. package/package.json +1 -1
@@ -0,0 +1,59 @@
1
+ import { PayGroup } from './model';
2
+ /**
3
+ * 生成 `/h5/core/stash` 的 token:前缀 + 订单号
4
+ */
5
+ export declare const buildPayGroupStashToken: (orderId: string) => string;
6
+ /**
7
+ * @title: 同步交易组到storage
8
+ * @description:
9
+ * @param {PayGroup} payGroup
10
+ * @return {*}
11
+ * @Author: zhiwei.Wang
12
+ * @Date: 2024-08-16 10:40
13
+ */
14
+ export declare const syncPayGroupToStorage: (payGroup: PayGroup) => void;
15
+ /**
16
+ * @title: 通过订单id获取交易组
17
+ * @description:
18
+ * @param {string} orderId
19
+ * @return {*}
20
+ * @Author: zhiwei.Wang
21
+ * @Date: 2024-08-16 10:40
22
+ */
23
+ export declare const getPayGroupFromStorage: (orderId: string) => PayGroup | null;
24
+ /**
25
+ * @title: 删除交易组
26
+ * @description:
27
+ * @param {string} orderId
28
+ * @return {*}
29
+ * @Author: zhiwei.Wang
30
+ * @Date: 2024-08-16 10:40
31
+ */
32
+ export declare const removePayGroupFromStorage: (orderId: string) => void;
33
+ /**
34
+ * @title: 获取交易组参数
35
+ * @description:
36
+ * @param {string} orderId
37
+ * @param {any} rest
38
+ * @return {*}
39
+ * @Author: zhiwei.Wang
40
+ * @Date: 2024-08-16 10:40
41
+ */
42
+ export declare const getPayGroupParamsFromStorage: (orderId: string, rest?: any) => any;
43
+ /**
44
+ * @title: 通过订单id设置交易号
45
+ * @description: 合并 pay_number 后调用 `/h5/core/stash` 最多 3 次;无论 stash 成败均写入 localStorage
46
+ * @param {string} orderId
47
+ * @param {string} payNumber
48
+ * @param {string} [token] 引擎 utils.token.get(),写入 stash 的 data.token
49
+ * @Author: zhiwei.Wang
50
+ * @Date: 2024-08-16 10:41
51
+ */
52
+ export declare const setPayNumber: (orderId: string, payNumber: string, token?: string) => Promise<void>;
53
+ /**
54
+ * @title: 清除服务端暂存
55
+ * @description:
56
+ * @param {string} orderId
57
+ * @return {*}
58
+ */
59
+ export declare const clearStashPayGroup: (orderId: string) => Promise<void>;
@@ -0,0 +1,87 @@
1
+ export declare const getPaymentList: (values: any) => Promise<{
2
+ message: string;
3
+ status: string;
4
+ paymentList?: undefined;
5
+ } | {
6
+ message: string;
7
+ status: string;
8
+ paymentList: any;
9
+ }>;
10
+ /**
11
+ * @title: 聚合接口, 根据订单 返回支付列表和钱包
12
+ * @description:
13
+ * @param {object} values
14
+ * @return {*}
15
+ * @Author: zhiwei.Wang
16
+ * @Date: 2024-08-15 11:52
17
+ */
18
+ export declare const getPaymentsAndWalletPass: (values: {
19
+ order_id: string;
20
+ total_amount: number;
21
+ sale_channel: string;
22
+ }) => Promise<any>;
23
+ /**
24
+ * @title: 初始化交易组
25
+ * @description:
26
+ * @param {object} values
27
+ * @return {*}
28
+ * @Author: zhiwei.Wang
29
+ * @Date: 2024-08-16 10:42
30
+ */
31
+ export declare const getPaymentInit: (values: {
32
+ order_id?: string;
33
+ amount?: number;
34
+ }) => Promise<any>;
35
+ /**
36
+ * @title: 获取钱包名称和弹窗状态
37
+ * @description:
38
+ * @param {object} values
39
+ * @return {*}
40
+ * @Author: shengjie.zuo
41
+ * @member: 马天宇
42
+ * @Date: 2025-02-21 10:42
43
+ */
44
+ export declare const getWalletNameAndPopupStatus: (values: {
45
+ setting_type?: string;
46
+ }) => Promise<{
47
+ wallet: {
48
+ name?: {
49
+ en: string;
50
+ 'zh-CN': string;
51
+ 'zh-HK': string;
52
+ 'ja': string;
53
+ 'pt': string;
54
+ };
55
+ };
56
+ wallet_setting: {
57
+ popup_status?: 1 | 0;
58
+ };
59
+ }>;
60
+ /**
61
+ * @title: 获取支付结果
62
+ * @description: 获取支付结果
63
+ */
64
+ export declare const getPaymentResult: (values: any) => Promise<any>;
65
+ /**
66
+ * @title: 检测订单是否有正在处理中的交易
67
+ * @param {object} values - { order_id: string }
68
+ * @return {Promise<{ has_pending: boolean }>}
69
+ */
70
+ export declare const checkPendingPayment: (values: {
71
+ order_id: string;
72
+ }) => Promise<{
73
+ has_pending: boolean;
74
+ }>;
75
+ /** `/h5/core/stash` 请求体 */
76
+ export interface CoreStashParams {
77
+ /** 缓存 key,由前端生成 */
78
+ token: string;
79
+ /** 暂存数据,如完整 PayGroup */
80
+ data: unknown;
81
+ /** 生命周期(秒),默认 86400(1 天) */
82
+ ttl?: number;
83
+ }
84
+ /**
85
+ * 调用服务端暂存接口,写入 payGroup 等数据。
86
+ */
87
+ export declare const postCoreStash: (params: CoreStashParams) => Promise<void>;
@@ -0,0 +1,65 @@
1
+ import { PayGroup } from "./model";
2
+ import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
3
+ /**
4
+ * 计算walletPass列表数据的总金额
5
+ * @param list
6
+ */
7
+ export declare const calcWalletPassListAmount: (list: any[]) => any;
8
+ /**
9
+ * 将walletPass列表数据转换为prepare_payments需要的数据格式
10
+ * @param list
11
+ */
12
+ export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
13
+ voucher_id: any;
14
+ amount: number;
15
+ tag: any;
16
+ }[];
17
+ /**
18
+ * walletPass支付params
19
+ * @param payGroup
20
+ */
21
+ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
22
+ order_id: string;
23
+ payment_group_id: number;
24
+ payments: {
25
+ amount: string;
26
+ wallet_pass_use_value: any;
27
+ voucher_id: any;
28
+ tag: any;
29
+ wallet_pass_usage_unit: any;
30
+ metadata: {
31
+ unique_payment_number: any;
32
+ };
33
+ }[];
34
+ };
35
+ /**
36
+ * @title: 获取是否walletPass和三方支付的组合支付
37
+ * @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
38
+ * @return: *
39
+ * @Author: shengjie.zuo
40
+ * @Date: 2024-08-30 10:06:17
41
+ */
42
+ export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
43
+ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
44
+ /**
45
+ * @title: 获取当前连锁加盟店铺shopid
46
+ * @description:
47
+ * @param {any} param1
48
+ * @return {*}
49
+ * @Author: chensheng.gu
50
+ * @Date: 2024-08-07 10:04
51
+ */
52
+ export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
53
+ export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
54
+ export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
55
+ export declare const clientPayment: (params: {
56
+ order_id: number;
57
+ type: "aliPay" | "wxPay" | 'google_pay';
58
+ values: any;
59
+ interaction?: any;
60
+ }) => void;
61
+ /**
62
+ * 获取唯一幂等token
63
+ * @returns
64
+ */
65
+ export declare const getUniqueIdempotencyToken: () => string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
3
  export default DateSectionCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const GenderField: (props: any) => JSX.Element;
2
3
  export default GenderField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface InfoProps {
2
3
  relation_id: any;
3
4
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItemPreview;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
3
4
  export default SelectResourcesTable;
@@ -0,0 +1,78 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.satisfy_any_condition': string;
4
+ 'pisell2.text.add': string;
5
+ 'pisell2.text.and': string;
6
+ 'pisell2.text.or': string;
7
+ 'pisell2.text.all': string;
8
+ 'pisell2.text.rule-setting.Contain': string;
9
+ 'pisell2.text.rule-setting.Exclude': string;
10
+ 'pisell2.text.rule-setting.order_type': string;
11
+ 'pisell2.text.rule-setting.sales_channel': string;
12
+ 'pisell2.text.rule-setting.staff': string;
13
+ 'pisell2.text.rule-setting.payment_method': string;
14
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
15
+ 'pisell2.text.rule-setting.current_device': string;
16
+ };
17
+ 'zh-CN': {
18
+ 'pisell2.text.satisfy_any_condition': string;
19
+ 'pisell2.text.and': string;
20
+ 'pisell2.text.or': string;
21
+ 'pisell2.text.all': string;
22
+ 'pisell2.text.add': string;
23
+ 'pisell2.text.rule-setting.Contain': string;
24
+ 'pisell2.text.rule-setting.Exclude': string;
25
+ 'pisell2.text.rule-setting.order_type': string;
26
+ 'pisell2.text.rule-setting.sales_channel': string;
27
+ 'pisell2.text.rule-setting.staff': string;
28
+ 'pisell2.text.rule-setting.payment_method': string;
29
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
30
+ 'pisell2.text.rule-setting.current_device': string;
31
+ };
32
+ 'zh-HK': {
33
+ 'pisell2.text.satisfy_any_condition': string;
34
+ 'pisell2.text.and': string;
35
+ 'pisell2.text.or': string;
36
+ 'pisell2.text.all': string;
37
+ 'pisell2.text.add': string;
38
+ 'pisell2.text.rule-setting.Contain': string;
39
+ 'pisell2.text.rule-setting.Exclude': string;
40
+ 'pisell2.text.rule-setting.order_type': string;
41
+ 'pisell2.text.rule-setting.sales_channel': string;
42
+ 'pisell2.text.rule-setting.staff': string;
43
+ 'pisell2.text.rule-setting.payment_method': string;
44
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
45
+ 'pisell2.text.rule-setting.current_device': string;
46
+ };
47
+ ja: {
48
+ 'pisell2.text.satisfy_any_condition': string;
49
+ 'pisell2.text.add': string;
50
+ 'pisell2.text.and': string;
51
+ 'pisell2.text.or': string;
52
+ 'pisell2.text.all': string;
53
+ 'pisell2.text.rule-setting.Contain': string;
54
+ 'pisell2.text.rule-setting.Exclude': string;
55
+ 'pisell2.text.rule-setting.order_type': string;
56
+ 'pisell2.text.rule-setting.sales_channel': string;
57
+ 'pisell2.text.rule-setting.staff': string;
58
+ 'pisell2.text.rule-setting.payment_method': string;
59
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
60
+ 'pisell2.text.rule-setting.current_device': string;
61
+ };
62
+ pt: {
63
+ 'pisell2.text.satisfy_any_condition': string;
64
+ 'pisell2.text.add': string;
65
+ 'pisell2.text.and': string;
66
+ 'pisell2.text.or': string;
67
+ 'pisell2.text.all': string;
68
+ 'pisell2.text.rule-setting.Contain': string;
69
+ 'pisell2.text.rule-setting.Exclude': string;
70
+ 'pisell2.text.rule-setting.order_type': string;
71
+ 'pisell2.text.rule-setting.sales_channel': string;
72
+ 'pisell2.text.rule-setting.staff': string;
73
+ 'pisell2.text.rule-setting.payment_method': string;
74
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
75
+ 'pisell2.text.rule-setting.current_device': string;
76
+ };
77
+ };
78
+ export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -9,6 +9,8 @@ interface CartProps {
9
9
  embedded?: boolean;
10
10
  confirmLoading?: boolean;
11
11
  extraContent?: React.ReactNode;
12
+ /** 视觉禁用:按钮仍会触发 onNext,由父级自行拦截(用于弹 toast 等反馈) */
13
+ disabled?: boolean;
12
14
  }
13
15
  export default function Cart(props: CartProps): JSX.Element | null;
14
16
  export {};
@@ -16,7 +16,6 @@ import { useScanOrderContext } from "../../context";
16
16
  import SubTotal from "../../../subTotal";
17
17
  import "./index.less";
18
18
  export default function Cart(props) {
19
- var _ref2, _ref3, _ref4, _summary$total_amount;
20
19
  var open = props.open,
21
20
  onCancel = props.onCancel,
22
21
  onNext = props.onNext,
@@ -26,10 +25,13 @@ export default function Cart(props) {
26
25
  embedded = _props$embedded === void 0 ? false : _props$embedded,
27
26
  _props$confirmLoading = props.confirmLoading,
28
27
  confirmLoading = _props$confirmLoading === void 0 ? false : _props$confirmLoading,
29
- extraContent = props.extraContent;
28
+ extraContent = props.extraContent,
29
+ _props$disabled = props.disabled,
30
+ disabled = _props$disabled === void 0 ? false : _props$disabled;
30
31
  var _useScanOrderContext = useScanOrderContext(),
31
32
  runModuleAction = _useScanOrderContext.runModuleAction,
32
- refreshViewModel = _useScanOrderContext.refreshViewModel;
33
+ refreshViewModel = _useScanOrderContext.refreshViewModel,
34
+ scanOrderModule = _useScanOrderContext.scanOrderModule;
33
35
  var isVisible = embedded || open;
34
36
  if (!isVisible) return null;
35
37
  var _useState = useState(null),
@@ -67,30 +69,49 @@ export default function Cart(props) {
67
69
  var isShowNote = useMemo(function () {
68
70
  return dineInConfig === null || dineInConfig === void 0 ? void 0 : dineInConfig['sale.allow_item_notes'];
69
71
  }, [dineInConfig]);
70
- var totalAmount = (_ref2 = (_ref3 = (_ref4 = (_summary$total_amount = summary === null || summary === void 0 ? void 0 : summary.total_amount) !== null && _summary$total_amount !== void 0 ? _summary$total_amount : summary === null || summary === void 0 ? void 0 : summary.expect_amount) !== null && _ref4 !== void 0 ? _ref4 : summary === null || summary === void 0 ? void 0 : summary.amount) !== null && _ref3 !== void 0 ? _ref3 : summary === null || summary === void 0 ? void 0 : summary.total) !== null && _ref2 !== void 0 ? _ref2 : '0.00';
72
+
73
+ /** 与 scanOrder Footer 同一套汇总字段与展示格式 */
74
+ var totalDisplayAmount = useMemo(function () {
75
+ var _ref2, _ref3, _ref4, _ref5, _ref6, _summary$total_amount;
76
+ var rawAmount = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_ref6 = (_summary$total_amount = summary === null || summary === void 0 ? void 0 : summary.total_amount) !== null && _summary$total_amount !== void 0 ? _summary$total_amount : summary === null || summary === void 0 ? void 0 : summary.expect_amount) !== null && _ref6 !== void 0 ? _ref6 : summary === null || summary === void 0 ? void 0 : summary.amount) !== null && _ref5 !== void 0 ? _ref5 : summary === null || summary === void 0 ? void 0 : summary.total) !== null && _ref4 !== void 0 ? _ref4 : summary === null || summary === void 0 ? void 0 : summary.totalAmount) !== null && _ref3 !== void 0 ? _ref3 : summary === null || summary === void 0 ? void 0 : summary.payable_amount) !== null && _ref2 !== void 0 ? _ref2 : 0;
77
+ var parsed = Number(rawAmount);
78
+ if (Number.isNaN(parsed)) return '0.00';
79
+ return parsed.toFixed(2);
80
+ }, [summary]);
71
81
  var confirmOrderText = String(locales.getText('pisell2.scan.order.action.confirm.order') || locales.getText('pisell2.event.confirm') || 'Confirm');
72
82
  var subTotalList = useMemo(function () {
73
- var _summary$product_amou, _summary$tax_fee, _ref5, _summary$total_amount2;
83
+ var _summary$product_amou, _summary$tax_fee, _ref7, _summary$total_amount2, _scanOrderModule$getT, _tempSummary$tax_rate, _ref8, _tempSummary$is_price;
74
84
  var subTotal = Number((_summary$product_amou = summary === null || summary === void 0 ? void 0 : summary.product_amount) !== null && _summary$product_amou !== void 0 ? _summary$product_amou : 0);
75
85
  var totalTaxFee = Number((_summary$tax_fee = summary === null || summary === void 0 ? void 0 : summary.tax_fee) !== null && _summary$tax_fee !== void 0 ? _summary$tax_fee : 0);
76
- var total = Number((_ref5 = (_summary$total_amount2 = summary === null || summary === void 0 ? void 0 : summary.total_amount) !== null && _summary$total_amount2 !== void 0 ? _summary$total_amount2 : summary === null || summary === void 0 ? void 0 : summary.expect_amount) !== null && _ref5 !== void 0 ? _ref5 : 0);
86
+ var total = Number((_ref7 = (_summary$total_amount2 = summary === null || summary === void 0 ? void 0 : summary.total_amount) !== null && _summary$total_amount2 !== void 0 ? _summary$total_amount2 : summary === null || summary === void 0 ? void 0 : summary.expect_amount) !== null && _ref7 !== void 0 ? _ref7 : 0);
87
+ var tempOrder = scanOrderModule === null || scanOrderModule === void 0 || (_scanOrderModule$getT = scanOrderModule.getTempOrder) === null || _scanOrderModule$getT === void 0 ? void 0 : _scanOrderModule$getT.call(scanOrderModule);
88
+ var tempSummary = (tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.summary) || {};
89
+ var taxTitle = String((tempSummary === null || tempSummary === void 0 ? void 0 : tempSummary.tax_title) || (summary === null || summary === void 0 ? void 0 : summary.tax_title) || 'GST/Tax');
90
+ var rawTaxRate = Number((_tempSummary$tax_rate = tempSummary === null || tempSummary === void 0 ? void 0 : tempSummary.tax_rate) !== null && _tempSummary$tax_rate !== void 0 ? _tempSummary$tax_rate : summary === null || summary === void 0 ? void 0 : summary.tax_rate);
91
+ var normalizedTaxRate = Number.isNaN(rawTaxRate) ? 0 : rawTaxRate > 1 ? rawTaxRate / 100 : rawTaxRate;
92
+ var isPriceIncludeTax = Boolean((_ref8 = (_tempSummary$is_price = tempSummary === null || tempSummary === void 0 ? void 0 : tempSummary.is_price_include_tax) !== null && _tempSummary$is_price !== void 0 ? _tempSummary$is_price : tempSummary === null || tempSummary === void 0 ? void 0 : tempSummary.isPriceIncludeTax) !== null && _ref8 !== void 0 ? _ref8 : summary === null || summary === void 0 ? void 0 : summary.is_price_include_tax);
77
93
  return [{
78
94
  key: 'sub_total',
79
95
  value: Number.isNaN(subTotal) ? 0 : subTotal
80
96
  }, {
81
97
  key: 'tax',
82
98
  value: Number.isNaN(totalTaxFee) ? 0 : totalTaxFee,
83
- hidden: Number.isNaN(totalTaxFee) ? true : totalTaxFee <= 0
99
+ hidden: Number.isNaN(totalTaxFee) ? true : totalTaxFee <= 0,
100
+ tax: {
101
+ title: taxTitle,
102
+ rate: normalizedTaxRate,
103
+ is_price_include_tax: isPriceIncludeTax
104
+ }
84
105
  }, {
85
106
  key: 'custom_total',
86
107
  value: Number.isNaN(total) ? 0 : total,
87
108
  label: locales.getText('pisell2.event.total'),
88
109
  bold: true
89
110
  }];
90
- }, [summary]);
111
+ }, [summary, scanOrderModule]);
91
112
  var handleCartChange = /*#__PURE__*/function () {
92
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item, type) {
93
- var _ref7, _item$product_id, _item$product_variant;
113
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item, type) {
114
+ var _ref10, _item$product_id, _item$product_variant;
94
115
  var productId, productVariantId, identityKey;
95
116
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
96
117
  while (1) switch (_context2.prev = _context2.next) {
@@ -101,7 +122,7 @@ export default function Cart(props) {
101
122
  }
102
123
  return _context2.abrupt("return");
103
124
  case 2:
104
- productId = (_ref7 = (_item$product_id = item === null || item === void 0 ? void 0 : item.product_id) !== null && _item$product_id !== void 0 ? _item$product_id : item === null || item === void 0 ? void 0 : item.id) !== null && _ref7 !== void 0 ? _ref7 : null;
125
+ productId = (_ref10 = (_item$product_id = item === null || item === void 0 ? void 0 : item.product_id) !== null && _item$product_id !== void 0 ? _item$product_id : item === null || item === void 0 ? void 0 : item.id) !== null && _ref10 !== void 0 ? _ref10 : null;
105
126
  productVariantId = Number((_item$product_variant = item === null || item === void 0 ? void 0 : item.product_variant_id) !== null && _item$product_variant !== void 0 ? _item$product_variant : 0);
106
127
  identityKey = (item === null || item === void 0 ? void 0 : item.identity_key) || (item === null || item === void 0 ? void 0 : item.rowKey) || undefined;
107
128
  if (!(productId === null && Number.isNaN(productVariantId))) {
@@ -137,16 +158,14 @@ export default function Cart(props) {
137
158
  }, _callee2, null, [[7, 14]]);
138
159
  }));
139
160
  return function handleCartChange(_x, _x2) {
140
- return _ref6.apply(this, arguments);
161
+ return _ref9.apply(this, arguments);
141
162
  };
142
163
  }();
143
164
  useEffect(function () {
144
165
  if (!isVisible) return;
145
166
  refreshViewModel();
146
167
  }, [isVisible]);
147
- var cartBodyContent = /*#__PURE__*/React.createElement("div", {
148
- className: "pisell-scan-order-cart-body"
149
- }, /*#__PURE__*/React.createElement(ShoppingCart, {
168
+ var cartLineItems = /*#__PURE__*/React.createElement(ShoppingCart, {
150
169
  productParams: {
151
170
  products: items || [],
152
171
  hideAddBtn: true,
@@ -163,7 +182,8 @@ export default function Cart(props) {
163
182
  isOpenGroup: false,
164
183
  isHideClearCart: true,
165
184
  onChange: handleCartChange
166
- }), /*#__PURE__*/React.createElement(SubTotal, {
185
+ });
186
+ var cartSubtotalSection = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubTotal, {
167
187
  list: subTotalList,
168
188
  style: {
169
189
  padding: 0
@@ -171,6 +191,9 @@ export default function Cart(props) {
171
191
  }), extraContent ? /*#__PURE__*/React.createElement("div", {
172
192
  className: "pisell-scan-order-cart-extra-content"
173
193
  }, extraContent) : null);
194
+ var cartBodyContent = /*#__PURE__*/React.createElement("div", {
195
+ className: "pisell-scan-order-cart-body"
196
+ }, cartLineItems, cartSubtotalSection);
174
197
  if (embedded) {
175
198
  return /*#__PURE__*/React.createElement(React.Fragment, null, cartBodyContent, /*#__PURE__*/React.createElement("div", {
176
199
  className: "pisell-scan-order-cart-embedded-footer"
@@ -178,7 +201,8 @@ export default function Cart(props) {
178
201
  type: "primary",
179
202
  block: true,
180
203
  onClick: onNext,
181
- loading: confirmLoading
204
+ loading: confirmLoading,
205
+ className: disabled ? 'pisell-scan-order-cart-embedded-confirm-disabled' : undefined
182
206
  }, confirmOrderText)));
183
207
  }
184
208
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -188,16 +212,26 @@ export default function Cart(props) {
188
212
  className: "pisell-scan-order-cart-drawer"
189
213
  }, /*#__PURE__*/React.createElement("div", {
190
214
  className: "pisell-scan-order-cart-header"
191
- }, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.cart')), /*#__PURE__*/React.createElement(Button, {
192
- type: "text",
193
- onClick: onCancel
194
- }, locales.getText('pisell2.event.close.continue'))), cartBodyContent, /*#__PURE__*/React.createElement("div", {
215
+ }, /*#__PURE__*/React.createElement("div", {
216
+ className: "pisell-scan-order-cart-sheet-handle-wrap",
217
+ "aria-hidden": true
218
+ }, /*#__PURE__*/React.createElement("div", {
219
+ className: "pisell-scan-order-cart-sheet-handle"
220
+ }))), /*#__PURE__*/React.createElement("div", {
221
+ className: "pisell-scan-order-cart-list-scroll"
222
+ }, cartLineItems), /*#__PURE__*/React.createElement("div", {
223
+ className: "pisell-scan-order-cart-bottom-panel"
224
+ }, cartSubtotalSection, /*#__PURE__*/React.createElement("div", {
195
225
  className: "pisell-scan-order-cart-footer"
196
226
  }, /*#__PURE__*/React.createElement("div", {
197
- className: "pisell-scan-order-cart-total"
198
- }, locales.getText('pisell2.event.total'), ": ", totalAmount), /*#__PURE__*/React.createElement(Button, {
227
+ className: "pisell-scan-order-cart-footer-total-col"
228
+ }, /*#__PURE__*/React.createElement("div", {
229
+ className: "pisell-scan-order-cart-footer-total-label"
230
+ }, locales.getText('pisell2.event.total')), /*#__PURE__*/React.createElement("div", {
231
+ className: "pisell-scan-order-cart-footer-total-amount"
232
+ }, "$", totalDisplayAmount)), /*#__PURE__*/React.createElement(Button, {
199
233
  type: "primary",
200
234
  onClick: onNext,
201
235
  loading: confirmLoading
202
- }, locales.getText('pisell2.event.continue')))));
236
+ }, locales.getText('pisell2.event.continue'))))));
203
237
  }
@@ -11,19 +11,51 @@
11
11
  right: 0;
12
12
  bottom: 0;
13
13
  z-index: 91;
14
- max-height: 70vh;
15
- border-radius: 16px 16px 0 0;
14
+ max-height: 95vh;
15
+ max-height: 95dvh;
16
+ min-height: 0;
17
+ border-radius: 12px 12px 0 0;
16
18
  background: #fff;
17
19
  display: flex;
18
20
  flex-direction: column;
21
+ overflow: hidden;
22
+ box-shadow: 0 -8px 40px rgba(16, 24, 40, 0.12);
19
23
  }
20
24
 
25
+ /* 顶栏仅保留居中拖动手柄横线 */
21
26
  .pisell-scan-order-cart-header {
27
+ flex-shrink: 0;
28
+ padding: 0;
29
+ }
30
+
31
+ .pisell-scan-order-cart-sheet-handle-wrap {
32
+ width: 100%;
22
33
  display: flex;
23
- justify-content: space-between;
34
+ justify-content: center;
24
35
  align-items: center;
25
- padding: 16px;
26
- border-bottom: 1px solid #eaecf0;
36
+ padding: 10px 0 8px;
37
+ }
38
+
39
+ .pisell-scan-order-cart-sheet-handle {
40
+ width: 36px;
41
+ height: 5px;
42
+ border-radius: 100px;
43
+ background: #d0d5dd;
44
+ }
45
+
46
+ .pisell-scan-order-cart-list-scroll {
47
+ flex: 1;
48
+ min-height: 0;
49
+ overflow-y: auto;
50
+ -webkit-overflow-scrolling: touch;
51
+ padding: 8px 16px 12px;
52
+ }
53
+
54
+ .pisell-scan-order-cart-bottom-panel {
55
+ flex-shrink: 0;
56
+ border-top: 1px solid #eaecf0;
57
+ background: #fff;
58
+ padding: 12px 16px 0;
27
59
  }
28
60
 
29
61
  .pisell-scan-order-cart-body {
@@ -49,14 +81,30 @@
49
81
  justify-content: space-between;
50
82
  align-items: center;
51
83
  gap: 12px;
52
- padding: 12px 16px 20px;
84
+ margin-top: 12px;
85
+ padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
53
86
  border-top: 1px solid #eaecf0;
54
87
  }
55
88
 
56
- .pisell-scan-order-cart-total {
89
+ /* 与 pisell-scan-order-footer 左侧合计样式一致 */
90
+ .pisell-scan-order-cart-footer-total-col {
91
+ display: flex;
92
+ flex-direction: column;
93
+ justify-content: center;
94
+ min-width: 0;
95
+ }
96
+
97
+ .pisell-scan-order-cart-footer-total-label {
57
98
  color: #101828;
58
99
  font-size: 14px;
59
- font-weight: 500;
100
+ line-height: 20px;
101
+ }
102
+
103
+ .pisell-scan-order-cart-footer-total-amount {
104
+ color: #e77d75;
105
+ font-size: 24px;
106
+ font-weight: 600;
107
+ line-height: 1;
60
108
  }
61
109
 
62
110
  .pisell-scan-order-cart-embedded-footer {
@@ -65,6 +113,11 @@
65
113
  background: #fff;
66
114
  }
67
115
 
116
+ .pisell-scan-order-cart-embedded-confirm-disabled {
117
+ opacity: 0.45;
118
+ cursor: not-allowed;
119
+ }
120
+
68
121
  .pisell-scan-order-content-mobile-wrap {
69
122
  .pisell-scan-order-cart-body {
70
123
  padding-bottom: 96px;