@pisell/private-materials 6.4.56 → 6.4.58

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 (462) 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 -12
  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 +6 -6
  11. package/es/components/booking/components/actionButtons/index.js +15 -7
  12. package/es/components/booking/components/footer/amount.js +1 -1
  13. package/es/components/booking/components/footer/index.js +2 -2
  14. package/es/components/booking/components/footer/utils.js +7 -2
  15. package/es/components/booking/components/voucher/index.js +23 -19
  16. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  17. package/es/components/booking/info2/cartClientCard/index.js +7 -3
  18. package/es/components/checkout/PaymentModal.js +17 -12
  19. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  20. package/es/components/checkout/hooks/useWalletPass.js +36 -21
  21. package/es/components/eftposPay/amount.d.ts +1 -1
  22. package/es/components/eftposPay/device.d.ts +1 -1
  23. package/es/components/eftposPay/hooks.d.ts +1 -1
  24. package/es/components/eftposPay/store/index.d.ts +3 -3
  25. package/es/components/list/List.d.ts +5 -0
  26. package/es/components/list/List.js +957 -0
  27. package/es/components/list/List.less +2 -0
  28. package/es/components/list/ResponsiveWrapper.d.ts +16 -0
  29. package/es/components/list/ResponsiveWrapper.js +130 -0
  30. package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
  31. package/es/components/list/TestResponsiveWrapper.js +816 -0
  32. package/es/components/list/TestResponsiveWrapper.less +968 -0
  33. package/es/components/list/components/EmptyState/EmptyState.d.ts +20 -0
  34. package/es/components/list/components/EmptyState/EmptyState.js +75 -0
  35. package/es/components/list/components/EmptyState/EmptyState.less +121 -0
  36. package/es/components/list/components/EmptyState/index.d.ts +2 -0
  37. package/es/components/list/components/EmptyState/index.js +1 -0
  38. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  39. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
  40. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
  41. package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  42. package/es/components/list/components/ListItemSkeleton/index.js +2 -0
  43. package/es/components/list/components/Pagination/Pagination.d.ts +30 -0
  44. package/es/components/list/components/Pagination/Pagination.js +240 -0
  45. package/es/components/list/components/Pagination/Pagination.less +439 -0
  46. package/es/components/list/components/Pagination/index.d.ts +1 -0
  47. package/es/components/list/components/Pagination/index.js +1 -0
  48. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  49. package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
  50. package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
  51. package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
  52. package/es/components/list/components/ScrollLoader/index.js +1 -0
  53. package/es/components/list/components/Tab/Tab.d.ts +5 -0
  54. package/es/components/list/components/Tab/Tab.js +43 -0
  55. package/es/components/list/components/Tab/Tab.less +139 -0
  56. package/es/components/list/components/Tab/index.d.ts +2 -0
  57. package/es/components/list/components/Tab/index.js +1 -0
  58. package/es/components/list/components/Tab/types.d.ts +14 -0
  59. package/es/components/list/components/Tab/types.js +1 -0
  60. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  61. package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
  62. package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
  63. package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
  64. package/es/components/list/components/TabSkeleton/index.js +2 -0
  65. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  66. package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
  67. package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
  68. package/es/components/list/components/WaterfallList/index.d.ts +2 -0
  69. package/es/components/list/components/WaterfallList/index.js +1 -0
  70. package/es/components/list/examples/GroupedListExample.d.ts +3 -0
  71. package/es/components/list/examples/GroupedListExample.js +207 -0
  72. package/es/components/list/hooks/index.d.ts +5 -0
  73. package/es/components/list/hooks/index.js +3 -0
  74. package/es/components/list/hooks/useDevice.d.ts +24 -0
  75. package/es/components/list/hooks/useDevice.js +102 -0
  76. package/es/components/list/hooks/useListState.d.ts +43 -0
  77. package/es/components/list/hooks/useListState.js +176 -0
  78. package/es/components/list/hooks/useWaterfall.d.ts +34 -0
  79. package/es/components/list/hooks/useWaterfall.js +161 -0
  80. package/es/components/list/index.d.ts +10 -0
  81. package/es/components/list/index.js +7 -0
  82. package/es/components/list/locales.d.ts +66 -0
  83. package/es/components/list/locales.js +107 -0
  84. package/es/components/list/styles/base.less +39 -0
  85. package/es/components/list/styles/content.less +416 -0
  86. package/es/components/list/styles/floatButton.less +107 -0
  87. package/es/components/list/styles/footer.less +49 -0
  88. package/es/components/list/styles/header.less +69 -0
  89. package/es/components/list/styles/responsive.less +166 -0
  90. package/es/components/list/types.d.ts +177 -0
  91. package/es/components/list/types.js +1 -0
  92. package/es/components/list/utils/getText.d.ts +53 -0
  93. package/es/components/list/utils/getText.js +150 -0
  94. package/es/components/list/utils/index.d.ts +4 -0
  95. package/es/components/list/utils/index.js +5 -0
  96. package/es/components/pay/toB/store/hooks.js +19 -5
  97. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
  98. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
  99. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  100. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
  101. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
  102. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  103. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
  104. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
  105. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
  106. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
  107. package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
  108. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
  109. package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
  110. package/es/components/ticketBooking/components/menuBar/index.d.ts +5 -1
  111. package/es/components/ticketBooking/components/menuBar/index.js +40 -17
  112. package/es/components/ticketBooking/components/menuBar/index.less +27 -1
  113. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
  114. package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
  115. package/es/components/ticketBooking/components/timeBar/index.less +1 -0
  116. package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  117. package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
  118. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  119. package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
  120. package/es/components/ticketBooking/context/index.d.ts +2 -0
  121. package/es/components/ticketBooking/context/index.js +2 -0
  122. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
  123. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
  124. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
  125. package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
  126. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  127. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
  128. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
  129. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +43 -9
  130. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
  131. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
  132. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  133. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
  134. package/es/components/ticketBooking/index.d.ts +6 -0
  135. package/es/components/ticketBooking/index.js +86 -11
  136. package/es/components/ticketBooking/utils/index.d.ts +30 -2
  137. package/es/components/ticketBooking/utils/index.js +50 -1
  138. package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
  139. package/es/components/ticketBooking/utils/productCache.js +184 -0
  140. package/es/index.d.ts +2 -0
  141. package/es/index.js +3 -1
  142. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
  143. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
  144. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
  145. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
  146. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
  147. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
  148. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
  149. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
  150. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
  151. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
  152. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
  153. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
  154. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
  155. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
  156. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
  157. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
  158. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
  159. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
  160. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
  161. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
  162. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
  163. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
  164. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
  165. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
  166. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  167. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
  168. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
  169. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
  170. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
  171. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
  172. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
  173. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +75 -0
  174. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
  175. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
  176. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +39 -0
  177. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
  178. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
  179. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
  180. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
  181. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  182. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
  183. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
  186. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
  187. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
  188. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
  189. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
  190. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
  191. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
  192. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
  193. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
  194. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
  195. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
  196. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  197. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
  198. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
  199. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
  200. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
  201. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
  202. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  203. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
  204. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
  205. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
  206. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
  207. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
  208. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  209. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
  210. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
  211. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  212. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
  213. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
  214. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  215. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
  216. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
  217. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  218. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
  219. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
  220. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
  221. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
  222. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
  223. package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
  224. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  225. package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
  226. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  227. package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
  228. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  229. package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
  230. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  231. package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
  232. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
  233. package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
  234. package/es/plus/saasLogin/utils.d.ts +5 -5
  235. package/lib/components/booking/components/actionButtons/index.js +22 -15
  236. package/lib/components/booking/components/footer/amount.js +1 -1
  237. package/lib/components/booking/components/footer/index.js +2 -2
  238. package/lib/components/booking/components/footer/utils.js +7 -2
  239. package/lib/components/booking/components/voucher/index.js +33 -40
  240. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  241. package/lib/components/booking/info2/cartClientCard/index.js +7 -3
  242. package/lib/components/checkout/PaymentModal.js +15 -12
  243. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  244. package/lib/components/checkout/hooks/useWalletPass.js +57 -45
  245. package/lib/components/eftposPay/amount.d.ts +1 -1
  246. package/lib/components/eftposPay/device.d.ts +1 -1
  247. package/lib/components/eftposPay/hooks.d.ts +1 -1
  248. package/lib/components/eftposPay/store/index.d.ts +3 -3
  249. package/lib/components/list/List.d.ts +5 -0
  250. package/lib/components/list/List.js +771 -0
  251. package/lib/components/list/List.less +2 -0
  252. package/lib/components/list/ResponsiveWrapper.d.ts +16 -0
  253. package/lib/components/list/ResponsiveWrapper.js +145 -0
  254. package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
  255. package/lib/components/list/TestResponsiveWrapper.js +493 -0
  256. package/lib/components/list/TestResponsiveWrapper.less +968 -0
  257. package/lib/components/list/components/EmptyState/EmptyState.d.ts +20 -0
  258. package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
  259. package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
  260. package/lib/components/list/components/EmptyState/index.d.ts +2 -0
  261. package/lib/components/list/components/EmptyState/index.js +35 -0
  262. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  263. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
  264. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
  265. package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  266. package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
  267. package/lib/components/list/components/Pagination/Pagination.d.ts +30 -0
  268. package/lib/components/list/components/Pagination/Pagination.js +205 -0
  269. package/lib/components/list/components/Pagination/Pagination.less +439 -0
  270. package/lib/components/list/components/Pagination/index.d.ts +1 -0
  271. package/lib/components/list/components/Pagination/index.js +35 -0
  272. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  273. package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
  274. package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
  275. package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
  276. package/lib/components/list/components/ScrollLoader/index.js +35 -0
  277. package/lib/components/list/components/Tab/Tab.d.ts +5 -0
  278. package/lib/components/list/components/Tab/Tab.js +72 -0
  279. package/lib/components/list/components/Tab/Tab.less +139 -0
  280. package/lib/components/list/components/Tab/index.d.ts +2 -0
  281. package/lib/components/list/components/Tab/index.js +35 -0
  282. package/lib/components/list/components/Tab/types.d.ts +14 -0
  283. package/lib/components/list/components/Tab/types.js +17 -0
  284. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  285. package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
  286. package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
  287. package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
  288. package/lib/components/list/components/TabSkeleton/index.js +41 -0
  289. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  290. package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
  291. package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
  292. package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
  293. package/lib/components/list/components/WaterfallList/index.js +35 -0
  294. package/lib/components/list/examples/GroupedListExample.d.ts +3 -0
  295. package/lib/components/list/examples/GroupedListExample.js +210 -0
  296. package/lib/components/list/hooks/index.d.ts +5 -0
  297. package/lib/components/list/hooks/index.js +47 -0
  298. package/lib/components/list/hooks/useDevice.d.ts +24 -0
  299. package/lib/components/list/hooks/useDevice.js +96 -0
  300. package/lib/components/list/hooks/useListState.d.ts +43 -0
  301. package/lib/components/list/hooks/useListState.js +149 -0
  302. package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
  303. package/lib/components/list/hooks/useWaterfall.js +124 -0
  304. package/lib/components/list/index.d.ts +10 -0
  305. package/lib/components/list/index.js +60 -0
  306. package/lib/components/list/locales.d.ts +66 -0
  307. package/lib/components/list/locales.js +113 -0
  308. package/lib/components/list/styles/base.less +39 -0
  309. package/lib/components/list/styles/content.less +416 -0
  310. package/lib/components/list/styles/floatButton.less +107 -0
  311. package/lib/components/list/styles/footer.less +49 -0
  312. package/lib/components/list/styles/header.less +69 -0
  313. package/lib/components/list/styles/responsive.less +166 -0
  314. package/lib/components/list/types.d.ts +177 -0
  315. package/lib/components/list/types.js +17 -0
  316. package/lib/components/list/utils/getText.d.ts +53 -0
  317. package/lib/components/list/utils/getText.js +95 -0
  318. package/lib/components/list/utils/index.d.ts +4 -0
  319. package/lib/components/list/utils/index.js +43 -0
  320. package/lib/components/pay/toB/store/hooks.js +16 -8
  321. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
  322. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
  323. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  324. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
  325. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
  326. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  327. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
  328. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
  329. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
  330. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
  331. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
  332. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
  333. package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
  334. package/lib/components/ticketBooking/components/menuBar/index.d.ts +5 -1
  335. package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
  336. package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
  337. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
  338. package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
  339. package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
  340. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  341. package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
  342. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  343. package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
  344. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  345. package/lib/components/ticketBooking/context/index.js +44 -0
  346. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
  347. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
  348. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
  349. package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
  350. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  351. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
  352. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
  353. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +26 -4
  354. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
  355. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
  356. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  357. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
  358. package/lib/components/ticketBooking/index.d.ts +6 -0
  359. package/lib/components/ticketBooking/index.js +64 -8
  360. package/lib/components/ticketBooking/utils/index.d.ts +30 -2
  361. package/lib/components/ticketBooking/utils/index.js +70 -2
  362. package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
  363. package/lib/components/ticketBooking/utils/productCache.js +144 -0
  364. package/lib/index.d.ts +2 -0
  365. package/lib/index.js +6 -0
  366. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
  367. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
  368. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
  369. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
  370. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
  371. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
  372. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
  373. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
  374. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
  375. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
  376. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
  377. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
  378. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
  379. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
  380. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
  381. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
  382. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
  383. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
  384. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
  385. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
  386. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
  387. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
  388. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
  389. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
  390. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  391. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
  392. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
  393. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
  394. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
  395. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
  396. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
  397. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
  398. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
  399. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
  400. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
  401. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
  402. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
  403. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
  404. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
  405. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  406. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
  407. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
  408. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
  409. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
  410. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
  411. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
  412. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
  413. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
  414. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
  415. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
  416. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
  417. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
  418. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
  419. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
  420. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  421. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
  422. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
  423. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
  424. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
  425. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
  426. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  427. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
  428. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
  429. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
  430. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
  431. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
  432. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  433. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
  434. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
  435. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  436. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
  437. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
  438. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  439. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
  440. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
  441. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  442. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
  443. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
  444. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
  445. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
  446. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
  447. package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
  448. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  449. package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
  450. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  451. package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
  452. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  453. package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
  454. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  455. package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
  456. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
  457. package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
  458. package/lib/plus/saasLogin/utils.d.ts +5 -5
  459. package/lowcode/sku-card/meta.ts +1812 -0
  460. package/lowcode/sku-card/snippets.ts +372 -0
  461. package/lowcode/sku-list/meta.ts +410 -0
  462. package/package.json +12 -12
