@pisell/private-materials 6.7.8 → 6.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
  12. package/es/components/booking/addons/index.js +25 -17
  13. package/es/components/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/footer/amount.d.ts +1 -0
  15. package/es/components/booking/components/footer/amount.js +548 -84
  16. package/es/components/booking/components/footer/index.js +77 -56
  17. package/es/components/booking/components/footer/utils.d.ts +19 -0
  18. package/es/components/booking/components/footer/utils.js +194 -73
  19. package/es/components/booking/components/voucher/index.js +23 -7
  20. package/es/components/booking/forms/model.d.ts +10 -1
  21. package/es/components/booking/hooks/useQuotation.js +4 -1
  22. package/es/components/booking/info/model.d.ts +10 -1
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service2/utils.js +1 -0
  25. package/es/components/booking/info2/cartClientCard/index.js +30 -6
  26. package/es/components/booking/info2/index.js +1 -1
  27. package/es/components/booking/info2/service/addService/index.js +2 -3
  28. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  29. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  30. package/es/components/booking/info2/service/editService/index.js +16 -6
  31. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  32. package/es/components/booking/info2/service/editService/utils.js +66 -0
  33. package/es/components/booking/model.d.ts +9 -1
  34. package/es/components/booking/notes/model.d.ts +10 -1
  35. package/es/components/booking/payments/model.d.ts +10 -1
  36. package/es/components/booking/utils.d.ts +1 -0
  37. package/es/components/booking/utils.js +16 -3
  38. package/es/components/checkout/PaymentModal.d.ts +13 -5
  39. package/es/components/checkout/PaymentModal.js +304 -252
  40. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  41. package/es/components/checkout/components/AdditionalModule/index.js +52 -12
  42. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  43. package/es/components/checkout/components/AmountSummary/index.less +5 -6
  44. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  45. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  46. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  47. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  48. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  49. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  50. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  51. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  52. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  53. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  54. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  55. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  56. package/es/components/checkout/components/SearchAndClientModule/index.js +39 -40
  57. package/es/components/checkout/hooks/useWalletPass.js +1 -1
  58. package/es/components/checkout/index.less +1 -1
  59. package/es/components/checkout/locales.d.ts +6 -0
  60. package/es/components/checkout/locales.js +6 -0
  61. package/es/components/checkout/plugin.d.ts +2 -0
  62. package/es/components/checkout/plugin.js +303 -0
  63. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  64. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  65. package/es/components/eftposPay/hooks.d.ts +1 -1
  66. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  67. package/es/components/eftposPay/payo/config.js +70 -32
  68. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  69. package/es/components/eftposPay/payo/payment.js +579 -0
  70. package/es/components/eftposPay/store/index.d.ts +4 -4
  71. package/es/components/eftposPay/tyro/index.js +12 -0
  72. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  73. package/es/components/eftposPay/utils/log/index.js +371 -0
  74. package/es/components/index.d.ts +2 -1
  75. package/es/components/index.js +2 -1
  76. package/es/components/list/List.js +99 -56
  77. package/es/components/list/hooks/useListState.d.ts +5 -3
  78. package/es/components/list/hooks/useListState.js +10 -2
  79. package/es/components/list/styles/base.less +4 -0
  80. package/es/components/list/styles/content.less +1 -1
  81. package/es/components/list/styles/header.less +4 -4
  82. package/es/components/list/types.d.ts +1 -0
  83. package/es/components/list/utils/index.d.ts +13 -1
  84. package/es/components/list/utils/index.js +43 -1
  85. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  86. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  87. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  88. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  89. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  90. package/es/components/pay/toC/index.js +7 -4
  91. package/es/components/pay/toC/locales.d.ts +3 -0
  92. package/es/components/pay/toC/locales.js +6 -3
  93. package/es/components/pay/toC/model.d.ts +9 -1
  94. package/es/components/pay/toC/status.d.ts +1 -0
  95. package/es/components/pay/toC/status.js +3 -0
  96. package/es/components/schedules/model.d.ts +9 -1
  97. package/es/components/subTotal/index.js +1 -1
  98. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  99. package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
  100. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  101. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  102. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  103. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  104. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  105. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  106. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  107. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  108. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  109. package/es/components/systemSettings/registry/components/index.js +4 -0
  110. package/es/components/systemSettings/registry/index.d.ts +5 -0
  111. package/es/components/systemSettings/registry/index.js +1059 -0
  112. package/es/components/systemSettings/registry/index.less +410 -0
  113. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  114. package/es/components/systemSettings/registry/locales.js +300 -0
  115. package/es/components/systemSettings/registry/services.d.ts +77 -0
  116. package/es/components/systemSettings/registry/services.js +472 -0
  117. package/es/components/systemSettings/registry/types.d.ts +126 -0
  118. package/es/components/systemSettings/registry/types.js +1 -0
  119. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  120. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  121. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  122. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  123. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +58 -11
  124. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
  125. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
  126. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +149 -36
  127. package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
  128. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  129. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  130. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  131. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  132. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
  133. package/es/components/ticketBooking/locales.d.ts +9 -0
  134. package/es/components/ticketBooking/locales.js +12 -3
  135. package/es/components/ticketBooking/utils/index.d.ts +3 -0
  136. package/es/components/ticketBooking/utils/index.js +36 -13
  137. package/es/components/wallet/Detail/index.js +34 -2
  138. package/es/components/wallet/Detail/index.less +11 -0
  139. package/es/components/wallet/Detail/locales.d.ts +6 -0
  140. package/es/components/wallet/Detail/locales.js +14 -2
  141. package/es/components/wallet/Detail/model.d.ts +13 -1
  142. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  143. package/es/components/wallet/PointCard/model.d.ts +13 -1
  144. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  145. package/es/components/wallet/Voucher/index.js +11 -10
  146. package/es/components/wallet/Voucher/model.d.ts +13 -1
  147. package/es/components/wallet/components/WalletCard.js +5 -1
  148. package/es/components/wallet/index.js +4 -2
  149. package/es/components/wallet/model.d.ts +9 -1
  150. package/es/components/wallet/serve.d.ts +7 -0
  151. package/es/components/wallet/utils.d.ts +48 -0
  152. package/es/components/wallet/utils.js +342 -0
  153. package/es/index.d.ts +5 -0
  154. package/es/index.js +6 -1
  155. package/es/plus/clientCard/locales.js +3 -3
  156. package/es/plus/clinetSearch/index.js +28 -30
  157. package/es/plus/clinetSearch/locales.d.ts +3 -0
  158. package/es/plus/clinetSearch/locales.js +7 -4
  159. package/es/plus/clinetSearch/types.d.ts +12 -0
  160. package/es/plus/productSelect/CategoryTabs/index.d.ts +1 -0
  161. package/es/plus/productSelect/CategoryTabs/index.js +2 -1
  162. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  163. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  164. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  165. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  166. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  167. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  168. package/es/plus/walletPassGallery/index.js +7 -3
  169. package/es/plus/walletPassGallery/serve.d.ts +3 -0
  170. package/es/plus/walletPassGallery/serve.js +4 -2
  171. package/es/pro/Login2.0/index.less +15 -8
  172. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  173. package/es/pro/Selector/BatchSelectorDemo.js +470 -0
  174. package/es/pro/Selector/Selector.d.ts +5 -0
  175. package/es/pro/Selector/Selector.js +283 -0
  176. package/es/pro/Selector/SelectorGroup.d.ts +11 -0
  177. package/es/pro/Selector/SelectorGroup.js +537 -0
  178. package/es/pro/Selector/components/Card/index.d.ts +27 -0
  179. package/es/pro/Selector/components/Card/index.js +96 -0
  180. package/es/pro/Selector/components/Card/index.less +132 -0
  181. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  182. package/es/pro/Selector/components/IntersectionObserver.js +384 -0
  183. package/es/pro/Selector/components/NumericStepper/index.d.ts +41 -0
  184. package/es/pro/Selector/components/NumericStepper/index.js +198 -0
  185. package/es/pro/Selector/components/NumericStepper/index.less +221 -0
  186. package/es/pro/Selector/components/index.d.ts +2 -0
  187. package/es/pro/Selector/components/index.js +2 -0
  188. package/es/pro/Selector/demo.d.ts +3 -0
  189. package/es/pro/Selector/demo.js +158 -0
  190. package/es/pro/Selector/hooks/useSelectionController.d.ts +42 -0
  191. package/es/pro/Selector/hooks/useSelectionController.js +414 -0
  192. package/es/pro/Selector/index.d.ts +8 -0
  193. package/es/pro/Selector/index.js +5 -0
  194. package/es/pro/Selector/locales.d.ts +42 -0
  195. package/es/pro/Selector/locales.js +80 -0
  196. package/es/pro/Selector/selector.less +3 -0
  197. package/es/pro/Selector/selectorGroup.less +8 -0
  198. package/es/pro/Selector/types.d.ts +114 -0
  199. package/es/pro/Selector/types.js +1 -0
  200. package/es/pro/Selector/utils/index.d.ts +49 -0
  201. package/es/pro/Selector/utils/index.js +229 -0
  202. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  203. package/es/pro/comprehensiveSearch/locales.js +1 -1
  204. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
  205. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  206. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  207. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  208. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  209. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  210. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  211. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  212. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  213. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  214. package/lib/components/booking/addons/index.js +15 -7
  215. package/lib/components/booking/addons/model.d.ts +10 -1
  216. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  217. package/lib/components/booking/components/footer/amount.js +293 -41
  218. package/lib/components/booking/components/footer/index.js +30 -11
  219. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  220. package/lib/components/booking/components/footer/utils.js +138 -41
  221. package/lib/components/booking/components/voucher/index.js +25 -9
  222. package/lib/components/booking/forms/model.d.ts +10 -1
  223. package/lib/components/booking/hooks/useQuotation.js +2 -1
  224. package/lib/components/booking/info/model.d.ts +10 -1
  225. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  226. package/lib/components/booking/info/service2/utils.js +1 -0
  227. package/lib/components/booking/info2/cartClientCard/index.js +25 -5
  228. package/lib/components/booking/info2/index.js +7 -2
  229. package/lib/components/booking/info2/service/addService/index.js +1 -2
  230. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  231. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  232. package/lib/components/booking/info2/service/editService/index.js +12 -3
  233. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  234. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  235. package/lib/components/booking/model.d.ts +9 -1
  236. package/lib/components/booking/notes/model.d.ts +10 -1
  237. package/lib/components/booking/payments/model.d.ts +10 -1
  238. package/lib/components/booking/utils.d.ts +1 -0
  239. package/lib/components/booking/utils.js +11 -0
  240. package/lib/components/checkout/PaymentModal.d.ts +13 -5
  241. package/lib/components/checkout/PaymentModal.js +190 -147
  242. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  243. package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
  244. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  245. package/lib/components/checkout/components/AmountSummary/index.less +5 -6
  246. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  247. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  248. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  249. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  250. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  251. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  252. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  253. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  254. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  255. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  256. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  257. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  258. package/lib/components/checkout/components/SearchAndClientModule/index.js +29 -3
  259. package/lib/components/checkout/hooks/useWalletPass.js +1 -1
  260. package/lib/components/checkout/index.less +1 -1
  261. package/lib/components/checkout/locales.d.ts +6 -0
  262. package/lib/components/checkout/locales.js +6 -0
  263. package/lib/components/checkout/plugin.d.ts +2 -0
  264. package/lib/components/checkout/plugin.js +263 -0
  265. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  266. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  267. package/lib/components/eftposPay/hooks.d.ts +1 -1
  268. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  269. package/lib/components/eftposPay/payo/config.js +98 -73
  270. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  271. package/lib/components/eftposPay/payo/payment.js +357 -0
  272. package/lib/components/eftposPay/store/index.d.ts +4 -4
  273. package/lib/components/eftposPay/tyro/index.js +12 -0
  274. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  275. package/lib/components/eftposPay/utils/log/index.js +294 -0
  276. package/lib/components/index.d.ts +2 -1
  277. package/lib/components/index.js +3 -0
  278. package/lib/components/list/List.js +58 -36
  279. package/lib/components/list/hooks/useListState.d.ts +5 -3
  280. package/lib/components/list/hooks/useListState.js +9 -1
  281. package/lib/components/list/styles/base.less +4 -0
  282. package/lib/components/list/styles/content.less +1 -1
  283. package/lib/components/list/styles/header.less +4 -4
  284. package/lib/components/list/types.d.ts +1 -0
  285. package/lib/components/list/utils/index.d.ts +13 -1
  286. package/lib/components/list/utils/index.js +27 -0
  287. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  288. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  289. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  290. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  291. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  292. package/lib/components/pay/toC/index.js +4 -1
  293. package/lib/components/pay/toC/locales.d.ts +3 -0
  294. package/lib/components/pay/toC/locales.js +6 -3
  295. package/lib/components/pay/toC/model.d.ts +9 -1
  296. package/lib/components/pay/toC/status.d.ts +1 -0
  297. package/lib/components/pay/toC/status.js +5 -0
  298. package/lib/components/schedules/model.d.ts +9 -1
  299. package/lib/components/subTotal/index.js +1 -1
  300. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  301. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  302. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  303. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  304. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  305. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  306. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  307. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  308. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  309. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  310. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  311. package/lib/components/systemSettings/registry/components/index.js +48 -0
  312. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  313. package/lib/components/systemSettings/registry/index.js +529 -0
  314. package/lib/components/systemSettings/registry/index.less +410 -0
  315. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  316. package/lib/components/systemSettings/registry/locales.js +324 -0
  317. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  318. package/lib/components/systemSettings/registry/services.js +290 -0
  319. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  320. package/lib/components/systemSettings/registry/types.js +17 -0
  321. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  322. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  323. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  324. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  325. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +40 -5
  326. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
  327. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
  328. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +93 -24
  329. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  330. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  331. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  332. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  333. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  334. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
  335. package/lib/components/ticketBooking/locales.d.ts +9 -0
  336. package/lib/components/ticketBooking/locales.js +12 -3
  337. package/lib/components/ticketBooking/utils/index.d.ts +3 -0
  338. package/lib/components/ticketBooking/utils/index.js +20 -6
  339. package/lib/components/wallet/Detail/index.js +31 -3
  340. package/lib/components/wallet/Detail/index.less +11 -0
  341. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  342. package/lib/components/wallet/Detail/locales.js +14 -2
  343. package/lib/components/wallet/Detail/model.d.ts +13 -1
  344. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  345. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  346. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  347. package/lib/components/wallet/Voucher/index.js +8 -8
  348. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  349. package/lib/components/wallet/components/WalletCard.js +4 -0
  350. package/lib/components/wallet/index.js +2 -2
  351. package/lib/components/wallet/model.d.ts +9 -1
  352. package/lib/components/wallet/serve.d.ts +7 -0
  353. package/lib/components/wallet/utils.d.ts +48 -0
  354. package/lib/components/wallet/utils.js +287 -0
  355. package/lib/index.d.ts +5 -0
  356. package/lib/index.js +15 -0
  357. package/lib/plus/clientCard/locales.js +3 -3
  358. package/lib/plus/clinetSearch/index.js +17 -8
  359. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  360. package/lib/plus/clinetSearch/locales.js +7 -4
  361. package/lib/plus/clinetSearch/types.d.ts +12 -0
  362. package/lib/plus/productSelect/CategoryTabs/index.d.ts +1 -0
  363. package/lib/plus/productSelect/CategoryTabs/index.js +2 -1
  364. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  365. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  366. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  367. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  368. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  369. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  370. package/lib/plus/walletPassGallery/index.js +7 -3
  371. package/lib/plus/walletPassGallery/serve.d.ts +3 -0
  372. package/lib/plus/walletPassGallery/serve.js +3 -2
  373. package/lib/pro/Login2.0/index.less +15 -8
  374. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  375. package/lib/pro/Selector/BatchSelectorDemo.js +376 -0
  376. package/lib/pro/Selector/Selector.d.ts +5 -0
  377. package/lib/pro/Selector/Selector.js +264 -0
  378. package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
  379. package/lib/pro/Selector/SelectorGroup.js +463 -0
  380. package/lib/pro/Selector/components/Card/index.d.ts +27 -0
  381. package/lib/pro/Selector/components/Card/index.js +114 -0
  382. package/lib/pro/Selector/components/Card/index.less +132 -0
  383. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  384. package/lib/pro/Selector/components/IntersectionObserver.js +281 -0
  385. package/lib/pro/Selector/components/NumericStepper/index.d.ts +41 -0
  386. package/lib/pro/Selector/components/NumericStepper/index.js +221 -0
  387. package/lib/pro/Selector/components/NumericStepper/index.less +221 -0
  388. package/lib/pro/Selector/components/index.d.ts +2 -0
  389. package/lib/pro/Selector/components/index.js +42 -0
  390. package/lib/pro/Selector/demo.d.ts +3 -0
  391. package/lib/pro/Selector/demo.js +102 -0
  392. package/lib/pro/Selector/hooks/useSelectionController.d.ts +42 -0
  393. package/lib/pro/Selector/hooks/useSelectionController.js +338 -0
  394. package/lib/pro/Selector/index.d.ts +8 -0
  395. package/lib/pro/Selector/index.js +39 -0
  396. package/lib/pro/Selector/locales.d.ts +42 -0
  397. package/lib/pro/Selector/locales.js +80 -0
  398. package/lib/pro/Selector/selector.less +3 -0
  399. package/lib/pro/Selector/selectorGroup.less +8 -0
  400. package/lib/pro/Selector/types.d.ts +114 -0
  401. package/lib/pro/Selector/types.js +17 -0
  402. package/lib/pro/Selector/utils/index.d.ts +49 -0
  403. package/lib/pro/Selector/utils/index.js +221 -0
  404. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  405. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  406. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
  407. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  408. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  409. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  410. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  411. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  412. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  413. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  414. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  415. package/lowcode/payment-modal/meta.ts +135 -0
  416. package/lowcode/selector/meta.ts +352 -0
  417. package/lowcode/selector.group/meta.ts +200 -0
  418. package/lowcode/settings-registry/meta.ts +29 -0
  419. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  420. package/package.json +3 -3
  421. package/es/components/checkout/PaymentPlugin.d.ts +0 -3
  422. package/lib/components/checkout/PaymentPlugin.d.ts +0 -3
  423. package/lib/components/checkout/PaymentPlugin.js +0 -181
