@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
@@ -31,6 +31,12 @@ var utils_exports = {};
31
31
  __export(utils_exports, {
32
32
  addService: () => addService,
33
33
  addServiceScroll: () => addServiceScroll,
34
+ clearAllCache: () => import_productCache.clearAllCache,
35
+ clearAllCacheByOsKey: () => import_productCache.clearAllCacheByOsKey,
36
+ clearAllProductCache: () => import_productCache.clearAllProductCache,
37
+ clearBoardConfigCache: () => import_productCache.clearBoardConfigCache,
38
+ clearCache: () => import_productCache.clearCache,
39
+ clearProductCache: () => import_productCache.clearProductCache,
34
40
  createSimpleCacheItem: () => createSimpleCacheItem,
35
41
  formatBookingList: () => formatBookingList,
36
42
  formatDateToStr: () => formatDateToStr,
@@ -39,6 +45,9 @@ __export(utils_exports, {
39
45
  formatScanCustomer: () => formatScanCustomer,
40
46
  formatScanGlobal: () => formatScanGlobal,
41
47
  genServiceKey: () => genServiceKey,
48
+ getBoardConfigCache: () => import_productCache.getBoardConfigCache,
49
+ getBookingTicketKey: () => getBookingTicketKey,
50
+ getCache: () => import_productCache.getCache,
42
51
  getCartProductOverlay: () => getCartProductOverlay,
43
52
  getDefaultStartParam: () => getDefaultStartParam,
44
53
  getDisabledEdit: () => getDisabledEdit,
@@ -46,13 +55,20 @@ __export(utils_exports, {
46
55
  getIsParallelResourcesBooking: () => getIsParallelResourcesBooking,
47
56
  getIsShowNumber: () => getIsShowNumber,
48
57
  getNextTimeSlice: () => getNextTimeSlice,
58
+ getProductCache: () => import_productCache.getProductCache,
59
+ getShopDiscountKey: () => getShopDiscountKey,
49
60
  isSameProduct: () => isSameProduct,
50
- restoreProductOtherData: () => restoreProductOtherData
61
+ restoreProductOtherData: () => restoreProductOtherData,
62
+ rulesHooks: () => rulesHooks,
63
+ setBoardConfigCache: () => import_productCache.setBoardConfigCache,
64
+ setCache: () => import_productCache.setCache,
65
+ setProductCache: () => import_productCache.setProductCache
51
66
  });
52
67
  module.exports = __toCommonJS(utils_exports);
53
68
  var import_dayjs = __toESM(require("dayjs"));
54
69
  var import_utils = require("../../booking/info/service2/utils");
55
70
  var import_utils2 = require("@pisell/utils");
71
+ var import_productCache = require("./productCache");
56
72
  var formatDateToStr = (date) => {
57
73
  const format = (val) => {
58
74
  return (0, import_dayjs.default)(val).format("YYYY-MM-DD HH:mm:ss");
@@ -299,10 +315,53 @@ var createSimpleCacheItem = (item, e, state) => {
299
315
  };
300
316
  return cacheItem;
301
317
  };
318
+ var getBookingTicketKey = (osKey) => {
319
+ return `bookingTicket-${osKey}`;
320
+ };
321
+ var getShopDiscountKey = (osKey) => {
322
+ return `shopDiscount-${osKey}`;
323
+ };
324
+ var rulesHooks = {
325
+ // 获取商品关键信息
326
+ getProduct(product) {
327
+ const detail = {
328
+ booking_id: product.booking_id,
329
+ id: product.id,
330
+ _id: product._id,
331
+ price: product.price,
332
+ total: product._extend.total,
333
+ discount_list: product.discount_list,
334
+ origin_total: product._extend.origin_total,
335
+ num: product._extend.quantity,
336
+ quantity: product._extend.quantity || 1,
337
+ vouchersApplicable: product.vouchersApplicable
338
+ };
339
+ return detail;
340
+ },
341
+ setProduct(product, values) {
342
+ const detail = {
343
+ ...product,
344
+ _id: values._id || product._id,
345
+ discount_list: values.discount_list,
346
+ _extend: {
347
+ ...product._extend,
348
+ ..."total" in values ? { total: values.total } : {},
349
+ ..."quantity" in values ? { quantity: values.quantity } : {}
350
+ }
351
+ };
352
+ return detail;
353
+ }
354
+ };
302
355
  // Annotate the CommonJS export names for ESM import in node:
303
356
  0 && (module.exports = {
304
357
  addService,
305
358
  addServiceScroll,
359
+ clearAllCache,
360
+ clearAllCacheByOsKey,
361
+ clearAllProductCache,
362
+ clearBoardConfigCache,
363
+ clearCache,
364
+ clearProductCache,
306
365
  createSimpleCacheItem,
307
366
  formatBookingList,
308
367
  formatDateToStr,
@@ -311,6 +370,9 @@ var createSimpleCacheItem = (item, e, state) => {
311
370
  formatScanCustomer,
312
371
  formatScanGlobal,
313
372
  genServiceKey,
373
+ getBoardConfigCache,
374
+ getBookingTicketKey,
375
+ getCache,
314
376
  getCartProductOverlay,
315
377
  getDefaultStartParam,
316
378
  getDisabledEdit,
@@ -318,6 +380,12 @@ var createSimpleCacheItem = (item, e, state) => {
318
380
  getIsParallelResourcesBooking,
319
381
  getIsShowNumber,
320
382
  getNextTimeSlice,
383
+ getProductCache,
384
+ getShopDiscountKey,
321
385
  isSameProduct,
322
- restoreProductOtherData
386
+ restoreProductOtherData,
387
+ rulesHooks,
388
+ setBoardConfigCache,
389
+ setCache,
390
+ setProductCache
323
391
  });
@@ -0,0 +1,75 @@
1
+ /**
2
+ * 产品数据缓存工具
3
+ * 使用 localStorage 实现类似 SWR 的缓存功能
4
+ */
5
+ /**
6
+ * 缓存类型
7
+ */
8
+ export declare type CacheType = 'product' | 'boardConfig';
9
+ /**
10
+ * 通用缓存获取函数
11
+ * @param osKey - OS 实例的唯一标识
12
+ * @param cacheType - 缓存类型
13
+ * @param maxAge - 缓存最大有效期(毫秒),默认不限制
14
+ */
15
+ export declare const getCache: <T = any>(osKey: string, cacheType?: CacheType, maxAge?: number) => T | null;
16
+ /**
17
+ * 从缓存中获取产品数据(兼容旧接口)
18
+ * @param osKey - OS 实例的唯一标识
19
+ * @param maxAge - 缓存最大有效期(毫秒),默认不限制
20
+ */
21
+ export declare const getProductCache: <T = any>(osKey: string, maxAge?: number) => T | null;
22
+ /**
23
+ * 通用缓存设置函数
24
+ * @param osKey - OS 实例的唯一标识
25
+ * @param data - 要缓存的数据
26
+ * @param cacheType - 缓存类型
27
+ */
28
+ export declare const setCache: <T = any>(osKey: string, data: T, cacheType?: CacheType) => void;
29
+ /**
30
+ * 设置产品缓存数据(兼容旧接口)
31
+ * @param osKey - OS 实例的唯一标识
32
+ * @param data - 要缓存的数据
33
+ */
34
+ export declare const setProductCache: <T = any>(osKey: string, data: T) => void;
35
+ /**
36
+ * 清除指定类型的缓存
37
+ * @param osKey - OS 实例的唯一标识
38
+ * @param cacheType - 缓存类型
39
+ */
40
+ export declare const clearCache: (osKey: string, cacheType?: CacheType) => void;
41
+ /**
42
+ * 清除指定 osKey 的产品缓存(兼容旧接口)
43
+ * @param osKey - OS 实例的唯一标识
44
+ */
45
+ export declare const clearProductCache: (osKey: string) => void;
46
+ /**
47
+ * 清除指定 osKey 的 BoardConfig 缓存
48
+ * @param osKey - OS 实例的唯一标识
49
+ */
50
+ export declare const clearBoardConfigCache: (osKey: string) => void;
51
+ /**
52
+ * 清除指定 osKey 的所有类型缓存
53
+ * @param osKey - OS 实例的唯一标识
54
+ */
55
+ export declare const clearAllCacheByOsKey: (osKey: string) => void;
56
+ /**
57
+ * 清除所有产品缓存
58
+ */
59
+ export declare const clearAllProductCache: () => void;
60
+ /**
61
+ * 清除所有类型的缓存
62
+ */
63
+ export declare const clearAllCache: () => void;
64
+ /**
65
+ * 获取 BoardConfig 缓存
66
+ * @param osKey - OS 实例的唯一标识
67
+ * @param maxAge - 缓存最大有效期(毫秒),默认不限制
68
+ */
69
+ export declare const getBoardConfigCache: <T = any>(osKey: string, maxAge?: number) => T | null;
70
+ /**
71
+ * 设置 BoardConfig 缓存
72
+ * @param osKey - OS 实例的唯一标识
73
+ * @param data - 要缓存的数据
74
+ */
75
+ export declare const setBoardConfigCache: <T = any>(osKey: string, data: T) => void;
@@ -0,0 +1,144 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/ticketBooking/utils/productCache.ts
20
+ var productCache_exports = {};
21
+ __export(productCache_exports, {
22
+ clearAllCache: () => clearAllCache,
23
+ clearAllCacheByOsKey: () => clearAllCacheByOsKey,
24
+ clearAllProductCache: () => clearAllProductCache,
25
+ clearBoardConfigCache: () => clearBoardConfigCache,
26
+ clearCache: () => clearCache,
27
+ clearProductCache: () => clearProductCache,
28
+ getBoardConfigCache: () => getBoardConfigCache,
29
+ getCache: () => getCache,
30
+ getProductCache: () => getProductCache,
31
+ setBoardConfigCache: () => setBoardConfigCache,
32
+ setCache: () => setCache,
33
+ setProductCache: () => setProductCache
34
+ });
35
+ module.exports = __toCommonJS(productCache_exports);
36
+ var generateCacheKey = (osKey, cacheType = "product") => {
37
+ return `${cacheType}_cache_${osKey}`;
38
+ };
39
+ var getCache = (osKey, cacheType = "product", maxAge) => {
40
+ try {
41
+ const cacheKey = generateCacheKey(osKey, cacheType);
42
+ const cacheStr = localStorage.getItem(cacheKey);
43
+ if (!cacheStr) {
44
+ return null;
45
+ }
46
+ const cache = JSON.parse(cacheStr);
47
+ if (maxAge && Date.now() - cache.timestamp > maxAge) {
48
+ localStorage.removeItem(cacheKey);
49
+ return null;
50
+ }
51
+ return cache.data;
52
+ } catch (error) {
53
+ console.error(`Failed to get ${cacheType} cache:`, error);
54
+ return null;
55
+ }
56
+ };
57
+ var getProductCache = (osKey, maxAge) => {
58
+ return getCache(osKey, "product", maxAge);
59
+ };
60
+ var setCache = (osKey, data, cacheType = "product") => {
61
+ try {
62
+ const cacheKey = generateCacheKey(osKey, cacheType);
63
+ const cache = {
64
+ data,
65
+ timestamp: Date.now()
66
+ };
67
+ localStorage.setItem(cacheKey, JSON.stringify(cache));
68
+ } catch (error) {
69
+ console.error(`Failed to set ${cacheType} cache:`, error);
70
+ }
71
+ };
72
+ var setProductCache = (osKey, data) => {
73
+ setCache(osKey, data, "product");
74
+ };
75
+ var clearCache = (osKey, cacheType = "product") => {
76
+ try {
77
+ const keys = Object.keys(localStorage);
78
+ const prefix = `${cacheType}_cache_${osKey}`;
79
+ keys.forEach((key) => {
80
+ if (key.startsWith(prefix)) {
81
+ localStorage.removeItem(key);
82
+ }
83
+ });
84
+ } catch (error) {
85
+ console.error(`Failed to clear ${cacheType} cache:`, error);
86
+ }
87
+ };
88
+ var clearProductCache = (osKey) => {
89
+ clearCache(osKey, "product");
90
+ };
91
+ var clearBoardConfigCache = (osKey) => {
92
+ clearCache(osKey, "boardConfig");
93
+ };
94
+ var clearAllCacheByOsKey = (osKey) => {
95
+ clearCache(osKey, "product");
96
+ clearCache(osKey, "boardConfig");
97
+ };
98
+ var clearAllProductCache = () => {
99
+ try {
100
+ const keys = Object.keys(localStorage);
101
+ const prefix = "product_cache_";
102
+ keys.forEach((key) => {
103
+ if (key.startsWith(prefix)) {
104
+ localStorage.removeItem(key);
105
+ }
106
+ });
107
+ } catch (error) {
108
+ console.error("Failed to clear all product cache:", error);
109
+ }
110
+ };
111
+ var clearAllCache = () => {
112
+ try {
113
+ const keys = Object.keys(localStorage);
114
+ const prefixes = ["product_cache_", "boardConfig_cache_"];
115
+ keys.forEach((key) => {
116
+ if (prefixes.some((prefix) => key.startsWith(prefix))) {
117
+ localStorage.removeItem(key);
118
+ }
119
+ });
120
+ } catch (error) {
121
+ console.error("Failed to clear all cache:", error);
122
+ }
123
+ };
124
+ var getBoardConfigCache = (osKey, maxAge) => {
125
+ return getCache(osKey, "boardConfig", maxAge);
126
+ };
127
+ var setBoardConfigCache = (osKey, data) => {
128
+ setCache(osKey, data, "boardConfig");
129
+ };
130
+ // Annotate the CommonJS export names for ESM import in node:
131
+ 0 && (module.exports = {
132
+ clearAllCache,
133
+ clearAllCacheByOsKey,
134
+ clearAllProductCache,
135
+ clearBoardConfigCache,
136
+ clearCache,
137
+ clearProductCache,
138
+ getBoardConfigCache,
139
+ getCache,
140
+ getProductCache,
141
+ setBoardConfigCache,
142
+ setCache,
143
+ setProductCache
144
+ });
package/lib/index.d.ts CHANGED
@@ -59,5 +59,7 @@ export { default as ProSkuDetailModal } from './pro/skuDetailModal';
59
59
  export { default as SaasLogin } from './plus/saasLogin';
60
60
  export { default as SaasRegister } from './plus/saasRegister';
61
61
  export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
62
+ export { default as SkuCard } from './plus/productSelect/ProductCard/SkuCard';
62
63
  export { default as PinModal } from './components/pinModal';
63
64
  export { default as PinVerifyModal } from './components/pinVerifyModal';
65
+ export { ResponsiveList as SkuList } from './components/list';
package/lib/index.js CHANGED
@@ -79,6 +79,8 @@ __export(src_exports, {
79
79
  SaasRegister: () => import_saasRegister.default,
80
80
  Schedules: () => import_schedules.default,
81
81
  ShoppingCart: () => import_shoppingCart.default,
82
+ SkuCard: () => import_SkuCard.default,
83
+ SkuList: () => import_list.ResponsiveList,
82
84
  StepController: () => import_stepController.default,
83
85
  SubTotal: () => import_subTotal.default,
84
86
  TaxSelect: () => import_taxSelect.default,
@@ -156,8 +158,10 @@ var import_skuDetailModal = __toESM(require("./pro/skuDetailModal"));
156
158
  var import_saasLogin = __toESM(require("./plus/saasLogin"));
157
159
  var import_saasRegister = __toESM(require("./plus/saasRegister"));
158
160
  var import_saasCreateOrganization = __toESM(require("./plus/saasCreateOrganization"));
161
+ var import_SkuCard = __toESM(require("./plus/productSelect/ProductCard/SkuCard"));
159
162
  var import_pinModal = __toESM(require("./components/pinModal"));
160
163
  var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
164
+ var import_list = require("./components/list");
161
165
  import_dayjs.default.extend(import_weekday.default);
162
166
  import_dayjs.default.extend(import_localeData.default);
163
167
  // Annotate the CommonJS export names for ESM import in node:
@@ -212,6 +216,8 @@ import_dayjs.default.extend(import_localeData.default);
212
216
  SaasRegister,
213
217
  Schedules,
214
218
  ShoppingCart,
219
+ SkuCard,
220
+ SkuList,
215
221
  StepController,
216
222
  SubTotal,
217
223
  TaxSelect,
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const SkuCardA1: (props: any) => JSX.Element;
3
+ export default SkuCardA1;
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.tsx
30
+ var SkuCardA1_exports = {};
31
+ __export(SkuCardA1_exports, {
32
+ default: () => SkuCardA1_default
33
+ });
34
+ module.exports = __toCommonJS(SkuCardA1_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_CardCom = __toESM(require("../components/CardCom"));
37
+ var import_status = require("../status");
38
+ var import_index = require("./index.less");
39
+ var SkuCardA1 = (props) => {
40
+ return /* @__PURE__ */ import_react.default.createElement(import_CardCom.default, { props, className: `${import_status.PREFIX}__card-a1` });
41
+ };
42
+ var SkuCardA1_default = SkuCardA1;
@@ -0,0 +1,8 @@
1
+ .pisell-product-sku__card-a1 {
2
+ .pisell-product-sku__card-a1-content {
3
+ flex-direction: row !important;
4
+ justify-content: space-between;
5
+ align-items: center;
6
+ gap: 12px;
7
+ }
8
+ }
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const SkuCardA2: (props: any) => JSX.Element;
3
+ export default SkuCardA2;
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.tsx
30
+ var SkuCardA2_exports = {};
31
+ __export(SkuCardA2_exports, {
32
+ default: () => SkuCardA2_default
33
+ });
34
+ module.exports = __toCommonJS(SkuCardA2_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_CardCom = __toESM(require("../components/CardCom"));
37
+ var import_status = require("../status");
38
+ var import_index = require("./index.less");
39
+ var SkuCardA2 = (props) => {
40
+ return /* @__PURE__ */ import_react.default.createElement(import_CardCom.default, { props, className: `${import_status.PREFIX}__card-a2` });
41
+ };
42
+ var SkuCardA2_default = SkuCardA2;
@@ -0,0 +1,17 @@
1
+ .pisell-product-sku__card-a2 {
2
+ align-items: center;
3
+ gap: 12px;
4
+
5
+ .pisell-product-sku__card-a2-content {
6
+ gap: 8px;
7
+ }
8
+ }
9
+
10
+ // 竖向布局
11
+ .pisell-product-sku__card-a2-column {
12
+ gap: 4px;
13
+
14
+ .pisell-product-sku__card-a2-content {
15
+ gap: 2px;
16
+ }
17
+ }
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const SkuCardA5: (props: any) => JSX.Element;
3
+ export default SkuCardA5;
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.tsx
30
+ var SkuCardA5_exports = {};
31
+ __export(SkuCardA5_exports, {
32
+ default: () => SkuCardA5_default
33
+ });
34
+ module.exports = __toCommonJS(SkuCardA5_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_CardCom = __toESM(require("../components/CardCom"));
37
+ var import_status = require("../status");
38
+ var import_index = require("./index.less");
39
+ var SkuCardA5 = (props) => {
40
+ return /* @__PURE__ */ import_react.default.createElement(import_CardCom.default, { props, className: `${import_status.PREFIX}__card-a5` });
41
+ };
42
+ var SkuCardA5_default = SkuCardA5;
@@ -0,0 +1,17 @@
1
+ .pisell-product-sku__card-a5 {
2
+ gap: 12px;
3
+
4
+ .pisell-product-sku__card-a5-content {
5
+ gap: 2px;
6
+ justify-content: space-between;
7
+ }
8
+ }
9
+
10
+ // 竖向布局
11
+ .pisell-product-sku__card-a5-column {
12
+ gap: 4px;
13
+
14
+ .pisell-product-sku__card-a5-content {
15
+ justify-content: start;
16
+ }
17
+ }
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const SkuCardA9: (props: any) => JSX.Element;
3
+ export default SkuCardA9;
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.tsx
30
+ var SkuCardA9_exports = {};
31
+ __export(SkuCardA9_exports, {
32
+ default: () => SkuCardA9_default
33
+ });
34
+ module.exports = __toCommonJS(SkuCardA9_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_CardCom = __toESM(require("../components/CardCom"));
37
+ var import_status = require("../status");
38
+ var import_index = require("./index.less");
39
+ var SkuCardA9 = (props) => {
40
+ return /* @__PURE__ */ import_react.default.createElement(import_CardCom.default, { props, className: `${import_status.PREFIX}__card-a9` });
41
+ };
42
+ var SkuCardA9_default = SkuCardA9;
@@ -0,0 +1,17 @@
1
+ .pisell-product-sku__card-a9 {
2
+ gap: 12px;
3
+
4
+ .pisell-product-sku__card-a9-content {
5
+ gap: 2px;
6
+ justify-content: space-between;
7
+ }
8
+ }
9
+
10
+ // 竖向布局
11
+ .pisell-product-sku__card-a9-column {
12
+ gap: 4px;
13
+
14
+ .pisell-product-sku__card-a9-content {
15
+ justify-content: start;
16
+ }
17
+ }
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const SkuCardCustom: (props: any) => JSX.Element;
3
+ export default SkuCardCustom;