@@ -0,0 +1,37 @@
1
+ import React, { createContext, useContext } from 'react';
2
+
3
+ /**
4
+ * IsActive Context
5
+ * 用于在 TicketBooking 组件树中提供 isActive 状态
6
+ * isActive 用于标识当前组件是否处于激活状态
7
+ */
8
+
9
+ var IsActiveContext = /*#__PURE__*/createContext({
10
+ isActive: true
11
+ });
12
+ /**
13
+ * IsActive Provider
14
+ * 提供 isActive 给子组件使用
15
+ */
16
+ export var IsActiveProvider = function IsActiveProvider(_ref) {
17
+ var isActive = _ref.isActive,
18
+ children = _ref.children;
19
+ return /*#__PURE__*/React.createElement(IsActiveContext.Provider, {
20
+ value: {
21
+ isActive: isActive
22
+ }
23
+ }, children);
24
+ };
25
+
26
+ /**
27
+ * useIsActive Hook
28
+ * 在子组件中使用此 hook 获取 isActive 状态
29
+ */
30
+ export var useIsActive = function useIsActive() {
31
+ var context = useContext(IsActiveContext);
32
+ if (!context) {
33
+ throw new Error('useIsActive must be used within an IsActiveProvider');
34
+ }
35
+ return context.isActive;
36
+ };
37
+ export default IsActiveContext;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ /**
3
+ * OsKey Context
4
+ * 用于在 TicketBooking 组件树中提供 pisellos 的 osKey
5
+ * osKey 用于区分不同页面使用同一个组件时的模块标识
6
+ */
7
+ interface OsKeyContextType {
8
+ /** pisellos 模块的唯一标识 */
9
+ osKey: string | undefined;
10
+ }
11
+ declare const OsKeyContext: React.Context<OsKeyContextType>;
12
+ interface OsKeyProviderProps {
13
+ osKey: string | undefined;
14
+ children: React.ReactNode;
15
+ }
16
+ /**
17
+ * OsKey Provider
18
+ * 提供 osKey 给子组件使用
19
+ */
20
+ export declare const OsKeyProvider: React.FC<OsKeyProviderProps>;
21
+ /**
22
+ * useOsKey Hook
23
+ * 在子组件中使用此 hook 获取 osKey
24
+ */
25
+ export declare const useOsKey: () => string;
26
+ export default OsKeyContext;
@@ -0,0 +1,37 @@
1
+ import React, { createContext, useContext } from 'react';
2
+
3
+ /**
4
+ * OsKey Context
5
+ * 用于在 TicketBooking 组件树中提供 pisellos 的 osKey
6
+ * osKey 用于区分不同页面使用同一个组件时的模块标识
7
+ */
8
+
9
+ var OsKeyContext = /*#__PURE__*/createContext({
10
+ osKey: undefined
11
+ });
12
+ /**
13
+ * OsKey Provider
14
+ * 提供 osKey 给子组件使用
15
+ */
16
+ export var OsKeyProvider = function OsKeyProvider(_ref) {
17
+ var osKey = _ref.osKey,
18
+ children = _ref.children;
19
+ return /*#__PURE__*/React.createElement(OsKeyContext.Provider, {
20
+ value: {
21
+ osKey: osKey
22
+ }
23
+ }, children);
24
+ };
25
+
26
+ /**
27
+ * useOsKey Hook
28
+ * 在子组件中使用此 hook 获取 osKey
29
+ */
30
+ export var useOsKey = function useOsKey() {
31
+ var context = useContext(OsKeyContext);
32
+ if (!context) {
33
+ throw new Error('useOsKey must be used within an OsKeyProvider');
34
+ }
35
+ return (context === null || context === void 0 ? void 0 : context.osKey) || "ticket";
36
+ };
37
+ export default OsKeyContext;
@@ -0,0 +1,2 @@
1
+ export { OsKeyProvider, useOsKey } from './OsKeyContext';
2
+ export { default as OsKeyContext } from './OsKeyContext';
@@ -0,0 +1,2 @@
1
+ export { OsKeyProvider, useOsKey } from "./OsKeyContext";
2
+ export { default as OsKeyContext } from "./OsKeyContext";
@@ -1 +1,6 @@
1
+ /**
2
+ * useBookingTicket Hook
3
+ * 获取当前 TicketBooking 实例对应的 BookingTicket 模块
4
+ * 通过 osKey 区分不同页面的模块实例
5
+ */
1
6
  export declare const useBookingTicket: () => any;
