@pisell/private-materials 6.8.6 → 6.8.8

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 (382) 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 +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  12. package/es/components/appointmentBooking/components/Voucher/index.js +16 -0
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/actionButtons/index.js +34 -16
  15. package/es/components/booking/components/footer/amount.js +25 -8
  16. package/es/components/booking/components/footer/index.js +67 -35
  17. package/es/components/booking/components/footer/utils.d.ts +7 -0
  18. package/es/components/booking/components/footer/utils.js +66 -42
  19. package/es/components/booking/components/voucher/index.js +58 -14
  20. package/es/components/booking/forms/model.d.ts +1 -10
  21. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  22. package/es/components/booking/hooks/useQuotation.js +69 -21
  23. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  24. package/es/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
  25. package/es/components/booking/info/hooks/useHolderConfig.js +9 -2
  26. package/es/components/booking/info/model.d.ts +1 -10
  27. package/es/components/booking/info/service/Lists.d.ts +1 -1
  28. package/es/components/booking/info/service/Lists.js +8 -2
  29. package/es/components/booking/info/service/serve.d.ts +14 -0
  30. package/es/components/booking/info/service/serve.js +21 -0
  31. package/es/components/booking/info/service2/Group/utils.js +2 -0
  32. package/es/components/booking/info/service2/utils.d.ts +1 -33
  33. package/es/components/booking/info/service2/utils.js +84 -36
  34. package/es/components/booking/info/utils.js +5 -0
  35. package/es/components/booking/info2/cartClientCard/index.js +23 -5
  36. package/es/components/booking/info2/service/addService/index.js +146 -88
  37. package/es/components/booking/info2/service/addService/utils.d.ts +8 -0
  38. package/es/components/booking/info2/service/addService/utils.js +78 -9
  39. package/es/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
  40. package/es/components/booking/info2/service/editService/Holder/index.js +193 -0
  41. package/es/components/booking/info2/service/editService/Holder/index.less +63 -0
  42. package/es/components/booking/info2/service/editService/index.js +332 -76
  43. package/es/components/booking/info2/utilsByBooking.js +14 -5
  44. package/es/components/booking/locales.d.ts +30 -0
  45. package/es/components/booking/locales.js +39 -3
  46. package/es/components/booking/model.d.ts +1 -9
  47. package/es/components/booking/notes/model.d.ts +1 -10
  48. package/es/components/booking/payments/model.d.ts +1 -10
  49. package/es/components/booking/utils/confirmHolderModal.d.ts +13 -0
  50. package/es/components/booking/utils/confirmHolderModal.js +318 -0
  51. package/es/components/booking/utils/confirmHolderModal.less +40 -0
  52. package/es/components/booking/utils/selectHolderModal.d.ts +24 -0
  53. package/es/components/booking/utils/selectHolderModal.js +407 -0
  54. package/es/components/booking/utils.d.ts +11 -3
  55. package/es/components/booking/utils.js +24 -1
  56. package/es/components/checkout/PaymentModal.js +15 -10
  57. package/es/components/eftpos/hooks.d.ts +0 -1
  58. package/es/components/eftposPay/amount.d.ts +1 -1
  59. package/es/components/eftposPay/device.d.ts +1 -1
  60. package/es/components/eftposPay/store/index.d.ts +2 -2
  61. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  62. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  64. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  69. package/es/components/index.d.ts +1 -2
  70. package/es/components/index.js +1 -2
  71. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  72. package/es/components/pay/toC/model.d.ts +1 -9
  73. package/es/components/schedules/model.d.ts +1 -9
  74. package/es/components/shoppingCart/components/Cart/Product.js +6 -3
  75. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  76. package/es/components/shoppingCart/type.d.ts +1 -0
  77. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
  78. package/es/components/{wallet/Detail/serve.js → ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js} +112 -57
  79. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
  80. package/es/components/ticketBooking/components/addServiceVariant/addService.js +29 -15
  81. package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -0
  82. package/es/components/ticketBooking/components/ticketBooking/index.js +14 -11
  83. package/es/components/ticketBooking/utils/index.d.ts +10 -2
  84. package/es/components/ticketBooking/utils/index.js +37 -7
  85. package/es/components/walletList/index.d.ts +0 -24
  86. package/es/components/walletList/index.js +173 -41
  87. package/es/components/walletList/locales.d.ts +9 -0
  88. package/es/components/walletList/locales.js +12 -3
  89. package/es/components/walletList/serve.d.ts +19 -0
  90. package/es/components/walletList/serve.js +94 -5
  91. package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
  92. package/es/components/walletList/tempHolderSelector/index.js +196 -0
  93. package/es/components/walletList/tempHolderSelector/index.less +63 -0
  94. package/es/hooks/usePaymentLogger.d.ts +0 -1
  95. package/es/index.d.ts +2 -1
  96. package/es/index.js +2 -1
  97. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -3
  98. package/es/plus/productSelect/index.js +1 -4
  99. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
  100. package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
  101. package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
  102. package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
  103. package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
  104. package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
  105. package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
  106. package/es/plus/selectHolder/components/HolderList/index.js +43 -0
  107. package/es/plus/selectHolder/index.d.ts +7 -0
  108. package/es/plus/selectHolder/index.js +273 -0
  109. package/es/plus/selectHolder/index.less +137 -0
  110. package/es/plus/selectHolder/locales.d.ts +24 -0
  111. package/es/plus/selectHolder/locales.js +29 -0
  112. package/es/plus/selectHolder/types.d.ts +104 -0
  113. package/es/plus/selectHolder/types.js +1 -0
  114. package/es/plus/selectHolder/utils.d.ts +9 -0
  115. package/es/plus/selectHolder/utils.js +16 -0
  116. package/es/plus/walletEditor/WalletEditor.js +60 -2
  117. package/es/plus/walletEditor/locales.d.ts +9 -0
  118. package/es/plus/walletEditor/locales.js +12 -3
  119. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  120. package/es/plus/walletPassGallery/components/passList/index.js +17 -5
  121. package/es/plus/walletPassGallery/index.js +223 -41
  122. package/es/plus/walletPassGallery/locales.d.ts +15 -0
  123. package/es/plus/walletPassGallery/locales.js +29 -5
  124. package/es/plus/walletPassGallery/serve.d.ts +15 -1
  125. package/es/plus/walletPassGallery/serve.js +59 -2
  126. package/es/plus/walletPassGallery/utils.d.ts +48 -0
  127. package/es/plus/walletPassGallery/utils.js +342 -0
  128. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
  129. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +355 -0
  130. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
  131. package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
  132. package/es/pro/multiDayTimeSelect/index.js +1 -0
  133. package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
  134. package/es/pro/multiDayTimeSelect/types.js +1 -0
  135. package/es/pro/skuDetailModal/types.d.ts +1 -0
  136. package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  137. package/lib/components/appointmentBooking/components/Voucher/index.js +17 -0
  138. package/lib/components/booking/addons/model.d.ts +1 -10
  139. package/lib/components/booking/components/actionButtons/index.js +11 -0
  140. package/lib/components/booking/components/footer/amount.js +23 -6
  141. package/lib/components/booking/components/footer/index.js +25 -4
  142. package/lib/components/booking/components/footer/utils.d.ts +7 -0
  143. package/lib/components/booking/components/footer/utils.js +41 -29
  144. package/lib/components/booking/components/voucher/index.js +48 -6
  145. package/lib/components/booking/forms/model.d.ts +1 -10
  146. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  147. package/lib/components/booking/hooks/useQuotation.js +45 -13
  148. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  149. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
  150. package/lib/components/booking/info/hooks/useHolderConfig.js +8 -3
  151. package/lib/components/booking/info/model.d.ts +1 -10
  152. package/lib/components/booking/info/service/Lists.d.ts +1 -1
  153. package/lib/components/booking/info/service/Lists.js +4 -2
  154. package/lib/components/booking/info/service/serve.d.ts +14 -0
  155. package/lib/components/booking/info/service/serve.js +5 -0
  156. package/lib/components/booking/info/service2/Group/utils.js +2 -0
  157. package/lib/components/booking/info/service2/utils.d.ts +1 -33
  158. package/lib/components/booking/info/service2/utils.js +32 -16
  159. package/lib/components/booking/info/utils.js +4 -0
  160. package/lib/components/booking/info2/cartClientCard/index.js +11 -0
  161. package/lib/components/booking/info2/service/addService/index.js +22 -2
  162. package/lib/components/booking/info2/service/addService/utils.d.ts +8 -0
  163. package/lib/components/booking/info2/service/addService/utils.js +47 -9
  164. package/lib/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
  165. package/lib/components/booking/info2/service/editService/Holder/index.js +199 -0
  166. package/lib/components/booking/info2/service/editService/Holder/index.less +63 -0
  167. package/lib/components/booking/info2/service/editService/index.js +273 -38
  168. package/lib/components/booking/info2/utilsByBooking.js +19 -8
  169. package/lib/components/booking/locales.d.ts +30 -0
  170. package/lib/components/booking/locales.js +33 -3
  171. package/lib/components/booking/model.d.ts +1 -9
  172. package/lib/components/booking/notes/model.d.ts +1 -10
  173. package/lib/components/booking/payments/model.d.ts +1 -10
  174. package/lib/components/booking/utils/confirmHolderModal.d.ts +13 -0
  175. package/lib/components/booking/utils/confirmHolderModal.js +253 -0
  176. package/lib/components/booking/utils/confirmHolderModal.less +40 -0
  177. package/lib/components/booking/utils/selectHolderModal.d.ts +24 -0
  178. package/lib/components/booking/utils/selectHolderModal.js +319 -0
  179. package/lib/components/booking/utils.d.ts +11 -3
  180. package/lib/components/booking/utils.js +15 -0
  181. package/lib/components/checkout/PaymentModal.js +5 -2
  182. package/lib/components/eftpos/hooks.d.ts +0 -1
  183. package/lib/components/eftposPay/amount.d.ts +1 -1
  184. package/lib/components/eftposPay/device.d.ts +1 -1
  185. package/lib/components/eftposPay/store/index.d.ts +2 -2
  186. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  187. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  188. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  189. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  190. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  192. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  193. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  194. package/lib/components/index.d.ts +1 -2
  195. package/lib/components/index.js +0 -3
  196. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  197. package/lib/components/pay/toC/model.d.ts +1 -9
  198. package/lib/components/schedules/model.d.ts +1 -9
  199. package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
  200. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  201. package/lib/components/shoppingCart/type.d.ts +1 -0
  202. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
  203. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +118 -0
  204. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
  205. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +23 -9
  206. package/lib/components/ticketBooking/components/addServiceVariant/index.js +4 -0
  207. package/lib/components/ticketBooking/components/ticketBooking/index.js +0 -16
  208. package/lib/components/ticketBooking/utils/index.d.ts +10 -2
  209. package/lib/components/ticketBooking/utils/index.js +31 -6
  210. package/lib/components/walletList/index.d.ts +0 -24
  211. package/lib/components/walletList/index.js +100 -4
  212. package/lib/components/walletList/locales.d.ts +9 -0
  213. package/lib/components/walletList/locales.js +12 -3
  214. package/lib/components/walletList/serve.d.ts +19 -0
  215. package/lib/components/walletList/serve.js +26 -3
  216. package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
  217. package/lib/components/walletList/tempHolderSelector/index.js +166 -0
  218. package/lib/components/walletList/tempHolderSelector/index.less +63 -0
  219. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  220. package/lib/index.d.ts +2 -1
  221. package/lib/index.js +6 -3
  222. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -3
  223. package/lib/plus/productSelect/index.js +1 -2
  224. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
  225. package/lib/{components/wallet/PointCard/model.js → plus/selectHolder/components/ErrorTip/index.js} +10 -23
  226. package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
  227. package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
  228. package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
  229. package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
  230. package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
  231. package/lib/{components/wallet/components/WalletBar → plus/selectHolder/components/HolderList}/index.js +29 -15
  232. package/lib/plus/selectHolder/index.d.ts +7 -0
  233. package/lib/plus/selectHolder/index.js +223 -0
  234. package/lib/plus/selectHolder/index.less +137 -0
  235. package/lib/plus/selectHolder/locales.d.ts +24 -0
  236. package/lib/{components/wallet/Voucher → plus/selectHolder}/locales.js +17 -14
  237. package/lib/plus/selectHolder/types.d.ts +104 -0
  238. package/lib/plus/selectHolder/types.js +17 -0
  239. package/lib/plus/selectHolder/utils.d.ts +9 -0
  240. package/lib/{components/wallet/RechargeableCard/serve.js → plus/selectHolder/utils.js} +11 -10
  241. package/lib/plus/walletEditor/WalletEditor.js +53 -0
  242. package/lib/plus/walletEditor/locales.d.ts +9 -0
  243. package/lib/plus/walletEditor/locales.js +12 -3
  244. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  245. package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
  246. package/lib/plus/walletPassGallery/index.js +154 -27
  247. package/lib/plus/walletPassGallery/locales.d.ts +15 -0
  248. package/lib/plus/walletPassGallery/locales.js +32 -5
  249. package/lib/plus/walletPassGallery/serve.d.ts +15 -1
  250. package/lib/plus/walletPassGallery/serve.js +17 -5
  251. package/lib/plus/walletPassGallery/utils.d.ts +48 -0
  252. package/lib/plus/walletPassGallery/utils.js +287 -0
  253. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
  254. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +290 -0
  255. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
  256. package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
  257. package/lib/{components/wallet/components → pro/multiDayTimeSelect}/index.js +6 -16
  258. package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
  259. package/lib/pro/multiDayTimeSelect/types.js +17 -0
  260. package/lib/pro/skuDetailModal/types.d.ts +1 -0
  261. package/lowcode/event-select-holder/meta.ts +2 -2
  262. package/lowcode/select-holder/meta.ts +220 -0
  263. package/lowcode/select-holder/snippets.ts +41 -0
  264. package/package.json +3 -3
  265. package/es/components/wallet/Detail/index.d.ts +0 -42
  266. package/es/components/wallet/Detail/index.js +0 -1182
  267. package/es/components/wallet/Detail/index.less +0 -386
  268. package/es/components/wallet/Detail/locales.d.ts +0 -153
  269. package/es/components/wallet/Detail/locales.js +0 -170
  270. package/es/components/wallet/Detail/model.d.ts +0 -13
  271. package/es/components/wallet/Detail/model.js +0 -22
  272. package/es/components/wallet/Detail/serve.d.ts +0 -39
  273. package/es/components/wallet/DetailContext.d.ts +0 -25
  274. package/es/components/wallet/DetailContext.js +0 -162
  275. package/es/components/wallet/DiscountCard/index.d.ts +0 -3
  276. package/es/components/wallet/DiscountCard/index.js +0 -218
  277. package/es/components/wallet/DiscountCard/index.less +0 -9
  278. package/es/components/wallet/DiscountCard/model.d.ts +0 -14
  279. package/es/components/wallet/DiscountCard/model.js +0 -22
  280. package/es/components/wallet/PointCard/index.d.ts +0 -3
  281. package/es/components/wallet/PointCard/index.js +0 -169
  282. package/es/components/wallet/PointCard/index.less +0 -9
  283. package/es/components/wallet/PointCard/model.d.ts +0 -13
  284. package/es/components/wallet/PointCard/model.js +0 -22
  285. package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
  286. package/es/components/wallet/RechargeableCard/index.js +0 -463
  287. package/es/components/wallet/RechargeableCard/index.less +0 -108
  288. package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
  289. package/es/components/wallet/RechargeableCard/model.js +0 -28
  290. package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
  291. package/es/components/wallet/RechargeableCard/serve.js +0 -32
  292. package/es/components/wallet/Voucher/index.d.ts +0 -12
  293. package/es/components/wallet/Voucher/index.js +0 -131
  294. package/es/components/wallet/Voucher/index.less +0 -9
  295. package/es/components/wallet/Voucher/locales.d.ts +0 -21
  296. package/es/components/wallet/Voucher/locales.js +0 -20
  297. package/es/components/wallet/Voucher/model.d.ts +0 -13
  298. package/es/components/wallet/Voucher/model.js +0 -22
  299. package/es/components/wallet/carouselArrow.png +0 -0
  300. package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
  301. package/es/components/wallet/components/FooterButtons/index.js +0 -81
  302. package/es/components/wallet/components/FooterButtons/index.less +0 -91
  303. package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
  304. package/es/components/wallet/components/UsageRules/index.js +0 -147
  305. package/es/components/wallet/components/UsageRules/index.less +0 -157
  306. package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
  307. package/es/components/wallet/components/WalletBar/index.js +0 -19
  308. package/es/components/wallet/components/WalletBar/index.less +0 -36
  309. package/es/components/wallet/components/WalletCard.d.ts +0 -11
  310. package/es/components/wallet/components/WalletCard.js +0 -91
  311. package/es/components/wallet/components/index.d.ts +0 -3
  312. package/es/components/wallet/components/index.js +0 -4
  313. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -34
  314. package/es/components/wallet/hooks/useWalletCard.js +0 -147
  315. package/es/components/wallet/index.d.ts +0 -10
  316. package/es/components/wallet/index.js +0 -807
  317. package/es/components/wallet/index.less +0 -151
  318. package/es/components/wallet/locales.d.ts +0 -132
  319. package/es/components/wallet/locales.js +0 -139
  320. package/es/components/wallet/model.d.ts +0 -37
  321. package/es/components/wallet/model.js +0 -86
  322. package/es/components/wallet/serve.d.ts +0 -150
  323. package/es/components/wallet/serve.js +0 -205
  324. package/es/components/wallet/utils/formatUtils.d.ts +0 -36
  325. package/es/components/wallet/utils/formatUtils.js +0 -73
  326. package/lib/components/wallet/Detail/index.d.ts +0 -42
  327. package/lib/components/wallet/Detail/index.js +0 -874
  328. package/lib/components/wallet/Detail/index.less +0 -386
  329. package/lib/components/wallet/Detail/locales.d.ts +0 -153
  330. package/lib/components/wallet/Detail/locales.js +0 -194
  331. package/lib/components/wallet/Detail/model.d.ts +0 -13
  332. package/lib/components/wallet/Detail/model.js +0 -43
  333. package/lib/components/wallet/Detail/serve.d.ts +0 -39
  334. package/lib/components/wallet/Detail/serve.js +0 -44
  335. package/lib/components/wallet/DetailContext.d.ts +0 -25
  336. package/lib/components/wallet/DetailContext.js +0 -118
  337. package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
  338. package/lib/components/wallet/DiscountCard/index.js +0 -209
  339. package/lib/components/wallet/DiscountCard/index.less +0 -9
  340. package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
  341. package/lib/components/wallet/DiscountCard/model.js +0 -43
  342. package/lib/components/wallet/PointCard/index.d.ts +0 -3
  343. package/lib/components/wallet/PointCard/index.js +0 -190
  344. package/lib/components/wallet/PointCard/index.less +0 -9
  345. package/lib/components/wallet/PointCard/model.d.ts +0 -13
  346. package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
  347. package/lib/components/wallet/RechargeableCard/index.js +0 -380
  348. package/lib/components/wallet/RechargeableCard/index.less +0 -108
  349. package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
  350. package/lib/components/wallet/RechargeableCard/model.js +0 -49
  351. package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
  352. package/lib/components/wallet/Voucher/index.d.ts +0 -12
  353. package/lib/components/wallet/Voucher/index.js +0 -146
  354. package/lib/components/wallet/Voucher/index.less +0 -9
  355. package/lib/components/wallet/Voucher/locales.d.ts +0 -21
  356. package/lib/components/wallet/Voucher/model.d.ts +0 -13
  357. package/lib/components/wallet/Voucher/model.js +0 -43
  358. package/lib/components/wallet/carouselArrow.png +0 -0
  359. package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
  360. package/lib/components/wallet/components/FooterButtons/index.js +0 -109
  361. package/lib/components/wallet/components/FooterButtons/index.less +0 -91
  362. package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
  363. package/lib/components/wallet/components/UsageRules/index.js +0 -113
  364. package/lib/components/wallet/components/UsageRules/index.less +0 -157
  365. package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
  366. package/lib/components/wallet/components/WalletBar/index.less +0 -36
  367. package/lib/components/wallet/components/WalletCard.d.ts +0 -11
  368. package/lib/components/wallet/components/WalletCard.js +0 -97
  369. package/lib/components/wallet/components/index.d.ts +0 -3
  370. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -34
  371. package/lib/components/wallet/hooks/useWalletCard.js +0 -111
  372. package/lib/components/wallet/index.d.ts +0 -10
  373. package/lib/components/wallet/index.js +0 -580
  374. package/lib/components/wallet/index.less +0 -151
  375. package/lib/components/wallet/locales.d.ts +0 -132
  376. package/lib/components/wallet/locales.js +0 -163
  377. package/lib/components/wallet/model.d.ts +0 -37
  378. package/lib/components/wallet/model.js +0 -91
  379. package/lib/components/wallet/serve.d.ts +0 -150
  380. package/lib/components/wallet/serve.js +0 -85
  381. package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
  382. package/lib/components/wallet/utils/formatUtils.js +0 -73
