@pisell/private-materials 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) 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 +1 -1
  6. package/build/lowcode/preview.js +3 -3
  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/booking/addons/model.d.ts +10 -1
  12. package/es/components/booking/addons/model.js +5 -5
  13. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  16. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  17. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  18. package/es/components/booking/components/browserSelect/index.js +1 -1
  19. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  20. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  21. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  22. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  23. package/es/components/booking/deposit/index.d.ts +1 -0
  24. package/es/components/booking/forms/model.d.ts +10 -1
  25. package/es/components/booking/forms/model.js +5 -5
  26. package/es/components/booking/forms/single/index.d.ts +1 -0
  27. package/es/components/booking/forms/table/index.d.ts +1 -0
  28. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  29. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  30. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  31. package/es/components/booking/info/date/index.d.ts +1 -0
  32. package/es/components/booking/info/header/index.d.ts +1 -0
  33. package/es/components/booking/info/model.d.ts +10 -1
  34. package/es/components/booking/info/notes/index.d.ts +1 -0
  35. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  36. package/es/components/booking/info/service/like/index.d.ts +1 -0
  37. package/es/components/booking/info/service/like/index.js +1 -1
  38. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  39. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  41. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  42. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  43. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  44. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  45. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  46. package/es/components/booking/materiels/contacts/index.js +5 -5
  47. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  48. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  49. package/es/components/booking/materiels/startTime/index.js +1 -1
  50. package/es/components/booking/model.d.ts +9 -1
  51. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  52. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  53. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  54. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  55. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  56. package/es/components/booking/notes/addNote/index.js +1 -1
  57. package/es/components/booking/notes/model.d.ts +10 -1
  58. package/es/components/booking/notes/model.js +5 -5
  59. package/es/components/booking/payments/model.d.ts +10 -1
  60. package/es/components/booking/payments/model.js +5 -5
  61. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  62. package/es/components/eftpos/form/index.d.ts +1 -0
  63. package/es/components/eftpos/group/index.d.ts +1 -0
  64. package/es/components/eftpos/hooks.d.ts +1 -0
  65. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  66. package/es/components/eftpos/icon/device.d.ts +1 -0
  67. package/es/components/eftpos/index.d.ts +1 -0
  68. package/es/components/eftpos/pos.d.ts +1 -0
  69. package/es/components/eftpos/receipt/index.d.ts +1 -0
  70. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  71. package/es/components/eftposPay/amount.d.ts +2 -1
  72. package/es/components/eftposPay/app.d.ts +1 -0
  73. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  74. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  75. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  76. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  77. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  78. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  79. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  80. package/es/components/eftposPay/device.d.ts +2 -1
  81. package/es/components/eftposPay/hooks.d.ts +2 -2
  82. package/es/components/eftposPay/payo/config.d.ts +1 -0
  83. package/es/components/eftposPay/store/index.d.ts +5 -5
  84. package/es/components/eftposPay/tip.d.ts +1 -0
  85. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  86. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  87. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  88. package/es/components/listComponent/index.js +5 -5
  89. package/es/components/login/index.d.ts +1 -0
  90. package/es/components/login/index.js +1 -1
  91. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  92. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  93. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  94. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  95. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  99. package/es/components/pay/toC/model.d.ts +9 -1
  100. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  101. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  102. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  103. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  104. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  105. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  106. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  107. package/es/components/productExtension/card/index.js +3 -3
  108. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  109. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  110. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  111. package/es/components/productExtension/fields/Forms/index.js +12 -12
  112. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  113. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  114. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  115. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  116. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  117. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  118. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  119. package/es/components/productExtension/index.d.ts +1 -0
  120. package/es/components/productExtension/index.js +7 -7
  121. package/es/components/productExtension/server.js +2 -2
  122. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  123. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  124. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  125. package/es/components/schedules/calendar/index.d.ts +1 -0
  126. package/es/components/schedules/calendar/index.js +4 -4
  127. package/es/components/schedules/calendar/serve.js +2 -2
  128. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  129. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  130. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  131. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  132. package/es/components/schedules/components/ResourceList/index.js +1 -1
  133. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  134. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  135. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  136. package/es/components/schedules/components/Search/index.js +5 -5
  137. package/es/components/schedules/index.js +10 -10
  138. package/es/components/schedules/model.d.ts +9 -1
  139. package/es/components/schedules/model.js +5 -5
  140. package/es/components/schedules/openHours/index.js +1 -1
  141. package/es/components/schedules/openHours/serve.js +2 -2
  142. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  143. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  144. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  145. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  146. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  147. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  148. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  149. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  150. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  151. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  152. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  153. package/es/components/schedules/products/index.d.ts +1 -0
  154. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  155. package/es/components/schedules/products/list/index.d.ts +1 -0
  156. package/es/components/schedules/products/serve.js +2 -2
  157. package/es/components/schedules/products/utils.js +5 -5
  158. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  159. package/es/components/schedules/resources/detail/index.js +10 -10
  160. package/es/components/schedules/resources/index.d.ts +1 -0
  161. package/es/components/schedules/resources/list/index.d.ts +1 -0
  162. package/es/components/schedules/resources/list/index.js +2 -2
  163. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  164. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  165. package/es/components/schedules/resources/serve.js +2 -2
  166. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  167. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  168. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  169. package/es/components/schedules/schedules/index.d.ts +1 -0
  170. package/es/components/schedules/utils.js +4 -4
  171. package/es/components/selectModal/index.js +2 -2
  172. package/es/components/taxSelect/index.d.ts +1 -0
  173. package/es/components/wallet/Detail/index.js +13 -36
  174. package/es/components/wallet/Detail/index.less +1 -1
  175. package/es/components/wallet/Detail/model.d.ts +13 -1
  176. package/es/components/wallet/Detail/serve.js +1 -3
  177. package/es/components/wallet/DiscountCard/index.js +0 -7
  178. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  179. package/es/components/wallet/PointCard/index.js +1 -3
  180. package/es/components/wallet/PointCard/model.d.ts +13 -1
  181. package/es/components/wallet/RechargeableCard/index.js +0 -1
  182. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  183. package/es/components/wallet/Voucher/index.js +36 -3
  184. package/es/components/wallet/Voucher/model.d.ts +13 -1
  185. package/es/components/wallet/components/WalletCard.js +0 -1
  186. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  187. package/es/components/wallet/index.js +0 -2
  188. package/es/components/wallet/model.d.ts +9 -1
  189. package/es/components/walletList/index.js +2 -4
  190. package/es/components/walletList/index.less +1 -1
  191. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  192. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  193. package/es/hooks/useComponents.js +1 -1
  194. package/lib/components/booking/addons/model.d.ts +10 -1
  195. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  196. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  197. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  198. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  199. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  200. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  201. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  202. package/lib/components/booking/deposit/index.d.ts +1 -0
  203. package/lib/components/booking/forms/model.d.ts +10 -1
  204. package/lib/components/booking/forms/single/index.d.ts +1 -0
  205. package/lib/components/booking/forms/table/index.d.ts +1 -0
  206. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  207. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  208. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  209. package/lib/components/booking/info/date/index.d.ts +1 -0
  210. package/lib/components/booking/info/header/index.d.ts +1 -0
  211. package/lib/components/booking/info/model.d.ts +10 -1
  212. package/lib/components/booking/info/notes/index.d.ts +1 -0
  213. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  214. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  215. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  216. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  217. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  218. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  219. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  220. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  221. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  222. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  223. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  224. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  225. package/lib/components/booking/model.d.ts +9 -1
  226. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  227. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  228. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  229. package/lib/components/booking/notes/model.d.ts +10 -1
  230. package/lib/components/booking/payments/model.d.ts +10 -1
  231. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  232. package/lib/components/eftpos/form/index.d.ts +1 -0
  233. package/lib/components/eftpos/group/index.d.ts +1 -0
  234. package/lib/components/eftpos/hooks.d.ts +1 -0
  235. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  236. package/lib/components/eftpos/icon/device.d.ts +1 -0
  237. package/lib/components/eftpos/index.d.ts +1 -0
  238. package/lib/components/eftpos/pos.d.ts +1 -0
  239. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  240. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  241. package/lib/components/eftposPay/amount.d.ts +2 -1
  242. package/lib/components/eftposPay/app.d.ts +1 -0
  243. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  244. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  245. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  246. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  247. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  248. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  249. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  250. package/lib/components/eftposPay/device.d.ts +2 -1
  251. package/lib/components/eftposPay/hooks.d.ts +2 -2
  252. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  253. package/lib/components/eftposPay/store/index.d.ts +5 -5
  254. package/lib/components/eftposPay/tip.d.ts +1 -0
  255. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  256. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  257. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  258. package/lib/components/login/index.d.ts +1 -0
  259. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  260. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  261. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  262. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  263. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  264. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  265. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  266. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  267. package/lib/components/pay/toC/model.d.ts +9 -1
  268. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  269. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  270. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  271. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  272. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  273. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  274. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  275. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  276. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  277. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  278. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  279. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  280. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  281. package/lib/components/productExtension/index.d.ts +1 -0
  282. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  283. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  284. package/lib/components/schedules/calendar/index.d.ts +1 -0
  285. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  286. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  287. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  288. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  289. package/lib/components/schedules/index.js +1 -2
  290. package/lib/components/schedules/model.d.ts +9 -1
  291. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  292. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  293. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  294. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  295. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  296. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  297. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  298. package/lib/components/schedules/products/index.d.ts +1 -0
  299. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  300. package/lib/components/schedules/products/list/index.d.ts +1 -0
  301. package/lib/components/schedules/resources/index.d.ts +1 -0
  302. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  303. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  304. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  305. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  306. package/lib/components/schedules/schedules/index.d.ts +1 -0
  307. package/lib/components/schedules/utils.js +1 -1
  308. package/lib/components/taxSelect/index.d.ts +1 -0
  309. package/lib/components/wallet/Detail/index.js +22 -33
  310. package/lib/components/wallet/Detail/index.less +1 -1
  311. package/lib/components/wallet/Detail/model.d.ts +13 -1
  312. package/lib/components/wallet/Detail/serve.js +1 -1
  313. package/lib/components/wallet/DiscountCard/index.js +0 -5
  314. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  315. package/lib/components/wallet/PointCard/index.js +0 -2
  316. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  317. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  318. package/lib/components/wallet/Voucher/index.js +26 -1
  319. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  320. package/lib/components/wallet/components/WalletCard.js +0 -1
  321. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  322. package/lib/components/wallet/index.js +0 -2
  323. package/lib/components/wallet/model.d.ts +9 -1
  324. package/lib/components/walletList/index.js +2 -3
  325. package/lib/components/walletList/index.less +1 -1
  326. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  327. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  328. package/package.json +4 -4
