@pisell/private-materials 6.4.59 → 6.4.60

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 (464) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/booking/components/actionButtons/index.js +7 -15
  12. package/es/components/booking/components/footer/index.d.ts +0 -1
  13. package/es/components/booking/components/footer/index.js +2 -2
  14. package/es/components/booking/components/voucher/index.js +19 -23
  15. package/es/components/booking/info/service2/utils.d.ts +1 -1
  16. package/es/components/booking/info2/cartClientCard/index.js +3 -7
  17. package/es/components/booking/utils.d.ts +2 -2
  18. package/es/components/checkout/PaymentModal.js +12 -17
  19. package/es/components/checkout/hooks/useWalletPass.js +21 -36
  20. package/es/components/eftposPay/amount.d.ts +1 -1
  21. package/es/components/eftposPay/device.d.ts +1 -1
  22. package/es/components/eftposPay/hooks.d.ts +1 -1
  23. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  24. package/es/components/eftposPay/store/index.d.ts +4 -4
  25. package/es/components/pay/toB/store/hooks.js +5 -19
  26. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -20
  27. package/es/components/ticketBooking/components/addServiceVariant/addService.js +12 -47
  28. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
  29. package/es/components/ticketBooking/components/addServiceVariant/index.js +2 -4
  30. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -5
  31. package/es/components/ticketBooking/components/menuBar/index.js +21 -45
  32. package/es/components/ticketBooking/components/menuBar/index.less +1 -32
  33. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -6
  34. package/es/components/ticketBooking/components/ticketBooking/index.js +23 -66
  35. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  36. package/es/components/ticketBooking/components/timeBar/index.less +0 -1
  37. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -5
  38. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -13
  39. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -1
  40. package/es/components/ticketBooking/hooks/pisellos/index.js +1 -2
  41. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +4 -12
  42. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
  43. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +10 -52
  44. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -5
  45. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -7
  46. package/es/components/ticketBooking/index.d.ts +0 -6
  47. package/es/components/ticketBooking/index.js +11 -86
  48. package/es/components/ticketBooking/utils/index.d.ts +2 -30
  49. package/es/components/ticketBooking/utils/index.js +1 -50
  50. package/es/index.d.ts +0 -2
  51. package/es/index.js +1 -3
  52. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -2
  53. package/es/plus/productSelect/components/pisellPriceText/index.js +5 -7
  54. package/lib/components/booking/components/actionButtons/index.js +15 -22
  55. package/lib/components/booking/components/footer/index.d.ts +0 -1
  56. package/lib/components/booking/components/footer/index.js +2 -2
  57. package/lib/components/booking/components/voucher/index.js +40 -33
  58. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  59. package/lib/components/booking/info2/cartClientCard/index.js +3 -7
  60. package/lib/components/booking/utils.d.ts +2 -2
  61. package/lib/components/checkout/PaymentModal.js +12 -15
  62. package/lib/components/checkout/hooks/useWalletPass.js +45 -57
  63. package/lib/components/eftposPay/amount.d.ts +1 -1
  64. package/lib/components/eftposPay/device.d.ts +1 -1
  65. package/lib/components/eftposPay/hooks.d.ts +1 -1
  66. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  67. package/lib/components/eftposPay/store/index.d.ts +4 -4
  68. package/lib/components/pay/toB/store/hooks.js +8 -16
  69. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -20
  70. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +12 -47
  71. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
  72. package/lib/components/ticketBooking/components/addServiceVariant/index.js +2 -3
  73. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -5
  74. package/lib/components/ticketBooking/components/menuBar/index.js +22 -29
  75. package/lib/components/ticketBooking/components/menuBar/index.less +1 -32
  76. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -6
  77. package/lib/components/ticketBooking/components/ticketBooking/index.js +25 -56
  78. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  79. package/lib/components/ticketBooking/components/timeBar/index.less +0 -1
  80. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -5
  81. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -5
  82. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -1
  83. package/lib/components/ticketBooking/hooks/pisellos/index.js +1 -3
  84. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +10 -17
  85. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
  86. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +5 -35
  87. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -4
  88. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -6
  89. package/lib/components/ticketBooking/index.d.ts +0 -6
  90. package/lib/components/ticketBooking/index.js +8 -64
  91. package/lib/components/ticketBooking/utils/index.d.ts +2 -30
  92. package/lib/components/ticketBooking/utils/index.js +2 -70
  93. package/lib/index.d.ts +0 -2
  94. package/lib/index.js +0 -6
  95. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -2
  96. package/lib/plus/productSelect/components/pisellPriceText/index.js +5 -6
  97. package/package.json +1 -1
  98. package/es/components/list/List.d.ts +0 -5
  99. package/es/components/list/List.js +0 -957
  100. package/es/components/list/List.less +0 -2
  101. package/es/components/list/ResponsiveWrapper.d.ts +0 -16
  102. package/es/components/list/ResponsiveWrapper.js +0 -130
  103. package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
  104. package/es/components/list/TestResponsiveWrapper.js +0 -816
  105. package/es/components/list/TestResponsiveWrapper.less +0 -968
  106. package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
  107. package/es/components/list/components/EmptyState/EmptyState.js +0 -75
  108. package/es/components/list/components/EmptyState/EmptyState.less +0 -121
  109. package/es/components/list/components/EmptyState/index.d.ts +0 -2
  110. package/es/components/list/components/EmptyState/index.js +0 -1
  111. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
  112. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +0 -39
  113. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +0 -29
  114. package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
  115. package/es/components/list/components/ListItemSkeleton/index.js +0 -2
  116. package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
  117. package/es/components/list/components/Pagination/Pagination.js +0 -240
  118. package/es/components/list/components/Pagination/Pagination.less +0 -439
  119. package/es/components/list/components/Pagination/index.d.ts +0 -1
  120. package/es/components/list/components/Pagination/index.js +0 -1
  121. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
  122. package/es/components/list/components/ScrollLoader/ScrollLoader.js +0 -18
  123. package/es/components/list/components/ScrollLoader/ScrollLoader.less +0 -3
  124. package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
  125. package/es/components/list/components/ScrollLoader/index.js +0 -1
  126. package/es/components/list/components/Tab/Tab.d.ts +0 -5
  127. package/es/components/list/components/Tab/Tab.js +0 -43
  128. package/es/components/list/components/Tab/Tab.less +0 -139
  129. package/es/components/list/components/Tab/index.d.ts +0 -2
  130. package/es/components/list/components/Tab/index.js +0 -1
  131. package/es/components/list/components/Tab/types.d.ts +0 -14
  132. package/es/components/list/components/Tab/types.js +0 -1
  133. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
  134. package/es/components/list/components/TabSkeleton/TabSkeleton.js +0 -28
  135. package/es/components/list/components/TabSkeleton/TabSkeleton.less +0 -38
  136. package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
  137. package/es/components/list/components/TabSkeleton/index.js +0 -2
  138. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
  139. package/es/components/list/components/WaterfallList/WaterfallList.js +0 -191
  140. package/es/components/list/components/WaterfallList/WaterfallList.less +0 -201
  141. package/es/components/list/components/WaterfallList/index.d.ts +0 -2
  142. package/es/components/list/components/WaterfallList/index.js +0 -1
  143. package/es/components/list/examples/GroupedListExample.d.ts +0 -3
  144. package/es/components/list/examples/GroupedListExample.js +0 -207
  145. package/es/components/list/hooks/index.d.ts +0 -5
  146. package/es/components/list/hooks/index.js +0 -3
  147. package/es/components/list/hooks/useDevice.d.ts +0 -24
  148. package/es/components/list/hooks/useDevice.js +0 -102
  149. package/es/components/list/hooks/useListState.d.ts +0 -43
  150. package/es/components/list/hooks/useListState.js +0 -176
  151. package/es/components/list/hooks/useWaterfall.d.ts +0 -34
  152. package/es/components/list/hooks/useWaterfall.js +0 -161
  153. package/es/components/list/index.d.ts +0 -10
  154. package/es/components/list/index.js +0 -7
  155. package/es/components/list/locales.d.ts +0 -66
  156. package/es/components/list/locales.js +0 -107
  157. package/es/components/list/styles/base.less +0 -39
  158. package/es/components/list/styles/content.less +0 -416
  159. package/es/components/list/styles/floatButton.less +0 -107
  160. package/es/components/list/styles/footer.less +0 -49
  161. package/es/components/list/styles/header.less +0 -69
  162. package/es/components/list/styles/responsive.less +0 -166
  163. package/es/components/list/types.d.ts +0 -177
  164. package/es/components/list/types.js +0 -1
  165. package/es/components/list/utils/getText.d.ts +0 -53
  166. package/es/components/list/utils/getText.js +0 -150
  167. package/es/components/list/utils/index.d.ts +0 -4
  168. package/es/components/list/utils/index.js +0 -5
  169. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  170. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -143
  171. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
  172. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -7
  173. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -41
  174. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
  175. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +0 -273
  176. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
  177. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +0 -130
  178. package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
  179. package/es/components/ticketBooking/context/IsActiveContext.js +0 -37
  180. package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
  181. package/es/components/ticketBooking/context/OsKeyContext.js +0 -37
  182. package/es/components/ticketBooking/context/index.d.ts +0 -2
  183. package/es/components/ticketBooking/context/index.js +0 -2
  184. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
  185. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +0 -50
  186. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
  187. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +0 -17
  188. package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
  189. package/es/components/ticketBooking/utils/productCache.js +0 -184
  190. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
  191. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +0 -11
  192. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +0 -8
  193. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
  194. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +0 -11
  195. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +0 -17
  196. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
  197. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +0 -11
  198. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +0 -17
  199. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
  200. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +0 -11
  201. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +0 -17
  202. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
  203. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +0 -11
  204. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +0 -2
  205. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
  206. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +0 -100
  207. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +0 -8
  208. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
  209. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +0 -32
  210. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +0 -3
  211. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
  212. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +0 -239
  213. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +0 -44
  214. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
  215. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +0 -34
  216. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +0 -14
  217. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -4
  218. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +0 -33
  219. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +0 -30
  220. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
  221. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -75
  222. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +0 -46
  223. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
  224. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +0 -39
  225. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +0 -9
  226. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
  227. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +0 -53
  228. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +0 -31
  229. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
  230. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +0 -31
  231. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +0 -3
  232. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
  233. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +0 -58
  234. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +0 -11
  235. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
  236. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +0 -85
  237. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +0 -24
  238. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
  239. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +0 -121
  240. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +0 -57
  241. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
  242. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +0 -95
  243. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +0 -18
  244. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
  245. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +0 -31
  246. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +0 -3
  247. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
  248. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +0 -47
  249. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +0 -3
  250. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
  251. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +0 -34
  252. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +0 -13
  253. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
  254. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +0 -95
  255. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +0 -18
  256. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
  257. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +0 -31
  258. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +0 -3
  259. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
  260. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +0 -34
  261. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +0 -13
  262. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
  263. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +0 -39
  264. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +0 -22
  265. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
  266. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +0 -20
  267. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +0 -20
  268. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
  269. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +0 -55
  270. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
  271. package/es/plus/productSelect/ProductCard/SkuCard/index.js +0 -38
  272. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
  273. package/es/plus/productSelect/ProductCard/SkuCard/locales.js +0 -41
  274. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
  275. package/es/plus/productSelect/ProductCard/SkuCard/status.js +0 -481
  276. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
  277. package/es/plus/productSelect/ProductCard/SkuCard/type.js +0 -1
  278. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
  279. package/es/plus/productSelect/ProductCard/SkuCard/utils.js +0 -21
  280. package/lib/components/list/List.d.ts +0 -5
  281. package/lib/components/list/List.js +0 -771
  282. package/lib/components/list/List.less +0 -2
  283. package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
  284. package/lib/components/list/ResponsiveWrapper.js +0 -145
  285. package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
  286. package/lib/components/list/TestResponsiveWrapper.js +0 -493
  287. package/lib/components/list/TestResponsiveWrapper.less +0 -968
  288. package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
  289. package/lib/components/list/components/EmptyState/EmptyState.js +0 -75
  290. package/lib/components/list/components/EmptyState/EmptyState.less +0 -121
  291. package/lib/components/list/components/EmptyState/index.d.ts +0 -2
  292. package/lib/components/list/components/EmptyState/index.js +0 -35
  293. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
  294. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +0 -75
  295. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +0 -29
  296. package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
  297. package/lib/components/list/components/ListItemSkeleton/index.js +0 -41
  298. package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
  299. package/lib/components/list/components/Pagination/Pagination.js +0 -205
  300. package/lib/components/list/components/Pagination/Pagination.less +0 -439
  301. package/lib/components/list/components/Pagination/index.d.ts +0 -1
  302. package/lib/components/list/components/Pagination/index.js +0 -35
  303. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
  304. package/lib/components/list/components/ScrollLoader/ScrollLoader.js +0 -37
  305. package/lib/components/list/components/ScrollLoader/ScrollLoader.less +0 -3
  306. package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
  307. package/lib/components/list/components/ScrollLoader/index.js +0 -35
  308. package/lib/components/list/components/Tab/Tab.d.ts +0 -5
  309. package/lib/components/list/components/Tab/Tab.js +0 -72
  310. package/lib/components/list/components/Tab/Tab.less +0 -139
  311. package/lib/components/list/components/Tab/index.d.ts +0 -2
  312. package/lib/components/list/components/Tab/index.js +0 -35
  313. package/lib/components/list/components/Tab/types.d.ts +0 -14
  314. package/lib/components/list/components/Tab/types.js +0 -17
  315. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
  316. package/lib/components/list/components/TabSkeleton/TabSkeleton.js +0 -61
  317. package/lib/components/list/components/TabSkeleton/TabSkeleton.less +0 -38
  318. package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
  319. package/lib/components/list/components/TabSkeleton/index.js +0 -41
  320. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
  321. package/lib/components/list/components/WaterfallList/WaterfallList.js +0 -178
  322. package/lib/components/list/components/WaterfallList/WaterfallList.less +0 -201
  323. package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
  324. package/lib/components/list/components/WaterfallList/index.js +0 -35
  325. package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
  326. package/lib/components/list/examples/GroupedListExample.js +0 -210
  327. package/lib/components/list/hooks/index.d.ts +0 -5
  328. package/lib/components/list/hooks/index.js +0 -47
  329. package/lib/components/list/hooks/useDevice.d.ts +0 -24
  330. package/lib/components/list/hooks/useDevice.js +0 -96
  331. package/lib/components/list/hooks/useListState.d.ts +0 -43
  332. package/lib/components/list/hooks/useListState.js +0 -149
  333. package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
  334. package/lib/components/list/hooks/useWaterfall.js +0 -124
  335. package/lib/components/list/index.d.ts +0 -10
  336. package/lib/components/list/index.js +0 -60
  337. package/lib/components/list/locales.d.ts +0 -66
  338. package/lib/components/list/locales.js +0 -113
  339. package/lib/components/list/styles/base.less +0 -39
  340. package/lib/components/list/styles/content.less +0 -416
  341. package/lib/components/list/styles/floatButton.less +0 -107
  342. package/lib/components/list/styles/footer.less +0 -49
  343. package/lib/components/list/styles/header.less +0 -69
  344. package/lib/components/list/styles/responsive.less +0 -166
  345. package/lib/components/list/types.d.ts +0 -177
  346. package/lib/components/list/types.js +0 -17
  347. package/lib/components/list/utils/getText.d.ts +0 -53
  348. package/lib/components/list/utils/getText.js +0 -95
  349. package/lib/components/list/utils/index.d.ts +0 -4
  350. package/lib/components/list/utils/index.js +0 -43
  351. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  352. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -165
  353. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
  354. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -45
  355. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -41
  356. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
  357. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +0 -247
  358. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
  359. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +0 -100
  360. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
  361. package/lib/components/ticketBooking/context/IsActiveContext.js +0 -56
  362. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
  363. package/lib/components/ticketBooking/context/OsKeyContext.js +0 -56
  364. package/lib/components/ticketBooking/context/index.d.ts +0 -2
  365. package/lib/components/ticketBooking/context/index.js +0 -44
  366. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
  367. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +0 -47
  368. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
  369. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +0 -37
  370. package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
  371. package/lib/components/ticketBooking/utils/productCache.js +0 -144
  372. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
  373. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +0 -42
  374. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +0 -8
  375. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
  376. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +0 -42
  377. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +0 -17
  378. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
  379. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +0 -42
  380. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +0 -17
  381. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
  382. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +0 -42
  383. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +0 -17
  384. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
  385. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +0 -42
  386. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +0 -2
  387. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
  388. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +0 -129
  389. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +0 -8
  390. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
  391. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +0 -52
  392. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +0 -3
  393. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
  394. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +0 -178
  395. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +0 -44
  396. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
  397. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +0 -52
  398. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +0 -14
  399. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -4
  400. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +0 -63
  401. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +0 -30
  402. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
  403. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -131
  404. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +0 -46
  405. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
  406. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +0 -62
  407. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +0 -9
  408. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
  409. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +0 -78
  410. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +0 -31
  411. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
  412. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +0 -51
  413. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +0 -3
  414. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
  415. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +0 -94
  416. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +0 -11
  417. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
  418. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +0 -115
  419. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +0 -24
  420. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
  421. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +0 -139
  422. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +0 -57
  423. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
  424. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +0 -97
  425. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +0 -18
  426. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
  427. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +0 -51
  428. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +0 -3
  429. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
  430. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +0 -58
  431. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +0 -3
  432. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
  433. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +0 -56
  434. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +0 -13
  435. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
  436. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +0 -97
  437. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +0 -18
  438. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
  439. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +0 -51
  440. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +0 -3
  441. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
  442. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +0 -56
  443. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +0 -13
  444. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
  445. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +0 -58
  446. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +0 -22
  447. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
  448. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +0 -49
  449. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +0 -20
  450. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
  451. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +0 -83
  452. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
  453. package/lib/plus/productSelect/ProductCard/SkuCard/index.js +0 -68
  454. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
  455. package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +0 -65
  456. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
  457. package/lib/plus/productSelect/ProductCard/SkuCard/status.js +0 -501
  458. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
  459. package/lib/plus/productSelect/ProductCard/SkuCard/type.js +0 -17
  460. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
  461. package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +0 -37
  462. package/lowcode/sku-card/meta.ts +0 -1812
  463. package/lowcode/sku-card/snippets.ts +0 -372
  464. package/lowcode/sku-list/meta.ts +0 -410