@@ -1,83 +1,38 @@
1
1
  .pisell-wallet-pass-gallery_footer {
2
2
  position: relative;
3
- left: 0;
4
- right: 0;
5
- bottom: 0;
6
3
  background-color: #fff;
7
4
  padding: 24px;
8
5
  z-index: 100;
9
6
  border-top: 1px solid #d0d5de;
10
- margin-left: -20px;
11
- margin-right: -20px;
7
+ margin-left: -24px;
8
+ margin-right: -24px;
12
9
  &-buttons {
13
10
  display: flex;
14
11
  gap: 12px;
15
12
  width: 100%;
16
13
 
17
-
18
- .pisell-wallet-pass-gallery_footer-buttons-item-secondary{
19
- overflow: hidden;
20
- display: flex;
21
- >span{
22
- display: block;
23
- // width: 100%;
24
- flex:1;
14
+ .pisell-wallet-pass-gallery_footer-buttons-item-secondary {
15
+ overflow: hidden;
16
+ display: inline-block;
25
17
  white-space: nowrap;
26
18
  overflow: hidden;
27
19
  text-overflow: ellipsis;
28
20
  text-wrap: nowrap;
29
- }
30
- }
31
-
32
-
33
- // 按钮数量样式
34
- // 单个按钮占满宽度
35
- &-count-1 {
36
- .pisell-wallet-pass-gallery_footer-buttons-item {
37
- flex: 1;
38
- width: 100%;
39
- }
40
- }
41
-
42
- // 两个按钮各占一半
43
- &-count-2 {
44
- .pisell-wallet-pass-gallery_footer-buttons-item {
45
- flex: 1;
46
- width: calc(50% - 6px);
21
+ > span {
22
+ display: inline;
47
23
  }
48
24
  }
49
-
50
- // 三个按钮各占三分之一
51
- &-count-3 {
52
- .pisell-wallet-pass-gallery_footer-buttons-item {
53
- flex: 1;
54
- width: calc(33.33% - 8px);
55
- }
56
- }
57
-
58
- // 四个按钮各占四分之一
59
- &-count-4 {
60
- .pisell-wallet-pass-gallery_footer-buttons-item {
61
- flex: 1;
62
- width: calc(25% - 9px);
63
- }
64
- }
65
-
66
- // Ant Design按钮覆盖样式
67
- :global(.ant-btn) {
68
- height: 48px;
69
- border-radius: 6px;
70
- font-size: 16px;
71
- font-weight: 500;
72
- width: 100%;
25
+
26
+ .pisell-wallet-pass-gallery_footer-buttons-item {
27
+ flex-grow: 1;
73
28
  }
74
-
29
+
75
30
  &-item {
76
31
  // 修饰符:主按钮
77
32
  &-primary {
78
- background-color: var(--theme-color, #7F56D9);
33
+ background-color: var(--theme-color, #7f56d9);
79
34
  }
80
-
35
+
81
36
  // 修饰符:次按钮
82
37
  &-secondary {
83
38
  background-color: #fff;
@@ -90,4 +45,4 @@
90
45
 
91
46
  .pisell-wallet-pass-gallery_footer:empty {
92
47
  display: none;
93
- }
48
+ }
@@ -4,6 +4,7 @@ interface PassDetailProps {
4
4
  dataSource?: any | null;
5
5
  platform?: 'pc' | 'h5';
6
6
  buttonGroupList?: any[][];
7
+ showTimeLine?: boolean;
7
8
  }
8
9
  declare const PassDetail: (props: PassDetailProps) => React.JSX.Element | null;
9
10
  export default PassDetail;
@@ -1,3 +1,7 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -20,16 +24,20 @@ import Recharge from "../recharge";
20
24
  import FooterButtons from "../footerButton";
21
25
  import useEngineContext from "../../../../hooks/useEngineContext";
22
26
  import "./index.less";
27
+ import { formatScheduleText } from "../../../../components/wallet/utils";
28
+ import localeTexts from "../../locales";
29
+ import { request } from "../../../../utils";
23
30
  var Text = Typography.Text;
24
31
  var PassDetail = function PassDetail(props) {
25
- var _context$appHelper, _store$getState, _dataSource$machineco, _getDetail$data, _getDetail$data2, _dataSource$machineco2;
26
- if (!props.dataSource) return null;
32
+ var _context$appHelper, _context$appHelper2, _store$getState, _context$engine, _context$appHelper3, _dataSource$machineco, _getDetail$data, _getDetail$data2, _dataSource$machineco2;
27
33
  var _usePisellConfig = usePisellConfig(),
28
34
  _usePisellConfig$symb = _usePisellConfig.symbol,
29
35
  symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
30
36
  var dataSource = props.dataSource,
31
37
  _props$platform = props.platform,
32
- platform = _props$platform === void 0 ? 'pc' : _props$platform;
38
+ platform = _props$platform === void 0 ? 'pc' : _props$platform,
39
+ _props$showTimeLine = props.showTimeLine,
40
+ showTimeLine = _props$showTimeLine === void 0 ? true : _props$showTimeLine;
33
41
  var _useState = useState('detail'),
34
42
  _useState2 = _slicedToArray(_useState, 2),
35
43
  activeKey = _useState2[0],
@@ -47,38 +55,54 @@ var PassDetail = function PassDetail(props) {
47
55
  store: {}
48
56
  },
49
57
  store = _ref.store;
50
- var timezone = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.symbol) === null || _store$getState === void 0 ? void 0 : _store$getState.shop.timezone) || 'Asia/Shanghai';
51
- var _ref2 = dataSource || {},
52
- _ref2$id = _ref2.id,
53
- id = _ref2$id === void 0 ? '' : _ref2$id,
54
- _ref2$code = _ref2.code,
55
- code = _ref2$code === void 0 ? '' : _ref2$code,
56
- _ref2$tag = _ref2.tag,
57
- tag = _ref2$tag === void 0 ? '' : _ref2$tag,
58
- _ref2$product_title = _ref2.product_title,
59
- product_title = _ref2$product_title === void 0 ? '' : _ref2$product_title,
60
- _ref2$encoded = _ref2.encoded,
61
- encoded = _ref2$encoded === void 0 ? '' : _ref2$encoded,
62
- balance = _ref2.balance,
63
- _ref2$expire_date = _ref2.expire_date,
64
- expire_date = _ref2$expire_date === void 0 ? '' : _ref2$expire_date,
65
- _ref2$product = _ref2.product,
66
- product = _ref2$product === void 0 ? {} : _ref2$product;
67
- var _ref3 = product || {},
68
- _ref3$description = _ref3.description,
69
- description = _ref3$description === void 0 ? '' : _ref3$description,
70
- _ref3$extension_data = _ref3.extension_data,
71
- extension_data = _ref3$extension_data === void 0 ? [] : _ref3$extension_data,
72
- _ref3$customer_order_ = _ref3.customer_order_behavior_count,
73
- customer_order_behavior_count = _ref3$customer_order_ === void 0 ? 0 : _ref3$customer_order_;
58
+ var _ref2 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants) || {
59
+ apiPrefix: "/h5"
60
+ },
61
+ apiPrefix = _ref2.apiPrefix;
62
+ var timezone = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.symbol) === null || _store$getState === void 0 || (_store$getState = _store$getState.shop) === null || _store$getState === void 0 ? void 0 : _store$getState.timezone) || 'Asia/Shanghai';
63
+ locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en');
64
+ if ((_context$appHelper3 = context.appHelper) !== null && _context$appHelper3 !== void 0 && (_context$appHelper3 = _context$appHelper3.utils) !== null && _context$appHelper3 !== void 0 && _context$appHelper3.request) {
65
+ var _context$appHelper4;
66
+ request.setRequest((_context$appHelper4 = context.appHelper) === null || _context$appHelper4 === void 0 || (_context$appHelper4 = _context$appHelper4.utils) === null || _context$appHelper4 === void 0 ? void 0 : _context$appHelper4.request);
67
+ }
68
+ var _ref3 = dataSource || {},
69
+ _ref3$id = _ref3.id,
70
+ id = _ref3$id === void 0 ? '' : _ref3$id,
71
+ _ref3$code = _ref3.code,
72
+ code = _ref3$code === void 0 ? '' : _ref3$code,
73
+ _ref3$tag = _ref3.tag,
74
+ tag = _ref3$tag === void 0 ? '' : _ref3$tag,
75
+ _ref3$product_title = _ref3.product_title,
76
+ product_title = _ref3$product_title === void 0 ? '' : _ref3$product_title,
77
+ _ref3$encoded = _ref3.encoded,
78
+ encoded = _ref3$encoded === void 0 ? '' : _ref3$encoded,
79
+ balance = _ref3.balance,
80
+ _ref3$expire_date = _ref3.expire_date,
81
+ expire_date = _ref3$expire_date === void 0 ? '' : _ref3$expire_date,
82
+ _ref3$product = _ref3.product,
83
+ product = _ref3$product === void 0 ? {} : _ref3$product,
84
+ custom_schedule_snapshot = _ref3.custom_schedule_snapshot,
85
+ customer_id = _ref3.customer_id;
86
+ var _ref4 = product || {},
87
+ _ref4$description = _ref4.description,
88
+ description = _ref4$description === void 0 ? '' : _ref4$description,
89
+ _ref4$extension_data = _ref4.extension_data,
90
+ extension_data = _ref4$extension_data === void 0 ? [] : _ref4$extension_data,
91
+ _ref4$customer_order_ = _ref4.customer_order_behavior_count,
92
+ customer_order_behavior_count = _ref4$customer_order_ === void 0 ? 0 : _ref4$customer_order_;
74
93
  var _getDetail = useRequest(function () {
75
94
  return getDetailApi({
76
- id: id
95
+ id: id,
96
+ apiPrefix: apiPrefix,
97
+ order_behavior_count_customer_id: customer_id
77
98
  });
78
99
  }, {
79
100
  ready: !!id,
80
- refreshDeps: [id]
101
+ refreshDeps: [id, customer_id]
81
102
  });
103
+ var scheduleList = useMemo(function () {
104
+ return (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [];
105
+ }, [custom_schedule_snapshot]);
82
106
  useEffect(function () {
83
107
  if (tag === 'product_discount_card') {
84
108
  setActiveKey('detail');
@@ -113,6 +137,33 @@ var PassDetail = function PassDetail(props) {
113
137
  };
114
138
  }, []);
115
139
  var descs = useMemo(function () {
140
+ var _context$engine2;
141
+ var detail = formatScheduleText(scheduleList, context === null || context === void 0 || (_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.locale);
142
+ var expireText = expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate');
143
+ if (scheduleList.length > 0) {
144
+ // 换行展示
145
+ var validityTexts = "";
146
+ var excludedText = "";
147
+ var includedText = "";
148
+ detail.forEach(function (item) {
149
+ if (item.validityTexts.length > 0) {
150
+ validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
151
+ }
152
+ if (item.excluded_date.length > 0) {
153
+ excludedText = "".concat(excludedText).concat(item.excluded_date.join('\n'), "\n");
154
+ }
155
+ if (item.included_date.length > 0) {
156
+ includedText = "".concat(includedText).concat(item.included_date.join('\n'), "\n");
157
+ }
158
+ });
159
+ expireText = /*#__PURE__*/React.createElement("span", {
160
+ className: "wallet-detail-expire-text"
161
+ }, validityTexts, excludedText && /*#__PURE__*/React.createElement("div", {
162
+ className: "wallet-detail-expire-text-title"
163
+ }, locales.getText('page.wallet.notValidDate')), excludedText, includedText && /*#__PURE__*/React.createElement("div", {
164
+ className: "wallet-detail-expire-text-title"
165
+ }, locales.getText('page.wallet.includedDate')), includedText);
166
+ }
116
167
  var data = [{
117
168
  label: locales.getText('wallet-pass-gallery.cardName'),
118
169
  value: product_title
@@ -122,7 +173,7 @@ var PassDetail = function PassDetail(props) {
122
173
  isLink: false
123
174
  }, {
124
175
  label: locales.getText('wallet-pass-gallery.validDate'),
125
- value: expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate')
176
+ value: expireText
126
177
  }];
127
178
  //折扣卡显示折扣字段 其他显示余额字段
128
179
  if (tag === 'product_discount_card') {
@@ -191,14 +242,16 @@ var PassDetail = function PassDetail(props) {
191
242
  };
192
243
  var renderTimeLine = function renderTimeLine() {
193
244
  if (tag === 'product_discount_card') return null;
245
+ if (!showTimeLine) return null;
194
246
  return /*#__PURE__*/React.createElement(TimelineSection, {
195
247
  code: code,
196
248
  tag: tag,
197
249
  timezone: timezone
198
250
  });
199
251
  };
252
+ if (!props.dataSource) return null;
200
253
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
201
- className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform))
254
+ className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform), _defineProperty({}, "pisell-wallet-pass-gallery_detail-with-footer", platform === 'h5' && tag === 'gift_card'))
202
255
  }, /*#__PURE__*/React.createElement("div", {
203
256
  className: "pisell-wallet-pass-gallery_detail-content",
204
257
  ref: containerRef
@@ -18,6 +18,10 @@
18
18
  padding: 20px 0px;
19
19
  }
20
20
 
21
+ &-with-footer {
22
+ height: calc(100% - 90px);
23
+ }
24
+
21
25
  .pisell-wallet-pass-gallery_detail-content {
22
26
  overflow-y: auto;
23
27
  height: 100%;
@@ -32,6 +32,10 @@ var Recharge = function Recharge(_ref) {
32
32
  storage = _ref2.storage;
33
33
  var dvaStore = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getStore) === null || _context$appHelper2$g === void 0 || (_context$appHelper2$g = _context$appHelper2$g.call(_context$appHelper2)) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.getState();
34
34
  var shop = (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 || (_dvaStore$core = _dvaStore$core.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.shop) || {};
35
+ var _useState3 = useState(false),
36
+ _useState4 = _slicedToArray(_useState3, 2),
37
+ loading = _useState4[0],
38
+ setLoading = _useState4[1];
35
39
  useEffect(function () {
36
40
  if (detailData) {
37
41
  setChargeItem(((detailData === null || detailData === void 0 ? void 0 : detailData.gift_option) || [])[0]);
@@ -44,6 +48,7 @@ var Recharge = function Recharge(_ref) {
44
48
  while (1) switch (_context.prev = _context.next) {
45
49
  case 0:
46
50
  _context.prev = 0;
51
+ setLoading(true);
47
52
  params = {
48
53
  voucher_id: (detailData === null || detailData === void 0 ? void 0 : detailData.id) || '',
49
54
  product_id: (detailData === null || detailData === void 0 ? void 0 : detailData.product_id) || '',
@@ -57,9 +62,9 @@ var Recharge = function Recharge(_ref) {
57
62
  currency_format: (shop === null || shop === void 0 ? void 0 : shop.currency_format) || ''
58
63
  }
59
64
  };
60
- _context.next = 4;
65
+ _context.next = 5;
61
66
  return orderRechargeProduct(params);
62
- case 4:
67
+ case 5:
63
68
  data = _context.sent;
64
69
  if (data !== null && data !== void 0 && data.order_id) {
65
70
  storage === null || storage === void 0 || (_storage$set = storage.set) === null || _storage$set === void 0 || _storage$set.call(storage, 'orderId', data.order_id);
@@ -69,23 +74,28 @@ var Recharge = function Recharge(_ref) {
69
74
  callback: function callback() {}
70
75
  });
71
76
  }
72
- _context.next = 11;
77
+ _context.next = 12;
73
78
  break;
74
- case 8:
75
- _context.prev = 8;
79
+ case 9:
80
+ _context.prev = 9;
76
81
  _context.t0 = _context["catch"](0);
77
82
  console.error(locales.getText('wallet-pass-gallery.log.rechargeOrderFailed'), _context.t0);
78
- case 11:
83
+ case 12:
84
+ _context.prev = 12;
85
+ setLoading(false);
86
+ return _context.finish(12);
87
+ case 15:
79
88
  case "end":
80
89
  return _context.stop();
81
90
  }
82
- }, _callee, null, [[0, 8]]);
91
+ }, _callee, null, [[0, 9, 12, 15]]);
83
92
  }));
84
93
  return function handleRecharge() {
85
94
  return _ref3.apply(this, arguments);
86
95
  };
87
96
  }();
88
97
  return /*#__PURE__*/React.createElement(Drawer, {
98
+ destroyOnClose: true,
89
99
  title: locales.getText('wallet-pass-gallery.rechargeOptions'),
90
100
  open: open,
91
101
  zIndex: 999,
@@ -97,7 +107,8 @@ var Recharge = function Recharge(_ref) {
97
107
  block: true,
98
108
  size: "large",
99
109
  onClick: handleRecharge,
100
- disabled: !(chargeItem !== null && chargeItem !== void 0 && chargeItem.id)
110
+ disabled: !(chargeItem !== null && chargeItem !== void 0 && chargeItem.id),
111
+ loading: loading
101
112
  }, locales.getText('wallet-pass-gallery.recharge'))
102
113
  }, /*#__PURE__*/React.createElement("div", {
103
114
  className: "pisell-wallet-pass-gallery_recharge"
@@ -82,7 +82,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
82
82
  num: 20,
83
83
  skip: (d === null || d === void 0 ? void 0 : d.nextId) || 1,
84
84
  tags: TAGS,
85
- filter_wallet_id: walletId || undefined
85
+ filter_wallet_id: walletId || undefined,
86
+ "with": ['customScheduleSnapshot']
86
87
  });
87
88
  case 3:
88
89
  res = _context.sent;
@@ -121,7 +122,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
121
122
  num: 20,
122
123
  skip: (d === null || d === void 0 ? void 0 : d.nextId) || 1,
123
124
  tags: TAGS,
124
- filter_wallet_id: walletId || undefined
125
+ filter_wallet_id: walletId || undefined,
126
+ "with": ['customScheduleSnapshot']
125
127
  });
126
128
  case 3:
127
129
  res = _context2.sent;
@@ -552,7 +554,9 @@ var WalletPassGallery = function WalletPassGallery(props) {
552
554
  },
553
555
  block: true
554
556
  }, locales.getText('wallet-pass-gallery.button.add'))), /*#__PURE__*/React.createElement(PisellModal, {
555
- platform: 'h5',
557
+ zIndex: 997,
558
+ destroyOnClose: true,
559
+ platform: platform,
556
560
  visible: !!_currentItem,
557
561
  onCancel: function onCancel() {
558
562
  return setCurrentItemId('');
@@ -17,6 +17,7 @@ export interface IWalletListParmsProps {
17
17
  skip?: number;
18
18
  filter_wallet_id?: string;
19
19
  available: 0 | 1;
20
+ with?: string[];
20
21
  }
21
22
  /**
22
23
  * 钱包列表项属性接口
@@ -171,6 +172,8 @@ export declare const getAssetList: (params: IAssetListProps) => Promise<{
171
172
  */
172
173
  export declare const getDetailApi: (params: {
173
174
  id: string;
175
+ order_behavior_count_customer_id: string;
176
+ apiPrefix: string;
174
177
  }) => Promise<IDetailResponse>;
175
178
  /**
176
179
  * 详情响应数据结构,供组件消费
@@ -214,10 +214,12 @@ export var getDetailApi = /*#__PURE__*/function () {
214
214
  while (1) switch (_context6.prev = _context6.next) {
215
215
  case 0:
216
216
  _context6.next = 2;
217
- return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(params.id), {
217
+ return request.getRequest().get("".concat(params.apiPrefix || '/h5', "/machinecode/lowcode/detail/").concat(params.id), {
218
218
  order_behavior_count: 1,
219
219
  // 订单行为次数
220
- order_behavior_count_customer: 1 // 客户订单行为次数
220
+ order_behavior_count_customer: 1,
221
+ // 客户订单行为次数
222
+ order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
221
223
  });
222
224
  case 2:
223
225
  _yield$request$getReq6 = _context6.sent;
@@ -15,6 +15,14 @@
15
15
 
16
16
  /* 默认底部内边距 */
17
17
  padding-bottom: 24px;
18
+
19
+ // 加载状态优化
20
+ .pisell-lowcode-btn-loading-icon {
21
+ .anticon {
22
+ color: #ffffff !important;
23
+ }
24
+ }
25
+
18
26
 
19
27
  /* 在弹窗模式下不需要额外的底部内边距,因为使用 sticky 定位 */
20
28
  .pisell-lowcode-modal-body & {
@@ -450,6 +458,13 @@
450
458
  .login-lm-drawer-popover & {
451
459
  padding-bottom: 100px;
452
460
  }
461
+ // 加载状态优化
462
+ .pisell-lowcode-btn-loading-icon {
463
+ .anticon {
464
+ color: #ffffff !important;
465
+ }
466
+ }
467
+
453
468
  }
454
469
 
455
470
  // 错误提示样式优化
@@ -509,14 +524,6 @@
509
524
  // }
510
525
  // }
511
526
  // }
512
-
513
- // 加载状态优化
514
- .pisell-lowcode-btn-loading-icon {
515
- .anticon {
516
- color: #ffffff !important;
517
- }
518
- }
519
-
520
527
  // 切换认证方式按钮
521
528
  .login2-switch-button {
522
529
  margin-top: 0;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const BatchSelectorDemo: React.FC;
3
+ export default BatchSelectorDemo;