@@ -1,5 +1,17 @@
1
1
  import { usePisellOS } from "../../../../hooks/useEngineContext";
2
+ import { useOsKey } from "../../context/OsKeyContext";
3
+ import { getBookingTicketKey } from "../../utils";
4
+
5
+ /**
6
+ * useBookingTicket Hook
7
+ * 获取当前 TicketBooking 实例对应的 BookingTicket 模块
8
+ * 通过 osKey 区分不同页面的模块实例
9
+ */
2
10
  export var useBookingTicket = function useBookingTicket() {
3
11
  var pisellOS = usePisellOS();
4
- return pisellOS.getModule('bookingTicket');
12
+ var osKey = useOsKey();
13
+
14
+ // 根据 osKey 生成模块名称
15
+ var moduleKey = getBookingTicketKey(osKey || 'ticket');
16
+ return pisellOS.getModule(moduleKey);
5
17
  };
@@ -1,3 +1,4 @@
1
1
  export * from './bookingTicket';
2
2
  export * from './useProducts';
3
3
  export * from './useCustomer';
4
+ export * from './useActiveExecute';
@@ -1,3 +1,4 @@
1
1
  export * from "./bookingTicket";
2
2
  export * from "./useProducts";
3
- export * from "./useCustomer";
3
+ export * from "./useCustomer";
4
+ export * from "./useActiveExecute";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * useActiveExecute Hook
3
+ * 返回一个函数,该函数接收一个回调函数,并返回一个包装后的函数
4
+ * 包装后的函数只在 isActive 为 true 时执行原始回调
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const { executeIfActive } = useActiveExecute();
9
+ *
10
+ * // 创建一个包装函数用于事件监听
11
+ * const handleChange = (data) => {
12
+ * console.log('data:', data);
13
+ * };
14
+ *
15
+ * // 返回的函数会在被调用时检查 isActive
16
+ * pisellos.effects.on('event', executeIfActive(handleChange));
17
+ * ```
18
+ */
19
+ export declare const useActiveExecute: () => {
20
+ executeIfActive: <T extends (...args: any[]) => any>(fn: T) => T;
21
+ };
@@ -0,0 +1,50 @@
1
+ import { useMemoizedFn } from 'ahooks';
2
+ import { useRef, useEffect } from 'react';
3
+ import { useIsActive } from "../../context/IsActiveContext";
4
+
5
+ /**
6
+ * useActiveExecute Hook
7
+ * 返回一个函数,该函数接收一个回调函数,并返回一个包装后的函数
8
+ * 包装后的函数只在 isActive 为 true 时执行原始回调
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const { executeIfActive } = useActiveExecute();
13
+ *
14
+ * // 创建一个包装函数用于事件监听
15
+ * const handleChange = (data) => {
16
+ * console.log('data:', data);
17
+ * };
18
+ *
19
+ * // 返回的函数会在被调用时检查 isActive
20
+ * pisellos.effects.on('event', executeIfActive(handleChange));
21
+ * ```
22
+ */
23
+ export var useActiveExecute = function useActiveExecute() {
24
+ var isActive = useIsActive();
25
+ // 使用 ref 存储最新的 isActive 值,避免闭包陷阱
26
+ var isActiveRef = useRef(isActive);
27
+
28
+ // 每次 isActive 变化时更新 ref
29
+ useEffect(function () {
30
+ isActiveRef.current = isActive;
31
+ }, [isActive]);
32
+
33
+ /**
34
+ * executeIfActive 接收一个函数,返回一个包装后的函数
35
+ * 包装后的函数会接收所有参数,并在 isActive 为 true 时调用原始函数
36
+ */
37
+ var executeIfActive = useMemoizedFn(function (fn) {
38
+ return function () {
39
+ // 使用 ref.current 获取最新的 isActive 值
40
+ if (!isActiveRef.current) return;
41
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
42
+ args[_key] = arguments[_key];
43
+ }
44
+ return fn === null || fn === void 0 ? void 0 : fn.apply(void 0, args);
45
+ };
46
+ });
47
+ return {
48
+ executeIfActive: executeIfActive
49
+ };
50
+ };
@@ -17,9 +17,12 @@ import { useState, useEffect } from 'react';
17
17
  import { useBookingTicket } from "./bookingTicket";