@@ -1,165 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.tsx
30
- var ProductDisplayAdapter_exports = {};
31
- __export(ProductDisplayAdapter_exports, {
32
- default: () => ProductDisplayAdapter_default
33
- });
34
- module.exports = __toCommonJS(ProductDisplayAdapter_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_ahooks = require("ahooks");
37
- var import_productSelect = __toESM(require("../../../../plus/productSelect"));
38
- var import_List = __toESM(require("../../../list/List"));
39
- var import_SkuCard = __toESM(require("../../../../plus/productSelect/ProductCard/SkuCard"));
40
- var import_utils = require("./utils");
41
- var import_index = require("./index.less");
42
- var ProductDisplayAdapter = (props) => {
43
- const {
44
- config,
45
- dataSource,
46
- loading = false,
47
- currentProductId,
48
- onSelectProduct,
49
- emptyDescription,
50
- style,
51
- className
52
- } = props;
53
- const { displayMode = "product-select" } = config;
54
- const listRef = (0, import_react.useRef)(null);
55
- const size = (0, import_ahooks.useSize)(listRef);
56
- const renderProductSelect = (0, import_react.useMemo)(() => {
57
- const {
58
- showSearch = true,
59
- showTab = true,
60
- layout = { grid: true, config: "12:12" },
61
- productListSetting = {
62
- isProductCover: 1,
63
- isTitle: 1,
64
- isSubtitle: 1,
65
- isPrice: 1,
66
- isOriginPrice: 0,
67
- isStock: 0
68
- }
69
- } = config.productSelectConfig || {};
70
- return /* @__PURE__ */ import_react.default.createElement(
71
- import_productSelect.default,
72
- {
73
- dataSource,
74
- layout,
75
- onChange: onSelectProduct,
76
- value: currentProductId,
77
- loading,
78
- productListSetting,
79
- showSearch,
80
- showTab,
81
- emptyDescription,
82
- style
83
- }
84
- );
85
- }, [
86
- config.productSelectConfig,
87
- dataSource,
88
- currentProductId,
89
- onSelectProduct,
90
- loading,
91
- emptyDescription,
92
- style
93
- ]);
94
- const renderSkuList = (0, import_react.useMemo)(() => {
95
- const { listConfig = {}, skuCardAllConfig = {} } = config.skuListConfig || {};
96
- const displayStyle = listConfig.layout || "grid";
97
- const columns = listConfig.columns || 2;
98
- const paginationType = listConfig.showPagination ? "pager" : "all";
99
- const enableTab = listConfig.showTab || false;
100
- const tabStyle = listConfig.tabStyle || "switch";
101
- const stickyTop = listConfig.stickyTop !== void 0 ? listConfig.stickyTop : true;
102
- const tabData = enableTab ? (0, import_utils.generateProductTabs)(dataSource, tabStyle) : void 0;
103
- const filteredData = dataSource.map((item) => {
104
- var _a, _b;
105
- return {
106
- ...item,
107
- category: ((_b = (_a = item.category) == null ? void 0 : _a.map) == null ? void 0 : _b.call(_a, (category) => `${category.id}`)) || []
108
- };
109
- });
110
- return /* @__PURE__ */ import_react.default.createElement(
111
- "div",
112
- {
113
- className: `sku-list-container ${className || ""}`,
114
- style,
115
- ref: listRef
116
- },
117
- /* @__PURE__ */ import_react.default.createElement(
118
- import_List.default,
119
- {
120
- className: "sku-list",
121
- style: { maxHeight: size == null ? void 0 : size.height, overflow: "auto" },
122
- data: filteredData,
123
- loading,
124
- displayStyle,
125
- columns,
126
- paginationType,
127
- layoutDirection: "vertical",
128
- tabStyle: enableTab ? tabStyle : "none",
129
- tabData,
130
- tabGroup: "category",
131
- stickyTop,
132
- emptyConfig: {
133
- show: !loading && filteredData.length === 0,
134
- text: emptyDescription
135
- },
136
- renderItem: (item, index) => /* @__PURE__ */ import_react.default.createElement(
137
- import_SkuCard.default,
138
- {
139
- key: item.id,
140
- ...skuCardAllConfig,
141
- dataSource: (0, import_utils.formatSkuDataSource)(item),
142
- onCardClick: () => onSelectProduct(item),
143
- isSelected: item.id === currentProductId
144
- }
145
- )
146
- }
147
- )
148
- );
149
- }, [
150
- config.skuListConfig,
151
- dataSource,
152
- loading,
153
- currentProductId,
154
- onSelectProduct,
155
- emptyDescription,
156
- style,
157
- className,
158
- size == null ? void 0 : size.height
159
- ]);
160
- if (displayMode === "sku-list") {
161
- return renderSkuList;
162
- }
163
- return renderProductSelect;
164
- };
165
- var ProductDisplayAdapter_default = ProductDisplayAdapter;
@@ -1,7 +0,0 @@
1
- /**
2
- * ProductDisplayAdapter 产品展示适配器
3
- * 支持通过配置化方式在 ProductSelect 和 SkuList 两种展示模式之间切换
4
- */
5
- export { default } from './ProductDisplayAdapter';
6
- export type { ProductDisplayConfig, ProductDisplayPresetKey, ProductSelectConfig, ProductSelectLayout, ProductListSetting, SkuListConfig, SkuCardDisplayMode, ListConfig, ListLayoutType, DisplayMode, } from './types';
7
- export { ProductDisplayPresets, LegacyProductDisplayPresets, resolveProductDisplayConfig, } from './types';
@@ -1,45 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/ticketBooking/components/ProductDisplayAdapter/index.tsx
30
- var ProductDisplayAdapter_exports = {};
31
- __export(ProductDisplayAdapter_exports, {
32
- LegacyProductDisplayPresets: () => import_types.LegacyProductDisplayPresets,
33
- ProductDisplayPresets: () => import_types.ProductDisplayPresets,
34
- default: () => import_ProductDisplayAdapter.default,
35
- resolveProductDisplayConfig: () => import_types.resolveProductDisplayConfig
36
- });
37
- module.exports = __toCommonJS(ProductDisplayAdapter_exports);
38
- var import_ProductDisplayAdapter = __toESM(require("./ProductDisplayAdapter"));
39
- var import_types = require("./types");
40
- // Annotate the CommonJS export names for ESM import in node:
41
- 0 && (module.exports = {
42
- LegacyProductDisplayPresets,
43
- ProductDisplayPresets,
44
- resolveProductDisplayConfig
45
- });
@@ -1,41 +0,0 @@
1
- .sku-list-container {
2
- height: 100%;
3
- background-color: #4e4e4e;
4
- .sku-list {
5
- background-color: #4e4e4e;
6
- overflow: auto;
7
- border-radius: 0;
8
- .list-group-items {
9
- .list-item {
10
- height: 100% !important;
11
- .pisell-product-sku__card-wrapper {
12
- height: 100% ;
13
- .pisell-lowcode-card {
14
- height: 100% !important;
15
- }
16
- }
17
- }
18
- }
19
- &::-webkit-scrollbar {
20
- display: none;
21
- width: 0;
22
- height: 0;
23
- }
24
- }
25
- .list-content {
26
- &::-webkit-scrollbar {
27
- display: none;
28
- width: 0;
29
- height: 0;
30
- }
31
- }
32
- .pisell-list-header {
33
- overflow: auto;
34
-
35
- &::-webkit-scrollbar {
36
- display: none;
37
- width: 0;
38
- height: 0;
39
- }
40
- }
41
- }
@@ -1,115 +0,0 @@
1
- /**
2
- * 产品展示配置类型定义
3
- */
4
- import type { ProductCardConfig } from '../../../../plus/productSelect/ProductCard/SkuCard/type';
5
- /** 预设配置的字符串键 */
6
- export declare type ProductDisplayPresetKey = 'product-select' | 'sku-list-a1' | 'sku-list-a2' | 'sku-list-a5' | 'default';
7
- /** ProductSelect 布局配置 */
8
- export interface ProductSelectLayout {
9
- grid: boolean;
10
- config: string;
11
- }
12
- export declare type NumberBoolean = 0 | 1;
13
- /** ProductSelect 列表设置 */
14
- export interface ProductListSetting {
15
- /** 是否显示产品封面 */
16
- isProductCover?: NumberBoolean;
17
- /** 是否显示标题 */
18
- isTitle?: NumberBoolean;
19
- /** 是否显示副标题 */
20
- isSubtitle?: NumberBoolean;
21
- /** 是否显示价格 */
22
- isPrice?: NumberBoolean;
23
- /** 是否显示原价 */
24
- isOriginPrice?: NumberBoolean;
25
- /** 是否显示库存 */
26
- isStock?: NumberBoolean;
27
- }
28
- /** ProductSelect 模式配置 */
29
- export interface ProductSelectConfig {
30
- /** 是否显示搜索框 */
31
- showSearch?: boolean;
32
- /** 是否显示分类Tab */
33
- showTab?: boolean;
34
- /** 布局配置 */
35
- layout?: ProductSelectLayout;
36
- /** 产品列表设置 */
37
- productListSetting?: ProductListSetting;
38
- }
39
- /** SkuCard 显示模式 */
40
- export declare type SkuCardDisplayMode = 'display_a1' | 'display_a2' | 'display_a5' | 'display_a9' | 'display_custom';
41
- /**
42
- * SkuCard 配置
43
- * 直接使用 ProductCardConfig 类型,保持类型同步
44
- *
45
- * @see packages/private-materials/src/plus/productSelect/ProductCard/SkuCard/type.ts ProductCardConfig
46
- */
47
- export declare type SkuCardAllConfig = ProductCardConfig;
48
- /** List 布局类型 */
49
- export declare type ListLayoutType = 'grid' | 'list';
50
- /** Tab 样式类型 */
51
- export declare type TabStyleType = 'switch' | 'anchor' | 'none';
52
- /** List 组件配置 */
53
- export interface ListConfig {
54
- /** 布局类型 */
55
- layout?: ListLayoutType;
56
- /** 列数 */
57
- columns?: number;
58
- /** 是否显示分页 */
59
- showPagination?: boolean;
60
- /** 是否显示Tab */
61
- showTab?: boolean;
62
- /** Tab 样式类型:switch-切换模式,anchor-锚点模式,none-不显示 */
63
- tabStyle?: TabStyleType;
64
- /** Tab 是否吸顶 */
65
- stickyTop?: boolean;
66
- /** Tab配置 */
67
- tabConfig?: any;
68
- /** 分页配置 */
69
- paginationConfig?: any;
70
- [key: string]: any;
71
- }
72
- /** SkuList 模式配置 */
73
- export interface SkuListConfig {
74
- /** List 组件配置 */
75
- listConfig?: ListConfig;
76
- /** SkuCard 配置 */
77
- skuCardAllConfig?: SkuCardAllConfig;
78
- }
79
- /** 展示模式类型 */
80
- export declare type DisplayMode = 'product-select' | 'sku-list';
81
- /**
82
- * 产品展示配置
83
- * 用于配置化控制产品展示的方式
84
- */
85
- export interface ProductDisplayConfig {
86
- /** 展示模式 */
87
- displayMode: DisplayMode;
88
- /** ProductSelect 模式配置 */
89
- productSelectConfig?: ProductSelectConfig;
90
- /** SkuList 模式配置 */
91
- skuListConfig?: SkuListConfig;
92
- }
93
- /**
94
- * 产品展示配置预设
95
- * 支持通过字符串键或直接使用配置对象
96
- */
97
- export declare const ProductDisplayPresets: Record<ProductDisplayPresetKey, ProductDisplayConfig>;
98
- /**
99
- * 兼容性:保持原有的导出方式
100
- * @deprecated 建议使用 ProductDisplayPresets['product-select'] 或字符串键访问
101
- */
102
- export declare const LegacyProductDisplayPresets: {
103
- /** @deprecated 使用 ProductDisplayPresets['product-select'] */
104
- DEFAULT_PRODUCT_SELECT: ProductDisplayConfig;
105
- /** @deprecated 使用 ProductDisplayPresets['sku-list-a1'] */
106
- DEFAULT_SKU_LIST_A1: ProductDisplayConfig;
107
- /** @deprecated 使用 ProductDisplayPresets['sku-list-a2'] */
108
- DEFAULT_SKU_LIST_A2: ProductDisplayConfig;
109
- /** @deprecated 使用 ProductDisplayPresets['sku-list-a5'] */
110
- DEFAULT_SKU_LIST_A5: ProductDisplayConfig;
111
- };
112
- /**
113
- * 工具函数:将字符串键或配置对象解析为配置对象
114
- */
115
- export declare function resolveProductDisplayConfig(config?: ProductDisplayPresetKey | ProductDisplayConfig): ProductDisplayConfig;
@@ -1,247 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/components/ticketBooking/components/ProductDisplayAdapter/types.ts
20
- var types_exports = {};
21
- __export(types_exports, {
22
- LegacyProductDisplayPresets: () => LegacyProductDisplayPresets,
23
- ProductDisplayPresets: () => ProductDisplayPresets,
24
- resolveProductDisplayConfig: () => resolveProductDisplayConfig
25
- });
26
- module.exports = __toCommonJS(types_exports);
27
- var ProductDisplayPresets = {
28
- // 默认配置
29
- default: {
30
- displayMode: "product-select",
31
- productSelectConfig: {
32
- showSearch: true,
33
- showTab: true,
34
- layout: {
35
- grid: true,
36
- config: "12:12"
37
- },
38
- productListSetting: {
39
- isProductCover: 1,
40
- isTitle: 1,
41
- isSubtitle: 1,
42
- isPrice: 1,
43
- isOriginPrice: 0,
44
- isStock: 0
45
- }
46
- }
47
- },
48
- // 别名:product-select
49
- "product-select": {
50
- displayMode: "product-select",
51
- productSelectConfig: {
52
- showSearch: true,
53
- showTab: true,
54
- layout: {
55
- grid: true,
56
- config: "12:12"
57
- },
58
- productListSetting: {
59
- isProductCover: 1,
60
- isTitle: 1,
61
- isSubtitle: 1,
62
- isPrice: 1,
63
- isOriginPrice: 0,
64
- isStock: 0
65
- }
66
- }
67
- },
68
- // SkuList A1
69
- "sku-list-a1": {
70
- displayMode: "sku-list",
71
- skuListConfig: {
72
- listConfig: {
73
- layout: "grid",
74
- showPagination: false,
75
- showTab: false
76
- },
77
- skuCardAllConfig: {
78
- skuCardConfig: {
79
- displayMode: "display_a1",
80
- isFavorite: false,
81
- layoutDirection: "column"
82
- }
83
- }
84
- }
85
- },
86
- // SkuList A2 - 详细信息卡片
87
- "sku-list-a2": {
88
- displayMode: "sku-list",
89
- skuListConfig: {
90
- listConfig: {
91
- layout: "grid",
92
- showPagination: false,
93
- showTab: false
94
- },
95
- skuCardAllConfig: {
96
- skuCardConfig: {
97
- displayMode: "display_a2",
98
- layoutDirection: "row",
99
- radius: 12,
100
- paddingX: 12,
101
- paddingY: 12,
102
- skuImageConfig: {
103
- isCover: true,
104
- width: "140px",
105
- height: "140px",
106
- radius: 8
107
- },
108
- skuNameConfig: {
109
- isOpen: true,
110
- fontSize: 16,
111
- fontWeight: 600,
112
- color: "#101828",
113
- ellipsisCount: 2
114
- },
115
- skuSubtitleConfig: {
116
- isOpen: true,
117
- fontSize: 14,
118
- color: "#667085",
119
- ellipsisCount: 1
120
- },
121
- skuPriceConfig: {
122
- isOpen: true,
123
- isPrice: true,
124
- priceFontSize: 18,
125
- priceFontWeight: 600,
126
- priceColor: "#101828",
127
- isOriginPrice: true,
128
- originPriceFontSize: 14,
129
- originPriceColor: "#98A2B3"
130
- },
131
- skuStockConfig: {
132
- isOpen: true,
133
- fontSize: 12,
134
- color: "#667085"
135
- }
136
- }
137
- }
138
- }
139
- },
140
- // SkuList A5
141
- "sku-list-a5": {
142
- displayMode: "sku-list",
143
- skuListConfig: {
144
- listConfig: {
145
- layout: "grid",
146
- showPagination: false,
147
- showTab: true,
148
- // 启用 Tab
149
- tabStyle: "switch",
150
- // 使用 switch 模式
151
- stickyTop: true,
152
- // Tab 吸顶
153
- columns: 5,
154
- tabGroup: "category"
155
- },
156
- skuCardAllConfig: {
157
- skuCardConfig: {
158
- displayMode: "display_a5",
159
- layoutDirection: "column",
160
- background: "#ffffff",
161
- paddingY: 8,
162
- paddingX: 8,
163
- marginY: 0,
164
- marginX: 0,
165
- radius: 12,
166
- isBorderVisible: false,
167
- borderWidth: 1,
168
- borderColor: "#ffffff",
169
- isFoldable: true
170
- },
171
- skuActionConfig: {
172
- isOpen: false
173
- },
174
- skuTextConfig: {
175
- skuSubtitleConfig: {
176
- isOpen: false
177
- },
178
- skuNameConfig: {
179
- isOpen: true
180
- // fontSize: 18,
181
- // fontWeight: 600,
182
- // color: '#101828',
183
- // ellipsisCount: 1,
184
- },
185
- skuPriceConfig: {
186
- isOpen: true,
187
- isPrice: true,
188
- priceFontSize: 18,
189
- priceFontWeight: 600,
190
- priceColor: "#101828",
191
- isShowZeroPrice: true,
192
- isShowFreePrice: false,
193
- isOriginPrice: true,
194
- originPriceFontSize: 16,
195
- originPriceFontWeight: 400,
196
- originPriceColor: "#667085",
197
- isTaxPrice: true,
198
- isCustomText: false
199
- }
200
- },
201
- skuImageConfig: {
202
- isCover: true,
203
- width: "100%",
204
- height: "126px",
205
- isTextFallback: true,
206
- background: "#ffffff",
207
- skuImageRadius: 12,
208
- slotPosition: "left_top",
209
- radius: 12
210
- },
211
- skuExtraConfig: {
212
- isOpen: false
213
- }
214
- }
215
- }
216
- }
217
- };
218
- var LegacyProductDisplayPresets = {
219
- /** @deprecated 使用 ProductDisplayPresets['product-select'] */
220
- DEFAULT_PRODUCT_SELECT: ProductDisplayPresets["product-select"],
221
- /** @deprecated 使用 ProductDisplayPresets['sku-list-a1'] */
222
- DEFAULT_SKU_LIST_A1: ProductDisplayPresets["sku-list-a1"],
223
- /** @deprecated 使用 ProductDisplayPresets['sku-list-a2'] */
224
- DEFAULT_SKU_LIST_A2: ProductDisplayPresets["sku-list-a2"],
225
- /** @deprecated 使用 ProductDisplayPresets['sku-list-a5'] */
226
- DEFAULT_SKU_LIST_A5: ProductDisplayPresets["sku-list-a5"]
227
- };
228
- function resolveProductDisplayConfig(config) {
229
- if (!config) {
230
- return ProductDisplayPresets["default"];
231
- }
232
- if (typeof config === "string") {
233
- const preset = ProductDisplayPresets[config];
234
- if (!preset) {
235
- console.warn(`Unknown preset key: "${config}", falling back to default`);
236
- return ProductDisplayPresets["default"];
237
- }
238
- return preset;
239
- }
240
- return config;
241
- }
242
- // Annotate the CommonJS export names for ESM import in node:
243
- 0 && (module.exports = {
244
- LegacyProductDisplayPresets,
245
- ProductDisplayPresets,
246
- resolveProductDisplayConfig
247
- });
@@ -1,50 +0,0 @@
1
- /**
2
- * 格式化 SKU 数据源,适配 SkuCard 组件
3
- */
4
- export declare const formatSkuDataSource: (dataSource: any) => {
5
- id: any;
6
- title: any;
7
- subtitle: any;
8
- cover: any;
9
- price: any;
10
- original_price: any;
11
- stock: any;
12
- sortKeys: string[];
13
- };
14
- /**
15
- * Tab 项接口定义(与 List 组件保持一致)
16
- */
17
- export interface TabItem {
18
- key: string;
19
- label: string;
20
- group?: string;
21
- }
22
- /**
23
- * 产品分类信息接口
24
- */
25
- interface ProductCategory {
26
- id: number;
27
- name: string;
28
- icon?: string;
29
- slug?: string;
30
- sort?: number;
31
- }
32
- /**
33
- * 产品项接口
34
- */
35
- interface Product {
36
- id: number;
37
- title: string;
38
- category?: ProductCategory[];
39
- [key: string]: any;
40
- }
41
- /**
42
- * 根据产品数据生成分类 Tabs(Switch 模式)
43
- * 参考 TestResponsiveWrapper 的 generateSimpleTabItems 函数
44
- *
45
- * @param products 产品列表
46
- * @param tabStyle tab 样式类型
47
- * @returns TabItem 数组
48
- */
49
- export declare const generateProductTabs: (products: Product[], tabStyle?: 'switch' | 'anchor') => TabItem[];
50
- export {};