@@ -1,209 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/wallet/DiscountCard/index.tsx
30
- var DiscountCard_exports = {};
31
- __export(DiscountCard_exports, {
32
- default: () => DiscountCard_default
33
- });
34
- module.exports = __toCommonJS(DiscountCard_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_materials = require("@pisell/materials");
37
- var import_model = require("./model");
38
- var import_DetailContext = require("../DetailContext");
39
- var import_WalletCard = __toESM(require("../components/WalletCard"));
40
- var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
41
- var import_utils = require("@pisell/utils");
42
- var import_locales = __toESM(require("../locales"));
43
- var import_index = require("./index.less");
44
- var { Title } = import_materials.Typography;
45
- var Amount = import_materials.PisellText.Amount;
46
- var RechargeableCard = (0, import_model.Provider)((props) => {
47
- var _a, _b, _c;
48
- const { globalState, setGlobalState } = props;
49
- const { currentId, product_discount_card = [], currentDetail } = globalState;
50
- const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
51
- const context = (0, import_useEngineContext.default)();
52
- const utils = context.appHelper.utils || {};
53
- const dvaStore = (_b = (_a = utils == null ? void 0 : utils.getStore) == null ? void 0 : _a.call(utils)) == null ? void 0 : _b.getState();
54
- const platform = (0, import_react.useMemo)(() => (0, import_utils.isMobile)() ? "h5" : "pc", []);
55
- const { openDetail, renderDetail, closeDetail } = (0, import_DetailContext.useDetail)();
56
- const recordViewRef = (0, import_react.useRef)(null);
57
- (0, import_react.useEffect)(() => {
58
- if ((state == null ? void 0 : state.setup) !== "detail" && recordViewRef.current) {
59
- recordViewRef.current.closeDetailModal();
60
- }
61
- }, [state == null ? void 0 : state.setup]);
62
- (0, import_react.useEffect)(() => {
63
- if (globalState.setup && globalState.setup !== (state == null ? void 0 : state.setup)) {
64
- dispatch({
65
- type: "setState",
66
- payload: { setup: globalState.setup }
67
- });
68
- }
69
- }, [globalState.setup]);
70
- const handleBack = () => {
71
- if (recordViewRef.current) {
72
- recordViewRef.current.closeDetailModal();
73
- }
74
- closeDetail();
75
- dispatch({
76
- type: "setState",
77
- payload: { setup: "list" }
78
- });
79
- setGlobalState({
80
- setup: "list"
81
- });
82
- };
83
- const renderItem = (item) => {
84
- return /* @__PURE__ */ import_react.default.createElement(
85
- import_WalletCard.default,
86
- {
87
- item,
88
- currentId,
89
- isDiscountCard: true,
90
- onClick: () => {
91
- setGlobalState({
92
- currentId: item.id
93
- });
94
- }
95
- }
96
- );
97
- };
98
- (0, import_react.useEffect)(() => {
99
- if (currentId) {
100
- dispatch({
101
- type: "setState",
102
- payload: {
103
- currentDetail: product_discount_card.find(
104
- (item) => item.id === currentId
105
- )
106
- }
107
- });
108
- }
109
- }, [currentId]);
110
- (0, import_react.useEffect)(() => {
111
- const enabledCards = product_discount_card.filter(
112
- (item) => item.limit_status === "enable"
113
- );
114
- const total = enabledCards.reduce(
115
- (sum, item) => sum + Number(item.balance),
116
- 0
117
- );
118
- dispatch({
119
- type: "setState",
120
- payload: {
121
- total
122
- }
123
- });
124
- }, [product_discount_card]);
125
- const isEmpty = !product_discount_card.some(
126
- (item) => item.limit_status === "enable"
127
- );
128
- import_utils.locales.init(import_locales.default, ((_c = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _c.translateLocale) || "en");
129
- const formatData = () => {
130
- const fileterArr = product_discount_card.filter(() => {
131
- });
132
- let available = {
133
- title: import_utils.locales.getText("page.wallet.available"),
134
- dataSource: product_discount_card.filter(
135
- (item) => item.limit_status === "enable"
136
- )
137
- };
138
- const unavailable = {
139
- title: import_utils.locales.getText("page.wallet.unavailable"),
140
- dataSource: product_discount_card.filter(
141
- (item) => item.limit_status === "disable"
142
- )
143
- };
144
- return [available, unavailable];
145
- };
146
- const detail = () => {
147
- if (!(currentDetail == null ? void 0 : currentDetail.id)) return null;
148
- const detailWithBar = {
149
- ...currentDetail,
150
- isDiscoundCard: true,
151
- showWalletBar: platform === "h5",
152
- // 添加显示WalletBar的标志
153
- onBack: handleBack
154
- // 添加返回处理函数
155
- };
156
- return renderDetail(detailWithBar);
157
- };
158
- return isEmpty ? /* @__PURE__ */ import_react.default.createElement(import_materials.PisellEmpty, null) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, platform !== "pc" && /* @__PURE__ */ import_react.default.createElement(Title, { className: "wallet-discountCard-title" }, import_utils.locales.getText("page.wallet.discountCard")), /* @__PURE__ */ import_react.default.createElement(
159
- import_materials.RecordView,
160
- {
161
- ref: recordViewRef,
162
- leftSpan: 9,
163
- rightSpan: 15,
164
- gutter: 20,
165
- onRowClick: (currentDetail2) => {
166
- setGlobalState({
167
- currentId: currentDetail2.id || "",
168
- currentDetail: currentDetail2,
169
- setup: "detail"
170
- // 设置状态为detail
171
- });
172
- dispatch({
173
- type: "setState",
174
- payload: { setup: "detail" }
175
- });
176
- openDetail({
177
- ...currentDetail2,
178
- isDiscoundCard: true,
179
- showWalletBar: platform === "h5",
180
- // 添加显示WalletBar的标志
181
- onBack: handleBack
182
- // 添加返回处理函数
183
- });
184
- },
185
- pcDetailModalDisplay: platform === "h5" ? true : false,
186
- padDetailModalDisplay: true,
187
- mobilePadDetailModalDisplay: true,
188
- modalWrapStyle: {
189
- overflowY: "auto",
190
- top: 0,
191
- height: "100%",
192
- zIndex: 998,
193
- position: "fixed",
194
- left: 0,
195
- right: 0
196
- },
197
- split: false,
198
- detail: detail(),
199
- children: null,
200
- emptyButtons: [],
201
- doubleList: true,
202
- doubleListSource: formatData(),
203
- dataSource: product_discount_card,
204
- renderItem: (value) => renderItem(value),
205
- isShowClode: false
206
- }
207
- ));
208
- });
209
- var DiscountCard_default = RechargeableCard;
@@ -1,9 +0,0 @@
1
- .wallet-discountCard-title {
2
- color: var(--Gray-900, #101828);
3
- font-size: 20px;
4
- font-style: normal;
5
- font-weight: 600;
6
- line-height: 30px;
7
- margin-top: 20px;
8
- margin-bottom: 24px;
9
- }
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
@@ -1,43 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/components/wallet/DiscountCard/model.tsx
20
- var model_exports = {};
21
- __export(model_exports, {
22
- Context: () => Context,
23
- Provider: () => Provider
24
- });
25
- module.exports = __toCommonJS(model_exports);
26
- var import_utils = require("@pisell/utils");
27
- var defaultState = {
28
- total: 0
29
- };
30
- var { Provider, Context } = (0, import_utils.miniRedux)({
31
- namespace: "state",
32
- state: defaultState,
33
- reducers: {
34
- setState(state, payload) {
35
- return { ...state, ...payload };
36
- }
37
- }
38
- });
39
- // Annotate the CommonJS export names for ESM import in node:
40
- 0 && (module.exports = {
41
- Context,
42
- Provider
43
- });
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const RechargeableCard: any;
3
- export default RechargeableCard;
@@ -1,190 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/wallet/PointCard/index.tsx
30
- var PointCard_exports = {};
31
- __export(PointCard_exports, {
32
- default: () => PointCard_default
33
- });
34
- module.exports = __toCommonJS(PointCard_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_materials = require("@pisell/materials");
37
- var import_model = require("./model");
38
- var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
39
- var import_utils = require("@pisell/utils");
40
- var import_locales = __toESM(require("../locales"));
41
- var import_index = require("./index.less");
42
- var import_DetailContext = require("../DetailContext");
43
- var import_WalletCard = __toESM(require("../components/WalletCard"));
44
- var { Title } = import_materials.Typography;
45
- var RechargeableCard = (0, import_model.Provider)((props) => {
46
- var _a, _b, _c;
47
- const { globalState, setGlobalState } = props;
48
- const { currentId, currentDetail, point_card } = globalState;
49
- const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
50
- const context = (0, import_useEngineContext.default)();
51
- const utils = context.appHelper.utils || {};
52
- const dvaStore = (_b = (_a = utils == null ? void 0 : utils.getStore) == null ? void 0 : _a.call(utils)) == null ? void 0 : _b.getState();
53
- const recordViewRef = (0, import_react.useRef)(null);
54
- const { openDetail, renderDetail } = (0, import_DetailContext.useDetail)();
55
- (0, import_react.useEffect)(() => {
56
- document.body.id = "body";
57
- }, []);
58
- const platform = (0, import_utils.isMobile)() ? "h5" : "pc";
59
- const renderItem = (item) => {
60
- return /* @__PURE__ */ import_react.default.createElement(
61
- import_WalletCard.default,
62
- {
63
- item,
64
- balanceTitle: import_utils.locales.getText("page.wallet.pointCard"),
65
- currentId,
66
- onClick: () => {
67
- setGlobalState({
68
- type: "setState",
69
- payload: {
70
- currentId: item.id
71
- }
72
- });
73
- }
74
- }
75
- );
76
- };
77
- (0, import_react.useEffect)(() => {
78
- const enabledCards = point_card.filter(
79
- (item) => item.limit_status === "enable"
80
- );
81
- const total = enabledCards.reduce(
82
- (sum, item) => sum + Number(item.balance),
83
- 0
84
- );
85
- dispatch({
86
- type: "setState",
87
- payload: {
88
- total
89
- }
90
- });
91
- }, [point_card]);
92
- const detail = () => {
93
- if (!(currentDetail == null ? void 0 : currentDetail.id)) return null;
94
- const detailWithProps = {
95
- ...currentDetail,
96
- showWalletBar: platform === "h5",
97
- // 添加显示WalletBar的标志
98
- onBack: handleBack
99
- // 添加返回处理函数
100
- };
101
- return renderDetail(detailWithProps);
102
- };
103
- const handleBack = (0, import_react.useCallback)(() => {
104
- if (recordViewRef.current) {
105
- recordViewRef.current.closeDetailModal();
106
- }
107
- setGlobalState({
108
- setup: "list"
109
- });
110
- }, [recordViewRef, setGlobalState]);
111
- const isEmpty = !point_card.some(
112
- (item) => item.limit_status === "enable"
113
- );
114
- import_utils.locales.init(import_locales.default, ((_c = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _c.translateLocale) || "en");
115
- const formatData = () => {
116
- let available = {
117
- title: import_utils.locales.getText("page.wallet.available"),
118
- dataSource: point_card.filter(
119
- (item) => item.limit_status === "enable"
120
- )
121
- };
122
- const unavailable = {
123
- title: import_utils.locales.getText("page.wallet.unavailable"),
124
- dataSource: point_card.filter(
125
- (item) => item.limit_status === "disable"
126
- )
127
- };
128
- return [available, unavailable];
129
- };
130
- (0, import_react.useEffect)(() => {
131
- var _a2;
132
- if (globalState.setup !== "detail") {
133
- (_a2 = recordViewRef.current) == null ? void 0 : _a2.closeDetailModal();
134
- }
135
- }, [globalState.setup]);
136
- return isEmpty ? /* @__PURE__ */ import_react.default.createElement(import_materials.PisellEmpty, null) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, platform !== "pc" && /* @__PURE__ */ import_react.default.createElement(Title, { className: "wallet-pointCard-title" }, import_utils.locales.getText("page.wallet.pointCard")), /* @__PURE__ */ import_react.default.createElement(
137
- import_materials.CardMetricItem,
138
- {
139
- title: import_utils.locales.getText("page.wallet.points"),
140
- style: { margin: "8px 0 24px" },
141
- hint: false,
142
- tags: false,
143
- number: state.total,
144
- showCurrencySymbol: false
145
- }
146
- ), /* @__PURE__ */ import_react.default.createElement(
147
- import_materials.RecordView,
148
- {
149
- ref: recordViewRef,
150
- mobilePadDetailModalDisplay: true,
151
- leftSpan: 9,
152
- rightSpan: 15,
153
- gutter: 20,
154
- onRowClick: (currentDetail2) => {
155
- setGlobalState({
156
- currentId: currentDetail2.id || "",
157
- currentDetail: currentDetail2,
158
- setup: "detail"
159
- // 设置状态为detail
160
- });
161
- const detailWithProps = {
162
- ...currentDetail2,
163
- showWalletBar: platform === "h5",
164
- // 添加显示WalletBar的标志
165
- onBack: handleBack
166
- // 添加返回处理函数
167
- };
168
- openDetail(detailWithProps);
169
- },
170
- modalWrapStyle: {
171
- overflowY: "auto",
172
- top: 68,
173
- height: "calc(100% - 68px)",
174
- zIndex: 998
175
- },
176
- pcDetailModalDisplay: platform === "h5" ? true : false,
177
- padDetailModalDisplay: true,
178
- isShowClode: false,
179
- split: false,
180
- children: null,
181
- detail: detail(),
182
- emptyButtons: [],
183
- doubleList: true,
184
- doubleListSource: formatData(),
185
- dataSource: point_card,
186
- renderItem: (value) => renderItem(value)
187
- }
188
- ));
189
- });
190
- var PointCard_default = RechargeableCard;
@@ -1,9 +0,0 @@
1
- .wallet-pointCard-title {
2
- color: var(--Gray-900, #101828);
3
- font-size: 20px;
4
- font-style: normal;
5
- font-weight: 600;
6
- line-height: 30px;
7
- margin-top: 20px;
8
- margin-bottom: 24px;
9
- }
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface RechargeableCardProps {
4
- globalState: any;
5
- setGlobalState: (state: any) => void;
6
- handleAddWalletCard?: (addWallet: () => void) => void;
7
- }
8
- /**
9
- * 充值卡组件
10
- * 管理充值卡的展示和操作
11
- */
12
- declare const RechargeableCard: React.FC<RechargeableCardProps>;
13
- export default RechargeableCard;