@@ -3,7 +3,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
3
3
  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."); }
4
4
  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); }
5
5
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
6
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
7
7
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
8
  import React, { useState, useMemo } from "react";
9
9
  import classNames from "classnames";
@@ -60,7 +60,7 @@ var SelectModal = function SelectModal(props) {
60
60
  } : undefined);
61
61
  }, [search, dataSource]);
62
62
  var onSelect = function onSelect(item) {
63
- onChange === null || onChange === void 0 ? void 0 : onChange(changeArray(_value, item, "id"));
63
+ onChange === null || onChange === void 0 || onChange(changeArray(_value, item, "id"));
64
64
  onClose();
65
65
  };
66
66
  return /*#__PURE__*/React.createElement("div", {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  import "./index.less";
3
4
  interface TaxSelectProps {
@@ -9,11 +9,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
9
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React, { useEffect, useMemo, useState, useRef, forwardRef, useImperativeHandle, useCallback, useLayoutEffect } from 'react';
12
+ import { usePisellConfig } from '@pisell/materials';
12
13
  import dayjs from 'dayjs';
13
14
  import XClose from '@pisell/icon/es/XClose';
14
15
  import timezone from 'dayjs/plugin/timezone';
15
16
  // import { isWx, isMobile, isSafari } from '@pisell/utils';
16
-
17
17
  import { isMobile, isIos, locales } from '@pisell/utils';
18
18
  import utc from 'dayjs/plugin/utc';
19
19
  import { ButtonGroupPreview, PisellEmpty, Timeline, PisellAnchor, PisellModal, Typography, PisellStatisticList, Button, PisellToast, Skeleton } from '@pisell/materials';
@@ -23,28 +23,15 @@ import { getAssetList, getDetailApi } from "./serve";
23
23
  import { request } from "./../../../utils";
24
24
  import { WalletBar, FooterButtons } from "../components";
25
25
  import "./index.less";
26
- import classnames from 'classnames';
27
- var Title = Typography.Title,
28
- Text = Typography.Text;
26
+ var Text = Typography.Text;
29
27
  dayjs.extend(timezone);
30
28
  dayjs.extend(utc);
31
-
32
- // 从DetailContext中获取closeDetail函数
33
- var useCloseDetail = function useCloseDetail() {
34
- var detailContext = window.__WALLET_DETAIL_CONTEXT__;
35
- return detailContext === null || detailContext === void 0 ? void 0 : detailContext.closeDetail;
36
- };
37
29
  var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
38
- var _context$appHelper, _utils$getStore, _dvaStore$core, _context$appHelper2, _store$getState, _store$getState2, _detail$machinecode_c2;
30
+ var _context$appHelper, _utils$getStore, _dvaStore$core, _context$appHelper2, _store$getState, _detail$machinecode_c;
39
31
  var _props$detail = props.detail,
40
32
  detail = _props$detail === void 0 ? {} : _props$detail,
41
33
  _props$buttonGroupLis = props.buttonGroupList,
42
34
  buttonGroupList = _props$buttonGroupLis === void 0 ? [[]] : _props$buttonGroupLis,
43
- addWalletCallback = props.addWalletCallback,
44
- _props$style = props.style,
45
- style = _props$style === void 0 ? {} : _props$style,
46
- _props$isDiscoundCard = props.isDiscoundCard,
47
- isDiscoundCard = _props$isDiscoundCard === void 0 ? false : _props$isDiscoundCard,
48
35
  className = props.className,
49
36
  _props$showWalletBar = props.showWalletBar,
50
37
  showWalletBar = _props$showWalletBar === void 0 ? false : _props$showWalletBar,
@@ -52,9 +39,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
52
39
 
53
40
  // 直接从detail对象中解构这些属性可能是问题所在,它们可能不会正确传递
54
41
  // 将它们作为独立属性来处理,避免嵌套解构导致的问题
55
- var _detail$id = detail.id,
56
- id = _detail$id === void 0 ? '' : _detail$id,
57
- _detail$code = detail.code,
42
+ var _detail$code = detail.code,
58
43
  code = _detail$code === void 0 ? '' : _detail$code,
59
44
  _detail$tag = detail.tag,
60
45
  tag = _detail$tag === void 0 ? '' : _detail$tag,
@@ -66,9 +51,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
66
51
  _detail$expire_date = detail.expire_date,
67
52
  expire_date = _detail$expire_date === void 0 ? '' : _detail$expire_date,
68
53
  _detail$product = detail.product,
69
- product = _detail$product === void 0 ? {} : _detail$product,
70
- _detail$machinecode_c = detail.machinecode_config,
71
- machinecode_config = _detail$machinecode_c === void 0 ? {} : _detail$machinecode_c;
54
+ product = _detail$product === void 0 ? {} : _detail$product;
72
55
  var _product$description = product.description,
73
56
  description = _product$description === void 0 ? '' : _product$description;
74
57
  var context = useEngineContext();
@@ -178,16 +161,19 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
178
161
  } else if (tag === 'point_card') {
179
162
  data.splice(2, 0, {
180
163
  label: locales.getText('page.wallet.points'),
181
- value: balance ? "".concat(balance) : ''
164
+ value: balance ? "".concat(Number(balance)) : ''
182
165
  });
183
166
  } else {
184
167
  data.splice(2, 0, {
185
168
  label: locales.getText('page.wallet.balance'),
186
- value: balance ? "".concat(symbol).concat(balance) : ''
169
+ value: balance ? "".concat(symbol).concat(Number(balance)) : ''
187
170
  });
188
171
  }
189
172
  setListData(data);
190
173
  }, [detail]);