18
18
  import { usePisellOS } from "../../../../hooks/useEngineContext";
19
19
  import { useMemoizedFn } from 'ahooks';
20
+ import { useActiveExecute } from "./useActiveExecute";
20
21
  export var useCustomer = function useCustomer(props) {
21
22
  var bookingTicket = useBookingTicket();
22
23
  var pisellos = usePisellOS();
24
+ var _useActiveExecute = useActiveExecute(),
25
+ executeIfActive = _useActiveExecute.executeIfActive;
23
26
 
24
27
  // 客户列表
25
28
  var _useState = useState([]),
@@ -59,10 +62,12 @@ export var useCustomer = function useCustomer(props) {
59
62
 
60
63
  // 监听事件
61
64
  useEffect(function () {
62
- if (!pisellos) {
65
+ var _bookingTicket$store;
66
+ if (!bookingTicket) {
63
67
  return;
64
68
  }
65
- var unlisten1 = pisellos.effects.on('customer:onUpdate', function (state) {
69
+ var customerModule = bookingTicket === null || bookingTicket === void 0 || (_bookingTicket$store = bookingTicket.store) === null || _bookingTicket$store === void 0 ? void 0 : _bookingTicket$store.customer;
70
+ var wrappedOnCustomerListUpdate = executeIfActive(function (state) {
66
71
  setCustomers(state.customerList);
67
72
  setHasMore(state.hasMore);
68
73
  setPagination(function (prev) {
@@ -73,14 +78,17 @@ export var useCustomer = function useCustomer(props) {
73
78
  });
74
79
  });
75
80
  });
76
- var unlisten2 = pisellos.effects.on('customer:onSelected', function (customer) {
81
+ var wrappedOnCustomerSelected = executeIfActive(function (customer) {
77
82
  var _props$changeCustomer;
78
83
  setSelectedCustomer(customer);
79
84
  (_props$changeCustomer = props.changeCustomerToGlobalState) === null || _props$changeCustomer === void 0 || _props$changeCustomer.call(props, customer);
80
85
  });
81
- var unlisten3 = pisellos.effects.on('customer:onPaginationChange', function (paginationInfo) {
86
+ var wrappedOnPaginationChange = executeIfActive(function (paginationInfo) {
82
87
  setPagination(paginationInfo);
83
88
  });
89
+ var unlisten1 = customerModule.effectsOn('onCustomerListUpdate', wrappedOnCustomerListUpdate);
90
+ var unlisten2 = customerModule.effectsOn('onCustomerSelected', wrappedOnCustomerSelected);
91
+ var unlisten3 = customerModule.effectsOn('onPaginationChange', wrappedOnPaginationChange);
84
92
  return function () {
85
93
  unlisten1();
86
94
  unlisten2();
@@ -10,9 +10,12 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import { useMemoizedFn } from 'ahooks';
12
12
  import { useBookingTicket } from "./bookingTicket";
13
- import { useState } from 'react';
13
+ import { useState, useRef } from 'react';
14
+ import { useOsKey } from "../../context/OsKeyContext";
15
+ import { getProductCache, setProductCache } from "../../utils/productCache";
14
16
  export var useProducts = function useProducts() {
15
17
  var bookingTicket = useBookingTicket();
18
+ var osKey = useOsKey();
16
19
  var _useState = useState([]),
17
20
  _useState2 = _slicedToArray(_useState, 2),
18
21
  products = _useState2[0],
@@ -21,24 +24,55 @@ export var useProducts = function useProducts() {
21
24
  _useState4 = _slicedToArray(_useState3, 2),
22
25
  loading = _useState4[0],
23
26
  setLoading = _useState4[1];
27
+ var isFirstLoadRef = useRef(true);
24
28
  var getProducts = useMemoizedFn( /*#__PURE__*/function () {
25
29
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26
- var products;
30
+ var cachedProducts, freshProducts;
27
31
  return _regeneratorRuntime().wrap(function _callee$(_context) {
28
32
  while (1) switch (_context.prev = _context.next) {
29
33
  case 0:
30
- setLoading(true);
31
- _context.next = 3;
34
+ // 1. 如果是首次加载,尝试从缓存中获取数据
35
+ if (isFirstLoadRef.current && osKey) {
36
+ cachedProducts = getProductCache(osKey);
37
+ if (cachedProducts) {
38
+ // 先展示缓存数据
39
+ setProducts(cachedProducts);
40
+ setLoading(false);
41
+ }
42
+ isFirstLoadRef.current = false;
43
+ } else {
44
+ setLoading(true);
45
+ }
46
+
47
+ // 2. 无论是否有缓存,都调用接口获取最新数据
48
+ _context.prev = 1;
49
+ _context.next = 4;
32
50
  return bookingTicket.loadProducts(params);
33
- case 3:
34
- products = _context.sent;
35
- setProducts(products);
51
+ case 4:
52
+ freshProducts = _context.sent;
53
+ // 3. 更新展示数据
54
+ setProducts(freshProducts);
55
+
56
+ // 4. 将新数据缓存到 storage
57
+ if (osKey) {
58
+ setProductCache(osKey, freshProducts);
59
+ console.log('[ProductCache] 已更新缓存');
60
+ }
61
+ _context.next = 12;
62
+ break;
63
+ case 9:
64
+ _context.prev = 9;
65
+ _context.t0 = _context["catch"](1);
66
+ console.error('[ProductCache] 获取产品失败:', _context.t0);
67
+ case 12:
68
+ _context.prev = 12;
36
69
  setLoading(false);
37
- case 6:
70
+ return _context.finish(12);
71
+ case 15:
38
72
  case "end":
39
73
  return _context.stop();
40
74
  }
41
- }, _callee);
75
+ }, _callee, null, [[1, 9, 12, 15]]);
42
76
  }));
43
77
  return function (_x) {
44
78
  return _ref.apply(this, arguments);
@@ -3,13 +3,16 @@ import { locales } from "@pisell/utils";
3
3
  import { useBookingTicket } from "./bookingTicket";
4
4
  import { formatScanCustomer } from "../../utils";
5
5
  import { useToast } from '@pisell/materials';
6
+ import { useActiveExecute } from "./useActiveExecute";
6
7
  var useScanCustomer = function useScanCustomer() {
7
8
  var bookingTicket = useBookingTicket();
8
9
  var scanRef = useRef(null);
9
10
  var Toast = useToast();
11
+ var _useActiveExecute = useActiveExecute(),
12
+ executeIfActive = _useActiveExecute.executeIfActive;
10
13
  var handleScanCustomer = function handleScanCustomer(callback) {
11
14
  console.log('handleScanCustomer>>>>>>>', callback);
12
- scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanCustomerListener(function (data) {
15
+ scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanCustomerListener(executeIfActive(function (data) {
13
16
  console.log('scanCustomerListener>>>>>>>', data);
14
17
  if (data.status === 'failed') {
15
18
  Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
@@ -17,7 +20,7 @@ var useScanCustomer = function useScanCustomer() {
17
20
  }
18
21
  var customer = formatScanCustomer(data);
19
22
  callback(customer);
20
- });
23
+ }));
21
24
  };
22
25
  return {
23
26
  openScan: handleScanCustomer,
@@ -3,12 +3,17 @@ import { useBookingTicket } from "./bookingTicket";
3
3
  import { formatScanGlobal } from "../../utils";
4
4
  import { useToast } from '@pisell/materials';
5
5
  import { locales } from '@pisell/utils';
6
+ import { useActiveExecute } from "./useActiveExecute";
6
7
  var useScanGlobal = function useScanGlobal() {
7
8
  var bookingTicket = useBookingTicket();
8
9
  var scanRef = useRef(null);
9
10
  var Toast = useToast();
11
+ var _useActiveExecute = useActiveExecute(),
12
+ executeIfActive = _useActiveExecute.executeIfActive;
10
13
  var handleScanGlobal = function handleScanGlobal(callback) {
11
- scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanGlobalListener(function (data) {
14
+ var _bookingTicket$initPe;
15
+ bookingTicket === null || bookingTicket === void 0 || (_bookingTicket$initPe = bookingTicket.initPeripheralsListener) === null || _bookingTicket$initPe === void 0 || _bookingTicket$initPe.call(bookingTicket);
16
+ scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanGlobalListener(executeIfActive(function (data) {
12
17
  console.log('scanGlobalListener>>>>>>>', data);
13
18
  if (data.status === 'failed') {
14
19
  Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
@@ -16,7 +21,7 @@ var useScanGlobal = function useScanGlobal() {
16
21
  }
17
22
  var result = formatScanGlobal(data);
18
23
  callback(result);
19
- });
24
+ }));
20
25
  };
21
26
  return {
22
27
  openScan: handleScanGlobal,
@@ -0,0 +1,6 @@
1
+ /**
2
+ * useShopDiscountModule Hook
3
+ * 获取当前 ShopDiscount 模块
4
+ * 通过 osKey 区分不同页面的模块实例
5
+ */
6
+ export declare const useShopDiscountModule: () => any;
@@ -0,0 +1,17 @@
1
+ import { usePisellOS } from "../../../../hooks/useEngineContext";
2
+ import { useOsKey } from "../../context/OsKeyContext";
3
+ import { getShopDiscountKey } from "../../utils";
4
+
5
+ /**
6
+ * useShopDiscountModule Hook
7
+ * 获取当前 ShopDiscount 模块
8
+ * 通过 osKey 区分不同页面的模块实例
9
+ */
10
+ export var useShopDiscountModule = function useShopDiscountModule() {
11
+ var pisellOS = usePisellOS();
12
+ var osKey = useOsKey();
13
+
14
+ // 根据 osKey 生成模块名称
15
+ var moduleKey = getShopDiscountKey(osKey || 'ticket');
16
+ return pisellOS.getModule(moduleKey);
17
+ };
@@ -1,8 +1,14 @@
1
+ import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
4
5
  bookingConfigParams: Record<string, any>;
5
6
  isShowMenuBar?: boolean;
7
+ isShowTimeBar?: boolean;
8
+ isShowFloatButtons?: boolean;
9
+ productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
10
+ isActive?: boolean;
11
+ rulesHooks?: any;
6
12
  }
7
13
  declare const _default: (props: TicketBookingProps) => JSX.Element;
8
14
  export default _default;
@@ -1,6 +1,12 @@
1
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
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
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
+ 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."); }
6
+ 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); }
7
+ 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; }
8
+ 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; } }
9
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
4
10
  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
11
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
12
  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); }
@@ -12,9 +18,12 @@ import { cloneDeep } from 'lodash';
12
18
  import TicketBooking from "./components/ticketBooking/index";
13
19
  import { request } from "../../utils";
14
20
  import useEngineContext from "../../hooks/useEngineContext";
15
- import { getDefaultStartParam } from "./utils";
21
+ import { getBookingTicketKey, getDefaultStartParam, getShopDiscountKey, rulesHooks } from "./utils";
16
22
  import localeTexts from "./locales";
17
23
  import MenuBar from "./components/menuBar";
24
+ import { useLocalStorageState } from 'ahooks';
25
+ import { OsKeyProvider } from "./context/OsKeyContext";
26
+ import { IsActiveProvider } from "./context/IsActiveContext";
18
27
  import "./index.less";
19
28
  var initialState = {
20
29
  amountSymbol: '$',
@@ -137,16 +146,60 @@ var initialState = {
137
146
  export default (function (props) {
138
147
  var _context$appHelper, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5;
139
148
  var productExtensionType = props.productExtensionType,
140
- bookingConfigParams = props.bookingConfigParams,
149
+ propsBookingConfigParams = props.bookingConfigParams,
141
150
  _props$isShowMenuBar = props.isShowMenuBar,
142
- isShowMenuBar = _props$isShowMenuBar === void 0 ? true : _props$isShowMenuBar;
151
+ isShowMenuBar = _props$isShowMenuBar === void 0 ? true : _props$isShowMenuBar,
152
+ _props$isShowTimeBar = props.isShowTimeBar,
153
+ propsIsShowTimeBar = _props$isShowTimeBar === void 0 ? true : _props$isShowTimeBar,
154
+ _props$isShowFloatBut = props.isShowFloatButtons,
155
+ propsIsShowFloatButtons = _props$isShowFloatBut === void 0 ? true : _props$isShowFloatBut,
156
+ propsProductDisplayConfig = props.productDisplayConfig,
157
+ _props$isActive = props.isActive,
158
+ isActive = _props$isActive === void 0 ? true : _props$isActive,
159
+ propsRulesHooks = props.rulesHooks;
160
+ var _useLocalStorageState = useLocalStorageState('pisell-ticket-booking-nav-key', {
161
+ defaultValue: 'ticket'
162
+ }),
163
+ _useLocalStorageState2 = _slicedToArray(_useLocalStorageState, 2),
164
+ activeNavKey = _useLocalStorageState2[0],
165
+ setActiveNavKey = _useLocalStorageState2[1];
166
+
167
+ // 根据 activeNavKey 动态配置(仅在显示菜单栏时生效)
168
+ var bookingConfigParams = useMemo(function () {
169
+ if (isShowMenuBar && activeNavKey === 'food') {
170
+ return _objectSpread(_objectSpread({}, propsBookingConfigParams), {}, {
171
+ sub_type: 'food',
172
+ source_type: 'pos'
173
+ });
174
+ }
175
+ return propsBookingConfigParams;
176
+ }, [isShowMenuBar, activeNavKey, propsBookingConfigParams]);
177
+ var isShowTimeBar = useMemo(function () {
178
+ return isShowMenuBar && activeNavKey === 'food' ? false : propsIsShowTimeBar;
179
+ }, [isShowMenuBar, activeNavKey, propsIsShowTimeBar]);
180
+ var isShowFloatButtons = useMemo(function () {
181
+ return isShowMenuBar && activeNavKey === 'food' ? false : propsIsShowFloatButtons;
182
+ }, [isShowMenuBar, activeNavKey, propsIsShowFloatButtons]);
183
+
184
+ // 根据bookingConfigParams?.sub_type 动态配置osKey
185
+ // 多页面使用同一个组件时,需要根据不同的osKey来区分不同的页面
186
+ var osKey = useMemo(function () {
187
+ return bookingConfigParams === null || bookingConfigParams === void 0 ? void 0 : bookingConfigParams.sub_type;
188
+ }, [bookingConfigParams]);
189
+ var productDisplayConfig = useMemo(function () {
190
+ if (isShowMenuBar && activeNavKey === 'food') {
191
+ return 'sku-list-a5';
192
+ }
193
+ return propsProductDisplayConfig;
194
+ }, [isShowMenuBar, activeNavKey, propsProductDisplayConfig]);
143
195
  var storeRef = useRef(null);
144
196
  var context = useEngineContext();
145
197
  var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
146
198
  pisellos = _context$appHelper$ut.pisellos,
147
199
  pisellosAllModule = _context$appHelper$ut.pisellosAllModule;
148
200
  var _ref = pisellosAllModule || {},
149
- BookingTicket = _ref.BookingTicket;
201
+ BookingTicket = _ref.BookingTicket,
202
+ ShopDiscountImpl = _ref.ShopDiscountImpl;
150
203
  locales.init(localeTexts, ((_context$appHelper$ut2 = context.appHelper.utils) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getApp) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.call(_context$appHelper$ut2)) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.locales) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut4 = _context$appHelper$ut3.getLocale) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.call(_context$appHelper$ut3)) || ((_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.storage) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.get('umi_locale')) || 'en');
151
204
  useLayoutEffect(function () {
152
205
  request.setRequest(context.appHelper.utils.request);
@@ -157,21 +210,43 @@ export default (function (props) {
157
210
  productExtensionType: productExtensionType
158
211
  }));
159
212
  storeRef.current = store;
160
- }, []);
213
+ }, [bookingConfigParams, productExtensionType]);
161
214
  useMemo(function () {
162
215
  if (BookingTicket) {
163
- pisellos === null || pisellos === void 0 || pisellos.registerModule(new BookingTicket('bookingTicket'), {
216
+ pisellos === null || pisellos === void 0 || pisellos.registerModule(new BookingTicket(getBookingTicketKey(osKey)), {
164
217
  initialState: {},
165
218
  otherParams: {
166
- cacheId: 'test-cache',
219
+ cacheId: getBookingTicketKey(osKey),
167
220
  platform: 'shop'
168
221
  }
169
222
  });
170
223
  }
171
- }, []);
224
+ if (ShopDiscountImpl) {
225
+ pisellos === null || pisellos === void 0 || pisellos.registerModule(new ShopDiscountImpl(getShopDiscountKey(osKey)), {
226
+ otherParams: {
227
+ platform: "shop",
228
+ rules: {
229
+ hooks: propsRulesHooks || rulesHooks
230
+ }
231
+ }
232
+ });
233
+ }
234
+ }, [osKey]);
172
235
  return /*#__PURE__*/React.createElement("div", {
173
236
  className: "pisell-ticket-booking-wrapper"
174
- }, isShowMenuBar && /*#__PURE__*/React.createElement(MenuBar, null), /*#__PURE__*/React.createElement(Provider, {
175
- store: storeRef.current
176
- }, /*#__PURE__*/React.createElement(TicketBooking, null)));
237
+ }, isShowMenuBar && /*#__PURE__*/React.createElement(MenuBar, {
238
+ activeNavKey: activeNavKey,
239
+ onNavChange: setActiveNavKey
240
+ }), /*#__PURE__*/React.createElement(IsActiveProvider, {
241
+ isActive: isActive
242
+ }, /*#__PURE__*/React.createElement(OsKeyProvider, {
243
+ osKey: osKey
244
+ }, /*#__PURE__*/React.createElement(Provider, {
245
+ store: storeRef.current,
246
+ key: activeNavKey
247
+ }, /*#__PURE__*/React.createElement(TicketBooking, {
248
+ productDisplayConfig: productDisplayConfig,
249
+ isShowTimeBar: isShowTimeBar,
250
+ isShowFloatButtons: isShowFloatButtons
251
+ })))));
177
252
  });
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "product" | "wallet" | "customer" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -59,4 +59,32 @@ export declare const formatScanGlobal: (data: ScanData) => {
59
59
  scanCode: string;
60
60
  } | null | undefined;
61
61
  export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
62
- export {};
62
+ export declare const getBookingTicketKey: (osKey: string) => string;
63
+ export declare const getShopDiscountKey: (osKey: string) => string;
64
+ export declare const rulesHooks: {
65
+ getProduct(product: Record<string, any>): {
66
+ booking_id: any;
67
+ id: any;
68
+ _id: any;
69
+ price: any;
70
+ total: any;
71
+ discount_list: any;
72
+ origin_total: any;
73
+ num: any;
74
+ quantity: any;
75
+ vouchersApplicable: any;
76
+ };
77
+ setProduct(product: Record<string, any>, values: {
78
+ total: number;
79
+ discount_list: any[];
80
+ price: number;
81
+ quantity: number;
82
+ _id?: string;
83
+ }): {
84
+ _id: any;
85
+ discount_list: any[];
86
+ _extend: any;
87
+ };
88
+ };
89
+ export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
90
+ export type { CacheType } from './productCache';