174
+ var _usePisellConfig = usePisellConfig(),
175
+ _usePisellConfig$symb = _usePisellConfig.symbol,
176
+ symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
191
177
 
192
178
  // 注册多语言
193
179
  locales.init(localeTexts, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
@@ -198,10 +184,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
198
184
  },
199
185
  store = _ref.store;
200
186
  var platform = isMobile() ? 'h5' : 'pc';
201
- // const symbol =
202
- // store?.getState?.()?.global?.symbol?.shop.currency_symbol || '$';
203
- var symbol = (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 ? void 0 : _store$getState.symbol) || '$';
204
- var timezone = (store === null || store === void 0 || (_store$getState2 = store.getState) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.call(store)) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.global) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.symbol) === null || _store$getState2 === void 0 ? void 0 : _store$getState2.shop.timezone) || 'Asia/Shanghai';
187
+ 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';
205
188
  var formatTimeLineDta = function formatTimeLineDta(data) {
206
189
  if (data.length < 0) return [];
207
190
 
@@ -325,7 +308,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
325
308
 
326
309
  // 如果是积分卡 移除掉2024-8-10之前的数据
327
310
  if (((_filterList$i3 = filterList[i]) === null || _filterList$i3 === void 0 ? void 0 : _filterList$i3.tag) === 'point_card' && dayjs.tz((_filterList$i4 = filterList[i]) === null || _filterList$i4 === void 0 ? void 0 : _filterList$i4.created_at, timezone).unix() < stateTimeUnix) {
328
- filterList.splice(i, 1); // 移除当前索引的元素
311
+ filterList.splice(i, 1); // 移除当前索引的元素
329
312
  }
330
313
  }
331
314
  setTimeLineData(formatTimeLineDta(filterList));
@@ -354,12 +337,6 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
354
337
  getTimeTreeList();
355
338
  }
356
339
  }, [code]);
357
- var cardProps = {
358
- className: classnames('pisell-wallet-card', props.className),
359
- style: {
360
- border: platform === 'pc' ? '1px solid #EAECF0' : 'none'
361
- }
362
- };
363
340
  var onAppleClick = function onAppleClick() {
364
341
  if (isWechat()) {
365
342
  setWechatModalOpen(true);
@@ -792,7 +769,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
792
769
  }, /*#__PURE__*/React.createElement(PisellEmpty, null))))))), platform === 'h5' && /*#__PURE__*/React.createElement(FooterButtons, {
793
770
  step: "detail",
794
771
  onAppleWalletClick: tag === 'gift_card' ? addWalletCard : undefined,
795
- onRechargeClick: tag === 'gift_card' && (detail === null || detail === void 0 || (_detail$machinecode_c2 = detail.machinecode_config) === null || _detail$machinecode_c2 === void 0 ? void 0 : _detail$machinecode_c2.hide_recharge) === 0 ? handleRecharge : undefined,
772
+ onRechargeClick: tag === 'gift_card' && (detail === null || detail === void 0 || (_detail$machinecode_c = detail.machinecode_config) === null || _detail$machinecode_c === void 0 ? void 0 : _detail$machinecode_c.hide_recharge) === 0 ? handleRecharge : undefined,
796
773
  platform: platform,
797
774
  isIOS: isIos()
798
775
  }), /*#__PURE__*/React.createElement(PisellModal, {
@@ -28,7 +28,7 @@
28
28
  inset: 0; /* 简化top, right, bottom, left设置 */
29
29
  display: flex;
30
30
  flex-direction: column;
31
- height: 100vh;
31
+ height: -webkit-fill-available !important;
32
32
 
33
33
  // 样式
34
34
  padding: 0;
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -15,9 +15,7 @@ export var getAssetList = /*#__PURE__*/function () {
15
15
  while (1) switch (_context.prev = _context.next) {
16
16
  case 0:
17
17
  _context.next = 2;
18
- return request.getRequest().get("/h5/pay/asset/lowcode/list", params, {
19
- abort: true
20
- });
18
+ return request.getRequest().get("/h5/pay/asset/lowcode/list", params);
21
19
  case 2:
22
20
  _yield$request$getReq = _context.sent;
23
21
  data = _yield$request$getReq.data;
@@ -29,9 +29,6 @@ var RechargeableCard = Provider(function (props) {
29
29
  var context = useEngineContext();
30
30
  var utils = context.appHelper.utils || {};
31
31
  var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
32
- var _ref = utils || {},
33
- action = _ref.action,
34
- storage = _ref.storage;
35
32
  var platform = useMemo(function () {
36
33
  return isMobile() ? 'h5' : 'pc';
37
34
  }, []);
@@ -61,7 +58,6 @@ var RechargeableCard = Provider(function (props) {
61
58
  });
62
59
 
63
60
  // 添加打印,便于调试
64
- console.log('%c [ DiscountCard global setup sync ]-46', 'font-size:13px; color:#bf2c9f;', globalState.setup);
65
61
  }
66
62
  }, [globalState.setup]);
67
63
 
@@ -87,7 +83,6 @@ var RechargeableCard = Provider(function (props) {
87
83
  });
88
84
 
89
85
  // 添加打印,便于调试
90
- console.log('%c [ DiscountCard setup back ]-51', 'font-size:13px; color:#bf2c9f;', 'list');
91
86
  };
92
87
  var _renderItem = function renderItem(item) {
93
88
  return /*#__PURE__*/React.createElement(WalletCard, {
@@ -152,7 +147,6 @@ var RechargeableCard = Provider(function (props) {
152
147
  if (!(currentDetail !== null && currentDetail !== void 0 && currentDetail.id)) return null;
153
148
 
154
149
  // 打印当前状态
155
- console.log('%c [ DiscountCard detail ]-132', 'font-size:13px; color:#bf2c9f;', globalState.setup);
156
150
 
157
151
  // 添加必要属性,确保详情正确显示
158
152
  var detailWithBar = _objectSpread(_objectSpread({}, currentDetail), {}, {
@@ -187,7 +181,6 @@ var RechargeableCard = Provider(function (props) {
187
181
  });
188
182
 
189
183
  // 添加打印,便于调试
190
- console.log('%c [ DiscountCard setup click ]-178', 'font-size:13px; color:#bf2c9f;', 'detail');
191
184
 
192
185
  // 添加必要属性,确保详情正确显示
193
186
  openDetail(_objectSpread(_objectSpread({}, currentDetail), {}, {
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
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 {};
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  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); }
7
7
  import React, { useContext, useEffect, useRef, useCallback } from 'react';
8
- import { RecordView, PisellEmpty, PisellText, CardMetricItem, Typography } from '@pisell/materials';
8
+ import { RecordView, PisellEmpty, CardMetricItem, Typography } from '@pisell/materials';
9
9
  import { Context, Provider } from "./model";
10
10
  import useEngineContext from "../../../hooks/useEngineContext";
11
11
  import { locales, isMobile } from '@pisell/utils';
@@ -14,7 +14,6 @@ import "./index.less";
14
14
  import { useDetail } from "../DetailContext";
15
15
  import WalletCard from "../components/WalletCard";
16
16
  var Title = Typography.Title;
17
- var Amount = PisellText.Amount;
18
17
  var RechargeableCard = Provider(function (props) {
19
18
  var _utils$getStore, _dvaStore$core;
20
19
  var globalState = props.globalState,
@@ -114,7 +113,6 @@ var RechargeableCard = Provider(function (props) {
114
113
  (_recordViewRef$curren = recordViewRef.current) === null || _recordViewRef$curren === void 0 || _recordViewRef$curren.closeDetailModal();
115
114
  }
116
115
  }, [globalState.setup]);
117
- console.log('%c [ state.total ]-132', 'font-size:13px; color:#bf2c9f;', state.total);
118
116
  return isEmpty ? /*#__PURE__*/React.createElement(PisellEmpty, null) : /*#__PURE__*/React.createElement(React.Fragment, null, platform !== 'pc' && /*#__PURE__*/React.createElement(Title, {
119
117
  className: "wallet-pointCard-title"
120
118
  }, locales.getText('page.wallet.pointCard')), /*#__PURE__*/React.createElement(CardMetricItem, {
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
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 {};
@@ -261,7 +261,6 @@ var RechargeableCard = Provider(function (props) {
261
261
  };
262
262
  // 获取商店信息
263
263
  var shop = ((_dvaStore$core2 = dvaStore.core) === null || _dvaStore$core2 === void 0 || (_dvaStore$core2 = _dvaStore$core2.core) === null || _dvaStore$core2 === void 0 ? void 0 : _dvaStore$core2.shop) || {};
264
-
265
264
  /**
266
265
  * 处理充值
267
266
  */
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1,9 +1,16 @@
1
- import React, { useContext, useEffect, useRef } from 'react';
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
7
+ import React, { useContext, useEffect, useRef, useCallback } from 'react';
2
8
  import { RecordView, PisellEmpty, CardMetricItem, Typography } from '@pisell/materials';
3
9
  import { Context, Provider } from "./model";
4
10
  import WalletCard from "../components/WalletCard";
5
11
  import { useWalletCard } from "../hooks/useWalletCard";
6
12
  import { locales } from '@pisell/utils';
13
+ import { useDetail } from "../DetailContext";
7
14
  import "./index.less";
8
15
  var Title = Typography.Title;
9
16
  /**
@@ -16,7 +23,9 @@ var Voucher = Provider(function (props) {
16
23
  var _globalState$product_ = globalState.product_voucher,
17
24
  product_voucher = _globalState$product_ === void 0 ? [] : _globalState$product_;
18
25
  var recordViewRef = useRef(null);
19
-
26
+ var _useDetail = useDetail(),
27
+ openDetail = _useDetail.openDetail,
28
+ renderDetail = _useDetail.renderDetail;
20
29
  // 使用通用钱包卡片钩子
21
30
  var _useWalletCard = useWalletCard({
22
31
  globalState: globalState,
@@ -57,6 +66,16 @@ var Voucher = Provider(function (props) {
57
66
  if (isEmpty) {
58
67
  return /*#__PURE__*/React.createElement(PisellEmpty, null);
59
68
  }
69
+ // 添加处理后退按钮的方法
70
+ var handleBack = useCallback(function () {
71
+ if (recordViewRef.current) {
72
+ recordViewRef.current.closeDetailModal();
73
+ }
74
+ // 更新状态
75
+ setGlobalState({
76
+ setup: 'list'
77
+ });
78
+ }, [recordViewRef, setGlobalState]);
60
79
  return /*#__PURE__*/React.createElement(React.Fragment, null, platform !== 'pc' && /*#__PURE__*/React.createElement(Title, {
61
80
  className: "wallet-voucher-title"
62
81
  }, locales.getText('page.wallet.voucher')), /*#__PURE__*/React.createElement(CardMetricItem, {
@@ -73,7 +92,21 @@ var Voucher = Provider(function (props) {
73
92
  leftSpan: 9,
74
93
  rightSpan: 15,
75
94
  gutter: 20,
76
- onRowClick: handleRowClick,
95
+ onRowClick: function onRowClick(currentDetail) {
96
+ setGlobalState({
97
+ currentId: currentDetail.id || '',
98
+ currentDetail: currentDetail,
99
+ setup: 'detail' // 设置状态为detail
100
+ });
101
+
102
+ // 添加必要属性,确保详情正确显示
103
+ var detailWithProps = _objectSpread(_objectSpread({}, currentDetail), {}, {
104
+ showWalletBar: platform === 'h5',
105
+ // 添加显示WalletBar的标志
106
+ onBack: handleBack // 添加返回处理函数
107
+ });
108
+ openDetail(detailWithProps);
109
+ },
77
110
  modalWrapStyle: {
78
111
  overflowY: 'auto',
79
112
  top: 68,
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
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 {};
@@ -50,7 +50,6 @@ var WalletCard = function WalletCard(_ref) {
50
50
 
51
51
  // 是否为当前选中项
52
52
  var isActive = id === currentId && platform === 'pc';
53
- console.log('%c [ tag ]-49', 'font-size:13px; color:#bf2c9f;', tag);
54
53
  // 是否禁用
55
54
  var isDisabled = limit_status !== 'enable';
56
55
  return /*#__PURE__*/React.createElement(PisellWalletPassCard, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from '../serve';
2
3
  /**
3
4
  * 钱包卡片Hook的参数
@@ -339,7 +339,6 @@ var Wallet = Provider(function () {
339
339
  * 处理返回按钮点击
340
340
  */
341
341
  var onBack = function onBack() {
342
- console.log('%c [ setup ]-339', 'font-size:13px; color:#bf2c9f;', setup);
343
342
  if (setup === 'menu') {
344
343
  history.back(); // 后退到上一步
345
344
  } else {
@@ -583,7 +582,6 @@ var Wallet = Provider(function () {
583
582
  if (setup === 'menu') {
584
583
  return null;
585
584
  }
586
- console.log('%c [ setup ]-538', 'font-size:13px; background:pink; color:#bf2c9f;', setup);
587
585
  // 添加按钮(setup=list时显示)
588
586
  if (setup === 'list') {
589
587
  return /*#__PURE__*/React.createElement(Button, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
@@ -523,12 +523,10 @@ var WalletList = Provider(function (props) {
523
523
  return {
524
524
  key: key,
525
525
  label: key,
526
- // 不做多语言处理,保持原样
527
526
  hidden: false,
528
527
  value: balanceKey ? balance[balanceKey] || 0 : 0
529
528
  };
530
529
  });
531
-
532
530
  // 构建WalletCard的props
533
531
  // 优先级:接口返回值 > globalState > DEFAULT_CARD_CONFIG
534
532
  var cardProps = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_CARD_CONFIG), globalState), {}, {
@@ -636,7 +634,7 @@ var WalletList = Provider(function (props) {
636
634
  // 如果是加载中,显示骨架屏
637
635
  if (loading) {
638
636
  return /*#__PURE__*/React.createElement("div", {
639
- className: "pisell-wallet-container pisell-wallet-skeleton"
637
+ className: "pisell-wallet-list-container pisell-wallet-skeleton"
640
638
  }, /*#__PURE__*/React.createElement("div", {
641
639
  className: "wallet-content"
642
640
  }, /*#__PURE__*/React.createElement("div", {
@@ -687,7 +685,7 @@ var WalletList = Provider(function (props) {
687
685
 
688
686
  // 正常渲染钱包列表
689
687
  return /*#__PURE__*/React.createElement("div", {
690
- className: "pisell-wallet-container"
688
+ className: "pisell-wallet-list-container"
691
689
  }, /*#__PURE__*/React.createElement("div", {
692
690
  className: "wallet-content"
693
691
  }, /*#__PURE__*/React.createElement(Carousel, _extends({
@@ -104,7 +104,7 @@
104
104
  }
105
105
  }
106
106
 
107
- .pisell-wallet-container {
107
+ .pisell-wallet-list-container {
108
108
  overflow: visible;
109
109
  /* 修改为visible允许内容溢出显示 */
110
110
  width: 100%;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
8
8
  var _utils$getComponents;
9
9
  var _ref = appHelper || {},
10
10
  utils = _ref.utils;
11
- return (utils === null || utils === void 0 ? void 0 : (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
11
+ return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
12
12
  }, [components]);
13
13
  return Cpt;
14
14
  };
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
3
4
  export default SelectProductItem;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 空状态
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
3
4
  export default FooterMenus;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
3
4
  export default Table;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
3
  export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;